]> git.saurik.com Git - wxWidgets.git/blob - configure
added contrib strings to catalog and regenerated po files
[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-msw use MS-Windows"
72 ac_help="$ac_help
73 --with-pm use OS/2 Presentation Manager"
74 ac_help="$ac_help
75 --with-mgl use SciTech MGL"
76 ac_help="$ac_help
77 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
78 ac_help="$ac_help
79 --with-libpng use libpng (PNG image format)"
80 ac_help="$ac_help
81 --with-libjpeg use libjpeg (JPEG file format)"
82 ac_help="$ac_help
83 --with-libtiff use libtiff (TIFF file format)"
84 ac_help="$ac_help
85 --with-freetype use freetype (font rasterizer)"
86 ac_help="$ac_help
87 --with-opengl use OpenGL (or Mesa)"
88 ac_help="$ac_help
89 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
90 ac_help="$ac_help
91 --with-regex enable support for wxRegEx class"
92 ac_help="$ac_help
93 --with-zlib use zlib for LZW compression"
94 ac_help="$ac_help
95 --with-odbc use the IODBC and wxODBC classes"
96 ac_help="$ac_help
97 --enable-shared create shared library code"
98 ac_help="$ac_help
99 --enable-soname set the DT_SONAME field in ELF shared libraries"
100 ac_help="$ac_help
101 --enable-optimise create optimised code"
102 ac_help="$ac_help
103 --enable-debug same as debug_flag and debug_info"
104 ac_help="$ac_help
105 --enable-precomp enable use of precompiled headers (Mac OS X)"
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 C++ exceptions handling"
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 wxWindows 2.0 compatibility"
128 ac_help="$ac_help
129 --enable-compat22 enable wxWindows 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-textbuf use wxTextBuffer class"
172 ac_help="$ac_help
173 --enable-textfile use wxTextFile class"
174 ac_help="$ac_help
175 --enable-fontmap use font encodings conversion classes"
176 ac_help="$ac_help
177 --enable-unicode compile wxString with Unicode support"
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 all common dialogs"
318 ac_help="$ac_help
319 --enable-choicedlg use wxChoiceDialog"
320 ac_help="$ac_help
321 --enable-coldlg use wxColourDialog"
322 ac_help="$ac_help
323 --enable-filedlg use wxFileDialog"
324 ac_help="$ac_help
325 --enable-finddlg use wxFindReplaceDialog"
326 ac_help="$ac_help
327 --enable-fontdlg use wxFontDialog"
328 ac_help="$ac_help
329 --enable-dirdlg use wxDirDialog"
330 ac_help="$ac_help
331 --enable-msgdlg use wxMessageDialog"
332 ac_help="$ac_help
333 --enable-numberdlg use wxNumberEntryDialog"
334 ac_help="$ac_help
335 --enable-splash use wxSplashScreen"
336 ac_help="$ac_help
337 --enable-textdlg use wxTextDialog"
338 ac_help="$ac_help
339 --enable-tipdlg use startup tips"
340 ac_help="$ac_help
341 --enable-progressdlg use wxProgressDialog"
342 ac_help="$ac_help
343 --enable-wizarddlg use wxWizard"
344 ac_help="$ac_help
345 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
346 ac_help="$ac_help
347 --enable-miniframe use wxMiniFrame class"
348 ac_help="$ac_help
349 --enable-tooltips use wxToolTip class"
350 ac_help="$ac_help
351 --enable-splines use spline drawing code"
352 ac_help="$ac_help
353 --enable-validators use wxValidator and derived classes"
354 ac_help="$ac_help
355 --enable-busyinfo use wxBusyInfo"
356 ac_help="$ac_help
357 --enable-joystick use wxJoystick (Linux only)"
358 ac_help="$ac_help
359 --enable-metafiles use wxMetaFile (Windows only)"
360 ac_help="$ac_help
361 --enable-dragimage use wxDragImage"
362 ac_help="$ac_help
363 --enable-palette use wxPalette class"
364 ac_help="$ac_help
365 --enable-image use wxImage class"
366 ac_help="$ac_help
367 --enable-gif use gif images (GIF file format)"
368 ac_help="$ac_help
369 --enable-pcx use pcx images (PCX file format)"
370 ac_help="$ac_help
371 --enable-pnm use pnm images (PNM file format)"
372 ac_help="$ac_help
373 --enable-xpm use xpm images (XPM file format)"
374 ac_help="$ac_help
375 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
376 ac_help="$ac_help
377 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
378 ac_help="$ac_help
379 --disable-gtktest Do not try to compile and run a test GTK program"
380 ac_help="$ac_help
381 --with-x use the X Window System"
382
383 # Initialize some variables set by options.
384 # The variables have the same names as the options, with
385 # dashes changed to underlines.
386 build=NONE
387 cache_file=./config.cache
388 exec_prefix=NONE
389 host=NONE
390 no_create=
391 nonopt=NONE
392 no_recursion=
393 prefix=NONE
394 program_prefix=NONE
395 program_suffix=NONE
396 program_transform_name=s,x,x,
397 silent=
398 site=
399 srcdir=
400 target=NONE
401 verbose=
402 x_includes=NONE
403 x_libraries=NONE
404 bindir='${exec_prefix}/bin'
405 sbindir='${exec_prefix}/sbin'
406 libexecdir='${exec_prefix}/libexec'
407 datadir='${prefix}/share'
408 sysconfdir='${prefix}/etc'
409 sharedstatedir='${prefix}/com'
410 localstatedir='${prefix}/var'
411 libdir='${exec_prefix}/lib'
412 includedir='${prefix}/include'
413 oldincludedir='/usr/include'
414 infodir='${prefix}/info'
415 mandir='${prefix}/man'
416
417 # Initialize some other variables.
418 subdirs=
419 MFLAGS= MAKEFLAGS=
420 SHELL=${CONFIG_SHELL-/bin/sh}
421 # Maximum number of lines to put in a shell here document.
422 ac_max_here_lines=12
423
424 ac_prev=
425 for ac_option
426 do
427
428 # If the previous option needs an argument, assign it.
429 if test -n "$ac_prev"; then
430 eval "$ac_prev=\$ac_option"
431 ac_prev=
432 continue
433 fi
434
435 case "$ac_option" in
436 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
437 *) ac_optarg= ;;
438 esac
439
440 # Accept the important Cygnus configure options, so we can diagnose typos.
441
442 case "$ac_option" in
443
444 -bindir | --bindir | --bindi | --bind | --bin | --bi)
445 ac_prev=bindir ;;
446 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
447 bindir="$ac_optarg" ;;
448
449 -build | --build | --buil | --bui | --bu)
450 ac_prev=build ;;
451 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
452 build="$ac_optarg" ;;
453
454 -cache-file | --cache-file | --cache-fil | --cache-fi \
455 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
456 ac_prev=cache_file ;;
457 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
458 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
459 cache_file="$ac_optarg" ;;
460
461 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
462 ac_prev=datadir ;;
463 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
464 | --da=*)
465 datadir="$ac_optarg" ;;
466
467 -disable-* | --disable-*)
468 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
469 # Reject names that are not valid shell variable names.
470 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
471 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
472 fi
473 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
474 eval "enable_${ac_feature}=no" ;;
475
476 -enable-* | --enable-*)
477 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
478 # Reject names that are not valid shell variable names.
479 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
480 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
481 fi
482 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
483 case "$ac_option" in
484 *=*) ;;
485 *) ac_optarg=yes ;;
486 esac
487 eval "enable_${ac_feature}='$ac_optarg'" ;;
488
489 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
490 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
491 | --exec | --exe | --ex)
492 ac_prev=exec_prefix ;;
493 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
494 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
495 | --exec=* | --exe=* | --ex=*)
496 exec_prefix="$ac_optarg" ;;
497
498 -gas | --gas | --ga | --g)
499 # Obsolete; use --with-gas.
500 with_gas=yes ;;
501
502 -help | --help | --hel | --he)
503 # Omit some internal or obsolete options to make the list less imposing.
504 # This message is too long to be a string in the A/UX 3.1 sh.
505 cat << EOF
506 Usage: configure [options] [host]
507 Options: [defaults in brackets after descriptions]
508 Configuration:
509 --cache-file=FILE cache test results in FILE
510 --help print this message
511 --no-create do not create output files
512 --quiet, --silent do not print \`checking...' messages
513 --version print the version of autoconf that created configure
514 Directory and file names:
515 --prefix=PREFIX install architecture-independent files in PREFIX
516 [$ac_default_prefix]
517 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
518 [same as prefix]
519 --bindir=DIR user executables in DIR [EPREFIX/bin]
520 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
521 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
522 --datadir=DIR read-only architecture-independent data in DIR
523 [PREFIX/share]
524 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
525 --sharedstatedir=DIR modifiable architecture-independent data in DIR
526 [PREFIX/com]
527 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
528 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
529 --includedir=DIR C header files in DIR [PREFIX/include]
530 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
531 --infodir=DIR info documentation in DIR [PREFIX/info]
532 --mandir=DIR man documentation in DIR [PREFIX/man]
533 --srcdir=DIR find the sources in DIR [configure dir or ..]
534 --program-prefix=PREFIX prepend PREFIX to installed program names
535 --program-suffix=SUFFIX append SUFFIX to installed program names
536 --program-transform-name=PROGRAM
537 run sed PROGRAM on installed program names
538 EOF
539 cat << EOF
540 Host type:
541 --build=BUILD configure for building on BUILD [BUILD=HOST]
542 --host=HOST configure for HOST [guessed]
543 --target=TARGET configure for TARGET [TARGET=HOST]
544 Features and packages:
545 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
546 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
547 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
548 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
549 --x-includes=DIR X include files are in DIR
550 --x-libraries=DIR X library files are in DIR
551 EOF
552 if test -n "$ac_help"; then
553 echo "--enable and --with options recognized:$ac_help"
554 fi
555 exit 0 ;;
556
557 -host | --host | --hos | --ho)
558 ac_prev=host ;;
559 -host=* | --host=* | --hos=* | --ho=*)
560 host="$ac_optarg" ;;
561
562 -includedir | --includedir | --includedi | --included | --include \
563 | --includ | --inclu | --incl | --inc)
564 ac_prev=includedir ;;
565 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
566 | --includ=* | --inclu=* | --incl=* | --inc=*)
567 includedir="$ac_optarg" ;;
568
569 -infodir | --infodir | --infodi | --infod | --info | --inf)
570 ac_prev=infodir ;;
571 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
572 infodir="$ac_optarg" ;;
573
574 -libdir | --libdir | --libdi | --libd)
575 ac_prev=libdir ;;
576 -libdir=* | --libdir=* | --libdi=* | --libd=*)
577 libdir="$ac_optarg" ;;
578
579 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
580 | --libexe | --libex | --libe)
581 ac_prev=libexecdir ;;
582 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
583 | --libexe=* | --libex=* | --libe=*)
584 libexecdir="$ac_optarg" ;;
585
586 -localstatedir | --localstatedir | --localstatedi | --localstated \
587 | --localstate | --localstat | --localsta | --localst \
588 | --locals | --local | --loca | --loc | --lo)
589 ac_prev=localstatedir ;;
590 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
591 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
592 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
593 localstatedir="$ac_optarg" ;;
594
595 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
596 ac_prev=mandir ;;
597 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
598 mandir="$ac_optarg" ;;
599
600 -nfp | --nfp | --nf)
601 # Obsolete; use --without-fp.
602 with_fp=no ;;
603
604 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
605 | --no-cr | --no-c)
606 no_create=yes ;;
607
608 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
609 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
610 no_recursion=yes ;;
611
612 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
613 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
614 | --oldin | --oldi | --old | --ol | --o)
615 ac_prev=oldincludedir ;;
616 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
617 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
618 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
619 oldincludedir="$ac_optarg" ;;
620
621 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
622 ac_prev=prefix ;;
623 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
624 prefix="$ac_optarg" ;;
625
626 -program-prefix | --program-prefix | --program-prefi | --program-pref \
627 | --program-pre | --program-pr | --program-p)
628 ac_prev=program_prefix ;;
629 -program-prefix=* | --program-prefix=* | --program-prefi=* \
630 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
631 program_prefix="$ac_optarg" ;;
632
633 -program-suffix | --program-suffix | --program-suffi | --program-suff \
634 | --program-suf | --program-su | --program-s)
635 ac_prev=program_suffix ;;
636 -program-suffix=* | --program-suffix=* | --program-suffi=* \
637 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
638 program_suffix="$ac_optarg" ;;
639
640 -program-transform-name | --program-transform-name \
641 | --program-transform-nam | --program-transform-na \
642 | --program-transform-n | --program-transform- \
643 | --program-transform | --program-transfor \
644 | --program-transfo | --program-transf \
645 | --program-trans | --program-tran \
646 | --progr-tra | --program-tr | --program-t)
647 ac_prev=program_transform_name ;;
648 -program-transform-name=* | --program-transform-name=* \
649 | --program-transform-nam=* | --program-transform-na=* \
650 | --program-transform-n=* | --program-transform-=* \
651 | --program-transform=* | --program-transfor=* \
652 | --program-transfo=* | --program-transf=* \
653 | --program-trans=* | --program-tran=* \
654 | --progr-tra=* | --program-tr=* | --program-t=*)
655 program_transform_name="$ac_optarg" ;;
656
657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
658 | -silent | --silent | --silen | --sile | --sil)
659 silent=yes ;;
660
661 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
662 ac_prev=sbindir ;;
663 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
664 | --sbi=* | --sb=*)
665 sbindir="$ac_optarg" ;;
666
667 -sharedstatedir | --sharedstatedir | --sharedstatedi \
668 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
669 | --sharedst | --shareds | --shared | --share | --shar \
670 | --sha | --sh)
671 ac_prev=sharedstatedir ;;
672 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
673 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
674 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
675 | --sha=* | --sh=*)
676 sharedstatedir="$ac_optarg" ;;
677
678 -site | --site | --sit)
679 ac_prev=site ;;
680 -site=* | --site=* | --sit=*)
681 site="$ac_optarg" ;;
682
683 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
684 ac_prev=srcdir ;;
685 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
686 srcdir="$ac_optarg" ;;
687
688 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
689 | --syscon | --sysco | --sysc | --sys | --sy)
690 ac_prev=sysconfdir ;;
691 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
692 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
693 sysconfdir="$ac_optarg" ;;
694
695 -target | --target | --targe | --targ | --tar | --ta | --t)
696 ac_prev=target ;;
697 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698 target="$ac_optarg" ;;
699
700 -v | -verbose | --verbose | --verbos | --verbo | --verb)
701 verbose=yes ;;
702
703 -version | --version | --versio | --versi | --vers)
704 echo "configure generated by autoconf version 2.13"
705 exit 0 ;;
706
707 -with-* | --with-*)
708 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
709 # Reject names that are not valid shell variable names.
710 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
711 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
712 fi
713 ac_package=`echo $ac_package| sed 's/-/_/g'`
714 case "$ac_option" in
715 *=*) ;;
716 *) ac_optarg=yes ;;
717 esac
718 eval "with_${ac_package}='$ac_optarg'" ;;
719
720 -without-* | --without-*)
721 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
722 # Reject names that are not valid shell variable names.
723 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
724 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
725 fi
726 ac_package=`echo $ac_package| sed 's/-/_/g'`
727 eval "with_${ac_package}=no" ;;
728
729 --x)
730 # Obsolete; use --with-x.
731 with_x=yes ;;
732
733 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
734 | --x-incl | --x-inc | --x-in | --x-i)
735 ac_prev=x_includes ;;
736 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
737 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
738 x_includes="$ac_optarg" ;;
739
740 -x-libraries | --x-libraries | --x-librarie | --x-librari \
741 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
742 ac_prev=x_libraries ;;
743 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
744 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
745 x_libraries="$ac_optarg" ;;
746
747 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
748 ;;
749
750 *)
751 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
752 echo "configure: warning: $ac_option: invalid host type" 1>&2
753 fi
754 if test "x$nonopt" != xNONE; then
755 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
756 fi
757 nonopt="$ac_option"
758 ;;
759
760 esac
761 done
762
763 if test -n "$ac_prev"; then
764 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
765 fi
766
767 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
768
769 # File descriptor usage:
770 # 0 standard input
771 # 1 file creation
772 # 2 errors and warnings
773 # 3 some systems may open it to /dev/tty
774 # 4 used on the Kubota Titan
775 # 6 checking for... messages and results
776 # 5 compiler messages saved in config.log
777 if test "$silent" = yes; then
778 exec 6>/dev/null
779 else
780 exec 6>&1
781 fi
782 exec 5>./config.log
783
784 echo "\
785 This file contains any messages produced by compilers while
786 running configure, to aid debugging if configure makes a mistake.
787 " 1>&5
788
789 # Strip out --no-create and --no-recursion so they do not pile up.
790 # Also quote any args containing shell metacharacters.
791 ac_configure_args=
792 for ac_arg
793 do
794 case "$ac_arg" in
795 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
796 | --no-cr | --no-c) ;;
797 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
798 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
799 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
800 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
801 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
802 esac
803 done
804
805 # NLS nuisances.
806 # Only set these to C if already set. These must not be set unconditionally
807 # because not all systems understand e.g. LANG=C (notably SCO).
808 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
809 # Non-C LC_CTYPE values break the ctype check.
810 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
811 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
812 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
813 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
814
815 # confdefs.h avoids OS command line length limits that DEFS can exceed.
816 rm -rf conftest* confdefs.h
817 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
818 echo > confdefs.h
819
820 # A filename unique to this package, relative to the directory that
821 # configure is in, which we can look for to find out if srcdir is correct.
822 ac_unique_file=wx-config.in
823
824 # Find the source files, if location was not specified.
825 if test -z "$srcdir"; then
826 ac_srcdir_defaulted=yes
827 # Try the directory containing this script, then its parent.
828 ac_prog=$0
829 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
830 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
831 srcdir=$ac_confdir
832 if test ! -r $srcdir/$ac_unique_file; then
833 srcdir=..
834 fi
835 else
836 ac_srcdir_defaulted=no
837 fi
838 if test ! -r $srcdir/$ac_unique_file; then
839 if test "$ac_srcdir_defaulted" = yes; then
840 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
841 else
842 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
843 fi
844 fi
845 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
846
847 # Prefer explicitly selected file to automatically selected ones.
848 if test -z "$CONFIG_SITE"; then
849 if test "x$prefix" != xNONE; then
850 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
851 else
852 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
853 fi
854 fi
855 for ac_site_file in $CONFIG_SITE; do
856 if test -r "$ac_site_file"; then
857 echo "loading site script $ac_site_file"
858 . "$ac_site_file"
859 fi
860 done
861
862 if test -r "$cache_file"; then
863 echo "loading cache $cache_file"
864 . $cache_file
865 else
866 echo "creating cache $cache_file"
867 > $cache_file
868 fi
869
870 ac_ext=c
871 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
872 ac_cpp='$CPP $CPPFLAGS'
873 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
874 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
875 cross_compiling=$ac_cv_prog_cc_cross
876
877 ac_exeext=
878 ac_objext=o
879 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
880 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
881 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
882 ac_n= ac_c='
883 ' ac_t=' '
884 else
885 ac_n=-n ac_c= ac_t=
886 fi
887 else
888 ac_n= ac_c='\c' ac_t=
889 fi
890
891
892
893 ac_aux_dir=
894 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
895 if 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 elif test -f $ac_dir/install.sh; then
900 ac_aux_dir=$ac_dir
901 ac_install_sh="$ac_aux_dir/install.sh -c"
902 break
903 fi
904 done
905 if test -z "$ac_aux_dir"; then
906 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
907 fi
908 ac_config_guess=$ac_aux_dir/config.guess
909 ac_config_sub=$ac_aux_dir/config.sub
910 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
911
912
913 # Do some error checking and defaulting for the host and target type.
914 # The inputs are:
915 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
916 #
917 # The rules are:
918 # 1. You are not allowed to specify --host, --target, and nonopt at the
919 # same time.
920 # 2. Host defaults to nonopt.
921 # 3. If nonopt is not specified, then host defaults to the current host,
922 # as determined by config.guess.
923 # 4. Target and build default to nonopt.
924 # 5. If nonopt is not specified, then target and build default to host.
925
926 # The aliases save the names the user supplied, while $host etc.
927 # will get canonicalized.
928 case $host---$target---$nonopt in
929 NONE---*---* | *---NONE---* | *---*---NONE) ;;
930 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
931 esac
932
933
934 # Make sure we can run config.sub.
935 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
936 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
937 fi
938
939 echo $ac_n "checking host system type""... $ac_c" 1>&6
940 echo "configure:941: checking host system type" >&5
941
942 host_alias=$host
943 case "$host_alias" in
944 NONE)
945 case $nonopt in
946 NONE)
947 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
948 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
949 fi ;;
950 *) host_alias=$nonopt ;;
951 esac ;;
952 esac
953
954 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
955 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
956 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
957 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
958 echo "$ac_t""$host" 1>&6
959
960 echo $ac_n "checking target system type""... $ac_c" 1>&6
961 echo "configure:962: checking target system type" >&5
962
963 target_alias=$target
964 case "$target_alias" in
965 NONE)
966 case $nonopt in
967 NONE) target_alias=$host_alias ;;
968 *) target_alias=$nonopt ;;
969 esac ;;
970 esac
971
972 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
973 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
974 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
975 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
976 echo "$ac_t""$target" 1>&6
977
978 echo $ac_n "checking build system type""... $ac_c" 1>&6
979 echo "configure:980: checking build system type" >&5
980
981 build_alias=$build
982 case "$build_alias" in
983 NONE)
984 case $nonopt in
985 NONE) build_alias=$host_alias ;;
986 *) build_alias=$nonopt ;;
987 esac ;;
988 esac
989
990 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
991 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
992 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
993 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
994 echo "$ac_t""$build" 1>&6
995
996 test "$host_alias" != "$target_alias" &&
997 test "$program_prefix$program_suffix$program_transform_name" = \
998 NONENONEs,x,x, &&
999 program_prefix=${target_alias}-
1000
1001
1002
1003 WX_MAJOR_VERSION_NUMBER=2
1004 WX_MINOR_VERSION_NUMBER=3
1005 WX_RELEASE_NUMBER=2
1006
1007 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1008 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1009
1010 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1011
1012 WX_CURRENT=1
1013 WX_REVISION=0
1014 WX_AGE=0
1015
1016
1017
1018 USE_UNIX=1
1019 USE_WIN32=0
1020 USE_BEOS=0
1021 USE_MAC=0
1022
1023 USE_LINUX=
1024 USE_SGI=
1025 USE_HPUX=
1026 USE_SYSV=
1027 USE_SVR4=
1028 USE_AIX=
1029 USE_SUN=
1030 USE_SOLARIS=
1031 USE_SUNOS=
1032 USE_ALPHA=
1033 USE_OSF=
1034 USE_BSD=
1035 USE_DARWIN=
1036 USE_FREEBSD=
1037 USE_OPENBSD=
1038 USE_NETBSD=
1039 USE_VMS=
1040 USE_ULTRIX=
1041 USE_DATA_GENERAL=
1042
1043 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1044
1045 ALL_TOOLKITS="GTK MAC MGL MOTIF MSW PM WINE"
1046
1047 DEFAULT_wxUSE_GTK=0
1048 DEFAULT_wxUSE_MAC=0
1049 DEFAULT_wxUSE_MGL=0
1050 DEFAULT_wxUSE_MOTIF=0
1051 DEFAULT_wxUSE_MSW=0
1052 DEFAULT_wxUSE_PM=0
1053 DEFAULT_wxUSE_WINE=0
1054
1055 DEFAULT_DEFAULT_wxUSE_GTK=0
1056 DEFAULT_DEFAULT_wxUSE_MAC=0
1057 DEFAULT_DEFAULT_wxUSE_MGL=0
1058 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1059 DEFAULT_DEFAULT_wxUSE_MSW=0
1060 DEFAULT_DEFAULT_wxUSE_PM=0
1061 DEFAULT_DEFAULT_wxUSE_WINE=0
1062
1063 PROGRAM_EXT=
1064 SO_SUFFIX=so
1065
1066 case "${host}" in
1067 *-hp-hpux* )
1068 USE_HPUX=1
1069 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1070 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1071 SO_SUFFIX=sl
1072 cat >> confdefs.h <<\EOF
1073 #define __HPUX__ 1
1074 EOF
1075
1076 ;;
1077 *-*-linux* )
1078 USE_LINUX=1
1079 cat >> confdefs.h <<\EOF
1080 #define __LINUX__ 1
1081 EOF
1082
1083 TMP=`uname -m`
1084 if test "x$TMP" = "xalpha"; then
1085 USE_ALPHA=1
1086 cat >> confdefs.h <<\EOF
1087 #define __ALPHA__ 1
1088 EOF
1089
1090 fi
1091 DEFAULT_DEFAULT_wxUSE_GTK=1
1092 ;;
1093 *-*-irix5* | *-*-irix6* )
1094 USE_SGI=1
1095 USE_SVR4=1
1096 cat >> confdefs.h <<\EOF
1097 #define __SGI__ 1
1098 EOF
1099
1100 cat >> confdefs.h <<\EOF
1101 #define __SVR4__ 1
1102 EOF
1103
1104 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1105 ;;
1106 *-*-solaris2* )
1107 USE_SUN=1
1108 USE_SOLARIS=1
1109 USE_SVR4=1
1110 cat >> confdefs.h <<\EOF
1111 #define __SUN__ 1
1112 EOF
1113
1114 cat >> confdefs.h <<\EOF
1115 #define __SOLARIS__ 1
1116 EOF
1117
1118 cat >> confdefs.h <<\EOF
1119 #define __SVR4__ 1
1120 EOF
1121
1122 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1123 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1124 ;;
1125 *-*-sunos4* )
1126 USE_SUN=1
1127 USE_SUNOS=1
1128 USE_BSD=1
1129 cat >> confdefs.h <<\EOF
1130 #define __SUN__ 1
1131 EOF
1132
1133 cat >> confdefs.h <<\EOF
1134 #define __SUNOS__ 1
1135 EOF
1136
1137 cat >> confdefs.h <<\EOF
1138 #define __BSD__ 1
1139 EOF
1140
1141 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1142 ;;
1143 *-*-freebsd*)
1144 USE_BSD=1
1145 USE_FREEBSD=1
1146 cat >> confdefs.h <<\EOF
1147 #define __FREEBSD__ 1
1148 EOF
1149
1150 cat >> confdefs.h <<\EOF
1151 #define __BSD__ 1
1152 EOF
1153
1154 DEFAULT_DEFAULT_wxUSE_GTK=1
1155 ;;
1156 *-*-openbsd*)
1157 USE_BSD=1
1158 USE_OPENBSD=1
1159 cat >> confdefs.h <<\EOF
1160 #define __FREEBSD__ 1
1161 EOF
1162
1163 cat >> confdefs.h <<\EOF
1164 #define __OPENBSD__ 1
1165 EOF
1166
1167 DEFAULT_DEFAULT_wxUSE_GTK=1
1168 ;;
1169 *-*-netbsd*)
1170 USE_BSD=1
1171 USE_NETBSD=1
1172 cat >> confdefs.h <<\EOF
1173 #define __FREEBSD__ 1
1174 EOF
1175
1176 cat >> confdefs.h <<\EOF
1177 #define __NETBSD__ 1
1178 EOF
1179
1180 DEFAULT_DEFAULT_wxUSE_GTK=1
1181 ;;
1182 *-*-osf* )
1183 USE_ALPHA=1
1184 USE_OSF=1
1185 cat >> confdefs.h <<\EOF
1186 #define __ALPHA__ 1
1187 EOF
1188
1189 cat >> confdefs.h <<\EOF
1190 #define __OSF__ 1
1191 EOF
1192
1193 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1194 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1195 ;;
1196 *-*-dgux5* )
1197 USE_ALPHA=1
1198 USE_SVR4=1
1199 cat >> confdefs.h <<\EOF
1200 #define __ALPHA__ 1
1201 EOF
1202
1203 cat >> confdefs.h <<\EOF
1204 #define __SVR4__ 1
1205 EOF
1206
1207 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1208 ;;
1209 *-*-sysv5* )
1210 USE_SYSV=1
1211 USE_SVR4=1
1212 cat >> confdefs.h <<\EOF
1213 #define __SYSV__ 1
1214 EOF
1215
1216 cat >> confdefs.h <<\EOF
1217 #define __SVR4__ 1
1218 EOF
1219
1220 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1221 ;;
1222 *-*-aix* )
1223 USE_AIX=1
1224 USE_SYSV=1
1225 USE_SVR4=1
1226 cat >> confdefs.h <<\EOF
1227 #define __AIX__ 1
1228 EOF
1229
1230 cat >> confdefs.h <<\EOF
1231 #define __SYSV__ 1
1232 EOF
1233
1234 cat >> confdefs.h <<\EOF
1235 #define __SVR4__ 1
1236 EOF
1237
1238 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1239 ;;
1240
1241 *-*-cygwin* | *-*-mingw32* )
1242 USE_UNIX=0
1243 USE_WIN32=1
1244 SO_SUFFIX=dll
1245 cat >> confdefs.h <<\EOF
1246 #define __WIN32__ 1
1247 EOF
1248
1249 cat >> confdefs.h <<\EOF
1250 #define __WIN95__ 1
1251 EOF
1252
1253 cat >> confdefs.h <<\EOF
1254 #define __WINDOWS__ 1
1255 EOF
1256
1257 cat >> confdefs.h <<\EOF
1258 #define __GNUWIN32__ 1
1259 EOF
1260
1261 cat >> confdefs.h <<\EOF
1262 #define STRICT 1
1263 EOF
1264
1265 cat >> confdefs.h <<\EOF
1266 #define WINVER 0x0400
1267 EOF
1268
1269 PROGRAM_EXT=".exe"
1270 RESCOMP=windres
1271 DEFAULT_DEFAULT_wxUSE_MSW=1
1272 ;;
1273
1274 *-pc-os2_emx | *-pc-os2-emx )
1275 cat >> confdefs.h <<\EOF
1276 #define __EMX__ 1
1277 EOF
1278
1279 PROGRAM_EXT=".exe"
1280 DEFAULT_DEFAULT_wxUSE_PM=1
1281 ;;
1282
1283 powerpc-*-darwin* )
1284 USE_BSD=1
1285 USE_DARWIN=1
1286 SO_SUFFIX=dylib
1287 cat >> confdefs.h <<\EOF
1288 #define __BSD__ 1
1289 EOF
1290
1291 cat >> confdefs.h <<\EOF
1292 #define __DARWIN__ 1
1293 EOF
1294
1295 cat >> confdefs.h <<\EOF
1296 #define __POWERPC__ 1
1297 EOF
1298
1299 DEFAULT_DEFAULT_wxUSE_MAC=1
1300 ;;
1301
1302 *-*-beos* )
1303 USE_BEOS=1
1304 cat >> confdefs.h <<\EOF
1305 #define __BEOS__ 1
1306 EOF
1307
1308 ;;
1309
1310 *)
1311 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1312 esac
1313
1314 if test "$USE_UNIX" = 1 ; then
1315 wxUSE_UNIX=yes
1316 cat >> confdefs.h <<\EOF
1317 #define __UNIX__ 1
1318 EOF
1319
1320 fi
1321
1322 if test "$USE_LINUX" = 1; then
1323 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
1324 echo "configure:1325: checking for glibc 2.1 or later" >&5
1325 if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1327 else
1328 cat > conftest.$ac_ext <<EOF
1329 #line 1330 "configure"
1330 #include "confdefs.h"
1331 #include <features.h>
1332 int main() {
1333
1334 #if !__GLIBC_PREREQ(2, 1)
1335 #error not glibc2.1
1336 #endif
1337
1338 ; return 0; }
1339 EOF
1340 if { (eval echo configure:1341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1341 rm -rf conftest*
1342
1343 wx_lib_glibc21=yes
1344
1345 else
1346 echo "configure: failed program was:" >&5
1347 cat conftest.$ac_ext >&5
1348 rm -rf conftest*
1349
1350 wx_lib_glibc21=no
1351
1352
1353 fi
1354 rm -f conftest*
1355
1356 fi
1357
1358 echo "$ac_t""$wx_lib_glibc21" 1>&6
1359 if test "$wx_lib_glibc21" = "yes"; then
1360 cat >> confdefs.h <<\EOF
1361 #define wxHAVE_GLIBC2 1
1362 EOF
1363
1364 fi
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_SONAME=no
1385 DEFAULT_wxUSE_OPTIMISE=no
1386 DEFAULT_wxUSE_PROFILE=no
1387 DEFAULT_wxUSE_NO_DEPS=no
1388 DEFAULT_wxUSE_NO_RTTI=yes
1389 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
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_PRECOMP=yes
1398 DEFAULT_wxUSE_APPLE_IEEE=no
1399
1400 DEFAULT_wxUSE_LOG=yes
1401 DEFAULT_wxUSE_LOGWINDOW=no
1402 DEFAULT_wxUSE_LOGGUI=no
1403
1404 DEFAULT_wxUSE_GUI=yes
1405 DEFAULT_wxUSE_CONTROLS=no
1406
1407 DEFAULT_wxUSE_REGEX=no
1408 DEFAULT_wxUSE_ZLIB=no
1409 DEFAULT_wxUSE_LIBPNG=no
1410 DEFAULT_wxUSE_LIBJPEG=no
1411 DEFAULT_wxUSE_LIBTIFF=no
1412 DEFAULT_wxUSE_ODBC=no
1413 DEFAULT_wxUSE_FREETYPE=no
1414 DEFAULT_wxUSE_OPENGL=no
1415
1416 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1417 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1418 DEFAULT_wxUSE_STD_IOSTREAM=no
1419 DEFAULT_wxUSE_CMDLINE_PARSER=no
1420 DEFAULT_wxUSE_DATETIME=no
1421 DEFAULT_wxUSE_TIMEDATE=no
1422 DEFAULT_wxUSE_TIMER=no
1423 DEFAULT_wxUSE_STOPWATCH=no
1424 DEFAULT_wxUSE_FILE=no
1425 DEFAULT_wxUSE_FFILE=no
1426 DEFAULT_wxUSE_TEXTBUFFER=no
1427 DEFAULT_wxUSE_TEXTFILE=no
1428 DEFAULT_wxUSE_WAVE=no
1429 DEFAULT_wxUSE_INTL=no
1430 DEFAULT_wxUSE_CONFIG=no
1431 DEFAULT_wxUSE_FONTMAP=no
1432 DEFAULT_wxUSE_STREAMS=no
1433 DEFAULT_wxUSE_SOCKETS=no
1434 DEFAULT_wxUSE_DIALUP_MANAGER=no
1435 DEFAULT_wxUSE_SERIAL=no
1436 DEFAULT_wxUSE_JOYSTICK=no
1437 DEFAULT_wxUSE_DYNLIB_CLASS=no
1438 DEFAULT_wxUSE_LONGLONG=no
1439 DEFAULT_wxUSE_GEOMETRY=no
1440
1441 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1442 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1443 DEFAULT_wxUSE_POSTSCRIPT=no
1444
1445 DEFAULT_wxUSE_X_RESOURCES=no
1446 DEFAULT_wxUSE_CLIPBOARD=no
1447 DEFAULT_wxUSE_TOOLTIPS=no
1448 DEFAULT_wxUSE_DRAG_AND_DROP=no
1449 DEFAULT_wxUSE_DRAGIMAGE=no
1450 DEFAULT_wxUSE_SPLINES=no
1451
1452 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1453 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1454 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1455
1456 DEFAULT_wxUSE_PROLOGIO=no
1457 DEFAULT_wxUSE_RESOURCES=no
1458 DEFAULT_wxUSE_CONSTRAINTS=no
1459 DEFAULT_wxUSE_IPC=no
1460 DEFAULT_wxUSE_HELP=no
1461 DEFAULT_wxUSE_MS_HTML_HELP=no
1462 DEFAULT_wxUSE_WXHTML_HELP=no
1463 DEFAULT_wxUSE_TREELAYOUT=no
1464 DEFAULT_wxUSE_METAFILE=no
1465 DEFAULT_wxUSE_MIMETYPE=no
1466 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1467
1468 DEFAULT_wxUSE_COMMONDLGS=no
1469 DEFAULT_wxUSE_CHOICEDLG=no
1470 DEFAULT_wxUSE_COLOURDLG=no
1471 DEFAULT_wxUSE_DIRDLG=no
1472 DEFAULT_wxUSE_FILEDLG=no
1473 DEFAULT_wxUSE_FINDREPLDLG=no
1474 DEFAULT_wxUSE_FONTDLG=no
1475 DEFAULT_wxUSE_MSGDLG=no
1476 DEFAULT_wxUSE_NUMBERDLG=no
1477 DEFAULT_wxUSE_TEXTDLG=no
1478 DEFAULT_wxUSE_SPLASH=no
1479 DEFAULT_wxUSE_STARTUP_TIPS=no
1480 DEFAULT_wxUSE_PROGRESSDLG=no
1481 DEFAULT_wxUSE_WIZARDDLG=no
1482
1483 DEFAULT_wxUSE_MENUS=no
1484 DEFAULT_wxUSE_MINIFRAME=no
1485 DEFAULT_wxUSE_HTML=no
1486 DEFAULT_wxUSE_FILESYSTEM=no
1487 DEFAULT_wxUSE_FS_INET=no
1488 DEFAULT_wxUSE_FS_ZIP=no
1489 DEFAULT_wxUSE_BUSYINFO=no
1490 DEFAULT_wxUSE_ZIPSTREAM=no
1491 DEFAULT_wxUSE_VALIDATORS=no
1492
1493 DEFAULT_wxUSE_ACCEL=no
1494 DEFAULT_wxUSE_BUTTON=no
1495 DEFAULT_wxUSE_BMPBUTTON=no
1496 DEFAULT_wxUSE_CALCTRL=no
1497 DEFAULT_wxUSE_CARET=no
1498 DEFAULT_wxUSE_CHECKBOX=no
1499 DEFAULT_wxUSE_CHECKLST=no
1500 DEFAULT_wxUSE_CHOICE=no
1501 DEFAULT_wxUSE_COMBOBOX=no
1502 DEFAULT_wxUSE_GAUGE=no
1503 DEFAULT_wxUSE_GRID=no
1504 DEFAULT_wxUSE_NEW_GRID=no
1505 DEFAULT_wxUSE_IMAGLIST=no
1506 DEFAULT_wxUSE_LISTBOX=no
1507 DEFAULT_wxUSE_LISTCTRL=no
1508 DEFAULT_wxUSE_NOTEBOOK=no
1509 DEFAULT_wxUSE_PROPSHEET=no
1510 DEFAULT_wxUSE_RADIOBOX=no
1511 DEFAULT_wxUSE_RADIOBTN=no
1512 DEFAULT_wxUSE_SASH=no
1513 DEFAULT_wxUSE_SCROLLBAR=no
1514 DEFAULT_wxUSE_SLIDER=no
1515 DEFAULT_wxUSE_SPINBTN=no
1516 DEFAULT_wxUSE_SPINCTRL=no
1517 DEFAULT_wxUSE_SPLITTER=no
1518 DEFAULT_wxUSE_STATBMP=no
1519 DEFAULT_wxUSE_STATBOX=no
1520 DEFAULT_wxUSE_STATLINE=no
1521 DEFAULT_wxUSE_STATTEXT=no
1522 DEFAULT_wxUSE_STATUSBAR=yes
1523 DEFAULT_wxUSE_TABDIALOG=no
1524 DEFAULT_wxUSE_TEXTCTRL=no
1525 DEFAULT_wxUSE_TOGGLEBTN=no
1526 DEFAULT_wxUSE_TOOLBAR=no
1527 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1528 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1529 DEFAULT_wxUSE_TREECTRL=no
1530 DEFAULT_wxUSE_POPUPWIN=no
1531
1532 DEFAULT_wxUSE_UNICODE=no
1533 DEFAULT_wxUSE_WCSRTOMBS=no
1534
1535 DEFAULT_wxUSE_PALETTE=no
1536 DEFAULT_wxUSE_IMAGE=no
1537 DEFAULT_wxUSE_GIF=no
1538 DEFAULT_wxUSE_PCX=no
1539 DEFAULT_wxUSE_PNM=no
1540 DEFAULT_wxUSE_XPM=no
1541 else
1542 DEFAULT_wxUSE_UNIVERSAL=no
1543
1544 DEFAULT_wxUSE_THREADS=yes
1545
1546 DEFAULT_wxUSE_SHARED=yes
1547 DEFAULT_wxUSE_SONAME=no
1548 DEFAULT_wxUSE_OPTIMISE=yes
1549 DEFAULT_wxUSE_PROFILE=no
1550 DEFAULT_wxUSE_NO_DEPS=no
1551 DEFAULT_wxUSE_NO_RTTI=yes
1552 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1553 DEFAULT_wxUSE_PERMISSIVE=no
1554 DEFAULT_wxUSE_DEBUG_FLAG=no
1555 DEFAULT_wxUSE_DEBUG_INFO=no
1556 DEFAULT_wxUSE_DEBUG_GDB=no
1557 DEFAULT_wxUSE_MEM_TRACING=no
1558 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1559 DEFAULT_wxUSE_DMALLOC=no
1560 DEFAULT_wxUSE_PRECOMP=yes
1561 DEFAULT_wxUSE_APPLE_IEEE=yes
1562
1563 DEFAULT_wxUSE_LOG=yes
1564 DEFAULT_wxUSE_LOGWINDOW=yes
1565 DEFAULT_wxUSE_LOGGUI=yes
1566
1567 DEFAULT_wxUSE_GUI=yes
1568
1569 DEFAULT_wxUSE_REGEX=yes
1570 DEFAULT_wxUSE_ZLIB=yes
1571 DEFAULT_wxUSE_LIBPNG=yes
1572 DEFAULT_wxUSE_LIBJPEG=yes
1573 DEFAULT_wxUSE_LIBTIFF=yes
1574 DEFAULT_wxUSE_ODBC=no
1575 DEFAULT_wxUSE_FREETYPE=no
1576 DEFAULT_wxUSE_OPENGL=no
1577
1578 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1579 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1580 DEFAULT_wxUSE_STD_IOSTREAM=no
1581 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1582 DEFAULT_wxUSE_DATETIME=yes
1583 DEFAULT_wxUSE_TIMEDATE=no
1584 DEFAULT_wxUSE_TIMER=yes
1585 DEFAULT_wxUSE_STOPWATCH=yes
1586 DEFAULT_wxUSE_FILE=yes
1587 DEFAULT_wxUSE_FFILE=yes
1588 DEFAULT_wxUSE_TEXTBUFFER=yes
1589 DEFAULT_wxUSE_TEXTFILE=yes
1590 DEFAULT_wxUSE_WAVE=no
1591 DEFAULT_wxUSE_INTL=yes
1592 DEFAULT_wxUSE_CONFIG=yes
1593 DEFAULT_wxUSE_FONTMAP=yes
1594 DEFAULT_wxUSE_STREAMS=yes
1595 DEFAULT_wxUSE_SOCKETS=yes
1596 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1597 DEFAULT_wxUSE_SERIAL=yes
1598 DEFAULT_wxUSE_JOYSTICK=yes
1599 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1600 DEFAULT_wxUSE_LONGLONG=yes
1601 DEFAULT_wxUSE_GEOMETRY=yes
1602
1603 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1604 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1605 DEFAULT_wxUSE_POSTSCRIPT=yes
1606
1607 DEFAULT_wxUSE_X_RESOURCES=no
1608 DEFAULT_wxUSE_CLIPBOARD=yes
1609 DEFAULT_wxUSE_TOOLTIPS=yes
1610 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1611 DEFAULT_wxUSE_DRAGIMAGE=yes
1612 DEFAULT_wxUSE_SPLINES=yes
1613
1614 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1615 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1616 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1617
1618 DEFAULT_wxUSE_PROLOGIO=yes
1619 DEFAULT_wxUSE_RESOURCES=yes
1620 DEFAULT_wxUSE_CONSTRAINTS=yes
1621 DEFAULT_wxUSE_IPC=yes
1622 DEFAULT_wxUSE_HELP=yes
1623 DEFAULT_wxUSE_MS_HTML_HELP=yes
1624 DEFAULT_wxUSE_WXHTML_HELP=yes
1625 DEFAULT_wxUSE_TREELAYOUT=yes
1626 DEFAULT_wxUSE_METAFILE=yes
1627 DEFAULT_wxUSE_MIMETYPE=yes
1628 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1629
1630 DEFAULT_wxUSE_COMMONDLGS=yes
1631 DEFAULT_wxUSE_CHOICEDLG=yes
1632 DEFAULT_wxUSE_COLOURDLG=yes
1633 DEFAULT_wxUSE_DIRDLG=yes
1634 DEFAULT_wxUSE_FILEDLG=yes
1635 DEFAULT_wxUSE_FINDREPLDLG=yes
1636 DEFAULT_wxUSE_FONTDLG=yes
1637 DEFAULT_wxUSE_MSGDLG=yes
1638 DEFAULT_wxUSE_NUMBERDLG=yes
1639 DEFAULT_wxUSE_TEXTDLG=yes
1640 DEFAULT_wxUSE_SPLASH=yes
1641 DEFAULT_wxUSE_STARTUP_TIPS=yes
1642 DEFAULT_wxUSE_PROGRESSDLG=yes
1643 DEFAULT_wxUSE_WIZARDDLG=yes
1644
1645 DEFAULT_wxUSE_MENUS=yes
1646 DEFAULT_wxUSE_MINIFRAME=yes
1647 DEFAULT_wxUSE_HTML=yes
1648 DEFAULT_wxUSE_FILESYSTEM=yes
1649 DEFAULT_wxUSE_FS_INET=yes
1650 DEFAULT_wxUSE_FS_ZIP=yes
1651 DEFAULT_wxUSE_BUSYINFO=yes
1652 DEFAULT_wxUSE_ZIPSTREAM=yes
1653 DEFAULT_wxUSE_VALIDATORS=yes
1654
1655 DEFAULT_wxUSE_ACCEL=yes
1656 DEFAULT_wxUSE_BUTTON=yes
1657 DEFAULT_wxUSE_BMPBUTTON=yes
1658 DEFAULT_wxUSE_CALCTRL=yes
1659 DEFAULT_wxUSE_CARET=yes
1660 DEFAULT_wxUSE_CHECKBOX=yes
1661 DEFAULT_wxUSE_CHECKLST=yes
1662 DEFAULT_wxUSE_CHOICE=yes
1663 DEFAULT_wxUSE_COMBOBOX=yes
1664 DEFAULT_wxUSE_GAUGE=yes
1665 DEFAULT_wxUSE_GRID=yes
1666 DEFAULT_wxUSE_NEW_GRID=yes
1667 DEFAULT_wxUSE_IMAGLIST=yes
1668 DEFAULT_wxUSE_LISTBOX=yes
1669 DEFAULT_wxUSE_LISTCTRL=yes
1670 DEFAULT_wxUSE_NOTEBOOK=yes
1671 DEFAULT_wxUSE_PROPSHEET=yes
1672 DEFAULT_wxUSE_RADIOBOX=yes
1673 DEFAULT_wxUSE_RADIOBTN=yes
1674 DEFAULT_wxUSE_SASH=yes
1675 DEFAULT_wxUSE_SCROLLBAR=yes
1676 DEFAULT_wxUSE_SLIDER=yes
1677 DEFAULT_wxUSE_SPINBTN=yes
1678 DEFAULT_wxUSE_SPINCTRL=yes
1679 DEFAULT_wxUSE_SPLITTER=yes
1680 DEFAULT_wxUSE_STATBMP=yes
1681 DEFAULT_wxUSE_STATBOX=yes
1682 DEFAULT_wxUSE_STATLINE=yes
1683 DEFAULT_wxUSE_STATTEXT=yes
1684 DEFAULT_wxUSE_STATUSBAR=yes
1685 DEFAULT_wxUSE_TABDIALOG=no
1686 DEFAULT_wxUSE_TEXTCTRL=yes
1687 DEFAULT_wxUSE_TOGGLEBTN=yes
1688 DEFAULT_wxUSE_TOOLBAR=yes
1689 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1690 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1691 DEFAULT_wxUSE_TREECTRL=yes
1692 DEFAULT_wxUSE_POPUPWIN=yes
1693
1694 DEFAULT_wxUSE_UNICODE=no
1695 DEFAULT_wxUSE_WCSRTOMBS=no
1696
1697 DEFAULT_wxUSE_PALETTE=yes
1698 DEFAULT_wxUSE_IMAGE=yes
1699 DEFAULT_wxUSE_GIF=yes
1700 DEFAULT_wxUSE_PCX=yes
1701 DEFAULT_wxUSE_PNM=yes
1702 DEFAULT_wxUSE_XPM=yes
1703 fi
1704
1705
1706
1707 for toolkit in `echo $ALL_TOOLKITS`; do
1708 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1709 if test "x$LINE" != x ; then
1710 has_toolkit_in_cache=1
1711 eval "DEFAULT_$LINE"
1712 eval "CACHE_$toolkit=1"
1713 fi
1714 done
1715
1716
1717
1718 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1719 echo "configure:1720: checking for --enable-gui" >&5
1720 no_cache=0
1721 # Check whether --enable-gui or --disable-gui was given.
1722 if test "${enable_gui+set}" = set; then
1723 enableval="$enable_gui"
1724
1725 if test "$enableval" = yes; then
1726 ac_cv_use_gui='wxUSE_GUI=yes'
1727 else
1728 ac_cv_use_gui='wxUSE_GUI=no'
1729 fi
1730
1731 else
1732
1733 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1734 if test "x$LINE" != x ; then
1735 eval "DEFAULT_$LINE"
1736 else
1737 no_cache=1
1738 fi
1739
1740 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1741
1742 fi
1743
1744
1745 eval "$ac_cv_use_gui"
1746 if test "$no_cache" != 1; then
1747 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1748 fi
1749
1750 if test "$wxUSE_GUI" = yes; then
1751 echo "$ac_t""yes" 1>&6
1752 else
1753 echo "$ac_t""no" 1>&6
1754 fi
1755
1756
1757 if test "$wxUSE_GUI" = "yes"; then
1758
1759
1760 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1761 echo "configure:1762: checking for --enable-universal" >&5
1762 no_cache=0
1763 # Check whether --enable-universal or --disable-universal was given.
1764 if test "${enable_universal+set}" = set; then
1765 enableval="$enable_universal"
1766
1767 if test "$enableval" = yes; then
1768 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1769 else
1770 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1771 fi
1772
1773 else
1774
1775 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1776 if test "x$LINE" != x ; then
1777 eval "DEFAULT_$LINE"
1778 else
1779 no_cache=1
1780 fi
1781
1782 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1783
1784 fi
1785
1786
1787 eval "$ac_cv_use_universal"
1788 if test "$no_cache" != 1; then
1789 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1790 fi
1791
1792 if test "$wxUSE_UNIVERSAL" = yes; then
1793 echo "$ac_t""yes" 1>&6
1794 else
1795 echo "$ac_t""no" 1>&6
1796 fi
1797
1798 # Check whether --with-gtk or --without-gtk was given.
1799 if test "${with_gtk+set}" = set; then
1800 withval="$with_gtk"
1801 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1802 fi
1803
1804 # Check whether --with-motif or --without-motif was given.
1805 if test "${with_motif+set}" = set; then
1806 withval="$with_motif"
1807 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1808 fi
1809
1810 # Check whether --with-mac or --without-mac was given.
1811 if test "${with_mac+set}" = set; then
1812 withval="$with_mac"
1813 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1814 fi
1815
1816 # Check whether --with-wine or --without-wine was given.
1817 if test "${with_wine+set}" = set; then
1818 withval="$with_wine"
1819 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1820 fi
1821
1822 # Check whether --with-msw or --without-msw was given.
1823 if test "${with_msw+set}" = set; then
1824 withval="$with_msw"
1825 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
1826 fi
1827
1828 # Check whether --with-pm or --without-pm was given.
1829 if test "${with_pm+set}" = set; then
1830 withval="$with_pm"
1831 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1832 fi
1833
1834 # Check whether --with-mgl or --without-mgl was given.
1835 if test "${with_mgl+set}" = set; then
1836 withval="$with_mgl"
1837 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1838 fi
1839
1840
1841 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1842 if test "${enable_gtk2+set}" = set; then
1843 enableval="$enable_gtk2"
1844 wxUSE_GTK2=1
1845 else
1846 wxUSE_GTK2=0
1847 fi
1848
1849
1850
1851 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1852 echo "configure:1853: checking for --with-libpng" >&5
1853 no_cache=0
1854 # Check whether --with-libpng or --without-libpng was given.
1855 if test "${with_libpng+set}" = set; then
1856 withval="$with_libpng"
1857
1858 if test "$withval" = yes; then
1859 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1860 elif test "$withval" = no; then
1861 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1862 elif test "$withval" = sys; then
1863 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1864 elif test "$withval" = builtin; then
1865 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1866 else
1867 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1868 fi
1869
1870 else
1871
1872 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1873 if test "x$LINE" != x ; then
1874 eval "DEFAULT_$LINE"
1875 else
1876 no_cache=1
1877 fi
1878
1879 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1880
1881 fi
1882
1883
1884 eval "$ac_cv_use_libpng"
1885 if test "$no_cache" != 1; then
1886 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1887 fi
1888
1889 if test "$wxUSE_LIBPNG" = yes; then
1890 echo "$ac_t""yes" 1>&6
1891 elif test "$wxUSE_LIBPNG" = no; then
1892 echo "$ac_t""no" 1>&6
1893 elif test "$wxUSE_LIBPNG" = sys; then
1894 echo "$ac_t""system version" 1>&6
1895 elif test "$wxUSE_LIBPNG" = builtin; then
1896 echo "$ac_t""builtin version" 1>&6
1897 else
1898 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1899 fi
1900
1901
1902 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1903 echo "configure:1904: checking for --with-libjpeg" >&5
1904 no_cache=0
1905 # Check whether --with-libjpeg or --without-libjpeg was given.
1906 if test "${with_libjpeg+set}" = set; then
1907 withval="$with_libjpeg"
1908
1909 if test "$withval" = yes; then
1910 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1911 elif test "$withval" = no; then
1912 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1913 elif test "$withval" = sys; then
1914 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1915 elif test "$withval" = builtin; then
1916 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
1917 else
1918 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1919 fi
1920
1921 else
1922
1923 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1924 if test "x$LINE" != x ; then
1925 eval "DEFAULT_$LINE"
1926 else
1927 no_cache=1
1928 fi
1929
1930 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1931
1932 fi
1933
1934
1935 eval "$ac_cv_use_libjpeg"
1936 if test "$no_cache" != 1; then
1937 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1938 fi
1939
1940 if test "$wxUSE_LIBJPEG" = yes; then
1941 echo "$ac_t""yes" 1>&6
1942 elif test "$wxUSE_LIBJPEG" = no; then
1943 echo "$ac_t""no" 1>&6
1944 elif test "$wxUSE_LIBJPEG" = sys; then
1945 echo "$ac_t""system version" 1>&6
1946 elif test "$wxUSE_LIBJPEG" = builtin; then
1947 echo "$ac_t""builtin version" 1>&6
1948 else
1949 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1950 fi
1951
1952
1953 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
1954 echo "configure:1955: checking for --with-libtiff" >&5
1955 no_cache=0
1956 # Check whether --with-libtiff or --without-libtiff was given.
1957 if test "${with_libtiff+set}" = set; then
1958 withval="$with_libtiff"
1959
1960 if test "$withval" = yes; then
1961 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1962 elif test "$withval" = no; then
1963 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1964 elif test "$withval" = sys; then
1965 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1966 elif test "$withval" = builtin; then
1967 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
1968 else
1969 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1970 fi
1971
1972 else
1973
1974 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1975 if test "x$LINE" != x ; then
1976 eval "DEFAULT_$LINE"
1977 else
1978 no_cache=1
1979 fi
1980
1981 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1982
1983 fi
1984
1985
1986 eval "$ac_cv_use_libtiff"
1987 if test "$no_cache" != 1; then
1988 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1989 fi
1990
1991 if test "$wxUSE_LIBTIFF" = yes; then
1992 echo "$ac_t""yes" 1>&6
1993 elif test "$wxUSE_LIBTIFF" = no; then
1994 echo "$ac_t""no" 1>&6
1995 elif test "$wxUSE_LIBTIFF" = sys; then
1996 echo "$ac_t""system version" 1>&6
1997 elif test "$wxUSE_LIBTIFF" = builtin; then
1998 echo "$ac_t""builtin version" 1>&6
1999 else
2000 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2001 fi
2002
2003
2004 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
2005 echo "configure:2006: checking for --with-freetype" >&5
2006 no_cache=0
2007 # Check whether --with-freetype or --without-freetype was given.
2008 if test "${with_freetype+set}" = set; then
2009 withval="$with_freetype"
2010
2011 if test "$withval" = yes; then
2012 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2013 elif test "$withval" = no; then
2014 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2015 elif test "$withval" = sys; then
2016 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
2017 elif test "$withval" = builtin; then
2018 ac_cv_use_freetype='wxUSE_FREETYPE=builtin'
2019 else
2020 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2021 fi
2022
2023 else
2024
2025 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2026 if test "x$LINE" != x ; then
2027 eval "DEFAULT_$LINE"
2028 else
2029 no_cache=1
2030 fi
2031
2032 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
2033
2034 fi
2035
2036
2037 eval "$ac_cv_use_freetype"
2038 if test "$no_cache" != 1; then
2039 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2040 fi
2041
2042 if test "$wxUSE_FREETYPE" = yes; then
2043 echo "$ac_t""yes" 1>&6
2044 elif test "$wxUSE_FREETYPE" = no; then
2045 echo "$ac_t""no" 1>&6
2046 elif test "$wxUSE_FREETYPE" = sys; then
2047 echo "$ac_t""system version" 1>&6
2048 elif test "$wxUSE_FREETYPE" = builtin; then
2049 echo "$ac_t""builtin version" 1>&6
2050 else
2051 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2052 fi
2053
2054
2055 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2056 echo "configure:2057: checking for --with-opengl" >&5
2057 no_cache=0
2058 # Check whether --with-opengl or --without-opengl was given.
2059 if test "${with_opengl+set}" = set; then
2060 withval="$with_opengl"
2061
2062 if test "$withval" = yes; then
2063 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2064 else
2065 ac_cv_use_opengl='wxUSE_OPENGL=no'
2066 fi
2067
2068 else
2069
2070 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2071 if test "x$LINE" != x ; then
2072 eval "DEFAULT_$LINE"
2073 else
2074 no_cache=1
2075 fi
2076
2077 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2078
2079 fi
2080
2081
2082 eval "$ac_cv_use_opengl"
2083 if test "$no_cache" != 1; then
2084 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2085 fi
2086
2087 if test "$wxUSE_OPENGL" = yes; then
2088 echo "$ac_t""yes" 1>&6
2089 else
2090 echo "$ac_t""no" 1>&6
2091 fi
2092
2093
2094 fi
2095
2096
2097 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2098 echo "configure:2099: checking for --with-dmalloc" >&5
2099 no_cache=0
2100 # Check whether --with-dmalloc or --without-dmalloc was given.
2101 if test "${with_dmalloc+set}" = set; then
2102 withval="$with_dmalloc"
2103
2104 if test "$withval" = yes; then
2105 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2106 else
2107 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2108 fi
2109
2110 else
2111
2112 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2113 if test "x$LINE" != x ; then
2114 eval "DEFAULT_$LINE"
2115 else
2116 no_cache=1
2117 fi
2118
2119 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2120
2121 fi
2122
2123
2124 eval "$ac_cv_use_dmalloc"
2125 if test "$no_cache" != 1; then
2126 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2127 fi
2128
2129 if test "$wxUSE_DMALLOC" = yes; then
2130 echo "$ac_t""yes" 1>&6
2131 else
2132 echo "$ac_t""no" 1>&6
2133 fi
2134
2135
2136 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2137 echo "configure:2138: checking for --with-regex" >&5
2138 no_cache=0
2139 # Check whether --with-regex or --without-regex was given.
2140 if test "${with_regex+set}" = set; then
2141 withval="$with_regex"
2142
2143 if test "$withval" = yes; then
2144 ac_cv_use_regex='wxUSE_REGEX=yes'
2145 elif test "$withval" = no; then
2146 ac_cv_use_regex='wxUSE_REGEX=no'
2147 elif test "$withval" = sys; then
2148 ac_cv_use_regex='wxUSE_REGEX=sys'
2149 elif test "$withval" = builtin; then
2150 ac_cv_use_regex='wxUSE_REGEX=builtin'
2151 else
2152 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2153 fi
2154
2155 else
2156
2157 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2158 if test "x$LINE" != x ; then
2159 eval "DEFAULT_$LINE"
2160 else
2161 no_cache=1
2162 fi
2163
2164 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2165
2166 fi
2167
2168
2169 eval "$ac_cv_use_regex"
2170 if test "$no_cache" != 1; then
2171 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2172 fi
2173
2174 if test "$wxUSE_REGEX" = yes; then
2175 echo "$ac_t""yes" 1>&6
2176 elif test "$wxUSE_REGEX" = no; then
2177 echo "$ac_t""no" 1>&6
2178 elif test "$wxUSE_REGEX" = sys; then
2179 echo "$ac_t""system version" 1>&6
2180 elif test "$wxUSE_REGEX" = builtin; then
2181 echo "$ac_t""builtin version" 1>&6
2182 else
2183 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2184 fi
2185
2186
2187 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2188 echo "configure:2189: checking for --with-zlib" >&5
2189 no_cache=0
2190 # Check whether --with-zlib or --without-zlib was given.
2191 if test "${with_zlib+set}" = set; then
2192 withval="$with_zlib"
2193
2194 if test "$withval" = yes; then
2195 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2196 elif test "$withval" = no; then
2197 ac_cv_use_zlib='wxUSE_ZLIB=no'
2198 elif test "$withval" = sys; then
2199 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2200 elif test "$withval" = builtin; then
2201 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2202 else
2203 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2204 fi
2205
2206 else
2207
2208 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2209 if test "x$LINE" != x ; then
2210 eval "DEFAULT_$LINE"
2211 else
2212 no_cache=1
2213 fi
2214
2215 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2216
2217 fi
2218
2219
2220 eval "$ac_cv_use_zlib"
2221 if test "$no_cache" != 1; then
2222 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2223 fi
2224
2225 if test "$wxUSE_ZLIB" = yes; then
2226 echo "$ac_t""yes" 1>&6
2227 elif test "$wxUSE_ZLIB" = no; then
2228 echo "$ac_t""no" 1>&6
2229 elif test "$wxUSE_ZLIB" = sys; then
2230 echo "$ac_t""system version" 1>&6
2231 elif test "$wxUSE_ZLIB" = builtin; then
2232 echo "$ac_t""builtin version" 1>&6
2233 else
2234 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2235 fi
2236
2237
2238 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2239 echo "configure:2240: checking for --with-odbc" >&5
2240 no_cache=0
2241 # Check whether --with-odbc or --without-odbc was given.
2242 if test "${with_odbc+set}" = set; then
2243 withval="$with_odbc"
2244
2245 if test "$withval" = yes; then
2246 ac_cv_use_odbc='wxUSE_ODBC=yes'
2247 else
2248 ac_cv_use_odbc='wxUSE_ODBC=no'
2249 fi
2250
2251 else
2252
2253 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2254 if test "x$LINE" != x ; then
2255 eval "DEFAULT_$LINE"
2256 else
2257 no_cache=1
2258 fi
2259
2260 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2261
2262 fi
2263
2264
2265 eval "$ac_cv_use_odbc"
2266 if test "$no_cache" != 1; then
2267 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2268 fi
2269
2270 if test "$wxUSE_ODBC" = yes; then
2271 echo "$ac_t""yes" 1>&6
2272 else
2273 echo "$ac_t""no" 1>&6
2274 fi
2275
2276
2277
2278
2279 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2280 echo "configure:2281: checking for --enable-shared" >&5
2281 no_cache=0
2282 # Check whether --enable-shared or --disable-shared was given.
2283 if test "${enable_shared+set}" = set; then
2284 enableval="$enable_shared"
2285
2286 if test "$enableval" = yes; then
2287 ac_cv_use_shared='wxUSE_SHARED=yes'
2288 else
2289 ac_cv_use_shared='wxUSE_SHARED=no'
2290 fi
2291
2292 else
2293
2294 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2295 if test "x$LINE" != x ; then
2296 eval "DEFAULT_$LINE"
2297 else
2298 no_cache=1
2299 fi
2300
2301 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2302
2303 fi
2304
2305
2306 eval "$ac_cv_use_shared"
2307 if test "$no_cache" != 1; then
2308 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2309 fi
2310
2311 if test "$wxUSE_SHARED" = yes; then
2312 echo "$ac_t""yes" 1>&6
2313 else
2314 echo "$ac_t""no" 1>&6
2315 fi
2316
2317
2318 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2319 echo "configure:2320: checking for --enable-soname" >&5
2320 no_cache=0
2321 # Check whether --enable-soname or --disable-soname was given.
2322 if test "${enable_soname+set}" = set; then
2323 enableval="$enable_soname"
2324
2325 if test "$enableval" = yes; then
2326 ac_cv_use_soname='wxUSE_SONAME=yes'
2327 else
2328 ac_cv_use_soname='wxUSE_SONAME=no'
2329 fi
2330
2331 else
2332
2333 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2334 if test "x$LINE" != x ; then
2335 eval "DEFAULT_$LINE"
2336 else
2337 no_cache=1
2338 fi
2339
2340 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2341
2342 fi
2343
2344
2345 eval "$ac_cv_use_soname"
2346 if test "$no_cache" != 1; then
2347 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2348 fi
2349
2350 if test "$wxUSE_SONAME" = yes; then
2351 echo "$ac_t""yes" 1>&6
2352 else
2353 echo "$ac_t""no" 1>&6
2354 fi
2355
2356
2357 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2358 echo "configure:2359: checking for --enable-optimise" >&5
2359 no_cache=0
2360 # Check whether --enable-optimise or --disable-optimise was given.
2361 if test "${enable_optimise+set}" = set; then
2362 enableval="$enable_optimise"
2363
2364 if test "$enableval" = yes; then
2365 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2366 else
2367 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2368 fi
2369
2370 else
2371
2372 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2373 if test "x$LINE" != x ; then
2374 eval "DEFAULT_$LINE"
2375 else
2376 no_cache=1
2377 fi
2378
2379 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2380
2381 fi
2382
2383
2384 eval "$ac_cv_use_optimise"
2385 if test "$no_cache" != 1; then
2386 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2387 fi
2388
2389 if test "$wxUSE_OPTIMISE" = yes; then
2390 echo "$ac_t""yes" 1>&6
2391 else
2392 echo "$ac_t""no" 1>&6
2393 fi
2394
2395
2396 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2397 echo "configure:2398: checking for --enable-debug" >&5
2398 no_cache=0
2399 # Check whether --enable-debug or --disable-debug was given.
2400 if test "${enable_debug+set}" = set; then
2401 enableval="$enable_debug"
2402
2403 if test "$enableval" = yes; then
2404 ac_cv_use_debug='wxUSE_DEBUG=yes'
2405 else
2406 ac_cv_use_debug='wxUSE_DEBUG=no'
2407 fi
2408
2409 else
2410
2411 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2412 if test "x$LINE" != x ; then
2413 eval "DEFAULT_$LINE"
2414 else
2415 no_cache=1
2416 fi
2417
2418 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2419
2420 fi
2421
2422
2423 eval "$ac_cv_use_debug"
2424 if test "$no_cache" != 1; then
2425 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2426 fi
2427
2428 if test "$wxUSE_DEBUG" = yes; then
2429 echo "$ac_t""yes" 1>&6
2430 else
2431 echo "$ac_t""no" 1>&6
2432 fi
2433
2434
2435
2436 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2437 echo "configure:2438: checking for --enable-precomp" >&5
2438 no_cache=0
2439 # Check whether --enable-precomp or --disable-precomp was given.
2440 if test "${enable_precomp+set}" = set; then
2441 enableval="$enable_precomp"
2442
2443 if test "$enableval" = yes; then
2444 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2445 else
2446 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2447 fi
2448
2449 else
2450
2451 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2452 if test "x$LINE" != x ; then
2453 eval "DEFAULT_$LINE"
2454 else
2455 no_cache=1
2456 fi
2457
2458 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2459
2460 fi
2461
2462
2463 eval "$ac_cv_use_precomp"
2464 if test "$no_cache" != 1; then
2465 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2466 fi
2467
2468 if test "$wxUSE_PRECOMP" = yes; then
2469 echo "$ac_t""yes" 1>&6
2470 else
2471 echo "$ac_t""no" 1>&6
2472 fi
2473
2474
2475 if test "$wxUSE_DEBUG" = "yes"; then
2476 DEFAULT_wxUSE_DEBUG_FLAG=yes
2477 DEFAULT_wxUSE_DEBUG_INFO=yes
2478 elif test "$wxUSE_DEBUG" = "no"; then
2479 DEFAULT_wxUSE_DEBUG_FLAG=no
2480 DEFAULT_wxUSE_DEBUG_INFO=no
2481 fi
2482
2483
2484 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2485 echo "configure:2486: checking for --enable-debug_flag" >&5
2486 no_cache=0
2487 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2488 if test "${enable_debug_flag+set}" = set; then
2489 enableval="$enable_debug_flag"
2490
2491 if test "$enableval" = yes; then
2492 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2493 else
2494 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2495 fi
2496
2497 else
2498
2499 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2500 if test "x$LINE" != x ; then
2501 eval "DEFAULT_$LINE"
2502 else
2503 no_cache=1
2504 fi
2505
2506 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2507
2508 fi
2509
2510
2511 eval "$ac_cv_use_debug_flag"
2512 if test "$no_cache" != 1; then
2513 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2514 fi
2515
2516 if test "$wxUSE_DEBUG_FLAG" = yes; then
2517 echo "$ac_t""yes" 1>&6
2518 else
2519 echo "$ac_t""no" 1>&6
2520 fi
2521
2522
2523 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2524 echo "configure:2525: checking for --enable-debug_info" >&5
2525 no_cache=0
2526 # Check whether --enable-debug_info or --disable-debug_info was given.
2527 if test "${enable_debug_info+set}" = set; then
2528 enableval="$enable_debug_info"
2529
2530 if test "$enableval" = yes; then
2531 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2532 else
2533 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2534 fi
2535
2536 else
2537
2538 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2539 if test "x$LINE" != x ; then
2540 eval "DEFAULT_$LINE"
2541 else
2542 no_cache=1
2543 fi
2544
2545 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2546
2547 fi
2548
2549
2550 eval "$ac_cv_use_debug_info"
2551 if test "$no_cache" != 1; then
2552 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2553 fi
2554
2555 if test "$wxUSE_DEBUG_INFO" = yes; then
2556 echo "$ac_t""yes" 1>&6
2557 else
2558 echo "$ac_t""no" 1>&6
2559 fi
2560
2561
2562 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2563 echo "configure:2564: checking for --enable-debug_gdb" >&5
2564 no_cache=0
2565 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2566 if test "${enable_debug_gdb+set}" = set; then
2567 enableval="$enable_debug_gdb"
2568
2569 if test "$enableval" = yes; then
2570 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2571 else
2572 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2573 fi
2574
2575 else
2576
2577 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2578 if test "x$LINE" != x ; then
2579 eval "DEFAULT_$LINE"
2580 else
2581 no_cache=1
2582 fi
2583
2584 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2585
2586 fi
2587
2588
2589 eval "$ac_cv_use_debug_gdb"
2590 if test "$no_cache" != 1; then
2591 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2592 fi
2593
2594 if test "$wxUSE_DEBUG_GDB" = yes; then
2595 echo "$ac_t""yes" 1>&6
2596 else
2597 echo "$ac_t""no" 1>&6
2598 fi
2599
2600
2601 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2602 echo "configure:2603: checking for --enable-debug_cntxt" >&5
2603 no_cache=0
2604 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2605 if test "${enable_debug_cntxt+set}" = set; then
2606 enableval="$enable_debug_cntxt"
2607
2608 if test "$enableval" = yes; then
2609 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2610 else
2611 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2612 fi
2613
2614 else
2615
2616 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2617 if test "x$LINE" != x ; then
2618 eval "DEFAULT_$LINE"
2619 else
2620 no_cache=1
2621 fi
2622
2623 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2624
2625 fi
2626
2627
2628 eval "$ac_cv_use_debug_cntxt"
2629 if test "$no_cache" != 1; then
2630 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2631 fi
2632
2633 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2634 echo "$ac_t""yes" 1>&6
2635 else
2636 echo "$ac_t""no" 1>&6
2637 fi
2638
2639
2640 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2641 echo "configure:2642: checking for --enable-mem_tracing" >&5
2642 no_cache=0
2643 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2644 if test "${enable_mem_tracing+set}" = set; then
2645 enableval="$enable_mem_tracing"
2646
2647 if test "$enableval" = yes; then
2648 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2649 else
2650 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2651 fi
2652
2653 else
2654
2655 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2656 if test "x$LINE" != x ; then
2657 eval "DEFAULT_$LINE"
2658 else
2659 no_cache=1
2660 fi
2661
2662 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2663
2664 fi
2665
2666
2667 eval "$ac_cv_use_mem_tracing"
2668 if test "$no_cache" != 1; then
2669 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2670 fi
2671
2672 if test "$wxUSE_MEM_TRACING" = yes; then
2673 echo "$ac_t""yes" 1>&6
2674 else
2675 echo "$ac_t""no" 1>&6
2676 fi
2677
2678
2679 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2680 echo "configure:2681: checking for --enable-profile" >&5
2681 no_cache=0
2682 # Check whether --enable-profile or --disable-profile was given.
2683 if test "${enable_profile+set}" = set; then
2684 enableval="$enable_profile"
2685
2686 if test "$enableval" = yes; then
2687 ac_cv_use_profile='wxUSE_PROFILE=yes'
2688 else
2689 ac_cv_use_profile='wxUSE_PROFILE=no'
2690 fi
2691
2692 else
2693
2694 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2695 if test "x$LINE" != x ; then
2696 eval "DEFAULT_$LINE"
2697 else
2698 no_cache=1
2699 fi
2700
2701 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2702
2703 fi
2704
2705
2706 eval "$ac_cv_use_profile"
2707 if test "$no_cache" != 1; then
2708 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2709 fi
2710
2711 if test "$wxUSE_PROFILE" = yes; then
2712 echo "$ac_t""yes" 1>&6
2713 else
2714 echo "$ac_t""no" 1>&6
2715 fi
2716
2717
2718 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2719 echo "configure:2720: checking for --enable-no_rtti" >&5
2720 no_cache=0
2721 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2722 if test "${enable_no_rtti+set}" = set; then
2723 enableval="$enable_no_rtti"
2724
2725 if test "$enableval" = yes; then
2726 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2727 else
2728 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2729 fi
2730
2731 else
2732
2733 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2734 if test "x$LINE" != x ; then
2735 eval "DEFAULT_$LINE"
2736 else
2737 no_cache=1
2738 fi
2739
2740 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2741
2742 fi
2743
2744
2745 eval "$ac_cv_use_no_rtti"
2746 if test "$no_cache" != 1; then
2747 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2748 fi
2749
2750 if test "$wxUSE_NO_RTTI" = yes; then
2751 echo "$ac_t""yes" 1>&6
2752 else
2753 echo "$ac_t""no" 1>&6
2754 fi
2755
2756
2757 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2758 echo "configure:2759: checking for --enable-no_exceptions" >&5
2759 no_cache=0
2760 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2761 if test "${enable_no_exceptions+set}" = set; then
2762 enableval="$enable_no_exceptions"
2763
2764 if test "$enableval" = yes; then
2765 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2766 else
2767 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2768 fi
2769
2770 else
2771
2772 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2773 if test "x$LINE" != x ; then
2774 eval "DEFAULT_$LINE"
2775 else
2776 no_cache=1
2777 fi
2778
2779 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2780
2781 fi
2782
2783
2784 eval "$ac_cv_use_no_exceptions"
2785 if test "$no_cache" != 1; then
2786 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2787 fi
2788
2789 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2790 echo "$ac_t""yes" 1>&6
2791 else
2792 echo "$ac_t""no" 1>&6
2793 fi
2794
2795
2796 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2797 echo "configure:2798: checking for --enable-permissive" >&5
2798 no_cache=0
2799 # Check whether --enable-permissive or --disable-permissive was given.
2800 if test "${enable_permissive+set}" = set; then
2801 enableval="$enable_permissive"
2802
2803 if test "$enableval" = yes; then
2804 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2805 else
2806 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2807 fi
2808
2809 else
2810
2811 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2812 if test "x$LINE" != x ; then
2813 eval "DEFAULT_$LINE"
2814 else
2815 no_cache=1
2816 fi
2817
2818 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2819
2820 fi
2821
2822
2823 eval "$ac_cv_use_permissive"
2824 if test "$no_cache" != 1; then
2825 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2826 fi
2827
2828 if test "$wxUSE_PERMISSIVE" = yes; then
2829 echo "$ac_t""yes" 1>&6
2830 else
2831 echo "$ac_t""no" 1>&6
2832 fi
2833
2834
2835 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2836 echo "configure:2837: checking for --enable-no_deps" >&5
2837 no_cache=0
2838 # Check whether --enable-no_deps or --disable-no_deps was given.
2839 if test "${enable_no_deps+set}" = set; then
2840 enableval="$enable_no_deps"
2841
2842 if test "$enableval" = yes; then
2843 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2844 else
2845 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2846 fi
2847
2848 else
2849
2850 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2851 if test "x$LINE" != x ; then
2852 eval "DEFAULT_$LINE"
2853 else
2854 no_cache=1
2855 fi
2856
2857 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2858
2859 fi
2860
2861
2862 eval "$ac_cv_use_no_deps"
2863 if test "$no_cache" != 1; then
2864 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2865 fi
2866
2867 if test "$wxUSE_NO_DEPS" = yes; then
2868 echo "$ac_t""yes" 1>&6
2869 else
2870 echo "$ac_t""no" 1>&6
2871 fi
2872
2873
2874
2875 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2876 echo "configure:2877: checking for --enable-compat20" >&5
2877 no_cache=0
2878 # Check whether --enable-compat20 or --disable-compat20 was given.
2879 if test "${enable_compat20+set}" = set; then
2880 enableval="$enable_compat20"
2881
2882 if test "$enableval" = yes; then
2883 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2884 else
2885 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2886 fi
2887
2888 else
2889
2890 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2891 if test "x$LINE" != x ; then
2892 eval "DEFAULT_$LINE"
2893 else
2894 no_cache=1
2895 fi
2896
2897 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2898
2899 fi
2900
2901
2902 eval "$ac_cv_use_compat20"
2903 if test "$no_cache" != 1; then
2904 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2905 fi
2906
2907 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2908 echo "$ac_t""yes" 1>&6
2909 else
2910 echo "$ac_t""no" 1>&6
2911 fi
2912
2913
2914 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2915 echo "configure:2916: checking for --enable-compat22" >&5
2916 no_cache=0
2917 # Check whether --enable-compat22 or --disable-compat22 was given.
2918 if test "${enable_compat22+set}" = set; then
2919 enableval="$enable_compat22"
2920
2921 if test "$enableval" = yes; then
2922 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2923 else
2924 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2925 fi
2926
2927 else
2928
2929 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2930 if test "x$LINE" != x ; then
2931 eval "DEFAULT_$LINE"
2932 else
2933 no_cache=1
2934 fi
2935
2936 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2937
2938 fi
2939
2940
2941 eval "$ac_cv_use_compat22"
2942 if test "$no_cache" != 1; then
2943 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2944 fi
2945
2946 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2947 echo "$ac_t""yes" 1>&6
2948 else
2949 echo "$ac_t""no" 1>&6
2950 fi
2951
2952
2953
2954
2955 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2956 echo "configure:2957: checking for --enable-intl" >&5
2957 no_cache=0
2958 # Check whether --enable-intl or --disable-intl was given.
2959 if test "${enable_intl+set}" = set; then
2960 enableval="$enable_intl"
2961
2962 if test "$enableval" = yes; then
2963 ac_cv_use_intl='wxUSE_INTL=yes'
2964 else
2965 ac_cv_use_intl='wxUSE_INTL=no'
2966 fi
2967
2968 else
2969
2970 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2971 if test "x$LINE" != x ; then
2972 eval "DEFAULT_$LINE"
2973 else
2974 no_cache=1
2975 fi
2976
2977 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2978
2979 fi
2980
2981
2982 eval "$ac_cv_use_intl"
2983 if test "$no_cache" != 1; then
2984 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2985 fi
2986
2987 if test "$wxUSE_INTL" = yes; then
2988 echo "$ac_t""yes" 1>&6
2989 else
2990 echo "$ac_t""no" 1>&6
2991 fi
2992
2993
2994 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
2995 echo "configure:2996: checking for --enable-config" >&5
2996 no_cache=0
2997 # Check whether --enable-config or --disable-config was given.
2998 if test "${enable_config+set}" = set; then
2999 enableval="$enable_config"
3000
3001 if test "$enableval" = yes; then
3002 ac_cv_use_config='wxUSE_CONFIG=yes'
3003 else
3004 ac_cv_use_config='wxUSE_CONFIG=no'
3005 fi
3006
3007 else
3008
3009 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3010 if test "x$LINE" != x ; then
3011 eval "DEFAULT_$LINE"
3012 else
3013 no_cache=1
3014 fi
3015
3016 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3017
3018 fi
3019
3020
3021 eval "$ac_cv_use_config"
3022 if test "$no_cache" != 1; then
3023 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3024 fi
3025
3026 if test "$wxUSE_CONFIG" = yes; then
3027 echo "$ac_t""yes" 1>&6
3028 else
3029 echo "$ac_t""no" 1>&6
3030 fi
3031
3032
3033
3034 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3035 echo "configure:3036: checking for --enable-sockets" >&5
3036 no_cache=0
3037 # Check whether --enable-sockets or --disable-sockets was given.
3038 if test "${enable_sockets+set}" = set; then
3039 enableval="$enable_sockets"
3040
3041 if test "$enableval" = yes; then
3042 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3043 else
3044 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3045 fi
3046
3047 else
3048
3049 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3050 if test "x$LINE" != x ; then
3051 eval "DEFAULT_$LINE"
3052 else
3053 no_cache=1
3054 fi
3055
3056 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3057
3058 fi
3059
3060
3061 eval "$ac_cv_use_sockets"
3062 if test "$no_cache" != 1; then
3063 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3064 fi
3065
3066 if test "$wxUSE_SOCKETS" = yes; then
3067 echo "$ac_t""yes" 1>&6
3068 else
3069 echo "$ac_t""no" 1>&6
3070 fi
3071
3072
3073
3074 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3075 echo "configure:3076: checking for --enable-ipc" >&5
3076 no_cache=0
3077 # Check whether --enable-ipc or --disable-ipc was given.
3078 if test "${enable_ipc+set}" = set; then
3079 enableval="$enable_ipc"
3080
3081 if test "$enableval" = yes; then
3082 ac_cv_use_ipc='wxUSE_IPC=yes'
3083 else
3084 ac_cv_use_ipc='wxUSE_IPC=no'
3085 fi
3086
3087 else
3088
3089 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3090 if test "x$LINE" != x ; then
3091 eval "DEFAULT_$LINE"
3092 else
3093 no_cache=1
3094 fi
3095
3096 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3097
3098 fi
3099
3100
3101 eval "$ac_cv_use_ipc"
3102 if test "$no_cache" != 1; then
3103 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3104 fi
3105
3106 if test "$wxUSE_IPC" = yes; then
3107 echo "$ac_t""yes" 1>&6
3108 else
3109 echo "$ac_t""no" 1>&6
3110 fi
3111
3112
3113
3114 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3115 echo "configure:3116: checking for --enable-cmdline" >&5
3116 no_cache=0
3117 # Check whether --enable-cmdline or --disable-cmdline was given.
3118 if test "${enable_cmdline+set}" = set; then
3119 enableval="$enable_cmdline"
3120
3121 if test "$enableval" = yes; then
3122 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3123 else
3124 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3125 fi
3126
3127 else
3128
3129 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3130 if test "x$LINE" != x ; then
3131 eval "DEFAULT_$LINE"
3132 else
3133 no_cache=1
3134 fi
3135
3136 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3137
3138 fi
3139
3140
3141 eval "$ac_cv_use_cmdline"
3142 if test "$no_cache" != 1; then
3143 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3144 fi
3145
3146 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3147 echo "$ac_t""yes" 1>&6
3148 else
3149 echo "$ac_t""no" 1>&6
3150 fi
3151
3152
3153 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3154 echo "configure:3155: checking for --enable-datetime" >&5
3155 no_cache=0
3156 # Check whether --enable-datetime or --disable-datetime was given.
3157 if test "${enable_datetime+set}" = set; then
3158 enableval="$enable_datetime"
3159
3160 if test "$enableval" = yes; then
3161 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3162 else
3163 ac_cv_use_datetime='wxUSE_DATETIME=no'
3164 fi
3165
3166 else
3167
3168 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3169 if test "x$LINE" != x ; then
3170 eval "DEFAULT_$LINE"
3171 else
3172 no_cache=1
3173 fi
3174
3175 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3176
3177 fi
3178
3179
3180 eval "$ac_cv_use_datetime"
3181 if test "$no_cache" != 1; then
3182 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3183 fi
3184
3185 if test "$wxUSE_DATETIME" = yes; then
3186 echo "$ac_t""yes" 1>&6
3187 else
3188 echo "$ac_t""no" 1>&6
3189 fi
3190
3191
3192 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3193 echo "configure:3194: checking for --enable-timedate" >&5
3194 no_cache=0
3195 # Check whether --enable-timedate or --disable-timedate was given.
3196 if test "${enable_timedate+set}" = set; then
3197 enableval="$enable_timedate"
3198
3199 if test "$enableval" = yes; then
3200 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3201 else
3202 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3203 fi
3204
3205 else
3206
3207 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3208 if test "x$LINE" != x ; then
3209 eval "DEFAULT_$LINE"
3210 else
3211 no_cache=1
3212 fi
3213
3214 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3215
3216 fi
3217
3218
3219 eval "$ac_cv_use_timedate"
3220 if test "$no_cache" != 1; then
3221 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3222 fi
3223
3224 if test "$wxUSE_TIMEDATE" = yes; then
3225 echo "$ac_t""yes" 1>&6
3226 else
3227 echo "$ac_t""no" 1>&6
3228 fi
3229
3230
3231 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3232 echo "configure:3233: checking for --enable-stopwatch" >&5
3233 no_cache=0
3234 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3235 if test "${enable_stopwatch+set}" = set; then
3236 enableval="$enable_stopwatch"
3237
3238 if test "$enableval" = yes; then
3239 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3240 else
3241 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3242 fi
3243
3244 else
3245
3246 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3247 if test "x$LINE" != x ; then
3248 eval "DEFAULT_$LINE"
3249 else
3250 no_cache=1
3251 fi
3252
3253 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3254
3255 fi
3256
3257
3258 eval "$ac_cv_use_stopwatch"
3259 if test "$no_cache" != 1; then
3260 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3261 fi
3262
3263 if test "$wxUSE_STOPWATCH" = yes; then
3264 echo "$ac_t""yes" 1>&6
3265 else
3266 echo "$ac_t""no" 1>&6
3267 fi
3268
3269
3270 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3271 echo "configure:3272: checking for --enable-dialupman" >&5
3272 no_cache=0
3273 # Check whether --enable-dialupman or --disable-dialupman was given.
3274 if test "${enable_dialupman+set}" = set; then
3275 enableval="$enable_dialupman"
3276
3277 if test "$enableval" = yes; then
3278 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3279 else
3280 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3281 fi
3282
3283 else
3284
3285 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3286 if test "x$LINE" != x ; then
3287 eval "DEFAULT_$LINE"
3288 else
3289 no_cache=1
3290 fi
3291
3292 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3293
3294 fi
3295
3296
3297 eval "$ac_cv_use_dialupman"
3298 if test "$no_cache" != 1; then
3299 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3300 fi
3301
3302 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3303 echo "$ac_t""yes" 1>&6
3304 else
3305 echo "$ac_t""no" 1>&6
3306 fi
3307
3308
3309 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3310 echo "configure:3311: checking for --enable-apple_ieee" >&5
3311 no_cache=0
3312 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3313 if test "${enable_apple_ieee+set}" = set; then
3314 enableval="$enable_apple_ieee"
3315
3316 if test "$enableval" = yes; then
3317 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3318 else
3319 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3320 fi
3321
3322 else
3323
3324 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3325 if test "x$LINE" != x ; then
3326 eval "DEFAULT_$LINE"
3327 else
3328 no_cache=1
3329 fi
3330
3331 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3332
3333 fi
3334
3335
3336 eval "$ac_cv_use_apple_ieee"
3337 if test "$no_cache" != 1; then
3338 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3339 fi
3340
3341 if test "$wxUSE_APPLE_IEEE" = yes; then
3342 echo "$ac_t""yes" 1>&6
3343 else
3344 echo "$ac_t""no" 1>&6
3345 fi
3346
3347
3348 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3349 echo "configure:3350: checking for --enable-timer" >&5
3350 no_cache=0
3351 # Check whether --enable-timer or --disable-timer was given.
3352 if test "${enable_timer+set}" = set; then
3353 enableval="$enable_timer"
3354
3355 if test "$enableval" = yes; then
3356 ac_cv_use_timer='wxUSE_TIMER=yes'
3357 else
3358 ac_cv_use_timer='wxUSE_TIMER=no'
3359 fi
3360
3361 else
3362
3363 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3364 if test "x$LINE" != x ; then
3365 eval "DEFAULT_$LINE"
3366 else
3367 no_cache=1
3368 fi
3369
3370 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3371
3372 fi
3373
3374
3375 eval "$ac_cv_use_timer"
3376 if test "$no_cache" != 1; then
3377 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3378 fi
3379
3380 if test "$wxUSE_TIMER" = yes; then
3381 echo "$ac_t""yes" 1>&6
3382 else
3383 echo "$ac_t""no" 1>&6
3384 fi
3385
3386
3387 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3388 echo "configure:3389: checking for --enable-wave" >&5
3389 no_cache=0
3390 # Check whether --enable-wave or --disable-wave was given.
3391 if test "${enable_wave+set}" = set; then
3392 enableval="$enable_wave"
3393
3394 if test "$enableval" = yes; then
3395 ac_cv_use_wave='wxUSE_WAVE=yes'
3396 else
3397 ac_cv_use_wave='wxUSE_WAVE=no'
3398 fi
3399
3400 else
3401
3402 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3403 if test "x$LINE" != x ; then
3404 eval "DEFAULT_$LINE"
3405 else
3406 no_cache=1
3407 fi
3408
3409 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3410
3411 fi
3412
3413
3414 eval "$ac_cv_use_wave"
3415 if test "$no_cache" != 1; then
3416 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3417 fi
3418
3419 if test "$wxUSE_WAVE" = yes; then
3420 echo "$ac_t""yes" 1>&6
3421 else
3422 echo "$ac_t""no" 1>&6
3423 fi
3424
3425
3426 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3427 echo "configure:3428: checking for --enable-fraction" >&5
3428 no_cache=0
3429 # Check whether --enable-fraction or --disable-fraction was given.
3430 if test "${enable_fraction+set}" = set; then
3431 enableval="$enable_fraction"
3432
3433 if test "$enableval" = yes; then
3434 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3435 else
3436 ac_cv_use_fraction='wxUSE_FRACTION=no'
3437 fi
3438
3439 else
3440
3441 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3442 if test "x$LINE" != x ; then
3443 eval "DEFAULT_$LINE"
3444 else
3445 no_cache=1
3446 fi
3447
3448 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3449
3450 fi
3451
3452
3453 eval "$ac_cv_use_fraction"
3454 if test "$no_cache" != 1; then
3455 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3456 fi
3457
3458 if test "$wxUSE_FRACTION" = yes; then
3459 echo "$ac_t""yes" 1>&6
3460 else
3461 echo "$ac_t""no" 1>&6
3462 fi
3463
3464
3465 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3466 echo "configure:3467: checking for --enable-dynlib" >&5
3467 no_cache=0
3468 # Check whether --enable-dynlib or --disable-dynlib was given.
3469 if test "${enable_dynlib+set}" = set; then
3470 enableval="$enable_dynlib"
3471
3472 if test "$enableval" = yes; then
3473 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3474 else
3475 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3476 fi
3477
3478 else
3479
3480 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3481 if test "x$LINE" != x ; then
3482 eval "DEFAULT_$LINE"
3483 else
3484 no_cache=1
3485 fi
3486
3487 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3488
3489 fi
3490
3491
3492 eval "$ac_cv_use_dynlib"
3493 if test "$no_cache" != 1; then
3494 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3495 fi
3496
3497 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3498 echo "$ac_t""yes" 1>&6
3499 else
3500 echo "$ac_t""no" 1>&6
3501 fi
3502
3503
3504 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3505 echo "configure:3506: checking for --enable-longlong" >&5
3506 no_cache=0
3507 # Check whether --enable-longlong or --disable-longlong was given.
3508 if test "${enable_longlong+set}" = set; then
3509 enableval="$enable_longlong"
3510
3511 if test "$enableval" = yes; then
3512 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3513 else
3514 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3515 fi
3516
3517 else
3518
3519 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3520 if test "x$LINE" != x ; then
3521 eval "DEFAULT_$LINE"
3522 else
3523 no_cache=1
3524 fi
3525
3526 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3527
3528 fi
3529
3530
3531 eval "$ac_cv_use_longlong"
3532 if test "$no_cache" != 1; then
3533 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3534 fi
3535
3536 if test "$wxUSE_LONGLONG" = yes; then
3537 echo "$ac_t""yes" 1>&6
3538 else
3539 echo "$ac_t""no" 1>&6
3540 fi
3541
3542
3543 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3544 echo "configure:3545: checking for --enable-geometry" >&5
3545 no_cache=0
3546 # Check whether --enable-geometry or --disable-geometry was given.
3547 if test "${enable_geometry+set}" = set; then
3548 enableval="$enable_geometry"
3549
3550 if test "$enableval" = yes; then
3551 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3552 else
3553 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3554 fi
3555
3556 else
3557
3558 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3559 if test "x$LINE" != x ; then
3560 eval "DEFAULT_$LINE"
3561 else
3562 no_cache=1
3563 fi
3564
3565 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3566
3567 fi
3568
3569
3570 eval "$ac_cv_use_geometry"
3571 if test "$no_cache" != 1; then
3572 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3573 fi
3574
3575 if test "$wxUSE_GEOMETRY" = yes; then
3576 echo "$ac_t""yes" 1>&6
3577 else
3578 echo "$ac_t""no" 1>&6
3579 fi
3580
3581
3582 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3583 echo "configure:3584: checking for --enable-log" >&5
3584 no_cache=0
3585 # Check whether --enable-log or --disable-log was given.
3586 if test "${enable_log+set}" = set; then
3587 enableval="$enable_log"
3588
3589 if test "$enableval" = yes; then
3590 ac_cv_use_log='wxUSE_LOG=yes'
3591 else
3592 ac_cv_use_log='wxUSE_LOG=no'
3593 fi
3594
3595 else
3596
3597 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3598 if test "x$LINE" != x ; then
3599 eval "DEFAULT_$LINE"
3600 else
3601 no_cache=1
3602 fi
3603
3604 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3605
3606 fi
3607
3608
3609 eval "$ac_cv_use_log"
3610 if test "$no_cache" != 1; then
3611 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3612 fi
3613
3614 if test "$wxUSE_LOG" = yes; then
3615 echo "$ac_t""yes" 1>&6
3616 else
3617 echo "$ac_t""no" 1>&6
3618 fi
3619
3620
3621 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3622 echo "configure:3623: checking for --enable-streams" >&5
3623 no_cache=0
3624 # Check whether --enable-streams or --disable-streams was given.
3625 if test "${enable_streams+set}" = set; then
3626 enableval="$enable_streams"
3627
3628 if test "$enableval" = yes; then
3629 ac_cv_use_streams='wxUSE_STREAMS=yes'
3630 else
3631 ac_cv_use_streams='wxUSE_STREAMS=no'
3632 fi
3633
3634 else
3635
3636 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3637 if test "x$LINE" != x ; then
3638 eval "DEFAULT_$LINE"
3639 else
3640 no_cache=1
3641 fi
3642
3643 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3644
3645 fi
3646
3647
3648 eval "$ac_cv_use_streams"
3649 if test "$no_cache" != 1; then
3650 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3651 fi
3652
3653 if test "$wxUSE_STREAMS" = yes; then
3654 echo "$ac_t""yes" 1>&6
3655 else
3656 echo "$ac_t""no" 1>&6
3657 fi
3658
3659
3660 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3661 echo "configure:3662: checking for --enable-file" >&5
3662 no_cache=0
3663 # Check whether --enable-file or --disable-file was given.
3664 if test "${enable_file+set}" = set; then
3665 enableval="$enable_file"
3666
3667 if test "$enableval" = yes; then
3668 ac_cv_use_file='wxUSE_FILE=yes'
3669 else
3670 ac_cv_use_file='wxUSE_FILE=no'
3671 fi
3672
3673 else
3674
3675 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3676 if test "x$LINE" != x ; then
3677 eval "DEFAULT_$LINE"
3678 else
3679 no_cache=1
3680 fi
3681
3682 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3683
3684 fi
3685
3686
3687 eval "$ac_cv_use_file"
3688 if test "$no_cache" != 1; then
3689 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3690 fi
3691
3692 if test "$wxUSE_FILE" = yes; then
3693 echo "$ac_t""yes" 1>&6
3694 else
3695 echo "$ac_t""no" 1>&6
3696 fi
3697
3698
3699 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3700 echo "configure:3701: checking for --enable-ffile" >&5
3701 no_cache=0
3702 # Check whether --enable-ffile or --disable-ffile was given.
3703 if test "${enable_ffile+set}" = set; then
3704 enableval="$enable_ffile"
3705
3706 if test "$enableval" = yes; then
3707 ac_cv_use_ffile='wxUSE_FFILE=yes'
3708 else
3709 ac_cv_use_ffile='wxUSE_FFILE=no'
3710 fi
3711
3712 else
3713
3714 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3715 if test "x$LINE" != x ; then
3716 eval "DEFAULT_$LINE"
3717 else
3718 no_cache=1
3719 fi
3720
3721 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3722
3723 fi
3724
3725
3726 eval "$ac_cv_use_ffile"
3727 if test "$no_cache" != 1; then
3728 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3729 fi
3730
3731 if test "$wxUSE_FFILE" = yes; then
3732 echo "$ac_t""yes" 1>&6
3733 else
3734 echo "$ac_t""no" 1>&6
3735 fi
3736
3737
3738 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
3739 echo "configure:3740: checking for --enable-textbuf" >&5
3740 no_cache=0
3741 # Check whether --enable-textbuf or --disable-textbuf was given.
3742 if test "${enable_textbuf+set}" = set; then
3743 enableval="$enable_textbuf"
3744
3745 if test "$enableval" = yes; then
3746 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3747 else
3748 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
3749 fi
3750
3751 else
3752
3753 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
3754 if test "x$LINE" != x ; then
3755 eval "DEFAULT_$LINE"
3756 else
3757 no_cache=1
3758 fi
3759
3760 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
3761
3762 fi
3763
3764
3765 eval "$ac_cv_use_textbuf"
3766 if test "$no_cache" != 1; then
3767 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
3768 fi
3769
3770 if test "$wxUSE_TEXTBUFFER" = yes; then
3771 echo "$ac_t""yes" 1>&6
3772 else
3773 echo "$ac_t""no" 1>&6
3774 fi
3775
3776
3777 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3778 echo "configure:3779: checking for --enable-textfile" >&5
3779 no_cache=0
3780 # Check whether --enable-textfile or --disable-textfile was given.
3781 if test "${enable_textfile+set}" = set; then
3782 enableval="$enable_textfile"
3783
3784 if test "$enableval" = yes; then
3785 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3786 else
3787 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3788 fi
3789
3790 else
3791
3792 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3793 if test "x$LINE" != x ; then
3794 eval "DEFAULT_$LINE"
3795 else
3796 no_cache=1
3797 fi
3798
3799 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3800
3801 fi
3802
3803
3804 eval "$ac_cv_use_textfile"
3805 if test "$no_cache" != 1; then
3806 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3807 fi
3808
3809 if test "$wxUSE_TEXTFILE" = yes; then
3810 echo "$ac_t""yes" 1>&6
3811 else
3812 echo "$ac_t""no" 1>&6
3813 fi
3814
3815
3816 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3817 echo "configure:3818: checking for --enable-fontmap" >&5
3818 no_cache=0
3819 # Check whether --enable-fontmap or --disable-fontmap was given.
3820 if test "${enable_fontmap+set}" = set; then
3821 enableval="$enable_fontmap"
3822
3823 if test "$enableval" = yes; then
3824 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
3825 else
3826 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
3827 fi
3828
3829 else
3830
3831 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
3832 if test "x$LINE" != x ; then
3833 eval "DEFAULT_$LINE"
3834 else
3835 no_cache=1
3836 fi
3837
3838 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
3839
3840 fi
3841
3842
3843 eval "$ac_cv_use_fontmap"
3844 if test "$no_cache" != 1; then
3845 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
3846 fi
3847
3848 if test "$wxUSE_FONTMAP" = yes; then
3849 echo "$ac_t""yes" 1>&6
3850 else
3851 echo "$ac_t""no" 1>&6
3852 fi
3853
3854
3855 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3856 echo "configure:3857: checking for --enable-unicode" >&5
3857 no_cache=0
3858 # Check whether --enable-unicode or --disable-unicode was given.
3859 if test "${enable_unicode+set}" = set; then
3860 enableval="$enable_unicode"
3861
3862 if test "$enableval" = yes; then
3863 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3864 else
3865 ac_cv_use_unicode='wxUSE_UNICODE=no'
3866 fi
3867
3868 else
3869
3870 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3871 if test "x$LINE" != x ; then
3872 eval "DEFAULT_$LINE"
3873 else
3874 no_cache=1
3875 fi
3876
3877 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3878
3879 fi
3880
3881
3882 eval "$ac_cv_use_unicode"
3883 if test "$no_cache" != 1; then
3884 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3885 fi
3886
3887 if test "$wxUSE_UNICODE" = yes; then
3888 echo "$ac_t""yes" 1>&6
3889 else
3890 echo "$ac_t""no" 1>&6
3891 fi
3892
3893
3894 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3895 echo "configure:3896: checking for --enable-wxprintfv" >&5
3896 no_cache=0
3897 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3898 if test "${enable_wxprintfv+set}" = set; then
3899 enableval="$enable_wxprintfv"
3900
3901 if test "$enableval" = yes; then
3902 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3903 else
3904 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3905 fi
3906
3907 else
3908
3909 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3910 if test "x$LINE" != x ; then
3911 eval "DEFAULT_$LINE"
3912 else
3913 no_cache=1
3914 fi
3915
3916 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3917
3918 fi
3919
3920
3921 eval "$ac_cv_use_wxprintfv"
3922 if test "$no_cache" != 1; then
3923 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3924 fi
3925
3926 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3927 echo "$ac_t""yes" 1>&6
3928 else
3929 echo "$ac_t""no" 1>&6
3930 fi
3931
3932
3933 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3934 echo "configure:3935: checking for --enable-std_iostreams" >&5
3935 no_cache=0
3936 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3937 if test "${enable_std_iostreams+set}" = set; then
3938 enableval="$enable_std_iostreams"
3939
3940 if test "$enableval" = yes; then
3941 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3942 else
3943 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3944 fi
3945
3946 else
3947
3948 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3949 if test "x$LINE" != x ; then
3950 eval "DEFAULT_$LINE"
3951 else
3952 no_cache=1
3953 fi
3954
3955 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3956
3957 fi
3958
3959
3960 eval "$ac_cv_use_std_iostreams"
3961 if test "$no_cache" != 1; then
3962 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3963 fi
3964
3965 if test "$wxUSE_STD_IOSTREAM" = yes; then
3966 echo "$ac_t""yes" 1>&6
3967 else
3968 echo "$ac_t""no" 1>&6
3969 fi
3970
3971
3972 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3973 echo "configure:3974: checking for --enable-filesystem" >&5
3974 no_cache=0
3975 # Check whether --enable-filesystem or --disable-filesystem was given.
3976 if test "${enable_filesystem+set}" = set; then
3977 enableval="$enable_filesystem"
3978
3979 if test "$enableval" = yes; then
3980 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3981 else
3982 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3983 fi
3984
3985 else
3986
3987 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3988 if test "x$LINE" != x ; then
3989 eval "DEFAULT_$LINE"
3990 else
3991 no_cache=1
3992 fi
3993
3994 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3995
3996 fi
3997
3998
3999 eval "$ac_cv_use_filesystem"
4000 if test "$no_cache" != 1; then
4001 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4002 fi
4003
4004 if test "$wxUSE_FILESYSTEM" = yes; then
4005 echo "$ac_t""yes" 1>&6
4006 else
4007 echo "$ac_t""no" 1>&6
4008 fi
4009
4010
4011 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4012 echo "configure:4013: checking for --enable-fs_inet" >&5
4013 no_cache=0
4014 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4015 if test "${enable_fs_inet+set}" = set; then
4016 enableval="$enable_fs_inet"
4017
4018 if test "$enableval" = yes; then
4019 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4020 else
4021 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4022 fi
4023
4024 else
4025
4026 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4027 if test "x$LINE" != x ; then
4028 eval "DEFAULT_$LINE"
4029 else
4030 no_cache=1
4031 fi
4032
4033 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4034
4035 fi
4036
4037
4038 eval "$ac_cv_use_fs_inet"
4039 if test "$no_cache" != 1; then
4040 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4041 fi
4042
4043 if test "$wxUSE_FS_INET" = yes; then
4044 echo "$ac_t""yes" 1>&6
4045 else
4046 echo "$ac_t""no" 1>&6
4047 fi
4048
4049
4050 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4051 echo "configure:4052: checking for --enable-fs_zip" >&5
4052 no_cache=0
4053 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4054 if test "${enable_fs_zip+set}" = set; then
4055 enableval="$enable_fs_zip"
4056
4057 if test "$enableval" = yes; then
4058 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4059 else
4060 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4061 fi
4062
4063 else
4064
4065 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4066 if test "x$LINE" != x ; then
4067 eval "DEFAULT_$LINE"
4068 else
4069 no_cache=1
4070 fi
4071
4072 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4073
4074 fi
4075
4076
4077 eval "$ac_cv_use_fs_zip"
4078 if test "$no_cache" != 1; then
4079 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4080 fi
4081
4082 if test "$wxUSE_FS_ZIP" = yes; then
4083 echo "$ac_t""yes" 1>&6
4084 else
4085 echo "$ac_t""no" 1>&6
4086 fi
4087
4088
4089 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4090 echo "configure:4091: checking for --enable-zipstream" >&5
4091 no_cache=0
4092 # Check whether --enable-zipstream or --disable-zipstream was given.
4093 if test "${enable_zipstream+set}" = set; then
4094 enableval="$enable_zipstream"
4095
4096 if test "$enableval" = yes; then
4097 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4098 else
4099 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4100 fi
4101
4102 else
4103
4104 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4105 if test "x$LINE" != x ; then
4106 eval "DEFAULT_$LINE"
4107 else
4108 no_cache=1
4109 fi
4110
4111 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4112
4113 fi
4114
4115
4116 eval "$ac_cv_use_zipstream"
4117 if test "$no_cache" != 1; then
4118 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4119 fi
4120
4121 if test "$wxUSE_ZIPSTREAM" = yes; then
4122 echo "$ac_t""yes" 1>&6
4123 else
4124 echo "$ac_t""no" 1>&6
4125 fi
4126
4127
4128
4129 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4130 echo "configure:4131: checking for --enable-catch_segvs" >&5
4131 no_cache=0
4132 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4133 if test "${enable_catch_segvs+set}" = set; then
4134 enableval="$enable_catch_segvs"
4135
4136 if test "$enableval" = yes; then
4137 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4138 else
4139 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4140 fi
4141
4142 else
4143
4144 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4145 if test "x$LINE" != x ; then
4146 eval "DEFAULT_$LINE"
4147 else
4148 no_cache=1
4149 fi
4150
4151 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4152
4153 fi
4154
4155
4156 eval "$ac_cv_use_catch_segvs"
4157 if test "$no_cache" != 1; then
4158 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4159 fi
4160
4161 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4162 echo "$ac_t""yes" 1>&6
4163 else
4164 echo "$ac_t""no" 1>&6
4165 fi
4166
4167
4168 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4169 echo "configure:4170: checking for --enable-snglinst" >&5
4170 no_cache=0
4171 # Check whether --enable-snglinst or --disable-snglinst was given.
4172 if test "${enable_snglinst+set}" = set; then
4173 enableval="$enable_snglinst"
4174
4175 if test "$enableval" = yes; then
4176 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4177 else
4178 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4179 fi
4180
4181 else
4182
4183 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4184 if test "x$LINE" != x ; then
4185 eval "DEFAULT_$LINE"
4186 else
4187 no_cache=1
4188 fi
4189
4190 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4191
4192 fi
4193
4194
4195 eval "$ac_cv_use_snglinst"
4196 if test "$no_cache" != 1; then
4197 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4198 fi
4199
4200 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4201 echo "$ac_t""yes" 1>&6
4202 else
4203 echo "$ac_t""no" 1>&6
4204 fi
4205
4206
4207
4208 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4209 echo "configure:4210: checking for --enable-mimetype" >&5
4210 no_cache=0
4211 # Check whether --enable-mimetype or --disable-mimetype was given.
4212 if test "${enable_mimetype+set}" = set; then
4213 enableval="$enable_mimetype"
4214
4215 if test "$enableval" = yes; then
4216 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4217 else
4218 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4219 fi
4220
4221 else
4222
4223 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4224 if test "x$LINE" != x ; then
4225 eval "DEFAULT_$LINE"
4226 else
4227 no_cache=1
4228 fi
4229
4230 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4231
4232 fi
4233
4234
4235 eval "$ac_cv_use_mimetype"
4236 if test "$no_cache" != 1; then
4237 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4238 fi
4239
4240 if test "$wxUSE_MIMETYPE" = yes; then
4241 echo "$ac_t""yes" 1>&6
4242 else
4243 echo "$ac_t""no" 1>&6
4244 fi
4245
4246
4247 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4248 echo "configure:4249: checking for --enable-system_options" >&5
4249 no_cache=0
4250 # Check whether --enable-system_options or --disable-system_options was given.
4251 if test "${enable_system_options+set}" = set; then
4252 enableval="$enable_system_options"
4253
4254 if test "$enableval" = yes; then
4255 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4256 else
4257 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4258 fi
4259
4260 else
4261
4262 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4263 if test "x$LINE" != x ; then
4264 eval "DEFAULT_$LINE"
4265 else
4266 no_cache=1
4267 fi
4268
4269 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4270
4271 fi
4272
4273
4274 eval "$ac_cv_use_system_options"
4275 if test "$no_cache" != 1; then
4276 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4277 fi
4278
4279 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4280 echo "$ac_t""yes" 1>&6
4281 else
4282 echo "$ac_t""no" 1>&6
4283 fi
4284
4285
4286
4287
4288 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4289 echo "configure:4290: checking for --enable-threads" >&5
4290 no_cache=0
4291 # Check whether --enable-threads or --disable-threads was given.
4292 if test "${enable_threads+set}" = set; then
4293 enableval="$enable_threads"
4294
4295 if test "$enableval" = yes; then
4296 ac_cv_use_threads='wxUSE_THREADS=yes'
4297 else
4298 ac_cv_use_threads='wxUSE_THREADS=no'
4299 fi
4300
4301 else
4302
4303 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4304 if test "x$LINE" != x ; then
4305 eval "DEFAULT_$LINE"
4306 else
4307 no_cache=1
4308 fi
4309
4310 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4311
4312 fi
4313
4314
4315 eval "$ac_cv_use_threads"
4316 if test "$no_cache" != 1; then
4317 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4318 fi
4319
4320 if test "$wxUSE_THREADS" = yes; then
4321 echo "$ac_t""yes" 1>&6
4322 else
4323 echo "$ac_t""no" 1>&6
4324 fi
4325
4326
4327 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
4328 echo "configure:4329: checking for --enable-serial" >&5
4329 no_cache=0
4330 # Check whether --enable-serial or --disable-serial was given.
4331 if test "${enable_serial+set}" = set; then
4332 enableval="$enable_serial"
4333
4334 if test "$enableval" = yes; then
4335 ac_cv_use_serial='wxUSE_SERIAL=yes'
4336 else
4337 ac_cv_use_serial='wxUSE_SERIAL=no'
4338 fi
4339
4340 else
4341
4342 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4343 if test "x$LINE" != x ; then
4344 eval "DEFAULT_$LINE"
4345 else
4346 no_cache=1
4347 fi
4348
4349 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
4350
4351 fi
4352
4353
4354 eval "$ac_cv_use_serial"
4355 if test "$no_cache" != 1; then
4356 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4357 fi
4358
4359 if test "$wxUSE_SERIAL" = yes; then
4360 echo "$ac_t""yes" 1>&6
4361 else
4362 echo "$ac_t""no" 1>&6
4363 fi
4364
4365
4366 if test "$wxUSE_GUI" = "yes"; then
4367
4368
4369
4370 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4371 echo "configure:4372: checking for --enable-docview" >&5
4372 no_cache=0
4373 # Check whether --enable-docview or --disable-docview was given.
4374 if test "${enable_docview+set}" = set; then
4375 enableval="$enable_docview"
4376
4377 if test "$enableval" = yes; then
4378 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4379 else
4380 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4381 fi
4382
4383 else
4384
4385 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4386 if test "x$LINE" != x ; then
4387 eval "DEFAULT_$LINE"
4388 else
4389 no_cache=1
4390 fi
4391
4392 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4393
4394 fi
4395
4396
4397 eval "$ac_cv_use_docview"
4398 if test "$no_cache" != 1; then
4399 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4400 fi
4401
4402 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4403 echo "$ac_t""yes" 1>&6
4404 else
4405 echo "$ac_t""no" 1>&6
4406 fi
4407
4408
4409 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4410 echo "configure:4411: checking for --enable-help" >&5
4411 no_cache=0
4412 # Check whether --enable-help or --disable-help was given.
4413 if test "${enable_help+set}" = set; then
4414 enableval="$enable_help"
4415
4416 if test "$enableval" = yes; then
4417 ac_cv_use_help='wxUSE_HELP=yes'
4418 else
4419 ac_cv_use_help='wxUSE_HELP=no'
4420 fi
4421
4422 else
4423
4424 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4425 if test "x$LINE" != x ; then
4426 eval "DEFAULT_$LINE"
4427 else
4428 no_cache=1
4429 fi
4430
4431 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4432
4433 fi
4434
4435
4436 eval "$ac_cv_use_help"
4437 if test "$no_cache" != 1; then
4438 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4439 fi
4440
4441 if test "$wxUSE_HELP" = yes; then
4442 echo "$ac_t""yes" 1>&6
4443 else
4444 echo "$ac_t""no" 1>&6
4445 fi
4446
4447
4448 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4449 echo "configure:4450: checking for --enable-mshtmlhelp" >&5
4450 no_cache=0
4451 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4452 if test "${enable_mshtmlhelp+set}" = set; then
4453 enableval="$enable_mshtmlhelp"
4454
4455 if test "$enableval" = yes; then
4456 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4457 else
4458 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4459 fi
4460
4461 else
4462
4463 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4464 if test "x$LINE" != x ; then
4465 eval "DEFAULT_$LINE"
4466 else
4467 no_cache=1
4468 fi
4469
4470 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4471
4472 fi
4473
4474
4475 eval "$ac_cv_use_mshtmlhelp"
4476 if test "$no_cache" != 1; then
4477 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4478 fi
4479
4480 if test "$wxUSE_MS_HTML_HELP" = yes; then
4481 echo "$ac_t""yes" 1>&6
4482 else
4483 echo "$ac_t""no" 1>&6
4484 fi
4485
4486
4487 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4488 echo "configure:4489: checking for --enable-html" >&5
4489 no_cache=0
4490 # Check whether --enable-html or --disable-html was given.
4491 if test "${enable_html+set}" = set; then
4492 enableval="$enable_html"
4493
4494 if test "$enableval" = yes; then
4495 ac_cv_use_html='wxUSE_HTML=yes'
4496 else
4497 ac_cv_use_html='wxUSE_HTML=no'
4498 fi
4499
4500 else
4501
4502 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4503 if test "x$LINE" != x ; then
4504 eval "DEFAULT_$LINE"
4505 else
4506 no_cache=1
4507 fi
4508
4509 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4510
4511 fi
4512
4513
4514 eval "$ac_cv_use_html"
4515 if test "$no_cache" != 1; then
4516 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4517 fi
4518
4519 if test "$wxUSE_HTML" = yes; then
4520 echo "$ac_t""yes" 1>&6
4521 else
4522 echo "$ac_t""no" 1>&6
4523 fi
4524
4525
4526 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4527 echo "configure:4528: checking for --enable-htmlhelp" >&5
4528 no_cache=0
4529 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4530 if test "${enable_htmlhelp+set}" = set; then
4531 enableval="$enable_htmlhelp"
4532
4533 if test "$enableval" = yes; then
4534 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4535 else
4536 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4537 fi
4538
4539 else
4540
4541 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4542 if test "x$LINE" != x ; then
4543 eval "DEFAULT_$LINE"
4544 else
4545 no_cache=1
4546 fi
4547
4548 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4549
4550 fi
4551
4552
4553 eval "$ac_cv_use_htmlhelp"
4554 if test "$no_cache" != 1; then
4555 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4556 fi
4557
4558 if test "$wxUSE_WXHTML_HELP" = yes; then
4559 echo "$ac_t""yes" 1>&6
4560 else
4561 echo "$ac_t""no" 1>&6
4562 fi
4563
4564
4565 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4566 echo "configure:4567: checking for --enable-constraints" >&5
4567 no_cache=0
4568 # Check whether --enable-constraints or --disable-constraints was given.
4569 if test "${enable_constraints+set}" = set; then
4570 enableval="$enable_constraints"
4571
4572 if test "$enableval" = yes; then
4573 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4574 else
4575 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4576 fi
4577
4578 else
4579
4580 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4581 if test "x$LINE" != x ; then
4582 eval "DEFAULT_$LINE"
4583 else
4584 no_cache=1
4585 fi
4586
4587 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
4588
4589 fi
4590
4591
4592 eval "$ac_cv_use_constraints"
4593 if test "$no_cache" != 1; then
4594 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4595 fi
4596
4597 if test "$wxUSE_CONSTRAINTS" = yes; then
4598 echo "$ac_t""yes" 1>&6
4599 else
4600 echo "$ac_t""no" 1>&6
4601 fi
4602
4603
4604 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4605 echo "configure:4606: checking for --enable-printarch" >&5
4606 no_cache=0
4607 # Check whether --enable-printarch or --disable-printarch was given.
4608 if test "${enable_printarch+set}" = set; then
4609 enableval="$enable_printarch"
4610
4611 if test "$enableval" = yes; then
4612 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4613 else
4614 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4615 fi
4616
4617 else
4618
4619 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4620 if test "x$LINE" != x ; then
4621 eval "DEFAULT_$LINE"
4622 else
4623 no_cache=1
4624 fi
4625
4626 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
4627
4628 fi
4629
4630
4631 eval "$ac_cv_use_printarch"
4632 if test "$no_cache" != 1; then
4633 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4634 fi
4635
4636 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
4637 echo "$ac_t""yes" 1>&6
4638 else
4639 echo "$ac_t""no" 1>&6
4640 fi
4641
4642
4643 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4644 echo "configure:4645: checking for --enable-mdi" >&5
4645 no_cache=0
4646 # Check whether --enable-mdi or --disable-mdi was given.
4647 if test "${enable_mdi+set}" = set; then
4648 enableval="$enable_mdi"
4649
4650 if test "$enableval" = yes; then
4651 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4652 else
4653 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4654 fi
4655
4656 else
4657
4658 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4659 if test "x$LINE" != x ; then
4660 eval "DEFAULT_$LINE"
4661 else
4662 no_cache=1
4663 fi
4664
4665 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
4666
4667 fi
4668
4669
4670 eval "$ac_cv_use_mdi"
4671 if test "$no_cache" != 1; then
4672 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4673 fi
4674
4675 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
4676 echo "$ac_t""yes" 1>&6
4677 else
4678 echo "$ac_t""no" 1>&6
4679 fi
4680
4681
4682 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4683 echo "configure:4684: checking for --enable-loggui" >&5
4684 no_cache=0
4685 # Check whether --enable-loggui or --disable-loggui was given.
4686 if test "${enable_loggui+set}" = set; then
4687 enableval="$enable_loggui"
4688
4689 if test "$enableval" = yes; then
4690 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4691 else
4692 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4693 fi
4694
4695 else
4696
4697 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4698 if test "x$LINE" != x ; then
4699 eval "DEFAULT_$LINE"
4700 else
4701 no_cache=1
4702 fi
4703
4704 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4705
4706 fi
4707
4708
4709 eval "$ac_cv_use_loggui"
4710 if test "$no_cache" != 1; then
4711 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4712 fi
4713
4714 if test "$wxUSE_LOGGUI" = yes; then
4715 echo "$ac_t""yes" 1>&6
4716 else
4717 echo "$ac_t""no" 1>&6
4718 fi
4719
4720
4721 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4722 echo "configure:4723: checking for --enable-logwin" >&5
4723 no_cache=0
4724 # Check whether --enable-logwin or --disable-logwin was given.
4725 if test "${enable_logwin+set}" = set; then
4726 enableval="$enable_logwin"
4727
4728 if test "$enableval" = yes; then
4729 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4730 else
4731 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4732 fi
4733
4734 else
4735
4736 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4737 if test "x$LINE" != x ; then
4738 eval "DEFAULT_$LINE"
4739 else
4740 no_cache=1
4741 fi
4742
4743 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4744
4745 fi
4746
4747
4748 eval "$ac_cv_use_logwin"
4749 if test "$no_cache" != 1; then
4750 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4751 fi
4752
4753 if test "$wxUSE_LOGWINDOW" = yes; then
4754 echo "$ac_t""yes" 1>&6
4755 else
4756 echo "$ac_t""no" 1>&6
4757 fi
4758
4759
4760
4761 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4762 echo "configure:4763: checking for --enable-postscript" >&5
4763 no_cache=0
4764 # Check whether --enable-postscript or --disable-postscript was given.
4765 if test "${enable_postscript+set}" = set; then
4766 enableval="$enable_postscript"
4767
4768 if test "$enableval" = yes; then
4769 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4770 else
4771 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4772 fi
4773
4774 else
4775
4776 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4777 if test "x$LINE" != x ; then
4778 eval "DEFAULT_$LINE"
4779 else
4780 no_cache=1
4781 fi
4782
4783 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
4784
4785 fi
4786
4787
4788 eval "$ac_cv_use_postscript"
4789 if test "$no_cache" != 1; then
4790 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4791 fi
4792
4793 if test "$wxUSE_POSTSCRIPT" = yes; then
4794 echo "$ac_t""yes" 1>&6
4795 else
4796 echo "$ac_t""no" 1>&6
4797 fi
4798
4799
4800
4801
4802
4803 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4804 echo "configure:4805: checking for --enable-prologio" >&5
4805 no_cache=0
4806 # Check whether --enable-prologio or --disable-prologio was given.
4807 if test "${enable_prologio+set}" = set; then
4808 enableval="$enable_prologio"
4809
4810 if test "$enableval" = yes; then
4811 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4812 else
4813 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4814 fi
4815
4816 else
4817
4818 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4819 if test "x$LINE" != x ; then
4820 eval "DEFAULT_$LINE"
4821 else
4822 no_cache=1
4823 fi
4824
4825 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
4826
4827 fi
4828
4829
4830 eval "$ac_cv_use_prologio"
4831 if test "$no_cache" != 1; then
4832 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4833 fi
4834
4835 if test "$wxUSE_PROLOGIO" = yes; then
4836 echo "$ac_t""yes" 1>&6
4837 else
4838 echo "$ac_t""no" 1>&6
4839 fi
4840
4841
4842 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4843 echo "configure:4844: checking for --enable-resources" >&5
4844 no_cache=0
4845 # Check whether --enable-resources or --disable-resources was given.
4846 if test "${enable_resources+set}" = set; then
4847 enableval="$enable_resources"
4848
4849 if test "$enableval" = yes; then
4850 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4851 else
4852 ac_cv_use_resources='wxUSE_RESOURCES=no'
4853 fi
4854
4855 else
4856
4857 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4858 if test "x$LINE" != x ; then
4859 eval "DEFAULT_$LINE"
4860 else
4861 no_cache=1
4862 fi
4863
4864 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
4865
4866 fi
4867
4868
4869 eval "$ac_cv_use_resources"
4870 if test "$no_cache" != 1; then
4871 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4872 fi
4873
4874 if test "$wxUSE_RESOURCES" = yes; then
4875 echo "$ac_t""yes" 1>&6
4876 else
4877 echo "$ac_t""no" 1>&6
4878 fi
4879
4880
4881
4882 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
4883 echo "configure:4884: checking for --enable-xresources" >&5
4884 no_cache=0
4885 # Check whether --enable-xresources or --disable-xresources was given.
4886 if test "${enable_xresources+set}" = set; then
4887 enableval="$enable_xresources"
4888
4889 if test "$enableval" = yes; then
4890 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4891 else
4892 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4893 fi
4894
4895 else
4896
4897 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4898 if test "x$LINE" != x ; then
4899 eval "DEFAULT_$LINE"
4900 else
4901 no_cache=1
4902 fi
4903
4904 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
4905
4906 fi
4907
4908
4909 eval "$ac_cv_use_xresources"
4910 if test "$no_cache" != 1; then
4911 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4912 fi
4913
4914 if test "$wxUSE_X_RESOURCES" = yes; then
4915 echo "$ac_t""yes" 1>&6
4916 else
4917 echo "$ac_t""no" 1>&6
4918 fi
4919
4920
4921
4922
4923 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
4924 echo "configure:4925: checking for --enable-clipboard" >&5
4925 no_cache=0
4926 # Check whether --enable-clipboard or --disable-clipboard was given.
4927 if test "${enable_clipboard+set}" = set; then
4928 enableval="$enable_clipboard"
4929
4930 if test "$enableval" = yes; then
4931 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4932 else
4933 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4934 fi
4935
4936 else
4937
4938 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4939 if test "x$LINE" != x ; then
4940 eval "DEFAULT_$LINE"
4941 else
4942 no_cache=1
4943 fi
4944
4945 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4946
4947 fi
4948
4949
4950 eval "$ac_cv_use_clipboard"
4951 if test "$no_cache" != 1; then
4952 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4953 fi
4954
4955 if test "$wxUSE_CLIPBOARD" = yes; then
4956 echo "$ac_t""yes" 1>&6
4957 else
4958 echo "$ac_t""no" 1>&6
4959 fi
4960
4961
4962 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
4963 echo "configure:4964: checking for --enable-dnd" >&5
4964 no_cache=0
4965 # Check whether --enable-dnd or --disable-dnd was given.
4966 if test "${enable_dnd+set}" = set; then
4967 enableval="$enable_dnd"
4968
4969 if test "$enableval" = yes; then
4970 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4971 else
4972 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4973 fi
4974
4975 else
4976
4977 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4978 if test "x$LINE" != x ; then
4979 eval "DEFAULT_$LINE"
4980 else
4981 no_cache=1
4982 fi
4983
4984 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4985
4986 fi
4987
4988
4989 eval "$ac_cv_use_dnd"
4990 if test "$no_cache" != 1; then
4991 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4992 fi
4993
4994 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4995 echo "$ac_t""yes" 1>&6
4996 else
4997 echo "$ac_t""no" 1>&6
4998 fi
4999
5000
5001 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
5002 echo "configure:5003: checking for --enable-metafile" >&5
5003 no_cache=0
5004 # Check whether --enable-metafile or --disable-metafile was given.
5005 if test "${enable_metafile+set}" = set; then
5006 enableval="$enable_metafile"
5007
5008 if test "$enableval" = yes; then
5009 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5010 else
5011 ac_cv_use_metafile='wxUSE_METAFILE=no'
5012 fi
5013
5014 else
5015
5016 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5017 if test "x$LINE" != x ; then
5018 eval "DEFAULT_$LINE"
5019 else
5020 no_cache=1
5021 fi
5022
5023 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5024
5025 fi
5026
5027
5028 eval "$ac_cv_use_metafile"
5029 if test "$no_cache" != 1; then
5030 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5031 fi
5032
5033 if test "$wxUSE_METAFILE" = yes; then
5034 echo "$ac_t""yes" 1>&6
5035 else
5036 echo "$ac_t""no" 1>&6
5037 fi
5038
5039
5040
5041 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5042 echo "configure:5043: checking for --enable-treelayout" >&5
5043 no_cache=0
5044 # Check whether --enable-treelayout or --disable-treelayout was given.
5045 if test "${enable_treelayout+set}" = set; then
5046 enableval="$enable_treelayout"
5047
5048 if test "$enableval" = yes; then
5049 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5050 else
5051 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5052 fi
5053
5054 else
5055
5056 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5057 if test "x$LINE" != x ; then
5058 eval "DEFAULT_$LINE"
5059 else
5060 no_cache=1
5061 fi
5062
5063 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5064
5065 fi
5066
5067
5068 eval "$ac_cv_use_treelayout"
5069 if test "$no_cache" != 1; then
5070 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5071 fi
5072
5073 if test "$wxUSE_TREELAYOUT" = yes; then
5074 echo "$ac_t""yes" 1>&6
5075 else
5076 echo "$ac_t""no" 1>&6
5077 fi
5078
5079
5080
5081
5082 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5083 echo "configure:5084: checking for --enable-controls" >&5
5084 no_cache=0
5085 # Check whether --enable-controls or --disable-controls was given.
5086 if test "${enable_controls+set}" = set; then
5087 enableval="$enable_controls"
5088
5089 if test "$enableval" = yes; then
5090 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5091 else
5092 ac_cv_use_controls='wxUSE_CONTROLS=no'
5093 fi
5094
5095 else
5096
5097 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5098 if test "x$LINE" != x ; then
5099 eval "DEFAULT_$LINE"
5100 else
5101 no_cache=1
5102 fi
5103
5104 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5105
5106 fi
5107
5108
5109 eval "$ac_cv_use_controls"
5110 if test "$no_cache" != 1; then
5111 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5112 fi
5113
5114 if test "$wxUSE_CONTROLS" = yes; then
5115 echo "$ac_t""yes" 1>&6
5116 else
5117 echo "$ac_t""no" 1>&6
5118 fi
5119
5120
5121 if test "$wxUSE_CONTROLS" = "yes"; then
5122 DEFAULT_wxUSE_ACCEL=yes
5123 DEFAULT_wxUSE_BMPBUTTON=yes
5124 DEFAULT_wxUSE_BUTTON=yes
5125 DEFAULT_wxUSE_CALCTRL=no
5126 DEFAULT_wxUSE_CARET=yes
5127 DEFAULT_wxUSE_COMBOBOX=yes
5128 DEFAULT_wxUSE_CHECKBOX=yes
5129 DEFAULT_wxUSE_CHECKLISTBOX=yes
5130 DEFAULT_wxUSE_CHOICE=yes
5131 DEFAULT_wxUSE_GAUGE=yes
5132 DEFAULT_wxUSE_GRID=yes
5133 DEFAULT_wxUSE_NEW_GRID=yes
5134 DEFAULT_wxUSE_IMAGLIST=yes
5135 DEFAULT_wxUSE_LISTBOX=yes
5136 DEFAULT_wxUSE_LISTCTRL=yes
5137 DEFAULT_wxUSE_NOTEBOOK=yes
5138 DEFAULT_wxUSE_PROPSHEET=yes
5139 DEFAULT_wxUSE_RADIOBOX=yes
5140 DEFAULT_wxUSE_RADIOBTN=yes
5141 DEFAULT_wxUSE_SASH=yes
5142 DEFAULT_wxUSE_SCROLLBAR=yes
5143 DEFAULT_wxUSE_SLIDER=yes
5144 DEFAULT_wxUSE_SPINBTN=yes
5145 DEFAULT_wxUSE_SPINCTRL=yes
5146 DEFAULT_wxUSE_SPLITTER=yes
5147 DEFAULT_wxUSE_STATBMP=yes
5148 DEFAULT_wxUSE_STATBOX=yes
5149 DEFAULT_wxUSE_STATLINE=yes
5150 DEFAULT_wxUSE_STATUSBAR=yes
5151 DEFAULT_wxUSE_TAB_DIALOG=yes
5152 DEFAULT_wxUSE_TOGGLEBTN=yes
5153 DEFAULT_wxUSE_TOOLBAR=yes
5154 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5155 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5156 DEFAULT_wxUSE_TOOLTIPS=yes
5157 DEFAULT_wxUSE_TREECTRL=yes
5158 DEFAULT_wxUSE_POPUPWIN=yes
5159 elif test "$wxUSE_CONTROLS" = "no"; then
5160 DEFAULT_wxUSE_ACCEL=no
5161 DEFAULT_wxUSE_BMPBUTTON=no
5162 DEFAULT_wxUSE_BUTTON=no
5163 DEFAULT_wxUSE_CALCTRL=no
5164 DEFAULT_wxUSE_CARET=no
5165 DEFAULT_wxUSE_COMBOBOX=no
5166 DEFAULT_wxUSE_CHECKBOX=no
5167 DEFAULT_wxUSE_CHECKLISTBOX=no
5168 DEFAULT_wxUSE_CHOICE=no
5169 DEFAULT_wxUSE_GAUGE=no
5170 DEFAULT_wxUSE_GRID=no
5171 DEFAULT_wxUSE_NEW_GRID=no
5172 DEFAULT_wxUSE_IMAGLIST=no
5173 DEFAULT_wxUSE_LISTBOX=no
5174 DEFAULT_wxUSE_LISTCTRL=no
5175 DEFAULT_wxUSE_NOTEBOOK=no
5176 DEFAULT_wxUSE_PROPSHEET=no
5177 DEFAULT_wxUSE_RADIOBOX=no
5178 DEFAULT_wxUSE_RADIOBTN=no
5179 DEFAULT_wxUSE_SASH=no
5180 DEFAULT_wxUSE_SCROLLBAR=no
5181 DEFAULT_wxUSE_SLIDER=no
5182 DEFAULT_wxUSE_SPINBTN=no
5183 DEFAULT_wxUSE_SPINCTRL=no
5184 DEFAULT_wxUSE_SPLITTER=no
5185 DEFAULT_wxUSE_STATBMP=no
5186 DEFAULT_wxUSE_STATBOX=no
5187 DEFAULT_wxUSE_STATLINE=no
5188 DEFAULT_wxUSE_STATUSBAR=no
5189 DEFAULT_wxUSE_TAB_DIALOG=no
5190 DEFAULT_wxUSE_TOGGLEBTN=no
5191 DEFAULT_wxUSE_TOOLBAR=no
5192 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5193 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5194 DEFAULT_wxUSE_TOOLTIPS=no
5195 DEFAULT_wxUSE_TREECTRL=no
5196 DEFAULT_wxUSE_POPUPWIN=no
5197 fi
5198
5199
5200 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5201 echo "configure:5202: checking for --enable-accel" >&5
5202 no_cache=0
5203 # Check whether --enable-accel or --disable-accel was given.
5204 if test "${enable_accel+set}" = set; then
5205 enableval="$enable_accel"
5206
5207 if test "$enableval" = yes; then
5208 ac_cv_use_accel='wxUSE_ACCEL=yes'
5209 else
5210 ac_cv_use_accel='wxUSE_ACCEL=no'
5211 fi
5212
5213 else
5214
5215 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5216 if test "x$LINE" != x ; then
5217 eval "DEFAULT_$LINE"
5218 else
5219 no_cache=1
5220 fi
5221
5222 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5223
5224 fi
5225
5226
5227 eval "$ac_cv_use_accel"
5228 if test "$no_cache" != 1; then
5229 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5230 fi
5231
5232 if test "$wxUSE_ACCEL" = yes; then
5233 echo "$ac_t""yes" 1>&6
5234 else
5235 echo "$ac_t""no" 1>&6
5236 fi
5237
5238
5239 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5240 echo "configure:5241: checking for --enable-button" >&5
5241 no_cache=0
5242 # Check whether --enable-button or --disable-button was given.
5243 if test "${enable_button+set}" = set; then
5244 enableval="$enable_button"
5245
5246 if test "$enableval" = yes; then
5247 ac_cv_use_button='wxUSE_BUTTON=yes'
5248 else
5249 ac_cv_use_button='wxUSE_BUTTON=no'
5250 fi
5251
5252 else
5253
5254 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5255 if test "x$LINE" != x ; then
5256 eval "DEFAULT_$LINE"
5257 else
5258 no_cache=1
5259 fi
5260
5261 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5262
5263 fi
5264
5265
5266 eval "$ac_cv_use_button"
5267 if test "$no_cache" != 1; then
5268 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5269 fi
5270
5271 if test "$wxUSE_BUTTON" = yes; then
5272 echo "$ac_t""yes" 1>&6
5273 else
5274 echo "$ac_t""no" 1>&6
5275 fi
5276
5277
5278 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5279 echo "configure:5280: checking for --enable-bmpbutton" >&5
5280 no_cache=0
5281 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5282 if test "${enable_bmpbutton+set}" = set; then
5283 enableval="$enable_bmpbutton"
5284
5285 if test "$enableval" = yes; then
5286 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5287 else
5288 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5289 fi
5290
5291 else
5292
5293 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5294 if test "x$LINE" != x ; then
5295 eval "DEFAULT_$LINE"
5296 else
5297 no_cache=1
5298 fi
5299
5300 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5301
5302 fi
5303
5304
5305 eval "$ac_cv_use_bmpbutton"
5306 if test "$no_cache" != 1; then
5307 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5308 fi
5309
5310 if test "$wxUSE_BMPBUTTON" = yes; then
5311 echo "$ac_t""yes" 1>&6
5312 else
5313 echo "$ac_t""no" 1>&6
5314 fi
5315
5316
5317 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5318 echo "configure:5319: checking for --enable-calendar" >&5
5319 no_cache=0
5320 # Check whether --enable-calendar or --disable-calendar was given.
5321 if test "${enable_calendar+set}" = set; then
5322 enableval="$enable_calendar"
5323
5324 if test "$enableval" = yes; then
5325 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5326 else
5327 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5328 fi
5329
5330 else
5331
5332 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5333 if test "x$LINE" != x ; then
5334 eval "DEFAULT_$LINE"
5335 else
5336 no_cache=1
5337 fi
5338
5339 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5340
5341 fi
5342
5343
5344 eval "$ac_cv_use_calendar"
5345 if test "$no_cache" != 1; then
5346 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5347 fi
5348
5349 if test "$wxUSE_CALCTRL" = yes; then
5350 echo "$ac_t""yes" 1>&6
5351 else
5352 echo "$ac_t""no" 1>&6
5353 fi
5354
5355
5356 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5357 echo "configure:5358: checking for --enable-caret" >&5
5358 no_cache=0
5359 # Check whether --enable-caret or --disable-caret was given.
5360 if test "${enable_caret+set}" = set; then
5361 enableval="$enable_caret"
5362
5363 if test "$enableval" = yes; then
5364 ac_cv_use_caret='wxUSE_CARET=yes'
5365 else
5366 ac_cv_use_caret='wxUSE_CARET=no'
5367 fi
5368
5369 else
5370
5371 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5372 if test "x$LINE" != x ; then
5373 eval "DEFAULT_$LINE"
5374 else
5375 no_cache=1
5376 fi
5377
5378 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5379
5380 fi
5381
5382
5383 eval "$ac_cv_use_caret"
5384 if test "$no_cache" != 1; then
5385 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5386 fi
5387
5388 if test "$wxUSE_CARET" = yes; then
5389 echo "$ac_t""yes" 1>&6
5390 else
5391 echo "$ac_t""no" 1>&6
5392 fi
5393
5394
5395 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5396 echo "configure:5397: checking for --enable-checkbox" >&5
5397 no_cache=0
5398 # Check whether --enable-checkbox or --disable-checkbox was given.
5399 if test "${enable_checkbox+set}" = set; then
5400 enableval="$enable_checkbox"
5401
5402 if test "$enableval" = yes; then
5403 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5404 else
5405 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5406 fi
5407
5408 else
5409
5410 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5411 if test "x$LINE" != x ; then
5412 eval "DEFAULT_$LINE"
5413 else
5414 no_cache=1
5415 fi
5416
5417 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5418
5419 fi
5420
5421
5422 eval "$ac_cv_use_checkbox"
5423 if test "$no_cache" != 1; then
5424 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5425 fi
5426
5427 if test "$wxUSE_CHECKBOX" = yes; then
5428 echo "$ac_t""yes" 1>&6
5429 else
5430 echo "$ac_t""no" 1>&6
5431 fi
5432
5433
5434 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5435 echo "configure:5436: checking for --enable-checklst" >&5
5436 no_cache=0
5437 # Check whether --enable-checklst or --disable-checklst was given.
5438 if test "${enable_checklst+set}" = set; then
5439 enableval="$enable_checklst"
5440
5441 if test "$enableval" = yes; then
5442 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5443 else
5444 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5445 fi
5446
5447 else
5448
5449 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5450 if test "x$LINE" != x ; then
5451 eval "DEFAULT_$LINE"
5452 else
5453 no_cache=1
5454 fi
5455
5456 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5457
5458 fi
5459
5460
5461 eval "$ac_cv_use_checklst"
5462 if test "$no_cache" != 1; then
5463 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5464 fi
5465
5466 if test "$wxUSE_CHECKLST" = yes; then
5467 echo "$ac_t""yes" 1>&6
5468 else
5469 echo "$ac_t""no" 1>&6
5470 fi
5471
5472
5473 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5474 echo "configure:5475: checking for --enable-choice" >&5
5475 no_cache=0
5476 # Check whether --enable-choice or --disable-choice was given.
5477 if test "${enable_choice+set}" = set; then
5478 enableval="$enable_choice"
5479
5480 if test "$enableval" = yes; then
5481 ac_cv_use_choice='wxUSE_CHOICE=yes'
5482 else
5483 ac_cv_use_choice='wxUSE_CHOICE=no'
5484 fi
5485
5486 else
5487
5488 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5489 if test "x$LINE" != x ; then
5490 eval "DEFAULT_$LINE"
5491 else
5492 no_cache=1
5493 fi
5494
5495 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5496
5497 fi
5498
5499
5500 eval "$ac_cv_use_choice"
5501 if test "$no_cache" != 1; then
5502 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5503 fi
5504
5505 if test "$wxUSE_CHOICE" = yes; then
5506 echo "$ac_t""yes" 1>&6
5507 else
5508 echo "$ac_t""no" 1>&6
5509 fi
5510
5511
5512 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5513 echo "configure:5514: checking for --enable-combobox" >&5
5514 no_cache=0
5515 # Check whether --enable-combobox or --disable-combobox was given.
5516 if test "${enable_combobox+set}" = set; then
5517 enableval="$enable_combobox"
5518
5519 if test "$enableval" = yes; then
5520 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5521 else
5522 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5523 fi
5524
5525 else
5526
5527 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5528 if test "x$LINE" != x ; then
5529 eval "DEFAULT_$LINE"
5530 else
5531 no_cache=1
5532 fi
5533
5534 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5535
5536 fi
5537
5538
5539 eval "$ac_cv_use_combobox"
5540 if test "$no_cache" != 1; then
5541 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5542 fi
5543
5544 if test "$wxUSE_COMBOBOX" = yes; then
5545 echo "$ac_t""yes" 1>&6
5546 else
5547 echo "$ac_t""no" 1>&6
5548 fi
5549
5550
5551 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
5552 echo "configure:5553: checking for --enable-gauge" >&5
5553 no_cache=0
5554 # Check whether --enable-gauge or --disable-gauge was given.
5555 if test "${enable_gauge+set}" = set; then
5556 enableval="$enable_gauge"
5557
5558 if test "$enableval" = yes; then
5559 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5560 else
5561 ac_cv_use_gauge='wxUSE_GAUGE=no'
5562 fi
5563
5564 else
5565
5566 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5567 if test "x$LINE" != x ; then
5568 eval "DEFAULT_$LINE"
5569 else
5570 no_cache=1
5571 fi
5572
5573 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
5574
5575 fi
5576
5577
5578 eval "$ac_cv_use_gauge"
5579 if test "$no_cache" != 1; then
5580 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5581 fi
5582
5583 if test "$wxUSE_GAUGE" = yes; then
5584 echo "$ac_t""yes" 1>&6
5585 else
5586 echo "$ac_t""no" 1>&6
5587 fi
5588
5589
5590 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
5591 echo "configure:5592: checking for --enable-grid" >&5
5592 no_cache=0
5593 # Check whether --enable-grid or --disable-grid was given.
5594 if test "${enable_grid+set}" = set; then
5595 enableval="$enable_grid"
5596
5597 if test "$enableval" = yes; then
5598 ac_cv_use_grid='wxUSE_GRID=yes'
5599 else
5600 ac_cv_use_grid='wxUSE_GRID=no'
5601 fi
5602
5603 else
5604
5605 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5606 if test "x$LINE" != x ; then
5607 eval "DEFAULT_$LINE"
5608 else
5609 no_cache=1
5610 fi
5611
5612 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5613
5614 fi
5615
5616
5617 eval "$ac_cv_use_grid"
5618 if test "$no_cache" != 1; then
5619 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5620 fi
5621
5622 if test "$wxUSE_GRID" = yes; then
5623 echo "$ac_t""yes" 1>&6
5624 else
5625 echo "$ac_t""no" 1>&6
5626 fi
5627
5628
5629 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
5630 echo "configure:5631: checking for --enable-newgrid" >&5
5631 no_cache=0
5632 # Check whether --enable-newgrid or --disable-newgrid was given.
5633 if test "${enable_newgrid+set}" = set; then
5634 enableval="$enable_newgrid"
5635
5636 if test "$enableval" = yes; then
5637 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5638 else
5639 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5640 fi
5641
5642 else
5643
5644 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5645 if test "x$LINE" != x ; then
5646 eval "DEFAULT_$LINE"
5647 else
5648 no_cache=1
5649 fi
5650
5651 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
5652
5653 fi
5654
5655
5656 eval "$ac_cv_use_newgrid"
5657 if test "$no_cache" != 1; then
5658 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5659 fi
5660
5661 if test "$wxUSE_NEW_GRID" = yes; then
5662 echo "$ac_t""yes" 1>&6
5663 else
5664 echo "$ac_t""no" 1>&6
5665 fi
5666
5667
5668 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
5669 echo "configure:5670: checking for --enable-imaglist" >&5
5670 no_cache=0
5671 # Check whether --enable-imaglist or --disable-imaglist was given.
5672 if test "${enable_imaglist+set}" = set; then
5673 enableval="$enable_imaglist"
5674
5675 if test "$enableval" = yes; then
5676 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5677 else
5678 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5679 fi
5680
5681 else
5682
5683 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5684 if test "x$LINE" != x ; then
5685 eval "DEFAULT_$LINE"
5686 else
5687 no_cache=1
5688 fi
5689
5690 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
5691
5692 fi
5693
5694
5695 eval "$ac_cv_use_imaglist"
5696 if test "$no_cache" != 1; then
5697 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5698 fi
5699
5700 if test "$wxUSE_IMAGLIST" = yes; then
5701 echo "$ac_t""yes" 1>&6
5702 else
5703 echo "$ac_t""no" 1>&6
5704 fi
5705
5706
5707 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
5708 echo "configure:5709: checking for --enable-listbox" >&5
5709 no_cache=0
5710 # Check whether --enable-listbox or --disable-listbox was given.
5711 if test "${enable_listbox+set}" = set; then
5712 enableval="$enable_listbox"
5713
5714 if test "$enableval" = yes; then
5715 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5716 else
5717 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5718 fi
5719
5720 else
5721
5722 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5723 if test "x$LINE" != x ; then
5724 eval "DEFAULT_$LINE"
5725 else
5726 no_cache=1
5727 fi
5728
5729 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
5730
5731 fi
5732
5733
5734 eval "$ac_cv_use_listbox"
5735 if test "$no_cache" != 1; then
5736 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5737 fi
5738
5739 if test "$wxUSE_LISTBOX" = yes; then
5740 echo "$ac_t""yes" 1>&6
5741 else
5742 echo "$ac_t""no" 1>&6
5743 fi
5744
5745
5746 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
5747 echo "configure:5748: checking for --enable-listctrl" >&5
5748 no_cache=0
5749 # Check whether --enable-listctrl or --disable-listctrl was given.
5750 if test "${enable_listctrl+set}" = set; then
5751 enableval="$enable_listctrl"
5752
5753 if test "$enableval" = yes; then
5754 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5755 else
5756 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5757 fi
5758
5759 else
5760
5761 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5762 if test "x$LINE" != x ; then
5763 eval "DEFAULT_$LINE"
5764 else
5765 no_cache=1
5766 fi
5767
5768 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
5769
5770 fi
5771
5772
5773 eval "$ac_cv_use_listctrl"
5774 if test "$no_cache" != 1; then
5775 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5776 fi
5777
5778 if test "$wxUSE_LISTCTRL" = yes; then
5779 echo "$ac_t""yes" 1>&6
5780 else
5781 echo "$ac_t""no" 1>&6
5782 fi
5783
5784
5785 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
5786 echo "configure:5787: checking for --enable-notebook" >&5
5787 no_cache=0
5788 # Check whether --enable-notebook or --disable-notebook was given.
5789 if test "${enable_notebook+set}" = set; then
5790 enableval="$enable_notebook"
5791
5792 if test "$enableval" = yes; then
5793 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5794 else
5795 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5796 fi
5797
5798 else
5799
5800 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5801 if test "x$LINE" != x ; then
5802 eval "DEFAULT_$LINE"
5803 else
5804 no_cache=1
5805 fi
5806
5807 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
5808
5809 fi
5810
5811
5812 eval "$ac_cv_use_notebook"
5813 if test "$no_cache" != 1; then
5814 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5815 fi
5816
5817 if test "$wxUSE_NOTEBOOK" = yes; then
5818 echo "$ac_t""yes" 1>&6
5819 else
5820 echo "$ac_t""no" 1>&6
5821 fi
5822
5823
5824 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
5825 echo "configure:5826: checking for --enable-propsheet" >&5
5826 no_cache=0
5827 # Check whether --enable-propsheet or --disable-propsheet was given.
5828 if test "${enable_propsheet+set}" = set; then
5829 enableval="$enable_propsheet"
5830
5831 if test "$enableval" = yes; then
5832 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5833 else
5834 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5835 fi
5836
5837 else
5838
5839 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5840 if test "x$LINE" != x ; then
5841 eval "DEFAULT_$LINE"
5842 else
5843 no_cache=1
5844 fi
5845
5846 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5847
5848 fi
5849
5850
5851 eval "$ac_cv_use_propsheet"
5852 if test "$no_cache" != 1; then
5853 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5854 fi
5855
5856 if test "$wxUSE_PROPSHEET" = yes; then
5857 echo "$ac_t""yes" 1>&6
5858 else
5859 echo "$ac_t""no" 1>&6
5860 fi
5861
5862
5863 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
5864 echo "configure:5865: checking for --enable-radiobox" >&5
5865 no_cache=0
5866 # Check whether --enable-radiobox or --disable-radiobox was given.
5867 if test "${enable_radiobox+set}" = set; then
5868 enableval="$enable_radiobox"
5869
5870 if test "$enableval" = yes; then
5871 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5872 else
5873 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5874 fi
5875
5876 else
5877
5878 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5879 if test "x$LINE" != x ; then
5880 eval "DEFAULT_$LINE"
5881 else
5882 no_cache=1
5883 fi
5884
5885 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
5886
5887 fi
5888
5889
5890 eval "$ac_cv_use_radiobox"
5891 if test "$no_cache" != 1; then
5892 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5893 fi
5894
5895 if test "$wxUSE_RADIOBOX" = yes; then
5896 echo "$ac_t""yes" 1>&6
5897 else
5898 echo "$ac_t""no" 1>&6
5899 fi
5900
5901
5902 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
5903 echo "configure:5904: checking for --enable-radiobtn" >&5
5904 no_cache=0
5905 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5906 if test "${enable_radiobtn+set}" = set; then
5907 enableval="$enable_radiobtn"
5908
5909 if test "$enableval" = yes; then
5910 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5911 else
5912 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5913 fi
5914
5915 else
5916
5917 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5918 if test "x$LINE" != x ; then
5919 eval "DEFAULT_$LINE"
5920 else
5921 no_cache=1
5922 fi
5923
5924 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
5925
5926 fi
5927
5928
5929 eval "$ac_cv_use_radiobtn"
5930 if test "$no_cache" != 1; then
5931 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5932 fi
5933
5934 if test "$wxUSE_RADIOBTN" = yes; then
5935 echo "$ac_t""yes" 1>&6
5936 else
5937 echo "$ac_t""no" 1>&6
5938 fi
5939
5940
5941 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
5942 echo "configure:5943: checking for --enable-sash" >&5
5943 no_cache=0
5944 # Check whether --enable-sash or --disable-sash was given.
5945 if test "${enable_sash+set}" = set; then
5946 enableval="$enable_sash"
5947
5948 if test "$enableval" = yes; then
5949 ac_cv_use_sash='wxUSE_SASH=yes'
5950 else
5951 ac_cv_use_sash='wxUSE_SASH=no'
5952 fi
5953
5954 else
5955
5956 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5957 if test "x$LINE" != x ; then
5958 eval "DEFAULT_$LINE"
5959 else
5960 no_cache=1
5961 fi
5962
5963 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
5964
5965 fi
5966
5967
5968 eval "$ac_cv_use_sash"
5969 if test "$no_cache" != 1; then
5970 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5971 fi
5972
5973 if test "$wxUSE_SASH" = yes; then
5974 echo "$ac_t""yes" 1>&6
5975 else
5976 echo "$ac_t""no" 1>&6
5977 fi
5978
5979
5980 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
5981 echo "configure:5982: checking for --enable-scrollbar" >&5
5982 no_cache=0
5983 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5984 if test "${enable_scrollbar+set}" = set; then
5985 enableval="$enable_scrollbar"
5986
5987 if test "$enableval" = yes; then
5988 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5989 else
5990 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5991 fi
5992
5993 else
5994
5995 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5996 if test "x$LINE" != x ; then
5997 eval "DEFAULT_$LINE"
5998 else
5999 no_cache=1
6000 fi
6001
6002 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6003
6004 fi
6005
6006
6007 eval "$ac_cv_use_scrollbar"
6008 if test "$no_cache" != 1; then
6009 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6010 fi
6011
6012 if test "$wxUSE_SCROLLBAR" = yes; then
6013 echo "$ac_t""yes" 1>&6
6014 else
6015 echo "$ac_t""no" 1>&6
6016 fi
6017
6018
6019 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
6020 echo "configure:6021: checking for --enable-slider" >&5
6021 no_cache=0
6022 # Check whether --enable-slider or --disable-slider was given.
6023 if test "${enable_slider+set}" = set; then
6024 enableval="$enable_slider"
6025
6026 if test "$enableval" = yes; then
6027 ac_cv_use_slider='wxUSE_SLIDER=yes'
6028 else
6029 ac_cv_use_slider='wxUSE_SLIDER=no'
6030 fi
6031
6032 else
6033
6034 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6035 if test "x$LINE" != x ; then
6036 eval "DEFAULT_$LINE"
6037 else
6038 no_cache=1
6039 fi
6040
6041 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6042
6043 fi
6044
6045
6046 eval "$ac_cv_use_slider"
6047 if test "$no_cache" != 1; then
6048 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6049 fi
6050
6051 if test "$wxUSE_SLIDER" = yes; then
6052 echo "$ac_t""yes" 1>&6
6053 else
6054 echo "$ac_t""no" 1>&6
6055 fi
6056
6057
6058 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6059 echo "configure:6060: checking for --enable-spinbtn" >&5
6060 no_cache=0
6061 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6062 if test "${enable_spinbtn+set}" = set; then
6063 enableval="$enable_spinbtn"
6064
6065 if test "$enableval" = yes; then
6066 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6067 else
6068 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6069 fi
6070
6071 else
6072
6073 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6074 if test "x$LINE" != x ; then
6075 eval "DEFAULT_$LINE"
6076 else
6077 no_cache=1
6078 fi
6079
6080 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6081
6082 fi
6083
6084
6085 eval "$ac_cv_use_spinbtn"
6086 if test "$no_cache" != 1; then
6087 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6088 fi
6089
6090 if test "$wxUSE_SPINBTN" = yes; then
6091 echo "$ac_t""yes" 1>&6
6092 else
6093 echo "$ac_t""no" 1>&6
6094 fi
6095
6096
6097 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6098 echo "configure:6099: checking for --enable-spinctrl" >&5
6099 no_cache=0
6100 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6101 if test "${enable_spinctrl+set}" = set; then
6102 enableval="$enable_spinctrl"
6103
6104 if test "$enableval" = yes; then
6105 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6106 else
6107 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6108 fi
6109
6110 else
6111
6112 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6113 if test "x$LINE" != x ; then
6114 eval "DEFAULT_$LINE"
6115 else
6116 no_cache=1
6117 fi
6118
6119 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6120
6121 fi
6122
6123
6124 eval "$ac_cv_use_spinctrl"
6125 if test "$no_cache" != 1; then
6126 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6127 fi
6128
6129 if test "$wxUSE_SPINCTRL" = yes; then
6130 echo "$ac_t""yes" 1>&6
6131 else
6132 echo "$ac_t""no" 1>&6
6133 fi
6134
6135
6136 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6137 echo "configure:6138: checking for --enable-splitter" >&5
6138 no_cache=0
6139 # Check whether --enable-splitter or --disable-splitter was given.
6140 if test "${enable_splitter+set}" = set; then
6141 enableval="$enable_splitter"
6142
6143 if test "$enableval" = yes; then
6144 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6145 else
6146 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6147 fi
6148
6149 else
6150
6151 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6152 if test "x$LINE" != x ; then
6153 eval "DEFAULT_$LINE"
6154 else
6155 no_cache=1
6156 fi
6157
6158 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6159
6160 fi
6161
6162
6163 eval "$ac_cv_use_splitter"
6164 if test "$no_cache" != 1; then
6165 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6166 fi
6167
6168 if test "$wxUSE_SPLITTER" = yes; then
6169 echo "$ac_t""yes" 1>&6
6170 else
6171 echo "$ac_t""no" 1>&6
6172 fi
6173
6174
6175 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6176 echo "configure:6177: checking for --enable-statbmp" >&5
6177 no_cache=0
6178 # Check whether --enable-statbmp or --disable-statbmp was given.
6179 if test "${enable_statbmp+set}" = set; then
6180 enableval="$enable_statbmp"
6181
6182 if test "$enableval" = yes; then
6183 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6184 else
6185 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6186 fi
6187
6188 else
6189
6190 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6191 if test "x$LINE" != x ; then
6192 eval "DEFAULT_$LINE"
6193 else
6194 no_cache=1
6195 fi
6196
6197 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6198
6199 fi
6200
6201
6202 eval "$ac_cv_use_statbmp"
6203 if test "$no_cache" != 1; then
6204 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6205 fi
6206
6207 if test "$wxUSE_STATBMP" = yes; then
6208 echo "$ac_t""yes" 1>&6
6209 else
6210 echo "$ac_t""no" 1>&6
6211 fi
6212
6213
6214 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6215 echo "configure:6216: checking for --enable-statbox" >&5
6216 no_cache=0
6217 # Check whether --enable-statbox or --disable-statbox was given.
6218 if test "${enable_statbox+set}" = set; then
6219 enableval="$enable_statbox"
6220
6221 if test "$enableval" = yes; then
6222 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6223 else
6224 ac_cv_use_statbox='wxUSE_STATBOX=no'
6225 fi
6226
6227 else
6228
6229 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6230 if test "x$LINE" != x ; then
6231 eval "DEFAULT_$LINE"
6232 else
6233 no_cache=1
6234 fi
6235
6236 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6237
6238 fi
6239
6240
6241 eval "$ac_cv_use_statbox"
6242 if test "$no_cache" != 1; then
6243 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6244 fi
6245
6246 if test "$wxUSE_STATBOX" = yes; then
6247 echo "$ac_t""yes" 1>&6
6248 else
6249 echo "$ac_t""no" 1>&6
6250 fi
6251
6252
6253 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6254 echo "configure:6255: checking for --enable-statline" >&5
6255 no_cache=0
6256 # Check whether --enable-statline or --disable-statline was given.
6257 if test "${enable_statline+set}" = set; then
6258 enableval="$enable_statline"
6259
6260 if test "$enableval" = yes; then
6261 ac_cv_use_statline='wxUSE_STATLINE=yes'
6262 else
6263 ac_cv_use_statline='wxUSE_STATLINE=no'
6264 fi
6265
6266 else
6267
6268 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6269 if test "x$LINE" != x ; then
6270 eval "DEFAULT_$LINE"
6271 else
6272 no_cache=1
6273 fi
6274
6275 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6276
6277 fi
6278
6279
6280 eval "$ac_cv_use_statline"
6281 if test "$no_cache" != 1; then
6282 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6283 fi
6284
6285 if test "$wxUSE_STATLINE" = yes; then
6286 echo "$ac_t""yes" 1>&6
6287 else
6288 echo "$ac_t""no" 1>&6
6289 fi
6290
6291
6292 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6293 echo "configure:6294: checking for --enable-stattext" >&5
6294 no_cache=0
6295 # Check whether --enable-stattext or --disable-stattext was given.
6296 if test "${enable_stattext+set}" = set; then
6297 enableval="$enable_stattext"
6298
6299 if test "$enableval" = yes; then
6300 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6301 else
6302 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6303 fi
6304
6305 else
6306
6307 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6308 if test "x$LINE" != x ; then
6309 eval "DEFAULT_$LINE"
6310 else
6311 no_cache=1
6312 fi
6313
6314 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6315
6316 fi
6317
6318
6319 eval "$ac_cv_use_stattext"
6320 if test "$no_cache" != 1; then
6321 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6322 fi
6323
6324 if test "$wxUSE_STATTEXT" = yes; then
6325 echo "$ac_t""yes" 1>&6
6326 else
6327 echo "$ac_t""no" 1>&6
6328 fi
6329
6330
6331 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6332 echo "configure:6333: checking for --enable-statusbar" >&5
6333 no_cache=0
6334 # Check whether --enable-statusbar or --disable-statusbar was given.
6335 if test "${enable_statusbar+set}" = set; then
6336 enableval="$enable_statusbar"
6337
6338 if test "$enableval" = yes; then
6339 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6340 else
6341 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6342 fi
6343
6344 else
6345
6346 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6347 if test "x$LINE" != x ; then
6348 eval "DEFAULT_$LINE"
6349 else
6350 no_cache=1
6351 fi
6352
6353 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6354
6355 fi
6356
6357
6358 eval "$ac_cv_use_statusbar"
6359 if test "$no_cache" != 1; then
6360 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6361 fi
6362
6363 if test "$wxUSE_STATUSBAR" = yes; then
6364 echo "$ac_t""yes" 1>&6
6365 else
6366 echo "$ac_t""no" 1>&6
6367 fi
6368
6369
6370 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6371 echo "configure:6372: checking for --enable-tabdialog" >&5
6372 no_cache=0
6373 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6374 if test "${enable_tabdialog+set}" = set; then
6375 enableval="$enable_tabdialog"
6376
6377 if test "$enableval" = yes; then
6378 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6379 else
6380 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6381 fi
6382
6383 else
6384
6385 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6386 if test "x$LINE" != x ; then
6387 eval "DEFAULT_$LINE"
6388 else
6389 no_cache=1
6390 fi
6391
6392 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6393
6394 fi
6395
6396
6397 eval "$ac_cv_use_tabdialog"
6398 if test "$no_cache" != 1; then
6399 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6400 fi
6401
6402 if test "$wxUSE_TABDIALOG" = yes; then
6403 echo "$ac_t""yes" 1>&6
6404 else
6405 echo "$ac_t""no" 1>&6
6406 fi
6407
6408
6409 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6410 echo "configure:6411: checking for --enable-textctrl" >&5
6411 no_cache=0
6412 # Check whether --enable-textctrl or --disable-textctrl was given.
6413 if test "${enable_textctrl+set}" = set; then
6414 enableval="$enable_textctrl"
6415
6416 if test "$enableval" = yes; then
6417 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6418 else
6419 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6420 fi
6421
6422 else
6423
6424 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6425 if test "x$LINE" != x ; then
6426 eval "DEFAULT_$LINE"
6427 else
6428 no_cache=1
6429 fi
6430
6431 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6432
6433 fi
6434
6435
6436 eval "$ac_cv_use_textctrl"
6437 if test "$no_cache" != 1; then
6438 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6439 fi
6440
6441 if test "$wxUSE_TEXTCTRL" = yes; then
6442 echo "$ac_t""yes" 1>&6
6443 else
6444 echo "$ac_t""no" 1>&6
6445 fi
6446
6447
6448 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6449 echo "configure:6450: checking for --enable-togglebtn" >&5
6450 no_cache=0
6451 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6452 if test "${enable_togglebtn+set}" = set; then
6453 enableval="$enable_togglebtn"
6454
6455 if test "$enableval" = yes; then
6456 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6457 else
6458 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6459 fi
6460
6461 else
6462
6463 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6464 if test "x$LINE" != x ; then
6465 eval "DEFAULT_$LINE"
6466 else
6467 no_cache=1
6468 fi
6469
6470 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6471
6472 fi
6473
6474
6475 eval "$ac_cv_use_togglebtn"
6476 if test "$no_cache" != 1; then
6477 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6478 fi
6479
6480 if test "$wxUSE_TOGGLEBTN" = yes; then
6481 echo "$ac_t""yes" 1>&6
6482 else
6483 echo "$ac_t""no" 1>&6
6484 fi
6485
6486
6487 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6488 echo "configure:6489: checking for --enable-toolbar" >&5
6489 no_cache=0
6490 # Check whether --enable-toolbar or --disable-toolbar was given.
6491 if test "${enable_toolbar+set}" = set; then
6492 enableval="$enable_toolbar"
6493
6494 if test "$enableval" = yes; then
6495 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6496 else
6497 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6498 fi
6499
6500 else
6501
6502 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6503 if test "x$LINE" != x ; then
6504 eval "DEFAULT_$LINE"
6505 else
6506 no_cache=1
6507 fi
6508
6509 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6510
6511 fi
6512
6513
6514 eval "$ac_cv_use_toolbar"
6515 if test "$no_cache" != 1; then
6516 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6517 fi
6518
6519 if test "$wxUSE_TOOLBAR" = yes; then
6520 echo "$ac_t""yes" 1>&6
6521 else
6522 echo "$ac_t""no" 1>&6
6523 fi
6524
6525
6526 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6527 echo "configure:6528: checking for --enable-tbarnative" >&5
6528 no_cache=0
6529 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6530 if test "${enable_tbarnative+set}" = set; then
6531 enableval="$enable_tbarnative"
6532
6533 if test "$enableval" = yes; then
6534 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6535 else
6536 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6537 fi
6538
6539 else
6540
6541 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6542 if test "x$LINE" != x ; then
6543 eval "DEFAULT_$LINE"
6544 else
6545 no_cache=1
6546 fi
6547
6548 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
6549
6550 fi
6551
6552
6553 eval "$ac_cv_use_tbarnative"
6554 if test "$no_cache" != 1; then
6555 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6556 fi
6557
6558 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6559 echo "$ac_t""yes" 1>&6
6560 else
6561 echo "$ac_t""no" 1>&6
6562 fi
6563
6564
6565 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
6566 echo "configure:6567: checking for --enable-tbarsmpl" >&5
6567 no_cache=0
6568 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6569 if test "${enable_tbarsmpl+set}" = set; then
6570 enableval="$enable_tbarsmpl"
6571
6572 if test "$enableval" = yes; then
6573 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6574 else
6575 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6576 fi
6577
6578 else
6579
6580 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6581 if test "x$LINE" != x ; then
6582 eval "DEFAULT_$LINE"
6583 else
6584 no_cache=1
6585 fi
6586
6587 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
6588
6589 fi
6590
6591
6592 eval "$ac_cv_use_tbarsmpl"
6593 if test "$no_cache" != 1; then
6594 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6595 fi
6596
6597 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
6598 echo "$ac_t""yes" 1>&6
6599 else
6600 echo "$ac_t""no" 1>&6
6601 fi
6602
6603
6604 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
6605 echo "configure:6606: checking for --enable-treectrl" >&5
6606 no_cache=0
6607 # Check whether --enable-treectrl or --disable-treectrl was given.
6608 if test "${enable_treectrl+set}" = set; then
6609 enableval="$enable_treectrl"
6610
6611 if test "$enableval" = yes; then
6612 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6613 else
6614 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6615 fi
6616
6617 else
6618
6619 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6620 if test "x$LINE" != x ; then
6621 eval "DEFAULT_$LINE"
6622 else
6623 no_cache=1
6624 fi
6625
6626 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
6627
6628 fi
6629
6630
6631 eval "$ac_cv_use_treectrl"
6632 if test "$no_cache" != 1; then
6633 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6634 fi
6635
6636 if test "$wxUSE_TREECTRL" = yes; then
6637 echo "$ac_t""yes" 1>&6
6638 else
6639 echo "$ac_t""no" 1>&6
6640 fi
6641
6642
6643 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
6644 echo "configure:6645: checking for --enable-popupwin" >&5
6645 no_cache=0
6646 # Check whether --enable-popupwin or --disable-popupwin was given.
6647 if test "${enable_popupwin+set}" = set; then
6648 enableval="$enable_popupwin"
6649
6650 if test "$enableval" = yes; then
6651 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6652 else
6653 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6654 fi
6655
6656 else
6657
6658 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6659 if test "x$LINE" != x ; then
6660 eval "DEFAULT_$LINE"
6661 else
6662 no_cache=1
6663 fi
6664
6665 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6666
6667 fi
6668
6669
6670 eval "$ac_cv_use_popupwin"
6671 if test "$no_cache" != 1; then
6672 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6673 fi
6674
6675 if test "$wxUSE_POPUPWIN" = yes; then
6676 echo "$ac_t""yes" 1>&6
6677 else
6678 echo "$ac_t""no" 1>&6
6679 fi
6680
6681
6682
6683
6684 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
6685 echo "configure:6686: checking for --enable-commondlg" >&5
6686 no_cache=0
6687 # Check whether --enable-commondlg or --disable-commondlg was given.
6688 if test "${enable_commondlg+set}" = set; then
6689 enableval="$enable_commondlg"
6690
6691 if test "$enableval" = yes; then
6692 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6693 else
6694 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6695 fi
6696
6697 else
6698
6699 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6700 if test "x$LINE" != x ; then
6701 eval "DEFAULT_$LINE"
6702 else
6703 no_cache=1
6704 fi
6705
6706 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6707
6708 fi
6709
6710
6711 eval "$ac_cv_use_commondlg"
6712 if test "$no_cache" != 1; then
6713 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6714 fi
6715
6716 if test "$wxUSE_COMMONDLGS" = yes; then
6717 echo "$ac_t""yes" 1>&6
6718 else
6719 echo "$ac_t""no" 1>&6
6720 fi
6721
6722
6723 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
6724 echo "configure:6725: checking for --enable-choicedlg" >&5
6725 no_cache=0
6726 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6727 if test "${enable_choicedlg+set}" = set; then
6728 enableval="$enable_choicedlg"
6729
6730 if test "$enableval" = yes; then
6731 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6732 else
6733 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6734 fi
6735
6736 else
6737
6738 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6739 if test "x$LINE" != x ; then
6740 eval "DEFAULT_$LINE"
6741 else
6742 no_cache=1
6743 fi
6744
6745 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6746
6747 fi
6748
6749
6750 eval "$ac_cv_use_choicedlg"
6751 if test "$no_cache" != 1; then
6752 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6753 fi
6754
6755 if test "$wxUSE_CHOICEDLG" = yes; then
6756 echo "$ac_t""yes" 1>&6
6757 else
6758 echo "$ac_t""no" 1>&6
6759 fi
6760
6761
6762 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
6763 echo "configure:6764: checking for --enable-coldlg" >&5
6764 no_cache=0
6765 # Check whether --enable-coldlg or --disable-coldlg was given.
6766 if test "${enable_coldlg+set}" = set; then
6767 enableval="$enable_coldlg"
6768
6769 if test "$enableval" = yes; then
6770 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6771 else
6772 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6773 fi
6774
6775 else
6776
6777 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6778 if test "x$LINE" != x ; then
6779 eval "DEFAULT_$LINE"
6780 else
6781 no_cache=1
6782 fi
6783
6784 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6785
6786 fi
6787
6788
6789 eval "$ac_cv_use_coldlg"
6790 if test "$no_cache" != 1; then
6791 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6792 fi
6793
6794 if test "$wxUSE_COLOURDLG" = yes; then
6795 echo "$ac_t""yes" 1>&6
6796 else
6797 echo "$ac_t""no" 1>&6
6798 fi
6799
6800
6801 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6802 echo "configure:6803: checking for --enable-filedlg" >&5
6803 no_cache=0
6804 # Check whether --enable-filedlg or --disable-filedlg was given.
6805 if test "${enable_filedlg+set}" = set; then
6806 enableval="$enable_filedlg"
6807
6808 if test "$enableval" = yes; then
6809 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6810 else
6811 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6812 fi
6813
6814 else
6815
6816 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6817 if test "x$LINE" != x ; then
6818 eval "DEFAULT_$LINE"
6819 else
6820 no_cache=1
6821 fi
6822
6823 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6824
6825 fi
6826
6827
6828 eval "$ac_cv_use_filedlg"
6829 if test "$no_cache" != 1; then
6830 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6831 fi
6832
6833 if test "$wxUSE_FILEDLG" = yes; then
6834 echo "$ac_t""yes" 1>&6
6835 else
6836 echo "$ac_t""no" 1>&6
6837 fi
6838
6839
6840 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6841 echo "configure:6842: checking for --enable-filedlg" >&5
6842 no_cache=0
6843 # Check whether --enable-filedlg or --disable-filedlg was given.
6844 if test "${enable_filedlg+set}" = set; then
6845 enableval="$enable_filedlg"
6846
6847 if test "$enableval" = yes; then
6848 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes'
6849 else
6850 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no'
6851 fi
6852
6853 else
6854
6855 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6856 if test "x$LINE" != x ; then
6857 eval "DEFAULT_$LINE"
6858 else
6859 no_cache=1
6860 fi
6861
6862 ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
6863
6864 fi
6865
6866
6867 eval "$ac_cv_use_filedlg"
6868 if test "$no_cache" != 1; then
6869 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6870 fi
6871
6872 if test "$wxUSE_FINDREPLDLG" = yes; then
6873 echo "$ac_t""yes" 1>&6
6874 else
6875 echo "$ac_t""no" 1>&6
6876 fi
6877
6878
6879 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
6880 echo "configure:6881: checking for --enable-fontdlg" >&5
6881 no_cache=0
6882 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6883 if test "${enable_fontdlg+set}" = set; then
6884 enableval="$enable_fontdlg"
6885
6886 if test "$enableval" = yes; then
6887 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6888 else
6889 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6890 fi
6891
6892 else
6893
6894 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6895 if test "x$LINE" != x ; then
6896 eval "DEFAULT_$LINE"
6897 else
6898 no_cache=1
6899 fi
6900
6901 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6902
6903 fi
6904
6905
6906 eval "$ac_cv_use_fontdlg"
6907 if test "$no_cache" != 1; then
6908 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6909 fi
6910
6911 if test "$wxUSE_FONTDLG" = yes; then
6912 echo "$ac_t""yes" 1>&6
6913 else
6914 echo "$ac_t""no" 1>&6
6915 fi
6916
6917
6918 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
6919 echo "configure:6920: checking for --enable-dirdlg" >&5
6920 no_cache=0
6921 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6922 if test "${enable_dirdlg+set}" = set; then
6923 enableval="$enable_dirdlg"
6924
6925 if test "$enableval" = yes; then
6926 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6927 else
6928 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6929 fi
6930
6931 else
6932
6933 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6934 if test "x$LINE" != x ; then
6935 eval "DEFAULT_$LINE"
6936 else
6937 no_cache=1
6938 fi
6939
6940 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6941
6942 fi
6943
6944
6945 eval "$ac_cv_use_dirdlg"
6946 if test "$no_cache" != 1; then
6947 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
6948 fi
6949
6950 if test "$wxUSE_DIRDLG" = yes; then
6951 echo "$ac_t""yes" 1>&6
6952 else
6953 echo "$ac_t""no" 1>&6
6954 fi
6955
6956
6957 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
6958 echo "configure:6959: checking for --enable-msgdlg" >&5
6959 no_cache=0
6960 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6961 if test "${enable_msgdlg+set}" = set; then
6962 enableval="$enable_msgdlg"
6963
6964 if test "$enableval" = yes; then
6965 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
6966 else
6967 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
6968 fi
6969
6970 else
6971
6972 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
6973 if test "x$LINE" != x ; then
6974 eval "DEFAULT_$LINE"
6975 else
6976 no_cache=1
6977 fi
6978
6979 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
6980
6981 fi
6982
6983
6984 eval "$ac_cv_use_msgdlg"
6985 if test "$no_cache" != 1; then
6986 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
6987 fi
6988
6989 if test "$wxUSE_MSGDLG" = yes; then
6990 echo "$ac_t""yes" 1>&6
6991 else
6992 echo "$ac_t""no" 1>&6
6993 fi
6994
6995
6996 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
6997 echo "configure:6998: checking for --enable-numberdlg" >&5
6998 no_cache=0
6999 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7000 if test "${enable_numberdlg+set}" = set; then
7001 enableval="$enable_numberdlg"
7002
7003 if test "$enableval" = yes; then
7004 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7005 else
7006 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7007 fi
7008
7009 else
7010
7011 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7012 if test "x$LINE" != x ; then
7013 eval "DEFAULT_$LINE"
7014 else
7015 no_cache=1
7016 fi
7017
7018 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7019
7020 fi
7021
7022
7023 eval "$ac_cv_use_numberdlg"
7024 if test "$no_cache" != 1; then
7025 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7026 fi
7027
7028 if test "$wxUSE_NUMBERDLG" = yes; then
7029 echo "$ac_t""yes" 1>&6
7030 else
7031 echo "$ac_t""no" 1>&6
7032 fi
7033
7034
7035 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7036 echo "configure:7037: checking for --enable-splash" >&5
7037 no_cache=0
7038 # Check whether --enable-splash or --disable-splash was given.
7039 if test "${enable_splash+set}" = set; then
7040 enableval="$enable_splash"
7041
7042 if test "$enableval" = yes; then
7043 ac_cv_use_splash='wxUSE_SPLASH=yes'
7044 else
7045 ac_cv_use_splash='wxUSE_SPLASH=no'
7046 fi
7047
7048 else
7049
7050 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7051 if test "x$LINE" != x ; then
7052 eval "DEFAULT_$LINE"
7053 else
7054 no_cache=1
7055 fi
7056
7057 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7058
7059 fi
7060
7061
7062 eval "$ac_cv_use_splash"
7063 if test "$no_cache" != 1; then
7064 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7065 fi
7066
7067 if test "$wxUSE_SPLASH" = yes; then
7068 echo "$ac_t""yes" 1>&6
7069 else
7070 echo "$ac_t""no" 1>&6
7071 fi
7072
7073
7074 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7075 echo "configure:7076: checking for --enable-textdlg" >&5
7076 no_cache=0
7077 # Check whether --enable-textdlg or --disable-textdlg was given.
7078 if test "${enable_textdlg+set}" = set; then
7079 enableval="$enable_textdlg"
7080
7081 if test "$enableval" = yes; then
7082 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7083 else
7084 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7085 fi
7086
7087 else
7088
7089 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7090 if test "x$LINE" != x ; then
7091 eval "DEFAULT_$LINE"
7092 else
7093 no_cache=1
7094 fi
7095
7096 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7097
7098 fi
7099
7100
7101 eval "$ac_cv_use_textdlg"
7102 if test "$no_cache" != 1; then
7103 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7104 fi
7105
7106 if test "$wxUSE_TEXTDLG" = yes; then
7107 echo "$ac_t""yes" 1>&6
7108 else
7109 echo "$ac_t""no" 1>&6
7110 fi
7111
7112
7113 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7114 echo "configure:7115: checking for --enable-tipdlg" >&5
7115 no_cache=0
7116 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7117 if test "${enable_tipdlg+set}" = set; then
7118 enableval="$enable_tipdlg"
7119
7120 if test "$enableval" = yes; then
7121 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7122 else
7123 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7124 fi
7125
7126 else
7127
7128 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7129 if test "x$LINE" != x ; then
7130 eval "DEFAULT_$LINE"
7131 else
7132 no_cache=1
7133 fi
7134
7135 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7136
7137 fi
7138
7139
7140 eval "$ac_cv_use_tipdlg"
7141 if test "$no_cache" != 1; then
7142 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7143 fi
7144
7145 if test "$wxUSE_STARTUP_TIPS" = yes; then
7146 echo "$ac_t""yes" 1>&6
7147 else
7148 echo "$ac_t""no" 1>&6
7149 fi
7150
7151
7152 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7153 echo "configure:7154: checking for --enable-progressdlg" >&5
7154 no_cache=0
7155 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7156 if test "${enable_progressdlg+set}" = set; then
7157 enableval="$enable_progressdlg"
7158
7159 if test "$enableval" = yes; then
7160 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7161 else
7162 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7163 fi
7164
7165 else
7166
7167 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7168 if test "x$LINE" != x ; then
7169 eval "DEFAULT_$LINE"
7170 else
7171 no_cache=1
7172 fi
7173
7174 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7175
7176 fi
7177
7178
7179 eval "$ac_cv_use_progressdlg"
7180 if test "$no_cache" != 1; then
7181 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7182 fi
7183
7184 if test "$wxUSE_PROGRESSDLG" = yes; then
7185 echo "$ac_t""yes" 1>&6
7186 else
7187 echo "$ac_t""no" 1>&6
7188 fi
7189
7190
7191 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7192 echo "configure:7193: checking for --enable-wizarddlg" >&5
7193 no_cache=0
7194 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7195 if test "${enable_wizarddlg+set}" = set; then
7196 enableval="$enable_wizarddlg"
7197
7198 if test "$enableval" = yes; then
7199 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7200 else
7201 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7202 fi
7203
7204 else
7205
7206 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7207 if test "x$LINE" != x ; then
7208 eval "DEFAULT_$LINE"
7209 else
7210 no_cache=1
7211 fi
7212
7213 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7214
7215 fi
7216
7217
7218 eval "$ac_cv_use_wizarddlg"
7219 if test "$no_cache" != 1; then
7220 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7221 fi
7222
7223 if test "$wxUSE_WIZARDDLG" = yes; then
7224 echo "$ac_t""yes" 1>&6
7225 else
7226 echo "$ac_t""no" 1>&6
7227 fi
7228
7229
7230
7231
7232 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7233 echo "configure:7234: checking for --enable-menus" >&5
7234 no_cache=0
7235 # Check whether --enable-menus or --disable-menus was given.
7236 if test "${enable_menus+set}" = set; then
7237 enableval="$enable_menus"
7238
7239 if test "$enableval" = yes; then
7240 ac_cv_use_menus='wxUSE_MENUS=yes'
7241 else
7242 ac_cv_use_menus='wxUSE_MENUS=no'
7243 fi
7244
7245 else
7246
7247 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7248 if test "x$LINE" != x ; then
7249 eval "DEFAULT_$LINE"
7250 else
7251 no_cache=1
7252 fi
7253
7254 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7255
7256 fi
7257
7258
7259 eval "$ac_cv_use_menus"
7260 if test "$no_cache" != 1; then
7261 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7262 fi
7263
7264 if test "$wxUSE_MENUS" = yes; then
7265 echo "$ac_t""yes" 1>&6
7266 else
7267 echo "$ac_t""no" 1>&6
7268 fi
7269
7270
7271 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7272 echo "configure:7273: checking for --enable-miniframe" >&5
7273 no_cache=0
7274 # Check whether --enable-miniframe or --disable-miniframe was given.
7275 if test "${enable_miniframe+set}" = set; then
7276 enableval="$enable_miniframe"
7277
7278 if test "$enableval" = yes; then
7279 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7280 else
7281 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7282 fi
7283
7284 else
7285
7286 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7287 if test "x$LINE" != x ; then
7288 eval "DEFAULT_$LINE"
7289 else
7290 no_cache=1
7291 fi
7292
7293 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7294
7295 fi
7296
7297
7298 eval "$ac_cv_use_miniframe"
7299 if test "$no_cache" != 1; then
7300 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7301 fi
7302
7303 if test "$wxUSE_MINIFRAME" = yes; then
7304 echo "$ac_t""yes" 1>&6
7305 else
7306 echo "$ac_t""no" 1>&6
7307 fi
7308
7309
7310 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7311 echo "configure:7312: checking for --enable-tooltips" >&5
7312 no_cache=0
7313 # Check whether --enable-tooltips or --disable-tooltips was given.
7314 if test "${enable_tooltips+set}" = set; then
7315 enableval="$enable_tooltips"
7316
7317 if test "$enableval" = yes; then
7318 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7319 else
7320 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7321 fi
7322
7323 else
7324
7325 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7326 if test "x$LINE" != x ; then
7327 eval "DEFAULT_$LINE"
7328 else
7329 no_cache=1
7330 fi
7331
7332 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7333
7334 fi
7335
7336
7337 eval "$ac_cv_use_tooltips"
7338 if test "$no_cache" != 1; then
7339 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7340 fi
7341
7342 if test "$wxUSE_TOOLTIPS" = yes; then
7343 echo "$ac_t""yes" 1>&6
7344 else
7345 echo "$ac_t""no" 1>&6
7346 fi
7347
7348
7349 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7350 echo "configure:7351: checking for --enable-splines" >&5
7351 no_cache=0
7352 # Check whether --enable-splines or --disable-splines was given.
7353 if test "${enable_splines+set}" = set; then
7354 enableval="$enable_splines"
7355
7356 if test "$enableval" = yes; then
7357 ac_cv_use_splines='wxUSE_SPLINES=yes'
7358 else
7359 ac_cv_use_splines='wxUSE_SPLINES=no'
7360 fi
7361
7362 else
7363
7364 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7365 if test "x$LINE" != x ; then
7366 eval "DEFAULT_$LINE"
7367 else
7368 no_cache=1
7369 fi
7370
7371 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7372
7373 fi
7374
7375
7376 eval "$ac_cv_use_splines"
7377 if test "$no_cache" != 1; then
7378 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7379 fi
7380
7381 if test "$wxUSE_SPLINES" = yes; then
7382 echo "$ac_t""yes" 1>&6
7383 else
7384 echo "$ac_t""no" 1>&6
7385 fi
7386
7387
7388 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7389 echo "configure:7390: checking for --enable-validators" >&5
7390 no_cache=0
7391 # Check whether --enable-validators or --disable-validators was given.
7392 if test "${enable_validators+set}" = set; then
7393 enableval="$enable_validators"
7394
7395 if test "$enableval" = yes; then
7396 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7397 else
7398 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7399 fi
7400
7401 else
7402
7403 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7404 if test "x$LINE" != x ; then
7405 eval "DEFAULT_$LINE"
7406 else
7407 no_cache=1
7408 fi
7409
7410 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7411
7412 fi
7413
7414
7415 eval "$ac_cv_use_validators"
7416 if test "$no_cache" != 1; then
7417 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7418 fi
7419
7420 if test "$wxUSE_VALIDATORS" = yes; then
7421 echo "$ac_t""yes" 1>&6
7422 else
7423 echo "$ac_t""no" 1>&6
7424 fi
7425
7426
7427 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7428 echo "configure:7429: checking for --enable-busyinfo" >&5
7429 no_cache=0
7430 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7431 if test "${enable_busyinfo+set}" = set; then
7432 enableval="$enable_busyinfo"
7433
7434 if test "$enableval" = yes; then
7435 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7436 else
7437 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7438 fi
7439
7440 else
7441
7442 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7443 if test "x$LINE" != x ; then
7444 eval "DEFAULT_$LINE"
7445 else
7446 no_cache=1
7447 fi
7448
7449 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7450
7451 fi
7452
7453
7454 eval "$ac_cv_use_busyinfo"
7455 if test "$no_cache" != 1; then
7456 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7457 fi
7458
7459 if test "$wxUSE_BUSYINFO" = yes; then
7460 echo "$ac_t""yes" 1>&6
7461 else
7462 echo "$ac_t""no" 1>&6
7463 fi
7464
7465
7466 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7467 echo "configure:7468: checking for --enable-joystick" >&5
7468 no_cache=0
7469 # Check whether --enable-joystick or --disable-joystick was given.
7470 if test "${enable_joystick+set}" = set; then
7471 enableval="$enable_joystick"
7472
7473 if test "$enableval" = yes; then
7474 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7475 else
7476 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7477 fi
7478
7479 else
7480
7481 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7482 if test "x$LINE" != x ; then
7483 eval "DEFAULT_$LINE"
7484 else
7485 no_cache=1
7486 fi
7487
7488 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
7489
7490 fi
7491
7492
7493 eval "$ac_cv_use_joystick"
7494 if test "$no_cache" != 1; then
7495 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7496 fi
7497
7498 if test "$wxUSE_JOYSTICK" = yes; then
7499 echo "$ac_t""yes" 1>&6
7500 else
7501 echo "$ac_t""no" 1>&6
7502 fi
7503
7504
7505 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
7506 echo "configure:7507: checking for --enable-metafile" >&5
7507 no_cache=0
7508 # Check whether --enable-metafile or --disable-metafile was given.
7509 if test "${enable_metafile+set}" = set; then
7510 enableval="$enable_metafile"
7511
7512 if test "$enableval" = yes; then
7513 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7514 else
7515 ac_cv_use_metafile='wxUSE_METAFILE=no'
7516 fi
7517
7518 else
7519
7520 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7521 if test "x$LINE" != x ; then
7522 eval "DEFAULT_$LINE"
7523 else
7524 no_cache=1
7525 fi
7526
7527 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7528
7529 fi
7530
7531
7532 eval "$ac_cv_use_metafile"
7533 if test "$no_cache" != 1; then
7534 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7535 fi
7536
7537 if test "$wxUSE_METAFILE" = yes; then
7538 echo "$ac_t""yes" 1>&6
7539 else
7540 echo "$ac_t""no" 1>&6
7541 fi
7542
7543
7544 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
7545 echo "configure:7546: checking for --enable-dragimage" >&5
7546 no_cache=0
7547 # Check whether --enable-dragimage or --disable-dragimage was given.
7548 if test "${enable_dragimage+set}" = set; then
7549 enableval="$enable_dragimage"
7550
7551 if test "$enableval" = yes; then
7552 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7553 else
7554 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7555 fi
7556
7557 else
7558
7559 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7560 if test "x$LINE" != x ; then
7561 eval "DEFAULT_$LINE"
7562 else
7563 no_cache=1
7564 fi
7565
7566 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7567
7568 fi
7569
7570
7571 eval "$ac_cv_use_dragimage"
7572 if test "$no_cache" != 1; then
7573 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7574 fi
7575
7576 if test "$wxUSE_DRAGIMAGE" = yes; then
7577 echo "$ac_t""yes" 1>&6
7578 else
7579 echo "$ac_t""no" 1>&6
7580 fi
7581
7582
7583
7584
7585 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
7586 echo "configure:7587: checking for --enable-palette" >&5
7587 no_cache=0
7588 # Check whether --enable-palette or --disable-palette was given.
7589 if test "${enable_palette+set}" = set; then
7590 enableval="$enable_palette"
7591
7592 if test "$enableval" = yes; then
7593 ac_cv_use_palette='wxUSE_PALETTE=yes'
7594 else
7595 ac_cv_use_palette='wxUSE_PALETTE=no'
7596 fi
7597
7598 else
7599
7600 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
7601 if test "x$LINE" != x ; then
7602 eval "DEFAULT_$LINE"
7603 else
7604 no_cache=1
7605 fi
7606
7607 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
7608
7609 fi
7610
7611
7612 eval "$ac_cv_use_palette"
7613 if test "$no_cache" != 1; then
7614 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
7615 fi
7616
7617 if test "$wxUSE_PALETTE" = yes; then
7618 echo "$ac_t""yes" 1>&6
7619 else
7620 echo "$ac_t""no" 1>&6
7621 fi
7622
7623
7624 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
7625 echo "configure:7626: checking for --enable-image" >&5
7626 no_cache=0
7627 # Check whether --enable-image or --disable-image was given.
7628 if test "${enable_image+set}" = set; then
7629 enableval="$enable_image"
7630
7631 if test "$enableval" = yes; then
7632 ac_cv_use_image='wxUSE_IMAGE=yes'
7633 else
7634 ac_cv_use_image='wxUSE_IMAGE=no'
7635 fi
7636
7637 else
7638
7639 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7640 if test "x$LINE" != x ; then
7641 eval "DEFAULT_$LINE"
7642 else
7643 no_cache=1
7644 fi
7645
7646 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
7647
7648 fi
7649
7650
7651 eval "$ac_cv_use_image"
7652 if test "$no_cache" != 1; then
7653 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7654 fi
7655
7656 if test "$wxUSE_IMAGE" = yes; then
7657 echo "$ac_t""yes" 1>&6
7658 else
7659 echo "$ac_t""no" 1>&6
7660 fi
7661
7662
7663 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7664 echo "configure:7665: checking for --enable-gif" >&5
7665 no_cache=0
7666 # Check whether --enable-gif or --disable-gif was given.
7667 if test "${enable_gif+set}" = set; then
7668 enableval="$enable_gif"
7669
7670 if test "$enableval" = yes; then
7671 ac_cv_use_gif='wxUSE_GIF=yes'
7672 else
7673 ac_cv_use_gif='wxUSE_GIF=no'
7674 fi
7675
7676 else
7677
7678 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7679 if test "x$LINE" != x ; then
7680 eval "DEFAULT_$LINE"
7681 else
7682 no_cache=1
7683 fi
7684
7685 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
7686
7687 fi
7688
7689
7690 eval "$ac_cv_use_gif"
7691 if test "$no_cache" != 1; then
7692 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7693 fi
7694
7695 if test "$wxUSE_GIF" = yes; then
7696 echo "$ac_t""yes" 1>&6
7697 else
7698 echo "$ac_t""no" 1>&6
7699 fi
7700
7701
7702 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7703 echo "configure:7704: checking for --enable-pcx" >&5
7704 no_cache=0
7705 # Check whether --enable-pcx or --disable-pcx was given.
7706 if test "${enable_pcx+set}" = set; then
7707 enableval="$enable_pcx"
7708
7709 if test "$enableval" = yes; then
7710 ac_cv_use_pcx='wxUSE_PCX=yes'
7711 else
7712 ac_cv_use_pcx='wxUSE_PCX=no'
7713 fi
7714
7715 else
7716
7717 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7718 if test "x$LINE" != x ; then
7719 eval "DEFAULT_$LINE"
7720 else
7721 no_cache=1
7722 fi
7723
7724 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
7725
7726 fi
7727
7728
7729 eval "$ac_cv_use_pcx"
7730 if test "$no_cache" != 1; then
7731 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7732 fi
7733
7734 if test "$wxUSE_PCX" = yes; then
7735 echo "$ac_t""yes" 1>&6
7736 else
7737 echo "$ac_t""no" 1>&6
7738 fi
7739
7740
7741 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7742 echo "configure:7743: checking for --enable-pnm" >&5
7743 no_cache=0
7744 # Check whether --enable-pnm or --disable-pnm was given.
7745 if test "${enable_pnm+set}" = set; then
7746 enableval="$enable_pnm"
7747
7748 if test "$enableval" = yes; then
7749 ac_cv_use_pnm='wxUSE_PNM=yes'
7750 else
7751 ac_cv_use_pnm='wxUSE_PNM=no'
7752 fi
7753
7754 else
7755
7756 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7757 if test "x$LINE" != x ; then
7758 eval "DEFAULT_$LINE"
7759 else
7760 no_cache=1
7761 fi
7762
7763 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
7764
7765 fi
7766
7767
7768 eval "$ac_cv_use_pnm"
7769 if test "$no_cache" != 1; then
7770 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7771 fi
7772
7773 if test "$wxUSE_PNM" = yes; then
7774 echo "$ac_t""yes" 1>&6
7775 else
7776 echo "$ac_t""no" 1>&6
7777 fi
7778
7779
7780 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7781 echo "configure:7782: checking for --enable-pnm" >&5
7782 no_cache=0
7783 # Check whether --enable-pnm or --disable-pnm was given.
7784 if test "${enable_pnm+set}" = set; then
7785 enableval="$enable_pnm"
7786
7787 if test "$enableval" = yes; then
7788 ac_cv_use_pnm='wxUSE_XPM=yes'
7789 else
7790 ac_cv_use_pnm='wxUSE_XPM=no'
7791 fi
7792
7793 else
7794
7795 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7796 if test "x$LINE" != x ; then
7797 eval "DEFAULT_$LINE"
7798 else
7799 no_cache=1
7800 fi
7801
7802 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
7803
7804 fi
7805
7806
7807 eval "$ac_cv_use_pnm"
7808 if test "$no_cache" != 1; then
7809 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7810 fi
7811
7812 if test "$wxUSE_XPM" = yes; then
7813 echo "$ac_t""yes" 1>&6
7814 else
7815 echo "$ac_t""no" 1>&6
7816 fi
7817
7818
7819 fi
7820
7821
7822 echo "saving argument cache $wx_arg_cache_file"
7823 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
7824
7825
7826
7827 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7828 echo "configure:7829: checking for toolkit" >&5
7829
7830 if test "$wxUSE_GUI" = "yes"; then
7831
7832 if test "$USE_BEOS" = 1; then
7833 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7834 fi
7835
7836 if test "$TOOLKIT_GIVEN" = 1; then
7837 for toolkit in `echo $ALL_TOOLKITS`; do
7838 var=wxUSE_$toolkit
7839 eval "value=\$${var}"
7840 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7841 done
7842 else
7843 for toolkit in `echo $ALL_TOOLKITS`; do
7844 if test "$has_toolkit_in_cache" != 1; then
7845 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7846 else
7847 var=DEFAULT_wxUSE_$toolkit
7848 fi
7849 eval "wxUSE_$toolkit=\$${var}"
7850 done
7851 fi
7852
7853 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
7854 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0}`
7855
7856 case "${host}" in
7857 *-pc-os2_emx | *-pc-os2-emx )
7858 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7859 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7860 LEX_STEM="lexyy"
7861 ;;
7862 *)
7863 PATH_IFS=':'
7864 LEX_STEM="lex.yy"
7865 ;;
7866 esac
7867
7868 case "$NUM_TOOLKITS" in
7869 1)
7870 ;;
7871 0)
7872 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7873 ;;
7874 *)
7875 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7876 esac
7877
7878 for toolkit in `echo $ALL_TOOLKITS`; do
7879 var=wxUSE_$toolkit
7880 eval "value=\$${var}"
7881 if test "x$value" != x; then
7882 cache_var=CACHE_$toolkit
7883 eval "cache=\$${cache_var}"
7884 if test "$cache" = 1; then
7885 echo "$var=$value" >> ${wx_arg_cache_file}
7886 fi
7887 if test "$value" = 1; then
7888 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7889 echo "$ac_t""$toolkit_echo" 1>&6
7890 fi
7891 fi
7892 done
7893 else
7894 PATH_IFS=':'
7895 echo "$ac_t""base ($host_alias hosted) only" 1>&6
7896 fi
7897
7898
7899 cat > confcache <<\EOF
7900 # This file is a shell script that caches the results of configure
7901 # tests run on this system so they can be shared between configure
7902 # scripts and configure runs. It is not useful on other systems.
7903 # If it contains results you don't want to keep, you may remove or edit it.
7904 #
7905 # By default, configure uses ./config.cache as the cache file,
7906 # creating it if it does not exist already. You can give configure
7907 # the --cache-file=FILE option to use a different cache file; that is
7908 # what configure does when it calls configure scripts in
7909 # subdirectories, so they share the cache.
7910 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7911 # config.status only pays attention to the cache file if you give it the
7912 # --recheck option to rerun configure.
7913 #
7914 EOF
7915 # The following way of writing the cache mishandles newlines in values,
7916 # but we know of no workaround that is simple, portable, and efficient.
7917 # So, don't put newlines in cache variables' values.
7918 # Ultrix sh set writes to stderr and can't be redirected directly,
7919 # and sets the high bit in the cache file unless we assign to the vars.
7920 (set) 2>&1 |
7921 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7922 *ac_space=\ *)
7923 # `set' does not quote correctly, so add quotes (double-quote substitution
7924 # turns \\\\ into \\, and sed turns \\ into \).
7925 sed -n \
7926 -e "s/'/'\\\\''/g" \
7927 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7928 ;;
7929 *)
7930 # `set' quotes correctly as required by POSIX, so do not add quotes.
7931 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7932 ;;
7933 esac >> confcache
7934 if cmp -s $cache_file confcache; then
7935 :
7936 else
7937 if test -w $cache_file; then
7938 echo "updating cache $cache_file"
7939 cat confcache > $cache_file
7940 else
7941 echo "not updating unwritable cache $cache_file"
7942 fi
7943 fi
7944 rm -f confcache
7945
7946
7947 if test "$build" != "$host" ; then
7948 if test "$USE_WIN32" = 1 ; then
7949 CC=$host_alias-gcc
7950 CXX=$host_alias-c++
7951 AR=$host_alias-ar
7952 RANLIB=$host_alias-ranlib
7953 DLLTOOL=$host_alias-dlltool
7954 RESCOMP=$host_alias-windres
7955 LD=$host_alias-ld
7956 NM=$host_alias-nm
7957 STRIP=$host_alias-strip
7958 else
7959 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
7960 fi
7961 fi
7962
7963 # Extract the first word of "gcc", so it can be a program name with args.
7964 set dummy gcc; ac_word=$2
7965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7966 echo "configure:7967: checking for $ac_word" >&5
7967 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7968 echo $ac_n "(cached) $ac_c" 1>&6
7969 else
7970 if test -n "$CC"; then
7971 ac_cv_prog_CC="$CC" # Let the user override the test.
7972 else
7973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7974 ac_dummy="$PATH"
7975 for ac_dir in $ac_dummy; do
7976 test -z "$ac_dir" && ac_dir=.
7977 if test -f $ac_dir/$ac_word; then
7978 ac_cv_prog_CC="gcc"
7979 break
7980 fi
7981 done
7982 IFS="$ac_save_ifs"
7983 fi
7984 fi
7985 CC="$ac_cv_prog_CC"
7986 if test -n "$CC"; then
7987 echo "$ac_t""$CC" 1>&6
7988 else
7989 echo "$ac_t""no" 1>&6
7990 fi
7991
7992 if test -z "$CC"; then
7993 # Extract the first word of "cc", so it can be a program name with args.
7994 set dummy cc; ac_word=$2
7995 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7996 echo "configure:7997: checking for $ac_word" >&5
7997 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7998 echo $ac_n "(cached) $ac_c" 1>&6
7999 else
8000 if test -n "$CC"; then
8001 ac_cv_prog_CC="$CC" # Let the user override the test.
8002 else
8003 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8004 ac_prog_rejected=no
8005 ac_dummy="$PATH"
8006 for ac_dir in $ac_dummy; do
8007 test -z "$ac_dir" && ac_dir=.
8008 if test -f $ac_dir/$ac_word; then
8009 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8010 ac_prog_rejected=yes
8011 continue
8012 fi
8013 ac_cv_prog_CC="cc"
8014 break
8015 fi
8016 done
8017 IFS="$ac_save_ifs"
8018 if test $ac_prog_rejected = yes; then
8019 # We found a bogon in the path, so make sure we never use it.
8020 set dummy $ac_cv_prog_CC
8021 shift
8022 if test $# -gt 0; then
8023 # We chose a different compiler from the bogus one.
8024 # However, it has the same basename, so the bogon will be chosen
8025 # first if we set CC to just the basename; use the full file name.
8026 shift
8027 set dummy "$ac_dir/$ac_word" "$@"
8028 shift
8029 ac_cv_prog_CC="$@"
8030 fi
8031 fi
8032 fi
8033 fi
8034 CC="$ac_cv_prog_CC"
8035 if test -n "$CC"; then
8036 echo "$ac_t""$CC" 1>&6
8037 else
8038 echo "$ac_t""no" 1>&6
8039 fi
8040
8041 if test -z "$CC"; then
8042 case "`uname -s`" in
8043 *win32* | *WIN32*)
8044 # Extract the first word of "cl", so it can be a program name with args.
8045 set dummy cl; ac_word=$2
8046 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8047 echo "configure:8048: checking for $ac_word" >&5
8048 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8049 echo $ac_n "(cached) $ac_c" 1>&6
8050 else
8051 if test -n "$CC"; then
8052 ac_cv_prog_CC="$CC" # Let the user override the test.
8053 else
8054 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8055 ac_dummy="$PATH"
8056 for ac_dir in $ac_dummy; do
8057 test -z "$ac_dir" && ac_dir=.
8058 if test -f $ac_dir/$ac_word; then
8059 ac_cv_prog_CC="cl"
8060 break
8061 fi
8062 done
8063 IFS="$ac_save_ifs"
8064 fi
8065 fi
8066 CC="$ac_cv_prog_CC"
8067 if test -n "$CC"; then
8068 echo "$ac_t""$CC" 1>&6
8069 else
8070 echo "$ac_t""no" 1>&6
8071 fi
8072 ;;
8073 esac
8074 fi
8075 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8076 fi
8077
8078 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8079 echo "configure:8080: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8080
8081 ac_ext=c
8082 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8083 ac_cpp='$CPP $CPPFLAGS'
8084 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8085 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8086 cross_compiling=$ac_cv_prog_cc_cross
8087
8088 cat > conftest.$ac_ext << EOF
8089
8090 #line 8091 "configure"
8091 #include "confdefs.h"
8092
8093 main(){return(0);}
8094 EOF
8095 if { (eval echo configure:8096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8096 ac_cv_prog_cc_works=yes
8097 # If we can't run a trivial program, we are probably using a cross compiler.
8098 if (./conftest; exit) 2>/dev/null; then
8099 ac_cv_prog_cc_cross=no
8100 else
8101 ac_cv_prog_cc_cross=yes
8102 fi
8103 else
8104 echo "configure: failed program was:" >&5
8105 cat conftest.$ac_ext >&5
8106 ac_cv_prog_cc_works=no
8107 fi
8108 rm -fr conftest*
8109 ac_ext=c
8110 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8111 ac_cpp='$CPP $CPPFLAGS'
8112 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8113 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8114 cross_compiling=$ac_cv_prog_cc_cross
8115
8116 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8117 if test $ac_cv_prog_cc_works = no; then
8118 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8119 fi
8120 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8121 echo "configure:8122: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8122 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8123 cross_compiling=$ac_cv_prog_cc_cross
8124
8125 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8126 echo "configure:8127: checking whether we are using GNU C" >&5
8127 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8128 echo $ac_n "(cached) $ac_c" 1>&6
8129 else
8130 cat > conftest.c <<EOF
8131 #ifdef __GNUC__
8132 yes;
8133 #endif
8134 EOF
8135 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8136 ac_cv_prog_gcc=yes
8137 else
8138 ac_cv_prog_gcc=no
8139 fi
8140 fi
8141
8142 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8143
8144 if test $ac_cv_prog_gcc = yes; then
8145 GCC=yes
8146 else
8147 GCC=
8148 fi
8149
8150 ac_test_CFLAGS="${CFLAGS+set}"
8151 ac_save_CFLAGS="$CFLAGS"
8152 CFLAGS=
8153 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8154 echo "configure:8155: checking whether ${CC-cc} accepts -g" >&5
8155 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8156 echo $ac_n "(cached) $ac_c" 1>&6
8157 else
8158 echo 'void f(){}' > conftest.c
8159 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8160 ac_cv_prog_cc_g=yes
8161 else
8162 ac_cv_prog_cc_g=no
8163 fi
8164 rm -f conftest*
8165
8166 fi
8167
8168 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8169 if test "$ac_test_CFLAGS" = set; then
8170 CFLAGS="$ac_save_CFLAGS"
8171 elif test $ac_cv_prog_cc_g = yes; then
8172 if test "$GCC" = yes; then
8173 CFLAGS="-g -O2"
8174 else
8175 CFLAGS="-g"
8176 fi
8177 else
8178 if test "$GCC" = yes; then
8179 CFLAGS="-O2"
8180 else
8181 CFLAGS=
8182 fi
8183 fi
8184
8185
8186 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8187
8188 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8189 echo "configure:8190: checking how to run the C preprocessor" >&5
8190 # On Suns, sometimes $CPP names a directory.
8191 if test -n "$CPP" && test -d "$CPP"; then
8192 CPP=
8193 fi
8194 if test -z "$CPP"; then
8195 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8196 echo $ac_n "(cached) $ac_c" 1>&6
8197 else
8198 # This must be in double quotes, not single quotes, because CPP may get
8199 # substituted into the Makefile and "${CC-cc}" will confuse make.
8200 CPP="${CC-cc} -E"
8201 # On the NeXT, cc -E runs the code through the compiler's parser,
8202 # not just through cpp.
8203 cat > conftest.$ac_ext <<EOF
8204 #line 8205 "configure"
8205 #include "confdefs.h"
8206 #include <assert.h>
8207 Syntax Error
8208 EOF
8209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8210 { (eval echo configure:8211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8212 if test -z "$ac_err"; then
8213 :
8214 else
8215 echo "$ac_err" >&5
8216 echo "configure: failed program was:" >&5
8217 cat conftest.$ac_ext >&5
8218 rm -rf conftest*
8219 CPP="${CC-cc} -E -traditional-cpp"
8220 cat > conftest.$ac_ext <<EOF
8221 #line 8222 "configure"
8222 #include "confdefs.h"
8223 #include <assert.h>
8224 Syntax Error
8225 EOF
8226 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8227 { (eval echo configure:8228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8228 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8229 if test -z "$ac_err"; then
8230 :
8231 else
8232 echo "$ac_err" >&5
8233 echo "configure: failed program was:" >&5
8234 cat conftest.$ac_ext >&5
8235 rm -rf conftest*
8236 CPP="${CC-cc} -nologo -E"
8237 cat > conftest.$ac_ext <<EOF
8238 #line 8239 "configure"
8239 #include "confdefs.h"
8240 #include <assert.h>
8241 Syntax Error
8242 EOF
8243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8244 { (eval echo configure:8245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8245 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8246 if test -z "$ac_err"; then
8247 :
8248 else
8249 echo "$ac_err" >&5
8250 echo "configure: failed program was:" >&5
8251 cat conftest.$ac_ext >&5
8252 rm -rf conftest*
8253 CPP=/lib/cpp
8254 fi
8255 rm -f conftest*
8256 fi
8257 rm -f conftest*
8258 fi
8259 rm -f conftest*
8260 ac_cv_prog_CPP="$CPP"
8261 fi
8262 CPP="$ac_cv_prog_CPP"
8263 else
8264 ac_cv_prog_CPP="$CPP"
8265 fi
8266 echo "$ac_t""$CPP" 1>&6
8267
8268 if test $ac_cv_prog_gcc = yes; then
8269 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8270 echo "configure:8271: checking whether ${CC-cc} needs -traditional" >&5
8271 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8272 echo $ac_n "(cached) $ac_c" 1>&6
8273 else
8274 ac_pattern="Autoconf.*'x'"
8275 cat > conftest.$ac_ext <<EOF
8276 #line 8277 "configure"
8277 #include "confdefs.h"
8278 #include <sgtty.h>
8279 Autoconf TIOCGETP
8280 EOF
8281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8282 egrep "$ac_pattern" >/dev/null 2>&1; then
8283 rm -rf conftest*
8284 ac_cv_prog_gcc_traditional=yes
8285 else
8286 rm -rf conftest*
8287 ac_cv_prog_gcc_traditional=no
8288 fi
8289 rm -f conftest*
8290
8291
8292 if test $ac_cv_prog_gcc_traditional = no; then
8293 cat > conftest.$ac_ext <<EOF
8294 #line 8295 "configure"
8295 #include "confdefs.h"
8296 #include <termio.h>
8297 Autoconf TCGETA
8298 EOF
8299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8300 egrep "$ac_pattern" >/dev/null 2>&1; then
8301 rm -rf conftest*
8302 ac_cv_prog_gcc_traditional=yes
8303 fi
8304 rm -f conftest*
8305
8306 fi
8307 fi
8308
8309 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8310 if test $ac_cv_prog_gcc_traditional = yes; then
8311 CC="$CC -traditional"
8312 fi
8313 fi
8314
8315
8316
8317 ac_ext=C
8318 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8319 ac_cpp='$CXXCPP $CPPFLAGS'
8320 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8321 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8322 cross_compiling=$ac_cv_prog_cxx_cross
8323
8324
8325 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8326 do
8327 # Extract the first word of "$ac_prog", so it can be a program name with args.
8328 set dummy $ac_prog; ac_word=$2
8329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8330 echo "configure:8331: checking for $ac_word" >&5
8331 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8332 echo $ac_n "(cached) $ac_c" 1>&6
8333 else
8334 if test -n "$CXX"; then
8335 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8336 else
8337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8338 ac_dummy="$PATH"
8339 for ac_dir in $ac_dummy; do
8340 test -z "$ac_dir" && ac_dir=.
8341 if test -f $ac_dir/$ac_word; then
8342 ac_cv_prog_CXX="$ac_prog"
8343 break
8344 fi
8345 done
8346 IFS="$ac_save_ifs"
8347 fi
8348 fi
8349 CXX="$ac_cv_prog_CXX"
8350 if test -n "$CXX"; then
8351 echo "$ac_t""$CXX" 1>&6
8352 else
8353 echo "$ac_t""no" 1>&6
8354 fi
8355
8356 test -n "$CXX" && break
8357 done
8358 test -n "$CXX" || CXX="gcc"
8359
8360
8361 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8362 echo "configure:8363: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8363
8364 ac_ext=C
8365 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8366 ac_cpp='$CXXCPP $CPPFLAGS'
8367 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8368 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8369 cross_compiling=$ac_cv_prog_cxx_cross
8370
8371 cat > conftest.$ac_ext << EOF
8372
8373 #line 8374 "configure"
8374 #include "confdefs.h"
8375
8376 int main(){return(0);}
8377 EOF
8378 if { (eval echo configure:8379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8379 ac_cv_prog_cxx_works=yes
8380 # If we can't run a trivial program, we are probably using a cross compiler.
8381 if (./conftest; exit) 2>/dev/null; then
8382 ac_cv_prog_cxx_cross=no
8383 else
8384 ac_cv_prog_cxx_cross=yes
8385 fi
8386 else
8387 echo "configure: failed program was:" >&5
8388 cat conftest.$ac_ext >&5
8389 ac_cv_prog_cxx_works=no
8390 fi
8391 rm -fr conftest*
8392 ac_ext=C
8393 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8394 ac_cpp='$CXXCPP $CPPFLAGS'
8395 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8396 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8397 cross_compiling=$ac_cv_prog_cxx_cross
8398
8399 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8400 if test $ac_cv_prog_cxx_works = no; then
8401 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8402 fi
8403 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8404 echo "configure:8405: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
8405 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8406 cross_compiling=$ac_cv_prog_cxx_cross
8407
8408 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
8409 echo "configure:8410: checking whether we are using GNU C++" >&5
8410 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8411 echo $ac_n "(cached) $ac_c" 1>&6
8412 else
8413 cat > conftest.C <<EOF
8414 #ifdef __GNUC__
8415 yes;
8416 #endif
8417 EOF
8418 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8419 ac_cv_prog_gxx=yes
8420 else
8421 ac_cv_prog_gxx=no
8422 fi
8423 fi
8424
8425 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
8426
8427 if test $ac_cv_prog_gxx = yes; then
8428 GXX=yes
8429 else
8430 GXX=
8431 fi
8432
8433 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8434 ac_save_CXXFLAGS="$CXXFLAGS"
8435 CXXFLAGS=
8436 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
8437 echo "configure:8438: checking whether ${CXX-g++} accepts -g" >&5
8438 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8439 echo $ac_n "(cached) $ac_c" 1>&6
8440 else
8441 echo 'void f(){}' > conftest.cc
8442 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
8443 ac_cv_prog_cxx_g=yes
8444 else
8445 ac_cv_prog_cxx_g=no
8446 fi
8447 rm -f conftest*
8448
8449 fi
8450
8451 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
8452 if test "$ac_test_CXXFLAGS" = set; then
8453 CXXFLAGS="$ac_save_CXXFLAGS"
8454 elif test $ac_cv_prog_cxx_g = yes; then
8455 if test "$GXX" = yes; then
8456 CXXFLAGS="-g -O2"
8457 else
8458 CXXFLAGS="-g"
8459 fi
8460 else
8461 if test "$GXX" = yes; then
8462 CXXFLAGS="-O2"
8463 else
8464 CXXFLAGS=
8465 fi
8466 fi
8467
8468
8469 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8470
8471 ac_ext=c
8472 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8473 ac_cpp='$CPP $CPPFLAGS'
8474 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8475 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8476 cross_compiling=$ac_cv_prog_cc_cross
8477
8478
8479 # Extract the first word of "ranlib", so it can be a program name with args.
8480 set dummy ranlib; ac_word=$2
8481 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8482 echo "configure:8483: checking for $ac_word" >&5
8483 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8484 echo $ac_n "(cached) $ac_c" 1>&6
8485 else
8486 if test -n "$RANLIB"; then
8487 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8488 else
8489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8490 ac_dummy="$PATH"
8491 for ac_dir in $ac_dummy; do
8492 test -z "$ac_dir" && ac_dir=.
8493 if test -f $ac_dir/$ac_word; then
8494 ac_cv_prog_RANLIB="ranlib"
8495 break
8496 fi
8497 done
8498 IFS="$ac_save_ifs"
8499 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8500 fi
8501 fi
8502 RANLIB="$ac_cv_prog_RANLIB"
8503 if test -n "$RANLIB"; then
8504 echo "$ac_t""$RANLIB" 1>&6
8505 else
8506 echo "$ac_t""no" 1>&6
8507 fi
8508
8509
8510 # Extract the first word of "ar", so it can be a program name with args.
8511 set dummy ar; ac_word=$2
8512 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8513 echo "configure:8514: checking for $ac_word" >&5
8514 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8515 echo $ac_n "(cached) $ac_c" 1>&6
8516 else
8517 if test -n "$AR"; then
8518 ac_cv_prog_AR="$AR" # Let the user override the test.
8519 else
8520 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8521 ac_dummy="$PATH"
8522 for ac_dir in $ac_dummy; do
8523 test -z "$ac_dir" && ac_dir=.
8524 if test -f $ac_dir/$ac_word; then
8525 ac_cv_prog_AR="ar"
8526 break
8527 fi
8528 done
8529 IFS="$ac_save_ifs"
8530 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8531 fi
8532 fi
8533 AR="$ac_cv_prog_AR"
8534 if test -n "$AR"; then
8535 echo "$ac_t""$AR" 1>&6
8536 else
8537 echo "$ac_t""no" 1>&6
8538 fi
8539
8540
8541 # Find a good install program. We prefer a C program (faster),
8542 # so one script is as good as another. But avoid the broken or
8543 # incompatible versions:
8544 # SysV /etc/install, /usr/sbin/install
8545 # SunOS /usr/etc/install
8546 # IRIX /sbin/install
8547 # AIX /bin/install
8548 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8549 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8550 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8551 # ./install, which can be erroneously created by make from ./install.sh.
8552 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8553 echo "configure:8554: checking for a BSD compatible install" >&5
8554 if test -z "$INSTALL"; then
8555 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8556 echo $ac_n "(cached) $ac_c" 1>&6
8557 else
8558 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8559 for ac_dir in $PATH; do
8560 # Account for people who put trailing slashes in PATH elements.
8561 case "$ac_dir/" in
8562 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8563 *)
8564 # OSF1 and SCO ODT 3.0 have their own names for install.
8565 # Don't use installbsd from OSF since it installs stuff as root
8566 # by default.
8567 for ac_prog in ginstall scoinst install; do
8568 if test -f $ac_dir/$ac_prog; then
8569 if test $ac_prog = install &&
8570 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8571 # AIX install. It has an incompatible calling convention.
8572 :
8573 else
8574 ac_cv_path_install="$ac_dir/$ac_prog -c"
8575 break 2
8576 fi
8577 fi
8578 done
8579 ;;
8580 esac
8581 done
8582 IFS="$ac_save_IFS"
8583
8584 fi
8585 if test "${ac_cv_path_install+set}" = set; then
8586 INSTALL="$ac_cv_path_install"
8587 else
8588 # As a last resort, use the slow shell script. We don't cache a
8589 # path for INSTALL within a source directory, because that will
8590 # break other packages using the cache if that directory is
8591 # removed, or if the path is relative.
8592 INSTALL="$ac_install_sh"
8593 fi
8594 fi
8595 echo "$ac_t""$INSTALL" 1>&6
8596
8597 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8598 # It thinks the first close brace ends the variable substitution.
8599 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8600
8601 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8602
8603 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8604
8605 case "${host}" in
8606
8607 powerpc-*-darwin* )
8608 INSTALL_PROGRAM="cp -fp"
8609 INSTALL_DATA="cp -fp"
8610 ;;
8611 *)
8612 ;;
8613 esac
8614
8615 # Extract the first word of "strip", so it can be a program name with args.
8616 set dummy strip; ac_word=$2
8617 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8618 echo "configure:8619: checking for $ac_word" >&5
8619 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8620 echo $ac_n "(cached) $ac_c" 1>&6
8621 else
8622 if test -n "$STRIP"; then
8623 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8624 else
8625 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8626 ac_dummy="$PATH"
8627 for ac_dir in $ac_dummy; do
8628 test -z "$ac_dir" && ac_dir=.
8629 if test -f $ac_dir/$ac_word; then
8630 ac_cv_prog_STRIP="strip"
8631 break
8632 fi
8633 done
8634 IFS="$ac_save_ifs"
8635 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8636 fi
8637 fi
8638 STRIP="$ac_cv_prog_STRIP"
8639 if test -n "$STRIP"; then
8640 echo "$ac_t""$STRIP" 1>&6
8641 else
8642 echo "$ac_t""no" 1>&6
8643 fi
8644
8645
8646 echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8647 echo "configure:8648: checking make for VPATH support" >&5
8648 cat - << EOF > confMake
8649 check : file
8650 cp \$? \$@
8651 cp \$? final_file
8652 EOF
8653
8654 if test ! -d sub ; then
8655 mkdir sub
8656 fi
8657 echo dummy > sub/file
8658 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
8659 RESULT=$?
8660 rm -f sub/file check final_file confMake
8661 rmdir sub
8662 if test "$RESULT" = 0; then
8663 echo "$ac_t""yes" 1>&6
8664 else
8665 echo "$ac_t""no" 1>&6
8666 { echo "configure: error:
8667 You need a make-utility that is able to use the variable
8668 VPATH correctly.
8669 If your version of make does not support VPATH correctly,
8670 please install GNU-make (possibly as gmake), and start
8671 configure with the following command:
8672 export MAKE=gmake; ./configure for sh-type shells
8673 setenv MAKE gmake; ./configure for csh-type shells
8674 Also please do remember to use gmake in this case every time
8675 you are trying to compile.
8676 " 1>&2; exit 1; }
8677 fi
8678
8679 for ac_prog in 'bison -y' byacc
8680 do
8681 # Extract the first word of "$ac_prog", so it can be a program name with args.
8682 set dummy $ac_prog; ac_word=$2
8683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8684 echo "configure:8685: checking for $ac_word" >&5
8685 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8686 echo $ac_n "(cached) $ac_c" 1>&6
8687 else
8688 if test -n "$YACC"; then
8689 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8690 else
8691 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8692 ac_dummy="$PATH"
8693 for ac_dir in $ac_dummy; do
8694 test -z "$ac_dir" && ac_dir=.
8695 if test -f $ac_dir/$ac_word; then
8696 ac_cv_prog_YACC="$ac_prog"
8697 break
8698 fi
8699 done
8700 IFS="$ac_save_ifs"
8701 fi
8702 fi
8703 YACC="$ac_cv_prog_YACC"
8704 if test -n "$YACC"; then
8705 echo "$ac_t""$YACC" 1>&6
8706 else
8707 echo "$ac_t""no" 1>&6
8708 fi
8709
8710 test -n "$YACC" && break
8711 done
8712 test -n "$YACC" || YACC="yacc"
8713
8714
8715 # Extract the first word of "flex", so it can be a program name with args.
8716 set dummy flex; ac_word=$2
8717 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8718 echo "configure:8719: checking for $ac_word" >&5
8719 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8720 echo $ac_n "(cached) $ac_c" 1>&6
8721 else
8722 if test -n "$LEX"; then
8723 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8724 else
8725 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8726 ac_dummy="$PATH"
8727 for ac_dir in $ac_dummy; do
8728 test -z "$ac_dir" && ac_dir=.
8729 if test -f $ac_dir/$ac_word; then
8730 ac_cv_prog_LEX="flex"
8731 break
8732 fi
8733 done
8734 IFS="$ac_save_ifs"
8735 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
8736 fi
8737 fi
8738 LEX="$ac_cv_prog_LEX"
8739 if test -n "$LEX"; then
8740 echo "$ac_t""$LEX" 1>&6
8741 else
8742 echo "$ac_t""no" 1>&6
8743 fi
8744
8745 if test -z "$LEXLIB"
8746 then
8747 case "$LEX" in
8748 flex*) ac_lib=fl ;;
8749 *) ac_lib=l ;;
8750 esac
8751 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8752 echo "configure:8753: checking for yywrap in -l$ac_lib" >&5
8753 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8754 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8755 echo $ac_n "(cached) $ac_c" 1>&6
8756 else
8757 ac_save_LIBS="$LIBS"
8758 LIBS="-l$ac_lib $LIBS"
8759 cat > conftest.$ac_ext <<EOF
8760 #line 8761 "configure"
8761 #include "confdefs.h"
8762 /* Override any gcc2 internal prototype to avoid an error. */
8763 /* We use char because int might match the return type of a gcc2
8764 builtin and then its argument prototype would still apply. */
8765 char yywrap();
8766
8767 int main() {
8768 yywrap()
8769 ; return 0; }
8770 EOF
8771 if { (eval echo configure:8772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8772 rm -rf conftest*
8773 eval "ac_cv_lib_$ac_lib_var=yes"
8774 else
8775 echo "configure: failed program was:" >&5
8776 cat conftest.$ac_ext >&5
8777 rm -rf conftest*
8778 eval "ac_cv_lib_$ac_lib_var=no"
8779 fi
8780 rm -f conftest*
8781 LIBS="$ac_save_LIBS"
8782
8783 fi
8784 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8785 echo "$ac_t""yes" 1>&6
8786 LEXLIB="-l$ac_lib"
8787 else
8788 echo "$ac_t""no" 1>&6
8789 fi
8790
8791 fi
8792
8793
8794 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8795 echo "configure:8796: checking whether ln -s works" >&5
8796 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8797 echo $ac_n "(cached) $ac_c" 1>&6
8798 else
8799 rm -f conftestdata
8800 if ln -s X conftestdata 2>/dev/null
8801 then
8802 rm -f conftestdata
8803 ac_cv_prog_LN_S="ln -s"
8804 else
8805 ac_cv_prog_LN_S=ln
8806 fi
8807 fi
8808 LN_S="$ac_cv_prog_LN_S"
8809 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8810 echo "$ac_t""yes" 1>&6
8811 else
8812 echo "$ac_t""no" 1>&6
8813 fi
8814
8815
8816
8817 SEARCH_INCLUDE="\
8818 /usr/local/include \
8819 \
8820 /usr/Motif-1.2/include \
8821 /usr/Motif-2.1/include \
8822 \
8823 /usr/include/Motif1.2 \
8824 /opt/xpm/include/X11 \
8825 /opt/GBxpm/include/ \
8826 /opt/GBxpm/X11/include/ \
8827 \
8828 /usr/Motif1.2/include \
8829 /usr/dt/include \
8830 /usr/openwin/include \
8831 \
8832 /usr/include/Xm \
8833 \
8834 /usr/X11R6/include \
8835 /usr/X11R6.4/include \
8836 /usr/X11R5/include \
8837 /usr/X11R4/include \
8838 \
8839 /usr/include/X11R6 \
8840 /usr/include/X11R5 \
8841 /usr/include/X11R4 \
8842 \
8843 /usr/local/X11R6/include \
8844 /usr/local/X11R5/include \
8845 /usr/local/X11R4/include \
8846 \
8847 /usr/local/include/X11R6 \
8848 /usr/local/include/X11R5 \
8849 /usr/local/include/X11R4 \
8850 \
8851 /usr/X11/include \
8852 /usr/include/X11 \
8853 /usr/local/X11/include \
8854 /usr/local/include/X11 \
8855 \
8856 /usr/X386/include \
8857 /usr/x386/include \
8858 /usr/XFree86/include/X11 \
8859 \
8860 X:/XFree86/include \
8861 X:/XFree86/include/X11 \
8862 \
8863 /usr/include/gtk \
8864 /usr/local/include/gtk \
8865 /usr/include/glib \
8866 /usr/local/include/glib \
8867 \
8868 /usr/include/qt \
8869 /usr/local/include/qt \
8870 \
8871 /usr/include/windows \
8872 /usr/include/wine \
8873 /usr/local/include/wine \
8874 \
8875 /usr/unsupported/include \
8876 /usr/athena/include \
8877 /usr/local/x11r5/include \
8878 /usr/lpp/Xamples/include \
8879 \
8880 /usr/openwin/share/include \
8881 \
8882 /usr/include"
8883
8884 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8885
8886
8887 cat > confcache <<\EOF
8888 # This file is a shell script that caches the results of configure
8889 # tests run on this system so they can be shared between configure
8890 # scripts and configure runs. It is not useful on other systems.
8891 # If it contains results you don't want to keep, you may remove or edit it.
8892 #
8893 # By default, configure uses ./config.cache as the cache file,
8894 # creating it if it does not exist already. You can give configure
8895 # the --cache-file=FILE option to use a different cache file; that is
8896 # what configure does when it calls configure scripts in
8897 # subdirectories, so they share the cache.
8898 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8899 # config.status only pays attention to the cache file if you give it the
8900 # --recheck option to rerun configure.
8901 #
8902 EOF
8903 # The following way of writing the cache mishandles newlines in values,
8904 # but we know of no workaround that is simple, portable, and efficient.
8905 # So, don't put newlines in cache variables' values.
8906 # Ultrix sh set writes to stderr and can't be redirected directly,
8907 # and sets the high bit in the cache file unless we assign to the vars.
8908 (set) 2>&1 |
8909 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8910 *ac_space=\ *)
8911 # `set' does not quote correctly, so add quotes (double-quote substitution
8912 # turns \\\\ into \\, and sed turns \\ into \).
8913 sed -n \
8914 -e "s/'/'\\\\''/g" \
8915 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8916 ;;
8917 *)
8918 # `set' quotes correctly as required by POSIX, so do not add quotes.
8919 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8920 ;;
8921 esac >> confcache
8922 if cmp -s $cache_file confcache; then
8923 :
8924 else
8925 if test -w $cache_file; then
8926 echo "updating cache $cache_file"
8927 cat confcache > $cache_file
8928 else
8929 echo "not updating unwritable cache $cache_file"
8930 fi
8931 fi
8932 rm -f confcache
8933
8934
8935
8936
8937 REGEX_INCLUDE=
8938 if test "$wxUSE_REGEX" != "no"; then
8939 cat >> confdefs.h <<\EOF
8940 #define wxUSE_REGEX 1
8941 EOF
8942
8943
8944 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
8945 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
8946 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
8947 echo "configure:8948: checking for regex.h" >&5
8948 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8949 echo $ac_n "(cached) $ac_c" 1>&6
8950 else
8951 cat > conftest.$ac_ext <<EOF
8952 #line 8953 "configure"
8953 #include "confdefs.h"
8954 #include <regex.h>
8955 EOF
8956 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8957 { (eval echo configure:8958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8958 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8959 if test -z "$ac_err"; then
8960 rm -rf conftest*
8961 eval "ac_cv_header_$ac_safe=yes"
8962 else
8963 echo "$ac_err" >&5
8964 echo "configure: failed program was:" >&5
8965 cat conftest.$ac_ext >&5
8966 rm -rf conftest*
8967 eval "ac_cv_header_$ac_safe=no"
8968 fi
8969 rm -f conftest*
8970 fi
8971 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8972 echo "$ac_t""yes" 1>&6
8973 for ac_func in regcomp
8974 do
8975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8976 echo "configure:8977: checking for $ac_func" >&5
8977 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8978 echo $ac_n "(cached) $ac_c" 1>&6
8979 else
8980 cat > conftest.$ac_ext <<EOF
8981 #line 8982 "configure"
8982 #include "confdefs.h"
8983 /* System header to define __stub macros and hopefully few prototypes,
8984 which can conflict with char $ac_func(); below. */
8985 #include <assert.h>
8986 /* Override any gcc2 internal prototype to avoid an error. */
8987 /* We use char because int might match the return type of a gcc2
8988 builtin and then its argument prototype would still apply. */
8989 char $ac_func();
8990
8991 int main() {
8992
8993 /* The GNU C library defines this for functions which it implements
8994 to always fail with ENOSYS. Some functions are actually named
8995 something starting with __ and the normal name is an alias. */
8996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8997 choke me
8998 #else
8999 $ac_func();
9000 #endif
9001
9002 ; return 0; }
9003 EOF
9004 if { (eval echo configure:9005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9005 rm -rf conftest*
9006 eval "ac_cv_func_$ac_func=yes"
9007 else
9008 echo "configure: failed program was:" >&5
9009 cat conftest.$ac_ext >&5
9010 rm -rf conftest*
9011 eval "ac_cv_func_$ac_func=no"
9012 fi
9013 rm -f conftest*
9014 fi
9015
9016 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9017 echo "$ac_t""yes" 1>&6
9018 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9019 cat >> confdefs.h <<EOF
9020 #define $ac_tr_func 1
9021 EOF
9022
9023 else
9024 echo "$ac_t""no" 1>&6
9025 fi
9026 done
9027
9028 else
9029 echo "$ac_t""no" 1>&6
9030 fi
9031
9032
9033 if test "x$ac_cv_func_regcomp" != "xyes"; then
9034 if test "$wxUSE_REGEX" = "sys" ; then
9035 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9036 else
9037 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
9038 wxUSE_REGEX=builtin
9039 fi
9040 else
9041 wxUSE_REGEX=sys
9042 fi
9043 fi
9044
9045 if test "$wxUSE_REGEX" = "builtin" ; then
9046 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9047 fi
9048 fi
9049
9050
9051 ZLIB_INCLUDE=
9052 ZLIB_LINK=
9053 if test "$wxUSE_ZLIB" != "no" ; then
9054 cat >> confdefs.h <<\EOF
9055 #define wxUSE_ZLIB 1
9056 EOF
9057
9058
9059 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9060 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9061 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
9062 echo "configure:9063: checking for zlib.h" >&5
9063 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9064 echo $ac_n "(cached) $ac_c" 1>&6
9065 else
9066 cat > conftest.$ac_ext <<EOF
9067 #line 9068 "configure"
9068 #include "confdefs.h"
9069 #include <zlib.h>
9070 EOF
9071 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9072 { (eval echo configure:9073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9073 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9074 if test -z "$ac_err"; then
9075 rm -rf conftest*
9076 eval "ac_cv_header_$ac_safe=yes"
9077 else
9078 echo "$ac_err" >&5
9079 echo "configure: failed program was:" >&5
9080 cat conftest.$ac_ext >&5
9081 rm -rf conftest*
9082 eval "ac_cv_header_$ac_safe=no"
9083 fi
9084 rm -f conftest*
9085 fi
9086 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9087 echo "$ac_t""yes" 1>&6
9088 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
9089 echo "configure:9090: checking for deflate in -lz" >&5
9090 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9092 echo $ac_n "(cached) $ac_c" 1>&6
9093 else
9094 ac_save_LIBS="$LIBS"
9095 LIBS="-lz $LIBS"
9096 cat > conftest.$ac_ext <<EOF
9097 #line 9098 "configure"
9098 #include "confdefs.h"
9099 /* Override any gcc2 internal prototype to avoid an error. */
9100 /* We use char because int might match the return type of a gcc2
9101 builtin and then its argument prototype would still apply. */
9102 char deflate();
9103
9104 int main() {
9105 deflate()
9106 ; return 0; }
9107 EOF
9108 if { (eval echo configure:9109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9109 rm -rf conftest*
9110 eval "ac_cv_lib_$ac_lib_var=yes"
9111 else
9112 echo "configure: failed program was:" >&5
9113 cat conftest.$ac_ext >&5
9114 rm -rf conftest*
9115 eval "ac_cv_lib_$ac_lib_var=no"
9116 fi
9117 rm -f conftest*
9118 LIBS="$ac_save_LIBS"
9119
9120 fi
9121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9122 echo "$ac_t""yes" 1>&6
9123 ZLIB_LINK=" -lz"
9124 else
9125 echo "$ac_t""no" 1>&6
9126 fi
9127
9128 else
9129 echo "$ac_t""no" 1>&6
9130 fi
9131
9132
9133 if test "x$ZLIB_LINK" = "x" ; then
9134 if test "$wxUSE_ZLIB" = "sys" ; then
9135 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9136 else
9137 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
9138 wxUSE_ZLIB=builtin
9139 fi
9140 else
9141 wxUSE_ZLIB=sys
9142 fi
9143 fi
9144
9145 if test "$wxUSE_ZLIB" = "builtin" ; then
9146 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9147 fi
9148 fi
9149
9150
9151 PNG_INCLUDE=
9152 PNG_LINK=
9153 if test "$wxUSE_LIBPNG" != "no" ; then
9154 cat >> confdefs.h <<\EOF
9155 #define wxUSE_LIBPNG 1
9156 EOF
9157
9158
9159 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
9160 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
9161 wxUSE_LIBPNG=builtin
9162 fi
9163
9164 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9165 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9166 echo $ac_n "checking for png.h""... $ac_c" 1>&6
9167 echo "configure:9168: checking for png.h" >&5
9168 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9169 echo $ac_n "(cached) $ac_c" 1>&6
9170 else
9171 cat > conftest.$ac_ext <<EOF
9172 #line 9173 "configure"
9173 #include "confdefs.h"
9174 #include <png.h>
9175 EOF
9176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9177 { (eval echo configure:9178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9179 if test -z "$ac_err"; then
9180 rm -rf conftest*
9181 eval "ac_cv_header_$ac_safe=yes"
9182 else
9183 echo "$ac_err" >&5
9184 echo "configure: failed program was:" >&5
9185 cat conftest.$ac_ext >&5
9186 rm -rf conftest*
9187 eval "ac_cv_header_$ac_safe=no"
9188 fi
9189 rm -f conftest*
9190 fi
9191 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9192 echo "$ac_t""yes" 1>&6
9193 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
9194 echo "configure:9195: checking for png_check_sig in -lpng" >&5
9195 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9196 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9197 echo $ac_n "(cached) $ac_c" 1>&6
9198 else
9199 ac_save_LIBS="$LIBS"
9200 LIBS="-lpng -lz -lm $LIBS"
9201 cat > conftest.$ac_ext <<EOF
9202 #line 9203 "configure"
9203 #include "confdefs.h"
9204 /* Override any gcc2 internal prototype to avoid an error. */
9205 /* We use char because int might match the return type of a gcc2
9206 builtin and then its argument prototype would still apply. */
9207 char png_check_sig();
9208
9209 int main() {
9210 png_check_sig()
9211 ; return 0; }
9212 EOF
9213 if { (eval echo configure:9214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9214 rm -rf conftest*
9215 eval "ac_cv_lib_$ac_lib_var=yes"
9216 else
9217 echo "configure: failed program was:" >&5
9218 cat conftest.$ac_ext >&5
9219 rm -rf conftest*
9220 eval "ac_cv_lib_$ac_lib_var=no"
9221 fi
9222 rm -f conftest*
9223 LIBS="$ac_save_LIBS"
9224
9225 fi
9226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9227 echo "$ac_t""yes" 1>&6
9228 PNG_LINK=" -lpng"
9229 else
9230 echo "$ac_t""no" 1>&6
9231 fi
9232
9233
9234 else
9235 echo "$ac_t""no" 1>&6
9236 fi
9237
9238
9239 if test "x$PNG_LINK" = "x" ; then
9240 if test "$wxUSE_LIBPNG" = "sys" ; then
9241 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9242 else
9243 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
9244 wxUSE_LIBPNG=builtin
9245 fi
9246 else
9247 wxUSE_LIBPNG=yes
9248 fi
9249 fi
9250
9251 if test "$wxUSE_LIBPNG" = "builtin" ; then
9252 PNG_INCLUDE="-I\${top_srcdir}/src/png"
9253 fi
9254
9255 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
9256 fi
9257
9258
9259 JPEG_INCLUDE=
9260 JPEG_LINK=
9261 if test "$wxUSE_LIBJPEG" != "no" ; then
9262 cat >> confdefs.h <<\EOF
9263 #define wxUSE_LIBJPEG 1
9264 EOF
9265
9266
9267 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9268 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
9269 echo "configure:9270: checking for jpeglib.h" >&5
9270 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
9271 echo $ac_n "(cached) $ac_c" 1>&6
9272 else
9273 cat > conftest.$ac_ext <<EOF
9274 #line 9275 "configure"
9275 #include "confdefs.h"
9276
9277 #undef HAVE_STDLIB_H
9278 #include <stdio.h>
9279 #include <jpeglib.h>
9280
9281 int main() {
9282
9283
9284 ; return 0; }
9285 EOF
9286 if { (eval echo configure:9287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9287 rm -rf conftest*
9288 ac_cv_header_jpeglib_h=yes
9289 else
9290 echo "configure: failed program was:" >&5
9291 cat conftest.$ac_ext >&5
9292 rm -rf conftest*
9293 ac_cv_header_jpeglib_h=no
9294
9295 fi
9296 rm -f conftest*
9297
9298 fi
9299
9300 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
9301
9302 if test "$ac_cv_header_jpeglib_h" = "yes"; then
9303 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
9304 echo "configure:9305: checking for jpeg_read_header in -ljpeg" >&5
9305 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
9306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9307 echo $ac_n "(cached) $ac_c" 1>&6
9308 else
9309 ac_save_LIBS="$LIBS"
9310 LIBS="-ljpeg $LIBS"
9311 cat > conftest.$ac_ext <<EOF
9312 #line 9313 "configure"
9313 #include "confdefs.h"
9314 /* Override any gcc2 internal prototype to avoid an error. */
9315 /* We use char because int might match the return type of a gcc2
9316 builtin and then its argument prototype would still apply. */
9317 char jpeg_read_header();
9318
9319 int main() {
9320 jpeg_read_header()
9321 ; return 0; }
9322 EOF
9323 if { (eval echo configure:9324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9324 rm -rf conftest*
9325 eval "ac_cv_lib_$ac_lib_var=yes"
9326 else
9327 echo "configure: failed program was:" >&5
9328 cat conftest.$ac_ext >&5
9329 rm -rf conftest*
9330 eval "ac_cv_lib_$ac_lib_var=no"
9331 fi
9332 rm -f conftest*
9333 LIBS="$ac_save_LIBS"
9334
9335 fi
9336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9337 echo "$ac_t""yes" 1>&6
9338 JPEG_LINK=" -ljpeg"
9339 else
9340 echo "$ac_t""no" 1>&6
9341 fi
9342
9343 fi
9344
9345 if test "x$JPEG_LINK" = "x" ; then
9346 if test "$wxUSE_LIBJPEG" = "sys" ; then
9347 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
9348 else
9349 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
9350 wxUSE_LIBJPEG=builtin
9351 fi
9352 else
9353 wxUSE_LIBJPEG=sys
9354 fi
9355 fi
9356
9357 if test "$wxUSE_LIBJPEG" = "builtin" ; then
9358 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
9359 fi
9360 fi
9361
9362
9363 TIFF_INCLUDE=
9364 TIFF_LINK=
9365 if test "$wxUSE_LIBTIFF" != "no" ; then
9366 cat >> confdefs.h <<\EOF
9367 #define wxUSE_LIBTIFF 1
9368 EOF
9369
9370
9371 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
9372 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
9373 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
9374 echo "configure:9375: checking for tiffio.h" >&5
9375 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9376 echo $ac_n "(cached) $ac_c" 1>&6
9377 else
9378 cat > conftest.$ac_ext <<EOF
9379 #line 9380 "configure"
9380 #include "confdefs.h"
9381 #include <tiffio.h>
9382 EOF
9383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9384 { (eval echo configure:9385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9385 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9386 if test -z "$ac_err"; then
9387 rm -rf conftest*
9388 eval "ac_cv_header_$ac_safe=yes"
9389 else
9390 echo "$ac_err" >&5
9391 echo "configure: failed program was:" >&5
9392 cat conftest.$ac_ext >&5
9393 rm -rf conftest*
9394 eval "ac_cv_header_$ac_safe=no"
9395 fi
9396 rm -f conftest*
9397 fi
9398 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9399 echo "$ac_t""yes" 1>&6
9400 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
9401 echo "configure:9402: checking for TIFFError in -ltiff" >&5
9402 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
9403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9404 echo $ac_n "(cached) $ac_c" 1>&6
9405 else
9406 ac_save_LIBS="$LIBS"
9407 LIBS="-ltiff -lm $LIBS"
9408 cat > conftest.$ac_ext <<EOF
9409 #line 9410 "configure"
9410 #include "confdefs.h"
9411 /* Override any gcc2 internal prototype to avoid an error. */
9412 /* We use char because int might match the return type of a gcc2
9413 builtin and then its argument prototype would still apply. */
9414 char TIFFError();
9415
9416 int main() {
9417 TIFFError()
9418 ; return 0; }
9419 EOF
9420 if { (eval echo configure:9421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9421 rm -rf conftest*
9422 eval "ac_cv_lib_$ac_lib_var=yes"
9423 else
9424 echo "configure: failed program was:" >&5
9425 cat conftest.$ac_ext >&5
9426 rm -rf conftest*
9427 eval "ac_cv_lib_$ac_lib_var=no"
9428 fi
9429 rm -f conftest*
9430 LIBS="$ac_save_LIBS"
9431
9432 fi
9433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9434 echo "$ac_t""yes" 1>&6
9435 TIFF_LINK=" -ltiff"
9436 else
9437 echo "$ac_t""no" 1>&6
9438 fi
9439
9440
9441 else
9442 echo "$ac_t""no" 1>&6
9443 fi
9444
9445
9446 if test "x$TIFF_LINK" = "x" ; then
9447 if test "$wxUSE_LIBTIFF" = "sys" ; then
9448 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
9449 else
9450 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
9451 wxUSE_LIBTIFF=builtin
9452 fi
9453 else
9454 wxUSE_LIBTIFF=sys
9455 fi
9456 fi
9457
9458 if test "$wxUSE_LIBTIFF" = "builtin" ; then
9459 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
9460 fi
9461 fi
9462
9463
9464 FREETYPE_INCLUDE=
9465 FREETYPE_LINK=
9466 if test "$wxUSE_FREETYPE" != "no" ; then
9467 cat >> confdefs.h <<\EOF
9468 #define wxUSE_FREETYPE 1
9469 EOF
9470
9471
9472 if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then
9473 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
9474 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
9475 echo "configure:9476: checking for freetype.h" >&5
9476 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9477 echo $ac_n "(cached) $ac_c" 1>&6
9478 else
9479 cat > conftest.$ac_ext <<EOF
9480 #line 9481 "configure"
9481 #include "confdefs.h"
9482 #include <freetype.h>
9483 EOF
9484 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9485 { (eval echo configure:9486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9486 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9487 if test -z "$ac_err"; then
9488 rm -rf conftest*
9489 eval "ac_cv_header_$ac_safe=yes"
9490 else
9491 echo "$ac_err" >&5
9492 echo "configure: failed program was:" >&5
9493 cat conftest.$ac_ext >&5
9494 rm -rf conftest*
9495 eval "ac_cv_header_$ac_safe=no"
9496 fi
9497 rm -f conftest*
9498 fi
9499 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9500 echo "$ac_t""yes" 1>&6
9501 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
9502 echo "configure:9503: checking for FT_Render_Glyph in -lfreetype" >&5
9503 ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
9504 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9505 echo $ac_n "(cached) $ac_c" 1>&6
9506 else
9507 ac_save_LIBS="$LIBS"
9508 LIBS="-lfreetype -lm $LIBS"
9509 cat > conftest.$ac_ext <<EOF
9510 #line 9511 "configure"
9511 #include "confdefs.h"
9512 /* Override any gcc2 internal prototype to avoid an error. */
9513 /* We use char because int might match the return type of a gcc2
9514 builtin and then its argument prototype would still apply. */
9515 char FT_Render_Glyph();
9516
9517 int main() {
9518 FT_Render_Glyph()
9519 ; return 0; }
9520 EOF
9521 if { (eval echo configure:9522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9522 rm -rf conftest*
9523 eval "ac_cv_lib_$ac_lib_var=yes"
9524 else
9525 echo "configure: failed program was:" >&5
9526 cat conftest.$ac_ext >&5
9527 rm -rf conftest*
9528 eval "ac_cv_lib_$ac_lib_var=no"
9529 fi
9530 rm -f conftest*
9531 LIBS="$ac_save_LIBS"
9532
9533 fi
9534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9535 echo "$ac_t""yes" 1>&6
9536 FREETYPE_LINK=" -lfreetype"
9537 else
9538 echo "$ac_t""no" 1>&6
9539 fi
9540
9541
9542 else
9543 echo "$ac_t""no" 1>&6
9544 fi
9545
9546
9547 if test "x$FREETYPE_LINK" = "x" ; then
9548 if test "$wxUSE_FREETYPE" = "sys" ; then
9549 { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; }
9550 else
9551 echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2
9552 wxUSE_FREETYPE=builtin
9553 fi
9554 else
9555 wxUSE_FREETYPE=sys
9556 fi
9557 fi
9558
9559 if test "$wxUSE_FREETYPE" = "builtin" ; then
9560 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
9561 fi
9562 fi
9563
9564
9565 AFMINSTALL=
9566
9567 TOOLKIT=
9568 TOOLKIT_INCLUDE=
9569 WIDGET_SET=
9570
9571 if test "$USE_WIN32" = 1 ; then
9572 for ac_hdr in w32api.h
9573 do
9574 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9575 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9576 echo "configure:9577: checking for $ac_hdr" >&5
9577 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9578 echo $ac_n "(cached) $ac_c" 1>&6
9579 else
9580 cat > conftest.$ac_ext <<EOF
9581 #line 9582 "configure"
9582 #include "confdefs.h"
9583 #include <$ac_hdr>
9584 EOF
9585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9586 { (eval echo configure:9587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9587 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9588 if test -z "$ac_err"; then
9589 rm -rf conftest*
9590 eval "ac_cv_header_$ac_safe=yes"
9591 else
9592 echo "$ac_err" >&5
9593 echo "configure: failed program was:" >&5
9594 cat conftest.$ac_ext >&5
9595 rm -rf conftest*
9596 eval "ac_cv_header_$ac_safe=no"
9597 fi
9598 rm -f conftest*
9599 fi
9600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9601 echo "$ac_t""yes" 1>&6
9602 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9603 cat >> confdefs.h <<EOF
9604 #define $ac_tr_hdr 1
9605 EOF
9606
9607 else
9608 echo "$ac_t""no" 1>&6
9609 fi
9610 done
9611
9612 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
9613 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
9614 echo "configure:9615: checking for windows.h" >&5
9615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9616 echo $ac_n "(cached) $ac_c" 1>&6
9617 else
9618 cat > conftest.$ac_ext <<EOF
9619 #line 9620 "configure"
9620 #include "confdefs.h"
9621 #include <windows.h>
9622 EOF
9623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9624 { (eval echo configure:9625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9626 if test -z "$ac_err"; then
9627 rm -rf conftest*
9628 eval "ac_cv_header_$ac_safe=yes"
9629 else
9630 echo "$ac_err" >&5
9631 echo "configure: failed program was:" >&5
9632 cat conftest.$ac_ext >&5
9633 rm -rf conftest*
9634 eval "ac_cv_header_$ac_safe=no"
9635 fi
9636 rm -f conftest*
9637 fi
9638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9639 echo "$ac_t""yes" 1>&6
9640 :
9641 else
9642 echo "$ac_t""no" 1>&6
9643
9644 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9645
9646 fi
9647
9648
9649 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
9650 echo "configure:9651: checking if w32api has good enough MSIE support" >&5
9651 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
9652 echo $ac_n "(cached) $ac_c" 1>&6
9653 else
9654
9655 cat > conftest.$ac_ext <<EOF
9656 #line 9657 "configure"
9657 #include "confdefs.h"
9658 #include <w32api.h>
9659 int main() {
9660
9661 #define wxCHECK_W32API_VERSION( major, minor ) \
9662 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
9663 && ( ( __W32API_MAJOR_VERSION > (major) ) \
9664 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
9665
9666 #if !wxCHECK_W32API_VERSION(1,1)
9667 #error You need w32api 1.1 or newer
9668 #endif
9669
9670 ; return 0; }
9671 EOF
9672 if { (eval echo configure:9673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9673 rm -rf conftest*
9674
9675 wx_cv_w32api_win32_ie=yes
9676
9677 else
9678 echo "configure: failed program was:" >&5
9679 cat conftest.$ac_ext >&5
9680 rm -rf conftest*
9681
9682 wx_cv_w32api_win32_ie=no
9683
9684 fi
9685 rm -f conftest*
9686
9687 fi
9688
9689 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
9690 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
9691 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
9692 fi
9693
9694 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
9695
9696 case "${host}" in
9697 *-*-cygwin* )
9698 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
9699 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
9700 esac
9701
9702 if test "$wxUSE_ODBC" = "yes" ; then
9703 LIBS=" -lodbc32 -lole32 -loleaut32$LIBS"
9704 fi
9705
9706 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
9707 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
9708 fi
9709
9710 if test "$wxUSE_GUI" = "yes"; then
9711 USE_GUI=1
9712
9713 GUI_TK_LIBRARY=
9714
9715 WXGTK12=
9716 WXGTK127=
9717 WXGTK20=
9718
9719 if test "$wxUSE_MSW" = 1 ; then
9720 TOOLKIT=MSW
9721 GUIDIST=MSW_DIST
9722
9723 case "${host}" in
9724 *-*-mingw32* )
9725 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
9726 esac
9727 fi
9728
9729 if test "$wxUSE_GTK" = 1; then
9730 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
9731 echo "configure:9732: checking for GTK+ version" >&5
9732
9733 gtk_version_cached=1
9734 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9735 echo $ac_n "(cached) $ac_c" 1>&6
9736 else
9737
9738 gtk_version_cached=0
9739 echo "$ac_t""" 1>&6
9740
9741 wx_cv_lib_gtk=
9742 if test "x$wxUSE_GTK2" = "xyes"; then
9743 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
9744 if test "${with_gtk_prefix+set}" = set; then
9745 withval="$with_gtk_prefix"
9746 gtk_config_prefix="$withval"
9747 else
9748 gtk_config_prefix=""
9749 fi
9750
9751 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9752 if test "${with_gtk_exec_prefix+set}" = set; then
9753 withval="$with_gtk_exec_prefix"
9754 gtk_config_exec_prefix="$withval"
9755 else
9756 gtk_config_exec_prefix=""
9757 fi
9758
9759 # Check whether --enable-gtktest or --disable-gtktest was given.
9760 if test "${enable_gtktest+set}" = set; then
9761 enableval="$enable_gtktest"
9762 :
9763 else
9764 enable_gtktest=yes
9765 fi
9766
9767
9768 for module in .
9769 do
9770 case "$module" in
9771 gthread)
9772 gtk_config_args="$gtk_config_args gthread"
9773 ;;
9774 esac
9775 done
9776
9777 if test x$gtk_config_exec_prefix != x ; then
9778 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9779 if test x${GTK_CONFIG_2_0+set} != xset ; then
9780 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9781 fi
9782 fi
9783 if test x$gtk_config_prefix != x ; then
9784 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9785 if test x${GTK_CONFIG_2_0+set} != xset ; then
9786 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9787 fi
9788 fi
9789
9790 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9791 set dummy gtk-config-2.0; ac_word=$2
9792 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9793 echo "configure:9794: checking for $ac_word" >&5
9794 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9795 echo $ac_n "(cached) $ac_c" 1>&6
9796 else
9797 case "$GTK_CONFIG_2_0" in
9798 /*)
9799 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9800 ;;
9801 ?:/*)
9802 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9803 ;;
9804 *)
9805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9806 ac_dummy="$PATH"
9807 for ac_dir in $ac_dummy; do
9808 test -z "$ac_dir" && ac_dir=.
9809 if test -f $ac_dir/$ac_word; then
9810 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9811 break
9812 fi
9813 done
9814 IFS="$ac_save_ifs"
9815 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9816 ;;
9817 esac
9818 fi
9819 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
9820 if test -n "$GTK_CONFIG_2_0"; then
9821 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
9822 else
9823 echo "$ac_t""no" 1>&6
9824 fi
9825
9826 min_gtk_version=1.3.1
9827 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9828 echo "configure:9829: checking for GTK - version >= $min_gtk_version" >&5
9829 no_gtk=""
9830 if test "$GTK_CONFIG_2_0" = "no" ; then
9831 no_gtk=yes
9832 else
9833 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9834 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9835 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9836 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9837 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9838 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9839 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9840 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9841 if test "x$enable_gtktest" = "xyes" ; then
9842 ac_save_CFLAGS="$CFLAGS"
9843 ac_save_LIBS="$LIBS"
9844 CFLAGS="$CFLAGS $GTK_CFLAGS"
9845 LIBS="$GTK_LIBS $LIBS"
9846 rm -f conf.gtktest
9847 if test "$cross_compiling" = yes; then
9848 echo $ac_n "cross compiling; assumed OK... $ac_c"
9849 else
9850 cat > conftest.$ac_ext <<EOF
9851 #line 9852 "configure"
9852 #include "confdefs.h"
9853
9854 #include <gtk/gtk.h>
9855 #include <stdio.h>
9856 #include <stdlib.h>
9857
9858 int
9859 main ()
9860 {
9861 int major, minor, micro;
9862 char *tmp_version;
9863
9864 system ("touch conf.gtktest");
9865
9866 /* HP/UX 9 (%@#!) writes to sscanf strings */
9867 tmp_version = g_strdup("$min_gtk_version");
9868 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9869 printf("%s, bad version string\n", "$min_gtk_version");
9870 exit(1);
9871 }
9872
9873 if ((gtk_major_version != $gtk_config_major_version) ||
9874 (gtk_minor_version != $gtk_config_minor_version) ||
9875 (gtk_micro_version != $gtk_config_micro_version))
9876 {
9877 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
9878 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9879 gtk_major_version, gtk_minor_version, gtk_micro_version);
9880 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9881 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9882 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9883 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9884 printf("*** required on your system.\n");
9885 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9886 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9887 printf("*** before re-running configure\n");
9888 }
9889 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9890 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
9891 (gtk_minor_version != GTK_MINOR_VERSION) ||
9892 (gtk_micro_version != GTK_MICRO_VERSION))
9893 {
9894 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
9895 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
9896 printf("*** library (version %d.%d.%d)\n",
9897 gtk_major_version, gtk_minor_version, gtk_micro_version);
9898 }
9899 #endif /* defined (GTK_MAJOR_VERSION) ... */
9900 else
9901 {
9902 if ((gtk_major_version > major) ||
9903 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9904 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9905 {
9906 return 0;
9907 }
9908 else
9909 {
9910 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9911 gtk_major_version, gtk_minor_version, gtk_micro_version);
9912 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
9913 major, minor, micro);
9914 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9915 printf("***\n");
9916 printf("*** If you have already installed a sufficiently new version, this error\n");
9917 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9918 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9919 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9920 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9921 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9922 printf("*** so that the correct libraries are found at run-time))\n");
9923 }
9924 }
9925 return 1;
9926 }
9927
9928 EOF
9929 if { (eval echo configure:9930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9930 then
9931 :
9932 else
9933 echo "configure: failed program was:" >&5
9934 cat conftest.$ac_ext >&5
9935 rm -fr conftest*
9936 no_gtk=yes
9937 fi
9938 rm -fr conftest*
9939 fi
9940
9941 CFLAGS="$ac_save_CFLAGS"
9942 LIBS="$ac_save_LIBS"
9943 fi
9944 fi
9945 if test "x$no_gtk" = x ; then
9946 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
9947 wx_cv_lib_gtk=2.0
9948 else
9949 echo "$ac_t""no" 1>&6
9950 if test "$GTK_CONFIG_2_0" = "no" ; then
9951 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9952 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9953 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9954 echo "*** full path to gtk-config-2.0."
9955 else
9956 if test -f conf.gtktest ; then
9957 :
9958 else
9959 echo "*** Could not run GTK test program, checking why..."
9960 CFLAGS="$CFLAGS $GTK_CFLAGS"
9961 LIBS="$LIBS $GTK_LIBS"
9962 cat > conftest.$ac_ext <<EOF
9963 #line 9964 "configure"
9964 #include "confdefs.h"
9965
9966 #include <gtk/gtk.h>
9967 #include <stdio.h>
9968
9969 int main() {
9970 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9971 ; return 0; }
9972 EOF
9973 if { (eval echo configure:9974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9974 rm -rf conftest*
9975 echo "*** The test program compiled, but did not run. This usually means"
9976 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9977 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9978 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9979 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9980 echo "*** is required on your system"
9981 echo "***"
9982 echo "*** If you have an old version installed, it is best to remove it, although"
9983 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9984 echo "***"
9985 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9986 echo "*** came with the system with the command"
9987 echo "***"
9988 echo "*** rpm --erase --nodeps gtk gtk-devel"
9989 else
9990 echo "configure: failed program was:" >&5
9991 cat conftest.$ac_ext >&5
9992 rm -rf conftest*
9993 echo "*** The test program failed to compile or link. See the file config.log for the"
9994 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9995 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
9996 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
9997 fi
9998 rm -f conftest*
9999 CFLAGS="$ac_save_CFLAGS"
10000 LIBS="$ac_save_LIBS"
10001 fi
10002 fi
10003 GTK_CFLAGS=""
10004 GTK_LIBS=""
10005 gthread
10006 fi
10007
10008
10009 rm -f conf.gtktest
10010
10011 fi
10012
10013 if test -z "$wx_cv_lib_gtk"; then
10014
10015 if test x$gtk_config_exec_prefix != x ; then
10016 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10017 if test x${GTK_CONFIG+set} != xset ; then
10018 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10019 fi
10020 fi
10021 if test x$gtk_config_prefix != x ; then
10022 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10023 if test x${GTK_CONFIG+set} != xset ; then
10024 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10025 fi
10026 fi
10027
10028 # Extract the first word of "gtk-config", so it can be a program name with args.
10029 set dummy gtk-config; ac_word=$2
10030 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10031 echo "configure:10032: checking for $ac_word" >&5
10032 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10033 echo $ac_n "(cached) $ac_c" 1>&6
10034 else
10035 case "$GTK_CONFIG" in
10036 /*)
10037 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10038 ;;
10039 ?:/*)
10040 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10041 ;;
10042 *)
10043 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10044 ac_dummy="$PATH"
10045 for ac_dir in $ac_dummy; do
10046 test -z "$ac_dir" && ac_dir=.
10047 if test -f $ac_dir/$ac_word; then
10048 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10049 break
10050 fi
10051 done
10052 IFS="$ac_save_ifs"
10053 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10054 ;;
10055 esac
10056 fi
10057 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10058 if test -n "$GTK_CONFIG"; then
10059 echo "$ac_t""$GTK_CONFIG" 1>&6
10060 else
10061 echo "$ac_t""no" 1>&6
10062 fi
10063
10064 min_gtk_version=1.2.7
10065 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10066 echo "configure:10067: checking for GTK - version >= $min_gtk_version" >&5
10067 no_gtk=""
10068 if test "$GTK_CONFIG" != "no" ; then
10069 GTK_CFLAGS=`$GTK_CONFIG --cflags`
10070 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10071 ac_save_CFLAGS="$CFLAGS"
10072 ac_save_LIBS="$LIBS"
10073 CFLAGS="$CFLAGS $GTK_CFLAGS"
10074 LIBS="$LIBS $GTK_LIBS"
10075 if test "$cross_compiling" = yes; then
10076 echo $ac_n "cross compiling; assumed OK... $ac_c"
10077 else
10078 cat > conftest.$ac_ext <<EOF
10079 #line 10080 "configure"
10080 #include "confdefs.h"
10081
10082 #include <gtk/gtk.h>
10083 #include <gtk/gtkfeatures.h>
10084 #include <stdio.h>
10085 #include <stdlib.h>
10086
10087 int
10088 main ()
10089 {
10090 int major, minor, micro;
10091
10092 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
10093 printf("%s, bad version string\n", "$min_gtk_version");
10094 exit(1);
10095 }
10096
10097 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
10098 (GTK_MINOR_VERSION != gtk_minor_version) ||
10099 (GTK_MICRO_VERSION != gtk_micro_version)) {
10100 printf("Headers vs. library version mismatch!\n");
10101 exit(1);
10102 }
10103
10104 if (gtk_minor_version == 1) return FALSE;
10105
10106 return !((gtk_major_version > major) ||
10107 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10108 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
10109 }
10110
10111 EOF
10112 if { (eval echo configure:10113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10113 then
10114 :
10115 else
10116 echo "configure: failed program was:" >&5
10117 cat conftest.$ac_ext >&5
10118 rm -fr conftest*
10119 no_gtk=yes
10120 fi
10121 rm -fr conftest*
10122 fi
10123
10124 CFLAGS="$ac_save_CFLAGS"
10125 LIBS="$ac_save_LIBS"
10126 else
10127 no_gtk=yes
10128 fi
10129 if test "x$no_gtk" = x ; then
10130 echo "$ac_t""yes" 1>&6
10131 wx_cv_lib_gtk=1.2.7
10132 else
10133 echo "$ac_t""no" 1>&6
10134 GTK_CFLAGS=""
10135 GTK_LIBS=""
10136 :
10137 fi
10138
10139
10140
10141 fi
10142
10143 if test -z "$wx_cv_lib_gtk"; then
10144
10145 if test x$gtk_config_exec_prefix != x ; then
10146 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10147 if test x${GTK_CONFIG+set} != xset ; then
10148 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10149 fi
10150 fi
10151 if test x$gtk_config_prefix != x ; then
10152 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10153 if test x${GTK_CONFIG+set} != xset ; then
10154 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10155 fi
10156 fi
10157
10158 # Extract the first word of "gtk-config", so it can be a program name with args.
10159 set dummy gtk-config; ac_word=$2
10160 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10161 echo "configure:10162: checking for $ac_word" >&5
10162 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10163 echo $ac_n "(cached) $ac_c" 1>&6
10164 else
10165 case "$GTK_CONFIG" in
10166 /*)
10167 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10168 ;;
10169 ?:/*)
10170 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10171 ;;
10172 *)
10173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10174 ac_dummy="$PATH"
10175 for ac_dir in $ac_dummy; do
10176 test -z "$ac_dir" && ac_dir=.
10177 if test -f $ac_dir/$ac_word; then
10178 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10179 break
10180 fi
10181 done
10182 IFS="$ac_save_ifs"
10183 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10184 ;;
10185 esac
10186 fi
10187 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10188 if test -n "$GTK_CONFIG"; then
10189 echo "$ac_t""$GTK_CONFIG" 1>&6
10190 else
10191 echo "$ac_t""no" 1>&6
10192 fi
10193
10194 min_gtk_version=1.2.3
10195 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10196 echo "configure:10197: checking for GTK - version >= $min_gtk_version" >&5
10197 no_gtk=""
10198 if test "$GTK_CONFIG" != "no" ; then
10199 GTK_CFLAGS=`$GTK_CONFIG --cflags`
10200 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10201 ac_save_CFLAGS="$CFLAGS"
10202 ac_save_LIBS="$LIBS"
10203 CFLAGS="$CFLAGS $GTK_CFLAGS"
10204 LIBS="$LIBS $GTK_LIBS"
10205 if test "$cross_compiling" = yes; then
10206 echo $ac_n "cross compiling; assumed OK... $ac_c"
10207 else
10208 cat > conftest.$ac_ext <<EOF
10209 #line 10210 "configure"
10210 #include "confdefs.h"
10211
10212 #include <gtk/gtk.h>
10213 #include <gtk/gtkfeatures.h>
10214 #include <stdio.h>
10215 #include <stdlib.h>
10216
10217 int
10218 main ()
10219 {
10220 int major, minor, micro;
10221
10222 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
10223 printf("%s, bad version string\n", "$min_gtk_version");
10224 exit(1);
10225 }
10226
10227 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
10228 (GTK_MINOR_VERSION != gtk_minor_version) ||
10229 (GTK_MICRO_VERSION != gtk_micro_version)) {
10230 printf("Headers vs. library version mismatch!\n");
10231 exit(1);
10232 }
10233
10234 if (gtk_minor_version == 1) return FALSE;
10235
10236 return !((gtk_major_version > major) ||
10237 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10238 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
10239 }
10240
10241 EOF
10242 if { (eval echo configure:10243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10243 then
10244 :
10245 else
10246 echo "configure: failed program was:" >&5
10247 cat conftest.$ac_ext >&5
10248 rm -fr conftest*
10249 no_gtk=yes
10250 fi
10251 rm -fr conftest*
10252 fi
10253
10254 CFLAGS="$ac_save_CFLAGS"
10255 LIBS="$ac_save_LIBS"
10256 else
10257 no_gtk=yes
10258 fi
10259 if test "x$no_gtk" = x ; then
10260 echo "$ac_t""yes" 1>&6
10261 wx_cv_lib_gtk=1.2.3
10262 else
10263 echo "$ac_t""no" 1>&6
10264 GTK_CFLAGS=""
10265 GTK_LIBS=""
10266 :
10267 fi
10268
10269
10270
10271 fi
10272
10273 if test -z "$wx_cv_lib_gtk"; then
10274 wx_cv_lib_gtk=none
10275 else
10276 wx_cv_cflags_gtk=$GTK_CFLAGS
10277 wx_cv_libs_gtk=$GTK_LIBS
10278 fi
10279
10280
10281 fi
10282
10283
10284 if test "$gtk_version_cached" = 1; then
10285 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
10286 fi
10287
10288 case "$wx_cv_lib_gtk" in
10289 2.0) WXGTK20=1
10290 ;;
10291 1.2.7) WXGTK127=1
10292 WXGTK12=1
10293 ;;
10294 1.2.3) WXGTK12=1
10295 ;;
10296 *) { echo "configure: error:
10297 Please check that gtk-config is in path, the directory
10298 where GTK+ libraries are installed (returned by
10299 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
10300 equivalent variable and GTK+ is version 1.2.3 or above.
10301 " 1>&2; exit 1; }
10302 ;;
10303 esac
10304
10305 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
10306 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
10307
10308 AFMINSTALL=afminstall
10309 TOOLKIT=GTK
10310 GUIDIST=GTK_DIST
10311
10312 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
10313 echo "configure:10314: checking for gdk_im_open in -lgdk" >&5
10314 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
10315 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10316 echo $ac_n "(cached) $ac_c" 1>&6
10317 else
10318 ac_save_LIBS="$LIBS"
10319 LIBS="-lgdk $LIBS"
10320 cat > conftest.$ac_ext <<EOF
10321 #line 10322 "configure"
10322 #include "confdefs.h"
10323 /* Override any gcc2 internal prototype to avoid an error. */
10324 /* We use char because int might match the return type of a gcc2
10325 builtin and then its argument prototype would still apply. */
10326 char gdk_im_open();
10327
10328 int main() {
10329 gdk_im_open()
10330 ; return 0; }
10331 EOF
10332 if { (eval echo configure:10333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10333 rm -rf conftest*
10334 eval "ac_cv_lib_$ac_lib_var=yes"
10335 else
10336 echo "configure: failed program was:" >&5
10337 cat conftest.$ac_ext >&5
10338 rm -rf conftest*
10339 eval "ac_cv_lib_$ac_lib_var=no"
10340 fi
10341 rm -f conftest*
10342 LIBS="$ac_save_LIBS"
10343
10344 fi
10345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10346 echo "$ac_t""yes" 1>&6
10347 cat >> confdefs.h <<\EOF
10348 #define HAVE_XIM 1
10349 EOF
10350
10351 else
10352 echo "$ac_t""no" 1>&6
10353 fi
10354
10355 fi
10356
10357 if test "$wxUSE_MGL" = 1; then
10358
10359 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
10360 echo "configure:10361: checking for SciTech MGL library" >&5
10361 if test "x$MGL_ROOT" = x ; then
10362 echo "$ac_t""not found" 1>&6
10363 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
10364 else
10365 echo "$ac_t""$MGL_ROOT" 1>&6
10366 fi
10367
10368 mgl_os=linux/gcc/glibc
10369 mgl_lib_type=""
10370
10371 if test "$wxUSE_DEBUG_FLAG" = yes ; then
10372 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
10373 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
10374 mgl_lib_type=debug
10375 fi
10376 fi
10377 if test "x$mgl_lib_type" = x ; then
10378 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
10379 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
10380 mgl_lib_type=release
10381 else
10382 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
10383 fi
10384 fi
10385
10386 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
10387 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
10388
10389 AFMINSTALL=afminstall
10390 TOOLKIT=MGL
10391 GUIDIST=MGL_DIST
10392 fi
10393
10394 if test "$wxUSE_WINE" = 1; then
10395 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10396 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
10397 echo "configure:10398: checking for windows.h" >&5
10398 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10399 echo $ac_n "(cached) $ac_c" 1>&6
10400 else
10401 cat > conftest.$ac_ext <<EOF
10402 #line 10403 "configure"
10403 #include "confdefs.h"
10404 #include <windows.h>
10405 EOF
10406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10407 { (eval echo configure:10408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10408 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10409 if test -z "$ac_err"; then
10410 rm -rf conftest*
10411 eval "ac_cv_header_$ac_safe=yes"
10412 else
10413 echo "$ac_err" >&5
10414 echo "configure: failed program was:" >&5
10415 cat conftest.$ac_ext >&5
10416 rm -rf conftest*
10417 eval "ac_cv_header_$ac_safe=no"
10418 fi
10419 rm -f conftest*
10420 fi
10421 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10422 echo "$ac_t""yes" 1>&6
10423 :
10424 else
10425 echo "$ac_t""no" 1>&6
10426
10427 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
10428
10429 fi
10430
10431
10432 xpm_link=
10433 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
10434 echo "configure:10435: checking for Xpm library" >&5
10435
10436 ac_find_libraries=
10437 for ac_dir in $SEARCH_LIB;
10438 do
10439 for ac_extension in a so sl dylib; do
10440 if test -f "$ac_dir/libXpm.$ac_extension"; then
10441 ac_find_libraries=$ac_dir
10442 break 2
10443 fi
10444 done
10445 done
10446
10447 if test "$ac_find_libraries" != "" ; then
10448 GUI_TK_LIBRARY="-L$ac_find_libraries"
10449 xpm_link=" -lXpm"
10450 cat >> confdefs.h <<\EOF
10451 #define wxHAVE_LIB_XPM 1
10452 EOF
10453
10454 echo "$ac_t""found at $ac_find_libraries" 1>&6
10455 else
10456 echo "$ac_t""no" 1>&6
10457 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10458 fi
10459
10460 mesa_link=
10461 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
10462 echo "configure:10463: checking for Mesa library" >&5
10463
10464 ac_find_libraries=
10465 for ac_dir in $SEARCH_LIB;
10466 do
10467 for ac_extension in a so sl dylib; do
10468 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
10469 ac_find_libraries=$ac_dir
10470 break 2
10471 fi
10472 done
10473 done
10474
10475 if test "$ac_find_libraries" != "" ; then
10476 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
10477 mesa_link=" -lMesaGL"
10478 echo "$ac_t""found at $ac_find_libraries" 1>&6
10479 else
10480 { echo "configure: error: no" 1>&2; exit 1; }
10481 fi
10482
10483 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
10484 TOOLKIT=MSW
10485 GUIDIST=MSW_DIST
10486 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
10487 fi
10488
10489 if test "$wxUSE_MOTIF" = 1; then
10490 # If we find X, set shell vars x_includes and x_libraries to the
10491 # paths, otherwise set no_x=yes.
10492 # Uses ac_ vars as temps to allow command line to override cache and checks.
10493 # --without-x overrides everything else, but does not touch the cache.
10494 echo $ac_n "checking for X""... $ac_c" 1>&6
10495 echo "configure:10496: checking for X" >&5
10496
10497 # Check whether --with-x or --without-x was given.
10498 if test "${with_x+set}" = set; then
10499 withval="$with_x"
10500 :
10501 fi
10502
10503 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10504 if test "x$with_x" = xno; then
10505 # The user explicitly disabled X.
10506 have_x=disabled
10507 else
10508 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
10509 # Both variables are already set.
10510 have_x=yes
10511 else
10512 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
10513 echo $ac_n "(cached) $ac_c" 1>&6
10514 else
10515 # One or both of the vars are not set, and there is no cached value.
10516 ac_x_includes=NO ac_x_libraries=NO
10517 rm -fr conftestdir
10518 if mkdir conftestdir; then
10519 cd conftestdir
10520 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
10521 cat > Imakefile <<'EOF'
10522 acfindx:
10523 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10524 EOF
10525 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10526 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10527 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10528 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10529 for ac_extension in a so sl; do
10530 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
10531 test -f $ac_im_libdir/libX11.$ac_extension; then
10532 ac_im_usrlibdir=$ac_im_libdir; break
10533 fi
10534 done
10535 # Screen out bogus values from the imake configuration. They are
10536 # bogus both because they are the default anyway, and because
10537 # using them would break gcc on systems where it needs fixed includes.
10538 case "$ac_im_incroot" in
10539 /usr/include) ;;
10540 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
10541 esac
10542 case "$ac_im_usrlibdir" in
10543 /usr/lib | /lib) ;;
10544 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
10545 esac
10546 fi
10547 cd ..
10548 rm -fr conftestdir
10549 fi
10550
10551 if test "$ac_x_includes" = NO; then
10552 # Guess where to find include files, by looking for this one X11 .h file.
10553 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
10554
10555 # First, try using that file with no special directory specified.
10556 cat > conftest.$ac_ext <<EOF
10557 #line 10558 "configure"
10558 #include "confdefs.h"
10559 #include <$x_direct_test_include>
10560 EOF
10561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10562 { (eval echo configure:10563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10563 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10564 if test -z "$ac_err"; then
10565 rm -rf conftest*
10566 # We can compile using X headers with no special include directory.
10567 ac_x_includes=
10568 else
10569 echo "$ac_err" >&5
10570 echo "configure: failed program was:" >&5
10571 cat conftest.$ac_ext >&5
10572 rm -rf conftest*
10573 # Look for the header file in a standard set of common directories.
10574 # Check X11 before X11Rn because it is often a symlink to the current release.
10575 for ac_dir in \
10576 /usr/X11/include \
10577 /usr/X11R6/include \
10578 /usr/X11R5/include \
10579 /usr/X11R4/include \
10580 \
10581 /usr/include/X11 \
10582 /usr/include/X11R6 \
10583 /usr/include/X11R5 \
10584 /usr/include/X11R4 \
10585 \
10586 /usr/local/X11/include \
10587 /usr/local/X11R6/include \
10588 /usr/local/X11R5/include \
10589 /usr/local/X11R4/include \
10590 \
10591 /usr/local/include/X11 \
10592 /usr/local/include/X11R6 \
10593 /usr/local/include/X11R5 \
10594 /usr/local/include/X11R4 \
10595 \
10596 /usr/X386/include \
10597 /usr/x386/include \
10598 /usr/XFree86/include/X11 \
10599 \
10600 /usr/include \
10601 /usr/local/include \
10602 /usr/unsupported/include \
10603 /usr/athena/include \
10604 /usr/local/x11r5/include \
10605 /usr/lpp/Xamples/include \
10606 \
10607 /usr/openwin/include \
10608 /usr/openwin/share/include \
10609 ; \
10610 do
10611 if test -r "$ac_dir/$x_direct_test_include"; then
10612 ac_x_includes=$ac_dir
10613 break
10614 fi
10615 done
10616 fi
10617 rm -f conftest*
10618 fi # $ac_x_includes = NO
10619
10620 if test "$ac_x_libraries" = NO; then
10621 # Check for the libraries.
10622
10623 test -z "$x_direct_test_library" && x_direct_test_library=Xt
10624 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10625
10626 # See if we find them without any special options.
10627 # Don't add to $LIBS permanently.
10628 ac_save_LIBS="$LIBS"
10629 LIBS="-l$x_direct_test_library $LIBS"
10630 cat > conftest.$ac_ext <<EOF
10631 #line 10632 "configure"
10632 #include "confdefs.h"
10633
10634 int main() {
10635 ${x_direct_test_function}()
10636 ; return 0; }
10637 EOF
10638 if { (eval echo configure:10639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10639 rm -rf conftest*
10640 LIBS="$ac_save_LIBS"
10641 # We can link X programs with no special library path.
10642 ac_x_libraries=
10643 else
10644 echo "configure: failed program was:" >&5
10645 cat conftest.$ac_ext >&5
10646 rm -rf conftest*
10647 LIBS="$ac_save_LIBS"
10648 # First see if replacing the include by lib works.
10649 # Check X11 before X11Rn because it is often a symlink to the current release.
10650 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
10651 /usr/X11/lib \
10652 /usr/X11R6/lib \
10653 /usr/X11R5/lib \
10654 /usr/X11R4/lib \
10655 \
10656 /usr/lib/X11 \
10657 /usr/lib/X11R6 \
10658 /usr/lib/X11R5 \
10659 /usr/lib/X11R4 \
10660 \
10661 /usr/local/X11/lib \
10662 /usr/local/X11R6/lib \
10663 /usr/local/X11R5/lib \
10664 /usr/local/X11R4/lib \
10665 \
10666 /usr/local/lib/X11 \
10667 /usr/local/lib/X11R6 \
10668 /usr/local/lib/X11R5 \
10669 /usr/local/lib/X11R4 \
10670 \
10671 /usr/X386/lib \
10672 /usr/x386/lib \
10673 /usr/XFree86/lib/X11 \
10674 \
10675 /usr/lib \
10676 /usr/local/lib \
10677 /usr/unsupported/lib \
10678 /usr/athena/lib \
10679 /usr/local/x11r5/lib \
10680 /usr/lpp/Xamples/lib \
10681 /lib/usr/lib/X11 \
10682 \
10683 /usr/openwin/lib \
10684 /usr/openwin/share/lib \
10685 ; \
10686 do
10687 for ac_extension in a so sl; do
10688 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
10689 ac_x_libraries=$ac_dir
10690 break 2
10691 fi
10692 done
10693 done
10694 fi
10695 rm -f conftest*
10696 fi # $ac_x_libraries = NO
10697
10698 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
10699 # Didn't find X anywhere. Cache the known absence of X.
10700 ac_cv_have_x="have_x=no"
10701 else
10702 # Record where we found X for the cache.
10703 ac_cv_have_x="have_x=yes \
10704 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10705 fi
10706 fi
10707 fi
10708 eval "$ac_cv_have_x"
10709 fi # $with_x != no
10710
10711 if test "$have_x" != yes; then
10712 echo "$ac_t""$have_x" 1>&6
10713 no_x=yes
10714 else
10715 # If each of the values was on the command line, it overrides each guess.
10716 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10717 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10718 # Update the cache value to reflect the command line values.
10719 ac_cv_have_x="have_x=yes \
10720 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10721 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
10722 fi
10723
10724 if test "$no_x" = yes; then
10725 # Not all programs may use this symbol, but it does not hurt to define it.
10726 cat >> confdefs.h <<\EOF
10727 #define X_DISPLAY_MISSING 1
10728 EOF
10729
10730 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10731 else
10732 if test -n "$x_includes"; then
10733 X_CFLAGS="$X_CFLAGS -I$x_includes"
10734 fi
10735
10736 # It would also be nice to do this for all -L options, not just this one.
10737 if test -n "$x_libraries"; then
10738 X_LIBS="$X_LIBS -L$x_libraries"
10739 # For Solaris; some versions of Sun CC require a space after -R and
10740 # others require no space. Words are not sufficient . . . .
10741 case "`(uname -sr) 2>/dev/null`" in
10742 "SunOS 5"*)
10743 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
10744 echo "configure:10745: checking whether -R must be followed by a space" >&5
10745 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
10746 cat > conftest.$ac_ext <<EOF
10747 #line 10748 "configure"
10748 #include "confdefs.h"
10749
10750 int main() {
10751
10752 ; return 0; }
10753 EOF
10754 if { (eval echo configure:10755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10755 rm -rf conftest*
10756 ac_R_nospace=yes
10757 else
10758 echo "configure: failed program was:" >&5
10759 cat conftest.$ac_ext >&5
10760 rm -rf conftest*
10761 ac_R_nospace=no
10762 fi
10763 rm -f conftest*
10764 if test $ac_R_nospace = yes; then
10765 echo "$ac_t""no" 1>&6
10766 X_LIBS="$X_LIBS -R$x_libraries"
10767 else
10768 LIBS="$ac_xsave_LIBS -R $x_libraries"
10769 cat > conftest.$ac_ext <<EOF
10770 #line 10771 "configure"
10771 #include "confdefs.h"
10772
10773 int main() {
10774
10775 ; return 0; }
10776 EOF
10777 if { (eval echo configure:10778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10778 rm -rf conftest*
10779 ac_R_space=yes
10780 else
10781 echo "configure: failed program was:" >&5
10782 cat conftest.$ac_ext >&5
10783 rm -rf conftest*
10784 ac_R_space=no
10785 fi
10786 rm -f conftest*
10787 if test $ac_R_space = yes; then
10788 echo "$ac_t""yes" 1>&6
10789 X_LIBS="$X_LIBS -R $x_libraries"
10790 else
10791 echo "$ac_t""neither works" 1>&6
10792 fi
10793 fi
10794 LIBS="$ac_xsave_LIBS"
10795 esac
10796 fi
10797
10798 # Check for system-dependent libraries X programs must link with.
10799 # Do this before checking for the system-independent R6 libraries
10800 # (-lICE), since we may need -lsocket or whatever for X linking.
10801
10802 if test "$ISC" = yes; then
10803 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10804 else
10805 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10806 # libraries were built with DECnet support. And karl@cs.umb.edu says
10807 # the Alpha needs dnet_stub (dnet does not exist).
10808 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
10809 echo "configure:10810: checking for dnet_ntoa in -ldnet" >&5
10810 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10811 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10812 echo $ac_n "(cached) $ac_c" 1>&6
10813 else
10814 ac_save_LIBS="$LIBS"
10815 LIBS="-ldnet $LIBS"
10816 cat > conftest.$ac_ext <<EOF
10817 #line 10818 "configure"
10818 #include "confdefs.h"
10819 /* Override any gcc2 internal prototype to avoid an error. */
10820 /* We use char because int might match the return type of a gcc2
10821 builtin and then its argument prototype would still apply. */
10822 char dnet_ntoa();
10823
10824 int main() {
10825 dnet_ntoa()
10826 ; return 0; }
10827 EOF
10828 if { (eval echo configure:10829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10829 rm -rf conftest*
10830 eval "ac_cv_lib_$ac_lib_var=yes"
10831 else
10832 echo "configure: failed program was:" >&5
10833 cat conftest.$ac_ext >&5
10834 rm -rf conftest*
10835 eval "ac_cv_lib_$ac_lib_var=no"
10836 fi
10837 rm -f conftest*
10838 LIBS="$ac_save_LIBS"
10839
10840 fi
10841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10842 echo "$ac_t""yes" 1>&6
10843 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10844 else
10845 echo "$ac_t""no" 1>&6
10846 fi
10847
10848 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10849 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
10850 echo "configure:10851: checking for dnet_ntoa in -ldnet_stub" >&5
10851 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10852 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10853 echo $ac_n "(cached) $ac_c" 1>&6
10854 else
10855 ac_save_LIBS="$LIBS"
10856 LIBS="-ldnet_stub $LIBS"
10857 cat > conftest.$ac_ext <<EOF
10858 #line 10859 "configure"
10859 #include "confdefs.h"
10860 /* Override any gcc2 internal prototype to avoid an error. */
10861 /* We use char because int might match the return type of a gcc2
10862 builtin and then its argument prototype would still apply. */
10863 char dnet_ntoa();
10864
10865 int main() {
10866 dnet_ntoa()
10867 ; return 0; }
10868 EOF
10869 if { (eval echo configure:10870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10870 rm -rf conftest*
10871 eval "ac_cv_lib_$ac_lib_var=yes"
10872 else
10873 echo "configure: failed program was:" >&5
10874 cat conftest.$ac_ext >&5
10875 rm -rf conftest*
10876 eval "ac_cv_lib_$ac_lib_var=no"
10877 fi
10878 rm -f conftest*
10879 LIBS="$ac_save_LIBS"
10880
10881 fi
10882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10883 echo "$ac_t""yes" 1>&6
10884 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10885 else
10886 echo "$ac_t""no" 1>&6
10887 fi
10888
10889 fi
10890
10891 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10892 # to get the SysV transport functions.
10893 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
10894 # needs -lnsl.
10895 # The nsl library prevents programs from opening the X display
10896 # on Irix 5.2, according to dickey@clark.net.
10897 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
10898 echo "configure:10899: checking for gethostbyname" >&5
10899 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10900 echo $ac_n "(cached) $ac_c" 1>&6
10901 else
10902 cat > conftest.$ac_ext <<EOF
10903 #line 10904 "configure"
10904 #include "confdefs.h"
10905 /* System header to define __stub macros and hopefully few prototypes,
10906 which can conflict with char gethostbyname(); below. */
10907 #include <assert.h>
10908 /* Override any gcc2 internal prototype to avoid an error. */
10909 /* We use char because int might match the return type of a gcc2
10910 builtin and then its argument prototype would still apply. */
10911 char gethostbyname();
10912
10913 int main() {
10914
10915 /* The GNU C library defines this for functions which it implements
10916 to always fail with ENOSYS. Some functions are actually named
10917 something starting with __ and the normal name is an alias. */
10918 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10919 choke me
10920 #else
10921 gethostbyname();
10922 #endif
10923
10924 ; return 0; }
10925 EOF
10926 if { (eval echo configure:10927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10927 rm -rf conftest*
10928 eval "ac_cv_func_gethostbyname=yes"
10929 else
10930 echo "configure: failed program was:" >&5
10931 cat conftest.$ac_ext >&5
10932 rm -rf conftest*
10933 eval "ac_cv_func_gethostbyname=no"
10934 fi
10935 rm -f conftest*
10936 fi
10937
10938 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10939 echo "$ac_t""yes" 1>&6
10940 :
10941 else
10942 echo "$ac_t""no" 1>&6
10943 fi
10944
10945 if test $ac_cv_func_gethostbyname = no; then
10946 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
10947 echo "configure:10948: checking for gethostbyname in -lnsl" >&5
10948 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10949 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10950 echo $ac_n "(cached) $ac_c" 1>&6
10951 else
10952 ac_save_LIBS="$LIBS"
10953 LIBS="-lnsl $LIBS"
10954 cat > conftest.$ac_ext <<EOF
10955 #line 10956 "configure"
10956 #include "confdefs.h"
10957 /* Override any gcc2 internal prototype to avoid an error. */
10958 /* We use char because int might match the return type of a gcc2
10959 builtin and then its argument prototype would still apply. */
10960 char gethostbyname();
10961
10962 int main() {
10963 gethostbyname()
10964 ; return 0; }
10965 EOF
10966 if { (eval echo configure:10967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10967 rm -rf conftest*
10968 eval "ac_cv_lib_$ac_lib_var=yes"
10969 else
10970 echo "configure: failed program was:" >&5
10971 cat conftest.$ac_ext >&5
10972 rm -rf conftest*
10973 eval "ac_cv_lib_$ac_lib_var=no"
10974 fi
10975 rm -f conftest*
10976 LIBS="$ac_save_LIBS"
10977
10978 fi
10979 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10980 echo "$ac_t""yes" 1>&6
10981 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10982 else
10983 echo "$ac_t""no" 1>&6
10984 fi
10985
10986 fi
10987
10988 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10989 # socket/setsockopt and other routines are undefined under SCO ODT
10990 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10991 # on later versions), says simon@lia.di.epfl.ch: it contains
10992 # gethostby* variants that don't use the nameserver (or something).
10993 # -lsocket must be given before -lnsl if both are needed.
10994 # We assume that if connect needs -lnsl, so does gethostbyname.
10995 echo $ac_n "checking for connect""... $ac_c" 1>&6
10996 echo "configure:10997: checking for connect" >&5
10997 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
10998 echo $ac_n "(cached) $ac_c" 1>&6
10999 else
11000 cat > conftest.$ac_ext <<EOF
11001 #line 11002 "configure"
11002 #include "confdefs.h"
11003 /* System header to define __stub macros and hopefully few prototypes,
11004 which can conflict with char connect(); below. */
11005 #include <assert.h>
11006 /* Override any gcc2 internal prototype to avoid an error. */
11007 /* We use char because int might match the return type of a gcc2
11008 builtin and then its argument prototype would still apply. */
11009 char connect();
11010
11011 int main() {
11012
11013 /* The GNU C library defines this for functions which it implements
11014 to always fail with ENOSYS. Some functions are actually named
11015 something starting with __ and the normal name is an alias. */
11016 #if defined (__stub_connect) || defined (__stub___connect)
11017 choke me
11018 #else
11019 connect();
11020 #endif
11021
11022 ; return 0; }
11023 EOF
11024 if { (eval echo configure:11025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11025 rm -rf conftest*
11026 eval "ac_cv_func_connect=yes"
11027 else
11028 echo "configure: failed program was:" >&5
11029 cat conftest.$ac_ext >&5
11030 rm -rf conftest*
11031 eval "ac_cv_func_connect=no"
11032 fi
11033 rm -f conftest*
11034 fi
11035
11036 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
11037 echo "$ac_t""yes" 1>&6
11038 :
11039 else
11040 echo "$ac_t""no" 1>&6
11041 fi
11042
11043 if test $ac_cv_func_connect = no; then
11044 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
11045 echo "configure:11046: checking for connect in -lsocket" >&5
11046 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
11047 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11048 echo $ac_n "(cached) $ac_c" 1>&6
11049 else
11050 ac_save_LIBS="$LIBS"
11051 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
11052 cat > conftest.$ac_ext <<EOF
11053 #line 11054 "configure"
11054 #include "confdefs.h"
11055 /* Override any gcc2 internal prototype to avoid an error. */
11056 /* We use char because int might match the return type of a gcc2
11057 builtin and then its argument prototype would still apply. */
11058 char connect();
11059
11060 int main() {
11061 connect()
11062 ; return 0; }
11063 EOF
11064 if { (eval echo configure:11065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11065 rm -rf conftest*
11066 eval "ac_cv_lib_$ac_lib_var=yes"
11067 else
11068 echo "configure: failed program was:" >&5
11069 cat conftest.$ac_ext >&5
11070 rm -rf conftest*
11071 eval "ac_cv_lib_$ac_lib_var=no"
11072 fi
11073 rm -f conftest*
11074 LIBS="$ac_save_LIBS"
11075
11076 fi
11077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11078 echo "$ac_t""yes" 1>&6
11079 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
11080 else
11081 echo "$ac_t""no" 1>&6
11082 fi
11083
11084 fi
11085
11086 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
11087 echo $ac_n "checking for remove""... $ac_c" 1>&6
11088 echo "configure:11089: checking for remove" >&5
11089 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
11090 echo $ac_n "(cached) $ac_c" 1>&6
11091 else
11092 cat > conftest.$ac_ext <<EOF
11093 #line 11094 "configure"
11094 #include "confdefs.h"
11095 /* System header to define __stub macros and hopefully few prototypes,
11096 which can conflict with char remove(); below. */
11097 #include <assert.h>
11098 /* Override any gcc2 internal prototype to avoid an error. */
11099 /* We use char because int might match the return type of a gcc2
11100 builtin and then its argument prototype would still apply. */
11101 char remove();
11102
11103 int main() {
11104
11105 /* The GNU C library defines this for functions which it implements
11106 to always fail with ENOSYS. Some functions are actually named
11107 something starting with __ and the normal name is an alias. */
11108 #if defined (__stub_remove) || defined (__stub___remove)
11109 choke me
11110 #else
11111 remove();
11112 #endif
11113
11114 ; return 0; }
11115 EOF
11116 if { (eval echo configure:11117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11117 rm -rf conftest*
11118 eval "ac_cv_func_remove=yes"
11119 else
11120 echo "configure: failed program was:" >&5
11121 cat conftest.$ac_ext >&5
11122 rm -rf conftest*
11123 eval "ac_cv_func_remove=no"
11124 fi
11125 rm -f conftest*
11126 fi
11127
11128 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
11129 echo "$ac_t""yes" 1>&6
11130 :
11131 else
11132 echo "$ac_t""no" 1>&6
11133 fi
11134
11135 if test $ac_cv_func_remove = no; then
11136 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
11137 echo "configure:11138: checking for remove in -lposix" >&5
11138 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
11139 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11140 echo $ac_n "(cached) $ac_c" 1>&6
11141 else
11142 ac_save_LIBS="$LIBS"
11143 LIBS="-lposix $LIBS"
11144 cat > conftest.$ac_ext <<EOF
11145 #line 11146 "configure"
11146 #include "confdefs.h"
11147 /* Override any gcc2 internal prototype to avoid an error. */
11148 /* We use char because int might match the return type of a gcc2
11149 builtin and then its argument prototype would still apply. */
11150 char remove();
11151
11152 int main() {
11153 remove()
11154 ; return 0; }
11155 EOF
11156 if { (eval echo configure:11157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11157 rm -rf conftest*
11158 eval "ac_cv_lib_$ac_lib_var=yes"
11159 else
11160 echo "configure: failed program was:" >&5
11161 cat conftest.$ac_ext >&5
11162 rm -rf conftest*
11163 eval "ac_cv_lib_$ac_lib_var=no"
11164 fi
11165 rm -f conftest*
11166 LIBS="$ac_save_LIBS"
11167
11168 fi
11169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11170 echo "$ac_t""yes" 1>&6
11171 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
11172 else
11173 echo "$ac_t""no" 1>&6
11174 fi
11175
11176 fi
11177
11178 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
11179 echo $ac_n "checking for shmat""... $ac_c" 1>&6
11180 echo "configure:11181: checking for shmat" >&5
11181 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
11182 echo $ac_n "(cached) $ac_c" 1>&6
11183 else
11184 cat > conftest.$ac_ext <<EOF
11185 #line 11186 "configure"
11186 #include "confdefs.h"
11187 /* System header to define __stub macros and hopefully few prototypes,
11188 which can conflict with char shmat(); below. */
11189 #include <assert.h>
11190 /* Override any gcc2 internal prototype to avoid an error. */
11191 /* We use char because int might match the return type of a gcc2
11192 builtin and then its argument prototype would still apply. */
11193 char shmat();
11194
11195 int main() {
11196
11197 /* The GNU C library defines this for functions which it implements
11198 to always fail with ENOSYS. Some functions are actually named
11199 something starting with __ and the normal name is an alias. */
11200 #if defined (__stub_shmat) || defined (__stub___shmat)
11201 choke me
11202 #else
11203 shmat();
11204 #endif
11205
11206 ; return 0; }
11207 EOF
11208 if { (eval echo configure:11209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11209 rm -rf conftest*
11210 eval "ac_cv_func_shmat=yes"
11211 else
11212 echo "configure: failed program was:" >&5
11213 cat conftest.$ac_ext >&5
11214 rm -rf conftest*
11215 eval "ac_cv_func_shmat=no"
11216 fi
11217 rm -f conftest*
11218 fi
11219
11220 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
11221 echo "$ac_t""yes" 1>&6
11222 :
11223 else
11224 echo "$ac_t""no" 1>&6
11225 fi
11226
11227 if test $ac_cv_func_shmat = no; then
11228 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
11229 echo "configure:11230: checking for shmat in -lipc" >&5
11230 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
11231 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11232 echo $ac_n "(cached) $ac_c" 1>&6
11233 else
11234 ac_save_LIBS="$LIBS"
11235 LIBS="-lipc $LIBS"
11236 cat > conftest.$ac_ext <<EOF
11237 #line 11238 "configure"
11238 #include "confdefs.h"
11239 /* Override any gcc2 internal prototype to avoid an error. */
11240 /* We use char because int might match the return type of a gcc2
11241 builtin and then its argument prototype would still apply. */
11242 char shmat();
11243
11244 int main() {
11245 shmat()
11246 ; return 0; }
11247 EOF
11248 if { (eval echo configure:11249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11249 rm -rf conftest*
11250 eval "ac_cv_lib_$ac_lib_var=yes"
11251 else
11252 echo "configure: failed program was:" >&5
11253 cat conftest.$ac_ext >&5
11254 rm -rf conftest*
11255 eval "ac_cv_lib_$ac_lib_var=no"
11256 fi
11257 rm -f conftest*
11258 LIBS="$ac_save_LIBS"
11259
11260 fi
11261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11262 echo "$ac_t""yes" 1>&6
11263 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
11264 else
11265 echo "$ac_t""no" 1>&6
11266 fi
11267
11268 fi
11269 fi
11270
11271 # Check for libraries that X11R6 Xt/Xaw programs need.
11272 ac_save_LDFLAGS="$LDFLAGS"
11273 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
11274 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11275 # check for ICE first), but we must link in the order -lSM -lICE or
11276 # we get undefined symbols. So assume we have SM if we have ICE.
11277 # These have to be linked with before -lX11, unlike the other
11278 # libraries we check for below, so use a different variable.
11279 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
11280 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
11281 echo "configure:11282: checking for IceConnectionNumber in -lICE" >&5
11282 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
11283 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11284 echo $ac_n "(cached) $ac_c" 1>&6
11285 else
11286 ac_save_LIBS="$LIBS"
11287 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
11288 cat > conftest.$ac_ext <<EOF
11289 #line 11290 "configure"
11290 #include "confdefs.h"
11291 /* Override any gcc2 internal prototype to avoid an error. */
11292 /* We use char because int might match the return type of a gcc2
11293 builtin and then its argument prototype would still apply. */
11294 char IceConnectionNumber();
11295
11296 int main() {
11297 IceConnectionNumber()
11298 ; return 0; }
11299 EOF
11300 if { (eval echo configure:11301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11301 rm -rf conftest*
11302 eval "ac_cv_lib_$ac_lib_var=yes"
11303 else
11304 echo "configure: failed program was:" >&5
11305 cat conftest.$ac_ext >&5
11306 rm -rf conftest*
11307 eval "ac_cv_lib_$ac_lib_var=no"
11308 fi
11309 rm -f conftest*
11310 LIBS="$ac_save_LIBS"
11311
11312 fi
11313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11314 echo "$ac_t""yes" 1>&6
11315 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
11316 else
11317 echo "$ac_t""no" 1>&6
11318 fi
11319
11320 LDFLAGS="$ac_save_LDFLAGS"
11321
11322 fi
11323
11324
11325 if test "$no_x" = "yes"; then
11326 { echo "configure: error: X11 not found" 1>&2; exit 1; }
11327 fi
11328
11329 GUI_TK_LIBRARY="$X_LIBS"
11330 TOOLKIT_INCLUDE="$X_CFLAGS"
11331 AFMINSTALL=afminstall
11332 COMPILED_X_PROGRAM=0
11333
11334 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
11335 echo "configure:11336: checking for Motif/Lesstif headers" >&5
11336
11337 ac_find_includes=
11338 for ac_dir in $SEARCH_INCLUDE;
11339 do
11340 if test -f "$ac_dir/Xm/Xm.h"; then
11341 ac_find_includes=$ac_dir
11342 break
11343 fi
11344 done
11345
11346 if test "$ac_find_includes" != "" ; then
11347 echo "$ac_t""found $ac_find_includes" 1>&6
11348 else
11349 cat > conftest.$ac_ext <<EOF
11350 #line 11351 "configure"
11351 #include "confdefs.h"
11352
11353 #include <Xm/Xm.h>
11354
11355 int main() {
11356
11357 int version;
11358 version = xmUseVersion;
11359
11360 ; return 0; }
11361 EOF
11362 if { (eval echo configure:11363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11363 rm -rf conftest*
11364
11365 echo "$ac_t""found in default search path" 1>&6
11366 COMPILED_X_PROGRAM=1
11367
11368 else
11369 echo "configure: failed program was:" >&5
11370 cat conftest.$ac_ext >&5
11371 rm -rf conftest*
11372
11373 echo "$ac_t""no" 1>&6
11374 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
11375
11376
11377 fi
11378 rm -f conftest*
11379 fi
11380
11381 if test "$COMPILED_X_PROGRAM" = 0; then
11382 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
11383 echo "configure:11384: checking for Motif/Lesstif library" >&5
11384
11385 ac_find_libraries=
11386 for ac_dir in $SEARCH_LIB;
11387 do
11388 for ac_extension in a so sl dylib; do
11389 if test -f "$ac_dir/libXm.$ac_extension"; then
11390 ac_find_libraries=$ac_dir
11391 break 2
11392 fi
11393 done
11394 done
11395
11396 if test "$ac_find_libraries" != "" ; then
11397
11398 ac_path_to_include=$ac_find_includes
11399 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
11400 result=$?
11401 if test $result = 0; then
11402 ac_path_to_include=""
11403 else
11404 ac_path_to_include=" -I$ac_find_includes"
11405 fi
11406
11407
11408 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11409 result=$?
11410 if test $result = 0; then
11411 ac_path_to_link=""
11412 else
11413 ac_path_to_link=" -L$ac_find_libraries"
11414 fi
11415
11416
11417 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
11418 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
11419 echo "$ac_t""found at $ac_find_libraries" 1>&6
11420 else
11421 cat > conftest.$ac_ext <<EOF
11422 #line 11423 "configure"
11423 #include "confdefs.h"
11424
11425 #include <Xm/Xm.h>
11426
11427 int main() {
11428
11429 int version;
11430 version = xmUseVersion;
11431
11432 ; return 0; }
11433 EOF
11434 if { (eval echo configure:11435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11435 rm -rf conftest*
11436
11437 echo "$ac_t""found in default search path" 1>&6
11438 COMPILED_X_PROGRAM=1
11439
11440 else
11441 echo "configure: failed program was:" >&5
11442 cat conftest.$ac_ext >&5
11443 rm -rf conftest*
11444
11445 echo "$ac_t""no" 1>&6
11446 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
11447
11448
11449 fi
11450 rm -f conftest*
11451 fi
11452 fi
11453
11454 xpm_link=
11455 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
11456 echo "configure:11457: checking for Xpm library" >&5
11457
11458 ac_find_libraries=
11459 for ac_dir in $SEARCH_LIB;
11460 do
11461 for ac_extension in a so sl dylib; do
11462 if test -f "$ac_dir/libXpm.$ac_extension"; then
11463 ac_find_libraries=$ac_dir
11464 break 2
11465 fi
11466 done
11467 done
11468
11469 if test "$ac_find_libraries" != "" ; then
11470
11471 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11472 result=$?
11473 if test $result = 0; then
11474 ac_path_to_link=""
11475 else
11476 ac_path_to_link=" -L$ac_find_libraries"
11477 fi
11478
11479 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
11480 xpm_link=" -lXpm"
11481 cat >> confdefs.h <<\EOF
11482 #define wxHAVE_LIB_XPM 1
11483 EOF
11484
11485 echo "$ac_t""found at $ac_find_libraries" 1>&6
11486 else
11487 cat > conftest.$ac_ext <<EOF
11488 #line 11489 "configure"
11489 #include "confdefs.h"
11490
11491 #include <X11/xpm.h>
11492
11493 int main() {
11494
11495 int version;
11496 version = XpmLibraryVersion();
11497
11498 ; return 0; }
11499 EOF
11500 if { (eval echo configure:11501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11501 rm -rf conftest*
11502
11503 xpm_link=" -lXpm"
11504 cat >> confdefs.h <<\EOF
11505 #define wxHAVE_LIB_XPM 1
11506 EOF
11507
11508 echo "$ac_t""found in default search path" 1>&6
11509 COMPILED_X_PROGRAM=0
11510
11511 else
11512 echo "configure: failed program was:" >&5
11513 cat conftest.$ac_ext >&5
11514 rm -rf conftest*
11515
11516 echo "$ac_t""no" 1>&6
11517 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
11518
11519
11520 fi
11521 rm -f conftest*
11522 fi
11523
11524 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
11525 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
11526 TOOLKIT=MOTIF
11527 GUIDIST=MOTIF_DIST
11528 fi
11529
11530 if test "$wxUSE_MAC" = 1; then
11531 if test "$wxUSE_PRECOMP" = "yes"; then
11532 CPPFLAGS="$CPPFLAGS -cpp-precomp"
11533 fi
11534 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
11535 CFLAGS="$CFLAGS -fpascal-strings"
11536 CXXFLAGS="$CXXFLAGS -fpascal-strings"
11537 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -DTARGET_CARBON"
11538
11539 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
11540 TOOLKIT=MAC
11541 GUIDIST=MACX_DIST
11542 fi
11543
11544 if test "$wxUSE_PM" = 1; then
11545 TOOLKIT=PM
11546 GUIDIST=GTK_DIST
11547 fi
11548
11549 if test "$TOOLKIT" = "PM" ; then
11550 TOOLKIT_DIR="os2"
11551 else
11552 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
11553 fi
11554
11555 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
11556
11557 if test "$wxUSE_UNIVERSAL" = "yes"; then
11558 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
11559 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
11560 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
11561 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
11562 WIDGET_SET=univ
11563 else
11564 ALL_OBJECTS="\$(GUIOBJS)"
11565 fi
11566
11567 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
11568
11569 if test "$TOOLKIT" != "MSW"; then
11570 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
11571 fi
11572
11573 if test "$wxUSE_HTML" = "yes"; then
11574 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
11575 fi
11576
11577 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
11578 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
11579 fi
11580 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11581 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
11582 fi
11583 if test "$wxUSE_LIBTIFF" = "builtin" ; then
11584 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
11585 fi
11586 if test "$wxUSE_LIBPNG" = "builtin" ; then
11587 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
11588 fi
11589 if test "$wxUSE_FREETYPE" = "builtin" ; then
11590 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
11591 fi
11592
11593 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
11594 DISTDIR="wx\$(TOOLKIT)"
11595 else
11596 USE_GUI=0
11597
11598 TOOLKIT_DIR="base"
11599
11600 if test "$USE_WIN32" = 1 ; then
11601 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
11602 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
11603
11604 TOOLKIT="MSW"
11605 else
11606 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
11607 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
11608 fi
11609
11610 PORT_FILES="\${top_srcdir}/src/files.lst"
11611
11612 GUIDIST="BASE_DIST"
11613 DISTDIR="wxBase"
11614 fi
11615
11616 if test "$wxUSE_REGEX" = "builtin" ; then
11617 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
11618 fi
11619 if test "$wxUSE_ZLIB" = "builtin" ; then
11620 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
11621 fi
11622
11623 if test "$wxUSE_OPENGL" = "yes"; then
11624 if test "$wxUSE_MAC" = 1; then
11625 OPENGL_LIBS="-framework OpenGL -framework AGL"
11626 else
11627
11628 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11629 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
11630 echo "configure:11631: checking for GL/gl.h" >&5
11631 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11632 echo $ac_n "(cached) $ac_c" 1>&6
11633 else
11634 cat > conftest.$ac_ext <<EOF
11635 #line 11636 "configure"
11636 #include "confdefs.h"
11637 #include <GL/gl.h>
11638 EOF
11639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11640 { (eval echo configure:11641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11642 if test -z "$ac_err"; then
11643 rm -rf conftest*
11644 eval "ac_cv_header_$ac_safe=yes"
11645 else
11646 echo "$ac_err" >&5
11647 echo "configure: failed program was:" >&5
11648 cat conftest.$ac_ext >&5
11649 rm -rf conftest*
11650 eval "ac_cv_header_$ac_safe=no"
11651 fi
11652 rm -f conftest*
11653 fi
11654 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11655 echo "$ac_t""yes" 1>&6
11656
11657 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
11658 echo "configure:11659: checking for -lGL" >&5
11659
11660 ac_find_libraries=
11661 for ac_dir in $SEARCH_LIB;
11662 do
11663 for ac_extension in a so sl dylib; do
11664 if test -f "$ac_dir/libGL.$ac_extension"; then
11665 ac_find_libraries=$ac_dir
11666 break 2
11667 fi
11668 done
11669 done
11670
11671 if test "$ac_find_libraries" != "" ; then
11672
11673 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
11674 result=$?
11675 if test $result = 0; then
11676 ac_path_to_link=""
11677 else
11678 ac_path_to_link=" -L$ac_find_libraries"
11679 fi
11680
11681 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
11682 OPENGL_LIBS="-lGL -lGLU"
11683 echo "$ac_t""yes" 1>&6
11684 else
11685 echo "$ac_t""no" 1>&6
11686 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
11687 echo "configure:11688: checking for -lMesaGL" >&5
11688
11689 ac_find_libraries=
11690 for ac_dir in $SEARCH_LIB;
11691 do
11692 for ac_extension in a so sl dylib; do
11693 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
11694 ac_find_libraries=$ac_dir
11695 break 2
11696 fi
11697 done
11698 done
11699
11700 if test "$ac_find_libraries" != "" ; then
11701
11702 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
11703 result=$?
11704 if test $result = 0; then
11705 ac_path_to_link=""
11706 else
11707 ac_path_to_link=" -L$ac_find_libraries"
11708 fi
11709
11710 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
11711 OPENGL_LIBS="-lMesaGL -lMesaGLU"
11712 echo "$ac_t""yes" 1>&6
11713 else
11714 echo "$ac_t""no" 1>&6
11715 fi
11716 fi
11717
11718 else
11719 echo "$ac_t""no" 1>&6
11720 fi
11721
11722
11723
11724 # AC_CHECK_HEADER(GL/gl.h,
11725 # [
11726 # AC_CHECK_LIB(GL, glFlush,
11727 # [
11728 # OPENGL_LIBS="-lGL -lGLU"
11729 # ],
11730 # [
11731 # AC_CHECK_LIB(MesaGL, glFlush,
11732 # [
11733 # OPENGL_LIBS="-lMesaGL -lMesaGLU"
11734 # ],
11735 # [],
11736 # [-lm])
11737 # ],
11738 # [-lm])
11739 # ])
11740
11741 if test "x$OPENGL_LIBS" = "x"; then
11742 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
11743 fi
11744 fi
11745
11746 if test "$wxUSE_OPENGL" = "yes"; then
11747 cat >> confdefs.h <<\EOF
11748 #define wxUSE_OPENGL 1
11749 EOF
11750
11751 cat >> confdefs.h <<\EOF
11752 #define wxUSE_GLCANVAS 1
11753 EOF
11754
11755 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
11756 fi
11757 fi
11758
11759 if test -z "$TOOLKIT_VPATH" ; then
11760 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
11761 fi
11762
11763 if test -n "$TOOLKIT" ; then
11764 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
11765 fi
11766
11767 lib_unicode_suffix=
11768 if test "$wxUSE_UNICODE" = "yes"; then
11769 lib_unicode_suffix=u
11770 fi
11771
11772 lib_debug_suffix=
11773 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
11774 lib_debug_suffix=d
11775 fi
11776
11777 TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
11778 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
11779
11780 if test "$cross_compiling" = "yes"; then
11781 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
11782 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
11783 fi
11784
11785 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
11786 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
11787
11788 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11789 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11790
11791 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
11792 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
11793 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
11794 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
11795
11796 WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
11797 WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
11798
11799 case "${host}" in
11800 *-*-cygwin* | *-*-mingw32* )
11801
11802
11803
11804 if test "$cross_compiling" != "yes"; then
11805 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
11806 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
11807 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
11808 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
11809 else
11810 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
11811 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
11812 fi
11813
11814 esac
11815
11816 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
11817 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
11818
11819 WXCONFIG_LIBS="-l${WX_LIBRARY}"
11820 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
11821
11822 if test "$wxUSE_OPENGL" = "yes"; then
11823 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
11824 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
11825 fi
11826
11827
11828
11829 if test "$wxUSE_SHARED" = "yes"; then
11830
11831 if test "$wxUSE_OPENGL" = "yes"; then
11832 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11833 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
11834 else
11835 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11836 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
11837 fi
11838
11839 if test "$GCC" = "yes"; then
11840 PIC_FLAG="-fPIC"
11841 fi
11842
11843 SHARED_LD="${CXX} -shared -o"
11844
11845 case "${host}" in
11846 *-hp-hpux* )
11847 if test "$GCC" != "yes"; then
11848 LDFLAGS="$LDFLAGS -L/usr/lib"
11849
11850 SHARED_LD="${CXX} -b -o"
11851 PIC_FLAG="+Z"
11852 fi
11853
11854 if test "$wxUSE_OPENGL" = "yes"; then
11855 WX_ALL_INSTALLED="preinstall_gl"
11856 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
11857 else
11858 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
11859 fi
11860 ;;
11861
11862 *-*-linux* )
11863 if test "$GCC" != "yes"; then
11864 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
11865 echo "configure:11866: checking for Intel compiler" >&5
11866 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
11867 echo $ac_n "(cached) $ac_c" 1>&6
11868 else
11869
11870 cat > conftest.$ac_ext <<EOF
11871 #line 11872 "configure"
11872 #include "confdefs.h"
11873
11874 int main() {
11875
11876 #ifndef __INTEL_COMPILER
11877 #error Not icc
11878 #endif
11879
11880 ; return 0; }
11881 EOF
11882 if { (eval echo configure:11883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11883 rm -rf conftest*
11884 wx_cv_prog_icc=yes
11885 else
11886 echo "configure: failed program was:" >&5
11887 cat conftest.$ac_ext >&5
11888 rm -rf conftest*
11889 wx_cv_prog_icc=no
11890
11891 fi
11892 rm -f conftest*
11893
11894 fi
11895
11896 echo "$ac_t""$wx_cv_prog_icc" 1>&6
11897 if test "$wx_cv_prog_icc" = "yes"; then
11898 PIC_FLAG="-KPIC"
11899 fi
11900 fi
11901
11902 if test "$wxUSE_SONAME" = "yes" ; then
11903 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
11904 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
11905 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
11906 fi
11907 ;;
11908
11909 *-*-solaris2* )
11910 if test "$GCC" = yes ; then
11911 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
11912 else
11913 SHARED_LD="${CXX} -G -o"
11914 PIC_FLAG="-KPIC"
11915 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
11916 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}"
11917 fi
11918 ;;
11919
11920 *-*-darwin* )
11921 CFLAGS="$CFLAGS -fno-common"
11922 CXXFLAGS="$CXXFLAGS -fno-common"
11923 SHARED_LD="$CXX -dynamiclib -o"
11924 PIC_FLAG="-dynamic -fPIC"
11925 ;;
11926
11927 *-*-aix* )
11928 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
11929 ;;
11930
11931 *-*-cygwin* | *-*-mingw32* )
11932
11933 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
11934
11935 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
11936 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
11937
11938 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
11939
11940 if test "$wxUSE_OPENGL" = "yes"; then
11941 WX_ALL_INSTALLED="preinstall_gl"
11942 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
11943 else
11944 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
11945 fi
11946 ;;
11947
11948 *-pc-os2_emx | *-pc-os2-emx )
11949 wxUSE_SHARED=no
11950 ;;
11951
11952 *-*-beos* )
11953 SHARED_LD="${LD} -shared -o"
11954 ;;
11955
11956 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
11957 *-*-sunos4* | \
11958 *-*-irix5* | *-*-irix6* | \
11959 *-*-osf* | \
11960 *-*-dgux5* | \
11961 *-*-sysv5* )
11962 ;;
11963
11964 *)
11965 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
11966 esac
11967
11968 if test "x$WX_TARGET_LIBRARY" = "x"; then
11969 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
11970 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
11971 fi
11972
11973 WX_TARGET_LIBRARY_TYPE="so"
11974 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
11975 fi
11976
11977 if test "$wxUSE_SHARED" = "no"; then
11978
11979 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
11980 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11981 fi
11982
11983 if test "$wxUSE_MAC" = 1; then
11984 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11985 fi
11986
11987 if test "$wxUSE_OPENGL" = "yes"; then
11988 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
11989 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
11990 else
11991 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
11992 fi
11993
11994 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11995 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
11996
11997 WX_TARGET_LIBRARY_TYPE="a"
11998 INSTALL_LIBRARY='$(INSTALL_DATA)'
11999 fi
12000
12001 if test "$wxUSE_MAC" = 1; then
12002 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
12003 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
12004 # Extract the first word of "Rez", so it can be a program name with args.
12005 set dummy Rez; ac_word=$2
12006 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12007 echo "configure:12008: checking for $ac_word" >&5
12008 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
12009 echo $ac_n "(cached) $ac_c" 1>&6
12010 else
12011 if test -n "$RESCOMP"; then
12012 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
12013 else
12014 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12015 ac_dummy="$PATH"
12016 for ac_dir in $ac_dummy; do
12017 test -z "$ac_dir" && ac_dir=.
12018 if test -f $ac_dir/$ac_word; then
12019 ac_cv_prog_RESCOMP="Rez"
12020 break
12021 fi
12022 done
12023 IFS="$ac_save_ifs"
12024 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
12025 fi
12026 fi
12027 RESCOMP="$ac_cv_prog_RESCOMP"
12028 if test -n "$RESCOMP"; then
12029 echo "$ac_t""$RESCOMP" 1>&6
12030 else
12031 echo "$ac_t""no" 1>&6
12032 fi
12033
12034 # Extract the first word of "Derez", so it can be a program name with args.
12035 set dummy Derez; ac_word=$2
12036 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12037 echo "configure:12038: checking for $ac_word" >&5
12038 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
12039 echo $ac_n "(cached) $ac_c" 1>&6
12040 else
12041 if test -n "$DEREZ"; then
12042 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
12043 else
12044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12045 ac_dummy="$PATH"
12046 for ac_dir in $ac_dummy; do
12047 test -z "$ac_dir" && ac_dir=.
12048 if test -f $ac_dir/$ac_word; then
12049 ac_cv_prog_DEREZ="Derez"
12050 break
12051 fi
12052 done
12053 IFS="$ac_save_ifs"
12054 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
12055 fi
12056 fi
12057 DEREZ="$ac_cv_prog_DEREZ"
12058 if test -n "$DEREZ"; then
12059 echo "$ac_t""$DEREZ" 1>&6
12060 else
12061 echo "$ac_t""no" 1>&6
12062 fi
12063
12064 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
12065 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
12066 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
12067 fi
12068
12069
12070 if test "$wxUSE_MAC" != 1; then
12071 for ac_hdr in strings.h
12072 do
12073 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12074 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12075 echo "configure:12076: checking for $ac_hdr" >&5
12076 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12077 echo $ac_n "(cached) $ac_c" 1>&6
12078 else
12079 cat > conftest.$ac_ext <<EOF
12080 #line 12081 "configure"
12081 #include "confdefs.h"
12082 #include <$ac_hdr>
12083 EOF
12084 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12085 { (eval echo configure:12086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12086 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12087 if test -z "$ac_err"; then
12088 rm -rf conftest*
12089 eval "ac_cv_header_$ac_safe=yes"
12090 else
12091 echo "$ac_err" >&5
12092 echo "configure: failed program was:" >&5
12093 cat conftest.$ac_ext >&5
12094 rm -rf conftest*
12095 eval "ac_cv_header_$ac_safe=no"
12096 fi
12097 rm -f conftest*
12098 fi
12099 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12100 echo "$ac_t""yes" 1>&6
12101 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12102 cat >> confdefs.h <<EOF
12103 #define $ac_tr_hdr 1
12104 EOF
12105
12106 else
12107 echo "$ac_t""no" 1>&6
12108 fi
12109 done
12110
12111 fi
12112
12113 for ac_hdr in stdlib.h
12114 do
12115 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12116 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12117 echo "configure:12118: checking for $ac_hdr" >&5
12118 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12119 echo $ac_n "(cached) $ac_c" 1>&6
12120 else
12121 cat > conftest.$ac_ext <<EOF
12122 #line 12123 "configure"
12123 #include "confdefs.h"
12124 #include <$ac_hdr>
12125 EOF
12126 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12127 { (eval echo configure:12128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12128 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12129 if test -z "$ac_err"; then
12130 rm -rf conftest*
12131 eval "ac_cv_header_$ac_safe=yes"
12132 else
12133 echo "$ac_err" >&5
12134 echo "configure: failed program was:" >&5
12135 cat conftest.$ac_ext >&5
12136 rm -rf conftest*
12137 eval "ac_cv_header_$ac_safe=no"
12138 fi
12139 rm -f conftest*
12140 fi
12141 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12142 echo "$ac_t""yes" 1>&6
12143 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12144 cat >> confdefs.h <<EOF
12145 #define $ac_tr_hdr 1
12146 EOF
12147
12148 else
12149 echo "$ac_t""no" 1>&6
12150 fi
12151 done
12152
12153 for ac_hdr in unistd.h
12154 do
12155 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12156 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12157 echo "configure:12158: checking for $ac_hdr" >&5
12158 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12159 echo $ac_n "(cached) $ac_c" 1>&6
12160 else
12161 cat > conftest.$ac_ext <<EOF
12162 #line 12163 "configure"
12163 #include "confdefs.h"
12164 #include <$ac_hdr>
12165 EOF
12166 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12167 { (eval echo configure:12168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12168 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12169 if test -z "$ac_err"; then
12170 rm -rf conftest*
12171 eval "ac_cv_header_$ac_safe=yes"
12172 else
12173 echo "$ac_err" >&5
12174 echo "configure: failed program was:" >&5
12175 cat conftest.$ac_ext >&5
12176 rm -rf conftest*
12177 eval "ac_cv_header_$ac_safe=no"
12178 fi
12179 rm -f conftest*
12180 fi
12181 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12182 echo "$ac_t""yes" 1>&6
12183 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12184 cat >> confdefs.h <<EOF
12185 #define $ac_tr_hdr 1
12186 EOF
12187
12188 else
12189 echo "$ac_t""no" 1>&6
12190 fi
12191 done
12192
12193 for ac_hdr in wchar.h
12194 do
12195 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12196 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12197 echo "configure:12198: checking for $ac_hdr" >&5
12198 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12199 echo $ac_n "(cached) $ac_c" 1>&6
12200 else
12201 cat > conftest.$ac_ext <<EOF
12202 #line 12203 "configure"
12203 #include "confdefs.h"
12204 #include <$ac_hdr>
12205 EOF
12206 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12207 { (eval echo configure:12208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12208 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12209 if test -z "$ac_err"; then
12210 rm -rf conftest*
12211 eval "ac_cv_header_$ac_safe=yes"
12212 else
12213 echo "$ac_err" >&5
12214 echo "configure: failed program was:" >&5
12215 cat conftest.$ac_ext >&5
12216 rm -rf conftest*
12217 eval "ac_cv_header_$ac_safe=no"
12218 fi
12219 rm -f conftest*
12220 fi
12221 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12222 echo "$ac_t""yes" 1>&6
12223 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12224 cat >> confdefs.h <<EOF
12225 #define $ac_tr_hdr 1
12226 EOF
12227
12228 else
12229 echo "$ac_t""no" 1>&6
12230 fi
12231 done
12232
12233 for ac_hdr in wcstr.h
12234 do
12235 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12236 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12237 echo "configure:12238: checking for $ac_hdr" >&5
12238 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12239 echo $ac_n "(cached) $ac_c" 1>&6
12240 else
12241 cat > conftest.$ac_ext <<EOF
12242 #line 12243 "configure"
12243 #include "confdefs.h"
12244 #include <$ac_hdr>
12245 EOF
12246 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12247 { (eval echo configure:12248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12248 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12249 if test -z "$ac_err"; then
12250 rm -rf conftest*
12251 eval "ac_cv_header_$ac_safe=yes"
12252 else
12253 echo "$ac_err" >&5
12254 echo "configure: failed program was:" >&5
12255 cat conftest.$ac_ext >&5
12256 rm -rf conftest*
12257 eval "ac_cv_header_$ac_safe=no"
12258 fi
12259 rm -f conftest*
12260 fi
12261 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12262 echo "$ac_t""yes" 1>&6
12263 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12264 cat >> confdefs.h <<EOF
12265 #define $ac_tr_hdr 1
12266 EOF
12267
12268 else
12269 echo "$ac_t""no" 1>&6
12270 fi
12271 done
12272
12273 for ac_hdr in wctype.h
12274 do
12275 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12276 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12277 echo "configure:12278: checking for $ac_hdr" >&5
12278 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12279 echo $ac_n "(cached) $ac_c" 1>&6
12280 else
12281 cat > conftest.$ac_ext <<EOF
12282 #line 12283 "configure"
12283 #include "confdefs.h"
12284 #include <$ac_hdr>
12285 EOF
12286 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12287 { (eval echo configure:12288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12288 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12289 if test -z "$ac_err"; then
12290 rm -rf conftest*
12291 eval "ac_cv_header_$ac_safe=yes"
12292 else
12293 echo "$ac_err" >&5
12294 echo "configure: failed program was:" >&5
12295 cat conftest.$ac_ext >&5
12296 rm -rf conftest*
12297 eval "ac_cv_header_$ac_safe=no"
12298 fi
12299 rm -f conftest*
12300 fi
12301 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12302 echo "$ac_t""yes" 1>&6
12303 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12304 cat >> confdefs.h <<EOF
12305 #define $ac_tr_hdr 1
12306 EOF
12307
12308 else
12309 echo "$ac_t""no" 1>&6
12310 fi
12311 done
12312
12313 for ac_hdr in fnmatch.h
12314 do
12315 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12316 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12317 echo "configure:12318: checking for $ac_hdr" >&5
12318 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12319 echo $ac_n "(cached) $ac_c" 1>&6
12320 else
12321 cat > conftest.$ac_ext <<EOF
12322 #line 12323 "configure"
12323 #include "confdefs.h"
12324 #include <$ac_hdr>
12325 EOF
12326 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12327 { (eval echo configure:12328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12328 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12329 if test -z "$ac_err"; then
12330 rm -rf conftest*
12331 eval "ac_cv_header_$ac_safe=yes"
12332 else
12333 echo "$ac_err" >&5
12334 echo "configure: failed program was:" >&5
12335 cat conftest.$ac_ext >&5
12336 rm -rf conftest*
12337 eval "ac_cv_header_$ac_safe=no"
12338 fi
12339 rm -f conftest*
12340 fi
12341 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12342 echo "$ac_t""yes" 1>&6
12343 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12344 cat >> confdefs.h <<EOF
12345 #define $ac_tr_hdr 1
12346 EOF
12347
12348 else
12349 echo "$ac_t""no" 1>&6
12350 fi
12351 done
12352
12353 for ac_hdr in iconv.h
12354 do
12355 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12356 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12357 echo "configure:12358: checking for $ac_hdr" >&5
12358 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12359 echo $ac_n "(cached) $ac_c" 1>&6
12360 else
12361 cat > conftest.$ac_ext <<EOF
12362 #line 12363 "configure"
12363 #include "confdefs.h"
12364 #include <$ac_hdr>
12365 EOF
12366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12367 { (eval echo configure:12368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12368 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12369 if test -z "$ac_err"; then
12370 rm -rf conftest*
12371 eval "ac_cv_header_$ac_safe=yes"
12372 else
12373 echo "$ac_err" >&5
12374 echo "configure: failed program was:" >&5
12375 cat conftest.$ac_ext >&5
12376 rm -rf conftest*
12377 eval "ac_cv_header_$ac_safe=no"
12378 fi
12379 rm -f conftest*
12380 fi
12381 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12382 echo "$ac_t""yes" 1>&6
12383 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12384 cat >> confdefs.h <<EOF
12385 #define $ac_tr_hdr 1
12386 EOF
12387
12388 else
12389 echo "$ac_t""no" 1>&6
12390 fi
12391 done
12392
12393 for ac_hdr in langinfo.h
12394 do
12395 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12396 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12397 echo "configure:12398: checking for $ac_hdr" >&5
12398 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12399 echo $ac_n "(cached) $ac_c" 1>&6
12400 else
12401 cat > conftest.$ac_ext <<EOF
12402 #line 12403 "configure"
12403 #include "confdefs.h"
12404 #include <$ac_hdr>
12405 EOF
12406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12407 { (eval echo configure:12408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12408 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12409 if test -z "$ac_err"; then
12410 rm -rf conftest*
12411 eval "ac_cv_header_$ac_safe=yes"
12412 else
12413 echo "$ac_err" >&5
12414 echo "configure: failed program was:" >&5
12415 cat conftest.$ac_ext >&5
12416 rm -rf conftest*
12417 eval "ac_cv_header_$ac_safe=no"
12418 fi
12419 rm -f conftest*
12420 fi
12421 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12422 echo "$ac_t""yes" 1>&6
12423 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12424 cat >> confdefs.h <<EOF
12425 #define $ac_tr_hdr 1
12426 EOF
12427
12428 else
12429 echo "$ac_t""no" 1>&6
12430 fi
12431 done
12432
12433
12434 if test "$wxUSE_GUI" = "yes"; then
12435 if test "$wxUSE_UNIX" = "yes"; then
12436 for ac_hdr in X11/XKBlib.h
12437 do
12438 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12439 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12440 echo "configure:12441: checking for $ac_hdr" >&5
12441 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12442 echo $ac_n "(cached) $ac_c" 1>&6
12443 else
12444 cat > conftest.$ac_ext <<EOF
12445 #line 12446 "configure"
12446 #include "confdefs.h"
12447 #include <$ac_hdr>
12448 EOF
12449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12450 { (eval echo configure:12451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12452 if test -z "$ac_err"; then
12453 rm -rf conftest*
12454 eval "ac_cv_header_$ac_safe=yes"
12455 else
12456 echo "$ac_err" >&5
12457 echo "configure: failed program was:" >&5
12458 cat conftest.$ac_ext >&5
12459 rm -rf conftest*
12460 eval "ac_cv_header_$ac_safe=no"
12461 fi
12462 rm -f conftest*
12463 fi
12464 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12465 echo "$ac_t""yes" 1>&6
12466 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12467 cat >> confdefs.h <<EOF
12468 #define $ac_tr_hdr 1
12469 EOF
12470
12471 else
12472 echo "$ac_t""no" 1>&6
12473 fi
12474 done
12475
12476 fi
12477 fi
12478
12479
12480 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
12481 echo "configure:12482: checking for ANSI C header files" >&5
12482 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
12483 echo $ac_n "(cached) $ac_c" 1>&6
12484 else
12485 cat > conftest.$ac_ext <<EOF
12486 #line 12487 "configure"
12487 #include "confdefs.h"
12488 #include <stdlib.h>
12489 #include <stdarg.h>
12490 #include <string.h>
12491 #include <float.h>
12492 EOF
12493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12494 { (eval echo configure:12495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12495 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12496 if test -z "$ac_err"; then
12497 rm -rf conftest*
12498 ac_cv_header_stdc=yes
12499 else
12500 echo "$ac_err" >&5
12501 echo "configure: failed program was:" >&5
12502 cat conftest.$ac_ext >&5
12503 rm -rf conftest*
12504 ac_cv_header_stdc=no
12505 fi
12506 rm -f conftest*
12507
12508 if test $ac_cv_header_stdc = yes; then
12509 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12510 cat > conftest.$ac_ext <<EOF
12511 #line 12512 "configure"
12512 #include "confdefs.h"
12513 #include <string.h>
12514 EOF
12515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12516 egrep "memchr" >/dev/null 2>&1; then
12517 :
12518 else
12519 rm -rf conftest*
12520 ac_cv_header_stdc=no
12521 fi
12522 rm -f conftest*
12523
12524 fi
12525
12526 if test $ac_cv_header_stdc = yes; then
12527 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12528 cat > conftest.$ac_ext <<EOF
12529 #line 12530 "configure"
12530 #include "confdefs.h"
12531 #include <stdlib.h>
12532 EOF
12533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12534 egrep "free" >/dev/null 2>&1; then
12535 :
12536 else
12537 rm -rf conftest*
12538 ac_cv_header_stdc=no
12539 fi
12540 rm -f conftest*
12541
12542 fi
12543
12544 if test $ac_cv_header_stdc = yes; then
12545 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12546 if test "$cross_compiling" = yes; then
12547 :
12548 else
12549 cat > conftest.$ac_ext <<EOF
12550 #line 12551 "configure"
12551 #include "confdefs.h"
12552 #include <ctype.h>
12553 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12554 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12555 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12556 int main () { int i; for (i = 0; i < 256; i++)
12557 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
12558 exit (0); }
12559
12560 EOF
12561 if { (eval echo configure:12562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12562 then
12563 :
12564 else
12565 echo "configure: failed program was:" >&5
12566 cat conftest.$ac_ext >&5
12567 rm -fr conftest*
12568 ac_cv_header_stdc=no
12569 fi
12570 rm -fr conftest*
12571 fi
12572
12573 fi
12574 fi
12575
12576 echo "$ac_t""$ac_cv_header_stdc" 1>&6
12577 if test $ac_cv_header_stdc = yes; then
12578 cat >> confdefs.h <<\EOF
12579 #define STDC_HEADERS 1
12580 EOF
12581
12582 fi
12583
12584 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
12585 echo "configure:12586: checking for mode_t" >&5
12586 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
12587 echo $ac_n "(cached) $ac_c" 1>&6
12588 else
12589 cat > conftest.$ac_ext <<EOF
12590 #line 12591 "configure"
12591 #include "confdefs.h"
12592 #include <sys/types.h>
12593 #if STDC_HEADERS
12594 #include <stdlib.h>
12595 #include <stddef.h>
12596 #endif
12597 EOF
12598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12599 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12600 rm -rf conftest*
12601 ac_cv_type_mode_t=yes
12602 else
12603 rm -rf conftest*
12604 ac_cv_type_mode_t=no
12605 fi
12606 rm -f conftest*
12607
12608 fi
12609 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
12610 if test $ac_cv_type_mode_t = no; then
12611 cat >> confdefs.h <<\EOF
12612 #define mode_t int
12613 EOF
12614
12615 fi
12616
12617 echo $ac_n "checking for off_t""... $ac_c" 1>&6
12618 echo "configure:12619: checking for off_t" >&5
12619 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
12620 echo $ac_n "(cached) $ac_c" 1>&6
12621 else
12622 cat > conftest.$ac_ext <<EOF
12623 #line 12624 "configure"
12624 #include "confdefs.h"
12625 #include <sys/types.h>
12626 #if STDC_HEADERS
12627 #include <stdlib.h>
12628 #include <stddef.h>
12629 #endif
12630 EOF
12631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12632 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12633 rm -rf conftest*
12634 ac_cv_type_off_t=yes
12635 else
12636 rm -rf conftest*
12637 ac_cv_type_off_t=no
12638 fi
12639 rm -f conftest*
12640
12641 fi
12642 echo "$ac_t""$ac_cv_type_off_t" 1>&6
12643 if test $ac_cv_type_off_t = no; then
12644 cat >> confdefs.h <<\EOF
12645 #define off_t long
12646 EOF
12647
12648 fi
12649
12650 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
12651 echo "configure:12652: checking for pid_t" >&5
12652 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
12653 echo $ac_n "(cached) $ac_c" 1>&6
12654 else
12655 cat > conftest.$ac_ext <<EOF
12656 #line 12657 "configure"
12657 #include "confdefs.h"
12658 #include <sys/types.h>
12659 #if STDC_HEADERS
12660 #include <stdlib.h>
12661 #include <stddef.h>
12662 #endif
12663 EOF
12664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12665 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12666 rm -rf conftest*
12667 ac_cv_type_pid_t=yes
12668 else
12669 rm -rf conftest*
12670 ac_cv_type_pid_t=no
12671 fi
12672 rm -f conftest*
12673
12674 fi
12675 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
12676 if test $ac_cv_type_pid_t = no; then
12677 cat >> confdefs.h <<\EOF
12678 #define pid_t int
12679 EOF
12680
12681 fi
12682
12683 echo $ac_n "checking for size_t""... $ac_c" 1>&6
12684 echo "configure:12685: checking for size_t" >&5
12685 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
12686 echo $ac_n "(cached) $ac_c" 1>&6
12687 else
12688 cat > conftest.$ac_ext <<EOF
12689 #line 12690 "configure"
12690 #include "confdefs.h"
12691 #include <sys/types.h>
12692 #if STDC_HEADERS
12693 #include <stdlib.h>
12694 #include <stddef.h>
12695 #endif
12696 EOF
12697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12698 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12699 rm -rf conftest*
12700 ac_cv_type_size_t=yes
12701 else
12702 rm -rf conftest*
12703 ac_cv_type_size_t=no
12704 fi
12705 rm -f conftest*
12706
12707 fi
12708 echo "$ac_t""$ac_cv_type_size_t" 1>&6
12709 if test $ac_cv_type_size_t = no; then
12710 cat >> confdefs.h <<\EOF
12711 #define size_t unsigned
12712 EOF
12713
12714 fi
12715
12716 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
12717 echo "configure:12718: checking for uid_t in sys/types.h" >&5
12718 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
12719 echo $ac_n "(cached) $ac_c" 1>&6
12720 else
12721 cat > conftest.$ac_ext <<EOF
12722 #line 12723 "configure"
12723 #include "confdefs.h"
12724 #include <sys/types.h>
12725 EOF
12726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12727 egrep "uid_t" >/dev/null 2>&1; then
12728 rm -rf conftest*
12729 ac_cv_type_uid_t=yes
12730 else
12731 rm -rf conftest*
12732 ac_cv_type_uid_t=no
12733 fi
12734 rm -f conftest*
12735
12736 fi
12737
12738 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
12739 if test $ac_cv_type_uid_t = no; then
12740 cat >> confdefs.h <<\EOF
12741 #define uid_t int
12742 EOF
12743
12744 cat >> confdefs.h <<\EOF
12745 #define gid_t int
12746 EOF
12747
12748 fi
12749
12750
12751 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
12752 echo "configure:12753: checking for wchar_t" >&5
12753 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
12754 echo $ac_n "(cached) $ac_c" 1>&6
12755 else
12756
12757 cat > conftest.$ac_ext <<EOF
12758 #line 12759 "configure"
12759 #include "confdefs.h"
12760
12761 #ifdef HAVE_WCHAR_H
12762 # ifdef __CYGWIN__
12763 # include <stddef.h>
12764 # endif
12765 # include <wchar.h>
12766 #endif
12767 #ifdef HAVE_STDLIB_H
12768 # include <stdlib.h>
12769 #endif
12770
12771 int main() {
12772
12773 wchar_t wc, *ws;
12774 wc = L'a';
12775 ws = L"Hello, world!";
12776
12777 ; return 0; }
12778 EOF
12779 if { (eval echo configure:12780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12780 rm -rf conftest*
12781 wx_cv_type_wchar_t=yes
12782 else
12783 echo "configure: failed program was:" >&5
12784 cat conftest.$ac_ext >&5
12785 rm -rf conftest*
12786 wx_cv_type_wchar_t=no
12787
12788 fi
12789 rm -f conftest*
12790
12791 fi
12792
12793 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
12794
12795 if test "$wx_cv_type_wchar_t" = "yes"; then
12796 cat >> confdefs.h <<\EOF
12797 #define wxUSE_WCHAR_T 1
12798 EOF
12799
12800 fi
12801
12802
12803 ac_ext=C
12804 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12805 ac_cpp='$CXXCPP $CPPFLAGS'
12806 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12807 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12808 cross_compiling=$ac_cv_prog_cxx_cross
12809
12810 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
12811 echo "configure:12812: checking if size_t is unsigned int" >&5
12812 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
12813 echo $ac_n "(cached) $ac_c" 1>&6
12814 else
12815 cat > conftest.$ac_ext <<EOF
12816 #line 12817 "configure"
12817 #include "confdefs.h"
12818 #include <stddef.h>
12819 int main() {
12820
12821 return 0; }
12822
12823 struct Foo { void foo(size_t); void foo(unsigned int); };
12824
12825 int bar() {
12826
12827 ; return 0; }
12828 EOF
12829 if { (eval echo configure:12830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12830 rm -rf conftest*
12831 wx_cv_size_t_is_uint=no
12832 else
12833 echo "configure: failed program was:" >&5
12834 cat conftest.$ac_ext >&5
12835 rm -rf conftest*
12836 wx_cv_size_t_is_uint=yes
12837
12838 fi
12839 rm -f conftest*
12840
12841 fi
12842
12843 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
12844
12845 if test "$wx_cv_size_t_is_uint" = "yes"; then
12846 cat >> confdefs.h <<\EOF
12847 #define wxSIZE_T_IS_UINT 1
12848 EOF
12849
12850 else
12851 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
12852 echo "configure:12853: checking if size_t is unsigned long" >&5
12853 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+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 #include <stddef.h>
12860 int main() {
12861
12862 return 0; }
12863
12864 struct Foo { void foo(size_t); void foo(unsigned long); };
12865
12866 int bar() {
12867
12868 ; return 0; }
12869 EOF
12870 if { (eval echo configure:12871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12871 rm -rf conftest*
12872 wx_cv_size_t_is_ulong=no
12873 else
12874 echo "configure: failed program was:" >&5
12875 cat conftest.$ac_ext >&5
12876 rm -rf conftest*
12877 wx_cv_size_t_is_ulong=yes
12878
12879 fi
12880 rm -f conftest*
12881
12882 fi
12883
12884 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
12885
12886 if test "$wx_cv_size_t_is_ulong" = "yes"; then
12887 cat >> confdefs.h <<\EOF
12888 #define wxSIZE_T_IS_ULONG 1
12889 EOF
12890
12891 fi
12892 fi
12893
12894 ac_ext=c
12895 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12896 ac_cpp='$CPP $CPPFLAGS'
12897 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12898 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12899 cross_compiling=$ac_cv_prog_cc_cross
12900
12901
12902
12903 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
12904 echo "configure:12905: checking for pw_gecos in struct passwd" >&5
12905 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
12906 echo $ac_n "(cached) $ac_c" 1>&6
12907 else
12908
12909 cat > conftest.$ac_ext <<EOF
12910 #line 12911 "configure"
12911 #include "confdefs.h"
12912 #include <pwd.h>
12913 int main() {
12914
12915 char *p;
12916 struct passwd *pw;
12917 p = pw->pw_gecos;
12918
12919 ; return 0; }
12920 EOF
12921 if { (eval echo configure:12922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12922 rm -rf conftest*
12923
12924 wx_cv_struct_pw_gecos=yes
12925
12926 else
12927 echo "configure: failed program was:" >&5
12928 cat conftest.$ac_ext >&5
12929 rm -rf conftest*
12930
12931 wx_cv_struct_pw_gecos=no
12932
12933
12934 fi
12935 rm -f conftest*
12936
12937
12938 fi
12939
12940 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
12941
12942 if test "$wx_cv_struct_pw_gecos" = "yes"; then
12943 cat >> confdefs.h <<\EOF
12944 #define HAVE_PW_GECOS 1
12945 EOF
12946
12947 fi
12948
12949
12950 echo $ac_n "checking for working const""... $ac_c" 1>&6
12951 echo "configure:12952: checking for working const" >&5
12952 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
12953 echo $ac_n "(cached) $ac_c" 1>&6
12954 else
12955 cat > conftest.$ac_ext <<EOF
12956 #line 12957 "configure"
12957 #include "confdefs.h"
12958
12959 int main() {
12960
12961 /* Ultrix mips cc rejects this. */
12962 typedef int charset[2]; const charset x;
12963 /* SunOS 4.1.1 cc rejects this. */
12964 char const *const *ccp;
12965 char **p;
12966 /* NEC SVR4.0.2 mips cc rejects this. */
12967 struct point {int x, y;};
12968 static struct point const zero = {0,0};
12969 /* AIX XL C 1.02.0.0 rejects this.
12970 It does not let you subtract one const X* pointer from another in an arm
12971 of an if-expression whose if-part is not a constant expression */
12972 const char *g = "string";
12973 ccp = &g + (g ? g-g : 0);
12974 /* HPUX 7.0 cc rejects these. */
12975 ++ccp;
12976 p = (char**) ccp;
12977 ccp = (char const *const *) p;
12978 { /* SCO 3.2v4 cc rejects this. */
12979 char *t;
12980 char const *s = 0 ? (char *) 0 : (char const *) 0;
12981
12982 *t++ = 0;
12983 }
12984 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12985 int x[] = {25, 17};
12986 const int *foo = &x[0];
12987 ++foo;
12988 }
12989 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12990 typedef const int *iptr;
12991 iptr p = 0;
12992 ++p;
12993 }
12994 { /* AIX XL C 1.02.0.0 rejects this saying
12995 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12996 struct s { int j; const int *ap[3]; };
12997 struct s *b; b->j = 5;
12998 }
12999 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13000 const int foo = 10;
13001 }
13002
13003 ; return 0; }
13004 EOF
13005 if { (eval echo configure:13006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13006 rm -rf conftest*
13007 ac_cv_c_const=yes
13008 else
13009 echo "configure: failed program was:" >&5
13010 cat conftest.$ac_ext >&5
13011 rm -rf conftest*
13012 ac_cv_c_const=no
13013 fi
13014 rm -f conftest*
13015 fi
13016
13017 echo "$ac_t""$ac_cv_c_const" 1>&6
13018 if test $ac_cv_c_const = no; then
13019 cat >> confdefs.h <<\EOF
13020 #define const
13021 EOF
13022
13023 fi
13024
13025 echo $ac_n "checking for inline""... $ac_c" 1>&6
13026 echo "configure:13027: checking for inline" >&5
13027 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
13028 echo $ac_n "(cached) $ac_c" 1>&6
13029 else
13030 ac_cv_c_inline=no
13031 for ac_kw in inline __inline__ __inline; do
13032 cat > conftest.$ac_ext <<EOF
13033 #line 13034 "configure"
13034 #include "confdefs.h"
13035
13036 int main() {
13037 } $ac_kw foo() {
13038 ; return 0; }
13039 EOF
13040 if { (eval echo configure:13041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13041 rm -rf conftest*
13042 ac_cv_c_inline=$ac_kw; break
13043 else
13044 echo "configure: failed program was:" >&5
13045 cat conftest.$ac_ext >&5
13046 fi
13047 rm -f conftest*
13048 done
13049
13050 fi
13051
13052 echo "$ac_t""$ac_cv_c_inline" 1>&6
13053 case "$ac_cv_c_inline" in
13054 inline | yes) ;;
13055 no) cat >> confdefs.h <<\EOF
13056 #define inline
13057 EOF
13058 ;;
13059 *) cat >> confdefs.h <<EOF
13060 #define inline $ac_cv_c_inline
13061 EOF
13062 ;;
13063 esac
13064
13065
13066 echo $ac_n "checking size of char""... $ac_c" 1>&6
13067 echo "configure:13068: checking size of char" >&5
13068 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
13069 echo $ac_n "(cached) $ac_c" 1>&6
13070 else
13071 if test "$cross_compiling" = yes; then
13072 ac_cv_sizeof_char=1
13073 else
13074 cat > conftest.$ac_ext <<EOF
13075 #line 13076 "configure"
13076 #include "confdefs.h"
13077 #include <stdio.h>
13078 #include <sys/types.h>
13079 main()
13080 {
13081 FILE *f=fopen("conftestval", "w");
13082 if (!f) exit(1);
13083 fprintf(f, "%d\n", sizeof(char));
13084 exit(0);
13085 }
13086 EOF
13087 if { (eval echo configure:13088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13088 then
13089 ac_cv_sizeof_char=`cat conftestval`
13090 else
13091 echo "configure: failed program was:" >&5
13092 cat conftest.$ac_ext >&5
13093 rm -fr conftest*
13094 ac_cv_sizeof_char=0
13095 fi
13096 rm -fr conftest*
13097 fi
13098
13099 fi
13100 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
13101 cat >> confdefs.h <<EOF
13102 #define SIZEOF_CHAR $ac_cv_sizeof_char
13103 EOF
13104
13105
13106 echo $ac_n "checking size of short""... $ac_c" 1>&6
13107 echo "configure:13108: checking size of short" >&5
13108 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
13109 echo $ac_n "(cached) $ac_c" 1>&6
13110 else
13111 if test "$cross_compiling" = yes; then
13112 ac_cv_sizeof_short=2
13113 else
13114 cat > conftest.$ac_ext <<EOF
13115 #line 13116 "configure"
13116 #include "confdefs.h"
13117 #include <stdio.h>
13118 #include <sys/types.h>
13119 main()
13120 {
13121 FILE *f=fopen("conftestval", "w");
13122 if (!f) exit(1);
13123 fprintf(f, "%d\n", sizeof(short));
13124 exit(0);
13125 }
13126 EOF
13127 if { (eval echo configure:13128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13128 then
13129 ac_cv_sizeof_short=`cat conftestval`
13130 else
13131 echo "configure: failed program was:" >&5
13132 cat conftest.$ac_ext >&5
13133 rm -fr conftest*
13134 ac_cv_sizeof_short=0
13135 fi
13136 rm -fr conftest*
13137 fi
13138
13139 fi
13140 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
13141 cat >> confdefs.h <<EOF
13142 #define SIZEOF_SHORT $ac_cv_sizeof_short
13143 EOF
13144
13145
13146 echo $ac_n "checking size of int *""... $ac_c" 1>&6
13147 echo "configure:13148: checking size of int *" >&5
13148 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
13149 echo $ac_n "(cached) $ac_c" 1>&6
13150 else
13151 if test "$cross_compiling" = yes; then
13152 ac_cv_sizeof_int_p=4
13153 else
13154 cat > conftest.$ac_ext <<EOF
13155 #line 13156 "configure"
13156 #include "confdefs.h"
13157 #include <stdio.h>
13158 #include <sys/types.h>
13159 main()
13160 {
13161 FILE *f=fopen("conftestval", "w");
13162 if (!f) exit(1);
13163 fprintf(f, "%d\n", sizeof(int *));
13164 exit(0);
13165 }
13166 EOF
13167 if { (eval echo configure:13168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13168 then
13169 ac_cv_sizeof_int_p=`cat conftestval`
13170 else
13171 echo "configure: failed program was:" >&5
13172 cat conftest.$ac_ext >&5
13173 rm -fr conftest*
13174 ac_cv_sizeof_int_p=0
13175 fi
13176 rm -fr conftest*
13177 fi
13178
13179 fi
13180 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
13181 cat >> confdefs.h <<EOF
13182 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
13183 EOF
13184
13185
13186 echo $ac_n "checking size of int""... $ac_c" 1>&6
13187 echo "configure:13188: checking size of int" >&5
13188 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
13189 echo $ac_n "(cached) $ac_c" 1>&6
13190 else
13191 if test "$cross_compiling" = yes; then
13192 ac_cv_sizeof_int=4
13193 else
13194 cat > conftest.$ac_ext <<EOF
13195 #line 13196 "configure"
13196 #include "confdefs.h"
13197 #include <stdio.h>
13198 #include <sys/types.h>
13199 main()
13200 {
13201 FILE *f=fopen("conftestval", "w");
13202 if (!f) exit(1);
13203 fprintf(f, "%d\n", sizeof(int));
13204 exit(0);
13205 }
13206 EOF
13207 if { (eval echo configure:13208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13208 then
13209 ac_cv_sizeof_int=`cat conftestval`
13210 else
13211 echo "configure: failed program was:" >&5
13212 cat conftest.$ac_ext >&5
13213 rm -fr conftest*
13214 ac_cv_sizeof_int=0
13215 fi
13216 rm -fr conftest*
13217 fi
13218
13219 fi
13220 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
13221 cat >> confdefs.h <<EOF
13222 #define SIZEOF_INT $ac_cv_sizeof_int
13223 EOF
13224
13225
13226 echo $ac_n "checking size of long""... $ac_c" 1>&6
13227 echo "configure:13228: checking size of long" >&5
13228 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
13229 echo $ac_n "(cached) $ac_c" 1>&6
13230 else
13231 if test "$cross_compiling" = yes; then
13232 ac_cv_sizeof_long=4
13233 else
13234 cat > conftest.$ac_ext <<EOF
13235 #line 13236 "configure"
13236 #include "confdefs.h"
13237 #include <stdio.h>
13238 #include <sys/types.h>
13239 main()
13240 {
13241 FILE *f=fopen("conftestval", "w");
13242 if (!f) exit(1);
13243 fprintf(f, "%d\n", sizeof(long));
13244 exit(0);
13245 }
13246 EOF
13247 if { (eval echo configure:13248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13248 then
13249 ac_cv_sizeof_long=`cat conftestval`
13250 else
13251 echo "configure: failed program was:" >&5
13252 cat conftest.$ac_ext >&5
13253 rm -fr conftest*
13254 ac_cv_sizeof_long=0
13255 fi
13256 rm -fr conftest*
13257 fi
13258
13259 fi
13260 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
13261 cat >> confdefs.h <<EOF
13262 #define SIZEOF_LONG $ac_cv_sizeof_long
13263 EOF
13264
13265
13266 echo $ac_n "checking size of long long""... $ac_c" 1>&6
13267 echo "configure:13268: checking size of long long" >&5
13268 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
13269 echo $ac_n "(cached) $ac_c" 1>&6
13270 else
13271 if test "$cross_compiling" = yes; then
13272 ac_cv_sizeof_long_long=0
13273 else
13274 cat > conftest.$ac_ext <<EOF
13275 #line 13276 "configure"
13276 #include "confdefs.h"
13277 #include <stdio.h>
13278 #include <sys/types.h>
13279 main()
13280 {
13281 FILE *f=fopen("conftestval", "w");
13282 if (!f) exit(1);
13283 fprintf(f, "%d\n", sizeof(long long));
13284 exit(0);
13285 }
13286 EOF
13287 if { (eval echo configure:13288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13288 then
13289 ac_cv_sizeof_long_long=`cat conftestval`
13290 else
13291 echo "configure: failed program was:" >&5
13292 cat conftest.$ac_ext >&5
13293 rm -fr conftest*
13294 ac_cv_sizeof_long_long=0
13295 fi
13296 rm -fr conftest*
13297 fi
13298
13299 fi
13300 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
13301 cat >> confdefs.h <<EOF
13302 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13303 EOF
13304
13305
13306
13307 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
13308 echo "configure:13309: checking size of wchar_t" >&5
13309 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
13310 echo $ac_n "(cached) $ac_c" 1>&6
13311 else
13312
13313 if test "$cross_compiling" = yes; then
13314 wx_cv_sizeof_wchar_t=4
13315
13316 else
13317 cat > conftest.$ac_ext <<EOF
13318 #line 13319 "configure"
13319 #include "confdefs.h"
13320
13321 #ifdef HAVE_WCHAR_H
13322 # ifdef __CYGWIN__
13323 # include <stddef.h>
13324 # endif
13325 # include <wchar.h>
13326 #endif
13327 #ifdef HAVE_STDLIB_H
13328 # include <stdlib.h>
13329 #endif
13330 #include <stdio.h>
13331 int main()
13332 {
13333 FILE *f=fopen("conftestval", "w");
13334 if (!f) exit(1);
13335 fprintf(f, "%i", sizeof(wchar_t));
13336 exit(0);
13337 }
13338
13339 EOF
13340 if { (eval echo configure:13341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13341 then
13342 wx_cv_sizeof_wchar_t=`cat conftestval`
13343 else
13344 echo "configure: failed program was:" >&5
13345 cat conftest.$ac_ext >&5
13346 rm -fr conftest*
13347 wx_cv_sizeof_wchar_t=0
13348 fi
13349 rm -fr conftest*
13350 fi
13351
13352
13353 fi
13354
13355 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
13356
13357 cat >> confdefs.h <<EOF
13358 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
13359 EOF
13360
13361
13362 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
13363 echo "configure:13364: checking whether byte ordering is bigendian" >&5
13364 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
13365 echo $ac_n "(cached) $ac_c" 1>&6
13366 else
13367 ac_cv_c_bigendian=unknown
13368 # See if sys/param.h defines the BYTE_ORDER macro.
13369 cat > conftest.$ac_ext <<EOF
13370 #line 13371 "configure"
13371 #include "confdefs.h"
13372 #include <sys/types.h>
13373 #include <sys/param.h>
13374 int main() {
13375
13376 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13377 bogus endian macros
13378 #endif
13379 ; return 0; }
13380 EOF
13381 if { (eval echo configure:13382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13382 rm -rf conftest*
13383 # It does; now see whether it defined to BIG_ENDIAN or not.
13384 cat > conftest.$ac_ext <<EOF
13385 #line 13386 "configure"
13386 #include "confdefs.h"
13387 #include <sys/types.h>
13388 #include <sys/param.h>
13389 int main() {
13390
13391 #if BYTE_ORDER != BIG_ENDIAN
13392 not big endian
13393 #endif
13394 ; return 0; }
13395 EOF
13396 if { (eval echo configure:13397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13397 rm -rf conftest*
13398 ac_cv_c_bigendian=yes
13399 else
13400 echo "configure: failed program was:" >&5
13401 cat conftest.$ac_ext >&5
13402 rm -rf conftest*
13403 ac_cv_c_bigendian=no
13404 fi
13405 rm -f conftest*
13406 else
13407 echo "configure: failed program was:" >&5
13408 cat conftest.$ac_ext >&5
13409 fi
13410 rm -f conftest*
13411 if test $ac_cv_c_bigendian = unknown; then
13412 if test "$cross_compiling" = yes; then
13413 ac_cv_c_bigendian=unknown
13414 else
13415 cat > conftest.$ac_ext <<EOF
13416 #line 13417 "configure"
13417 #include "confdefs.h"
13418 main () {
13419 /* Are we little or big endian? From Harbison&Steele. */
13420 union
13421 {
13422 long l;
13423 char c[sizeof (long)];
13424 } u;
13425 u.l = 1;
13426 exit (u.c[sizeof (long) - 1] == 1);
13427 }
13428 EOF
13429 if { (eval echo configure:13430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13430 then
13431 ac_cv_c_bigendian=no
13432 else
13433 echo "configure: failed program was:" >&5
13434 cat conftest.$ac_ext >&5
13435 rm -fr conftest*
13436 ac_cv_c_bigendian=yes
13437 fi
13438 rm -fr conftest*
13439 fi
13440
13441 fi
13442 fi
13443
13444 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
13445 if test $ac_cv_c_bigendian = unknown; then
13446 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
13447 fi
13448 if test $ac_cv_c_bigendian = yes; then
13449 cat >> confdefs.h <<\EOF
13450 #define WORDS_BIGENDIAN 1
13451 EOF
13452
13453 fi
13454
13455
13456 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
13457 echo "configure:13458: checking how to run the C++ preprocessor" >&5
13458 if test -z "$CXXCPP"; then
13459 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
13460 echo $ac_n "(cached) $ac_c" 1>&6
13461 else
13462 ac_ext=C
13463 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13464 ac_cpp='$CXXCPP $CPPFLAGS'
13465 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13466 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13467 cross_compiling=$ac_cv_prog_cxx_cross
13468 CXXCPP="${CXX-g++} -E"
13469 cat > conftest.$ac_ext <<EOF
13470 #line 13471 "configure"
13471 #include "confdefs.h"
13472 #include <stdlib.h>
13473 EOF
13474 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13475 { (eval echo configure:13476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13476 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13477 if test -z "$ac_err"; then
13478 :
13479 else
13480 echo "$ac_err" >&5
13481 echo "configure: failed program was:" >&5
13482 cat conftest.$ac_ext >&5
13483 rm -rf conftest*
13484 CXXCPP=/lib/cpp
13485 fi
13486 rm -f conftest*
13487 ac_cv_prog_CXXCPP="$CXXCPP"
13488 ac_ext=C
13489 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13490 ac_cpp='$CXXCPP $CPPFLAGS'
13491 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13492 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13493 cross_compiling=$ac_cv_prog_cxx_cross
13494 fi
13495 fi
13496 CXXCPP="$ac_cv_prog_CXXCPP"
13497 echo "$ac_t""$CXXCPP" 1>&6
13498
13499
13500 if test "$cross_compiling" = "yes"; then
13501 cat >> confdefs.h <<\EOF
13502 #define wxUSE_IOSTREAMH 1
13503 EOF
13504
13505 else
13506
13507 ac_ext=C
13508 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13509 ac_cpp='$CXXCPP $CPPFLAGS'
13510 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13511 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13512 cross_compiling=$ac_cv_prog_cxx_cross
13513
13514
13515 for ac_hdr in iostream
13516 do
13517 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13518 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13519 echo "configure:13520: checking for $ac_hdr" >&5
13520 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13521 echo $ac_n "(cached) $ac_c" 1>&6
13522 else
13523 cat > conftest.$ac_ext <<EOF
13524 #line 13525 "configure"
13525 #include "confdefs.h"
13526 #include <$ac_hdr>
13527 EOF
13528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13529 { (eval echo configure:13530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13531 if test -z "$ac_err"; then
13532 rm -rf conftest*
13533 eval "ac_cv_header_$ac_safe=yes"
13534 else
13535 echo "$ac_err" >&5
13536 echo "configure: failed program was:" >&5
13537 cat conftest.$ac_ext >&5
13538 rm -rf conftest*
13539 eval "ac_cv_header_$ac_safe=no"
13540 fi
13541 rm -f conftest*
13542 fi
13543 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13544 echo "$ac_t""yes" 1>&6
13545 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13546 cat >> confdefs.h <<EOF
13547 #define $ac_tr_hdr 1
13548 EOF
13549
13550 else
13551 echo "$ac_t""no" 1>&6
13552 fi
13553 done
13554
13555
13556 if test "$ac_cv_header_iostream" = "yes" ; then
13557 :
13558 else
13559 cat >> confdefs.h <<\EOF
13560 #define wxUSE_IOSTREAMH 1
13561 EOF
13562
13563 fi
13564
13565 ac_ext=c
13566 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13567 ac_cpp='$CPP $CPPFLAGS'
13568 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13569 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13570 cross_compiling=$ac_cv_prog_cc_cross
13571
13572 fi
13573
13574
13575
13576 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
13577 echo "configure:13578: checking if C++ compiler supports bool" >&5
13578 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
13579 echo $ac_n "(cached) $ac_c" 1>&6
13580 else
13581
13582
13583 ac_ext=C
13584 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13585 ac_cpp='$CXXCPP $CPPFLAGS'
13586 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13587 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13588 cross_compiling=$ac_cv_prog_cxx_cross
13589
13590
13591 cat > conftest.$ac_ext <<EOF
13592 #line 13593 "configure"
13593 #include "confdefs.h"
13594
13595
13596 int main() {
13597
13598 bool b = true;
13599
13600 return 0;
13601
13602 ; return 0; }
13603 EOF
13604 if { (eval echo configure:13605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13605 rm -rf conftest*
13606
13607 wx_cv_cpp_bool=yes
13608
13609 else
13610 echo "configure: failed program was:" >&5
13611 cat conftest.$ac_ext >&5
13612 rm -rf conftest*
13613
13614 wx_cv_cpp_bool=no
13615
13616
13617 fi
13618 rm -f conftest*
13619
13620 ac_ext=c
13621 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13622 ac_cpp='$CPP $CPPFLAGS'
13623 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13624 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13625 cross_compiling=$ac_cv_prog_cc_cross
13626
13627
13628 fi
13629
13630 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
13631
13632 if test "$wx_cv_cpp_bool" = "yes"; then
13633 cat >> confdefs.h <<\EOF
13634 #define HAVE_BOOL 1
13635 EOF
13636
13637 fi
13638
13639
13640
13641 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
13642 echo "configure:13643: checking for wcslen in -lc" >&5
13643 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
13644 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13645 echo $ac_n "(cached) $ac_c" 1>&6
13646 else
13647 ac_save_LIBS="$LIBS"
13648 LIBS="-lc $LIBS"
13649 cat > conftest.$ac_ext <<EOF
13650 #line 13651 "configure"
13651 #include "confdefs.h"
13652 /* Override any gcc2 internal prototype to avoid an error. */
13653 /* We use char because int might match the return type of a gcc2
13654 builtin and then its argument prototype would still apply. */
13655 char wcslen();
13656
13657 int main() {
13658 wcslen()
13659 ; return 0; }
13660 EOF
13661 if { (eval echo configure:13662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13662 rm -rf conftest*
13663 eval "ac_cv_lib_$ac_lib_var=yes"
13664 else
13665 echo "configure: failed program was:" >&5
13666 cat conftest.$ac_ext >&5
13667 rm -rf conftest*
13668 eval "ac_cv_lib_$ac_lib_var=no"
13669 fi
13670 rm -f conftest*
13671 LIBS="$ac_save_LIBS"
13672
13673 fi
13674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13675 echo "$ac_t""yes" 1>&6
13676
13677 cat >> confdefs.h <<\EOF
13678 #define HAVE_WCSLEN 1
13679 EOF
13680
13681 WCHAR_LINK=
13682
13683 else
13684 echo "$ac_t""no" 1>&6
13685
13686 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
13687 echo "configure:13688: checking for wcslen in -lw" >&5
13688 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
13689 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13690 echo $ac_n "(cached) $ac_c" 1>&6
13691 else
13692 ac_save_LIBS="$LIBS"
13693 LIBS="-lw $LIBS"
13694 cat > conftest.$ac_ext <<EOF
13695 #line 13696 "configure"
13696 #include "confdefs.h"
13697 /* Override any gcc2 internal prototype to avoid an error. */
13698 /* We use char because int might match the return type of a gcc2
13699 builtin and then its argument prototype would still apply. */
13700 char wcslen();
13701
13702 int main() {
13703 wcslen()
13704 ; return 0; }
13705 EOF
13706 if { (eval echo configure:13707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13707 rm -rf conftest*
13708 eval "ac_cv_lib_$ac_lib_var=yes"
13709 else
13710 echo "configure: failed program was:" >&5
13711 cat conftest.$ac_ext >&5
13712 rm -rf conftest*
13713 eval "ac_cv_lib_$ac_lib_var=no"
13714 fi
13715 rm -f conftest*
13716 LIBS="$ac_save_LIBS"
13717
13718 fi
13719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13720 echo "$ac_t""yes" 1>&6
13721
13722 cat >> confdefs.h <<\EOF
13723 #define HAVE_WCSLEN 1
13724 EOF
13725
13726 WCHAR_LINK=" -lw"
13727
13728 else
13729 echo "$ac_t""no" 1>&6
13730
13731 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
13732 echo "configure:13733: checking for wcslen in -lmsvcrt" >&5
13733 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
13734 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13735 echo $ac_n "(cached) $ac_c" 1>&6
13736 else
13737 ac_save_LIBS="$LIBS"
13738 LIBS="-lmsvcrt $LIBS"
13739 cat > conftest.$ac_ext <<EOF
13740 #line 13741 "configure"
13741 #include "confdefs.h"
13742 /* Override any gcc2 internal prototype to avoid an error. */
13743 /* We use char because int might match the return type of a gcc2
13744 builtin and then its argument prototype would still apply. */
13745 char wcslen();
13746
13747 int main() {
13748 wcslen()
13749 ; return 0; }
13750 EOF
13751 if { (eval echo configure:13752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13752 rm -rf conftest*
13753 eval "ac_cv_lib_$ac_lib_var=yes"
13754 else
13755 echo "configure: failed program was:" >&5
13756 cat conftest.$ac_ext >&5
13757 rm -rf conftest*
13758 eval "ac_cv_lib_$ac_lib_var=no"
13759 fi
13760 rm -f conftest*
13761 LIBS="$ac_save_LIBS"
13762
13763 fi
13764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13765 echo "$ac_t""yes" 1>&6
13766
13767 cat >> confdefs.h <<\EOF
13768 #define HAVE_WCSLEN 1
13769 EOF
13770
13771 WCHAR_LINK=
13772
13773 else
13774 echo "$ac_t""no" 1>&6
13775 fi
13776
13777
13778 fi
13779
13780
13781 fi
13782
13783
13784 for ac_func in wcsrtombs
13785 do
13786 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13787 echo "configure:13788: checking for $ac_func" >&5
13788 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13789 echo $ac_n "(cached) $ac_c" 1>&6
13790 else
13791 cat > conftest.$ac_ext <<EOF
13792 #line 13793 "configure"
13793 #include "confdefs.h"
13794 /* System header to define __stub macros and hopefully few prototypes,
13795 which can conflict with char $ac_func(); below. */
13796 #include <assert.h>
13797 /* Override any gcc2 internal prototype to avoid an error. */
13798 /* We use char because int might match the return type of a gcc2
13799 builtin and then its argument prototype would still apply. */
13800 char $ac_func();
13801
13802 int main() {
13803
13804 /* The GNU C library defines this for functions which it implements
13805 to always fail with ENOSYS. Some functions are actually named
13806 something starting with __ and the normal name is an alias. */
13807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13808 choke me
13809 #else
13810 $ac_func();
13811 #endif
13812
13813 ; return 0; }
13814 EOF
13815 if { (eval echo configure:13816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13816 rm -rf conftest*
13817 eval "ac_cv_func_$ac_func=yes"
13818 else
13819 echo "configure: failed program was:" >&5
13820 cat conftest.$ac_ext >&5
13821 rm -rf conftest*
13822 eval "ac_cv_func_$ac_func=no"
13823 fi
13824 rm -f conftest*
13825 fi
13826
13827 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13828 echo "$ac_t""yes" 1>&6
13829 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13830 cat >> confdefs.h <<EOF
13831 #define $ac_tr_func 1
13832 EOF
13833
13834 else
13835 echo "$ac_t""no" 1>&6
13836 fi
13837 done
13838
13839
13840 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
13841 echo "configure:13842: checking for vprintf" >&5
13842 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
13843 echo $ac_n "(cached) $ac_c" 1>&6
13844 else
13845 cat > conftest.$ac_ext <<EOF
13846 #line 13847 "configure"
13847 #include "confdefs.h"
13848 /* System header to define __stub macros and hopefully few prototypes,
13849 which can conflict with char vprintf(); below. */
13850 #include <assert.h>
13851 /* Override any gcc2 internal prototype to avoid an error. */
13852 /* We use char because int might match the return type of a gcc2
13853 builtin and then its argument prototype would still apply. */
13854 char vprintf();
13855
13856 int main() {
13857
13858 /* The GNU C library defines this for functions which it implements
13859 to always fail with ENOSYS. Some functions are actually named
13860 something starting with __ and the normal name is an alias. */
13861 #if defined (__stub_vprintf) || defined (__stub___vprintf)
13862 choke me
13863 #else
13864 vprintf();
13865 #endif
13866
13867 ; return 0; }
13868 EOF
13869 if { (eval echo configure:13870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13870 rm -rf conftest*
13871 eval "ac_cv_func_vprintf=yes"
13872 else
13873 echo "configure: failed program was:" >&5
13874 cat conftest.$ac_ext >&5
13875 rm -rf conftest*
13876 eval "ac_cv_func_vprintf=no"
13877 fi
13878 rm -f conftest*
13879 fi
13880
13881 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
13882 echo "$ac_t""yes" 1>&6
13883 cat >> confdefs.h <<\EOF
13884 #define HAVE_VPRINTF 1
13885 EOF
13886
13887 else
13888 echo "$ac_t""no" 1>&6
13889 fi
13890
13891 if test "$ac_cv_func_vprintf" != yes; then
13892 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
13893 echo "configure:13894: checking for _doprnt" >&5
13894 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
13895 echo $ac_n "(cached) $ac_c" 1>&6
13896 else
13897 cat > conftest.$ac_ext <<EOF
13898 #line 13899 "configure"
13899 #include "confdefs.h"
13900 /* System header to define __stub macros and hopefully few prototypes,
13901 which can conflict with char _doprnt(); below. */
13902 #include <assert.h>
13903 /* Override any gcc2 internal prototype to avoid an error. */
13904 /* We use char because int might match the return type of a gcc2
13905 builtin and then its argument prototype would still apply. */
13906 char _doprnt();
13907
13908 int main() {
13909
13910 /* The GNU C library defines this for functions which it implements
13911 to always fail with ENOSYS. Some functions are actually named
13912 something starting with __ and the normal name is an alias. */
13913 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13914 choke me
13915 #else
13916 _doprnt();
13917 #endif
13918
13919 ; return 0; }
13920 EOF
13921 if { (eval echo configure:13922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13922 rm -rf conftest*
13923 eval "ac_cv_func__doprnt=yes"
13924 else
13925 echo "configure: failed program was:" >&5
13926 cat conftest.$ac_ext >&5
13927 rm -rf conftest*
13928 eval "ac_cv_func__doprnt=no"
13929 fi
13930 rm -f conftest*
13931 fi
13932
13933 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
13934 echo "$ac_t""yes" 1>&6
13935 cat >> confdefs.h <<\EOF
13936 #define HAVE_DOPRNT 1
13937 EOF
13938
13939 else
13940 echo "$ac_t""no" 1>&6
13941 fi
13942
13943 fi
13944
13945
13946
13947
13948
13949
13950 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
13951 echo "configure:13952: checking for vsnprintf" >&5
13952 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
13953 echo $ac_n "(cached) $ac_c" 1>&6
13954 else
13955
13956 cat > conftest.$ac_ext <<EOF
13957 #line 13958 "configure"
13958 #include "confdefs.h"
13959
13960 #include <stdio.h>
13961 #include <stdarg.h>
13962
13963 int main() {
13964
13965 int wx_test_vsnprintf(const char *, ...);
13966
13967 wx_test_vsnprintf("%s");
13968 return 0;
13969 }
13970
13971 int wx_test_vsnprintf(const char *fmt, ...)
13972 {
13973 char *s;
13974
13975 va_list argp;
13976 va_start(argp, fmt);
13977 vsnprintf(s, 42, fmt, argp);
13978 va_end(argp);
13979
13980 ; return 0; }
13981 EOF
13982 if { (eval echo configure:13983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13983 rm -rf conftest*
13984
13985 wx_cv_func_vsnprintf=yes
13986
13987 else
13988 echo "configure: failed program was:" >&5
13989 cat conftest.$ac_ext >&5
13990 rm -rf conftest*
13991
13992 cat > conftest.$ac_ext <<EOF
13993 #line 13994 "configure"
13994 #include "confdefs.h"
13995
13996 #include <stdio.h>
13997 #include <stdarg.h>
13998
13999 int main() {
14000
14001 int wx_test_vsnprintf(const char *, ...);
14002
14003 wx_test_vsnprintf("%s");
14004 return 0;
14005 }
14006
14007 int wx_test_vsnprintf(const char *fmt, ...)
14008 {
14009 char *s;
14010
14011 va_list argp;
14012 va_start(argp, fmt);
14013 _vsnprintf(s, 42, fmt, argp);
14014 va_end(argp);
14015
14016 ; return 0; }
14017 EOF
14018 if { (eval echo configure:14019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14019 rm -rf conftest*
14020
14021 wx_cv_func_vsnprintf=yes
14022
14023 else
14024 echo "configure: failed program was:" >&5
14025 cat conftest.$ac_ext >&5
14026 rm -rf conftest*
14027
14028 wx_cv_func_vsnprintf=no
14029
14030 fi
14031 rm -f conftest*
14032
14033 fi
14034 rm -f conftest*
14035
14036 fi
14037
14038 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
14039
14040 if test "$wx_cv_func_vsnprintf" = yes; then
14041 cat >> confdefs.h <<\EOF
14042 #define HAVE_VSNPRINTF 1
14043 EOF
14044
14045 else
14046 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
14047 fi
14048
14049 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
14050 echo "configure:14051: checking for vsscanf" >&5
14051 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
14052 echo $ac_n "(cached) $ac_c" 1>&6
14053 else
14054
14055 cat > conftest.$ac_ext <<EOF
14056 #line 14057 "configure"
14057 #include "confdefs.h"
14058
14059 #include <stdio.h>
14060 #include <stdarg.h>
14061
14062 int main() {
14063
14064 int wx_test_vsscanf(const char *, ...);
14065
14066 wx_test_vsscanf("%d");
14067 return 0;
14068 }
14069
14070 int wx_test_vsscanf(const char *fmt, ...)
14071 {
14072 va_list argp;
14073 va_start(argp, fmt);
14074 vsscanf("42", fmt, argp);
14075 va_end(argp);
14076
14077 ; return 0; }
14078 EOF
14079 if { (eval echo configure:14080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14080 rm -rf conftest*
14081
14082 wx_cv_func_vsscanf=yes
14083
14084 else
14085 echo "configure: failed program was:" >&5
14086 cat conftest.$ac_ext >&5
14087 rm -rf conftest*
14088
14089 wx_cv_func_vsscanf=no
14090
14091 fi
14092 rm -f conftest*
14093
14094 fi
14095
14096 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
14097
14098 if test "$wx_cv_func_vsscanf" = yes; then
14099 cat >> confdefs.h <<\EOF
14100 #define HAVE_VSSCANF 1
14101 EOF
14102
14103 fi
14104
14105 if test "$TOOLKIT" != "MSW"; then
14106
14107
14108
14109 ac_ext=C
14110 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14111 ac_cpp='$CXXCPP $CPPFLAGS'
14112 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14113 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14114 cross_compiling=$ac_cv_prog_cxx_cross
14115
14116 echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
14117 echo "configure:14118: checking if iconv() takes char**" >&5
14118 if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
14119 echo $ac_n "(cached) $ac_c" 1>&6
14120 else
14121
14122 cat > conftest.$ac_ext <<EOF
14123 #line 14124 "configure"
14124 #include "confdefs.h"
14125 #include <iconv.h>
14126 int main() {
14127
14128 char **inbuf, **outbuf;
14129 iconv_t cd;
14130 size_t insz, outsz;
14131 iconv(cd, inbuf, &insz, outbuf, &outsz);
14132
14133 ; return 0; }
14134 EOF
14135 if { (eval echo configure:14136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14136 rm -rf conftest*
14137 wx_cv_iconv_takes_char=yes
14138 else
14139 echo "configure: failed program was:" >&5
14140 cat conftest.$ac_ext >&5
14141 rm -rf conftest*
14142 wx_cv_iconv_takes_char=no
14143 fi
14144 rm -f conftest*
14145
14146 fi
14147
14148 echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
14149 ac_ext=c
14150 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14151 ac_cpp='$CPP $CPPFLAGS'
14152 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14153 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14154 cross_compiling=$ac_cv_prog_cc_cross
14155
14156 if test "$wx_cv_iconv_takes_char" = yes ; then
14157 cat >> confdefs.h <<\EOF
14158 #define WX_ICONV_TAKES_CHAR 1
14159 EOF
14160
14161 fi
14162
14163
14164 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
14165 for ac_func in sigaction
14166 do
14167 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14168 echo "configure:14169: checking for $ac_func" >&5
14169 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14170 echo $ac_n "(cached) $ac_c" 1>&6
14171 else
14172 cat > conftest.$ac_ext <<EOF
14173 #line 14174 "configure"
14174 #include "confdefs.h"
14175 /* System header to define __stub macros and hopefully few prototypes,
14176 which can conflict with char $ac_func(); below. */
14177 #include <assert.h>
14178 /* Override any gcc2 internal prototype to avoid an error. */
14179 /* We use char because int might match the return type of a gcc2
14180 builtin and then its argument prototype would still apply. */
14181 char $ac_func();
14182
14183 int main() {
14184
14185 /* The GNU C library defines this for functions which it implements
14186 to always fail with ENOSYS. Some functions are actually named
14187 something starting with __ and the normal name is an alias. */
14188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14189 choke me
14190 #else
14191 $ac_func();
14192 #endif
14193
14194 ; return 0; }
14195 EOF
14196 if { (eval echo configure:14197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14197 rm -rf conftest*
14198 eval "ac_cv_func_$ac_func=yes"
14199 else
14200 echo "configure: failed program was:" >&5
14201 cat conftest.$ac_ext >&5
14202 rm -rf conftest*
14203 eval "ac_cv_func_$ac_func=no"
14204 fi
14205 rm -f conftest*
14206 fi
14207
14208 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14209 echo "$ac_t""yes" 1>&6
14210 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14211 cat >> confdefs.h <<EOF
14212 #define $ac_tr_func 1
14213 EOF
14214
14215 else
14216 echo "$ac_t""no" 1>&6
14217 fi
14218 done
14219
14220
14221 if test "$ac_cv_func_sigaction" = "no"; then
14222 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
14223 wxUSE_ON_FATAL_EXCEPTION=no
14224 fi
14225
14226 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
14227
14228 ac_ext=C
14229 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14230 ac_cpp='$CXXCPP $CPPFLAGS'
14231 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14232 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14233 cross_compiling=$ac_cv_prog_cxx_cross
14234
14235
14236 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
14237 echo "configure:14238: checking for sa_handler type" >&5
14238 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
14239 echo $ac_n "(cached) $ac_c" 1>&6
14240 else
14241
14242 cat > conftest.$ac_ext <<EOF
14243 #line 14244 "configure"
14244 #include "confdefs.h"
14245 #include <signal.h>
14246 int main() {
14247
14248 extern void testSigHandler(int);
14249
14250 struct sigaction sa;
14251 sa.sa_handler = testSigHandler;
14252
14253 ; return 0; }
14254 EOF
14255 if { (eval echo configure:14256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14256 rm -rf conftest*
14257
14258 wx_cv_type_sa_handler=int
14259
14260 else
14261 echo "configure: failed program was:" >&5
14262 cat conftest.$ac_ext >&5
14263 rm -rf conftest*
14264
14265 wx_cv_type_sa_handler=void
14266
14267 fi
14268 rm -f conftest*
14269
14270 fi
14271
14272 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
14273
14274 ac_ext=c
14275 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14276 ac_cpp='$CPP $CPPFLAGS'
14277 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14278 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14279 cross_compiling=$ac_cv_prog_cc_cross
14280
14281
14282 cat >> confdefs.h <<EOF
14283 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
14284 EOF
14285
14286 fi
14287 fi
14288
14289 for ac_func in vfork
14290 do
14291 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14292 echo "configure:14293: checking for $ac_func" >&5
14293 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14294 echo $ac_n "(cached) $ac_c" 1>&6
14295 else
14296 cat > conftest.$ac_ext <<EOF
14297 #line 14298 "configure"
14298 #include "confdefs.h"
14299 /* System header to define __stub macros and hopefully few prototypes,
14300 which can conflict with char $ac_func(); below. */
14301 #include <assert.h>
14302 /* Override any gcc2 internal prototype to avoid an error. */
14303 /* We use char because int might match the return type of a gcc2
14304 builtin and then its argument prototype would still apply. */
14305 char $ac_func();
14306
14307 int main() {
14308
14309 /* The GNU C library defines this for functions which it implements
14310 to always fail with ENOSYS. Some functions are actually named
14311 something starting with __ and the normal name is an alias. */
14312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14313 choke me
14314 #else
14315 $ac_func();
14316 #endif
14317
14318 ; return 0; }
14319 EOF
14320 if { (eval echo configure:14321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14321 rm -rf conftest*
14322 eval "ac_cv_func_$ac_func=yes"
14323 else
14324 echo "configure: failed program was:" >&5
14325 cat conftest.$ac_ext >&5
14326 rm -rf conftest*
14327 eval "ac_cv_func_$ac_func=no"
14328 fi
14329 rm -f conftest*
14330 fi
14331
14332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14333 echo "$ac_t""yes" 1>&6
14334 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14335 cat >> confdefs.h <<EOF
14336 #define $ac_tr_func 1
14337 EOF
14338
14339 else
14340 echo "$ac_t""no" 1>&6
14341 fi
14342 done
14343
14344
14345 echo $ac_n "checking for statfs""... $ac_c" 1>&6
14346 echo "configure:14347: checking for statfs" >&5
14347 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
14348 echo $ac_n "(cached) $ac_c" 1>&6
14349 else
14350 cat > conftest.$ac_ext <<EOF
14351 #line 14352 "configure"
14352 #include "confdefs.h"
14353
14354 #if defined(__BSD__)
14355 #include <sys/param.h>
14356 #include <sys/mount.h>
14357 #else
14358 #include <sys/vfs.h>
14359 #endif
14360
14361 int main() {
14362
14363 long l;
14364 struct statfs fs;
14365 statfs("/", &fs);
14366 l = fs.f_bsize;
14367 l += fs.f_blocks;
14368 l += fs.f_bavail;
14369
14370 ; return 0; }
14371 EOF
14372 if { (eval echo configure:14373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14373 rm -rf conftest*
14374
14375 wx_cv_func_statfs=yes
14376
14377 else
14378 echo "configure: failed program was:" >&5
14379 cat conftest.$ac_ext >&5
14380 rm -rf conftest*
14381
14382 wx_cv_func_statfs=no
14383
14384
14385 fi
14386 rm -f conftest*
14387
14388 fi
14389
14390 echo "$ac_t""$wx_cv_func_statfs" 1>&6
14391
14392 if test "$wx_cv_func_statfs" = "yes"; then
14393 cat >> confdefs.h <<\EOF
14394 #define HAVE_STATFS 1
14395 EOF
14396
14397 else
14398 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
14399 echo "configure:14400: checking for statvfs" >&5
14400 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
14401 echo $ac_n "(cached) $ac_c" 1>&6
14402 else
14403 cat > conftest.$ac_ext <<EOF
14404 #line 14405 "configure"
14405 #include "confdefs.h"
14406
14407 #include <sys/statvfs.h>
14408
14409 int main() {
14410
14411 long l;
14412 struct statvfs fs;
14413 statvfs("/", &fs);
14414 l = fs.f_bsize;
14415 l += fs.f_blocks;
14416 l += fs.f_bavail;
14417
14418 ; return 0; }
14419 EOF
14420 if { (eval echo configure:14421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14421 rm -rf conftest*
14422
14423 wx_cv_func_statvfs=yes
14424
14425 else
14426 echo "configure: failed program was:" >&5
14427 cat conftest.$ac_ext >&5
14428 rm -rf conftest*
14429
14430 wx_cv_func_statvfs=no
14431
14432
14433 fi
14434 rm -f conftest*
14435
14436 fi
14437
14438 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
14439
14440 if test "$wx_cv_func_statvfs" = "yes"; then
14441 cat >> confdefs.h <<\EOF
14442 #define HAVE_STATVFS 1
14443 EOF
14444
14445 else
14446 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
14447 fi
14448 fi
14449
14450 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
14451 for ac_func in fcntl flock
14452 do
14453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14454 echo "configure:14455: checking for $ac_func" >&5
14455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14456 echo $ac_n "(cached) $ac_c" 1>&6
14457 else
14458 cat > conftest.$ac_ext <<EOF
14459 #line 14460 "configure"
14460 #include "confdefs.h"
14461 /* System header to define __stub macros and hopefully few prototypes,
14462 which can conflict with char $ac_func(); below. */
14463 #include <assert.h>
14464 /* Override any gcc2 internal prototype to avoid an error. */
14465 /* We use char because int might match the return type of a gcc2
14466 builtin and then its argument prototype would still apply. */
14467 char $ac_func();
14468
14469 int main() {
14470
14471 /* The GNU C library defines this for functions which it implements
14472 to always fail with ENOSYS. Some functions are actually named
14473 something starting with __ and the normal name is an alias. */
14474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14475 choke me
14476 #else
14477 $ac_func();
14478 #endif
14479
14480 ; return 0; }
14481 EOF
14482 if { (eval echo configure:14483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14483 rm -rf conftest*
14484 eval "ac_cv_func_$ac_func=yes"
14485 else
14486 echo "configure: failed program was:" >&5
14487 cat conftest.$ac_ext >&5
14488 rm -rf conftest*
14489 eval "ac_cv_func_$ac_func=no"
14490 fi
14491 rm -f conftest*
14492 fi
14493
14494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14495 echo "$ac_t""yes" 1>&6
14496 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14497 cat >> confdefs.h <<EOF
14498 #define $ac_tr_func 1
14499 EOF
14500 break
14501 else
14502 echo "$ac_t""no" 1>&6
14503 fi
14504 done
14505
14506
14507 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
14508 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
14509 wxUSE_SNGLINST_CHECKER=no
14510 fi
14511 fi
14512
14513 for ac_func in timegm
14514 do
14515 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14516 echo "configure:14517: checking for $ac_func" >&5
14517 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14518 echo $ac_n "(cached) $ac_c" 1>&6
14519 else
14520 cat > conftest.$ac_ext <<EOF
14521 #line 14522 "configure"
14522 #include "confdefs.h"
14523 /* System header to define __stub macros and hopefully few prototypes,
14524 which can conflict with char $ac_func(); below. */
14525 #include <assert.h>
14526 /* Override any gcc2 internal prototype to avoid an error. */
14527 /* We use char because int might match the return type of a gcc2
14528 builtin and then its argument prototype would still apply. */
14529 char $ac_func();
14530
14531 int main() {
14532
14533 /* The GNU C library defines this for functions which it implements
14534 to always fail with ENOSYS. Some functions are actually named
14535 something starting with __ and the normal name is an alias. */
14536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14537 choke me
14538 #else
14539 $ac_func();
14540 #endif
14541
14542 ; return 0; }
14543 EOF
14544 if { (eval echo configure:14545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14545 rm -rf conftest*
14546 eval "ac_cv_func_$ac_func=yes"
14547 else
14548 echo "configure: failed program was:" >&5
14549 cat conftest.$ac_ext >&5
14550 rm -rf conftest*
14551 eval "ac_cv_func_$ac_func=no"
14552 fi
14553 rm -f conftest*
14554 fi
14555
14556 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14557 echo "$ac_t""yes" 1>&6
14558 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14559 cat >> confdefs.h <<EOF
14560 #define $ac_tr_func 1
14561 EOF
14562
14563 else
14564 echo "$ac_t""no" 1>&6
14565 fi
14566 done
14567
14568
14569 for ac_func in putenv setenv
14570 do
14571 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14572 echo "configure:14573: checking for $ac_func" >&5
14573 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14574 echo $ac_n "(cached) $ac_c" 1>&6
14575 else
14576 cat > conftest.$ac_ext <<EOF
14577 #line 14578 "configure"
14578 #include "confdefs.h"
14579 /* System header to define __stub macros and hopefully few prototypes,
14580 which can conflict with char $ac_func(); below. */
14581 #include <assert.h>
14582 /* Override any gcc2 internal prototype to avoid an error. */
14583 /* We use char because int might match the return type of a gcc2
14584 builtin and then its argument prototype would still apply. */
14585 char $ac_func();
14586
14587 int main() {
14588
14589 /* The GNU C library defines this for functions which it implements
14590 to always fail with ENOSYS. Some functions are actually named
14591 something starting with __ and the normal name is an alias. */
14592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14593 choke me
14594 #else
14595 $ac_func();
14596 #endif
14597
14598 ; return 0; }
14599 EOF
14600 if { (eval echo configure:14601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14601 rm -rf conftest*
14602 eval "ac_cv_func_$ac_func=yes"
14603 else
14604 echo "configure: failed program was:" >&5
14605 cat conftest.$ac_ext >&5
14606 rm -rf conftest*
14607 eval "ac_cv_func_$ac_func=no"
14608 fi
14609 rm -f conftest*
14610 fi
14611
14612 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14613 echo "$ac_t""yes" 1>&6
14614 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14615 cat >> confdefs.h <<EOF
14616 #define $ac_tr_func 1
14617 EOF
14618 break
14619 else
14620 echo "$ac_t""no" 1>&6
14621 fi
14622 done
14623
14624
14625 HAVE_SOME_SLEEP_FUNC=0
14626 if test "$USE_BEOS" = 1; then
14627 cat >> confdefs.h <<\EOF
14628 #define HAVE_SLEEP 1
14629 EOF
14630
14631 HAVE_SOME_SLEEP_FUNC=1
14632 fi
14633
14634 if test "$USE_DARWIN" = 1; then
14635 cat >> confdefs.h <<\EOF
14636 #define HAVE_USLEEP 1
14637 EOF
14638
14639 HAVE_SOME_SLEEP_FUNC=1
14640 fi
14641
14642 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
14643 POSIX4_LINK=
14644 for ac_func in nanosleep
14645 do
14646 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14647 echo "configure:14648: checking for $ac_func" >&5
14648 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14649 echo $ac_n "(cached) $ac_c" 1>&6
14650 else
14651 cat > conftest.$ac_ext <<EOF
14652 #line 14653 "configure"
14653 #include "confdefs.h"
14654 /* System header to define __stub macros and hopefully few prototypes,
14655 which can conflict with char $ac_func(); below. */
14656 #include <assert.h>
14657 /* Override any gcc2 internal prototype to avoid an error. */
14658 /* We use char because int might match the return type of a gcc2
14659 builtin and then its argument prototype would still apply. */
14660 char $ac_func();
14661
14662 int main() {
14663
14664 /* The GNU C library defines this for functions which it implements
14665 to always fail with ENOSYS. Some functions are actually named
14666 something starting with __ and the normal name is an alias. */
14667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14668 choke me
14669 #else
14670 $ac_func();
14671 #endif
14672
14673 ; return 0; }
14674 EOF
14675 if { (eval echo configure:14676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14676 rm -rf conftest*
14677 eval "ac_cv_func_$ac_func=yes"
14678 else
14679 echo "configure: failed program was:" >&5
14680 cat conftest.$ac_ext >&5
14681 rm -rf conftest*
14682 eval "ac_cv_func_$ac_func=no"
14683 fi
14684 rm -f conftest*
14685 fi
14686
14687 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14688 echo "$ac_t""yes" 1>&6
14689 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14690 cat >> confdefs.h <<EOF
14691 #define $ac_tr_func 1
14692 EOF
14693 cat >> confdefs.h <<\EOF
14694 #define HAVE_NANOSLEEP 1
14695 EOF
14696
14697 else
14698 echo "$ac_t""no" 1>&6
14699 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
14700 echo "configure:14701: checking for nanosleep in -lposix4" >&5
14701 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
14702 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14703 echo $ac_n "(cached) $ac_c" 1>&6
14704 else
14705 ac_save_LIBS="$LIBS"
14706 LIBS="-lposix4 $LIBS"
14707 cat > conftest.$ac_ext <<EOF
14708 #line 14709 "configure"
14709 #include "confdefs.h"
14710 /* Override any gcc2 internal prototype to avoid an error. */
14711 /* We use char because int might match the return type of a gcc2
14712 builtin and then its argument prototype would still apply. */
14713 char nanosleep();
14714
14715 int main() {
14716 nanosleep()
14717 ; return 0; }
14718 EOF
14719 if { (eval echo configure:14720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14720 rm -rf conftest*
14721 eval "ac_cv_lib_$ac_lib_var=yes"
14722 else
14723 echo "configure: failed program was:" >&5
14724 cat conftest.$ac_ext >&5
14725 rm -rf conftest*
14726 eval "ac_cv_lib_$ac_lib_var=no"
14727 fi
14728 rm -f conftest*
14729 LIBS="$ac_save_LIBS"
14730
14731 fi
14732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14733 echo "$ac_t""yes" 1>&6
14734
14735 cat >> confdefs.h <<\EOF
14736 #define HAVE_NANOSLEEP 1
14737 EOF
14738
14739 POSIX4_LINK=" -lposix4"
14740
14741 else
14742 echo "$ac_t""no" 1>&6
14743
14744 for ac_func in usleep
14745 do
14746 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14747 echo "configure:14748: checking for $ac_func" >&5
14748 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14749 echo $ac_n "(cached) $ac_c" 1>&6
14750 else
14751 cat > conftest.$ac_ext <<EOF
14752 #line 14753 "configure"
14753 #include "confdefs.h"
14754 /* System header to define __stub macros and hopefully few prototypes,
14755 which can conflict with char $ac_func(); below. */
14756 #include <assert.h>
14757 /* Override any gcc2 internal prototype to avoid an error. */
14758 /* We use char because int might match the return type of a gcc2
14759 builtin and then its argument prototype would still apply. */
14760 char $ac_func();
14761
14762 int main() {
14763
14764 /* The GNU C library defines this for functions which it implements
14765 to always fail with ENOSYS. Some functions are actually named
14766 something starting with __ and the normal name is an alias. */
14767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14768 choke me
14769 #else
14770 $ac_func();
14771 #endif
14772
14773 ; return 0; }
14774 EOF
14775 if { (eval echo configure:14776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14776 rm -rf conftest*
14777 eval "ac_cv_func_$ac_func=yes"
14778 else
14779 echo "configure: failed program was:" >&5
14780 cat conftest.$ac_ext >&5
14781 rm -rf conftest*
14782 eval "ac_cv_func_$ac_func=no"
14783 fi
14784 rm -f conftest*
14785 fi
14786
14787 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14788 echo "$ac_t""yes" 1>&6
14789 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14790 cat >> confdefs.h <<EOF
14791 #define $ac_tr_func 1
14792 EOF
14793 cat >> confdefs.h <<\EOF
14794 #define HAVE_USLEEP 1
14795 EOF
14796
14797 else
14798 echo "$ac_t""no" 1>&6
14799 echo "configure: warning: wxSleep() function will not work" 1>&2
14800
14801 fi
14802 done
14803
14804
14805
14806 fi
14807
14808
14809
14810 fi
14811 done
14812
14813 fi
14814
14815 for ac_func in uname gethostname
14816 do
14817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14818 echo "configure:14819: checking for $ac_func" >&5
14819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14820 echo $ac_n "(cached) $ac_c" 1>&6
14821 else
14822 cat > conftest.$ac_ext <<EOF
14823 #line 14824 "configure"
14824 #include "confdefs.h"
14825 /* System header to define __stub macros and hopefully few prototypes,
14826 which can conflict with char $ac_func(); below. */
14827 #include <assert.h>
14828 /* Override any gcc2 internal prototype to avoid an error. */
14829 /* We use char because int might match the return type of a gcc2
14830 builtin and then its argument prototype would still apply. */
14831 char $ac_func();
14832
14833 int main() {
14834
14835 /* The GNU C library defines this for functions which it implements
14836 to always fail with ENOSYS. Some functions are actually named
14837 something starting with __ and the normal name is an alias. */
14838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14839 choke me
14840 #else
14841 $ac_func();
14842 #endif
14843
14844 ; return 0; }
14845 EOF
14846 if { (eval echo configure:14847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14847 rm -rf conftest*
14848 eval "ac_cv_func_$ac_func=yes"
14849 else
14850 echo "configure: failed program was:" >&5
14851 cat conftest.$ac_ext >&5
14852 rm -rf conftest*
14853 eval "ac_cv_func_$ac_func=no"
14854 fi
14855 rm -f conftest*
14856 fi
14857
14858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14859 echo "$ac_t""yes" 1>&6
14860 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14861 cat >> confdefs.h <<EOF
14862 #define $ac_tr_func 1
14863 EOF
14864 break
14865 else
14866 echo "$ac_t""no" 1>&6
14867 fi
14868 done
14869
14870
14871
14872 ac_ext=C
14873 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14874 ac_cpp='$CXXCPP $CPPFLAGS'
14875 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14876 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14877 cross_compiling=$ac_cv_prog_cxx_cross
14878
14879
14880 for ac_func in strtok_r
14881 do
14882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14883 echo "configure:14884: checking for $ac_func" >&5
14884 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14885 echo $ac_n "(cached) $ac_c" 1>&6
14886 else
14887 cat > conftest.$ac_ext <<EOF
14888 #line 14889 "configure"
14889 #include "confdefs.h"
14890 /* System header to define __stub macros and hopefully few prototypes,
14891 which can conflict with char $ac_func(); below. */
14892 #include <assert.h>
14893 /* Override any gcc2 internal prototype to avoid an error. */
14894 #ifdef __cplusplus
14895 extern "C"
14896 #endif
14897 /* We use char because int might match the return type of a gcc2
14898 builtin and then its argument prototype would still apply. */
14899 char $ac_func();
14900
14901 int main() {
14902
14903 /* The GNU C library defines this for functions which it implements
14904 to always fail with ENOSYS. Some functions are actually named
14905 something starting with __ and the normal name is an alias. */
14906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14907 choke me
14908 #else
14909 $ac_func();
14910 #endif
14911
14912 ; return 0; }
14913 EOF
14914 if { (eval echo configure:14915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14915 rm -rf conftest*
14916 eval "ac_cv_func_$ac_func=yes"
14917 else
14918 echo "configure: failed program was:" >&5
14919 cat conftest.$ac_ext >&5
14920 rm -rf conftest*
14921 eval "ac_cv_func_$ac_func=no"
14922 fi
14923 rm -f conftest*
14924 fi
14925
14926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14927 echo "$ac_t""yes" 1>&6
14928 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14929 cat >> confdefs.h <<EOF
14930 #define $ac_tr_func 1
14931 EOF
14932
14933 else
14934 echo "$ac_t""no" 1>&6
14935 fi
14936 done
14937
14938
14939 ac_ext=c
14940 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14941 ac_cpp='$CPP $CPPFLAGS'
14942 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14943 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14944 cross_compiling=$ac_cv_prog_cc_cross
14945
14946
14947 INET_LINK=
14948 for ac_func in inet_addr
14949 do
14950 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14951 echo "configure:14952: checking for $ac_func" >&5
14952 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14953 echo $ac_n "(cached) $ac_c" 1>&6
14954 else
14955 cat > conftest.$ac_ext <<EOF
14956 #line 14957 "configure"
14957 #include "confdefs.h"
14958 /* System header to define __stub macros and hopefully few prototypes,
14959 which can conflict with char $ac_func(); below. */
14960 #include <assert.h>
14961 /* Override any gcc2 internal prototype to avoid an error. */
14962 /* We use char because int might match the return type of a gcc2
14963 builtin and then its argument prototype would still apply. */
14964 char $ac_func();
14965
14966 int main() {
14967
14968 /* The GNU C library defines this for functions which it implements
14969 to always fail with ENOSYS. Some functions are actually named
14970 something starting with __ and the normal name is an alias. */
14971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14972 choke me
14973 #else
14974 $ac_func();
14975 #endif
14976
14977 ; return 0; }
14978 EOF
14979 if { (eval echo configure:14980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14980 rm -rf conftest*
14981 eval "ac_cv_func_$ac_func=yes"
14982 else
14983 echo "configure: failed program was:" >&5
14984 cat conftest.$ac_ext >&5
14985 rm -rf conftest*
14986 eval "ac_cv_func_$ac_func=no"
14987 fi
14988 rm -f conftest*
14989 fi
14990
14991 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14992 echo "$ac_t""yes" 1>&6
14993 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14994 cat >> confdefs.h <<EOF
14995 #define $ac_tr_func 1
14996 EOF
14997 cat >> confdefs.h <<\EOF
14998 #define HAVE_INET_ADDR 1
14999 EOF
15000
15001 else
15002 echo "$ac_t""no" 1>&6
15003 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
15004 echo "configure:15005: checking for inet_addr in -lnsl" >&5
15005 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
15006 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15007 echo $ac_n "(cached) $ac_c" 1>&6
15008 else
15009 ac_save_LIBS="$LIBS"
15010 LIBS="-lnsl $LIBS"
15011 cat > conftest.$ac_ext <<EOF
15012 #line 15013 "configure"
15013 #include "confdefs.h"
15014 /* Override any gcc2 internal prototype to avoid an error. */
15015 /* We use char because int might match the return type of a gcc2
15016 builtin and then its argument prototype would still apply. */
15017 char inet_addr();
15018
15019 int main() {
15020 inet_addr()
15021 ; return 0; }
15022 EOF
15023 if { (eval echo configure:15024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15024 rm -rf conftest*
15025 eval "ac_cv_lib_$ac_lib_var=yes"
15026 else
15027 echo "configure: failed program was:" >&5
15028 cat conftest.$ac_ext >&5
15029 rm -rf conftest*
15030 eval "ac_cv_lib_$ac_lib_var=no"
15031 fi
15032 rm -f conftest*
15033 LIBS="$ac_save_LIBS"
15034
15035 fi
15036 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15037 echo "$ac_t""yes" 1>&6
15038 INET_LINK="nsl"
15039 else
15040 echo "$ac_t""no" 1>&6
15041 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
15042 echo "configure:15043: checking for inet_addr in -lresolv" >&5
15043 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
15044 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15045 echo $ac_n "(cached) $ac_c" 1>&6
15046 else
15047 ac_save_LIBS="$LIBS"
15048 LIBS="-lresolv $LIBS"
15049 cat > conftest.$ac_ext <<EOF
15050 #line 15051 "configure"
15051 #include "confdefs.h"
15052 /* Override any gcc2 internal prototype to avoid an error. */
15053 /* We use char because int might match the return type of a gcc2
15054 builtin and then its argument prototype would still apply. */
15055 char inet_addr();
15056
15057 int main() {
15058 inet_addr()
15059 ; return 0; }
15060 EOF
15061 if { (eval echo configure:15062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15062 rm -rf conftest*
15063 eval "ac_cv_lib_$ac_lib_var=yes"
15064 else
15065 echo "configure: failed program was:" >&5
15066 cat conftest.$ac_ext >&5
15067 rm -rf conftest*
15068 eval "ac_cv_lib_$ac_lib_var=no"
15069 fi
15070 rm -f conftest*
15071 LIBS="$ac_save_LIBS"
15072
15073 fi
15074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15075 echo "$ac_t""yes" 1>&6
15076 INET_LINK="resolv"
15077
15078 else
15079 echo "$ac_t""no" 1>&6
15080 fi
15081
15082
15083 fi
15084
15085
15086
15087 fi
15088 done
15089
15090
15091 for ac_func in inet_aton
15092 do
15093 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15094 echo "configure:15095: checking for $ac_func" >&5
15095 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15096 echo $ac_n "(cached) $ac_c" 1>&6
15097 else
15098 cat > conftest.$ac_ext <<EOF
15099 #line 15100 "configure"
15100 #include "confdefs.h"
15101 /* System header to define __stub macros and hopefully few prototypes,
15102 which can conflict with char $ac_func(); below. */
15103 #include <assert.h>
15104 /* Override any gcc2 internal prototype to avoid an error. */
15105 /* We use char because int might match the return type of a gcc2
15106 builtin and then its argument prototype would still apply. */
15107 char $ac_func();
15108
15109 int main() {
15110
15111 /* The GNU C library defines this for functions which it implements
15112 to always fail with ENOSYS. Some functions are actually named
15113 something starting with __ and the normal name is an alias. */
15114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15115 choke me
15116 #else
15117 $ac_func();
15118 #endif
15119
15120 ; return 0; }
15121 EOF
15122 if { (eval echo configure:15123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15123 rm -rf conftest*
15124 eval "ac_cv_func_$ac_func=yes"
15125 else
15126 echo "configure: failed program was:" >&5
15127 cat conftest.$ac_ext >&5
15128 rm -rf conftest*
15129 eval "ac_cv_func_$ac_func=no"
15130 fi
15131 rm -f conftest*
15132 fi
15133
15134 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15135 echo "$ac_t""yes" 1>&6
15136 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15137 cat >> confdefs.h <<EOF
15138 #define $ac_tr_func 1
15139 EOF
15140 cat >> confdefs.h <<\EOF
15141 #define HAVE_INET_ATON 1
15142 EOF
15143
15144 else
15145 echo "$ac_t""no" 1>&6
15146 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
15147 echo "configure:15148: checking for inet_aton in -l$INET_LINK" >&5
15148 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
15149 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15150 echo $ac_n "(cached) $ac_c" 1>&6
15151 else
15152 ac_save_LIBS="$LIBS"
15153 LIBS="-l$INET_LINK $LIBS"
15154 cat > conftest.$ac_ext <<EOF
15155 #line 15156 "configure"
15156 #include "confdefs.h"
15157 /* Override any gcc2 internal prototype to avoid an error. */
15158 /* We use char because int might match the return type of a gcc2
15159 builtin and then its argument prototype would still apply. */
15160 char inet_aton();
15161
15162 int main() {
15163 inet_aton()
15164 ; return 0; }
15165 EOF
15166 if { (eval echo configure:15167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15167 rm -rf conftest*
15168 eval "ac_cv_lib_$ac_lib_var=yes"
15169 else
15170 echo "configure: failed program was:" >&5
15171 cat conftest.$ac_ext >&5
15172 rm -rf conftest*
15173 eval "ac_cv_lib_$ac_lib_var=no"
15174 fi
15175 rm -f conftest*
15176 LIBS="$ac_save_LIBS"
15177
15178 fi
15179 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15180 echo "$ac_t""yes" 1>&6
15181 cat >> confdefs.h <<\EOF
15182 #define HAVE_INET_ATON 1
15183 EOF
15184
15185 else
15186 echo "$ac_t""no" 1>&6
15187 fi
15188
15189
15190 fi
15191 done
15192
15193
15194 if test "x$INET_LINK" != "x"; then
15195 cat >> confdefs.h <<\EOF
15196 #define HAVE_INET_ADDR 1
15197 EOF
15198
15199 INET_LINK=" -l$INET_LINK"
15200 fi
15201
15202 fi
15203
15204
15205 cat > confcache <<\EOF
15206 # This file is a shell script that caches the results of configure
15207 # tests run on this system so they can be shared between configure
15208 # scripts and configure runs. It is not useful on other systems.
15209 # If it contains results you don't want to keep, you may remove or edit it.
15210 #
15211 # By default, configure uses ./config.cache as the cache file,
15212 # creating it if it does not exist already. You can give configure
15213 # the --cache-file=FILE option to use a different cache file; that is
15214 # what configure does when it calls configure scripts in
15215 # subdirectories, so they share the cache.
15216 # Giving --cache-file=/dev/null disables caching, for debugging configure.
15217 # config.status only pays attention to the cache file if you give it the
15218 # --recheck option to rerun configure.
15219 #
15220 EOF
15221 # The following way of writing the cache mishandles newlines in values,
15222 # but we know of no workaround that is simple, portable, and efficient.
15223 # So, don't put newlines in cache variables' values.
15224 # Ultrix sh set writes to stderr and can't be redirected directly,
15225 # and sets the high bit in the cache file unless we assign to the vars.
15226 (set) 2>&1 |
15227 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15228 *ac_space=\ *)
15229 # `set' does not quote correctly, so add quotes (double-quote substitution
15230 # turns \\\\ into \\, and sed turns \\ into \).
15231 sed -n \
15232 -e "s/'/'\\\\''/g" \
15233 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15234 ;;
15235 *)
15236 # `set' quotes correctly as required by POSIX, so do not add quotes.
15237 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15238 ;;
15239 esac >> confcache
15240 if cmp -s $cache_file confcache; then
15241 :
15242 else
15243 if test -w $cache_file; then
15244 echo "updating cache $cache_file"
15245 cat confcache > $cache_file
15246 else
15247 echo "not updating unwritable cache $cache_file"
15248 fi
15249 fi
15250 rm -f confcache
15251
15252
15253
15254 if test "$TOOLKIT" != "MSW"; then
15255
15256
15257 THREADS_LINK=
15258 THREADS_OBJ=
15259 CODE_GEN_FLAGS=
15260 CODE_GEN_FLAGS_CXX=
15261
15262 if test "$wxUSE_THREADS" = "yes" ; then
15263 if test "$wxUSE_WINE" = 1 ; then
15264 echo "configure: warning: Threads are not supported under WINE" 1>&2
15265 wxUSE_THREADS="no"
15266 elif test "$USE_BEOS" = 1; then
15267 echo "configure: warning: BeOS threads are not yet supported" 1>&2
15268 wxUSE_THREADS="no"
15269 fi
15270 fi
15271
15272 if test "$wxUSE_THREADS" = "yes" ; then
15273
15274 if test "$USE_AIX" = 1; then
15275 THREADS_LIB=pthreads
15276 else
15277 THREADS_LIB=pthread
15278 fi
15279
15280 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
15281 echo "configure:15282: checking for pthread_create in -l$THREADS_LIB" >&5
15282 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
15283 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15284 echo $ac_n "(cached) $ac_c" 1>&6
15285 else
15286 ac_save_LIBS="$LIBS"
15287 LIBS="-l$THREADS_LIB $LIBS"
15288 cat > conftest.$ac_ext <<EOF
15289 #line 15290 "configure"
15290 #include "confdefs.h"
15291 /* Override any gcc2 internal prototype to avoid an error. */
15292 /* We use char because int might match the return type of a gcc2
15293 builtin and then its argument prototype would still apply. */
15294 char pthread_create();
15295
15296 int main() {
15297 pthread_create()
15298 ; return 0; }
15299 EOF
15300 if { (eval echo configure:15301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15301 rm -rf conftest*
15302 eval "ac_cv_lib_$ac_lib_var=yes"
15303 else
15304 echo "configure: failed program was:" >&5
15305 cat conftest.$ac_ext >&5
15306 rm -rf conftest*
15307 eval "ac_cv_lib_$ac_lib_var=no"
15308 fi
15309 rm -f conftest*
15310 LIBS="$ac_save_LIBS"
15311
15312 fi
15313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15314 echo "$ac_t""yes" 1>&6
15315
15316 THREADS_OBJ="threadpsx.lo"
15317 THREADS_LINK=$THREADS_LIB
15318
15319 else
15320 echo "$ac_t""no" 1>&6
15321
15322 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
15323 echo "configure:15324: checking for pthread_create in -lc_r" >&5
15324 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
15325 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15326 echo $ac_n "(cached) $ac_c" 1>&6
15327 else
15328 ac_save_LIBS="$LIBS"
15329 LIBS="-lc_r $LIBS"
15330 cat > conftest.$ac_ext <<EOF
15331 #line 15332 "configure"
15332 #include "confdefs.h"
15333 /* Override any gcc2 internal prototype to avoid an error. */
15334 /* We use char because int might match the return type of a gcc2
15335 builtin and then its argument prototype would still apply. */
15336 char pthread_create();
15337
15338 int main() {
15339 pthread_create()
15340 ; return 0; }
15341 EOF
15342 if { (eval echo configure:15343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15343 rm -rf conftest*
15344 eval "ac_cv_lib_$ac_lib_var=yes"
15345 else
15346 echo "configure: failed program was:" >&5
15347 cat conftest.$ac_ext >&5
15348 rm -rf conftest*
15349 eval "ac_cv_lib_$ac_lib_var=no"
15350 fi
15351 rm -f conftest*
15352 LIBS="$ac_save_LIBS"
15353
15354 fi
15355 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15356 echo "$ac_t""yes" 1>&6
15357
15358 THREADS_OBJ="threadpsx.lo"
15359 THREADS_LINK="c_r"
15360
15361 else
15362 echo "$ac_t""no" 1>&6
15363
15364 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
15365 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
15366 echo "configure:15367: checking for sys/prctl.h" >&5
15367 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15368 echo $ac_n "(cached) $ac_c" 1>&6
15369 else
15370 cat > conftest.$ac_ext <<EOF
15371 #line 15372 "configure"
15372 #include "confdefs.h"
15373 #include <sys/prctl.h>
15374 EOF
15375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15376 { (eval echo configure:15377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15377 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15378 if test -z "$ac_err"; then
15379 rm -rf conftest*
15380 eval "ac_cv_header_$ac_safe=yes"
15381 else
15382 echo "$ac_err" >&5
15383 echo "configure: failed program was:" >&5
15384 cat conftest.$ac_ext >&5
15385 rm -rf conftest*
15386 eval "ac_cv_header_$ac_safe=no"
15387 fi
15388 rm -f conftest*
15389 fi
15390 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15391 echo "$ac_t""yes" 1>&6
15392
15393 THREADS_OBJ="threadsgi.lo"
15394
15395 else
15396 echo "$ac_t""no" 1>&6
15397 fi
15398
15399
15400 fi
15401
15402
15403 fi
15404
15405
15406 if test -z "$THREADS_OBJ" ; then
15407 wxUSE_THREADS=no
15408 echo "configure: warning: No thread support on this system" 1>&2
15409 fi
15410 fi
15411
15412 if test "$wxUSE_THREADS" = "yes" ; then
15413 for ac_func in thr_setconcurrency
15414 do
15415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15416 echo "configure:15417: checking for $ac_func" >&5
15417 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15418 echo $ac_n "(cached) $ac_c" 1>&6
15419 else
15420 cat > conftest.$ac_ext <<EOF
15421 #line 15422 "configure"
15422 #include "confdefs.h"
15423 /* System header to define __stub macros and hopefully few prototypes,
15424 which can conflict with char $ac_func(); below. */
15425 #include <assert.h>
15426 /* Override any gcc2 internal prototype to avoid an error. */
15427 /* We use char because int might match the return type of a gcc2
15428 builtin and then its argument prototype would still apply. */
15429 char $ac_func();
15430
15431 int main() {
15432
15433 /* The GNU C library defines this for functions which it implements
15434 to always fail with ENOSYS. Some functions are actually named
15435 something starting with __ and the normal name is an alias. */
15436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15437 choke me
15438 #else
15439 $ac_func();
15440 #endif
15441
15442 ; return 0; }
15443 EOF
15444 if { (eval echo configure:15445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15445 rm -rf conftest*
15446 eval "ac_cv_func_$ac_func=yes"
15447 else
15448 echo "configure: failed program was:" >&5
15449 cat conftest.$ac_ext >&5
15450 rm -rf conftest*
15451 eval "ac_cv_func_$ac_func=no"
15452 fi
15453 rm -f conftest*
15454 fi
15455
15456 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15457 echo "$ac_t""yes" 1>&6
15458 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15459 cat >> confdefs.h <<EOF
15460 #define $ac_tr_func 1
15461 EOF
15462
15463 else
15464 echo "$ac_t""no" 1>&6
15465 fi
15466 done
15467
15468
15469
15470 for ac_hdr in sched.h
15471 do
15472 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15473 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15474 echo "configure:15475: checking for $ac_hdr" >&5
15475 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15476 echo $ac_n "(cached) $ac_c" 1>&6
15477 else
15478 cat > conftest.$ac_ext <<EOF
15479 #line 15480 "configure"
15480 #include "confdefs.h"
15481 #include <$ac_hdr>
15482 EOF
15483 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15484 { (eval echo configure:15485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15485 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15486 if test -z "$ac_err"; then
15487 rm -rf conftest*
15488 eval "ac_cv_header_$ac_safe=yes"
15489 else
15490 echo "$ac_err" >&5
15491 echo "configure: failed program was:" >&5
15492 cat conftest.$ac_ext >&5
15493 rm -rf conftest*
15494 eval "ac_cv_header_$ac_safe=no"
15495 fi
15496 rm -f conftest*
15497 fi
15498 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15499 echo "$ac_t""yes" 1>&6
15500 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15501 cat >> confdefs.h <<EOF
15502 #define $ac_tr_hdr 1
15503 EOF
15504
15505 else
15506 echo "$ac_t""no" 1>&6
15507 fi
15508 done
15509
15510
15511 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
15512 echo "configure:15513: checking for sched_yield in -l$THREADS_LINK" >&5
15513 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
15514 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15515 echo $ac_n "(cached) $ac_c" 1>&6
15516 else
15517 ac_save_LIBS="$LIBS"
15518 LIBS="-l$THREADS_LINK $LIBS"
15519 cat > conftest.$ac_ext <<EOF
15520 #line 15521 "configure"
15521 #include "confdefs.h"
15522 /* Override any gcc2 internal prototype to avoid an error. */
15523 /* We use char because int might match the return type of a gcc2
15524 builtin and then its argument prototype would still apply. */
15525 char sched_yield();
15526
15527 int main() {
15528 sched_yield()
15529 ; return 0; }
15530 EOF
15531 if { (eval echo configure:15532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15532 rm -rf conftest*
15533 eval "ac_cv_lib_$ac_lib_var=yes"
15534 else
15535 echo "configure: failed program was:" >&5
15536 cat conftest.$ac_ext >&5
15537 rm -rf conftest*
15538 eval "ac_cv_lib_$ac_lib_var=no"
15539 fi
15540 rm -f conftest*
15541 LIBS="$ac_save_LIBS"
15542
15543 fi
15544 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15545 echo "$ac_t""yes" 1>&6
15546 cat >> confdefs.h <<\EOF
15547 #define HAVE_SCHED_YIELD 1
15548 EOF
15549
15550 else
15551 echo "$ac_t""no" 1>&6
15552 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
15553 echo "configure:15554: checking for sched_yield in -lposix4" >&5
15554 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
15555 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15556 echo $ac_n "(cached) $ac_c" 1>&6
15557 else
15558 ac_save_LIBS="$LIBS"
15559 LIBS="-lposix4 $LIBS"
15560 cat > conftest.$ac_ext <<EOF
15561 #line 15562 "configure"
15562 #include "confdefs.h"
15563 /* Override any gcc2 internal prototype to avoid an error. */
15564 /* We use char because int might match the return type of a gcc2
15565 builtin and then its argument prototype would still apply. */
15566 char sched_yield();
15567
15568 int main() {
15569 sched_yield()
15570 ; return 0; }
15571 EOF
15572 if { (eval echo configure:15573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15573 rm -rf conftest*
15574 eval "ac_cv_lib_$ac_lib_var=yes"
15575 else
15576 echo "configure: failed program was:" >&5
15577 cat conftest.$ac_ext >&5
15578 rm -rf conftest*
15579 eval "ac_cv_lib_$ac_lib_var=no"
15580 fi
15581 rm -f conftest*
15582 LIBS="$ac_save_LIBS"
15583
15584 fi
15585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15586 echo "$ac_t""yes" 1>&6
15587 cat >> confdefs.h <<\EOF
15588 #define HAVE_SCHED_YIELD 1
15589 EOF
15590 POSIX4_LINK=" -lposix4"
15591 else
15592 echo "$ac_t""no" 1>&6
15593 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
15594
15595 fi
15596
15597
15598 fi
15599
15600
15601 HAVE_PRIOR_FUNCS=0
15602 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
15603 echo "configure:15604: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
15604 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
15605 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15606 echo $ac_n "(cached) $ac_c" 1>&6
15607 else
15608 ac_save_LIBS="$LIBS"
15609 LIBS="-l$THREADS_LINK $LIBS"
15610 cat > conftest.$ac_ext <<EOF
15611 #line 15612 "configure"
15612 #include "confdefs.h"
15613 /* Override any gcc2 internal prototype to avoid an error. */
15614 /* We use char because int might match the return type of a gcc2
15615 builtin and then its argument prototype would still apply. */
15616 char pthread_attr_getschedpolicy();
15617
15618 int main() {
15619 pthread_attr_getschedpolicy()
15620 ; return 0; }
15621 EOF
15622 if { (eval echo configure:15623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15623 rm -rf conftest*
15624 eval "ac_cv_lib_$ac_lib_var=yes"
15625 else
15626 echo "configure: failed program was:" >&5
15627 cat conftest.$ac_ext >&5
15628 rm -rf conftest*
15629 eval "ac_cv_lib_$ac_lib_var=no"
15630 fi
15631 rm -f conftest*
15632 LIBS="$ac_save_LIBS"
15633
15634 fi
15635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15636 echo "$ac_t""yes" 1>&6
15637 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
15638 echo "configure:15639: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
15639 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
15640 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15641 echo $ac_n "(cached) $ac_c" 1>&6
15642 else
15643 ac_save_LIBS="$LIBS"
15644 LIBS="-l$THREADS_LINK $LIBS"
15645 cat > conftest.$ac_ext <<EOF
15646 #line 15647 "configure"
15647 #include "confdefs.h"
15648 /* Override any gcc2 internal prototype to avoid an error. */
15649 /* We use char because int might match the return type of a gcc2
15650 builtin and then its argument prototype would still apply. */
15651 char pthread_attr_setschedparam();
15652
15653 int main() {
15654 pthread_attr_setschedparam()
15655 ; return 0; }
15656 EOF
15657 if { (eval echo configure:15658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15658 rm -rf conftest*
15659 eval "ac_cv_lib_$ac_lib_var=yes"
15660 else
15661 echo "configure: failed program was:" >&5
15662 cat conftest.$ac_ext >&5
15663 rm -rf conftest*
15664 eval "ac_cv_lib_$ac_lib_var=no"
15665 fi
15666 rm -f conftest*
15667 LIBS="$ac_save_LIBS"
15668
15669 fi
15670 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15671 echo "$ac_t""yes" 1>&6
15672 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
15673 echo "configure:15674: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
15674 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
15675 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15676 echo $ac_n "(cached) $ac_c" 1>&6
15677 else
15678 ac_save_LIBS="$LIBS"
15679 LIBS="-l$THREADS_LINK $LIBS"
15680 cat > conftest.$ac_ext <<EOF
15681 #line 15682 "configure"
15682 #include "confdefs.h"
15683 /* Override any gcc2 internal prototype to avoid an error. */
15684 /* We use char because int might match the return type of a gcc2
15685 builtin and then its argument prototype would still apply. */
15686 char sched_get_priority_max();
15687
15688 int main() {
15689 sched_get_priority_max()
15690 ; return 0; }
15691 EOF
15692 if { (eval echo configure:15693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15693 rm -rf conftest*
15694 eval "ac_cv_lib_$ac_lib_var=yes"
15695 else
15696 echo "configure: failed program was:" >&5
15697 cat conftest.$ac_ext >&5
15698 rm -rf conftest*
15699 eval "ac_cv_lib_$ac_lib_var=no"
15700 fi
15701 rm -f conftest*
15702 LIBS="$ac_save_LIBS"
15703
15704 fi
15705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15706 echo "$ac_t""yes" 1>&6
15707 HAVE_PRIOR_FUNCS=1
15708 else
15709 echo "$ac_t""no" 1>&6
15710 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
15711 echo "configure:15712: checking for sched_get_priority_max in -lposix4" >&5
15712 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
15713 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15714 echo $ac_n "(cached) $ac_c" 1>&6
15715 else
15716 ac_save_LIBS="$LIBS"
15717 LIBS="-lposix4 $LIBS"
15718 cat > conftest.$ac_ext <<EOF
15719 #line 15720 "configure"
15720 #include "confdefs.h"
15721 /* Override any gcc2 internal prototype to avoid an error. */
15722 /* We use char because int might match the return type of a gcc2
15723 builtin and then its argument prototype would still apply. */
15724 char sched_get_priority_max();
15725
15726 int main() {
15727 sched_get_priority_max()
15728 ; return 0; }
15729 EOF
15730 if { (eval echo configure:15731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15731 rm -rf conftest*
15732 eval "ac_cv_lib_$ac_lib_var=yes"
15733 else
15734 echo "configure: failed program was:" >&5
15735 cat conftest.$ac_ext >&5
15736 rm -rf conftest*
15737 eval "ac_cv_lib_$ac_lib_var=no"
15738 fi
15739 rm -f conftest*
15740 LIBS="$ac_save_LIBS"
15741
15742 fi
15743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15744 echo "$ac_t""yes" 1>&6
15745
15746 HAVE_PRIOR_FUNCS=1
15747 POSIX4_LINK=" -lposix4"
15748
15749 else
15750 echo "$ac_t""no" 1>&6
15751 fi
15752
15753
15754 fi
15755
15756
15757 else
15758 echo "$ac_t""no" 1>&6
15759 fi
15760
15761
15762 else
15763 echo "$ac_t""no" 1>&6
15764 fi
15765
15766
15767 if test "$HAVE_PRIOR_FUNCS" = 1; then
15768 cat >> confdefs.h <<\EOF
15769 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
15770 EOF
15771
15772 else
15773 echo "configure: warning: Setting thread priority will not work" 1>&2
15774 fi
15775
15776 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
15777 echo "configure:15778: checking for pthread_cancel in -l$THREADS_LINK" >&5
15778 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
15779 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15780 echo $ac_n "(cached) $ac_c" 1>&6
15781 else
15782 ac_save_LIBS="$LIBS"
15783 LIBS="-l$THREADS_LINK $LIBS"
15784 cat > conftest.$ac_ext <<EOF
15785 #line 15786 "configure"
15786 #include "confdefs.h"
15787 /* Override any gcc2 internal prototype to avoid an error. */
15788 /* We use char because int might match the return type of a gcc2
15789 builtin and then its argument prototype would still apply. */
15790 char pthread_cancel();
15791
15792 int main() {
15793 pthread_cancel()
15794 ; return 0; }
15795 EOF
15796 if { (eval echo configure:15797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15797 rm -rf conftest*
15798 eval "ac_cv_lib_$ac_lib_var=yes"
15799 else
15800 echo "configure: failed program was:" >&5
15801 cat conftest.$ac_ext >&5
15802 rm -rf conftest*
15803 eval "ac_cv_lib_$ac_lib_var=no"
15804 fi
15805 rm -f conftest*
15806 LIBS="$ac_save_LIBS"
15807
15808 fi
15809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15810 echo "$ac_t""yes" 1>&6
15811 cat >> confdefs.h <<\EOF
15812 #define HAVE_PTHREAD_CANCEL 1
15813 EOF
15814
15815 else
15816 echo "$ac_t""no" 1>&6
15817 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
15818 fi
15819
15820
15821 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
15822 echo "configure:15823: checking for pthread_cleanup_push/pop" >&5
15823 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
15824 echo $ac_n "(cached) $ac_c" 1>&6
15825 else
15826
15827 cat > conftest.$ac_ext <<EOF
15828 #line 15829 "configure"
15829 #include "confdefs.h"
15830 #include <pthread.h>
15831 int main() {
15832
15833 pthread_cleanup_push(NULL, NULL);
15834 pthread_cleanup_pop(0);
15835
15836 ; return 0; }
15837 EOF
15838 if { (eval echo configure:15839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15839 rm -rf conftest*
15840
15841 wx_cv_func_pthread_cleanup_push=yes
15842
15843 else
15844 echo "configure: failed program was:" >&5
15845 cat conftest.$ac_ext >&5
15846 rm -rf conftest*
15847
15848 wx_cv_func_pthread_cleanup_push=no
15849
15850 fi
15851 rm -f conftest*
15852
15853 fi
15854
15855 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
15856
15857 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
15858 cat >> confdefs.h <<\EOF
15859 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
15860 EOF
15861
15862 fi
15863
15864
15865 if test "x$wx_lib_glibc21" = "xyes"; then
15866 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
15867 fi
15868
15869 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
15870 echo "configure:15871: checking for pthread_mutexattr_t" >&5
15871 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
15872 echo $ac_n "(cached) $ac_c" 1>&6
15873 else
15874
15875 cat > conftest.$ac_ext <<EOF
15876 #line 15877 "configure"
15877 #include "confdefs.h"
15878 #include <pthread.h>
15879 int main() {
15880
15881 pthread_mutexattr_t attr;
15882 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
15883
15884 ; return 0; }
15885 EOF
15886 if { (eval echo configure:15887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15887 rm -rf conftest*
15888
15889 wx_cv_type_pthread_mutexattr_t=yes
15890
15891 else
15892 echo "configure: failed program was:" >&5
15893 cat conftest.$ac_ext >&5
15894 rm -rf conftest*
15895
15896 wx_cv_type_pthread_mutexattr_t=no
15897
15898
15899 fi
15900 rm -f conftest*
15901
15902 fi
15903
15904 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
15905
15906 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
15907 cat >> confdefs.h <<\EOF
15908 #define HAVE_PTHREAD_MUTEXATTR_T 1
15909 EOF
15910
15911 else
15912 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
15913 echo "configure:15914: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
15914 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
15915 echo $ac_n "(cached) $ac_c" 1>&6
15916 else
15917
15918 cat > conftest.$ac_ext <<EOF
15919 #line 15920 "configure"
15920 #include "confdefs.h"
15921 #include <pthread.h>
15922 int main() {
15923
15924 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
15925
15926 ; return 0; }
15927 EOF
15928 if { (eval echo configure:15929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15929 rm -rf conftest*
15930
15931 wx_cv_type_pthread_rec_mutex_init=yes
15932
15933 else
15934 echo "configure: failed program was:" >&5
15935 cat conftest.$ac_ext >&5
15936 rm -rf conftest*
15937
15938 wx_cv_type_pthread_rec_mutex_init=no
15939
15940
15941 fi
15942 rm -f conftest*
15943
15944 fi
15945
15946 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
15947 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
15948 cat >> confdefs.h <<\EOF
15949 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
15950 EOF
15951
15952 else
15953 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
15954 fi
15955 fi
15956
15957 THREADS_LINK=" -l$THREADS_LINK"
15958
15959 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
15960 CPPFLAGS="$CFLAGS -mt"
15961 CXXFLAGS="$CXXFLAGS -mt"
15962 LDFLAGS="$LDFLAGS -mt"
15963 fi
15964 fi
15965
15966 fi
15967
15968 if test "$wxUSE_THREADS" = "yes"; then
15969 cat >> confdefs.h <<\EOF
15970 #define wxUSE_THREADS 1
15971 EOF
15972
15973
15974 if test "$USE_DARWIN" != 1; then
15975 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -D_REENTRANT"
15976 fi
15977
15978 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
15979 else
15980 if test "$ac_cv_func_strtok_r" = "yes"; then
15981 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
15982 echo "configure:15983: checking if -D_REENTRANT is needed" >&5
15983 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
15984 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
15985 echo "$ac_t""yes" 1>&6
15986 else
15987 echo "$ac_t""no" 1>&6
15988 fi
15989 fi
15990 fi
15991
15992 if test "$WXGTK20" = 1 ; then
15993 cat >> confdefs.h <<EOF
15994 #define __WXGTK20__ $WXGTK20
15995 EOF
15996
15997 WXGTK12=1
15998 fi
15999
16000 if test "$WXGTK12" = 1 ; then
16001 cat >> confdefs.h <<EOF
16002 #define __WXGTK12__ $WXGTK12
16003 EOF
16004
16005 fi
16006
16007 if test "$WXGTK127" = 1 ; then
16008 cat >> confdefs.h <<EOF
16009 #define __WXGTK127__ $WXGTK127
16010 EOF
16011
16012 fi
16013
16014 WXDEBUG=
16015
16016 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
16017 WXDEBUG="-g"
16018 wxUSE_OPTIMISE=no
16019 fi
16020
16021 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
16022 wxUSE_DEBUG_INFO=yes
16023 WXDEBUG="-ggdb"
16024 fi
16025
16026 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
16027 cat >> confdefs.h <<\EOF
16028 #define WXDEBUG 1
16029 EOF
16030
16031 WXDEBUG_DEFINE="-D__WXDEBUG__"
16032 else
16033 if test "$wxUSE_GTK" = 1 ; then
16034 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
16035 fi
16036 fi
16037
16038 if test "$wxUSE_MEM_TRACING" = "yes" ; then
16039 cat >> confdefs.h <<\EOF
16040 #define wxUSE_MEMORY_TRACING 1
16041 EOF
16042
16043 cat >> confdefs.h <<\EOF
16044 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
16045 EOF
16046
16047 cat >> confdefs.h <<\EOF
16048 #define wxUSE_DEBUG_NEW_ALWAYS 1
16049 EOF
16050
16051 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
16052 fi
16053
16054 if test "$wxUSE_DMALLOC" = "yes" ; then
16055 DMALLOC_LIBS="-ldmalloc"
16056 fi
16057
16058 PROFILE=
16059 if test "$wxUSE_PROFILE" = "yes" ; then
16060 PROFILE=" -pg"
16061 fi
16062
16063 if test "$GCC" = "yes" ; then
16064 if test "$wxUSE_NO_RTTI" = "yes" ; then
16065 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
16066 fi
16067 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
16068 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
16069 fi
16070 if test "$wxUSE_PERMISSIVE" = "yes" ; then
16071 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
16072 fi
16073 if test "$USE_WIN32" = 1 ; then
16074 # I'm not even really sure what this was ever added to solve,
16075 # but someone added it for mingw native builds, so I guess
16076 # they had a reason, right??
16077 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
16078 fi
16079 fi
16080
16081
16082 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
16083 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
16084 if test "$wxUSE_OPTIMISE" = "no" ; then
16085 OPTIMISE=
16086 else
16087 if test "$GCC" = yes ; then
16088 OPTIMISE="-O2"
16089 case "${host}" in
16090 i586-*-*|i686-*-* )
16091 OPTIMISE="${OPTIMISE} "
16092 ;;
16093 esac
16094 else
16095 OPTIMISE="-O"
16096 fi
16097 fi
16098
16099 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
16100 cat >> confdefs.h <<\EOF
16101 #define WXWIN_COMPATIBILITY_2 1
16102 EOF
16103
16104
16105 WXWIN_COMPATIBILITY_2_2="yes"
16106 fi
16107
16108 if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
16109 cat >> confdefs.h <<\EOF
16110 #define WXWIN_COMPATIBILITY_2_2 1
16111 EOF
16112
16113 fi
16114
16115
16116 if test "$wxUSE_GUI" = "yes"; then
16117 cat >> confdefs.h <<\EOF
16118 #define wxUSE_GUI 1
16119 EOF
16120
16121
16122 else
16123 cat >> confdefs.h <<\EOF
16124 #define wxUSE_NOGUI 1
16125 EOF
16126
16127 fi
16128
16129
16130 if test "$wxUSE_UNIX" = "yes"; then
16131 cat >> confdefs.h <<\EOF
16132 #define wxUSE_UNIX 1
16133 EOF
16134
16135 fi
16136
16137
16138 if test "$wxUSE_APPLE_IEEE" = "yes"; then
16139 cat >> confdefs.h <<\EOF
16140 #define wxUSE_APPLE_IEEE 1
16141 EOF
16142
16143 fi
16144
16145 if test "$wxUSE_TIMER" = "yes"; then
16146 cat >> confdefs.h <<\EOF
16147 #define wxUSE_TIMER 1
16148 EOF
16149
16150 fi
16151
16152 if test "$wxUSE_WAVE" = "yes"; then
16153 cat >> confdefs.h <<\EOF
16154 #define wxUSE_WAVE 1
16155 EOF
16156
16157 fi
16158
16159 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
16160 cat >> confdefs.h <<\EOF
16161 #define wxUSE_CMDLINE_PARSER 1
16162 EOF
16163
16164 fi
16165
16166 if test "$wxUSE_STOPWATCH" = "yes"; then
16167 cat >> confdefs.h <<\EOF
16168 #define wxUSE_STOPWATCH 1
16169 EOF
16170
16171 fi
16172
16173 if test "$wxUSE_DATETIME" = "yes"; then
16174 cat >> confdefs.h <<\EOF
16175 #define wxUSE_DATETIME 1
16176 EOF
16177
16178 fi
16179
16180 if test "$wxUSE_TIMEDATE" = "yes"; then
16181 cat >> confdefs.h <<\EOF
16182 #define wxUSE_TIMEDATE 1
16183 EOF
16184
16185 fi
16186
16187 if test "$wxUSE_FILE" = "yes"; then
16188 cat >> confdefs.h <<\EOF
16189 #define wxUSE_FILE 1
16190 EOF
16191
16192 fi
16193
16194 if test "$wxUSE_FFILE" = "yes"; then
16195 cat >> confdefs.h <<\EOF
16196 #define wxUSE_FFILE 1
16197 EOF
16198
16199 fi
16200
16201 if test "$wxUSE_FILESYSTEM" = "yes"; then
16202 cat >> confdefs.h <<\EOF
16203 #define wxUSE_FILESYSTEM 1
16204 EOF
16205
16206 fi
16207
16208 if test "$wxUSE_FS_INET" = "yes"; then
16209 cat >> confdefs.h <<\EOF
16210 #define wxUSE_FS_INET 1
16211 EOF
16212
16213 fi
16214
16215 if test "$wxUSE_FS_ZIP" = "yes"; then
16216 cat >> confdefs.h <<\EOF
16217 #define wxUSE_FS_ZIP 1
16218 EOF
16219
16220 fi
16221
16222 if test "$wxUSE_ZIPSTREAM" = "yes"; then
16223 cat >> confdefs.h <<\EOF
16224 #define wxUSE_ZIPSTREAM 1
16225 EOF
16226
16227 fi
16228
16229 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16230 cat >> confdefs.h <<\EOF
16231 #define wxUSE_ON_FATAL_EXCEPTION 1
16232 EOF
16233
16234 fi
16235
16236 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16237 cat >> confdefs.h <<\EOF
16238 #define wxUSE_SNGLINST_CHECKER 1
16239 EOF
16240
16241 fi
16242
16243 if test "$wxUSE_BUSYINFO" = "yes"; then
16244 cat >> confdefs.h <<\EOF
16245 #define wxUSE_BUSYINFO 1
16246 EOF
16247
16248 fi
16249
16250 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
16251 cat >> confdefs.h <<\EOF
16252 #define wxUSE_STD_IOSTREAM 1
16253 EOF
16254
16255 fi
16256
16257 if test "$wxUSE_TEXTBUFFER" = "yes"; then
16258 cat >> confdefs.h <<\EOF
16259 #define wxUSE_TEXTBUFFER 1
16260 EOF
16261
16262 fi
16263
16264 if test "$wxUSE_TEXTFILE" = "yes"; then
16265 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
16266 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer and won't be compiled without them" 1>&2
16267 else
16268 cat >> confdefs.h <<\EOF
16269 #define wxUSE_TEXTFILE 1
16270 EOF
16271
16272 fi
16273 fi
16274
16275 if test "$wxUSE_CONFIG" = "yes" ; then
16276 if test "$wxUSE_TEXTFILE" != "yes"; then
16277 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
16278 else
16279 cat >> confdefs.h <<\EOF
16280 #define wxUSE_CONFIG 1
16281 EOF
16282
16283 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
16284 fi
16285 fi
16286
16287 if test "$wxUSE_INTL" = "yes" ; then
16288 if test "$wxUSE_FILE" != "yes"; then
16289 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
16290 else
16291 cat >> confdefs.h <<\EOF
16292 #define wxUSE_INTL 1
16293 EOF
16294
16295 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
16296 GUIDIST="$GUIDIST INTL_DIST"
16297 fi
16298 fi
16299
16300 if test "$wxUSE_LOG" = "yes"; then
16301 cat >> confdefs.h <<\EOF
16302 #define wxUSE_LOG 1
16303 EOF
16304
16305
16306 if test "$wxUSE_LOGGUI" = "yes"; then
16307 cat >> confdefs.h <<\EOF
16308 #define wxUSE_LOGGUI 1
16309 EOF
16310
16311 fi
16312
16313 if test "$wxUSE_LOGWINDOW" = "yes"; then
16314 cat >> confdefs.h <<\EOF
16315 #define wxUSE_LOGWINDOW 1
16316 EOF
16317
16318 fi
16319 fi
16320
16321 if test "$wxUSE_LONGLONG" = "yes"; then
16322 cat >> confdefs.h <<\EOF
16323 #define wxUSE_LONGLONG 1
16324 EOF
16325
16326 fi
16327
16328 if test "$wxUSE_GEOMETRY" = "yes"; then
16329 cat >> confdefs.h <<\EOF
16330 #define wxUSE_GEOMETRY 1
16331 EOF
16332
16333 fi
16334
16335 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
16336 cat >> confdefs.h <<\EOF
16337 #define wxUSE_DIALUP_MANAGER 1
16338 EOF
16339
16340 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
16341 fi
16342
16343 if test "$wxUSE_STREAMS" = "yes" ; then
16344 cat >> confdefs.h <<\EOF
16345 #define wxUSE_STREAMS 1
16346 EOF
16347
16348 fi
16349
16350
16351 if test "$wxUSE_DATETIME" = "yes"; then
16352 for ac_func in strptime
16353 do
16354 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16355 echo "configure:16356: checking for $ac_func" >&5
16356 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16357 echo $ac_n "(cached) $ac_c" 1>&6
16358 else
16359 cat > conftest.$ac_ext <<EOF
16360 #line 16361 "configure"
16361 #include "confdefs.h"
16362 /* System header to define __stub macros and hopefully few prototypes,
16363 which can conflict with char $ac_func(); below. */
16364 #include <assert.h>
16365 /* Override any gcc2 internal prototype to avoid an error. */
16366 /* We use char because int might match the return type of a gcc2
16367 builtin and then its argument prototype would still apply. */
16368 char $ac_func();
16369
16370 int main() {
16371
16372 /* The GNU C library defines this for functions which it implements
16373 to always fail with ENOSYS. Some functions are actually named
16374 something starting with __ and the normal name is an alias. */
16375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16376 choke me
16377 #else
16378 $ac_func();
16379 #endif
16380
16381 ; return 0; }
16382 EOF
16383 if { (eval echo configure:16384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16384 rm -rf conftest*
16385 eval "ac_cv_func_$ac_func=yes"
16386 else
16387 echo "configure: failed program was:" >&5
16388 cat conftest.$ac_ext >&5
16389 rm -rf conftest*
16390 eval "ac_cv_func_$ac_func=no"
16391 fi
16392 rm -f conftest*
16393 fi
16394
16395 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16396 echo "$ac_t""yes" 1>&6
16397 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16398 cat >> confdefs.h <<EOF
16399 #define $ac_tr_func 1
16400 EOF
16401
16402 else
16403 echo "$ac_t""no" 1>&6
16404 fi
16405 done
16406
16407
16408 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
16409 echo "configure:16410: checking for timezone variable in <time.h>" >&5
16410 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
16411 echo $ac_n "(cached) $ac_c" 1>&6
16412 else
16413
16414 cat > conftest.$ac_ext <<EOF
16415 #line 16416 "configure"
16416 #include "confdefs.h"
16417
16418 #include <time.h>
16419
16420 int main() {
16421
16422 int tz;
16423 tz = timezone;
16424
16425 ; return 0; }
16426 EOF
16427 if { (eval echo configure:16428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16428 rm -rf conftest*
16429
16430 wx_cv_var_timezone=timezone
16431
16432 else
16433 echo "configure: failed program was:" >&5
16434 cat conftest.$ac_ext >&5
16435 rm -rf conftest*
16436
16437 cat > conftest.$ac_ext <<EOF
16438 #line 16439 "configure"
16439 #include "confdefs.h"
16440
16441 #include <time.h>
16442
16443 int main() {
16444
16445 int tz;
16446 tz = _timezone;
16447
16448 ; return 0; }
16449 EOF
16450 if { (eval echo configure:16451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16451 rm -rf conftest*
16452
16453 wx_cv_var_timezone=_timezone
16454
16455 else
16456 echo "configure: failed program was:" >&5
16457 cat conftest.$ac_ext >&5
16458 rm -rf conftest*
16459
16460 cat > conftest.$ac_ext <<EOF
16461 #line 16462 "configure"
16462 #include "confdefs.h"
16463
16464 #include <time.h>
16465
16466 int main() {
16467
16468 int tz;
16469 tz = __timezone;
16470
16471 ; return 0; }
16472 EOF
16473 if { (eval echo configure:16474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16474 rm -rf conftest*
16475
16476 wx_cv_var_timezone=__timezone
16477
16478 else
16479 echo "configure: failed program was:" >&5
16480 cat conftest.$ac_ext >&5
16481 rm -rf conftest*
16482 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16483
16484 fi
16485 rm -f conftest*
16486
16487
16488 fi
16489 rm -f conftest*
16490
16491
16492 fi
16493 rm -f conftest*
16494
16495
16496 fi
16497
16498 echo "$ac_t""$wx_cv_var_timezone" 1>&6
16499
16500 cat >> confdefs.h <<EOF
16501 #define WX_TIMEZONE $wx_cv_var_timezone
16502 EOF
16503
16504
16505 for ac_func in localtime
16506 do
16507 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16508 echo "configure:16509: checking for $ac_func" >&5
16509 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16510 echo $ac_n "(cached) $ac_c" 1>&6
16511 else
16512 cat > conftest.$ac_ext <<EOF
16513 #line 16514 "configure"
16514 #include "confdefs.h"
16515 /* System header to define __stub macros and hopefully few prototypes,
16516 which can conflict with char $ac_func(); below. */
16517 #include <assert.h>
16518 /* Override any gcc2 internal prototype to avoid an error. */
16519 /* We use char because int might match the return type of a gcc2
16520 builtin and then its argument prototype would still apply. */
16521 char $ac_func();
16522
16523 int main() {
16524
16525 /* The GNU C library defines this for functions which it implements
16526 to always fail with ENOSYS. Some functions are actually named
16527 something starting with __ and the normal name is an alias. */
16528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16529 choke me
16530 #else
16531 $ac_func();
16532 #endif
16533
16534 ; return 0; }
16535 EOF
16536 if { (eval echo configure:16537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16537 rm -rf conftest*
16538 eval "ac_cv_func_$ac_func=yes"
16539 else
16540 echo "configure: failed program was:" >&5
16541 cat conftest.$ac_ext >&5
16542 rm -rf conftest*
16543 eval "ac_cv_func_$ac_func=no"
16544 fi
16545 rm -f conftest*
16546 fi
16547
16548 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16549 echo "$ac_t""yes" 1>&6
16550 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16551 cat >> confdefs.h <<EOF
16552 #define $ac_tr_func 1
16553 EOF
16554
16555 else
16556 echo "$ac_t""no" 1>&6
16557 fi
16558 done
16559
16560
16561 if test "$ac_cv_func_localtime" = "yes"; then
16562 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
16563 echo "configure:16564: checking for tm_gmtoff in struct tm" >&5
16564 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16565 echo $ac_n "(cached) $ac_c" 1>&6
16566 else
16567
16568 cat > conftest.$ac_ext <<EOF
16569 #line 16570 "configure"
16570 #include "confdefs.h"
16571
16572 #include <time.h>
16573
16574 int main() {
16575
16576 struct tm tm;
16577 tm.tm_gmtoff++;
16578
16579 ; return 0; }
16580 EOF
16581 if { (eval echo configure:16582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16582 rm -rf conftest*
16583
16584 wx_cv_struct_tm_has_gmtoff=yes
16585
16586 else
16587 echo "configure: failed program was:" >&5
16588 cat conftest.$ac_ext >&5
16589 rm -rf conftest*
16590 wx_cv_struct_tm_has_gmtoff=no
16591
16592 fi
16593 rm -f conftest*
16594
16595 fi
16596
16597 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
16598 fi
16599
16600 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
16601 cat >> confdefs.h <<\EOF
16602 #define WX_GMTOFF_IN_TM 1
16603 EOF
16604
16605 fi
16606
16607 for ac_func in gettimeofday ftime
16608 do
16609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16610 echo "configure:16611: checking for $ac_func" >&5
16611 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16612 echo $ac_n "(cached) $ac_c" 1>&6
16613 else
16614 cat > conftest.$ac_ext <<EOF
16615 #line 16616 "configure"
16616 #include "confdefs.h"
16617 /* System header to define __stub macros and hopefully few prototypes,
16618 which can conflict with char $ac_func(); below. */
16619 #include <assert.h>
16620 /* Override any gcc2 internal prototype to avoid an error. */
16621 /* We use char because int might match the return type of a gcc2
16622 builtin and then its argument prototype would still apply. */
16623 char $ac_func();
16624
16625 int main() {
16626
16627 /* The GNU C library defines this for functions which it implements
16628 to always fail with ENOSYS. Some functions are actually named
16629 something starting with __ and the normal name is an alias. */
16630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16631 choke me
16632 #else
16633 $ac_func();
16634 #endif
16635
16636 ; return 0; }
16637 EOF
16638 if { (eval echo configure:16639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16639 rm -rf conftest*
16640 eval "ac_cv_func_$ac_func=yes"
16641 else
16642 echo "configure: failed program was:" >&5
16643 cat conftest.$ac_ext >&5
16644 rm -rf conftest*
16645 eval "ac_cv_func_$ac_func=no"
16646 fi
16647 rm -f conftest*
16648 fi
16649
16650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16651 echo "$ac_t""yes" 1>&6
16652 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16653 cat >> confdefs.h <<EOF
16654 #define $ac_tr_func 1
16655 EOF
16656 break
16657 else
16658 echo "$ac_t""no" 1>&6
16659 fi
16660 done
16661
16662
16663 if test "$ac_cv_func_gettimeofday" = "yes"; then
16664 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
16665 echo "configure:16666: checking whether gettimeofday takes two arguments" >&5
16666 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16667 echo $ac_n "(cached) $ac_c" 1>&6
16668 else
16669
16670
16671 ac_ext=C
16672 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16673 ac_cpp='$CXXCPP $CPPFLAGS'
16674 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16675 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16676 cross_compiling=$ac_cv_prog_cxx_cross
16677
16678
16679 cat > conftest.$ac_ext <<EOF
16680 #line 16681 "configure"
16681 #include "confdefs.h"
16682
16683 #include <sys/time.h>
16684 #include <unistd.h>
16685
16686 int main() {
16687
16688 struct timeval tv;
16689 gettimeofday(&tv, NULL);
16690
16691 ; return 0; }
16692 EOF
16693 if { (eval echo configure:16694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16694 rm -rf conftest*
16695 wx_cv_func_gettimeofday_has_2_args=yes
16696 else
16697 echo "configure: failed program was:" >&5
16698 cat conftest.$ac_ext >&5
16699 rm -rf conftest*
16700 cat > conftest.$ac_ext <<EOF
16701 #line 16702 "configure"
16702 #include "confdefs.h"
16703
16704 #include <sys/time.h>
16705 #include <unistd.h>
16706
16707 int main() {
16708
16709 struct timeval tv;
16710 gettimeofday(&tv);
16711
16712 ; return 0; }
16713 EOF
16714 if { (eval echo configure:16715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16715 rm -rf conftest*
16716 wx_cv_func_gettimeofday_has_2_args=no
16717 else
16718 echo "configure: failed program was:" >&5
16719 cat conftest.$ac_ext >&5
16720 rm -rf conftest*
16721
16722 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
16723 wx_cv_func_gettimeofday_has_2_args=unknown
16724
16725
16726 fi
16727 rm -f conftest*
16728
16729 fi
16730 rm -f conftest*
16731 ac_ext=c
16732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16733 ac_cpp='$CPP $CPPFLAGS'
16734 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16735 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16736 cross_compiling=$ac_cv_prog_cc_cross
16737
16738
16739 fi
16740
16741 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
16742
16743 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
16744 cat >> confdefs.h <<\EOF
16745 #define WX_GETTIMEOFDAY_NO_TZ 1
16746 EOF
16747
16748 fi
16749 fi
16750
16751 cat >> confdefs.h <<\EOF
16752 #define wxUSE_TIMEDATE 1
16753 EOF
16754
16755 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16756 fi
16757
16758
16759 if test "$TOOLKIT" != "MSW"; then
16760
16761 if test "$wxUSE_SOCKETS" = "yes"; then
16762 echo $ac_n "checking for socket""... $ac_c" 1>&6
16763 echo "configure:16764: checking for socket" >&5
16764 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16765 echo $ac_n "(cached) $ac_c" 1>&6
16766 else
16767 cat > conftest.$ac_ext <<EOF
16768 #line 16769 "configure"
16769 #include "confdefs.h"
16770 /* System header to define __stub macros and hopefully few prototypes,
16771 which can conflict with char socket(); below. */
16772 #include <assert.h>
16773 /* Override any gcc2 internal prototype to avoid an error. */
16774 /* We use char because int might match the return type of a gcc2
16775 builtin and then its argument prototype would still apply. */
16776 char socket();
16777
16778 int main() {
16779
16780 /* The GNU C library defines this for functions which it implements
16781 to always fail with ENOSYS. Some functions are actually named
16782 something starting with __ and the normal name is an alias. */
16783 #if defined (__stub_socket) || defined (__stub___socket)
16784 choke me
16785 #else
16786 socket();
16787 #endif
16788
16789 ; return 0; }
16790 EOF
16791 if { (eval echo configure:16792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16792 rm -rf conftest*
16793 eval "ac_cv_func_socket=yes"
16794 else
16795 echo "configure: failed program was:" >&5
16796 cat conftest.$ac_ext >&5
16797 rm -rf conftest*
16798 eval "ac_cv_func_socket=no"
16799 fi
16800 rm -f conftest*
16801 fi
16802
16803 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16804 echo "$ac_t""yes" 1>&6
16805 :
16806 else
16807 echo "$ac_t""no" 1>&6
16808 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
16809 echo "configure:16810: checking for socket in -lsocket" >&5
16810 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16811 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16812 echo $ac_n "(cached) $ac_c" 1>&6
16813 else
16814 ac_save_LIBS="$LIBS"
16815 LIBS="-lsocket $LIBS"
16816 cat > conftest.$ac_ext <<EOF
16817 #line 16818 "configure"
16818 #include "confdefs.h"
16819 /* Override any gcc2 internal prototype to avoid an error. */
16820 /* We use char because int might match the return type of a gcc2
16821 builtin and then its argument prototype would still apply. */
16822 char socket();
16823
16824 int main() {
16825 socket()
16826 ; return 0; }
16827 EOF
16828 if { (eval echo configure:16829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16829 rm -rf conftest*
16830 eval "ac_cv_lib_$ac_lib_var=yes"
16831 else
16832 echo "configure: failed program was:" >&5
16833 cat conftest.$ac_ext >&5
16834 rm -rf conftest*
16835 eval "ac_cv_lib_$ac_lib_var=no"
16836 fi
16837 rm -f conftest*
16838 LIBS="$ac_save_LIBS"
16839
16840 fi
16841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16842 echo "$ac_t""yes" 1>&6
16843 INET_LINK="$INET_LINK -lsocket"
16844 else
16845 echo "$ac_t""no" 1>&6
16846
16847 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
16848 wxUSE_SOCKETS=no
16849
16850
16851 fi
16852
16853
16854 fi
16855
16856 fi
16857
16858
16859 if test "$wxUSE_SOCKETS" = "yes" ; then
16860 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
16861 echo "configure:16862: checking what is the type of the third argument of getsockname" >&5
16862 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16863 echo $ac_n "(cached) $ac_c" 1>&6
16864 else
16865
16866
16867 ac_ext=C
16868 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16869 ac_cpp='$CXXCPP $CPPFLAGS'
16870 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16871 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16872 cross_compiling=$ac_cv_prog_cxx_cross
16873
16874
16875 cat > conftest.$ac_ext <<EOF
16876 #line 16877 "configure"
16877 #include "confdefs.h"
16878
16879 #include <sys/types.h>
16880 #include <sys/socket.h>
16881
16882 int main() {
16883
16884 socklen_t len;
16885 getsockname(0, 0, &len);
16886
16887 ; return 0; }
16888 EOF
16889 if { (eval echo configure:16890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16890 rm -rf conftest*
16891 wx_cv_type_getsockname3=socklen_t
16892 else
16893 echo "configure: failed program was:" >&5
16894 cat conftest.$ac_ext >&5
16895 rm -rf conftest*
16896 cat > conftest.$ac_ext <<EOF
16897 #line 16898 "configure"
16898 #include "confdefs.h"
16899
16900 #include <sys/types.h>
16901 #include <sys/socket.h>
16902
16903 int main() {
16904
16905 size_t len;
16906 getsockname(0, 0, &len);
16907
16908 ; return 0; }
16909 EOF
16910 if { (eval echo configure:16911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16911 rm -rf conftest*
16912 wx_cv_type_getsockname3=size_t
16913 else
16914 echo "configure: failed program was:" >&5
16915 cat conftest.$ac_ext >&5
16916 rm -rf conftest*
16917 cat > conftest.$ac_ext <<EOF
16918 #line 16919 "configure"
16919 #include "confdefs.h"
16920
16921 #include <sys/types.h>
16922 #include <sys/socket.h>
16923
16924 int main() {
16925
16926 int len;
16927 getsockname(0, 0, &len);
16928
16929 ; return 0; }
16930 EOF
16931 if { (eval echo configure:16932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16932 rm -rf conftest*
16933 wx_cv_type_getsockname3=int
16934 else
16935 echo "configure: failed program was:" >&5
16936 cat conftest.$ac_ext >&5
16937 rm -rf conftest*
16938 wx_cv_type_getsockname3=unknown
16939
16940 fi
16941 rm -f conftest*
16942
16943 fi
16944 rm -f conftest*
16945
16946 fi
16947 rm -f conftest*
16948
16949 ac_ext=c
16950 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16951 ac_cpp='$CPP $CPPFLAGS'
16952 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16953 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16954 cross_compiling=$ac_cv_prog_cc_cross
16955
16956
16957 fi
16958
16959 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
16960
16961 if test "$wx_cv_type_getsockname3" = "unknown"; then
16962 wxUSE_SOCKETS=no
16963 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
16964 else
16965 cat >> confdefs.h <<EOF
16966 #define SOCKLEN_T $wx_cv_type_getsockname3
16967 EOF
16968
16969 fi
16970 fi
16971 fi
16972
16973 if test "$wxUSE_SOCKETS" = "yes" ; then
16974 cat >> confdefs.h <<\EOF
16975 #define wxUSE_SOCKETS 1
16976 EOF
16977
16978 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
16979 fi
16980
16981
16982 if test "$wxUSE_GUI" = "yes"; then
16983
16984 if test "$TOOLKIT" != "MSW"; then
16985 if test "$wxUSE_JOYSTICK" = "yes"; then
16986 for ac_hdr in linux/joystick.h
16987 do
16988 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16989 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16990 echo "configure:16991: checking for $ac_hdr" >&5
16991 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16992 echo $ac_n "(cached) $ac_c" 1>&6
16993 else
16994 cat > conftest.$ac_ext <<EOF
16995 #line 16996 "configure"
16996 #include "confdefs.h"
16997 #include <$ac_hdr>
16998 EOF
16999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17000 { (eval echo configure:17001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17002 if test -z "$ac_err"; then
17003 rm -rf conftest*
17004 eval "ac_cv_header_$ac_safe=yes"
17005 else
17006 echo "$ac_err" >&5
17007 echo "configure: failed program was:" >&5
17008 cat conftest.$ac_ext >&5
17009 rm -rf conftest*
17010 eval "ac_cv_header_$ac_safe=no"
17011 fi
17012 rm -f conftest*
17013 fi
17014 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17015 echo "$ac_t""yes" 1>&6
17016 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17017 cat >> confdefs.h <<EOF
17018 #define $ac_tr_hdr 1
17019 EOF
17020
17021 else
17022 echo "$ac_t""no" 1>&6
17023 fi
17024 done
17025
17026 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
17027 wxUSE_JOYSTICK=no
17028 echo "configure: warning: Joystick not supported by this system" 1>&2
17029 fi
17030 fi
17031 fi
17032
17033 if test "$wxUSE_JOYSTICK" = "yes"; then
17034 cat >> confdefs.h <<\EOF
17035 #define wxUSE_JOYSTICK 1
17036 EOF
17037
17038 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
17039 fi
17040 fi
17041
17042
17043 if test "$TOOLKIT" != "MSW"; then
17044
17045 HAVE_DL_FUNCS=0
17046 HAVE_SHL_FUNCS=0
17047 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
17048 if test "$USE_DARWIN" = 1; then
17049 HAVE_DL_FUNCS=1
17050 else
17051 for ac_func in dlopen
17052 do
17053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17054 echo "configure:17055: checking for $ac_func" >&5
17055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17056 echo $ac_n "(cached) $ac_c" 1>&6
17057 else
17058 cat > conftest.$ac_ext <<EOF
17059 #line 17060 "configure"
17060 #include "confdefs.h"
17061 /* System header to define __stub macros and hopefully few prototypes,
17062 which can conflict with char $ac_func(); below. */
17063 #include <assert.h>
17064 /* Override any gcc2 internal prototype to avoid an error. */
17065 /* We use char because int might match the return type of a gcc2
17066 builtin and then its argument prototype would still apply. */
17067 char $ac_func();
17068
17069 int main() {
17070
17071 /* The GNU C library defines this for functions which it implements
17072 to always fail with ENOSYS. Some functions are actually named
17073 something starting with __ and the normal name is an alias. */
17074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17075 choke me
17076 #else
17077 $ac_func();
17078 #endif
17079
17080 ; return 0; }
17081 EOF
17082 if { (eval echo configure:17083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17083 rm -rf conftest*
17084 eval "ac_cv_func_$ac_func=yes"
17085 else
17086 echo "configure: failed program was:" >&5
17087 cat conftest.$ac_ext >&5
17088 rm -rf conftest*
17089 eval "ac_cv_func_$ac_func=no"
17090 fi
17091 rm -f conftest*
17092 fi
17093
17094 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17095 echo "$ac_t""yes" 1>&6
17096 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17097 cat >> confdefs.h <<EOF
17098 #define $ac_tr_func 1
17099 EOF
17100
17101 cat >> confdefs.h <<\EOF
17102 #define HAVE_DLOPEN 1
17103 EOF
17104
17105 HAVE_DL_FUNCS=1
17106
17107 else
17108 echo "$ac_t""no" 1>&6
17109 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
17110 echo "configure:17111: checking for dlopen in -ldl" >&5
17111 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
17112 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17113 echo $ac_n "(cached) $ac_c" 1>&6
17114 else
17115 ac_save_LIBS="$LIBS"
17116 LIBS="-ldl $LIBS"
17117 cat > conftest.$ac_ext <<EOF
17118 #line 17119 "configure"
17119 #include "confdefs.h"
17120 /* Override any gcc2 internal prototype to avoid an error. */
17121 /* We use char because int might match the return type of a gcc2
17122 builtin and then its argument prototype would still apply. */
17123 char dlopen();
17124
17125 int main() {
17126 dlopen()
17127 ; return 0; }
17128 EOF
17129 if { (eval echo configure:17130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17130 rm -rf conftest*
17131 eval "ac_cv_lib_$ac_lib_var=yes"
17132 else
17133 echo "configure: failed program was:" >&5
17134 cat conftest.$ac_ext >&5
17135 rm -rf conftest*
17136 eval "ac_cv_lib_$ac_lib_var=no"
17137 fi
17138 rm -f conftest*
17139 LIBS="$ac_save_LIBS"
17140
17141 fi
17142 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17143 echo "$ac_t""yes" 1>&6
17144
17145 cat >> confdefs.h <<\EOF
17146 #define HAVE_DLOPEN 1
17147 EOF
17148
17149 HAVE_DL_FUNCS=1
17150 DL_LINK=" -ldl$DL_LINK"
17151
17152 else
17153 echo "$ac_t""no" 1>&6
17154
17155 for ac_func in shl_load
17156 do
17157 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17158 echo "configure:17159: checking for $ac_func" >&5
17159 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17160 echo $ac_n "(cached) $ac_c" 1>&6
17161 else
17162 cat > conftest.$ac_ext <<EOF
17163 #line 17164 "configure"
17164 #include "confdefs.h"
17165 /* System header to define __stub macros and hopefully few prototypes,
17166 which can conflict with char $ac_func(); below. */
17167 #include <assert.h>
17168 /* Override any gcc2 internal prototype to avoid an error. */
17169 /* We use char because int might match the return type of a gcc2
17170 builtin and then its argument prototype would still apply. */
17171 char $ac_func();
17172
17173 int main() {
17174
17175 /* The GNU C library defines this for functions which it implements
17176 to always fail with ENOSYS. Some functions are actually named
17177 something starting with __ and the normal name is an alias. */
17178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17179 choke me
17180 #else
17181 $ac_func();
17182 #endif
17183
17184 ; return 0; }
17185 EOF
17186 if { (eval echo configure:17187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17187 rm -rf conftest*
17188 eval "ac_cv_func_$ac_func=yes"
17189 else
17190 echo "configure: failed program was:" >&5
17191 cat conftest.$ac_ext >&5
17192 rm -rf conftest*
17193 eval "ac_cv_func_$ac_func=no"
17194 fi
17195 rm -f conftest*
17196 fi
17197
17198 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17199 echo "$ac_t""yes" 1>&6
17200 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17201 cat >> confdefs.h <<EOF
17202 #define $ac_tr_func 1
17203 EOF
17204
17205 cat >> confdefs.h <<\EOF
17206 #define HAVE_SHL_LOAD 1
17207 EOF
17208
17209 HAVE_SHL_FUNCS=1
17210
17211 else
17212 echo "$ac_t""no" 1>&6
17213 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
17214 echo "configure:17215: checking for dld in -lshl_load" >&5
17215 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
17216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17217 echo $ac_n "(cached) $ac_c" 1>&6
17218 else
17219 ac_save_LIBS="$LIBS"
17220 LIBS="-lshl_load $LIBS"
17221 cat > conftest.$ac_ext <<EOF
17222 #line 17223 "configure"
17223 #include "confdefs.h"
17224 /* Override any gcc2 internal prototype to avoid an error. */
17225 /* We use char because int might match the return type of a gcc2
17226 builtin and then its argument prototype would still apply. */
17227 char dld();
17228
17229 int main() {
17230 dld()
17231 ; return 0; }
17232 EOF
17233 if { (eval echo configure:17234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17234 rm -rf conftest*
17235 eval "ac_cv_lib_$ac_lib_var=yes"
17236 else
17237 echo "configure: failed program was:" >&5
17238 cat conftest.$ac_ext >&5
17239 rm -rf conftest*
17240 eval "ac_cv_lib_$ac_lib_var=no"
17241 fi
17242 rm -f conftest*
17243 LIBS="$ac_save_LIBS"
17244
17245 fi
17246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17247 echo "$ac_t""yes" 1>&6
17248
17249 HAVE_SHL_FUNCS=1
17250 DL_LINK=" -ldld$DL_LINK"
17251
17252 else
17253 echo "$ac_t""no" 1>&6
17254 fi
17255
17256
17257 fi
17258 done
17259
17260
17261 fi
17262
17263
17264 fi
17265 done
17266
17267
17268 if test "$HAVE_DL_FUNCS" = 1; then
17269 for ac_func in dlerror
17270 do
17271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17272 echo "configure:17273: checking for $ac_func" >&5
17273 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17274 echo $ac_n "(cached) $ac_c" 1>&6
17275 else
17276 cat > conftest.$ac_ext <<EOF
17277 #line 17278 "configure"
17278 #include "confdefs.h"
17279 /* System header to define __stub macros and hopefully few prototypes,
17280 which can conflict with char $ac_func(); below. */
17281 #include <assert.h>
17282 /* Override any gcc2 internal prototype to avoid an error. */
17283 /* We use char because int might match the return type of a gcc2
17284 builtin and then its argument prototype would still apply. */
17285 char $ac_func();
17286
17287 int main() {
17288
17289 /* The GNU C library defines this for functions which it implements
17290 to always fail with ENOSYS. Some functions are actually named
17291 something starting with __ and the normal name is an alias. */
17292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17293 choke me
17294 #else
17295 $ac_func();
17296 #endif
17297
17298 ; return 0; }
17299 EOF
17300 if { (eval echo configure:17301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17301 rm -rf conftest*
17302 eval "ac_cv_func_$ac_func=yes"
17303 else
17304 echo "configure: failed program was:" >&5
17305 cat conftest.$ac_ext >&5
17306 rm -rf conftest*
17307 eval "ac_cv_func_$ac_func=no"
17308 fi
17309 rm -f conftest*
17310 fi
17311
17312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17313 echo "$ac_t""yes" 1>&6
17314 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17315 cat >> confdefs.h <<EOF
17316 #define $ac_tr_func 1
17317 EOF
17318 cat >> confdefs.h <<\EOF
17319 #define HAVE_DLERROR 1
17320 EOF
17321
17322 else
17323 echo "$ac_t""no" 1>&6
17324 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
17325 echo "configure:17326: checking for dlerror in -ldl" >&5
17326 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
17327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17328 echo $ac_n "(cached) $ac_c" 1>&6
17329 else
17330 ac_save_LIBS="$LIBS"
17331 LIBS="-ldl $LIBS"
17332 cat > conftest.$ac_ext <<EOF
17333 #line 17334 "configure"
17334 #include "confdefs.h"
17335 /* Override any gcc2 internal prototype to avoid an error. */
17336 /* We use char because int might match the return type of a gcc2
17337 builtin and then its argument prototype would still apply. */
17338 char dlerror();
17339
17340 int main() {
17341 dlerror()
17342 ; return 0; }
17343 EOF
17344 if { (eval echo configure:17345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17345 rm -rf conftest*
17346 eval "ac_cv_lib_$ac_lib_var=yes"
17347 else
17348 echo "configure: failed program was:" >&5
17349 cat conftest.$ac_ext >&5
17350 rm -rf conftest*
17351 eval "ac_cv_lib_$ac_lib_var=no"
17352 fi
17353 rm -f conftest*
17354 LIBS="$ac_save_LIBS"
17355
17356 fi
17357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17358 echo "$ac_t""yes" 1>&6
17359 cat >> confdefs.h <<\EOF
17360 #define HAVE_DLERROR 1
17361 EOF
17362
17363 else
17364 echo "$ac_t""no" 1>&6
17365 fi
17366
17367 fi
17368 done
17369
17370 fi
17371 fi
17372
17373 if test "$HAVE_DL_FUNCS" = 0; then
17374 if test "$HAVE_SHL_FUNCS" = 0; then
17375 if test "$USE_UNIX" = 1; then
17376 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
17377 wxUSE_DYNLIB_CLASS=no
17378 else
17379 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
17380 fi
17381 fi
17382 fi
17383 fi
17384 fi
17385
17386 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
17387 cat >> confdefs.h <<\EOF
17388 #define wxUSE_DYNLIB_CLASS 1
17389 EOF
17390
17391 else
17392 wxUSE_ODBC=no
17393 wxUSE_SERIAL=no
17394 fi
17395
17396
17397 if test "$wxUSE_FONTMAP" = "yes" ; then
17398 cat >> confdefs.h <<\EOF
17399 #define wxUSE_FONTMAP 1
17400 EOF
17401
17402 fi
17403
17404 if test "$wxUSE_UNICODE" = "yes" ; then
17405 cat >> confdefs.h <<\EOF
17406 #define wxUSE_UNICODE 1
17407 EOF
17408
17409 fi
17410
17411 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
17412 cat >> confdefs.h <<\EOF
17413 #define wxUSE_EXPERIMENTAL_PRINTF 1
17414 EOF
17415
17416 fi
17417
17418
17419 if test "$wxUSE_SERIAL" = "yes" ; then
17420 cat >> confdefs.h <<\EOF
17421 #define wxUSE_SERIAL 1
17422 EOF
17423
17424 fi
17425
17426
17427 IODBC_C_SRC=""
17428 if test "$wxUSE_ODBC" = "yes" ; then
17429 cat >> confdefs.h <<\EOF
17430 #define wxUSE_ODBC 1
17431 EOF
17432
17433 WXODBCFLAG="-D_IODBC_"
17434 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
17435 fi
17436
17437
17438 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
17439 cat >> confdefs.h <<\EOF
17440 #define wxUSE_POSTSCRIPT 1
17441 EOF
17442
17443 fi
17444
17445 cat >> confdefs.h <<\EOF
17446 #define wxUSE_AFM_FOR_POSTSCRIPT 1
17447 EOF
17448
17449
17450 cat >> confdefs.h <<\EOF
17451 #define wxUSE_NORMALIZED_PS_FONTS 1
17452 EOF
17453
17454
17455
17456 if test "$wxUSE_CONSTRAINTS" = "yes"; then
17457 cat >> confdefs.h <<\EOF
17458 #define wxUSE_CONSTRAINTS 1
17459 EOF
17460
17461 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
17462 fi
17463
17464 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17465 if test "$wxUSE_UNIVERSAL" = "yes"; then
17466 echo "configure: warning: MDI is not supported for wxUNIVERSAL yet... disabled" 1>&2
17467 wxUSE_MDI_ARCHITECTURE=no
17468 fi
17469
17470 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17471 cat >> confdefs.h <<\EOF
17472 #define wxUSE_MDI_ARCHITECTURE 1
17473 EOF
17474
17475 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
17476 fi
17477 fi
17478
17479 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
17480 cat >> confdefs.h <<\EOF
17481 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
17482 EOF
17483
17484 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
17485 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17486 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
17487 fi
17488 fi
17489
17490 if test "$wxUSE_HELP" = "yes"; then
17491 cat >> confdefs.h <<\EOF
17492 #define wxUSE_HELP 1
17493 EOF
17494
17495 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
17496
17497 if test "$wxUSE_MSW" = 1; then
17498 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
17499 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
17500 echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
17501 echo "configure:17502: checking for htmlhelp.h" >&5
17502 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17503 echo $ac_n "(cached) $ac_c" 1>&6
17504 else
17505 cat > conftest.$ac_ext <<EOF
17506 #line 17507 "configure"
17507 #include "confdefs.h"
17508 #include <htmlhelp.h>
17509 EOF
17510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17511 { (eval echo configure:17512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17512 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17513 if test -z "$ac_err"; then
17514 rm -rf conftest*
17515 eval "ac_cv_header_$ac_safe=yes"
17516 else
17517 echo "$ac_err" >&5
17518 echo "configure: failed program was:" >&5
17519 cat conftest.$ac_ext >&5
17520 rm -rf conftest*
17521 eval "ac_cv_header_$ac_safe=no"
17522 fi
17523 rm -f conftest*
17524 fi
17525 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17526 echo "$ac_t""yes" 1>&6
17527
17528 cat >> confdefs.h <<\EOF
17529 #define wxUSE_MS_HTML_HELP 1
17530 EOF
17531
17532
17533 else
17534 echo "$ac_t""no" 1>&6
17535
17536 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
17537 wxUSE_MS_HTML_HELP=no
17538
17539 fi
17540
17541 fi
17542 fi
17543
17544 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17545 if test "$wxUSE_HTML" = "yes"; then
17546 cat >> confdefs.h <<\EOF
17547 #define wxUSE_WXHTML_HELP 1
17548 EOF
17549
17550 else
17551 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17552 wxUSE_WXHTML_HELP=no
17553 fi
17554 fi
17555 fi
17556
17557 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17558 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17559 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
17560 else
17561 cat >> confdefs.h <<\EOF
17562 #define wxUSE_PRINTING_ARCHITECTURE 1
17563 EOF
17564
17565 fi
17566 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17567 fi
17568
17569 if test "$wxUSE_PROLOGIO" = "yes" ; then
17570 cat >> confdefs.h <<\EOF
17571 #define wxUSE_PROLOGIO 1
17572 EOF
17573
17574 fi
17575
17576 if test "$wxUSE_RESOURCES" = "yes" ; then
17577 cat >> confdefs.h <<\EOF
17578 #define wxUSE_RESOURCES 1
17579 EOF
17580
17581 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
17582 fi
17583
17584 if test "$wxUSE_X_RESOURCES" = "yes"; then
17585 cat >> confdefs.h <<\EOF
17586 #define wxUSE_X_RESOURCES 1
17587 EOF
17588
17589 fi
17590
17591
17592 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
17593 -o "$wxUSE_CLIPBOARD" = "yes" \
17594 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
17595 for ac_hdr in ole2.h
17596 do
17597 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17598 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17599 echo "configure:17600: checking for $ac_hdr" >&5
17600 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17601 echo $ac_n "(cached) $ac_c" 1>&6
17602 else
17603 cat > conftest.$ac_ext <<EOF
17604 #line 17605 "configure"
17605 #include "confdefs.h"
17606 #include <$ac_hdr>
17607 EOF
17608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17609 { (eval echo configure:17610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17611 if test -z "$ac_err"; then
17612 rm -rf conftest*
17613 eval "ac_cv_header_$ac_safe=yes"
17614 else
17615 echo "$ac_err" >&5
17616 echo "configure: failed program was:" >&5
17617 cat conftest.$ac_ext >&5
17618 rm -rf conftest*
17619 eval "ac_cv_header_$ac_safe=no"
17620 fi
17621 rm -f conftest*
17622 fi
17623 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17624 echo "$ac_t""yes" 1>&6
17625 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17626 cat >> confdefs.h <<EOF
17627 #define $ac_tr_hdr 1
17628 EOF
17629
17630 else
17631 echo "$ac_t""no" 1>&6
17632 fi
17633 done
17634
17635
17636 if test "$ac_cv_header_ole2_h" = "yes" ; then
17637 if test "$GCC" = yes ; then
17638 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
17639 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
17640 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
17641 cat >> confdefs.h <<\EOF
17642 #define wxUSE_OLE 1
17643 EOF
17644
17645
17646 fi
17647
17648 cat >> confdefs.h <<\EOF
17649 #define wxUSE_DATAOBJ 1
17650 EOF
17651
17652 else
17653 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
17654
17655 wxUSE_CLIPBOARD=no
17656 wxUSE_DRAG_AND_DROP=no
17657 wxUSE_DATAOBJ=no
17658 fi
17659
17660 if test "$wxUSE_METAFILE" = "yes"; then
17661 cat >> confdefs.h <<\EOF
17662 #define wxUSE_METAFILE 1
17663 EOF
17664
17665
17666 cat >> confdefs.h <<\EOF
17667 #define wxUSE_ENH_METAFILE 1
17668 EOF
17669
17670 fi
17671 fi
17672
17673 if test "$wxUSE_IPC" = "yes"; then
17674 if test "$wxUSE_SOCKETS" != "yes"; then
17675 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
17676 fi
17677
17678 cat >> confdefs.h <<\EOF
17679 #define wxUSE_IPC 1
17680 EOF
17681
17682 fi
17683
17684 if test "$wxUSE_CLIPBOARD" = "yes"; then
17685 cat >> confdefs.h <<\EOF
17686 #define wxUSE_CLIPBOARD 1
17687 EOF
17688
17689
17690 cat >> confdefs.h <<\EOF
17691 #define wxUSE_DATAOBJ 1
17692 EOF
17693
17694 fi
17695
17696 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17697 if test "$wxUSE_GTK" = 1; then
17698 if test "$WXGTK12" != 1; then
17699 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
17700 wxUSE_DRAG_AND_DROP=no
17701 fi
17702 fi
17703
17704 if test "$wxUSE_MOTIF" = 1; then
17705 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
17706 wxUSE_DRAG_AND_DROP=no
17707 fi
17708
17709 if test "$wxUSE_MAC" = 1; then
17710 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
17711 wxUSE_DRAG_AND_DROP=no
17712 fi
17713
17714 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
17715 cat >> confdefs.h <<\EOF
17716 #define wxUSE_DRAG_AND_DROP 1
17717 EOF
17718
17719 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17720 fi
17721
17722 fi
17723
17724 if test "$wxUSE_SPLINES" = "yes" ; then
17725 cat >> confdefs.h <<\EOF
17726 #define wxUSE_SPLINES 1
17727 EOF
17728
17729 fi
17730
17731
17732 USES_CONTROLS=0
17733 if test "$wxUSE_CONTROLS" = "yes"; then
17734 USES_CONTROLS=1
17735 fi
17736
17737 if test "$wxUSE_ACCEL" = "yes"; then
17738 cat >> confdefs.h <<\EOF
17739 #define wxUSE_ACCEL 1
17740 EOF
17741
17742 USES_CONTROLS=1
17743 fi
17744
17745 if test "$wxUSE_BUTTON" = "yes"; then
17746 cat >> confdefs.h <<\EOF
17747 #define wxUSE_BUTTON 1
17748 EOF
17749
17750 USES_CONTROLS=1
17751 fi
17752
17753 if test "$wxUSE_BMPBUTTON" = "yes"; then
17754 cat >> confdefs.h <<\EOF
17755 #define wxUSE_BMPBUTTON 1
17756 EOF
17757
17758 USES_CONTROLS=1
17759 fi
17760
17761 if test "$wxUSE_CALCTRL" = "yes"; then
17762 cat >> confdefs.h <<\EOF
17763 #define wxUSE_CALENDARCTRL 1
17764 EOF
17765
17766 USES_CONTROLS=1
17767 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
17768 fi
17769
17770 if test "$wxUSE_CARET" = "yes"; then
17771 cat >> confdefs.h <<\EOF
17772 #define wxUSE_CARET 1
17773 EOF
17774
17775 USES_CONTROLS=1
17776 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17777 fi
17778
17779 if test "$wxUSE_COMBOBOX" = "yes"; then
17780 cat >> confdefs.h <<\EOF
17781 #define wxUSE_COMBOBOX 1
17782 EOF
17783
17784 USES_CONTROLS=1
17785 fi
17786
17787 if test "$wxUSE_CHOICE" = "yes"; then
17788 cat >> confdefs.h <<\EOF
17789 #define wxUSE_CHOICE 1
17790 EOF
17791
17792 USES_CONTROLS=1
17793 fi
17794
17795 if test "$wxUSE_CHECKBOX" = "yes"; then
17796 cat >> confdefs.h <<\EOF
17797 #define wxUSE_CHECKBOX 1
17798 EOF
17799
17800 USES_CONTROLS=1
17801 fi
17802
17803 if test "$wxUSE_CHECKLST" = "yes"; then
17804 cat >> confdefs.h <<\EOF
17805 #define wxUSE_CHECKLISTBOX 1
17806 EOF
17807
17808 USES_CONTROLS=1
17809 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17810 fi
17811
17812 if test "$wxUSE_GAUGE" = "yes"; then
17813 cat >> confdefs.h <<\EOF
17814 #define wxUSE_GAUGE 1
17815 EOF
17816
17817 USES_CONTROLS=1
17818 fi
17819
17820 if test "$wxUSE_NEW_GRID" = "yes"; then
17821 wxUSE_GRID="yes"
17822 cat >> confdefs.h <<\EOF
17823 #define wxUSE_NEW_GRID 1
17824 EOF
17825
17826 USES_CONTROLS=1
17827 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
17828 fi
17829
17830 if test "$wxUSE_GRID" = "yes"; then
17831 cat >> confdefs.h <<\EOF
17832 #define wxUSE_GRID 1
17833 EOF
17834
17835 USES_CONTROLS=1
17836 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
17837 fi
17838
17839 if test "$wxUSE_IMAGLIST" = "yes"; then
17840 cat >> confdefs.h <<\EOF
17841 #define wxUSE_IMAGLIST 1
17842 EOF
17843
17844 fi
17845
17846 if test "$wxUSE_LISTBOX" = "yes"; then
17847 cat >> confdefs.h <<\EOF
17848 #define wxUSE_LISTBOX 1
17849 EOF
17850
17851 USES_CONTROLS=1
17852 fi
17853
17854 if test "$wxUSE_LISTCTRL" = "yes"; then
17855 if test "$wxUSE_IMAGLIST" = "yes"; then
17856 cat >> confdefs.h <<\EOF
17857 #define wxUSE_LISTCTRL 1
17858 EOF
17859
17860 USES_CONTROLS=1
17861 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17862 else
17863 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
17864 fi
17865 fi
17866
17867 if test "$wxUSE_NOTEBOOK" = "yes"; then
17868 cat >> confdefs.h <<\EOF
17869 #define wxUSE_NOTEBOOK 1
17870 EOF
17871
17872 USES_CONTROLS=1
17873 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17874 fi
17875
17876 if test "$wxUSE_PROPSHEET" = "yes"; then
17877 cat >> confdefs.h <<\EOF
17878 #define wxUSE_PROPSHEET 1
17879 EOF
17880
17881 USES_CONTROLS=1
17882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
17883 fi
17884
17885 if test "$wxUSE_RADIOBOX" = "yes"; then
17886 cat >> confdefs.h <<\EOF
17887 #define wxUSE_RADIOBOX 1
17888 EOF
17889
17890 USES_CONTROLS=1
17891 fi
17892
17893 if test "$wxUSE_RADIOBTN" = "yes"; then
17894 cat >> confdefs.h <<\EOF
17895 #define wxUSE_RADIOBTN 1
17896 EOF
17897
17898 USES_CONTROLS=1
17899 fi
17900
17901 if test "$wxUSE_SASH" = "yes"; then
17902 cat >> confdefs.h <<\EOF
17903 #define wxUSE_SASH 1
17904 EOF
17905
17906 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17907 fi
17908
17909 if test "$wxUSE_SCROLLBAR" = "yes"; then
17910 cat >> confdefs.h <<\EOF
17911 #define wxUSE_SCROLLBAR 1
17912 EOF
17913
17914 USES_CONTROLS=1
17915 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
17916 fi
17917
17918 if test "$wxUSE_SLIDER" = "yes"; then
17919 cat >> confdefs.h <<\EOF
17920 #define wxUSE_SLIDER 1
17921 EOF
17922
17923 USES_CONTROLS=1
17924 fi
17925
17926 if test "$wxUSE_SPINBTN" = "yes"; then
17927 cat >> confdefs.h <<\EOF
17928 #define wxUSE_SPINBTN 1
17929 EOF
17930
17931 USES_CONTROLS=1
17932 fi
17933
17934 if test "$wxUSE_SPINCTRL" = "yes"; then
17935 cat >> confdefs.h <<\EOF
17936 #define wxUSE_SPINCTRL 1
17937 EOF
17938
17939 USES_CONTROLS=1
17940 fi
17941
17942 if test "$wxUSE_SPLITTER" = "yes"; then
17943 cat >> confdefs.h <<\EOF
17944 #define wxUSE_SPLITTER 1
17945 EOF
17946
17947 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17948 fi
17949
17950 if test "$wxUSE_STATBMP" = "yes"; then
17951 cat >> confdefs.h <<\EOF
17952 #define wxUSE_STATBMP 1
17953 EOF
17954
17955 USES_CONTROLS=1
17956 fi
17957
17958 if test "$wxUSE_STATBOX" = "yes"; then
17959 cat >> confdefs.h <<\EOF
17960 #define wxUSE_STATBOX 1
17961 EOF
17962
17963 USES_CONTROLS=1
17964 fi
17965
17966 if test "$wxUSE_STATTEXT" = "yes"; then
17967 cat >> confdefs.h <<\EOF
17968 #define wxUSE_STATTEXT 1
17969 EOF
17970
17971 USES_CONTROLS=1
17972 fi
17973
17974 if test "$wxUSE_STATLINE" = "yes"; then
17975 if test "$wxUSE_WINE" = 1 ; then
17976 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
17977 else
17978 cat >> confdefs.h <<\EOF
17979 #define wxUSE_STATLINE 1
17980 EOF
17981
17982 USES_CONTROLS=1
17983 fi
17984 fi
17985
17986 if test "$wxUSE_STATUSBAR" = "yes"; then
17987 cat >> confdefs.h <<\EOF
17988 #define wxUSE_STATUSBAR 1
17989 EOF
17990
17991 USES_CONTROLS=1
17992
17993 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
17994 fi
17995
17996 if test "$wxUSE_TABDIALOG" = "yes"; then
17997 cat >> confdefs.h <<\EOF
17998 #define wxUSE_TAB_DIALOG 1
17999 EOF
18000
18001 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
18002 fi
18003
18004 if test "$wxUSE_TEXTCTRL" = "yes"; then
18005 cat >> confdefs.h <<\EOF
18006 #define wxUSE_TEXTCTRL 1
18007 EOF
18008
18009 USES_CONTROLS=1
18010 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
18011 fi
18012
18013 if test "$wxUSE_TOGGLEBTN" = "yes"; then
18014 if test "$wxUSE_MAC" = 1 -o "$wxUSE_UNIVERSAL" = "yes"; then
18015 echo "configure: warning: Toggle button not yet supported under Mac OS X or wxUNIVERSAL... disabled" 1>&2
18016 wxUSE_TOGGLEBTN=no
18017 fi
18018
18019 if test "$wxUSE_TOGGLEBTN" = "yes"; then
18020 cat >> confdefs.h <<\EOF
18021 #define wxUSE_TOGGLEBTN 1
18022 EOF
18023
18024 USES_CONTROLS=1
18025 fi
18026 fi
18027
18028 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
18029 cat >> confdefs.h <<\EOF
18030 #define wxUSE_TOOLBAR_SIMPLE 1
18031 EOF
18032
18033 wxUSE_TOOLBAR="yes"
18034 USES_CONTROLS=1
18035 fi
18036
18037 if test "$wxUSE_TOOLBAR" = "yes"; then
18038 cat >> confdefs.h <<\EOF
18039 #define wxUSE_TOOLBAR 1
18040 EOF
18041
18042 USES_CONTROLS=1
18043
18044 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
18045 wxUSE_TOOLBAR_NATIVE="yes"
18046 fi
18047
18048 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
18049 cat >> confdefs.h <<\EOF
18050 #define wxUSE_TOOLBAR_NATIVE 1
18051 EOF
18052
18053 USES_CONTROLS=1
18054 fi
18055
18056 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
18057 fi
18058
18059 if test "$wxUSE_TOOLTIPS" = "yes"; then
18060 if test "$wxUSE_MOTIF" = 1; then
18061 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
18062 else
18063 if test "$wxUSE_WINE" = 1; then
18064 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
18065 else
18066 cat >> confdefs.h <<\EOF
18067 #define wxUSE_TOOLTIPS 1
18068 EOF
18069
18070 fi
18071 fi
18072 fi
18073
18074 if test "$wxUSE_TREECTRL" = "yes"; then
18075 if test "$wxUSE_IMAGLIST" = "yes"; then
18076 cat >> confdefs.h <<\EOF
18077 #define wxUSE_TREECTRL 1
18078 EOF
18079
18080 USES_CONTROLS=1
18081 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
18082 else
18083 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
18084 fi
18085 fi
18086
18087 if test "$wxUSE_POPUPWIN" = "yes"; then
18088 if test "$wxUSE_MAC" = 1; then
18089 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
18090 else
18091 cat >> confdefs.h <<\EOF
18092 #define wxUSE_POPUPWIN 1
18093 EOF
18094
18095 USES_CONTROLS=1
18096 fi
18097 fi
18098
18099 if test "$USES_CONTROLS" = 1; then
18100 cat >> confdefs.h <<\EOF
18101 #define wxUSE_CONTROLS 1
18102 EOF
18103
18104 fi
18105
18106
18107 if test "$wxUSE_TREELAYOUT" = "yes"; then
18108 cat >> confdefs.h <<\EOF
18109 #define wxUSE_TREELAYOUT 1
18110 EOF
18111
18112 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
18113 fi
18114
18115 if test "$wxUSE_DRAGIMAGE" = "yes"; then
18116 cat >> confdefs.h <<\EOF
18117 #define wxUSE_DRAGIMAGE 1
18118 EOF
18119
18120 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
18121 fi
18122
18123 if test "$wxUSE_MENUS" = "yes"; then
18124 cat >> confdefs.h <<\EOF
18125 #define wxUSE_MENUS 1
18126 EOF
18127
18128 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
18129 fi
18130
18131 if test "$wxUSE_METAFILE" = "yes"; then
18132 cat >> confdefs.h <<\EOF
18133 #define wxUSE_METAFILE 1
18134 EOF
18135
18136 fi
18137
18138 if test "$wxUSE_MIMETYPE" = "yes"; then
18139 cat >> confdefs.h <<\EOF
18140 #define wxUSE_MIMETYPE 1
18141 EOF
18142
18143 fi
18144
18145 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
18146 cat >> confdefs.h <<\EOF
18147 #define wxUSE_SYSTEM_OPTIONS 1
18148 EOF
18149
18150 fi
18151
18152 if test "$wxUSE_MINIFRAME" = "yes"; then
18153 cat >> confdefs.h <<\EOF
18154 #define wxUSE_MINIFRAME 1
18155 EOF
18156
18157 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
18158 fi
18159
18160 if test "$wxUSE_HTML" = "yes"; then
18161 cat >> confdefs.h <<\EOF
18162 #define wxUSE_HTML 1
18163 EOF
18164
18165 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
18166 fi
18167
18168 if test "$wxUSE_VALIDATORS" = "yes"; then
18169 cat >> confdefs.h <<\EOF
18170 #define wxUSE_VALIDATORS 1
18171 EOF
18172
18173 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
18174 fi
18175
18176 if test "$wxUSE_PALETTE" = "yes" ; then
18177 cat >> confdefs.h <<\EOF
18178 #define wxUSE_PALETTE 1
18179 EOF
18180
18181 fi
18182
18183 if test "$wxUSE_IMAGE" = "yes" ; then
18184 cat >> confdefs.h <<\EOF
18185 #define wxUSE_IMAGE 1
18186 EOF
18187
18188 fi
18189
18190 if test "$wxUSE_GIF" = "yes" ; then
18191 cat >> confdefs.h <<\EOF
18192 #define wxUSE_GIF 1
18193 EOF
18194
18195 fi
18196
18197 if test "$wxUSE_PCX" = "yes" ; then
18198 cat >> confdefs.h <<\EOF
18199 #define wxUSE_PCX 1
18200 EOF
18201
18202 fi
18203
18204 if test "$wxUSE_PNM" = "yes" ; then
18205 cat >> confdefs.h <<\EOF
18206 #define wxUSE_PNM 1
18207 EOF
18208
18209 fi
18210
18211 if test "$wxUSE_XPM" = "yes" ; then
18212 cat >> confdefs.h <<\EOF
18213 #define wxUSE_XPM 1
18214 EOF
18215
18216 fi
18217
18218
18219 if test "$wxUSE_CHOICEDLG" = "yes"; then
18220 cat >> confdefs.h <<\EOF
18221 #define wxUSE_CHOICEDLG 1
18222 EOF
18223
18224 fi
18225
18226 if test "$wxUSE_COLOURDLG" = "yes"; then
18227 cat >> confdefs.h <<\EOF
18228 #define wxUSE_COLOURDLG 1
18229 EOF
18230
18231 fi
18232
18233 if test "$wxUSE_FILEDLG" = "yes"; then
18234 cat >> confdefs.h <<\EOF
18235 #define wxUSE_FILEDLG 1
18236 EOF
18237
18238 fi
18239
18240 if test "$wxUSE_FINDREPLDLG" = "yes"; then
18241 cat >> confdefs.h <<\EOF
18242 #define wxUSE_FINDREPLDLG 1
18243 EOF
18244
18245 fi
18246
18247 if test "$wxUSE_FONTDLG" = "yes"; then
18248 cat >> confdefs.h <<\EOF
18249 #define wxUSE_FONTDLG 1
18250 EOF
18251
18252 fi
18253
18254 if test "$wxUSE_DIRDLG" = "yes"; then
18255 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18256 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
18257 else
18258 if test "$wxUSE_TREECTRL" != "yes"; then
18259 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
18260 else
18261 cat >> confdefs.h <<\EOF
18262 #define wxUSE_DIRDLG 1
18263 EOF
18264
18265 fi
18266 fi
18267 fi
18268
18269 if test "$wxUSE_MSGDLG" = "yes"; then
18270 cat >> confdefs.h <<\EOF
18271 #define wxUSE_MSGDLG 1
18272 EOF
18273
18274 fi
18275
18276 if test "$wxUSE_NUMBERDLG" = "yes"; then
18277 cat >> confdefs.h <<\EOF
18278 #define wxUSE_NUMBERDLG 1
18279 EOF
18280
18281 fi
18282
18283 if test "$wxUSE_PROGRESSDLG" = "yes"; then
18284 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18285 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
18286 else
18287 cat >> confdefs.h <<\EOF
18288 #define wxUSE_PROGRESSDLG 1
18289 EOF
18290
18291 fi
18292 fi
18293
18294 if test "$wxUSE_SPLASH" = "yes"; then
18295 cat >> confdefs.h <<\EOF
18296 #define wxUSE_SPLASH 1
18297 EOF
18298
18299 fi
18300
18301 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
18302 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18303 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
18304 else
18305 cat >> confdefs.h <<\EOF
18306 #define wxUSE_STARTUP_TIPS 1
18307 EOF
18308
18309 fi
18310 fi
18311
18312 if test "$wxUSE_TEXTDLG" = "yes"; then
18313 cat >> confdefs.h <<\EOF
18314 #define wxUSE_TEXTDLG 1
18315 EOF
18316
18317 fi
18318
18319 if test "$wxUSE_WIZARDDLG" = "yes"; then
18320 cat >> confdefs.h <<\EOF
18321 #define wxUSE_WIZARDDLG 1
18322 EOF
18323
18324 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
18325 fi
18326
18327
18328 if test "$cross_compiling" = "yes"; then
18329 OSINFO="\"$host\""
18330 else
18331 OSINFO=`uname -s -r -m`
18332 OSINFO="\"$OSINFO\""
18333 fi
18334
18335 cat >> confdefs.h <<EOF
18336 #define WXWIN_OS_DESCRIPTION $OSINFO
18337 EOF
18338
18339
18340
18341 if test "x$prefix" != "xNONE"; then
18342 wxPREFIX=$prefix
18343 else
18344 wxPREFIX=$ac_default_prefix
18345 fi
18346
18347 cat >> confdefs.h <<EOF
18348 #define wxINSTALL_PREFIX "$wxPREFIX"
18349 EOF
18350
18351
18352
18353
18354
18355 if test "$wxUSE_MAC" = 1 ; then
18356 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
18357 fi
18358
18359
18360 LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS"
18361
18362 if test "$wxUSE_GUI" = "yes"; then
18363
18364 LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS"
18365
18366
18367 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
18368 drawing dynamic erase event exec font image \
18369 minimal richedit rotate widgets"
18370
18371 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
18372 else
18373 SAMPLES_SUBDIRS="console"
18374 fi
18375
18376
18377 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
18378 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
18379 $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
18380
18381 if test "$wxUSE_GTK" = 1; then
18382 WXCONFIG_INCLUDE=
18383 else
18384 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
18385 fi
18386
18387 if test "$GXX" = yes ; then
18388 CXXWARNINGS="-Wall"
18389
18390 if test "$wxUSE_NO_DEPS" = "no" ; then
18391 CFLAGS="-MMD $CFLAGS"
18392 CXXFLAGS="-MMD $CXXFLAGS"
18393 fi
18394 fi
18395
18396 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG$PROFILE $OPTIMISE $INCLUDES"
18397
18398 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
18399 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
18400
18401 LDFLAGS="$LDFLAGS$PROFILE"
18402
18403 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
18492 echo "configure:18493: checking whether ${MAKE-make} sets \${MAKE}" >&5
18493 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
18494 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
18495 echo $ac_n "(cached) $ac_c" 1>&6
18496 else
18497 cat > conftestmake <<\EOF
18498 all:
18499 @echo 'ac_maketemp="${MAKE}"'
18500 EOF
18501 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18502 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
18503 if test -n "$ac_maketemp"; then
18504 eval ac_cv_prog_make_${ac_make}_set=yes
18505 else
18506 eval ac_cv_prog_make_${ac_make}_set=no
18507 fi
18508 rm -f conftestmake
18509 fi
18510 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
18511 echo "$ac_t""yes" 1>&6
18512 SET_MAKE=
18513 else
18514 echo "$ac_t""no" 1>&6
18515 SET_MAKE="MAKE=${MAKE-make}"
18516 fi
18517
18518
18519 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
18520 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
18521 fi
18522
18523
18524
18525 if test "$wxUSE_GUI" = "yes"; then
18526 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
18527 wx_cv_path_ifs=$PATH_IFS
18528 wx_cv_program_ext=$PROGRAM_EXT
18529 wx_cv_target_library=$WX_TARGET_LIBRARY
18530 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
18531 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
18532 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
18533 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
18534 subdirs="demos samples utils contrib"
18535
18536 fi
18537
18538 trap '' 1 2 15
18539 cat > confcache <<\EOF
18540 # This file is a shell script that caches the results of configure
18541 # tests run on this system so they can be shared between configure
18542 # scripts and configure runs. It is not useful on other systems.
18543 # If it contains results you don't want to keep, you may remove or edit it.
18544 #
18545 # By default, configure uses ./config.cache as the cache file,
18546 # creating it if it does not exist already. You can give configure
18547 # the --cache-file=FILE option to use a different cache file; that is
18548 # what configure does when it calls configure scripts in
18549 # subdirectories, so they share the cache.
18550 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18551 # config.status only pays attention to the cache file if you give it the
18552 # --recheck option to rerun configure.
18553 #
18554 EOF
18555 # The following way of writing the cache mishandles newlines in values,
18556 # but we know of no workaround that is simple, portable, and efficient.
18557 # So, don't put newlines in cache variables' values.
18558 # Ultrix sh set writes to stderr and can't be redirected directly,
18559 # and sets the high bit in the cache file unless we assign to the vars.
18560 (set) 2>&1 |
18561 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18562 *ac_space=\ *)
18563 # `set' does not quote correctly, so add quotes (double-quote substitution
18564 # turns \\\\ into \\, and sed turns \\ into \).
18565 sed -n \
18566 -e "s/'/'\\\\''/g" \
18567 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18568 ;;
18569 *)
18570 # `set' quotes correctly as required by POSIX, so do not add quotes.
18571 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18572 ;;
18573 esac >> confcache
18574 if cmp -s $cache_file confcache; then
18575 :
18576 else
18577 if test -w $cache_file; then
18578 echo "updating cache $cache_file"
18579 cat confcache > $cache_file
18580 else
18581 echo "not updating unwritable cache $cache_file"
18582 fi
18583 fi
18584 rm -f confcache
18585
18586 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18587
18588 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18589 # Let make expand exec_prefix.
18590 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18591
18592 # Any assignment to VPATH causes Sun make to only execute
18593 # the first set of double-colon rules, so remove it if not needed.
18594 # If there is a colon in the path, we need to keep it.
18595 if test "x$srcdir" = x.; then
18596 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
18597 fi
18598
18599 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18600
18601 DEFS=-DHAVE_CONFIG_H
18602
18603 # Without the "./", some shells look in PATH for config.status.
18604 : ${CONFIG_STATUS=./config.status}
18605
18606 echo creating $CONFIG_STATUS
18607 rm -f $CONFIG_STATUS
18608 cat > $CONFIG_STATUS <<EOF
18609 #! /bin/sh
18610 # Generated automatically by configure.
18611 # Run this file to recreate the current configuration.
18612 # This directory was configured as follows,
18613 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18614 #
18615 # $0 $ac_configure_args
18616 #
18617 # Compiler output produced by configure, useful for debugging
18618 # configure, is in ./config.log if it exists.
18619
18620 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18621 for ac_option
18622 do
18623 case "\$ac_option" in
18624 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18625 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18626 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18627 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18628 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18629 exit 0 ;;
18630 -help | --help | --hel | --he | --h)
18631 echo "\$ac_cs_usage"; exit 0 ;;
18632 *) echo "\$ac_cs_usage"; exit 1 ;;
18633 esac
18634 done
18635
18636 ac_given_srcdir=$srcdir
18637 ac_given_INSTALL="$INSTALL"
18638
18639 trap 'rm -fr `echo "
18640 wx-config
18641 src/make.env
18642 src/makeprog.env
18643 src/makelib.env
18644 Makefile
18645 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
18646 EOF
18647 cat >> $CONFIG_STATUS <<EOF
18648
18649 # Protect against being on the right side of a sed subst in config.status.
18650 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18651 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18652 $ac_vpsub
18653 $extrasub
18654 s%@SHELL@%$SHELL%g
18655 s%@CFLAGS@%$CFLAGS%g
18656 s%@CPPFLAGS@%$CPPFLAGS%g
18657 s%@CXXFLAGS@%$CXXFLAGS%g
18658 s%@FFLAGS@%$FFLAGS%g
18659 s%@DEFS@%$DEFS%g
18660 s%@LDFLAGS@%$LDFLAGS%g
18661 s%@LIBS@%$LIBS%g
18662 s%@exec_prefix@%$exec_prefix%g
18663 s%@prefix@%$prefix%g
18664 s%@program_transform_name@%$program_transform_name%g
18665 s%@bindir@%$bindir%g
18666 s%@sbindir@%$sbindir%g
18667 s%@libexecdir@%$libexecdir%g
18668 s%@datadir@%$datadir%g
18669 s%@sysconfdir@%$sysconfdir%g
18670 s%@sharedstatedir@%$sharedstatedir%g
18671 s%@localstatedir@%$localstatedir%g
18672 s%@libdir@%$libdir%g
18673 s%@includedir@%$includedir%g
18674 s%@oldincludedir@%$oldincludedir%g
18675 s%@infodir@%$infodir%g
18676 s%@mandir@%$mandir%g
18677 s%@host@%$host%g
18678 s%@host_alias@%$host_alias%g
18679 s%@host_cpu@%$host_cpu%g
18680 s%@host_vendor@%$host_vendor%g
18681 s%@host_os@%$host_os%g
18682 s%@target@%$target%g
18683 s%@target_alias@%$target_alias%g
18684 s%@target_cpu@%$target_cpu%g
18685 s%@target_vendor@%$target_vendor%g
18686 s%@target_os@%$target_os%g
18687 s%@build@%$build%g
18688 s%@build_alias@%$build_alias%g
18689 s%@build_cpu@%$build_cpu%g
18690 s%@build_vendor@%$build_vendor%g
18691 s%@build_os@%$build_os%g
18692 s%@CC@%$CC%g
18693 s%@CPP@%$CPP%g
18694 s%@CXX@%$CXX%g
18695 s%@RANLIB@%$RANLIB%g
18696 s%@AR@%$AR%g
18697 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18698 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18699 s%@INSTALL_DATA@%$INSTALL_DATA%g
18700 s%@STRIP@%$STRIP%g
18701 s%@YACC@%$YACC%g
18702 s%@LEX@%$LEX%g
18703 s%@LEXLIB@%$LEXLIB%g
18704 s%@LN_S@%$LN_S%g
18705 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
18706 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18707 s%@GTK_LIBS@%$GTK_LIBS%g
18708 s%@GTK_CONFIG@%$GTK_CONFIG%g
18709 s%@X_CFLAGS@%$X_CFLAGS%g
18710 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18711 s%@X_LIBS@%$X_LIBS%g
18712 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
18713 s%@RESCOMP@%$RESCOMP%g
18714 s%@DEREZ@%$DEREZ%g
18715 s%@CXXCPP@%$CXXCPP%g
18716 s%@LEX_STEM@%$LEX_STEM%g
18717 s%@PATH_IFS@%$PATH_IFS%g
18718 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18719 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18720 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
18721 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18722 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
18723 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
18724 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18725 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18726 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
18727 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
18728 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18729 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
18730 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18731 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18732 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
18733 s%@WX_ALL@%$WX_ALL%g
18734 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18735 s%@SHARED_LD@%$SHARED_LD%g
18736 s%@PIC_FLAG@%$PIC_FLAG%g
18737 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18738 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
18739 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
18740 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
18741 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18742 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18743 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18744 s%@USE_GUI@%$USE_GUI%g
18745 s%@AFMINSTALL@%$AFMINSTALL%g
18746 s%@TOOLKIT@%$TOOLKIT%g
18747 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
18748 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
18749 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
18750 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
18751 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
18752 s%@cross_compiling@%$cross_compiling%g
18753 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
18754 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
18755 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
18756 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
18757 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18758 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
18759 s%@GUIDIST@%$GUIDIST%g
18760 s%@PORT_FILES@%$PORT_FILES%g
18761 s%@DISTDIR@%$DISTDIR%g
18762 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
18763 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
18764 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18765 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
18766 s%@EXTRADEFS@%$EXTRADEFS%g
18767 s%@RESFLAGS@%$RESFLAGS%g
18768 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
18769 s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
18770 s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
18771 s%@LIBWXMACRES@%$LIBWXMACRES%g
18772 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18773 s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
18774 s%@DLLTOOL@%$DLLTOOL%g
18775 s%@AS@%$AS%g
18776 s%@NM@%$NM%g
18777 s%@LD@%$LD%g
18778 s%@MAKEINFO@%$MAKEINFO%g
18779 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
18780 s%@SET_MAKE@%$SET_MAKE%g
18781 s%@subdirs@%$subdirs%g
18782
18783 CEOF
18784 EOF
18785
18786 cat >> $CONFIG_STATUS <<\EOF
18787
18788 # Split the substitutions into bite-sized pieces for seds with
18789 # small command number limits, like on Digital OSF/1 and HP-UX.
18790 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18791 ac_file=1 # Number of current file.
18792 ac_beg=1 # First line for current file.
18793 ac_end=$ac_max_sed_cmds # Line after last line for current file.
18794 ac_more_lines=:
18795 ac_sed_cmds=""
18796 while $ac_more_lines; do
18797 if test $ac_beg -gt 1; then
18798 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18799 else
18800 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18801 fi
18802 if test ! -s conftest.s$ac_file; then
18803 ac_more_lines=false
18804 rm -f conftest.s$ac_file
18805 else
18806 if test -z "$ac_sed_cmds"; then
18807 ac_sed_cmds="sed -f conftest.s$ac_file"
18808 else
18809 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18810 fi
18811 ac_file=`expr $ac_file + 1`
18812 ac_beg=$ac_end
18813 ac_end=`expr $ac_end + $ac_max_sed_cmds`
18814 fi
18815 done
18816 if test -z "$ac_sed_cmds"; then
18817 ac_sed_cmds=cat
18818 fi
18819 EOF
18820
18821 cat >> $CONFIG_STATUS <<EOF
18822
18823 CONFIG_FILES=\${CONFIG_FILES-"wx-config
18824 src/make.env
18825 src/makeprog.env
18826 src/makelib.env
18827 Makefile
18828 "}
18829 EOF
18830 cat >> $CONFIG_STATUS <<\EOF
18831 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18832 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18833 case "$ac_file" in
18834 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18835 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18836 *) ac_file_in="${ac_file}.in" ;;
18837 esac
18838
18839 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18840
18841 # Remove last slash and all that follows it. Not all systems have dirname.
18842 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18843 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18844 # The file is in a subdirectory.
18845 test ! -d "$ac_dir" && mkdir "$ac_dir"
18846 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18847 # A "../" for each directory in $ac_dir_suffix.
18848 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18849 else
18850 ac_dir_suffix= ac_dots=
18851 fi
18852
18853 case "$ac_given_srcdir" in
18854 .) srcdir=.
18855 if test -z "$ac_dots"; then top_srcdir=.
18856 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18857 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18858 *) # Relative path.
18859 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18860 top_srcdir="$ac_dots$ac_given_srcdir" ;;
18861 esac
18862
18863 case "$ac_given_INSTALL" in
18864 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18865 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18866 esac
18867
18868 echo creating "$ac_file"
18869 rm -f "$ac_file"
18870 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18871 case "$ac_file" in
18872 *Makefile*) ac_comsub="1i\\
18873 # $configure_input" ;;
18874 *) ac_comsub= ;;
18875 esac
18876
18877 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18878 sed -e "$ac_comsub
18879 s%@configure_input@%$configure_input%g
18880 s%@srcdir@%$srcdir%g
18881 s%@top_srcdir@%$top_srcdir%g
18882 s%@INSTALL@%$INSTALL%g
18883 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18884 fi; done
18885 rm -f conftest.s*
18886
18887 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18888 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18889 #
18890 # ac_d sets the value in "#define NAME VALUE" lines.
18891 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18892 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18893 ac_dC='\3'
18894 ac_dD='%g'
18895 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18896 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18897 ac_uB='\([ ]\)%\1#\2define\3'
18898 ac_uC=' '
18899 ac_uD='\4%g'
18900 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18901 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18902 ac_eB='$%\1#\2define\3'
18903 ac_eC=' '
18904 ac_eD='%g'
18905
18906 if test "${CONFIG_HEADERS+set}" != set; then
18907 EOF
18908 cat >> $CONFIG_STATUS <<EOF
18909 CONFIG_HEADERS="setup.h:setup.h.in"
18910 EOF
18911 cat >> $CONFIG_STATUS <<\EOF
18912 fi
18913 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18914 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18915 case "$ac_file" in
18916 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18917 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18918 *) ac_file_in="${ac_file}.in" ;;
18919 esac
18920
18921 echo creating $ac_file
18922
18923 rm -f conftest.frag conftest.in conftest.out
18924 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18925 cat $ac_file_inputs > conftest.in
18926
18927 EOF
18928
18929 # Transform confdefs.h into a sed script conftest.vals that substitutes
18930 # the proper values into config.h.in to produce config.h. And first:
18931 # Protect against being on the right side of a sed subst in config.status.
18932 # Protect against being in an unquoted here document in config.status.
18933 rm -f conftest.vals
18934 cat > conftest.hdr <<\EOF
18935 s/[\\&%]/\\&/g
18936 s%[\\$`]%\\&%g
18937 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18938 s%ac_d%ac_u%gp
18939 s%ac_u%ac_e%gp
18940 EOF
18941 sed -n -f conftest.hdr confdefs.h > conftest.vals
18942 rm -f conftest.hdr
18943
18944 # This sed command replaces #undef with comments. This is necessary, for
18945 # example, in the case of _POSIX_SOURCE, which is predefined and required
18946 # on some systems where configure will not decide to define it.
18947 cat >> conftest.vals <<\EOF
18948 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18949 EOF
18950
18951 # Break up conftest.vals because some shells have a limit on
18952 # the size of here documents, and old seds have small limits too.
18953
18954 rm -f conftest.tail
18955 while :
18956 do
18957 ac_lines=`grep -c . conftest.vals`
18958 # grep -c gives empty output for an empty file on some AIX systems.
18959 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18960 # Write a limited-size here document to conftest.frag.
18961 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18962 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18963 echo 'CEOF
18964 sed -f conftest.frag conftest.in > conftest.out
18965 rm -f conftest.in
18966 mv conftest.out conftest.in
18967 ' >> $CONFIG_STATUS
18968 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18969 rm -f conftest.vals
18970 mv conftest.tail conftest.vals
18971 done
18972 rm -f conftest.vals
18973
18974 cat >> $CONFIG_STATUS <<\EOF
18975 rm -f conftest.frag conftest.h
18976 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18977 cat conftest.in >> conftest.h
18978 rm -f conftest.in
18979 if cmp -s $ac_file conftest.h 2>/dev/null; then
18980 echo "$ac_file is unchanged"
18981 rm -f conftest.h
18982 else
18983 # Remove last slash and all that follows it. Not all systems have dirname.
18984 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18985 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18986 # The file is in a subdirectory.
18987 test ! -d "$ac_dir" && mkdir "$ac_dir"
18988 fi
18989 rm -f $ac_file
18990 mv conftest.h $ac_file
18991 fi
18992 fi; done
18993
18994 EOF
18995 cat >> $CONFIG_STATUS <<EOF
18996
18997 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
18998 LN_S="${LN_S}"
18999
19000
19001 EOF
19002 cat >> $CONFIG_STATUS <<\EOF
19003
19004 if test ! -h wx-config; then
19005 chmod +x wx-config
19006 mv wx-config wx${TOOLCHAIN_NAME}-config
19007 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
19008 fi
19009
19010 if test ! -d lib; then
19011 mkdir lib
19012 fi
19013 if test ! -d lib/wx; then
19014 mkdir lib/wx
19015 fi
19016 if test ! -d lib/wx/include; then
19017 mkdir lib/wx/include
19018 fi
19019 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
19020 mkdir lib/wx/include/${TOOLCHAIN_NAME}
19021 fi
19022 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
19023 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
19024 fi
19025 if test -f setup.h; then
19026 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
19027 fi
19028
19029 exit 0
19030 EOF
19031 chmod +x $CONFIG_STATUS
19032 rm -fr confdefs* $ac_clean_files
19033 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
19034
19035 if test "$no_recursion" != yes; then
19036
19037 # Remove --cache-file and --srcdir arguments so they do not pile up.
19038 ac_sub_configure_args=
19039 ac_prev=
19040 for ac_arg in $ac_configure_args; do
19041 if test -n "$ac_prev"; then
19042 ac_prev=
19043 continue
19044 fi
19045 case "$ac_arg" in
19046 -cache-file | --cache-file | --cache-fil | --cache-fi \
19047 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19048 ac_prev=cache_file ;;
19049 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19050 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
19051 ;;
19052 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19053 ac_prev=srcdir ;;
19054 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19055 ;;
19056 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
19057 esac
19058 done
19059
19060 for ac_config_dir in demos samples utils contrib; do
19061
19062 # Do not complain, so a configure script can configure whichever
19063 # parts of a large source tree are present.
19064 if test ! -d $srcdir/$ac_config_dir; then
19065 continue
19066 fi
19067
19068 echo configuring in $ac_config_dir
19069
19070 case "$srcdir" in
19071 .) ;;
19072 *)
19073 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
19074 else
19075 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
19076 fi
19077 ;;
19078 esac
19079
19080 ac_popdir=`pwd`
19081 cd $ac_config_dir
19082
19083 # A "../" for each directory in /$ac_config_dir.
19084 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
19085
19086 case "$srcdir" in
19087 .) # No --srcdir option. We are building in place.
19088 ac_sub_srcdir=$srcdir ;;
19089 /*) # Absolute path.
19090 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
19091 *) # Relative path.
19092 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
19093 esac
19094
19095 # Check for guested configure; otherwise get Cygnus style configure.
19096 if test -f $ac_sub_srcdir/configure; then
19097 ac_sub_configure=$ac_sub_srcdir/configure
19098 elif test -f $ac_sub_srcdir/configure.in; then
19099 ac_sub_configure=$ac_configure
19100 else
19101 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
19102 ac_sub_configure=
19103 fi
19104
19105 # The recursion is here.
19106 if test -n "$ac_sub_configure"; then
19107
19108 # Make the cache file name correct relative to the subdirectory.
19109 case "$cache_file" in
19110 /*) ac_sub_cache_file=$cache_file ;;
19111 *) # Relative path.
19112 ac_sub_cache_file="$ac_dots$cache_file" ;;
19113 esac
19114 case "$ac_given_INSTALL" in
19115 [/$]*) INSTALL="$ac_given_INSTALL" ;;
19116 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
19117 esac
19118
19119 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
19120 # The eval makes quoting arguments work.
19121 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
19122 then :
19123 else
19124 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
19125 fi
19126 fi
19127
19128 cd $ac_popdir
19129 done
19130 fi
19131
19132