]> git.saurik.com Git - wxWidgets.git/blob - configure
Updates to fix statusbar and menu errors.
[wxWidgets.git] / configure
1 #! /bin/sh
2
3 # From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 # Configure paths for GTK+
40 # Owen Taylor 97-11-3
41
42
43
44
45
46
47 # Guess values for system-dependent variables and create Makefiles.
48 # Generated automatically using autoconf version 2.13
49 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
50 #
51 # This configure script is free software; the Free Software Foundation
52 # gives unlimited permission to copy, distribute and modify it.
53
54 # Defaults:
55 ac_help=
56 ac_default_prefix=/usr/local
57 # Any additions from configure.in:
58 ac_help="$ac_help
59 --enable-gui use GUI classes"
60 ac_help="$ac_help
61 --enable-universal use wxWindows GUI controls instead of native ones"
62 ac_help="$ac_help
63 --with-gtk use GTK+"
64 ac_help="$ac_help
65 --with-motif use Motif/Lesstif"
66 ac_help="$ac_help
67 --with-mac use Mac OS X"
68 ac_help="$ac_help
69 --with-wine use WINE"
70 ac_help="$ac_help
71 --with-cygwin use Cygwin for MS-Windows"
72 ac_help="$ac_help
73 --with-mingw use GCC Minimal MS-Windows"
74 ac_help="$ac_help
75 --with-pm use OS/2 Presentation Manager"
76 ac_help="$ac_help
77 --with-mgl use MGL"
78 ac_help="$ac_help
79 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
80 ac_help="$ac_help
81 --with-libpng use libpng (PNG image format)"
82 ac_help="$ac_help
83 --with-libjpeg use libjpeg (JPEG file format)"
84 ac_help="$ac_help
85 --with-libtiff use libtiff (TIFF file format)"
86 ac_help="$ac_help
87 --with-freetype use freetype (font rasterizer)"
88 ac_help="$ac_help
89 --with-opengl use OpenGL (or Mesa)"
90 ac_help="$ac_help
91 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
92 ac_help="$ac_help
93 --with-regex enable support for wxRegEx class"
94 ac_help="$ac_help
95 --with-zlib use zlib for LZW compression"
96 ac_help="$ac_help
97 --with-odbc use the IODBC and wxODBC classes"
98 ac_help="$ac_help
99 --enable-shared create shared library code"
100 ac_help="$ac_help
101 --enable-burnt_name create set name in shared library "
102 ac_help="$ac_help
103 --enable-optimise create optimised code"
104 ac_help="$ac_help
105 --enable-debug same as debug_flag and debug_info"
106 ac_help="$ac_help
107 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
108 ac_help="$ac_help
109 --enable-debug_info create code with debugging information"
110 ac_help="$ac_help
111 --enable-debug_gdb create code with extra GDB debugging information"
112 ac_help="$ac_help
113 --enable-debug_cntxt use wxDebugContext"
114 ac_help="$ac_help
115 --enable-mem_tracing create code with memory tracing"
116 ac_help="$ac_help
117 --enable-profile create code with profiling information"
118 ac_help="$ac_help
119 --enable-no_rtti create code without RTTI information"
120 ac_help="$ac_help
121 --enable-no_exceptions create code without exceptions information"
122 ac_help="$ac_help
123 --enable-permissive compile code disregarding strict ANSI"
124 ac_help="$ac_help
125 --enable-no_deps create code without dependency information"
126 ac_help="$ac_help
127 --enable-compat20 enable wxWin 2.0 compatibility"
128 ac_help="$ac_help
129 --enable-compat22 enable wxWin 2.2 compatibility"
130 ac_help="$ac_help
131 --enable-intl use internationalization system"
132 ac_help="$ac_help
133 --enable-config use wxConfig (and derived) classes"
134 ac_help="$ac_help
135 --enable-sockets use socket/network classes"
136 ac_help="$ac_help
137 --enable-ipc use interprocess communication (wxSocket etc.)"
138 ac_help="$ac_help
139 --enable-cmdline use wxCmdLineParser class"
140 ac_help="$ac_help
141 --enable-datetime use wxDateTime class"
142 ac_help="$ac_help
143 --enable-timedate use obsolete wxDate/wxTime classes"
144 ac_help="$ac_help
145 --enable-stopwatch use wxStopWatch class"
146 ac_help="$ac_help
147 --enable-dialupman use dialup network classes"
148 ac_help="$ac_help
149 --enable-apple_ieee use the Apple IEEE codec"
150 ac_help="$ac_help
151 --enable-timer use wxTimer class"
152 ac_help="$ac_help
153 --enable-wave use wxWave class"
154 ac_help="$ac_help
155 --enable-fraction use wxFraction class"
156 ac_help="$ac_help
157 --enable-dynlib use wxLibrary class for DLL loading"
158 ac_help="$ac_help
159 --enable-longlong use wxLongLong class"
160 ac_help="$ac_help
161 --enable-geometry use geometry class"
162 ac_help="$ac_help
163 --enable-log use logging system"
164 ac_help="$ac_help
165 --enable-streams use wxStream etc classes"
166 ac_help="$ac_help
167 --enable-file use wxFile classes"
168 ac_help="$ac_help
169 --enable-ffile use wxFFile classes"
170 ac_help="$ac_help
171 --enable-textfile use wxTextFile classes"
172 ac_help="$ac_help
173 --enable-fontmap use font encodings conversion classes"
174 ac_help="$ac_help
175 --enable-unicode compile wxString with Unicode support"
176 ac_help="$ac_help
177 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
178 ac_help="$ac_help
179 --enable-wxprintfv use wxWindows implementation of vprintf()"
180 ac_help="$ac_help
181 --enable-std_iostreams use standard C++ stream classes"
182 ac_help="$ac_help
183 --enable-filesystem use virtual file systems classes"
184 ac_help="$ac_help
185 --enable-fs_inet use virtual HTTP/FTP filesystems"
186 ac_help="$ac_help
187 --enable-fs_zip use virtual ZIP filesystems"
188 ac_help="$ac_help
189 --enable-zipstream use wxZipInputStream"
190 ac_help="$ac_help
191 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
192 ac_help="$ac_help
193 --enable-snglinst use wxSingleInstanceChecker class"
194 ac_help="$ac_help
195 --enable-mimetypes use wxMimeTypesManager"
196 ac_help="$ac_help
197 --enable-sysoptions use wxSystemOptions"
198 ac_help="$ac_help
199 --enable-threads use threads"
200 ac_help="$ac_help
201 --enable-serial use class serialization"
202 ac_help="$ac_help
203 --enable-docview use document view architecture"
204 ac_help="$ac_help
205 --enable-help use help subsystem"
206 ac_help="$ac_help
207 --enable-mshtmlhelp use MS HTML Help (win32)"
208 ac_help="$ac_help
209 --enable-html use wxHTML sub-library"
210 ac_help="$ac_help
211 --enable-htmlhelp use wxHTML-based help"
212 ac_help="$ac_help
213 --enable-constraints use layout-constraints system"
214 ac_help="$ac_help
215 --enable-printarch use printing architecture"
216 ac_help="$ac_help
217 --enable-mdi use multiple document interface architecture"
218 ac_help="$ac_help
219 --enable-loggui use standard GUI logger"
220 ac_help="$ac_help
221 --enable-logwin use wxLogWindow"
222 ac_help="$ac_help
223 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
224 ac_help="$ac_help
225 --enable-prologio use Prolog IO library"
226 ac_help="$ac_help
227 --enable-resources use wxWindows resources"
228 ac_help="$ac_help
229 --enable-xresources use X resources for save (default for gtk+)"
230 ac_help="$ac_help
231 --enable-clipboard use wxClipboard classes"
232 ac_help="$ac_help
233 --enable-dnd use Drag'n'Drop classes"
234 ac_help="$ac_help
235 --enable-metafile use win32 metafiles"
236 ac_help="$ac_help
237 --enable-treelayout use wxTreeLayout classes"
238 ac_help="$ac_help
239 --enable-controls use all usual controls"
240 ac_help="$ac_help
241 --enable-accel use accelerators"
242 ac_help="$ac_help
243 --enable-button use wxButton class"
244 ac_help="$ac_help
245 --enable-bmpbutton use wxBitmapButton class"
246 ac_help="$ac_help
247 --enable-calendar use wxCalendarCtrl class"
248 ac_help="$ac_help
249 --enable-caret use wxCaret class"
250 ac_help="$ac_help
251 --enable-checkbox use wxCheckBox class"
252 ac_help="$ac_help
253 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
254 ac_help="$ac_help
255 --enable-choice use wxChoice class"
256 ac_help="$ac_help
257 --enable-combobox use wxComboBox classes"
258 ac_help="$ac_help
259 --enable-gauge use wxGauge class"
260 ac_help="$ac_help
261 --enable-grid use wxGrid class"
262 ac_help="$ac_help
263 --enable-newgrid use new wxGrid class"
264 ac_help="$ac_help
265 --enable-imaglist use wxImageList class"
266 ac_help="$ac_help
267 --enable-listbox use wxListBox class"
268 ac_help="$ac_help
269 --enable-listctrl use wxListCtrl class"
270 ac_help="$ac_help
271 --enable-notebook use wxNotebook class"
272 ac_help="$ac_help
273 --enable-propsheet use wxPropertySheet class"
274 ac_help="$ac_help
275 --enable-radiobox use wxRadioBox class"
276 ac_help="$ac_help
277 --enable-radiobtn use wxRadioButton class"
278 ac_help="$ac_help
279 --enable-sash use wxSashWindow class"
280 ac_help="$ac_help
281 --enable-scrollbar use wxScrollBar class and scrollable windows"
282 ac_help="$ac_help
283 --enable-slider use wxSlider class"
284 ac_help="$ac_help
285 --enable-spinbtn use wxSpinButton class"
286 ac_help="$ac_help
287 --enable-spinctrl use wxSpinCtrl class"
288 ac_help="$ac_help
289 --enable-splitter use wxSplitterWindow class"
290 ac_help="$ac_help
291 --enable-statbmp use wxStaticBitmap class"
292 ac_help="$ac_help
293 --enable-statbox use wxStaticBox class"
294 ac_help="$ac_help
295 --enable-statline use wxStaticLine class"
296 ac_help="$ac_help
297 --enable-stattext use wxStaticText class"
298 ac_help="$ac_help
299 --enable-statusbar use wxStatusBar class"
300 ac_help="$ac_help
301 --enable-tabdialog use wxTabControl class"
302 ac_help="$ac_help
303 --enable-textctrl use wxTextCtrl class"
304 ac_help="$ac_help
305 --enable-togglebtn use wxToggleButton class"
306 ac_help="$ac_help
307 --enable-toolbar use wxToolBar class"
308 ac_help="$ac_help
309 --enable-tbarnative use native wxToolBar class"
310 ac_help="$ac_help
311 --enable-tbarsmpl use wxToolBarSimple class"
312 ac_help="$ac_help
313 --enable-treectrl use wxTreeCtrl class"
314 ac_help="$ac_help
315 --enable-popupwin use wxPopUpWindow class"
316 ac_help="$ac_help
317 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
318 ac_help="$ac_help
319 --enable-choicedlg use wxChoiceDialog"
320 ac_help="$ac_help
321 --enable-coldlg use wxColourDialog"
322 ac_help="$ac_help
323 --enable-filedlg use wxFileDialog"
324 ac_help="$ac_help
325 --enable-finddlg use wxFindReplaceDialog"
326 ac_help="$ac_help
327 --enable-fontdlg use wxFontDialog"
328 ac_help="$ac_help
329 --enable-dirdlg use wxDirDialog"
330 ac_help="$ac_help
331 --enable-msgdlg use wxMessageDialog"
332 ac_help="$ac_help
333 --enable-numberdlg use wxNumberEntryDialog"
334 ac_help="$ac_help
335 --enable-textdlg use wxTextDialog"
336 ac_help="$ac_help
337 --enable-tipdlg use startup tips"
338 ac_help="$ac_help
339 --enable-progressdlg use wxProgressDialog"
340 ac_help="$ac_help
341 --enable-wizarddlg use wxWizard"
342 ac_help="$ac_help
343 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
344 ac_help="$ac_help
345 --enable-miniframe use wxMiniFrame class"
346 ac_help="$ac_help
347 --enable-tooltips use wxToolTip class"
348 ac_help="$ac_help
349 --enable-splines use spline drawing code"
350 ac_help="$ac_help
351 --enable-validators use wxValidator and derived classes"
352 ac_help="$ac_help
353 --enable-busyinfo use wxBusyInfo"
354 ac_help="$ac_help
355 --enable-joystick compile in joystick support (Linux only)"
356 ac_help="$ac_help
357 --enable-metafiles use wxMetaFile (Windows only)"
358 ac_help="$ac_help
359 --enable-dragimage use wxDragImage"
360 ac_help="$ac_help
361 --enable-image use wxImage class"
362 ac_help="$ac_help
363 --enable-gif use gif images (GIF file format)"
364 ac_help="$ac_help
365 --enable-pcx use pcx images (PCX file format)"
366 ac_help="$ac_help
367 --enable-pnm use pnm images (PNM file format)"
368 ac_help="$ac_help
369 --enable-xpm use xpm images (XPM file format)"
370 ac_help="$ac_help
371 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
372 ac_help="$ac_help
373 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
374 ac_help="$ac_help
375 --disable-gtktest Do not try to compile and run a test GTK program"
376 ac_help="$ac_help
377 --with-x use the X Window System"
378
379 # Initialize some variables set by options.
380 # The variables have the same names as the options, with
381 # dashes changed to underlines.
382 build=NONE
383 cache_file=./config.cache
384 exec_prefix=NONE
385 host=NONE
386 no_create=
387 nonopt=NONE
388 no_recursion=
389 prefix=NONE
390 program_prefix=NONE
391 program_suffix=NONE
392 program_transform_name=s,x,x,
393 silent=
394 site=
395 srcdir=
396 target=NONE
397 verbose=
398 x_includes=NONE
399 x_libraries=NONE
400 bindir='${exec_prefix}/bin'
401 sbindir='${exec_prefix}/sbin'
402 libexecdir='${exec_prefix}/libexec'
403 datadir='${prefix}/share'
404 sysconfdir='${prefix}/etc'
405 sharedstatedir='${prefix}/com'
406 localstatedir='${prefix}/var'
407 libdir='${exec_prefix}/lib'
408 includedir='${prefix}/include'
409 oldincludedir='/usr/include'
410 infodir='${prefix}/info'
411 mandir='${prefix}/man'
412
413 # Initialize some other variables.
414 subdirs=
415 MFLAGS= MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417 # Maximum number of lines to put in a shell here document.
418 ac_max_here_lines=12
419
420 ac_prev=
421 for ac_option
422 do
423
424 # If the previous option needs an argument, assign it.
425 if test -n "$ac_prev"; then
426 eval "$ac_prev=\$ac_option"
427 ac_prev=
428 continue
429 fi
430
431 case "$ac_option" in
432 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
433 *) ac_optarg= ;;
434 esac
435
436 # Accept the important Cygnus configure options, so we can diagnose typos.
437
438 case "$ac_option" in
439
440 -bindir | --bindir | --bindi | --bind | --bin | --bi)
441 ac_prev=bindir ;;
442 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
443 bindir="$ac_optarg" ;;
444
445 -build | --build | --buil | --bui | --bu)
446 ac_prev=build ;;
447 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
448 build="$ac_optarg" ;;
449
450 -cache-file | --cache-file | --cache-fil | --cache-fi \
451 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
452 ac_prev=cache_file ;;
453 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
454 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
455 cache_file="$ac_optarg" ;;
456
457 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
458 ac_prev=datadir ;;
459 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
460 | --da=*)
461 datadir="$ac_optarg" ;;
462
463 -disable-* | --disable-*)
464 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
465 # Reject names that are not valid shell variable names.
466 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
467 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
468 fi
469 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
470 eval "enable_${ac_feature}=no" ;;
471
472 -enable-* | --enable-*)
473 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
474 # Reject names that are not valid shell variable names.
475 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
476 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
477 fi
478 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
479 case "$ac_option" in
480 *=*) ;;
481 *) ac_optarg=yes ;;
482 esac
483 eval "enable_${ac_feature}='$ac_optarg'" ;;
484
485 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
486 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
487 | --exec | --exe | --ex)
488 ac_prev=exec_prefix ;;
489 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
490 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
491 | --exec=* | --exe=* | --ex=*)
492 exec_prefix="$ac_optarg" ;;
493
494 -gas | --gas | --ga | --g)
495 # Obsolete; use --with-gas.
496 with_gas=yes ;;
497
498 -help | --help | --hel | --he)
499 # Omit some internal or obsolete options to make the list less imposing.
500 # This message is too long to be a string in the A/UX 3.1 sh.
501 cat << EOF
502 Usage: configure [options] [host]
503 Options: [defaults in brackets after descriptions]
504 Configuration:
505 --cache-file=FILE cache test results in FILE
506 --help print this message
507 --no-create do not create output files
508 --quiet, --silent do not print \`checking...' messages
509 --version print the version of autoconf that created configure
510 Directory and file names:
511 --prefix=PREFIX install architecture-independent files in PREFIX
512 [$ac_default_prefix]
513 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
514 [same as prefix]
515 --bindir=DIR user executables in DIR [EPREFIX/bin]
516 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
517 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
518 --datadir=DIR read-only architecture-independent data in DIR
519 [PREFIX/share]
520 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
521 --sharedstatedir=DIR modifiable architecture-independent data in DIR
522 [PREFIX/com]
523 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
524 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
525 --includedir=DIR C header files in DIR [PREFIX/include]
526 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
527 --infodir=DIR info documentation in DIR [PREFIX/info]
528 --mandir=DIR man documentation in DIR [PREFIX/man]
529 --srcdir=DIR find the sources in DIR [configure dir or ..]
530 --program-prefix=PREFIX prepend PREFIX to installed program names
531 --program-suffix=SUFFIX append SUFFIX to installed program names
532 --program-transform-name=PROGRAM
533 run sed PROGRAM on installed program names
534 EOF
535 cat << EOF
536 Host type:
537 --build=BUILD configure for building on BUILD [BUILD=HOST]
538 --host=HOST configure for HOST [guessed]
539 --target=TARGET configure for TARGET [TARGET=HOST]
540 Features and packages:
541 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
542 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
543 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
544 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
545 --x-includes=DIR X include files are in DIR
546 --x-libraries=DIR X library files are in DIR
547 EOF
548 if test -n "$ac_help"; then
549 echo "--enable and --with options recognized:$ac_help"
550 fi
551 exit 0 ;;
552
553 -host | --host | --hos | --ho)
554 ac_prev=host ;;
555 -host=* | --host=* | --hos=* | --ho=*)
556 host="$ac_optarg" ;;
557
558 -includedir | --includedir | --includedi | --included | --include \
559 | --includ | --inclu | --incl | --inc)
560 ac_prev=includedir ;;
561 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
562 | --includ=* | --inclu=* | --incl=* | --inc=*)
563 includedir="$ac_optarg" ;;
564
565 -infodir | --infodir | --infodi | --infod | --info | --inf)
566 ac_prev=infodir ;;
567 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
568 infodir="$ac_optarg" ;;
569
570 -libdir | --libdir | --libdi | --libd)
571 ac_prev=libdir ;;
572 -libdir=* | --libdir=* | --libdi=* | --libd=*)
573 libdir="$ac_optarg" ;;
574
575 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
576 | --libexe | --libex | --libe)
577 ac_prev=libexecdir ;;
578 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
579 | --libexe=* | --libex=* | --libe=*)
580 libexecdir="$ac_optarg" ;;
581
582 -localstatedir | --localstatedir | --localstatedi | --localstated \
583 | --localstate | --localstat | --localsta | --localst \
584 | --locals | --local | --loca | --loc | --lo)
585 ac_prev=localstatedir ;;
586 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
587 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
588 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
589 localstatedir="$ac_optarg" ;;
590
591 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
592 ac_prev=mandir ;;
593 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
594 mandir="$ac_optarg" ;;
595
596 -nfp | --nfp | --nf)
597 # Obsolete; use --without-fp.
598 with_fp=no ;;
599
600 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
601 | --no-cr | --no-c)
602 no_create=yes ;;
603
604 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
605 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
606 no_recursion=yes ;;
607
608 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
609 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
610 | --oldin | --oldi | --old | --ol | --o)
611 ac_prev=oldincludedir ;;
612 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
613 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
614 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
615 oldincludedir="$ac_optarg" ;;
616
617 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
618 ac_prev=prefix ;;
619 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
620 prefix="$ac_optarg" ;;
621
622 -program-prefix | --program-prefix | --program-prefi | --program-pref \
623 | --program-pre | --program-pr | --program-p)
624 ac_prev=program_prefix ;;
625 -program-prefix=* | --program-prefix=* | --program-prefi=* \
626 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
627 program_prefix="$ac_optarg" ;;
628
629 -program-suffix | --program-suffix | --program-suffi | --program-suff \
630 | --program-suf | --program-su | --program-s)
631 ac_prev=program_suffix ;;
632 -program-suffix=* | --program-suffix=* | --program-suffi=* \
633 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
634 program_suffix="$ac_optarg" ;;
635
636 -program-transform-name | --program-transform-name \
637 | --program-transform-nam | --program-transform-na \
638 | --program-transform-n | --program-transform- \
639 | --program-transform | --program-transfor \
640 | --program-transfo | --program-transf \
641 | --program-trans | --program-tran \
642 | --progr-tra | --program-tr | --program-t)
643 ac_prev=program_transform_name ;;
644 -program-transform-name=* | --program-transform-name=* \
645 | --program-transform-nam=* | --program-transform-na=* \
646 | --program-transform-n=* | --program-transform-=* \
647 | --program-transform=* | --program-transfor=* \
648 | --program-transfo=* | --program-transf=* \
649 | --program-trans=* | --program-tran=* \
650 | --progr-tra=* | --program-tr=* | --program-t=*)
651 program_transform_name="$ac_optarg" ;;
652
653 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
654 | -silent | --silent | --silen | --sile | --sil)
655 silent=yes ;;
656
657 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
658 ac_prev=sbindir ;;
659 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
660 | --sbi=* | --sb=*)
661 sbindir="$ac_optarg" ;;
662
663 -sharedstatedir | --sharedstatedir | --sharedstatedi \
664 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
665 | --sharedst | --shareds | --shared | --share | --shar \
666 | --sha | --sh)
667 ac_prev=sharedstatedir ;;
668 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
669 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
670 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
671 | --sha=* | --sh=*)
672 sharedstatedir="$ac_optarg" ;;
673
674 -site | --site | --sit)
675 ac_prev=site ;;
676 -site=* | --site=* | --sit=*)
677 site="$ac_optarg" ;;
678
679 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
680 ac_prev=srcdir ;;
681 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
682 srcdir="$ac_optarg" ;;
683
684 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
685 | --syscon | --sysco | --sysc | --sys | --sy)
686 ac_prev=sysconfdir ;;
687 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
688 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
689 sysconfdir="$ac_optarg" ;;
690
691 -target | --target | --targe | --targ | --tar | --ta | --t)
692 ac_prev=target ;;
693 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
694 target="$ac_optarg" ;;
695
696 -v | -verbose | --verbose | --verbos | --verbo | --verb)
697 verbose=yes ;;
698
699 -version | --version | --versio | --versi | --vers)
700 echo "configure generated by autoconf version 2.13"
701 exit 0 ;;
702
703 -with-* | --with-*)
704 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
705 # Reject names that are not valid shell variable names.
706 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
707 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
708 fi
709 ac_package=`echo $ac_package| sed 's/-/_/g'`
710 case "$ac_option" in
711 *=*) ;;
712 *) ac_optarg=yes ;;
713 esac
714 eval "with_${ac_package}='$ac_optarg'" ;;
715
716 -without-* | --without-*)
717 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
718 # Reject names that are not valid shell variable names.
719 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
720 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
721 fi
722 ac_package=`echo $ac_package| sed 's/-/_/g'`
723 eval "with_${ac_package}=no" ;;
724
725 --x)
726 # Obsolete; use --with-x.
727 with_x=yes ;;
728
729 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
730 | --x-incl | --x-inc | --x-in | --x-i)
731 ac_prev=x_includes ;;
732 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
733 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
734 x_includes="$ac_optarg" ;;
735
736 -x-libraries | --x-libraries | --x-librarie | --x-librari \
737 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
738 ac_prev=x_libraries ;;
739 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
740 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
741 x_libraries="$ac_optarg" ;;
742
743 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
744 ;;
745
746 *)
747 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
748 echo "configure: warning: $ac_option: invalid host type" 1>&2
749 fi
750 if test "x$nonopt" != xNONE; then
751 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
752 fi
753 nonopt="$ac_option"
754 ;;
755
756 esac
757 done
758
759 if test -n "$ac_prev"; then
760 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
761 fi
762
763 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
764
765 # File descriptor usage:
766 # 0 standard input
767 # 1 file creation
768 # 2 errors and warnings
769 # 3 some systems may open it to /dev/tty
770 # 4 used on the Kubota Titan
771 # 6 checking for... messages and results
772 # 5 compiler messages saved in config.log
773 if test "$silent" = yes; then
774 exec 6>/dev/null
775 else
776 exec 6>&1
777 fi
778 exec 5>./config.log
779
780 echo "\
781 This file contains any messages produced by compilers while
782 running configure, to aid debugging if configure makes a mistake.
783 " 1>&5
784
785 # Strip out --no-create and --no-recursion so they do not pile up.
786 # Also quote any args containing shell metacharacters.
787 ac_configure_args=
788 for ac_arg
789 do
790 case "$ac_arg" in
791 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
792 | --no-cr | --no-c) ;;
793 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
794 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
795 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
796 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
797 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
798 esac
799 done
800
801 # NLS nuisances.
802 # Only set these to C if already set. These must not be set unconditionally
803 # because not all systems understand e.g. LANG=C (notably SCO).
804 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
805 # Non-C LC_CTYPE values break the ctype check.
806 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
807 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
808 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
809 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
810
811 # confdefs.h avoids OS command line length limits that DEFS can exceed.
812 rm -rf conftest* confdefs.h
813 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
814 echo > confdefs.h
815
816 # A filename unique to this package, relative to the directory that
817 # configure is in, which we can look for to find out if srcdir is correct.
818 ac_unique_file=wx-config.in
819
820 # Find the source files, if location was not specified.
821 if test -z "$srcdir"; then
822 ac_srcdir_defaulted=yes
823 # Try the directory containing this script, then its parent.
824 ac_prog=$0
825 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
826 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
827 srcdir=$ac_confdir
828 if test ! -r $srcdir/$ac_unique_file; then
829 srcdir=..
830 fi
831 else
832 ac_srcdir_defaulted=no
833 fi
834 if test ! -r $srcdir/$ac_unique_file; then
835 if test "$ac_srcdir_defaulted" = yes; then
836 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
837 else
838 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
839 fi
840 fi
841 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
842
843 # Prefer explicitly selected file to automatically selected ones.
844 if test -z "$CONFIG_SITE"; then
845 if test "x$prefix" != xNONE; then
846 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
847 else
848 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
849 fi
850 fi
851 for ac_site_file in $CONFIG_SITE; do
852 if test -r "$ac_site_file"; then
853 echo "loading site script $ac_site_file"
854 . "$ac_site_file"
855 fi
856 done
857
858 if test -r "$cache_file"; then
859 echo "loading cache $cache_file"
860 . $cache_file
861 else
862 echo "creating cache $cache_file"
863 > $cache_file
864 fi
865
866 ac_ext=c
867 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
868 ac_cpp='$CPP $CPPFLAGS'
869 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
870 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
871 cross_compiling=$ac_cv_prog_cc_cross
872
873 ac_exeext=
874 ac_objext=o
875 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
876 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
877 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
878 ac_n= ac_c='
879 ' ac_t=' '
880 else
881 ac_n=-n ac_c= ac_t=
882 fi
883 else
884 ac_n= ac_c='\c' ac_t=
885 fi
886
887
888
889 ac_aux_dir=
890 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
891 if 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 elif test -f $ac_dir/install.sh; then
896 ac_aux_dir=$ac_dir
897 ac_install_sh="$ac_aux_dir/install.sh -c"
898 break
899 fi
900 done
901 if test -z "$ac_aux_dir"; then
902 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
903 fi
904 ac_config_guess=$ac_aux_dir/config.guess
905 ac_config_sub=$ac_aux_dir/config.sub
906 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
907
908
909 # Do some error checking and defaulting for the host and target type.
910 # The inputs are:
911 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
912 #
913 # The rules are:
914 # 1. You are not allowed to specify --host, --target, and nonopt at the
915 # same time.
916 # 2. Host defaults to nonopt.
917 # 3. If nonopt is not specified, then host defaults to the current host,
918 # as determined by config.guess.
919 # 4. Target and build default to nonopt.
920 # 5. If nonopt is not specified, then target and build default to host.
921
922 # The aliases save the names the user supplied, while $host etc.
923 # will get canonicalized.
924 case $host---$target---$nonopt in
925 NONE---*---* | *---NONE---* | *---*---NONE) ;;
926 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
927 esac
928
929
930 # Make sure we can run config.sub.
931 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
932 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
933 fi
934
935 echo $ac_n "checking host system type""... $ac_c" 1>&6
936 echo "configure:937: checking host system type" >&5
937
938 host_alias=$host
939 case "$host_alias" in
940 NONE)
941 case $nonopt in
942 NONE)
943 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
944 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
945 fi ;;
946 *) host_alias=$nonopt ;;
947 esac ;;
948 esac
949
950 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
951 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
952 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
953 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
954 echo "$ac_t""$host" 1>&6
955
956 echo $ac_n "checking target system type""... $ac_c" 1>&6
957 echo "configure:958: checking target system type" >&5
958
959 target_alias=$target
960 case "$target_alias" in
961 NONE)
962 case $nonopt in
963 NONE) target_alias=$host_alias ;;
964 *) target_alias=$nonopt ;;
965 esac ;;
966 esac
967
968 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
969 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
970 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
971 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
972 echo "$ac_t""$target" 1>&6
973
974 echo $ac_n "checking build system type""... $ac_c" 1>&6
975 echo "configure:976: checking build system type" >&5
976
977 build_alias=$build
978 case "$build_alias" in
979 NONE)
980 case $nonopt in
981 NONE) build_alias=$host_alias ;;
982 *) build_alias=$nonopt ;;
983 esac ;;
984 esac
985
986 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
987 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
988 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
989 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
990 echo "$ac_t""$build" 1>&6
991
992 test "$host_alias" != "$target_alias" &&
993 test "$program_prefix$program_suffix$program_transform_name" = \
994 NONENONEs,x,x, &&
995 program_prefix=${target_alias}-
996
997
998
999 WX_MAJOR_VERSION_NUMBER=2
1000 WX_MINOR_VERSION_NUMBER=3
1001 WX_RELEASE_NUMBER=2
1002
1003 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1004 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1005
1006 WX_CURRENT=1
1007 WX_REVISION=0
1008 WX_AGE=0
1009
1010
1011
1012 USE_UNIX=1
1013 USE_WIN32=0
1014 USE_BEOS=0
1015 USE_MAC=0
1016
1017 USE_LINUX=
1018 USE_SGI=
1019 USE_HPUX=
1020 USE_SYSV=
1021 USE_SVR4=
1022 USE_AIX=
1023 USE_SUN=
1024 USE_SOLARIS=
1025 USE_SUNOS=
1026 USE_ALPHA=
1027 USE_OSF=
1028 USE_BSD=
1029 USE_DARWIN=
1030 USE_FREEBSD=
1031 USE_OPENBSD=
1032 USE_NETBSD=
1033 USE_VMS=
1034 USE_ULTRIX=
1035 USE_CYGWIN=
1036 USE_MINGW=
1037 USE_DATA_GENERAL=
1038
1039 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1040
1041 ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
1042
1043 DEFAULT_wxUSE_GTK=0
1044 DEFAULT_wxUSE_MAC=0
1045 DEFAULT_wxUSE_MGL=0
1046 DEFAULT_wxUSE_MOTIF=0
1047 DEFAULT_wxUSE_MSW=0
1048 DEFAULT_wxUSE_PM=0
1049 DEFAULT_wxUSE_WINE=0
1050
1051 DEFAULT_DEFAULT_wxUSE_GTK=0
1052 DEFAULT_DEFAULT_wxUSE_MAC=0
1053 DEFAULT_DEFAULT_wxUSE_MGL=0
1054 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1055 DEFAULT_DEFAULT_wxUSE_MSW=0
1056 DEFAULT_DEFAULT_wxUSE_PM=0
1057 DEFAULT_DEFAULT_wxUSE_WINE=0
1058
1059 PROGRAM_EXT=
1060
1061 case "${host}" in
1062 *-hp-hpux* )
1063 USE_HPUX=1
1064 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1065 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1066 cat >> confdefs.h <<\EOF
1067 #define __HPUX__ 1
1068 EOF
1069
1070 ;;
1071 *-*-linux* )
1072 USE_LINUX=1
1073 cat >> confdefs.h <<\EOF
1074 #define __LINUX__ 1
1075 EOF
1076
1077 TMP=`uname -m`
1078 if test "x$TMP" = "xalpha"; then
1079 USE_ALPHA=1
1080 cat >> confdefs.h <<\EOF
1081 #define __ALPHA__ 1
1082 EOF
1083
1084 fi
1085 DEFAULT_DEFAULT_wxUSE_GTK=1
1086 ;;
1087 *-*-irix5* | *-*-irix6* )
1088 USE_SGI=1
1089 USE_SVR4=1
1090 cat >> confdefs.h <<\EOF
1091 #define __SGI__ 1
1092 EOF
1093
1094 cat >> confdefs.h <<\EOF
1095 #define __SVR4__ 1
1096 EOF
1097
1098 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1099 ;;
1100 *-*-solaris2* )
1101 USE_SUN=1
1102 USE_SOLARIS=1
1103 USE_SVR4=1
1104 cat >> confdefs.h <<\EOF
1105 #define __SUN__ 1
1106 EOF
1107
1108 cat >> confdefs.h <<\EOF
1109 #define __SOLARIS__ 1
1110 EOF
1111
1112 cat >> confdefs.h <<\EOF
1113 #define __SVR4__ 1
1114 EOF
1115
1116 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1117 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1118 ;;
1119 *-*-sunos4* )
1120 USE_SUN=1
1121 USE_SUNOS=1
1122 USE_BSD=1
1123 cat >> confdefs.h <<\EOF
1124 #define __SUN__ 1
1125 EOF
1126
1127 cat >> confdefs.h <<\EOF
1128 #define __SUNOS__ 1
1129 EOF
1130
1131 cat >> confdefs.h <<\EOF
1132 #define __BSD__ 1
1133 EOF
1134
1135 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1136 ;;
1137 *-*-freebsd*)
1138 USE_BSD=1
1139 USE_FREEBSD=1
1140 cat >> confdefs.h <<\EOF
1141 #define __FREEBSD__ 1
1142 EOF
1143
1144 cat >> confdefs.h <<\EOF
1145 #define __BSD__ 1
1146 EOF
1147
1148 DEFAULT_DEFAULT_wxUSE_GTK=1
1149 ;;
1150 *-*-openbsd*)
1151 USE_BSD=1
1152 USE_OPENBSD=1
1153 cat >> confdefs.h <<\EOF
1154 #define __FREEBSD__ 1
1155 EOF
1156
1157 cat >> confdefs.h <<\EOF
1158 #define __OPENBSD__ 1
1159 EOF
1160
1161 DEFAULT_DEFAULT_wxUSE_GTK=1
1162 ;;
1163 *-*-netbsd*)
1164 USE_BSD=1
1165 USE_NETBSD=1
1166 cat >> confdefs.h <<\EOF
1167 #define __FREEBSD__ 1
1168 EOF
1169
1170 cat >> confdefs.h <<\EOF
1171 #define __NETBSD__ 1
1172 EOF
1173
1174 DEFAULT_DEFAULT_wxUSE_GTK=1
1175 ;;
1176 *-*-osf* )
1177 USE_ALPHA=1
1178 USE_OSF=1
1179 cat >> confdefs.h <<\EOF
1180 #define __ALPHA__ 1
1181 EOF
1182
1183 cat >> confdefs.h <<\EOF
1184 #define __OSF__ 1
1185 EOF
1186
1187 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1188 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1189 ;;
1190 *-*-dgux5* )
1191 USE_ALPHA=1
1192 USE_SVR4=1
1193 cat >> confdefs.h <<\EOF
1194 #define __ALPHA__ 1
1195 EOF
1196
1197 cat >> confdefs.h <<\EOF
1198 #define __SVR4__ 1
1199 EOF
1200
1201 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1202 ;;
1203 *-*-sysv5* )
1204 USE_SYSV=1
1205 USE_SVR4=1
1206 cat >> confdefs.h <<\EOF
1207 #define __SYSV__ 1
1208 EOF
1209
1210 cat >> confdefs.h <<\EOF
1211 #define __SVR4__ 1
1212 EOF
1213
1214 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1215 ;;
1216 *-*-aix* )
1217 USE_AIX=1
1218 USE_SYSV=1
1219 USE_SVR4=1
1220 cat >> confdefs.h <<\EOF
1221 #define __AIX__ 1
1222 EOF
1223
1224 cat >> confdefs.h <<\EOF
1225 #define __SYSV__ 1
1226 EOF
1227
1228 cat >> confdefs.h <<\EOF
1229 #define __SVR4__ 1
1230 EOF
1231
1232 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1233 ;;
1234
1235 *-*-cygwin* | *-*-mingw32* )
1236 USE_UNIX=0
1237 USE_WIN32=1
1238 cat >> confdefs.h <<\EOF
1239 #define __WIN32__ 1
1240 EOF
1241
1242 cat >> confdefs.h <<\EOF
1243 #define __WIN95__ 1
1244 EOF
1245
1246 cat >> confdefs.h <<\EOF
1247 #define __WINDOWS__ 1
1248 EOF
1249
1250 cat >> confdefs.h <<\EOF
1251 #define __GNUWIN32__ 1
1252 EOF
1253
1254 cat >> confdefs.h <<\EOF
1255 #define STRICT 1
1256 EOF
1257
1258 cat >> confdefs.h <<\EOF
1259 #define WINVER 0x0400
1260 EOF
1261
1262 PROGRAM_EXT=".exe"
1263 DEFAULT_DEFAULT_wxUSE_MSW=1
1264 ;;
1265
1266 *-pc-os2_emx )
1267 cat >> confdefs.h <<\EOF
1268 #define __EMX__ 1
1269 EOF
1270
1271 PROGRAM_EXT=".exe"
1272 DEFAULT_DEFAULT_wxUSE_PM=1
1273 ;;
1274
1275 *-*-darwin* )
1276 USE_BSD=1
1277 USE_DARWIN=1
1278 cat >> confdefs.h <<\EOF
1279 #define __BSD__ 1
1280 EOF
1281
1282 cat >> confdefs.h <<\EOF
1283 #define __DARWIN__ 1
1284 EOF
1285
1286 cat >> confdefs.h <<\EOF
1287 #define __UNIX__ 1
1288 EOF
1289
1290 DEFAULT_DEFAULT_wxUSE_MAC=1
1291 ;;
1292
1293 *-*-beos* )
1294 USE_BEOS=1
1295 cat >> confdefs.h <<\EOF
1296 #define __BEOS__ 1
1297 EOF
1298
1299 ;;
1300
1301 *)
1302 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1303 esac
1304
1305 if test "$USE_UNIX" = 1 ; then
1306 wxUSE_UNIX=yes
1307 cat >> confdefs.h <<\EOF
1308 #define __UNIX__ 1
1309 EOF
1310
1311
1312 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1313 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1314 fi
1315
1316 if test "$USE_BEOS" = 1; then
1317 SRC_SUBDIRS="$SRC_SUBDIRS be"
1318 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
1319 fi
1320
1321 if test "$USE_LINUX" = 1; then
1322 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1323 echo "configure:1324: checking for gettext in -lc" >&5
1324 ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1325 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1327 else
1328 ac_save_LIBS="$LIBS"
1329 LIBS="-lc $LIBS"
1330 cat > conftest.$ac_ext <<EOF
1331 #line 1332 "configure"
1332 #include "confdefs.h"
1333 /* Override any gcc2 internal prototype to avoid an error. */
1334 /* We use char because int might match the return type of a gcc2
1335 builtin and then its argument prototype would still apply. */
1336 char gettext();
1337
1338 int main() {
1339 gettext()
1340 ; return 0; }
1341 EOF
1342 if { (eval echo configure:1343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1343 rm -rf conftest*
1344 eval "ac_cv_lib_$ac_lib_var=yes"
1345 else
1346 echo "configure: failed program was:" >&5
1347 cat conftest.$ac_ext >&5
1348 rm -rf conftest*
1349 eval "ac_cv_lib_$ac_lib_var=no"
1350 fi
1351 rm -f conftest*
1352 LIBS="$ac_save_LIBS"
1353
1354 fi
1355 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1356 echo "$ac_t""yes" 1>&6
1357 cat >> confdefs.h <<\EOF
1358 #define wxHAVE_GLIBC2 1
1359 EOF
1360
1361 else
1362 echo "$ac_t""no" 1>&6
1363 fi
1364
1365 fi
1366
1367
1368
1369
1370 wx_arg_cache_file="configarg.cache"
1371 echo "loading argument cache $wx_arg_cache_file"
1372 rm -f ${wx_arg_cache_file}.tmp
1373 touch ${wx_arg_cache_file}.tmp
1374 touch ${wx_arg_cache_file}
1375
1376
1377 DEBUG_CONFIGURE=0
1378 if test $DEBUG_CONFIGURE = 1; then
1379 DEFAULT_wxUSE_UNIVERSAL=no
1380
1381 DEFAULT_wxUSE_THREADS=yes
1382
1383 DEFAULT_wxUSE_SHARED=yes
1384 DEFAULT_wxUSE_BURNT_NAME=no
1385 DEFAULT_wxUSE_OPTIMISE=no
1386 DEFAULT_wxUSE_PROFILE=no
1387 DEFAULT_wxUSE_NO_DEPS=no
1388 DEFAULT_wxUSE_NO_RTTI=no
1389 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1390 DEFAULT_wxUSE_PERMISSIVE=no
1391 DEFAULT_wxUSE_DEBUG_FLAG=yes
1392 DEFAULT_wxUSE_DEBUG_INFO=yes
1393 DEFAULT_wxUSE_DEBUG_GDB=yes
1394 DEFAULT_wxUSE_MEM_TRACING=no
1395 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1396 DEFAULT_wxUSE_DMALLOC=no
1397 DEFAULT_wxUSE_APPLE_IEEE=no
1398
1399 DEFAULT_wxUSE_LOG=yes
1400 DEFAULT_wxUSE_LOGWINDOW=no
1401 DEFAULT_wxUSE_LOGGUI=no
1402
1403 DEFAULT_wxUSE_GUI=yes
1404 DEFAULT_wxUSE_CONTROLS=no
1405
1406 DEFAULT_wxUSE_REGEX=no
1407 DEFAULT_wxUSE_ZLIB=no
1408 DEFAULT_wxUSE_LIBPNG=no
1409 DEFAULT_wxUSE_LIBJPEG=no
1410 DEFAULT_wxUSE_LIBTIFF=no
1411 DEFAULT_wxUSE_ODBC=no
1412 DEFAULT_wxUSE_FREETYPE=no
1413 DEFAULT_wxUSE_OPENGL=no
1414
1415 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1416 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1417 DEFAULT_wxUSE_STD_IOSTREAM=no
1418 DEFAULT_wxUSE_CMDLINE_PARSER=no
1419 DEFAULT_wxUSE_DATETIME=no
1420 DEFAULT_wxUSE_TIMEDATE=no
1421 DEFAULT_wxUSE_TIMER=no
1422 DEFAULT_wxUSE_STOPWATCH=no
1423 DEFAULT_wxUSE_FILE=no
1424 DEFAULT_wxUSE_FFILE=no
1425 DEFAULT_wxUSE_TEXTFILE=no
1426 DEFAULT_wxUSE_WAVE=no
1427 DEFAULT_wxUSE_INTL=no
1428 DEFAULT_wxUSE_CONFIG=no
1429 DEFAULT_wxUSE_FONTMAP=no
1430 DEFAULT_wxUSE_STREAMS=no
1431 DEFAULT_wxUSE_SOCKETS=no
1432 DEFAULT_wxUSE_DIALUP_MANAGER=no
1433 DEFAULT_wxUSE_SERIAL=no
1434 DEFAULT_wxUSE_JOYSTICK=no
1435 DEFAULT_wxUSE_DYNLIB_CLASS=no
1436 DEFAULT_wxUSE_LONGLONG=no
1437 DEFAULT_wxUSE_GEOMETRY=no
1438
1439 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1440 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1441 DEFAULT_wxUSE_POSTSCRIPT=no
1442
1443 DEFAULT_wxUSE_X_RESOURCES=no
1444 DEFAULT_wxUSE_CLIPBOARD=no
1445 DEFAULT_wxUSE_TOOLTIPS=no
1446 DEFAULT_wxUSE_DRAG_AND_DROP=no
1447 DEFAULT_wxUSE_DRAGIMAGE=no
1448 DEFAULT_wxUSE_SPLINES=no
1449
1450 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1451 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1452 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1453
1454 DEFAULT_wxUSE_PROLOGIO=no
1455 DEFAULT_wxUSE_RESOURCES=no
1456 DEFAULT_wxUSE_CONSTRAINTS=no
1457 DEFAULT_wxUSE_IPC=no
1458 DEFAULT_wxUSE_HELP=no
1459 DEFAULT_wxUSE_MS_HTML_HELP=no
1460 DEFAULT_wxUSE_WXHTML_HELP=no
1461 DEFAULT_wxUSE_TREELAYOUT=no
1462 DEFAULT_wxUSE_METAFILE=no
1463 DEFAULT_wxUSE_MIMETYPE=no
1464 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1465
1466 DEFAULT_wxUSE_COMMONDLGS=no
1467 DEFAULT_wxUSE_CHOICEDLG=no
1468 DEFAULT_wxUSE_COLOURDLG=no
1469 DEFAULT_wxUSE_DIRDLG=no
1470 DEFAULT_wxUSE_FILEDLG=no
1471 DEFAULT_wxUSE_FINDREPLDLG=no
1472 DEFAULT_wxUSE_FONTDLG=no
1473 DEFAULT_wxUSE_MSGDLG=no
1474 DEFAULT_wxUSE_NUMBERDLG=no
1475 DEFAULT_wxUSE_TEXTDLG=no
1476 DEFAULT_wxUSE_STARTUP_TIPS=no
1477 DEFAULT_wxUSE_PROGRESSDLG=no
1478 DEFAULT_wxUSE_WIZARDDLG=no
1479
1480 DEFAULT_wxUSE_MENUS=no
1481 DEFAULT_wxUSE_MINIFRAME=no
1482 DEFAULT_wxUSE_HTML=no
1483 DEFAULT_wxUSE_FILESYSTEM=no
1484 DEFAULT_wxUSE_FS_INET=no
1485 DEFAULT_wxUSE_FS_ZIP=no
1486 DEFAULT_wxUSE_BUSYINFO=no
1487 DEFAULT_wxUSE_ZIPSTREAM=no
1488 DEFAULT_wxUSE_VALIDATORS=no
1489
1490 DEFAULT_wxUSE_ACCEL=no
1491 DEFAULT_wxUSE_BUTTON=no
1492 DEFAULT_wxUSE_BMPBUTTON=no
1493 DEFAULT_wxUSE_CALCTRL=no
1494 DEFAULT_wxUSE_CARET=no
1495 DEFAULT_wxUSE_CHECKBOX=no
1496 DEFAULT_wxUSE_CHECKLST=no
1497 DEFAULT_wxUSE_CHOICE=no
1498 DEFAULT_wxUSE_COMBOBOX=no
1499 DEFAULT_wxUSE_GAUGE=no
1500 DEFAULT_wxUSE_GRID=no
1501 DEFAULT_wxUSE_NEW_GRID=no
1502 DEFAULT_wxUSE_IMAGLIST=no
1503 DEFAULT_wxUSE_LISTBOX=no
1504 DEFAULT_wxUSE_LISTCTRL=no
1505 DEFAULT_wxUSE_NOTEBOOK=no
1506 DEFAULT_wxUSE_PROPSHEET=no
1507 DEFAULT_wxUSE_RADIOBOX=no
1508 DEFAULT_wxUSE_RADIOBTN=no
1509 DEFAULT_wxUSE_SASH=no
1510 DEFAULT_wxUSE_SCROLLBAR=no
1511 DEFAULT_wxUSE_SLIDER=no
1512 DEFAULT_wxUSE_SPINBTN=no
1513 DEFAULT_wxUSE_SPINCTRL=no
1514 DEFAULT_wxUSE_SPLITTER=no
1515 DEFAULT_wxUSE_STATBMP=no
1516 DEFAULT_wxUSE_STATBOX=no
1517 DEFAULT_wxUSE_STATLINE=no
1518 DEFAULT_wxUSE_STATTEXT=no
1519 DEFAULT_wxUSE_STATUSBAR=yes
1520 DEFAULT_wxUSE_TABDIALOG=no
1521 DEFAULT_wxUSE_TEXTCTRL=no
1522 DEFAULT_wxUSE_TOGGLEBTN=no
1523 DEFAULT_wxUSE_TOOLBAR=no
1524 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1525 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1526 DEFAULT_wxUSE_TREECTRL=no
1527 DEFAULT_wxUSE_POPUPWIN=no
1528
1529 DEFAULT_wxUSE_UNICODE=no
1530 DEFAULT_wxUSE_WCSRTOMBS=no
1531
1532 DEFAULT_wxUSE_IMAGE=no
1533 DEFAULT_wxUSE_GIF=no
1534 DEFAULT_wxUSE_PCX=no
1535 DEFAULT_wxUSE_PNM=no
1536 DEFAULT_wxUSE_XPM=no
1537 else
1538 DEFAULT_wxUSE_UNIVERSAL=no
1539
1540 DEFAULT_wxUSE_THREADS=yes
1541
1542 DEFAULT_wxUSE_SHARED=yes
1543 DEFAULT_wxUSE_BURNT_NAME=no
1544 DEFAULT_wxUSE_OPTIMISE=yes
1545 DEFAULT_wxUSE_PROFILE=no
1546 DEFAULT_wxUSE_NO_DEPS=no
1547 DEFAULT_wxUSE_NO_RTTI=no
1548 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1549 DEFAULT_wxUSE_PERMISSIVE=no
1550 DEFAULT_wxUSE_DEBUG_FLAG=no
1551 DEFAULT_wxUSE_DEBUG_INFO=no
1552 DEFAULT_wxUSE_DEBUG_GDB=no
1553 DEFAULT_wxUSE_MEM_TRACING=no
1554 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1555 DEFAULT_wxUSE_DMALLOC=no
1556 DEFAULT_wxUSE_APPLE_IEEE=yes
1557
1558 DEFAULT_wxUSE_LOG=yes
1559 DEFAULT_wxUSE_LOGWINDOW=yes
1560 DEFAULT_wxUSE_LOGGUI=yes
1561
1562 DEFAULT_wxUSE_GUI=yes
1563
1564 DEFAULT_wxUSE_REGEX=yes
1565 DEFAULT_wxUSE_ZLIB=yes
1566 DEFAULT_wxUSE_LIBPNG=yes
1567 DEFAULT_wxUSE_LIBJPEG=yes
1568 DEFAULT_wxUSE_LIBTIFF=yes
1569 DEFAULT_wxUSE_ODBC=no
1570 DEFAULT_wxUSE_FREETYPE=no
1571 DEFAULT_wxUSE_OPENGL=no
1572
1573 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1574 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1575 DEFAULT_wxUSE_STD_IOSTREAM=no
1576 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1577 DEFAULT_wxUSE_DATETIME=yes
1578 DEFAULT_wxUSE_TIMEDATE=no
1579 DEFAULT_wxUSE_TIMER=yes
1580 DEFAULT_wxUSE_STOPWATCH=yes
1581 DEFAULT_wxUSE_FILE=yes
1582 DEFAULT_wxUSE_FFILE=yes
1583 DEFAULT_wxUSE_TEXTFILE=yes
1584 DEFAULT_wxUSE_WAVE=no
1585 DEFAULT_wxUSE_INTL=yes
1586 DEFAULT_wxUSE_CONFIG=yes
1587 DEFAULT_wxUSE_FONTMAP=yes
1588 DEFAULT_wxUSE_STREAMS=yes
1589 DEFAULT_wxUSE_SOCKETS=yes
1590 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1591 DEFAULT_wxUSE_SERIAL=yes
1592 DEFAULT_wxUSE_JOYSTICK=yes
1593 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1594 DEFAULT_wxUSE_LONGLONG=yes
1595 DEFAULT_wxUSE_GEOMETRY=yes
1596
1597 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1598 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1599 DEFAULT_wxUSE_POSTSCRIPT=yes
1600
1601 DEFAULT_wxUSE_X_RESOURCES=no
1602 DEFAULT_wxUSE_CLIPBOARD=yes
1603 DEFAULT_wxUSE_TOOLTIPS=yes
1604 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1605 DEFAULT_wxUSE_DRAGIMAGE=yes
1606 DEFAULT_wxUSE_SPLINES=yes
1607
1608 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1609 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1610 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1611
1612 DEFAULT_wxUSE_PROLOGIO=yes
1613 DEFAULT_wxUSE_RESOURCES=yes
1614 DEFAULT_wxUSE_CONSTRAINTS=yes
1615 DEFAULT_wxUSE_IPC=yes
1616 DEFAULT_wxUSE_HELP=yes
1617 DEFAULT_wxUSE_MS_HTML_HELP=yes
1618 DEFAULT_wxUSE_WXHTML_HELP=yes
1619 DEFAULT_wxUSE_TREELAYOUT=yes
1620 DEFAULT_wxUSE_METAFILE=yes
1621 DEFAULT_wxUSE_MIMETYPE=yes
1622 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1623
1624 DEFAULT_wxUSE_COMMONDLGS=yes
1625 DEFAULT_wxUSE_CHOICEDLG=yes
1626 DEFAULT_wxUSE_COLOURDLG=yes
1627 DEFAULT_wxUSE_DIRDLG=yes
1628 DEFAULT_wxUSE_FILEDLG=yes
1629 DEFAULT_wxUSE_FINDREPLDLG=yes
1630 DEFAULT_wxUSE_FONTDLG=yes
1631 DEFAULT_wxUSE_MSGDLG=yes
1632 DEFAULT_wxUSE_NUMBERDLG=yes
1633 DEFAULT_wxUSE_TEXTDLG=yes
1634 DEFAULT_wxUSE_STARTUP_TIPS=yes
1635 DEFAULT_wxUSE_PROGRESSDLG=yes
1636 DEFAULT_wxUSE_WIZARDDLG=yes
1637
1638 DEFAULT_wxUSE_MENUS=yes
1639 DEFAULT_wxUSE_MINIFRAME=yes
1640 DEFAULT_wxUSE_HTML=yes
1641 DEFAULT_wxUSE_FILESYSTEM=yes
1642 DEFAULT_wxUSE_FS_INET=yes
1643 DEFAULT_wxUSE_FS_ZIP=yes
1644 DEFAULT_wxUSE_BUSYINFO=yes
1645 DEFAULT_wxUSE_ZIPSTREAM=yes
1646 DEFAULT_wxUSE_VALIDATORS=yes
1647
1648 DEFAULT_wxUSE_ACCEL=yes
1649 DEFAULT_wxUSE_BUTTON=yes
1650 DEFAULT_wxUSE_BMPBUTTON=yes
1651 DEFAULT_wxUSE_CALCTRL=yes
1652 DEFAULT_wxUSE_CARET=yes
1653 DEFAULT_wxUSE_CHECKBOX=yes
1654 DEFAULT_wxUSE_CHECKLST=yes
1655 DEFAULT_wxUSE_CHOICE=yes
1656 DEFAULT_wxUSE_COMBOBOX=yes
1657 DEFAULT_wxUSE_GAUGE=yes
1658 DEFAULT_wxUSE_GRID=yes
1659 DEFAULT_wxUSE_NEW_GRID=yes
1660 DEFAULT_wxUSE_IMAGLIST=yes
1661 DEFAULT_wxUSE_LISTBOX=yes
1662 DEFAULT_wxUSE_LISTCTRL=yes
1663 DEFAULT_wxUSE_NOTEBOOK=yes
1664 DEFAULT_wxUSE_PROPSHEET=yes
1665 DEFAULT_wxUSE_RADIOBOX=yes
1666 DEFAULT_wxUSE_RADIOBTN=yes
1667 DEFAULT_wxUSE_SASH=yes
1668 DEFAULT_wxUSE_SCROLLBAR=yes
1669 DEFAULT_wxUSE_SLIDER=yes
1670 DEFAULT_wxUSE_SPINBTN=yes
1671 DEFAULT_wxUSE_SPINCTRL=yes
1672 DEFAULT_wxUSE_SPLITTER=yes
1673 DEFAULT_wxUSE_STATBMP=yes
1674 DEFAULT_wxUSE_STATBOX=yes
1675 DEFAULT_wxUSE_STATLINE=yes
1676 DEFAULT_wxUSE_STATTEXT=yes
1677 DEFAULT_wxUSE_STATUSBAR=yes
1678 DEFAULT_wxUSE_TABDIALOG=no
1679 DEFAULT_wxUSE_TEXTCTRL=yes
1680 DEFAULT_wxUSE_TOGGLEBTN=yes
1681 DEFAULT_wxUSE_TOOLBAR=yes
1682 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1683 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1684 DEFAULT_wxUSE_TREECTRL=yes
1685 DEFAULT_wxUSE_POPUPWIN=yes
1686
1687 DEFAULT_wxUSE_UNICODE=no
1688 DEFAULT_wxUSE_WCSRTOMBS=no
1689
1690 DEFAULT_wxUSE_IMAGE=yes
1691 DEFAULT_wxUSE_GIF=yes
1692 DEFAULT_wxUSE_PCX=yes
1693 DEFAULT_wxUSE_PNM=yes
1694 DEFAULT_wxUSE_XPM=yes
1695 fi
1696
1697
1698
1699 for toolkit in `echo $ALL_TOOLKITS`; do
1700 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1701 if test "x$LINE" != x ; then
1702 has_toolkit_in_cache=1
1703 eval "DEFAULT_$LINE"
1704 eval "CACHE_$toolkit=1"
1705 fi
1706 done
1707
1708
1709
1710 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1711 echo "configure:1712: checking for --enable-gui" >&5
1712 no_cache=0
1713 # Check whether --enable-gui or --disable-gui was given.
1714 if test "${enable_gui+set}" = set; then
1715 enableval="$enable_gui"
1716
1717 if test "$enableval" = yes; then
1718 ac_cv_use_gui='wxUSE_GUI=yes'
1719 else
1720 ac_cv_use_gui='wxUSE_GUI=no'
1721 fi
1722
1723 else
1724
1725 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1726 if test "x$LINE" != x ; then
1727 eval "DEFAULT_$LINE"
1728 else
1729 no_cache=1
1730 fi
1731
1732 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1733
1734 fi
1735
1736
1737 eval "$ac_cv_use_gui"
1738 if test "$no_cache" != 1; then
1739 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1740 fi
1741
1742 if test "$wxUSE_GUI" = yes; then
1743 echo "$ac_t""yes" 1>&6
1744 else
1745 echo "$ac_t""no" 1>&6
1746 fi
1747
1748
1749 if test "$wxUSE_GUI" = "yes"; then
1750
1751
1752 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1753 echo "configure:1754: checking for --enable-universal" >&5
1754 no_cache=0
1755 # Check whether --enable-universal or --disable-universal was given.
1756 if test "${enable_universal+set}" = set; then
1757 enableval="$enable_universal"
1758
1759 if test "$enableval" = yes; then
1760 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1761 else
1762 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1763 fi
1764
1765 else
1766
1767 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1768 if test "x$LINE" != x ; then
1769 eval "DEFAULT_$LINE"
1770 else
1771 no_cache=1
1772 fi
1773
1774 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1775
1776 fi
1777
1778
1779 eval "$ac_cv_use_universal"
1780 if test "$no_cache" != 1; then
1781 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1782 fi
1783
1784 if test "$wxUSE_UNIVERSAL" = yes; then
1785 echo "$ac_t""yes" 1>&6
1786 else
1787 echo "$ac_t""no" 1>&6
1788 fi
1789
1790 # Check whether --with-gtk or --without-gtk was given.
1791 if test "${with_gtk+set}" = set; then
1792 withval="$with_gtk"
1793 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1794 fi
1795
1796 # Check whether --with-motif or --without-motif was given.
1797 if test "${with_motif+set}" = set; then
1798 withval="$with_motif"
1799 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1800 fi
1801
1802 # Check whether --with-mac or --without-mac was given.
1803 if test "${with_mac+set}" = set; then
1804 withval="$with_mac"
1805 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1806 fi
1807
1808 # Check whether --with-wine or --without-wine was given.
1809 if test "${with_wine+set}" = set; then
1810 withval="$with_wine"
1811 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1812 fi
1813
1814 # Check whether --with-cygwin or --without-cygwin was given.
1815 if test "${with_cygwin+set}" = set; then
1816 withval="$with_cygwin"
1817 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1818 fi
1819
1820 # Check whether --with-mingw or --without-mingw was given.
1821 if test "${with_mingw+set}" = set; then
1822 withval="$with_mingw"
1823 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1824 fi
1825
1826 # Check whether --with-pm or --without-pm was given.
1827 if test "${with_pm+set}" = set; then
1828 withval="$with_pm"
1829 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1830 fi
1831
1832 # Check whether --with-mgl or --without-mgl was given.
1833 if test "${with_mgl+set}" = set; then
1834 withval="$with_mgl"
1835 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1836 fi
1837
1838
1839 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1840 if test "${enable_gtk2+set}" = set; then
1841 enableval="$enable_gtk2"
1842 wxUSE_GTK2=1
1843 else
1844 wxUSE_GTK2=0
1845 fi
1846
1847
1848
1849 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1850 echo "configure:1851: checking for --with-libpng" >&5
1851 no_cache=0
1852 # Check whether --with-libpng or --without-libpng was given.
1853 if test "${with_libpng+set}" = set; then
1854 withval="$with_libpng"
1855
1856 if test "$withval" = yes; then
1857 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1858 elif test "$withval" = no; then
1859 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1860 elif test "$withval" = sys; then
1861 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1862 else
1863 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1864 fi
1865
1866 else
1867
1868 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1869 if test "x$LINE" != x ; then
1870 eval "DEFAULT_$LINE"
1871 else
1872 no_cache=1
1873 fi
1874
1875 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1876
1877 fi
1878
1879
1880 eval "$ac_cv_use_libpng"
1881 if test "$no_cache" != 1; then
1882 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1883 fi
1884
1885 if test "$wxUSE_LIBPNG" = yes; then
1886 echo "$ac_t""yes" 1>&6
1887 elif test "$wxUSE_LIBPNG" = no; then
1888 echo "$ac_t""no" 1>&6
1889 elif test "$wxUSE_LIBPNG" = sys; then
1890 echo "$ac_t""system version" 1>&6
1891 else
1892 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1893 fi
1894
1895
1896 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1897 echo "configure:1898: checking for --with-libjpeg" >&5
1898 no_cache=0
1899 # Check whether --with-libjpeg or --without-libjpeg was given.
1900 if test "${with_libjpeg+set}" = set; then
1901 withval="$with_libjpeg"
1902
1903 if test "$withval" = yes; then
1904 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1905 elif test "$withval" = no; then
1906 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1907 elif test "$withval" = sys; then
1908 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1909 else
1910 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1911 fi
1912
1913 else
1914
1915 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1916 if test "x$LINE" != x ; then
1917 eval "DEFAULT_$LINE"
1918 else
1919 no_cache=1
1920 fi
1921
1922 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1923
1924 fi
1925
1926
1927 eval "$ac_cv_use_libjpeg"
1928 if test "$no_cache" != 1; then
1929 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1930 fi
1931
1932 if test "$wxUSE_LIBJPEG" = yes; then
1933 echo "$ac_t""yes" 1>&6
1934 elif test "$wxUSE_LIBJPEG" = no; then
1935 echo "$ac_t""no" 1>&6
1936 elif test "$wxUSE_LIBJPEG" = sys; then
1937 echo "$ac_t""system version" 1>&6
1938 else
1939 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1940 fi
1941
1942
1943 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
1944 echo "configure:1945: checking for --with-libtiff" >&5
1945 no_cache=0
1946 # Check whether --with-libtiff or --without-libtiff was given.
1947 if test "${with_libtiff+set}" = set; then
1948 withval="$with_libtiff"
1949
1950 if test "$withval" = yes; then
1951 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1952 elif test "$withval" = no; then
1953 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1954 elif test "$withval" = sys; then
1955 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1956 else
1957 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1958 fi
1959
1960 else
1961
1962 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1963 if test "x$LINE" != x ; then
1964 eval "DEFAULT_$LINE"
1965 else
1966 no_cache=1
1967 fi
1968
1969 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1970
1971 fi
1972
1973
1974 eval "$ac_cv_use_libtiff"
1975 if test "$no_cache" != 1; then
1976 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1977 fi
1978
1979 if test "$wxUSE_LIBTIFF" = yes; then
1980 echo "$ac_t""yes" 1>&6
1981 elif test "$wxUSE_LIBTIFF" = no; then
1982 echo "$ac_t""no" 1>&6
1983 elif test "$wxUSE_LIBTIFF" = sys; then
1984 echo "$ac_t""system version" 1>&6
1985 else
1986 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1987 fi
1988
1989
1990 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
1991 echo "configure:1992: checking for --with-freetype" >&5
1992 no_cache=0
1993 # Check whether --with-freetype or --without-freetype was given.
1994 if test "${with_freetype+set}" = set; then
1995 withval="$with_freetype"
1996
1997 if test "$withval" = yes; then
1998 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1999 elif test "$withval" = no; then
2000 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2001 elif test "$withval" = sys; then
2002 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
2003 else
2004 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
2005 fi
2006
2007 else
2008
2009 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2010 if test "x$LINE" != x ; then
2011 eval "DEFAULT_$LINE"
2012 else
2013 no_cache=1
2014 fi
2015
2016 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
2017
2018 fi
2019
2020
2021 eval "$ac_cv_use_freetype"
2022 if test "$no_cache" != 1; then
2023 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2024 fi
2025
2026 if test "$wxUSE_FREETYPE" = yes; then
2027 echo "$ac_t""yes" 1>&6
2028 elif test "$wxUSE_FREETYPE" = no; then
2029 echo "$ac_t""no" 1>&6
2030 elif test "$wxUSE_FREETYPE" = sys; then
2031 echo "$ac_t""system version" 1>&6
2032 else
2033 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
2034 fi
2035
2036
2037 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2038 echo "configure:2039: checking for --with-opengl" >&5
2039 no_cache=0
2040 # Check whether --with-opengl or --without-opengl was given.
2041 if test "${with_opengl+set}" = set; then
2042 withval="$with_opengl"
2043
2044 if test "$withval" = yes; then
2045 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2046 else
2047 ac_cv_use_opengl='wxUSE_OPENGL=no'
2048 fi
2049
2050 else
2051
2052 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2053 if test "x$LINE" != x ; then
2054 eval "DEFAULT_$LINE"
2055 else
2056 no_cache=1
2057 fi
2058
2059 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2060
2061 fi
2062
2063
2064 eval "$ac_cv_use_opengl"
2065 if test "$no_cache" != 1; then
2066 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2067 fi
2068
2069 if test "$wxUSE_OPENGL" = yes; then
2070 echo "$ac_t""yes" 1>&6
2071 else
2072 echo "$ac_t""no" 1>&6
2073 fi
2074
2075
2076 fi
2077
2078
2079 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2080 echo "configure:2081: checking for --with-dmalloc" >&5
2081 no_cache=0
2082 # Check whether --with-dmalloc or --without-dmalloc was given.
2083 if test "${with_dmalloc+set}" = set; then
2084 withval="$with_dmalloc"
2085
2086 if test "$withval" = yes; then
2087 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2088 else
2089 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2090 fi
2091
2092 else
2093
2094 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2095 if test "x$LINE" != x ; then
2096 eval "DEFAULT_$LINE"
2097 else
2098 no_cache=1
2099 fi
2100
2101 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2102
2103 fi
2104
2105
2106 eval "$ac_cv_use_dmalloc"
2107 if test "$no_cache" != 1; then
2108 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2109 fi
2110
2111 if test "$wxUSE_DMALLOC" = yes; then
2112 echo "$ac_t""yes" 1>&6
2113 else
2114 echo "$ac_t""no" 1>&6
2115 fi
2116
2117
2118 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2119 echo "configure:2120: checking for --with-regex" >&5
2120 no_cache=0
2121 # Check whether --with-regex or --without-regex was given.
2122 if test "${with_regex+set}" = set; then
2123 withval="$with_regex"
2124
2125 if test "$withval" = yes; then
2126 ac_cv_use_regex='wxUSE_REGEX=yes'
2127 elif test "$withval" = no; then
2128 ac_cv_use_regex='wxUSE_REGEX=no'
2129 elif test "$withval" = sys; then
2130 ac_cv_use_regex='wxUSE_REGEX=sys'
2131 else
2132 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2133 fi
2134
2135 else
2136
2137 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2138 if test "x$LINE" != x ; then
2139 eval "DEFAULT_$LINE"
2140 else
2141 no_cache=1
2142 fi
2143
2144 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2145
2146 fi
2147
2148
2149 eval "$ac_cv_use_regex"
2150 if test "$no_cache" != 1; then
2151 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2152 fi
2153
2154 if test "$wxUSE_REGEX" = yes; then
2155 echo "$ac_t""yes" 1>&6
2156 elif test "$wxUSE_REGEX" = no; then
2157 echo "$ac_t""no" 1>&6
2158 elif test "$wxUSE_REGEX" = sys; then
2159 echo "$ac_t""system version" 1>&6
2160 else
2161 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2162 fi
2163
2164
2165 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2166 echo "configure:2167: checking for --with-zlib" >&5
2167 no_cache=0
2168 # Check whether --with-zlib or --without-zlib was given.
2169 if test "${with_zlib+set}" = set; then
2170 withval="$with_zlib"
2171
2172 if test "$withval" = yes; then
2173 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2174 elif test "$withval" = no; then
2175 ac_cv_use_zlib='wxUSE_ZLIB=no'
2176 elif test "$withval" = sys; then
2177 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2178 else
2179 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2180 fi
2181
2182 else
2183
2184 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2185 if test "x$LINE" != x ; then
2186 eval "DEFAULT_$LINE"
2187 else
2188 no_cache=1
2189 fi
2190
2191 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2192
2193 fi
2194
2195
2196 eval "$ac_cv_use_zlib"
2197 if test "$no_cache" != 1; then
2198 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2199 fi
2200
2201 if test "$wxUSE_ZLIB" = yes; then
2202 echo "$ac_t""yes" 1>&6
2203 elif test "$wxUSE_ZLIB" = no; then
2204 echo "$ac_t""no" 1>&6
2205 elif test "$wxUSE_ZLIB" = sys; then
2206 echo "$ac_t""system version" 1>&6
2207 else
2208 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2209 fi
2210
2211
2212 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2213 echo "configure:2214: checking for --with-odbc" >&5
2214 no_cache=0
2215 # Check whether --with-odbc or --without-odbc was given.
2216 if test "${with_odbc+set}" = set; then
2217 withval="$with_odbc"
2218
2219 if test "$withval" = yes; then
2220 ac_cv_use_odbc='wxUSE_ODBC=yes'
2221 else
2222 ac_cv_use_odbc='wxUSE_ODBC=no'
2223 fi
2224
2225 else
2226
2227 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2228 if test "x$LINE" != x ; then
2229 eval "DEFAULT_$LINE"
2230 else
2231 no_cache=1
2232 fi
2233
2234 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2235
2236 fi
2237
2238
2239 eval "$ac_cv_use_odbc"
2240 if test "$no_cache" != 1; then
2241 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2242 fi
2243
2244 if test "$wxUSE_ODBC" = yes; then
2245 echo "$ac_t""yes" 1>&6
2246 else
2247 echo "$ac_t""no" 1>&6
2248 fi
2249
2250
2251
2252
2253
2254 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2255 echo "configure:2256: checking for --enable-shared" >&5
2256 no_cache=0
2257 # Check whether --enable-shared or --disable-shared was given.
2258 if test "${enable_shared+set}" = set; then
2259 enableval="$enable_shared"
2260
2261 if test "$enableval" = yes; then
2262 ac_cv_use_shared='wxUSE_SHARED=yes'
2263 else
2264 ac_cv_use_shared='wxUSE_SHARED=no'
2265 fi
2266
2267 else
2268
2269 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2270 if test "x$LINE" != x ; then
2271 eval "DEFAULT_$LINE"
2272 else
2273 no_cache=1
2274 fi
2275
2276 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2277
2278 fi
2279
2280
2281 eval "$ac_cv_use_shared"
2282 if test "$no_cache" != 1; then
2283 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2284 fi
2285
2286 if test "$wxUSE_SHARED" = yes; then
2287 echo "$ac_t""yes" 1>&6
2288 else
2289 echo "$ac_t""no" 1>&6
2290 fi
2291
2292
2293 echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6
2294 echo "configure:2295: checking for --enable-burnt_name" >&5
2295 no_cache=0
2296 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2297 if test "${enable_burnt_name+set}" = set; then
2298 enableval="$enable_burnt_name"
2299
2300 if test "$enableval" = yes; then
2301 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2302 else
2303 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2304 fi
2305
2306 else
2307
2308 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2309 if test "x$LINE" != x ; then
2310 eval "DEFAULT_$LINE"
2311 else
2312 no_cache=1
2313 fi
2314
2315 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
2316
2317 fi
2318
2319
2320 eval "$ac_cv_use_burnt_name"
2321 if test "$no_cache" != 1; then
2322 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2323 fi
2324
2325 if test "$wxUSE_BURNT_NAME" = yes; then
2326 echo "$ac_t""yes" 1>&6
2327 else
2328 echo "$ac_t""no" 1>&6
2329 fi
2330
2331
2332 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2333 echo "configure:2334: checking for --enable-optimise" >&5
2334 no_cache=0
2335 # Check whether --enable-optimise or --disable-optimise was given.
2336 if test "${enable_optimise+set}" = set; then
2337 enableval="$enable_optimise"
2338
2339 if test "$enableval" = yes; then
2340 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2341 else
2342 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2343 fi
2344
2345 else
2346
2347 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2348 if test "x$LINE" != x ; then
2349 eval "DEFAULT_$LINE"
2350 else
2351 no_cache=1
2352 fi
2353
2354 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2355
2356 fi
2357
2358
2359 eval "$ac_cv_use_optimise"
2360 if test "$no_cache" != 1; then
2361 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2362 fi
2363
2364 if test "$wxUSE_OPTIMISE" = yes; then
2365 echo "$ac_t""yes" 1>&6
2366 else
2367 echo "$ac_t""no" 1>&6
2368 fi
2369
2370
2371 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2372 echo "configure:2373: checking for --enable-debug" >&5
2373 no_cache=0
2374 # Check whether --enable-debug or --disable-debug was given.
2375 if test "${enable_debug+set}" = set; then
2376 enableval="$enable_debug"
2377
2378 if test "$enableval" = yes; then
2379 ac_cv_use_debug='wxUSE_DEBUG=yes'
2380 else
2381 ac_cv_use_debug='wxUSE_DEBUG=no'
2382 fi
2383
2384 else
2385
2386 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2387 if test "x$LINE" != x ; then
2388 eval "DEFAULT_$LINE"
2389 else
2390 no_cache=1
2391 fi
2392
2393 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2394
2395 fi
2396
2397
2398 eval "$ac_cv_use_debug"
2399 if test "$no_cache" != 1; then
2400 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2401 fi
2402
2403 if test "$wxUSE_DEBUG" = yes; then
2404 echo "$ac_t""yes" 1>&6
2405 else
2406 echo "$ac_t""no" 1>&6
2407 fi
2408
2409
2410 if test "$wxUSE_DEBUG" = "yes"; then
2411 DEFAULT_wxUSE_DEBUG_FLAG=yes
2412 DEFAULT_wxUSE_DEBUG_INFO=yes
2413 elif test "$wxUSE_DEBUG" = "no"; then
2414 DEFAULT_wxUSE_DEBUG_FLAG=no
2415 DEFAULT_wxUSE_DEBUG_INFO=no
2416 fi
2417
2418
2419 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2420 echo "configure:2421: checking for --enable-debug_flag" >&5
2421 no_cache=0
2422 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2423 if test "${enable_debug_flag+set}" = set; then
2424 enableval="$enable_debug_flag"
2425
2426 if test "$enableval" = yes; then
2427 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2428 else
2429 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2430 fi
2431
2432 else
2433
2434 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2435 if test "x$LINE" != x ; then
2436 eval "DEFAULT_$LINE"
2437 else
2438 no_cache=1
2439 fi
2440
2441 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2442
2443 fi
2444
2445
2446 eval "$ac_cv_use_debug_flag"
2447 if test "$no_cache" != 1; then
2448 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2449 fi
2450
2451 if test "$wxUSE_DEBUG_FLAG" = yes; then
2452 echo "$ac_t""yes" 1>&6
2453 else
2454 echo "$ac_t""no" 1>&6
2455 fi
2456
2457
2458 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2459 echo "configure:2460: checking for --enable-debug_info" >&5
2460 no_cache=0
2461 # Check whether --enable-debug_info or --disable-debug_info was given.
2462 if test "${enable_debug_info+set}" = set; then
2463 enableval="$enable_debug_info"
2464
2465 if test "$enableval" = yes; then
2466 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2467 else
2468 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2469 fi
2470
2471 else
2472
2473 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2474 if test "x$LINE" != x ; then
2475 eval "DEFAULT_$LINE"
2476 else
2477 no_cache=1
2478 fi
2479
2480 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2481
2482 fi
2483
2484
2485 eval "$ac_cv_use_debug_info"
2486 if test "$no_cache" != 1; then
2487 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2488 fi
2489
2490 if test "$wxUSE_DEBUG_INFO" = yes; then
2491 echo "$ac_t""yes" 1>&6
2492 else
2493 echo "$ac_t""no" 1>&6
2494 fi
2495
2496
2497 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2498 echo "configure:2499: checking for --enable-debug_gdb" >&5
2499 no_cache=0
2500 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2501 if test "${enable_debug_gdb+set}" = set; then
2502 enableval="$enable_debug_gdb"
2503
2504 if test "$enableval" = yes; then
2505 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2506 else
2507 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2508 fi
2509
2510 else
2511
2512 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2513 if test "x$LINE" != x ; then
2514 eval "DEFAULT_$LINE"
2515 else
2516 no_cache=1
2517 fi
2518
2519 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2520
2521 fi
2522
2523
2524 eval "$ac_cv_use_debug_gdb"
2525 if test "$no_cache" != 1; then
2526 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2527 fi
2528
2529 if test "$wxUSE_DEBUG_GDB" = yes; then
2530 echo "$ac_t""yes" 1>&6
2531 else
2532 echo "$ac_t""no" 1>&6
2533 fi
2534
2535
2536 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2537 echo "configure:2538: checking for --enable-debug_cntxt" >&5
2538 no_cache=0
2539 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2540 if test "${enable_debug_cntxt+set}" = set; then
2541 enableval="$enable_debug_cntxt"
2542
2543 if test "$enableval" = yes; then
2544 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2545 else
2546 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2547 fi
2548
2549 else
2550
2551 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2552 if test "x$LINE" != x ; then
2553 eval "DEFAULT_$LINE"
2554 else
2555 no_cache=1
2556 fi
2557
2558 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2559
2560 fi
2561
2562
2563 eval "$ac_cv_use_debug_cntxt"
2564 if test "$no_cache" != 1; then
2565 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2566 fi
2567
2568 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2569 echo "$ac_t""yes" 1>&6
2570 else
2571 echo "$ac_t""no" 1>&6
2572 fi
2573
2574
2575 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2576 echo "configure:2577: checking for --enable-mem_tracing" >&5
2577 no_cache=0
2578 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2579 if test "${enable_mem_tracing+set}" = set; then
2580 enableval="$enable_mem_tracing"
2581
2582 if test "$enableval" = yes; then
2583 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2584 else
2585 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2586 fi
2587
2588 else
2589
2590 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2591 if test "x$LINE" != x ; then
2592 eval "DEFAULT_$LINE"
2593 else
2594 no_cache=1
2595 fi
2596
2597 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2598
2599 fi
2600
2601
2602 eval "$ac_cv_use_mem_tracing"
2603 if test "$no_cache" != 1; then
2604 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2605 fi
2606
2607 if test "$wxUSE_MEM_TRACING" = yes; then
2608 echo "$ac_t""yes" 1>&6
2609 else
2610 echo "$ac_t""no" 1>&6
2611 fi
2612
2613
2614 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2615 echo "configure:2616: checking for --enable-profile" >&5
2616 no_cache=0
2617 # Check whether --enable-profile or --disable-profile was given.
2618 if test "${enable_profile+set}" = set; then
2619 enableval="$enable_profile"
2620
2621 if test "$enableval" = yes; then
2622 ac_cv_use_profile='wxUSE_PROFILE=yes'
2623 else
2624 ac_cv_use_profile='wxUSE_PROFILE=no'
2625 fi
2626
2627 else
2628
2629 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2630 if test "x$LINE" != x ; then
2631 eval "DEFAULT_$LINE"
2632 else
2633 no_cache=1
2634 fi
2635
2636 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2637
2638 fi
2639
2640
2641 eval "$ac_cv_use_profile"
2642 if test "$no_cache" != 1; then
2643 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2644 fi
2645
2646 if test "$wxUSE_PROFILE" = yes; then
2647 echo "$ac_t""yes" 1>&6
2648 else
2649 echo "$ac_t""no" 1>&6
2650 fi
2651
2652
2653 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2654 echo "configure:2655: checking for --enable-no_rtti" >&5
2655 no_cache=0
2656 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2657 if test "${enable_no_rtti+set}" = set; then
2658 enableval="$enable_no_rtti"
2659
2660 if test "$enableval" = yes; then
2661 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2662 else
2663 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2664 fi
2665
2666 else
2667
2668 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2669 if test "x$LINE" != x ; then
2670 eval "DEFAULT_$LINE"
2671 else
2672 no_cache=1
2673 fi
2674
2675 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2676
2677 fi
2678
2679
2680 eval "$ac_cv_use_no_rtti"
2681 if test "$no_cache" != 1; then
2682 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2683 fi
2684
2685 if test "$wxUSE_NO_RTTI" = yes; then
2686 echo "$ac_t""yes" 1>&6
2687 else
2688 echo "$ac_t""no" 1>&6
2689 fi
2690
2691
2692 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2693 echo "configure:2694: checking for --enable-no_exceptions" >&5
2694 no_cache=0
2695 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2696 if test "${enable_no_exceptions+set}" = set; then
2697 enableval="$enable_no_exceptions"
2698
2699 if test "$enableval" = yes; then
2700 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2701 else
2702 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2703 fi
2704
2705 else
2706
2707 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2708 if test "x$LINE" != x ; then
2709 eval "DEFAULT_$LINE"
2710 else
2711 no_cache=1
2712 fi
2713
2714 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2715
2716 fi
2717
2718
2719 eval "$ac_cv_use_no_exceptions"
2720 if test "$no_cache" != 1; then
2721 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2722 fi
2723
2724 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2725 echo "$ac_t""yes" 1>&6
2726 else
2727 echo "$ac_t""no" 1>&6
2728 fi
2729
2730
2731 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2732 echo "configure:2733: checking for --enable-permissive" >&5
2733 no_cache=0
2734 # Check whether --enable-permissive or --disable-permissive was given.
2735 if test "${enable_permissive+set}" = set; then
2736 enableval="$enable_permissive"
2737
2738 if test "$enableval" = yes; then
2739 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2740 else
2741 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2742 fi
2743
2744 else
2745
2746 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2747 if test "x$LINE" != x ; then
2748 eval "DEFAULT_$LINE"
2749 else
2750 no_cache=1
2751 fi
2752
2753 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2754
2755 fi
2756
2757
2758 eval "$ac_cv_use_permissive"
2759 if test "$no_cache" != 1; then
2760 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2761 fi
2762
2763 if test "$wxUSE_PERMISSIVE" = yes; then
2764 echo "$ac_t""yes" 1>&6
2765 else
2766 echo "$ac_t""no" 1>&6
2767 fi
2768
2769
2770 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2771 echo "configure:2772: checking for --enable-no_deps" >&5
2772 no_cache=0
2773 # Check whether --enable-no_deps or --disable-no_deps was given.
2774 if test "${enable_no_deps+set}" = set; then
2775 enableval="$enable_no_deps"
2776
2777 if test "$enableval" = yes; then
2778 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2779 else
2780 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2781 fi
2782
2783 else
2784
2785 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2786 if test "x$LINE" != x ; then
2787 eval "DEFAULT_$LINE"
2788 else
2789 no_cache=1
2790 fi
2791
2792 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2793
2794 fi
2795
2796
2797 eval "$ac_cv_use_no_deps"
2798 if test "$no_cache" != 1; then
2799 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2800 fi
2801
2802 if test "$wxUSE_NO_DEPS" = yes; then
2803 echo "$ac_t""yes" 1>&6
2804 else
2805 echo "$ac_t""no" 1>&6
2806 fi
2807
2808
2809
2810 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2811 echo "configure:2812: checking for --enable-compat20" >&5
2812 no_cache=0
2813 # Check whether --enable-compat20 or --disable-compat20 was given.
2814 if test "${enable_compat20+set}" = set; then
2815 enableval="$enable_compat20"
2816
2817 if test "$enableval" = yes; then
2818 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2819 else
2820 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2821 fi
2822
2823 else
2824
2825 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2826 if test "x$LINE" != x ; then
2827 eval "DEFAULT_$LINE"
2828 else
2829 no_cache=1
2830 fi
2831
2832 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2833
2834 fi
2835
2836
2837 eval "$ac_cv_use_compat20"
2838 if test "$no_cache" != 1; then
2839 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2840 fi
2841
2842 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2843 echo "$ac_t""yes" 1>&6
2844 else
2845 echo "$ac_t""no" 1>&6
2846 fi
2847
2848
2849 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2850 echo "configure:2851: checking for --enable-compat22" >&5
2851 no_cache=0
2852 # Check whether --enable-compat22 or --disable-compat22 was given.
2853 if test "${enable_compat22+set}" = set; then
2854 enableval="$enable_compat22"
2855
2856 if test "$enableval" = yes; then
2857 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2858 else
2859 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2860 fi
2861
2862 else
2863
2864 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2865 if test "x$LINE" != x ; then
2866 eval "DEFAULT_$LINE"
2867 else
2868 no_cache=1
2869 fi
2870
2871 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2872
2873 fi
2874
2875
2876 eval "$ac_cv_use_compat22"
2877 if test "$no_cache" != 1; then
2878 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2879 fi
2880
2881 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2882 echo "$ac_t""yes" 1>&6
2883 else
2884 echo "$ac_t""no" 1>&6
2885 fi
2886
2887
2888
2889
2890 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2891 echo "configure:2892: checking for --enable-intl" >&5
2892 no_cache=0
2893 # Check whether --enable-intl or --disable-intl was given.
2894 if test "${enable_intl+set}" = set; then
2895 enableval="$enable_intl"
2896
2897 if test "$enableval" = yes; then
2898 ac_cv_use_intl='wxUSE_INTL=yes'
2899 else
2900 ac_cv_use_intl='wxUSE_INTL=no'
2901 fi
2902
2903 else
2904
2905 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2906 if test "x$LINE" != x ; then
2907 eval "DEFAULT_$LINE"
2908 else
2909 no_cache=1
2910 fi
2911
2912 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2913
2914 fi
2915
2916
2917 eval "$ac_cv_use_intl"
2918 if test "$no_cache" != 1; then
2919 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2920 fi
2921
2922 if test "$wxUSE_INTL" = yes; then
2923 echo "$ac_t""yes" 1>&6
2924 else
2925 echo "$ac_t""no" 1>&6
2926 fi
2927
2928
2929 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
2930 echo "configure:2931: checking for --enable-config" >&5
2931 no_cache=0
2932 # Check whether --enable-config or --disable-config was given.
2933 if test "${enable_config+set}" = set; then
2934 enableval="$enable_config"
2935
2936 if test "$enableval" = yes; then
2937 ac_cv_use_config='wxUSE_CONFIG=yes'
2938 else
2939 ac_cv_use_config='wxUSE_CONFIG=no'
2940 fi
2941
2942 else
2943
2944 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2945 if test "x$LINE" != x ; then
2946 eval "DEFAULT_$LINE"
2947 else
2948 no_cache=1
2949 fi
2950
2951 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2952
2953 fi
2954
2955
2956 eval "$ac_cv_use_config"
2957 if test "$no_cache" != 1; then
2958 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2959 fi
2960
2961 if test "$wxUSE_CONFIG" = yes; then
2962 echo "$ac_t""yes" 1>&6
2963 else
2964 echo "$ac_t""no" 1>&6
2965 fi
2966
2967
2968
2969 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
2970 echo "configure:2971: checking for --enable-sockets" >&5
2971 no_cache=0
2972 # Check whether --enable-sockets or --disable-sockets was given.
2973 if test "${enable_sockets+set}" = set; then
2974 enableval="$enable_sockets"
2975
2976 if test "$enableval" = yes; then
2977 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2978 else
2979 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2980 fi
2981
2982 else
2983
2984 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2985 if test "x$LINE" != x ; then
2986 eval "DEFAULT_$LINE"
2987 else
2988 no_cache=1
2989 fi
2990
2991 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2992
2993 fi
2994
2995
2996 eval "$ac_cv_use_sockets"
2997 if test "$no_cache" != 1; then
2998 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2999 fi
3000
3001 if test "$wxUSE_SOCKETS" = yes; then
3002 echo "$ac_t""yes" 1>&6
3003 else
3004 echo "$ac_t""no" 1>&6
3005 fi
3006
3007
3008
3009 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3010 echo "configure:3011: checking for --enable-ipc" >&5
3011 no_cache=0
3012 # Check whether --enable-ipc or --disable-ipc was given.
3013 if test "${enable_ipc+set}" = set; then
3014 enableval="$enable_ipc"
3015
3016 if test "$enableval" = yes; then
3017 ac_cv_use_ipc='wxUSE_IPC=yes'
3018 else
3019 ac_cv_use_ipc='wxUSE_IPC=no'
3020 fi
3021
3022 else
3023
3024 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3025 if test "x$LINE" != x ; then
3026 eval "DEFAULT_$LINE"
3027 else
3028 no_cache=1
3029 fi
3030
3031 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3032
3033 fi
3034
3035
3036 eval "$ac_cv_use_ipc"
3037 if test "$no_cache" != 1; then
3038 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3039 fi
3040
3041 if test "$wxUSE_IPC" = yes; then
3042 echo "$ac_t""yes" 1>&6
3043 else
3044 echo "$ac_t""no" 1>&6
3045 fi
3046
3047
3048
3049 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3050 echo "configure:3051: checking for --enable-cmdline" >&5
3051 no_cache=0
3052 # Check whether --enable-cmdline or --disable-cmdline was given.
3053 if test "${enable_cmdline+set}" = set; then
3054 enableval="$enable_cmdline"
3055
3056 if test "$enableval" = yes; then
3057 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3058 else
3059 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3060 fi
3061
3062 else
3063
3064 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3065 if test "x$LINE" != x ; then
3066 eval "DEFAULT_$LINE"
3067 else
3068 no_cache=1
3069 fi
3070
3071 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3072
3073 fi
3074
3075
3076 eval "$ac_cv_use_cmdline"
3077 if test "$no_cache" != 1; then
3078 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3079 fi
3080
3081 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3082 echo "$ac_t""yes" 1>&6
3083 else
3084 echo "$ac_t""no" 1>&6
3085 fi
3086
3087
3088 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3089 echo "configure:3090: checking for --enable-datetime" >&5
3090 no_cache=0
3091 # Check whether --enable-datetime or --disable-datetime was given.
3092 if test "${enable_datetime+set}" = set; then
3093 enableval="$enable_datetime"
3094
3095 if test "$enableval" = yes; then
3096 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3097 else
3098 ac_cv_use_datetime='wxUSE_DATETIME=no'
3099 fi
3100
3101 else
3102
3103 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3104 if test "x$LINE" != x ; then
3105 eval "DEFAULT_$LINE"
3106 else
3107 no_cache=1
3108 fi
3109
3110 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3111
3112 fi
3113
3114
3115 eval "$ac_cv_use_datetime"
3116 if test "$no_cache" != 1; then
3117 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3118 fi
3119
3120 if test "$wxUSE_DATETIME" = yes; then
3121 echo "$ac_t""yes" 1>&6
3122 else
3123 echo "$ac_t""no" 1>&6
3124 fi
3125
3126
3127 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3128 echo "configure:3129: checking for --enable-timedate" >&5
3129 no_cache=0
3130 # Check whether --enable-timedate or --disable-timedate was given.
3131 if test "${enable_timedate+set}" = set; then
3132 enableval="$enable_timedate"
3133
3134 if test "$enableval" = yes; then
3135 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3136 else
3137 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3138 fi
3139
3140 else
3141
3142 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3143 if test "x$LINE" != x ; then
3144 eval "DEFAULT_$LINE"
3145 else
3146 no_cache=1
3147 fi
3148
3149 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3150
3151 fi
3152
3153
3154 eval "$ac_cv_use_timedate"
3155 if test "$no_cache" != 1; then
3156 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3157 fi
3158
3159 if test "$wxUSE_TIMEDATE" = yes; then
3160 echo "$ac_t""yes" 1>&6
3161 else
3162 echo "$ac_t""no" 1>&6
3163 fi
3164
3165
3166 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3167 echo "configure:3168: checking for --enable-stopwatch" >&5
3168 no_cache=0
3169 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3170 if test "${enable_stopwatch+set}" = set; then
3171 enableval="$enable_stopwatch"
3172
3173 if test "$enableval" = yes; then
3174 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3175 else
3176 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3177 fi
3178
3179 else
3180
3181 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3182 if test "x$LINE" != x ; then
3183 eval "DEFAULT_$LINE"
3184 else
3185 no_cache=1
3186 fi
3187
3188 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3189
3190 fi
3191
3192
3193 eval "$ac_cv_use_stopwatch"
3194 if test "$no_cache" != 1; then
3195 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3196 fi
3197
3198 if test "$wxUSE_STOPWATCH" = yes; then
3199 echo "$ac_t""yes" 1>&6
3200 else
3201 echo "$ac_t""no" 1>&6
3202 fi
3203
3204
3205 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3206 echo "configure:3207: checking for --enable-dialupman" >&5
3207 no_cache=0
3208 # Check whether --enable-dialupman or --disable-dialupman was given.
3209 if test "${enable_dialupman+set}" = set; then
3210 enableval="$enable_dialupman"
3211
3212 if test "$enableval" = yes; then
3213 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3214 else
3215 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3216 fi
3217
3218 else
3219
3220 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3221 if test "x$LINE" != x ; then
3222 eval "DEFAULT_$LINE"
3223 else
3224 no_cache=1
3225 fi
3226
3227 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3228
3229 fi
3230
3231
3232 eval "$ac_cv_use_dialupman"
3233 if test "$no_cache" != 1; then
3234 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3235 fi
3236
3237 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3238 echo "$ac_t""yes" 1>&6
3239 else
3240 echo "$ac_t""no" 1>&6
3241 fi
3242
3243
3244 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3245 echo "configure:3246: checking for --enable-apple_ieee" >&5
3246 no_cache=0
3247 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3248 if test "${enable_apple_ieee+set}" = set; then
3249 enableval="$enable_apple_ieee"
3250
3251 if test "$enableval" = yes; then
3252 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3253 else
3254 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3255 fi
3256
3257 else
3258
3259 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3260 if test "x$LINE" != x ; then
3261 eval "DEFAULT_$LINE"
3262 else
3263 no_cache=1
3264 fi
3265
3266 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3267
3268 fi
3269
3270
3271 eval "$ac_cv_use_apple_ieee"
3272 if test "$no_cache" != 1; then
3273 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3274 fi
3275
3276 if test "$wxUSE_APPLE_IEEE" = yes; then
3277 echo "$ac_t""yes" 1>&6
3278 else
3279 echo "$ac_t""no" 1>&6
3280 fi
3281
3282
3283 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3284 echo "configure:3285: checking for --enable-timer" >&5
3285 no_cache=0
3286 # Check whether --enable-timer or --disable-timer was given.
3287 if test "${enable_timer+set}" = set; then
3288 enableval="$enable_timer"
3289
3290 if test "$enableval" = yes; then
3291 ac_cv_use_timer='wxUSE_TIMER=yes'
3292 else
3293 ac_cv_use_timer='wxUSE_TIMER=no'
3294 fi
3295
3296 else
3297
3298 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3299 if test "x$LINE" != x ; then
3300 eval "DEFAULT_$LINE"
3301 else
3302 no_cache=1
3303 fi
3304
3305 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3306
3307 fi
3308
3309
3310 eval "$ac_cv_use_timer"
3311 if test "$no_cache" != 1; then
3312 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3313 fi
3314
3315 if test "$wxUSE_TIMER" = yes; then
3316 echo "$ac_t""yes" 1>&6
3317 else
3318 echo "$ac_t""no" 1>&6
3319 fi
3320
3321
3322 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3323 echo "configure:3324: checking for --enable-wave" >&5
3324 no_cache=0
3325 # Check whether --enable-wave or --disable-wave was given.
3326 if test "${enable_wave+set}" = set; then
3327 enableval="$enable_wave"
3328
3329 if test "$enableval" = yes; then
3330 ac_cv_use_wave='wxUSE_WAVE=yes'
3331 else
3332 ac_cv_use_wave='wxUSE_WAVE=no'
3333 fi
3334
3335 else
3336
3337 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3338 if test "x$LINE" != x ; then
3339 eval "DEFAULT_$LINE"
3340 else
3341 no_cache=1
3342 fi
3343
3344 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3345
3346 fi
3347
3348
3349 eval "$ac_cv_use_wave"
3350 if test "$no_cache" != 1; then
3351 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3352 fi
3353
3354 if test "$wxUSE_WAVE" = yes; then
3355 echo "$ac_t""yes" 1>&6
3356 else
3357 echo "$ac_t""no" 1>&6
3358 fi
3359
3360
3361 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3362 echo "configure:3363: checking for --enable-fraction" >&5
3363 no_cache=0
3364 # Check whether --enable-fraction or --disable-fraction was given.
3365 if test "${enable_fraction+set}" = set; then
3366 enableval="$enable_fraction"
3367
3368 if test "$enableval" = yes; then
3369 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3370 else
3371 ac_cv_use_fraction='wxUSE_FRACTION=no'
3372 fi
3373
3374 else
3375
3376 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3377 if test "x$LINE" != x ; then
3378 eval "DEFAULT_$LINE"
3379 else
3380 no_cache=1
3381 fi
3382
3383 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3384
3385 fi
3386
3387
3388 eval "$ac_cv_use_fraction"
3389 if test "$no_cache" != 1; then
3390 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3391 fi
3392
3393 if test "$wxUSE_FRACTION" = yes; then
3394 echo "$ac_t""yes" 1>&6
3395 else
3396 echo "$ac_t""no" 1>&6
3397 fi
3398
3399
3400 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3401 echo "configure:3402: checking for --enable-dynlib" >&5
3402 no_cache=0
3403 # Check whether --enable-dynlib or --disable-dynlib was given.
3404 if test "${enable_dynlib+set}" = set; then
3405 enableval="$enable_dynlib"
3406
3407 if test "$enableval" = yes; then
3408 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3409 else
3410 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3411 fi
3412
3413 else
3414
3415 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3416 if test "x$LINE" != x ; then
3417 eval "DEFAULT_$LINE"
3418 else
3419 no_cache=1
3420 fi
3421
3422 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3423
3424 fi
3425
3426
3427 eval "$ac_cv_use_dynlib"
3428 if test "$no_cache" != 1; then
3429 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3430 fi
3431
3432 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3433 echo "$ac_t""yes" 1>&6
3434 else
3435 echo "$ac_t""no" 1>&6
3436 fi
3437
3438
3439 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3440 echo "configure:3441: checking for --enable-longlong" >&5
3441 no_cache=0
3442 # Check whether --enable-longlong or --disable-longlong was given.
3443 if test "${enable_longlong+set}" = set; then
3444 enableval="$enable_longlong"
3445
3446 if test "$enableval" = yes; then
3447 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3448 else
3449 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3450 fi
3451
3452 else
3453
3454 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3455 if test "x$LINE" != x ; then
3456 eval "DEFAULT_$LINE"
3457 else
3458 no_cache=1
3459 fi
3460
3461 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3462
3463 fi
3464
3465
3466 eval "$ac_cv_use_longlong"
3467 if test "$no_cache" != 1; then
3468 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3469 fi
3470
3471 if test "$wxUSE_LONGLONG" = yes; then
3472 echo "$ac_t""yes" 1>&6
3473 else
3474 echo "$ac_t""no" 1>&6
3475 fi
3476
3477
3478 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3479 echo "configure:3480: checking for --enable-geometry" >&5
3480 no_cache=0
3481 # Check whether --enable-geometry or --disable-geometry was given.
3482 if test "${enable_geometry+set}" = set; then
3483 enableval="$enable_geometry"
3484
3485 if test "$enableval" = yes; then
3486 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3487 else
3488 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3489 fi
3490
3491 else
3492
3493 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3494 if test "x$LINE" != x ; then
3495 eval "DEFAULT_$LINE"
3496 else
3497 no_cache=1
3498 fi
3499
3500 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3501
3502 fi
3503
3504
3505 eval "$ac_cv_use_geometry"
3506 if test "$no_cache" != 1; then
3507 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3508 fi
3509
3510 if test "$wxUSE_GEOMETRY" = yes; then
3511 echo "$ac_t""yes" 1>&6
3512 else
3513 echo "$ac_t""no" 1>&6
3514 fi
3515
3516
3517 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3518 echo "configure:3519: checking for --enable-log" >&5
3519 no_cache=0
3520 # Check whether --enable-log or --disable-log was given.
3521 if test "${enable_log+set}" = set; then
3522 enableval="$enable_log"
3523
3524 if test "$enableval" = yes; then
3525 ac_cv_use_log='wxUSE_LOG=yes'
3526 else
3527 ac_cv_use_log='wxUSE_LOG=no'
3528 fi
3529
3530 else
3531
3532 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3533 if test "x$LINE" != x ; then
3534 eval "DEFAULT_$LINE"
3535 else
3536 no_cache=1
3537 fi
3538
3539 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3540
3541 fi
3542
3543
3544 eval "$ac_cv_use_log"
3545 if test "$no_cache" != 1; then
3546 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3547 fi
3548
3549 if test "$wxUSE_LOG" = yes; then
3550 echo "$ac_t""yes" 1>&6
3551 else
3552 echo "$ac_t""no" 1>&6
3553 fi
3554
3555
3556 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3557 echo "configure:3558: checking for --enable-streams" >&5
3558 no_cache=0
3559 # Check whether --enable-streams or --disable-streams was given.
3560 if test "${enable_streams+set}" = set; then
3561 enableval="$enable_streams"
3562
3563 if test "$enableval" = yes; then
3564 ac_cv_use_streams='wxUSE_STREAMS=yes'
3565 else
3566 ac_cv_use_streams='wxUSE_STREAMS=no'
3567 fi
3568
3569 else
3570
3571 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3572 if test "x$LINE" != x ; then
3573 eval "DEFAULT_$LINE"
3574 else
3575 no_cache=1
3576 fi
3577
3578 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3579
3580 fi
3581
3582
3583 eval "$ac_cv_use_streams"
3584 if test "$no_cache" != 1; then
3585 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3586 fi
3587
3588 if test "$wxUSE_STREAMS" = yes; then
3589 echo "$ac_t""yes" 1>&6
3590 else
3591 echo "$ac_t""no" 1>&6
3592 fi
3593
3594
3595 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3596 echo "configure:3597: checking for --enable-file" >&5
3597 no_cache=0
3598 # Check whether --enable-file or --disable-file was given.
3599 if test "${enable_file+set}" = set; then
3600 enableval="$enable_file"
3601
3602 if test "$enableval" = yes; then
3603 ac_cv_use_file='wxUSE_FILE=yes'
3604 else
3605 ac_cv_use_file='wxUSE_FILE=no'
3606 fi
3607
3608 else
3609
3610 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3611 if test "x$LINE" != x ; then
3612 eval "DEFAULT_$LINE"
3613 else
3614 no_cache=1
3615 fi
3616
3617 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3618
3619 fi
3620
3621
3622 eval "$ac_cv_use_file"
3623 if test "$no_cache" != 1; then
3624 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3625 fi
3626
3627 if test "$wxUSE_FILE" = yes; then
3628 echo "$ac_t""yes" 1>&6
3629 else
3630 echo "$ac_t""no" 1>&6
3631 fi
3632
3633
3634 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3635 echo "configure:3636: checking for --enable-ffile" >&5
3636 no_cache=0
3637 # Check whether --enable-ffile or --disable-ffile was given.
3638 if test "${enable_ffile+set}" = set; then
3639 enableval="$enable_ffile"
3640
3641 if test "$enableval" = yes; then
3642 ac_cv_use_ffile='wxUSE_FFILE=yes'
3643 else
3644 ac_cv_use_ffile='wxUSE_FFILE=no'
3645 fi
3646
3647 else
3648
3649 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3650 if test "x$LINE" != x ; then
3651 eval "DEFAULT_$LINE"
3652 else
3653 no_cache=1
3654 fi
3655
3656 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3657
3658 fi
3659
3660
3661 eval "$ac_cv_use_ffile"
3662 if test "$no_cache" != 1; then
3663 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3664 fi
3665
3666 if test "$wxUSE_FFILE" = yes; then
3667 echo "$ac_t""yes" 1>&6
3668 else
3669 echo "$ac_t""no" 1>&6
3670 fi
3671
3672
3673 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3674 echo "configure:3675: checking for --enable-textfile" >&5
3675 no_cache=0
3676 # Check whether --enable-textfile or --disable-textfile was given.
3677 if test "${enable_textfile+set}" = set; then
3678 enableval="$enable_textfile"
3679
3680 if test "$enableval" = yes; then
3681 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3682 else
3683 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3684 fi
3685
3686 else
3687
3688 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3689 if test "x$LINE" != x ; then
3690 eval "DEFAULT_$LINE"
3691 else
3692 no_cache=1
3693 fi
3694
3695 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3696
3697 fi
3698
3699
3700 eval "$ac_cv_use_textfile"
3701 if test "$no_cache" != 1; then
3702 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3703 fi
3704
3705 if test "$wxUSE_TEXTFILE" = yes; then
3706 echo "$ac_t""yes" 1>&6
3707 else
3708 echo "$ac_t""no" 1>&6
3709 fi
3710
3711
3712 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3713 echo "configure:3714: checking for --enable-fontmap" >&5
3714 no_cache=0
3715 # Check whether --enable-fontmap or --disable-fontmap was given.
3716 if test "${enable_fontmap+set}" = set; then
3717 enableval="$enable_fontmap"
3718
3719 if test "$enableval" = yes; then
3720 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
3721 else
3722 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
3723 fi
3724
3725 else
3726
3727 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
3728 if test "x$LINE" != x ; then
3729 eval "DEFAULT_$LINE"
3730 else
3731 no_cache=1
3732 fi
3733
3734 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
3735
3736 fi
3737
3738
3739 eval "$ac_cv_use_fontmap"
3740 if test "$no_cache" != 1; then
3741 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
3742 fi
3743
3744 if test "$wxUSE_FONTMAP" = yes; then
3745 echo "$ac_t""yes" 1>&6
3746 else
3747 echo "$ac_t""no" 1>&6
3748 fi
3749
3750
3751 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3752 echo "configure:3753: checking for --enable-unicode" >&5
3753 no_cache=0
3754 # Check whether --enable-unicode or --disable-unicode was given.
3755 if test "${enable_unicode+set}" = set; then
3756 enableval="$enable_unicode"
3757
3758 if test "$enableval" = yes; then
3759 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3760 else
3761 ac_cv_use_unicode='wxUSE_UNICODE=no'
3762 fi
3763
3764 else
3765
3766 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3767 if test "x$LINE" != x ; then
3768 eval "DEFAULT_$LINE"
3769 else
3770 no_cache=1
3771 fi
3772
3773 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3774
3775 fi
3776
3777
3778 eval "$ac_cv_use_unicode"
3779 if test "$no_cache" != 1; then
3780 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3781 fi
3782
3783 if test "$wxUSE_UNICODE" = yes; then
3784 echo "$ac_t""yes" 1>&6
3785 else
3786 echo "$ac_t""no" 1>&6
3787 fi
3788
3789
3790 echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6
3791 echo "configure:3792: checking for --enable-wcsrtombs" >&5
3792 no_cache=0
3793 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3794 if test "${enable_wcsrtombs+set}" = set; then
3795 enableval="$enable_wcsrtombs"
3796
3797 if test "$enableval" = yes; then
3798 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3799 else
3800 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3801 fi
3802
3803 else
3804
3805 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3806 if test "x$LINE" != x ; then
3807 eval "DEFAULT_$LINE"
3808 else
3809 no_cache=1
3810 fi
3811
3812 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3813
3814 fi
3815
3816
3817 eval "$ac_cv_use_wcsrtombs"
3818 if test "$no_cache" != 1; then
3819 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3820 fi
3821
3822 if test "$wxUSE_WCSRTOMBS" = yes; then
3823 echo "$ac_t""yes" 1>&6
3824 else
3825 echo "$ac_t""no" 1>&6
3826 fi
3827
3828
3829 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3830 echo "configure:3831: checking for --enable-wxprintfv" >&5
3831 no_cache=0
3832 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3833 if test "${enable_wxprintfv+set}" = set; then
3834 enableval="$enable_wxprintfv"
3835
3836 if test "$enableval" = yes; then
3837 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3838 else
3839 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3840 fi
3841
3842 else
3843
3844 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3845 if test "x$LINE" != x ; then
3846 eval "DEFAULT_$LINE"
3847 else
3848 no_cache=1
3849 fi
3850
3851 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3852
3853 fi
3854
3855
3856 eval "$ac_cv_use_wxprintfv"
3857 if test "$no_cache" != 1; then
3858 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3859 fi
3860
3861 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3862 echo "$ac_t""yes" 1>&6
3863 else
3864 echo "$ac_t""no" 1>&6
3865 fi
3866
3867
3868 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3869 echo "configure:3870: checking for --enable-std_iostreams" >&5
3870 no_cache=0
3871 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3872 if test "${enable_std_iostreams+set}" = set; then
3873 enableval="$enable_std_iostreams"
3874
3875 if test "$enableval" = yes; then
3876 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3877 else
3878 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3879 fi
3880
3881 else
3882
3883 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3884 if test "x$LINE" != x ; then
3885 eval "DEFAULT_$LINE"
3886 else
3887 no_cache=1
3888 fi
3889
3890 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3891
3892 fi
3893
3894
3895 eval "$ac_cv_use_std_iostreams"
3896 if test "$no_cache" != 1; then
3897 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3898 fi
3899
3900 if test "$wxUSE_STD_IOSTREAM" = yes; then
3901 echo "$ac_t""yes" 1>&6
3902 else
3903 echo "$ac_t""no" 1>&6
3904 fi
3905
3906
3907 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3908 echo "configure:3909: checking for --enable-filesystem" >&5
3909 no_cache=0
3910 # Check whether --enable-filesystem or --disable-filesystem was given.
3911 if test "${enable_filesystem+set}" = set; then
3912 enableval="$enable_filesystem"
3913
3914 if test "$enableval" = yes; then
3915 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3916 else
3917 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3918 fi
3919
3920 else
3921
3922 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3923 if test "x$LINE" != x ; then
3924 eval "DEFAULT_$LINE"
3925 else
3926 no_cache=1
3927 fi
3928
3929 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3930
3931 fi
3932
3933
3934 eval "$ac_cv_use_filesystem"
3935 if test "$no_cache" != 1; then
3936 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3937 fi
3938
3939 if test "$wxUSE_FILESYSTEM" = yes; then
3940 echo "$ac_t""yes" 1>&6
3941 else
3942 echo "$ac_t""no" 1>&6
3943 fi
3944
3945
3946 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
3947 echo "configure:3948: checking for --enable-fs_inet" >&5
3948 no_cache=0
3949 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3950 if test "${enable_fs_inet+set}" = set; then
3951 enableval="$enable_fs_inet"
3952
3953 if test "$enableval" = yes; then
3954 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3955 else
3956 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3957 fi
3958
3959 else
3960
3961 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3962 if test "x$LINE" != x ; then
3963 eval "DEFAULT_$LINE"
3964 else
3965 no_cache=1
3966 fi
3967
3968 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3969
3970 fi
3971
3972
3973 eval "$ac_cv_use_fs_inet"
3974 if test "$no_cache" != 1; then
3975 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3976 fi
3977
3978 if test "$wxUSE_FS_INET" = yes; then
3979 echo "$ac_t""yes" 1>&6
3980 else
3981 echo "$ac_t""no" 1>&6
3982 fi
3983
3984
3985 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
3986 echo "configure:3987: checking for --enable-fs_zip" >&5
3987 no_cache=0
3988 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3989 if test "${enable_fs_zip+set}" = set; then
3990 enableval="$enable_fs_zip"
3991
3992 if test "$enableval" = yes; then
3993 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3994 else
3995 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3996 fi
3997
3998 else
3999
4000 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4001 if test "x$LINE" != x ; then
4002 eval "DEFAULT_$LINE"
4003 else
4004 no_cache=1
4005 fi
4006
4007 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4008
4009 fi
4010
4011
4012 eval "$ac_cv_use_fs_zip"
4013 if test "$no_cache" != 1; then
4014 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4015 fi
4016
4017 if test "$wxUSE_FS_ZIP" = yes; then
4018 echo "$ac_t""yes" 1>&6
4019 else
4020 echo "$ac_t""no" 1>&6
4021 fi
4022
4023
4024 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4025 echo "configure:4026: checking for --enable-zipstream" >&5
4026 no_cache=0
4027 # Check whether --enable-zipstream or --disable-zipstream was given.
4028 if test "${enable_zipstream+set}" = set; then
4029 enableval="$enable_zipstream"
4030
4031 if test "$enableval" = yes; then
4032 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4033 else
4034 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4035 fi
4036
4037 else
4038
4039 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4040 if test "x$LINE" != x ; then
4041 eval "DEFAULT_$LINE"
4042 else
4043 no_cache=1
4044 fi
4045
4046 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4047
4048 fi
4049
4050
4051 eval "$ac_cv_use_zipstream"
4052 if test "$no_cache" != 1; then
4053 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4054 fi
4055
4056 if test "$wxUSE_ZIPSTREAM" = yes; then
4057 echo "$ac_t""yes" 1>&6
4058 else
4059 echo "$ac_t""no" 1>&6
4060 fi
4061
4062
4063
4064 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4065 echo "configure:4066: checking for --enable-catch_segvs" >&5
4066 no_cache=0
4067 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4068 if test "${enable_catch_segvs+set}" = set; then
4069 enableval="$enable_catch_segvs"
4070
4071 if test "$enableval" = yes; then
4072 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4073 else
4074 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4075 fi
4076
4077 else
4078
4079 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4080 if test "x$LINE" != x ; then
4081 eval "DEFAULT_$LINE"
4082 else
4083 no_cache=1
4084 fi
4085
4086 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4087
4088 fi
4089
4090
4091 eval "$ac_cv_use_catch_segvs"
4092 if test "$no_cache" != 1; then
4093 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4094 fi
4095
4096 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4097 echo "$ac_t""yes" 1>&6
4098 else
4099 echo "$ac_t""no" 1>&6
4100 fi
4101
4102
4103 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4104 echo "configure:4105: checking for --enable-snglinst" >&5
4105 no_cache=0
4106 # Check whether --enable-snglinst or --disable-snglinst was given.
4107 if test "${enable_snglinst+set}" = set; then
4108 enableval="$enable_snglinst"
4109
4110 if test "$enableval" = yes; then
4111 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4112 else
4113 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4114 fi
4115
4116 else
4117
4118 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4119 if test "x$LINE" != x ; then
4120 eval "DEFAULT_$LINE"
4121 else
4122 no_cache=1
4123 fi
4124
4125 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4126
4127 fi
4128
4129
4130 eval "$ac_cv_use_snglinst"
4131 if test "$no_cache" != 1; then
4132 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4133 fi
4134
4135 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4136 echo "$ac_t""yes" 1>&6
4137 else
4138 echo "$ac_t""no" 1>&6
4139 fi
4140
4141
4142
4143 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4144 echo "configure:4145: checking for --enable-mimetype" >&5
4145 no_cache=0
4146 # Check whether --enable-mimetype or --disable-mimetype was given.
4147 if test "${enable_mimetype+set}" = set; then
4148 enableval="$enable_mimetype"
4149
4150 if test "$enableval" = yes; then
4151 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4152 else
4153 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4154 fi
4155
4156 else
4157
4158 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4159 if test "x$LINE" != x ; then
4160 eval "DEFAULT_$LINE"
4161 else
4162 no_cache=1
4163 fi
4164
4165 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4166
4167 fi
4168
4169
4170 eval "$ac_cv_use_mimetype"
4171 if test "$no_cache" != 1; then
4172 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4173 fi
4174
4175 if test "$wxUSE_MIMETYPE" = yes; then
4176 echo "$ac_t""yes" 1>&6
4177 else
4178 echo "$ac_t""no" 1>&6
4179 fi
4180
4181
4182 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4183 echo "configure:4184: checking for --enable-system_options" >&5
4184 no_cache=0
4185 # Check whether --enable-system_options or --disable-system_options was given.
4186 if test "${enable_system_options+set}" = set; then
4187 enableval="$enable_system_options"
4188
4189 if test "$enableval" = yes; then
4190 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4191 else
4192 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4193 fi
4194
4195 else
4196
4197 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4198 if test "x$LINE" != x ; then
4199 eval "DEFAULT_$LINE"
4200 else
4201 no_cache=1
4202 fi
4203
4204 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4205
4206 fi
4207
4208
4209 eval "$ac_cv_use_system_options"
4210 if test "$no_cache" != 1; then
4211 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4212 fi
4213
4214 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4215 echo "$ac_t""yes" 1>&6
4216 else
4217 echo "$ac_t""no" 1>&6
4218 fi
4219
4220
4221
4222
4223 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4224 echo "configure:4225: checking for --enable-threads" >&5
4225 no_cache=0
4226 # Check whether --enable-threads or --disable-threads was given.
4227 if test "${enable_threads+set}" = set; then
4228 enableval="$enable_threads"
4229
4230 if test "$enableval" = yes; then
4231 ac_cv_use_threads='wxUSE_THREADS=yes'
4232 else
4233 ac_cv_use_threads='wxUSE_THREADS=no'
4234 fi
4235
4236 else
4237
4238 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4239 if test "x$LINE" != x ; then
4240 eval "DEFAULT_$LINE"
4241 else
4242 no_cache=1
4243 fi
4244
4245 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4246
4247 fi
4248
4249
4250 eval "$ac_cv_use_threads"
4251 if test "$no_cache" != 1; then
4252 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4253 fi
4254
4255 if test "$wxUSE_THREADS" = yes; then
4256 echo "$ac_t""yes" 1>&6
4257 else
4258 echo "$ac_t""no" 1>&6
4259 fi
4260
4261
4262 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
4263 echo "configure:4264: checking for --enable-serial" >&5
4264 no_cache=0
4265 # Check whether --enable-serial or --disable-serial was given.
4266 if test "${enable_serial+set}" = set; then
4267 enableval="$enable_serial"
4268
4269 if test "$enableval" = yes; then
4270 ac_cv_use_serial='wxUSE_SERIAL=yes'
4271 else
4272 ac_cv_use_serial='wxUSE_SERIAL=no'
4273 fi
4274
4275 else
4276
4277 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4278 if test "x$LINE" != x ; then
4279 eval "DEFAULT_$LINE"
4280 else
4281 no_cache=1
4282 fi
4283
4284 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
4285
4286 fi
4287
4288
4289 eval "$ac_cv_use_serial"
4290 if test "$no_cache" != 1; then
4291 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4292 fi
4293
4294 if test "$wxUSE_SERIAL" = yes; then
4295 echo "$ac_t""yes" 1>&6
4296 else
4297 echo "$ac_t""no" 1>&6
4298 fi
4299
4300
4301 if test "$wxUSE_GUI" = "yes"; then
4302
4303
4304
4305 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4306 echo "configure:4307: checking for --enable-docview" >&5
4307 no_cache=0
4308 # Check whether --enable-docview or --disable-docview was given.
4309 if test "${enable_docview+set}" = set; then
4310 enableval="$enable_docview"
4311
4312 if test "$enableval" = yes; then
4313 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4314 else
4315 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4316 fi
4317
4318 else
4319
4320 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4321 if test "x$LINE" != x ; then
4322 eval "DEFAULT_$LINE"
4323 else
4324 no_cache=1
4325 fi
4326
4327 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4328
4329 fi
4330
4331
4332 eval "$ac_cv_use_docview"
4333 if test "$no_cache" != 1; then
4334 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4335 fi
4336
4337 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4338 echo "$ac_t""yes" 1>&6
4339 else
4340 echo "$ac_t""no" 1>&6
4341 fi
4342
4343
4344 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4345 echo "configure:4346: checking for --enable-help" >&5
4346 no_cache=0
4347 # Check whether --enable-help or --disable-help was given.
4348 if test "${enable_help+set}" = set; then
4349 enableval="$enable_help"
4350
4351 if test "$enableval" = yes; then
4352 ac_cv_use_help='wxUSE_HELP=yes'
4353 else
4354 ac_cv_use_help='wxUSE_HELP=no'
4355 fi
4356
4357 else
4358
4359 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4360 if test "x$LINE" != x ; then
4361 eval "DEFAULT_$LINE"
4362 else
4363 no_cache=1
4364 fi
4365
4366 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4367
4368 fi
4369
4370
4371 eval "$ac_cv_use_help"
4372 if test "$no_cache" != 1; then
4373 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4374 fi
4375
4376 if test "$wxUSE_HELP" = yes; then
4377 echo "$ac_t""yes" 1>&6
4378 else
4379 echo "$ac_t""no" 1>&6
4380 fi
4381
4382
4383 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4384 echo "configure:4385: checking for --enable-mshtmlhelp" >&5
4385 no_cache=0
4386 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4387 if test "${enable_mshtmlhelp+set}" = set; then
4388 enableval="$enable_mshtmlhelp"
4389
4390 if test "$enableval" = yes; then
4391 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4392 else
4393 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4394 fi
4395
4396 else
4397
4398 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4399 if test "x$LINE" != x ; then
4400 eval "DEFAULT_$LINE"
4401 else
4402 no_cache=1
4403 fi
4404
4405 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4406
4407 fi
4408
4409
4410 eval "$ac_cv_use_mshtmlhelp"
4411 if test "$no_cache" != 1; then
4412 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4413 fi
4414
4415 if test "$wxUSE_MS_HTML_HELP" = yes; then
4416 echo "$ac_t""yes" 1>&6
4417 else
4418 echo "$ac_t""no" 1>&6
4419 fi
4420
4421
4422 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4423 echo "configure:4424: checking for --enable-html" >&5
4424 no_cache=0
4425 # Check whether --enable-html or --disable-html was given.
4426 if test "${enable_html+set}" = set; then
4427 enableval="$enable_html"
4428
4429 if test "$enableval" = yes; then
4430 ac_cv_use_html='wxUSE_HTML=yes'
4431 else
4432 ac_cv_use_html='wxUSE_HTML=no'
4433 fi
4434
4435 else
4436
4437 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4438 if test "x$LINE" != x ; then
4439 eval "DEFAULT_$LINE"
4440 else
4441 no_cache=1
4442 fi
4443
4444 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4445
4446 fi
4447
4448
4449 eval "$ac_cv_use_html"
4450 if test "$no_cache" != 1; then
4451 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4452 fi
4453
4454 if test "$wxUSE_HTML" = yes; then
4455 echo "$ac_t""yes" 1>&6
4456 else
4457 echo "$ac_t""no" 1>&6
4458 fi
4459
4460
4461 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4462 echo "configure:4463: checking for --enable-htmlhelp" >&5
4463 no_cache=0
4464 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4465 if test "${enable_htmlhelp+set}" = set; then
4466 enableval="$enable_htmlhelp"
4467
4468 if test "$enableval" = yes; then
4469 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4470 else
4471 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4472 fi
4473
4474 else
4475
4476 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4477 if test "x$LINE" != x ; then
4478 eval "DEFAULT_$LINE"
4479 else
4480 no_cache=1
4481 fi
4482
4483 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4484
4485 fi
4486
4487
4488 eval "$ac_cv_use_htmlhelp"
4489 if test "$no_cache" != 1; then
4490 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4491 fi
4492
4493 if test "$wxUSE_WXHTML_HELP" = yes; then
4494 echo "$ac_t""yes" 1>&6
4495 else
4496 echo "$ac_t""no" 1>&6
4497 fi
4498
4499
4500 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4501 echo "configure:4502: checking for --enable-constraints" >&5
4502 no_cache=0
4503 # Check whether --enable-constraints or --disable-constraints was given.
4504 if test "${enable_constraints+set}" = set; then
4505 enableval="$enable_constraints"
4506
4507 if test "$enableval" = yes; then
4508 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4509 else
4510 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4511 fi
4512
4513 else
4514
4515 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4516 if test "x$LINE" != x ; then
4517 eval "DEFAULT_$LINE"
4518 else
4519 no_cache=1
4520 fi
4521
4522 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
4523
4524 fi
4525
4526
4527 eval "$ac_cv_use_constraints"
4528 if test "$no_cache" != 1; then
4529 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4530 fi
4531
4532 if test "$wxUSE_CONSTRAINTS" = yes; then
4533 echo "$ac_t""yes" 1>&6
4534 else
4535 echo "$ac_t""no" 1>&6
4536 fi
4537
4538
4539 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4540 echo "configure:4541: checking for --enable-printarch" >&5
4541 no_cache=0
4542 # Check whether --enable-printarch or --disable-printarch was given.
4543 if test "${enable_printarch+set}" = set; then
4544 enableval="$enable_printarch"
4545
4546 if test "$enableval" = yes; then
4547 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4548 else
4549 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4550 fi
4551
4552 else
4553
4554 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4555 if test "x$LINE" != x ; then
4556 eval "DEFAULT_$LINE"
4557 else
4558 no_cache=1
4559 fi
4560
4561 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
4562
4563 fi
4564
4565
4566 eval "$ac_cv_use_printarch"
4567 if test "$no_cache" != 1; then
4568 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4569 fi
4570
4571 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
4572 echo "$ac_t""yes" 1>&6
4573 else
4574 echo "$ac_t""no" 1>&6
4575 fi
4576
4577
4578 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4579 echo "configure:4580: checking for --enable-mdi" >&5
4580 no_cache=0
4581 # Check whether --enable-mdi or --disable-mdi was given.
4582 if test "${enable_mdi+set}" = set; then
4583 enableval="$enable_mdi"
4584
4585 if test "$enableval" = yes; then
4586 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4587 else
4588 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4589 fi
4590
4591 else
4592
4593 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4594 if test "x$LINE" != x ; then
4595 eval "DEFAULT_$LINE"
4596 else
4597 no_cache=1
4598 fi
4599
4600 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
4601
4602 fi
4603
4604
4605 eval "$ac_cv_use_mdi"
4606 if test "$no_cache" != 1; then
4607 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4608 fi
4609
4610 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
4611 echo "$ac_t""yes" 1>&6
4612 else
4613 echo "$ac_t""no" 1>&6
4614 fi
4615
4616
4617 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4618 echo "configure:4619: checking for --enable-loggui" >&5
4619 no_cache=0
4620 # Check whether --enable-loggui or --disable-loggui was given.
4621 if test "${enable_loggui+set}" = set; then
4622 enableval="$enable_loggui"
4623
4624 if test "$enableval" = yes; then
4625 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4626 else
4627 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4628 fi
4629
4630 else
4631
4632 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4633 if test "x$LINE" != x ; then
4634 eval "DEFAULT_$LINE"
4635 else
4636 no_cache=1
4637 fi
4638
4639 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4640
4641 fi
4642
4643
4644 eval "$ac_cv_use_loggui"
4645 if test "$no_cache" != 1; then
4646 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4647 fi
4648
4649 if test "$wxUSE_LOGGUI" = yes; then
4650 echo "$ac_t""yes" 1>&6
4651 else
4652 echo "$ac_t""no" 1>&6
4653 fi
4654
4655
4656 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4657 echo "configure:4658: checking for --enable-logwin" >&5
4658 no_cache=0
4659 # Check whether --enable-logwin or --disable-logwin was given.
4660 if test "${enable_logwin+set}" = set; then
4661 enableval="$enable_logwin"
4662
4663 if test "$enableval" = yes; then
4664 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4665 else
4666 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4667 fi
4668
4669 else
4670
4671 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4672 if test "x$LINE" != x ; then
4673 eval "DEFAULT_$LINE"
4674 else
4675 no_cache=1
4676 fi
4677
4678 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4679
4680 fi
4681
4682
4683 eval "$ac_cv_use_logwin"
4684 if test "$no_cache" != 1; then
4685 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4686 fi
4687
4688 if test "$wxUSE_LOGWINDOW" = yes; then
4689 echo "$ac_t""yes" 1>&6
4690 else
4691 echo "$ac_t""no" 1>&6
4692 fi
4693
4694
4695
4696 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4697 echo "configure:4698: checking for --enable-postscript" >&5
4698 no_cache=0
4699 # Check whether --enable-postscript or --disable-postscript was given.
4700 if test "${enable_postscript+set}" = set; then
4701 enableval="$enable_postscript"
4702
4703 if test "$enableval" = yes; then
4704 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4705 else
4706 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4707 fi
4708
4709 else
4710
4711 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4712 if test "x$LINE" != x ; then
4713 eval "DEFAULT_$LINE"
4714 else
4715 no_cache=1
4716 fi
4717
4718 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
4719
4720 fi
4721
4722
4723 eval "$ac_cv_use_postscript"
4724 if test "$no_cache" != 1; then
4725 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4726 fi
4727
4728 if test "$wxUSE_POSTSCRIPT" = yes; then
4729 echo "$ac_t""yes" 1>&6
4730 else
4731 echo "$ac_t""no" 1>&6
4732 fi
4733
4734
4735
4736
4737
4738 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4739 echo "configure:4740: checking for --enable-prologio" >&5
4740 no_cache=0
4741 # Check whether --enable-prologio or --disable-prologio was given.
4742 if test "${enable_prologio+set}" = set; then
4743 enableval="$enable_prologio"
4744
4745 if test "$enableval" = yes; then
4746 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4747 else
4748 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4749 fi
4750
4751 else
4752
4753 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4754 if test "x$LINE" != x ; then
4755 eval "DEFAULT_$LINE"
4756 else
4757 no_cache=1
4758 fi
4759
4760 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
4761
4762 fi
4763
4764
4765 eval "$ac_cv_use_prologio"
4766 if test "$no_cache" != 1; then
4767 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4768 fi
4769
4770 if test "$wxUSE_PROLOGIO" = yes; then
4771 echo "$ac_t""yes" 1>&6
4772 else
4773 echo "$ac_t""no" 1>&6
4774 fi
4775
4776
4777 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4778 echo "configure:4779: checking for --enable-resources" >&5
4779 no_cache=0
4780 # Check whether --enable-resources or --disable-resources was given.
4781 if test "${enable_resources+set}" = set; then
4782 enableval="$enable_resources"
4783
4784 if test "$enableval" = yes; then
4785 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4786 else
4787 ac_cv_use_resources='wxUSE_RESOURCES=no'
4788 fi
4789
4790 else
4791
4792 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4793 if test "x$LINE" != x ; then
4794 eval "DEFAULT_$LINE"
4795 else
4796 no_cache=1
4797 fi
4798
4799 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
4800
4801 fi
4802
4803
4804 eval "$ac_cv_use_resources"
4805 if test "$no_cache" != 1; then
4806 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4807 fi
4808
4809 if test "$wxUSE_RESOURCES" = yes; then
4810 echo "$ac_t""yes" 1>&6
4811 else
4812 echo "$ac_t""no" 1>&6
4813 fi
4814
4815
4816
4817 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
4818 echo "configure:4819: checking for --enable-xresources" >&5
4819 no_cache=0
4820 # Check whether --enable-xresources or --disable-xresources was given.
4821 if test "${enable_xresources+set}" = set; then
4822 enableval="$enable_xresources"
4823
4824 if test "$enableval" = yes; then
4825 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4826 else
4827 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4828 fi
4829
4830 else
4831
4832 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4833 if test "x$LINE" != x ; then
4834 eval "DEFAULT_$LINE"
4835 else
4836 no_cache=1
4837 fi
4838
4839 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
4840
4841 fi
4842
4843
4844 eval "$ac_cv_use_xresources"
4845 if test "$no_cache" != 1; then
4846 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4847 fi
4848
4849 if test "$wxUSE_X_RESOURCES" = yes; then
4850 echo "$ac_t""yes" 1>&6
4851 else
4852 echo "$ac_t""no" 1>&6
4853 fi
4854
4855
4856
4857
4858 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
4859 echo "configure:4860: checking for --enable-clipboard" >&5
4860 no_cache=0
4861 # Check whether --enable-clipboard or --disable-clipboard was given.
4862 if test "${enable_clipboard+set}" = set; then
4863 enableval="$enable_clipboard"
4864
4865 if test "$enableval" = yes; then
4866 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4867 else
4868 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4869 fi
4870
4871 else
4872
4873 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4874 if test "x$LINE" != x ; then
4875 eval "DEFAULT_$LINE"
4876 else
4877 no_cache=1
4878 fi
4879
4880 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4881
4882 fi
4883
4884
4885 eval "$ac_cv_use_clipboard"
4886 if test "$no_cache" != 1; then
4887 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4888 fi
4889
4890 if test "$wxUSE_CLIPBOARD" = yes; then
4891 echo "$ac_t""yes" 1>&6
4892 else
4893 echo "$ac_t""no" 1>&6
4894 fi
4895
4896
4897 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
4898 echo "configure:4899: checking for --enable-dnd" >&5
4899 no_cache=0
4900 # Check whether --enable-dnd or --disable-dnd was given.
4901 if test "${enable_dnd+set}" = set; then
4902 enableval="$enable_dnd"
4903
4904 if test "$enableval" = yes; then
4905 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4906 else
4907 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4908 fi
4909
4910 else
4911
4912 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4913 if test "x$LINE" != x ; then
4914 eval "DEFAULT_$LINE"
4915 else
4916 no_cache=1
4917 fi
4918
4919 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4920
4921 fi
4922
4923
4924 eval "$ac_cv_use_dnd"
4925 if test "$no_cache" != 1; then
4926 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4927 fi
4928
4929 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4930 echo "$ac_t""yes" 1>&6
4931 else
4932 echo "$ac_t""no" 1>&6
4933 fi
4934
4935
4936 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
4937 echo "configure:4938: checking for --enable-metafile" >&5
4938 no_cache=0
4939 # Check whether --enable-metafile or --disable-metafile was given.
4940 if test "${enable_metafile+set}" = set; then
4941 enableval="$enable_metafile"
4942
4943 if test "$enableval" = yes; then
4944 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4945 else
4946 ac_cv_use_metafile='wxUSE_METAFILE=no'
4947 fi
4948
4949 else
4950
4951 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4952 if test "x$LINE" != x ; then
4953 eval "DEFAULT_$LINE"
4954 else
4955 no_cache=1
4956 fi
4957
4958 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4959
4960 fi
4961
4962
4963 eval "$ac_cv_use_metafile"
4964 if test "$no_cache" != 1; then
4965 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4966 fi
4967
4968 if test "$wxUSE_METAFILE" = yes; then
4969 echo "$ac_t""yes" 1>&6
4970 else
4971 echo "$ac_t""no" 1>&6
4972 fi
4973
4974
4975
4976 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
4977 echo "configure:4978: checking for --enable-treelayout" >&5
4978 no_cache=0
4979 # Check whether --enable-treelayout or --disable-treelayout was given.
4980 if test "${enable_treelayout+set}" = set; then
4981 enableval="$enable_treelayout"
4982
4983 if test "$enableval" = yes; then
4984 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
4985 else
4986 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
4987 fi
4988
4989 else
4990
4991 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
4992 if test "x$LINE" != x ; then
4993 eval "DEFAULT_$LINE"
4994 else
4995 no_cache=1
4996 fi
4997
4998 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
4999
5000 fi
5001
5002
5003 eval "$ac_cv_use_treelayout"
5004 if test "$no_cache" != 1; then
5005 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5006 fi
5007
5008 if test "$wxUSE_TREELAYOUT" = yes; then
5009 echo "$ac_t""yes" 1>&6
5010 else
5011 echo "$ac_t""no" 1>&6
5012 fi
5013
5014
5015
5016
5017 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5018 echo "configure:5019: checking for --enable-controls" >&5
5019 no_cache=0
5020 # Check whether --enable-controls or --disable-controls was given.
5021 if test "${enable_controls+set}" = set; then
5022 enableval="$enable_controls"
5023
5024 if test "$enableval" = yes; then
5025 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5026 else
5027 ac_cv_use_controls='wxUSE_CONTROLS=no'
5028 fi
5029
5030 else
5031
5032 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5033 if test "x$LINE" != x ; then
5034 eval "DEFAULT_$LINE"
5035 else
5036 no_cache=1
5037 fi
5038
5039 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5040
5041 fi
5042
5043
5044 eval "$ac_cv_use_controls"
5045 if test "$no_cache" != 1; then
5046 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5047 fi
5048
5049 if test "$wxUSE_CONTROLS" = yes; then
5050 echo "$ac_t""yes" 1>&6
5051 else
5052 echo "$ac_t""no" 1>&6
5053 fi
5054
5055
5056 if test "$wxUSE_CONTROLS" = "yes"; then
5057 DEFAULT_wxUSE_ACCEL=yes
5058 DEFAULT_wxUSE_BMPBUTTON=yes
5059 DEFAULT_wxUSE_BUTTON=yes
5060 DEFAULT_wxUSE_CALCTRL=no
5061 DEFAULT_wxUSE_CARET=yes
5062 DEFAULT_wxUSE_COMBOBOX=yes
5063 DEFAULT_wxUSE_CHECKBOX=yes
5064 DEFAULT_wxUSE_CHECKLISTBOX=yes
5065 DEFAULT_wxUSE_CHOICE=yes
5066 DEFAULT_wxUSE_GAUGE=yes
5067 DEFAULT_wxUSE_GRID=yes
5068 DEFAULT_wxUSE_NEW_GRID=yes
5069 DEFAULT_wxUSE_IMAGLIST=yes
5070 DEFAULT_wxUSE_LISTBOX=yes
5071 DEFAULT_wxUSE_LISTCTRL=yes
5072 DEFAULT_wxUSE_NOTEBOOK=yes
5073 DEFAULT_wxUSE_PROPSHEET=yes
5074 DEFAULT_wxUSE_RADIOBOX=yes
5075 DEFAULT_wxUSE_RADIOBTN=yes
5076 DEFAULT_wxUSE_SASH=yes
5077 DEFAULT_wxUSE_SCROLLBAR=yes
5078 DEFAULT_wxUSE_SLIDER=yes
5079 DEFAULT_wxUSE_SPINBTN=yes
5080 DEFAULT_wxUSE_SPINCTRL=yes
5081 DEFAULT_wxUSE_SPLITTER=yes
5082 DEFAULT_wxUSE_STATBMP=yes
5083 DEFAULT_wxUSE_STATBOX=yes
5084 DEFAULT_wxUSE_STATLINE=yes
5085 DEFAULT_wxUSE_STATUSBAR=yes
5086 DEFAULT_wxUSE_TAB_DIALOG=yes
5087 DEFAULT_wxUSE_TOGGLEBTN=yes
5088 DEFAULT_wxUSE_TOOLBAR=yes
5089 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5090 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5091 DEFAULT_wxUSE_TOOLTIPS=yes
5092 DEFAULT_wxUSE_TREECTRL=yes
5093 DEFAULT_wxUSE_POPUPWIN=yes
5094 elif test "$wxUSE_CONTROLS" = "no"; then
5095 DEFAULT_wxUSE_ACCEL=no
5096 DEFAULT_wxUSE_BMPBUTTON=no
5097 DEFAULT_wxUSE_BUTTON=no
5098 DEFAULT_wxUSE_CALCTRL=no
5099 DEFAULT_wxUSE_CARET=no
5100 DEFAULT_wxUSE_COMBOBOX=no
5101 DEFAULT_wxUSE_CHECKBOX=no
5102 DEFAULT_wxUSE_CHECKLISTBOX=no
5103 DEFAULT_wxUSE_CHOICE=no
5104 DEFAULT_wxUSE_GAUGE=no
5105 DEFAULT_wxUSE_GRID=no
5106 DEFAULT_wxUSE_NEW_GRID=no
5107 DEFAULT_wxUSE_IMAGLIST=no
5108 DEFAULT_wxUSE_LISTBOX=no
5109 DEFAULT_wxUSE_LISTCTRL=no
5110 DEFAULT_wxUSE_NOTEBOOK=no
5111 DEFAULT_wxUSE_PROPSHEET=no
5112 DEFAULT_wxUSE_RADIOBOX=no
5113 DEFAULT_wxUSE_RADIOBTN=no
5114 DEFAULT_wxUSE_SASH=no
5115 DEFAULT_wxUSE_SCROLLBAR=no
5116 DEFAULT_wxUSE_SLIDER=no
5117 DEFAULT_wxUSE_SPINBTN=no
5118 DEFAULT_wxUSE_SPINCTRL=no
5119 DEFAULT_wxUSE_SPLITTER=no
5120 DEFAULT_wxUSE_STATBMP=no
5121 DEFAULT_wxUSE_STATBOX=no
5122 DEFAULT_wxUSE_STATLINE=no
5123 DEFAULT_wxUSE_STATUSBAR=no
5124 DEFAULT_wxUSE_TAB_DIALOG=no
5125 DEFAULT_wxUSE_TOGGLEBTN=no
5126 DEFAULT_wxUSE_TOOLBAR=no
5127 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5128 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5129 DEFAULT_wxUSE_TOOLTIPS=no
5130 DEFAULT_wxUSE_TREECTRL=no
5131 DEFAULT_wxUSE_POPUPWIN=no
5132 fi
5133
5134
5135 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5136 echo "configure:5137: checking for --enable-accel" >&5
5137 no_cache=0
5138 # Check whether --enable-accel or --disable-accel was given.
5139 if test "${enable_accel+set}" = set; then
5140 enableval="$enable_accel"
5141
5142 if test "$enableval" = yes; then
5143 ac_cv_use_accel='wxUSE_ACCEL=yes'
5144 else
5145 ac_cv_use_accel='wxUSE_ACCEL=no'
5146 fi
5147
5148 else
5149
5150 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5151 if test "x$LINE" != x ; then
5152 eval "DEFAULT_$LINE"
5153 else
5154 no_cache=1
5155 fi
5156
5157 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5158
5159 fi
5160
5161
5162 eval "$ac_cv_use_accel"
5163 if test "$no_cache" != 1; then
5164 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5165 fi
5166
5167 if test "$wxUSE_ACCEL" = yes; then
5168 echo "$ac_t""yes" 1>&6
5169 else
5170 echo "$ac_t""no" 1>&6
5171 fi
5172
5173
5174 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5175 echo "configure:5176: checking for --enable-button" >&5
5176 no_cache=0
5177 # Check whether --enable-button or --disable-button was given.
5178 if test "${enable_button+set}" = set; then
5179 enableval="$enable_button"
5180
5181 if test "$enableval" = yes; then
5182 ac_cv_use_button='wxUSE_BUTTON=yes'
5183 else
5184 ac_cv_use_button='wxUSE_BUTTON=no'
5185 fi
5186
5187 else
5188
5189 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5190 if test "x$LINE" != x ; then
5191 eval "DEFAULT_$LINE"
5192 else
5193 no_cache=1
5194 fi
5195
5196 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5197
5198 fi
5199
5200
5201 eval "$ac_cv_use_button"
5202 if test "$no_cache" != 1; then
5203 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5204 fi
5205
5206 if test "$wxUSE_BUTTON" = yes; then
5207 echo "$ac_t""yes" 1>&6
5208 else
5209 echo "$ac_t""no" 1>&6
5210 fi
5211
5212
5213 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5214 echo "configure:5215: checking for --enable-bmpbutton" >&5
5215 no_cache=0
5216 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5217 if test "${enable_bmpbutton+set}" = set; then
5218 enableval="$enable_bmpbutton"
5219
5220 if test "$enableval" = yes; then
5221 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5222 else
5223 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5224 fi
5225
5226 else
5227
5228 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5229 if test "x$LINE" != x ; then
5230 eval "DEFAULT_$LINE"
5231 else
5232 no_cache=1
5233 fi
5234
5235 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5236
5237 fi
5238
5239
5240 eval "$ac_cv_use_bmpbutton"
5241 if test "$no_cache" != 1; then
5242 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5243 fi
5244
5245 if test "$wxUSE_BMPBUTTON" = yes; then
5246 echo "$ac_t""yes" 1>&6
5247 else
5248 echo "$ac_t""no" 1>&6
5249 fi
5250
5251
5252 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5253 echo "configure:5254: checking for --enable-calendar" >&5
5254 no_cache=0
5255 # Check whether --enable-calendar or --disable-calendar was given.
5256 if test "${enable_calendar+set}" = set; then
5257 enableval="$enable_calendar"
5258
5259 if test "$enableval" = yes; then
5260 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5261 else
5262 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5263 fi
5264
5265 else
5266
5267 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5268 if test "x$LINE" != x ; then
5269 eval "DEFAULT_$LINE"
5270 else
5271 no_cache=1
5272 fi
5273
5274 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5275
5276 fi
5277
5278
5279 eval "$ac_cv_use_calendar"
5280 if test "$no_cache" != 1; then
5281 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5282 fi
5283
5284 if test "$wxUSE_CALCTRL" = yes; then
5285 echo "$ac_t""yes" 1>&6
5286 else
5287 echo "$ac_t""no" 1>&6
5288 fi
5289
5290
5291 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5292 echo "configure:5293: checking for --enable-caret" >&5
5293 no_cache=0
5294 # Check whether --enable-caret or --disable-caret was given.
5295 if test "${enable_caret+set}" = set; then
5296 enableval="$enable_caret"
5297
5298 if test "$enableval" = yes; then
5299 ac_cv_use_caret='wxUSE_CARET=yes'
5300 else
5301 ac_cv_use_caret='wxUSE_CARET=no'
5302 fi
5303
5304 else
5305
5306 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5307 if test "x$LINE" != x ; then
5308 eval "DEFAULT_$LINE"
5309 else
5310 no_cache=1
5311 fi
5312
5313 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5314
5315 fi
5316
5317
5318 eval "$ac_cv_use_caret"
5319 if test "$no_cache" != 1; then
5320 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5321 fi
5322
5323 if test "$wxUSE_CARET" = yes; then
5324 echo "$ac_t""yes" 1>&6
5325 else
5326 echo "$ac_t""no" 1>&6
5327 fi
5328
5329
5330 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5331 echo "configure:5332: checking for --enable-checkbox" >&5
5332 no_cache=0
5333 # Check whether --enable-checkbox or --disable-checkbox was given.
5334 if test "${enable_checkbox+set}" = set; then
5335 enableval="$enable_checkbox"
5336
5337 if test "$enableval" = yes; then
5338 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5339 else
5340 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5341 fi
5342
5343 else
5344
5345 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5346 if test "x$LINE" != x ; then
5347 eval "DEFAULT_$LINE"
5348 else
5349 no_cache=1
5350 fi
5351
5352 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5353
5354 fi
5355
5356
5357 eval "$ac_cv_use_checkbox"
5358 if test "$no_cache" != 1; then
5359 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5360 fi
5361
5362 if test "$wxUSE_CHECKBOX" = yes; then
5363 echo "$ac_t""yes" 1>&6
5364 else
5365 echo "$ac_t""no" 1>&6
5366 fi
5367
5368
5369 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5370 echo "configure:5371: checking for --enable-checklst" >&5
5371 no_cache=0
5372 # Check whether --enable-checklst or --disable-checklst was given.
5373 if test "${enable_checklst+set}" = set; then
5374 enableval="$enable_checklst"
5375
5376 if test "$enableval" = yes; then
5377 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5378 else
5379 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5380 fi
5381
5382 else
5383
5384 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5385 if test "x$LINE" != x ; then
5386 eval "DEFAULT_$LINE"
5387 else
5388 no_cache=1
5389 fi
5390
5391 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5392
5393 fi
5394
5395
5396 eval "$ac_cv_use_checklst"
5397 if test "$no_cache" != 1; then
5398 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5399 fi
5400
5401 if test "$wxUSE_CHECKLST" = yes; then
5402 echo "$ac_t""yes" 1>&6
5403 else
5404 echo "$ac_t""no" 1>&6
5405 fi
5406
5407
5408 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5409 echo "configure:5410: checking for --enable-choice" >&5
5410 no_cache=0
5411 # Check whether --enable-choice or --disable-choice was given.
5412 if test "${enable_choice+set}" = set; then
5413 enableval="$enable_choice"
5414
5415 if test "$enableval" = yes; then
5416 ac_cv_use_choice='wxUSE_CHOICE=yes'
5417 else
5418 ac_cv_use_choice='wxUSE_CHOICE=no'
5419 fi
5420
5421 else
5422
5423 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5424 if test "x$LINE" != x ; then
5425 eval "DEFAULT_$LINE"
5426 else
5427 no_cache=1
5428 fi
5429
5430 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5431
5432 fi
5433
5434
5435 eval "$ac_cv_use_choice"
5436 if test "$no_cache" != 1; then
5437 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5438 fi
5439
5440 if test "$wxUSE_CHOICE" = yes; then
5441 echo "$ac_t""yes" 1>&6
5442 else
5443 echo "$ac_t""no" 1>&6
5444 fi
5445
5446
5447 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5448 echo "configure:5449: checking for --enable-combobox" >&5
5449 no_cache=0
5450 # Check whether --enable-combobox or --disable-combobox was given.
5451 if test "${enable_combobox+set}" = set; then
5452 enableval="$enable_combobox"
5453
5454 if test "$enableval" = yes; then
5455 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5456 else
5457 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5458 fi
5459
5460 else
5461
5462 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5463 if test "x$LINE" != x ; then
5464 eval "DEFAULT_$LINE"
5465 else
5466 no_cache=1
5467 fi
5468
5469 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5470
5471 fi
5472
5473
5474 eval "$ac_cv_use_combobox"
5475 if test "$no_cache" != 1; then
5476 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5477 fi
5478
5479 if test "$wxUSE_COMBOBOX" = yes; then
5480 echo "$ac_t""yes" 1>&6
5481 else
5482 echo "$ac_t""no" 1>&6
5483 fi
5484
5485
5486 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
5487 echo "configure:5488: checking for --enable-gauge" >&5
5488 no_cache=0
5489 # Check whether --enable-gauge or --disable-gauge was given.
5490 if test "${enable_gauge+set}" = set; then
5491 enableval="$enable_gauge"
5492
5493 if test "$enableval" = yes; then
5494 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5495 else
5496 ac_cv_use_gauge='wxUSE_GAUGE=no'
5497 fi
5498
5499 else
5500
5501 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5502 if test "x$LINE" != x ; then
5503 eval "DEFAULT_$LINE"
5504 else
5505 no_cache=1
5506 fi
5507
5508 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
5509
5510 fi
5511
5512
5513 eval "$ac_cv_use_gauge"
5514 if test "$no_cache" != 1; then
5515 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5516 fi
5517
5518 if test "$wxUSE_GAUGE" = yes; then
5519 echo "$ac_t""yes" 1>&6
5520 else
5521 echo "$ac_t""no" 1>&6
5522 fi
5523
5524
5525 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
5526 echo "configure:5527: checking for --enable-grid" >&5
5527 no_cache=0
5528 # Check whether --enable-grid or --disable-grid was given.
5529 if test "${enable_grid+set}" = set; then
5530 enableval="$enable_grid"
5531
5532 if test "$enableval" = yes; then
5533 ac_cv_use_grid='wxUSE_GRID=yes'
5534 else
5535 ac_cv_use_grid='wxUSE_GRID=no'
5536 fi
5537
5538 else
5539
5540 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5541 if test "x$LINE" != x ; then
5542 eval "DEFAULT_$LINE"
5543 else
5544 no_cache=1
5545 fi
5546
5547 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5548
5549 fi
5550
5551
5552 eval "$ac_cv_use_grid"
5553 if test "$no_cache" != 1; then
5554 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5555 fi
5556
5557 if test "$wxUSE_GRID" = yes; then
5558 echo "$ac_t""yes" 1>&6
5559 else
5560 echo "$ac_t""no" 1>&6
5561 fi
5562
5563
5564 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
5565 echo "configure:5566: checking for --enable-newgrid" >&5
5566 no_cache=0
5567 # Check whether --enable-newgrid or --disable-newgrid was given.
5568 if test "${enable_newgrid+set}" = set; then
5569 enableval="$enable_newgrid"
5570
5571 if test "$enableval" = yes; then
5572 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5573 else
5574 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5575 fi
5576
5577 else
5578
5579 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5580 if test "x$LINE" != x ; then
5581 eval "DEFAULT_$LINE"
5582 else
5583 no_cache=1
5584 fi
5585
5586 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
5587
5588 fi
5589
5590
5591 eval "$ac_cv_use_newgrid"
5592 if test "$no_cache" != 1; then
5593 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5594 fi
5595
5596 if test "$wxUSE_NEW_GRID" = yes; then
5597 echo "$ac_t""yes" 1>&6
5598 else
5599 echo "$ac_t""no" 1>&6
5600 fi
5601
5602
5603 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
5604 echo "configure:5605: checking for --enable-imaglist" >&5
5605 no_cache=0
5606 # Check whether --enable-imaglist or --disable-imaglist was given.
5607 if test "${enable_imaglist+set}" = set; then
5608 enableval="$enable_imaglist"
5609
5610 if test "$enableval" = yes; then
5611 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5612 else
5613 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5614 fi
5615
5616 else
5617
5618 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5619 if test "x$LINE" != x ; then
5620 eval "DEFAULT_$LINE"
5621 else
5622 no_cache=1
5623 fi
5624
5625 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
5626
5627 fi
5628
5629
5630 eval "$ac_cv_use_imaglist"
5631 if test "$no_cache" != 1; then
5632 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5633 fi
5634
5635 if test "$wxUSE_IMAGLIST" = yes; then
5636 echo "$ac_t""yes" 1>&6
5637 else
5638 echo "$ac_t""no" 1>&6
5639 fi
5640
5641
5642 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
5643 echo "configure:5644: checking for --enable-listbox" >&5
5644 no_cache=0
5645 # Check whether --enable-listbox or --disable-listbox was given.
5646 if test "${enable_listbox+set}" = set; then
5647 enableval="$enable_listbox"
5648
5649 if test "$enableval" = yes; then
5650 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5651 else
5652 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5653 fi
5654
5655 else
5656
5657 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5658 if test "x$LINE" != x ; then
5659 eval "DEFAULT_$LINE"
5660 else
5661 no_cache=1
5662 fi
5663
5664 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
5665
5666 fi
5667
5668
5669 eval "$ac_cv_use_listbox"
5670 if test "$no_cache" != 1; then
5671 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5672 fi
5673
5674 if test "$wxUSE_LISTBOX" = yes; then
5675 echo "$ac_t""yes" 1>&6
5676 else
5677 echo "$ac_t""no" 1>&6
5678 fi
5679
5680
5681 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
5682 echo "configure:5683: checking for --enable-listctrl" >&5
5683 no_cache=0
5684 # Check whether --enable-listctrl or --disable-listctrl was given.
5685 if test "${enable_listctrl+set}" = set; then
5686 enableval="$enable_listctrl"
5687
5688 if test "$enableval" = yes; then
5689 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5690 else
5691 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5692 fi
5693
5694 else
5695
5696 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5697 if test "x$LINE" != x ; then
5698 eval "DEFAULT_$LINE"
5699 else
5700 no_cache=1
5701 fi
5702
5703 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
5704
5705 fi
5706
5707
5708 eval "$ac_cv_use_listctrl"
5709 if test "$no_cache" != 1; then
5710 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5711 fi
5712
5713 if test "$wxUSE_LISTCTRL" = yes; then
5714 echo "$ac_t""yes" 1>&6
5715 else
5716 echo "$ac_t""no" 1>&6
5717 fi
5718
5719
5720 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
5721 echo "configure:5722: checking for --enable-notebook" >&5
5722 no_cache=0
5723 # Check whether --enable-notebook or --disable-notebook was given.
5724 if test "${enable_notebook+set}" = set; then
5725 enableval="$enable_notebook"
5726
5727 if test "$enableval" = yes; then
5728 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5729 else
5730 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5731 fi
5732
5733 else
5734
5735 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5736 if test "x$LINE" != x ; then
5737 eval "DEFAULT_$LINE"
5738 else
5739 no_cache=1
5740 fi
5741
5742 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
5743
5744 fi
5745
5746
5747 eval "$ac_cv_use_notebook"
5748 if test "$no_cache" != 1; then
5749 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5750 fi
5751
5752 if test "$wxUSE_NOTEBOOK" = yes; then
5753 echo "$ac_t""yes" 1>&6
5754 else
5755 echo "$ac_t""no" 1>&6
5756 fi
5757
5758
5759 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
5760 echo "configure:5761: checking for --enable-propsheet" >&5
5761 no_cache=0
5762 # Check whether --enable-propsheet or --disable-propsheet was given.
5763 if test "${enable_propsheet+set}" = set; then
5764 enableval="$enable_propsheet"
5765
5766 if test "$enableval" = yes; then
5767 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5768 else
5769 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5770 fi
5771
5772 else
5773
5774 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5775 if test "x$LINE" != x ; then
5776 eval "DEFAULT_$LINE"
5777 else
5778 no_cache=1
5779 fi
5780
5781 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5782
5783 fi
5784
5785
5786 eval "$ac_cv_use_propsheet"
5787 if test "$no_cache" != 1; then
5788 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5789 fi
5790
5791 if test "$wxUSE_PROPSHEET" = yes; then
5792 echo "$ac_t""yes" 1>&6
5793 else
5794 echo "$ac_t""no" 1>&6
5795 fi
5796
5797
5798 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
5799 echo "configure:5800: checking for --enable-radiobox" >&5
5800 no_cache=0
5801 # Check whether --enable-radiobox or --disable-radiobox was given.
5802 if test "${enable_radiobox+set}" = set; then
5803 enableval="$enable_radiobox"
5804
5805 if test "$enableval" = yes; then
5806 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5807 else
5808 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5809 fi
5810
5811 else
5812
5813 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5814 if test "x$LINE" != x ; then
5815 eval "DEFAULT_$LINE"
5816 else
5817 no_cache=1
5818 fi
5819
5820 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
5821
5822 fi
5823
5824
5825 eval "$ac_cv_use_radiobox"
5826 if test "$no_cache" != 1; then
5827 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5828 fi
5829
5830 if test "$wxUSE_RADIOBOX" = yes; then
5831 echo "$ac_t""yes" 1>&6
5832 else
5833 echo "$ac_t""no" 1>&6
5834 fi
5835
5836
5837 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
5838 echo "configure:5839: checking for --enable-radiobtn" >&5
5839 no_cache=0
5840 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5841 if test "${enable_radiobtn+set}" = set; then
5842 enableval="$enable_radiobtn"
5843
5844 if test "$enableval" = yes; then
5845 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5846 else
5847 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5848 fi
5849
5850 else
5851
5852 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5853 if test "x$LINE" != x ; then
5854 eval "DEFAULT_$LINE"
5855 else
5856 no_cache=1
5857 fi
5858
5859 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
5860
5861 fi
5862
5863
5864 eval "$ac_cv_use_radiobtn"
5865 if test "$no_cache" != 1; then
5866 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5867 fi
5868
5869 if test "$wxUSE_RADIOBTN" = yes; then
5870 echo "$ac_t""yes" 1>&6
5871 else
5872 echo "$ac_t""no" 1>&6
5873 fi
5874
5875
5876 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
5877 echo "configure:5878: checking for --enable-sash" >&5
5878 no_cache=0
5879 # Check whether --enable-sash or --disable-sash was given.
5880 if test "${enable_sash+set}" = set; then
5881 enableval="$enable_sash"
5882
5883 if test "$enableval" = yes; then
5884 ac_cv_use_sash='wxUSE_SASH=yes'
5885 else
5886 ac_cv_use_sash='wxUSE_SASH=no'
5887 fi
5888
5889 else
5890
5891 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5892 if test "x$LINE" != x ; then
5893 eval "DEFAULT_$LINE"
5894 else
5895 no_cache=1
5896 fi
5897
5898 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
5899
5900 fi
5901
5902
5903 eval "$ac_cv_use_sash"
5904 if test "$no_cache" != 1; then
5905 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5906 fi
5907
5908 if test "$wxUSE_SASH" = yes; then
5909 echo "$ac_t""yes" 1>&6
5910 else
5911 echo "$ac_t""no" 1>&6
5912 fi
5913
5914
5915 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
5916 echo "configure:5917: checking for --enable-scrollbar" >&5
5917 no_cache=0
5918 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5919 if test "${enable_scrollbar+set}" = set; then
5920 enableval="$enable_scrollbar"
5921
5922 if test "$enableval" = yes; then
5923 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5924 else
5925 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5926 fi
5927
5928 else
5929
5930 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5931 if test "x$LINE" != x ; then
5932 eval "DEFAULT_$LINE"
5933 else
5934 no_cache=1
5935 fi
5936
5937 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
5938
5939 fi
5940
5941
5942 eval "$ac_cv_use_scrollbar"
5943 if test "$no_cache" != 1; then
5944 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5945 fi
5946
5947 if test "$wxUSE_SCROLLBAR" = yes; then
5948 echo "$ac_t""yes" 1>&6
5949 else
5950 echo "$ac_t""no" 1>&6
5951 fi
5952
5953
5954 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
5955 echo "configure:5956: checking for --enable-slider" >&5
5956 no_cache=0
5957 # Check whether --enable-slider or --disable-slider was given.
5958 if test "${enable_slider+set}" = set; then
5959 enableval="$enable_slider"
5960
5961 if test "$enableval" = yes; then
5962 ac_cv_use_slider='wxUSE_SLIDER=yes'
5963 else
5964 ac_cv_use_slider='wxUSE_SLIDER=no'
5965 fi
5966
5967 else
5968
5969 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5970 if test "x$LINE" != x ; then
5971 eval "DEFAULT_$LINE"
5972 else
5973 no_cache=1
5974 fi
5975
5976 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
5977
5978 fi
5979
5980
5981 eval "$ac_cv_use_slider"
5982 if test "$no_cache" != 1; then
5983 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5984 fi
5985
5986 if test "$wxUSE_SLIDER" = yes; then
5987 echo "$ac_t""yes" 1>&6
5988 else
5989 echo "$ac_t""no" 1>&6
5990 fi
5991
5992
5993 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
5994 echo "configure:5995: checking for --enable-spinbtn" >&5
5995 no_cache=0
5996 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5997 if test "${enable_spinbtn+set}" = set; then
5998 enableval="$enable_spinbtn"
5999
6000 if test "$enableval" = yes; then
6001 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6002 else
6003 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6004 fi
6005
6006 else
6007
6008 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6009 if test "x$LINE" != x ; then
6010 eval "DEFAULT_$LINE"
6011 else
6012 no_cache=1
6013 fi
6014
6015 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6016
6017 fi
6018
6019
6020 eval "$ac_cv_use_spinbtn"
6021 if test "$no_cache" != 1; then
6022 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6023 fi
6024
6025 if test "$wxUSE_SPINBTN" = yes; then
6026 echo "$ac_t""yes" 1>&6
6027 else
6028 echo "$ac_t""no" 1>&6
6029 fi
6030
6031
6032 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6033 echo "configure:6034: checking for --enable-spinctrl" >&5
6034 no_cache=0
6035 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6036 if test "${enable_spinctrl+set}" = set; then
6037 enableval="$enable_spinctrl"
6038
6039 if test "$enableval" = yes; then
6040 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6041 else
6042 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6043 fi
6044
6045 else
6046
6047 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6048 if test "x$LINE" != x ; then
6049 eval "DEFAULT_$LINE"
6050 else
6051 no_cache=1
6052 fi
6053
6054 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6055
6056 fi
6057
6058
6059 eval "$ac_cv_use_spinctrl"
6060 if test "$no_cache" != 1; then
6061 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6062 fi
6063
6064 if test "$wxUSE_SPINCTRL" = yes; then
6065 echo "$ac_t""yes" 1>&6
6066 else
6067 echo "$ac_t""no" 1>&6
6068 fi
6069
6070
6071 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6072 echo "configure:6073: checking for --enable-splitter" >&5
6073 no_cache=0
6074 # Check whether --enable-splitter or --disable-splitter was given.
6075 if test "${enable_splitter+set}" = set; then
6076 enableval="$enable_splitter"
6077
6078 if test "$enableval" = yes; then
6079 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6080 else
6081 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6082 fi
6083
6084 else
6085
6086 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6087 if test "x$LINE" != x ; then
6088 eval "DEFAULT_$LINE"
6089 else
6090 no_cache=1
6091 fi
6092
6093 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6094
6095 fi
6096
6097
6098 eval "$ac_cv_use_splitter"
6099 if test "$no_cache" != 1; then
6100 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6101 fi
6102
6103 if test "$wxUSE_SPLITTER" = yes; then
6104 echo "$ac_t""yes" 1>&6
6105 else
6106 echo "$ac_t""no" 1>&6
6107 fi
6108
6109
6110 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6111 echo "configure:6112: checking for --enable-statbmp" >&5
6112 no_cache=0
6113 # Check whether --enable-statbmp or --disable-statbmp was given.
6114 if test "${enable_statbmp+set}" = set; then
6115 enableval="$enable_statbmp"
6116
6117 if test "$enableval" = yes; then
6118 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6119 else
6120 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6121 fi
6122
6123 else
6124
6125 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6126 if test "x$LINE" != x ; then
6127 eval "DEFAULT_$LINE"
6128 else
6129 no_cache=1
6130 fi
6131
6132 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6133
6134 fi
6135
6136
6137 eval "$ac_cv_use_statbmp"
6138 if test "$no_cache" != 1; then
6139 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6140 fi
6141
6142 if test "$wxUSE_STATBMP" = yes; then
6143 echo "$ac_t""yes" 1>&6
6144 else
6145 echo "$ac_t""no" 1>&6
6146 fi
6147
6148
6149 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6150 echo "configure:6151: checking for --enable-statbox" >&5
6151 no_cache=0
6152 # Check whether --enable-statbox or --disable-statbox was given.
6153 if test "${enable_statbox+set}" = set; then
6154 enableval="$enable_statbox"
6155
6156 if test "$enableval" = yes; then
6157 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6158 else
6159 ac_cv_use_statbox='wxUSE_STATBOX=no'
6160 fi
6161
6162 else
6163
6164 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6165 if test "x$LINE" != x ; then
6166 eval "DEFAULT_$LINE"
6167 else
6168 no_cache=1
6169 fi
6170
6171 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6172
6173 fi
6174
6175
6176 eval "$ac_cv_use_statbox"
6177 if test "$no_cache" != 1; then
6178 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6179 fi
6180
6181 if test "$wxUSE_STATBOX" = yes; then
6182 echo "$ac_t""yes" 1>&6
6183 else
6184 echo "$ac_t""no" 1>&6
6185 fi
6186
6187
6188 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6189 echo "configure:6190: checking for --enable-statline" >&5
6190 no_cache=0
6191 # Check whether --enable-statline or --disable-statline was given.
6192 if test "${enable_statline+set}" = set; then
6193 enableval="$enable_statline"
6194
6195 if test "$enableval" = yes; then
6196 ac_cv_use_statline='wxUSE_STATLINE=yes'
6197 else
6198 ac_cv_use_statline='wxUSE_STATLINE=no'
6199 fi
6200
6201 else
6202
6203 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6204 if test "x$LINE" != x ; then
6205 eval "DEFAULT_$LINE"
6206 else
6207 no_cache=1
6208 fi
6209
6210 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6211
6212 fi
6213
6214
6215 eval "$ac_cv_use_statline"
6216 if test "$no_cache" != 1; then
6217 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6218 fi
6219
6220 if test "$wxUSE_STATLINE" = yes; then
6221 echo "$ac_t""yes" 1>&6
6222 else
6223 echo "$ac_t""no" 1>&6
6224 fi
6225
6226
6227 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6228 echo "configure:6229: checking for --enable-stattext" >&5
6229 no_cache=0
6230 # Check whether --enable-stattext or --disable-stattext was given.
6231 if test "${enable_stattext+set}" = set; then
6232 enableval="$enable_stattext"
6233
6234 if test "$enableval" = yes; then
6235 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6236 else
6237 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6238 fi
6239
6240 else
6241
6242 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6243 if test "x$LINE" != x ; then
6244 eval "DEFAULT_$LINE"
6245 else
6246 no_cache=1
6247 fi
6248
6249 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6250
6251 fi
6252
6253
6254 eval "$ac_cv_use_stattext"
6255 if test "$no_cache" != 1; then
6256 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6257 fi
6258
6259 if test "$wxUSE_STATTEXT" = yes; then
6260 echo "$ac_t""yes" 1>&6
6261 else
6262 echo "$ac_t""no" 1>&6
6263 fi
6264
6265
6266 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6267 echo "configure:6268: checking for --enable-statusbar" >&5
6268 no_cache=0
6269 # Check whether --enable-statusbar or --disable-statusbar was given.
6270 if test "${enable_statusbar+set}" = set; then
6271 enableval="$enable_statusbar"
6272
6273 if test "$enableval" = yes; then
6274 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6275 else
6276 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6277 fi
6278
6279 else
6280
6281 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6282 if test "x$LINE" != x ; then
6283 eval "DEFAULT_$LINE"
6284 else
6285 no_cache=1
6286 fi
6287
6288 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6289
6290 fi
6291
6292
6293 eval "$ac_cv_use_statusbar"
6294 if test "$no_cache" != 1; then
6295 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6296 fi
6297
6298 if test "$wxUSE_STATUSBAR" = yes; then
6299 echo "$ac_t""yes" 1>&6
6300 else
6301 echo "$ac_t""no" 1>&6
6302 fi
6303
6304
6305 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6306 echo "configure:6307: checking for --enable-tabdialog" >&5
6307 no_cache=0
6308 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6309 if test "${enable_tabdialog+set}" = set; then
6310 enableval="$enable_tabdialog"
6311
6312 if test "$enableval" = yes; then
6313 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6314 else
6315 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6316 fi
6317
6318 else
6319
6320 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6321 if test "x$LINE" != x ; then
6322 eval "DEFAULT_$LINE"
6323 else
6324 no_cache=1
6325 fi
6326
6327 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6328
6329 fi
6330
6331
6332 eval "$ac_cv_use_tabdialog"
6333 if test "$no_cache" != 1; then
6334 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6335 fi
6336
6337 if test "$wxUSE_TABDIALOG" = yes; then
6338 echo "$ac_t""yes" 1>&6
6339 else
6340 echo "$ac_t""no" 1>&6
6341 fi
6342
6343
6344 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6345 echo "configure:6346: checking for --enable-textctrl" >&5
6346 no_cache=0
6347 # Check whether --enable-textctrl or --disable-textctrl was given.
6348 if test "${enable_textctrl+set}" = set; then
6349 enableval="$enable_textctrl"
6350
6351 if test "$enableval" = yes; then
6352 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6353 else
6354 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6355 fi
6356
6357 else
6358
6359 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6360 if test "x$LINE" != x ; then
6361 eval "DEFAULT_$LINE"
6362 else
6363 no_cache=1
6364 fi
6365
6366 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6367
6368 fi
6369
6370
6371 eval "$ac_cv_use_textctrl"
6372 if test "$no_cache" != 1; then
6373 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6374 fi
6375
6376 if test "$wxUSE_TEXTCTRL" = yes; then
6377 echo "$ac_t""yes" 1>&6
6378 else
6379 echo "$ac_t""no" 1>&6
6380 fi
6381
6382
6383 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6384 echo "configure:6385: checking for --enable-togglebtn" >&5
6385 no_cache=0
6386 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6387 if test "${enable_togglebtn+set}" = set; then
6388 enableval="$enable_togglebtn"
6389
6390 if test "$enableval" = yes; then
6391 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6392 else
6393 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6394 fi
6395
6396 else
6397
6398 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6399 if test "x$LINE" != x ; then
6400 eval "DEFAULT_$LINE"
6401 else
6402 no_cache=1
6403 fi
6404
6405 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6406
6407 fi
6408
6409
6410 eval "$ac_cv_use_togglebtn"
6411 if test "$no_cache" != 1; then
6412 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6413 fi
6414
6415 if test "$wxUSE_TOGGLEBTN" = yes; then
6416 echo "$ac_t""yes" 1>&6
6417 else
6418 echo "$ac_t""no" 1>&6
6419 fi
6420
6421
6422 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6423 echo "configure:6424: checking for --enable-toolbar" >&5
6424 no_cache=0
6425 # Check whether --enable-toolbar or --disable-toolbar was given.
6426 if test "${enable_toolbar+set}" = set; then
6427 enableval="$enable_toolbar"
6428
6429 if test "$enableval" = yes; then
6430 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6431 else
6432 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6433 fi
6434
6435 else
6436
6437 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6438 if test "x$LINE" != x ; then
6439 eval "DEFAULT_$LINE"
6440 else
6441 no_cache=1
6442 fi
6443
6444 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6445
6446 fi
6447
6448
6449 eval "$ac_cv_use_toolbar"
6450 if test "$no_cache" != 1; then
6451 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6452 fi
6453
6454 if test "$wxUSE_TOOLBAR" = yes; then
6455 echo "$ac_t""yes" 1>&6
6456 else
6457 echo "$ac_t""no" 1>&6
6458 fi
6459
6460
6461 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6462 echo "configure:6463: checking for --enable-tbarnative" >&5
6463 no_cache=0
6464 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6465 if test "${enable_tbarnative+set}" = set; then
6466 enableval="$enable_tbarnative"
6467
6468 if test "$enableval" = yes; then
6469 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6470 else
6471 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6472 fi
6473
6474 else
6475
6476 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6477 if test "x$LINE" != x ; then
6478 eval "DEFAULT_$LINE"
6479 else
6480 no_cache=1
6481 fi
6482
6483 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
6484
6485 fi
6486
6487
6488 eval "$ac_cv_use_tbarnative"
6489 if test "$no_cache" != 1; then
6490 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6491 fi
6492
6493 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6494 echo "$ac_t""yes" 1>&6
6495 else
6496 echo "$ac_t""no" 1>&6
6497 fi
6498
6499
6500 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
6501 echo "configure:6502: checking for --enable-tbarsmpl" >&5
6502 no_cache=0
6503 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6504 if test "${enable_tbarsmpl+set}" = set; then
6505 enableval="$enable_tbarsmpl"
6506
6507 if test "$enableval" = yes; then
6508 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6509 else
6510 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6511 fi
6512
6513 else
6514
6515 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6516 if test "x$LINE" != x ; then
6517 eval "DEFAULT_$LINE"
6518 else
6519 no_cache=1
6520 fi
6521
6522 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
6523
6524 fi
6525
6526
6527 eval "$ac_cv_use_tbarsmpl"
6528 if test "$no_cache" != 1; then
6529 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6530 fi
6531
6532 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
6533 echo "$ac_t""yes" 1>&6
6534 else
6535 echo "$ac_t""no" 1>&6
6536 fi
6537
6538
6539 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
6540 echo "configure:6541: checking for --enable-treectrl" >&5
6541 no_cache=0
6542 # Check whether --enable-treectrl or --disable-treectrl was given.
6543 if test "${enable_treectrl+set}" = set; then
6544 enableval="$enable_treectrl"
6545
6546 if test "$enableval" = yes; then
6547 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6548 else
6549 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6550 fi
6551
6552 else
6553
6554 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6555 if test "x$LINE" != x ; then
6556 eval "DEFAULT_$LINE"
6557 else
6558 no_cache=1
6559 fi
6560
6561 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
6562
6563 fi
6564
6565
6566 eval "$ac_cv_use_treectrl"
6567 if test "$no_cache" != 1; then
6568 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6569 fi
6570
6571 if test "$wxUSE_TREECTRL" = yes; then
6572 echo "$ac_t""yes" 1>&6
6573 else
6574 echo "$ac_t""no" 1>&6
6575 fi
6576
6577
6578 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
6579 echo "configure:6580: checking for --enable-popupwin" >&5
6580 no_cache=0
6581 # Check whether --enable-popupwin or --disable-popupwin was given.
6582 if test "${enable_popupwin+set}" = set; then
6583 enableval="$enable_popupwin"
6584
6585 if test "$enableval" = yes; then
6586 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6587 else
6588 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6589 fi
6590
6591 else
6592
6593 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6594 if test "x$LINE" != x ; then
6595 eval "DEFAULT_$LINE"
6596 else
6597 no_cache=1
6598 fi
6599
6600 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6601
6602 fi
6603
6604
6605 eval "$ac_cv_use_popupwin"
6606 if test "$no_cache" != 1; then
6607 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6608 fi
6609
6610 if test "$wxUSE_POPUPWIN" = yes; then
6611 echo "$ac_t""yes" 1>&6
6612 else
6613 echo "$ac_t""no" 1>&6
6614 fi
6615
6616
6617
6618
6619 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
6620 echo "configure:6621: checking for --enable-commondlg" >&5
6621 no_cache=0
6622 # Check whether --enable-commondlg or --disable-commondlg was given.
6623 if test "${enable_commondlg+set}" = set; then
6624 enableval="$enable_commondlg"
6625
6626 if test "$enableval" = yes; then
6627 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6628 else
6629 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6630 fi
6631
6632 else
6633
6634 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6635 if test "x$LINE" != x ; then
6636 eval "DEFAULT_$LINE"
6637 else
6638 no_cache=1
6639 fi
6640
6641 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6642
6643 fi
6644
6645
6646 eval "$ac_cv_use_commondlg"
6647 if test "$no_cache" != 1; then
6648 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6649 fi
6650
6651 if test "$wxUSE_COMMONDLGS" = yes; then
6652 echo "$ac_t""yes" 1>&6
6653 else
6654 echo "$ac_t""no" 1>&6
6655 fi
6656
6657
6658 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
6659 echo "configure:6660: checking for --enable-choicedlg" >&5
6660 no_cache=0
6661 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6662 if test "${enable_choicedlg+set}" = set; then
6663 enableval="$enable_choicedlg"
6664
6665 if test "$enableval" = yes; then
6666 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6667 else
6668 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6669 fi
6670
6671 else
6672
6673 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6674 if test "x$LINE" != x ; then
6675 eval "DEFAULT_$LINE"
6676 else
6677 no_cache=1
6678 fi
6679
6680 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6681
6682 fi
6683
6684
6685 eval "$ac_cv_use_choicedlg"
6686 if test "$no_cache" != 1; then
6687 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6688 fi
6689
6690 if test "$wxUSE_CHOICEDLG" = yes; then
6691 echo "$ac_t""yes" 1>&6
6692 else
6693 echo "$ac_t""no" 1>&6
6694 fi
6695
6696
6697 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
6698 echo "configure:6699: checking for --enable-coldlg" >&5
6699 no_cache=0
6700 # Check whether --enable-coldlg or --disable-coldlg was given.
6701 if test "${enable_coldlg+set}" = set; then
6702 enableval="$enable_coldlg"
6703
6704 if test "$enableval" = yes; then
6705 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6706 else
6707 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6708 fi
6709
6710 else
6711
6712 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6713 if test "x$LINE" != x ; then
6714 eval "DEFAULT_$LINE"
6715 else
6716 no_cache=1
6717 fi
6718
6719 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6720
6721 fi
6722
6723
6724 eval "$ac_cv_use_coldlg"
6725 if test "$no_cache" != 1; then
6726 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6727 fi
6728
6729 if test "$wxUSE_COLOURDLG" = yes; then
6730 echo "$ac_t""yes" 1>&6
6731 else
6732 echo "$ac_t""no" 1>&6
6733 fi
6734
6735
6736 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6737 echo "configure:6738: checking for --enable-filedlg" >&5
6738 no_cache=0
6739 # Check whether --enable-filedlg or --disable-filedlg was given.
6740 if test "${enable_filedlg+set}" = set; then
6741 enableval="$enable_filedlg"
6742
6743 if test "$enableval" = yes; then
6744 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6745 else
6746 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6747 fi
6748
6749 else
6750
6751 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6752 if test "x$LINE" != x ; then
6753 eval "DEFAULT_$LINE"
6754 else
6755 no_cache=1
6756 fi
6757
6758 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6759
6760 fi
6761
6762
6763 eval "$ac_cv_use_filedlg"
6764 if test "$no_cache" != 1; then
6765 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6766 fi
6767
6768 if test "$wxUSE_FILEDLG" = yes; then
6769 echo "$ac_t""yes" 1>&6
6770 else
6771 echo "$ac_t""no" 1>&6
6772 fi
6773
6774
6775 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6776 echo "configure:6777: checking for --enable-filedlg" >&5
6777 no_cache=0
6778 # Check whether --enable-filedlg or --disable-filedlg was given.
6779 if test "${enable_filedlg+set}" = set; then
6780 enableval="$enable_filedlg"
6781
6782 if test "$enableval" = yes; then
6783 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes'
6784 else
6785 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no'
6786 fi
6787
6788 else
6789
6790 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6791 if test "x$LINE" != x ; then
6792 eval "DEFAULT_$LINE"
6793 else
6794 no_cache=1
6795 fi
6796
6797 ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
6798
6799 fi
6800
6801
6802 eval "$ac_cv_use_filedlg"
6803 if test "$no_cache" != 1; then
6804 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6805 fi
6806
6807 if test "$wxUSE_FINDREPLDLG" = yes; then
6808 echo "$ac_t""yes" 1>&6
6809 else
6810 echo "$ac_t""no" 1>&6
6811 fi
6812
6813
6814 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
6815 echo "configure:6816: checking for --enable-fontdlg" >&5
6816 no_cache=0
6817 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6818 if test "${enable_fontdlg+set}" = set; then
6819 enableval="$enable_fontdlg"
6820
6821 if test "$enableval" = yes; then
6822 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6823 else
6824 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6825 fi
6826
6827 else
6828
6829 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6830 if test "x$LINE" != x ; then
6831 eval "DEFAULT_$LINE"
6832 else
6833 no_cache=1
6834 fi
6835
6836 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6837
6838 fi
6839
6840
6841 eval "$ac_cv_use_fontdlg"
6842 if test "$no_cache" != 1; then
6843 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6844 fi
6845
6846 if test "$wxUSE_FONTDLG" = yes; then
6847 echo "$ac_t""yes" 1>&6
6848 else
6849 echo "$ac_t""no" 1>&6
6850 fi
6851
6852
6853 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
6854 echo "configure:6855: checking for --enable-dirdlg" >&5
6855 no_cache=0
6856 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6857 if test "${enable_dirdlg+set}" = set; then
6858 enableval="$enable_dirdlg"
6859
6860 if test "$enableval" = yes; then
6861 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6862 else
6863 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6864 fi
6865
6866 else
6867
6868 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6869 if test "x$LINE" != x ; then
6870 eval "DEFAULT_$LINE"
6871 else
6872 no_cache=1
6873 fi
6874
6875 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6876
6877 fi
6878
6879
6880 eval "$ac_cv_use_dirdlg"
6881 if test "$no_cache" != 1; then
6882 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
6883 fi
6884
6885 if test "$wxUSE_DIRDLG" = yes; then
6886 echo "$ac_t""yes" 1>&6
6887 else
6888 echo "$ac_t""no" 1>&6
6889 fi
6890
6891
6892 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
6893 echo "configure:6894: checking for --enable-msgdlg" >&5
6894 no_cache=0
6895 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6896 if test "${enable_msgdlg+set}" = set; then
6897 enableval="$enable_msgdlg"
6898
6899 if test "$enableval" = yes; then
6900 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
6901 else
6902 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
6903 fi
6904
6905 else
6906
6907 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
6908 if test "x$LINE" != x ; then
6909 eval "DEFAULT_$LINE"
6910 else
6911 no_cache=1
6912 fi
6913
6914 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
6915
6916 fi
6917
6918
6919 eval "$ac_cv_use_msgdlg"
6920 if test "$no_cache" != 1; then
6921 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
6922 fi
6923
6924 if test "$wxUSE_MSGDLG" = yes; then
6925 echo "$ac_t""yes" 1>&6
6926 else
6927 echo "$ac_t""no" 1>&6
6928 fi
6929
6930
6931 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
6932 echo "configure:6933: checking for --enable-numberdlg" >&5
6933 no_cache=0
6934 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6935 if test "${enable_numberdlg+set}" = set; then
6936 enableval="$enable_numberdlg"
6937
6938 if test "$enableval" = yes; then
6939 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
6940 else
6941 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
6942 fi
6943
6944 else
6945
6946 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
6947 if test "x$LINE" != x ; then
6948 eval "DEFAULT_$LINE"
6949 else
6950 no_cache=1
6951 fi
6952
6953 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
6954
6955 fi
6956
6957
6958 eval "$ac_cv_use_numberdlg"
6959 if test "$no_cache" != 1; then
6960 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
6961 fi
6962
6963 if test "$wxUSE_NUMBERDLG" = yes; then
6964 echo "$ac_t""yes" 1>&6
6965 else
6966 echo "$ac_t""no" 1>&6
6967 fi
6968
6969
6970 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
6971 echo "configure:6972: checking for --enable-textdlg" >&5
6972 no_cache=0
6973 # Check whether --enable-textdlg or --disable-textdlg was given.
6974 if test "${enable_textdlg+set}" = set; then
6975 enableval="$enable_textdlg"
6976
6977 if test "$enableval" = yes; then
6978 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6979 else
6980 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6981 fi
6982
6983 else
6984
6985 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6986 if test "x$LINE" != x ; then
6987 eval "DEFAULT_$LINE"
6988 else
6989 no_cache=1
6990 fi
6991
6992 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
6993
6994 fi
6995
6996
6997 eval "$ac_cv_use_textdlg"
6998 if test "$no_cache" != 1; then
6999 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7000 fi
7001
7002 if test "$wxUSE_TEXTDLG" = yes; then
7003 echo "$ac_t""yes" 1>&6
7004 else
7005 echo "$ac_t""no" 1>&6
7006 fi
7007
7008
7009 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7010 echo "configure:7011: checking for --enable-tipdlg" >&5
7011 no_cache=0
7012 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7013 if test "${enable_tipdlg+set}" = set; then
7014 enableval="$enable_tipdlg"
7015
7016 if test "$enableval" = yes; then
7017 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7018 else
7019 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7020 fi
7021
7022 else
7023
7024 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7025 if test "x$LINE" != x ; then
7026 eval "DEFAULT_$LINE"
7027 else
7028 no_cache=1
7029 fi
7030
7031 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7032
7033 fi
7034
7035
7036 eval "$ac_cv_use_tipdlg"
7037 if test "$no_cache" != 1; then
7038 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7039 fi
7040
7041 if test "$wxUSE_STARTUP_TIPS" = yes; then
7042 echo "$ac_t""yes" 1>&6
7043 else
7044 echo "$ac_t""no" 1>&6
7045 fi
7046
7047
7048 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7049 echo "configure:7050: checking for --enable-progressdlg" >&5
7050 no_cache=0
7051 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7052 if test "${enable_progressdlg+set}" = set; then
7053 enableval="$enable_progressdlg"
7054
7055 if test "$enableval" = yes; then
7056 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7057 else
7058 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7059 fi
7060
7061 else
7062
7063 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7064 if test "x$LINE" != x ; then
7065 eval "DEFAULT_$LINE"
7066 else
7067 no_cache=1
7068 fi
7069
7070 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7071
7072 fi
7073
7074
7075 eval "$ac_cv_use_progressdlg"
7076 if test "$no_cache" != 1; then
7077 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7078 fi
7079
7080 if test "$wxUSE_PROGRESSDLG" = yes; then
7081 echo "$ac_t""yes" 1>&6
7082 else
7083 echo "$ac_t""no" 1>&6
7084 fi
7085
7086
7087 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7088 echo "configure:7089: checking for --enable-wizarddlg" >&5
7089 no_cache=0
7090 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7091 if test "${enable_wizarddlg+set}" = set; then
7092 enableval="$enable_wizarddlg"
7093
7094 if test "$enableval" = yes; then
7095 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7096 else
7097 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7098 fi
7099
7100 else
7101
7102 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7103 if test "x$LINE" != x ; then
7104 eval "DEFAULT_$LINE"
7105 else
7106 no_cache=1
7107 fi
7108
7109 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7110
7111 fi
7112
7113
7114 eval "$ac_cv_use_wizarddlg"
7115 if test "$no_cache" != 1; then
7116 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7117 fi
7118
7119 if test "$wxUSE_WIZARDDLG" = yes; then
7120 echo "$ac_t""yes" 1>&6
7121 else
7122 echo "$ac_t""no" 1>&6
7123 fi
7124
7125
7126
7127
7128 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7129 echo "configure:7130: checking for --enable-menus" >&5
7130 no_cache=0
7131 # Check whether --enable-menus or --disable-menus was given.
7132 if test "${enable_menus+set}" = set; then
7133 enableval="$enable_menus"
7134
7135 if test "$enableval" = yes; then
7136 ac_cv_use_menus='wxUSE_MENUS=yes'
7137 else
7138 ac_cv_use_menus='wxUSE_MENUS=no'
7139 fi
7140
7141 else
7142
7143 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7144 if test "x$LINE" != x ; then
7145 eval "DEFAULT_$LINE"
7146 else
7147 no_cache=1
7148 fi
7149
7150 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7151
7152 fi
7153
7154
7155 eval "$ac_cv_use_menus"
7156 if test "$no_cache" != 1; then
7157 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7158 fi
7159
7160 if test "$wxUSE_MENUS" = yes; then
7161 echo "$ac_t""yes" 1>&6
7162 else
7163 echo "$ac_t""no" 1>&6
7164 fi
7165
7166
7167 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7168 echo "configure:7169: checking for --enable-miniframe" >&5
7169 no_cache=0
7170 # Check whether --enable-miniframe or --disable-miniframe was given.
7171 if test "${enable_miniframe+set}" = set; then
7172 enableval="$enable_miniframe"
7173
7174 if test "$enableval" = yes; then
7175 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7176 else
7177 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7178 fi
7179
7180 else
7181
7182 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7183 if test "x$LINE" != x ; then
7184 eval "DEFAULT_$LINE"
7185 else
7186 no_cache=1
7187 fi
7188
7189 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7190
7191 fi
7192
7193
7194 eval "$ac_cv_use_miniframe"
7195 if test "$no_cache" != 1; then
7196 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7197 fi
7198
7199 if test "$wxUSE_MINIFRAME" = yes; then
7200 echo "$ac_t""yes" 1>&6
7201 else
7202 echo "$ac_t""no" 1>&6
7203 fi
7204
7205
7206 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7207 echo "configure:7208: checking for --enable-tooltips" >&5
7208 no_cache=0
7209 # Check whether --enable-tooltips or --disable-tooltips was given.
7210 if test "${enable_tooltips+set}" = set; then
7211 enableval="$enable_tooltips"
7212
7213 if test "$enableval" = yes; then
7214 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7215 else
7216 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7217 fi
7218
7219 else
7220
7221 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7222 if test "x$LINE" != x ; then
7223 eval "DEFAULT_$LINE"
7224 else
7225 no_cache=1
7226 fi
7227
7228 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7229
7230 fi
7231
7232
7233 eval "$ac_cv_use_tooltips"
7234 if test "$no_cache" != 1; then
7235 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7236 fi
7237
7238 if test "$wxUSE_TOOLTIPS" = yes; then
7239 echo "$ac_t""yes" 1>&6
7240 else
7241 echo "$ac_t""no" 1>&6
7242 fi
7243
7244
7245 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7246 echo "configure:7247: checking for --enable-splines" >&5
7247 no_cache=0
7248 # Check whether --enable-splines or --disable-splines was given.
7249 if test "${enable_splines+set}" = set; then
7250 enableval="$enable_splines"
7251
7252 if test "$enableval" = yes; then
7253 ac_cv_use_splines='wxUSE_SPLINES=yes'
7254 else
7255 ac_cv_use_splines='wxUSE_SPLINES=no'
7256 fi
7257
7258 else
7259
7260 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7261 if test "x$LINE" != x ; then
7262 eval "DEFAULT_$LINE"
7263 else
7264 no_cache=1
7265 fi
7266
7267 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7268
7269 fi
7270
7271
7272 eval "$ac_cv_use_splines"
7273 if test "$no_cache" != 1; then
7274 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7275 fi
7276
7277 if test "$wxUSE_SPLINES" = yes; then
7278 echo "$ac_t""yes" 1>&6
7279 else
7280 echo "$ac_t""no" 1>&6
7281 fi
7282
7283
7284 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7285 echo "configure:7286: checking for --enable-validators" >&5
7286 no_cache=0
7287 # Check whether --enable-validators or --disable-validators was given.
7288 if test "${enable_validators+set}" = set; then
7289 enableval="$enable_validators"
7290
7291 if test "$enableval" = yes; then
7292 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7293 else
7294 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7295 fi
7296
7297 else
7298
7299 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7300 if test "x$LINE" != x ; then
7301 eval "DEFAULT_$LINE"
7302 else
7303 no_cache=1
7304 fi
7305
7306 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7307
7308 fi
7309
7310
7311 eval "$ac_cv_use_validators"
7312 if test "$no_cache" != 1; then
7313 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7314 fi
7315
7316 if test "$wxUSE_VALIDATORS" = yes; then
7317 echo "$ac_t""yes" 1>&6
7318 else
7319 echo "$ac_t""no" 1>&6
7320 fi
7321
7322
7323 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7324 echo "configure:7325: checking for --enable-busyinfo" >&5
7325 no_cache=0
7326 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7327 if test "${enable_busyinfo+set}" = set; then
7328 enableval="$enable_busyinfo"
7329
7330 if test "$enableval" = yes; then
7331 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7332 else
7333 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7334 fi
7335
7336 else
7337
7338 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7339 if test "x$LINE" != x ; then
7340 eval "DEFAULT_$LINE"
7341 else
7342 no_cache=1
7343 fi
7344
7345 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7346
7347 fi
7348
7349
7350 eval "$ac_cv_use_busyinfo"
7351 if test "$no_cache" != 1; then
7352 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7353 fi
7354
7355 if test "$wxUSE_BUSYINFO" = yes; then
7356 echo "$ac_t""yes" 1>&6
7357 else
7358 echo "$ac_t""no" 1>&6
7359 fi
7360
7361
7362 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7363 echo "configure:7364: checking for --enable-joystick" >&5
7364 no_cache=0
7365 # Check whether --enable-joystick or --disable-joystick was given.
7366 if test "${enable_joystick+set}" = set; then
7367 enableval="$enable_joystick"
7368
7369 if test "$enableval" = yes; then
7370 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7371 else
7372 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7373 fi
7374
7375 else
7376
7377 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7378 if test "x$LINE" != x ; then
7379 eval "DEFAULT_$LINE"
7380 else
7381 no_cache=1
7382 fi
7383
7384 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
7385
7386 fi
7387
7388
7389 eval "$ac_cv_use_joystick"
7390 if test "$no_cache" != 1; then
7391 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7392 fi
7393
7394 if test "$wxUSE_JOYSTICK" = yes; then
7395 echo "$ac_t""yes" 1>&6
7396 else
7397 echo "$ac_t""no" 1>&6
7398 fi
7399
7400
7401 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
7402 echo "configure:7403: checking for --enable-metafile" >&5
7403 no_cache=0
7404 # Check whether --enable-metafile or --disable-metafile was given.
7405 if test "${enable_metafile+set}" = set; then
7406 enableval="$enable_metafile"
7407
7408 if test "$enableval" = yes; then
7409 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7410 else
7411 ac_cv_use_metafile='wxUSE_METAFILE=no'
7412 fi
7413
7414 else
7415
7416 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7417 if test "x$LINE" != x ; then
7418 eval "DEFAULT_$LINE"
7419 else
7420 no_cache=1
7421 fi
7422
7423 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7424
7425 fi
7426
7427
7428 eval "$ac_cv_use_metafile"
7429 if test "$no_cache" != 1; then
7430 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7431 fi
7432
7433 if test "$wxUSE_METAFILE" = yes; then
7434 echo "$ac_t""yes" 1>&6
7435 else
7436 echo "$ac_t""no" 1>&6
7437 fi
7438
7439
7440 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
7441 echo "configure:7442: checking for --enable-dragimage" >&5
7442 no_cache=0
7443 # Check whether --enable-dragimage or --disable-dragimage was given.
7444 if test "${enable_dragimage+set}" = set; then
7445 enableval="$enable_dragimage"
7446
7447 if test "$enableval" = yes; then
7448 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7449 else
7450 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7451 fi
7452
7453 else
7454
7455 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7456 if test "x$LINE" != x ; then
7457 eval "DEFAULT_$LINE"
7458 else
7459 no_cache=1
7460 fi
7461
7462 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7463
7464 fi
7465
7466
7467 eval "$ac_cv_use_dragimage"
7468 if test "$no_cache" != 1; then
7469 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7470 fi
7471
7472 if test "$wxUSE_DRAGIMAGE" = yes; then
7473 echo "$ac_t""yes" 1>&6
7474 else
7475 echo "$ac_t""no" 1>&6
7476 fi
7477
7478
7479
7480
7481 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
7482 echo "configure:7483: checking for --enable-image" >&5
7483 no_cache=0
7484 # Check whether --enable-image or --disable-image was given.
7485 if test "${enable_image+set}" = set; then
7486 enableval="$enable_image"
7487
7488 if test "$enableval" = yes; then
7489 ac_cv_use_image='wxUSE_IMAGE=yes'
7490 else
7491 ac_cv_use_image='wxUSE_IMAGE=no'
7492 fi
7493
7494 else
7495
7496 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7497 if test "x$LINE" != x ; then
7498 eval "DEFAULT_$LINE"
7499 else
7500 no_cache=1
7501 fi
7502
7503 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
7504
7505 fi
7506
7507
7508 eval "$ac_cv_use_image"
7509 if test "$no_cache" != 1; then
7510 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7511 fi
7512
7513 if test "$wxUSE_IMAGE" = yes; then
7514 echo "$ac_t""yes" 1>&6
7515 else
7516 echo "$ac_t""no" 1>&6
7517 fi
7518
7519
7520 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7521 echo "configure:7522: checking for --enable-gif" >&5
7522 no_cache=0
7523 # Check whether --enable-gif or --disable-gif was given.
7524 if test "${enable_gif+set}" = set; then
7525 enableval="$enable_gif"
7526
7527 if test "$enableval" = yes; then
7528 ac_cv_use_gif='wxUSE_GIF=yes'
7529 else
7530 ac_cv_use_gif='wxUSE_GIF=no'
7531 fi
7532
7533 else
7534
7535 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7536 if test "x$LINE" != x ; then
7537 eval "DEFAULT_$LINE"
7538 else
7539 no_cache=1
7540 fi
7541
7542 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
7543
7544 fi
7545
7546
7547 eval "$ac_cv_use_gif"
7548 if test "$no_cache" != 1; then
7549 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7550 fi
7551
7552 if test "$wxUSE_GIF" = yes; then
7553 echo "$ac_t""yes" 1>&6
7554 else
7555 echo "$ac_t""no" 1>&6
7556 fi
7557
7558
7559 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7560 echo "configure:7561: checking for --enable-pcx" >&5
7561 no_cache=0
7562 # Check whether --enable-pcx or --disable-pcx was given.
7563 if test "${enable_pcx+set}" = set; then
7564 enableval="$enable_pcx"
7565
7566 if test "$enableval" = yes; then
7567 ac_cv_use_pcx='wxUSE_PCX=yes'
7568 else
7569 ac_cv_use_pcx='wxUSE_PCX=no'
7570 fi
7571
7572 else
7573
7574 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7575 if test "x$LINE" != x ; then
7576 eval "DEFAULT_$LINE"
7577 else
7578 no_cache=1
7579 fi
7580
7581 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
7582
7583 fi
7584
7585
7586 eval "$ac_cv_use_pcx"
7587 if test "$no_cache" != 1; then
7588 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7589 fi
7590
7591 if test "$wxUSE_PCX" = yes; then
7592 echo "$ac_t""yes" 1>&6
7593 else
7594 echo "$ac_t""no" 1>&6
7595 fi
7596
7597
7598 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7599 echo "configure:7600: checking for --enable-pnm" >&5
7600 no_cache=0
7601 # Check whether --enable-pnm or --disable-pnm was given.
7602 if test "${enable_pnm+set}" = set; then
7603 enableval="$enable_pnm"
7604
7605 if test "$enableval" = yes; then
7606 ac_cv_use_pnm='wxUSE_PNM=yes'
7607 else
7608 ac_cv_use_pnm='wxUSE_PNM=no'
7609 fi
7610
7611 else
7612
7613 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7614 if test "x$LINE" != x ; then
7615 eval "DEFAULT_$LINE"
7616 else
7617 no_cache=1
7618 fi
7619
7620 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
7621
7622 fi
7623
7624
7625 eval "$ac_cv_use_pnm"
7626 if test "$no_cache" != 1; then
7627 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7628 fi
7629
7630 if test "$wxUSE_PNM" = yes; then
7631 echo "$ac_t""yes" 1>&6
7632 else
7633 echo "$ac_t""no" 1>&6
7634 fi
7635
7636
7637 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7638 echo "configure:7639: checking for --enable-pnm" >&5
7639 no_cache=0
7640 # Check whether --enable-pnm or --disable-pnm was given.
7641 if test "${enable_pnm+set}" = set; then
7642 enableval="$enable_pnm"
7643
7644 if test "$enableval" = yes; then
7645 ac_cv_use_pnm='wxUSE_XPM=yes'
7646 else
7647 ac_cv_use_pnm='wxUSE_XPM=no'
7648 fi
7649
7650 else
7651
7652 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7653 if test "x$LINE" != x ; then
7654 eval "DEFAULT_$LINE"
7655 else
7656 no_cache=1
7657 fi
7658
7659 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
7660
7661 fi
7662
7663
7664 eval "$ac_cv_use_pnm"
7665 if test "$no_cache" != 1; then
7666 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7667 fi
7668
7669 if test "$wxUSE_XPM" = yes; then
7670 echo "$ac_t""yes" 1>&6
7671 else
7672 echo "$ac_t""no" 1>&6
7673 fi
7674
7675
7676 fi
7677
7678
7679 echo "saving argument cache $wx_arg_cache_file"
7680 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
7681
7682
7683
7684 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7685 echo "configure:7686: checking for toolkit" >&5
7686
7687 if test "$wxUSE_GUI" = "yes"; then
7688
7689 if test "$USE_BEOS" = 1; then
7690 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7691 fi
7692
7693 if test "$TOOLKIT_GIVEN" = 1; then
7694 for toolkit in `echo $ALL_TOOLKITS`; do
7695 var=wxUSE_$toolkit
7696 eval "value=\$${var}"
7697 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7698 done
7699 else
7700 for toolkit in `echo $ALL_TOOLKITS`; do
7701 if test "$has_toolkit_in_cache" != 1; then
7702 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7703 else
7704 var=DEFAULT_wxUSE_$toolkit
7705 fi
7706 eval "wxUSE_$toolkit=\$${var}"
7707 done
7708 fi
7709
7710 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}`
7711
7712 case "${host}" in
7713 *-pc-os2_emx )
7714 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7715 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7716 LEX_STEM="lexyy"
7717 ;;
7718 *)
7719 PATH_IFS=':'
7720 LEX_STEM="lex.yy"
7721 ;;
7722 esac
7723
7724 case "$NUM_TOOLKITS" in
7725 1)
7726 ;;
7727 0)
7728 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7729 ;;
7730 *)
7731 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7732 esac
7733
7734 for toolkit in `echo $ALL_TOOLKITS`; do
7735 var=wxUSE_$toolkit
7736 eval "value=\$${var}"
7737 if test "x$value" != x; then
7738 cache_var=CACHE_$toolkit
7739 eval "cache=\$${cache_var}"
7740 if test "$cache" = 1; then
7741 echo "$var=$value" >> ${wx_arg_cache_file}
7742 fi
7743 if test "$value" = 1; then
7744 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7745 echo "$ac_t""$toolkit_echo" 1>&6
7746 fi
7747 fi
7748 done
7749
7750 else
7751 PATH_IFS=':'
7752 echo "$ac_t""base only" 1>&6
7753 fi
7754
7755
7756 cat > confcache <<\EOF
7757 # This file is a shell script that caches the results of configure
7758 # tests run on this system so they can be shared between configure
7759 # scripts and configure runs. It is not useful on other systems.
7760 # If it contains results you don't want to keep, you may remove or edit it.
7761 #
7762 # By default, configure uses ./config.cache as the cache file,
7763 # creating it if it does not exist already. You can give configure
7764 # the --cache-file=FILE option to use a different cache file; that is
7765 # what configure does when it calls configure scripts in
7766 # subdirectories, so they share the cache.
7767 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7768 # config.status only pays attention to the cache file if you give it the
7769 # --recheck option to rerun configure.
7770 #
7771 EOF
7772 # The following way of writing the cache mishandles newlines in values,
7773 # but we know of no workaround that is simple, portable, and efficient.
7774 # So, don't put newlines in cache variables' values.
7775 # Ultrix sh set writes to stderr and can't be redirected directly,
7776 # and sets the high bit in the cache file unless we assign to the vars.
7777 (set) 2>&1 |
7778 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7779 *ac_space=\ *)
7780 # `set' does not quote correctly, so add quotes (double-quote substitution
7781 # turns \\\\ into \\, and sed turns \\ into \).
7782 sed -n \
7783 -e "s/'/'\\\\''/g" \
7784 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7785 ;;
7786 *)
7787 # `set' quotes correctly as required by POSIX, so do not add quotes.
7788 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7789 ;;
7790 esac >> confcache
7791 if cmp -s $cache_file confcache; then
7792 :
7793 else
7794 if test -w $cache_file; then
7795 echo "updating cache $cache_file"
7796 cat confcache > $cache_file
7797 else
7798 echo "not updating unwritable cache $cache_file"
7799 fi
7800 fi
7801 rm -f confcache
7802
7803
7804 if test "$build" != "$host" ; then
7805 CC=$host_alias-gcc
7806 CXX=$host_alias-c++
7807 AR=$host_alias-ar
7808 RANLIB=$host_alias-ranlib
7809 DLLTOOL=$host_alias-dlltool
7810 RESCOMP=$host_alias-windres
7811 LD=$host_alias-ld
7812 NM=$host_alias-nm
7813 STRIP=$host_alias-strip
7814 fi
7815
7816 # Extract the first word of "gcc", so it can be a program name with args.
7817 set dummy gcc; ac_word=$2
7818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7819 echo "configure:7820: checking for $ac_word" >&5
7820 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7821 echo $ac_n "(cached) $ac_c" 1>&6
7822 else
7823 if test -n "$CC"; then
7824 ac_cv_prog_CC="$CC" # Let the user override the test.
7825 else
7826 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7827 ac_dummy="$PATH"
7828 for ac_dir in $ac_dummy; do
7829 test -z "$ac_dir" && ac_dir=.
7830 if test -f $ac_dir/$ac_word; then
7831 ac_cv_prog_CC="gcc"
7832 break
7833 fi
7834 done
7835 IFS="$ac_save_ifs"
7836 fi
7837 fi
7838 CC="$ac_cv_prog_CC"
7839 if test -n "$CC"; then
7840 echo "$ac_t""$CC" 1>&6
7841 else
7842 echo "$ac_t""no" 1>&6
7843 fi
7844
7845 if test -z "$CC"; then
7846 # Extract the first word of "cc", so it can be a program name with args.
7847 set dummy cc; ac_word=$2
7848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7849 echo "configure:7850: checking for $ac_word" >&5
7850 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7851 echo $ac_n "(cached) $ac_c" 1>&6
7852 else
7853 if test -n "$CC"; then
7854 ac_cv_prog_CC="$CC" # Let the user override the test.
7855 else
7856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7857 ac_prog_rejected=no
7858 ac_dummy="$PATH"
7859 for ac_dir in $ac_dummy; do
7860 test -z "$ac_dir" && ac_dir=.
7861 if test -f $ac_dir/$ac_word; then
7862 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7863 ac_prog_rejected=yes
7864 continue
7865 fi
7866 ac_cv_prog_CC="cc"
7867 break
7868 fi
7869 done
7870 IFS="$ac_save_ifs"
7871 if test $ac_prog_rejected = yes; then
7872 # We found a bogon in the path, so make sure we never use it.
7873 set dummy $ac_cv_prog_CC
7874 shift
7875 if test $# -gt 0; then
7876 # We chose a different compiler from the bogus one.
7877 # However, it has the same basename, so the bogon will be chosen
7878 # first if we set CC to just the basename; use the full file name.
7879 shift
7880 set dummy "$ac_dir/$ac_word" "$@"
7881 shift
7882 ac_cv_prog_CC="$@"
7883 fi
7884 fi
7885 fi
7886 fi
7887 CC="$ac_cv_prog_CC"
7888 if test -n "$CC"; then
7889 echo "$ac_t""$CC" 1>&6
7890 else
7891 echo "$ac_t""no" 1>&6
7892 fi
7893
7894 if test -z "$CC"; then
7895 case "`uname -s`" in
7896 *win32* | *WIN32*)
7897 # Extract the first word of "cl", so it can be a program name with args.
7898 set dummy cl; ac_word=$2
7899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7900 echo "configure:7901: checking for $ac_word" >&5
7901 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7902 echo $ac_n "(cached) $ac_c" 1>&6
7903 else
7904 if test -n "$CC"; then
7905 ac_cv_prog_CC="$CC" # Let the user override the test.
7906 else
7907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7908 ac_dummy="$PATH"
7909 for ac_dir in $ac_dummy; do
7910 test -z "$ac_dir" && ac_dir=.
7911 if test -f $ac_dir/$ac_word; then
7912 ac_cv_prog_CC="cl"
7913 break
7914 fi
7915 done
7916 IFS="$ac_save_ifs"
7917 fi
7918 fi
7919 CC="$ac_cv_prog_CC"
7920 if test -n "$CC"; then
7921 echo "$ac_t""$CC" 1>&6
7922 else
7923 echo "$ac_t""no" 1>&6
7924 fi
7925 ;;
7926 esac
7927 fi
7928 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
7929 fi
7930
7931 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7932 echo "configure:7933: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
7933
7934 ac_ext=c
7935 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7936 ac_cpp='$CPP $CPPFLAGS'
7937 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7938 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7939 cross_compiling=$ac_cv_prog_cc_cross
7940
7941 cat > conftest.$ac_ext << EOF
7942
7943 #line 7944 "configure"
7944 #include "confdefs.h"
7945
7946 main(){return(0);}
7947 EOF
7948 if { (eval echo configure:7949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7949 ac_cv_prog_cc_works=yes
7950 # If we can't run a trivial program, we are probably using a cross compiler.
7951 if (./conftest; exit) 2>/dev/null; then
7952 ac_cv_prog_cc_cross=no
7953 else
7954 ac_cv_prog_cc_cross=yes
7955 fi
7956 else
7957 echo "configure: failed program was:" >&5
7958 cat conftest.$ac_ext >&5
7959 ac_cv_prog_cc_works=no
7960 fi
7961 rm -fr conftest*
7962 ac_ext=c
7963 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7964 ac_cpp='$CPP $CPPFLAGS'
7965 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7966 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7967 cross_compiling=$ac_cv_prog_cc_cross
7968
7969 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
7970 if test $ac_cv_prog_cc_works = no; then
7971 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
7972 fi
7973 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7974 echo "configure:7975: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
7975 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
7976 cross_compiling=$ac_cv_prog_cc_cross
7977
7978 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
7979 echo "configure:7980: checking whether we are using GNU C" >&5
7980 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
7981 echo $ac_n "(cached) $ac_c" 1>&6
7982 else
7983 cat > conftest.c <<EOF
7984 #ifdef __GNUC__
7985 yes;
7986 #endif
7987 EOF
7988 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
7989 ac_cv_prog_gcc=yes
7990 else
7991 ac_cv_prog_gcc=no
7992 fi
7993 fi
7994
7995 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
7996
7997 if test $ac_cv_prog_gcc = yes; then
7998 GCC=yes
7999 else
8000 GCC=
8001 fi
8002
8003 ac_test_CFLAGS="${CFLAGS+set}"
8004 ac_save_CFLAGS="$CFLAGS"
8005 CFLAGS=
8006 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8007 echo "configure:8008: checking whether ${CC-cc} accepts -g" >&5
8008 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8009 echo $ac_n "(cached) $ac_c" 1>&6
8010 else
8011 echo 'void f(){}' > conftest.c
8012 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8013 ac_cv_prog_cc_g=yes
8014 else
8015 ac_cv_prog_cc_g=no
8016 fi
8017 rm -f conftest*
8018
8019 fi
8020
8021 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8022 if test "$ac_test_CFLAGS" = set; then
8023 CFLAGS="$ac_save_CFLAGS"
8024 elif test $ac_cv_prog_cc_g = yes; then
8025 if test "$GCC" = yes; then
8026 CFLAGS="-g -O2"
8027 else
8028 CFLAGS="-g"
8029 fi
8030 else
8031 if test "$GCC" = yes; then
8032 CFLAGS="-O2"
8033 else
8034 CFLAGS=
8035 fi
8036 fi
8037
8038
8039 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8040
8041 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8042 echo "configure:8043: checking how to run the C preprocessor" >&5
8043 # On Suns, sometimes $CPP names a directory.
8044 if test -n "$CPP" && test -d "$CPP"; then
8045 CPP=
8046 fi
8047 if test -z "$CPP"; then
8048 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8049 echo $ac_n "(cached) $ac_c" 1>&6
8050 else
8051 # This must be in double quotes, not single quotes, because CPP may get
8052 # substituted into the Makefile and "${CC-cc}" will confuse make.
8053 CPP="${CC-cc} -E"
8054 # On the NeXT, cc -E runs the code through the compiler's parser,
8055 # not just through cpp.
8056 cat > conftest.$ac_ext <<EOF
8057 #line 8058 "configure"
8058 #include "confdefs.h"
8059 #include <assert.h>
8060 Syntax Error
8061 EOF
8062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8063 { (eval echo configure:8064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8065 if test -z "$ac_err"; then
8066 :
8067 else
8068 echo "$ac_err" >&5
8069 echo "configure: failed program was:" >&5
8070 cat conftest.$ac_ext >&5
8071 rm -rf conftest*
8072 CPP="${CC-cc} -E -traditional-cpp"
8073 cat > conftest.$ac_ext <<EOF
8074 #line 8075 "configure"
8075 #include "confdefs.h"
8076 #include <assert.h>
8077 Syntax Error
8078 EOF
8079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8080 { (eval echo configure:8081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8082 if test -z "$ac_err"; then
8083 :
8084 else
8085 echo "$ac_err" >&5
8086 echo "configure: failed program was:" >&5
8087 cat conftest.$ac_ext >&5
8088 rm -rf conftest*
8089 CPP="${CC-cc} -nologo -E"
8090 cat > conftest.$ac_ext <<EOF
8091 #line 8092 "configure"
8092 #include "confdefs.h"
8093 #include <assert.h>
8094 Syntax Error
8095 EOF
8096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8097 { (eval echo configure:8098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8099 if test -z "$ac_err"; then
8100 :
8101 else
8102 echo "$ac_err" >&5
8103 echo "configure: failed program was:" >&5
8104 cat conftest.$ac_ext >&5
8105 rm -rf conftest*
8106 CPP=/lib/cpp
8107 fi
8108 rm -f conftest*
8109 fi
8110 rm -f conftest*
8111 fi
8112 rm -f conftest*
8113 ac_cv_prog_CPP="$CPP"
8114 fi
8115 CPP="$ac_cv_prog_CPP"
8116 else
8117 ac_cv_prog_CPP="$CPP"
8118 fi
8119 echo "$ac_t""$CPP" 1>&6
8120
8121
8122 if test $ac_cv_prog_gcc = yes; then
8123 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8124 echo "configure:8125: checking whether ${CC-cc} needs -traditional" >&5
8125 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8126 echo $ac_n "(cached) $ac_c" 1>&6
8127 else
8128 ac_pattern="Autoconf.*'x'"
8129 cat > conftest.$ac_ext <<EOF
8130 #line 8131 "configure"
8131 #include "confdefs.h"
8132 #include <sgtty.h>
8133 Autoconf TIOCGETP
8134 EOF
8135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8136 egrep "$ac_pattern" >/dev/null 2>&1; then
8137 rm -rf conftest*
8138 ac_cv_prog_gcc_traditional=yes
8139 else
8140 rm -rf conftest*
8141 ac_cv_prog_gcc_traditional=no
8142 fi
8143 rm -f conftest*
8144
8145
8146 if test $ac_cv_prog_gcc_traditional = no; then
8147 cat > conftest.$ac_ext <<EOF
8148 #line 8149 "configure"
8149 #include "confdefs.h"
8150 #include <termio.h>
8151 Autoconf TCGETA
8152 EOF
8153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8154 egrep "$ac_pattern" >/dev/null 2>&1; then
8155 rm -rf conftest*
8156 ac_cv_prog_gcc_traditional=yes
8157 fi
8158 rm -f conftest*
8159
8160 fi
8161 fi
8162
8163 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8164 if test $ac_cv_prog_gcc_traditional = yes; then
8165 CC="$CC -traditional"
8166 fi
8167 fi
8168
8169
8170
8171 ac_ext=C
8172 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8173 ac_cpp='$CXXCPP $CPPFLAGS'
8174 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8175 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8176 cross_compiling=$ac_cv_prog_cxx_cross
8177
8178
8179 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8180 do
8181 # Extract the first word of "$ac_prog", so it can be a program name with args.
8182 set dummy $ac_prog; ac_word=$2
8183 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8184 echo "configure:8185: checking for $ac_word" >&5
8185 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8186 echo $ac_n "(cached) $ac_c" 1>&6
8187 else
8188 if test -n "$CXX"; then
8189 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8190 else
8191 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8192 ac_dummy="$PATH"
8193 for ac_dir in $ac_dummy; do
8194 test -z "$ac_dir" && ac_dir=.
8195 if test -f $ac_dir/$ac_word; then
8196 ac_cv_prog_CXX="$ac_prog"
8197 break
8198 fi
8199 done
8200 IFS="$ac_save_ifs"
8201 fi
8202 fi
8203 CXX="$ac_cv_prog_CXX"
8204 if test -n "$CXX"; then
8205 echo "$ac_t""$CXX" 1>&6
8206 else
8207 echo "$ac_t""no" 1>&6
8208 fi
8209
8210 test -n "$CXX" && break
8211 done
8212 test -n "$CXX" || CXX="gcc"
8213
8214
8215 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8216 echo "configure:8217: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8217
8218 ac_ext=C
8219 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8220 ac_cpp='$CXXCPP $CPPFLAGS'
8221 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8222 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8223 cross_compiling=$ac_cv_prog_cxx_cross
8224
8225 cat > conftest.$ac_ext << EOF
8226
8227 #line 8228 "configure"
8228 #include "confdefs.h"
8229
8230 int main(){return(0);}
8231 EOF
8232 if { (eval echo configure:8233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8233 ac_cv_prog_cxx_works=yes
8234 # If we can't run a trivial program, we are probably using a cross compiler.
8235 if (./conftest; exit) 2>/dev/null; then
8236 ac_cv_prog_cxx_cross=no
8237 else
8238 ac_cv_prog_cxx_cross=yes
8239 fi
8240 else
8241 echo "configure: failed program was:" >&5
8242 cat conftest.$ac_ext >&5
8243 ac_cv_prog_cxx_works=no
8244 fi
8245 rm -fr conftest*
8246 ac_ext=C
8247 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8248 ac_cpp='$CXXCPP $CPPFLAGS'
8249 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8250 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8251 cross_compiling=$ac_cv_prog_cxx_cross
8252
8253 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8254 if test $ac_cv_prog_cxx_works = no; then
8255 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8256 fi
8257 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8258 echo "configure:8259: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
8259 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8260 cross_compiling=$ac_cv_prog_cxx_cross
8261
8262 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
8263 echo "configure:8264: checking whether we are using GNU C++" >&5
8264 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8265 echo $ac_n "(cached) $ac_c" 1>&6
8266 else
8267 cat > conftest.C <<EOF
8268 #ifdef __GNUC__
8269 yes;
8270 #endif
8271 EOF
8272 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8273 ac_cv_prog_gxx=yes
8274 else
8275 ac_cv_prog_gxx=no
8276 fi
8277 fi
8278
8279 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
8280
8281 if test $ac_cv_prog_gxx = yes; then
8282 GXX=yes
8283 else
8284 GXX=
8285 fi
8286
8287 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8288 ac_save_CXXFLAGS="$CXXFLAGS"
8289 CXXFLAGS=
8290 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
8291 echo "configure:8292: checking whether ${CXX-g++} accepts -g" >&5
8292 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8293 echo $ac_n "(cached) $ac_c" 1>&6
8294 else
8295 echo 'void f(){}' > conftest.cc
8296 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
8297 ac_cv_prog_cxx_g=yes
8298 else
8299 ac_cv_prog_cxx_g=no
8300 fi
8301 rm -f conftest*
8302
8303 fi
8304
8305 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
8306 if test "$ac_test_CXXFLAGS" = set; then
8307 CXXFLAGS="$ac_save_CXXFLAGS"
8308 elif test $ac_cv_prog_cxx_g = yes; then
8309 if test "$GXX" = yes; then
8310 CXXFLAGS="-g -O2"
8311 else
8312 CXXFLAGS="-g"
8313 fi
8314 else
8315 if test "$GXX" = yes; then
8316 CXXFLAGS="-O2"
8317 else
8318 CXXFLAGS=
8319 fi
8320 fi
8321
8322
8323 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
8324 echo "configure:8325: checking how to run the C++ preprocessor" >&5
8325 if test -z "$CXXCPP"; then
8326 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
8327 echo $ac_n "(cached) $ac_c" 1>&6
8328 else
8329 ac_ext=C
8330 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8331 ac_cpp='$CXXCPP $CPPFLAGS'
8332 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8333 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8334 cross_compiling=$ac_cv_prog_cxx_cross
8335 CXXCPP="${CXX-g++} -E"
8336 cat > conftest.$ac_ext <<EOF
8337 #line 8338 "configure"
8338 #include "confdefs.h"
8339 #include <stdlib.h>
8340 EOF
8341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8342 { (eval echo configure:8343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8344 if test -z "$ac_err"; then
8345 :
8346 else
8347 echo "$ac_err" >&5
8348 echo "configure: failed program was:" >&5
8349 cat conftest.$ac_ext >&5
8350 rm -rf conftest*
8351 CXXCPP=/lib/cpp
8352 fi
8353 rm -f conftest*
8354 ac_cv_prog_CXXCPP="$CXXCPP"
8355 ac_ext=C
8356 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8357 ac_cpp='$CXXCPP $CPPFLAGS'
8358 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8359 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8360 cross_compiling=$ac_cv_prog_cxx_cross
8361 fi
8362 fi
8363 CXXCPP="$ac_cv_prog_CXXCPP"
8364 echo "$ac_t""$CXXCPP" 1>&6
8365
8366
8367 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8368
8369 ac_ext=c
8370 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8371 ac_cpp='$CPP $CPPFLAGS'
8372 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8373 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8374 cross_compiling=$ac_cv_prog_cc_cross
8375
8376
8377 # Extract the first word of "ranlib", so it can be a program name with args.
8378 set dummy ranlib; ac_word=$2
8379 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8380 echo "configure:8381: checking for $ac_word" >&5
8381 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8382 echo $ac_n "(cached) $ac_c" 1>&6
8383 else
8384 if test -n "$RANLIB"; then
8385 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8386 else
8387 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8388 ac_dummy="$PATH"
8389 for ac_dir in $ac_dummy; do
8390 test -z "$ac_dir" && ac_dir=.
8391 if test -f $ac_dir/$ac_word; then
8392 ac_cv_prog_RANLIB="ranlib"
8393 break
8394 fi
8395 done
8396 IFS="$ac_save_ifs"
8397 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8398 fi
8399 fi
8400 RANLIB="$ac_cv_prog_RANLIB"
8401 if test -n "$RANLIB"; then
8402 echo "$ac_t""$RANLIB" 1>&6
8403 else
8404 echo "$ac_t""no" 1>&6
8405 fi
8406
8407
8408 # Extract the first word of "ar", so it can be a program name with args.
8409 set dummy ar; ac_word=$2
8410 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8411 echo "configure:8412: checking for $ac_word" >&5
8412 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8413 echo $ac_n "(cached) $ac_c" 1>&6
8414 else
8415 if test -n "$AR"; then
8416 ac_cv_prog_AR="$AR" # Let the user override the test.
8417 else
8418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8419 ac_dummy="$PATH"
8420 for ac_dir in $ac_dummy; do
8421 test -z "$ac_dir" && ac_dir=.
8422 if test -f $ac_dir/$ac_word; then
8423 ac_cv_prog_AR="ar"
8424 break
8425 fi
8426 done
8427 IFS="$ac_save_ifs"
8428 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8429 fi
8430 fi
8431 AR="$ac_cv_prog_AR"
8432 if test -n "$AR"; then
8433 echo "$ac_t""$AR" 1>&6
8434 else
8435 echo "$ac_t""no" 1>&6
8436 fi
8437
8438
8439 # Find a good install program. We prefer a C program (faster),
8440 # so one script is as good as another. But avoid the broken or
8441 # incompatible versions:
8442 # SysV /etc/install, /usr/sbin/install
8443 # SunOS /usr/etc/install
8444 # IRIX /sbin/install
8445 # AIX /bin/install
8446 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8447 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8448 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8449 # ./install, which can be erroneously created by make from ./install.sh.
8450 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8451 echo "configure:8452: checking for a BSD compatible install" >&5
8452 if test -z "$INSTALL"; then
8453 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8454 echo $ac_n "(cached) $ac_c" 1>&6
8455 else
8456 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8457 for ac_dir in $PATH; do
8458 # Account for people who put trailing slashes in PATH elements.
8459 case "$ac_dir/" in
8460 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8461 *)
8462 # OSF1 and SCO ODT 3.0 have their own names for install.
8463 # Don't use installbsd from OSF since it installs stuff as root
8464 # by default.
8465 for ac_prog in ginstall scoinst install; do
8466 if test -f $ac_dir/$ac_prog; then
8467 if test $ac_prog = install &&
8468 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8469 # AIX install. It has an incompatible calling convention.
8470 :
8471 else
8472 ac_cv_path_install="$ac_dir/$ac_prog -c"
8473 break 2
8474 fi
8475 fi
8476 done
8477 ;;
8478 esac
8479 done
8480 IFS="$ac_save_IFS"
8481
8482 fi
8483 if test "${ac_cv_path_install+set}" = set; then
8484 INSTALL="$ac_cv_path_install"
8485 else
8486 # As a last resort, use the slow shell script. We don't cache a
8487 # path for INSTALL within a source directory, because that will
8488 # break other packages using the cache if that directory is
8489 # removed, or if the path is relative.
8490 INSTALL="$ac_install_sh"
8491 fi
8492 fi
8493 echo "$ac_t""$INSTALL" 1>&6
8494
8495 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8496 # It thinks the first close brace ends the variable substitution.
8497 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8498
8499 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8500
8501 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8502
8503
8504 # Extract the first word of "strip", so it can be a program name with args.
8505 set dummy strip; ac_word=$2
8506 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8507 echo "configure:8508: checking for $ac_word" >&5
8508 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8509 echo $ac_n "(cached) $ac_c" 1>&6
8510 else
8511 if test -n "$STRIP"; then
8512 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8513 else
8514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8515 ac_dummy="$PATH"
8516 for ac_dir in $ac_dummy; do
8517 test -z "$ac_dir" && ac_dir=.
8518 if test -f $ac_dir/$ac_word; then
8519 ac_cv_prog_STRIP="strip"
8520 break
8521 fi
8522 done
8523 IFS="$ac_save_ifs"
8524 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8525 fi
8526 fi
8527 STRIP="$ac_cv_prog_STRIP"
8528 if test -n "$STRIP"; then
8529 echo "$ac_t""$STRIP" 1>&6
8530 else
8531 echo "$ac_t""no" 1>&6
8532 fi
8533
8534
8535 echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8536 echo "configure:8537: checking make for VPATH support" >&5
8537 cat - << EOF > confMake
8538 check : file
8539 cp \$? \$@
8540 cp \$? final_file
8541 EOF
8542
8543 if test ! -d sub ; then
8544 mkdir sub
8545 fi
8546 echo dummy > sub/file
8547 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
8548 RESULT=$?
8549 rm -f sub/file check final_file confMake
8550 rmdir sub
8551 if test "$RESULT" = 0; then
8552 echo "$ac_t""yes" 1>&6
8553 else
8554 echo "$ac_t""no" 1>&6
8555 { echo "configure: error:
8556 You need a make-utility that is able to use the variable
8557 VPATH correctly.
8558 If your version of make does not support VPATH correctly,
8559 please install GNU-make (possibly as gmake), and start
8560 configure with the following command:
8561 export MAKE=gmake; ./configure for sh-type shells
8562 setenv MAKE gmake; ./configure for csh-type shells
8563 Also please do remember to use gmake in this case every time
8564 you are trying to compile.
8565 " 1>&2; exit 1; }
8566 fi
8567
8568 for ac_prog in 'bison -y' byacc
8569 do
8570 # Extract the first word of "$ac_prog", so it can be a program name with args.
8571 set dummy $ac_prog; ac_word=$2
8572 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8573 echo "configure:8574: checking for $ac_word" >&5
8574 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8575 echo $ac_n "(cached) $ac_c" 1>&6
8576 else
8577 if test -n "$YACC"; then
8578 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8579 else
8580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8581 ac_dummy="$PATH"
8582 for ac_dir in $ac_dummy; do
8583 test -z "$ac_dir" && ac_dir=.
8584 if test -f $ac_dir/$ac_word; then
8585 ac_cv_prog_YACC="$ac_prog"
8586 break
8587 fi
8588 done
8589 IFS="$ac_save_ifs"
8590 fi
8591 fi
8592 YACC="$ac_cv_prog_YACC"
8593 if test -n "$YACC"; then
8594 echo "$ac_t""$YACC" 1>&6
8595 else
8596 echo "$ac_t""no" 1>&6
8597 fi
8598
8599 test -n "$YACC" && break
8600 done
8601 test -n "$YACC" || YACC="yacc"
8602
8603
8604 # Extract the first word of "flex", so it can be a program name with args.
8605 set dummy flex; ac_word=$2
8606 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8607 echo "configure:8608: checking for $ac_word" >&5
8608 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8609 echo $ac_n "(cached) $ac_c" 1>&6
8610 else
8611 if test -n "$LEX"; then
8612 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8613 else
8614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8615 ac_dummy="$PATH"
8616 for ac_dir in $ac_dummy; do
8617 test -z "$ac_dir" && ac_dir=.
8618 if test -f $ac_dir/$ac_word; then
8619 ac_cv_prog_LEX="flex"
8620 break
8621 fi
8622 done
8623 IFS="$ac_save_ifs"
8624 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
8625 fi
8626 fi
8627 LEX="$ac_cv_prog_LEX"
8628 if test -n "$LEX"; then
8629 echo "$ac_t""$LEX" 1>&6
8630 else
8631 echo "$ac_t""no" 1>&6
8632 fi
8633
8634 if test -z "$LEXLIB"
8635 then
8636 case "$LEX" in
8637 flex*) ac_lib=fl ;;
8638 *) ac_lib=l ;;
8639 esac
8640 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8641 echo "configure:8642: checking for yywrap in -l$ac_lib" >&5
8642 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8643 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8644 echo $ac_n "(cached) $ac_c" 1>&6
8645 else
8646 ac_save_LIBS="$LIBS"
8647 LIBS="-l$ac_lib $LIBS"
8648 cat > conftest.$ac_ext <<EOF
8649 #line 8650 "configure"
8650 #include "confdefs.h"
8651 /* Override any gcc2 internal prototype to avoid an error. */
8652 /* We use char because int might match the return type of a gcc2
8653 builtin and then its argument prototype would still apply. */
8654 char yywrap();
8655
8656 int main() {
8657 yywrap()
8658 ; return 0; }
8659 EOF
8660 if { (eval echo configure:8661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8661 rm -rf conftest*
8662 eval "ac_cv_lib_$ac_lib_var=yes"
8663 else
8664 echo "configure: failed program was:" >&5
8665 cat conftest.$ac_ext >&5
8666 rm -rf conftest*
8667 eval "ac_cv_lib_$ac_lib_var=no"
8668 fi
8669 rm -f conftest*
8670 LIBS="$ac_save_LIBS"
8671
8672 fi
8673 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8674 echo "$ac_t""yes" 1>&6
8675 LEXLIB="-l$ac_lib"
8676 else
8677 echo "$ac_t""no" 1>&6
8678 fi
8679
8680 fi
8681
8682
8683 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8684 echo "configure:8685: checking whether ln -s works" >&5
8685 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8686 echo $ac_n "(cached) $ac_c" 1>&6
8687 else
8688 rm -f conftestdata
8689 if ln -s X conftestdata 2>/dev/null
8690 then
8691 rm -f conftestdata
8692 ac_cv_prog_LN_S="ln -s"
8693 else
8694 ac_cv_prog_LN_S=ln
8695 fi
8696 fi
8697 LN_S="$ac_cv_prog_LN_S"
8698 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8699 echo "$ac_t""yes" 1>&6
8700 else
8701 echo "$ac_t""no" 1>&6
8702 fi
8703
8704
8705
8706 SEARCH_INCLUDE="\
8707 /usr/local/include \
8708 \
8709 /usr/Motif-1.2/include \
8710 /usr/Motif-2.1/include \
8711 \
8712 /usr/include/Motif1.2 \
8713 /opt/xpm/include/X11 \
8714 /opt/GBxpm/include/ \
8715 /opt/GBxpm/X11/include/ \
8716 \
8717 /usr/Motif1.2/include \
8718 /usr/dt/include \
8719 /usr/openwin/include \
8720 \
8721 /usr/include/Xm \
8722 \
8723 /usr/X11R6/include \
8724 /usr/X11R6.4/include \
8725 /usr/X11R5/include \
8726 /usr/X11R4/include \
8727 \
8728 /usr/include/X11R6 \
8729 /usr/include/X11R5 \
8730 /usr/include/X11R4 \
8731 \
8732 /usr/local/X11R6/include \
8733 /usr/local/X11R5/include \
8734 /usr/local/X11R4/include \
8735 \
8736 /usr/local/include/X11R6 \
8737 /usr/local/include/X11R5 \
8738 /usr/local/include/X11R4 \
8739 \
8740 /usr/X11/include \
8741 /usr/include/X11 \
8742 /usr/local/X11/include \
8743 /usr/local/include/X11 \
8744 \
8745 /usr/X386/include \
8746 /usr/x386/include \
8747 /usr/XFree86/include/X11 \
8748 \
8749 X:/XFree86/include \
8750 X:/XFree86/include/X11 \
8751 \
8752 /usr/include/gtk \
8753 /usr/local/include/gtk \
8754 /usr/include/glib \
8755 /usr/local/include/glib \
8756 \
8757 /usr/include/qt \
8758 /usr/local/include/qt \
8759 \
8760 /usr/include/windows \
8761 /usr/include/wine \
8762 /usr/local/include/wine \
8763 \
8764 /usr/unsupported/include \
8765 /usr/athena/include \
8766 /usr/local/x11r5/include \
8767 /usr/lpp/Xamples/include \
8768 \
8769 /usr/openwin/share/include \
8770 \
8771 /usr/include"
8772
8773 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8774
8775
8776 cat > confcache <<\EOF
8777 # This file is a shell script that caches the results of configure
8778 # tests run on this system so they can be shared between configure
8779 # scripts and configure runs. It is not useful on other systems.
8780 # If it contains results you don't want to keep, you may remove or edit it.
8781 #
8782 # By default, configure uses ./config.cache as the cache file,
8783 # creating it if it does not exist already. You can give configure
8784 # the --cache-file=FILE option to use a different cache file; that is
8785 # what configure does when it calls configure scripts in
8786 # subdirectories, so they share the cache.
8787 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8788 # config.status only pays attention to the cache file if you give it the
8789 # --recheck option to rerun configure.
8790 #
8791 EOF
8792 # The following way of writing the cache mishandles newlines in values,
8793 # but we know of no workaround that is simple, portable, and efficient.
8794 # So, don't put newlines in cache variables' values.
8795 # Ultrix sh set writes to stderr and can't be redirected directly,
8796 # and sets the high bit in the cache file unless we assign to the vars.
8797 (set) 2>&1 |
8798 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8799 *ac_space=\ *)
8800 # `set' does not quote correctly, so add quotes (double-quote substitution
8801 # turns \\\\ into \\, and sed turns \\ into \).
8802 sed -n \
8803 -e "s/'/'\\\\''/g" \
8804 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8805 ;;
8806 *)
8807 # `set' quotes correctly as required by POSIX, so do not add quotes.
8808 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8809 ;;
8810 esac >> confcache
8811 if cmp -s $cache_file confcache; then
8812 :
8813 else
8814 if test -w $cache_file; then
8815 echo "updating cache $cache_file"
8816 cat confcache > $cache_file
8817 else
8818 echo "not updating unwritable cache $cache_file"
8819 fi
8820 fi
8821 rm -f confcache
8822
8823
8824
8825 REGEX_INCLUDE=
8826 if test "$wxUSE_REGEX" != "no"; then
8827 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
8828 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
8829 echo "configure:8830: checking for regex.h" >&5
8830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8831 echo $ac_n "(cached) $ac_c" 1>&6
8832 else
8833 cat > conftest.$ac_ext <<EOF
8834 #line 8835 "configure"
8835 #include "confdefs.h"
8836 #include <regex.h>
8837 EOF
8838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8839 { (eval echo configure:8840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8841 if test -z "$ac_err"; then
8842 rm -rf conftest*
8843 eval "ac_cv_header_$ac_safe=yes"
8844 else
8845 echo "$ac_err" >&5
8846 echo "configure: failed program was:" >&5
8847 cat conftest.$ac_ext >&5
8848 rm -rf conftest*
8849 eval "ac_cv_header_$ac_safe=no"
8850 fi
8851 rm -f conftest*
8852 fi
8853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8854 echo "$ac_t""yes" 1>&6
8855 for ac_func in regcomp
8856 do
8857 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8858 echo "configure:8859: checking for $ac_func" >&5
8859 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8860 echo $ac_n "(cached) $ac_c" 1>&6
8861 else
8862 cat > conftest.$ac_ext <<EOF
8863 #line 8864 "configure"
8864 #include "confdefs.h"
8865 /* System header to define __stub macros and hopefully few prototypes,
8866 which can conflict with char $ac_func(); below. */
8867 #include <assert.h>
8868 /* Override any gcc2 internal prototype to avoid an error. */
8869 /* We use char because int might match the return type of a gcc2
8870 builtin and then its argument prototype would still apply. */
8871 char $ac_func();
8872
8873 int main() {
8874
8875 /* The GNU C library defines this for functions which it implements
8876 to always fail with ENOSYS. Some functions are actually named
8877 something starting with __ and the normal name is an alias. */
8878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8879 choke me
8880 #else
8881 $ac_func();
8882 #endif
8883
8884 ; return 0; }
8885 EOF
8886 if { (eval echo configure:8887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8887 rm -rf conftest*
8888 eval "ac_cv_func_$ac_func=yes"
8889 else
8890 echo "configure: failed program was:" >&5
8891 cat conftest.$ac_ext >&5
8892 rm -rf conftest*
8893 eval "ac_cv_func_$ac_func=no"
8894 fi
8895 rm -f conftest*
8896 fi
8897
8898 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8899 echo "$ac_t""yes" 1>&6
8900 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8901 cat >> confdefs.h <<EOF
8902 #define $ac_tr_func 1
8903 EOF
8904
8905 else
8906 echo "$ac_t""no" 1>&6
8907 fi
8908 done
8909
8910 else
8911 echo "$ac_t""no" 1>&6
8912 fi
8913
8914
8915 if test "x$ac_cv_func_regcomp" != "xyes"; then
8916 if test "$wxUSE_REGEX" = "sys"; then
8917 { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; }
8918 fi
8919
8920 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
8921 fi
8922
8923 cat >> confdefs.h <<\EOF
8924 #define wxUSE_REGEX 1
8925 EOF
8926
8927 fi
8928
8929
8930 AFMINSTALL=
8931
8932 if test "$wxUSE_GUI" = "yes"; then
8933 USE_GUI=1
8934
8935 TOOLKIT=
8936 TOOLKIT_INCLUDE=
8937
8938 GUI_TK_LIBRARY=
8939 GUI_TK_LINK=
8940
8941 WXGTK12=
8942 WXGTK127=
8943 WXGTK20=
8944
8945 WXWINE=
8946
8947 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
8948 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
8949 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
8950 echo "configure:8951: checking for windows.h" >&5
8951 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8952 echo $ac_n "(cached) $ac_c" 1>&6
8953 else
8954 cat > conftest.$ac_ext <<EOF
8955 #line 8956 "configure"
8956 #include "confdefs.h"
8957 #include <windows.h>
8958 EOF
8959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8960 { (eval echo configure:8961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8962 if test -z "$ac_err"; then
8963 rm -rf conftest*
8964 eval "ac_cv_header_$ac_safe=yes"
8965 else
8966 echo "$ac_err" >&5
8967 echo "configure: failed program was:" >&5
8968 cat conftest.$ac_ext >&5
8969 rm -rf conftest*
8970 eval "ac_cv_header_$ac_safe=no"
8971 fi
8972 rm -f conftest*
8973 fi
8974 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8975 echo "$ac_t""yes" 1>&6
8976 :
8977 else
8978 echo "$ac_t""no" 1>&6
8979
8980 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
8981
8982 fi
8983
8984
8985 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
8986
8987 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
8988
8989 if test "$wxUSE_ODBC" = "yes" ; then
8990 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
8991 fi
8992
8993 if test "$wxUSE_MINGW" = 1; then
8994 LDFLAGS="$LDFLAGS -mwindows"
8995 fi
8996
8997 TOOLKIT=MSW
8998 GUIDIST=MSW_DIST
8999
9000 RCINCSWITCH="--include-dir"
9001 RCDEFSWITCH="--define"
9002 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
9003 RCINPUTSWITCH="-i"
9004 RCOUTPUTSWITCH="-o"
9005 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
9006
9007 RESPROGRAM="\$(RES_PROGRAM)"
9008 fi
9009
9010 if test "$wxUSE_GTK" = 1; then
9011 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
9012 echo "configure:9013: checking for GTK+ version" >&5
9013
9014 gtk_version_cached=1
9015 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9016 echo $ac_n "(cached) $ac_c" 1>&6
9017 else
9018
9019 gtk_version_cached=0
9020 echo "$ac_t""""" 1>&6
9021
9022 wx_cv_lib_gtk=
9023 if test "x$wxUSE_GTK2" = "xyes"; then
9024 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
9025 if test "${with_gtk_prefix+set}" = set; then
9026 withval="$with_gtk_prefix"
9027 gtk_config_prefix="$withval"
9028 else
9029 gtk_config_prefix=""
9030 fi
9031
9032 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9033 if test "${with_gtk_exec_prefix+set}" = set; then
9034 withval="$with_gtk_exec_prefix"
9035 gtk_config_exec_prefix="$withval"
9036 else
9037 gtk_config_exec_prefix=""
9038 fi
9039
9040 # Check whether --enable-gtktest or --disable-gtktest was given.
9041 if test "${enable_gtktest+set}" = set; then
9042 enableval="$enable_gtktest"
9043 :
9044 else
9045 enable_gtktest=yes
9046 fi
9047
9048
9049 for module in .
9050 do
9051 case "$module" in
9052 gthread)
9053 gtk_config_args="$gtk_config_args gthread"
9054 ;;
9055 esac
9056 done
9057
9058 if test x$gtk_config_exec_prefix != x ; then
9059 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9060 if test x${GTK_CONFIG_2_0+set} != xset ; then
9061 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9062 fi
9063 fi
9064 if test x$gtk_config_prefix != x ; then
9065 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9066 if test x${GTK_CONFIG_2_0+set} != xset ; then
9067 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9068 fi
9069 fi
9070
9071 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9072 set dummy gtk-config-2.0; ac_word=$2
9073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9074 echo "configure:9075: checking for $ac_word" >&5
9075 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9076 echo $ac_n "(cached) $ac_c" 1>&6
9077 else
9078 case "$GTK_CONFIG_2_0" in
9079 /*)
9080 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9081 ;;
9082 ?:/*)
9083 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9084 ;;
9085 *)
9086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9087 ac_dummy="$PATH"
9088 for ac_dir in $ac_dummy; do
9089 test -z "$ac_dir" && ac_dir=.
9090 if test -f $ac_dir/$ac_word; then
9091 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9092 break
9093 fi
9094 done
9095 IFS="$ac_save_ifs"
9096 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9097 ;;
9098 esac
9099 fi
9100 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
9101 if test -n "$GTK_CONFIG_2_0"; then
9102 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
9103 else
9104 echo "$ac_t""no" 1>&6
9105 fi
9106
9107 min_gtk_version=1.3.1
9108 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9109 echo "configure:9110: checking for GTK - version >= $min_gtk_version" >&5
9110 no_gtk=""
9111 if test "$GTK_CONFIG_2_0" = "no" ; then
9112 no_gtk=yes
9113 else
9114 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9115 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9116 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9117 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9118 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9119 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9120 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9121 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9122 if test "x$enable_gtktest" = "xyes" ; then
9123 ac_save_CFLAGS="$CFLAGS"
9124 ac_save_LIBS="$LIBS"
9125 CFLAGS="$CFLAGS $GTK_CFLAGS"
9126 LIBS="$GTK_LIBS $LIBS"
9127 rm -f conf.gtktest
9128 if test "$cross_compiling" = yes; then
9129 echo $ac_n "cross compiling; assumed OK... $ac_c"
9130 else
9131 cat > conftest.$ac_ext <<EOF
9132 #line 9133 "configure"
9133 #include "confdefs.h"
9134
9135 #include <gtk/gtk.h>
9136 #include <stdio.h>
9137 #include <stdlib.h>
9138
9139 int
9140 main ()
9141 {
9142 int major, minor, micro;
9143 char *tmp_version;
9144
9145 system ("touch conf.gtktest");
9146
9147 /* HP/UX 9 (%@#!) writes to sscanf strings */
9148 tmp_version = g_strdup("$min_gtk_version");
9149 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9150 printf("%s, bad version string\n", "$min_gtk_version");
9151 exit(1);
9152 }
9153
9154 if ((gtk_major_version != $gtk_config_major_version) ||
9155 (gtk_minor_version != $gtk_config_minor_version) ||
9156 (gtk_micro_version != $gtk_config_micro_version))
9157 {
9158 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
9159 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9160 gtk_major_version, gtk_minor_version, gtk_micro_version);
9161 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9162 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9163 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9164 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9165 printf("*** required on your system.\n");
9166 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9167 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9168 printf("*** before re-running configure\n");
9169 }
9170 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9171 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
9172 (gtk_minor_version != GTK_MINOR_VERSION) ||
9173 (gtk_micro_version != GTK_MICRO_VERSION))
9174 {
9175 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
9176 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
9177 printf("*** library (version %d.%d.%d)\n",
9178 gtk_major_version, gtk_minor_version, gtk_micro_version);
9179 }
9180 #endif /* defined (GTK_MAJOR_VERSION) ... */
9181 else
9182 {
9183 if ((gtk_major_version > major) ||
9184 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9185 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9186 {
9187 return 0;
9188 }
9189 else
9190 {
9191 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9192 gtk_major_version, gtk_minor_version, gtk_micro_version);
9193 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
9194 major, minor, micro);
9195 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9196 printf("***\n");
9197 printf("*** If you have already installed a sufficiently new version, this error\n");
9198 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9199 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9200 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9201 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9202 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9203 printf("*** so that the correct libraries are found at run-time))\n");
9204 }
9205 }
9206 return 1;
9207 }
9208
9209 EOF
9210 if { (eval echo configure:9211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9211 then
9212 :
9213 else
9214 echo "configure: failed program was:" >&5
9215 cat conftest.$ac_ext >&5
9216 rm -fr conftest*
9217 no_gtk=yes
9218 fi
9219 rm -fr conftest*
9220 fi
9221
9222 CFLAGS="$ac_save_CFLAGS"
9223 LIBS="$ac_save_LIBS"
9224 fi
9225 fi
9226 if test "x$no_gtk" = x ; then
9227 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
9228 wx_cv_lib_gtk=2.0
9229 else
9230 echo "$ac_t""no" 1>&6
9231 if test "$GTK_CONFIG_2_0" = "no" ; then
9232 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9233 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9234 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9235 echo "*** full path to gtk-config-2.0."
9236 else
9237 if test -f conf.gtktest ; then
9238 :
9239 else
9240 echo "*** Could not run GTK test program, checking why..."
9241 CFLAGS="$CFLAGS $GTK_CFLAGS"
9242 LIBS="$LIBS $GTK_LIBS"
9243 cat > conftest.$ac_ext <<EOF
9244 #line 9245 "configure"
9245 #include "confdefs.h"
9246
9247 #include <gtk/gtk.h>
9248 #include <stdio.h>
9249
9250 int main() {
9251 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9252 ; return 0; }
9253 EOF
9254 if { (eval echo configure:9255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9255 rm -rf conftest*
9256 echo "*** The test program compiled, but did not run. This usually means"
9257 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9258 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9259 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9260 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9261 echo "*** is required on your system"
9262 echo "***"
9263 echo "*** If you have an old version installed, it is best to remove it, although"
9264 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9265 echo "***"
9266 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9267 echo "*** came with the system with the command"
9268 echo "***"
9269 echo "*** rpm --erase --nodeps gtk gtk-devel"
9270 else
9271 echo "configure: failed program was:" >&5
9272 cat conftest.$ac_ext >&5
9273 rm -rf conftest*
9274 echo "*** The test program failed to compile or link. See the file config.log for the"
9275 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9276 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
9277 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
9278 fi
9279 rm -f conftest*
9280 CFLAGS="$ac_save_CFLAGS"
9281 LIBS="$ac_save_LIBS"
9282 fi
9283 fi
9284 GTK_CFLAGS=""
9285 GTK_LIBS=""
9286 gthread
9287 fi
9288
9289
9290 rm -f conf.gtktest
9291
9292 fi
9293
9294 if test -z "$wx_cv_lib_gtk"; then
9295
9296 if test x$gtk_config_exec_prefix != x ; then
9297 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9298 if test x${GTK_CONFIG+set} != xset ; then
9299 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9300 fi
9301 fi
9302 if test x$gtk_config_prefix != x ; then
9303 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9304 if test x${GTK_CONFIG+set} != xset ; then
9305 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9306 fi
9307 fi
9308
9309 # Extract the first word of "gtk-config", so it can be a program name with args.
9310 set dummy gtk-config; ac_word=$2
9311 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9312 echo "configure:9313: checking for $ac_word" >&5
9313 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9314 echo $ac_n "(cached) $ac_c" 1>&6
9315 else
9316 case "$GTK_CONFIG" in
9317 /*)
9318 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9319 ;;
9320 ?:/*)
9321 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9322 ;;
9323 *)
9324 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9325 ac_dummy="$PATH"
9326 for ac_dir in $ac_dummy; do
9327 test -z "$ac_dir" && ac_dir=.
9328 if test -f $ac_dir/$ac_word; then
9329 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9330 break
9331 fi
9332 done
9333 IFS="$ac_save_ifs"
9334 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9335 ;;
9336 esac
9337 fi
9338 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
9339 if test -n "$GTK_CONFIG"; then
9340 echo "$ac_t""$GTK_CONFIG" 1>&6
9341 else
9342 echo "$ac_t""no" 1>&6
9343 fi
9344
9345 min_gtk_version=1.2.7
9346 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9347 echo "configure:9348: checking for GTK - version >= $min_gtk_version" >&5
9348 no_gtk=""
9349 if test "$GTK_CONFIG" != "no" ; then
9350 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9351 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9352 ac_save_CFLAGS="$CFLAGS"
9353 ac_save_LIBS="$LIBS"
9354 CFLAGS="$CFLAGS $GTK_CFLAGS"
9355 LIBS="$LIBS $GTK_LIBS"
9356 if test "$cross_compiling" = yes; then
9357 echo $ac_n "cross compiling; assumed OK... $ac_c"
9358 else
9359 cat > conftest.$ac_ext <<EOF
9360 #line 9361 "configure"
9361 #include "confdefs.h"
9362
9363 #include <gtk/gtk.h>
9364 #include <gtk/gtkfeatures.h>
9365 #include <stdio.h>
9366 #include <stdlib.h>
9367
9368 int
9369 main ()
9370 {
9371 int major, minor, micro;
9372
9373 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9374 printf("%s, bad version string\n", "$min_gtk_version");
9375 exit(1);
9376 }
9377
9378 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9379 (GTK_MINOR_VERSION != gtk_minor_version) ||
9380 (GTK_MICRO_VERSION != gtk_micro_version)) {
9381 printf("Headers vs. library version mismatch!\n");
9382 exit(1);
9383 }
9384
9385 if (gtk_minor_version == 1) return FALSE;
9386
9387 return !((gtk_major_version > major) ||
9388 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9389 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9390 }
9391
9392 EOF
9393 if { (eval echo configure:9394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9394 then
9395 :
9396 else
9397 echo "configure: failed program was:" >&5
9398 cat conftest.$ac_ext >&5
9399 rm -fr conftest*
9400 no_gtk=yes
9401 fi
9402 rm -fr conftest*
9403 fi
9404
9405 CFLAGS="$ac_save_CFLAGS"
9406 LIBS="$ac_save_LIBS"
9407 else
9408 no_gtk=yes
9409 fi
9410 if test "x$no_gtk" = x ; then
9411 echo "$ac_t""yes" 1>&6
9412 wx_cv_lib_gtk=1.2.7
9413 else
9414 echo "$ac_t""no" 1>&6
9415 GTK_CFLAGS=""
9416 GTK_LIBS=""
9417 :
9418 fi
9419
9420
9421
9422 fi
9423
9424 if test -z "$wx_cv_lib_gtk"; then
9425
9426 if test x$gtk_config_exec_prefix != x ; then
9427 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9428 if test x${GTK_CONFIG+set} != xset ; then
9429 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9430 fi
9431 fi
9432 if test x$gtk_config_prefix != x ; then
9433 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9434 if test x${GTK_CONFIG+set} != xset ; then
9435 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9436 fi
9437 fi
9438
9439 # Extract the first word of "gtk-config", so it can be a program name with args.
9440 set dummy gtk-config; ac_word=$2
9441 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9442 echo "configure:9443: checking for $ac_word" >&5
9443 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9444 echo $ac_n "(cached) $ac_c" 1>&6
9445 else
9446 case "$GTK_CONFIG" in
9447 /*)
9448 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9449 ;;
9450 ?:/*)
9451 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9452 ;;
9453 *)
9454 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9455 ac_dummy="$PATH"
9456 for ac_dir in $ac_dummy; do
9457 test -z "$ac_dir" && ac_dir=.
9458 if test -f $ac_dir/$ac_word; then
9459 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9460 break
9461 fi
9462 done
9463 IFS="$ac_save_ifs"
9464 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9465 ;;
9466 esac
9467 fi
9468 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
9469 if test -n "$GTK_CONFIG"; then
9470 echo "$ac_t""$GTK_CONFIG" 1>&6
9471 else
9472 echo "$ac_t""no" 1>&6
9473 fi
9474
9475 min_gtk_version=1.2.3
9476 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9477 echo "configure:9478: checking for GTK - version >= $min_gtk_version" >&5
9478 no_gtk=""
9479 if test "$GTK_CONFIG" != "no" ; then
9480 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9481 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9482 ac_save_CFLAGS="$CFLAGS"
9483 ac_save_LIBS="$LIBS"
9484 CFLAGS="$CFLAGS $GTK_CFLAGS"
9485 LIBS="$LIBS $GTK_LIBS"
9486 if test "$cross_compiling" = yes; then
9487 echo $ac_n "cross compiling; assumed OK... $ac_c"
9488 else
9489 cat > conftest.$ac_ext <<EOF
9490 #line 9491 "configure"
9491 #include "confdefs.h"
9492
9493 #include <gtk/gtk.h>
9494 #include <gtk/gtkfeatures.h>
9495 #include <stdio.h>
9496 #include <stdlib.h>
9497
9498 int
9499 main ()
9500 {
9501 int major, minor, micro;
9502
9503 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9504 printf("%s, bad version string\n", "$min_gtk_version");
9505 exit(1);
9506 }
9507
9508 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9509 (GTK_MINOR_VERSION != gtk_minor_version) ||
9510 (GTK_MICRO_VERSION != gtk_micro_version)) {
9511 printf("Headers vs. library version mismatch!\n");
9512 exit(1);
9513 }
9514
9515 if (gtk_minor_version == 1) return FALSE;
9516
9517 return !((gtk_major_version > major) ||
9518 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9519 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9520 }
9521
9522 EOF
9523 if { (eval echo configure:9524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9524 then
9525 :
9526 else
9527 echo "configure: failed program was:" >&5
9528 cat conftest.$ac_ext >&5
9529 rm -fr conftest*
9530 no_gtk=yes
9531 fi
9532 rm -fr conftest*
9533 fi
9534
9535 CFLAGS="$ac_save_CFLAGS"
9536 LIBS="$ac_save_LIBS"
9537 else
9538 no_gtk=yes
9539 fi
9540 if test "x$no_gtk" = x ; then
9541 echo "$ac_t""yes" 1>&6
9542 wx_cv_lib_gtk=1.2.3
9543 else
9544 echo "$ac_t""no" 1>&6
9545 GTK_CFLAGS=""
9546 GTK_LIBS=""
9547 :
9548 fi
9549
9550
9551
9552 fi
9553
9554 if test -z "$wx_cv_lib_gtk"; then
9555 wx_cv_lib_gtk=none
9556 else
9557 wx_cv_cflags_gtk=$GTK_CFLAGS
9558 wx_cv_libs_gtk=$GTK_LIBS
9559 fi
9560
9561
9562 fi
9563
9564
9565 if test "$gtk_version_cached" = 1; then
9566 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
9567 fi
9568
9569 case "$wx_cv_lib_gtk" in
9570 2.0) WXGTK20=1
9571 ;;
9572 1.2.7) WXGTK127=1
9573 WXGTK12=1
9574 ;;
9575 1.2.3) WXGTK12=1
9576 ;;
9577 *) { echo "configure: error:
9578 Please check that gtk-config is in path, the directory
9579 where GTK+ libraries are installed (returned by
9580 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9581 equivalent variable and GTK+ is version 1.2.3 or above.
9582 " 1>&2; exit 1; }
9583 ;;
9584 esac
9585
9586 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
9587 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
9588
9589 AFMINSTALL=afminstall
9590 TOOLKIT=GTK
9591 GUIDIST=GTK_DIST
9592
9593 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
9594 echo "configure:9595: checking for gdk_im_open in -lgdk" >&5
9595 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9596 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9597 echo $ac_n "(cached) $ac_c" 1>&6
9598 else
9599 ac_save_LIBS="$LIBS"
9600 LIBS="-lgdk $LIBS"
9601 cat > conftest.$ac_ext <<EOF
9602 #line 9603 "configure"
9603 #include "confdefs.h"
9604 /* Override any gcc2 internal prototype to avoid an error. */
9605 /* We use char because int might match the return type of a gcc2
9606 builtin and then its argument prototype would still apply. */
9607 char gdk_im_open();
9608
9609 int main() {
9610 gdk_im_open()
9611 ; return 0; }
9612 EOF
9613 if { (eval echo configure:9614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9614 rm -rf conftest*
9615 eval "ac_cv_lib_$ac_lib_var=yes"
9616 else
9617 echo "configure: failed program was:" >&5
9618 cat conftest.$ac_ext >&5
9619 rm -rf conftest*
9620 eval "ac_cv_lib_$ac_lib_var=no"
9621 fi
9622 rm -f conftest*
9623 LIBS="$ac_save_LIBS"
9624
9625 fi
9626 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9627 echo "$ac_t""yes" 1>&6
9628 cat >> confdefs.h <<\EOF
9629 #define HAVE_XIM 1
9630 EOF
9631
9632 else
9633 echo "$ac_t""no" 1>&6
9634 fi
9635
9636 fi
9637
9638 if test "$wxUSE_MGL" = 1; then
9639
9640 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
9641 echo "configure:9642: checking for SciTech MGL library" >&5
9642 if test "x$MGL_ROOT" = x ; then
9643 echo "$ac_t""not found" 1>&6
9644 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9645 else
9646 echo "$ac_t""$MGL_ROOT" 1>&6
9647 fi
9648
9649 MGL_OS=linux/gcc/glibc
9650 MGL_LIB_TYPE=""
9651
9652 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9653 if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then
9654 MGL_LIB_TYPE=debug
9655 fi
9656 fi
9657 if test "x$MGL_LIB_TYPE" = x ; then
9658 if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then
9659 MGL_LIB_TYPE=release
9660 else
9661 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9662 fi
9663 fi
9664
9665 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9666 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm"
9667
9668 AFMINSTALL=afminstall
9669 TOOLKIT=MGL
9670 GUIDIST=MGL_DIST
9671 fi
9672
9673 if test "$wxUSE_WINE" = 1; then
9674 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
9675 echo "configure:9676: checking for WINE includes" >&5
9676
9677 ac_find_includes=
9678 for ac_dir in $SEARCH_INCLUDE;
9679 do
9680 if test -f "$ac_dir/windows.h"; then
9681 ac_find_includes=$ac_dir
9682 break
9683 fi
9684 done
9685
9686 if test "$ac_find_includes" != "" ; then
9687 echo "$ac_t""found $ac_find_includes" 1>&6
9688 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
9689 else
9690 echo "$ac_t""no" 1>&6
9691 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9692 fi
9693
9694 XPM_LINK=""
9695 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9696 echo "configure:9697: checking for Xpm library" >&5
9697
9698 ac_find_libraries=
9699 for ac_dir in $SEARCH_LIB;
9700 do
9701 for ac_extension in a so sl dylib; do
9702 if test -f "$ac_dir/libXpm.$ac_extension"; then
9703 ac_find_libraries=$ac_dir
9704 break 2
9705 fi
9706 done
9707 done
9708
9709 if test "$ac_find_libraries" != "" ; then
9710 GUI_TK_LIBRARY="-L$ac_find_libraries"
9711 XPM_LINK="-lXpm"
9712 cat >> confdefs.h <<\EOF
9713 #define wxHAVE_LIB_XPM 1
9714 EOF
9715
9716 echo "$ac_t""found at $ac_find_libraries" 1>&6
9717 else
9718 echo "$ac_t""no" 1>&6
9719 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9720 fi
9721
9722 MESA_LINK=""
9723 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
9724 echo "configure:9725: checking for Mesa library" >&5
9725
9726 ac_find_libraries=
9727 for ac_dir in $SEARCH_LIB;
9728 do
9729 for ac_extension in a so sl dylib; do
9730 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9731 ac_find_libraries=$ac_dir
9732 break 2
9733 fi
9734 done
9735 done
9736
9737 if test "$ac_find_libraries" != "" ; then
9738 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9739 MESA_LINK="-lMesaGL"
9740 echo "$ac_t""found at $ac_find_libraries" 1>&6
9741 else
9742 { echo "configure: error: no" 1>&2; exit 1; }
9743 fi
9744
9745 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9746 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9747 WXWINE=1
9748 TOOLKIT=MSW
9749 GUIDIST=MSW_DIST
9750 fi
9751
9752
9753 # If we find X, set shell vars x_includes and x_libraries to the
9754 # paths, otherwise set no_x=yes.
9755 # Uses ac_ vars as temps to allow command line to override cache and checks.
9756 # --without-x overrides everything else, but does not touch the cache.
9757 echo $ac_n "checking for X""... $ac_c" 1>&6
9758 echo "configure:9759: checking for X" >&5
9759
9760 # Check whether --with-x or --without-x was given.
9761 if test "${with_x+set}" = set; then
9762 withval="$with_x"
9763 :
9764 fi
9765
9766 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9767 if test "x$with_x" = xno; then
9768 # The user explicitly disabled X.
9769 have_x=disabled
9770 else
9771 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9772 # Both variables are already set.
9773 have_x=yes
9774 else
9775 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9776 echo $ac_n "(cached) $ac_c" 1>&6
9777 else
9778 # One or both of the vars are not set, and there is no cached value.
9779 ac_x_includes=NO ac_x_libraries=NO
9780 rm -fr conftestdir
9781 if mkdir conftestdir; then
9782 cd conftestdir
9783 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9784 cat > Imakefile <<'EOF'
9785 acfindx:
9786 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9787 EOF
9788 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9789 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9790 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9791 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9792 for ac_extension in a so sl; do
9793 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9794 test -f $ac_im_libdir/libX11.$ac_extension; then
9795 ac_im_usrlibdir=$ac_im_libdir; break
9796 fi
9797 done
9798 # Screen out bogus values from the imake configuration. They are
9799 # bogus both because they are the default anyway, and because
9800 # using them would break gcc on systems where it needs fixed includes.
9801 case "$ac_im_incroot" in
9802 /usr/include) ;;
9803 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
9804 esac
9805 case "$ac_im_usrlibdir" in
9806 /usr/lib | /lib) ;;
9807 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
9808 esac
9809 fi
9810 cd ..
9811 rm -fr conftestdir
9812 fi
9813
9814 if test "$ac_x_includes" = NO; then
9815 # Guess where to find include files, by looking for this one X11 .h file.
9816 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9817
9818 # First, try using that file with no special directory specified.
9819 cat > conftest.$ac_ext <<EOF
9820 #line 9821 "configure"
9821 #include "confdefs.h"
9822 #include <$x_direct_test_include>
9823 EOF
9824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9825 { (eval echo configure:9826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9827 if test -z "$ac_err"; then
9828 rm -rf conftest*
9829 # We can compile using X headers with no special include directory.
9830 ac_x_includes=
9831 else
9832 echo "$ac_err" >&5
9833 echo "configure: failed program was:" >&5
9834 cat conftest.$ac_ext >&5
9835 rm -rf conftest*
9836 # Look for the header file in a standard set of common directories.
9837 # Check X11 before X11Rn because it is often a symlink to the current release.
9838 for ac_dir in \
9839 /usr/X11/include \
9840 /usr/X11R6/include \
9841 /usr/X11R5/include \
9842 /usr/X11R4/include \
9843 \
9844 /usr/include/X11 \
9845 /usr/include/X11R6 \
9846 /usr/include/X11R5 \
9847 /usr/include/X11R4 \
9848 \
9849 /usr/local/X11/include \
9850 /usr/local/X11R6/include \
9851 /usr/local/X11R5/include \
9852 /usr/local/X11R4/include \
9853 \
9854 /usr/local/include/X11 \
9855 /usr/local/include/X11R6 \
9856 /usr/local/include/X11R5 \
9857 /usr/local/include/X11R4 \
9858 \
9859 /usr/X386/include \
9860 /usr/x386/include \
9861 /usr/XFree86/include/X11 \
9862 \
9863 /usr/include \
9864 /usr/local/include \
9865 /usr/unsupported/include \
9866 /usr/athena/include \
9867 /usr/local/x11r5/include \
9868 /usr/lpp/Xamples/include \
9869 \
9870 /usr/openwin/include \
9871 /usr/openwin/share/include \
9872 ; \
9873 do
9874 if test -r "$ac_dir/$x_direct_test_include"; then
9875 ac_x_includes=$ac_dir
9876 break
9877 fi
9878 done
9879 fi
9880 rm -f conftest*
9881 fi # $ac_x_includes = NO
9882
9883 if test "$ac_x_libraries" = NO; then
9884 # Check for the libraries.
9885
9886 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9887 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9888
9889 # See if we find them without any special options.
9890 # Don't add to $LIBS permanently.
9891 ac_save_LIBS="$LIBS"
9892 LIBS="-l$x_direct_test_library $LIBS"
9893 cat > conftest.$ac_ext <<EOF
9894 #line 9895 "configure"
9895 #include "confdefs.h"
9896
9897 int main() {
9898 ${x_direct_test_function}()
9899 ; return 0; }
9900 EOF
9901 if { (eval echo configure:9902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9902 rm -rf conftest*
9903 LIBS="$ac_save_LIBS"
9904 # We can link X programs with no special library path.
9905 ac_x_libraries=
9906 else
9907 echo "configure: failed program was:" >&5
9908 cat conftest.$ac_ext >&5
9909 rm -rf conftest*
9910 LIBS="$ac_save_LIBS"
9911 # First see if replacing the include by lib works.
9912 # Check X11 before X11Rn because it is often a symlink to the current release.
9913 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9914 /usr/X11/lib \
9915 /usr/X11R6/lib \
9916 /usr/X11R5/lib \
9917 /usr/X11R4/lib \
9918 \
9919 /usr/lib/X11 \
9920 /usr/lib/X11R6 \
9921 /usr/lib/X11R5 \
9922 /usr/lib/X11R4 \
9923 \
9924 /usr/local/X11/lib \
9925 /usr/local/X11R6/lib \
9926 /usr/local/X11R5/lib \
9927 /usr/local/X11R4/lib \
9928 \
9929 /usr/local/lib/X11 \
9930 /usr/local/lib/X11R6 \
9931 /usr/local/lib/X11R5 \
9932 /usr/local/lib/X11R4 \
9933 \
9934 /usr/X386/lib \
9935 /usr/x386/lib \
9936 /usr/XFree86/lib/X11 \
9937 \
9938 /usr/lib \
9939 /usr/local/lib \
9940 /usr/unsupported/lib \
9941 /usr/athena/lib \
9942 /usr/local/x11r5/lib \
9943 /usr/lpp/Xamples/lib \
9944 /lib/usr/lib/X11 \
9945 \
9946 /usr/openwin/lib \
9947 /usr/openwin/share/lib \
9948 ; \
9949 do
9950 for ac_extension in a so sl; do
9951 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
9952 ac_x_libraries=$ac_dir
9953 break 2
9954 fi
9955 done
9956 done
9957 fi
9958 rm -f conftest*
9959 fi # $ac_x_libraries = NO
9960
9961 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
9962 # Didn't find X anywhere. Cache the known absence of X.
9963 ac_cv_have_x="have_x=no"
9964 else
9965 # Record where we found X for the cache.
9966 ac_cv_have_x="have_x=yes \
9967 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9968 fi
9969 fi
9970 fi
9971 eval "$ac_cv_have_x"
9972 fi # $with_x != no
9973
9974 if test "$have_x" != yes; then
9975 echo "$ac_t""$have_x" 1>&6
9976 no_x=yes
9977 else
9978 # If each of the values was on the command line, it overrides each guess.
9979 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9980 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9981 # Update the cache value to reflect the command line values.
9982 ac_cv_have_x="have_x=yes \
9983 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9984 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
9985 fi
9986
9987 if test "$no_x" = yes; then
9988 # Not all programs may use this symbol, but it does not hurt to define it.
9989 cat >> confdefs.h <<\EOF
9990 #define X_DISPLAY_MISSING 1
9991 EOF
9992
9993 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9994 else
9995 if test -n "$x_includes"; then
9996 X_CFLAGS="$X_CFLAGS -I$x_includes"
9997 fi
9998
9999 # It would also be nice to do this for all -L options, not just this one.
10000 if test -n "$x_libraries"; then
10001 X_LIBS="$X_LIBS -L$x_libraries"
10002 # For Solaris; some versions of Sun CC require a space after -R and
10003 # others require no space. Words are not sufficient . . . .
10004 case "`(uname -sr) 2>/dev/null`" in
10005 "SunOS 5"*)
10006 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
10007 echo "configure:10008: checking whether -R must be followed by a space" >&5
10008 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
10009 cat > conftest.$ac_ext <<EOF
10010 #line 10011 "configure"
10011 #include "confdefs.h"
10012
10013 int main() {
10014
10015 ; return 0; }
10016 EOF
10017 if { (eval echo configure:10018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10018 rm -rf conftest*
10019 ac_R_nospace=yes
10020 else
10021 echo "configure: failed program was:" >&5
10022 cat conftest.$ac_ext >&5
10023 rm -rf conftest*
10024 ac_R_nospace=no
10025 fi
10026 rm -f conftest*
10027 if test $ac_R_nospace = yes; then
10028 echo "$ac_t""no" 1>&6
10029 X_LIBS="$X_LIBS -R$x_libraries"
10030 else
10031 LIBS="$ac_xsave_LIBS -R $x_libraries"
10032 cat > conftest.$ac_ext <<EOF
10033 #line 10034 "configure"
10034 #include "confdefs.h"
10035
10036 int main() {
10037
10038 ; return 0; }
10039 EOF
10040 if { (eval echo configure:10041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10041 rm -rf conftest*
10042 ac_R_space=yes
10043 else
10044 echo "configure: failed program was:" >&5
10045 cat conftest.$ac_ext >&5
10046 rm -rf conftest*
10047 ac_R_space=no
10048 fi
10049 rm -f conftest*
10050 if test $ac_R_space = yes; then
10051 echo "$ac_t""yes" 1>&6
10052 X_LIBS="$X_LIBS -R $x_libraries"
10053 else
10054 echo "$ac_t""neither works" 1>&6
10055 fi
10056 fi
10057 LIBS="$ac_xsave_LIBS"
10058 esac
10059 fi
10060
10061 # Check for system-dependent libraries X programs must link with.
10062 # Do this before checking for the system-independent R6 libraries
10063 # (-lICE), since we may need -lsocket or whatever for X linking.
10064
10065 if test "$ISC" = yes; then
10066 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10067 else
10068 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10069 # libraries were built with DECnet support. And karl@cs.umb.edu says
10070 # the Alpha needs dnet_stub (dnet does not exist).
10071 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
10072 echo "configure:10073: checking for dnet_ntoa in -ldnet" >&5
10073 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10074 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10075 echo $ac_n "(cached) $ac_c" 1>&6
10076 else
10077 ac_save_LIBS="$LIBS"
10078 LIBS="-ldnet $LIBS"
10079 cat > conftest.$ac_ext <<EOF
10080 #line 10081 "configure"
10081 #include "confdefs.h"
10082 /* Override any gcc2 internal prototype to avoid an error. */
10083 /* We use char because int might match the return type of a gcc2
10084 builtin and then its argument prototype would still apply. */
10085 char dnet_ntoa();
10086
10087 int main() {
10088 dnet_ntoa()
10089 ; return 0; }
10090 EOF
10091 if { (eval echo configure:10092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10092 rm -rf conftest*
10093 eval "ac_cv_lib_$ac_lib_var=yes"
10094 else
10095 echo "configure: failed program was:" >&5
10096 cat conftest.$ac_ext >&5
10097 rm -rf conftest*
10098 eval "ac_cv_lib_$ac_lib_var=no"
10099 fi
10100 rm -f conftest*
10101 LIBS="$ac_save_LIBS"
10102
10103 fi
10104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10105 echo "$ac_t""yes" 1>&6
10106 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10107 else
10108 echo "$ac_t""no" 1>&6
10109 fi
10110
10111 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10112 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
10113 echo "configure:10114: checking for dnet_ntoa in -ldnet_stub" >&5
10114 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10115 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10116 echo $ac_n "(cached) $ac_c" 1>&6
10117 else
10118 ac_save_LIBS="$LIBS"
10119 LIBS="-ldnet_stub $LIBS"
10120 cat > conftest.$ac_ext <<EOF
10121 #line 10122 "configure"
10122 #include "confdefs.h"
10123 /* Override any gcc2 internal prototype to avoid an error. */
10124 /* We use char because int might match the return type of a gcc2
10125 builtin and then its argument prototype would still apply. */
10126 char dnet_ntoa();
10127
10128 int main() {
10129 dnet_ntoa()
10130 ; return 0; }
10131 EOF
10132 if { (eval echo configure:10133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10133 rm -rf conftest*
10134 eval "ac_cv_lib_$ac_lib_var=yes"
10135 else
10136 echo "configure: failed program was:" >&5
10137 cat conftest.$ac_ext >&5
10138 rm -rf conftest*
10139 eval "ac_cv_lib_$ac_lib_var=no"
10140 fi
10141 rm -f conftest*
10142 LIBS="$ac_save_LIBS"
10143
10144 fi
10145 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10146 echo "$ac_t""yes" 1>&6
10147 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10148 else
10149 echo "$ac_t""no" 1>&6
10150 fi
10151
10152 fi
10153
10154 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10155 # to get the SysV transport functions.
10156 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
10157 # needs -lnsl.
10158 # The nsl library prevents programs from opening the X display
10159 # on Irix 5.2, according to dickey@clark.net.
10160 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
10161 echo "configure:10162: checking for gethostbyname" >&5
10162 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10163 echo $ac_n "(cached) $ac_c" 1>&6
10164 else
10165 cat > conftest.$ac_ext <<EOF
10166 #line 10167 "configure"
10167 #include "confdefs.h"
10168 /* System header to define __stub macros and hopefully few prototypes,
10169 which can conflict with char gethostbyname(); below. */
10170 #include <assert.h>
10171 /* Override any gcc2 internal prototype to avoid an error. */
10172 /* We use char because int might match the return type of a gcc2
10173 builtin and then its argument prototype would still apply. */
10174 char gethostbyname();
10175
10176 int main() {
10177
10178 /* The GNU C library defines this for functions which it implements
10179 to always fail with ENOSYS. Some functions are actually named
10180 something starting with __ and the normal name is an alias. */
10181 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10182 choke me
10183 #else
10184 gethostbyname();
10185 #endif
10186
10187 ; return 0; }
10188 EOF
10189 if { (eval echo configure:10190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10190 rm -rf conftest*
10191 eval "ac_cv_func_gethostbyname=yes"
10192 else
10193 echo "configure: failed program was:" >&5
10194 cat conftest.$ac_ext >&5
10195 rm -rf conftest*
10196 eval "ac_cv_func_gethostbyname=no"
10197 fi
10198 rm -f conftest*
10199 fi
10200
10201 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10202 echo "$ac_t""yes" 1>&6
10203 :
10204 else
10205 echo "$ac_t""no" 1>&6
10206 fi
10207
10208 if test $ac_cv_func_gethostbyname = no; then
10209 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
10210 echo "configure:10211: checking for gethostbyname in -lnsl" >&5
10211 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10212 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10213 echo $ac_n "(cached) $ac_c" 1>&6
10214 else
10215 ac_save_LIBS="$LIBS"
10216 LIBS="-lnsl $LIBS"
10217 cat > conftest.$ac_ext <<EOF
10218 #line 10219 "configure"
10219 #include "confdefs.h"
10220 /* Override any gcc2 internal prototype to avoid an error. */
10221 /* We use char because int might match the return type of a gcc2
10222 builtin and then its argument prototype would still apply. */
10223 char gethostbyname();
10224
10225 int main() {
10226 gethostbyname()
10227 ; return 0; }
10228 EOF
10229 if { (eval echo configure:10230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10230 rm -rf conftest*
10231 eval "ac_cv_lib_$ac_lib_var=yes"
10232 else
10233 echo "configure: failed program was:" >&5
10234 cat conftest.$ac_ext >&5
10235 rm -rf conftest*
10236 eval "ac_cv_lib_$ac_lib_var=no"
10237 fi
10238 rm -f conftest*
10239 LIBS="$ac_save_LIBS"
10240
10241 fi
10242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10243 echo "$ac_t""yes" 1>&6
10244 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10245 else
10246 echo "$ac_t""no" 1>&6
10247 fi
10248
10249 fi
10250
10251 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10252 # socket/setsockopt and other routines are undefined under SCO ODT
10253 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10254 # on later versions), says simon@lia.di.epfl.ch: it contains
10255 # gethostby* variants that don't use the nameserver (or something).
10256 # -lsocket must be given before -lnsl if both are needed.
10257 # We assume that if connect needs -lnsl, so does gethostbyname.
10258 echo $ac_n "checking for connect""... $ac_c" 1>&6
10259 echo "configure:10260: checking for connect" >&5
10260 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
10261 echo $ac_n "(cached) $ac_c" 1>&6
10262 else
10263 cat > conftest.$ac_ext <<EOF
10264 #line 10265 "configure"
10265 #include "confdefs.h"
10266 /* System header to define __stub macros and hopefully few prototypes,
10267 which can conflict with char connect(); below. */
10268 #include <assert.h>
10269 /* Override any gcc2 internal prototype to avoid an error. */
10270 /* We use char because int might match the return type of a gcc2
10271 builtin and then its argument prototype would still apply. */
10272 char connect();
10273
10274 int main() {
10275
10276 /* The GNU C library defines this for functions which it implements
10277 to always fail with ENOSYS. Some functions are actually named
10278 something starting with __ and the normal name is an alias. */
10279 #if defined (__stub_connect) || defined (__stub___connect)
10280 choke me
10281 #else
10282 connect();
10283 #endif
10284
10285 ; return 0; }
10286 EOF
10287 if { (eval echo configure:10288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10288 rm -rf conftest*
10289 eval "ac_cv_func_connect=yes"
10290 else
10291 echo "configure: failed program was:" >&5
10292 cat conftest.$ac_ext >&5
10293 rm -rf conftest*
10294 eval "ac_cv_func_connect=no"
10295 fi
10296 rm -f conftest*
10297 fi
10298
10299 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
10300 echo "$ac_t""yes" 1>&6
10301 :
10302 else
10303 echo "$ac_t""no" 1>&6
10304 fi
10305
10306 if test $ac_cv_func_connect = no; then
10307 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
10308 echo "configure:10309: checking for connect in -lsocket" >&5
10309 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
10310 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10311 echo $ac_n "(cached) $ac_c" 1>&6
10312 else
10313 ac_save_LIBS="$LIBS"
10314 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10315 cat > conftest.$ac_ext <<EOF
10316 #line 10317 "configure"
10317 #include "confdefs.h"
10318 /* Override any gcc2 internal prototype to avoid an error. */
10319 /* We use char because int might match the return type of a gcc2
10320 builtin and then its argument prototype would still apply. */
10321 char connect();
10322
10323 int main() {
10324 connect()
10325 ; return 0; }
10326 EOF
10327 if { (eval echo configure:10328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10328 rm -rf conftest*
10329 eval "ac_cv_lib_$ac_lib_var=yes"
10330 else
10331 echo "configure: failed program was:" >&5
10332 cat conftest.$ac_ext >&5
10333 rm -rf conftest*
10334 eval "ac_cv_lib_$ac_lib_var=no"
10335 fi
10336 rm -f conftest*
10337 LIBS="$ac_save_LIBS"
10338
10339 fi
10340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10341 echo "$ac_t""yes" 1>&6
10342 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10343 else
10344 echo "$ac_t""no" 1>&6
10345 fi
10346
10347 fi
10348
10349 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
10350 echo $ac_n "checking for remove""... $ac_c" 1>&6
10351 echo "configure:10352: checking for remove" >&5
10352 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
10353 echo $ac_n "(cached) $ac_c" 1>&6
10354 else
10355 cat > conftest.$ac_ext <<EOF
10356 #line 10357 "configure"
10357 #include "confdefs.h"
10358 /* System header to define __stub macros and hopefully few prototypes,
10359 which can conflict with char remove(); below. */
10360 #include <assert.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 remove();
10365
10366 int main() {
10367
10368 /* The GNU C library defines this for functions which it implements
10369 to always fail with ENOSYS. Some functions are actually named
10370 something starting with __ and the normal name is an alias. */
10371 #if defined (__stub_remove) || defined (__stub___remove)
10372 choke me
10373 #else
10374 remove();
10375 #endif
10376
10377 ; return 0; }
10378 EOF
10379 if { (eval echo configure:10380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10380 rm -rf conftest*
10381 eval "ac_cv_func_remove=yes"
10382 else
10383 echo "configure: failed program was:" >&5
10384 cat conftest.$ac_ext >&5
10385 rm -rf conftest*
10386 eval "ac_cv_func_remove=no"
10387 fi
10388 rm -f conftest*
10389 fi
10390
10391 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
10392 echo "$ac_t""yes" 1>&6
10393 :
10394 else
10395 echo "$ac_t""no" 1>&6
10396 fi
10397
10398 if test $ac_cv_func_remove = no; then
10399 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
10400 echo "configure:10401: checking for remove in -lposix" >&5
10401 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
10402 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10403 echo $ac_n "(cached) $ac_c" 1>&6
10404 else
10405 ac_save_LIBS="$LIBS"
10406 LIBS="-lposix $LIBS"
10407 cat > conftest.$ac_ext <<EOF
10408 #line 10409 "configure"
10409 #include "confdefs.h"
10410 /* Override any gcc2 internal prototype to avoid an error. */
10411 /* We use char because int might match the return type of a gcc2
10412 builtin and then its argument prototype would still apply. */
10413 char remove();
10414
10415 int main() {
10416 remove()
10417 ; return 0; }
10418 EOF
10419 if { (eval echo configure:10420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10420 rm -rf conftest*
10421 eval "ac_cv_lib_$ac_lib_var=yes"
10422 else
10423 echo "configure: failed program was:" >&5
10424 cat conftest.$ac_ext >&5
10425 rm -rf conftest*
10426 eval "ac_cv_lib_$ac_lib_var=no"
10427 fi
10428 rm -f conftest*
10429 LIBS="$ac_save_LIBS"
10430
10431 fi
10432 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10433 echo "$ac_t""yes" 1>&6
10434 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10435 else
10436 echo "$ac_t""no" 1>&6
10437 fi
10438
10439 fi
10440
10441 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10442 echo $ac_n "checking for shmat""... $ac_c" 1>&6
10443 echo "configure:10444: checking for shmat" >&5
10444 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
10445 echo $ac_n "(cached) $ac_c" 1>&6
10446 else
10447 cat > conftest.$ac_ext <<EOF
10448 #line 10449 "configure"
10449 #include "confdefs.h"
10450 /* System header to define __stub macros and hopefully few prototypes,
10451 which can conflict with char shmat(); below. */
10452 #include <assert.h>
10453 /* Override any gcc2 internal prototype to avoid an error. */
10454 /* We use char because int might match the return type of a gcc2
10455 builtin and then its argument prototype would still apply. */
10456 char shmat();
10457
10458 int main() {
10459
10460 /* The GNU C library defines this for functions which it implements
10461 to always fail with ENOSYS. Some functions are actually named
10462 something starting with __ and the normal name is an alias. */
10463 #if defined (__stub_shmat) || defined (__stub___shmat)
10464 choke me
10465 #else
10466 shmat();
10467 #endif
10468
10469 ; return 0; }
10470 EOF
10471 if { (eval echo configure:10472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10472 rm -rf conftest*
10473 eval "ac_cv_func_shmat=yes"
10474 else
10475 echo "configure: failed program was:" >&5
10476 cat conftest.$ac_ext >&5
10477 rm -rf conftest*
10478 eval "ac_cv_func_shmat=no"
10479 fi
10480 rm -f conftest*
10481 fi
10482
10483 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
10484 echo "$ac_t""yes" 1>&6
10485 :
10486 else
10487 echo "$ac_t""no" 1>&6
10488 fi
10489
10490 if test $ac_cv_func_shmat = no; then
10491 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
10492 echo "configure:10493: checking for shmat in -lipc" >&5
10493 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
10494 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10495 echo $ac_n "(cached) $ac_c" 1>&6
10496 else
10497 ac_save_LIBS="$LIBS"
10498 LIBS="-lipc $LIBS"
10499 cat > conftest.$ac_ext <<EOF
10500 #line 10501 "configure"
10501 #include "confdefs.h"
10502 /* Override any gcc2 internal prototype to avoid an error. */
10503 /* We use char because int might match the return type of a gcc2
10504 builtin and then its argument prototype would still apply. */
10505 char shmat();
10506
10507 int main() {
10508 shmat()
10509 ; return 0; }
10510 EOF
10511 if { (eval echo configure:10512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10512 rm -rf conftest*
10513 eval "ac_cv_lib_$ac_lib_var=yes"
10514 else
10515 echo "configure: failed program was:" >&5
10516 cat conftest.$ac_ext >&5
10517 rm -rf conftest*
10518 eval "ac_cv_lib_$ac_lib_var=no"
10519 fi
10520 rm -f conftest*
10521 LIBS="$ac_save_LIBS"
10522
10523 fi
10524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10525 echo "$ac_t""yes" 1>&6
10526 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10527 else
10528 echo "$ac_t""no" 1>&6
10529 fi
10530
10531 fi
10532 fi
10533
10534 # Check for libraries that X11R6 Xt/Xaw programs need.
10535 ac_save_LDFLAGS="$LDFLAGS"
10536 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10537 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10538 # check for ICE first), but we must link in the order -lSM -lICE or
10539 # we get undefined symbols. So assume we have SM if we have ICE.
10540 # These have to be linked with before -lX11, unlike the other
10541 # libraries we check for below, so use a different variable.
10542 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10543 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
10544 echo "configure:10545: checking for IceConnectionNumber in -lICE" >&5
10545 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10546 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10547 echo $ac_n "(cached) $ac_c" 1>&6
10548 else
10549 ac_save_LIBS="$LIBS"
10550 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10551 cat > conftest.$ac_ext <<EOF
10552 #line 10553 "configure"
10553 #include "confdefs.h"
10554 /* Override any gcc2 internal prototype to avoid an error. */
10555 /* We use char because int might match the return type of a gcc2
10556 builtin and then its argument prototype would still apply. */
10557 char IceConnectionNumber();
10558
10559 int main() {
10560 IceConnectionNumber()
10561 ; return 0; }
10562 EOF
10563 if { (eval echo configure:10564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10564 rm -rf conftest*
10565 eval "ac_cv_lib_$ac_lib_var=yes"
10566 else
10567 echo "configure: failed program was:" >&5
10568 cat conftest.$ac_ext >&5
10569 rm -rf conftest*
10570 eval "ac_cv_lib_$ac_lib_var=no"
10571 fi
10572 rm -f conftest*
10573 LIBS="$ac_save_LIBS"
10574
10575 fi
10576 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10577 echo "$ac_t""yes" 1>&6
10578 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10579 else
10580 echo "$ac_t""no" 1>&6
10581 fi
10582
10583 LDFLAGS="$ac_save_LDFLAGS"
10584
10585 fi
10586
10587 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10588 LDFLAGS="$LDFLAGS $X_LIBS"
10589
10590 if test "$wxUSE_MOTIF" = 1; then
10591 if test "$no_x" = "yes"; then
10592 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10593 fi
10594
10595 GUI_TK_LIBRARY="$X_LIBS"
10596 TOOLKIT_INCLUDE="$X_CFLAGS"
10597
10598 AFMINSTALL=afminstall
10599
10600
10601 COMPILED_X_PROGRAM=0
10602
10603 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
10604 echo "configure:10605: checking for Motif/Lesstif headers" >&5
10605
10606 ac_find_includes=
10607 for ac_dir in $SEARCH_INCLUDE;
10608 do
10609 if test -f "$ac_dir/Xm/Xm.h"; then
10610 ac_find_includes=$ac_dir
10611 break
10612 fi
10613 done
10614
10615 if test "$ac_find_includes" != "" ; then
10616 echo "$ac_t""found $ac_find_includes" 1>&6
10617 else
10618 cat > conftest.$ac_ext <<EOF
10619 #line 10620 "configure"
10620 #include "confdefs.h"
10621
10622 #include <Xm/Xm.h>
10623
10624 int main() {
10625
10626 int version;
10627
10628 version = xmUseVersion;
10629
10630 ; return 0; }
10631 EOF
10632 if { (eval echo configure:10633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10633 rm -rf conftest*
10634
10635 echo "$ac_t""found in default search path" 1>&6
10636 COMPILED_X_PROGRAM=1
10637
10638 else
10639 echo "configure: failed program was:" >&5
10640 cat conftest.$ac_ext >&5
10641 rm -rf conftest*
10642
10643 echo "$ac_t""no" 1>&6
10644 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10645
10646
10647 fi
10648 rm -f conftest*
10649 fi
10650
10651 if test "$COMPILED_X_PROGRAM" = 0; then
10652 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
10653 echo "configure:10654: checking for Motif/Lesstif library" >&5
10654
10655 ac_find_libraries=
10656 for ac_dir in $SEARCH_LIB;
10657 do
10658 for ac_extension in a so sl dylib; do
10659 if test -f "$ac_dir/libXm.$ac_extension"; then
10660 ac_find_libraries=$ac_dir
10661 break 2
10662 fi
10663 done
10664 done
10665
10666 if test "$ac_find_libraries" != "" ; then
10667
10668 ac_path_to_include=$ac_find_includes
10669 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10670 result=$?
10671 if test $result = 0; then
10672 ac_path_to_include=""
10673 else
10674 ac_path_to_include="-I$ac_find_includes"
10675 fi
10676
10677
10678 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10679 result=$?
10680 if test $result = 0; then
10681 ac_path_to_link=""
10682 else
10683 ac_path_to_link="-L$ac_find_libraries"
10684 fi
10685
10686
10687 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10688 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10689 echo "$ac_t""found at $ac_find_libraries" 1>&6
10690 else
10691 cat > conftest.$ac_ext <<EOF
10692 #line 10693 "configure"
10693 #include "confdefs.h"
10694
10695 #include <Xm/Xm.h>
10696
10697 int main() {
10698
10699 int version;
10700
10701 version = xmUseVersion;
10702
10703 ; return 0; }
10704 EOF
10705 if { (eval echo configure:10706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10706 rm -rf conftest*
10707
10708 echo "$ac_t""found in default search path" 1>&6
10709 COMPILED_X_PROGRAM=1
10710
10711 else
10712 echo "configure: failed program was:" >&5
10713 cat conftest.$ac_ext >&5
10714 rm -rf conftest*
10715
10716 echo "$ac_t""no" 1>&6
10717 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10718
10719
10720 fi
10721 rm -f conftest*
10722 fi
10723 fi
10724
10725
10726 XPM_LINK=""
10727 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
10728 echo "configure:10729: checking for Xpm library" >&5
10729
10730 ac_find_libraries=
10731 for ac_dir in $SEARCH_LIB;
10732 do
10733 for ac_extension in a so sl dylib; do
10734 if test -f "$ac_dir/libXpm.$ac_extension"; then
10735 ac_find_libraries=$ac_dir
10736 break 2
10737 fi
10738 done
10739 done
10740
10741 if test "$ac_find_libraries" != "" ; then
10742
10743 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10744 result=$?
10745 if test $result = 0; then
10746 ac_path_to_link=""
10747 else
10748 ac_path_to_link="-L$ac_find_libraries"
10749 fi
10750
10751 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10752 XPM_LINK="-lXpm "
10753 cat >> confdefs.h <<\EOF
10754 #define wxHAVE_LIB_XPM 1
10755 EOF
10756
10757 echo "$ac_t""found at $ac_find_libraries" 1>&6
10758 else
10759 cat > conftest.$ac_ext <<EOF
10760 #line 10761 "configure"
10761 #include "confdefs.h"
10762
10763 #include <X11/xpm.h>
10764
10765 int main() {
10766
10767 int version;
10768
10769 version = XpmLibraryVersion();
10770
10771 ; return 0; }
10772 EOF
10773 if { (eval echo configure:10774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10774 rm -rf conftest*
10775
10776 XPM_LINK="-lXpm "
10777 cat >> confdefs.h <<\EOF
10778 #define wxHAVE_LIB_XPM 1
10779 EOF
10780
10781 echo "$ac_t""found in default search path" 1>&6
10782 COMPILED_X_PROGRAM=0
10783
10784 else
10785 echo "configure: failed program was:" >&5
10786 cat conftest.$ac_ext >&5
10787 rm -rf conftest*
10788
10789 echo "$ac_t""no" 1>&6
10790 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10791
10792
10793 fi
10794 rm -f conftest*
10795 fi
10796
10797 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
10798 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
10799 TOOLKIT=MOTIF
10800 GUIDIST=MOTIF_DIST
10801 fi
10802
10803 if test "$wxUSE_MAC" = 1; then
10804 TOOLKIT=MAC
10805 GUIDIST=MACX_DIST
10806 fi
10807
10808 if test "$wxUSE_PM" = 1; then
10809 TOOLKIT=PM
10810 GUIDIST=GTK_DIST
10811 fi
10812
10813 if test "$TOOLKIT" != "PM" ; then
10814 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10815 else
10816 TOOLKIT_DIR="os2"
10817 fi
10818
10819 TOOLKIT_NAME="${TOOLKIT_DIR}"
10820
10821 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10822
10823 if test "$TOOLKIT_NAME" = "motif"; then
10824 TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10825 fi
10826
10827 if test "$wxUSE_UNIVERSAL" = "yes"; then
10828 TOOLKIT_NAME="${TOOLKIT_NAME}univ"
10829 UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
10830 TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}"
10831 SETUPH_DIR="univ"
10832 else
10833 SETUPH_DIR="${TOOLKIT_DIR}"
10834 fi
10835
10836 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10837 TOOLKIT_NAME="${TOOLKIT_NAME}d"
10838 fi
10839
10840 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10841 if test "$wxUSE_UNIVERSAL" = "yes"; then
10842 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__"
10843 fi
10844
10845 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10846
10847 if test "$wxUSE_UNIVERSAL" = "yes"; then
10848 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10849 else
10850 ALL_OBJECTS="\$(GUIOBJS)"
10851 fi
10852
10853 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10854
10855 if test "$TOOLKIT" != "MSW"; then
10856 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10857 fi
10858
10859 if test "$wxUSE_HTML" = "yes"; then
10860 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10861 fi
10862
10863 if test "$TOOLKIT" != "MSW"; then
10864 if test "$wxUSE_ODBC" = "yes" ; then
10865 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10866 fi
10867 fi
10868
10869 if test "x$REGEX_INCLUDE" != "x" ; then
10870 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10871 fi
10872
10873 if test "$wxUSE_LIBJPEG" = "yes" ; then
10874 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
10875 fi
10876 if test "$wxUSE_LIBTIFF" = "yes" ; then
10877 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10878 fi
10879 if test "$wxUSE_LIBPNG" = "yes" ; then
10880 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10881 fi
10882 if test "$wxUSE_ZLIB" = "yes" ; then
10883 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10884 fi
10885 if test "$wxUSE_FREETYPE" = "yes" ; then
10886 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10887 fi
10888
10889 if test "$wxUSE_UNIVERSAL" = "yes"; then
10890 ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)"
10891 else
10892 ALL_DEPFILES="\$(GUIDEPS)"
10893 fi
10894
10895 ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)"
10896
10897 if test "$TOOLKIT" != "MSW"; then
10898 ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)"
10899 fi
10900
10901 if test "$wxUSE_HTML" = "yes"; then
10902 ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)"
10903 fi
10904
10905 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
10906 if test "$wxUSE_UNIVERSAL" = "yes"; then
10907 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
10908 fi
10909 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10910 RPM_SPEC="wx\$(TOOLKIT).spec"
10911
10912 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10913 DISTDIR="wx\$(TOOLKIT)"
10914 else
10915 USE_GUI=0
10916
10917 TOOLKIT_DIR="base"
10918
10919 TOOLKIT_VPATH="."
10920
10921 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10922 TOOLKIT_NAME="${TOOLKIT_DIR}d"
10923 else
10924 TOOLKIT_NAME="${TOOLKIT_DIR}"
10925 fi
10926
10927 TOOLKIT_DEF="-D__WXBASE__"
10928
10929 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
10930 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10931
10932 if test "x$REGEX_INCLUDE" != "x" ; then
10933 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10934 fi
10935
10936 if test "$wxUSE_ZLIB" = "yes" ; then
10937 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10938 fi
10939
10940 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10941
10942 PORT_FILES="\${top_srcdir}/src/files.lst"
10943 RPM_FILES="src/rpmfiles.lst"
10944 RPM_SPEC="wxBase.spec"
10945
10946 GUIDIST="BASE_DIST"
10947 DISTDIR="wxBase"
10948 fi
10949
10950 WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
10951 WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10952
10953 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
10954 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10955
10956 case "${host}" in
10957 *-*-mingw32* )
10958 WX_LIBRARY_NAME_SHARED="wx${WX_MAJOR_VERSION_NUMBER}${WX_MINOR_VERSION_NUMBER}_${WX_RELEASE_NUMBER}.dll"
10959 ;;
10960 * )
10961 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10962 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10963 ;;
10964 esac
10965
10966 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
10967 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
10968 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
10969 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
10970 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
10971 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10972
10973 SHARED_LD=
10974 PIC_FLAG=
10975 WX_ALL=
10976 WX_ALL_INSTALLED=
10977 BURNT_LIBRARY_NAME=
10978 WX_TARGET_LIBRARY_SONAME=
10979
10980
10981 if test "$wxUSE_SHARED" = "yes"; then
10982 case "${host}" in
10983 *-hp-hpux* )
10984 if test "$GCC" = yes ; then
10985 SHARED_LD="${CXX} -shared -fPIC -o"
10986 PIC_FLAG="-fPIC"
10987 else
10988 LDFLAGS="-L/usr/lib"
10989
10990 SHARED_LD="${CXX} -b -o"
10991 PIC_FLAG="+Z"
10992 fi
10993 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
10994 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
10995 if test "$wxUSE_OPENGL" = "yes"; then
10996 WX_ALL_INSTALLED="preinstall_gl"
10997 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
10998 else
10999 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
11000 fi
11001 ;;
11002
11003 *-*-linux* )
11004 SHARED_LD="${CXX} -shared -o"
11005 PIC_FLAG="-fPIC"
11006 if test "$wxUSE_BURNT_NAME" = "yes" ; then
11007 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
11008 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
11009 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
11010 fi
11011 if test "$wxUSE_OPENGL" = "yes"; then
11012 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11013 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11014 else
11015 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11016 WX_ALL="CREATE_LINKS"
11017 fi
11018 ;;
11019 *-*-irix5* | *-*-irix6* )
11020 if test "$GCC" = yes ; then
11021 SHARED_LD="${CXX} -shared -o"
11022 PIC_FLAG="-fPIC"
11023 else
11024 SHARED_LD="${CXX} -shared -o"
11025 fi
11026 if test "$wxUSE_OPENGL" = "yes"; then
11027 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11028 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11029 else
11030 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11031 WX_ALL="CREATE_LINKS"
11032 fi
11033 ;;
11034 *-*-solaris2* )
11035 if test "$GCC" = yes ; then
11036 SHARED_LD="${CXX} -shared -o"
11037 PIC_FLAG="-fPIC"
11038
11039 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
11040 else
11041 SHARED_LD="${CXX} -G -o"
11042 PIC_FLAG="-KPIC"
11043 fi
11044 if test "$wxUSE_OPENGL" = "yes"; then
11045 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11046 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11047 else
11048 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11049 WX_ALL="CREATE_LINKS"
11050 fi
11051 ;;
11052 *-*-sunos4* )
11053 SHARED_LD="${CXX} -shared -o"
11054 PIC_FLAG="-fPIC"
11055 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11056 WX_ALL="CREATE_LINKS"
11057 ;;
11058 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
11059 SHARED_LD="${CXX} -shared -o"
11060 PIC_FLAG="-fPIC"
11061 if test "$wxUSE_OPENGL" = "yes"; then
11062 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11063 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11064 else
11065 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11066 WX_ALL="CREATE_LINKS"
11067 fi
11068 ;;
11069 *-*-darwin* )
11070 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__DARWIN__ -D__POWERPC__"
11071 CFLAGS="${CFLAGS} -fno-common"
11072 CPPFLAGS="${CPPFLAGS} -fno-common"
11073 SHARED_LD="${CXX} -dynamiclib -o"
11074 PIC_FLAG="-dynamic -fPIC"
11075 if test "$wxUSE_OPENGL" = "yes"; then
11076 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11077 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11078 else
11079 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11080 WX_ALL="CREATE_LINKS"
11081 fi
11082 if test "$wxUSE_MAC" = 1 ; then
11083 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
11084 fi
11085 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11086 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11087 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
11088 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
11089 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
11090 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
11091 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
11092 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
11093 ;;
11094 *-*-osf* )
11095 SHARED_LD="${CXX} -shared -o"
11096 PIC_FLAG="-fPIC"
11097 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11098 WX_ALL="CREATE_LINKS"
11099 ;;
11100 *-*-dgux5* )
11101 SHARED_LD="${CXX} -shared -o"
11102 PIC_FLAG="-fPIC"
11103 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11104 WX_ALL="CREATE_LINKS"
11105 ;;
11106 *-*-sysv5* )
11107 SHARED_LD="${CXX} -shared -o"
11108 PIC_FLAG="-fPIC"
11109 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11110 WX_ALL="CREATE_LINKS"
11111 ;;
11112 *-*-aix* )
11113 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
11114 WX_ALL=${WX_LIBRARY_NAME_SHARED}
11115 ;;
11116 *-*-cygwin* )
11117 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11118 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
11119 if test "$wxUSE_OPENGL" = "yes"; then
11120 WX_ALL_INSTALLED="preinstall_gl"
11121 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
11122 else
11123 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
11124 fi
11125 ;;
11126 *-*-mingw32* )
11127 WX_LIBRARY_NAME_STATIC="lib/libwx${WX_MAJOR_VERSION_NUMBER}${WX_MINOR_VERSION_NUMBER}_${WX_RELEASE_NUMBER}.a"
11128 SHARED_LD="${CC} -shared -Wl,--out-implib,${WX_LIBRARY_NAME_STATIC} -o"
11129 TOOLKIT_DEF="${TOOLKIT_DEF} -DWXUSINGDLL=1"
11130 WXMSW_DLL_DEFINES="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
11131 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
11132 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
11133 if test "$wxUSE_OPENGL" = "yes"; then
11134 WX_ALL_INSTALLED="preinstall_gl"
11135 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
11136 else
11137 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
11138 fi
11139 ;;
11140 *-pc-os2_emx )
11141 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11142 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
11143 ;;
11144 *-*-beos* )
11145 SHARED_LD="${LD} -shared -o"
11146 PIC_FLAG="-fPIC"
11147 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11148 WX_ALL="CREATE_LINKS"
11149 ;;
11150 *)
11151 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
11152 esac
11153
11154 if test "x$WX_TARGET_LIBRARY" = "x"; then
11155 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
11156 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
11157 fi
11158 WX_TARGET_LIBRARY_TYPE="so"
11159 else
11160 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11161 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
11162
11163 if test "$wxUSE_OPENGL" = "yes"; then
11164 WX_ALL_INSTALLED="preinstall_gl"
11165 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
11166 else
11167 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
11168 fi
11169
11170 if test "$wxUSE_GUI" = "no"; then
11171 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11172 fi
11173
11174 WX_TARGET_LIBRARY_TYPE="a"
11175 fi
11176
11177
11178 for ac_hdr in strings.h
11179 do
11180 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11181 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11182 echo "configure:11183: checking for $ac_hdr" >&5
11183 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11184 echo $ac_n "(cached) $ac_c" 1>&6
11185 else
11186 cat > conftest.$ac_ext <<EOF
11187 #line 11188 "configure"
11188 #include "confdefs.h"
11189 #include <$ac_hdr>
11190 EOF
11191 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11192 { (eval echo configure:11193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11193 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11194 if test -z "$ac_err"; then
11195 rm -rf conftest*
11196 eval "ac_cv_header_$ac_safe=yes"
11197 else
11198 echo "$ac_err" >&5
11199 echo "configure: failed program was:" >&5
11200 cat conftest.$ac_ext >&5
11201 rm -rf conftest*
11202 eval "ac_cv_header_$ac_safe=no"
11203 fi
11204 rm -f conftest*
11205 fi
11206 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11207 echo "$ac_t""yes" 1>&6
11208 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11209 cat >> confdefs.h <<EOF
11210 #define $ac_tr_hdr 1
11211 EOF
11212
11213 else
11214 echo "$ac_t""no" 1>&6
11215 fi
11216 done
11217
11218 for ac_hdr in stdlib.h
11219 do
11220 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11221 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11222 echo "configure:11223: checking for $ac_hdr" >&5
11223 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11224 echo $ac_n "(cached) $ac_c" 1>&6
11225 else
11226 cat > conftest.$ac_ext <<EOF
11227 #line 11228 "configure"
11228 #include "confdefs.h"
11229 #include <$ac_hdr>
11230 EOF
11231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11232 { (eval echo configure:11233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11233 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11234 if test -z "$ac_err"; then
11235 rm -rf conftest*
11236 eval "ac_cv_header_$ac_safe=yes"
11237 else
11238 echo "$ac_err" >&5
11239 echo "configure: failed program was:" >&5
11240 cat conftest.$ac_ext >&5
11241 rm -rf conftest*
11242 eval "ac_cv_header_$ac_safe=no"
11243 fi
11244 rm -f conftest*
11245 fi
11246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11247 echo "$ac_t""yes" 1>&6
11248 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11249 cat >> confdefs.h <<EOF
11250 #define $ac_tr_hdr 1
11251 EOF
11252
11253 else
11254 echo "$ac_t""no" 1>&6
11255 fi
11256 done
11257
11258 for ac_hdr in unistd.h
11259 do
11260 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11261 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11262 echo "configure:11263: checking for $ac_hdr" >&5
11263 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11264 echo $ac_n "(cached) $ac_c" 1>&6
11265 else
11266 cat > conftest.$ac_ext <<EOF
11267 #line 11268 "configure"
11268 #include "confdefs.h"
11269 #include <$ac_hdr>
11270 EOF
11271 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11272 { (eval echo configure:11273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11273 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11274 if test -z "$ac_err"; then
11275 rm -rf conftest*
11276 eval "ac_cv_header_$ac_safe=yes"
11277 else
11278 echo "$ac_err" >&5
11279 echo "configure: failed program was:" >&5
11280 cat conftest.$ac_ext >&5
11281 rm -rf conftest*
11282 eval "ac_cv_header_$ac_safe=no"
11283 fi
11284 rm -f conftest*
11285 fi
11286 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11287 echo "$ac_t""yes" 1>&6
11288 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11289 cat >> confdefs.h <<EOF
11290 #define $ac_tr_hdr 1
11291 EOF
11292
11293 else
11294 echo "$ac_t""no" 1>&6
11295 fi
11296 done
11297
11298 for ac_hdr in wchar.h
11299 do
11300 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11301 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11302 echo "configure:11303: checking for $ac_hdr" >&5
11303 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11304 echo $ac_n "(cached) $ac_c" 1>&6
11305 else
11306 cat > conftest.$ac_ext <<EOF
11307 #line 11308 "configure"
11308 #include "confdefs.h"
11309 #include <$ac_hdr>
11310 EOF
11311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11312 { (eval echo configure:11313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11314 if test -z "$ac_err"; then
11315 rm -rf conftest*
11316 eval "ac_cv_header_$ac_safe=yes"
11317 else
11318 echo "$ac_err" >&5
11319 echo "configure: failed program was:" >&5
11320 cat conftest.$ac_ext >&5
11321 rm -rf conftest*
11322 eval "ac_cv_header_$ac_safe=no"
11323 fi
11324 rm -f conftest*
11325 fi
11326 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11327 echo "$ac_t""yes" 1>&6
11328 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11329 cat >> confdefs.h <<EOF
11330 #define $ac_tr_hdr 1
11331 EOF
11332
11333 else
11334 echo "$ac_t""no" 1>&6
11335 fi
11336 done
11337
11338 for ac_hdr in wcstr.h
11339 do
11340 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11341 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11342 echo "configure:11343: checking for $ac_hdr" >&5
11343 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11344 echo $ac_n "(cached) $ac_c" 1>&6
11345 else
11346 cat > conftest.$ac_ext <<EOF
11347 #line 11348 "configure"
11348 #include "confdefs.h"
11349 #include <$ac_hdr>
11350 EOF
11351 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11352 { (eval echo configure:11353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11353 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11354 if test -z "$ac_err"; then
11355 rm -rf conftest*
11356 eval "ac_cv_header_$ac_safe=yes"
11357 else
11358 echo "$ac_err" >&5
11359 echo "configure: failed program was:" >&5
11360 cat conftest.$ac_ext >&5
11361 rm -rf conftest*
11362 eval "ac_cv_header_$ac_safe=no"
11363 fi
11364 rm -f conftest*
11365 fi
11366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11367 echo "$ac_t""yes" 1>&6
11368 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11369 cat >> confdefs.h <<EOF
11370 #define $ac_tr_hdr 1
11371 EOF
11372
11373 else
11374 echo "$ac_t""no" 1>&6
11375 fi
11376 done
11377
11378 for ac_hdr in fnmatch.h
11379 do
11380 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11381 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11382 echo "configure:11383: checking for $ac_hdr" >&5
11383 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11384 echo $ac_n "(cached) $ac_c" 1>&6
11385 else
11386 cat > conftest.$ac_ext <<EOF
11387 #line 11388 "configure"
11388 #include "confdefs.h"
11389 #include <$ac_hdr>
11390 EOF
11391 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11392 { (eval echo configure:11393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11393 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11394 if test -z "$ac_err"; then
11395 rm -rf conftest*
11396 eval "ac_cv_header_$ac_safe=yes"
11397 else
11398 echo "$ac_err" >&5
11399 echo "configure: failed program was:" >&5
11400 cat conftest.$ac_ext >&5
11401 rm -rf conftest*
11402 eval "ac_cv_header_$ac_safe=no"
11403 fi
11404 rm -f conftest*
11405 fi
11406 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11407 echo "$ac_t""yes" 1>&6
11408 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11409 cat >> confdefs.h <<EOF
11410 #define $ac_tr_hdr 1
11411 EOF
11412
11413 else
11414 echo "$ac_t""no" 1>&6
11415 fi
11416 done
11417
11418 for ac_hdr in iconv.h
11419 do
11420 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11421 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11422 echo "configure:11423: checking for $ac_hdr" >&5
11423 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11424 echo $ac_n "(cached) $ac_c" 1>&6
11425 else
11426 cat > conftest.$ac_ext <<EOF
11427 #line 11428 "configure"
11428 #include "confdefs.h"
11429 #include <$ac_hdr>
11430 EOF
11431 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11432 { (eval echo configure:11433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11433 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11434 if test -z "$ac_err"; then
11435 rm -rf conftest*
11436 eval "ac_cv_header_$ac_safe=yes"
11437 else
11438 echo "$ac_err" >&5
11439 echo "configure: failed program was:" >&5
11440 cat conftest.$ac_ext >&5
11441 rm -rf conftest*
11442 eval "ac_cv_header_$ac_safe=no"
11443 fi
11444 rm -f conftest*
11445 fi
11446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11447 echo "$ac_t""yes" 1>&6
11448 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11449 cat >> confdefs.h <<EOF
11450 #define $ac_tr_hdr 1
11451 EOF
11452
11453 else
11454 echo "$ac_t""no" 1>&6
11455 fi
11456 done
11457
11458 for ac_hdr in langinfo.h
11459 do
11460 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11461 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11462 echo "configure:11463: checking for $ac_hdr" >&5
11463 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11464 echo $ac_n "(cached) $ac_c" 1>&6
11465 else
11466 cat > conftest.$ac_ext <<EOF
11467 #line 11468 "configure"
11468 #include "confdefs.h"
11469 #include <$ac_hdr>
11470 EOF
11471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11472 { (eval echo configure:11473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11474 if test -z "$ac_err"; then
11475 rm -rf conftest*
11476 eval "ac_cv_header_$ac_safe=yes"
11477 else
11478 echo "$ac_err" >&5
11479 echo "configure: failed program was:" >&5
11480 cat conftest.$ac_ext >&5
11481 rm -rf conftest*
11482 eval "ac_cv_header_$ac_safe=no"
11483 fi
11484 rm -f conftest*
11485 fi
11486 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11487 echo "$ac_t""yes" 1>&6
11488 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11489 cat >> confdefs.h <<EOF
11490 #define $ac_tr_hdr 1
11491 EOF
11492
11493 else
11494 echo "$ac_t""no" 1>&6
11495 fi
11496 done
11497
11498
11499 if test "$wxUSE_GUI" = "yes"; then
11500 if test "$wxUSE_UNIX" = "yes"; then
11501 for ac_hdr in X11/XKBlib.h
11502 do
11503 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11504 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11505 echo "configure:11506: checking for $ac_hdr" >&5
11506 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11507 echo $ac_n "(cached) $ac_c" 1>&6
11508 else
11509 cat > conftest.$ac_ext <<EOF
11510 #line 11511 "configure"
11511 #include "confdefs.h"
11512 #include <$ac_hdr>
11513 EOF
11514 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11515 { (eval echo configure:11516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11516 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11517 if test -z "$ac_err"; then
11518 rm -rf conftest*
11519 eval "ac_cv_header_$ac_safe=yes"
11520 else
11521 echo "$ac_err" >&5
11522 echo "configure: failed program was:" >&5
11523 cat conftest.$ac_ext >&5
11524 rm -rf conftest*
11525 eval "ac_cv_header_$ac_safe=no"
11526 fi
11527 rm -f conftest*
11528 fi
11529 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11530 echo "$ac_t""yes" 1>&6
11531 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11532 cat >> confdefs.h <<EOF
11533 #define $ac_tr_hdr 1
11534 EOF
11535
11536 else
11537 echo "$ac_t""no" 1>&6
11538 fi
11539 done
11540
11541 fi
11542 fi
11543
11544 if test "$USE_WIN32" = 1; then
11545 for ac_hdr in w32api.h
11546 do
11547 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11548 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11549 echo "configure:11550: checking for $ac_hdr" >&5
11550 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11551 echo $ac_n "(cached) $ac_c" 1>&6
11552 else
11553 cat > conftest.$ac_ext <<EOF
11554 #line 11555 "configure"
11555 #include "confdefs.h"
11556 #include <$ac_hdr>
11557 EOF
11558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11559 { (eval echo configure:11560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11561 if test -z "$ac_err"; then
11562 rm -rf conftest*
11563 eval "ac_cv_header_$ac_safe=yes"
11564 else
11565 echo "$ac_err" >&5
11566 echo "configure: failed program was:" >&5
11567 cat conftest.$ac_ext >&5
11568 rm -rf conftest*
11569 eval "ac_cv_header_$ac_safe=no"
11570 fi
11571 rm -f conftest*
11572 fi
11573 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11574 echo "$ac_t""yes" 1>&6
11575 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11576 cat >> confdefs.h <<EOF
11577 #define $ac_tr_hdr 1
11578 EOF
11579
11580 else
11581 echo "$ac_t""no" 1>&6
11582 fi
11583 done
11584
11585 fi
11586
11587
11588 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
11589 echo "configure:11590: checking for ANSI C header files" >&5
11590 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11591 echo $ac_n "(cached) $ac_c" 1>&6
11592 else
11593 cat > conftest.$ac_ext <<EOF
11594 #line 11595 "configure"
11595 #include "confdefs.h"
11596 #include <stdlib.h>
11597 #include <stdarg.h>
11598 #include <string.h>
11599 #include <float.h>
11600 EOF
11601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11602 { (eval echo configure:11603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11604 if test -z "$ac_err"; then
11605 rm -rf conftest*
11606 ac_cv_header_stdc=yes
11607 else
11608 echo "$ac_err" >&5
11609 echo "configure: failed program was:" >&5
11610 cat conftest.$ac_ext >&5
11611 rm -rf conftest*
11612 ac_cv_header_stdc=no
11613 fi
11614 rm -f conftest*
11615
11616 if test $ac_cv_header_stdc = yes; then
11617 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11618 cat > conftest.$ac_ext <<EOF
11619 #line 11620 "configure"
11620 #include "confdefs.h"
11621 #include <string.h>
11622 EOF
11623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11624 egrep "memchr" >/dev/null 2>&1; then
11625 :
11626 else
11627 rm -rf conftest*
11628 ac_cv_header_stdc=no
11629 fi
11630 rm -f conftest*
11631
11632 fi
11633
11634 if test $ac_cv_header_stdc = yes; then
11635 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11636 cat > conftest.$ac_ext <<EOF
11637 #line 11638 "configure"
11638 #include "confdefs.h"
11639 #include <stdlib.h>
11640 EOF
11641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11642 egrep "free" >/dev/null 2>&1; then
11643 :
11644 else
11645 rm -rf conftest*
11646 ac_cv_header_stdc=no
11647 fi
11648 rm -f conftest*
11649
11650 fi
11651
11652 if test $ac_cv_header_stdc = yes; then
11653 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11654 if test "$cross_compiling" = yes; then
11655 :
11656 else
11657 cat > conftest.$ac_ext <<EOF
11658 #line 11659 "configure"
11659 #include "confdefs.h"
11660 #include <ctype.h>
11661 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11662 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11663 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11664 int main () { int i; for (i = 0; i < 256; i++)
11665 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11666 exit (0); }
11667
11668 EOF
11669 if { (eval echo configure:11670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11670 then
11671 :
11672 else
11673 echo "configure: failed program was:" >&5
11674 cat conftest.$ac_ext >&5
11675 rm -fr conftest*
11676 ac_cv_header_stdc=no
11677 fi
11678 rm -fr conftest*
11679 fi
11680
11681 fi
11682 fi
11683
11684 echo "$ac_t""$ac_cv_header_stdc" 1>&6
11685 if test $ac_cv_header_stdc = yes; then
11686 cat >> confdefs.h <<\EOF
11687 #define STDC_HEADERS 1
11688 EOF
11689
11690 fi
11691
11692 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
11693 echo "configure:11694: checking for mode_t" >&5
11694 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11695 echo $ac_n "(cached) $ac_c" 1>&6
11696 else
11697 cat > conftest.$ac_ext <<EOF
11698 #line 11699 "configure"
11699 #include "confdefs.h"
11700 #include <sys/types.h>
11701 #if STDC_HEADERS
11702 #include <stdlib.h>
11703 #include <stddef.h>
11704 #endif
11705 EOF
11706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11707 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11708 rm -rf conftest*
11709 ac_cv_type_mode_t=yes
11710 else
11711 rm -rf conftest*
11712 ac_cv_type_mode_t=no
11713 fi
11714 rm -f conftest*
11715
11716 fi
11717 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11718 if test $ac_cv_type_mode_t = no; then
11719 cat >> confdefs.h <<\EOF
11720 #define mode_t int
11721 EOF
11722
11723 fi
11724
11725 echo $ac_n "checking for off_t""... $ac_c" 1>&6
11726 echo "configure:11727: checking for off_t" >&5
11727 if eval "test \"`echo '$''{'ac_cv_type_off_t'+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 <sys/types.h>
11734 #if STDC_HEADERS
11735 #include <stdlib.h>
11736 #include <stddef.h>
11737 #endif
11738 EOF
11739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11740 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11741 rm -rf conftest*
11742 ac_cv_type_off_t=yes
11743 else
11744 rm -rf conftest*
11745 ac_cv_type_off_t=no
11746 fi
11747 rm -f conftest*
11748
11749 fi
11750 echo "$ac_t""$ac_cv_type_off_t" 1>&6
11751 if test $ac_cv_type_off_t = no; then
11752 cat >> confdefs.h <<\EOF
11753 #define off_t long
11754 EOF
11755
11756 fi
11757
11758 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
11759 echo "configure:11760: checking for pid_t" >&5
11760 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11761 echo $ac_n "(cached) $ac_c" 1>&6
11762 else
11763 cat > conftest.$ac_ext <<EOF
11764 #line 11765 "configure"
11765 #include "confdefs.h"
11766 #include <sys/types.h>
11767 #if STDC_HEADERS
11768 #include <stdlib.h>
11769 #include <stddef.h>
11770 #endif
11771 EOF
11772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11773 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11774 rm -rf conftest*
11775 ac_cv_type_pid_t=yes
11776 else
11777 rm -rf conftest*
11778 ac_cv_type_pid_t=no
11779 fi
11780 rm -f conftest*
11781
11782 fi
11783 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11784 if test $ac_cv_type_pid_t = no; then
11785 cat >> confdefs.h <<\EOF
11786 #define pid_t int
11787 EOF
11788
11789 fi
11790
11791 echo $ac_n "checking for size_t""... $ac_c" 1>&6
11792 echo "configure:11793: checking for size_t" >&5
11793 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11794 echo $ac_n "(cached) $ac_c" 1>&6
11795 else
11796 cat > conftest.$ac_ext <<EOF
11797 #line 11798 "configure"
11798 #include "confdefs.h"
11799 #include <sys/types.h>
11800 #if STDC_HEADERS
11801 #include <stdlib.h>
11802 #include <stddef.h>
11803 #endif
11804 EOF
11805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11806 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11807 rm -rf conftest*
11808 ac_cv_type_size_t=yes
11809 else
11810 rm -rf conftest*
11811 ac_cv_type_size_t=no
11812 fi
11813 rm -f conftest*
11814
11815 fi
11816 echo "$ac_t""$ac_cv_type_size_t" 1>&6
11817 if test $ac_cv_type_size_t = no; then
11818 cat >> confdefs.h <<\EOF
11819 #define size_t unsigned
11820 EOF
11821
11822 fi
11823
11824 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
11825 echo "configure:11826: checking for uid_t in sys/types.h" >&5
11826 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
11827 echo $ac_n "(cached) $ac_c" 1>&6
11828 else
11829 cat > conftest.$ac_ext <<EOF
11830 #line 11831 "configure"
11831 #include "confdefs.h"
11832 #include <sys/types.h>
11833 EOF
11834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11835 egrep "uid_t" >/dev/null 2>&1; then
11836 rm -rf conftest*
11837 ac_cv_type_uid_t=yes
11838 else
11839 rm -rf conftest*
11840 ac_cv_type_uid_t=no
11841 fi
11842 rm -f conftest*
11843
11844 fi
11845
11846 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11847 if test $ac_cv_type_uid_t = no; then
11848 cat >> confdefs.h <<\EOF
11849 #define uid_t int
11850 EOF
11851
11852 cat >> confdefs.h <<\EOF
11853 #define gid_t int
11854 EOF
11855
11856 fi
11857
11858
11859 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
11860 echo "configure:11861: checking for wchar_t" >&5
11861 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
11862 echo $ac_n "(cached) $ac_c" 1>&6
11863 else
11864
11865 cat > conftest.$ac_ext <<EOF
11866 #line 11867 "configure"
11867 #include "confdefs.h"
11868 #include <wchar.h>
11869 int main() {
11870
11871 wchar_t wc, *ws;
11872 wc = L'a';
11873 ws = L"Hello, world!";
11874
11875 ; return 0; }
11876 EOF
11877 if { (eval echo configure:11878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11878 rm -rf conftest*
11879 wx_cv_type_wchar_t=yes
11880 else
11881 echo "configure: failed program was:" >&5
11882 cat conftest.$ac_ext >&5
11883 rm -rf conftest*
11884 cat > conftest.$ac_ext <<EOF
11885 #line 11886 "configure"
11886 #include "confdefs.h"
11887 #include <stdlib.h>
11888 int main() {
11889
11890 wchar_t wc, *ws;
11891 wc = L'a';
11892 ws = L"Hello, world!";
11893
11894 ; return 0; }
11895 EOF
11896 if { (eval echo configure:11897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11897 rm -rf conftest*
11898 wx_cv_type_wchar_t=yes
11899 else
11900 echo "configure: failed program was:" >&5
11901 cat conftest.$ac_ext >&5
11902 rm -rf conftest*
11903 wx_cv_type_wchar_t=no
11904 fi
11905 rm -f conftest*
11906
11907 fi
11908 rm -f conftest*
11909
11910 fi
11911
11912 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
11913
11914 if test "$wx_cv_type_wchar_t" = "yes"; then
11915 cat >> confdefs.h <<\EOF
11916 #define wxUSE_WCHAR_T 1
11917 EOF
11918
11919 fi
11920
11921
11922 ac_ext=C
11923 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11924 ac_cpp='$CXXCPP $CPPFLAGS'
11925 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11926 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11927 cross_compiling=$ac_cv_prog_cxx_cross
11928
11929 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
11930 echo "configure:11931: checking if size_t is unsigned int" >&5
11931 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
11932 echo $ac_n "(cached) $ac_c" 1>&6
11933 else
11934 cat > conftest.$ac_ext <<EOF
11935 #line 11936 "configure"
11936 #include "confdefs.h"
11937 #include <stddef.h>
11938 int main() {
11939
11940 return 0; }
11941
11942 struct Foo { void foo(size_t); void foo(unsigned int); };
11943
11944 int bar() {
11945
11946 ; return 0; }
11947 EOF
11948 if { (eval echo configure:11949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11949 rm -rf conftest*
11950 wx_cv_size_t_is_uint=no
11951 else
11952 echo "configure: failed program was:" >&5
11953 cat conftest.$ac_ext >&5
11954 rm -rf conftest*
11955 wx_cv_size_t_is_uint=yes
11956
11957 fi
11958 rm -f conftest*
11959
11960 fi
11961
11962 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
11963
11964 if test "$wx_cv_size_t_is_uint" = "yes"; then
11965 cat >> confdefs.h <<\EOF
11966 #define wxSIZE_T_IS_UINT 1
11967 EOF
11968
11969 else
11970 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
11971 echo "configure:11972: checking if size_t is unsigned long" >&5
11972 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
11973 echo $ac_n "(cached) $ac_c" 1>&6
11974 else
11975 cat > conftest.$ac_ext <<EOF
11976 #line 11977 "configure"
11977 #include "confdefs.h"
11978 #include <stddef.h>
11979 int main() {
11980
11981 return 0; }
11982
11983 struct Foo { void foo(size_t); void foo(unsigned long); };
11984
11985 int bar() {
11986
11987 ; return 0; }
11988 EOF
11989 if { (eval echo configure:11990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11990 rm -rf conftest*
11991 wx_cv_size_t_is_ulong=no
11992 else
11993 echo "configure: failed program was:" >&5
11994 cat conftest.$ac_ext >&5
11995 rm -rf conftest*
11996 wx_cv_size_t_is_ulong=yes
11997
11998 fi
11999 rm -f conftest*
12000
12001 fi
12002
12003 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
12004
12005 if test "$wx_cv_size_t_is_ulong" = "yes"; then
12006 cat >> confdefs.h <<\EOF
12007 #define wxSIZE_T_IS_ULONG 1
12008 EOF
12009
12010 fi
12011 fi
12012
12013 ac_ext=c
12014 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12015 ac_cpp='$CPP $CPPFLAGS'
12016 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12017 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12018 cross_compiling=$ac_cv_prog_cc_cross
12019
12020
12021
12022 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
12023 echo "configure:12024: checking for pw_gecos in struct passwd" >&5
12024 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
12025 echo $ac_n "(cached) $ac_c" 1>&6
12026 else
12027
12028 cat > conftest.$ac_ext <<EOF
12029 #line 12030 "configure"
12030 #include "confdefs.h"
12031 #include <pwd.h>
12032 int main() {
12033
12034 char *p;
12035 struct passwd *pw;
12036 p = pw->pw_gecos;
12037
12038 ; return 0; }
12039 EOF
12040 if { (eval echo configure:12041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12041 rm -rf conftest*
12042
12043 wx_cv_struct_pw_gecos=yes
12044
12045 else
12046 echo "configure: failed program was:" >&5
12047 cat conftest.$ac_ext >&5
12048 rm -rf conftest*
12049
12050 wx_cv_struct_pw_gecos=no
12051
12052
12053 fi
12054 rm -f conftest*
12055
12056
12057 fi
12058
12059 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
12060
12061 if test "$wx_cv_struct_pw_gecos" = "yes"; then
12062 cat >> confdefs.h <<\EOF
12063 #define HAVE_PW_GECOS 1
12064 EOF
12065
12066 fi
12067
12068
12069 echo $ac_n "checking for working const""... $ac_c" 1>&6
12070 echo "configure:12071: checking for working const" >&5
12071 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
12072 echo $ac_n "(cached) $ac_c" 1>&6
12073 else
12074 cat > conftest.$ac_ext <<EOF
12075 #line 12076 "configure"
12076 #include "confdefs.h"
12077
12078 int main() {
12079
12080 /* Ultrix mips cc rejects this. */
12081 typedef int charset[2]; const charset x;
12082 /* SunOS 4.1.1 cc rejects this. */
12083 char const *const *ccp;
12084 char **p;
12085 /* NEC SVR4.0.2 mips cc rejects this. */
12086 struct point {int x, y;};
12087 static struct point const zero = {0,0};
12088 /* AIX XL C 1.02.0.0 rejects this.
12089 It does not let you subtract one const X* pointer from another in an arm
12090 of an if-expression whose if-part is not a constant expression */
12091 const char *g = "string";
12092 ccp = &g + (g ? g-g : 0);
12093 /* HPUX 7.0 cc rejects these. */
12094 ++ccp;
12095 p = (char**) ccp;
12096 ccp = (char const *const *) p;
12097 { /* SCO 3.2v4 cc rejects this. */
12098 char *t;
12099 char const *s = 0 ? (char *) 0 : (char const *) 0;
12100
12101 *t++ = 0;
12102 }
12103 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12104 int x[] = {25, 17};
12105 const int *foo = &x[0];
12106 ++foo;
12107 }
12108 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12109 typedef const int *iptr;
12110 iptr p = 0;
12111 ++p;
12112 }
12113 { /* AIX XL C 1.02.0.0 rejects this saying
12114 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12115 struct s { int j; const int *ap[3]; };
12116 struct s *b; b->j = 5;
12117 }
12118 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12119 const int foo = 10;
12120 }
12121
12122 ; return 0; }
12123 EOF
12124 if { (eval echo configure:12125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12125 rm -rf conftest*
12126 ac_cv_c_const=yes
12127 else
12128 echo "configure: failed program was:" >&5
12129 cat conftest.$ac_ext >&5
12130 rm -rf conftest*
12131 ac_cv_c_const=no
12132 fi
12133 rm -f conftest*
12134 fi
12135
12136 echo "$ac_t""$ac_cv_c_const" 1>&6
12137 if test $ac_cv_c_const = no; then
12138 cat >> confdefs.h <<\EOF
12139 #define const
12140 EOF
12141
12142 fi
12143
12144 echo $ac_n "checking for inline""... $ac_c" 1>&6
12145 echo "configure:12146: checking for inline" >&5
12146 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
12147 echo $ac_n "(cached) $ac_c" 1>&6
12148 else
12149 ac_cv_c_inline=no
12150 for ac_kw in inline __inline__ __inline; do
12151 cat > conftest.$ac_ext <<EOF
12152 #line 12153 "configure"
12153 #include "confdefs.h"
12154
12155 int main() {
12156 } $ac_kw foo() {
12157 ; return 0; }
12158 EOF
12159 if { (eval echo configure:12160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12160 rm -rf conftest*
12161 ac_cv_c_inline=$ac_kw; break
12162 else
12163 echo "configure: failed program was:" >&5
12164 cat conftest.$ac_ext >&5
12165 fi
12166 rm -f conftest*
12167 done
12168
12169 fi
12170
12171 echo "$ac_t""$ac_cv_c_inline" 1>&6
12172 case "$ac_cv_c_inline" in
12173 inline | yes) ;;
12174 no) cat >> confdefs.h <<\EOF
12175 #define inline
12176 EOF
12177 ;;
12178 *) cat >> confdefs.h <<EOF
12179 #define inline $ac_cv_c_inline
12180 EOF
12181 ;;
12182 esac
12183
12184
12185 echo $ac_n "checking size of char""... $ac_c" 1>&6
12186 echo "configure:12187: checking size of char" >&5
12187 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
12188 echo $ac_n "(cached) $ac_c" 1>&6
12189 else
12190 if test "$cross_compiling" = yes; then
12191 ac_cv_sizeof_char=1
12192 else
12193 cat > conftest.$ac_ext <<EOF
12194 #line 12195 "configure"
12195 #include "confdefs.h"
12196 #include <stdio.h>
12197 main()
12198 {
12199 FILE *f=fopen("conftestval", "w");
12200 if (!f) exit(1);
12201 fprintf(f, "%d\n", sizeof(char));
12202 exit(0);
12203 }
12204 EOF
12205 if { (eval echo configure:12206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12206 then
12207 ac_cv_sizeof_char=`cat conftestval`
12208 else
12209 echo "configure: failed program was:" >&5
12210 cat conftest.$ac_ext >&5
12211 rm -fr conftest*
12212 ac_cv_sizeof_char=0
12213 fi
12214 rm -fr conftest*
12215 fi
12216
12217 fi
12218 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
12219 cat >> confdefs.h <<EOF
12220 #define SIZEOF_CHAR $ac_cv_sizeof_char
12221 EOF
12222
12223
12224 echo $ac_n "checking size of short""... $ac_c" 1>&6
12225 echo "configure:12226: checking size of short" >&5
12226 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
12227 echo $ac_n "(cached) $ac_c" 1>&6
12228 else
12229 if test "$cross_compiling" = yes; then
12230 ac_cv_sizeof_short=2
12231 else
12232 cat > conftest.$ac_ext <<EOF
12233 #line 12234 "configure"
12234 #include "confdefs.h"
12235 #include <stdio.h>
12236 main()
12237 {
12238 FILE *f=fopen("conftestval", "w");
12239 if (!f) exit(1);
12240 fprintf(f, "%d\n", sizeof(short));
12241 exit(0);
12242 }
12243 EOF
12244 if { (eval echo configure:12245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12245 then
12246 ac_cv_sizeof_short=`cat conftestval`
12247 else
12248 echo "configure: failed program was:" >&5
12249 cat conftest.$ac_ext >&5
12250 rm -fr conftest*
12251 ac_cv_sizeof_short=0
12252 fi
12253 rm -fr conftest*
12254 fi
12255
12256 fi
12257 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
12258 cat >> confdefs.h <<EOF
12259 #define SIZEOF_SHORT $ac_cv_sizeof_short
12260 EOF
12261
12262
12263 echo $ac_n "checking size of int *""... $ac_c" 1>&6
12264 echo "configure:12265: checking size of int *" >&5
12265 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
12266 echo $ac_n "(cached) $ac_c" 1>&6
12267 else
12268 if test "$cross_compiling" = yes; then
12269 ac_cv_sizeof_int_p=4
12270 else
12271 cat > conftest.$ac_ext <<EOF
12272 #line 12273 "configure"
12273 #include "confdefs.h"
12274 #include <stdio.h>
12275 main()
12276 {
12277 FILE *f=fopen("conftestval", "w");
12278 if (!f) exit(1);
12279 fprintf(f, "%d\n", sizeof(int *));
12280 exit(0);
12281 }
12282 EOF
12283 if { (eval echo configure:12284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12284 then
12285 ac_cv_sizeof_int_p=`cat conftestval`
12286 else
12287 echo "configure: failed program was:" >&5
12288 cat conftest.$ac_ext >&5
12289 rm -fr conftest*
12290 ac_cv_sizeof_int_p=0
12291 fi
12292 rm -fr conftest*
12293 fi
12294
12295 fi
12296 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
12297 cat >> confdefs.h <<EOF
12298 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
12299 EOF
12300
12301
12302 echo $ac_n "checking size of int""... $ac_c" 1>&6
12303 echo "configure:12304: checking size of int" >&5
12304 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
12305 echo $ac_n "(cached) $ac_c" 1>&6
12306 else
12307 if test "$cross_compiling" = yes; then
12308 ac_cv_sizeof_int=4
12309 else
12310 cat > conftest.$ac_ext <<EOF
12311 #line 12312 "configure"
12312 #include "confdefs.h"
12313 #include <stdio.h>
12314 main()
12315 {
12316 FILE *f=fopen("conftestval", "w");
12317 if (!f) exit(1);
12318 fprintf(f, "%d\n", sizeof(int));
12319 exit(0);
12320 }
12321 EOF
12322 if { (eval echo configure:12323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12323 then
12324 ac_cv_sizeof_int=`cat conftestval`
12325 else
12326 echo "configure: failed program was:" >&5
12327 cat conftest.$ac_ext >&5
12328 rm -fr conftest*
12329 ac_cv_sizeof_int=0
12330 fi
12331 rm -fr conftest*
12332 fi
12333
12334 fi
12335 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
12336 cat >> confdefs.h <<EOF
12337 #define SIZEOF_INT $ac_cv_sizeof_int
12338 EOF
12339
12340
12341 echo $ac_n "checking size of long""... $ac_c" 1>&6
12342 echo "configure:12343: checking size of long" >&5
12343 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
12344 echo $ac_n "(cached) $ac_c" 1>&6
12345 else
12346 if test "$cross_compiling" = yes; then
12347 ac_cv_sizeof_long=4
12348 else
12349 cat > conftest.$ac_ext <<EOF
12350 #line 12351 "configure"
12351 #include "confdefs.h"
12352 #include <stdio.h>
12353 main()
12354 {
12355 FILE *f=fopen("conftestval", "w");
12356 if (!f) exit(1);
12357 fprintf(f, "%d\n", sizeof(long));
12358 exit(0);
12359 }
12360 EOF
12361 if { (eval echo configure:12362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12362 then
12363 ac_cv_sizeof_long=`cat conftestval`
12364 else
12365 echo "configure: failed program was:" >&5
12366 cat conftest.$ac_ext >&5
12367 rm -fr conftest*
12368 ac_cv_sizeof_long=0
12369 fi
12370 rm -fr conftest*
12371 fi
12372
12373 fi
12374 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
12375 cat >> confdefs.h <<EOF
12376 #define SIZEOF_LONG $ac_cv_sizeof_long
12377 EOF
12378
12379
12380 echo $ac_n "checking size of long long""... $ac_c" 1>&6
12381 echo "configure:12382: checking size of long long" >&5
12382 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
12383 echo $ac_n "(cached) $ac_c" 1>&6
12384 else
12385 if test "$cross_compiling" = yes; then
12386 ac_cv_sizeof_long_long=0
12387 else
12388 cat > conftest.$ac_ext <<EOF
12389 #line 12390 "configure"
12390 #include "confdefs.h"
12391 #include <stdio.h>
12392 main()
12393 {
12394 FILE *f=fopen("conftestval", "w");
12395 if (!f) exit(1);
12396 fprintf(f, "%d\n", sizeof(long long));
12397 exit(0);
12398 }
12399 EOF
12400 if { (eval echo configure:12401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12401 then
12402 ac_cv_sizeof_long_long=`cat conftestval`
12403 else
12404 echo "configure: failed program was:" >&5
12405 cat conftest.$ac_ext >&5
12406 rm -fr conftest*
12407 ac_cv_sizeof_long_long=0
12408 fi
12409 rm -fr conftest*
12410 fi
12411
12412 fi
12413 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
12414 cat >> confdefs.h <<EOF
12415 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12416 EOF
12417
12418
12419
12420 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
12421 echo "configure:12422: checking size of wchar_t" >&5
12422 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
12423 echo $ac_n "(cached) $ac_c" 1>&6
12424 else
12425
12426 if test "$cross_compiling" = yes; then
12427 wx_cv_sizeof_wchar_t=4
12428
12429 else
12430 cat > conftest.$ac_ext <<EOF
12431 #line 12432 "configure"
12432 #include "confdefs.h"
12433
12434 #ifdef HAVE_WCHAR_H
12435 # include <wchar.h>
12436 #endif
12437 #ifdef HAVE_STDLIB_H
12438 # include <stdlib.h>
12439 #endif
12440 #include <stdio.h>
12441 int main()
12442 {
12443 FILE *f=fopen("conftestval", "w");
12444 if (!f) exit(1);
12445 fprintf(f, "%i", sizeof(wchar_t));
12446 exit(0);
12447 }
12448
12449 EOF
12450 if { (eval echo configure:12451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12451 then
12452 wx_cv_sizeof_wchar_t=`cat conftestval`
12453 else
12454 echo "configure: failed program was:" >&5
12455 cat conftest.$ac_ext >&5
12456 rm -fr conftest*
12457 wx_cv_sizeof_wchar_t=0
12458 fi
12459 rm -fr conftest*
12460 fi
12461
12462
12463 fi
12464
12465 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
12466
12467 cat >> confdefs.h <<EOF
12468 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
12469 EOF
12470
12471
12472 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
12473 echo "configure:12474: checking whether byte ordering is bigendian" >&5
12474 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
12475 echo $ac_n "(cached) $ac_c" 1>&6
12476 else
12477 ac_cv_c_bigendian=unknown
12478 # See if sys/param.h defines the BYTE_ORDER macro.
12479 cat > conftest.$ac_ext <<EOF
12480 #line 12481 "configure"
12481 #include "confdefs.h"
12482 #include <sys/types.h>
12483 #include <sys/param.h>
12484 int main() {
12485
12486 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12487 bogus endian macros
12488 #endif
12489 ; return 0; }
12490 EOF
12491 if { (eval echo configure:12492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12492 rm -rf conftest*
12493 # It does; now see whether it defined to BIG_ENDIAN or not.
12494 cat > conftest.$ac_ext <<EOF
12495 #line 12496 "configure"
12496 #include "confdefs.h"
12497 #include <sys/types.h>
12498 #include <sys/param.h>
12499 int main() {
12500
12501 #if BYTE_ORDER != BIG_ENDIAN
12502 not big endian
12503 #endif
12504 ; return 0; }
12505 EOF
12506 if { (eval echo configure:12507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12507 rm -rf conftest*
12508 ac_cv_c_bigendian=yes
12509 else
12510 echo "configure: failed program was:" >&5
12511 cat conftest.$ac_ext >&5
12512 rm -rf conftest*
12513 ac_cv_c_bigendian=no
12514 fi
12515 rm -f conftest*
12516 else
12517 echo "configure: failed program was:" >&5
12518 cat conftest.$ac_ext >&5
12519 fi
12520 rm -f conftest*
12521 if test $ac_cv_c_bigendian = unknown; then
12522 if test "$cross_compiling" = yes; then
12523 ac_cv_c_bigendian=unknown
12524 else
12525 cat > conftest.$ac_ext <<EOF
12526 #line 12527 "configure"
12527 #include "confdefs.h"
12528 main () {
12529 /* Are we little or big endian? From Harbison&Steele. */
12530 union
12531 {
12532 long l;
12533 char c[sizeof (long)];
12534 } u;
12535 u.l = 1;
12536 exit (u.c[sizeof (long) - 1] == 1);
12537 }
12538 EOF
12539 if { (eval echo configure:12540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12540 then
12541 ac_cv_c_bigendian=no
12542 else
12543 echo "configure: failed program was:" >&5
12544 cat conftest.$ac_ext >&5
12545 rm -fr conftest*
12546 ac_cv_c_bigendian=yes
12547 fi
12548 rm -fr conftest*
12549 fi
12550
12551 fi
12552 fi
12553
12554 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
12555 if test $ac_cv_c_bigendian = unknown; then
12556 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
12557 fi
12558 if test $ac_cv_c_bigendian = yes; then
12559 cat >> confdefs.h <<\EOF
12560 #define WORDS_BIGENDIAN 1
12561 EOF
12562
12563 fi
12564
12565
12566
12567 if test "$cross_compiling" = "yes"; then
12568 cat >> confdefs.h <<\EOF
12569 #define wxUSE_IOSTREAMH 1
12570 EOF
12571
12572 else
12573
12574 ac_ext=C
12575 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12576 ac_cpp='$CXXCPP $CPPFLAGS'
12577 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12578 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12579 cross_compiling=$ac_cv_prog_cxx_cross
12580
12581
12582 for ac_hdr in iostream
12583 do
12584 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12585 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12586 echo "configure:12587: checking for $ac_hdr" >&5
12587 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12588 echo $ac_n "(cached) $ac_c" 1>&6
12589 else
12590 cat > conftest.$ac_ext <<EOF
12591 #line 12592 "configure"
12592 #include "confdefs.h"
12593 #include <$ac_hdr>
12594 EOF
12595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12596 { (eval echo configure:12597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12597 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12598 if test -z "$ac_err"; then
12599 rm -rf conftest*
12600 eval "ac_cv_header_$ac_safe=yes"
12601 else
12602 echo "$ac_err" >&5
12603 echo "configure: failed program was:" >&5
12604 cat conftest.$ac_ext >&5
12605 rm -rf conftest*
12606 eval "ac_cv_header_$ac_safe=no"
12607 fi
12608 rm -f conftest*
12609 fi
12610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12611 echo "$ac_t""yes" 1>&6
12612 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12613 cat >> confdefs.h <<EOF
12614 #define $ac_tr_hdr 1
12615 EOF
12616
12617 else
12618 echo "$ac_t""no" 1>&6
12619 fi
12620 done
12621
12622
12623 if test "$ac_cv_header_iostream" = "yes" ; then
12624 :
12625 else
12626 cat >> confdefs.h <<\EOF
12627 #define wxUSE_IOSTREAMH 1
12628 EOF
12629
12630 fi
12631
12632 ac_ext=c
12633 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12634 ac_cpp='$CPP $CPPFLAGS'
12635 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12636 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12637 cross_compiling=$ac_cv_prog_cc_cross
12638
12639 fi
12640
12641
12642
12643 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
12644 echo "configure:12645: checking if C++ compiler supports bool" >&5
12645 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12646 echo $ac_n "(cached) $ac_c" 1>&6
12647 else
12648
12649
12650 ac_ext=C
12651 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12652 ac_cpp='$CXXCPP $CPPFLAGS'
12653 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12654 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12655 cross_compiling=$ac_cv_prog_cxx_cross
12656
12657
12658 cat > conftest.$ac_ext <<EOF
12659 #line 12660 "configure"
12660 #include "confdefs.h"
12661
12662
12663 int main() {
12664
12665 bool b = true;
12666
12667 return 0;
12668
12669 ; return 0; }
12670 EOF
12671 if { (eval echo configure:12672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12672 rm -rf conftest*
12673
12674 wx_cv_cpp_bool=yes
12675
12676 else
12677 echo "configure: failed program was:" >&5
12678 cat conftest.$ac_ext >&5
12679 rm -rf conftest*
12680
12681 wx_cv_cpp_bool=no
12682
12683
12684 fi
12685 rm -f conftest*
12686
12687 ac_ext=c
12688 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12689 ac_cpp='$CPP $CPPFLAGS'
12690 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12691 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12692 cross_compiling=$ac_cv_prog_cc_cross
12693
12694
12695 fi
12696
12697 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
12698
12699 if test "$wx_cv_cpp_bool" = "yes"; then
12700 cat >> confdefs.h <<\EOF
12701 #define HAVE_BOOL 1
12702 EOF
12703
12704 fi
12705
12706
12707
12708 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
12709 echo "configure:12710: checking for wcslen in -lc" >&5
12710 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12711 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12712 echo $ac_n "(cached) $ac_c" 1>&6
12713 else
12714 ac_save_LIBS="$LIBS"
12715 LIBS="-lc $LIBS"
12716 cat > conftest.$ac_ext <<EOF
12717 #line 12718 "configure"
12718 #include "confdefs.h"
12719 /* Override any gcc2 internal prototype to avoid an error. */
12720 /* We use char because int might match the return type of a gcc2
12721 builtin and then its argument prototype would still apply. */
12722 char wcslen();
12723
12724 int main() {
12725 wcslen()
12726 ; return 0; }
12727 EOF
12728 if { (eval echo configure:12729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12729 rm -rf conftest*
12730 eval "ac_cv_lib_$ac_lib_var=yes"
12731 else
12732 echo "configure: failed program was:" >&5
12733 cat conftest.$ac_ext >&5
12734 rm -rf conftest*
12735 eval "ac_cv_lib_$ac_lib_var=no"
12736 fi
12737 rm -f conftest*
12738 LIBS="$ac_save_LIBS"
12739
12740 fi
12741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12742 echo "$ac_t""yes" 1>&6
12743
12744 cat >> confdefs.h <<\EOF
12745 #define HAVE_WCSLEN 1
12746 EOF
12747
12748 WCHAR_LINK=""
12749
12750 else
12751 echo "$ac_t""no" 1>&6
12752
12753 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
12754 echo "configure:12755: checking for wcslen in -lw" >&5
12755 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12756 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12757 echo $ac_n "(cached) $ac_c" 1>&6
12758 else
12759 ac_save_LIBS="$LIBS"
12760 LIBS="-lw $LIBS"
12761 cat > conftest.$ac_ext <<EOF
12762 #line 12763 "configure"
12763 #include "confdefs.h"
12764 /* Override any gcc2 internal prototype to avoid an error. */
12765 /* We use char because int might match the return type of a gcc2
12766 builtin and then its argument prototype would still apply. */
12767 char wcslen();
12768
12769 int main() {
12770 wcslen()
12771 ; return 0; }
12772 EOF
12773 if { (eval echo configure:12774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12774 rm -rf conftest*
12775 eval "ac_cv_lib_$ac_lib_var=yes"
12776 else
12777 echo "configure: failed program was:" >&5
12778 cat conftest.$ac_ext >&5
12779 rm -rf conftest*
12780 eval "ac_cv_lib_$ac_lib_var=no"
12781 fi
12782 rm -f conftest*
12783 LIBS="$ac_save_LIBS"
12784
12785 fi
12786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12787 echo "$ac_t""yes" 1>&6
12788
12789 cat >> confdefs.h <<\EOF
12790 #define HAVE_WCSLEN 1
12791 EOF
12792
12793 WCHAR_LINK="-lw"
12794
12795 else
12796 echo "$ac_t""no" 1>&6
12797
12798 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
12799 echo "configure:12800: checking for wcslen in -lmsvcrt" >&5
12800 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
12801 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12802 echo $ac_n "(cached) $ac_c" 1>&6
12803 else
12804 ac_save_LIBS="$LIBS"
12805 LIBS="-lmsvcrt $LIBS"
12806 cat > conftest.$ac_ext <<EOF
12807 #line 12808 "configure"
12808 #include "confdefs.h"
12809 /* Override any gcc2 internal prototype to avoid an error. */
12810 /* We use char because int might match the return type of a gcc2
12811 builtin and then its argument prototype would still apply. */
12812 char wcslen();
12813
12814 int main() {
12815 wcslen()
12816 ; return 0; }
12817 EOF
12818 if { (eval echo configure:12819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12819 rm -rf conftest*
12820 eval "ac_cv_lib_$ac_lib_var=yes"
12821 else
12822 echo "configure: failed program was:" >&5
12823 cat conftest.$ac_ext >&5
12824 rm -rf conftest*
12825 eval "ac_cv_lib_$ac_lib_var=no"
12826 fi
12827 rm -f conftest*
12828 LIBS="$ac_save_LIBS"
12829
12830 fi
12831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12832 echo "$ac_t""yes" 1>&6
12833
12834 cat >> confdefs.h <<\EOF
12835 #define HAVE_WCSLEN 1
12836 EOF
12837
12838 WCHAR_LINK=""
12839
12840 else
12841 echo "$ac_t""no" 1>&6
12842 fi
12843
12844
12845 fi
12846
12847
12848 fi
12849
12850
12851 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
12852 echo "configure:12853: checking for vprintf" >&5
12853 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
12854 echo $ac_n "(cached) $ac_c" 1>&6
12855 else
12856 cat > conftest.$ac_ext <<EOF
12857 #line 12858 "configure"
12858 #include "confdefs.h"
12859 /* System header to define __stub macros and hopefully few prototypes,
12860 which can conflict with char vprintf(); below. */
12861 #include <assert.h>
12862 /* Override any gcc2 internal prototype to avoid an error. */
12863 /* We use char because int might match the return type of a gcc2
12864 builtin and then its argument prototype would still apply. */
12865 char vprintf();
12866
12867 int main() {
12868
12869 /* The GNU C library defines this for functions which it implements
12870 to always fail with ENOSYS. Some functions are actually named
12871 something starting with __ and the normal name is an alias. */
12872 #if defined (__stub_vprintf) || defined (__stub___vprintf)
12873 choke me
12874 #else
12875 vprintf();
12876 #endif
12877
12878 ; return 0; }
12879 EOF
12880 if { (eval echo configure:12881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12881 rm -rf conftest*
12882 eval "ac_cv_func_vprintf=yes"
12883 else
12884 echo "configure: failed program was:" >&5
12885 cat conftest.$ac_ext >&5
12886 rm -rf conftest*
12887 eval "ac_cv_func_vprintf=no"
12888 fi
12889 rm -f conftest*
12890 fi
12891
12892 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12893 echo "$ac_t""yes" 1>&6
12894 cat >> confdefs.h <<\EOF
12895 #define HAVE_VPRINTF 1
12896 EOF
12897
12898 else
12899 echo "$ac_t""no" 1>&6
12900 fi
12901
12902 if test "$ac_cv_func_vprintf" != yes; then
12903 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
12904 echo "configure:12905: checking for _doprnt" >&5
12905 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
12906 echo $ac_n "(cached) $ac_c" 1>&6
12907 else
12908 cat > conftest.$ac_ext <<EOF
12909 #line 12910 "configure"
12910 #include "confdefs.h"
12911 /* System header to define __stub macros and hopefully few prototypes,
12912 which can conflict with char _doprnt(); below. */
12913 #include <assert.h>
12914 /* Override any gcc2 internal prototype to avoid an error. */
12915 /* We use char because int might match the return type of a gcc2
12916 builtin and then its argument prototype would still apply. */
12917 char _doprnt();
12918
12919 int main() {
12920
12921 /* The GNU C library defines this for functions which it implements
12922 to always fail with ENOSYS. Some functions are actually named
12923 something starting with __ and the normal name is an alias. */
12924 #if defined (__stub__doprnt) || defined (__stub____doprnt)
12925 choke me
12926 #else
12927 _doprnt();
12928 #endif
12929
12930 ; return 0; }
12931 EOF
12932 if { (eval echo configure:12933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12933 rm -rf conftest*
12934 eval "ac_cv_func__doprnt=yes"
12935 else
12936 echo "configure: failed program was:" >&5
12937 cat conftest.$ac_ext >&5
12938 rm -rf conftest*
12939 eval "ac_cv_func__doprnt=no"
12940 fi
12941 rm -f conftest*
12942 fi
12943
12944 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12945 echo "$ac_t""yes" 1>&6
12946 cat >> confdefs.h <<\EOF
12947 #define HAVE_DOPRNT 1
12948 EOF
12949
12950 else
12951 echo "$ac_t""no" 1>&6
12952 fi
12953
12954 fi
12955
12956
12957
12958
12959
12960
12961
12962 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
12963 echo "configure:12964: checking for vsnprintf" >&5
12964 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
12965 echo $ac_n "(cached) $ac_c" 1>&6
12966 else
12967
12968 cat > conftest.$ac_ext <<EOF
12969 #line 12970 "configure"
12970 #include "confdefs.h"
12971
12972 #include <stdio.h>
12973 #include <stdarg.h>
12974
12975 int main() {
12976
12977 int wx_test_vsnprintf(const char *, ...);
12978
12979 wx_test_vsnprintf("%s");
12980 return 0;
12981 }
12982
12983 int wx_test_vsnprintf(const char *fmt, ...)
12984 {
12985 char *s;
12986
12987 va_list argp;
12988 va_start(argp, fmt);
12989 vsnprintf(s, 42, fmt, argp);
12990 va_end(argp);
12991
12992 ; return 0; }
12993 EOF
12994 if { (eval echo configure:12995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12995 rm -rf conftest*
12996
12997 wx_cv_func_vsnprintf=yes
12998
12999 else
13000 echo "configure: failed program was:" >&5
13001 cat conftest.$ac_ext >&5
13002 rm -rf conftest*
13003
13004 cat > conftest.$ac_ext <<EOF
13005 #line 13006 "configure"
13006 #include "confdefs.h"
13007
13008 #include <stdio.h>
13009 #include <stdarg.h>
13010
13011 int main() {
13012
13013 int wx_test_vsnprintf(const char *, ...);
13014
13015 wx_test_vsnprintf("%s");
13016 return 0;
13017 }
13018
13019 int wx_test_vsnprintf(const char *fmt, ...)
13020 {
13021 char *s;
13022
13023 va_list argp;
13024 va_start(argp, fmt);
13025 _vsnprintf(s, 42, fmt, argp);
13026 va_end(argp);
13027
13028 ; return 0; }
13029 EOF
13030 if { (eval echo configure:13031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13031 rm -rf conftest*
13032
13033 wx_cv_func_vsnprintf=yes
13034
13035 else
13036 echo "configure: failed program was:" >&5
13037 cat conftest.$ac_ext >&5
13038 rm -rf conftest*
13039
13040 wx_cv_func_vsnprintf=no
13041
13042 fi
13043 rm -f conftest*
13044
13045 fi
13046 rm -f conftest*
13047
13048 fi
13049
13050 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
13051
13052 if test "$wx_cv_func_vsnprintf" = yes; then
13053 cat >> confdefs.h <<\EOF
13054 #define HAVE_VSNPRINTF 1
13055 EOF
13056
13057 else
13058 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
13059 fi
13060
13061 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
13062 echo "configure:13063: checking for vsscanf" >&5
13063 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
13064 echo $ac_n "(cached) $ac_c" 1>&6
13065 else
13066
13067 cat > conftest.$ac_ext <<EOF
13068 #line 13069 "configure"
13069 #include "confdefs.h"
13070
13071 #include <stdio.h>
13072 #include <stdarg.h>
13073
13074 int main() {
13075
13076 int wx_test_vsscanf(const char *, ...);
13077
13078 wx_test_vsscanf("%d");
13079 return 0;
13080 }
13081
13082 int wx_test_vsscanf(const char *fmt, ...)
13083 {
13084 va_list argp;
13085 va_start(argp, fmt);
13086 vsscanf("42", fmt, argp);
13087 va_end(argp);
13088
13089 ; return 0; }
13090 EOF
13091 if { (eval echo configure:13092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13092 rm -rf conftest*
13093
13094 wx_cv_func_vsscanf=yes
13095
13096 else
13097 echo "configure: failed program was:" >&5
13098 cat conftest.$ac_ext >&5
13099 rm -rf conftest*
13100
13101 wx_cv_func_vsscanf=no
13102
13103 fi
13104 rm -f conftest*
13105
13106 fi
13107
13108 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
13109
13110 if test "$wx_cv_func_vsscanf" = yes; then
13111 cat >> confdefs.h <<\EOF
13112 #define HAVE_VSSCANF 1
13113 EOF
13114
13115 fi
13116
13117 if test "$TOOLKIT" != "MSW"; then
13118
13119
13120
13121 ac_ext=C
13122 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13123 ac_cpp='$CXXCPP $CPPFLAGS'
13124 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13125 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13126 cross_compiling=$ac_cv_prog_cxx_cross
13127
13128 echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
13129 echo "configure:13130: checking if iconv() takes char**" >&5
13130 if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
13131 echo $ac_n "(cached) $ac_c" 1>&6
13132 else
13133
13134 cat > conftest.$ac_ext <<EOF
13135 #line 13136 "configure"
13136 #include "confdefs.h"
13137 #include <iconv.h>
13138 int main() {
13139
13140 char **inbuf, **outbuf;
13141 iconv_t cd;
13142 size_t insz, outsz;
13143 iconv(cd, inbuf, &insz, outbuf, &outsz);
13144
13145 ; return 0; }
13146 EOF
13147 if { (eval echo configure:13148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13148 rm -rf conftest*
13149 wx_cv_iconv_takes_char=yes
13150 else
13151 echo "configure: failed program was:" >&5
13152 cat conftest.$ac_ext >&5
13153 rm -rf conftest*
13154 wx_cv_iconv_takes_char=no
13155 fi
13156 rm -f conftest*
13157
13158 fi
13159
13160 echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
13161 ac_ext=c
13162 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13163 ac_cpp='$CPP $CPPFLAGS'
13164 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13165 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13166 cross_compiling=$ac_cv_prog_cc_cross
13167
13168 if test "$wx_cv_iconv_takes_char" = yes ; then
13169 cat >> confdefs.h <<\EOF
13170 #define WX_ICONV_TAKES_CHAR 1
13171 EOF
13172
13173 fi
13174
13175
13176 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
13177 for ac_func in sigaction
13178 do
13179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13180 echo "configure:13181: checking for $ac_func" >&5
13181 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13182 echo $ac_n "(cached) $ac_c" 1>&6
13183 else
13184 cat > conftest.$ac_ext <<EOF
13185 #line 13186 "configure"
13186 #include "confdefs.h"
13187 /* System header to define __stub macros and hopefully few prototypes,
13188 which can conflict with char $ac_func(); below. */
13189 #include <assert.h>
13190 /* Override any gcc2 internal prototype to avoid an error. */
13191 /* We use char because int might match the return type of a gcc2
13192 builtin and then its argument prototype would still apply. */
13193 char $ac_func();
13194
13195 int main() {
13196
13197 /* The GNU C library defines this for functions which it implements
13198 to always fail with ENOSYS. Some functions are actually named
13199 something starting with __ and the normal name is an alias. */
13200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13201 choke me
13202 #else
13203 $ac_func();
13204 #endif
13205
13206 ; return 0; }
13207 EOF
13208 if { (eval echo configure:13209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13209 rm -rf conftest*
13210 eval "ac_cv_func_$ac_func=yes"
13211 else
13212 echo "configure: failed program was:" >&5
13213 cat conftest.$ac_ext >&5
13214 rm -rf conftest*
13215 eval "ac_cv_func_$ac_func=no"
13216 fi
13217 rm -f conftest*
13218 fi
13219
13220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13221 echo "$ac_t""yes" 1>&6
13222 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13223 cat >> confdefs.h <<EOF
13224 #define $ac_tr_func 1
13225 EOF
13226
13227 else
13228 echo "$ac_t""no" 1>&6
13229 fi
13230 done
13231
13232
13233 if test "$ac_cv_func_sigaction" = "no"; then
13234 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
13235 wxUSE_ON_FATAL_EXCEPTION=no
13236 fi
13237
13238 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
13239
13240 ac_ext=C
13241 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13242 ac_cpp='$CXXCPP $CPPFLAGS'
13243 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13244 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13245 cross_compiling=$ac_cv_prog_cxx_cross
13246
13247
13248 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
13249 echo "configure:13250: checking for sa_handler type" >&5
13250 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
13251 echo $ac_n "(cached) $ac_c" 1>&6
13252 else
13253
13254 cat > conftest.$ac_ext <<EOF
13255 #line 13256 "configure"
13256 #include "confdefs.h"
13257 #include <signal.h>
13258 int main() {
13259
13260 extern void testSigHandler(int);
13261
13262 struct sigaction sa;
13263 sa.sa_handler = testSigHandler;
13264
13265 ; return 0; }
13266 EOF
13267 if { (eval echo configure:13268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13268 rm -rf conftest*
13269
13270 wx_cv_type_sa_handler=int
13271
13272 else
13273 echo "configure: failed program was:" >&5
13274 cat conftest.$ac_ext >&5
13275 rm -rf conftest*
13276
13277 wx_cv_type_sa_handler=void
13278
13279 fi
13280 rm -f conftest*
13281
13282 fi
13283
13284 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
13285
13286 ac_ext=c
13287 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13288 ac_cpp='$CPP $CPPFLAGS'
13289 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13290 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13291 cross_compiling=$ac_cv_prog_cc_cross
13292
13293
13294 cat >> confdefs.h <<EOF
13295 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
13296 EOF
13297
13298 fi
13299 fi
13300
13301 for ac_func in vfork
13302 do
13303 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13304 echo "configure:13305: checking for $ac_func" >&5
13305 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13306 echo $ac_n "(cached) $ac_c" 1>&6
13307 else
13308 cat > conftest.$ac_ext <<EOF
13309 #line 13310 "configure"
13310 #include "confdefs.h"
13311 /* System header to define __stub macros and hopefully few prototypes,
13312 which can conflict with char $ac_func(); below. */
13313 #include <assert.h>
13314 /* Override any gcc2 internal prototype to avoid an error. */
13315 /* We use char because int might match the return type of a gcc2
13316 builtin and then its argument prototype would still apply. */
13317 char $ac_func();
13318
13319 int main() {
13320
13321 /* The GNU C library defines this for functions which it implements
13322 to always fail with ENOSYS. Some functions are actually named
13323 something starting with __ and the normal name is an alias. */
13324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13325 choke me
13326 #else
13327 $ac_func();
13328 #endif
13329
13330 ; return 0; }
13331 EOF
13332 if { (eval echo configure:13333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13333 rm -rf conftest*
13334 eval "ac_cv_func_$ac_func=yes"
13335 else
13336 echo "configure: failed program was:" >&5
13337 cat conftest.$ac_ext >&5
13338 rm -rf conftest*
13339 eval "ac_cv_func_$ac_func=no"
13340 fi
13341 rm -f conftest*
13342 fi
13343
13344 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13345 echo "$ac_t""yes" 1>&6
13346 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13347 cat >> confdefs.h <<EOF
13348 #define $ac_tr_func 1
13349 EOF
13350
13351 else
13352 echo "$ac_t""no" 1>&6
13353 fi
13354 done
13355
13356
13357 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
13358 for ac_func in fcntl flock
13359 do
13360 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13361 echo "configure:13362: checking for $ac_func" >&5
13362 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13363 echo $ac_n "(cached) $ac_c" 1>&6
13364 else
13365 cat > conftest.$ac_ext <<EOF
13366 #line 13367 "configure"
13367 #include "confdefs.h"
13368 /* System header to define __stub macros and hopefully few prototypes,
13369 which can conflict with char $ac_func(); below. */
13370 #include <assert.h>
13371 /* Override any gcc2 internal prototype to avoid an error. */
13372 /* We use char because int might match the return type of a gcc2
13373 builtin and then its argument prototype would still apply. */
13374 char $ac_func();
13375
13376 int main() {
13377
13378 /* The GNU C library defines this for functions which it implements
13379 to always fail with ENOSYS. Some functions are actually named
13380 something starting with __ and the normal name is an alias. */
13381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13382 choke me
13383 #else
13384 $ac_func();
13385 #endif
13386
13387 ; return 0; }
13388 EOF
13389 if { (eval echo configure:13390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13390 rm -rf conftest*
13391 eval "ac_cv_func_$ac_func=yes"
13392 else
13393 echo "configure: failed program was:" >&5
13394 cat conftest.$ac_ext >&5
13395 rm -rf conftest*
13396 eval "ac_cv_func_$ac_func=no"
13397 fi
13398 rm -f conftest*
13399 fi
13400
13401 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13402 echo "$ac_t""yes" 1>&6
13403 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13404 cat >> confdefs.h <<EOF
13405 #define $ac_tr_func 1
13406 EOF
13407 break
13408 else
13409 echo "$ac_t""no" 1>&6
13410 fi
13411 done
13412
13413
13414 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
13415 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
13416 wxUSE_SNGLINST_CHECKER=no
13417 fi
13418 fi
13419
13420 for ac_func in timegm
13421 do
13422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13423 echo "configure:13424: checking for $ac_func" >&5
13424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13425 echo $ac_n "(cached) $ac_c" 1>&6
13426 else
13427 cat > conftest.$ac_ext <<EOF
13428 #line 13429 "configure"
13429 #include "confdefs.h"
13430 /* System header to define __stub macros and hopefully few prototypes,
13431 which can conflict with char $ac_func(); below. */
13432 #include <assert.h>
13433 /* Override any gcc2 internal prototype to avoid an error. */
13434 /* We use char because int might match the return type of a gcc2
13435 builtin and then its argument prototype would still apply. */
13436 char $ac_func();
13437
13438 int main() {
13439
13440 /* The GNU C library defines this for functions which it implements
13441 to always fail with ENOSYS. Some functions are actually named
13442 something starting with __ and the normal name is an alias. */
13443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13444 choke me
13445 #else
13446 $ac_func();
13447 #endif
13448
13449 ; return 0; }
13450 EOF
13451 if { (eval echo configure:13452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13452 rm -rf conftest*
13453 eval "ac_cv_func_$ac_func=yes"
13454 else
13455 echo "configure: failed program was:" >&5
13456 cat conftest.$ac_ext >&5
13457 rm -rf conftest*
13458 eval "ac_cv_func_$ac_func=no"
13459 fi
13460 rm -f conftest*
13461 fi
13462
13463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13464 echo "$ac_t""yes" 1>&6
13465 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13466 cat >> confdefs.h <<EOF
13467 #define $ac_tr_func 1
13468 EOF
13469
13470 else
13471 echo "$ac_t""no" 1>&6
13472 fi
13473 done
13474
13475
13476 for ac_func in putenv setenv
13477 do
13478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13479 echo "configure:13480: checking for $ac_func" >&5
13480 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13481 echo $ac_n "(cached) $ac_c" 1>&6
13482 else
13483 cat > conftest.$ac_ext <<EOF
13484 #line 13485 "configure"
13485 #include "confdefs.h"
13486 /* System header to define __stub macros and hopefully few prototypes,
13487 which can conflict with char $ac_func(); below. */
13488 #include <assert.h>
13489 /* Override any gcc2 internal prototype to avoid an error. */
13490 /* We use char because int might match the return type of a gcc2
13491 builtin and then its argument prototype would still apply. */
13492 char $ac_func();
13493
13494 int main() {
13495
13496 /* The GNU C library defines this for functions which it implements
13497 to always fail with ENOSYS. Some functions are actually named
13498 something starting with __ and the normal name is an alias. */
13499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13500 choke me
13501 #else
13502 $ac_func();
13503 #endif
13504
13505 ; return 0; }
13506 EOF
13507 if { (eval echo configure:13508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13508 rm -rf conftest*
13509 eval "ac_cv_func_$ac_func=yes"
13510 else
13511 echo "configure: failed program was:" >&5
13512 cat conftest.$ac_ext >&5
13513 rm -rf conftest*
13514 eval "ac_cv_func_$ac_func=no"
13515 fi
13516 rm -f conftest*
13517 fi
13518
13519 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13520 echo "$ac_t""yes" 1>&6
13521 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13522 cat >> confdefs.h <<EOF
13523 #define $ac_tr_func 1
13524 EOF
13525 break
13526 else
13527 echo "$ac_t""no" 1>&6
13528 fi
13529 done
13530
13531
13532 HAVE_SOME_SLEEP_FUNC=0
13533 if test "$USE_BEOS" = 1; then
13534 cat >> confdefs.h <<\EOF
13535 #define HAVE_SLEEP 1
13536 EOF
13537
13538 HAVE_SOME_SLEEP_FUNC=1
13539 fi
13540
13541 if test "$USE_DARWIN" = 1; then
13542 cat >> confdefs.h <<\EOF
13543 #define HAVE_USLEEP 1
13544 EOF
13545
13546 HAVE_SOME_SLEEP_FUNC=1
13547 fi
13548
13549 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
13550 POSIX4_LINK=
13551 for ac_func in nanosleep
13552 do
13553 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13554 echo "configure:13555: checking for $ac_func" >&5
13555 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13556 echo $ac_n "(cached) $ac_c" 1>&6
13557 else
13558 cat > conftest.$ac_ext <<EOF
13559 #line 13560 "configure"
13560 #include "confdefs.h"
13561 /* System header to define __stub macros and hopefully few prototypes,
13562 which can conflict with char $ac_func(); below. */
13563 #include <assert.h>
13564 /* Override any gcc2 internal prototype to avoid an error. */
13565 /* We use char because int might match the return type of a gcc2
13566 builtin and then its argument prototype would still apply. */
13567 char $ac_func();
13568
13569 int main() {
13570
13571 /* The GNU C library defines this for functions which it implements
13572 to always fail with ENOSYS. Some functions are actually named
13573 something starting with __ and the normal name is an alias. */
13574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13575 choke me
13576 #else
13577 $ac_func();
13578 #endif
13579
13580 ; return 0; }
13581 EOF
13582 if { (eval echo configure:13583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13583 rm -rf conftest*
13584 eval "ac_cv_func_$ac_func=yes"
13585 else
13586 echo "configure: failed program was:" >&5
13587 cat conftest.$ac_ext >&5
13588 rm -rf conftest*
13589 eval "ac_cv_func_$ac_func=no"
13590 fi
13591 rm -f conftest*
13592 fi
13593
13594 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13595 echo "$ac_t""yes" 1>&6
13596 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13597 cat >> confdefs.h <<EOF
13598 #define $ac_tr_func 1
13599 EOF
13600 cat >> confdefs.h <<\EOF
13601 #define HAVE_NANOSLEEP 1
13602 EOF
13603
13604 else
13605 echo "$ac_t""no" 1>&6
13606 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
13607 echo "configure:13608: checking for nanosleep in -lposix4" >&5
13608 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
13609 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13610 echo $ac_n "(cached) $ac_c" 1>&6
13611 else
13612 ac_save_LIBS="$LIBS"
13613 LIBS="-lposix4 $LIBS"
13614 cat > conftest.$ac_ext <<EOF
13615 #line 13616 "configure"
13616 #include "confdefs.h"
13617 /* Override any gcc2 internal prototype to avoid an error. */
13618 /* We use char because int might match the return type of a gcc2
13619 builtin and then its argument prototype would still apply. */
13620 char nanosleep();
13621
13622 int main() {
13623 nanosleep()
13624 ; return 0; }
13625 EOF
13626 if { (eval echo configure:13627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13627 rm -rf conftest*
13628 eval "ac_cv_lib_$ac_lib_var=yes"
13629 else
13630 echo "configure: failed program was:" >&5
13631 cat conftest.$ac_ext >&5
13632 rm -rf conftest*
13633 eval "ac_cv_lib_$ac_lib_var=no"
13634 fi
13635 rm -f conftest*
13636 LIBS="$ac_save_LIBS"
13637
13638 fi
13639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13640 echo "$ac_t""yes" 1>&6
13641
13642 cat >> confdefs.h <<\EOF
13643 #define HAVE_NANOSLEEP 1
13644 EOF
13645
13646 POSIX4_LINK="-lposix4"
13647
13648 else
13649 echo "$ac_t""no" 1>&6
13650
13651 for ac_func in usleep
13652 do
13653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13654 echo "configure:13655: checking for $ac_func" >&5
13655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13656 echo $ac_n "(cached) $ac_c" 1>&6
13657 else
13658 cat > conftest.$ac_ext <<EOF
13659 #line 13660 "configure"
13660 #include "confdefs.h"
13661 /* System header to define __stub macros and hopefully few prototypes,
13662 which can conflict with char $ac_func(); below. */
13663 #include <assert.h>
13664 /* Override any gcc2 internal prototype to avoid an error. */
13665 /* We use char because int might match the return type of a gcc2
13666 builtin and then its argument prototype would still apply. */
13667 char $ac_func();
13668
13669 int main() {
13670
13671 /* The GNU C library defines this for functions which it implements
13672 to always fail with ENOSYS. Some functions are actually named
13673 something starting with __ and the normal name is an alias. */
13674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13675 choke me
13676 #else
13677 $ac_func();
13678 #endif
13679
13680 ; return 0; }
13681 EOF
13682 if { (eval echo configure:13683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13683 rm -rf conftest*
13684 eval "ac_cv_func_$ac_func=yes"
13685 else
13686 echo "configure: failed program was:" >&5
13687 cat conftest.$ac_ext >&5
13688 rm -rf conftest*
13689 eval "ac_cv_func_$ac_func=no"
13690 fi
13691 rm -f conftest*
13692 fi
13693
13694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13695 echo "$ac_t""yes" 1>&6
13696 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13697 cat >> confdefs.h <<EOF
13698 #define $ac_tr_func 1
13699 EOF
13700 cat >> confdefs.h <<\EOF
13701 #define HAVE_USLEEP 1
13702 EOF
13703
13704 else
13705 echo "$ac_t""no" 1>&6
13706 echo "configure: warning: wxSleep() function will not work" 1>&2
13707
13708 fi
13709 done
13710
13711
13712
13713 fi
13714
13715
13716
13717 fi
13718 done
13719
13720 fi
13721
13722 for ac_func in uname gethostname
13723 do
13724 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13725 echo "configure:13726: checking for $ac_func" >&5
13726 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13727 echo $ac_n "(cached) $ac_c" 1>&6
13728 else
13729 cat > conftest.$ac_ext <<EOF
13730 #line 13731 "configure"
13731 #include "confdefs.h"
13732 /* System header to define __stub macros and hopefully few prototypes,
13733 which can conflict with char $ac_func(); below. */
13734 #include <assert.h>
13735 /* Override any gcc2 internal prototype to avoid an error. */
13736 /* We use char because int might match the return type of a gcc2
13737 builtin and then its argument prototype would still apply. */
13738 char $ac_func();
13739
13740 int main() {
13741
13742 /* The GNU C library defines this for functions which it implements
13743 to always fail with ENOSYS. Some functions are actually named
13744 something starting with __ and the normal name is an alias. */
13745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13746 choke me
13747 #else
13748 $ac_func();
13749 #endif
13750
13751 ; return 0; }
13752 EOF
13753 if { (eval echo configure:13754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13754 rm -rf conftest*
13755 eval "ac_cv_func_$ac_func=yes"
13756 else
13757 echo "configure: failed program was:" >&5
13758 cat conftest.$ac_ext >&5
13759 rm -rf conftest*
13760 eval "ac_cv_func_$ac_func=no"
13761 fi
13762 rm -f conftest*
13763 fi
13764
13765 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13766 echo "$ac_t""yes" 1>&6
13767 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13768 cat >> confdefs.h <<EOF
13769 #define $ac_tr_func 1
13770 EOF
13771 break
13772 else
13773 echo "$ac_t""no" 1>&6
13774 fi
13775 done
13776
13777
13778
13779 ac_ext=C
13780 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13781 ac_cpp='$CXXCPP $CPPFLAGS'
13782 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13783 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13784 cross_compiling=$ac_cv_prog_cxx_cross
13785
13786
13787 for ac_func in strtok_r
13788 do
13789 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13790 echo "configure:13791: checking for $ac_func" >&5
13791 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13792 echo $ac_n "(cached) $ac_c" 1>&6
13793 else
13794 cat > conftest.$ac_ext <<EOF
13795 #line 13796 "configure"
13796 #include "confdefs.h"
13797 /* System header to define __stub macros and hopefully few prototypes,
13798 which can conflict with char $ac_func(); below. */
13799 #include <assert.h>
13800 /* Override any gcc2 internal prototype to avoid an error. */
13801 #ifdef __cplusplus
13802 extern "C"
13803 #endif
13804 /* We use char because int might match the return type of a gcc2
13805 builtin and then its argument prototype would still apply. */
13806 char $ac_func();
13807
13808 int main() {
13809
13810 /* The GNU C library defines this for functions which it implements
13811 to always fail with ENOSYS. Some functions are actually named
13812 something starting with __ and the normal name is an alias. */
13813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13814 choke me
13815 #else
13816 $ac_func();
13817 #endif
13818
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_func_$ac_func=yes"
13824 else
13825 echo "configure: failed program was:" >&5
13826 cat conftest.$ac_ext >&5
13827 rm -rf conftest*
13828 eval "ac_cv_func_$ac_func=no"
13829 fi
13830 rm -f conftest*
13831 fi
13832
13833 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13834 echo "$ac_t""yes" 1>&6
13835 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13836 cat >> confdefs.h <<EOF
13837 #define $ac_tr_func 1
13838 EOF
13839
13840 else
13841 echo "$ac_t""no" 1>&6
13842 fi
13843 done
13844
13845
13846 ac_ext=c
13847 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13848 ac_cpp='$CPP $CPPFLAGS'
13849 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13850 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13851 cross_compiling=$ac_cv_prog_cc_cross
13852
13853
13854 INET_LINK=
13855 for ac_func in inet_addr
13856 do
13857 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13858 echo "configure:13859: checking for $ac_func" >&5
13859 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13860 echo $ac_n "(cached) $ac_c" 1>&6
13861 else
13862 cat > conftest.$ac_ext <<EOF
13863 #line 13864 "configure"
13864 #include "confdefs.h"
13865 /* System header to define __stub macros and hopefully few prototypes,
13866 which can conflict with char $ac_func(); below. */
13867 #include <assert.h>
13868 /* Override any gcc2 internal prototype to avoid an error. */
13869 /* We use char because int might match the return type of a gcc2
13870 builtin and then its argument prototype would still apply. */
13871 char $ac_func();
13872
13873 int main() {
13874
13875 /* The GNU C library defines this for functions which it implements
13876 to always fail with ENOSYS. Some functions are actually named
13877 something starting with __ and the normal name is an alias. */
13878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13879 choke me
13880 #else
13881 $ac_func();
13882 #endif
13883
13884 ; return 0; }
13885 EOF
13886 if { (eval echo configure:13887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13887 rm -rf conftest*
13888 eval "ac_cv_func_$ac_func=yes"
13889 else
13890 echo "configure: failed program was:" >&5
13891 cat conftest.$ac_ext >&5
13892 rm -rf conftest*
13893 eval "ac_cv_func_$ac_func=no"
13894 fi
13895 rm -f conftest*
13896 fi
13897
13898 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13899 echo "$ac_t""yes" 1>&6
13900 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13901 cat >> confdefs.h <<EOF
13902 #define $ac_tr_func 1
13903 EOF
13904 cat >> confdefs.h <<\EOF
13905 #define HAVE_INET_ADDR 1
13906 EOF
13907
13908 else
13909 echo "$ac_t""no" 1>&6
13910 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
13911 echo "configure:13912: checking for inet_addr in -lnsl" >&5
13912 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
13913 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13914 echo $ac_n "(cached) $ac_c" 1>&6
13915 else
13916 ac_save_LIBS="$LIBS"
13917 LIBS="-lnsl $LIBS"
13918 cat > conftest.$ac_ext <<EOF
13919 #line 13920 "configure"
13920 #include "confdefs.h"
13921 /* Override any gcc2 internal prototype to avoid an error. */
13922 /* We use char because int might match the return type of a gcc2
13923 builtin and then its argument prototype would still apply. */
13924 char inet_addr();
13925
13926 int main() {
13927 inet_addr()
13928 ; return 0; }
13929 EOF
13930 if { (eval echo configure:13931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13931 rm -rf conftest*
13932 eval "ac_cv_lib_$ac_lib_var=yes"
13933 else
13934 echo "configure: failed program was:" >&5
13935 cat conftest.$ac_ext >&5
13936 rm -rf conftest*
13937 eval "ac_cv_lib_$ac_lib_var=no"
13938 fi
13939 rm -f conftest*
13940 LIBS="$ac_save_LIBS"
13941
13942 fi
13943 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13944 echo "$ac_t""yes" 1>&6
13945 INET_LINK="nsl"
13946 else
13947 echo "$ac_t""no" 1>&6
13948 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
13949 echo "configure:13950: checking for inet_addr in -lresolv" >&5
13950 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
13951 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13952 echo $ac_n "(cached) $ac_c" 1>&6
13953 else
13954 ac_save_LIBS="$LIBS"
13955 LIBS="-lresolv $LIBS"
13956 cat > conftest.$ac_ext <<EOF
13957 #line 13958 "configure"
13958 #include "confdefs.h"
13959 /* Override any gcc2 internal prototype to avoid an error. */
13960 /* We use char because int might match the return type of a gcc2
13961 builtin and then its argument prototype would still apply. */
13962 char inet_addr();
13963
13964 int main() {
13965 inet_addr()
13966 ; return 0; }
13967 EOF
13968 if { (eval echo configure:13969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13969 rm -rf conftest*
13970 eval "ac_cv_lib_$ac_lib_var=yes"
13971 else
13972 echo "configure: failed program was:" >&5
13973 cat conftest.$ac_ext >&5
13974 rm -rf conftest*
13975 eval "ac_cv_lib_$ac_lib_var=no"
13976 fi
13977 rm -f conftest*
13978 LIBS="$ac_save_LIBS"
13979
13980 fi
13981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13982 echo "$ac_t""yes" 1>&6
13983 INET_LINK="resolv"
13984
13985 else
13986 echo "$ac_t""no" 1>&6
13987 fi
13988
13989
13990 fi
13991
13992
13993
13994 fi
13995 done
13996
13997
13998 for ac_func in inet_aton
13999 do
14000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14001 echo "configure:14002: checking for $ac_func" >&5
14002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14003 echo $ac_n "(cached) $ac_c" 1>&6
14004 else
14005 cat > conftest.$ac_ext <<EOF
14006 #line 14007 "configure"
14007 #include "confdefs.h"
14008 /* System header to define __stub macros and hopefully few prototypes,
14009 which can conflict with char $ac_func(); below. */
14010 #include <assert.h>
14011 /* Override any gcc2 internal prototype to avoid an error. */
14012 /* We use char because int might match the return type of a gcc2
14013 builtin and then its argument prototype would still apply. */
14014 char $ac_func();
14015
14016 int main() {
14017
14018 /* The GNU C library defines this for functions which it implements
14019 to always fail with ENOSYS. Some functions are actually named
14020 something starting with __ and the normal name is an alias. */
14021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14022 choke me
14023 #else
14024 $ac_func();
14025 #endif
14026
14027 ; return 0; }
14028 EOF
14029 if { (eval echo configure:14030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14030 rm -rf conftest*
14031 eval "ac_cv_func_$ac_func=yes"
14032 else
14033 echo "configure: failed program was:" >&5
14034 cat conftest.$ac_ext >&5
14035 rm -rf conftest*
14036 eval "ac_cv_func_$ac_func=no"
14037 fi
14038 rm -f conftest*
14039 fi
14040
14041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14042 echo "$ac_t""yes" 1>&6
14043 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14044 cat >> confdefs.h <<EOF
14045 #define $ac_tr_func 1
14046 EOF
14047 cat >> confdefs.h <<\EOF
14048 #define HAVE_INET_ATON 1
14049 EOF
14050
14051 else
14052 echo "$ac_t""no" 1>&6
14053 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
14054 echo "configure:14055: checking for inet_aton in -l$INET_LINK" >&5
14055 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
14056 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14057 echo $ac_n "(cached) $ac_c" 1>&6
14058 else
14059 ac_save_LIBS="$LIBS"
14060 LIBS="-l$INET_LINK $LIBS"
14061 cat > conftest.$ac_ext <<EOF
14062 #line 14063 "configure"
14063 #include "confdefs.h"
14064 /* Override any gcc2 internal prototype to avoid an error. */
14065 /* We use char because int might match the return type of a gcc2
14066 builtin and then its argument prototype would still apply. */
14067 char inet_aton();
14068
14069 int main() {
14070 inet_aton()
14071 ; return 0; }
14072 EOF
14073 if { (eval echo configure:14074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14074 rm -rf conftest*
14075 eval "ac_cv_lib_$ac_lib_var=yes"
14076 else
14077 echo "configure: failed program was:" >&5
14078 cat conftest.$ac_ext >&5
14079 rm -rf conftest*
14080 eval "ac_cv_lib_$ac_lib_var=no"
14081 fi
14082 rm -f conftest*
14083 LIBS="$ac_save_LIBS"
14084
14085 fi
14086 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14087 echo "$ac_t""yes" 1>&6
14088 cat >> confdefs.h <<\EOF
14089 #define HAVE_INET_ATON 1
14090 EOF
14091
14092 else
14093 echo "$ac_t""no" 1>&6
14094 fi
14095
14096
14097 fi
14098 done
14099
14100
14101 if test "x$INET_LINK" != "x"; then
14102 cat >> confdefs.h <<\EOF
14103 #define HAVE_INET_ADDR 1
14104 EOF
14105
14106 INET_LINK="-l$INET_LINK"
14107 fi
14108
14109 fi
14110
14111
14112 cat > confcache <<\EOF
14113 # This file is a shell script that caches the results of configure
14114 # tests run on this system so they can be shared between configure
14115 # scripts and configure runs. It is not useful on other systems.
14116 # If it contains results you don't want to keep, you may remove or edit it.
14117 #
14118 # By default, configure uses ./config.cache as the cache file,
14119 # creating it if it does not exist already. You can give configure
14120 # the --cache-file=FILE option to use a different cache file; that is
14121 # what configure does when it calls configure scripts in
14122 # subdirectories, so they share the cache.
14123 # Giving --cache-file=/dev/null disables caching, for debugging configure.
14124 # config.status only pays attention to the cache file if you give it the
14125 # --recheck option to rerun configure.
14126 #
14127 EOF
14128 # The following way of writing the cache mishandles newlines in values,
14129 # but we know of no workaround that is simple, portable, and efficient.
14130 # So, don't put newlines in cache variables' values.
14131 # Ultrix sh set writes to stderr and can't be redirected directly,
14132 # and sets the high bit in the cache file unless we assign to the vars.
14133 (set) 2>&1 |
14134 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14135 *ac_space=\ *)
14136 # `set' does not quote correctly, so add quotes (double-quote substitution
14137 # turns \\\\ into \\, and sed turns \\ into \).
14138 sed -n \
14139 -e "s/'/'\\\\''/g" \
14140 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14141 ;;
14142 *)
14143 # `set' quotes correctly as required by POSIX, so do not add quotes.
14144 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14145 ;;
14146 esac >> confcache
14147 if cmp -s $cache_file confcache; then
14148 :
14149 else
14150 if test -w $cache_file; then
14151 echo "updating cache $cache_file"
14152 cat confcache > $cache_file
14153 else
14154 echo "not updating unwritable cache $cache_file"
14155 fi
14156 fi
14157 rm -f confcache
14158
14159
14160
14161 if test "$TOOLKIT" != "MSW"; then
14162
14163
14164 THREADS_LINK=""
14165 THREADS_OBJ=""
14166
14167 if test "$wxUSE_THREADS" = "yes" ; then
14168 if test "$wxUSE_WINE" = 1 ; then
14169 echo "configure: warning: Threads are not supported under WINE" 1>&2
14170 wxUSE_THREADS="no"
14171 elif test "$USE_BEOS" = 1; then
14172 echo "configure: warning: BeOS threads are not yet supported" 1>&2
14173 wxUSE_THREADS="no"
14174 fi
14175 fi
14176
14177 if test "$wxUSE_THREADS" = "yes" ; then
14178
14179 if test "$USE_AIX" = 1; then
14180 THREADS_LIB=pthreads
14181 else
14182 THREADS_LIB=pthread
14183 fi
14184
14185 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
14186 echo "configure:14187: checking for pthread_create in -l$THREADS_LIB" >&5
14187 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
14188 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14189 echo $ac_n "(cached) $ac_c" 1>&6
14190 else
14191 ac_save_LIBS="$LIBS"
14192 LIBS="-l$THREADS_LIB $LIBS"
14193 cat > conftest.$ac_ext <<EOF
14194 #line 14195 "configure"
14195 #include "confdefs.h"
14196 /* Override any gcc2 internal prototype to avoid an error. */
14197 /* We use char because int might match the return type of a gcc2
14198 builtin and then its argument prototype would still apply. */
14199 char pthread_create();
14200
14201 int main() {
14202 pthread_create()
14203 ; return 0; }
14204 EOF
14205 if { (eval echo configure:14206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14206 rm -rf conftest*
14207 eval "ac_cv_lib_$ac_lib_var=yes"
14208 else
14209 echo "configure: failed program was:" >&5
14210 cat conftest.$ac_ext >&5
14211 rm -rf conftest*
14212 eval "ac_cv_lib_$ac_lib_var=no"
14213 fi
14214 rm -f conftest*
14215 LIBS="$ac_save_LIBS"
14216
14217 fi
14218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14219 echo "$ac_t""yes" 1>&6
14220
14221 THREADS_OBJ="threadpsx.lo"
14222 THREADS_LINK=$THREADS_LIB
14223
14224 else
14225 echo "$ac_t""no" 1>&6
14226
14227 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
14228 echo "configure:14229: checking for pthread_create in -lc_r" >&5
14229 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
14230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14231 echo $ac_n "(cached) $ac_c" 1>&6
14232 else
14233 ac_save_LIBS="$LIBS"
14234 LIBS="-lc_r $LIBS"
14235 cat > conftest.$ac_ext <<EOF
14236 #line 14237 "configure"
14237 #include "confdefs.h"
14238 /* Override any gcc2 internal prototype to avoid an error. */
14239 /* We use char because int might match the return type of a gcc2
14240 builtin and then its argument prototype would still apply. */
14241 char pthread_create();
14242
14243 int main() {
14244 pthread_create()
14245 ; return 0; }
14246 EOF
14247 if { (eval echo configure:14248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14248 rm -rf conftest*
14249 eval "ac_cv_lib_$ac_lib_var=yes"
14250 else
14251 echo "configure: failed program was:" >&5
14252 cat conftest.$ac_ext >&5
14253 rm -rf conftest*
14254 eval "ac_cv_lib_$ac_lib_var=no"
14255 fi
14256 rm -f conftest*
14257 LIBS="$ac_save_LIBS"
14258
14259 fi
14260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14261 echo "$ac_t""yes" 1>&6
14262
14263 THREADS_OBJ="threadpsx.lo"
14264 THREADS_LINK="c_r"
14265
14266 else
14267 echo "$ac_t""no" 1>&6
14268
14269 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
14270 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
14271 echo "configure:14272: checking for sys/prctl.h" >&5
14272 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14273 echo $ac_n "(cached) $ac_c" 1>&6
14274 else
14275 cat > conftest.$ac_ext <<EOF
14276 #line 14277 "configure"
14277 #include "confdefs.h"
14278 #include <sys/prctl.h>
14279 EOF
14280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14281 { (eval echo configure:14282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14283 if test -z "$ac_err"; then
14284 rm -rf conftest*
14285 eval "ac_cv_header_$ac_safe=yes"
14286 else
14287 echo "$ac_err" >&5
14288 echo "configure: failed program was:" >&5
14289 cat conftest.$ac_ext >&5
14290 rm -rf conftest*
14291 eval "ac_cv_header_$ac_safe=no"
14292 fi
14293 rm -f conftest*
14294 fi
14295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14296 echo "$ac_t""yes" 1>&6
14297
14298 THREADS_OBJ="threadsgi.lo"
14299
14300 else
14301 echo "$ac_t""no" 1>&6
14302 fi
14303
14304
14305 fi
14306
14307
14308 fi
14309
14310
14311 if test -z "$THREADS_OBJ" ; then
14312 wxUSE_THREADS=no
14313 echo "configure: warning: No thread support on this system" 1>&2
14314 fi
14315 fi
14316
14317 if test "$wxUSE_THREADS" = "yes" ; then
14318 for ac_func in thr_setconcurrency
14319 do
14320 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14321 echo "configure:14322: checking for $ac_func" >&5
14322 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14323 echo $ac_n "(cached) $ac_c" 1>&6
14324 else
14325 cat > conftest.$ac_ext <<EOF
14326 #line 14327 "configure"
14327 #include "confdefs.h"
14328 /* System header to define __stub macros and hopefully few prototypes,
14329 which can conflict with char $ac_func(); below. */
14330 #include <assert.h>
14331 /* Override any gcc2 internal prototype to avoid an error. */
14332 /* We use char because int might match the return type of a gcc2
14333 builtin and then its argument prototype would still apply. */
14334 char $ac_func();
14335
14336 int main() {
14337
14338 /* The GNU C library defines this for functions which it implements
14339 to always fail with ENOSYS. Some functions are actually named
14340 something starting with __ and the normal name is an alias. */
14341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14342 choke me
14343 #else
14344 $ac_func();
14345 #endif
14346
14347 ; return 0; }
14348 EOF
14349 if { (eval echo configure:14350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14350 rm -rf conftest*
14351 eval "ac_cv_func_$ac_func=yes"
14352 else
14353 echo "configure: failed program was:" >&5
14354 cat conftest.$ac_ext >&5
14355 rm -rf conftest*
14356 eval "ac_cv_func_$ac_func=no"
14357 fi
14358 rm -f conftest*
14359 fi
14360
14361 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14362 echo "$ac_t""yes" 1>&6
14363 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14364 cat >> confdefs.h <<EOF
14365 #define $ac_tr_func 1
14366 EOF
14367
14368 else
14369 echo "$ac_t""no" 1>&6
14370 fi
14371 done
14372
14373
14374
14375 for ac_hdr in sched.h
14376 do
14377 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14378 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14379 echo "configure:14380: checking for $ac_hdr" >&5
14380 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14381 echo $ac_n "(cached) $ac_c" 1>&6
14382 else
14383 cat > conftest.$ac_ext <<EOF
14384 #line 14385 "configure"
14385 #include "confdefs.h"
14386 #include <$ac_hdr>
14387 EOF
14388 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14389 { (eval echo configure:14390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14390 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14391 if test -z "$ac_err"; then
14392 rm -rf conftest*
14393 eval "ac_cv_header_$ac_safe=yes"
14394 else
14395 echo "$ac_err" >&5
14396 echo "configure: failed program was:" >&5
14397 cat conftest.$ac_ext >&5
14398 rm -rf conftest*
14399 eval "ac_cv_header_$ac_safe=no"
14400 fi
14401 rm -f conftest*
14402 fi
14403 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14404 echo "$ac_t""yes" 1>&6
14405 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14406 cat >> confdefs.h <<EOF
14407 #define $ac_tr_hdr 1
14408 EOF
14409
14410 else
14411 echo "$ac_t""no" 1>&6
14412 fi
14413 done
14414
14415
14416 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
14417 echo "configure:14418: checking for sched_yield in -l$THREADS_LINK" >&5
14418 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
14419 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14420 echo $ac_n "(cached) $ac_c" 1>&6
14421 else
14422 ac_save_LIBS="$LIBS"
14423 LIBS="-l$THREADS_LINK $LIBS"
14424 cat > conftest.$ac_ext <<EOF
14425 #line 14426 "configure"
14426 #include "confdefs.h"
14427 /* Override any gcc2 internal prototype to avoid an error. */
14428 /* We use char because int might match the return type of a gcc2
14429 builtin and then its argument prototype would still apply. */
14430 char sched_yield();
14431
14432 int main() {
14433 sched_yield()
14434 ; return 0; }
14435 EOF
14436 if { (eval echo configure:14437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14437 rm -rf conftest*
14438 eval "ac_cv_lib_$ac_lib_var=yes"
14439 else
14440 echo "configure: failed program was:" >&5
14441 cat conftest.$ac_ext >&5
14442 rm -rf conftest*
14443 eval "ac_cv_lib_$ac_lib_var=no"
14444 fi
14445 rm -f conftest*
14446 LIBS="$ac_save_LIBS"
14447
14448 fi
14449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14450 echo "$ac_t""yes" 1>&6
14451 cat >> confdefs.h <<\EOF
14452 #define HAVE_SCHED_YIELD 1
14453 EOF
14454
14455 else
14456 echo "$ac_t""no" 1>&6
14457 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
14458 echo "configure:14459: checking for sched_yield in -lposix4" >&5
14459 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
14460 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14461 echo $ac_n "(cached) $ac_c" 1>&6
14462 else
14463 ac_save_LIBS="$LIBS"
14464 LIBS="-lposix4 $LIBS"
14465 cat > conftest.$ac_ext <<EOF
14466 #line 14467 "configure"
14467 #include "confdefs.h"
14468 /* Override any gcc2 internal prototype to avoid an error. */
14469 /* We use char because int might match the return type of a gcc2
14470 builtin and then its argument prototype would still apply. */
14471 char sched_yield();
14472
14473 int main() {
14474 sched_yield()
14475 ; return 0; }
14476 EOF
14477 if { (eval echo configure:14478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14478 rm -rf conftest*
14479 eval "ac_cv_lib_$ac_lib_var=yes"
14480 else
14481 echo "configure: failed program was:" >&5
14482 cat conftest.$ac_ext >&5
14483 rm -rf conftest*
14484 eval "ac_cv_lib_$ac_lib_var=no"
14485 fi
14486 rm -f conftest*
14487 LIBS="$ac_save_LIBS"
14488
14489 fi
14490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14491 echo "$ac_t""yes" 1>&6
14492 cat >> confdefs.h <<\EOF
14493 #define HAVE_SCHED_YIELD 1
14494 EOF
14495 POSIX4_LINK="-lposix4"
14496 else
14497 echo "$ac_t""no" 1>&6
14498 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
14499
14500 fi
14501
14502
14503 fi
14504
14505
14506 HAVE_PRIOR_FUNCS=0
14507 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
14508 echo "configure:14509: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
14509 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
14510 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14511 echo $ac_n "(cached) $ac_c" 1>&6
14512 else
14513 ac_save_LIBS="$LIBS"
14514 LIBS="-l$THREADS_LINK $LIBS"
14515 cat > conftest.$ac_ext <<EOF
14516 #line 14517 "configure"
14517 #include "confdefs.h"
14518 /* Override any gcc2 internal prototype to avoid an error. */
14519 /* We use char because int might match the return type of a gcc2
14520 builtin and then its argument prototype would still apply. */
14521 char pthread_attr_getschedpolicy();
14522
14523 int main() {
14524 pthread_attr_getschedpolicy()
14525 ; return 0; }
14526 EOF
14527 if { (eval echo configure:14528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14528 rm -rf conftest*
14529 eval "ac_cv_lib_$ac_lib_var=yes"
14530 else
14531 echo "configure: failed program was:" >&5
14532 cat conftest.$ac_ext >&5
14533 rm -rf conftest*
14534 eval "ac_cv_lib_$ac_lib_var=no"
14535 fi
14536 rm -f conftest*
14537 LIBS="$ac_save_LIBS"
14538
14539 fi
14540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14541 echo "$ac_t""yes" 1>&6
14542 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
14543 echo "configure:14544: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
14544 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
14545 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14546 echo $ac_n "(cached) $ac_c" 1>&6
14547 else
14548 ac_save_LIBS="$LIBS"
14549 LIBS="-l$THREADS_LINK $LIBS"
14550 cat > conftest.$ac_ext <<EOF
14551 #line 14552 "configure"
14552 #include "confdefs.h"
14553 /* Override any gcc2 internal prototype to avoid an error. */
14554 /* We use char because int might match the return type of a gcc2
14555 builtin and then its argument prototype would still apply. */
14556 char pthread_attr_setschedparam();
14557
14558 int main() {
14559 pthread_attr_setschedparam()
14560 ; return 0; }
14561 EOF
14562 if { (eval echo configure:14563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14563 rm -rf conftest*
14564 eval "ac_cv_lib_$ac_lib_var=yes"
14565 else
14566 echo "configure: failed program was:" >&5
14567 cat conftest.$ac_ext >&5
14568 rm -rf conftest*
14569 eval "ac_cv_lib_$ac_lib_var=no"
14570 fi
14571 rm -f conftest*
14572 LIBS="$ac_save_LIBS"
14573
14574 fi
14575 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14576 echo "$ac_t""yes" 1>&6
14577 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
14578 echo "configure:14579: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
14579 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14580 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14581 echo $ac_n "(cached) $ac_c" 1>&6
14582 else
14583 ac_save_LIBS="$LIBS"
14584 LIBS="-l$THREADS_LINK $LIBS"
14585 cat > conftest.$ac_ext <<EOF
14586 #line 14587 "configure"
14587 #include "confdefs.h"
14588 /* Override any gcc2 internal prototype to avoid an error. */
14589 /* We use char because int might match the return type of a gcc2
14590 builtin and then its argument prototype would still apply. */
14591 char sched_get_priority_max();
14592
14593 int main() {
14594 sched_get_priority_max()
14595 ; return 0; }
14596 EOF
14597 if { (eval echo configure:14598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14598 rm -rf conftest*
14599 eval "ac_cv_lib_$ac_lib_var=yes"
14600 else
14601 echo "configure: failed program was:" >&5
14602 cat conftest.$ac_ext >&5
14603 rm -rf conftest*
14604 eval "ac_cv_lib_$ac_lib_var=no"
14605 fi
14606 rm -f conftest*
14607 LIBS="$ac_save_LIBS"
14608
14609 fi
14610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14611 echo "$ac_t""yes" 1>&6
14612 HAVE_PRIOR_FUNCS=1
14613 else
14614 echo "$ac_t""no" 1>&6
14615 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
14616 echo "configure:14617: checking for sched_get_priority_max in -lposix4" >&5
14617 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14618 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14619 echo $ac_n "(cached) $ac_c" 1>&6
14620 else
14621 ac_save_LIBS="$LIBS"
14622 LIBS="-lposix4 $LIBS"
14623 cat > conftest.$ac_ext <<EOF
14624 #line 14625 "configure"
14625 #include "confdefs.h"
14626 /* Override any gcc2 internal prototype to avoid an error. */
14627 /* We use char because int might match the return type of a gcc2
14628 builtin and then its argument prototype would still apply. */
14629 char sched_get_priority_max();
14630
14631 int main() {
14632 sched_get_priority_max()
14633 ; return 0; }
14634 EOF
14635 if { (eval echo configure:14636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14636 rm -rf conftest*
14637 eval "ac_cv_lib_$ac_lib_var=yes"
14638 else
14639 echo "configure: failed program was:" >&5
14640 cat conftest.$ac_ext >&5
14641 rm -rf conftest*
14642 eval "ac_cv_lib_$ac_lib_var=no"
14643 fi
14644 rm -f conftest*
14645 LIBS="$ac_save_LIBS"
14646
14647 fi
14648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14649 echo "$ac_t""yes" 1>&6
14650
14651 HAVE_PRIOR_FUNCS=1
14652 POSIX4_LINK="-lposix4"
14653
14654 else
14655 echo "$ac_t""no" 1>&6
14656 fi
14657
14658
14659 fi
14660
14661
14662 else
14663 echo "$ac_t""no" 1>&6
14664 fi
14665
14666
14667 else
14668 echo "$ac_t""no" 1>&6
14669 fi
14670
14671
14672 if test "$HAVE_PRIOR_FUNCS" = 1; then
14673 cat >> confdefs.h <<\EOF
14674 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
14675 EOF
14676
14677 else
14678 echo "configure: warning: Setting thread priority will not work" 1>&2
14679 fi
14680
14681 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
14682 echo "configure:14683: checking for pthread_cancel in -l$THREADS_LINK" >&5
14683 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
14684 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14685 echo $ac_n "(cached) $ac_c" 1>&6
14686 else
14687 ac_save_LIBS="$LIBS"
14688 LIBS="-l$THREADS_LINK $LIBS"
14689 cat > conftest.$ac_ext <<EOF
14690 #line 14691 "configure"
14691 #include "confdefs.h"
14692 /* Override any gcc2 internal prototype to avoid an error. */
14693 /* We use char because int might match the return type of a gcc2
14694 builtin and then its argument prototype would still apply. */
14695 char pthread_cancel();
14696
14697 int main() {
14698 pthread_cancel()
14699 ; return 0; }
14700 EOF
14701 if { (eval echo configure:14702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14702 rm -rf conftest*
14703 eval "ac_cv_lib_$ac_lib_var=yes"
14704 else
14705 echo "configure: failed program was:" >&5
14706 cat conftest.$ac_ext >&5
14707 rm -rf conftest*
14708 eval "ac_cv_lib_$ac_lib_var=no"
14709 fi
14710 rm -f conftest*
14711 LIBS="$ac_save_LIBS"
14712
14713 fi
14714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14715 echo "$ac_t""yes" 1>&6
14716 cat >> confdefs.h <<\EOF
14717 #define HAVE_PTHREAD_CANCEL 1
14718 EOF
14719
14720 else
14721 echo "$ac_t""no" 1>&6
14722 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
14723 fi
14724
14725
14726 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
14727 echo "configure:14728: checking for pthread_cleanup_push/pop" >&5
14728 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
14729 echo $ac_n "(cached) $ac_c" 1>&6
14730 else
14731
14732 cat > conftest.$ac_ext <<EOF
14733 #line 14734 "configure"
14734 #include "confdefs.h"
14735 #include <pthread.h>
14736 int main() {
14737
14738 pthread_cleanup_push(NULL, NULL);
14739 pthread_cleanup_pop(0);
14740
14741 ; return 0; }
14742 EOF
14743 if { (eval echo configure:14744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14744 rm -rf conftest*
14745
14746 wx_cv_func_pthread_cleanup_push=yes
14747
14748 else
14749 echo "configure: failed program was:" >&5
14750 cat conftest.$ac_ext >&5
14751 rm -rf conftest*
14752
14753 wx_cv_func_pthread_cleanup_push=no
14754
14755 fi
14756 rm -f conftest*
14757
14758 fi
14759
14760 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
14761
14762 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
14763 cat >> confdefs.h <<\EOF
14764 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
14765 EOF
14766
14767 fi
14768
14769
14770 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
14771 echo "configure:14772: checking for pthread_mutexattr_t" >&5
14772 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
14773 echo $ac_n "(cached) $ac_c" 1>&6
14774 else
14775
14776 cat > conftest.$ac_ext <<EOF
14777 #line 14778 "configure"
14778 #include "confdefs.h"
14779 #include <pthread.h>
14780 int main() {
14781
14782 pthread_mutexattr_t attr;
14783 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
14784
14785 ; return 0; }
14786 EOF
14787 if { (eval echo configure:14788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14788 rm -rf conftest*
14789
14790 wx_cv_type_pthread_mutexattr_t=yes
14791
14792 else
14793 echo "configure: failed program was:" >&5
14794 cat conftest.$ac_ext >&5
14795 rm -rf conftest*
14796
14797 wx_cv_type_pthread_mutexattr_t=no
14798
14799
14800 fi
14801 rm -f conftest*
14802
14803 fi
14804
14805 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
14806
14807 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
14808 cat >> confdefs.h <<\EOF
14809 #define HAVE_PTHREAD_MUTEXATTR_T 1
14810 EOF
14811
14812 else
14813 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
14814 echo "configure:14815: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
14815 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
14816 echo $ac_n "(cached) $ac_c" 1>&6
14817 else
14818
14819 cat > conftest.$ac_ext <<EOF
14820 #line 14821 "configure"
14821 #include "confdefs.h"
14822 #include <pthread.h>
14823 int main() {
14824
14825 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
14826
14827 ; return 0; }
14828 EOF
14829 if { (eval echo configure:14830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14830 rm -rf conftest*
14831
14832 wx_cv_type_pthread_rec_mutex_init=yes
14833
14834 else
14835 echo "configure: failed program was:" >&5
14836 cat conftest.$ac_ext >&5
14837 rm -rf conftest*
14838
14839 wx_cv_type_pthread_rec_mutex_init=no
14840
14841
14842 fi
14843 rm -f conftest*
14844
14845 fi
14846
14847 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
14848 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
14849 cat >> confdefs.h <<\EOF
14850 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
14851 EOF
14852
14853 else
14854 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
14855 fi
14856 fi
14857
14858 THREADS_LINK="-l$THREADS_LINK"
14859
14860 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
14861 CFLAGS="${CFLAGS} -mt"
14862 CXXFLAGS="${CXXFLAGS} -mt"
14863 LDFLAGS="${LDFLAGS} -mt"
14864 fi
14865 fi
14866
14867 fi
14868
14869 if test "$wxUSE_THREADS" = "yes"; then
14870 cat >> confdefs.h <<\EOF
14871 #define wxUSE_THREADS 1
14872 EOF
14873
14874
14875 if test "$USE_DARWIN" != 1; then
14876 CFLAGS="${CFLAGS} -D_REENTRANT"
14877 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14878 fi
14879
14880 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
14881 else
14882 if test "$ac_cv_func_strtok_r" = "yes"; then
14883 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
14884 echo "configure:14885: checking if -D_REENTRANT is needed" >&5
14885 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
14886 CFLAGS="${CFLAGS} -D_REENTRANT"
14887 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14888 echo "$ac_t""yes" 1>&6
14889 else
14890 echo "$ac_t""no" 1>&6
14891 fi
14892 fi
14893 fi
14894
14895 if test "$WXGTK20" = 1 ; then
14896 cat >> confdefs.h <<EOF
14897 #define __WXGTK20__ $WXGTK20
14898 EOF
14899
14900 WXGTK12=1
14901 fi
14902
14903 if test "$WXGTK12" = 1 ; then
14904 cat >> confdefs.h <<EOF
14905 #define __WXGTK12__ $WXGTK12
14906 EOF
14907
14908 fi
14909
14910 if test "$WXGTK127" = 1 ; then
14911 cat >> confdefs.h <<EOF
14912 #define __WXGTK127__ $WXGTK127
14913 EOF
14914
14915 fi
14916
14917 if test "$WXWINE" = 1 ; then
14918 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
14919 fi
14920
14921 if test "$wxUSE_MAC" = 1 ; then
14922 TOOLKIT_DEF="${TOOLKIT_DEF} -DTARGET_CARBON"
14923 CFLAGS="${CFLAGS} -fpascal-strings"
14924 CPPFLAGS="${CPPFLAGS} -cpp-precomp -fpascal-strings"
14925 # Extract the first word of "Rez", so it can be a program name with args.
14926 set dummy Rez; ac_word=$2
14927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14928 echo "configure:14929: checking for $ac_word" >&5
14929 if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
14930 echo $ac_n "(cached) $ac_c" 1>&6
14931 else
14932 if test -n "$REZ"; then
14933 ac_cv_prog_REZ="$REZ" # Let the user override the test.
14934 else
14935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14936 ac_dummy="$PATH"
14937 for ac_dir in $ac_dummy; do
14938 test -z "$ac_dir" && ac_dir=.
14939 if test -f $ac_dir/$ac_word; then
14940 ac_cv_prog_REZ="Rez"
14941 break
14942 fi
14943 done
14944 IFS="$ac_save_ifs"
14945 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
14946 fi
14947 fi
14948 REZ="$ac_cv_prog_REZ"
14949 if test -n "$REZ"; then
14950 echo "$ac_t""$REZ" 1>&6
14951 else
14952 echo "$ac_t""no" 1>&6
14953 fi
14954
14955 # Extract the first word of "Derez", so it can be a program name with args.
14956 set dummy Derez; ac_word=$2
14957 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14958 echo "configure:14959: checking for $ac_word" >&5
14959 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
14960 echo $ac_n "(cached) $ac_c" 1>&6
14961 else
14962 if test -n "$DEREZ"; then
14963 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
14964 else
14965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14966 ac_dummy="$PATH"
14967 for ac_dir in $ac_dummy; do
14968 test -z "$ac_dir" && ac_dir=.
14969 if test -f $ac_dir/$ac_word; then
14970 ac_cv_prog_DEREZ="Derez"
14971 break
14972 fi
14973 done
14974 IFS="$ac_save_ifs"
14975 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
14976 fi
14977 fi
14978 DEREZ="$ac_cv_prog_DEREZ"
14979 if test -n "$DEREZ"; then
14980 echo "$ac_t""$DEREZ" 1>&6
14981 else
14982 echo "$ac_t""no" 1>&6
14983 fi
14984
14985 RESCOMP=${REZ}
14986 REZFLAGS="-d __UNIX__ -useDF"
14987 DEREZFLAGS="Carbon.r -useDF"
14988 RESFLAGS="Carbon.r -t APPL"
14989 LIBWXMACRES="\$(LIBWX_MACRES)"
14990 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
14991 fi
14992
14993 if test "$wxUSE_CYGWIN" = 1 ; then
14994 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
14995 fi
14996
14997 WXDEBUG=
14998
14999 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
15000 WXDEBUG="-g"
15001 wxUSE_OPTIMISE=no
15002 fi
15003
15004 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
15005 wxUSE_DEBUG_INFO=yes
15006 WXDEBUG="-ggdb"
15007 fi
15008
15009 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
15010 cat >> confdefs.h <<\EOF
15011 #define WXDEBUG 1
15012 EOF
15013
15014 WXDEBUG_DEFINE="-D__WXDEBUG__"
15015 else
15016 if test "$wxUSE_GTK" = 1 ; then
15017 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
15018 fi
15019 fi
15020
15021 if test "$wxUSE_MEM_TRACING" = "yes" ; then
15022 cat >> confdefs.h <<\EOF
15023 #define wxUSE_MEMORY_TRACING 1
15024 EOF
15025
15026 cat >> confdefs.h <<\EOF
15027 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
15028 EOF
15029
15030 cat >> confdefs.h <<\EOF
15031 #define wxUSE_DEBUG_NEW_ALWAYS 1
15032 EOF
15033
15034 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
15035 fi
15036
15037 if test "$wxUSE_DMALLOC" = "yes" ; then
15038 DMALLOC_LINK="-ldmalloc"
15039 fi
15040
15041 PROFILE=
15042 if test "$wxUSE_PROFILE" = "yes" ; then
15043 PROFILE="-pg"
15044 fi
15045
15046 DEP_INFO_FLAGS=
15047 CODE_GEN_FLAGS=
15048 CODE_GEN_FLAGS_CXX=
15049 if test "$GCC" = yes ; then
15050 if test "$wxUSE_NO_RTTI" = "yes" ; then
15051 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
15052 fi
15053 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
15054 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
15055 fi
15056 if test "$wxUSE_PERMISSIVE" = "yes" ; then
15057 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
15058 fi
15059 if test "$wxUSE_NO_DEPS" = "no" ; then
15060 DEP_INFO_FLAGS="-MMD"
15061 fi
15062 fi
15063
15064
15065 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
15066 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
15067 if test "$wxUSE_OPTIMISE" = "no" ; then
15068 OPTIMISE=
15069 else
15070 if test "$GCC" = yes ; then
15071 OPTIMISE="-O2"
15072 case "${host}" in
15073 i586-*-*|i686-*-* )
15074 OPTIMISE="${OPTIMISE} "
15075 ;;
15076 esac
15077 else
15078 OPTIMISE="-O"
15079 fi
15080 fi
15081
15082 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
15083 cat >> confdefs.h <<\EOF
15084 #define WXWIN_COMPATIBILITY_2 1
15085 EOF
15086
15087
15088 WXWIN_COMPATIBILITY_2_2="yes"
15089 fi
15090
15091 if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
15092 cat >> confdefs.h <<\EOF
15093 #define WXWIN_COMPATIBILITY_2_2 1
15094 EOF
15095
15096 fi
15097
15098
15099 ZLIB_INCLUDE=
15100 if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
15101 cat >> confdefs.h <<\EOF
15102 #define wxUSE_ZLIB 1
15103 EOF
15104
15105 if test "$wxUSE_ZLIB" = "yes" ; then
15106 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
15107 else
15108 ZLIB_LINK=
15109 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
15110 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
15111 echo "configure:15112: checking for zlib.h" >&5
15112 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15113 echo $ac_n "(cached) $ac_c" 1>&6
15114 else
15115 cat > conftest.$ac_ext <<EOF
15116 #line 15117 "configure"
15117 #include "confdefs.h"
15118 #include <zlib.h>
15119 EOF
15120 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15121 { (eval echo configure:15122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15122 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15123 if test -z "$ac_err"; then
15124 rm -rf conftest*
15125 eval "ac_cv_header_$ac_safe=yes"
15126 else
15127 echo "$ac_err" >&5
15128 echo "configure: failed program was:" >&5
15129 cat conftest.$ac_ext >&5
15130 rm -rf conftest*
15131 eval "ac_cv_header_$ac_safe=no"
15132 fi
15133 rm -f conftest*
15134 fi
15135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15136 echo "$ac_t""yes" 1>&6
15137 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
15138 echo "configure:15139: checking for deflate in -lz" >&5
15139 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
15140 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15141 echo $ac_n "(cached) $ac_c" 1>&6
15142 else
15143 ac_save_LIBS="$LIBS"
15144 LIBS="-lz $LIBS"
15145 cat > conftest.$ac_ext <<EOF
15146 #line 15147 "configure"
15147 #include "confdefs.h"
15148 /* Override any gcc2 internal prototype to avoid an error. */
15149 /* We use char because int might match the return type of a gcc2
15150 builtin and then its argument prototype would still apply. */
15151 char deflate();
15152
15153 int main() {
15154 deflate()
15155 ; return 0; }
15156 EOF
15157 if { (eval echo configure:15158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15158 rm -rf conftest*
15159 eval "ac_cv_lib_$ac_lib_var=yes"
15160 else
15161 echo "configure: failed program was:" >&5
15162 cat conftest.$ac_ext >&5
15163 rm -rf conftest*
15164 eval "ac_cv_lib_$ac_lib_var=no"
15165 fi
15166 rm -f conftest*
15167 LIBS="$ac_save_LIBS"
15168
15169 fi
15170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15171 echo "$ac_t""yes" 1>&6
15172 ZLIB_LINK="-lz"
15173 else
15174 echo "$ac_t""no" 1>&6
15175 fi
15176
15177 else
15178 echo "$ac_t""no" 1>&6
15179 fi
15180
15181 if test "x$ZLIB_LINK" = "x" ; then
15182 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
15183 fi
15184 fi
15185 fi
15186
15187 PNG_INCLUDE=
15188 if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
15189 cat >> confdefs.h <<\EOF
15190 #define wxUSE_LIBPNG 1
15191 EOF
15192
15193 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
15194 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
15195 wxUSE_LIBPNG=yes
15196 fi
15197
15198 if test "$wxUSE_LIBPNG" = "yes" ; then
15199 PNG_INCLUDE="-I\${top_srcdir}/src/png"
15200 else
15201 PNG_LINK=
15202 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
15203 echo $ac_n "checking for png.h""... $ac_c" 1>&6
15204 echo "configure:15205: checking for png.h" >&5
15205 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15206 echo $ac_n "(cached) $ac_c" 1>&6
15207 else
15208 cat > conftest.$ac_ext <<EOF
15209 #line 15210 "configure"
15210 #include "confdefs.h"
15211 #include <png.h>
15212 EOF
15213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15214 { (eval echo configure:15215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15216 if test -z "$ac_err"; then
15217 rm -rf conftest*
15218 eval "ac_cv_header_$ac_safe=yes"
15219 else
15220 echo "$ac_err" >&5
15221 echo "configure: failed program was:" >&5
15222 cat conftest.$ac_ext >&5
15223 rm -rf conftest*
15224 eval "ac_cv_header_$ac_safe=no"
15225 fi
15226 rm -f conftest*
15227 fi
15228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15229 echo "$ac_t""yes" 1>&6
15230 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
15231 echo "configure:15232: checking for png_check_sig in -lpng" >&5
15232 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
15233 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15234 echo $ac_n "(cached) $ac_c" 1>&6
15235 else
15236 ac_save_LIBS="$LIBS"
15237 LIBS="-lpng -lz -lm $LIBS"
15238 cat > conftest.$ac_ext <<EOF
15239 #line 15240 "configure"
15240 #include "confdefs.h"
15241 /* Override any gcc2 internal prototype to avoid an error. */
15242 /* We use char because int might match the return type of a gcc2
15243 builtin and then its argument prototype would still apply. */
15244 char png_check_sig();
15245
15246 int main() {
15247 png_check_sig()
15248 ; return 0; }
15249 EOF
15250 if { (eval echo configure:15251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15251 rm -rf conftest*
15252 eval "ac_cv_lib_$ac_lib_var=yes"
15253 else
15254 echo "configure: failed program was:" >&5
15255 cat conftest.$ac_ext >&5
15256 rm -rf conftest*
15257 eval "ac_cv_lib_$ac_lib_var=no"
15258 fi
15259 rm -f conftest*
15260 LIBS="$ac_save_LIBS"
15261
15262 fi
15263 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15264 echo "$ac_t""yes" 1>&6
15265 PNG_LINK="-lpng"
15266 else
15267 echo "$ac_t""no" 1>&6
15268 fi
15269
15270
15271 else
15272 echo "$ac_t""no" 1>&6
15273 fi
15274
15275 if test "x$PNG_LINK" = "x" ; then
15276 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
15277 fi
15278 fi
15279
15280 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
15281 fi
15282
15283 JPEG_INCLUDE=
15284 if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
15285 cat >> confdefs.h <<\EOF
15286 #define wxUSE_LIBJPEG 1
15287 EOF
15288
15289 if test "$wxUSE_LIBJPEG" = "yes" ; then
15290 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
15291 else
15292 JPEG_LINK=
15293 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
15294 echo "configure:15295: checking for jpeglib.h" >&5
15295 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
15296 echo $ac_n "(cached) $ac_c" 1>&6
15297 else
15298 cat > conftest.$ac_ext <<EOF
15299 #line 15300 "configure"
15300 #include "confdefs.h"
15301
15302 #undef HAVE_STDLIB_H
15303 #include <stdio.h>
15304 #include <jpeglib.h>
15305
15306 int main() {
15307
15308
15309 ; return 0; }
15310 EOF
15311 if { (eval echo configure:15312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15312 rm -rf conftest*
15313 ac_cv_header_jpeglib_h=yes
15314 else
15315 echo "configure: failed program was:" >&5
15316 cat conftest.$ac_ext >&5
15317 rm -rf conftest*
15318 ac_cv_header_jpeglib_h=no
15319
15320 fi
15321 rm -f conftest*
15322
15323 fi
15324
15325 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
15326
15327 if test "$ac_cv_header_jpeglib_h" = "yes"; then
15328 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
15329 echo "configure:15330: checking for jpeg_read_header in -ljpeg" >&5
15330 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
15331 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15332 echo $ac_n "(cached) $ac_c" 1>&6
15333 else
15334 ac_save_LIBS="$LIBS"
15335 LIBS="-ljpeg $LIBS"
15336 cat > conftest.$ac_ext <<EOF
15337 #line 15338 "configure"
15338 #include "confdefs.h"
15339 /* Override any gcc2 internal prototype to avoid an error. */
15340 /* We use char because int might match the return type of a gcc2
15341 builtin and then its argument prototype would still apply. */
15342 char jpeg_read_header();
15343
15344 int main() {
15345 jpeg_read_header()
15346 ; return 0; }
15347 EOF
15348 if { (eval echo configure:15349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15349 rm -rf conftest*
15350 eval "ac_cv_lib_$ac_lib_var=yes"
15351 else
15352 echo "configure: failed program was:" >&5
15353 cat conftest.$ac_ext >&5
15354 rm -rf conftest*
15355 eval "ac_cv_lib_$ac_lib_var=no"
15356 fi
15357 rm -f conftest*
15358 LIBS="$ac_save_LIBS"
15359
15360 fi
15361 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15362 echo "$ac_t""yes" 1>&6
15363 JPEG_LINK="-ljpeg"
15364 else
15365 echo "$ac_t""no" 1>&6
15366 fi
15367
15368 fi
15369
15370 if test "x$JPEG_LINK" = "x" ; then
15371 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
15372 fi
15373 fi
15374 fi
15375
15376 TIFF_INCLUDE=
15377 if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
15378 cat >> confdefs.h <<\EOF
15379 #define wxUSE_LIBTIFF 1
15380 EOF
15381
15382 if test "$wxUSE_LIBTIFF" = "yes" ; then
15383 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
15384 else
15385 TIFF_LINK=
15386 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
15387 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
15388 echo "configure:15389: checking for tiffio.h" >&5
15389 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15390 echo $ac_n "(cached) $ac_c" 1>&6
15391 else
15392 cat > conftest.$ac_ext <<EOF
15393 #line 15394 "configure"
15394 #include "confdefs.h"
15395 #include <tiffio.h>
15396 EOF
15397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15398 { (eval echo configure:15399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15400 if test -z "$ac_err"; then
15401 rm -rf conftest*
15402 eval "ac_cv_header_$ac_safe=yes"
15403 else
15404 echo "$ac_err" >&5
15405 echo "configure: failed program was:" >&5
15406 cat conftest.$ac_ext >&5
15407 rm -rf conftest*
15408 eval "ac_cv_header_$ac_safe=no"
15409 fi
15410 rm -f conftest*
15411 fi
15412 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15413 echo "$ac_t""yes" 1>&6
15414 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
15415 echo "configure:15416: checking for TIFFError in -ltiff" >&5
15416 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
15417 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15418 echo $ac_n "(cached) $ac_c" 1>&6
15419 else
15420 ac_save_LIBS="$LIBS"
15421 LIBS="-ltiff -lm $LIBS"
15422 cat > conftest.$ac_ext <<EOF
15423 #line 15424 "configure"
15424 #include "confdefs.h"
15425 /* Override any gcc2 internal prototype to avoid an error. */
15426 /* We use char because int might match the return type of a gcc2
15427 builtin and then its argument prototype would still apply. */
15428 char TIFFError();
15429
15430 int main() {
15431 TIFFError()
15432 ; return 0; }
15433 EOF
15434 if { (eval echo configure:15435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15435 rm -rf conftest*
15436 eval "ac_cv_lib_$ac_lib_var=yes"
15437 else
15438 echo "configure: failed program was:" >&5
15439 cat conftest.$ac_ext >&5
15440 rm -rf conftest*
15441 eval "ac_cv_lib_$ac_lib_var=no"
15442 fi
15443 rm -f conftest*
15444 LIBS="$ac_save_LIBS"
15445
15446 fi
15447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15448 echo "$ac_t""yes" 1>&6
15449 TIFF_LINK="-ltiff"
15450 else
15451 echo "$ac_t""no" 1>&6
15452 fi
15453
15454 else
15455 echo "$ac_t""no" 1>&6
15456 fi
15457
15458 if test "x$TIFF_LINK" = "x" ; then
15459 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
15460 fi
15461 fi
15462 fi
15463
15464 FREETYPE_INCLUDE=
15465 if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
15466 cat >> confdefs.h <<\EOF
15467 #define wxUSE_FREETYPE 1
15468 EOF
15469
15470 if test "$wxUSE_FREETYPE" = "yes" ; then
15471 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
15472 else
15473 FREETYPE_LINK=
15474 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
15475 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
15476 echo "configure:15477: checking for freetype.h" >&5
15477 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15478 echo $ac_n "(cached) $ac_c" 1>&6
15479 else
15480 cat > conftest.$ac_ext <<EOF
15481 #line 15482 "configure"
15482 #include "confdefs.h"
15483 #include <freetype.h>
15484 EOF
15485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15486 { (eval echo configure:15487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15487 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15488 if test -z "$ac_err"; then
15489 rm -rf conftest*
15490 eval "ac_cv_header_$ac_safe=yes"
15491 else
15492 echo "$ac_err" >&5
15493 echo "configure: failed program was:" >&5
15494 cat conftest.$ac_ext >&5
15495 rm -rf conftest*
15496 eval "ac_cv_header_$ac_safe=no"
15497 fi
15498 rm -f conftest*
15499 fi
15500 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15501 echo "$ac_t""yes" 1>&6
15502 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
15503 echo "configure:15504: checking for FT_Render_Glyph in -lfreetype" >&5
15504 ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
15505 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15506 echo $ac_n "(cached) $ac_c" 1>&6
15507 else
15508 ac_save_LIBS="$LIBS"
15509 LIBS="-lfreetype -lm $LIBS"
15510 cat > conftest.$ac_ext <<EOF
15511 #line 15512 "configure"
15512 #include "confdefs.h"
15513 /* Override any gcc2 internal prototype to avoid an error. */
15514 /* We use char because int might match the return type of a gcc2
15515 builtin and then its argument prototype would still apply. */
15516 char FT_Render_Glyph();
15517
15518 int main() {
15519 FT_Render_Glyph()
15520 ; return 0; }
15521 EOF
15522 if { (eval echo configure:15523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15523 rm -rf conftest*
15524 eval "ac_cv_lib_$ac_lib_var=yes"
15525 else
15526 echo "configure: failed program was:" >&5
15527 cat conftest.$ac_ext >&5
15528 rm -rf conftest*
15529 eval "ac_cv_lib_$ac_lib_var=no"
15530 fi
15531 rm -f conftest*
15532 LIBS="$ac_save_LIBS"
15533
15534 fi
15535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15536 echo "$ac_t""yes" 1>&6
15537 FREETYPE_LINK="-lfreetype"
15538 else
15539 echo "$ac_t""no" 1>&6
15540 fi
15541
15542
15543 else
15544 echo "$ac_t""no" 1>&6
15545 fi
15546
15547 if test "x$FREETYPE_LINK" = "x" ; then
15548 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
15549 fi
15550 fi
15551 fi
15552
15553 if test "$wxUSE_OPENGL" = "yes"; then
15554 if test "$wxUSE_MAC" = 1; then
15555 cat >> confdefs.h <<\EOF
15556 #define wxUSE_OPENGL 1
15557 EOF
15558
15559 cat >> confdefs.h <<\EOF
15560 #define wxUSE_GLCANVAS 1
15561 EOF
15562
15563 OPENGL_LINK="-framework OpenGL -framework AGL"
15564 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15565 else
15566 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15567 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15568 echo "configure:15569: checking for GL/gl.h" >&5
15569 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15570 echo $ac_n "(cached) $ac_c" 1>&6
15571 else
15572 cat > conftest.$ac_ext <<EOF
15573 #line 15574 "configure"
15574 #include "confdefs.h"
15575 #include <GL/gl.h>
15576 EOF
15577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15578 { (eval echo configure:15579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15579 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15580 if test -z "$ac_err"; then
15581 rm -rf conftest*
15582 eval "ac_cv_header_$ac_safe=yes"
15583 else
15584 echo "$ac_err" >&5
15585 echo "configure: failed program was:" >&5
15586 cat conftest.$ac_ext >&5
15587 rm -rf conftest*
15588 eval "ac_cv_header_$ac_safe=no"
15589 fi
15590 rm -f conftest*
15591 fi
15592 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15593 echo "$ac_t""yes" 1>&6
15594
15595 cat >> confdefs.h <<\EOF
15596 #define wxUSE_OPENGL 1
15597 EOF
15598
15599 cat >> confdefs.h <<\EOF
15600 #define wxUSE_GLCANVAS 1
15601 EOF
15602
15603 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15604 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
15605 echo "configure:15606: checking for glFlush in -lGL" >&5
15606 ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
15607 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15608 echo $ac_n "(cached) $ac_c" 1>&6
15609 else
15610 ac_save_LIBS="$LIBS"
15611 LIBS="-lGL $LIBS"
15612 cat > conftest.$ac_ext <<EOF
15613 #line 15614 "configure"
15614 #include "confdefs.h"
15615 /* Override any gcc2 internal prototype to avoid an error. */
15616 /* We use char because int might match the return type of a gcc2
15617 builtin and then its argument prototype would still apply. */
15618 char glFlush();
15619
15620 int main() {
15621 glFlush()
15622 ; return 0; }
15623 EOF
15624 if { (eval echo configure:15625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15625 rm -rf conftest*
15626 eval "ac_cv_lib_$ac_lib_var=yes"
15627 else
15628 echo "configure: failed program was:" >&5
15629 cat conftest.$ac_ext >&5
15630 rm -rf conftest*
15631 eval "ac_cv_lib_$ac_lib_var=no"
15632 fi
15633 rm -f conftest*
15634 LIBS="$ac_save_LIBS"
15635
15636 fi
15637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15638 echo "$ac_t""yes" 1>&6
15639
15640 OPENGL_LINK="-lGL -lGLU"
15641
15642 else
15643 echo "$ac_t""no" 1>&6
15644
15645 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
15646 echo "configure:15647: checking for glFlush in -lMesaGL" >&5
15647 ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
15648 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15649 echo $ac_n "(cached) $ac_c" 1>&6
15650 else
15651 ac_save_LIBS="$LIBS"
15652 LIBS="-lMesaGL $LIBS"
15653 cat > conftest.$ac_ext <<EOF
15654 #line 15655 "configure"
15655 #include "confdefs.h"
15656 /* Override any gcc2 internal prototype to avoid an error. */
15657 /* We use char because int might match the return type of a gcc2
15658 builtin and then its argument prototype would still apply. */
15659 char glFlush();
15660
15661 int main() {
15662 glFlush()
15663 ; return 0; }
15664 EOF
15665 if { (eval echo configure:15666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15666 rm -rf conftest*
15667 eval "ac_cv_lib_$ac_lib_var=yes"
15668 else
15669 echo "configure: failed program was:" >&5
15670 cat conftest.$ac_ext >&5
15671 rm -rf conftest*
15672 eval "ac_cv_lib_$ac_lib_var=no"
15673 fi
15674 rm -f conftest*
15675 LIBS="$ac_save_LIBS"
15676
15677 fi
15678 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15679 echo "$ac_t""yes" 1>&6
15680
15681 OPENGL_LINK="-lMesaGL -lMesaGLU"
15682
15683 else
15684 echo "$ac_t""no" 1>&6
15685 fi
15686
15687
15688 fi
15689
15690
15691 else
15692 echo "$ac_t""no" 1>&6
15693 wxUSE_OPENGL=0
15694 fi
15695
15696 fi
15697 fi
15698
15699
15700 if test "$wxUSE_GUI" = "yes"; then
15701 cat >> confdefs.h <<\EOF
15702 #define wxUSE_GUI 1
15703 EOF
15704
15705
15706 else
15707 cat >> confdefs.h <<\EOF
15708 #define wxUSE_NOGUI 1
15709 EOF
15710
15711 fi
15712
15713
15714 if test "$wxUSE_UNIX" = "yes"; then
15715 cat >> confdefs.h <<\EOF
15716 #define wxUSE_UNIX 1
15717 EOF
15718
15719 fi
15720
15721
15722 if test "$wxUSE_APPLE_IEEE" = "yes"; then
15723 cat >> confdefs.h <<\EOF
15724 #define wxUSE_APPLE_IEEE 1
15725 EOF
15726
15727 fi
15728
15729 if test "$wxUSE_TIMER" = "yes"; then
15730 cat >> confdefs.h <<\EOF
15731 #define wxUSE_TIMER 1
15732 EOF
15733
15734 fi
15735
15736 if test "$wxUSE_WAVE" = "yes"; then
15737 cat >> confdefs.h <<\EOF
15738 #define wxUSE_WAVE 1
15739 EOF
15740
15741 fi
15742
15743 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15744 cat >> confdefs.h <<\EOF
15745 #define wxUSE_CMDLINE_PARSER 1
15746 EOF
15747
15748 fi
15749
15750 if test "$wxUSE_STOPWATCH" = "yes"; then
15751 cat >> confdefs.h <<\EOF
15752 #define wxUSE_STOPWATCH 1
15753 EOF
15754
15755 fi
15756
15757 if test "$wxUSE_DATETIME" = "yes"; then
15758 cat >> confdefs.h <<\EOF
15759 #define wxUSE_DATETIME 1
15760 EOF
15761
15762 fi
15763
15764 if test "$wxUSE_TIMEDATE" = "yes"; then
15765 cat >> confdefs.h <<\EOF
15766 #define wxUSE_TIMEDATE 1
15767 EOF
15768
15769 fi
15770
15771 if test "$wxUSE_FILE" = "yes"; then
15772 cat >> confdefs.h <<\EOF
15773 #define wxUSE_FILE 1
15774 EOF
15775
15776 fi
15777
15778 if test "$wxUSE_FFILE" = "yes"; then
15779 cat >> confdefs.h <<\EOF
15780 #define wxUSE_FFILE 1
15781 EOF
15782
15783 fi
15784
15785 if test "$wxUSE_FILESYSTEM" = "yes"; then
15786 cat >> confdefs.h <<\EOF
15787 #define wxUSE_FILESYSTEM 1
15788 EOF
15789
15790 fi
15791
15792 if test "$wxUSE_FS_INET" = "yes"; then
15793 cat >> confdefs.h <<\EOF
15794 #define wxUSE_FS_INET 1
15795 EOF
15796
15797 fi
15798
15799 if test "$wxUSE_FS_ZIP" = "yes"; then
15800 cat >> confdefs.h <<\EOF
15801 #define wxUSE_FS_ZIP 1
15802 EOF
15803
15804 fi
15805
15806 if test "$wxUSE_ZIPSTREAM" = "yes"; then
15807 cat >> confdefs.h <<\EOF
15808 #define wxUSE_ZIPSTREAM 1
15809 EOF
15810
15811 fi
15812
15813 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15814 cat >> confdefs.h <<\EOF
15815 #define wxUSE_ON_FATAL_EXCEPTION 1
15816 EOF
15817
15818 fi
15819
15820 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15821 cat >> confdefs.h <<\EOF
15822 #define wxUSE_SNGLINST_CHECKER 1
15823 EOF
15824
15825 fi
15826
15827 if test "$wxUSE_BUSYINFO" = "yes"; then
15828 cat >> confdefs.h <<\EOF
15829 #define wxUSE_BUSYINFO 1
15830 EOF
15831
15832 fi
15833
15834 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
15835 cat >> confdefs.h <<\EOF
15836 #define wxUSE_STD_IOSTREAM 1
15837 EOF
15838
15839 fi
15840
15841 if test "$wxUSE_TEXTFILE" = "yes"; then
15842 if test "$wxUSE_FILE" != "yes"; then
15843 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
15844 else
15845 cat >> confdefs.h <<\EOF
15846 #define wxUSE_TEXTFILE 1
15847 EOF
15848
15849 fi
15850 fi
15851
15852 if test "$wxUSE_CONFIG" = "yes" ; then
15853 if test "$wxUSE_TEXTFILE" != "yes"; then
15854 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
15855 else
15856 cat >> confdefs.h <<\EOF
15857 #define wxUSE_CONFIG 1
15858 EOF
15859
15860 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15861 fi
15862 fi
15863
15864 if test "$wxUSE_INTL" = "yes" ; then
15865 if test "$wxUSE_FILE" != "yes"; then
15866 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
15867 else
15868 cat >> confdefs.h <<\EOF
15869 #define wxUSE_INTL 1
15870 EOF
15871
15872 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
15873 GUIDIST="$GUIDIST INTL_DIST"
15874 fi
15875 fi
15876
15877 if test "$wxUSE_LOG" = "yes"; then
15878 cat >> confdefs.h <<\EOF
15879 #define wxUSE_LOG 1
15880 EOF
15881
15882
15883 if test "$wxUSE_LOGGUI" = "yes"; then
15884 cat >> confdefs.h <<\EOF
15885 #define wxUSE_LOGGUI 1
15886 EOF
15887
15888 fi
15889
15890 if test "$wxUSE_LOGWINDOW" = "yes"; then
15891 cat >> confdefs.h <<\EOF
15892 #define wxUSE_LOGWINDOW 1
15893 EOF
15894
15895 fi
15896 fi
15897
15898 if test "$wxUSE_LONGLONG" = "yes"; then
15899 cat >> confdefs.h <<\EOF
15900 #define wxUSE_LONGLONG 1
15901 EOF
15902
15903 fi
15904
15905 if test "$wxUSE_GEOMETRY" = "yes"; then
15906 cat >> confdefs.h <<\EOF
15907 #define wxUSE_GEOMETRY 1
15908 EOF
15909
15910 fi
15911
15912 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
15913 cat >> confdefs.h <<\EOF
15914 #define wxUSE_DIALUP_MANAGER 1
15915 EOF
15916
15917 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
15918 fi
15919
15920 if test "$wxUSE_STREAMS" = "yes" ; then
15921 cat >> confdefs.h <<\EOF
15922 #define wxUSE_STREAMS 1
15923 EOF
15924
15925 fi
15926
15927
15928 if test "$wxUSE_DATETIME" = "yes"; then
15929 for ac_func in strptime
15930 do
15931 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15932 echo "configure:15933: checking for $ac_func" >&5
15933 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15934 echo $ac_n "(cached) $ac_c" 1>&6
15935 else
15936 cat > conftest.$ac_ext <<EOF
15937 #line 15938 "configure"
15938 #include "confdefs.h"
15939 /* System header to define __stub macros and hopefully few prototypes,
15940 which can conflict with char $ac_func(); below. */
15941 #include <assert.h>
15942 /* Override any gcc2 internal prototype to avoid an error. */
15943 /* We use char because int might match the return type of a gcc2
15944 builtin and then its argument prototype would still apply. */
15945 char $ac_func();
15946
15947 int main() {
15948
15949 /* The GNU C library defines this for functions which it implements
15950 to always fail with ENOSYS. Some functions are actually named
15951 something starting with __ and the normal name is an alias. */
15952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15953 choke me
15954 #else
15955 $ac_func();
15956 #endif
15957
15958 ; return 0; }
15959 EOF
15960 if { (eval echo configure:15961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15961 rm -rf conftest*
15962 eval "ac_cv_func_$ac_func=yes"
15963 else
15964 echo "configure: failed program was:" >&5
15965 cat conftest.$ac_ext >&5
15966 rm -rf conftest*
15967 eval "ac_cv_func_$ac_func=no"
15968 fi
15969 rm -f conftest*
15970 fi
15971
15972 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15973 echo "$ac_t""yes" 1>&6
15974 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15975 cat >> confdefs.h <<EOF
15976 #define $ac_tr_func 1
15977 EOF
15978
15979 else
15980 echo "$ac_t""no" 1>&6
15981 fi
15982 done
15983
15984
15985 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
15986 echo "configure:15987: checking for timezone variable in <time.h>" >&5
15987 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
15988 echo $ac_n "(cached) $ac_c" 1>&6
15989 else
15990
15991 cat > conftest.$ac_ext <<EOF
15992 #line 15993 "configure"
15993 #include "confdefs.h"
15994
15995 #include <time.h>
15996
15997 int main() {
15998
15999 int tz;
16000 tz = timezone;
16001
16002 ; return 0; }
16003 EOF
16004 if { (eval echo configure:16005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16005 rm -rf conftest*
16006
16007 wx_cv_var_timezone=timezone
16008
16009 else
16010 echo "configure: failed program was:" >&5
16011 cat conftest.$ac_ext >&5
16012 rm -rf conftest*
16013
16014 cat > conftest.$ac_ext <<EOF
16015 #line 16016 "configure"
16016 #include "confdefs.h"
16017
16018 #include <time.h>
16019
16020 int main() {
16021
16022 int tz;
16023 tz = _timezone;
16024
16025 ; return 0; }
16026 EOF
16027 if { (eval echo configure:16028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16028 rm -rf conftest*
16029
16030 wx_cv_var_timezone=_timezone
16031
16032 else
16033 echo "configure: failed program was:" >&5
16034 cat conftest.$ac_ext >&5
16035 rm -rf conftest*
16036
16037 cat > conftest.$ac_ext <<EOF
16038 #line 16039 "configure"
16039 #include "confdefs.h"
16040
16041 #include <time.h>
16042
16043 int main() {
16044
16045 int tz;
16046 tz = __timezone;
16047
16048 ; return 0; }
16049 EOF
16050 if { (eval echo configure:16051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16051 rm -rf conftest*
16052
16053 wx_cv_var_timezone=__timezone
16054
16055 else
16056 echo "configure: failed program was:" >&5
16057 cat conftest.$ac_ext >&5
16058 rm -rf conftest*
16059 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16060
16061 fi
16062 rm -f conftest*
16063
16064
16065 fi
16066 rm -f conftest*
16067
16068
16069 fi
16070 rm -f conftest*
16071
16072
16073 fi
16074
16075 echo "$ac_t""$wx_cv_var_timezone" 1>&6
16076
16077 cat >> confdefs.h <<EOF
16078 #define WX_TIMEZONE $wx_cv_var_timezone
16079 EOF
16080
16081
16082 for ac_func in localtime
16083 do
16084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16085 echo "configure:16086: checking for $ac_func" >&5
16086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16087 echo $ac_n "(cached) $ac_c" 1>&6
16088 else
16089 cat > conftest.$ac_ext <<EOF
16090 #line 16091 "configure"
16091 #include "confdefs.h"
16092 /* System header to define __stub macros and hopefully few prototypes,
16093 which can conflict with char $ac_func(); below. */
16094 #include <assert.h>
16095 /* Override any gcc2 internal prototype to avoid an error. */
16096 /* We use char because int might match the return type of a gcc2
16097 builtin and then its argument prototype would still apply. */
16098 char $ac_func();
16099
16100 int main() {
16101
16102 /* The GNU C library defines this for functions which it implements
16103 to always fail with ENOSYS. Some functions are actually named
16104 something starting with __ and the normal name is an alias. */
16105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16106 choke me
16107 #else
16108 $ac_func();
16109 #endif
16110
16111 ; return 0; }
16112 EOF
16113 if { (eval echo configure:16114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16114 rm -rf conftest*
16115 eval "ac_cv_func_$ac_func=yes"
16116 else
16117 echo "configure: failed program was:" >&5
16118 cat conftest.$ac_ext >&5
16119 rm -rf conftest*
16120 eval "ac_cv_func_$ac_func=no"
16121 fi
16122 rm -f conftest*
16123 fi
16124
16125 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16126 echo "$ac_t""yes" 1>&6
16127 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16128 cat >> confdefs.h <<EOF
16129 #define $ac_tr_func 1
16130 EOF
16131
16132 else
16133 echo "$ac_t""no" 1>&6
16134 fi
16135 done
16136
16137
16138 if test "$ac_cv_func_localtime" = "yes"; then
16139 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
16140 echo "configure:16141: checking for tm_gmtoff in struct tm" >&5
16141 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16142 echo $ac_n "(cached) $ac_c" 1>&6
16143 else
16144
16145 cat > conftest.$ac_ext <<EOF
16146 #line 16147 "configure"
16147 #include "confdefs.h"
16148
16149 #include <time.h>
16150
16151 int main() {
16152
16153 struct tm tm;
16154 tm.tm_gmtoff++;
16155
16156 ; return 0; }
16157 EOF
16158 if { (eval echo configure:16159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16159 rm -rf conftest*
16160
16161 wx_cv_struct_tm_has_gmtoff=yes
16162
16163 else
16164 echo "configure: failed program was:" >&5
16165 cat conftest.$ac_ext >&5
16166 rm -rf conftest*
16167 wx_cv_struct_tm_has_gmtoff=no
16168
16169 fi
16170 rm -f conftest*
16171
16172 fi
16173
16174 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
16175 fi
16176
16177 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
16178 cat >> confdefs.h <<\EOF
16179 #define WX_GMTOFF_IN_TM 1
16180 EOF
16181
16182 fi
16183
16184 for ac_func in gettimeofday ftime
16185 do
16186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16187 echo "configure:16188: checking for $ac_func" >&5
16188 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16189 echo $ac_n "(cached) $ac_c" 1>&6
16190 else
16191 cat > conftest.$ac_ext <<EOF
16192 #line 16193 "configure"
16193 #include "confdefs.h"
16194 /* System header to define __stub macros and hopefully few prototypes,
16195 which can conflict with char $ac_func(); below. */
16196 #include <assert.h>
16197 /* Override any gcc2 internal prototype to avoid an error. */
16198 /* We use char because int might match the return type of a gcc2
16199 builtin and then its argument prototype would still apply. */
16200 char $ac_func();
16201
16202 int main() {
16203
16204 /* The GNU C library defines this for functions which it implements
16205 to always fail with ENOSYS. Some functions are actually named
16206 something starting with __ and the normal name is an alias. */
16207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16208 choke me
16209 #else
16210 $ac_func();
16211 #endif
16212
16213 ; return 0; }
16214 EOF
16215 if { (eval echo configure:16216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16216 rm -rf conftest*
16217 eval "ac_cv_func_$ac_func=yes"
16218 else
16219 echo "configure: failed program was:" >&5
16220 cat conftest.$ac_ext >&5
16221 rm -rf conftest*
16222 eval "ac_cv_func_$ac_func=no"
16223 fi
16224 rm -f conftest*
16225 fi
16226
16227 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16228 echo "$ac_t""yes" 1>&6
16229 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16230 cat >> confdefs.h <<EOF
16231 #define $ac_tr_func 1
16232 EOF
16233 break
16234 else
16235 echo "$ac_t""no" 1>&6
16236 fi
16237 done
16238
16239
16240 if test "$ac_cv_func_gettimeofday" = "yes"; then
16241 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
16242 echo "configure:16243: checking whether gettimeofday takes two arguments" >&5
16243 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16244 echo $ac_n "(cached) $ac_c" 1>&6
16245 else
16246
16247
16248 ac_ext=C
16249 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16250 ac_cpp='$CXXCPP $CPPFLAGS'
16251 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16252 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16253 cross_compiling=$ac_cv_prog_cxx_cross
16254
16255
16256 cat > conftest.$ac_ext <<EOF
16257 #line 16258 "configure"
16258 #include "confdefs.h"
16259
16260 #include <sys/time.h>
16261 #include <unistd.h>
16262
16263 int main() {
16264
16265 struct timeval tv;
16266 struct timezone tz;
16267 gettimeofday(&tv, &tz);
16268
16269 ; return 0; }
16270 EOF
16271 if { (eval echo configure:16272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16272 rm -rf conftest*
16273 wx_cv_func_gettimeofday_has_2_args=yes
16274 else
16275 echo "configure: failed program was:" >&5
16276 cat conftest.$ac_ext >&5
16277 rm -rf conftest*
16278 cat > conftest.$ac_ext <<EOF
16279 #line 16280 "configure"
16280 #include "confdefs.h"
16281
16282 #include <sys/time.h>
16283 #include <unistd.h>
16284
16285 int main() {
16286
16287 struct timeval tv;
16288 gettimeofday(&tv);
16289
16290 ; return 0; }
16291 EOF
16292 if { (eval echo configure:16293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16293 rm -rf conftest*
16294 wx_cv_func_gettimeofday_has_2_args=no
16295 else
16296 echo "configure: failed program was:" >&5
16297 cat conftest.$ac_ext >&5
16298 rm -rf conftest*
16299 wx_cv_func_gettimeofday_has_2_args=unknown
16300
16301 fi
16302 rm -f conftest*
16303
16304 fi
16305 rm -f conftest*
16306 ac_ext=c
16307 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16308 ac_cpp='$CPP $CPPFLAGS'
16309 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16310 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16311 cross_compiling=$ac_cv_prog_cc_cross
16312
16313
16314 fi
16315
16316 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
16317
16318 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
16319 cat >> confdefs.h <<\EOF
16320 #define WX_GETTIMEOFDAY_NO_TZ 1
16321 EOF
16322
16323 fi
16324 fi
16325
16326 cat >> confdefs.h <<\EOF
16327 #define wxUSE_TIMEDATE 1
16328 EOF
16329
16330 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16331 fi
16332
16333
16334 if test "$TOOLKIT" != "MSW"; then
16335
16336 if test "$wxUSE_SOCKETS" = "yes"; then
16337 echo $ac_n "checking for socket""... $ac_c" 1>&6
16338 echo "configure:16339: checking for socket" >&5
16339 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16340 echo $ac_n "(cached) $ac_c" 1>&6
16341 else
16342 cat > conftest.$ac_ext <<EOF
16343 #line 16344 "configure"
16344 #include "confdefs.h"
16345 /* System header to define __stub macros and hopefully few prototypes,
16346 which can conflict with char socket(); below. */
16347 #include <assert.h>
16348 /* Override any gcc2 internal prototype to avoid an error. */
16349 /* We use char because int might match the return type of a gcc2
16350 builtin and then its argument prototype would still apply. */
16351 char socket();
16352
16353 int main() {
16354
16355 /* The GNU C library defines this for functions which it implements
16356 to always fail with ENOSYS. Some functions are actually named
16357 something starting with __ and the normal name is an alias. */
16358 #if defined (__stub_socket) || defined (__stub___socket)
16359 choke me
16360 #else
16361 socket();
16362 #endif
16363
16364 ; return 0; }
16365 EOF
16366 if { (eval echo configure:16367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16367 rm -rf conftest*
16368 eval "ac_cv_func_socket=yes"
16369 else
16370 echo "configure: failed program was:" >&5
16371 cat conftest.$ac_ext >&5
16372 rm -rf conftest*
16373 eval "ac_cv_func_socket=no"
16374 fi
16375 rm -f conftest*
16376 fi
16377
16378 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16379 echo "$ac_t""yes" 1>&6
16380 :
16381 else
16382 echo "$ac_t""no" 1>&6
16383 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
16384 echo "configure:16385: checking for socket in -lsocket" >&5
16385 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16386 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16387 echo $ac_n "(cached) $ac_c" 1>&6
16388 else
16389 ac_save_LIBS="$LIBS"
16390 LIBS="-lsocket $LIBS"
16391 cat > conftest.$ac_ext <<EOF
16392 #line 16393 "configure"
16393 #include "confdefs.h"
16394 /* Override any gcc2 internal prototype to avoid an error. */
16395 /* We use char because int might match the return type of a gcc2
16396 builtin and then its argument prototype would still apply. */
16397 char socket();
16398
16399 int main() {
16400 socket()
16401 ; return 0; }
16402 EOF
16403 if { (eval echo configure:16404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16404 rm -rf conftest*
16405 eval "ac_cv_lib_$ac_lib_var=yes"
16406 else
16407 echo "configure: failed program was:" >&5
16408 cat conftest.$ac_ext >&5
16409 rm -rf conftest*
16410 eval "ac_cv_lib_$ac_lib_var=no"
16411 fi
16412 rm -f conftest*
16413 LIBS="$ac_save_LIBS"
16414
16415 fi
16416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16417 echo "$ac_t""yes" 1>&6
16418 INET_LINK="$INET_LINK -lsocket"
16419 else
16420 echo "$ac_t""no" 1>&6
16421
16422 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
16423 wxUSE_SOCKETS=no
16424
16425
16426 fi
16427
16428
16429 fi
16430
16431 fi
16432
16433
16434 if test "$wxUSE_SOCKETS" = "yes" ; then
16435 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
16436 echo "configure:16437: checking what is the type of the third argument of getsockname" >&5
16437 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16438 echo $ac_n "(cached) $ac_c" 1>&6
16439 else
16440
16441
16442 ac_ext=C
16443 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16444 ac_cpp='$CXXCPP $CPPFLAGS'
16445 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16446 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16447 cross_compiling=$ac_cv_prog_cxx_cross
16448
16449
16450 cat > conftest.$ac_ext <<EOF
16451 #line 16452 "configure"
16452 #include "confdefs.h"
16453
16454 #include <sys/types.h>
16455 #include <sys/socket.h>
16456
16457 int main() {
16458
16459 socklen_t len;
16460 getsockname(0, 0, &len);
16461
16462 ; return 0; }
16463 EOF
16464 if { (eval echo configure:16465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16465 rm -rf conftest*
16466 wx_cv_type_getsockname3=socklen_t
16467 else
16468 echo "configure: failed program was:" >&5
16469 cat conftest.$ac_ext >&5
16470 rm -rf conftest*
16471 cat > conftest.$ac_ext <<EOF
16472 #line 16473 "configure"
16473 #include "confdefs.h"
16474
16475 #include <sys/types.h>
16476 #include <sys/socket.h>
16477
16478 int main() {
16479
16480 size_t len;
16481 getsockname(0, 0, &len);
16482
16483 ; return 0; }
16484 EOF
16485 if { (eval echo configure:16486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16486 rm -rf conftest*
16487 wx_cv_type_getsockname3=size_t
16488 else
16489 echo "configure: failed program was:" >&5
16490 cat conftest.$ac_ext >&5
16491 rm -rf conftest*
16492 cat > conftest.$ac_ext <<EOF
16493 #line 16494 "configure"
16494 #include "confdefs.h"
16495
16496 #include <sys/types.h>
16497 #include <sys/socket.h>
16498
16499 int main() {
16500
16501 int len;
16502 getsockname(0, 0, &len);
16503
16504 ; return 0; }
16505 EOF
16506 if { (eval echo configure:16507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16507 rm -rf conftest*
16508 wx_cv_type_getsockname3=int
16509 else
16510 echo "configure: failed program was:" >&5
16511 cat conftest.$ac_ext >&5
16512 rm -rf conftest*
16513 wx_cv_type_getsockname3=unknown
16514
16515 fi
16516 rm -f conftest*
16517
16518 fi
16519 rm -f conftest*
16520
16521 fi
16522 rm -f conftest*
16523
16524 ac_ext=c
16525 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16526 ac_cpp='$CPP $CPPFLAGS'
16527 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16528 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16529 cross_compiling=$ac_cv_prog_cc_cross
16530
16531
16532 fi
16533
16534 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
16535
16536 if test "$wx_cv_type_getsockname3" = "unknown"; then
16537 wxUSE_SOCKETS=no
16538 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
16539 else
16540 cat >> confdefs.h <<EOF
16541 #define SOCKLEN_T $wx_cv_type_getsockname3
16542 EOF
16543
16544 fi
16545 fi
16546
16547 fi
16548
16549 if test "$wxUSE_SOCKETS" = "yes" ; then
16550 cat >> confdefs.h <<\EOF
16551 #define wxUSE_SOCKETS 1
16552 EOF
16553
16554 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
16555 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
16556 fi
16557
16558
16559 if test "$wxUSE_GUI" = "yes"; then
16560
16561 if test "$TOOLKIT" != "MSW"; then
16562
16563 if test "$wxUSE_JOYSTICK" = "yes"; then
16564 for ac_hdr in linux/joystick.h
16565 do
16566 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16567 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16568 echo "configure:16569: checking for $ac_hdr" >&5
16569 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16570 echo $ac_n "(cached) $ac_c" 1>&6
16571 else
16572 cat > conftest.$ac_ext <<EOF
16573 #line 16574 "configure"
16574 #include "confdefs.h"
16575 #include <$ac_hdr>
16576 EOF
16577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16578 { (eval echo configure:16579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16579 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16580 if test -z "$ac_err"; then
16581 rm -rf conftest*
16582 eval "ac_cv_header_$ac_safe=yes"
16583 else
16584 echo "$ac_err" >&5
16585 echo "configure: failed program was:" >&5
16586 cat conftest.$ac_ext >&5
16587 rm -rf conftest*
16588 eval "ac_cv_header_$ac_safe=no"
16589 fi
16590 rm -f conftest*
16591 fi
16592 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16593 echo "$ac_t""yes" 1>&6
16594 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16595 cat >> confdefs.h <<EOF
16596 #define $ac_tr_hdr 1
16597 EOF
16598
16599 else
16600 echo "$ac_t""no" 1>&6
16601 fi
16602 done
16603
16604 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
16605 wxUSE_JOYSTICK=no
16606 echo "configure: warning: Joystick not supported by this system" 1>&2
16607 fi
16608 fi
16609
16610 fi
16611
16612 if test "$wxUSE_JOYSTICK" = "yes"; then
16613 cat >> confdefs.h <<\EOF
16614 #define wxUSE_JOYSTICK 1
16615 EOF
16616
16617 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
16618 fi
16619
16620 fi
16621
16622
16623 if test "$TOOLKIT" != "MSW"; then
16624
16625 HAVE_DL_FUNCS=0
16626 HAVE_SHL_FUNCS=0
16627 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
16628 if test "$USE_DARWIN" = 1; then
16629 HAVE_DL_FUNCS=1
16630 else
16631 for ac_func in dlopen
16632 do
16633 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16634 echo "configure:16635: checking for $ac_func" >&5
16635 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16636 echo $ac_n "(cached) $ac_c" 1>&6
16637 else
16638 cat > conftest.$ac_ext <<EOF
16639 #line 16640 "configure"
16640 #include "confdefs.h"
16641 /* System header to define __stub macros and hopefully few prototypes,
16642 which can conflict with char $ac_func(); below. */
16643 #include <assert.h>
16644 /* Override any gcc2 internal prototype to avoid an error. */
16645 /* We use char because int might match the return type of a gcc2
16646 builtin and then its argument prototype would still apply. */
16647 char $ac_func();
16648
16649 int main() {
16650
16651 /* The GNU C library defines this for functions which it implements
16652 to always fail with ENOSYS. Some functions are actually named
16653 something starting with __ and the normal name is an alias. */
16654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16655 choke me
16656 #else
16657 $ac_func();
16658 #endif
16659
16660 ; return 0; }
16661 EOF
16662 if { (eval echo configure:16663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16663 rm -rf conftest*
16664 eval "ac_cv_func_$ac_func=yes"
16665 else
16666 echo "configure: failed program was:" >&5
16667 cat conftest.$ac_ext >&5
16668 rm -rf conftest*
16669 eval "ac_cv_func_$ac_func=no"
16670 fi
16671 rm -f conftest*
16672 fi
16673
16674 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16675 echo "$ac_t""yes" 1>&6
16676 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16677 cat >> confdefs.h <<EOF
16678 #define $ac_tr_func 1
16679 EOF
16680
16681 cat >> confdefs.h <<\EOF
16682 #define HAVE_DLOPEN 1
16683 EOF
16684
16685 HAVE_DL_FUNCS=1
16686
16687 else
16688 echo "$ac_t""no" 1>&6
16689 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
16690 echo "configure:16691: checking for dlopen in -ldl" >&5
16691 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16692 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16693 echo $ac_n "(cached) $ac_c" 1>&6
16694 else
16695 ac_save_LIBS="$LIBS"
16696 LIBS="-ldl $LIBS"
16697 cat > conftest.$ac_ext <<EOF
16698 #line 16699 "configure"
16699 #include "confdefs.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 dlopen();
16704
16705 int main() {
16706 dlopen()
16707 ; return 0; }
16708 EOF
16709 if { (eval echo configure:16710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16710 rm -rf conftest*
16711 eval "ac_cv_lib_$ac_lib_var=yes"
16712 else
16713 echo "configure: failed program was:" >&5
16714 cat conftest.$ac_ext >&5
16715 rm -rf conftest*
16716 eval "ac_cv_lib_$ac_lib_var=no"
16717 fi
16718 rm -f conftest*
16719 LIBS="$ac_save_LIBS"
16720
16721 fi
16722 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16723 echo "$ac_t""yes" 1>&6
16724
16725 cat >> confdefs.h <<\EOF
16726 #define HAVE_DLOPEN 1
16727 EOF
16728
16729 HAVE_DL_FUNCS=1
16730 LIBS="$LIBS -ldl"
16731
16732 else
16733 echo "$ac_t""no" 1>&6
16734
16735 for ac_func in shl_load
16736 do
16737 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16738 echo "configure:16739: checking for $ac_func" >&5
16739 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16740 echo $ac_n "(cached) $ac_c" 1>&6
16741 else
16742 cat > conftest.$ac_ext <<EOF
16743 #line 16744 "configure"
16744 #include "confdefs.h"
16745 /* System header to define __stub macros and hopefully few prototypes,
16746 which can conflict with char $ac_func(); below. */
16747 #include <assert.h>
16748 /* Override any gcc2 internal prototype to avoid an error. */
16749 /* We use char because int might match the return type of a gcc2
16750 builtin and then its argument prototype would still apply. */
16751 char $ac_func();
16752
16753 int main() {
16754
16755 /* The GNU C library defines this for functions which it implements
16756 to always fail with ENOSYS. Some functions are actually named
16757 something starting with __ and the normal name is an alias. */
16758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16759 choke me
16760 #else
16761 $ac_func();
16762 #endif
16763
16764 ; return 0; }
16765 EOF
16766 if { (eval echo configure:16767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16767 rm -rf conftest*
16768 eval "ac_cv_func_$ac_func=yes"
16769 else
16770 echo "configure: failed program was:" >&5
16771 cat conftest.$ac_ext >&5
16772 rm -rf conftest*
16773 eval "ac_cv_func_$ac_func=no"
16774 fi
16775 rm -f conftest*
16776 fi
16777
16778 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16779 echo "$ac_t""yes" 1>&6
16780 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16781 cat >> confdefs.h <<EOF
16782 #define $ac_tr_func 1
16783 EOF
16784
16785 cat >> confdefs.h <<\EOF
16786 #define HAVE_SHL_LOAD 1
16787 EOF
16788
16789 HAVE_SHL_FUNCS=1
16790
16791 else
16792 echo "$ac_t""no" 1>&6
16793 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
16794 echo "configure:16795: checking for dld in -lshl_load" >&5
16795 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16796 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16797 echo $ac_n "(cached) $ac_c" 1>&6
16798 else
16799 ac_save_LIBS="$LIBS"
16800 LIBS="-lshl_load $LIBS"
16801 cat > conftest.$ac_ext <<EOF
16802 #line 16803 "configure"
16803 #include "confdefs.h"
16804 /* Override any gcc2 internal prototype to avoid an error. */
16805 /* We use char because int might match the return type of a gcc2
16806 builtin and then its argument prototype would still apply. */
16807 char dld();
16808
16809 int main() {
16810 dld()
16811 ; return 0; }
16812 EOF
16813 if { (eval echo configure:16814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16814 rm -rf conftest*
16815 eval "ac_cv_lib_$ac_lib_var=yes"
16816 else
16817 echo "configure: failed program was:" >&5
16818 cat conftest.$ac_ext >&5
16819 rm -rf conftest*
16820 eval "ac_cv_lib_$ac_lib_var=no"
16821 fi
16822 rm -f conftest*
16823 LIBS="$ac_save_LIBS"
16824
16825 fi
16826 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16827 echo "$ac_t""yes" 1>&6
16828
16829 HAVE_SHL_FUNCS=1
16830 LIBS="$LIBS -ldld"
16831
16832 else
16833 echo "$ac_t""no" 1>&6
16834 fi
16835
16836
16837 fi
16838 done
16839
16840
16841 fi
16842
16843
16844 fi
16845 done
16846
16847
16848 if test "$HAVE_DL_FUNCS" = 1; then
16849 for ac_func in dlerror
16850 do
16851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16852 echo "configure:16853: checking for $ac_func" >&5
16853 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16854 echo $ac_n "(cached) $ac_c" 1>&6
16855 else
16856 cat > conftest.$ac_ext <<EOF
16857 #line 16858 "configure"
16858 #include "confdefs.h"
16859 /* System header to define __stub macros and hopefully few prototypes,
16860 which can conflict with char $ac_func(); below. */
16861 #include <assert.h>
16862 /* Override any gcc2 internal prototype to avoid an error. */
16863 /* We use char because int might match the return type of a gcc2
16864 builtin and then its argument prototype would still apply. */
16865 char $ac_func();
16866
16867 int main() {
16868
16869 /* The GNU C library defines this for functions which it implements
16870 to always fail with ENOSYS. Some functions are actually named
16871 something starting with __ and the normal name is an alias. */
16872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16873 choke me
16874 #else
16875 $ac_func();
16876 #endif
16877
16878 ; return 0; }
16879 EOF
16880 if { (eval echo configure:16881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16881 rm -rf conftest*
16882 eval "ac_cv_func_$ac_func=yes"
16883 else
16884 echo "configure: failed program was:" >&5
16885 cat conftest.$ac_ext >&5
16886 rm -rf conftest*
16887 eval "ac_cv_func_$ac_func=no"
16888 fi
16889 rm -f conftest*
16890 fi
16891
16892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16893 echo "$ac_t""yes" 1>&6
16894 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16895 cat >> confdefs.h <<EOF
16896 #define $ac_tr_func 1
16897 EOF
16898 cat >> confdefs.h <<\EOF
16899 #define HAVE_DLERROR 1
16900 EOF
16901
16902 else
16903 echo "$ac_t""no" 1>&6
16904 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
16905 echo "configure:16906: checking for dlerror in -ldl" >&5
16906 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
16907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16908 echo $ac_n "(cached) $ac_c" 1>&6
16909 else
16910 ac_save_LIBS="$LIBS"
16911 LIBS="-ldl $LIBS"
16912 cat > conftest.$ac_ext <<EOF
16913 #line 16914 "configure"
16914 #include "confdefs.h"
16915 /* Override any gcc2 internal prototype to avoid an error. */
16916 /* We use char because int might match the return type of a gcc2
16917 builtin and then its argument prototype would still apply. */
16918 char dlerror();
16919
16920 int main() {
16921 dlerror()
16922 ; return 0; }
16923 EOF
16924 if { (eval echo configure:16925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16925 rm -rf conftest*
16926 eval "ac_cv_lib_$ac_lib_var=yes"
16927 else
16928 echo "configure: failed program was:" >&5
16929 cat conftest.$ac_ext >&5
16930 rm -rf conftest*
16931 eval "ac_cv_lib_$ac_lib_var=no"
16932 fi
16933 rm -f conftest*
16934 LIBS="$ac_save_LIBS"
16935
16936 fi
16937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16938 echo "$ac_t""yes" 1>&6
16939 cat >> confdefs.h <<\EOF
16940 #define HAVE_DLERROR 1
16941 EOF
16942
16943 else
16944 echo "$ac_t""no" 1>&6
16945 fi
16946
16947 fi
16948 done
16949
16950 fi
16951 fi
16952
16953 if test "$HAVE_DL_FUNCS" = 0; then
16954 if test "$HAVE_SHL_FUNCS" = 0; then
16955 if test "$USE_UNIX" = 1; then
16956 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
16957 wxUSE_DYNLIB_CLASS=no
16958 else
16959 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
16960 fi
16961 fi
16962 fi
16963 fi
16964
16965 fi
16966
16967 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
16968 cat >> confdefs.h <<\EOF
16969 #define wxUSE_DYNLIB_CLASS 1
16970 EOF
16971
16972 else
16973 wxUSE_ODBC=no
16974 wxUSE_SERIAL=no
16975 fi
16976
16977
16978 if test "$wxUSE_FONTMAP" = "yes" ; then
16979 cat >> confdefs.h <<\EOF
16980 #define wxUSE_FONTMAP 1
16981 EOF
16982
16983 fi
16984
16985 if test "$wxUSE_UNICODE" = "yes" ; then
16986 cat >> confdefs.h <<\EOF
16987 #define wxUSE_UNICODE 1
16988 EOF
16989
16990 fi
16991
16992 if test "$wxUSE_WCSRTOMBS" = "yes" ; then
16993 cat >> confdefs.h <<\EOF
16994 #define wxUSE_WCSRTOMBS 1
16995 EOF
16996
16997 fi
16998
16999 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
17000 cat >> confdefs.h <<\EOF
17001 #define wxUSE_EXPERIMENTAL_PRINTF 1
17002 EOF
17003
17004 fi
17005
17006
17007 if test "$wxUSE_SERIAL" = "yes" ; then
17008 cat >> confdefs.h <<\EOF
17009 #define wxUSE_SERIAL 1
17010 EOF
17011
17012 fi
17013
17014
17015 IODBC_C_SRC=""
17016 if test "$wxUSE_ODBC" = "yes" ; then
17017 cat >> confdefs.h <<\EOF
17018 #define wxUSE_ODBC 1
17019 EOF
17020
17021 WXODBCFLAG="-D_IODBC_"
17022 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
17023 fi
17024
17025
17026 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
17027 cat >> confdefs.h <<\EOF
17028 #define wxUSE_POSTSCRIPT 1
17029 EOF
17030
17031 fi
17032
17033 cat >> confdefs.h <<\EOF
17034 #define wxUSE_AFM_FOR_POSTSCRIPT 1
17035 EOF
17036
17037
17038 cat >> confdefs.h <<\EOF
17039 #define wxUSE_NORMALIZED_PS_FONTS 1
17040 EOF
17041
17042
17043
17044 if test "$wxUSE_CONSTRAINTS" = "yes"; then
17045 cat >> confdefs.h <<\EOF
17046 #define wxUSE_CONSTRAINTS 1
17047 EOF
17048
17049 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
17050 fi
17051
17052 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17053 cat >> confdefs.h <<\EOF
17054 #define wxUSE_MDI_ARCHITECTURE 1
17055 EOF
17056
17057 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
17058 fi
17059
17060 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
17061 cat >> confdefs.h <<\EOF
17062 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
17063 EOF
17064
17065 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
17066 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17067 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
17068 fi
17069 fi
17070
17071 if test "$wxUSE_HELP" = "yes"; then
17072 cat >> confdefs.h <<\EOF
17073 #define wxUSE_HELP 1
17074 EOF
17075
17076 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
17077
17078 if test "$USE_WIN32" = 1; then
17079 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
17080 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
17081 echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
17082 echo "configure:17083: checking for htmlhelp.h" >&5
17083 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17084 echo $ac_n "(cached) $ac_c" 1>&6
17085 else
17086 cat > conftest.$ac_ext <<EOF
17087 #line 17088 "configure"
17088 #include "confdefs.h"
17089 #include <htmlhelp.h>
17090 EOF
17091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17092 { (eval echo configure:17093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17093 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17094 if test -z "$ac_err"; then
17095 rm -rf conftest*
17096 eval "ac_cv_header_$ac_safe=yes"
17097 else
17098 echo "$ac_err" >&5
17099 echo "configure: failed program was:" >&5
17100 cat conftest.$ac_ext >&5
17101 rm -rf conftest*
17102 eval "ac_cv_header_$ac_safe=no"
17103 fi
17104 rm -f conftest*
17105 fi
17106 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17107 echo "$ac_t""yes" 1>&6
17108
17109 cat >> confdefs.h <<\EOF
17110 #define wxUSE_MS_HTML_HELP 1
17111 EOF
17112
17113
17114 else
17115 echo "$ac_t""no" 1>&6
17116
17117 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h so it won't be compiled without it" 1>&2
17118 wxUSE_MS_HTML_HELP=no
17119
17120 fi
17121
17122 fi
17123 fi
17124
17125 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17126 if test "$wxUSE_HTML" = "yes"; then
17127 cat >> confdefs.h <<\EOF
17128 #define wxUSE_WXHTML_HELP 1
17129 EOF
17130
17131 else
17132 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17133 wxUSE_WXHTML_HELP=no
17134 fi
17135 fi
17136 fi
17137
17138 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17139 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17140 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
17141 else
17142 cat >> confdefs.h <<\EOF
17143 #define wxUSE_PRINTING_ARCHITECTURE 1
17144 EOF
17145
17146 fi
17147 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17148 fi
17149
17150 if test "$wxUSE_PROLOGIO" = "yes" ; then
17151 cat >> confdefs.h <<\EOF
17152 #define wxUSE_PROLOGIO 1
17153 EOF
17154
17155 fi
17156
17157 if test "$wxUSE_RESOURCES" = "yes" ; then
17158 cat >> confdefs.h <<\EOF
17159 #define wxUSE_RESOURCES 1
17160 EOF
17161
17162 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
17163 fi
17164
17165 if test "$wxUSE_X_RESOURCES" = "yes"; then
17166 cat >> confdefs.h <<\EOF
17167 #define wxUSE_X_RESOURCES 1
17168 EOF
17169
17170 fi
17171
17172
17173 if test "$wxUSE_IPC" = "yes"; then
17174 if test "$wxUSE_SOCKETS" != "yes"; then
17175 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
17176 fi
17177
17178 cat >> confdefs.h <<\EOF
17179 #define wxUSE_IPC 1
17180 EOF
17181
17182 fi
17183
17184 if test "$wxUSE_CLIPBOARD" = "yes"; then
17185 cat >> confdefs.h <<\EOF
17186 #define wxUSE_CLIPBOARD 1
17187 EOF
17188
17189 cat >> confdefs.h <<\EOF
17190 #define wxUSE_DATAOBJ 1
17191 EOF
17192
17193 fi
17194
17195 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17196 if test "$wxUSE_GTK" = 1; then
17197 if test "$WXGTK12" != 1; then
17198 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
17199 wxUSE_DRAG_AND_DROP=no
17200 fi
17201 fi
17202
17203 if test "$wxUSE_MOTIF" = 1; then
17204 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
17205 wxUSE_DRAG_AND_DROP=no
17206 fi
17207
17208 if test "$wxUSE_MAC" = 1; then
17209 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
17210 wxUSE_DRAG_AND_DROP=no
17211 fi
17212
17213 if test "$USE_WIN32" = 1; then
17214
17215 for ac_hdr in ole2.h
17216 do
17217 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17218 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17219 echo "configure:17220: checking for $ac_hdr" >&5
17220 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17221 echo $ac_n "(cached) $ac_c" 1>&6
17222 else
17223 cat > conftest.$ac_ext <<EOF
17224 #line 17225 "configure"
17225 #include "confdefs.h"
17226 #include <$ac_hdr>
17227 EOF
17228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17229 { (eval echo configure:17230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17231 if test -z "$ac_err"; then
17232 rm -rf conftest*
17233 eval "ac_cv_header_$ac_safe=yes"
17234 else
17235 echo "$ac_err" >&5
17236 echo "configure: failed program was:" >&5
17237 cat conftest.$ac_ext >&5
17238 rm -rf conftest*
17239 eval "ac_cv_header_$ac_safe=no"
17240 fi
17241 rm -f conftest*
17242 fi
17243 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17244 echo "$ac_t""yes" 1>&6
17245 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17246 cat >> confdefs.h <<EOF
17247 #define $ac_tr_hdr 1
17248 EOF
17249
17250 else
17251 echo "$ac_t""no" 1>&6
17252 fi
17253 done
17254
17255
17256 if test "$ac_cv_header_ole2_h" = "yes" ; then
17257 if test "$GCC" = yes ; then
17258 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
17259 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
17260 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
17261 LIBS="$LIBS -lrpcrt4 -loleaut32 -lole32 -luuid"
17262 cat >> confdefs.h <<\EOF
17263 #define wxUSE_OLE 1
17264 EOF
17265
17266
17267 if test "$wxUSE_METAFILE" = "yes"; then
17268 cat >> confdefs.h <<\EOF
17269 #define wxUSE_METAFILE 1
17270 EOF
17271
17272 cat >> confdefs.h <<\EOF
17273 #define wxUSE_ENH_METAFILE 1
17274 EOF
17275
17276 fi
17277 fi
17278 else
17279 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
17280 wxUSE_DRAG_AND_DROP=no
17281 fi
17282 fi
17283
17284 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
17285 cat >> confdefs.h <<\EOF
17286 #define wxUSE_DRAG_AND_DROP 1
17287 EOF
17288
17289 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17290 fi
17291
17292 fi
17293
17294 if test "$wxUSE_SPLINES" = "yes" ; then
17295 cat >> confdefs.h <<\EOF
17296 #define wxUSE_SPLINES 1
17297 EOF
17298
17299 fi
17300
17301
17302 USES_CONTROLS=0
17303 if test "$wxUSE_CONTROLS" = "yes"; then
17304 USES_CONTROLS=1
17305 fi
17306
17307 if test "$wxUSE_ACCEL" = "yes"; then
17308 cat >> confdefs.h <<\EOF
17309 #define wxUSE_ACCEL 1
17310 EOF
17311
17312 USES_CONTROLS=1
17313 fi
17314
17315 if test "$wxUSE_BUTTON" = "yes"; then
17316 cat >> confdefs.h <<\EOF
17317 #define wxUSE_BUTTON 1
17318 EOF
17319
17320 USES_CONTROLS=1
17321 fi
17322
17323 if test "$wxUSE_BMPBUTTON" = "yes"; then
17324 cat >> confdefs.h <<\EOF
17325 #define wxUSE_BMPBUTTON 1
17326 EOF
17327
17328 USES_CONTROLS=1
17329 fi
17330
17331 if test "$wxUSE_CALCTRL" = "yes"; then
17332 cat >> confdefs.h <<\EOF
17333 #define wxUSE_CALENDARCTRL 1
17334 EOF
17335
17336 USES_CONTROLS=1
17337 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
17338 fi
17339
17340 if test "$wxUSE_CARET" = "yes"; then
17341 cat >> confdefs.h <<\EOF
17342 #define wxUSE_CARET 1
17343 EOF
17344
17345 USES_CONTROLS=1
17346 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17347 fi
17348
17349 if test "$wxUSE_COMBOBOX" = "yes"; then
17350 cat >> confdefs.h <<\EOF
17351 #define wxUSE_COMBOBOX 1
17352 EOF
17353
17354 USES_CONTROLS=1
17355 fi
17356
17357 if test "$wxUSE_CHOICE" = "yes"; then
17358 cat >> confdefs.h <<\EOF
17359 #define wxUSE_CHOICE 1
17360 EOF
17361
17362 USES_CONTROLS=1
17363 fi
17364
17365 if test "$wxUSE_CHECKBOX" = "yes"; then
17366 cat >> confdefs.h <<\EOF
17367 #define wxUSE_CHECKBOX 1
17368 EOF
17369
17370 USES_CONTROLS=1
17371 fi
17372
17373 if test "$wxUSE_CHECKLST" = "yes"; then
17374 cat >> confdefs.h <<\EOF
17375 #define wxUSE_CHECKLISTBOX 1
17376 EOF
17377
17378 USES_CONTROLS=1
17379 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17380 fi
17381
17382 if test "$wxUSE_GAUGE" = "yes"; then
17383 cat >> confdefs.h <<\EOF
17384 #define wxUSE_GAUGE 1
17385 EOF
17386
17387 USES_CONTROLS=1
17388 fi
17389
17390 if test "$wxUSE_NEW_GRID" = "yes"; then
17391 wxUSE_GRID="yes"
17392 cat >> confdefs.h <<\EOF
17393 #define wxUSE_NEW_GRID 1
17394 EOF
17395
17396 USES_CONTROLS=1
17397 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
17398 fi
17399
17400 if test "$wxUSE_GRID" = "yes"; then
17401 cat >> confdefs.h <<\EOF
17402 #define wxUSE_GRID 1
17403 EOF
17404
17405 USES_CONTROLS=1
17406 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
17407 fi
17408
17409 if test "$wxUSE_IMAGLIST" = "yes"; then
17410 cat >> confdefs.h <<\EOF
17411 #define wxUSE_IMAGLIST 1
17412 EOF
17413
17414 fi
17415
17416 if test "$wxUSE_LISTBOX" = "yes"; then
17417 cat >> confdefs.h <<\EOF
17418 #define wxUSE_LISTBOX 1
17419 EOF
17420
17421 USES_CONTROLS=1
17422 fi
17423
17424 if test "$wxUSE_LISTCTRL" = "yes"; then
17425 if test "$wxUSE_IMAGLIST" = "yes"; then
17426 cat >> confdefs.h <<\EOF
17427 #define wxUSE_LISTCTRL 1
17428 EOF
17429
17430 USES_CONTROLS=1
17431 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17432 else
17433 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
17434 fi
17435 fi
17436
17437 if test "$wxUSE_NOTEBOOK" = "yes"; then
17438 cat >> confdefs.h <<\EOF
17439 #define wxUSE_NOTEBOOK 1
17440 EOF
17441
17442 USES_CONTROLS=1
17443 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17444 fi
17445
17446 if test "$wxUSE_PROPSHEET" = "yes"; then
17447 cat >> confdefs.h <<\EOF
17448 #define wxUSE_PROPSHEET 1
17449 EOF
17450
17451 USES_CONTROLS=1
17452 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
17453 fi
17454
17455 if test "$wxUSE_RADIOBOX" = "yes"; then
17456 cat >> confdefs.h <<\EOF
17457 #define wxUSE_RADIOBOX 1
17458 EOF
17459
17460 USES_CONTROLS=1
17461 fi
17462
17463 if test "$wxUSE_RADIOBTN" = "yes"; then
17464 cat >> confdefs.h <<\EOF
17465 #define wxUSE_RADIOBTN 1
17466 EOF
17467
17468 USES_CONTROLS=1
17469 fi
17470
17471 if test "$wxUSE_SASH" = "yes"; then
17472 cat >> confdefs.h <<\EOF
17473 #define wxUSE_SASH 1
17474 EOF
17475
17476 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17477 fi
17478
17479 if test "$wxUSE_SCROLLBAR" = "yes"; then
17480 cat >> confdefs.h <<\EOF
17481 #define wxUSE_SCROLLBAR 1
17482 EOF
17483
17484 USES_CONTROLS=1
17485 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
17486 fi
17487
17488 if test "$wxUSE_SLIDER" = "yes"; then
17489 cat >> confdefs.h <<\EOF
17490 #define wxUSE_SLIDER 1
17491 EOF
17492
17493 USES_CONTROLS=1
17494 fi
17495
17496 if test "$wxUSE_SPINBTN" = "yes"; then
17497 cat >> confdefs.h <<\EOF
17498 #define wxUSE_SPINBTN 1
17499 EOF
17500
17501 USES_CONTROLS=1
17502 fi
17503
17504 if test "$wxUSE_SPINCTRL" = "yes"; then
17505 cat >> confdefs.h <<\EOF
17506 #define wxUSE_SPINCTRL 1
17507 EOF
17508
17509 USES_CONTROLS=1
17510 fi
17511
17512 if test "$wxUSE_SPLITTER" = "yes"; then
17513 cat >> confdefs.h <<\EOF
17514 #define wxUSE_SPLITTER 1
17515 EOF
17516
17517 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17518 fi
17519
17520 if test "$wxUSE_STATBMP" = "yes"; then
17521 cat >> confdefs.h <<\EOF
17522 #define wxUSE_STATBMP 1
17523 EOF
17524
17525 USES_CONTROLS=1
17526 fi
17527
17528 if test "$wxUSE_STATBOX" = "yes"; then
17529 cat >> confdefs.h <<\EOF
17530 #define wxUSE_STATBOX 1
17531 EOF
17532
17533 USES_CONTROLS=1
17534 fi
17535
17536 if test "$wxUSE_STATTEXT" = "yes"; then
17537 cat >> confdefs.h <<\EOF
17538 #define wxUSE_STATTEXT 1
17539 EOF
17540
17541 USES_CONTROLS=1
17542 fi
17543
17544 if test "$wxUSE_STATLINE" = "yes"; then
17545 if test "$wxUSE_WINE" = 1 ; then
17546 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
17547 else
17548 cat >> confdefs.h <<\EOF
17549 #define wxUSE_STATLINE 1
17550 EOF
17551
17552 USES_CONTROLS=1
17553 fi
17554 fi
17555
17556 if test "$wxUSE_STATUSBAR" = "yes"; then
17557 cat >> confdefs.h <<\EOF
17558 #define wxUSE_STATUSBAR 1
17559 EOF
17560
17561 USES_CONTROLS=1
17562
17563 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
17564 fi
17565
17566 if test "$wxUSE_TABDIALOG" = "yes"; then
17567 cat >> confdefs.h <<\EOF
17568 #define wxUSE_TAB_DIALOG 1
17569 EOF
17570
17571 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17572 fi
17573
17574 if test "$wxUSE_TEXTCTRL" = "yes"; then
17575 cat >> confdefs.h <<\EOF
17576 #define wxUSE_TEXTCTRL 1
17577 EOF
17578
17579 USES_CONTROLS=1
17580 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17581 fi
17582
17583 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17584 if test "$wxUSE_MAC" = 1; then
17585 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
17586 wxUSE_TOGGLEBTN=no
17587 fi
17588
17589 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17590 cat >> confdefs.h <<\EOF
17591 #define wxUSE_TOGGLEBTN 1
17592 EOF
17593
17594 USES_CONTROLS=1
17595 fi
17596 fi
17597
17598 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
17599 cat >> confdefs.h <<\EOF
17600 #define wxUSE_TOOLBAR_SIMPLE 1
17601 EOF
17602
17603 wxUSE_TOOLBAR="yes"
17604 USES_CONTROLS=1
17605 fi
17606
17607 if test "$wxUSE_TOOLBAR" = "yes"; then
17608 cat >> confdefs.h <<\EOF
17609 #define wxUSE_TOOLBAR 1
17610 EOF
17611
17612 USES_CONTROLS=1
17613
17614 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17615 wxUSE_TOOLBAR_NATIVE="yes"
17616 fi
17617
17618 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17619 cat >> confdefs.h <<\EOF
17620 #define wxUSE_TOOLBAR_NATIVE 1
17621 EOF
17622
17623 USES_CONTROLS=1
17624 fi
17625
17626 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
17627 fi
17628
17629 if test "$wxUSE_TOOLTIPS" = "yes"; then
17630 if test "$wxUSE_MOTIF" = 1; then
17631 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
17632 else
17633 if test "$wxUSE_WINE" = 1; then
17634 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
17635 else
17636 cat >> confdefs.h <<\EOF
17637 #define wxUSE_TOOLTIPS 1
17638 EOF
17639
17640 fi
17641 fi
17642 fi
17643
17644 if test "$wxUSE_TREECTRL" = "yes"; then
17645 if test "$wxUSE_IMAGLIST" = "yes"; then
17646 cat >> confdefs.h <<\EOF
17647 #define wxUSE_TREECTRL 1
17648 EOF
17649
17650 USES_CONTROLS=1
17651 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17652 else
17653 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
17654 fi
17655 fi
17656
17657 if test "$wxUSE_POPUPWIN" = "yes"; then
17658 if test "$wxUSE_MAC" = 1; then
17659 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17660 else
17661 cat >> confdefs.h <<\EOF
17662 #define wxUSE_POPUPWIN 1
17663 EOF
17664
17665 USES_CONTROLS=1
17666 fi
17667 fi
17668
17669 if test "$USES_CONTROLS" = 1; then
17670 cat >> confdefs.h <<\EOF
17671 #define wxUSE_CONTROLS 1
17672 EOF
17673
17674 fi
17675
17676
17677 if test "$wxUSE_TREELAYOUT" = "yes"; then
17678 cat >> confdefs.h <<\EOF
17679 #define wxUSE_TREELAYOUT 1
17680 EOF
17681
17682 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
17683 fi
17684
17685 if test "$wxUSE_DRAGIMAGE" = "yes"; then
17686 cat >> confdefs.h <<\EOF
17687 #define wxUSE_DRAGIMAGE 1
17688 EOF
17689
17690 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
17691 fi
17692
17693 if test "$wxUSE_MENUS" = "yes"; then
17694 cat >> confdefs.h <<\EOF
17695 #define wxUSE_MENUS 1
17696 EOF
17697
17698 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
17699 fi
17700
17701 if test "$wxUSE_METAFILE" = "yes"; then
17702 cat >> confdefs.h <<\EOF
17703 #define wxUSE_METAFILE 1
17704 EOF
17705
17706 fi
17707
17708 if test "$wxUSE_MIMETYPE" = "yes"; then
17709 cat >> confdefs.h <<\EOF
17710 #define wxUSE_MIMETYPE 1
17711 EOF
17712
17713 fi
17714
17715 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
17716 cat >> confdefs.h <<\EOF
17717 #define wxUSE_SYSTEM_OPTIONS 1
17718 EOF
17719
17720 fi
17721
17722 if test "$wxUSE_MINIFRAME" = "yes"; then
17723 cat >> confdefs.h <<\EOF
17724 #define wxUSE_MINIFRAME 1
17725 EOF
17726
17727 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
17728 fi
17729
17730 if test "$wxUSE_HTML" = "yes"; then
17731 cat >> confdefs.h <<\EOF
17732 #define wxUSE_HTML 1
17733 EOF
17734
17735 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
17736 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
17737 fi
17738
17739 if test "$wxUSE_VALIDATORS" = "yes"; then
17740 cat >> confdefs.h <<\EOF
17741 #define wxUSE_VALIDATORS 1
17742 EOF
17743
17744 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
17745 fi
17746
17747 if test "$wxUSE_IMAGE" = "yes" ; then
17748 cat >> confdefs.h <<\EOF
17749 #define wxUSE_IMAGE 1
17750 EOF
17751
17752 fi
17753
17754 if test "$wxUSE_GIF" = "yes" ; then
17755 cat >> confdefs.h <<\EOF
17756 #define wxUSE_GIF 1
17757 EOF
17758
17759 fi
17760
17761 if test "$wxUSE_PCX" = "yes" ; then
17762 cat >> confdefs.h <<\EOF
17763 #define wxUSE_PCX 1
17764 EOF
17765
17766 fi
17767
17768 if test "$wxUSE_PNM" = "yes" ; then
17769 cat >> confdefs.h <<\EOF
17770 #define wxUSE_PNM 1
17771 EOF
17772
17773 fi
17774
17775 if test "$wxUSE_XPM" = "yes" ; then
17776 cat >> confdefs.h <<\EOF
17777 #define wxUSE_XPM 1
17778 EOF
17779
17780 fi
17781
17782
17783 if test "$wxUSE_CHOICEDLG" = "yes"; then
17784 cat >> confdefs.h <<\EOF
17785 #define wxUSE_CHOICEDLG 1
17786 EOF
17787
17788 fi
17789
17790 if test "$wxUSE_COLOURDLG" = "yes"; then
17791 cat >> confdefs.h <<\EOF
17792 #define wxUSE_COLOURDLG 1
17793 EOF
17794
17795 fi
17796
17797 if test "$wxUSE_FILEDLG" = "yes"; then
17798 cat >> confdefs.h <<\EOF
17799 #define wxUSE_FILEDLG 1
17800 EOF
17801
17802 fi
17803
17804 if test "$wxUSE_FINDREPLDLG" = "yes"; then
17805 cat >> confdefs.h <<\EOF
17806 #define wxUSE_FINDREPLDLG 1
17807 EOF
17808
17809 fi
17810
17811 if test "$wxUSE_FONTDLG" = "yes"; then
17812 cat >> confdefs.h <<\EOF
17813 #define wxUSE_FONTDLG 1
17814 EOF
17815
17816 fi
17817
17818 if test "$wxUSE_DIRDLG" = "yes"; then
17819 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17820 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
17821 else
17822 if test "$wxUSE_TREECTRL" != "yes"; then
17823 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
17824 else
17825 cat >> confdefs.h <<\EOF
17826 #define wxUSE_DIRDLG 1
17827 EOF
17828
17829 fi
17830 fi
17831 fi
17832
17833 if test "$wxUSE_MSGDLG" = "yes"; then
17834 cat >> confdefs.h <<\EOF
17835 #define wxUSE_MSGDLG 1
17836 EOF
17837
17838 fi
17839
17840 if test "$wxUSE_NUMBERDLG" = "yes"; then
17841 cat >> confdefs.h <<\EOF
17842 #define wxUSE_NUMBERDLG 1
17843 EOF
17844
17845 fi
17846
17847 if test "$wxUSE_PROGRESSDLG" = "yes"; then
17848 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17849 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
17850 else
17851 cat >> confdefs.h <<\EOF
17852 #define wxUSE_PROGRESSDLG 1
17853 EOF
17854
17855 fi
17856 fi
17857
17858 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
17859 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17860 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
17861 else
17862 cat >> confdefs.h <<\EOF
17863 #define wxUSE_STARTUP_TIPS 1
17864 EOF
17865
17866 fi
17867 fi
17868
17869 if test "$wxUSE_TEXTDLG" = "yes"; then
17870 cat >> confdefs.h <<\EOF
17871 #define wxUSE_TEXTDLG 1
17872 EOF
17873
17874 fi
17875
17876 if test "$wxUSE_WIZARDDLG" = "yes"; then
17877 cat >> confdefs.h <<\EOF
17878 #define wxUSE_WIZARDDLG 1
17879 EOF
17880
17881 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
17882 fi
17883
17884
17885 if test "$cross_compiling" = "yes"; then
17886 OSINFO="\"$host\""
17887 else
17888 OSINFO=`uname -s -r -m`
17889 OSINFO="\"$OSINFO\""
17890 fi
17891
17892 cat >> confdefs.h <<EOF
17893 #define WXWIN_OS_DESCRIPTION $OSINFO
17894 EOF
17895
17896
17897
17898 GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
17899 OPENGL_LIBS="$OPENGL_LINK"
17900
17901 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
17902 if test "$wxUSE_MAC" = 1 ; then
17903 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
17904 fi
17905 if test "$wxUSE_GUI" = "yes"; then
17906 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
17907 fi
17908
17909 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
17910
17911 INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include \
17912 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
17913 $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
17914
17915 if test "$wxUSE_GTK" = 1; then
17916 WXCONFIG_INCLUDE=""
17917 else
17918 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
17919 fi
17920
17921 if test "$GXX" = yes ; then
17922 CXXWARNINGS="-Wall"
17923 fi
17924 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
17925
17926 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
17927 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
17928
17929 LDFLAGS="$LDFLAGS $PROFILE"
17930
17931 if test "$wxUSE_GUI" = "yes"; then
17932
17933 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
17934 drawing dynamic erase event exec font image \
17935 minimal richedit rotate widgets"
17936
17937 if test "$wxUSE_UNIVERSAL" = "yes" ; then
17938 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
17939 fi
17940
17941 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
17942 else
17943 SAMPLES_SUBDIRS="console"
17944 fi
17945
17946 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
18043 echo "configure:18044: checking whether ${MAKE-make} sets \${MAKE}" >&5
18044 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
18045 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
18046 echo $ac_n "(cached) $ac_c" 1>&6
18047 else
18048 cat > conftestmake <<\EOF
18049 all:
18050 @echo 'ac_maketemp="${MAKE}"'
18051 EOF
18052 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18053 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
18054 if test -n "$ac_maketemp"; then
18055 eval ac_cv_prog_make_${ac_make}_set=yes
18056 else
18057 eval ac_cv_prog_make_${ac_make}_set=no
18058 fi
18059 rm -f conftestmake
18060 fi
18061 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
18062 echo "$ac_t""yes" 1>&6
18063 SET_MAKE=
18064 else
18065 echo "$ac_t""no" 1>&6
18066 SET_MAKE="MAKE=${MAKE-make}"
18067 fi
18068
18069
18070 if test -d include; then
18071 if test -d include/wx; then
18072 if test -d include/wx/${SETUPH_DIR}; then
18073 if test -f include/wx/${SETUPH_DIR}/setup.h; then
18074 mv -f include/wx/${SETUPH_DIR}/setup.h setup.h
18075 fi
18076 fi
18077 fi
18078 fi
18079
18080
18081
18082 if test "$wxUSE_GUI" = "yes"; then
18083 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
18084 wx_cv_path_ifs=$PATH_IFS
18085 wx_cv_program_ext=$PROGRAM_EXT
18086 wx_cv_target_library=$WX_TARGET_LIBRARY
18087 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
18088 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
18089 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
18090 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
18091 subdirs="demos samples utils contrib"
18092
18093 fi
18094
18095 trap '' 1 2 15
18096 cat > confcache <<\EOF
18097 # This file is a shell script that caches the results of configure
18098 # tests run on this system so they can be shared between configure
18099 # scripts and configure runs. It is not useful on other systems.
18100 # If it contains results you don't want to keep, you may remove or edit it.
18101 #
18102 # By default, configure uses ./config.cache as the cache file,
18103 # creating it if it does not exist already. You can give configure
18104 # the --cache-file=FILE option to use a different cache file; that is
18105 # what configure does when it calls configure scripts in
18106 # subdirectories, so they share the cache.
18107 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18108 # config.status only pays attention to the cache file if you give it the
18109 # --recheck option to rerun configure.
18110 #
18111 EOF
18112 # The following way of writing the cache mishandles newlines in values,
18113 # but we know of no workaround that is simple, portable, and efficient.
18114 # So, don't put newlines in cache variables' values.
18115 # Ultrix sh set writes to stderr and can't be redirected directly,
18116 # and sets the high bit in the cache file unless we assign to the vars.
18117 (set) 2>&1 |
18118 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18119 *ac_space=\ *)
18120 # `set' does not quote correctly, so add quotes (double-quote substitution
18121 # turns \\\\ into \\, and sed turns \\ into \).
18122 sed -n \
18123 -e "s/'/'\\\\''/g" \
18124 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18125 ;;
18126 *)
18127 # `set' quotes correctly as required by POSIX, so do not add quotes.
18128 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18129 ;;
18130 esac >> confcache
18131 if cmp -s $cache_file confcache; then
18132 :
18133 else
18134 if test -w $cache_file; then
18135 echo "updating cache $cache_file"
18136 cat confcache > $cache_file
18137 else
18138 echo "not updating unwritable cache $cache_file"
18139 fi
18140 fi
18141 rm -f confcache
18142
18143 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18144
18145 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18146 # Let make expand exec_prefix.
18147 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18148
18149 # Any assignment to VPATH causes Sun make to only execute
18150 # the first set of double-colon rules, so remove it if not needed.
18151 # If there is a colon in the path, we need to keep it.
18152 if test "x$srcdir" = x.; then
18153 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
18154 fi
18155
18156 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18157
18158 DEFS=-DHAVE_CONFIG_H
18159
18160 # Without the "./", some shells look in PATH for config.status.
18161 : ${CONFIG_STATUS=./config.status}
18162
18163 echo creating $CONFIG_STATUS
18164 rm -f $CONFIG_STATUS
18165 cat > $CONFIG_STATUS <<EOF
18166 #! /bin/sh
18167 # Generated automatically by configure.
18168 # Run this file to recreate the current configuration.
18169 # This directory was configured as follows,
18170 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18171 #
18172 # $0 $ac_configure_args
18173 #
18174 # Compiler output produced by configure, useful for debugging
18175 # configure, is in ./config.log if it exists.
18176
18177 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18178 for ac_option
18179 do
18180 case "\$ac_option" in
18181 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18182 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18183 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18184 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18185 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18186 exit 0 ;;
18187 -help | --help | --hel | --he | --h)
18188 echo "\$ac_cs_usage"; exit 0 ;;
18189 *) echo "\$ac_cs_usage"; exit 1 ;;
18190 esac
18191 done
18192
18193 ac_given_srcdir=$srcdir
18194 ac_given_INSTALL="$INSTALL"
18195
18196 trap 'rm -fr `echo "
18197 wx-config
18198 src/make.env
18199 src/makeprog.env
18200 src/makelib.env
18201 Makefile
18202 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
18203 EOF
18204 cat >> $CONFIG_STATUS <<EOF
18205
18206 # Protect against being on the right side of a sed subst in config.status.
18207 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18208 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18209 $ac_vpsub
18210 $extrasub
18211 s%@SHELL@%$SHELL%g
18212 s%@CFLAGS@%$CFLAGS%g
18213 s%@CPPFLAGS@%$CPPFLAGS%g
18214 s%@CXXFLAGS@%$CXXFLAGS%g
18215 s%@FFLAGS@%$FFLAGS%g
18216 s%@DEFS@%$DEFS%g
18217 s%@LDFLAGS@%$LDFLAGS%g
18218 s%@LIBS@%$LIBS%g
18219 s%@exec_prefix@%$exec_prefix%g
18220 s%@prefix@%$prefix%g
18221 s%@program_transform_name@%$program_transform_name%g
18222 s%@bindir@%$bindir%g
18223 s%@sbindir@%$sbindir%g
18224 s%@libexecdir@%$libexecdir%g
18225 s%@datadir@%$datadir%g
18226 s%@sysconfdir@%$sysconfdir%g
18227 s%@sharedstatedir@%$sharedstatedir%g
18228 s%@localstatedir@%$localstatedir%g
18229 s%@libdir@%$libdir%g
18230 s%@includedir@%$includedir%g
18231 s%@oldincludedir@%$oldincludedir%g
18232 s%@infodir@%$infodir%g
18233 s%@mandir@%$mandir%g
18234 s%@host@%$host%g
18235 s%@host_alias@%$host_alias%g
18236 s%@host_cpu@%$host_cpu%g
18237 s%@host_vendor@%$host_vendor%g
18238 s%@host_os@%$host_os%g
18239 s%@target@%$target%g
18240 s%@target_alias@%$target_alias%g
18241 s%@target_cpu@%$target_cpu%g
18242 s%@target_vendor@%$target_vendor%g
18243 s%@target_os@%$target_os%g
18244 s%@build@%$build%g
18245 s%@build_alias@%$build_alias%g
18246 s%@build_cpu@%$build_cpu%g
18247 s%@build_vendor@%$build_vendor%g
18248 s%@build_os@%$build_os%g
18249 s%@CC@%$CC%g
18250 s%@CPP@%$CPP%g
18251 s%@CXX@%$CXX%g
18252 s%@CXXCPP@%$CXXCPP%g
18253 s%@RANLIB@%$RANLIB%g
18254 s%@AR@%$AR%g
18255 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18256 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18257 s%@INSTALL_DATA@%$INSTALL_DATA%g
18258 s%@STRIP@%$STRIP%g
18259 s%@YACC@%$YACC%g
18260 s%@LEX@%$LEX%g
18261 s%@LEXLIB@%$LEXLIB%g
18262 s%@LN_S@%$LN_S%g
18263 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
18264 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18265 s%@GTK_LIBS@%$GTK_LIBS%g
18266 s%@GTK_CONFIG@%$GTK_CONFIG%g
18267 s%@X_CFLAGS@%$X_CFLAGS%g
18268 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18269 s%@X_LIBS@%$X_LIBS%g
18270 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
18271 s%@REZ@%$REZ%g
18272 s%@DEREZ@%$DEREZ%g
18273 s%@LEX_STEM@%$LEX_STEM%g
18274 s%@PATH_IFS@%$PATH_IFS%g
18275 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18276 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18277 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
18278 s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
18279 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18280 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
18281 s%@WX_LIBRARY@%$WX_LIBRARY%g
18282 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18283 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18284 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
18285 s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
18286 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
18287 s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
18288 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18289 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
18290 s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
18291 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18292 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18293 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
18294 s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
18295 s%@WX_ALL@%$WX_ALL%g
18296 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18297 s%@SHARED_LD@%$SHARED_LD%g
18298 s%@PIC_FLAG@%$PIC_FLAG%g
18299 s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
18300 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18301 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
18302 s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
18303 s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
18304 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18305 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18306 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18307 s%@USE_GUI@%$USE_GUI%g
18308 s%@AFMINSTALL@%$AFMINSTALL%g
18309 s%@SETUPH_DIR@%$SETUPH_DIR%g
18310 s%@TOOLKIT@%$TOOLKIT%g
18311 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
18312 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
18313 s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
18314 s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
18315 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
18316 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18317 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
18318 s%@ALL_DEPFILES@%$ALL_DEPFILES%g
18319 s%@GUIDIST@%$GUIDIST%g
18320 s%@PORT_FILES@%$PORT_FILES%g
18321 s%@DISTDIR@%$DISTDIR%g
18322 s%@RPM_SPEC@%$RPM_SPEC%g
18323 s%@RPM_FILES@%$RPM_FILES%g
18324 s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
18325 s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
18326 s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
18327 s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
18328 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
18329 s%@USER_SUBDIRS@%$USER_SUBDIRS%g
18330 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
18331 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18332 s%@EXTRADEFS@%$EXTRADEFS%g
18333 s%@LD_LIBS@%$LD_LIBS%g
18334 s%@WXMSW_DLL_DEFINES@%$WXMSW_DLL_DEFINES%g
18335 s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
18336 s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
18337 s%@RESPROGRAM@%$RESPROGRAM%g
18338 s%@RESCOMP@%$RESCOMP%g
18339 s%@RESFLAGS@%$RESFLAGS%g
18340 s%@REZFLAGS@%$REZFLAGS%g
18341 s%@DEREZFLAGS@%$DEREZFLAGS%g
18342 s%@LIBWXMACRES@%$LIBWXMACRES%g
18343 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18344 s%@DLLTOOL@%$DLLTOOL%g
18345 s%@AS@%$AS%g
18346 s%@NM@%$NM%g
18347 s%@LD@%$LD%g
18348 s%@MAKEINFO@%$MAKEINFO%g
18349 s%@SET_MAKE@%$SET_MAKE%g
18350 s%@subdirs@%$subdirs%g
18351
18352 CEOF
18353 EOF
18354
18355 cat >> $CONFIG_STATUS <<\EOF
18356
18357 # Split the substitutions into bite-sized pieces for seds with
18358 # small command number limits, like on Digital OSF/1 and HP-UX.
18359 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18360 ac_file=1 # Number of current file.
18361 ac_beg=1 # First line for current file.
18362 ac_end=$ac_max_sed_cmds # Line after last line for current file.
18363 ac_more_lines=:
18364 ac_sed_cmds=""
18365 while $ac_more_lines; do
18366 if test $ac_beg -gt 1; then
18367 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18368 else
18369 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18370 fi
18371 if test ! -s conftest.s$ac_file; then
18372 ac_more_lines=false
18373 rm -f conftest.s$ac_file
18374 else
18375 if test -z "$ac_sed_cmds"; then
18376 ac_sed_cmds="sed -f conftest.s$ac_file"
18377 else
18378 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18379 fi
18380 ac_file=`expr $ac_file + 1`
18381 ac_beg=$ac_end
18382 ac_end=`expr $ac_end + $ac_max_sed_cmds`
18383 fi
18384 done
18385 if test -z "$ac_sed_cmds"; then
18386 ac_sed_cmds=cat
18387 fi
18388 EOF
18389
18390 cat >> $CONFIG_STATUS <<EOF
18391
18392 CONFIG_FILES=\${CONFIG_FILES-"wx-config
18393 src/make.env
18394 src/makeprog.env
18395 src/makelib.env
18396 Makefile
18397 "}
18398 EOF
18399 cat >> $CONFIG_STATUS <<\EOF
18400 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18401 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18402 case "$ac_file" in
18403 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18404 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18405 *) ac_file_in="${ac_file}.in" ;;
18406 esac
18407
18408 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18409
18410 # Remove last slash and all that follows it. Not all systems have dirname.
18411 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18412 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18413 # The file is in a subdirectory.
18414 test ! -d "$ac_dir" && mkdir "$ac_dir"
18415 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18416 # A "../" for each directory in $ac_dir_suffix.
18417 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18418 else
18419 ac_dir_suffix= ac_dots=
18420 fi
18421
18422 case "$ac_given_srcdir" in
18423 .) srcdir=.
18424 if test -z "$ac_dots"; then top_srcdir=.
18425 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18426 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18427 *) # Relative path.
18428 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18429 top_srcdir="$ac_dots$ac_given_srcdir" ;;
18430 esac
18431
18432 case "$ac_given_INSTALL" in
18433 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18434 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18435 esac
18436
18437 echo creating "$ac_file"
18438 rm -f "$ac_file"
18439 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18440 case "$ac_file" in
18441 *Makefile*) ac_comsub="1i\\
18442 # $configure_input" ;;
18443 *) ac_comsub= ;;
18444 esac
18445
18446 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18447 sed -e "$ac_comsub
18448 s%@configure_input@%$configure_input%g
18449 s%@srcdir@%$srcdir%g
18450 s%@top_srcdir@%$top_srcdir%g
18451 s%@INSTALL@%$INSTALL%g
18452 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18453 fi; done
18454 rm -f conftest.s*
18455
18456 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18457 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18458 #
18459 # ac_d sets the value in "#define NAME VALUE" lines.
18460 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18461 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18462 ac_dC='\3'
18463 ac_dD='%g'
18464 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18465 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18466 ac_uB='\([ ]\)%\1#\2define\3'
18467 ac_uC=' '
18468 ac_uD='\4%g'
18469 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18470 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18471 ac_eB='$%\1#\2define\3'
18472 ac_eC=' '
18473 ac_eD='%g'
18474
18475 if test "${CONFIG_HEADERS+set}" != set; then
18476 EOF
18477 cat >> $CONFIG_STATUS <<EOF
18478 CONFIG_HEADERS="setup.h:setup.h.in"
18479 EOF
18480 cat >> $CONFIG_STATUS <<\EOF
18481 fi
18482 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18483 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18484 case "$ac_file" in
18485 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18486 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18487 *) ac_file_in="${ac_file}.in" ;;
18488 esac
18489
18490 echo creating $ac_file
18491
18492 rm -f conftest.frag conftest.in conftest.out
18493 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18494 cat $ac_file_inputs > conftest.in
18495
18496 EOF
18497
18498 # Transform confdefs.h into a sed script conftest.vals that substitutes
18499 # the proper values into config.h.in to produce config.h. And first:
18500 # Protect against being on the right side of a sed subst in config.status.
18501 # Protect against being in an unquoted here document in config.status.
18502 rm -f conftest.vals
18503 cat > conftest.hdr <<\EOF
18504 s/[\\&%]/\\&/g
18505 s%[\\$`]%\\&%g
18506 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18507 s%ac_d%ac_u%gp
18508 s%ac_u%ac_e%gp
18509 EOF
18510 sed -n -f conftest.hdr confdefs.h > conftest.vals
18511 rm -f conftest.hdr
18512
18513 # This sed command replaces #undef with comments. This is necessary, for
18514 # example, in the case of _POSIX_SOURCE, which is predefined and required
18515 # on some systems where configure will not decide to define it.
18516 cat >> conftest.vals <<\EOF
18517 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18518 EOF
18519
18520 # Break up conftest.vals because some shells have a limit on
18521 # the size of here documents, and old seds have small limits too.
18522
18523 rm -f conftest.tail
18524 while :
18525 do
18526 ac_lines=`grep -c . conftest.vals`
18527 # grep -c gives empty output for an empty file on some AIX systems.
18528 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18529 # Write a limited-size here document to conftest.frag.
18530 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18531 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18532 echo 'CEOF
18533 sed -f conftest.frag conftest.in > conftest.out
18534 rm -f conftest.in
18535 mv conftest.out conftest.in
18536 ' >> $CONFIG_STATUS
18537 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18538 rm -f conftest.vals
18539 mv conftest.tail conftest.vals
18540 done
18541 rm -f conftest.vals
18542
18543 cat >> $CONFIG_STATUS <<\EOF
18544 rm -f conftest.frag conftest.h
18545 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18546 cat conftest.in >> conftest.h
18547 rm -f conftest.in
18548 if cmp -s $ac_file conftest.h 2>/dev/null; then
18549 echo "$ac_file is unchanged"
18550 rm -f conftest.h
18551 else
18552 # Remove last slash and all that follows it. Not all systems have dirname.
18553 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18554 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18555 # The file is in a subdirectory.
18556 test ! -d "$ac_dir" && mkdir "$ac_dir"
18557 fi
18558 rm -f $ac_file
18559 mv conftest.h $ac_file
18560 fi
18561 fi; done
18562
18563 EOF
18564 cat >> $CONFIG_STATUS <<EOF
18565
18566 SETUPH_DIR="${SETUPH_DIR}"
18567 TOOLKIT_NAME="${TOOLKIT_NAME}"
18568 LN_S="${LN_S}"
18569
18570
18571 EOF
18572 cat >> $CONFIG_STATUS <<\EOF
18573
18574 if test ! -f wx${TOOLKIT_NAME}-config; then
18575 chmod +x wx-config
18576 mv wx-config wx${TOOLKIT_NAME}-config
18577 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
18578 fi
18579
18580
18581 if test ! -d lib; then
18582 mkdir lib
18583 fi
18584 if test ! -d lib/wx; then
18585 mkdir lib/wx
18586 fi
18587 if test ! -d lib/wx/include; then
18588 mkdir lib/wx/include
18589 fi
18590 if test ! -d lib/wx/include/wx; then
18591 mkdir lib/wx/include/wx
18592 fi
18593 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
18594 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
18595 fi
18596 if test -f setup.h; then
18597 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
18598 fi
18599
18600
18601 if test ! -d include; then
18602 mkdir include
18603 fi
18604 if test ! -d include/wx; then
18605 mkdir include/wx
18606 fi
18607 if test ! -d include/wx/${SETUPH_DIR}; then
18608 mkdir include/wx/${SETUPH_DIR}
18609 fi
18610 if test -f setup.h; then
18611 cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h
18612 fi
18613
18614
18615 exit 0
18616 EOF
18617 chmod +x $CONFIG_STATUS
18618 rm -fr confdefs* $ac_clean_files
18619 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
18620
18621 if test "$no_recursion" != yes; then
18622
18623 # Remove --cache-file and --srcdir arguments so they do not pile up.
18624 ac_sub_configure_args=
18625 ac_prev=
18626 for ac_arg in $ac_configure_args; do
18627 if test -n "$ac_prev"; then
18628 ac_prev=
18629 continue
18630 fi
18631 case "$ac_arg" in
18632 -cache-file | --cache-file | --cache-fil | --cache-fi \
18633 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18634 ac_prev=cache_file ;;
18635 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18636 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
18637 ;;
18638 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18639 ac_prev=srcdir ;;
18640 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18641 ;;
18642 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18643 esac
18644 done
18645
18646 for ac_config_dir in demos samples utils contrib; do
18647
18648 # Do not complain, so a configure script can configure whichever
18649 # parts of a large source tree are present.
18650 if test ! -d $srcdir/$ac_config_dir; then
18651 continue
18652 fi
18653
18654 echo configuring in $ac_config_dir
18655
18656 case "$srcdir" in
18657 .) ;;
18658 *)
18659 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18660 else
18661 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18662 fi
18663 ;;
18664 esac
18665
18666 ac_popdir=`pwd`
18667 cd $ac_config_dir
18668
18669 # A "../" for each directory in /$ac_config_dir.
18670 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
18671
18672 case "$srcdir" in
18673 .) # No --srcdir option. We are building in place.
18674 ac_sub_srcdir=$srcdir ;;
18675 /*) # Absolute path.
18676 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
18677 *) # Relative path.
18678 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
18679 esac
18680
18681 # Check for guested configure; otherwise get Cygnus style configure.
18682 if test -f $ac_sub_srcdir/configure; then
18683 ac_sub_configure=$ac_sub_srcdir/configure
18684 elif test -f $ac_sub_srcdir/configure.in; then
18685 ac_sub_configure=$ac_configure
18686 else
18687 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
18688 ac_sub_configure=
18689 fi
18690
18691 # The recursion is here.
18692 if test -n "$ac_sub_configure"; then
18693
18694 # Make the cache file name correct relative to the subdirectory.
18695 case "$cache_file" in
18696 /*) ac_sub_cache_file=$cache_file ;;
18697 *) # Relative path.
18698 ac_sub_cache_file="$ac_dots$cache_file" ;;
18699 esac
18700 case "$ac_given_INSTALL" in
18701 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18702 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18703 esac
18704
18705 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
18706 # The eval makes quoting arguments work.
18707 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
18708 then :
18709 else
18710 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
18711 fi
18712 fi
18713
18714 cd $ac_popdir
18715 done
18716 fi
18717
18718