]> git.saurik.com Git - wxWidgets.git/blob - configure
DoSetClientSize() may take 4 iterations to set the right size sometimes, not 3
[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
40
41
42
43
44 # Guess values for system-dependent variables and create Makefiles.
45 # Generated automatically using autoconf version 2.13
46 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
47 #
48 # This configure script is free software; the Free Software Foundation
49 # gives unlimited permission to copy, distribute and modify it.
50
51 # Defaults:
52 ac_help=
53 ac_default_prefix=/usr/local
54 # Any additions from configure.in:
55 ac_help="$ac_help
56 --enable-gui use GUI classes"
57 ac_help="$ac_help
58 --enable-universal use wxWindows GUI controls instead of native ones"
59 ac_help="$ac_help
60 --with-gtk use GTK+"
61 ac_help="$ac_help
62 --with-motif use Motif/Lesstif"
63 ac_help="$ac_help
64 --with-mac use Mac OS X"
65 ac_help="$ac_help
66 --with-wine use WINE"
67 ac_help="$ac_help
68 --with-msw use MS-Windows"
69 ac_help="$ac_help
70 --with-pm use OS/2 Presentation Manager"
71 ac_help="$ac_help
72 --with-mgl use SciTech MGL"
73 ac_help="$ac_help
74 --with-microwin use MicroWindows"
75 ac_help="$ac_help
76 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
77 ac_help="$ac_help
78 --with-libpng use libpng (PNG image format)"
79 ac_help="$ac_help
80 --with-libjpeg use libjpeg (JPEG file format)"
81 ac_help="$ac_help
82 --with-libtiff use libtiff (TIFF file format)"
83 ac_help="$ac_help
84 --with-freetype use freetype (font rasterizer)"
85 ac_help="$ac_help
86 --with-opengl use OpenGL (or Mesa)"
87 ac_help="$ac_help
88 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
89 ac_help="$ac_help
90 --with-regex enable support for wxRegEx class"
91 ac_help="$ac_help
92 --with-zlib use zlib for LZW compression"
93 ac_help="$ac_help
94 --with-odbc use the IODBC and wxODBC classes"
95 ac_help="$ac_help
96 --enable-shared create shared library code"
97 ac_help="$ac_help
98 --enable-soname set the DT_SONAME field in ELF shared libraries"
99 ac_help="$ac_help
100 --enable-optimise create optimised code"
101 ac_help="$ac_help
102 --enable-debug same as debug_flag and debug_info"
103 ac_help="$ac_help
104 --enable-precomp enable use of precompiled headers (Mac OS X)"
105 ac_help="$ac_help
106 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
107 ac_help="$ac_help
108 --enable-debug_info create code with debugging information"
109 ac_help="$ac_help
110 --enable-debug_gdb create code with extra GDB debugging information"
111 ac_help="$ac_help
112 --enable-debug_cntxt use wxDebugContext"
113 ac_help="$ac_help
114 --enable-mem_tracing create code with memory tracing"
115 ac_help="$ac_help
116 --enable-profile create code with profiling information"
117 ac_help="$ac_help
118 --enable-no_rtti create code without RTTI information"
119 ac_help="$ac_help
120 --enable-no_exceptions create code without C++ exceptions handling"
121 ac_help="$ac_help
122 --enable-permissive compile code disregarding strict ANSI"
123 ac_help="$ac_help
124 --enable-no_deps create code without dependency information"
125 ac_help="$ac_help
126 --enable-compat20 enable wxWindows 2.0 compatibility"
127 ac_help="$ac_help
128 --enable-compat22 enable wxWindows 2.2 compatibility"
129 ac_help="$ac_help
130 --enable-intl use internationalization system"
131 ac_help="$ac_help
132 --enable-config use wxConfig (and derived) classes"
133 ac_help="$ac_help
134 --enable-sockets use socket/network classes"
135 ac_help="$ac_help
136 --enable-ipc use interprocess communication (wxSocket etc.)"
137 ac_help="$ac_help
138 --enable-cmdline use wxCmdLineParser class"
139 ac_help="$ac_help
140 --enable-datetime use wxDateTime class"
141 ac_help="$ac_help
142 --enable-timedate use obsolete wxDate/wxTime classes"
143 ac_help="$ac_help
144 --enable-stopwatch use wxStopWatch class"
145 ac_help="$ac_help
146 --enable-dialupman use dialup network classes"
147 ac_help="$ac_help
148 --enable-apple_ieee use the Apple IEEE codec"
149 ac_help="$ac_help
150 --enable-timer use wxTimer class"
151 ac_help="$ac_help
152 --enable-wave use wxWave class"
153 ac_help="$ac_help
154 --enable-fraction use wxFraction class"
155 ac_help="$ac_help
156 --enable-dynlib use wxLibrary class for DLL loading"
157 ac_help="$ac_help
158 --enable-dynamicloader use (new) wxDynamicLibrary class"
159 ac_help="$ac_help
160 --enable-longlong use wxLongLong class"
161 ac_help="$ac_help
162 --enable-geometry use geometry class"
163 ac_help="$ac_help
164 --enable-log use logging system"
165 ac_help="$ac_help
166 --enable-streams use wxStream etc classes"
167 ac_help="$ac_help
168 --enable-file use wxFile classes"
169 ac_help="$ac_help
170 --enable-ffile use wxFFile classes"
171 ac_help="$ac_help
172 --enable-textbuf use wxTextBuffer class"
173 ac_help="$ac_help
174 --enable-textfile use wxTextFile class"
175 ac_help="$ac_help
176 --enable-fontmap use font encodings conversion classes"
177 ac_help="$ac_help
178 --enable-unicode compile wxString with Unicode support"
179 ac_help="$ac_help
180 --enable-wxprintfv use wxWindows implementation of vprintf()"
181 ac_help="$ac_help
182 --enable-std_iostreams use standard C++ stream classes"
183 ac_help="$ac_help
184 --enable-filesystem use virtual file systems classes"
185 ac_help="$ac_help
186 --enable-fs_inet use virtual HTTP/FTP filesystems"
187 ac_help="$ac_help
188 --enable-fs_zip use virtual ZIP filesystems"
189 ac_help="$ac_help
190 --enable-zipstream use wxZipInputStream"
191 ac_help="$ac_help
192 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
193 ac_help="$ac_help
194 --enable-snglinst use wxSingleInstanceChecker class"
195 ac_help="$ac_help
196 --enable-mimetype use wxMimeTypesManager"
197 ac_help="$ac_help
198 --enable-sysoptions use wxSystemOptions"
199 ac_help="$ac_help
200 --enable-threads use threads"
201 ac_help="$ac_help
202 --enable-docview use document view architecture"
203 ac_help="$ac_help
204 --enable-help use help subsystem"
205 ac_help="$ac_help
206 --enable-mshtmlhelp use MS HTML Help (win32)"
207 ac_help="$ac_help
208 --enable-html use wxHTML sub-library"
209 ac_help="$ac_help
210 --enable-htmlhelp use wxHTML-based help"
211 ac_help="$ac_help
212 --enable-constraints use layout-constraints system"
213 ac_help="$ac_help
214 --enable-printarch use printing architecture"
215 ac_help="$ac_help
216 --enable-mdi use multiple document interface architecture"
217 ac_help="$ac_help
218 --enable-loggui use standard GUI logger"
219 ac_help="$ac_help
220 --enable-logwin use wxLogWindow"
221 ac_help="$ac_help
222 --enable-logdialog use wxLogDialog"
223 ac_help="$ac_help
224 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
225 ac_help="$ac_help
226 --enable-prologio use Prolog IO library"
227 ac_help="$ac_help
228 --enable-resources use wxWindows resources"
229 ac_help="$ac_help
230 --enable-xresources use X resources for save (default for gtk+)"
231 ac_help="$ac_help
232 --enable-clipboard use wxClipboard classes"
233 ac_help="$ac_help
234 --enable-dnd use Drag'n'Drop classes"
235 ac_help="$ac_help
236 --enable-metafile use win32 metafiles"
237 ac_help="$ac_help
238 --enable-treelayout use wxTreeLayout classes"
239 ac_help="$ac_help
240 --enable-controls use all usual controls"
241 ac_help="$ac_help
242 --enable-accel use accelerators"
243 ac_help="$ac_help
244 --enable-button use wxButton class"
245 ac_help="$ac_help
246 --enable-bmpbutton use wxBitmapButton class"
247 ac_help="$ac_help
248 --enable-calendar use wxCalendarCtrl class"
249 ac_help="$ac_help
250 --enable-caret use wxCaret class"
251 ac_help="$ac_help
252 --enable-checkbox use wxCheckBox class"
253 ac_help="$ac_help
254 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
255 ac_help="$ac_help
256 --enable-choice use wxChoice class"
257 ac_help="$ac_help
258 --enable-combobox use wxComboBox classes"
259 ac_help="$ac_help
260 --enable-gauge use wxGauge class"
261 ac_help="$ac_help
262 --enable-grid use wxGrid class"
263 ac_help="$ac_help
264 --enable-newgrid use new wxGrid class"
265 ac_help="$ac_help
266 --enable-imaglist use wxImageList class"
267 ac_help="$ac_help
268 --enable-listbox use wxListBox class"
269 ac_help="$ac_help
270 --enable-listctrl use wxListCtrl class"
271 ac_help="$ac_help
272 --enable-notebook use wxNotebook class"
273 ac_help="$ac_help
274 --enable-propsheet use wxPropertySheet class"
275 ac_help="$ac_help
276 --enable-radiobox use wxRadioBox class"
277 ac_help="$ac_help
278 --enable-radiobtn use wxRadioButton class"
279 ac_help="$ac_help
280 --enable-sash use wxSashWindow class"
281 ac_help="$ac_help
282 --enable-scrollbar use wxScrollBar class and scrollable windows"
283 ac_help="$ac_help
284 --enable-slider use wxSlider class"
285 ac_help="$ac_help
286 --enable-spinbtn use wxSpinButton class"
287 ac_help="$ac_help
288 --enable-spinctrl use wxSpinCtrl class"
289 ac_help="$ac_help
290 --enable-splitter use wxSplitterWindow class"
291 ac_help="$ac_help
292 --enable-statbmp use wxStaticBitmap class"
293 ac_help="$ac_help
294 --enable-statbox use wxStaticBox class"
295 ac_help="$ac_help
296 --enable-statline use wxStaticLine class"
297 ac_help="$ac_help
298 --enable-stattext use wxStaticText class"
299 ac_help="$ac_help
300 --enable-statusbar use wxStatusBar class"
301 ac_help="$ac_help
302 --enable-tabdialog use wxTabControl class"
303 ac_help="$ac_help
304 --enable-textctrl use wxTextCtrl class"
305 ac_help="$ac_help
306 --enable-togglebtn use wxToggleButton class"
307 ac_help="$ac_help
308 --enable-toolbar use wxToolBar class"
309 ac_help="$ac_help
310 --enable-tbarnative use native wxToolBar class"
311 ac_help="$ac_help
312 --enable-tbarsmpl use wxToolBarSimple class"
313 ac_help="$ac_help
314 --enable-treectrl use wxTreeCtrl class"
315 ac_help="$ac_help
316 --enable-tipwindow use wxTipWindow class"
317 ac_help="$ac_help
318 --enable-popupwin use wxPopUpWindow class"
319 ac_help="$ac_help
320 --enable-commondlg use all common dialogs"
321 ac_help="$ac_help
322 --enable-choicedlg use wxChoiceDialog"
323 ac_help="$ac_help
324 --enable-coldlg use wxColourDialog"
325 ac_help="$ac_help
326 --enable-filedlg use wxFileDialog"
327 ac_help="$ac_help
328 --enable-finddlg use wxFindReplaceDialog"
329 ac_help="$ac_help
330 --enable-fontdlg use wxFontDialog"
331 ac_help="$ac_help
332 --enable-dirdlg use wxDirDialog"
333 ac_help="$ac_help
334 --enable-msgdlg use wxMessageDialog"
335 ac_help="$ac_help
336 --enable-numberdlg use wxNumberEntryDialog"
337 ac_help="$ac_help
338 --enable-splash use wxSplashScreen"
339 ac_help="$ac_help
340 --enable-textdlg use wxTextDialog"
341 ac_help="$ac_help
342 --enable-tipdlg use startup tips"
343 ac_help="$ac_help
344 --enable-progressdlg use wxProgressDialog"
345 ac_help="$ac_help
346 --enable-wizarddlg use wxWizard"
347 ac_help="$ac_help
348 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
349 ac_help="$ac_help
350 --enable-miniframe use wxMiniFrame class"
351 ac_help="$ac_help
352 --enable-tooltips use wxToolTip class"
353 ac_help="$ac_help
354 --enable-splines use spline drawing code"
355 ac_help="$ac_help
356 --enable-validators use wxValidator and derived classes"
357 ac_help="$ac_help
358 --enable-busyinfo use wxBusyInfo"
359 ac_help="$ac_help
360 --enable-joystick use wxJoystick (Linux only)"
361 ac_help="$ac_help
362 --enable-metafiles use wxMetaFile (Windows only)"
363 ac_help="$ac_help
364 --enable-dragimage use wxDragImage"
365 ac_help="$ac_help
366 --enable-palette use wxPalette class"
367 ac_help="$ac_help
368 --enable-image use wxImage class"
369 ac_help="$ac_help
370 --enable-gif use gif images (GIF file format)"
371 ac_help="$ac_help
372 --enable-pcx use pcx images (PCX file format)"
373 ac_help="$ac_help
374 --enable-pnm use pnm images (PNM file format)"
375 ac_help="$ac_help
376 --enable-xpm use xpm images (XPM file format)"
377 ac_help="$ac_help
378 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
379 ac_help="$ac_help
380 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
381 ac_help="$ac_help
382 --disable-gtktest Do not try to compile and run a test GTK program"
383 ac_help="$ac_help
384 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
385 ac_help="$ac_help
386 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
387 ac_help="$ac_help
388 --disable-gtktest Do not try to compile and run a test GTK program"
389 ac_help="$ac_help
390 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
391 ac_help="$ac_help
392 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
393 ac_help="$ac_help
394 --disable-gtktest Do not try to compile and run a test GTK program"
395 ac_help="$ac_help
396 --with-x use the X Window System"
397
398 # Initialize some variables set by options.
399 # The variables have the same names as the options, with
400 # dashes changed to underlines.
401 build=NONE
402 cache_file=./config.cache
403 exec_prefix=NONE
404 host=NONE
405 no_create=
406 nonopt=NONE
407 no_recursion=
408 prefix=NONE
409 program_prefix=NONE
410 program_suffix=NONE
411 program_transform_name=s,x,x,
412 silent=
413 site=
414 srcdir=
415 target=NONE
416 verbose=
417 x_includes=NONE
418 x_libraries=NONE
419 bindir='${exec_prefix}/bin'
420 sbindir='${exec_prefix}/sbin'
421 libexecdir='${exec_prefix}/libexec'
422 datadir='${prefix}/share'
423 sysconfdir='${prefix}/etc'
424 sharedstatedir='${prefix}/com'
425 localstatedir='${prefix}/var'
426 libdir='${exec_prefix}/lib'
427 includedir='${prefix}/include'
428 oldincludedir='/usr/include'
429 infodir='${prefix}/info'
430 mandir='${prefix}/man'
431
432 # Initialize some other variables.
433 subdirs=
434 MFLAGS= MAKEFLAGS=
435 SHELL=${CONFIG_SHELL-/bin/sh}
436 # Maximum number of lines to put in a shell here document.
437 ac_max_here_lines=12
438
439 ac_prev=
440 for ac_option
441 do
442
443 # If the previous option needs an argument, assign it.
444 if test -n "$ac_prev"; then
445 eval "$ac_prev=\$ac_option"
446 ac_prev=
447 continue
448 fi
449
450 case "$ac_option" in
451 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
452 *) ac_optarg= ;;
453 esac
454
455 # Accept the important Cygnus configure options, so we can diagnose typos.
456
457 case "$ac_option" in
458
459 -bindir | --bindir | --bindi | --bind | --bin | --bi)
460 ac_prev=bindir ;;
461 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
462 bindir="$ac_optarg" ;;
463
464 -build | --build | --buil | --bui | --bu)
465 ac_prev=build ;;
466 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
467 build="$ac_optarg" ;;
468
469 -cache-file | --cache-file | --cache-fil | --cache-fi \
470 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
471 ac_prev=cache_file ;;
472 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
473 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
474 cache_file="$ac_optarg" ;;
475
476 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
477 ac_prev=datadir ;;
478 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
479 | --da=*)
480 datadir="$ac_optarg" ;;
481
482 -disable-* | --disable-*)
483 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
484 # Reject names that are not valid shell variable names.
485 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
486 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
487 fi
488 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
489 eval "enable_${ac_feature}=no" ;;
490
491 -enable-* | --enable-*)
492 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
493 # Reject names that are not valid shell variable names.
494 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
495 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
496 fi
497 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
498 case "$ac_option" in
499 *=*) ;;
500 *) ac_optarg=yes ;;
501 esac
502 eval "enable_${ac_feature}='$ac_optarg'" ;;
503
504 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
505 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
506 | --exec | --exe | --ex)
507 ac_prev=exec_prefix ;;
508 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
509 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
510 | --exec=* | --exe=* | --ex=*)
511 exec_prefix="$ac_optarg" ;;
512
513 -gas | --gas | --ga | --g)
514 # Obsolete; use --with-gas.
515 with_gas=yes ;;
516
517 -help | --help | --hel | --he)
518 # Omit some internal or obsolete options to make the list less imposing.
519 # This message is too long to be a string in the A/UX 3.1 sh.
520 cat << EOF
521 Usage: configure [options] [host]
522 Options: [defaults in brackets after descriptions]
523 Configuration:
524 --cache-file=FILE cache test results in FILE
525 --help print this message
526 --no-create do not create output files
527 --quiet, --silent do not print \`checking...' messages
528 --version print the version of autoconf that created configure
529 Directory and file names:
530 --prefix=PREFIX install architecture-independent files in PREFIX
531 [$ac_default_prefix]
532 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
533 [same as prefix]
534 --bindir=DIR user executables in DIR [EPREFIX/bin]
535 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
536 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
537 --datadir=DIR read-only architecture-independent data in DIR
538 [PREFIX/share]
539 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
540 --sharedstatedir=DIR modifiable architecture-independent data in DIR
541 [PREFIX/com]
542 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
543 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
544 --includedir=DIR C header files in DIR [PREFIX/include]
545 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
546 --infodir=DIR info documentation in DIR [PREFIX/info]
547 --mandir=DIR man documentation in DIR [PREFIX/man]
548 --srcdir=DIR find the sources in DIR [configure dir or ..]
549 --program-prefix=PREFIX prepend PREFIX to installed program names
550 --program-suffix=SUFFIX append SUFFIX to installed program names
551 --program-transform-name=PROGRAM
552 run sed PROGRAM on installed program names
553 EOF
554 cat << EOF
555 Host type:
556 --build=BUILD configure for building on BUILD [BUILD=HOST]
557 --host=HOST configure for HOST [guessed]
558 --target=TARGET configure for TARGET [TARGET=HOST]
559 Features and packages:
560 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
561 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
562 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
563 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
564 --x-includes=DIR X include files are in DIR
565 --x-libraries=DIR X library files are in DIR
566 EOF
567 if test -n "$ac_help"; then
568 echo "--enable and --with options recognized:$ac_help"
569 fi
570 exit 0 ;;
571
572 -host | --host | --hos | --ho)
573 ac_prev=host ;;
574 -host=* | --host=* | --hos=* | --ho=*)
575 host="$ac_optarg" ;;
576
577 -includedir | --includedir | --includedi | --included | --include \
578 | --includ | --inclu | --incl | --inc)
579 ac_prev=includedir ;;
580 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
581 | --includ=* | --inclu=* | --incl=* | --inc=*)
582 includedir="$ac_optarg" ;;
583
584 -infodir | --infodir | --infodi | --infod | --info | --inf)
585 ac_prev=infodir ;;
586 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
587 infodir="$ac_optarg" ;;
588
589 -libdir | --libdir | --libdi | --libd)
590 ac_prev=libdir ;;
591 -libdir=* | --libdir=* | --libdi=* | --libd=*)
592 libdir="$ac_optarg" ;;
593
594 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
595 | --libexe | --libex | --libe)
596 ac_prev=libexecdir ;;
597 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
598 | --libexe=* | --libex=* | --libe=*)
599 libexecdir="$ac_optarg" ;;
600
601 -localstatedir | --localstatedir | --localstatedi | --localstated \
602 | --localstate | --localstat | --localsta | --localst \
603 | --locals | --local | --loca | --loc | --lo)
604 ac_prev=localstatedir ;;
605 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
606 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
607 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
608 localstatedir="$ac_optarg" ;;
609
610 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
611 ac_prev=mandir ;;
612 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
613 mandir="$ac_optarg" ;;
614
615 -nfp | --nfp | --nf)
616 # Obsolete; use --without-fp.
617 with_fp=no ;;
618
619 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
620 | --no-cr | --no-c)
621 no_create=yes ;;
622
623 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
624 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
625 no_recursion=yes ;;
626
627 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
628 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
629 | --oldin | --oldi | --old | --ol | --o)
630 ac_prev=oldincludedir ;;
631 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
632 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
633 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
634 oldincludedir="$ac_optarg" ;;
635
636 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
637 ac_prev=prefix ;;
638 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
639 prefix="$ac_optarg" ;;
640
641 -program-prefix | --program-prefix | --program-prefi | --program-pref \
642 | --program-pre | --program-pr | --program-p)
643 ac_prev=program_prefix ;;
644 -program-prefix=* | --program-prefix=* | --program-prefi=* \
645 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
646 program_prefix="$ac_optarg" ;;
647
648 -program-suffix | --program-suffix | --program-suffi | --program-suff \
649 | --program-suf | --program-su | --program-s)
650 ac_prev=program_suffix ;;
651 -program-suffix=* | --program-suffix=* | --program-suffi=* \
652 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
653 program_suffix="$ac_optarg" ;;
654
655 -program-transform-name | --program-transform-name \
656 | --program-transform-nam | --program-transform-na \
657 | --program-transform-n | --program-transform- \
658 | --program-transform | --program-transfor \
659 | --program-transfo | --program-transf \
660 | --program-trans | --program-tran \
661 | --progr-tra | --program-tr | --program-t)
662 ac_prev=program_transform_name ;;
663 -program-transform-name=* | --program-transform-name=* \
664 | --program-transform-nam=* | --program-transform-na=* \
665 | --program-transform-n=* | --program-transform-=* \
666 | --program-transform=* | --program-transfor=* \
667 | --program-transfo=* | --program-transf=* \
668 | --program-trans=* | --program-tran=* \
669 | --progr-tra=* | --program-tr=* | --program-t=*)
670 program_transform_name="$ac_optarg" ;;
671
672 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
673 | -silent | --silent | --silen | --sile | --sil)
674 silent=yes ;;
675
676 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
677 ac_prev=sbindir ;;
678 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
679 | --sbi=* | --sb=*)
680 sbindir="$ac_optarg" ;;
681
682 -sharedstatedir | --sharedstatedir | --sharedstatedi \
683 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
684 | --sharedst | --shareds | --shared | --share | --shar \
685 | --sha | --sh)
686 ac_prev=sharedstatedir ;;
687 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
688 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
689 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
690 | --sha=* | --sh=*)
691 sharedstatedir="$ac_optarg" ;;
692
693 -site | --site | --sit)
694 ac_prev=site ;;
695 -site=* | --site=* | --sit=*)
696 site="$ac_optarg" ;;
697
698 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
699 ac_prev=srcdir ;;
700 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
701 srcdir="$ac_optarg" ;;
702
703 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
704 | --syscon | --sysco | --sysc | --sys | --sy)
705 ac_prev=sysconfdir ;;
706 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
707 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
708 sysconfdir="$ac_optarg" ;;
709
710 -target | --target | --targe | --targ | --tar | --ta | --t)
711 ac_prev=target ;;
712 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
713 target="$ac_optarg" ;;
714
715 -v | -verbose | --verbose | --verbos | --verbo | --verb)
716 verbose=yes ;;
717
718 -version | --version | --versio | --versi | --vers)
719 echo "configure generated by autoconf version 2.13"
720 exit 0 ;;
721
722 -with-* | --with-*)
723 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
724 # Reject names that are not valid shell variable names.
725 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
726 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
727 fi
728 ac_package=`echo $ac_package| sed 's/-/_/g'`
729 case "$ac_option" in
730 *=*) ;;
731 *) ac_optarg=yes ;;
732 esac
733 eval "with_${ac_package}='$ac_optarg'" ;;
734
735 -without-* | --without-*)
736 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
737 # Reject names that are not valid shell variable names.
738 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
739 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
740 fi
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 eval "with_${ac_package}=no" ;;
743
744 --x)
745 # Obsolete; use --with-x.
746 with_x=yes ;;
747
748 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
749 | --x-incl | --x-inc | --x-in | --x-i)
750 ac_prev=x_includes ;;
751 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
752 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
753 x_includes="$ac_optarg" ;;
754
755 -x-libraries | --x-libraries | --x-librarie | --x-librari \
756 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
757 ac_prev=x_libraries ;;
758 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
759 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
760 x_libraries="$ac_optarg" ;;
761
762 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
763 ;;
764
765 *)
766 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
767 echo "configure: warning: $ac_option: invalid host type" 1>&2
768 fi
769 if test "x$nonopt" != xNONE; then
770 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
771 fi
772 nonopt="$ac_option"
773 ;;
774
775 esac
776 done
777
778 if test -n "$ac_prev"; then
779 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
780 fi
781
782 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
783
784 # File descriptor usage:
785 # 0 standard input
786 # 1 file creation
787 # 2 errors and warnings
788 # 3 some systems may open it to /dev/tty
789 # 4 used on the Kubota Titan
790 # 6 checking for... messages and results
791 # 5 compiler messages saved in config.log
792 if test "$silent" = yes; then
793 exec 6>/dev/null
794 else
795 exec 6>&1
796 fi
797 exec 5>./config.log
798
799 echo "\
800 This file contains any messages produced by compilers while
801 running configure, to aid debugging if configure makes a mistake.
802 " 1>&5
803
804 # Strip out --no-create and --no-recursion so they do not pile up.
805 # Also quote any args containing shell metacharacters.
806 ac_configure_args=
807 for ac_arg
808 do
809 case "$ac_arg" in
810 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
811 | --no-cr | --no-c) ;;
812 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
813 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
814 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
815 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
816 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
817 esac
818 done
819
820 # NLS nuisances.
821 # Only set these to C if already set. These must not be set unconditionally
822 # because not all systems understand e.g. LANG=C (notably SCO).
823 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
824 # Non-C LC_CTYPE values break the ctype check.
825 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
826 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
827 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
828 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
829
830 # confdefs.h avoids OS command line length limits that DEFS can exceed.
831 rm -rf conftest* confdefs.h
832 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
833 echo > confdefs.h
834
835 # A filename unique to this package, relative to the directory that
836 # configure is in, which we can look for to find out if srcdir is correct.
837 ac_unique_file=wx-config.in
838
839 # Find the source files, if location was not specified.
840 if test -z "$srcdir"; then
841 ac_srcdir_defaulted=yes
842 # Try the directory containing this script, then its parent.
843 ac_prog=$0
844 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
845 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
846 srcdir=$ac_confdir
847 if test ! -r $srcdir/$ac_unique_file; then
848 srcdir=..
849 fi
850 else
851 ac_srcdir_defaulted=no
852 fi
853 if test ! -r $srcdir/$ac_unique_file; then
854 if test "$ac_srcdir_defaulted" = yes; then
855 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
856 else
857 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
858 fi
859 fi
860 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
861
862 # Prefer explicitly selected file to automatically selected ones.
863 if test -z "$CONFIG_SITE"; then
864 if test "x$prefix" != xNONE; then
865 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
866 else
867 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
868 fi
869 fi
870 for ac_site_file in $CONFIG_SITE; do
871 if test -r "$ac_site_file"; then
872 echo "loading site script $ac_site_file"
873 . "$ac_site_file"
874 fi
875 done
876
877 if test -r "$cache_file"; then
878 echo "loading cache $cache_file"
879 . $cache_file
880 else
881 echo "creating cache $cache_file"
882 > $cache_file
883 fi
884
885 ac_ext=c
886 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
887 ac_cpp='$CPP $CPPFLAGS'
888 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
889 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
890 cross_compiling=$ac_cv_prog_cc_cross
891
892 ac_exeext=
893 ac_objext=o
894 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
895 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
896 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
897 ac_n= ac_c='
898 ' ac_t=' '
899 else
900 ac_n=-n ac_c= ac_t=
901 fi
902 else
903 ac_n= ac_c='\c' ac_t=
904 fi
905
906
907
908 ac_aux_dir=
909 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
910 if test -f $ac_dir/install-sh; then
911 ac_aux_dir=$ac_dir
912 ac_install_sh="$ac_aux_dir/install-sh -c"
913 break
914 elif test -f $ac_dir/install.sh; then
915 ac_aux_dir=$ac_dir
916 ac_install_sh="$ac_aux_dir/install.sh -c"
917 break
918 fi
919 done
920 if test -z "$ac_aux_dir"; then
921 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
922 fi
923 ac_config_guess=$ac_aux_dir/config.guess
924 ac_config_sub=$ac_aux_dir/config.sub
925 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
926
927
928 # Do some error checking and defaulting for the host and target type.
929 # The inputs are:
930 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
931 #
932 # The rules are:
933 # 1. You are not allowed to specify --host, --target, and nonopt at the
934 # same time.
935 # 2. Host defaults to nonopt.
936 # 3. If nonopt is not specified, then host defaults to the current host,
937 # as determined by config.guess.
938 # 4. Target and build default to nonopt.
939 # 5. If nonopt is not specified, then target and build default to host.
940
941 # The aliases save the names the user supplied, while $host etc.
942 # will get canonicalized.
943 case $host---$target---$nonopt in
944 NONE---*---* | *---NONE---* | *---*---NONE) ;;
945 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
946 esac
947
948
949 # Make sure we can run config.sub.
950 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
951 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
952 fi
953
954 echo $ac_n "checking host system type""... $ac_c" 1>&6
955 echo "configure:956: checking host system type" >&5
956
957 host_alias=$host
958 case "$host_alias" in
959 NONE)
960 case $nonopt in
961 NONE)
962 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
963 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
964 fi ;;
965 *) host_alias=$nonopt ;;
966 esac ;;
967 esac
968
969 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
970 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
971 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
972 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
973 echo "$ac_t""$host" 1>&6
974
975 echo $ac_n "checking target system type""... $ac_c" 1>&6
976 echo "configure:977: checking target system type" >&5
977
978 target_alias=$target
979 case "$target_alias" in
980 NONE)
981 case $nonopt in
982 NONE) target_alias=$host_alias ;;
983 *) target_alias=$nonopt ;;
984 esac ;;
985 esac
986
987 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
988 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
989 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
990 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
991 echo "$ac_t""$target" 1>&6
992
993 echo $ac_n "checking build system type""... $ac_c" 1>&6
994 echo "configure:995: checking build system type" >&5
995
996 build_alias=$build
997 case "$build_alias" in
998 NONE)
999 case $nonopt in
1000 NONE) build_alias=$host_alias ;;
1001 *) build_alias=$nonopt ;;
1002 esac ;;
1003 esac
1004
1005 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1006 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1007 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1008 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1009 echo "$ac_t""$build" 1>&6
1010
1011 test "$host_alias" != "$target_alias" &&
1012 test "$program_prefix$program_suffix$program_transform_name" = \
1013 NONENONEs,x,x, &&
1014 program_prefix=${target_alias}-
1015
1016
1017
1018 WX_MAJOR_VERSION_NUMBER=2
1019 WX_MINOR_VERSION_NUMBER=3
1020 WX_RELEASE_NUMBER=3
1021
1022 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1023 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1024
1025 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1026
1027 WX_CURRENT=2
1028 WX_REVISION=0
1029 WX_AGE=0
1030
1031
1032
1033 USE_UNIX=1
1034 USE_WIN32=0
1035 USE_DOS=0
1036 USE_BEOS=0
1037 USE_MAC=0
1038
1039 USE_LINUX=
1040 USE_SGI=
1041 USE_HPUX=
1042 USE_SYSV=
1043 USE_SVR4=
1044 USE_AIX=
1045 USE_SUN=
1046 USE_SOLARIS=
1047 USE_SUNOS=
1048 USE_ALPHA=
1049 USE_OSF=
1050 USE_BSD=
1051 USE_DARWIN=
1052 USE_FREEBSD=
1053 USE_OPENBSD=
1054 USE_NETBSD=
1055 USE_VMS=
1056 USE_ULTRIX=
1057 USE_DATA_GENERAL=
1058
1059 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1060
1061 CPP_MT_FLAG=-D_REENTRANT
1062
1063 ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE"
1064
1065 DEFAULT_wxUSE_GTK=0
1066 DEFAULT_wxUSE_MAC=0
1067 DEFAULT_wxUSE_MGL=0
1068 DEFAULT_wxUSE_MICROWIN=0
1069 DEFAULT_wxUSE_MOTIF=0
1070 DEFAULT_wxUSE_MSW=0
1071 DEFAULT_wxUSE_PM=0
1072 DEFAULT_wxUSE_WINE=0
1073
1074 DEFAULT_DEFAULT_wxUSE_GTK=0
1075 DEFAULT_DEFAULT_wxUSE_MAC=0
1076 DEFAULT_DEFAULT_wxUSE_MGL=0
1077 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1078 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1079 DEFAULT_DEFAULT_wxUSE_MSW=0
1080 DEFAULT_DEFAULT_wxUSE_PM=0
1081 DEFAULT_DEFAULT_wxUSE_WINE=0
1082
1083 PROGRAM_EXT=
1084 SO_SUFFIX=so
1085
1086 case "${host}" in
1087 *-hp-hpux* )
1088 USE_HPUX=1
1089 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1090 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1091 SO_SUFFIX=sl
1092 cat >> confdefs.h <<\EOF
1093 #define __HPUX__ 1
1094 EOF
1095
1096 ;;
1097 *-*-linux* )
1098 USE_LINUX=1
1099 cat >> confdefs.h <<\EOF
1100 #define __LINUX__ 1
1101 EOF
1102
1103 TMP=`uname -m`
1104 if test "x$TMP" = "xalpha"; then
1105 USE_ALPHA=1
1106 cat >> confdefs.h <<\EOF
1107 #define __ALPHA__ 1
1108 EOF
1109
1110 fi
1111 DEFAULT_DEFAULT_wxUSE_GTK=1
1112 ;;
1113 *-*-irix5* | *-*-irix6* )
1114 USE_SGI=1
1115 USE_SVR4=1
1116 cat >> confdefs.h <<\EOF
1117 #define __SGI__ 1
1118 EOF
1119
1120 cat >> confdefs.h <<\EOF
1121 #define __SVR4__ 1
1122 EOF
1123
1124 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1125 ;;
1126 *-*-solaris2* )
1127 USE_SUN=1
1128 USE_SOLARIS=1
1129 USE_SVR4=1
1130 cat >> confdefs.h <<\EOF
1131 #define __SUN__ 1
1132 EOF
1133
1134 cat >> confdefs.h <<\EOF
1135 #define __SOLARIS__ 1
1136 EOF
1137
1138 cat >> confdefs.h <<\EOF
1139 #define __SVR4__ 1
1140 EOF
1141
1142 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1143 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1144 ;;
1145 *-*-sunos4* )
1146 USE_SUN=1
1147 USE_SUNOS=1
1148 USE_BSD=1
1149 cat >> confdefs.h <<\EOF
1150 #define __SUN__ 1
1151 EOF
1152
1153 cat >> confdefs.h <<\EOF
1154 #define __SUNOS__ 1
1155 EOF
1156
1157 cat >> confdefs.h <<\EOF
1158 #define __BSD__ 1
1159 EOF
1160
1161 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1162 ;;
1163 *-*-freebsd*)
1164 USE_BSD=1
1165 USE_FREEBSD=1
1166 CPP_MT_FLAG=-D_THREAD_SAFE
1167 cat >> confdefs.h <<\EOF
1168 #define __FREEBSD__ 1
1169 EOF
1170
1171 cat >> confdefs.h <<\EOF
1172 #define __BSD__ 1
1173 EOF
1174
1175 DEFAULT_DEFAULT_wxUSE_GTK=1
1176 ;;
1177 *-*-openbsd*)
1178 USE_BSD=1
1179 USE_OPENBSD=1
1180 cat >> confdefs.h <<\EOF
1181 #define __FREEBSD__ 1
1182 EOF
1183
1184 cat >> confdefs.h <<\EOF
1185 #define __OPENBSD__ 1
1186 EOF
1187
1188 DEFAULT_DEFAULT_wxUSE_GTK=1
1189 ;;
1190 *-*-netbsd*)
1191 USE_BSD=1
1192 USE_NETBSD=1
1193 cat >> confdefs.h <<\EOF
1194 #define __FREEBSD__ 1
1195 EOF
1196
1197 cat >> confdefs.h <<\EOF
1198 #define __NETBSD__ 1
1199 EOF
1200
1201 DEFAULT_DEFAULT_wxUSE_GTK=1
1202 ;;
1203 *-*-osf* )
1204 USE_ALPHA=1
1205 USE_OSF=1
1206 cat >> confdefs.h <<\EOF
1207 #define __ALPHA__ 1
1208 EOF
1209
1210 cat >> confdefs.h <<\EOF
1211 #define __OSF__ 1
1212 EOF
1213
1214 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1215 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1216 ;;
1217 *-*-dgux5* )
1218 USE_ALPHA=1
1219 USE_SVR4=1
1220 cat >> confdefs.h <<\EOF
1221 #define __ALPHA__ 1
1222 EOF
1223
1224 cat >> confdefs.h <<\EOF
1225 #define __SVR4__ 1
1226 EOF
1227
1228 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1229 ;;
1230 *-*-sysv5* )
1231 USE_SYSV=1
1232 USE_SVR4=1
1233 cat >> confdefs.h <<\EOF
1234 #define __SYSV__ 1
1235 EOF
1236
1237 cat >> confdefs.h <<\EOF
1238 #define __SVR4__ 1
1239 EOF
1240
1241 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1242 ;;
1243 *-*-aix* )
1244 USE_AIX=1
1245 USE_SYSV=1
1246 USE_SVR4=1
1247 cat >> confdefs.h <<\EOF
1248 #define __AIX__ 1
1249 EOF
1250
1251 cat >> confdefs.h <<\EOF
1252 #define __SYSV__ 1
1253 EOF
1254
1255 cat >> confdefs.h <<\EOF
1256 #define __SVR4__ 1
1257 EOF
1258
1259 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1260 ;;
1261
1262 *-*-cygwin* | *-*-mingw32* )
1263 USE_UNIX=0
1264 USE_WIN32=1
1265 SO_SUFFIX=dll
1266 cat >> confdefs.h <<\EOF
1267 #define __WIN32__ 1
1268 EOF
1269
1270 cat >> confdefs.h <<\EOF
1271 #define __WIN95__ 1
1272 EOF
1273
1274 cat >> confdefs.h <<\EOF
1275 #define __WINDOWS__ 1
1276 EOF
1277
1278 cat >> confdefs.h <<\EOF
1279 #define __GNUWIN32__ 1
1280 EOF
1281
1282 cat >> confdefs.h <<\EOF
1283 #define STRICT 1
1284 EOF
1285
1286 cat >> confdefs.h <<\EOF
1287 #define WINVER 0x0400
1288 EOF
1289
1290 PROGRAM_EXT=".exe"
1291 RESCOMP=windres
1292 DEFAULT_DEFAULT_wxUSE_MSW=1
1293 ;;
1294
1295 *-pc-msdosdjgpp )
1296 USE_UNIX=0
1297 USE_DOS=1
1298 cat >> confdefs.h <<\EOF
1299 #define __DOS__ 1
1300 EOF
1301
1302 PROGRAM_EXT=".exe"
1303 DEFAULT_DEFAULT_wxUSE_MGL=1
1304 DEFAULT_DEFAULT_wxUSE_SHARED=0
1305 ;;
1306
1307 *-pc-os2_emx | *-pc-os2-emx )
1308 cat >> confdefs.h <<\EOF
1309 #define __EMX__ 1
1310 EOF
1311
1312 PROGRAM_EXT=".exe"
1313 DEFAULT_DEFAULT_wxUSE_PM=1
1314 ;;
1315
1316 powerpc-*-darwin* )
1317 USE_BSD=1
1318 USE_DARWIN=1
1319 CPP_MT_FLAG=
1320 SO_SUFFIX=dylib
1321 cat >> confdefs.h <<\EOF
1322 #define __BSD__ 1
1323 EOF
1324
1325 cat >> confdefs.h <<\EOF
1326 #define __DARWIN__ 1
1327 EOF
1328
1329 cat >> confdefs.h <<\EOF
1330 #define __POWERPC__ 1
1331 EOF
1332
1333 DEFAULT_DEFAULT_wxUSE_MAC=1
1334 ;;
1335
1336 *-*-beos* )
1337 USE_BEOS=1
1338 cat >> confdefs.h <<\EOF
1339 #define __BEOS__ 1
1340 EOF
1341
1342 ;;
1343
1344 *)
1345 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1346 esac
1347
1348 if test "$USE_UNIX" = 1 ; then
1349 wxUSE_UNIX=yes
1350 cat >> confdefs.h <<\EOF
1351 #define __UNIX__ 1
1352 EOF
1353
1354 fi
1355
1356 if test "$USE_LINUX" = 1; then
1357 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
1358 echo "configure:1359: checking for glibc 2.1 or later" >&5
1359 if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1361 else
1362 cat > conftest.$ac_ext <<EOF
1363 #line 1364 "configure"
1364 #include "confdefs.h"
1365 #include <features.h>
1366 int main() {
1367
1368 #if !__GLIBC_PREREQ(2, 1)
1369 #error not glibc2.1
1370 #endif
1371
1372 ; return 0; }
1373 EOF
1374 if { (eval echo configure:1375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1375 rm -rf conftest*
1376
1377 wx_lib_glibc21=yes
1378
1379 else
1380 echo "configure: failed program was:" >&5
1381 cat conftest.$ac_ext >&5
1382 rm -rf conftest*
1383
1384 wx_lib_glibc21=no
1385
1386
1387 fi
1388 rm -f conftest*
1389
1390 fi
1391
1392 echo "$ac_t""$wx_lib_glibc21" 1>&6
1393 if test "$wx_lib_glibc21" = "yes"; then
1394 cat >> confdefs.h <<\EOF
1395 #define wxHAVE_GLIBC2 1
1396 EOF
1397
1398 fi
1399 fi
1400
1401
1402
1403
1404 wx_arg_cache_file="configarg.cache"
1405 echo "loading argument cache $wx_arg_cache_file"
1406 rm -f ${wx_arg_cache_file}.tmp
1407 touch ${wx_arg_cache_file}.tmp
1408 touch ${wx_arg_cache_file}
1409
1410
1411 DEBUG_CONFIGURE=0
1412 if test $DEBUG_CONFIGURE = 1; then
1413 DEFAULT_wxUSE_UNIVERSAL=no
1414
1415 DEFAULT_wxUSE_THREADS=yes
1416
1417 DEFAULT_wxUSE_SHARED=yes
1418 DEFAULT_wxUSE_SONAME=no
1419 DEFAULT_wxUSE_OPTIMISE=no
1420 DEFAULT_wxUSE_PROFILE=no
1421 DEFAULT_wxUSE_NO_DEPS=no
1422 DEFAULT_wxUSE_NO_RTTI=yes
1423 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1424 DEFAULT_wxUSE_PERMISSIVE=no
1425 DEFAULT_wxUSE_DEBUG_FLAG=yes
1426 DEFAULT_wxUSE_DEBUG_INFO=yes
1427 DEFAULT_wxUSE_DEBUG_GDB=yes
1428 DEFAULT_wxUSE_MEM_TRACING=no
1429 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1430 DEFAULT_wxUSE_DMALLOC=no
1431 DEFAULT_wxUSE_PRECOMP=yes
1432 DEFAULT_wxUSE_APPLE_IEEE=no
1433
1434 DEFAULT_wxUSE_LOG=yes
1435 DEFAULT_wxUSE_LOGWINDOW=no
1436 DEFAULT_wxUSE_LOGGUI=no
1437 DEFAULT_wxUSE_LOGDIALOG=no
1438
1439 DEFAULT_wxUSE_GUI=yes
1440 DEFAULT_wxUSE_CONTROLS=no
1441
1442 DEFAULT_wxUSE_REGEX=no
1443 DEFAULT_wxUSE_ZLIB=no
1444 DEFAULT_wxUSE_LIBPNG=no
1445 DEFAULT_wxUSE_LIBJPEG=no
1446 DEFAULT_wxUSE_LIBTIFF=no
1447 DEFAULT_wxUSE_ODBC=no
1448 DEFAULT_wxUSE_FREETYPE=no
1449 DEFAULT_wxUSE_OPENGL=no
1450
1451 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1452 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1453 DEFAULT_wxUSE_STD_IOSTREAM=no
1454 DEFAULT_wxUSE_CMDLINE_PARSER=no
1455 DEFAULT_wxUSE_DATETIME=no
1456 DEFAULT_wxUSE_TIMEDATE=no
1457 DEFAULT_wxUSE_TIMER=no
1458 DEFAULT_wxUSE_STOPWATCH=no
1459 DEFAULT_wxUSE_FILE=no
1460 DEFAULT_wxUSE_FFILE=no
1461 DEFAULT_wxUSE_TEXTBUFFER=no
1462 DEFAULT_wxUSE_TEXTFILE=no
1463 DEFAULT_wxUSE_WAVE=no
1464 DEFAULT_wxUSE_INTL=no
1465 DEFAULT_wxUSE_CONFIG=no
1466 DEFAULT_wxUSE_FONTMAP=no
1467 DEFAULT_wxUSE_STREAMS=no
1468 DEFAULT_wxUSE_SOCKETS=no
1469 DEFAULT_wxUSE_DIALUP_MANAGER=no
1470 DEFAULT_wxUSE_JOYSTICK=no
1471 DEFAULT_wxUSE_DYNLIB_CLASS=no
1472 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1473 DEFAULT_wxUSE_LONGLONG=no
1474 DEFAULT_wxUSE_GEOMETRY=no
1475
1476 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1477 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1478 DEFAULT_wxUSE_POSTSCRIPT=no
1479
1480 DEFAULT_wxUSE_X_RESOURCES=no
1481 DEFAULT_wxUSE_CLIPBOARD=no
1482 DEFAULT_wxUSE_TOOLTIPS=no
1483 DEFAULT_wxUSE_DRAG_AND_DROP=no
1484 DEFAULT_wxUSE_DRAGIMAGE=no
1485 DEFAULT_wxUSE_SPLINES=no
1486
1487 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1488 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1489 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1490
1491 DEFAULT_wxUSE_PROLOGIO=no
1492 DEFAULT_wxUSE_RESOURCES=no
1493 DEFAULT_wxUSE_CONSTRAINTS=no
1494 DEFAULT_wxUSE_IPC=no
1495 DEFAULT_wxUSE_HELP=no
1496 DEFAULT_wxUSE_MS_HTML_HELP=no
1497 DEFAULT_wxUSE_WXHTML_HELP=no
1498 DEFAULT_wxUSE_TREELAYOUT=no
1499 DEFAULT_wxUSE_METAFILE=no
1500 DEFAULT_wxUSE_MIMETYPE=no
1501 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1502
1503 DEFAULT_wxUSE_COMMONDLGS=no
1504 DEFAULT_wxUSE_CHOICEDLG=no
1505 DEFAULT_wxUSE_COLOURDLG=no
1506 DEFAULT_wxUSE_DIRDLG=no
1507 DEFAULT_wxUSE_FILEDLG=no
1508 DEFAULT_wxUSE_FINDREPLDLG=no
1509 DEFAULT_wxUSE_FONTDLG=no
1510 DEFAULT_wxUSE_MSGDLG=no
1511 DEFAULT_wxUSE_NUMBERDLG=no
1512 DEFAULT_wxUSE_TEXTDLG=no
1513 DEFAULT_wxUSE_SPLASH=no
1514 DEFAULT_wxUSE_STARTUP_TIPS=no
1515 DEFAULT_wxUSE_PROGRESSDLG=no
1516 DEFAULT_wxUSE_WIZARDDLG=no
1517
1518 DEFAULT_wxUSE_MENUS=no
1519 DEFAULT_wxUSE_MINIFRAME=no
1520 DEFAULT_wxUSE_HTML=no
1521 DEFAULT_wxUSE_FILESYSTEM=no
1522 DEFAULT_wxUSE_FS_INET=no
1523 DEFAULT_wxUSE_FS_ZIP=no
1524 DEFAULT_wxUSE_BUSYINFO=no
1525 DEFAULT_wxUSE_ZIPSTREAM=no
1526 DEFAULT_wxUSE_VALIDATORS=no
1527
1528 DEFAULT_wxUSE_ACCEL=no
1529 DEFAULT_wxUSE_BUTTON=no
1530 DEFAULT_wxUSE_BMPBUTTON=no
1531 DEFAULT_wxUSE_CALCTRL=no
1532 DEFAULT_wxUSE_CARET=no
1533 DEFAULT_wxUSE_CHECKBOX=no
1534 DEFAULT_wxUSE_CHECKLST=no
1535 DEFAULT_wxUSE_CHOICE=no
1536 DEFAULT_wxUSE_COMBOBOX=no
1537 DEFAULT_wxUSE_GAUGE=no
1538 DEFAULT_wxUSE_GRID=no
1539 DEFAULT_wxUSE_NEW_GRID=no
1540 DEFAULT_wxUSE_IMAGLIST=no
1541 DEFAULT_wxUSE_LISTBOX=no
1542 DEFAULT_wxUSE_LISTCTRL=no
1543 DEFAULT_wxUSE_NOTEBOOK=no
1544 DEFAULT_wxUSE_PROPSHEET=no
1545 DEFAULT_wxUSE_RADIOBOX=no
1546 DEFAULT_wxUSE_RADIOBTN=no
1547 DEFAULT_wxUSE_SASH=no
1548 DEFAULT_wxUSE_SCROLLBAR=no
1549 DEFAULT_wxUSE_SLIDER=no
1550 DEFAULT_wxUSE_SPINBTN=no
1551 DEFAULT_wxUSE_SPINCTRL=no
1552 DEFAULT_wxUSE_SPLITTER=no
1553 DEFAULT_wxUSE_STATBMP=no
1554 DEFAULT_wxUSE_STATBOX=no
1555 DEFAULT_wxUSE_STATLINE=no
1556 DEFAULT_wxUSE_STATTEXT=no
1557 DEFAULT_wxUSE_STATUSBAR=yes
1558 DEFAULT_wxUSE_TABDIALOG=no
1559 DEFAULT_wxUSE_TEXTCTRL=no
1560 DEFAULT_wxUSE_TOGGLEBTN=no
1561 DEFAULT_wxUSE_TOOLBAR=no
1562 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1563 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1564 DEFAULT_wxUSE_TREECTRL=no
1565 DEFAULT_wxUSE_POPUPWIN=no
1566 DEFAULT_wxUSE_TIPWINDOW=no
1567
1568 DEFAULT_wxUSE_UNICODE=no
1569 DEFAULT_wxUSE_WCSRTOMBS=no
1570
1571 DEFAULT_wxUSE_PALETTE=no
1572 DEFAULT_wxUSE_IMAGE=no
1573 DEFAULT_wxUSE_GIF=no
1574 DEFAULT_wxUSE_PCX=no
1575 DEFAULT_wxUSE_PNM=no
1576 DEFAULT_wxUSE_XPM=no
1577 else
1578 DEFAULT_wxUSE_UNIVERSAL=no
1579
1580 DEFAULT_wxUSE_THREADS=yes
1581
1582 DEFAULT_wxUSE_SHARED=yes
1583 DEFAULT_wxUSE_SONAME=no
1584 DEFAULT_wxUSE_OPTIMISE=yes
1585 DEFAULT_wxUSE_PROFILE=no
1586 DEFAULT_wxUSE_NO_DEPS=no
1587 DEFAULT_wxUSE_NO_RTTI=yes
1588 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1589 DEFAULT_wxUSE_PERMISSIVE=no
1590 DEFAULT_wxUSE_DEBUG_FLAG=no
1591 DEFAULT_wxUSE_DEBUG_INFO=no
1592 DEFAULT_wxUSE_DEBUG_GDB=no
1593 DEFAULT_wxUSE_MEM_TRACING=no
1594 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1595 DEFAULT_wxUSE_DMALLOC=no
1596 DEFAULT_wxUSE_PRECOMP=yes
1597 DEFAULT_wxUSE_APPLE_IEEE=yes
1598
1599 DEFAULT_wxUSE_LOG=yes
1600 DEFAULT_wxUSE_LOGWINDOW=yes
1601 DEFAULT_wxUSE_LOGGUI=yes
1602 DEFAULT_wxUSE_LOGDIALOG=yes
1603
1604 DEFAULT_wxUSE_GUI=yes
1605
1606 DEFAULT_wxUSE_REGEX=yes
1607 DEFAULT_wxUSE_ZLIB=yes
1608 DEFAULT_wxUSE_LIBPNG=yes
1609 DEFAULT_wxUSE_LIBJPEG=yes
1610 DEFAULT_wxUSE_LIBTIFF=yes
1611 DEFAULT_wxUSE_ODBC=no
1612 DEFAULT_wxUSE_FREETYPE=no
1613 DEFAULT_wxUSE_OPENGL=no
1614
1615 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1616 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1617 DEFAULT_wxUSE_STD_IOSTREAM=no
1618 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1619 DEFAULT_wxUSE_DATETIME=yes
1620 DEFAULT_wxUSE_TIMEDATE=no
1621 DEFAULT_wxUSE_TIMER=yes
1622 DEFAULT_wxUSE_STOPWATCH=yes
1623 DEFAULT_wxUSE_FILE=yes
1624 DEFAULT_wxUSE_FFILE=yes
1625 DEFAULT_wxUSE_TEXTBUFFER=yes
1626 DEFAULT_wxUSE_TEXTFILE=yes
1627 DEFAULT_wxUSE_WAVE=no
1628 DEFAULT_wxUSE_INTL=yes
1629 DEFAULT_wxUSE_CONFIG=yes
1630 DEFAULT_wxUSE_FONTMAP=yes
1631 DEFAULT_wxUSE_STREAMS=yes
1632 DEFAULT_wxUSE_SOCKETS=yes
1633 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1634 DEFAULT_wxUSE_JOYSTICK=yes
1635 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1636 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1637 DEFAULT_wxUSE_LONGLONG=yes
1638 DEFAULT_wxUSE_GEOMETRY=yes
1639
1640 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1641 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1642 DEFAULT_wxUSE_POSTSCRIPT=yes
1643
1644 DEFAULT_wxUSE_X_RESOURCES=no
1645 DEFAULT_wxUSE_CLIPBOARD=yes
1646 DEFAULT_wxUSE_TOOLTIPS=yes
1647 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1648 DEFAULT_wxUSE_DRAGIMAGE=yes
1649 DEFAULT_wxUSE_SPLINES=yes
1650
1651 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1652 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1653 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1654
1655 DEFAULT_wxUSE_PROLOGIO=yes
1656 DEFAULT_wxUSE_RESOURCES=yes
1657 DEFAULT_wxUSE_CONSTRAINTS=yes
1658 DEFAULT_wxUSE_IPC=yes
1659 DEFAULT_wxUSE_HELP=yes
1660 DEFAULT_wxUSE_MS_HTML_HELP=yes
1661 DEFAULT_wxUSE_WXHTML_HELP=yes
1662 DEFAULT_wxUSE_TREELAYOUT=yes
1663 DEFAULT_wxUSE_METAFILE=yes
1664 DEFAULT_wxUSE_MIMETYPE=yes
1665 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1666
1667 DEFAULT_wxUSE_COMMONDLGS=yes
1668 DEFAULT_wxUSE_CHOICEDLG=yes
1669 DEFAULT_wxUSE_COLOURDLG=yes
1670 DEFAULT_wxUSE_DIRDLG=yes
1671 DEFAULT_wxUSE_FILEDLG=yes
1672 DEFAULT_wxUSE_FINDREPLDLG=yes
1673 DEFAULT_wxUSE_FONTDLG=yes
1674 DEFAULT_wxUSE_MSGDLG=yes
1675 DEFAULT_wxUSE_NUMBERDLG=yes
1676 DEFAULT_wxUSE_TEXTDLG=yes
1677 DEFAULT_wxUSE_SPLASH=yes
1678 DEFAULT_wxUSE_STARTUP_TIPS=yes
1679 DEFAULT_wxUSE_PROGRESSDLG=yes
1680 DEFAULT_wxUSE_WIZARDDLG=yes
1681
1682 DEFAULT_wxUSE_MENUS=yes
1683 DEFAULT_wxUSE_MINIFRAME=yes
1684 DEFAULT_wxUSE_HTML=yes
1685 DEFAULT_wxUSE_FILESYSTEM=yes
1686 DEFAULT_wxUSE_FS_INET=yes
1687 DEFAULT_wxUSE_FS_ZIP=yes
1688 DEFAULT_wxUSE_BUSYINFO=yes
1689 DEFAULT_wxUSE_ZIPSTREAM=yes
1690 DEFAULT_wxUSE_VALIDATORS=yes
1691
1692 DEFAULT_wxUSE_ACCEL=yes
1693 DEFAULT_wxUSE_BUTTON=yes
1694 DEFAULT_wxUSE_BMPBUTTON=yes
1695 DEFAULT_wxUSE_CALCTRL=yes
1696 DEFAULT_wxUSE_CARET=yes
1697 DEFAULT_wxUSE_CHECKBOX=yes
1698 DEFAULT_wxUSE_CHECKLST=yes
1699 DEFAULT_wxUSE_CHOICE=yes
1700 DEFAULT_wxUSE_COMBOBOX=yes
1701 DEFAULT_wxUSE_GAUGE=yes
1702 DEFAULT_wxUSE_GRID=yes
1703 DEFAULT_wxUSE_NEW_GRID=yes
1704 DEFAULT_wxUSE_IMAGLIST=yes
1705 DEFAULT_wxUSE_LISTBOX=yes
1706 DEFAULT_wxUSE_LISTCTRL=yes
1707 DEFAULT_wxUSE_NOTEBOOK=yes
1708 DEFAULT_wxUSE_PROPSHEET=yes
1709 DEFAULT_wxUSE_RADIOBOX=yes
1710 DEFAULT_wxUSE_RADIOBTN=yes
1711 DEFAULT_wxUSE_SASH=yes
1712 DEFAULT_wxUSE_SCROLLBAR=yes
1713 DEFAULT_wxUSE_SLIDER=yes
1714 DEFAULT_wxUSE_SPINBTN=yes
1715 DEFAULT_wxUSE_SPINCTRL=yes
1716 DEFAULT_wxUSE_SPLITTER=yes
1717 DEFAULT_wxUSE_STATBMP=yes
1718 DEFAULT_wxUSE_STATBOX=yes
1719 DEFAULT_wxUSE_STATLINE=yes
1720 DEFAULT_wxUSE_STATTEXT=yes
1721 DEFAULT_wxUSE_STATUSBAR=yes
1722 DEFAULT_wxUSE_TABDIALOG=no
1723 DEFAULT_wxUSE_TEXTCTRL=yes
1724 DEFAULT_wxUSE_TOGGLEBTN=yes
1725 DEFAULT_wxUSE_TOOLBAR=yes
1726 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1727 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1728 DEFAULT_wxUSE_TREECTRL=yes
1729 DEFAULT_wxUSE_POPUPWIN=yes
1730 DEFAULT_wxUSE_TIPWINDOW=yes
1731
1732 DEFAULT_wxUSE_UNICODE=no
1733 DEFAULT_wxUSE_WCSRTOMBS=no
1734
1735 DEFAULT_wxUSE_PALETTE=yes
1736 DEFAULT_wxUSE_IMAGE=yes
1737 DEFAULT_wxUSE_GIF=yes
1738 DEFAULT_wxUSE_PCX=yes
1739 DEFAULT_wxUSE_PNM=yes
1740 DEFAULT_wxUSE_XPM=yes
1741 fi
1742
1743
1744
1745 for toolkit in `echo $ALL_TOOLKITS`; do
1746 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1747 if test "x$LINE" != x ; then
1748 has_toolkit_in_cache=1
1749 eval "DEFAULT_$LINE"
1750 eval "CACHE_$toolkit=1"
1751 fi
1752 done
1753
1754
1755
1756 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1757 echo "configure:1758: checking for --enable-gui" >&5
1758 no_cache=0
1759 # Check whether --enable-gui or --disable-gui was given.
1760 if test "${enable_gui+set}" = set; then
1761 enableval="$enable_gui"
1762
1763 if test "$enableval" = yes; then
1764 ac_cv_use_gui='wxUSE_GUI=yes'
1765 else
1766 ac_cv_use_gui='wxUSE_GUI=no'
1767 fi
1768
1769 else
1770
1771 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1772 if test "x$LINE" != x ; then
1773 eval "DEFAULT_$LINE"
1774 else
1775 no_cache=1
1776 fi
1777
1778 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1779
1780 fi
1781
1782
1783 eval "$ac_cv_use_gui"
1784 if test "$no_cache" != 1; then
1785 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1786 fi
1787
1788 if test "$wxUSE_GUI" = yes; then
1789 echo "$ac_t""yes" 1>&6
1790 else
1791 echo "$ac_t""no" 1>&6
1792 fi
1793
1794
1795 if test "$wxUSE_GUI" = "yes"; then
1796
1797
1798 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1799 echo "configure:1800: checking for --enable-universal" >&5
1800 no_cache=0
1801 # Check whether --enable-universal or --disable-universal was given.
1802 if test "${enable_universal+set}" = set; then
1803 enableval="$enable_universal"
1804
1805 if test "$enableval" = yes; then
1806 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1807 else
1808 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1809 fi
1810
1811 else
1812
1813 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1814 if test "x$LINE" != x ; then
1815 eval "DEFAULT_$LINE"
1816 else
1817 no_cache=1
1818 fi
1819
1820 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1821
1822 fi
1823
1824
1825 eval "$ac_cv_use_universal"
1826 if test "$no_cache" != 1; then
1827 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1828 fi
1829
1830 if test "$wxUSE_UNIVERSAL" = yes; then
1831 echo "$ac_t""yes" 1>&6
1832 else
1833 echo "$ac_t""no" 1>&6
1834 fi
1835
1836 # Check whether --with-gtk or --without-gtk was given.
1837 if test "${with_gtk+set}" = set; then
1838 withval="$with_gtk"
1839 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1840 fi
1841
1842 # Check whether --with-motif or --without-motif was given.
1843 if test "${with_motif+set}" = set; then
1844 withval="$with_motif"
1845 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1846 fi
1847
1848 # Check whether --with-mac or --without-mac was given.
1849 if test "${with_mac+set}" = set; then
1850 withval="$with_mac"
1851 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1852 fi
1853
1854 # Check whether --with-wine or --without-wine was given.
1855 if test "${with_wine+set}" = set; then
1856 withval="$with_wine"
1857 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1858 fi
1859
1860 # Check whether --with-msw or --without-msw was given.
1861 if test "${with_msw+set}" = set; then
1862 withval="$with_msw"
1863 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
1864 fi
1865
1866 # Check whether --with-pm or --without-pm was given.
1867 if test "${with_pm+set}" = set; then
1868 withval="$with_pm"
1869 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1870 fi
1871
1872 # Check whether --with-mgl or --without-mgl was given.
1873 if test "${with_mgl+set}" = set; then
1874 withval="$with_mgl"
1875 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1876 fi
1877
1878 # Check whether --with-microwin or --without-microwin was given.
1879 if test "${with_microwin+set}" = set; then
1880 withval="$with_microwin"
1881 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1882 fi
1883
1884
1885 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1886 if test "${enable_gtk2+set}" = set; then
1887 enableval="$enable_gtk2"
1888 wxUSE_GTK2=1
1889 else
1890 wxUSE_GTK2=0
1891 fi
1892
1893
1894
1895 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1896 echo "configure:1897: checking for --with-libpng" >&5
1897 no_cache=0
1898 # Check whether --with-libpng or --without-libpng was given.
1899 if test "${with_libpng+set}" = set; then
1900 withval="$with_libpng"
1901
1902 if test "$withval" = yes; then
1903 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1904 elif test "$withval" = no; then
1905 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1906 elif test "$withval" = sys; then
1907 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1908 elif test "$withval" = builtin; then
1909 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1910 else
1911 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1912 fi
1913
1914 else
1915
1916 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1917 if test "x$LINE" != x ; then
1918 eval "DEFAULT_$LINE"
1919 else
1920 no_cache=1
1921 fi
1922
1923 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1924
1925 fi
1926
1927
1928 eval "$ac_cv_use_libpng"
1929 if test "$no_cache" != 1; then
1930 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1931 fi
1932
1933 if test "$wxUSE_LIBPNG" = yes; then
1934 echo "$ac_t""yes" 1>&6
1935 elif test "$wxUSE_LIBPNG" = no; then
1936 echo "$ac_t""no" 1>&6
1937 elif test "$wxUSE_LIBPNG" = sys; then
1938 echo "$ac_t""system version" 1>&6
1939 elif test "$wxUSE_LIBPNG" = builtin; then
1940 echo "$ac_t""builtin version" 1>&6
1941 else
1942 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1943 fi
1944
1945
1946 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1947 echo "configure:1948: checking for --with-libjpeg" >&5
1948 no_cache=0
1949 # Check whether --with-libjpeg or --without-libjpeg was given.
1950 if test "${with_libjpeg+set}" = set; then
1951 withval="$with_libjpeg"
1952
1953 if test "$withval" = yes; then
1954 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1955 elif test "$withval" = no; then
1956 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1957 elif test "$withval" = sys; then
1958 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1959 elif test "$withval" = builtin; then
1960 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
1961 else
1962 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1963 fi
1964
1965 else
1966
1967 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1968 if test "x$LINE" != x ; then
1969 eval "DEFAULT_$LINE"
1970 else
1971 no_cache=1
1972 fi
1973
1974 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1975
1976 fi
1977
1978
1979 eval "$ac_cv_use_libjpeg"
1980 if test "$no_cache" != 1; then
1981 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1982 fi
1983
1984 if test "$wxUSE_LIBJPEG" = yes; then
1985 echo "$ac_t""yes" 1>&6
1986 elif test "$wxUSE_LIBJPEG" = no; then
1987 echo "$ac_t""no" 1>&6
1988 elif test "$wxUSE_LIBJPEG" = sys; then
1989 echo "$ac_t""system version" 1>&6
1990 elif test "$wxUSE_LIBJPEG" = builtin; then
1991 echo "$ac_t""builtin version" 1>&6
1992 else
1993 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1994 fi
1995
1996
1997 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
1998 echo "configure:1999: checking for --with-libtiff" >&5
1999 no_cache=0
2000 # Check whether --with-libtiff or --without-libtiff was given.
2001 if test "${with_libtiff+set}" = set; then
2002 withval="$with_libtiff"
2003
2004 if test "$withval" = yes; then
2005 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2006 elif test "$withval" = no; then
2007 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2008 elif test "$withval" = sys; then
2009 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2010 elif test "$withval" = builtin; then
2011 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2012 else
2013 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2014 fi
2015
2016 else
2017
2018 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2019 if test "x$LINE" != x ; then
2020 eval "DEFAULT_$LINE"
2021 else
2022 no_cache=1
2023 fi
2024
2025 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2026
2027 fi
2028
2029
2030 eval "$ac_cv_use_libtiff"
2031 if test "$no_cache" != 1; then
2032 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2033 fi
2034
2035 if test "$wxUSE_LIBTIFF" = yes; then
2036 echo "$ac_t""yes" 1>&6
2037 elif test "$wxUSE_LIBTIFF" = no; then
2038 echo "$ac_t""no" 1>&6
2039 elif test "$wxUSE_LIBTIFF" = sys; then
2040 echo "$ac_t""system version" 1>&6
2041 elif test "$wxUSE_LIBTIFF" = builtin; then
2042 echo "$ac_t""builtin version" 1>&6
2043 else
2044 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2045 fi
2046
2047
2048 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
2049 echo "configure:2050: checking for --with-freetype" >&5
2050 no_cache=0
2051 # Check whether --with-freetype or --without-freetype was given.
2052 if test "${with_freetype+set}" = set; then
2053 withval="$with_freetype"
2054
2055 if test "$withval" = yes; then
2056 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2057 elif test "$withval" = no; then
2058 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2059 elif test "$withval" = sys; then
2060 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
2061 elif test "$withval" = builtin; then
2062 ac_cv_use_freetype='wxUSE_FREETYPE=builtin'
2063 else
2064 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2065 fi
2066
2067 else
2068
2069 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2070 if test "x$LINE" != x ; then
2071 eval "DEFAULT_$LINE"
2072 else
2073 no_cache=1
2074 fi
2075
2076 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
2077
2078 fi
2079
2080
2081 eval "$ac_cv_use_freetype"
2082 if test "$no_cache" != 1; then
2083 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2084 fi
2085
2086 if test "$wxUSE_FREETYPE" = yes; then
2087 echo "$ac_t""yes" 1>&6
2088 elif test "$wxUSE_FREETYPE" = no; then
2089 echo "$ac_t""no" 1>&6
2090 elif test "$wxUSE_FREETYPE" = sys; then
2091 echo "$ac_t""system version" 1>&6
2092 elif test "$wxUSE_FREETYPE" = builtin; then
2093 echo "$ac_t""builtin version" 1>&6
2094 else
2095 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2096 fi
2097
2098
2099 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2100 echo "configure:2101: checking for --with-opengl" >&5
2101 no_cache=0
2102 # Check whether --with-opengl or --without-opengl was given.
2103 if test "${with_opengl+set}" = set; then
2104 withval="$with_opengl"
2105
2106 if test "$withval" = yes; then
2107 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2108 else
2109 ac_cv_use_opengl='wxUSE_OPENGL=no'
2110 fi
2111
2112 else
2113
2114 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2115 if test "x$LINE" != x ; then
2116 eval "DEFAULT_$LINE"
2117 else
2118 no_cache=1
2119 fi
2120
2121 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2122
2123 fi
2124
2125
2126 eval "$ac_cv_use_opengl"
2127 if test "$no_cache" != 1; then
2128 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2129 fi
2130
2131 if test "$wxUSE_OPENGL" = yes; then
2132 echo "$ac_t""yes" 1>&6
2133 else
2134 echo "$ac_t""no" 1>&6
2135 fi
2136
2137
2138 fi
2139
2140
2141 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2142 echo "configure:2143: checking for --with-dmalloc" >&5
2143 no_cache=0
2144 # Check whether --with-dmalloc or --without-dmalloc was given.
2145 if test "${with_dmalloc+set}" = set; then
2146 withval="$with_dmalloc"
2147
2148 if test "$withval" = yes; then
2149 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2150 else
2151 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2152 fi
2153
2154 else
2155
2156 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2157 if test "x$LINE" != x ; then
2158 eval "DEFAULT_$LINE"
2159 else
2160 no_cache=1
2161 fi
2162
2163 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2164
2165 fi
2166
2167
2168 eval "$ac_cv_use_dmalloc"
2169 if test "$no_cache" != 1; then
2170 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2171 fi
2172
2173 if test "$wxUSE_DMALLOC" = yes; then
2174 echo "$ac_t""yes" 1>&6
2175 else
2176 echo "$ac_t""no" 1>&6
2177 fi
2178
2179
2180 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2181 echo "configure:2182: checking for --with-regex" >&5
2182 no_cache=0
2183 # Check whether --with-regex or --without-regex was given.
2184 if test "${with_regex+set}" = set; then
2185 withval="$with_regex"
2186
2187 if test "$withval" = yes; then
2188 ac_cv_use_regex='wxUSE_REGEX=yes'
2189 elif test "$withval" = no; then
2190 ac_cv_use_regex='wxUSE_REGEX=no'
2191 elif test "$withval" = sys; then
2192 ac_cv_use_regex='wxUSE_REGEX=sys'
2193 elif test "$withval" = builtin; then
2194 ac_cv_use_regex='wxUSE_REGEX=builtin'
2195 else
2196 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2197 fi
2198
2199 else
2200
2201 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2202 if test "x$LINE" != x ; then
2203 eval "DEFAULT_$LINE"
2204 else
2205 no_cache=1
2206 fi
2207
2208 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2209
2210 fi
2211
2212
2213 eval "$ac_cv_use_regex"
2214 if test "$no_cache" != 1; then
2215 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2216 fi
2217
2218 if test "$wxUSE_REGEX" = yes; then
2219 echo "$ac_t""yes" 1>&6
2220 elif test "$wxUSE_REGEX" = no; then
2221 echo "$ac_t""no" 1>&6
2222 elif test "$wxUSE_REGEX" = sys; then
2223 echo "$ac_t""system version" 1>&6
2224 elif test "$wxUSE_REGEX" = builtin; then
2225 echo "$ac_t""builtin version" 1>&6
2226 else
2227 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2228 fi
2229
2230
2231 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2232 echo "configure:2233: checking for --with-zlib" >&5
2233 no_cache=0
2234 # Check whether --with-zlib or --without-zlib was given.
2235 if test "${with_zlib+set}" = set; then
2236 withval="$with_zlib"
2237
2238 if test "$withval" = yes; then
2239 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2240 elif test "$withval" = no; then
2241 ac_cv_use_zlib='wxUSE_ZLIB=no'
2242 elif test "$withval" = sys; then
2243 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2244 elif test "$withval" = builtin; then
2245 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2246 else
2247 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2248 fi
2249
2250 else
2251
2252 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2253 if test "x$LINE" != x ; then
2254 eval "DEFAULT_$LINE"
2255 else
2256 no_cache=1
2257 fi
2258
2259 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2260
2261 fi
2262
2263
2264 eval "$ac_cv_use_zlib"
2265 if test "$no_cache" != 1; then
2266 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2267 fi
2268
2269 if test "$wxUSE_ZLIB" = yes; then
2270 echo "$ac_t""yes" 1>&6
2271 elif test "$wxUSE_ZLIB" = no; then
2272 echo "$ac_t""no" 1>&6
2273 elif test "$wxUSE_ZLIB" = sys; then
2274 echo "$ac_t""system version" 1>&6
2275 elif test "$wxUSE_ZLIB" = builtin; then
2276 echo "$ac_t""builtin version" 1>&6
2277 else
2278 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2279 fi
2280
2281
2282 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2283 echo "configure:2284: checking for --with-odbc" >&5
2284 no_cache=0
2285 # Check whether --with-odbc or --without-odbc was given.
2286 if test "${with_odbc+set}" = set; then
2287 withval="$with_odbc"
2288
2289 if test "$withval" = yes; then
2290 ac_cv_use_odbc='wxUSE_ODBC=yes'
2291 else
2292 ac_cv_use_odbc='wxUSE_ODBC=no'
2293 fi
2294
2295 else
2296
2297 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2298 if test "x$LINE" != x ; then
2299 eval "DEFAULT_$LINE"
2300 else
2301 no_cache=1
2302 fi
2303
2304 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2305
2306 fi
2307
2308
2309 eval "$ac_cv_use_odbc"
2310 if test "$no_cache" != 1; then
2311 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2312 fi
2313
2314 if test "$wxUSE_ODBC" = yes; then
2315 echo "$ac_t""yes" 1>&6
2316 else
2317 echo "$ac_t""no" 1>&6
2318 fi
2319
2320
2321
2322
2323 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2324 echo "configure:2325: checking for --enable-shared" >&5
2325 no_cache=0
2326 # Check whether --enable-shared or --disable-shared was given.
2327 if test "${enable_shared+set}" = set; then
2328 enableval="$enable_shared"
2329
2330 if test "$enableval" = yes; then
2331 ac_cv_use_shared='wxUSE_SHARED=yes'
2332 else
2333 ac_cv_use_shared='wxUSE_SHARED=no'
2334 fi
2335
2336 else
2337
2338 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2339 if test "x$LINE" != x ; then
2340 eval "DEFAULT_$LINE"
2341 else
2342 no_cache=1
2343 fi
2344
2345 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2346
2347 fi
2348
2349
2350 eval "$ac_cv_use_shared"
2351 if test "$no_cache" != 1; then
2352 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2353 fi
2354
2355 if test "$wxUSE_SHARED" = yes; then
2356 echo "$ac_t""yes" 1>&6
2357 else
2358 echo "$ac_t""no" 1>&6
2359 fi
2360
2361
2362 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2363 echo "configure:2364: checking for --enable-soname" >&5
2364 no_cache=0
2365 # Check whether --enable-soname or --disable-soname was given.
2366 if test "${enable_soname+set}" = set; then
2367 enableval="$enable_soname"
2368
2369 if test "$enableval" = yes; then
2370 ac_cv_use_soname='wxUSE_SONAME=yes'
2371 else
2372 ac_cv_use_soname='wxUSE_SONAME=no'
2373 fi
2374
2375 else
2376
2377 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2378 if test "x$LINE" != x ; then
2379 eval "DEFAULT_$LINE"
2380 else
2381 no_cache=1
2382 fi
2383
2384 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2385
2386 fi
2387
2388
2389 eval "$ac_cv_use_soname"
2390 if test "$no_cache" != 1; then
2391 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2392 fi
2393
2394 if test "$wxUSE_SONAME" = yes; then
2395 echo "$ac_t""yes" 1>&6
2396 else
2397 echo "$ac_t""no" 1>&6
2398 fi
2399
2400
2401 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2402 echo "configure:2403: checking for --enable-optimise" >&5
2403 no_cache=0
2404 # Check whether --enable-optimise or --disable-optimise was given.
2405 if test "${enable_optimise+set}" = set; then
2406 enableval="$enable_optimise"
2407
2408 if test "$enableval" = yes; then
2409 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2410 else
2411 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2412 fi
2413
2414 else
2415
2416 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2417 if test "x$LINE" != x ; then
2418 eval "DEFAULT_$LINE"
2419 else
2420 no_cache=1
2421 fi
2422
2423 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2424
2425 fi
2426
2427
2428 eval "$ac_cv_use_optimise"
2429 if test "$no_cache" != 1; then
2430 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2431 fi
2432
2433 if test "$wxUSE_OPTIMISE" = yes; then
2434 echo "$ac_t""yes" 1>&6
2435 else
2436 echo "$ac_t""no" 1>&6
2437 fi
2438
2439
2440 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2441 echo "configure:2442: checking for --enable-debug" >&5
2442 no_cache=0
2443 # Check whether --enable-debug or --disable-debug was given.
2444 if test "${enable_debug+set}" = set; then
2445 enableval="$enable_debug"
2446
2447 if test "$enableval" = yes; then
2448 ac_cv_use_debug='wxUSE_DEBUG=yes'
2449 else
2450 ac_cv_use_debug='wxUSE_DEBUG=no'
2451 fi
2452
2453 else
2454
2455 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2456 if test "x$LINE" != x ; then
2457 eval "DEFAULT_$LINE"
2458 else
2459 no_cache=1
2460 fi
2461
2462 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2463
2464 fi
2465
2466
2467 eval "$ac_cv_use_debug"
2468 if test "$no_cache" != 1; then
2469 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2470 fi
2471
2472 if test "$wxUSE_DEBUG" = yes; then
2473 echo "$ac_t""yes" 1>&6
2474 else
2475 echo "$ac_t""no" 1>&6
2476 fi
2477
2478
2479
2480 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2481 echo "configure:2482: checking for --enable-precomp" >&5
2482 no_cache=0
2483 # Check whether --enable-precomp or --disable-precomp was given.
2484 if test "${enable_precomp+set}" = set; then
2485 enableval="$enable_precomp"
2486
2487 if test "$enableval" = yes; then
2488 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2489 else
2490 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2491 fi
2492
2493 else
2494
2495 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2496 if test "x$LINE" != x ; then
2497 eval "DEFAULT_$LINE"
2498 else
2499 no_cache=1
2500 fi
2501
2502 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2503
2504 fi
2505
2506
2507 eval "$ac_cv_use_precomp"
2508 if test "$no_cache" != 1; then
2509 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2510 fi
2511
2512 if test "$wxUSE_PRECOMP" = yes; then
2513 echo "$ac_t""yes" 1>&6
2514 else
2515 echo "$ac_t""no" 1>&6
2516 fi
2517
2518
2519 if test "$wxUSE_DEBUG" = "yes"; then
2520 DEFAULT_wxUSE_DEBUG_FLAG=yes
2521 DEFAULT_wxUSE_DEBUG_INFO=yes
2522 elif test "$wxUSE_DEBUG" = "no"; then
2523 DEFAULT_wxUSE_DEBUG_FLAG=no
2524 DEFAULT_wxUSE_DEBUG_INFO=no
2525 fi
2526
2527
2528 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2529 echo "configure:2530: checking for --enable-debug_flag" >&5
2530 no_cache=0
2531 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2532 if test "${enable_debug_flag+set}" = set; then
2533 enableval="$enable_debug_flag"
2534
2535 if test "$enableval" = yes; then
2536 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2537 else
2538 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2539 fi
2540
2541 else
2542
2543 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2544 if test "x$LINE" != x ; then
2545 eval "DEFAULT_$LINE"
2546 else
2547 no_cache=1
2548 fi
2549
2550 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2551
2552 fi
2553
2554
2555 eval "$ac_cv_use_debug_flag"
2556 if test "$no_cache" != 1; then
2557 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2558 fi
2559
2560 if test "$wxUSE_DEBUG_FLAG" = yes; then
2561 echo "$ac_t""yes" 1>&6
2562 else
2563 echo "$ac_t""no" 1>&6
2564 fi
2565
2566
2567 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2568 echo "configure:2569: checking for --enable-debug_info" >&5
2569 no_cache=0
2570 # Check whether --enable-debug_info or --disable-debug_info was given.
2571 if test "${enable_debug_info+set}" = set; then
2572 enableval="$enable_debug_info"
2573
2574 if test "$enableval" = yes; then
2575 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2576 else
2577 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2578 fi
2579
2580 else
2581
2582 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2583 if test "x$LINE" != x ; then
2584 eval "DEFAULT_$LINE"
2585 else
2586 no_cache=1
2587 fi
2588
2589 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2590
2591 fi
2592
2593
2594 eval "$ac_cv_use_debug_info"
2595 if test "$no_cache" != 1; then
2596 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2597 fi
2598
2599 if test "$wxUSE_DEBUG_INFO" = yes; then
2600 echo "$ac_t""yes" 1>&6
2601 else
2602 echo "$ac_t""no" 1>&6
2603 fi
2604
2605
2606 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2607 echo "configure:2608: checking for --enable-debug_gdb" >&5
2608 no_cache=0
2609 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2610 if test "${enable_debug_gdb+set}" = set; then
2611 enableval="$enable_debug_gdb"
2612
2613 if test "$enableval" = yes; then
2614 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2615 else
2616 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2617 fi
2618
2619 else
2620
2621 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2622 if test "x$LINE" != x ; then
2623 eval "DEFAULT_$LINE"
2624 else
2625 no_cache=1
2626 fi
2627
2628 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2629
2630 fi
2631
2632
2633 eval "$ac_cv_use_debug_gdb"
2634 if test "$no_cache" != 1; then
2635 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2636 fi
2637
2638 if test "$wxUSE_DEBUG_GDB" = yes; then
2639 echo "$ac_t""yes" 1>&6
2640 else
2641 echo "$ac_t""no" 1>&6
2642 fi
2643
2644
2645 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2646 echo "configure:2647: checking for --enable-debug_cntxt" >&5
2647 no_cache=0
2648 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2649 if test "${enable_debug_cntxt+set}" = set; then
2650 enableval="$enable_debug_cntxt"
2651
2652 if test "$enableval" = yes; then
2653 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2654 else
2655 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2656 fi
2657
2658 else
2659
2660 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2661 if test "x$LINE" != x ; then
2662 eval "DEFAULT_$LINE"
2663 else
2664 no_cache=1
2665 fi
2666
2667 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2668
2669 fi
2670
2671
2672 eval "$ac_cv_use_debug_cntxt"
2673 if test "$no_cache" != 1; then
2674 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2675 fi
2676
2677 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2678 echo "$ac_t""yes" 1>&6
2679 else
2680 echo "$ac_t""no" 1>&6
2681 fi
2682
2683
2684 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2685 echo "configure:2686: checking for --enable-mem_tracing" >&5
2686 no_cache=0
2687 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2688 if test "${enable_mem_tracing+set}" = set; then
2689 enableval="$enable_mem_tracing"
2690
2691 if test "$enableval" = yes; then
2692 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2693 else
2694 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2695 fi
2696
2697 else
2698
2699 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2700 if test "x$LINE" != x ; then
2701 eval "DEFAULT_$LINE"
2702 else
2703 no_cache=1
2704 fi
2705
2706 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2707
2708 fi
2709
2710
2711 eval "$ac_cv_use_mem_tracing"
2712 if test "$no_cache" != 1; then
2713 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2714 fi
2715
2716 if test "$wxUSE_MEM_TRACING" = yes; then
2717 echo "$ac_t""yes" 1>&6
2718 else
2719 echo "$ac_t""no" 1>&6
2720 fi
2721
2722
2723 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2724 echo "configure:2725: checking for --enable-profile" >&5
2725 no_cache=0
2726 # Check whether --enable-profile or --disable-profile was given.
2727 if test "${enable_profile+set}" = set; then
2728 enableval="$enable_profile"
2729
2730 if test "$enableval" = yes; then
2731 ac_cv_use_profile='wxUSE_PROFILE=yes'
2732 else
2733 ac_cv_use_profile='wxUSE_PROFILE=no'
2734 fi
2735
2736 else
2737
2738 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2739 if test "x$LINE" != x ; then
2740 eval "DEFAULT_$LINE"
2741 else
2742 no_cache=1
2743 fi
2744
2745 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2746
2747 fi
2748
2749
2750 eval "$ac_cv_use_profile"
2751 if test "$no_cache" != 1; then
2752 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2753 fi
2754
2755 if test "$wxUSE_PROFILE" = yes; then
2756 echo "$ac_t""yes" 1>&6
2757 else
2758 echo "$ac_t""no" 1>&6
2759 fi
2760
2761
2762 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2763 echo "configure:2764: checking for --enable-no_rtti" >&5
2764 no_cache=0
2765 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2766 if test "${enable_no_rtti+set}" = set; then
2767 enableval="$enable_no_rtti"
2768
2769 if test "$enableval" = yes; then
2770 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2771 else
2772 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2773 fi
2774
2775 else
2776
2777 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2778 if test "x$LINE" != x ; then
2779 eval "DEFAULT_$LINE"
2780 else
2781 no_cache=1
2782 fi
2783
2784 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2785
2786 fi
2787
2788
2789 eval "$ac_cv_use_no_rtti"
2790 if test "$no_cache" != 1; then
2791 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2792 fi
2793
2794 if test "$wxUSE_NO_RTTI" = yes; then
2795 echo "$ac_t""yes" 1>&6
2796 else
2797 echo "$ac_t""no" 1>&6
2798 fi
2799
2800
2801 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2802 echo "configure:2803: checking for --enable-no_exceptions" >&5
2803 no_cache=0
2804 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2805 if test "${enable_no_exceptions+set}" = set; then
2806 enableval="$enable_no_exceptions"
2807
2808 if test "$enableval" = yes; then
2809 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2810 else
2811 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2812 fi
2813
2814 else
2815
2816 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2817 if test "x$LINE" != x ; then
2818 eval "DEFAULT_$LINE"
2819 else
2820 no_cache=1
2821 fi
2822
2823 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2824
2825 fi
2826
2827
2828 eval "$ac_cv_use_no_exceptions"
2829 if test "$no_cache" != 1; then
2830 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2831 fi
2832
2833 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2834 echo "$ac_t""yes" 1>&6
2835 else
2836 echo "$ac_t""no" 1>&6
2837 fi
2838
2839
2840 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2841 echo "configure:2842: checking for --enable-permissive" >&5
2842 no_cache=0
2843 # Check whether --enable-permissive or --disable-permissive was given.
2844 if test "${enable_permissive+set}" = set; then
2845 enableval="$enable_permissive"
2846
2847 if test "$enableval" = yes; then
2848 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2849 else
2850 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2851 fi
2852
2853 else
2854
2855 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2856 if test "x$LINE" != x ; then
2857 eval "DEFAULT_$LINE"
2858 else
2859 no_cache=1
2860 fi
2861
2862 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2863
2864 fi
2865
2866
2867 eval "$ac_cv_use_permissive"
2868 if test "$no_cache" != 1; then
2869 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2870 fi
2871
2872 if test "$wxUSE_PERMISSIVE" = yes; then
2873 echo "$ac_t""yes" 1>&6
2874 else
2875 echo "$ac_t""no" 1>&6
2876 fi
2877
2878
2879 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2880 echo "configure:2881: checking for --enable-no_deps" >&5
2881 no_cache=0
2882 # Check whether --enable-no_deps or --disable-no_deps was given.
2883 if test "${enable_no_deps+set}" = set; then
2884 enableval="$enable_no_deps"
2885
2886 if test "$enableval" = yes; then
2887 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2888 else
2889 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2890 fi
2891
2892 else
2893
2894 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2895 if test "x$LINE" != x ; then
2896 eval "DEFAULT_$LINE"
2897 else
2898 no_cache=1
2899 fi
2900
2901 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2902
2903 fi
2904
2905
2906 eval "$ac_cv_use_no_deps"
2907 if test "$no_cache" != 1; then
2908 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2909 fi
2910
2911 if test "$wxUSE_NO_DEPS" = yes; then
2912 echo "$ac_t""yes" 1>&6
2913 else
2914 echo "$ac_t""no" 1>&6
2915 fi
2916
2917
2918
2919 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2920 echo "configure:2921: checking for --enable-compat20" >&5
2921 no_cache=0
2922 # Check whether --enable-compat20 or --disable-compat20 was given.
2923 if test "${enable_compat20+set}" = set; then
2924 enableval="$enable_compat20"
2925
2926 if test "$enableval" = yes; then
2927 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2928 else
2929 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2930 fi
2931
2932 else
2933
2934 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2935 if test "x$LINE" != x ; then
2936 eval "DEFAULT_$LINE"
2937 else
2938 no_cache=1
2939 fi
2940
2941 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2942
2943 fi
2944
2945
2946 eval "$ac_cv_use_compat20"
2947 if test "$no_cache" != 1; then
2948 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2949 fi
2950
2951 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2952 echo "$ac_t""yes" 1>&6
2953 else
2954 echo "$ac_t""no" 1>&6
2955 fi
2956
2957
2958 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2959 echo "configure:2960: checking for --enable-compat22" >&5
2960 no_cache=0
2961 # Check whether --enable-compat22 or --disable-compat22 was given.
2962 if test "${enable_compat22+set}" = set; then
2963 enableval="$enable_compat22"
2964
2965 if test "$enableval" = yes; then
2966 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2967 else
2968 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2969 fi
2970
2971 else
2972
2973 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2974 if test "x$LINE" != x ; then
2975 eval "DEFAULT_$LINE"
2976 else
2977 no_cache=1
2978 fi
2979
2980 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2981
2982 fi
2983
2984
2985 eval "$ac_cv_use_compat22"
2986 if test "$no_cache" != 1; then
2987 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2988 fi
2989
2990 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2991 echo "$ac_t""yes" 1>&6
2992 else
2993 echo "$ac_t""no" 1>&6
2994 fi
2995
2996
2997
2998
2999 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
3000 echo "configure:3001: checking for --enable-intl" >&5
3001 no_cache=0
3002 # Check whether --enable-intl or --disable-intl was given.
3003 if test "${enable_intl+set}" = set; then
3004 enableval="$enable_intl"
3005
3006 if test "$enableval" = yes; then
3007 ac_cv_use_intl='wxUSE_INTL=yes'
3008 else
3009 ac_cv_use_intl='wxUSE_INTL=no'
3010 fi
3011
3012 else
3013
3014 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3015 if test "x$LINE" != x ; then
3016 eval "DEFAULT_$LINE"
3017 else
3018 no_cache=1
3019 fi
3020
3021 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3022
3023 fi
3024
3025
3026 eval "$ac_cv_use_intl"
3027 if test "$no_cache" != 1; then
3028 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3029 fi
3030
3031 if test "$wxUSE_INTL" = yes; then
3032 echo "$ac_t""yes" 1>&6
3033 else
3034 echo "$ac_t""no" 1>&6
3035 fi
3036
3037
3038 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3039 echo "configure:3040: checking for --enable-config" >&5
3040 no_cache=0
3041 # Check whether --enable-config or --disable-config was given.
3042 if test "${enable_config+set}" = set; then
3043 enableval="$enable_config"
3044
3045 if test "$enableval" = yes; then
3046 ac_cv_use_config='wxUSE_CONFIG=yes'
3047 else
3048 ac_cv_use_config='wxUSE_CONFIG=no'
3049 fi
3050
3051 else
3052
3053 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3054 if test "x$LINE" != x ; then
3055 eval "DEFAULT_$LINE"
3056 else
3057 no_cache=1
3058 fi
3059
3060 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3061
3062 fi
3063
3064
3065 eval "$ac_cv_use_config"
3066 if test "$no_cache" != 1; then
3067 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3068 fi
3069
3070 if test "$wxUSE_CONFIG" = yes; then
3071 echo "$ac_t""yes" 1>&6
3072 else
3073 echo "$ac_t""no" 1>&6
3074 fi
3075
3076
3077
3078 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3079 echo "configure:3080: checking for --enable-sockets" >&5
3080 no_cache=0
3081 # Check whether --enable-sockets or --disable-sockets was given.
3082 if test "${enable_sockets+set}" = set; then
3083 enableval="$enable_sockets"
3084
3085 if test "$enableval" = yes; then
3086 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3087 else
3088 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3089 fi
3090
3091 else
3092
3093 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3094 if test "x$LINE" != x ; then
3095 eval "DEFAULT_$LINE"
3096 else
3097 no_cache=1
3098 fi
3099
3100 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3101
3102 fi
3103
3104
3105 eval "$ac_cv_use_sockets"
3106 if test "$no_cache" != 1; then
3107 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3108 fi
3109
3110 if test "$wxUSE_SOCKETS" = yes; then
3111 echo "$ac_t""yes" 1>&6
3112 else
3113 echo "$ac_t""no" 1>&6
3114 fi
3115
3116
3117
3118 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3119 echo "configure:3120: checking for --enable-ipc" >&5
3120 no_cache=0
3121 # Check whether --enable-ipc or --disable-ipc was given.
3122 if test "${enable_ipc+set}" = set; then
3123 enableval="$enable_ipc"
3124
3125 if test "$enableval" = yes; then
3126 ac_cv_use_ipc='wxUSE_IPC=yes'
3127 else
3128 ac_cv_use_ipc='wxUSE_IPC=no'
3129 fi
3130
3131 else
3132
3133 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3134 if test "x$LINE" != x ; then
3135 eval "DEFAULT_$LINE"
3136 else
3137 no_cache=1
3138 fi
3139
3140 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3141
3142 fi
3143
3144
3145 eval "$ac_cv_use_ipc"
3146 if test "$no_cache" != 1; then
3147 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3148 fi
3149
3150 if test "$wxUSE_IPC" = yes; then
3151 echo "$ac_t""yes" 1>&6
3152 else
3153 echo "$ac_t""no" 1>&6
3154 fi
3155
3156
3157
3158 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3159 echo "configure:3160: checking for --enable-cmdline" >&5
3160 no_cache=0
3161 # Check whether --enable-cmdline or --disable-cmdline was given.
3162 if test "${enable_cmdline+set}" = set; then
3163 enableval="$enable_cmdline"
3164
3165 if test "$enableval" = yes; then
3166 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3167 else
3168 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3169 fi
3170
3171 else
3172
3173 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3174 if test "x$LINE" != x ; then
3175 eval "DEFAULT_$LINE"
3176 else
3177 no_cache=1
3178 fi
3179
3180 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3181
3182 fi
3183
3184
3185 eval "$ac_cv_use_cmdline"
3186 if test "$no_cache" != 1; then
3187 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3188 fi
3189
3190 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3191 echo "$ac_t""yes" 1>&6
3192 else
3193 echo "$ac_t""no" 1>&6
3194 fi
3195
3196
3197 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3198 echo "configure:3199: checking for --enable-datetime" >&5
3199 no_cache=0
3200 # Check whether --enable-datetime or --disable-datetime was given.
3201 if test "${enable_datetime+set}" = set; then
3202 enableval="$enable_datetime"
3203
3204 if test "$enableval" = yes; then
3205 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3206 else
3207 ac_cv_use_datetime='wxUSE_DATETIME=no'
3208 fi
3209
3210 else
3211
3212 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3213 if test "x$LINE" != x ; then
3214 eval "DEFAULT_$LINE"
3215 else
3216 no_cache=1
3217 fi
3218
3219 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3220
3221 fi
3222
3223
3224 eval "$ac_cv_use_datetime"
3225 if test "$no_cache" != 1; then
3226 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3227 fi
3228
3229 if test "$wxUSE_DATETIME" = yes; then
3230 echo "$ac_t""yes" 1>&6
3231 else
3232 echo "$ac_t""no" 1>&6
3233 fi
3234
3235
3236 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3237 echo "configure:3238: checking for --enable-timedate" >&5
3238 no_cache=0
3239 # Check whether --enable-timedate or --disable-timedate was given.
3240 if test "${enable_timedate+set}" = set; then
3241 enableval="$enable_timedate"
3242
3243 if test "$enableval" = yes; then
3244 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3245 else
3246 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3247 fi
3248
3249 else
3250
3251 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3252 if test "x$LINE" != x ; then
3253 eval "DEFAULT_$LINE"
3254 else
3255 no_cache=1
3256 fi
3257
3258 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3259
3260 fi
3261
3262
3263 eval "$ac_cv_use_timedate"
3264 if test "$no_cache" != 1; then
3265 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3266 fi
3267
3268 if test "$wxUSE_TIMEDATE" = yes; then
3269 echo "$ac_t""yes" 1>&6
3270 else
3271 echo "$ac_t""no" 1>&6
3272 fi
3273
3274
3275 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3276 echo "configure:3277: checking for --enable-stopwatch" >&5
3277 no_cache=0
3278 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3279 if test "${enable_stopwatch+set}" = set; then
3280 enableval="$enable_stopwatch"
3281
3282 if test "$enableval" = yes; then
3283 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3284 else
3285 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3286 fi
3287
3288 else
3289
3290 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3291 if test "x$LINE" != x ; then
3292 eval "DEFAULT_$LINE"
3293 else
3294 no_cache=1
3295 fi
3296
3297 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3298
3299 fi
3300
3301
3302 eval "$ac_cv_use_stopwatch"
3303 if test "$no_cache" != 1; then
3304 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3305 fi
3306
3307 if test "$wxUSE_STOPWATCH" = yes; then
3308 echo "$ac_t""yes" 1>&6
3309 else
3310 echo "$ac_t""no" 1>&6
3311 fi
3312
3313
3314 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3315 echo "configure:3316: checking for --enable-dialupman" >&5
3316 no_cache=0
3317 # Check whether --enable-dialupman or --disable-dialupman was given.
3318 if test "${enable_dialupman+set}" = set; then
3319 enableval="$enable_dialupman"
3320
3321 if test "$enableval" = yes; then
3322 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3323 else
3324 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3325 fi
3326
3327 else
3328
3329 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3330 if test "x$LINE" != x ; then
3331 eval "DEFAULT_$LINE"
3332 else
3333 no_cache=1
3334 fi
3335
3336 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3337
3338 fi
3339
3340
3341 eval "$ac_cv_use_dialupman"
3342 if test "$no_cache" != 1; then
3343 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3344 fi
3345
3346 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3347 echo "$ac_t""yes" 1>&6
3348 else
3349 echo "$ac_t""no" 1>&6
3350 fi
3351
3352
3353 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3354 echo "configure:3355: checking for --enable-apple_ieee" >&5
3355 no_cache=0
3356 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3357 if test "${enable_apple_ieee+set}" = set; then
3358 enableval="$enable_apple_ieee"
3359
3360 if test "$enableval" = yes; then
3361 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3362 else
3363 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3364 fi
3365
3366 else
3367
3368 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3369 if test "x$LINE" != x ; then
3370 eval "DEFAULT_$LINE"
3371 else
3372 no_cache=1
3373 fi
3374
3375 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3376
3377 fi
3378
3379
3380 eval "$ac_cv_use_apple_ieee"
3381 if test "$no_cache" != 1; then
3382 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3383 fi
3384
3385 if test "$wxUSE_APPLE_IEEE" = yes; then
3386 echo "$ac_t""yes" 1>&6
3387 else
3388 echo "$ac_t""no" 1>&6
3389 fi
3390
3391
3392 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3393 echo "configure:3394: checking for --enable-timer" >&5
3394 no_cache=0
3395 # Check whether --enable-timer or --disable-timer was given.
3396 if test "${enable_timer+set}" = set; then
3397 enableval="$enable_timer"
3398
3399 if test "$enableval" = yes; then
3400 ac_cv_use_timer='wxUSE_TIMER=yes'
3401 else
3402 ac_cv_use_timer='wxUSE_TIMER=no'
3403 fi
3404
3405 else
3406
3407 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3408 if test "x$LINE" != x ; then
3409 eval "DEFAULT_$LINE"
3410 else
3411 no_cache=1
3412 fi
3413
3414 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3415
3416 fi
3417
3418
3419 eval "$ac_cv_use_timer"
3420 if test "$no_cache" != 1; then
3421 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3422 fi
3423
3424 if test "$wxUSE_TIMER" = yes; then
3425 echo "$ac_t""yes" 1>&6
3426 else
3427 echo "$ac_t""no" 1>&6
3428 fi
3429
3430
3431 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3432 echo "configure:3433: checking for --enable-wave" >&5
3433 no_cache=0
3434 # Check whether --enable-wave or --disable-wave was given.
3435 if test "${enable_wave+set}" = set; then
3436 enableval="$enable_wave"
3437
3438 if test "$enableval" = yes; then
3439 ac_cv_use_wave='wxUSE_WAVE=yes'
3440 else
3441 ac_cv_use_wave='wxUSE_WAVE=no'
3442 fi
3443
3444 else
3445
3446 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3447 if test "x$LINE" != x ; then
3448 eval "DEFAULT_$LINE"
3449 else
3450 no_cache=1
3451 fi
3452
3453 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3454
3455 fi
3456
3457
3458 eval "$ac_cv_use_wave"
3459 if test "$no_cache" != 1; then
3460 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3461 fi
3462
3463 if test "$wxUSE_WAVE" = yes; then
3464 echo "$ac_t""yes" 1>&6
3465 else
3466 echo "$ac_t""no" 1>&6
3467 fi
3468
3469
3470 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3471 echo "configure:3472: checking for --enable-fraction" >&5
3472 no_cache=0
3473 # Check whether --enable-fraction or --disable-fraction was given.
3474 if test "${enable_fraction+set}" = set; then
3475 enableval="$enable_fraction"
3476
3477 if test "$enableval" = yes; then
3478 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3479 else
3480 ac_cv_use_fraction='wxUSE_FRACTION=no'
3481 fi
3482
3483 else
3484
3485 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3486 if test "x$LINE" != x ; then
3487 eval "DEFAULT_$LINE"
3488 else
3489 no_cache=1
3490 fi
3491
3492 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3493
3494 fi
3495
3496
3497 eval "$ac_cv_use_fraction"
3498 if test "$no_cache" != 1; then
3499 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3500 fi
3501
3502 if test "$wxUSE_FRACTION" = yes; then
3503 echo "$ac_t""yes" 1>&6
3504 else
3505 echo "$ac_t""no" 1>&6
3506 fi
3507
3508
3509 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3510 echo "configure:3511: checking for --enable-dynlib" >&5
3511 no_cache=0
3512 # Check whether --enable-dynlib or --disable-dynlib was given.
3513 if test "${enable_dynlib+set}" = set; then
3514 enableval="$enable_dynlib"
3515
3516 if test "$enableval" = yes; then
3517 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3518 else
3519 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3520 fi
3521
3522 else
3523
3524 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3525 if test "x$LINE" != x ; then
3526 eval "DEFAULT_$LINE"
3527 else
3528 no_cache=1
3529 fi
3530
3531 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3532
3533 fi
3534
3535
3536 eval "$ac_cv_use_dynlib"
3537 if test "$no_cache" != 1; then
3538 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3539 fi
3540
3541 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3542 echo "$ac_t""yes" 1>&6
3543 else
3544 echo "$ac_t""no" 1>&6
3545 fi
3546
3547
3548 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3549 echo "configure:3550: checking for --enable-dynamicloader" >&5
3550 no_cache=0
3551 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3552 if test "${enable_dynamicloader+set}" = set; then
3553 enableval="$enable_dynamicloader"
3554
3555 if test "$enableval" = yes; then
3556 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3557 else
3558 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3559 fi
3560
3561 else
3562
3563 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3564 if test "x$LINE" != x ; then
3565 eval "DEFAULT_$LINE"
3566 else
3567 no_cache=1
3568 fi
3569
3570 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3571
3572 fi
3573
3574
3575 eval "$ac_cv_use_dynamicloader"
3576 if test "$no_cache" != 1; then
3577 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3578 fi
3579
3580 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3581 echo "$ac_t""yes" 1>&6
3582 else
3583 echo "$ac_t""no" 1>&6
3584 fi
3585
3586
3587 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3588 echo "configure:3589: checking for --enable-longlong" >&5
3589 no_cache=0
3590 # Check whether --enable-longlong or --disable-longlong was given.
3591 if test "${enable_longlong+set}" = set; then
3592 enableval="$enable_longlong"
3593
3594 if test "$enableval" = yes; then
3595 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3596 else
3597 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3598 fi
3599
3600 else
3601
3602 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3603 if test "x$LINE" != x ; then
3604 eval "DEFAULT_$LINE"
3605 else
3606 no_cache=1
3607 fi
3608
3609 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3610
3611 fi
3612
3613
3614 eval "$ac_cv_use_longlong"
3615 if test "$no_cache" != 1; then
3616 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3617 fi
3618
3619 if test "$wxUSE_LONGLONG" = yes; then
3620 echo "$ac_t""yes" 1>&6
3621 else
3622 echo "$ac_t""no" 1>&6
3623 fi
3624
3625
3626 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3627 echo "configure:3628: checking for --enable-geometry" >&5
3628 no_cache=0
3629 # Check whether --enable-geometry or --disable-geometry was given.
3630 if test "${enable_geometry+set}" = set; then
3631 enableval="$enable_geometry"
3632
3633 if test "$enableval" = yes; then
3634 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3635 else
3636 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3637 fi
3638
3639 else
3640
3641 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3642 if test "x$LINE" != x ; then
3643 eval "DEFAULT_$LINE"
3644 else
3645 no_cache=1
3646 fi
3647
3648 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3649
3650 fi
3651
3652
3653 eval "$ac_cv_use_geometry"
3654 if test "$no_cache" != 1; then
3655 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3656 fi
3657
3658 if test "$wxUSE_GEOMETRY" = yes; then
3659 echo "$ac_t""yes" 1>&6
3660 else
3661 echo "$ac_t""no" 1>&6
3662 fi
3663
3664
3665 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3666 echo "configure:3667: checking for --enable-log" >&5
3667 no_cache=0
3668 # Check whether --enable-log or --disable-log was given.
3669 if test "${enable_log+set}" = set; then
3670 enableval="$enable_log"
3671
3672 if test "$enableval" = yes; then
3673 ac_cv_use_log='wxUSE_LOG=yes'
3674 else
3675 ac_cv_use_log='wxUSE_LOG=no'
3676 fi
3677
3678 else
3679
3680 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3681 if test "x$LINE" != x ; then
3682 eval "DEFAULT_$LINE"
3683 else
3684 no_cache=1
3685 fi
3686
3687 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3688
3689 fi
3690
3691
3692 eval "$ac_cv_use_log"
3693 if test "$no_cache" != 1; then
3694 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3695 fi
3696
3697 if test "$wxUSE_LOG" = yes; then
3698 echo "$ac_t""yes" 1>&6
3699 else
3700 echo "$ac_t""no" 1>&6
3701 fi
3702
3703
3704 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3705 echo "configure:3706: checking for --enable-streams" >&5
3706 no_cache=0
3707 # Check whether --enable-streams or --disable-streams was given.
3708 if test "${enable_streams+set}" = set; then
3709 enableval="$enable_streams"
3710
3711 if test "$enableval" = yes; then
3712 ac_cv_use_streams='wxUSE_STREAMS=yes'
3713 else
3714 ac_cv_use_streams='wxUSE_STREAMS=no'
3715 fi
3716
3717 else
3718
3719 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3720 if test "x$LINE" != x ; then
3721 eval "DEFAULT_$LINE"
3722 else
3723 no_cache=1
3724 fi
3725
3726 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3727
3728 fi
3729
3730
3731 eval "$ac_cv_use_streams"
3732 if test "$no_cache" != 1; then
3733 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3734 fi
3735
3736 if test "$wxUSE_STREAMS" = yes; then
3737 echo "$ac_t""yes" 1>&6
3738 else
3739 echo "$ac_t""no" 1>&6
3740 fi
3741
3742
3743 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3744 echo "configure:3745: checking for --enable-file" >&5
3745 no_cache=0
3746 # Check whether --enable-file or --disable-file was given.
3747 if test "${enable_file+set}" = set; then
3748 enableval="$enable_file"
3749
3750 if test "$enableval" = yes; then
3751 ac_cv_use_file='wxUSE_FILE=yes'
3752 else
3753 ac_cv_use_file='wxUSE_FILE=no'
3754 fi
3755
3756 else
3757
3758 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3759 if test "x$LINE" != x ; then
3760 eval "DEFAULT_$LINE"
3761 else
3762 no_cache=1
3763 fi
3764
3765 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3766
3767 fi
3768
3769
3770 eval "$ac_cv_use_file"
3771 if test "$no_cache" != 1; then
3772 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3773 fi
3774
3775 if test "$wxUSE_FILE" = yes; then
3776 echo "$ac_t""yes" 1>&6
3777 else
3778 echo "$ac_t""no" 1>&6
3779 fi
3780
3781
3782 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3783 echo "configure:3784: checking for --enable-ffile" >&5
3784 no_cache=0
3785 # Check whether --enable-ffile or --disable-ffile was given.
3786 if test "${enable_ffile+set}" = set; then
3787 enableval="$enable_ffile"
3788
3789 if test "$enableval" = yes; then
3790 ac_cv_use_ffile='wxUSE_FFILE=yes'
3791 else
3792 ac_cv_use_ffile='wxUSE_FFILE=no'
3793 fi
3794
3795 else
3796
3797 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3798 if test "x$LINE" != x ; then
3799 eval "DEFAULT_$LINE"
3800 else
3801 no_cache=1
3802 fi
3803
3804 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3805
3806 fi
3807
3808
3809 eval "$ac_cv_use_ffile"
3810 if test "$no_cache" != 1; then
3811 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3812 fi
3813
3814 if test "$wxUSE_FFILE" = yes; then
3815 echo "$ac_t""yes" 1>&6
3816 else
3817 echo "$ac_t""no" 1>&6
3818 fi
3819
3820
3821 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
3822 echo "configure:3823: checking for --enable-textbuf" >&5
3823 no_cache=0
3824 # Check whether --enable-textbuf or --disable-textbuf was given.
3825 if test "${enable_textbuf+set}" = set; then
3826 enableval="$enable_textbuf"
3827
3828 if test "$enableval" = yes; then
3829 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3830 else
3831 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
3832 fi
3833
3834 else
3835
3836 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
3837 if test "x$LINE" != x ; then
3838 eval "DEFAULT_$LINE"
3839 else
3840 no_cache=1
3841 fi
3842
3843 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
3844
3845 fi
3846
3847
3848 eval "$ac_cv_use_textbuf"
3849 if test "$no_cache" != 1; then
3850 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
3851 fi
3852
3853 if test "$wxUSE_TEXTBUFFER" = yes; then
3854 echo "$ac_t""yes" 1>&6
3855 else
3856 echo "$ac_t""no" 1>&6
3857 fi
3858
3859
3860 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3861 echo "configure:3862: checking for --enable-textfile" >&5
3862 no_cache=0
3863 # Check whether --enable-textfile or --disable-textfile was given.
3864 if test "${enable_textfile+set}" = set; then
3865 enableval="$enable_textfile"
3866
3867 if test "$enableval" = yes; then
3868 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3869 else
3870 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3871 fi
3872
3873 else
3874
3875 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3876 if test "x$LINE" != x ; then
3877 eval "DEFAULT_$LINE"
3878 else
3879 no_cache=1
3880 fi
3881
3882 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3883
3884 fi
3885
3886
3887 eval "$ac_cv_use_textfile"
3888 if test "$no_cache" != 1; then
3889 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3890 fi
3891
3892 if test "$wxUSE_TEXTFILE" = yes; then
3893 echo "$ac_t""yes" 1>&6
3894 else
3895 echo "$ac_t""no" 1>&6
3896 fi
3897
3898
3899 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3900 echo "configure:3901: checking for --enable-fontmap" >&5
3901 no_cache=0
3902 # Check whether --enable-fontmap or --disable-fontmap was given.
3903 if test "${enable_fontmap+set}" = set; then
3904 enableval="$enable_fontmap"
3905
3906 if test "$enableval" = yes; then
3907 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
3908 else
3909 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
3910 fi
3911
3912 else
3913
3914 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
3915 if test "x$LINE" != x ; then
3916 eval "DEFAULT_$LINE"
3917 else
3918 no_cache=1
3919 fi
3920
3921 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
3922
3923 fi
3924
3925
3926 eval "$ac_cv_use_fontmap"
3927 if test "$no_cache" != 1; then
3928 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
3929 fi
3930
3931 if test "$wxUSE_FONTMAP" = yes; then
3932 echo "$ac_t""yes" 1>&6
3933 else
3934 echo "$ac_t""no" 1>&6
3935 fi
3936
3937
3938 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3939 echo "configure:3940: checking for --enable-unicode" >&5
3940 no_cache=0
3941 # Check whether --enable-unicode or --disable-unicode was given.
3942 if test "${enable_unicode+set}" = set; then
3943 enableval="$enable_unicode"
3944
3945 if test "$enableval" = yes; then
3946 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3947 else
3948 ac_cv_use_unicode='wxUSE_UNICODE=no'
3949 fi
3950
3951 else
3952
3953 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3954 if test "x$LINE" != x ; then
3955 eval "DEFAULT_$LINE"
3956 else
3957 no_cache=1
3958 fi
3959
3960 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3961
3962 fi
3963
3964
3965 eval "$ac_cv_use_unicode"
3966 if test "$no_cache" != 1; then
3967 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3968 fi
3969
3970 if test "$wxUSE_UNICODE" = yes; then
3971 echo "$ac_t""yes" 1>&6
3972 else
3973 echo "$ac_t""no" 1>&6
3974 fi
3975
3976
3977 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3978 echo "configure:3979: checking for --enable-wxprintfv" >&5
3979 no_cache=0
3980 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3981 if test "${enable_wxprintfv+set}" = set; then
3982 enableval="$enable_wxprintfv"
3983
3984 if test "$enableval" = yes; then
3985 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3986 else
3987 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3988 fi
3989
3990 else
3991
3992 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3993 if test "x$LINE" != x ; then
3994 eval "DEFAULT_$LINE"
3995 else
3996 no_cache=1
3997 fi
3998
3999 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4000
4001 fi
4002
4003
4004 eval "$ac_cv_use_wxprintfv"
4005 if test "$no_cache" != 1; then
4006 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4007 fi
4008
4009 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4010 echo "$ac_t""yes" 1>&6
4011 else
4012 echo "$ac_t""no" 1>&6
4013 fi
4014
4015
4016 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
4017 echo "configure:4018: checking for --enable-std_iostreams" >&5
4018 no_cache=0
4019 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4020 if test "${enable_std_iostreams+set}" = set; then
4021 enableval="$enable_std_iostreams"
4022
4023 if test "$enableval" = yes; then
4024 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4025 else
4026 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4027 fi
4028
4029 else
4030
4031 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4032 if test "x$LINE" != x ; then
4033 eval "DEFAULT_$LINE"
4034 else
4035 no_cache=1
4036 fi
4037
4038 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4039
4040 fi
4041
4042
4043 eval "$ac_cv_use_std_iostreams"
4044 if test "$no_cache" != 1; then
4045 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4046 fi
4047
4048 if test "$wxUSE_STD_IOSTREAM" = yes; then
4049 echo "$ac_t""yes" 1>&6
4050 else
4051 echo "$ac_t""no" 1>&6
4052 fi
4053
4054
4055 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
4056 echo "configure:4057: checking for --enable-filesystem" >&5
4057 no_cache=0
4058 # Check whether --enable-filesystem or --disable-filesystem was given.
4059 if test "${enable_filesystem+set}" = set; then
4060 enableval="$enable_filesystem"
4061
4062 if test "$enableval" = yes; then
4063 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4064 else
4065 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4066 fi
4067
4068 else
4069
4070 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4071 if test "x$LINE" != x ; then
4072 eval "DEFAULT_$LINE"
4073 else
4074 no_cache=1
4075 fi
4076
4077 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4078
4079 fi
4080
4081
4082 eval "$ac_cv_use_filesystem"
4083 if test "$no_cache" != 1; then
4084 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4085 fi
4086
4087 if test "$wxUSE_FILESYSTEM" = yes; then
4088 echo "$ac_t""yes" 1>&6
4089 else
4090 echo "$ac_t""no" 1>&6
4091 fi
4092
4093
4094 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4095 echo "configure:4096: checking for --enable-fs_inet" >&5
4096 no_cache=0
4097 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4098 if test "${enable_fs_inet+set}" = set; then
4099 enableval="$enable_fs_inet"
4100
4101 if test "$enableval" = yes; then
4102 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4103 else
4104 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4105 fi
4106
4107 else
4108
4109 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4110 if test "x$LINE" != x ; then
4111 eval "DEFAULT_$LINE"
4112 else
4113 no_cache=1
4114 fi
4115
4116 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4117
4118 fi
4119
4120
4121 eval "$ac_cv_use_fs_inet"
4122 if test "$no_cache" != 1; then
4123 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4124 fi
4125
4126 if test "$wxUSE_FS_INET" = yes; then
4127 echo "$ac_t""yes" 1>&6
4128 else
4129 echo "$ac_t""no" 1>&6
4130 fi
4131
4132
4133 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4134 echo "configure:4135: checking for --enable-fs_zip" >&5
4135 no_cache=0
4136 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4137 if test "${enable_fs_zip+set}" = set; then
4138 enableval="$enable_fs_zip"
4139
4140 if test "$enableval" = yes; then
4141 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4142 else
4143 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4144 fi
4145
4146 else
4147
4148 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4149 if test "x$LINE" != x ; then
4150 eval "DEFAULT_$LINE"
4151 else
4152 no_cache=1
4153 fi
4154
4155 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4156
4157 fi
4158
4159
4160 eval "$ac_cv_use_fs_zip"
4161 if test "$no_cache" != 1; then
4162 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4163 fi
4164
4165 if test "$wxUSE_FS_ZIP" = yes; then
4166 echo "$ac_t""yes" 1>&6
4167 else
4168 echo "$ac_t""no" 1>&6
4169 fi
4170
4171
4172 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4173 echo "configure:4174: checking for --enable-zipstream" >&5
4174 no_cache=0
4175 # Check whether --enable-zipstream or --disable-zipstream was given.
4176 if test "${enable_zipstream+set}" = set; then
4177 enableval="$enable_zipstream"
4178
4179 if test "$enableval" = yes; then
4180 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4181 else
4182 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4183 fi
4184
4185 else
4186
4187 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4188 if test "x$LINE" != x ; then
4189 eval "DEFAULT_$LINE"
4190 else
4191 no_cache=1
4192 fi
4193
4194 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4195
4196 fi
4197
4198
4199 eval "$ac_cv_use_zipstream"
4200 if test "$no_cache" != 1; then
4201 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4202 fi
4203
4204 if test "$wxUSE_ZIPSTREAM" = yes; then
4205 echo "$ac_t""yes" 1>&6
4206 else
4207 echo "$ac_t""no" 1>&6
4208 fi
4209
4210
4211
4212 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4213 echo "configure:4214: checking for --enable-catch_segvs" >&5
4214 no_cache=0
4215 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4216 if test "${enable_catch_segvs+set}" = set; then
4217 enableval="$enable_catch_segvs"
4218
4219 if test "$enableval" = yes; then
4220 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4221 else
4222 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4223 fi
4224
4225 else
4226
4227 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4228 if test "x$LINE" != x ; then
4229 eval "DEFAULT_$LINE"
4230 else
4231 no_cache=1
4232 fi
4233
4234 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4235
4236 fi
4237
4238
4239 eval "$ac_cv_use_catch_segvs"
4240 if test "$no_cache" != 1; then
4241 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4242 fi
4243
4244 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4245 echo "$ac_t""yes" 1>&6
4246 else
4247 echo "$ac_t""no" 1>&6
4248 fi
4249
4250
4251 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4252 echo "configure:4253: checking for --enable-snglinst" >&5
4253 no_cache=0
4254 # Check whether --enable-snglinst or --disable-snglinst was given.
4255 if test "${enable_snglinst+set}" = set; then
4256 enableval="$enable_snglinst"
4257
4258 if test "$enableval" = yes; then
4259 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4260 else
4261 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4262 fi
4263
4264 else
4265
4266 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4267 if test "x$LINE" != x ; then
4268 eval "DEFAULT_$LINE"
4269 else
4270 no_cache=1
4271 fi
4272
4273 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4274
4275 fi
4276
4277
4278 eval "$ac_cv_use_snglinst"
4279 if test "$no_cache" != 1; then
4280 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4281 fi
4282
4283 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4284 echo "$ac_t""yes" 1>&6
4285 else
4286 echo "$ac_t""no" 1>&6
4287 fi
4288
4289
4290
4291 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4292 echo "configure:4293: checking for --enable-mimetype" >&5
4293 no_cache=0
4294 # Check whether --enable-mimetype or --disable-mimetype was given.
4295 if test "${enable_mimetype+set}" = set; then
4296 enableval="$enable_mimetype"
4297
4298 if test "$enableval" = yes; then
4299 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4300 else
4301 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4302 fi
4303
4304 else
4305
4306 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4307 if test "x$LINE" != x ; then
4308 eval "DEFAULT_$LINE"
4309 else
4310 no_cache=1
4311 fi
4312
4313 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4314
4315 fi
4316
4317
4318 eval "$ac_cv_use_mimetype"
4319 if test "$no_cache" != 1; then
4320 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4321 fi
4322
4323 if test "$wxUSE_MIMETYPE" = yes; then
4324 echo "$ac_t""yes" 1>&6
4325 else
4326 echo "$ac_t""no" 1>&6
4327 fi
4328
4329
4330 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4331 echo "configure:4332: checking for --enable-system_options" >&5
4332 no_cache=0
4333 # Check whether --enable-system_options or --disable-system_options was given.
4334 if test "${enable_system_options+set}" = set; then
4335 enableval="$enable_system_options"
4336
4337 if test "$enableval" = yes; then
4338 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4339 else
4340 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4341 fi
4342
4343 else
4344
4345 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4346 if test "x$LINE" != x ; then
4347 eval "DEFAULT_$LINE"
4348 else
4349 no_cache=1
4350 fi
4351
4352 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4353
4354 fi
4355
4356
4357 eval "$ac_cv_use_system_options"
4358 if test "$no_cache" != 1; then
4359 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4360 fi
4361
4362 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4363 echo "$ac_t""yes" 1>&6
4364 else
4365 echo "$ac_t""no" 1>&6
4366 fi
4367
4368
4369
4370
4371 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4372 echo "configure:4373: checking for --enable-threads" >&5
4373 no_cache=0
4374 # Check whether --enable-threads or --disable-threads was given.
4375 if test "${enable_threads+set}" = set; then
4376 enableval="$enable_threads"
4377
4378 if test "$enableval" = yes; then
4379 ac_cv_use_threads='wxUSE_THREADS=yes'
4380 else
4381 ac_cv_use_threads='wxUSE_THREADS=no'
4382 fi
4383
4384 else
4385
4386 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4387 if test "x$LINE" != x ; then
4388 eval "DEFAULT_$LINE"
4389 else
4390 no_cache=1
4391 fi
4392
4393 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4394
4395 fi
4396
4397
4398 eval "$ac_cv_use_threads"
4399 if test "$no_cache" != 1; then
4400 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4401 fi
4402
4403 if test "$wxUSE_THREADS" = yes; then
4404 echo "$ac_t""yes" 1>&6
4405 else
4406 echo "$ac_t""no" 1>&6
4407 fi
4408
4409
4410 if test "$wxUSE_GUI" = "yes"; then
4411
4412
4413
4414 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4415 echo "configure:4416: checking for --enable-docview" >&5
4416 no_cache=0
4417 # Check whether --enable-docview or --disable-docview was given.
4418 if test "${enable_docview+set}" = set; then
4419 enableval="$enable_docview"
4420
4421 if test "$enableval" = yes; then
4422 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4423 else
4424 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4425 fi
4426
4427 else
4428
4429 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4430 if test "x$LINE" != x ; then
4431 eval "DEFAULT_$LINE"
4432 else
4433 no_cache=1
4434 fi
4435
4436 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4437
4438 fi
4439
4440
4441 eval "$ac_cv_use_docview"
4442 if test "$no_cache" != 1; then
4443 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4444 fi
4445
4446 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4447 echo "$ac_t""yes" 1>&6
4448 else
4449 echo "$ac_t""no" 1>&6
4450 fi
4451
4452
4453 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4454 echo "configure:4455: checking for --enable-help" >&5
4455 no_cache=0
4456 # Check whether --enable-help or --disable-help was given.
4457 if test "${enable_help+set}" = set; then
4458 enableval="$enable_help"
4459
4460 if test "$enableval" = yes; then
4461 ac_cv_use_help='wxUSE_HELP=yes'
4462 else
4463 ac_cv_use_help='wxUSE_HELP=no'
4464 fi
4465
4466 else
4467
4468 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4469 if test "x$LINE" != x ; then
4470 eval "DEFAULT_$LINE"
4471 else
4472 no_cache=1
4473 fi
4474
4475 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4476
4477 fi
4478
4479
4480 eval "$ac_cv_use_help"
4481 if test "$no_cache" != 1; then
4482 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4483 fi
4484
4485 if test "$wxUSE_HELP" = yes; then
4486 echo "$ac_t""yes" 1>&6
4487 else
4488 echo "$ac_t""no" 1>&6
4489 fi
4490
4491
4492 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4493 echo "configure:4494: checking for --enable-mshtmlhelp" >&5
4494 no_cache=0
4495 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4496 if test "${enable_mshtmlhelp+set}" = set; then
4497 enableval="$enable_mshtmlhelp"
4498
4499 if test "$enableval" = yes; then
4500 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4501 else
4502 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4503 fi
4504
4505 else
4506
4507 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4508 if test "x$LINE" != x ; then
4509 eval "DEFAULT_$LINE"
4510 else
4511 no_cache=1
4512 fi
4513
4514 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4515
4516 fi
4517
4518
4519 eval "$ac_cv_use_mshtmlhelp"
4520 if test "$no_cache" != 1; then
4521 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4522 fi
4523
4524 if test "$wxUSE_MS_HTML_HELP" = yes; then
4525 echo "$ac_t""yes" 1>&6
4526 else
4527 echo "$ac_t""no" 1>&6
4528 fi
4529
4530
4531 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4532 echo "configure:4533: checking for --enable-html" >&5
4533 no_cache=0
4534 # Check whether --enable-html or --disable-html was given.
4535 if test "${enable_html+set}" = set; then
4536 enableval="$enable_html"
4537
4538 if test "$enableval" = yes; then
4539 ac_cv_use_html='wxUSE_HTML=yes'
4540 else
4541 ac_cv_use_html='wxUSE_HTML=no'
4542 fi
4543
4544 else
4545
4546 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4547 if test "x$LINE" != x ; then
4548 eval "DEFAULT_$LINE"
4549 else
4550 no_cache=1
4551 fi
4552
4553 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4554
4555 fi
4556
4557
4558 eval "$ac_cv_use_html"
4559 if test "$no_cache" != 1; then
4560 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4561 fi
4562
4563 if test "$wxUSE_HTML" = yes; then
4564 echo "$ac_t""yes" 1>&6
4565 else
4566 echo "$ac_t""no" 1>&6
4567 fi
4568
4569
4570 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4571 echo "configure:4572: checking for --enable-htmlhelp" >&5
4572 no_cache=0
4573 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4574 if test "${enable_htmlhelp+set}" = set; then
4575 enableval="$enable_htmlhelp"
4576
4577 if test "$enableval" = yes; then
4578 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4579 else
4580 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4581 fi
4582
4583 else
4584
4585 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4586 if test "x$LINE" != x ; then
4587 eval "DEFAULT_$LINE"
4588 else
4589 no_cache=1
4590 fi
4591
4592 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4593
4594 fi
4595
4596
4597 eval "$ac_cv_use_htmlhelp"
4598 if test "$no_cache" != 1; then
4599 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4600 fi
4601
4602 if test "$wxUSE_WXHTML_HELP" = yes; then
4603 echo "$ac_t""yes" 1>&6
4604 else
4605 echo "$ac_t""no" 1>&6
4606 fi
4607
4608
4609 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4610 echo "configure:4611: checking for --enable-constraints" >&5
4611 no_cache=0
4612 # Check whether --enable-constraints or --disable-constraints was given.
4613 if test "${enable_constraints+set}" = set; then
4614 enableval="$enable_constraints"
4615
4616 if test "$enableval" = yes; then
4617 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4618 else
4619 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4620 fi
4621
4622 else
4623
4624 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4625 if test "x$LINE" != x ; then
4626 eval "DEFAULT_$LINE"
4627 else
4628 no_cache=1
4629 fi
4630
4631 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
4632
4633 fi
4634
4635
4636 eval "$ac_cv_use_constraints"
4637 if test "$no_cache" != 1; then
4638 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4639 fi
4640
4641 if test "$wxUSE_CONSTRAINTS" = yes; then
4642 echo "$ac_t""yes" 1>&6
4643 else
4644 echo "$ac_t""no" 1>&6
4645 fi
4646
4647
4648 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4649 echo "configure:4650: checking for --enable-printarch" >&5
4650 no_cache=0
4651 # Check whether --enable-printarch or --disable-printarch was given.
4652 if test "${enable_printarch+set}" = set; then
4653 enableval="$enable_printarch"
4654
4655 if test "$enableval" = yes; then
4656 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4657 else
4658 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4659 fi
4660
4661 else
4662
4663 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4664 if test "x$LINE" != x ; then
4665 eval "DEFAULT_$LINE"
4666 else
4667 no_cache=1
4668 fi
4669
4670 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
4671
4672 fi
4673
4674
4675 eval "$ac_cv_use_printarch"
4676 if test "$no_cache" != 1; then
4677 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4678 fi
4679
4680 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
4681 echo "$ac_t""yes" 1>&6
4682 else
4683 echo "$ac_t""no" 1>&6
4684 fi
4685
4686
4687 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4688 echo "configure:4689: checking for --enable-mdi" >&5
4689 no_cache=0
4690 # Check whether --enable-mdi or --disable-mdi was given.
4691 if test "${enable_mdi+set}" = set; then
4692 enableval="$enable_mdi"
4693
4694 if test "$enableval" = yes; then
4695 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4696 else
4697 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4698 fi
4699
4700 else
4701
4702 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4703 if test "x$LINE" != x ; then
4704 eval "DEFAULT_$LINE"
4705 else
4706 no_cache=1
4707 fi
4708
4709 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
4710
4711 fi
4712
4713
4714 eval "$ac_cv_use_mdi"
4715 if test "$no_cache" != 1; then
4716 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4717 fi
4718
4719 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
4720 echo "$ac_t""yes" 1>&6
4721 else
4722 echo "$ac_t""no" 1>&6
4723 fi
4724
4725
4726 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4727 echo "configure:4728: checking for --enable-loggui" >&5
4728 no_cache=0
4729 # Check whether --enable-loggui or --disable-loggui was given.
4730 if test "${enable_loggui+set}" = set; then
4731 enableval="$enable_loggui"
4732
4733 if test "$enableval" = yes; then
4734 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4735 else
4736 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4737 fi
4738
4739 else
4740
4741 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4742 if test "x$LINE" != x ; then
4743 eval "DEFAULT_$LINE"
4744 else
4745 no_cache=1
4746 fi
4747
4748 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4749
4750 fi
4751
4752
4753 eval "$ac_cv_use_loggui"
4754 if test "$no_cache" != 1; then
4755 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4756 fi
4757
4758 if test "$wxUSE_LOGGUI" = yes; then
4759 echo "$ac_t""yes" 1>&6
4760 else
4761 echo "$ac_t""no" 1>&6
4762 fi
4763
4764
4765 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4766 echo "configure:4767: checking for --enable-logwin" >&5
4767 no_cache=0
4768 # Check whether --enable-logwin or --disable-logwin was given.
4769 if test "${enable_logwin+set}" = set; then
4770 enableval="$enable_logwin"
4771
4772 if test "$enableval" = yes; then
4773 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4774 else
4775 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4776 fi
4777
4778 else
4779
4780 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4781 if test "x$LINE" != x ; then
4782 eval "DEFAULT_$LINE"
4783 else
4784 no_cache=1
4785 fi
4786
4787 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4788
4789 fi
4790
4791
4792 eval "$ac_cv_use_logwin"
4793 if test "$no_cache" != 1; then
4794 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4795 fi
4796
4797 if test "$wxUSE_LOGWINDOW" = yes; then
4798 echo "$ac_t""yes" 1>&6
4799 else
4800 echo "$ac_t""no" 1>&6
4801 fi
4802
4803
4804 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
4805 echo "configure:4806: checking for --enable-logdialog" >&5
4806 no_cache=0
4807 # Check whether --enable-logdialog or --disable-logdialog was given.
4808 if test "${enable_logdialog+set}" = set; then
4809 enableval="$enable_logdialog"
4810
4811 if test "$enableval" = yes; then
4812 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
4813 else
4814 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
4815 fi
4816
4817 else
4818
4819 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
4820 if test "x$LINE" != x ; then
4821 eval "DEFAULT_$LINE"
4822 else
4823 no_cache=1
4824 fi
4825
4826 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
4827
4828 fi
4829
4830
4831 eval "$ac_cv_use_logdialog"
4832 if test "$no_cache" != 1; then
4833 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
4834 fi
4835
4836 if test "$wxUSE_LOGDIALOG" = yes; then
4837 echo "$ac_t""yes" 1>&6
4838 else
4839 echo "$ac_t""no" 1>&6
4840 fi
4841
4842
4843
4844 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4845 echo "configure:4846: checking for --enable-postscript" >&5
4846 no_cache=0
4847 # Check whether --enable-postscript or --disable-postscript was given.
4848 if test "${enable_postscript+set}" = set; then
4849 enableval="$enable_postscript"
4850
4851 if test "$enableval" = yes; then
4852 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4853 else
4854 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4855 fi
4856
4857 else
4858
4859 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4860 if test "x$LINE" != x ; then
4861 eval "DEFAULT_$LINE"
4862 else
4863 no_cache=1
4864 fi
4865
4866 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
4867
4868 fi
4869
4870
4871 eval "$ac_cv_use_postscript"
4872 if test "$no_cache" != 1; then
4873 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4874 fi
4875
4876 if test "$wxUSE_POSTSCRIPT" = yes; then
4877 echo "$ac_t""yes" 1>&6
4878 else
4879 echo "$ac_t""no" 1>&6
4880 fi
4881
4882
4883
4884
4885
4886 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4887 echo "configure:4888: checking for --enable-prologio" >&5
4888 no_cache=0
4889 # Check whether --enable-prologio or --disable-prologio was given.
4890 if test "${enable_prologio+set}" = set; then
4891 enableval="$enable_prologio"
4892
4893 if test "$enableval" = yes; then
4894 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4895 else
4896 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4897 fi
4898
4899 else
4900
4901 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4902 if test "x$LINE" != x ; then
4903 eval "DEFAULT_$LINE"
4904 else
4905 no_cache=1
4906 fi
4907
4908 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
4909
4910 fi
4911
4912
4913 eval "$ac_cv_use_prologio"
4914 if test "$no_cache" != 1; then
4915 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4916 fi
4917
4918 if test "$wxUSE_PROLOGIO" = yes; then
4919 echo "$ac_t""yes" 1>&6
4920 else
4921 echo "$ac_t""no" 1>&6
4922 fi
4923
4924
4925 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4926 echo "configure:4927: checking for --enable-resources" >&5
4927 no_cache=0
4928 # Check whether --enable-resources or --disable-resources was given.
4929 if test "${enable_resources+set}" = set; then
4930 enableval="$enable_resources"
4931
4932 if test "$enableval" = yes; then
4933 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4934 else
4935 ac_cv_use_resources='wxUSE_RESOURCES=no'
4936 fi
4937
4938 else
4939
4940 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4941 if test "x$LINE" != x ; then
4942 eval "DEFAULT_$LINE"
4943 else
4944 no_cache=1
4945 fi
4946
4947 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
4948
4949 fi
4950
4951
4952 eval "$ac_cv_use_resources"
4953 if test "$no_cache" != 1; then
4954 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4955 fi
4956
4957 if test "$wxUSE_RESOURCES" = yes; then
4958 echo "$ac_t""yes" 1>&6
4959 else
4960 echo "$ac_t""no" 1>&6
4961 fi
4962
4963
4964
4965 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
4966 echo "configure:4967: checking for --enable-xresources" >&5
4967 no_cache=0
4968 # Check whether --enable-xresources or --disable-xresources was given.
4969 if test "${enable_xresources+set}" = set; then
4970 enableval="$enable_xresources"
4971
4972 if test "$enableval" = yes; then
4973 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4974 else
4975 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4976 fi
4977
4978 else
4979
4980 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4981 if test "x$LINE" != x ; then
4982 eval "DEFAULT_$LINE"
4983 else
4984 no_cache=1
4985 fi
4986
4987 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
4988
4989 fi
4990
4991
4992 eval "$ac_cv_use_xresources"
4993 if test "$no_cache" != 1; then
4994 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4995 fi
4996
4997 if test "$wxUSE_X_RESOURCES" = yes; then
4998 echo "$ac_t""yes" 1>&6
4999 else
5000 echo "$ac_t""no" 1>&6
5001 fi
5002
5003
5004
5005
5006 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
5007 echo "configure:5008: checking for --enable-clipboard" >&5
5008 no_cache=0
5009 # Check whether --enable-clipboard or --disable-clipboard was given.
5010 if test "${enable_clipboard+set}" = set; then
5011 enableval="$enable_clipboard"
5012
5013 if test "$enableval" = yes; then
5014 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5015 else
5016 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5017 fi
5018
5019 else
5020
5021 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5022 if test "x$LINE" != x ; then
5023 eval "DEFAULT_$LINE"
5024 else
5025 no_cache=1
5026 fi
5027
5028 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5029
5030 fi
5031
5032
5033 eval "$ac_cv_use_clipboard"
5034 if test "$no_cache" != 1; then
5035 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5036 fi
5037
5038 if test "$wxUSE_CLIPBOARD" = yes; then
5039 echo "$ac_t""yes" 1>&6
5040 else
5041 echo "$ac_t""no" 1>&6
5042 fi
5043
5044
5045 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
5046 echo "configure:5047: checking for --enable-dnd" >&5
5047 no_cache=0
5048 # Check whether --enable-dnd or --disable-dnd was given.
5049 if test "${enable_dnd+set}" = set; then
5050 enableval="$enable_dnd"
5051
5052 if test "$enableval" = yes; then
5053 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5054 else
5055 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5056 fi
5057
5058 else
5059
5060 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5061 if test "x$LINE" != x ; then
5062 eval "DEFAULT_$LINE"
5063 else
5064 no_cache=1
5065 fi
5066
5067 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5068
5069 fi
5070
5071
5072 eval "$ac_cv_use_dnd"
5073 if test "$no_cache" != 1; then
5074 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5075 fi
5076
5077 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5078 echo "$ac_t""yes" 1>&6
5079 else
5080 echo "$ac_t""no" 1>&6
5081 fi
5082
5083
5084 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
5085 echo "configure:5086: checking for --enable-metafile" >&5
5086 no_cache=0
5087 # Check whether --enable-metafile or --disable-metafile was given.
5088 if test "${enable_metafile+set}" = set; then
5089 enableval="$enable_metafile"
5090
5091 if test "$enableval" = yes; then
5092 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5093 else
5094 ac_cv_use_metafile='wxUSE_METAFILE=no'
5095 fi
5096
5097 else
5098
5099 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5100 if test "x$LINE" != x ; then
5101 eval "DEFAULT_$LINE"
5102 else
5103 no_cache=1
5104 fi
5105
5106 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5107
5108 fi
5109
5110
5111 eval "$ac_cv_use_metafile"
5112 if test "$no_cache" != 1; then
5113 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5114 fi
5115
5116 if test "$wxUSE_METAFILE" = yes; then
5117 echo "$ac_t""yes" 1>&6
5118 else
5119 echo "$ac_t""no" 1>&6
5120 fi
5121
5122
5123
5124 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5125 echo "configure:5126: checking for --enable-treelayout" >&5
5126 no_cache=0
5127 # Check whether --enable-treelayout or --disable-treelayout was given.
5128 if test "${enable_treelayout+set}" = set; then
5129 enableval="$enable_treelayout"
5130
5131 if test "$enableval" = yes; then
5132 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5133 else
5134 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5135 fi
5136
5137 else
5138
5139 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5140 if test "x$LINE" != x ; then
5141 eval "DEFAULT_$LINE"
5142 else
5143 no_cache=1
5144 fi
5145
5146 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5147
5148 fi
5149
5150
5151 eval "$ac_cv_use_treelayout"
5152 if test "$no_cache" != 1; then
5153 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5154 fi
5155
5156 if test "$wxUSE_TREELAYOUT" = yes; then
5157 echo "$ac_t""yes" 1>&6
5158 else
5159 echo "$ac_t""no" 1>&6
5160 fi
5161
5162
5163
5164
5165 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5166 echo "configure:5167: checking for --enable-controls" >&5
5167 no_cache=0
5168 # Check whether --enable-controls or --disable-controls was given.
5169 if test "${enable_controls+set}" = set; then
5170 enableval="$enable_controls"
5171
5172 if test "$enableval" = yes; then
5173 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5174 else
5175 ac_cv_use_controls='wxUSE_CONTROLS=no'
5176 fi
5177
5178 else
5179
5180 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5181 if test "x$LINE" != x ; then
5182 eval "DEFAULT_$LINE"
5183 else
5184 no_cache=1
5185 fi
5186
5187 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5188
5189 fi
5190
5191
5192 eval "$ac_cv_use_controls"
5193 if test "$no_cache" != 1; then
5194 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5195 fi
5196
5197 if test "$wxUSE_CONTROLS" = yes; then
5198 echo "$ac_t""yes" 1>&6
5199 else
5200 echo "$ac_t""no" 1>&6
5201 fi
5202
5203
5204 if test "$wxUSE_CONTROLS" = "yes"; then
5205 DEFAULT_wxUSE_ACCEL=yes
5206 DEFAULT_wxUSE_BMPBUTTON=yes
5207 DEFAULT_wxUSE_BUTTON=yes
5208 DEFAULT_wxUSE_CALCTRL=no
5209 DEFAULT_wxUSE_CARET=yes
5210 DEFAULT_wxUSE_COMBOBOX=yes
5211 DEFAULT_wxUSE_CHECKBOX=yes
5212 DEFAULT_wxUSE_CHECKLISTBOX=yes
5213 DEFAULT_wxUSE_CHOICE=yes
5214 DEFAULT_wxUSE_GAUGE=yes
5215 DEFAULT_wxUSE_GRID=yes
5216 DEFAULT_wxUSE_NEW_GRID=yes
5217 DEFAULT_wxUSE_IMAGLIST=yes
5218 DEFAULT_wxUSE_LISTBOX=yes
5219 DEFAULT_wxUSE_LISTCTRL=yes
5220 DEFAULT_wxUSE_NOTEBOOK=yes
5221 DEFAULT_wxUSE_PROPSHEET=yes
5222 DEFAULT_wxUSE_RADIOBOX=yes
5223 DEFAULT_wxUSE_RADIOBTN=yes
5224 DEFAULT_wxUSE_SASH=yes
5225 DEFAULT_wxUSE_SCROLLBAR=yes
5226 DEFAULT_wxUSE_SLIDER=yes
5227 DEFAULT_wxUSE_SPINBTN=yes
5228 DEFAULT_wxUSE_SPINCTRL=yes
5229 DEFAULT_wxUSE_SPLITTER=yes
5230 DEFAULT_wxUSE_STATBMP=yes
5231 DEFAULT_wxUSE_STATBOX=yes
5232 DEFAULT_wxUSE_STATLINE=yes
5233 DEFAULT_wxUSE_STATUSBAR=yes
5234 DEFAULT_wxUSE_TAB_DIALOG=yes
5235 DEFAULT_wxUSE_TOGGLEBTN=yes
5236 DEFAULT_wxUSE_TOOLBAR=yes
5237 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5238 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5239 DEFAULT_wxUSE_TOOLTIPS=yes
5240 DEFAULT_wxUSE_TREECTRL=yes
5241 DEFAULT_wxUSE_POPUPWIN=yes
5242 DEFAULT_wxUSE_TIPWINDOW=yes
5243 elif test "$wxUSE_CONTROLS" = "no"; then
5244 DEFAULT_wxUSE_ACCEL=no
5245 DEFAULT_wxUSE_BMPBUTTON=no
5246 DEFAULT_wxUSE_BUTTON=no
5247 DEFAULT_wxUSE_CALCTRL=no
5248 DEFAULT_wxUSE_CARET=no
5249 DEFAULT_wxUSE_COMBOBOX=no
5250 DEFAULT_wxUSE_CHECKBOX=no
5251 DEFAULT_wxUSE_CHECKLISTBOX=no
5252 DEFAULT_wxUSE_CHOICE=no
5253 DEFAULT_wxUSE_GAUGE=no
5254 DEFAULT_wxUSE_GRID=no
5255 DEFAULT_wxUSE_NEW_GRID=no
5256 DEFAULT_wxUSE_IMAGLIST=no
5257 DEFAULT_wxUSE_LISTBOX=no
5258 DEFAULT_wxUSE_LISTCTRL=no
5259 DEFAULT_wxUSE_NOTEBOOK=no
5260 DEFAULT_wxUSE_PROPSHEET=no
5261 DEFAULT_wxUSE_RADIOBOX=no
5262 DEFAULT_wxUSE_RADIOBTN=no
5263 DEFAULT_wxUSE_SASH=no
5264 DEFAULT_wxUSE_SCROLLBAR=no
5265 DEFAULT_wxUSE_SLIDER=no
5266 DEFAULT_wxUSE_SPINBTN=no
5267 DEFAULT_wxUSE_SPINCTRL=no
5268 DEFAULT_wxUSE_SPLITTER=no
5269 DEFAULT_wxUSE_STATBMP=no
5270 DEFAULT_wxUSE_STATBOX=no
5271 DEFAULT_wxUSE_STATLINE=no
5272 DEFAULT_wxUSE_STATUSBAR=no
5273 DEFAULT_wxUSE_TAB_DIALOG=no
5274 DEFAULT_wxUSE_TOGGLEBTN=no
5275 DEFAULT_wxUSE_TOOLBAR=no
5276 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5277 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5278 DEFAULT_wxUSE_TOOLTIPS=no
5279 DEFAULT_wxUSE_TREECTRL=no
5280 DEFAULT_wxUSE_POPUPWIN=no
5281 DEFAULT_wxUSE_TIPWINDOW=no
5282 fi
5283
5284
5285 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5286 echo "configure:5287: checking for --enable-accel" >&5
5287 no_cache=0
5288 # Check whether --enable-accel or --disable-accel was given.
5289 if test "${enable_accel+set}" = set; then
5290 enableval="$enable_accel"
5291
5292 if test "$enableval" = yes; then
5293 ac_cv_use_accel='wxUSE_ACCEL=yes'
5294 else
5295 ac_cv_use_accel='wxUSE_ACCEL=no'
5296 fi
5297
5298 else
5299
5300 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5301 if test "x$LINE" != x ; then
5302 eval "DEFAULT_$LINE"
5303 else
5304 no_cache=1
5305 fi
5306
5307 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5308
5309 fi
5310
5311
5312 eval "$ac_cv_use_accel"
5313 if test "$no_cache" != 1; then
5314 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5315 fi
5316
5317 if test "$wxUSE_ACCEL" = yes; then
5318 echo "$ac_t""yes" 1>&6
5319 else
5320 echo "$ac_t""no" 1>&6
5321 fi
5322
5323
5324 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5325 echo "configure:5326: checking for --enable-button" >&5
5326 no_cache=0
5327 # Check whether --enable-button or --disable-button was given.
5328 if test "${enable_button+set}" = set; then
5329 enableval="$enable_button"
5330
5331 if test "$enableval" = yes; then
5332 ac_cv_use_button='wxUSE_BUTTON=yes'
5333 else
5334 ac_cv_use_button='wxUSE_BUTTON=no'
5335 fi
5336
5337 else
5338
5339 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5340 if test "x$LINE" != x ; then
5341 eval "DEFAULT_$LINE"
5342 else
5343 no_cache=1
5344 fi
5345
5346 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5347
5348 fi
5349
5350
5351 eval "$ac_cv_use_button"
5352 if test "$no_cache" != 1; then
5353 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5354 fi
5355
5356 if test "$wxUSE_BUTTON" = yes; then
5357 echo "$ac_t""yes" 1>&6
5358 else
5359 echo "$ac_t""no" 1>&6
5360 fi
5361
5362
5363 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5364 echo "configure:5365: checking for --enable-bmpbutton" >&5
5365 no_cache=0
5366 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5367 if test "${enable_bmpbutton+set}" = set; then
5368 enableval="$enable_bmpbutton"
5369
5370 if test "$enableval" = yes; then
5371 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5372 else
5373 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5374 fi
5375
5376 else
5377
5378 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5379 if test "x$LINE" != x ; then
5380 eval "DEFAULT_$LINE"
5381 else
5382 no_cache=1
5383 fi
5384
5385 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5386
5387 fi
5388
5389
5390 eval "$ac_cv_use_bmpbutton"
5391 if test "$no_cache" != 1; then
5392 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5393 fi
5394
5395 if test "$wxUSE_BMPBUTTON" = yes; then
5396 echo "$ac_t""yes" 1>&6
5397 else
5398 echo "$ac_t""no" 1>&6
5399 fi
5400
5401
5402 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5403 echo "configure:5404: checking for --enable-calendar" >&5
5404 no_cache=0
5405 # Check whether --enable-calendar or --disable-calendar was given.
5406 if test "${enable_calendar+set}" = set; then
5407 enableval="$enable_calendar"
5408
5409 if test "$enableval" = yes; then
5410 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5411 else
5412 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5413 fi
5414
5415 else
5416
5417 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5418 if test "x$LINE" != x ; then
5419 eval "DEFAULT_$LINE"
5420 else
5421 no_cache=1
5422 fi
5423
5424 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5425
5426 fi
5427
5428
5429 eval "$ac_cv_use_calendar"
5430 if test "$no_cache" != 1; then
5431 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5432 fi
5433
5434 if test "$wxUSE_CALCTRL" = yes; then
5435 echo "$ac_t""yes" 1>&6
5436 else
5437 echo "$ac_t""no" 1>&6
5438 fi
5439
5440
5441 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5442 echo "configure:5443: checking for --enable-caret" >&5
5443 no_cache=0
5444 # Check whether --enable-caret or --disable-caret was given.
5445 if test "${enable_caret+set}" = set; then
5446 enableval="$enable_caret"
5447
5448 if test "$enableval" = yes; then
5449 ac_cv_use_caret='wxUSE_CARET=yes'
5450 else
5451 ac_cv_use_caret='wxUSE_CARET=no'
5452 fi
5453
5454 else
5455
5456 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5457 if test "x$LINE" != x ; then
5458 eval "DEFAULT_$LINE"
5459 else
5460 no_cache=1
5461 fi
5462
5463 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5464
5465 fi
5466
5467
5468 eval "$ac_cv_use_caret"
5469 if test "$no_cache" != 1; then
5470 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5471 fi
5472
5473 if test "$wxUSE_CARET" = yes; then
5474 echo "$ac_t""yes" 1>&6
5475 else
5476 echo "$ac_t""no" 1>&6
5477 fi
5478
5479
5480 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5481 echo "configure:5482: checking for --enable-checkbox" >&5
5482 no_cache=0
5483 # Check whether --enable-checkbox or --disable-checkbox was given.
5484 if test "${enable_checkbox+set}" = set; then
5485 enableval="$enable_checkbox"
5486
5487 if test "$enableval" = yes; then
5488 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5489 else
5490 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5491 fi
5492
5493 else
5494
5495 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5496 if test "x$LINE" != x ; then
5497 eval "DEFAULT_$LINE"
5498 else
5499 no_cache=1
5500 fi
5501
5502 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5503
5504 fi
5505
5506
5507 eval "$ac_cv_use_checkbox"
5508 if test "$no_cache" != 1; then
5509 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5510 fi
5511
5512 if test "$wxUSE_CHECKBOX" = yes; then
5513 echo "$ac_t""yes" 1>&6
5514 else
5515 echo "$ac_t""no" 1>&6
5516 fi
5517
5518
5519 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5520 echo "configure:5521: checking for --enable-checklst" >&5
5521 no_cache=0
5522 # Check whether --enable-checklst or --disable-checklst was given.
5523 if test "${enable_checklst+set}" = set; then
5524 enableval="$enable_checklst"
5525
5526 if test "$enableval" = yes; then
5527 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5528 else
5529 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5530 fi
5531
5532 else
5533
5534 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5535 if test "x$LINE" != x ; then
5536 eval "DEFAULT_$LINE"
5537 else
5538 no_cache=1
5539 fi
5540
5541 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5542
5543 fi
5544
5545
5546 eval "$ac_cv_use_checklst"
5547 if test "$no_cache" != 1; then
5548 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5549 fi
5550
5551 if test "$wxUSE_CHECKLST" = yes; then
5552 echo "$ac_t""yes" 1>&6
5553 else
5554 echo "$ac_t""no" 1>&6
5555 fi
5556
5557
5558 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5559 echo "configure:5560: checking for --enable-choice" >&5
5560 no_cache=0
5561 # Check whether --enable-choice or --disable-choice was given.
5562 if test "${enable_choice+set}" = set; then
5563 enableval="$enable_choice"
5564
5565 if test "$enableval" = yes; then
5566 ac_cv_use_choice='wxUSE_CHOICE=yes'
5567 else
5568 ac_cv_use_choice='wxUSE_CHOICE=no'
5569 fi
5570
5571 else
5572
5573 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5574 if test "x$LINE" != x ; then
5575 eval "DEFAULT_$LINE"
5576 else
5577 no_cache=1
5578 fi
5579
5580 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5581
5582 fi
5583
5584
5585 eval "$ac_cv_use_choice"
5586 if test "$no_cache" != 1; then
5587 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5588 fi
5589
5590 if test "$wxUSE_CHOICE" = yes; then
5591 echo "$ac_t""yes" 1>&6
5592 else
5593 echo "$ac_t""no" 1>&6
5594 fi
5595
5596
5597 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5598 echo "configure:5599: checking for --enable-combobox" >&5
5599 no_cache=0
5600 # Check whether --enable-combobox or --disable-combobox was given.
5601 if test "${enable_combobox+set}" = set; then
5602 enableval="$enable_combobox"
5603
5604 if test "$enableval" = yes; then
5605 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5606 else
5607 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5608 fi
5609
5610 else
5611
5612 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5613 if test "x$LINE" != x ; then
5614 eval "DEFAULT_$LINE"
5615 else
5616 no_cache=1
5617 fi
5618
5619 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5620
5621 fi
5622
5623
5624 eval "$ac_cv_use_combobox"
5625 if test "$no_cache" != 1; then
5626 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5627 fi
5628
5629 if test "$wxUSE_COMBOBOX" = yes; then
5630 echo "$ac_t""yes" 1>&6
5631 else
5632 echo "$ac_t""no" 1>&6
5633 fi
5634
5635
5636 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
5637 echo "configure:5638: checking for --enable-gauge" >&5
5638 no_cache=0
5639 # Check whether --enable-gauge or --disable-gauge was given.
5640 if test "${enable_gauge+set}" = set; then
5641 enableval="$enable_gauge"
5642
5643 if test "$enableval" = yes; then
5644 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5645 else
5646 ac_cv_use_gauge='wxUSE_GAUGE=no'
5647 fi
5648
5649 else
5650
5651 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5652 if test "x$LINE" != x ; then
5653 eval "DEFAULT_$LINE"
5654 else
5655 no_cache=1
5656 fi
5657
5658 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
5659
5660 fi
5661
5662
5663 eval "$ac_cv_use_gauge"
5664 if test "$no_cache" != 1; then
5665 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5666 fi
5667
5668 if test "$wxUSE_GAUGE" = yes; then
5669 echo "$ac_t""yes" 1>&6
5670 else
5671 echo "$ac_t""no" 1>&6
5672 fi
5673
5674
5675 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
5676 echo "configure:5677: checking for --enable-grid" >&5
5677 no_cache=0
5678 # Check whether --enable-grid or --disable-grid was given.
5679 if test "${enable_grid+set}" = set; then
5680 enableval="$enable_grid"
5681
5682 if test "$enableval" = yes; then
5683 ac_cv_use_grid='wxUSE_GRID=yes'
5684 else
5685 ac_cv_use_grid='wxUSE_GRID=no'
5686 fi
5687
5688 else
5689
5690 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5691 if test "x$LINE" != x ; then
5692 eval "DEFAULT_$LINE"
5693 else
5694 no_cache=1
5695 fi
5696
5697 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5698
5699 fi
5700
5701
5702 eval "$ac_cv_use_grid"
5703 if test "$no_cache" != 1; then
5704 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5705 fi
5706
5707 if test "$wxUSE_GRID" = yes; then
5708 echo "$ac_t""yes" 1>&6
5709 else
5710 echo "$ac_t""no" 1>&6
5711 fi
5712
5713
5714 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
5715 echo "configure:5716: checking for --enable-newgrid" >&5
5716 no_cache=0
5717 # Check whether --enable-newgrid or --disable-newgrid was given.
5718 if test "${enable_newgrid+set}" = set; then
5719 enableval="$enable_newgrid"
5720
5721 if test "$enableval" = yes; then
5722 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5723 else
5724 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5725 fi
5726
5727 else
5728
5729 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5730 if test "x$LINE" != x ; then
5731 eval "DEFAULT_$LINE"
5732 else
5733 no_cache=1
5734 fi
5735
5736 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
5737
5738 fi
5739
5740
5741 eval "$ac_cv_use_newgrid"
5742 if test "$no_cache" != 1; then
5743 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5744 fi
5745
5746 if test "$wxUSE_NEW_GRID" = yes; then
5747 echo "$ac_t""yes" 1>&6
5748 else
5749 echo "$ac_t""no" 1>&6
5750 fi
5751
5752
5753 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
5754 echo "configure:5755: checking for --enable-imaglist" >&5
5755 no_cache=0
5756 # Check whether --enable-imaglist or --disable-imaglist was given.
5757 if test "${enable_imaglist+set}" = set; then
5758 enableval="$enable_imaglist"
5759
5760 if test "$enableval" = yes; then
5761 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5762 else
5763 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5764 fi
5765
5766 else
5767
5768 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5769 if test "x$LINE" != x ; then
5770 eval "DEFAULT_$LINE"
5771 else
5772 no_cache=1
5773 fi
5774
5775 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
5776
5777 fi
5778
5779
5780 eval "$ac_cv_use_imaglist"
5781 if test "$no_cache" != 1; then
5782 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5783 fi
5784
5785 if test "$wxUSE_IMAGLIST" = yes; then
5786 echo "$ac_t""yes" 1>&6
5787 else
5788 echo "$ac_t""no" 1>&6
5789 fi
5790
5791
5792 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
5793 echo "configure:5794: checking for --enable-listbox" >&5
5794 no_cache=0
5795 # Check whether --enable-listbox or --disable-listbox was given.
5796 if test "${enable_listbox+set}" = set; then
5797 enableval="$enable_listbox"
5798
5799 if test "$enableval" = yes; then
5800 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5801 else
5802 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5803 fi
5804
5805 else
5806
5807 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5808 if test "x$LINE" != x ; then
5809 eval "DEFAULT_$LINE"
5810 else
5811 no_cache=1
5812 fi
5813
5814 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
5815
5816 fi
5817
5818
5819 eval "$ac_cv_use_listbox"
5820 if test "$no_cache" != 1; then
5821 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5822 fi
5823
5824 if test "$wxUSE_LISTBOX" = yes; then
5825 echo "$ac_t""yes" 1>&6
5826 else
5827 echo "$ac_t""no" 1>&6
5828 fi
5829
5830
5831 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
5832 echo "configure:5833: checking for --enable-listctrl" >&5
5833 no_cache=0
5834 # Check whether --enable-listctrl or --disable-listctrl was given.
5835 if test "${enable_listctrl+set}" = set; then
5836 enableval="$enable_listctrl"
5837
5838 if test "$enableval" = yes; then
5839 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5840 else
5841 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5842 fi
5843
5844 else
5845
5846 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5847 if test "x$LINE" != x ; then
5848 eval "DEFAULT_$LINE"
5849 else
5850 no_cache=1
5851 fi
5852
5853 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
5854
5855 fi
5856
5857
5858 eval "$ac_cv_use_listctrl"
5859 if test "$no_cache" != 1; then
5860 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5861 fi
5862
5863 if test "$wxUSE_LISTCTRL" = yes; then
5864 echo "$ac_t""yes" 1>&6
5865 else
5866 echo "$ac_t""no" 1>&6
5867 fi
5868
5869
5870 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
5871 echo "configure:5872: checking for --enable-notebook" >&5
5872 no_cache=0
5873 # Check whether --enable-notebook or --disable-notebook was given.
5874 if test "${enable_notebook+set}" = set; then
5875 enableval="$enable_notebook"
5876
5877 if test "$enableval" = yes; then
5878 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5879 else
5880 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5881 fi
5882
5883 else
5884
5885 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5886 if test "x$LINE" != x ; then
5887 eval "DEFAULT_$LINE"
5888 else
5889 no_cache=1
5890 fi
5891
5892 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
5893
5894 fi
5895
5896
5897 eval "$ac_cv_use_notebook"
5898 if test "$no_cache" != 1; then
5899 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5900 fi
5901
5902 if test "$wxUSE_NOTEBOOK" = yes; then
5903 echo "$ac_t""yes" 1>&6
5904 else
5905 echo "$ac_t""no" 1>&6
5906 fi
5907
5908
5909 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
5910 echo "configure:5911: checking for --enable-propsheet" >&5
5911 no_cache=0
5912 # Check whether --enable-propsheet or --disable-propsheet was given.
5913 if test "${enable_propsheet+set}" = set; then
5914 enableval="$enable_propsheet"
5915
5916 if test "$enableval" = yes; then
5917 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5918 else
5919 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5920 fi
5921
5922 else
5923
5924 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5925 if test "x$LINE" != x ; then
5926 eval "DEFAULT_$LINE"
5927 else
5928 no_cache=1
5929 fi
5930
5931 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5932
5933 fi
5934
5935
5936 eval "$ac_cv_use_propsheet"
5937 if test "$no_cache" != 1; then
5938 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5939 fi
5940
5941 if test "$wxUSE_PROPSHEET" = yes; then
5942 echo "$ac_t""yes" 1>&6
5943 else
5944 echo "$ac_t""no" 1>&6
5945 fi
5946
5947
5948 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
5949 echo "configure:5950: checking for --enable-radiobox" >&5
5950 no_cache=0
5951 # Check whether --enable-radiobox or --disable-radiobox was given.
5952 if test "${enable_radiobox+set}" = set; then
5953 enableval="$enable_radiobox"
5954
5955 if test "$enableval" = yes; then
5956 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5957 else
5958 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5959 fi
5960
5961 else
5962
5963 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5964 if test "x$LINE" != x ; then
5965 eval "DEFAULT_$LINE"
5966 else
5967 no_cache=1
5968 fi
5969
5970 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
5971
5972 fi
5973
5974
5975 eval "$ac_cv_use_radiobox"
5976 if test "$no_cache" != 1; then
5977 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5978 fi
5979
5980 if test "$wxUSE_RADIOBOX" = yes; then
5981 echo "$ac_t""yes" 1>&6
5982 else
5983 echo "$ac_t""no" 1>&6
5984 fi
5985
5986
5987 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
5988 echo "configure:5989: checking for --enable-radiobtn" >&5
5989 no_cache=0
5990 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5991 if test "${enable_radiobtn+set}" = set; then
5992 enableval="$enable_radiobtn"
5993
5994 if test "$enableval" = yes; then
5995 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5996 else
5997 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5998 fi
5999
6000 else
6001
6002 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6003 if test "x$LINE" != x ; then
6004 eval "DEFAULT_$LINE"
6005 else
6006 no_cache=1
6007 fi
6008
6009 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6010
6011 fi
6012
6013
6014 eval "$ac_cv_use_radiobtn"
6015 if test "$no_cache" != 1; then
6016 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6017 fi
6018
6019 if test "$wxUSE_RADIOBTN" = yes; then
6020 echo "$ac_t""yes" 1>&6
6021 else
6022 echo "$ac_t""no" 1>&6
6023 fi
6024
6025
6026 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
6027 echo "configure:6028: checking for --enable-sash" >&5
6028 no_cache=0
6029 # Check whether --enable-sash or --disable-sash was given.
6030 if test "${enable_sash+set}" = set; then
6031 enableval="$enable_sash"
6032
6033 if test "$enableval" = yes; then
6034 ac_cv_use_sash='wxUSE_SASH=yes'
6035 else
6036 ac_cv_use_sash='wxUSE_SASH=no'
6037 fi
6038
6039 else
6040
6041 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6042 if test "x$LINE" != x ; then
6043 eval "DEFAULT_$LINE"
6044 else
6045 no_cache=1
6046 fi
6047
6048 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6049
6050 fi
6051
6052
6053 eval "$ac_cv_use_sash"
6054 if test "$no_cache" != 1; then
6055 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6056 fi
6057
6058 if test "$wxUSE_SASH" = yes; then
6059 echo "$ac_t""yes" 1>&6
6060 else
6061 echo "$ac_t""no" 1>&6
6062 fi
6063
6064
6065 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
6066 echo "configure:6067: checking for --enable-scrollbar" >&5
6067 no_cache=0
6068 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6069 if test "${enable_scrollbar+set}" = set; then
6070 enableval="$enable_scrollbar"
6071
6072 if test "$enableval" = yes; then
6073 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6074 else
6075 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6076 fi
6077
6078 else
6079
6080 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6081 if test "x$LINE" != x ; then
6082 eval "DEFAULT_$LINE"
6083 else
6084 no_cache=1
6085 fi
6086
6087 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6088
6089 fi
6090
6091
6092 eval "$ac_cv_use_scrollbar"
6093 if test "$no_cache" != 1; then
6094 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6095 fi
6096
6097 if test "$wxUSE_SCROLLBAR" = yes; then
6098 echo "$ac_t""yes" 1>&6
6099 else
6100 echo "$ac_t""no" 1>&6
6101 fi
6102
6103
6104 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
6105 echo "configure:6106: checking for --enable-slider" >&5
6106 no_cache=0
6107 # Check whether --enable-slider or --disable-slider was given.
6108 if test "${enable_slider+set}" = set; then
6109 enableval="$enable_slider"
6110
6111 if test "$enableval" = yes; then
6112 ac_cv_use_slider='wxUSE_SLIDER=yes'
6113 else
6114 ac_cv_use_slider='wxUSE_SLIDER=no'
6115 fi
6116
6117 else
6118
6119 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6120 if test "x$LINE" != x ; then
6121 eval "DEFAULT_$LINE"
6122 else
6123 no_cache=1
6124 fi
6125
6126 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6127
6128 fi
6129
6130
6131 eval "$ac_cv_use_slider"
6132 if test "$no_cache" != 1; then
6133 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6134 fi
6135
6136 if test "$wxUSE_SLIDER" = yes; then
6137 echo "$ac_t""yes" 1>&6
6138 else
6139 echo "$ac_t""no" 1>&6
6140 fi
6141
6142
6143 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6144 echo "configure:6145: checking for --enable-spinbtn" >&5
6145 no_cache=0
6146 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6147 if test "${enable_spinbtn+set}" = set; then
6148 enableval="$enable_spinbtn"
6149
6150 if test "$enableval" = yes; then
6151 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6152 else
6153 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6154 fi
6155
6156 else
6157
6158 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6159 if test "x$LINE" != x ; then
6160 eval "DEFAULT_$LINE"
6161 else
6162 no_cache=1
6163 fi
6164
6165 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6166
6167 fi
6168
6169
6170 eval "$ac_cv_use_spinbtn"
6171 if test "$no_cache" != 1; then
6172 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6173 fi
6174
6175 if test "$wxUSE_SPINBTN" = yes; then
6176 echo "$ac_t""yes" 1>&6
6177 else
6178 echo "$ac_t""no" 1>&6
6179 fi
6180
6181
6182 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6183 echo "configure:6184: checking for --enable-spinctrl" >&5
6184 no_cache=0
6185 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6186 if test "${enable_spinctrl+set}" = set; then
6187 enableval="$enable_spinctrl"
6188
6189 if test "$enableval" = yes; then
6190 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6191 else
6192 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6193 fi
6194
6195 else
6196
6197 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6198 if test "x$LINE" != x ; then
6199 eval "DEFAULT_$LINE"
6200 else
6201 no_cache=1
6202 fi
6203
6204 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6205
6206 fi
6207
6208
6209 eval "$ac_cv_use_spinctrl"
6210 if test "$no_cache" != 1; then
6211 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6212 fi
6213
6214 if test "$wxUSE_SPINCTRL" = yes; then
6215 echo "$ac_t""yes" 1>&6
6216 else
6217 echo "$ac_t""no" 1>&6
6218 fi
6219
6220
6221 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6222 echo "configure:6223: checking for --enable-splitter" >&5
6223 no_cache=0
6224 # Check whether --enable-splitter or --disable-splitter was given.
6225 if test "${enable_splitter+set}" = set; then
6226 enableval="$enable_splitter"
6227
6228 if test "$enableval" = yes; then
6229 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6230 else
6231 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6232 fi
6233
6234 else
6235
6236 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6237 if test "x$LINE" != x ; then
6238 eval "DEFAULT_$LINE"
6239 else
6240 no_cache=1
6241 fi
6242
6243 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6244
6245 fi
6246
6247
6248 eval "$ac_cv_use_splitter"
6249 if test "$no_cache" != 1; then
6250 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6251 fi
6252
6253 if test "$wxUSE_SPLITTER" = yes; then
6254 echo "$ac_t""yes" 1>&6
6255 else
6256 echo "$ac_t""no" 1>&6
6257 fi
6258
6259
6260 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6261 echo "configure:6262: checking for --enable-statbmp" >&5
6262 no_cache=0
6263 # Check whether --enable-statbmp or --disable-statbmp was given.
6264 if test "${enable_statbmp+set}" = set; then
6265 enableval="$enable_statbmp"
6266
6267 if test "$enableval" = yes; then
6268 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6269 else
6270 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6271 fi
6272
6273 else
6274
6275 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6276 if test "x$LINE" != x ; then
6277 eval "DEFAULT_$LINE"
6278 else
6279 no_cache=1
6280 fi
6281
6282 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6283
6284 fi
6285
6286
6287 eval "$ac_cv_use_statbmp"
6288 if test "$no_cache" != 1; then
6289 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6290 fi
6291
6292 if test "$wxUSE_STATBMP" = yes; then
6293 echo "$ac_t""yes" 1>&6
6294 else
6295 echo "$ac_t""no" 1>&6
6296 fi
6297
6298
6299 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6300 echo "configure:6301: checking for --enable-statbox" >&5
6301 no_cache=0
6302 # Check whether --enable-statbox or --disable-statbox was given.
6303 if test "${enable_statbox+set}" = set; then
6304 enableval="$enable_statbox"
6305
6306 if test "$enableval" = yes; then
6307 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6308 else
6309 ac_cv_use_statbox='wxUSE_STATBOX=no'
6310 fi
6311
6312 else
6313
6314 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6315 if test "x$LINE" != x ; then
6316 eval "DEFAULT_$LINE"
6317 else
6318 no_cache=1
6319 fi
6320
6321 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6322
6323 fi
6324
6325
6326 eval "$ac_cv_use_statbox"
6327 if test "$no_cache" != 1; then
6328 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6329 fi
6330
6331 if test "$wxUSE_STATBOX" = yes; then
6332 echo "$ac_t""yes" 1>&6
6333 else
6334 echo "$ac_t""no" 1>&6
6335 fi
6336
6337
6338 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6339 echo "configure:6340: checking for --enable-statline" >&5
6340 no_cache=0
6341 # Check whether --enable-statline or --disable-statline was given.
6342 if test "${enable_statline+set}" = set; then
6343 enableval="$enable_statline"
6344
6345 if test "$enableval" = yes; then
6346 ac_cv_use_statline='wxUSE_STATLINE=yes'
6347 else
6348 ac_cv_use_statline='wxUSE_STATLINE=no'
6349 fi
6350
6351 else
6352
6353 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6354 if test "x$LINE" != x ; then
6355 eval "DEFAULT_$LINE"
6356 else
6357 no_cache=1
6358 fi
6359
6360 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6361
6362 fi
6363
6364
6365 eval "$ac_cv_use_statline"
6366 if test "$no_cache" != 1; then
6367 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6368 fi
6369
6370 if test "$wxUSE_STATLINE" = yes; then
6371 echo "$ac_t""yes" 1>&6
6372 else
6373 echo "$ac_t""no" 1>&6
6374 fi
6375
6376
6377 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6378 echo "configure:6379: checking for --enable-stattext" >&5
6379 no_cache=0
6380 # Check whether --enable-stattext or --disable-stattext was given.
6381 if test "${enable_stattext+set}" = set; then
6382 enableval="$enable_stattext"
6383
6384 if test "$enableval" = yes; then
6385 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6386 else
6387 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6388 fi
6389
6390 else
6391
6392 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6393 if test "x$LINE" != x ; then
6394 eval "DEFAULT_$LINE"
6395 else
6396 no_cache=1
6397 fi
6398
6399 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6400
6401 fi
6402
6403
6404 eval "$ac_cv_use_stattext"
6405 if test "$no_cache" != 1; then
6406 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6407 fi
6408
6409 if test "$wxUSE_STATTEXT" = yes; then
6410 echo "$ac_t""yes" 1>&6
6411 else
6412 echo "$ac_t""no" 1>&6
6413 fi
6414
6415
6416 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6417 echo "configure:6418: checking for --enable-statusbar" >&5
6418 no_cache=0
6419 # Check whether --enable-statusbar or --disable-statusbar was given.
6420 if test "${enable_statusbar+set}" = set; then
6421 enableval="$enable_statusbar"
6422
6423 if test "$enableval" = yes; then
6424 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6425 else
6426 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6427 fi
6428
6429 else
6430
6431 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6432 if test "x$LINE" != x ; then
6433 eval "DEFAULT_$LINE"
6434 else
6435 no_cache=1
6436 fi
6437
6438 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6439
6440 fi
6441
6442
6443 eval "$ac_cv_use_statusbar"
6444 if test "$no_cache" != 1; then
6445 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6446 fi
6447
6448 if test "$wxUSE_STATUSBAR" = yes; then
6449 echo "$ac_t""yes" 1>&6
6450 else
6451 echo "$ac_t""no" 1>&6
6452 fi
6453
6454
6455 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6456 echo "configure:6457: checking for --enable-tabdialog" >&5
6457 no_cache=0
6458 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6459 if test "${enable_tabdialog+set}" = set; then
6460 enableval="$enable_tabdialog"
6461
6462 if test "$enableval" = yes; then
6463 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6464 else
6465 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6466 fi
6467
6468 else
6469
6470 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6471 if test "x$LINE" != x ; then
6472 eval "DEFAULT_$LINE"
6473 else
6474 no_cache=1
6475 fi
6476
6477 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6478
6479 fi
6480
6481
6482 eval "$ac_cv_use_tabdialog"
6483 if test "$no_cache" != 1; then
6484 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6485 fi
6486
6487 if test "$wxUSE_TABDIALOG" = yes; then
6488 echo "$ac_t""yes" 1>&6
6489 else
6490 echo "$ac_t""no" 1>&6
6491 fi
6492
6493
6494 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6495 echo "configure:6496: checking for --enable-textctrl" >&5
6496 no_cache=0
6497 # Check whether --enable-textctrl or --disable-textctrl was given.
6498 if test "${enable_textctrl+set}" = set; then
6499 enableval="$enable_textctrl"
6500
6501 if test "$enableval" = yes; then
6502 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6503 else
6504 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6505 fi
6506
6507 else
6508
6509 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6510 if test "x$LINE" != x ; then
6511 eval "DEFAULT_$LINE"
6512 else
6513 no_cache=1
6514 fi
6515
6516 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6517
6518 fi
6519
6520
6521 eval "$ac_cv_use_textctrl"
6522 if test "$no_cache" != 1; then
6523 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6524 fi
6525
6526 if test "$wxUSE_TEXTCTRL" = yes; then
6527 echo "$ac_t""yes" 1>&6
6528 else
6529 echo "$ac_t""no" 1>&6
6530 fi
6531
6532
6533 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6534 echo "configure:6535: checking for --enable-togglebtn" >&5
6535 no_cache=0
6536 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6537 if test "${enable_togglebtn+set}" = set; then
6538 enableval="$enable_togglebtn"
6539
6540 if test "$enableval" = yes; then
6541 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6542 else
6543 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6544 fi
6545
6546 else
6547
6548 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6549 if test "x$LINE" != x ; then
6550 eval "DEFAULT_$LINE"
6551 else
6552 no_cache=1
6553 fi
6554
6555 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6556
6557 fi
6558
6559
6560 eval "$ac_cv_use_togglebtn"
6561 if test "$no_cache" != 1; then
6562 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6563 fi
6564
6565 if test "$wxUSE_TOGGLEBTN" = yes; then
6566 echo "$ac_t""yes" 1>&6
6567 else
6568 echo "$ac_t""no" 1>&6
6569 fi
6570
6571
6572 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6573 echo "configure:6574: checking for --enable-toolbar" >&5
6574 no_cache=0
6575 # Check whether --enable-toolbar or --disable-toolbar was given.
6576 if test "${enable_toolbar+set}" = set; then
6577 enableval="$enable_toolbar"
6578
6579 if test "$enableval" = yes; then
6580 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6581 else
6582 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6583 fi
6584
6585 else
6586
6587 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6588 if test "x$LINE" != x ; then
6589 eval "DEFAULT_$LINE"
6590 else
6591 no_cache=1
6592 fi
6593
6594 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6595
6596 fi
6597
6598
6599 eval "$ac_cv_use_toolbar"
6600 if test "$no_cache" != 1; then
6601 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6602 fi
6603
6604 if test "$wxUSE_TOOLBAR" = yes; then
6605 echo "$ac_t""yes" 1>&6
6606 else
6607 echo "$ac_t""no" 1>&6
6608 fi
6609
6610
6611 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6612 echo "configure:6613: checking for --enable-tbarnative" >&5
6613 no_cache=0
6614 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6615 if test "${enable_tbarnative+set}" = set; then
6616 enableval="$enable_tbarnative"
6617
6618 if test "$enableval" = yes; then
6619 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6620 else
6621 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6622 fi
6623
6624 else
6625
6626 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6627 if test "x$LINE" != x ; then
6628 eval "DEFAULT_$LINE"
6629 else
6630 no_cache=1
6631 fi
6632
6633 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
6634
6635 fi
6636
6637
6638 eval "$ac_cv_use_tbarnative"
6639 if test "$no_cache" != 1; then
6640 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6641 fi
6642
6643 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6644 echo "$ac_t""yes" 1>&6
6645 else
6646 echo "$ac_t""no" 1>&6
6647 fi
6648
6649
6650 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
6651 echo "configure:6652: checking for --enable-tbarsmpl" >&5
6652 no_cache=0
6653 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6654 if test "${enable_tbarsmpl+set}" = set; then
6655 enableval="$enable_tbarsmpl"
6656
6657 if test "$enableval" = yes; then
6658 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6659 else
6660 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6661 fi
6662
6663 else
6664
6665 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6666 if test "x$LINE" != x ; then
6667 eval "DEFAULT_$LINE"
6668 else
6669 no_cache=1
6670 fi
6671
6672 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
6673
6674 fi
6675
6676
6677 eval "$ac_cv_use_tbarsmpl"
6678 if test "$no_cache" != 1; then
6679 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6680 fi
6681
6682 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
6683 echo "$ac_t""yes" 1>&6
6684 else
6685 echo "$ac_t""no" 1>&6
6686 fi
6687
6688
6689 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
6690 echo "configure:6691: checking for --enable-treectrl" >&5
6691 no_cache=0
6692 # Check whether --enable-treectrl or --disable-treectrl was given.
6693 if test "${enable_treectrl+set}" = set; then
6694 enableval="$enable_treectrl"
6695
6696 if test "$enableval" = yes; then
6697 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6698 else
6699 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6700 fi
6701
6702 else
6703
6704 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6705 if test "x$LINE" != x ; then
6706 eval "DEFAULT_$LINE"
6707 else
6708 no_cache=1
6709 fi
6710
6711 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
6712
6713 fi
6714
6715
6716 eval "$ac_cv_use_treectrl"
6717 if test "$no_cache" != 1; then
6718 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6719 fi
6720
6721 if test "$wxUSE_TREECTRL" = yes; then
6722 echo "$ac_t""yes" 1>&6
6723 else
6724 echo "$ac_t""no" 1>&6
6725 fi
6726
6727
6728 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
6729 echo "configure:6730: checking for --enable-tipwindow" >&5
6730 no_cache=0
6731 # Check whether --enable-tipwindow or --disable-tipwindow was given.
6732 if test "${enable_tipwindow+set}" = set; then
6733 enableval="$enable_tipwindow"
6734
6735 if test "$enableval" = yes; then
6736 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
6737 else
6738 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
6739 fi
6740
6741 else
6742
6743 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
6744 if test "x$LINE" != x ; then
6745 eval "DEFAULT_$LINE"
6746 else
6747 no_cache=1
6748 fi
6749
6750 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
6751
6752 fi
6753
6754
6755 eval "$ac_cv_use_tipwindow"
6756 if test "$no_cache" != 1; then
6757 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
6758 fi
6759
6760 if test "$wxUSE_TIPWINDOW" = yes; then
6761 echo "$ac_t""yes" 1>&6
6762 else
6763 echo "$ac_t""no" 1>&6
6764 fi
6765
6766
6767 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
6768 echo "configure:6769: checking for --enable-popupwin" >&5
6769 no_cache=0
6770 # Check whether --enable-popupwin or --disable-popupwin was given.
6771 if test "${enable_popupwin+set}" = set; then
6772 enableval="$enable_popupwin"
6773
6774 if test "$enableval" = yes; then
6775 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6776 else
6777 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6778 fi
6779
6780 else
6781
6782 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6783 if test "x$LINE" != x ; then
6784 eval "DEFAULT_$LINE"
6785 else
6786 no_cache=1
6787 fi
6788
6789 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6790
6791 fi
6792
6793
6794 eval "$ac_cv_use_popupwin"
6795 if test "$no_cache" != 1; then
6796 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6797 fi
6798
6799 if test "$wxUSE_POPUPWIN" = yes; then
6800 echo "$ac_t""yes" 1>&6
6801 else
6802 echo "$ac_t""no" 1>&6
6803 fi
6804
6805
6806
6807
6808 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
6809 echo "configure:6810: checking for --enable-commondlg" >&5
6810 no_cache=0
6811 # Check whether --enable-commondlg or --disable-commondlg was given.
6812 if test "${enable_commondlg+set}" = set; then
6813 enableval="$enable_commondlg"
6814
6815 if test "$enableval" = yes; then
6816 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6817 else
6818 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6819 fi
6820
6821 else
6822
6823 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6824 if test "x$LINE" != x ; then
6825 eval "DEFAULT_$LINE"
6826 else
6827 no_cache=1
6828 fi
6829
6830 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6831
6832 fi
6833
6834
6835 eval "$ac_cv_use_commondlg"
6836 if test "$no_cache" != 1; then
6837 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6838 fi
6839
6840 if test "$wxUSE_COMMONDLGS" = yes; then
6841 echo "$ac_t""yes" 1>&6
6842 else
6843 echo "$ac_t""no" 1>&6
6844 fi
6845
6846
6847 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
6848 echo "configure:6849: checking for --enable-choicedlg" >&5
6849 no_cache=0
6850 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6851 if test "${enable_choicedlg+set}" = set; then
6852 enableval="$enable_choicedlg"
6853
6854 if test "$enableval" = yes; then
6855 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6856 else
6857 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6858 fi
6859
6860 else
6861
6862 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6863 if test "x$LINE" != x ; then
6864 eval "DEFAULT_$LINE"
6865 else
6866 no_cache=1
6867 fi
6868
6869 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6870
6871 fi
6872
6873
6874 eval "$ac_cv_use_choicedlg"
6875 if test "$no_cache" != 1; then
6876 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6877 fi
6878
6879 if test "$wxUSE_CHOICEDLG" = yes; then
6880 echo "$ac_t""yes" 1>&6
6881 else
6882 echo "$ac_t""no" 1>&6
6883 fi
6884
6885
6886 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
6887 echo "configure:6888: checking for --enable-coldlg" >&5
6888 no_cache=0
6889 # Check whether --enable-coldlg or --disable-coldlg was given.
6890 if test "${enable_coldlg+set}" = set; then
6891 enableval="$enable_coldlg"
6892
6893 if test "$enableval" = yes; then
6894 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6895 else
6896 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6897 fi
6898
6899 else
6900
6901 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6902 if test "x$LINE" != x ; then
6903 eval "DEFAULT_$LINE"
6904 else
6905 no_cache=1
6906 fi
6907
6908 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6909
6910 fi
6911
6912
6913 eval "$ac_cv_use_coldlg"
6914 if test "$no_cache" != 1; then
6915 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6916 fi
6917
6918 if test "$wxUSE_COLOURDLG" = yes; then
6919 echo "$ac_t""yes" 1>&6
6920 else
6921 echo "$ac_t""no" 1>&6
6922 fi
6923
6924
6925 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6926 echo "configure:6927: checking for --enable-filedlg" >&5
6927 no_cache=0
6928 # Check whether --enable-filedlg or --disable-filedlg was given.
6929 if test "${enable_filedlg+set}" = set; then
6930 enableval="$enable_filedlg"
6931
6932 if test "$enableval" = yes; then
6933 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6934 else
6935 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6936 fi
6937
6938 else
6939
6940 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6941 if test "x$LINE" != x ; then
6942 eval "DEFAULT_$LINE"
6943 else
6944 no_cache=1
6945 fi
6946
6947 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6948
6949 fi
6950
6951
6952 eval "$ac_cv_use_filedlg"
6953 if test "$no_cache" != 1; then
6954 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6955 fi
6956
6957 if test "$wxUSE_FILEDLG" = yes; then
6958 echo "$ac_t""yes" 1>&6
6959 else
6960 echo "$ac_t""no" 1>&6
6961 fi
6962
6963
6964 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
6965 echo "configure:6966: checking for --enable-finddlg" >&5
6966 no_cache=0
6967 # Check whether --enable-finddlg or --disable-finddlg was given.
6968 if test "${enable_finddlg+set}" = set; then
6969 enableval="$enable_finddlg"
6970
6971 if test "$enableval" = yes; then
6972 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
6973 else
6974 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
6975 fi
6976
6977 else
6978
6979 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6980 if test "x$LINE" != x ; then
6981 eval "DEFAULT_$LINE"
6982 else
6983 no_cache=1
6984 fi
6985
6986 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
6987
6988 fi
6989
6990
6991 eval "$ac_cv_use_finddlg"
6992 if test "$no_cache" != 1; then
6993 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
6994 fi
6995
6996 if test "$wxUSE_FINDREPLDLG" = yes; then
6997 echo "$ac_t""yes" 1>&6
6998 else
6999 echo "$ac_t""no" 1>&6
7000 fi
7001
7002
7003 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
7004 echo "configure:7005: checking for --enable-fontdlg" >&5
7005 no_cache=0
7006 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7007 if test "${enable_fontdlg+set}" = set; then
7008 enableval="$enable_fontdlg"
7009
7010 if test "$enableval" = yes; then
7011 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7012 else
7013 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7014 fi
7015
7016 else
7017
7018 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7019 if test "x$LINE" != x ; then
7020 eval "DEFAULT_$LINE"
7021 else
7022 no_cache=1
7023 fi
7024
7025 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7026
7027 fi
7028
7029
7030 eval "$ac_cv_use_fontdlg"
7031 if test "$no_cache" != 1; then
7032 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7033 fi
7034
7035 if test "$wxUSE_FONTDLG" = yes; then
7036 echo "$ac_t""yes" 1>&6
7037 else
7038 echo "$ac_t""no" 1>&6
7039 fi
7040
7041
7042 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
7043 echo "configure:7044: checking for --enable-dirdlg" >&5
7044 no_cache=0
7045 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7046 if test "${enable_dirdlg+set}" = set; then
7047 enableval="$enable_dirdlg"
7048
7049 if test "$enableval" = yes; then
7050 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7051 else
7052 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7053 fi
7054
7055 else
7056
7057 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7058 if test "x$LINE" != x ; then
7059 eval "DEFAULT_$LINE"
7060 else
7061 no_cache=1
7062 fi
7063
7064 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7065
7066 fi
7067
7068
7069 eval "$ac_cv_use_dirdlg"
7070 if test "$no_cache" != 1; then
7071 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7072 fi
7073
7074 if test "$wxUSE_DIRDLG" = yes; then
7075 echo "$ac_t""yes" 1>&6
7076 else
7077 echo "$ac_t""no" 1>&6
7078 fi
7079
7080
7081 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
7082 echo "configure:7083: checking for --enable-msgdlg" >&5
7083 no_cache=0
7084 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7085 if test "${enable_msgdlg+set}" = set; then
7086 enableval="$enable_msgdlg"
7087
7088 if test "$enableval" = yes; then
7089 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7090 else
7091 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7092 fi
7093
7094 else
7095
7096 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7097 if test "x$LINE" != x ; then
7098 eval "DEFAULT_$LINE"
7099 else
7100 no_cache=1
7101 fi
7102
7103 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7104
7105 fi
7106
7107
7108 eval "$ac_cv_use_msgdlg"
7109 if test "$no_cache" != 1; then
7110 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7111 fi
7112
7113 if test "$wxUSE_MSGDLG" = yes; then
7114 echo "$ac_t""yes" 1>&6
7115 else
7116 echo "$ac_t""no" 1>&6
7117 fi
7118
7119
7120 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
7121 echo "configure:7122: checking for --enable-numberdlg" >&5
7122 no_cache=0
7123 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7124 if test "${enable_numberdlg+set}" = set; then
7125 enableval="$enable_numberdlg"
7126
7127 if test "$enableval" = yes; then
7128 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7129 else
7130 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7131 fi
7132
7133 else
7134
7135 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7136 if test "x$LINE" != x ; then
7137 eval "DEFAULT_$LINE"
7138 else
7139 no_cache=1
7140 fi
7141
7142 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7143
7144 fi
7145
7146
7147 eval "$ac_cv_use_numberdlg"
7148 if test "$no_cache" != 1; then
7149 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7150 fi
7151
7152 if test "$wxUSE_NUMBERDLG" = yes; then
7153 echo "$ac_t""yes" 1>&6
7154 else
7155 echo "$ac_t""no" 1>&6
7156 fi
7157
7158
7159 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7160 echo "configure:7161: checking for --enable-splash" >&5
7161 no_cache=0
7162 # Check whether --enable-splash or --disable-splash was given.
7163 if test "${enable_splash+set}" = set; then
7164 enableval="$enable_splash"
7165
7166 if test "$enableval" = yes; then
7167 ac_cv_use_splash='wxUSE_SPLASH=yes'
7168 else
7169 ac_cv_use_splash='wxUSE_SPLASH=no'
7170 fi
7171
7172 else
7173
7174 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7175 if test "x$LINE" != x ; then
7176 eval "DEFAULT_$LINE"
7177 else
7178 no_cache=1
7179 fi
7180
7181 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7182
7183 fi
7184
7185
7186 eval "$ac_cv_use_splash"
7187 if test "$no_cache" != 1; then
7188 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7189 fi
7190
7191 if test "$wxUSE_SPLASH" = yes; then
7192 echo "$ac_t""yes" 1>&6
7193 else
7194 echo "$ac_t""no" 1>&6
7195 fi
7196
7197
7198 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7199 echo "configure:7200: checking for --enable-textdlg" >&5
7200 no_cache=0
7201 # Check whether --enable-textdlg or --disable-textdlg was given.
7202 if test "${enable_textdlg+set}" = set; then
7203 enableval="$enable_textdlg"
7204
7205 if test "$enableval" = yes; then
7206 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7207 else
7208 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7209 fi
7210
7211 else
7212
7213 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7214 if test "x$LINE" != x ; then
7215 eval "DEFAULT_$LINE"
7216 else
7217 no_cache=1
7218 fi
7219
7220 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7221
7222 fi
7223
7224
7225 eval "$ac_cv_use_textdlg"
7226 if test "$no_cache" != 1; then
7227 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7228 fi
7229
7230 if test "$wxUSE_TEXTDLG" = yes; then
7231 echo "$ac_t""yes" 1>&6
7232 else
7233 echo "$ac_t""no" 1>&6
7234 fi
7235
7236
7237 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7238 echo "configure:7239: checking for --enable-tipdlg" >&5
7239 no_cache=0
7240 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7241 if test "${enable_tipdlg+set}" = set; then
7242 enableval="$enable_tipdlg"
7243
7244 if test "$enableval" = yes; then
7245 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7246 else
7247 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7248 fi
7249
7250 else
7251
7252 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7253 if test "x$LINE" != x ; then
7254 eval "DEFAULT_$LINE"
7255 else
7256 no_cache=1
7257 fi
7258
7259 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7260
7261 fi
7262
7263
7264 eval "$ac_cv_use_tipdlg"
7265 if test "$no_cache" != 1; then
7266 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7267 fi
7268
7269 if test "$wxUSE_STARTUP_TIPS" = yes; then
7270 echo "$ac_t""yes" 1>&6
7271 else
7272 echo "$ac_t""no" 1>&6
7273 fi
7274
7275
7276 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7277 echo "configure:7278: checking for --enable-progressdlg" >&5
7278 no_cache=0
7279 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7280 if test "${enable_progressdlg+set}" = set; then
7281 enableval="$enable_progressdlg"
7282
7283 if test "$enableval" = yes; then
7284 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7285 else
7286 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7287 fi
7288
7289 else
7290
7291 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7292 if test "x$LINE" != x ; then
7293 eval "DEFAULT_$LINE"
7294 else
7295 no_cache=1
7296 fi
7297
7298 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7299
7300 fi
7301
7302
7303 eval "$ac_cv_use_progressdlg"
7304 if test "$no_cache" != 1; then
7305 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7306 fi
7307
7308 if test "$wxUSE_PROGRESSDLG" = yes; then
7309 echo "$ac_t""yes" 1>&6
7310 else
7311 echo "$ac_t""no" 1>&6
7312 fi
7313
7314
7315 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7316 echo "configure:7317: checking for --enable-wizarddlg" >&5
7317 no_cache=0
7318 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7319 if test "${enable_wizarddlg+set}" = set; then
7320 enableval="$enable_wizarddlg"
7321
7322 if test "$enableval" = yes; then
7323 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7324 else
7325 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7326 fi
7327
7328 else
7329
7330 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7331 if test "x$LINE" != x ; then
7332 eval "DEFAULT_$LINE"
7333 else
7334 no_cache=1
7335 fi
7336
7337 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7338
7339 fi
7340
7341
7342 eval "$ac_cv_use_wizarddlg"
7343 if test "$no_cache" != 1; then
7344 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7345 fi
7346
7347 if test "$wxUSE_WIZARDDLG" = yes; then
7348 echo "$ac_t""yes" 1>&6
7349 else
7350 echo "$ac_t""no" 1>&6
7351 fi
7352
7353
7354
7355
7356 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7357 echo "configure:7358: checking for --enable-menus" >&5
7358 no_cache=0
7359 # Check whether --enable-menus or --disable-menus was given.
7360 if test "${enable_menus+set}" = set; then
7361 enableval="$enable_menus"
7362
7363 if test "$enableval" = yes; then
7364 ac_cv_use_menus='wxUSE_MENUS=yes'
7365 else
7366 ac_cv_use_menus='wxUSE_MENUS=no'
7367 fi
7368
7369 else
7370
7371 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7372 if test "x$LINE" != x ; then
7373 eval "DEFAULT_$LINE"
7374 else
7375 no_cache=1
7376 fi
7377
7378 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7379
7380 fi
7381
7382
7383 eval "$ac_cv_use_menus"
7384 if test "$no_cache" != 1; then
7385 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7386 fi
7387
7388 if test "$wxUSE_MENUS" = yes; then
7389 echo "$ac_t""yes" 1>&6
7390 else
7391 echo "$ac_t""no" 1>&6
7392 fi
7393
7394
7395 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7396 echo "configure:7397: checking for --enable-miniframe" >&5
7397 no_cache=0
7398 # Check whether --enable-miniframe or --disable-miniframe was given.
7399 if test "${enable_miniframe+set}" = set; then
7400 enableval="$enable_miniframe"
7401
7402 if test "$enableval" = yes; then
7403 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7404 else
7405 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7406 fi
7407
7408 else
7409
7410 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7411 if test "x$LINE" != x ; then
7412 eval "DEFAULT_$LINE"
7413 else
7414 no_cache=1
7415 fi
7416
7417 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7418
7419 fi
7420
7421
7422 eval "$ac_cv_use_miniframe"
7423 if test "$no_cache" != 1; then
7424 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7425 fi
7426
7427 if test "$wxUSE_MINIFRAME" = yes; then
7428 echo "$ac_t""yes" 1>&6
7429 else
7430 echo "$ac_t""no" 1>&6
7431 fi
7432
7433
7434 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7435 echo "configure:7436: checking for --enable-tooltips" >&5
7436 no_cache=0
7437 # Check whether --enable-tooltips or --disable-tooltips was given.
7438 if test "${enable_tooltips+set}" = set; then
7439 enableval="$enable_tooltips"
7440
7441 if test "$enableval" = yes; then
7442 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7443 else
7444 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7445 fi
7446
7447 else
7448
7449 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7450 if test "x$LINE" != x ; then
7451 eval "DEFAULT_$LINE"
7452 else
7453 no_cache=1
7454 fi
7455
7456 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7457
7458 fi
7459
7460
7461 eval "$ac_cv_use_tooltips"
7462 if test "$no_cache" != 1; then
7463 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7464 fi
7465
7466 if test "$wxUSE_TOOLTIPS" = yes; then
7467 echo "$ac_t""yes" 1>&6
7468 else
7469 echo "$ac_t""no" 1>&6
7470 fi
7471
7472
7473 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7474 echo "configure:7475: checking for --enable-splines" >&5
7475 no_cache=0
7476 # Check whether --enable-splines or --disable-splines was given.
7477 if test "${enable_splines+set}" = set; then
7478 enableval="$enable_splines"
7479
7480 if test "$enableval" = yes; then
7481 ac_cv_use_splines='wxUSE_SPLINES=yes'
7482 else
7483 ac_cv_use_splines='wxUSE_SPLINES=no'
7484 fi
7485
7486 else
7487
7488 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7489 if test "x$LINE" != x ; then
7490 eval "DEFAULT_$LINE"
7491 else
7492 no_cache=1
7493 fi
7494
7495 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7496
7497 fi
7498
7499
7500 eval "$ac_cv_use_splines"
7501 if test "$no_cache" != 1; then
7502 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7503 fi
7504
7505 if test "$wxUSE_SPLINES" = yes; then
7506 echo "$ac_t""yes" 1>&6
7507 else
7508 echo "$ac_t""no" 1>&6
7509 fi
7510
7511
7512 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7513 echo "configure:7514: checking for --enable-validators" >&5
7514 no_cache=0
7515 # Check whether --enable-validators or --disable-validators was given.
7516 if test "${enable_validators+set}" = set; then
7517 enableval="$enable_validators"
7518
7519 if test "$enableval" = yes; then
7520 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7521 else
7522 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7523 fi
7524
7525 else
7526
7527 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7528 if test "x$LINE" != x ; then
7529 eval "DEFAULT_$LINE"
7530 else
7531 no_cache=1
7532 fi
7533
7534 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7535
7536 fi
7537
7538
7539 eval "$ac_cv_use_validators"
7540 if test "$no_cache" != 1; then
7541 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7542 fi
7543
7544 if test "$wxUSE_VALIDATORS" = yes; then
7545 echo "$ac_t""yes" 1>&6
7546 else
7547 echo "$ac_t""no" 1>&6
7548 fi
7549
7550
7551 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7552 echo "configure:7553: checking for --enable-busyinfo" >&5
7553 no_cache=0
7554 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7555 if test "${enable_busyinfo+set}" = set; then
7556 enableval="$enable_busyinfo"
7557
7558 if test "$enableval" = yes; then
7559 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7560 else
7561 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7562 fi
7563
7564 else
7565
7566 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7567 if test "x$LINE" != x ; then
7568 eval "DEFAULT_$LINE"
7569 else
7570 no_cache=1
7571 fi
7572
7573 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7574
7575 fi
7576
7577
7578 eval "$ac_cv_use_busyinfo"
7579 if test "$no_cache" != 1; then
7580 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7581 fi
7582
7583 if test "$wxUSE_BUSYINFO" = yes; then
7584 echo "$ac_t""yes" 1>&6
7585 else
7586 echo "$ac_t""no" 1>&6
7587 fi
7588
7589
7590 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7591 echo "configure:7592: checking for --enable-joystick" >&5
7592 no_cache=0
7593 # Check whether --enable-joystick or --disable-joystick was given.
7594 if test "${enable_joystick+set}" = set; then
7595 enableval="$enable_joystick"
7596
7597 if test "$enableval" = yes; then
7598 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7599 else
7600 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7601 fi
7602
7603 else
7604
7605 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7606 if test "x$LINE" != x ; then
7607 eval "DEFAULT_$LINE"
7608 else
7609 no_cache=1
7610 fi
7611
7612 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
7613
7614 fi
7615
7616
7617 eval "$ac_cv_use_joystick"
7618 if test "$no_cache" != 1; then
7619 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7620 fi
7621
7622 if test "$wxUSE_JOYSTICK" = yes; then
7623 echo "$ac_t""yes" 1>&6
7624 else
7625 echo "$ac_t""no" 1>&6
7626 fi
7627
7628
7629 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
7630 echo "configure:7631: checking for --enable-metafile" >&5
7631 no_cache=0
7632 # Check whether --enable-metafile or --disable-metafile was given.
7633 if test "${enable_metafile+set}" = set; then
7634 enableval="$enable_metafile"
7635
7636 if test "$enableval" = yes; then
7637 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7638 else
7639 ac_cv_use_metafile='wxUSE_METAFILE=no'
7640 fi
7641
7642 else
7643
7644 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7645 if test "x$LINE" != x ; then
7646 eval "DEFAULT_$LINE"
7647 else
7648 no_cache=1
7649 fi
7650
7651 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7652
7653 fi
7654
7655
7656 eval "$ac_cv_use_metafile"
7657 if test "$no_cache" != 1; then
7658 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7659 fi
7660
7661 if test "$wxUSE_METAFILE" = yes; then
7662 echo "$ac_t""yes" 1>&6
7663 else
7664 echo "$ac_t""no" 1>&6
7665 fi
7666
7667
7668 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
7669 echo "configure:7670: checking for --enable-dragimage" >&5
7670 no_cache=0
7671 # Check whether --enable-dragimage or --disable-dragimage was given.
7672 if test "${enable_dragimage+set}" = set; then
7673 enableval="$enable_dragimage"
7674
7675 if test "$enableval" = yes; then
7676 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7677 else
7678 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7679 fi
7680
7681 else
7682
7683 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7684 if test "x$LINE" != x ; then
7685 eval "DEFAULT_$LINE"
7686 else
7687 no_cache=1
7688 fi
7689
7690 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7691
7692 fi
7693
7694
7695 eval "$ac_cv_use_dragimage"
7696 if test "$no_cache" != 1; then
7697 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7698 fi
7699
7700 if test "$wxUSE_DRAGIMAGE" = yes; then
7701 echo "$ac_t""yes" 1>&6
7702 else
7703 echo "$ac_t""no" 1>&6
7704 fi
7705
7706
7707
7708
7709 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
7710 echo "configure:7711: checking for --enable-palette" >&5
7711 no_cache=0
7712 # Check whether --enable-palette or --disable-palette was given.
7713 if test "${enable_palette+set}" = set; then
7714 enableval="$enable_palette"
7715
7716 if test "$enableval" = yes; then
7717 ac_cv_use_palette='wxUSE_PALETTE=yes'
7718 else
7719 ac_cv_use_palette='wxUSE_PALETTE=no'
7720 fi
7721
7722 else
7723
7724 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
7725 if test "x$LINE" != x ; then
7726 eval "DEFAULT_$LINE"
7727 else
7728 no_cache=1
7729 fi
7730
7731 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
7732
7733 fi
7734
7735
7736 eval "$ac_cv_use_palette"
7737 if test "$no_cache" != 1; then
7738 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
7739 fi
7740
7741 if test "$wxUSE_PALETTE" = yes; then
7742 echo "$ac_t""yes" 1>&6
7743 else
7744 echo "$ac_t""no" 1>&6
7745 fi
7746
7747
7748 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
7749 echo "configure:7750: checking for --enable-image" >&5
7750 no_cache=0
7751 # Check whether --enable-image or --disable-image was given.
7752 if test "${enable_image+set}" = set; then
7753 enableval="$enable_image"
7754
7755 if test "$enableval" = yes; then
7756 ac_cv_use_image='wxUSE_IMAGE=yes'
7757 else
7758 ac_cv_use_image='wxUSE_IMAGE=no'
7759 fi
7760
7761 else
7762
7763 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7764 if test "x$LINE" != x ; then
7765 eval "DEFAULT_$LINE"
7766 else
7767 no_cache=1
7768 fi
7769
7770 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
7771
7772 fi
7773
7774
7775 eval "$ac_cv_use_image"
7776 if test "$no_cache" != 1; then
7777 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7778 fi
7779
7780 if test "$wxUSE_IMAGE" = yes; then
7781 echo "$ac_t""yes" 1>&6
7782 else
7783 echo "$ac_t""no" 1>&6
7784 fi
7785
7786
7787 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7788 echo "configure:7789: checking for --enable-gif" >&5
7789 no_cache=0
7790 # Check whether --enable-gif or --disable-gif was given.
7791 if test "${enable_gif+set}" = set; then
7792 enableval="$enable_gif"
7793
7794 if test "$enableval" = yes; then
7795 ac_cv_use_gif='wxUSE_GIF=yes'
7796 else
7797 ac_cv_use_gif='wxUSE_GIF=no'
7798 fi
7799
7800 else
7801
7802 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7803 if test "x$LINE" != x ; then
7804 eval "DEFAULT_$LINE"
7805 else
7806 no_cache=1
7807 fi
7808
7809 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
7810
7811 fi
7812
7813
7814 eval "$ac_cv_use_gif"
7815 if test "$no_cache" != 1; then
7816 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7817 fi
7818
7819 if test "$wxUSE_GIF" = yes; then
7820 echo "$ac_t""yes" 1>&6
7821 else
7822 echo "$ac_t""no" 1>&6
7823 fi
7824
7825
7826 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7827 echo "configure:7828: checking for --enable-pcx" >&5
7828 no_cache=0
7829 # Check whether --enable-pcx or --disable-pcx was given.
7830 if test "${enable_pcx+set}" = set; then
7831 enableval="$enable_pcx"
7832
7833 if test "$enableval" = yes; then
7834 ac_cv_use_pcx='wxUSE_PCX=yes'
7835 else
7836 ac_cv_use_pcx='wxUSE_PCX=no'
7837 fi
7838
7839 else
7840
7841 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7842 if test "x$LINE" != x ; then
7843 eval "DEFAULT_$LINE"
7844 else
7845 no_cache=1
7846 fi
7847
7848 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
7849
7850 fi
7851
7852
7853 eval "$ac_cv_use_pcx"
7854 if test "$no_cache" != 1; then
7855 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7856 fi
7857
7858 if test "$wxUSE_PCX" = yes; then
7859 echo "$ac_t""yes" 1>&6
7860 else
7861 echo "$ac_t""no" 1>&6
7862 fi
7863
7864
7865 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7866 echo "configure:7867: checking for --enable-pnm" >&5
7867 no_cache=0
7868 # Check whether --enable-pnm or --disable-pnm was given.
7869 if test "${enable_pnm+set}" = set; then
7870 enableval="$enable_pnm"
7871
7872 if test "$enableval" = yes; then
7873 ac_cv_use_pnm='wxUSE_PNM=yes'
7874 else
7875 ac_cv_use_pnm='wxUSE_PNM=no'
7876 fi
7877
7878 else
7879
7880 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7881 if test "x$LINE" != x ; then
7882 eval "DEFAULT_$LINE"
7883 else
7884 no_cache=1
7885 fi
7886
7887 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
7888
7889 fi
7890
7891
7892 eval "$ac_cv_use_pnm"
7893 if test "$no_cache" != 1; then
7894 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7895 fi
7896
7897 if test "$wxUSE_PNM" = yes; then
7898 echo "$ac_t""yes" 1>&6
7899 else
7900 echo "$ac_t""no" 1>&6
7901 fi
7902
7903
7904 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
7905 echo "configure:7906: checking for --enable-xpm" >&5
7906 no_cache=0
7907 # Check whether --enable-xpm or --disable-xpm was given.
7908 if test "${enable_xpm+set}" = set; then
7909 enableval="$enable_xpm"
7910
7911 if test "$enableval" = yes; then
7912 ac_cv_use_xpm='wxUSE_XPM=yes'
7913 else
7914 ac_cv_use_xpm='wxUSE_XPM=no'
7915 fi
7916
7917 else
7918
7919 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7920 if test "x$LINE" != x ; then
7921 eval "DEFAULT_$LINE"
7922 else
7923 no_cache=1
7924 fi
7925
7926 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
7927
7928 fi
7929
7930
7931 eval "$ac_cv_use_xpm"
7932 if test "$no_cache" != 1; then
7933 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
7934 fi
7935
7936 if test "$wxUSE_XPM" = yes; then
7937 echo "$ac_t""yes" 1>&6
7938 else
7939 echo "$ac_t""no" 1>&6
7940 fi
7941
7942
7943 fi
7944
7945
7946 echo "saving argument cache $wx_arg_cache_file"
7947 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
7948
7949
7950
7951 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7952 echo "configure:7953: checking for toolkit" >&5
7953
7954 if test "$wxUSE_GUI" = "yes"; then
7955
7956 if test "$USE_BEOS" = 1; then
7957 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7958 fi
7959
7960 if test "$TOOLKIT_GIVEN" = 1; then
7961 for toolkit in `echo $ALL_TOOLKITS`; do
7962 var=wxUSE_$toolkit
7963 eval "value=\$${var}"
7964 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7965 done
7966 else
7967 for toolkit in `echo $ALL_TOOLKITS`; do
7968 if test "$has_toolkit_in_cache" != 1; then
7969 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7970 else
7971 var=DEFAULT_wxUSE_$toolkit
7972 fi
7973 eval "wxUSE_$toolkit=\$${var}"
7974 done
7975 fi
7976
7977 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
7978 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0}`
7979
7980 case "${host}" in
7981 *-pc-os2_emx | *-pc-os2-emx )
7982 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7983 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7984 LEX_STEM="lexyy"
7985 ;;
7986 *)
7987 PATH_IFS=':'
7988 LEX_STEM="lex.yy"
7989 ;;
7990 esac
7991
7992 case "$NUM_TOOLKITS" in
7993 1)
7994 ;;
7995 0)
7996 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7997 ;;
7998 *)
7999 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8000 esac
8001
8002 for toolkit in `echo $ALL_TOOLKITS`; do
8003 var=wxUSE_$toolkit
8004 eval "value=\$${var}"
8005 if test "x$value" != x; then
8006 cache_var=CACHE_$toolkit
8007 eval "cache=\$${cache_var}"
8008 if test "$cache" = 1; then
8009 echo "$var=$value" >> ${wx_arg_cache_file}
8010 fi
8011 if test "$value" = 1; then
8012 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8013 echo "$ac_t""$toolkit_echo" 1>&6
8014 fi
8015 fi
8016 done
8017 else
8018 PATH_IFS=':'
8019 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8020 fi
8021
8022
8023 cat > confcache <<\EOF
8024 # This file is a shell script that caches the results of configure
8025 # tests run on this system so they can be shared between configure
8026 # scripts and configure runs. It is not useful on other systems.
8027 # If it contains results you don't want to keep, you may remove or edit it.
8028 #
8029 # By default, configure uses ./config.cache as the cache file,
8030 # creating it if it does not exist already. You can give configure
8031 # the --cache-file=FILE option to use a different cache file; that is
8032 # what configure does when it calls configure scripts in
8033 # subdirectories, so they share the cache.
8034 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8035 # config.status only pays attention to the cache file if you give it the
8036 # --recheck option to rerun configure.
8037 #
8038 EOF
8039 # The following way of writing the cache mishandles newlines in values,
8040 # but we know of no workaround that is simple, portable, and efficient.
8041 # So, don't put newlines in cache variables' values.
8042 # Ultrix sh set writes to stderr and can't be redirected directly,
8043 # and sets the high bit in the cache file unless we assign to the vars.
8044 (set) 2>&1 |
8045 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8046 *ac_space=\ *)
8047 # `set' does not quote correctly, so add quotes (double-quote substitution
8048 # turns \\\\ into \\, and sed turns \\ into \).
8049 sed -n \
8050 -e "s/'/'\\\\''/g" \
8051 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8052 ;;
8053 *)
8054 # `set' quotes correctly as required by POSIX, so do not add quotes.
8055 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8056 ;;
8057 esac >> confcache
8058 if cmp -s $cache_file confcache; then
8059 :
8060 else
8061 if test -w $cache_file; then
8062 echo "updating cache $cache_file"
8063 cat confcache > $cache_file
8064 else
8065 echo "not updating unwritable cache $cache_file"
8066 fi
8067 fi
8068 rm -f confcache
8069
8070
8071 if test "$build" != "$host" ; then
8072 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then
8073 CC=$host_alias-gcc
8074 CXX=$host_alias-c++
8075 AR=$host_alias-ar
8076 RANLIB=$host_alias-ranlib
8077 DLLTOOL=$host_alias-dlltool
8078 RESCOMP=$host_alias-windres
8079 LD=$host_alias-ld
8080 NM=$host_alias-nm
8081 STRIP=$host_alias-strip
8082 else
8083 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8084 fi
8085 fi
8086
8087 # Extract the first word of "gcc", so it can be a program name with args.
8088 set dummy gcc; ac_word=$2
8089 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8090 echo "configure:8091: checking for $ac_word" >&5
8091 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8092 echo $ac_n "(cached) $ac_c" 1>&6
8093 else
8094 if test -n "$CC"; then
8095 ac_cv_prog_CC="$CC" # Let the user override the test.
8096 else
8097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8098 ac_dummy="$PATH"
8099 for ac_dir in $ac_dummy; do
8100 test -z "$ac_dir" && ac_dir=.
8101 if test -f $ac_dir/$ac_word; then
8102 ac_cv_prog_CC="gcc"
8103 break
8104 fi
8105 done
8106 IFS="$ac_save_ifs"
8107 fi
8108 fi
8109 CC="$ac_cv_prog_CC"
8110 if test -n "$CC"; then
8111 echo "$ac_t""$CC" 1>&6
8112 else
8113 echo "$ac_t""no" 1>&6
8114 fi
8115
8116 if test -z "$CC"; then
8117 # Extract the first word of "cc", so it can be a program name with args.
8118 set dummy cc; ac_word=$2
8119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8120 echo "configure:8121: checking for $ac_word" >&5
8121 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8122 echo $ac_n "(cached) $ac_c" 1>&6
8123 else
8124 if test -n "$CC"; then
8125 ac_cv_prog_CC="$CC" # Let the user override the test.
8126 else
8127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8128 ac_prog_rejected=no
8129 ac_dummy="$PATH"
8130 for ac_dir in $ac_dummy; do
8131 test -z "$ac_dir" && ac_dir=.
8132 if test -f $ac_dir/$ac_word; then
8133 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8134 ac_prog_rejected=yes
8135 continue
8136 fi
8137 ac_cv_prog_CC="cc"
8138 break
8139 fi
8140 done
8141 IFS="$ac_save_ifs"
8142 if test $ac_prog_rejected = yes; then
8143 # We found a bogon in the path, so make sure we never use it.
8144 set dummy $ac_cv_prog_CC
8145 shift
8146 if test $# -gt 0; then
8147 # We chose a different compiler from the bogus one.
8148 # However, it has the same basename, so the bogon will be chosen
8149 # first if we set CC to just the basename; use the full file name.
8150 shift
8151 set dummy "$ac_dir/$ac_word" "$@"
8152 shift
8153 ac_cv_prog_CC="$@"
8154 fi
8155 fi
8156 fi
8157 fi
8158 CC="$ac_cv_prog_CC"
8159 if test -n "$CC"; then
8160 echo "$ac_t""$CC" 1>&6
8161 else
8162 echo "$ac_t""no" 1>&6
8163 fi
8164
8165 if test -z "$CC"; then
8166 case "`uname -s`" in
8167 *win32* | *WIN32*)
8168 # Extract the first word of "cl", so it can be a program name with args.
8169 set dummy cl; ac_word=$2
8170 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8171 echo "configure:8172: checking for $ac_word" >&5
8172 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8173 echo $ac_n "(cached) $ac_c" 1>&6
8174 else
8175 if test -n "$CC"; then
8176 ac_cv_prog_CC="$CC" # Let the user override the test.
8177 else
8178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8179 ac_dummy="$PATH"
8180 for ac_dir in $ac_dummy; do
8181 test -z "$ac_dir" && ac_dir=.
8182 if test -f $ac_dir/$ac_word; then
8183 ac_cv_prog_CC="cl"
8184 break
8185 fi
8186 done
8187 IFS="$ac_save_ifs"
8188 fi
8189 fi
8190 CC="$ac_cv_prog_CC"
8191 if test -n "$CC"; then
8192 echo "$ac_t""$CC" 1>&6
8193 else
8194 echo "$ac_t""no" 1>&6
8195 fi
8196 ;;
8197 esac
8198 fi
8199 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8200 fi
8201
8202 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8203 echo "configure:8204: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8204
8205 ac_ext=c
8206 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8207 ac_cpp='$CPP $CPPFLAGS'
8208 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8209 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8210 cross_compiling=$ac_cv_prog_cc_cross
8211
8212 cat > conftest.$ac_ext << EOF
8213
8214 #line 8215 "configure"
8215 #include "confdefs.h"
8216
8217 main(){return(0);}
8218 EOF
8219 if { (eval echo configure:8220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8220 ac_cv_prog_cc_works=yes
8221 # If we can't run a trivial program, we are probably using a cross compiler.
8222 if (./conftest; exit) 2>/dev/null; then
8223 ac_cv_prog_cc_cross=no
8224 else
8225 ac_cv_prog_cc_cross=yes
8226 fi
8227 else
8228 echo "configure: failed program was:" >&5
8229 cat conftest.$ac_ext >&5
8230 ac_cv_prog_cc_works=no
8231 fi
8232 rm -fr conftest*
8233 ac_ext=c
8234 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8235 ac_cpp='$CPP $CPPFLAGS'
8236 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8237 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8238 cross_compiling=$ac_cv_prog_cc_cross
8239
8240 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8241 if test $ac_cv_prog_cc_works = no; then
8242 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8243 fi
8244 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8245 echo "configure:8246: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8246 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8247 cross_compiling=$ac_cv_prog_cc_cross
8248
8249 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8250 echo "configure:8251: checking whether we are using GNU C" >&5
8251 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8252 echo $ac_n "(cached) $ac_c" 1>&6
8253 else
8254 cat > conftest.c <<EOF
8255 #ifdef __GNUC__
8256 yes;
8257 #endif
8258 EOF
8259 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8260 ac_cv_prog_gcc=yes
8261 else
8262 ac_cv_prog_gcc=no
8263 fi
8264 fi
8265
8266 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8267
8268 if test $ac_cv_prog_gcc = yes; then
8269 GCC=yes
8270 else
8271 GCC=
8272 fi
8273
8274 ac_test_CFLAGS="${CFLAGS+set}"
8275 ac_save_CFLAGS="$CFLAGS"
8276 CFLAGS=
8277 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8278 echo "configure:8279: checking whether ${CC-cc} accepts -g" >&5
8279 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8280 echo $ac_n "(cached) $ac_c" 1>&6
8281 else
8282 echo 'void f(){}' > conftest.c
8283 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8284 ac_cv_prog_cc_g=yes
8285 else
8286 ac_cv_prog_cc_g=no
8287 fi
8288 rm -f conftest*
8289
8290 fi
8291
8292 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8293 if test "$ac_test_CFLAGS" = set; then
8294 CFLAGS="$ac_save_CFLAGS"
8295 elif test $ac_cv_prog_cc_g = yes; then
8296 if test "$GCC" = yes; then
8297 CFLAGS="-g -O2"
8298 else
8299 CFLAGS="-g"
8300 fi
8301 else
8302 if test "$GCC" = yes; then
8303 CFLAGS="-O2"
8304 else
8305 CFLAGS=
8306 fi
8307 fi
8308
8309
8310 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8311
8312 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8313 echo "configure:8314: checking how to run the C preprocessor" >&5
8314 # On Suns, sometimes $CPP names a directory.
8315 if test -n "$CPP" && test -d "$CPP"; then
8316 CPP=
8317 fi
8318 if test -z "$CPP"; then
8319 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8320 echo $ac_n "(cached) $ac_c" 1>&6
8321 else
8322 # This must be in double quotes, not single quotes, because CPP may get
8323 # substituted into the Makefile and "${CC-cc}" will confuse make.
8324 CPP="${CC-cc} -E"
8325 # On the NeXT, cc -E runs the code through the compiler's parser,
8326 # not just through cpp.
8327 cat > conftest.$ac_ext <<EOF
8328 #line 8329 "configure"
8329 #include "confdefs.h"
8330 #include <assert.h>
8331 Syntax Error
8332 EOF
8333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8334 { (eval echo configure:8335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8335 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8336 if test -z "$ac_err"; then
8337 :
8338 else
8339 echo "$ac_err" >&5
8340 echo "configure: failed program was:" >&5
8341 cat conftest.$ac_ext >&5
8342 rm -rf conftest*
8343 CPP="${CC-cc} -E -traditional-cpp"
8344 cat > conftest.$ac_ext <<EOF
8345 #line 8346 "configure"
8346 #include "confdefs.h"
8347 #include <assert.h>
8348 Syntax Error
8349 EOF
8350 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8351 { (eval echo configure:8352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8352 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8353 if test -z "$ac_err"; then
8354 :
8355 else
8356 echo "$ac_err" >&5
8357 echo "configure: failed program was:" >&5
8358 cat conftest.$ac_ext >&5
8359 rm -rf conftest*
8360 CPP="${CC-cc} -nologo -E"
8361 cat > conftest.$ac_ext <<EOF
8362 #line 8363 "configure"
8363 #include "confdefs.h"
8364 #include <assert.h>
8365 Syntax Error
8366 EOF
8367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8368 { (eval echo configure:8369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8370 if test -z "$ac_err"; then
8371 :
8372 else
8373 echo "$ac_err" >&5
8374 echo "configure: failed program was:" >&5
8375 cat conftest.$ac_ext >&5
8376 rm -rf conftest*
8377 CPP=/lib/cpp
8378 fi
8379 rm -f conftest*
8380 fi
8381 rm -f conftest*
8382 fi
8383 rm -f conftest*
8384 ac_cv_prog_CPP="$CPP"
8385 fi
8386 CPP="$ac_cv_prog_CPP"
8387 else
8388 ac_cv_prog_CPP="$CPP"
8389 fi
8390 echo "$ac_t""$CPP" 1>&6
8391
8392 if test $ac_cv_prog_gcc = yes; then
8393 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8394 echo "configure:8395: checking whether ${CC-cc} needs -traditional" >&5
8395 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8396 echo $ac_n "(cached) $ac_c" 1>&6
8397 else
8398 ac_pattern="Autoconf.*'x'"
8399 cat > conftest.$ac_ext <<EOF
8400 #line 8401 "configure"
8401 #include "confdefs.h"
8402 #include <sgtty.h>
8403 Autoconf TIOCGETP
8404 EOF
8405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8406 egrep "$ac_pattern" >/dev/null 2>&1; then
8407 rm -rf conftest*
8408 ac_cv_prog_gcc_traditional=yes
8409 else
8410 rm -rf conftest*
8411 ac_cv_prog_gcc_traditional=no
8412 fi
8413 rm -f conftest*
8414
8415
8416 if test $ac_cv_prog_gcc_traditional = no; then
8417 cat > conftest.$ac_ext <<EOF
8418 #line 8419 "configure"
8419 #include "confdefs.h"
8420 #include <termio.h>
8421 Autoconf TCGETA
8422 EOF
8423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8424 egrep "$ac_pattern" >/dev/null 2>&1; then
8425 rm -rf conftest*
8426 ac_cv_prog_gcc_traditional=yes
8427 fi
8428 rm -f conftest*
8429
8430 fi
8431 fi
8432
8433 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8434 if test $ac_cv_prog_gcc_traditional = yes; then
8435 CC="$CC -traditional"
8436 fi
8437 fi
8438
8439
8440
8441 ac_ext=C
8442 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8443 ac_cpp='$CXXCPP $CPPFLAGS'
8444 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8445 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8446 cross_compiling=$ac_cv_prog_cxx_cross
8447
8448
8449 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8450 do
8451 # Extract the first word of "$ac_prog", so it can be a program name with args.
8452 set dummy $ac_prog; ac_word=$2
8453 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8454 echo "configure:8455: checking for $ac_word" >&5
8455 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8456 echo $ac_n "(cached) $ac_c" 1>&6
8457 else
8458 if test -n "$CXX"; then
8459 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8460 else
8461 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8462 ac_dummy="$PATH"
8463 for ac_dir in $ac_dummy; do
8464 test -z "$ac_dir" && ac_dir=.
8465 if test -f $ac_dir/$ac_word; then
8466 ac_cv_prog_CXX="$ac_prog"
8467 break
8468 fi
8469 done
8470 IFS="$ac_save_ifs"
8471 fi
8472 fi
8473 CXX="$ac_cv_prog_CXX"
8474 if test -n "$CXX"; then
8475 echo "$ac_t""$CXX" 1>&6
8476 else
8477 echo "$ac_t""no" 1>&6
8478 fi
8479
8480 test -n "$CXX" && break
8481 done
8482 test -n "$CXX" || CXX="gcc"
8483
8484
8485 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8486 echo "configure:8487: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8487
8488 ac_ext=C
8489 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8490 ac_cpp='$CXXCPP $CPPFLAGS'
8491 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8492 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8493 cross_compiling=$ac_cv_prog_cxx_cross
8494
8495 cat > conftest.$ac_ext << EOF
8496
8497 #line 8498 "configure"
8498 #include "confdefs.h"
8499
8500 int main(){return(0);}
8501 EOF
8502 if { (eval echo configure:8503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8503 ac_cv_prog_cxx_works=yes
8504 # If we can't run a trivial program, we are probably using a cross compiler.
8505 if (./conftest; exit) 2>/dev/null; then
8506 ac_cv_prog_cxx_cross=no
8507 else
8508 ac_cv_prog_cxx_cross=yes
8509 fi
8510 else
8511 echo "configure: failed program was:" >&5
8512 cat conftest.$ac_ext >&5
8513 ac_cv_prog_cxx_works=no
8514 fi
8515 rm -fr conftest*
8516 ac_ext=C
8517 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8518 ac_cpp='$CXXCPP $CPPFLAGS'
8519 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8520 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8521 cross_compiling=$ac_cv_prog_cxx_cross
8522
8523 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8524 if test $ac_cv_prog_cxx_works = no; then
8525 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8526 fi
8527 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8528 echo "configure:8529: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
8529 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8530 cross_compiling=$ac_cv_prog_cxx_cross
8531
8532 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
8533 echo "configure:8534: checking whether we are using GNU C++" >&5
8534 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8535 echo $ac_n "(cached) $ac_c" 1>&6
8536 else
8537 cat > conftest.C <<EOF
8538 #ifdef __GNUC__
8539 yes;
8540 #endif
8541 EOF
8542 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8543 ac_cv_prog_gxx=yes
8544 else
8545 ac_cv_prog_gxx=no
8546 fi
8547 fi
8548
8549 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
8550
8551 if test $ac_cv_prog_gxx = yes; then
8552 GXX=yes
8553 else
8554 GXX=
8555 fi
8556
8557 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8558 ac_save_CXXFLAGS="$CXXFLAGS"
8559 CXXFLAGS=
8560 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
8561 echo "configure:8562: checking whether ${CXX-g++} accepts -g" >&5
8562 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8563 echo $ac_n "(cached) $ac_c" 1>&6
8564 else
8565 echo 'void f(){}' > conftest.cc
8566 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
8567 ac_cv_prog_cxx_g=yes
8568 else
8569 ac_cv_prog_cxx_g=no
8570 fi
8571 rm -f conftest*
8572
8573 fi
8574
8575 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
8576 if test "$ac_test_CXXFLAGS" = set; then
8577 CXXFLAGS="$ac_save_CXXFLAGS"
8578 elif test $ac_cv_prog_cxx_g = yes; then
8579 if test "$GXX" = yes; then
8580 CXXFLAGS="-g -O2"
8581 else
8582 CXXFLAGS="-g"
8583 fi
8584 else
8585 if test "$GXX" = yes; then
8586 CXXFLAGS="-O2"
8587 else
8588 CXXFLAGS=
8589 fi
8590 fi
8591
8592
8593 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8594
8595 ac_ext=c
8596 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8597 ac_cpp='$CPP $CPPFLAGS'
8598 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8599 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8600 cross_compiling=$ac_cv_prog_cc_cross
8601
8602
8603 # Extract the first word of "ranlib", so it can be a program name with args.
8604 set dummy ranlib; ac_word=$2
8605 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8606 echo "configure:8607: checking for $ac_word" >&5
8607 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8608 echo $ac_n "(cached) $ac_c" 1>&6
8609 else
8610 if test -n "$RANLIB"; then
8611 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8612 else
8613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8614 ac_dummy="$PATH"
8615 for ac_dir in $ac_dummy; do
8616 test -z "$ac_dir" && ac_dir=.
8617 if test -f $ac_dir/$ac_word; then
8618 ac_cv_prog_RANLIB="ranlib"
8619 break
8620 fi
8621 done
8622 IFS="$ac_save_ifs"
8623 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8624 fi
8625 fi
8626 RANLIB="$ac_cv_prog_RANLIB"
8627 if test -n "$RANLIB"; then
8628 echo "$ac_t""$RANLIB" 1>&6
8629 else
8630 echo "$ac_t""no" 1>&6
8631 fi
8632
8633
8634 # Extract the first word of "ar", so it can be a program name with args.
8635 set dummy ar; ac_word=$2
8636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8637 echo "configure:8638: checking for $ac_word" >&5
8638 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8639 echo $ac_n "(cached) $ac_c" 1>&6
8640 else
8641 if test -n "$AR"; then
8642 ac_cv_prog_AR="$AR" # Let the user override the test.
8643 else
8644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8645 ac_dummy="$PATH"
8646 for ac_dir in $ac_dummy; do
8647 test -z "$ac_dir" && ac_dir=.
8648 if test -f $ac_dir/$ac_word; then
8649 ac_cv_prog_AR="ar"
8650 break
8651 fi
8652 done
8653 IFS="$ac_save_ifs"
8654 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8655 fi
8656 fi
8657 AR="$ac_cv_prog_AR"
8658 if test -n "$AR"; then
8659 echo "$ac_t""$AR" 1>&6
8660 else
8661 echo "$ac_t""no" 1>&6
8662 fi
8663
8664
8665 # Find a good install program. We prefer a C program (faster),
8666 # so one script is as good as another. But avoid the broken or
8667 # incompatible versions:
8668 # SysV /etc/install, /usr/sbin/install
8669 # SunOS /usr/etc/install
8670 # IRIX /sbin/install
8671 # AIX /bin/install
8672 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8673 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8674 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8675 # ./install, which can be erroneously created by make from ./install.sh.
8676 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8677 echo "configure:8678: checking for a BSD compatible install" >&5
8678 if test -z "$INSTALL"; then
8679 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8680 echo $ac_n "(cached) $ac_c" 1>&6
8681 else
8682 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8683 for ac_dir in $PATH; do
8684 # Account for people who put trailing slashes in PATH elements.
8685 case "$ac_dir/" in
8686 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8687 *)
8688 # OSF1 and SCO ODT 3.0 have their own names for install.
8689 # Don't use installbsd from OSF since it installs stuff as root
8690 # by default.
8691 for ac_prog in ginstall scoinst install; do
8692 if test -f $ac_dir/$ac_prog; then
8693 if test $ac_prog = install &&
8694 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8695 # AIX install. It has an incompatible calling convention.
8696 :
8697 else
8698 ac_cv_path_install="$ac_dir/$ac_prog -c"
8699 break 2
8700 fi
8701 fi
8702 done
8703 ;;
8704 esac
8705 done
8706 IFS="$ac_save_IFS"
8707
8708 fi
8709 if test "${ac_cv_path_install+set}" = set; then
8710 INSTALL="$ac_cv_path_install"
8711 else
8712 # As a last resort, use the slow shell script. We don't cache a
8713 # path for INSTALL within a source directory, because that will
8714 # break other packages using the cache if that directory is
8715 # removed, or if the path is relative.
8716 INSTALL="$ac_install_sh"
8717 fi
8718 fi
8719 echo "$ac_t""$INSTALL" 1>&6
8720
8721 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8722 # It thinks the first close brace ends the variable substitution.
8723 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8724
8725 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8726
8727 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8728
8729 case "${host}" in
8730
8731 powerpc-*-darwin* )
8732 INSTALL_PROGRAM="cp -fp"
8733 INSTALL_DATA="cp -fp"
8734 ;;
8735 *)
8736 ;;
8737 esac
8738
8739 # Extract the first word of "strip", so it can be a program name with args.
8740 set dummy strip; ac_word=$2
8741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8742 echo "configure:8743: checking for $ac_word" >&5
8743 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8744 echo $ac_n "(cached) $ac_c" 1>&6
8745 else
8746 if test -n "$STRIP"; then
8747 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8748 else
8749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8750 ac_dummy="$PATH"
8751 for ac_dir in $ac_dummy; do
8752 test -z "$ac_dir" && ac_dir=.
8753 if test -f $ac_dir/$ac_word; then
8754 ac_cv_prog_STRIP="strip"
8755 break
8756 fi
8757 done
8758 IFS="$ac_save_ifs"
8759 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8760 fi
8761 fi
8762 STRIP="$ac_cv_prog_STRIP"
8763 if test -n "$STRIP"; then
8764 echo "$ac_t""$STRIP" 1>&6
8765 else
8766 echo "$ac_t""no" 1>&6
8767 fi
8768
8769
8770 echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8771 echo "configure:8772: checking make for VPATH support" >&5
8772 cat - << EOF > confMake
8773 check : file
8774 cp \$? \$@
8775 cp \$? final_file
8776 EOF
8777
8778 if test ! -d sub ; then
8779 mkdir sub
8780 fi
8781 echo dummy > sub/file
8782 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
8783 RESULT=$?
8784 rm -f sub/file check final_file confMake
8785 rmdir sub
8786 if test "$RESULT" = 0; then
8787 echo "$ac_t""yes" 1>&6
8788 else
8789 echo "$ac_t""no" 1>&6
8790 { echo "configure: error:
8791 You need a make-utility that is able to use the variable
8792 VPATH correctly.
8793 If your version of make does not support VPATH correctly,
8794 please install GNU-make (possibly as gmake), and start
8795 configure with the following command:
8796 export MAKE=gmake; ./configure for sh-type shells
8797 setenv MAKE gmake; ./configure for csh-type shells
8798 Also please do remember to use gmake in this case every time
8799 you are trying to compile.
8800 " 1>&2; exit 1; }
8801 fi
8802
8803 for ac_prog in 'bison -y' byacc
8804 do
8805 # Extract the first word of "$ac_prog", so it can be a program name with args.
8806 set dummy $ac_prog; ac_word=$2
8807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8808 echo "configure:8809: checking for $ac_word" >&5
8809 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8810 echo $ac_n "(cached) $ac_c" 1>&6
8811 else
8812 if test -n "$YACC"; then
8813 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8814 else
8815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8816 ac_dummy="$PATH"
8817 for ac_dir in $ac_dummy; do
8818 test -z "$ac_dir" && ac_dir=.
8819 if test -f $ac_dir/$ac_word; then
8820 ac_cv_prog_YACC="$ac_prog"
8821 break
8822 fi
8823 done
8824 IFS="$ac_save_ifs"
8825 fi
8826 fi
8827 YACC="$ac_cv_prog_YACC"
8828 if test -n "$YACC"; then
8829 echo "$ac_t""$YACC" 1>&6
8830 else
8831 echo "$ac_t""no" 1>&6
8832 fi
8833
8834 test -n "$YACC" && break
8835 done
8836 test -n "$YACC" || YACC="yacc"
8837
8838
8839 # Extract the first word of "flex", so it can be a program name with args.
8840 set dummy flex; ac_word=$2
8841 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8842 echo "configure:8843: checking for $ac_word" >&5
8843 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8844 echo $ac_n "(cached) $ac_c" 1>&6
8845 else
8846 if test -n "$LEX"; then
8847 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8848 else
8849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8850 ac_dummy="$PATH"
8851 for ac_dir in $ac_dummy; do
8852 test -z "$ac_dir" && ac_dir=.
8853 if test -f $ac_dir/$ac_word; then
8854 ac_cv_prog_LEX="flex"
8855 break
8856 fi
8857 done
8858 IFS="$ac_save_ifs"
8859 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
8860 fi
8861 fi
8862 LEX="$ac_cv_prog_LEX"
8863 if test -n "$LEX"; then
8864 echo "$ac_t""$LEX" 1>&6
8865 else
8866 echo "$ac_t""no" 1>&6
8867 fi
8868
8869 if test -z "$LEXLIB"
8870 then
8871 case "$LEX" in
8872 flex*) ac_lib=fl ;;
8873 *) ac_lib=l ;;
8874 esac
8875 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8876 echo "configure:8877: checking for yywrap in -l$ac_lib" >&5
8877 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8878 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8879 echo $ac_n "(cached) $ac_c" 1>&6
8880 else
8881 ac_save_LIBS="$LIBS"
8882 LIBS="-l$ac_lib $LIBS"
8883 cat > conftest.$ac_ext <<EOF
8884 #line 8885 "configure"
8885 #include "confdefs.h"
8886 /* Override any gcc2 internal prototype to avoid an error. */
8887 /* We use char because int might match the return type of a gcc2
8888 builtin and then its argument prototype would still apply. */
8889 char yywrap();
8890
8891 int main() {
8892 yywrap()
8893 ; return 0; }
8894 EOF
8895 if { (eval echo configure:8896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8896 rm -rf conftest*
8897 eval "ac_cv_lib_$ac_lib_var=yes"
8898 else
8899 echo "configure: failed program was:" >&5
8900 cat conftest.$ac_ext >&5
8901 rm -rf conftest*
8902 eval "ac_cv_lib_$ac_lib_var=no"
8903 fi
8904 rm -f conftest*
8905 LIBS="$ac_save_LIBS"
8906
8907 fi
8908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8909 echo "$ac_t""yes" 1>&6
8910 LEXLIB="-l$ac_lib"
8911 else
8912 echo "$ac_t""no" 1>&6
8913 fi
8914
8915 fi
8916
8917
8918 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8919 echo "configure:8920: checking whether ln -s works" >&5
8920 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8921 echo $ac_n "(cached) $ac_c" 1>&6
8922 else
8923 rm -f conftestdata
8924 if ln -s X conftestdata 2>/dev/null
8925 then
8926 rm -f conftestdata
8927 ac_cv_prog_LN_S="ln -s"
8928 else
8929 ac_cv_prog_LN_S=ln
8930 fi
8931 fi
8932 LN_S="$ac_cv_prog_LN_S"
8933 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8934 echo "$ac_t""yes" 1>&6
8935 else
8936 echo "$ac_t""no" 1>&6
8937 fi
8938
8939
8940
8941 SEARCH_INCLUDE="\
8942 /usr/local/include \
8943 \
8944 /usr/Motif-1.2/include \
8945 /usr/Motif-2.1/include \
8946 \
8947 /usr/include/Motif1.2 \
8948 /opt/xpm/include/X11 \
8949 /opt/GBxpm/include/ \
8950 /opt/GBxpm/X11/include/ \
8951 \
8952 /usr/Motif1.2/include \
8953 /usr/dt/include \
8954 /usr/openwin/include \
8955 \
8956 /usr/include/Xm \
8957 \
8958 /usr/X11R6/include \
8959 /usr/X11R6.4/include \
8960 /usr/X11R5/include \
8961 /usr/X11R4/include \
8962 \
8963 /usr/include/X11R6 \
8964 /usr/include/X11R5 \
8965 /usr/include/X11R4 \
8966 \
8967 /usr/local/X11R6/include \
8968 /usr/local/X11R5/include \
8969 /usr/local/X11R4/include \
8970 \
8971 /usr/local/include/X11R6 \
8972 /usr/local/include/X11R5 \
8973 /usr/local/include/X11R4 \
8974 \
8975 /usr/X11/include \
8976 /usr/include/X11 \
8977 /usr/local/X11/include \
8978 /usr/local/include/X11 \
8979 \
8980 /usr/X386/include \
8981 /usr/x386/include \
8982 /usr/XFree86/include/X11 \
8983 \
8984 X:/XFree86/include \
8985 X:/XFree86/include/X11 \
8986 \
8987 /usr/include/gtk \
8988 /usr/local/include/gtk \
8989 /usr/include/glib \
8990 /usr/local/include/glib \
8991 \
8992 /usr/include/qt \
8993 /usr/local/include/qt \
8994 \
8995 /usr/include/windows \
8996 /usr/include/wine \
8997 /usr/local/include/wine \
8998 \
8999 /usr/unsupported/include \
9000 /usr/athena/include \
9001 /usr/local/x11r5/include \
9002 /usr/lpp/Xamples/include \
9003 \
9004 /usr/openwin/share/include \
9005 \
9006 /usr/include"
9007
9008 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
9009
9010
9011 cat > confcache <<\EOF
9012 # This file is a shell script that caches the results of configure
9013 # tests run on this system so they can be shared between configure
9014 # scripts and configure runs. It is not useful on other systems.
9015 # If it contains results you don't want to keep, you may remove or edit it.
9016 #
9017 # By default, configure uses ./config.cache as the cache file,
9018 # creating it if it does not exist already. You can give configure
9019 # the --cache-file=FILE option to use a different cache file; that is
9020 # what configure does when it calls configure scripts in
9021 # subdirectories, so they share the cache.
9022 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9023 # config.status only pays attention to the cache file if you give it the
9024 # --recheck option to rerun configure.
9025 #
9026 EOF
9027 # The following way of writing the cache mishandles newlines in values,
9028 # but we know of no workaround that is simple, portable, and efficient.
9029 # So, don't put newlines in cache variables' values.
9030 # Ultrix sh set writes to stderr and can't be redirected directly,
9031 # and sets the high bit in the cache file unless we assign to the vars.
9032 (set) 2>&1 |
9033 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9034 *ac_space=\ *)
9035 # `set' does not quote correctly, so add quotes (double-quote substitution
9036 # turns \\\\ into \\, and sed turns \\ into \).
9037 sed -n \
9038 -e "s/'/'\\\\''/g" \
9039 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9040 ;;
9041 *)
9042 # `set' quotes correctly as required by POSIX, so do not add quotes.
9043 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9044 ;;
9045 esac >> confcache
9046 if cmp -s $cache_file confcache; then
9047 :
9048 else
9049 if test -w $cache_file; then
9050 echo "updating cache $cache_file"
9051 cat confcache > $cache_file
9052 else
9053 echo "not updating unwritable cache $cache_file"
9054 fi
9055 fi
9056 rm -f confcache
9057
9058
9059
9060
9061 REGEX_INCLUDE=
9062 if test "$wxUSE_REGEX" != "no"; then
9063 cat >> confdefs.h <<\EOF
9064 #define wxUSE_REGEX 1
9065 EOF
9066
9067
9068 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
9069 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
9070 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
9071 echo "configure:9072: checking for regex.h" >&5
9072 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9073 echo $ac_n "(cached) $ac_c" 1>&6
9074 else
9075 cat > conftest.$ac_ext <<EOF
9076 #line 9077 "configure"
9077 #include "confdefs.h"
9078 #include <regex.h>
9079 EOF
9080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9081 { (eval echo configure:9082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9082 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9083 if test -z "$ac_err"; then
9084 rm -rf conftest*
9085 eval "ac_cv_header_$ac_safe=yes"
9086 else
9087 echo "$ac_err" >&5
9088 echo "configure: failed program was:" >&5
9089 cat conftest.$ac_ext >&5
9090 rm -rf conftest*
9091 eval "ac_cv_header_$ac_safe=no"
9092 fi
9093 rm -f conftest*
9094 fi
9095 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9096 echo "$ac_t""yes" 1>&6
9097 for ac_func in regcomp
9098 do
9099 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9100 echo "configure:9101: checking for $ac_func" >&5
9101 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9102 echo $ac_n "(cached) $ac_c" 1>&6
9103 else
9104 cat > conftest.$ac_ext <<EOF
9105 #line 9106 "configure"
9106 #include "confdefs.h"
9107 /* System header to define __stub macros and hopefully few prototypes,
9108 which can conflict with char $ac_func(); below. */
9109 #include <assert.h>
9110 /* Override any gcc2 internal prototype to avoid an error. */
9111 /* We use char because int might match the return type of a gcc2
9112 builtin and then its argument prototype would still apply. */
9113 char $ac_func();
9114
9115 int main() {
9116
9117 /* The GNU C library defines this for functions which it implements
9118 to always fail with ENOSYS. Some functions are actually named
9119 something starting with __ and the normal name is an alias. */
9120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9121 choke me
9122 #else
9123 $ac_func();
9124 #endif
9125
9126 ; return 0; }
9127 EOF
9128 if { (eval echo configure:9129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9129 rm -rf conftest*
9130 eval "ac_cv_func_$ac_func=yes"
9131 else
9132 echo "configure: failed program was:" >&5
9133 cat conftest.$ac_ext >&5
9134 rm -rf conftest*
9135 eval "ac_cv_func_$ac_func=no"
9136 fi
9137 rm -f conftest*
9138 fi
9139
9140 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9141 echo "$ac_t""yes" 1>&6
9142 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9143 cat >> confdefs.h <<EOF
9144 #define $ac_tr_func 1
9145 EOF
9146
9147 else
9148 echo "$ac_t""no" 1>&6
9149 fi
9150 done
9151
9152 else
9153 echo "$ac_t""no" 1>&6
9154 fi
9155
9156
9157 if test "x$ac_cv_func_regcomp" != "xyes"; then
9158 if test "$wxUSE_REGEX" = "sys" ; then
9159 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9160 else
9161 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
9162 wxUSE_REGEX=builtin
9163 fi
9164 else
9165 wxUSE_REGEX=sys
9166 fi
9167 fi
9168
9169 if test "$wxUSE_REGEX" = "builtin" ; then
9170 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9171 fi
9172 fi
9173
9174
9175 ZLIB_INCLUDE=
9176 ZLIB_LINK=
9177 if test "$wxUSE_ZLIB" != "no" ; then
9178 cat >> confdefs.h <<\EOF
9179 #define wxUSE_ZLIB 1
9180 EOF
9181
9182
9183 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9184 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9185 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
9186 echo "configure:9187: checking for zlib.h" >&5
9187 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9188 echo $ac_n "(cached) $ac_c" 1>&6
9189 else
9190 cat > conftest.$ac_ext <<EOF
9191 #line 9192 "configure"
9192 #include "confdefs.h"
9193 #include <zlib.h>
9194 EOF
9195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9196 { (eval echo configure:9197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9198 if test -z "$ac_err"; then
9199 rm -rf conftest*
9200 eval "ac_cv_header_$ac_safe=yes"
9201 else
9202 echo "$ac_err" >&5
9203 echo "configure: failed program was:" >&5
9204 cat conftest.$ac_ext >&5
9205 rm -rf conftest*
9206 eval "ac_cv_header_$ac_safe=no"
9207 fi
9208 rm -f conftest*
9209 fi
9210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9211 echo "$ac_t""yes" 1>&6
9212 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
9213 echo "configure:9214: checking for deflate in -lz" >&5
9214 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9215 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9216 echo $ac_n "(cached) $ac_c" 1>&6
9217 else
9218 ac_save_LIBS="$LIBS"
9219 LIBS="-lz $LIBS"
9220 cat > conftest.$ac_ext <<EOF
9221 #line 9222 "configure"
9222 #include "confdefs.h"
9223 /* Override any gcc2 internal prototype to avoid an error. */
9224 /* We use char because int might match the return type of a gcc2
9225 builtin and then its argument prototype would still apply. */
9226 char deflate();
9227
9228 int main() {
9229 deflate()
9230 ; return 0; }
9231 EOF
9232 if { (eval echo configure:9233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9233 rm -rf conftest*
9234 eval "ac_cv_lib_$ac_lib_var=yes"
9235 else
9236 echo "configure: failed program was:" >&5
9237 cat conftest.$ac_ext >&5
9238 rm -rf conftest*
9239 eval "ac_cv_lib_$ac_lib_var=no"
9240 fi
9241 rm -f conftest*
9242 LIBS="$ac_save_LIBS"
9243
9244 fi
9245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9246 echo "$ac_t""yes" 1>&6
9247 ZLIB_LINK=" -lz"
9248 else
9249 echo "$ac_t""no" 1>&6
9250 fi
9251
9252 else
9253 echo "$ac_t""no" 1>&6
9254 fi
9255
9256
9257 if test "x$ZLIB_LINK" = "x" ; then
9258 if test "$wxUSE_ZLIB" = "sys" ; then
9259 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9260 else
9261 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
9262 wxUSE_ZLIB=builtin
9263 fi
9264 else
9265 wxUSE_ZLIB=sys
9266 fi
9267 fi
9268
9269 if test "$wxUSE_ZLIB" = "builtin" ; then
9270 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9271 fi
9272 fi
9273
9274
9275 PNG_INCLUDE=
9276 PNG_LINK=
9277 if test "$wxUSE_LIBPNG" != "no" ; then
9278 cat >> confdefs.h <<\EOF
9279 #define wxUSE_LIBPNG 1
9280 EOF
9281
9282
9283 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
9284 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
9285 wxUSE_LIBPNG=builtin
9286 fi
9287
9288 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9289 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9290 echo $ac_n "checking for png.h""... $ac_c" 1>&6
9291 echo "configure:9292: checking for png.h" >&5
9292 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9293 echo $ac_n "(cached) $ac_c" 1>&6
9294 else
9295 cat > conftest.$ac_ext <<EOF
9296 #line 9297 "configure"
9297 #include "confdefs.h"
9298 #include <png.h>
9299 EOF
9300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9301 { (eval echo configure:9302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9303 if test -z "$ac_err"; then
9304 rm -rf conftest*
9305 eval "ac_cv_header_$ac_safe=yes"
9306 else
9307 echo "$ac_err" >&5
9308 echo "configure: failed program was:" >&5
9309 cat conftest.$ac_ext >&5
9310 rm -rf conftest*
9311 eval "ac_cv_header_$ac_safe=no"
9312 fi
9313 rm -f conftest*
9314 fi
9315 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9316 echo "$ac_t""yes" 1>&6
9317 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
9318 echo "configure:9319: checking for png_check_sig in -lpng" >&5
9319 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9321 echo $ac_n "(cached) $ac_c" 1>&6
9322 else
9323 ac_save_LIBS="$LIBS"
9324 LIBS="-lpng -lz -lm $LIBS"
9325 cat > conftest.$ac_ext <<EOF
9326 #line 9327 "configure"
9327 #include "confdefs.h"
9328 /* Override any gcc2 internal prototype to avoid an error. */
9329 /* We use char because int might match the return type of a gcc2
9330 builtin and then its argument prototype would still apply. */
9331 char png_check_sig();
9332
9333 int main() {
9334 png_check_sig()
9335 ; return 0; }
9336 EOF
9337 if { (eval echo configure:9338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9338 rm -rf conftest*
9339 eval "ac_cv_lib_$ac_lib_var=yes"
9340 else
9341 echo "configure: failed program was:" >&5
9342 cat conftest.$ac_ext >&5
9343 rm -rf conftest*
9344 eval "ac_cv_lib_$ac_lib_var=no"
9345 fi
9346 rm -f conftest*
9347 LIBS="$ac_save_LIBS"
9348
9349 fi
9350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9351 echo "$ac_t""yes" 1>&6
9352 PNG_LINK=" -lpng"
9353 else
9354 echo "$ac_t""no" 1>&6
9355 fi
9356
9357
9358 else
9359 echo "$ac_t""no" 1>&6
9360 fi
9361
9362
9363 if test "x$PNG_LINK" = "x" ; then
9364 if test "$wxUSE_LIBPNG" = "sys" ; then
9365 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9366 else
9367 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
9368 wxUSE_LIBPNG=builtin
9369 fi
9370 else
9371 wxUSE_LIBPNG=yes
9372 fi
9373 fi
9374
9375 if test "$wxUSE_LIBPNG" = "builtin" ; then
9376 PNG_INCLUDE="-I\${top_srcdir}/src/png"
9377 fi
9378
9379 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
9380 fi
9381
9382
9383 JPEG_INCLUDE=
9384 JPEG_LINK=
9385 if test "$wxUSE_LIBJPEG" != "no" ; then
9386 cat >> confdefs.h <<\EOF
9387 #define wxUSE_LIBJPEG 1
9388 EOF
9389
9390
9391 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9392 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
9393 echo "configure:9394: checking for jpeglib.h" >&5
9394 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
9395 echo $ac_n "(cached) $ac_c" 1>&6
9396 else
9397 cat > conftest.$ac_ext <<EOF
9398 #line 9399 "configure"
9399 #include "confdefs.h"
9400
9401 #undef HAVE_STDLIB_H
9402 #include <stdio.h>
9403 #include <jpeglib.h>
9404
9405 int main() {
9406
9407
9408 ; return 0; }
9409 EOF
9410 if { (eval echo configure:9411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9411 rm -rf conftest*
9412 ac_cv_header_jpeglib_h=yes
9413 else
9414 echo "configure: failed program was:" >&5
9415 cat conftest.$ac_ext >&5
9416 rm -rf conftest*
9417 ac_cv_header_jpeglib_h=no
9418
9419 fi
9420 rm -f conftest*
9421
9422 fi
9423
9424 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
9425
9426 if test "$ac_cv_header_jpeglib_h" = "yes"; then
9427 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
9428 echo "configure:9429: checking for jpeg_read_header in -ljpeg" >&5
9429 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
9430 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9431 echo $ac_n "(cached) $ac_c" 1>&6
9432 else
9433 ac_save_LIBS="$LIBS"
9434 LIBS="-ljpeg $LIBS"
9435 cat > conftest.$ac_ext <<EOF
9436 #line 9437 "configure"
9437 #include "confdefs.h"
9438 /* Override any gcc2 internal prototype to avoid an error. */
9439 /* We use char because int might match the return type of a gcc2
9440 builtin and then its argument prototype would still apply. */
9441 char jpeg_read_header();
9442
9443 int main() {
9444 jpeg_read_header()
9445 ; return 0; }
9446 EOF
9447 if { (eval echo configure:9448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9448 rm -rf conftest*
9449 eval "ac_cv_lib_$ac_lib_var=yes"
9450 else
9451 echo "configure: failed program was:" >&5
9452 cat conftest.$ac_ext >&5
9453 rm -rf conftest*
9454 eval "ac_cv_lib_$ac_lib_var=no"
9455 fi
9456 rm -f conftest*
9457 LIBS="$ac_save_LIBS"
9458
9459 fi
9460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9461 echo "$ac_t""yes" 1>&6
9462 JPEG_LINK=" -ljpeg"
9463 else
9464 echo "$ac_t""no" 1>&6
9465 fi
9466
9467 fi
9468
9469 if test "x$JPEG_LINK" = "x" ; then
9470 if test "$wxUSE_LIBJPEG" = "sys" ; then
9471 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
9472 else
9473 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
9474 wxUSE_LIBJPEG=builtin
9475 fi
9476 else
9477 wxUSE_LIBJPEG=sys
9478 fi
9479 fi
9480
9481 if test "$wxUSE_LIBJPEG" = "builtin" ; then
9482 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
9483 fi
9484 fi
9485
9486
9487 TIFF_INCLUDE=
9488 TIFF_LINK=
9489 if test "$wxUSE_LIBTIFF" != "no" ; then
9490 cat >> confdefs.h <<\EOF
9491 #define wxUSE_LIBTIFF 1
9492 EOF
9493
9494
9495 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
9496 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
9497 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
9498 echo "configure:9499: checking for tiffio.h" >&5
9499 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9500 echo $ac_n "(cached) $ac_c" 1>&6
9501 else
9502 cat > conftest.$ac_ext <<EOF
9503 #line 9504 "configure"
9504 #include "confdefs.h"
9505 #include <tiffio.h>
9506 EOF
9507 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9508 { (eval echo configure:9509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9509 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9510 if test -z "$ac_err"; then
9511 rm -rf conftest*
9512 eval "ac_cv_header_$ac_safe=yes"
9513 else
9514 echo "$ac_err" >&5
9515 echo "configure: failed program was:" >&5
9516 cat conftest.$ac_ext >&5
9517 rm -rf conftest*
9518 eval "ac_cv_header_$ac_safe=no"
9519 fi
9520 rm -f conftest*
9521 fi
9522 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9523 echo "$ac_t""yes" 1>&6
9524 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
9525 echo "configure:9526: checking for TIFFError in -ltiff" >&5
9526 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
9527 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9528 echo $ac_n "(cached) $ac_c" 1>&6
9529 else
9530 ac_save_LIBS="$LIBS"
9531 LIBS="-ltiff -lm $LIBS"
9532 cat > conftest.$ac_ext <<EOF
9533 #line 9534 "configure"
9534 #include "confdefs.h"
9535 /* Override any gcc2 internal prototype to avoid an error. */
9536 /* We use char because int might match the return type of a gcc2
9537 builtin and then its argument prototype would still apply. */
9538 char TIFFError();
9539
9540 int main() {
9541 TIFFError()
9542 ; return 0; }
9543 EOF
9544 if { (eval echo configure:9545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9545 rm -rf conftest*
9546 eval "ac_cv_lib_$ac_lib_var=yes"
9547 else
9548 echo "configure: failed program was:" >&5
9549 cat conftest.$ac_ext >&5
9550 rm -rf conftest*
9551 eval "ac_cv_lib_$ac_lib_var=no"
9552 fi
9553 rm -f conftest*
9554 LIBS="$ac_save_LIBS"
9555
9556 fi
9557 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9558 echo "$ac_t""yes" 1>&6
9559 TIFF_LINK=" -ltiff"
9560 else
9561 echo "$ac_t""no" 1>&6
9562 fi
9563
9564
9565 else
9566 echo "$ac_t""no" 1>&6
9567 fi
9568
9569
9570 if test "x$TIFF_LINK" = "x" ; then
9571 if test "$wxUSE_LIBTIFF" = "sys" ; then
9572 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
9573 else
9574 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
9575 wxUSE_LIBTIFF=builtin
9576 fi
9577 else
9578 wxUSE_LIBTIFF=sys
9579 fi
9580 fi
9581
9582 if test "$wxUSE_LIBTIFF" = "builtin" ; then
9583 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
9584 fi
9585 fi
9586
9587
9588 FREETYPE_INCLUDE=
9589 FREETYPE_LINK=
9590 if test "$wxUSE_FREETYPE" != "no" ; then
9591 cat >> confdefs.h <<\EOF
9592 #define wxUSE_FREETYPE 1
9593 EOF
9594
9595
9596 if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then
9597 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
9598 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
9599 echo "configure:9600: checking for freetype.h" >&5
9600 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9601 echo $ac_n "(cached) $ac_c" 1>&6
9602 else
9603 cat > conftest.$ac_ext <<EOF
9604 #line 9605 "configure"
9605 #include "confdefs.h"
9606 #include <freetype.h>
9607 EOF
9608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9609 { (eval echo configure:9610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9611 if test -z "$ac_err"; then
9612 rm -rf conftest*
9613 eval "ac_cv_header_$ac_safe=yes"
9614 else
9615 echo "$ac_err" >&5
9616 echo "configure: failed program was:" >&5
9617 cat conftest.$ac_ext >&5
9618 rm -rf conftest*
9619 eval "ac_cv_header_$ac_safe=no"
9620 fi
9621 rm -f conftest*
9622 fi
9623 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9624 echo "$ac_t""yes" 1>&6
9625 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
9626 echo "configure:9627: checking for FT_Render_Glyph in -lfreetype" >&5
9627 ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
9628 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9629 echo $ac_n "(cached) $ac_c" 1>&6
9630 else
9631 ac_save_LIBS="$LIBS"
9632 LIBS="-lfreetype -lm $LIBS"
9633 cat > conftest.$ac_ext <<EOF
9634 #line 9635 "configure"
9635 #include "confdefs.h"
9636 /* Override any gcc2 internal prototype to avoid an error. */
9637 /* We use char because int might match the return type of a gcc2
9638 builtin and then its argument prototype would still apply. */
9639 char FT_Render_Glyph();
9640
9641 int main() {
9642 FT_Render_Glyph()
9643 ; return 0; }
9644 EOF
9645 if { (eval echo configure:9646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9646 rm -rf conftest*
9647 eval "ac_cv_lib_$ac_lib_var=yes"
9648 else
9649 echo "configure: failed program was:" >&5
9650 cat conftest.$ac_ext >&5
9651 rm -rf conftest*
9652 eval "ac_cv_lib_$ac_lib_var=no"
9653 fi
9654 rm -f conftest*
9655 LIBS="$ac_save_LIBS"
9656
9657 fi
9658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9659 echo "$ac_t""yes" 1>&6
9660 FREETYPE_LINK=" -lfreetype"
9661 else
9662 echo "$ac_t""no" 1>&6
9663 fi
9664
9665
9666 else
9667 echo "$ac_t""no" 1>&6
9668 fi
9669
9670
9671 if test "x$FREETYPE_LINK" = "x" ; then
9672 if test "$wxUSE_FREETYPE" = "sys" ; then
9673 { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; }
9674 else
9675 echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2
9676 wxUSE_FREETYPE=builtin
9677 fi
9678 else
9679 wxUSE_FREETYPE=sys
9680 fi
9681 fi
9682
9683 if test "$wxUSE_FREETYPE" = "builtin" ; then
9684 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
9685 fi
9686 fi
9687
9688
9689 AFMINSTALL=
9690
9691 TOOLKIT=
9692 TOOLKIT_INCLUDE=
9693 WIDGET_SET=
9694
9695 if test "$USE_WIN32" = 1 ; then
9696 for ac_hdr in w32api.h
9697 do
9698 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9699 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9700 echo "configure:9701: checking for $ac_hdr" >&5
9701 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9702 echo $ac_n "(cached) $ac_c" 1>&6
9703 else
9704 cat > conftest.$ac_ext <<EOF
9705 #line 9706 "configure"
9706 #include "confdefs.h"
9707 #include <$ac_hdr>
9708 EOF
9709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9710 { (eval echo configure:9711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9712 if test -z "$ac_err"; then
9713 rm -rf conftest*
9714 eval "ac_cv_header_$ac_safe=yes"
9715 else
9716 echo "$ac_err" >&5
9717 echo "configure: failed program was:" >&5
9718 cat conftest.$ac_ext >&5
9719 rm -rf conftest*
9720 eval "ac_cv_header_$ac_safe=no"
9721 fi
9722 rm -f conftest*
9723 fi
9724 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9725 echo "$ac_t""yes" 1>&6
9726 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9727 cat >> confdefs.h <<EOF
9728 #define $ac_tr_hdr 1
9729 EOF
9730
9731 else
9732 echo "$ac_t""no" 1>&6
9733 fi
9734 done
9735
9736 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
9737 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
9738 echo "configure:9739: checking for windows.h" >&5
9739 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9740 echo $ac_n "(cached) $ac_c" 1>&6
9741 else
9742 cat > conftest.$ac_ext <<EOF
9743 #line 9744 "configure"
9744 #include "confdefs.h"
9745 #include <windows.h>
9746 EOF
9747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9748 { (eval echo configure:9749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9749 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9750 if test -z "$ac_err"; then
9751 rm -rf conftest*
9752 eval "ac_cv_header_$ac_safe=yes"
9753 else
9754 echo "$ac_err" >&5
9755 echo "configure: failed program was:" >&5
9756 cat conftest.$ac_ext >&5
9757 rm -rf conftest*
9758 eval "ac_cv_header_$ac_safe=no"
9759 fi
9760 rm -f conftest*
9761 fi
9762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9763 echo "$ac_t""yes" 1>&6
9764 :
9765 else
9766 echo "$ac_t""no" 1>&6
9767
9768 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9769
9770 fi
9771
9772
9773 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
9774 echo "configure:9775: checking if w32api has good enough MSIE support" >&5
9775 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
9776 echo $ac_n "(cached) $ac_c" 1>&6
9777 else
9778
9779 cat > conftest.$ac_ext <<EOF
9780 #line 9781 "configure"
9781 #include "confdefs.h"
9782 #include <w32api.h>
9783 int main() {
9784
9785 #define wxCHECK_W32API_VERSION( major, minor ) \
9786 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
9787 && ( ( __W32API_MAJOR_VERSION > (major) ) \
9788 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
9789
9790 #if !wxCHECK_W32API_VERSION(1,1)
9791 #error You need w32api 1.1 or newer
9792 #endif
9793
9794 ; return 0; }
9795 EOF
9796 if { (eval echo configure:9797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9797 rm -rf conftest*
9798
9799 wx_cv_w32api_win32_ie=yes
9800
9801 else
9802 echo "configure: failed program was:" >&5
9803 cat conftest.$ac_ext >&5
9804 rm -rf conftest*
9805
9806 wx_cv_w32api_win32_ie=no
9807
9808 fi
9809 rm -f conftest*
9810
9811 fi
9812
9813 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
9814 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
9815 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
9816 fi
9817
9818 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
9819
9820 case "${host}" in
9821 *-*-cygwin* )
9822 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
9823 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
9824 esac
9825
9826 if test "$wxUSE_ODBC" = "yes" ; then
9827 LIBS=" -lodbc32 -lole32 -loleaut32$LIBS"
9828 fi
9829
9830 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
9831 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
9832 fi
9833
9834 if test "$wxUSE_GUI" = "yes"; then
9835 USE_GUI=1
9836
9837 GUI_TK_LIBRARY=
9838
9839 WXGTK12=
9840 WXGTK127=
9841 WXGTK20=
9842
9843 if test "$wxUSE_MSW" = 1 ; then
9844 TOOLKIT=MSW
9845 GUIDIST=MSW_DIST
9846
9847 case "${host}" in
9848 *-*-mingw32* )
9849 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
9850 esac
9851 fi
9852
9853 if test "$wxUSE_GTK" = 1; then
9854 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
9855 echo "configure:9856: checking for GTK+ version" >&5
9856
9857 gtk_version_cached=1
9858 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9859 echo $ac_n "(cached) $ac_c" 1>&6
9860 else
9861
9862 gtk_version_cached=0
9863 echo "$ac_t""" 1>&6
9864
9865 GTK_MODULES=
9866 if test "$wxUSE_THREADS" = "yes"; then
9867 GTK_MODULES=gthread
9868 fi
9869
9870 wx_cv_lib_gtk=
9871 if test "x$wxUSE_GTK2" = "xyes"; then
9872 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
9873 if test "${with_gtk_prefix+set}" = set; then
9874 withval="$with_gtk_prefix"
9875 gtk_config_prefix="$withval"
9876 else
9877 gtk_config_prefix=""
9878 fi
9879
9880 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9881 if test "${with_gtk_exec_prefix+set}" = set; then
9882 withval="$with_gtk_exec_prefix"
9883 gtk_config_exec_prefix="$withval"
9884 else
9885 gtk_config_exec_prefix=""
9886 fi
9887
9888 # Check whether --enable-gtktest or --disable-gtktest was given.
9889 if test "${enable_gtktest+set}" = set; then
9890 enableval="$enable_gtktest"
9891 :
9892 else
9893 enable_gtktest=yes
9894 fi
9895
9896
9897 for module in . $GTK_MODULES
9898 do
9899 case "$module" in
9900 gthread)
9901 gtk_config_args="$gtk_config_args gthread"
9902 ;;
9903 esac
9904 done
9905
9906 if test x$gtk_config_exec_prefix != x ; then
9907 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9908 if test x${GTK_CONFIG_2_0+set} != xset ; then
9909 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9910 fi
9911 fi
9912 if test x$gtk_config_prefix != x ; then
9913 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9914 if test x${GTK_CONFIG_2_0+set} != xset ; then
9915 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9916 fi
9917 fi
9918
9919 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9920 set dummy gtk-config-2.0; ac_word=$2
9921 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9922 echo "configure:9923: checking for $ac_word" >&5
9923 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9924 echo $ac_n "(cached) $ac_c" 1>&6
9925 else
9926 case "$GTK_CONFIG_2_0" in
9927 /*)
9928 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9929 ;;
9930 ?:/*)
9931 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9932 ;;
9933 *)
9934 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9935 ac_dummy="$PATH"
9936 for ac_dir in $ac_dummy; do
9937 test -z "$ac_dir" && ac_dir=.
9938 if test -f $ac_dir/$ac_word; then
9939 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9940 break
9941 fi
9942 done
9943 IFS="$ac_save_ifs"
9944 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9945 ;;
9946 esac
9947 fi
9948 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
9949 if test -n "$GTK_CONFIG_2_0"; then
9950 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
9951 else
9952 echo "$ac_t""no" 1>&6
9953 fi
9954
9955 min_gtk_version=1.3.1
9956 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9957 echo "configure:9958: checking for GTK - version >= $min_gtk_version" >&5
9958 no_gtk=""
9959 if test "$GTK_CONFIG_2_0" = "no" ; then
9960 no_gtk=yes
9961 else
9962 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9963 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9964 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9965 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9966 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9967 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9968 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9969 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9970 if test "x$enable_gtktest" = "xyes" ; then
9971 ac_save_CFLAGS="$CFLAGS"
9972 ac_save_LIBS="$LIBS"
9973 CFLAGS="$CFLAGS $GTK_CFLAGS"
9974 LIBS="$GTK_LIBS $LIBS"
9975 rm -f conf.gtktest
9976 if test "$cross_compiling" = yes; then
9977 echo $ac_n "cross compiling; assumed OK... $ac_c"
9978 else
9979 cat > conftest.$ac_ext <<EOF
9980 #line 9981 "configure"
9981 #include "confdefs.h"
9982
9983 #include <gtk/gtk.h>
9984 #include <stdio.h>
9985 #include <stdlib.h>
9986
9987 int
9988 main ()
9989 {
9990 int major, minor, micro;
9991 char *tmp_version;
9992
9993 system ("touch conf.gtktest");
9994
9995 /* HP/UX 9 (%@#!) writes to sscanf strings */
9996 tmp_version = g_strdup("$min_gtk_version");
9997 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9998 printf("%s, bad version string\n", "$min_gtk_version");
9999 exit(1);
10000 }
10001
10002 if ((gtk_major_version != $gtk_config_major_version) ||
10003 (gtk_minor_version != $gtk_config_minor_version) ||
10004 (gtk_micro_version != $gtk_config_micro_version))
10005 {
10006 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10007 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10008 gtk_major_version, gtk_minor_version, gtk_micro_version);
10009 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
10010 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10011 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10012 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10013 printf("*** required on your system.\n");
10014 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
10015 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
10016 printf("*** before re-running configure\n");
10017 }
10018 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10019 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10020 (gtk_minor_version != GTK_MINOR_VERSION) ||
10021 (gtk_micro_version != GTK_MICRO_VERSION))
10022 {
10023 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10024 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10025 printf("*** library (version %d.%d.%d)\n",
10026 gtk_major_version, gtk_minor_version, gtk_micro_version);
10027 }
10028 #endif /* defined (GTK_MAJOR_VERSION) ... */
10029 else
10030 {
10031 if ((gtk_major_version > major) ||
10032 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10033 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10034 {
10035 return 0;
10036 }
10037 else
10038 {
10039 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10040 gtk_major_version, gtk_minor_version, gtk_micro_version);
10041 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10042 major, minor, micro);
10043 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10044 printf("***\n");
10045 printf("*** If you have already installed a sufficiently new version, this error\n");
10046 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
10047 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10048 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
10049 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
10050 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10051 printf("*** so that the correct libraries are found at run-time))\n");
10052 }
10053 }
10054 return 1;
10055 }
10056
10057 EOF
10058 if { (eval echo configure:10059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10059 then
10060 :
10061 else
10062 echo "configure: failed program was:" >&5
10063 cat conftest.$ac_ext >&5
10064 rm -fr conftest*
10065 no_gtk=yes
10066 fi
10067 rm -fr conftest*
10068 fi
10069
10070 CFLAGS="$ac_save_CFLAGS"
10071 LIBS="$ac_save_LIBS"
10072 fi
10073 fi
10074 if test "x$no_gtk" = x ; then
10075 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
10076 wx_cv_lib_gtk=2.0
10077 else
10078 echo "$ac_t""no" 1>&6
10079 if test "$GTK_CONFIG_2_0" = "no" ; then
10080 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
10081 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10082 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
10083 echo "*** full path to gtk-config-2.0."
10084 else
10085 if test -f conf.gtktest ; then
10086 :
10087 else
10088 echo "*** Could not run GTK test program, checking why..."
10089 CFLAGS="$CFLAGS $GTK_CFLAGS"
10090 LIBS="$LIBS $GTK_LIBS"
10091 cat > conftest.$ac_ext <<EOF
10092 #line 10093 "configure"
10093 #include "confdefs.h"
10094
10095 #include <gtk/gtk.h>
10096 #include <stdio.h>
10097
10098 int main() {
10099 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10100 ; return 0; }
10101 EOF
10102 if { (eval echo configure:10103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10103 rm -rf conftest*
10104 echo "*** The test program compiled, but did not run. This usually means"
10105 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10106 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10107 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10108 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10109 echo "*** is required on your system"
10110 echo "***"
10111 echo "*** If you have an old version installed, it is best to remove it, although"
10112 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10113 echo "***"
10114 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10115 echo "*** came with the system with the command"
10116 echo "***"
10117 echo "*** rpm --erase --nodeps gtk gtk-devel"
10118 else
10119 echo "configure: failed program was:" >&5
10120 cat conftest.$ac_ext >&5
10121 rm -rf conftest*
10122 echo "*** The test program failed to compile or link. See the file config.log for the"
10123 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10124 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10125 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
10126 fi
10127 rm -f conftest*
10128 CFLAGS="$ac_save_CFLAGS"
10129 LIBS="$ac_save_LIBS"
10130 fi
10131 fi
10132 GTK_CFLAGS=""
10133 GTK_LIBS=""
10134 :
10135 fi
10136
10137
10138 rm -f conf.gtktest
10139
10140 fi
10141
10142 if test -z "$wx_cv_lib_gtk"; then
10143 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10144 if test "${with_gtk_prefix+set}" = set; then
10145 withval="$with_gtk_prefix"
10146 gtk_config_prefix="$withval"
10147 else
10148 gtk_config_prefix=""
10149 fi
10150
10151 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10152 if test "${with_gtk_exec_prefix+set}" = set; then
10153 withval="$with_gtk_exec_prefix"
10154 gtk_config_exec_prefix="$withval"
10155 else
10156 gtk_config_exec_prefix=""
10157 fi
10158
10159 # Check whether --enable-gtktest or --disable-gtktest was given.
10160 if test "${enable_gtktest+set}" = set; then
10161 enableval="$enable_gtktest"
10162 :
10163 else
10164 enable_gtktest=yes
10165 fi
10166
10167
10168 for module in . $GTK_MODULES
10169 do
10170 case "$module" in
10171 gthread)
10172 gtk_config_args="$gtk_config_args gthread"
10173 ;;
10174 esac
10175 done
10176
10177 if test x$gtk_config_exec_prefix != x ; then
10178 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10179 if test x${GTK_CONFIG+set} != xset ; then
10180 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10181 fi
10182 fi
10183 if test x$gtk_config_prefix != x ; then
10184 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10185 if test x${GTK_CONFIG+set} != xset ; then
10186 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10187 fi
10188 fi
10189
10190 # Extract the first word of "gtk-config", so it can be a program name with args.
10191 set dummy gtk-config; ac_word=$2
10192 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10193 echo "configure:10194: checking for $ac_word" >&5
10194 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10195 echo $ac_n "(cached) $ac_c" 1>&6
10196 else
10197 case "$GTK_CONFIG" in
10198 /*)
10199 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10200 ;;
10201 ?:/*)
10202 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10203 ;;
10204 *)
10205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10206 ac_dummy="$PATH"
10207 for ac_dir in $ac_dummy; do
10208 test -z "$ac_dir" && ac_dir=.
10209 if test -f $ac_dir/$ac_word; then
10210 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10211 break
10212 fi
10213 done
10214 IFS="$ac_save_ifs"
10215 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10216 ;;
10217 esac
10218 fi
10219 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10220 if test -n "$GTK_CONFIG"; then
10221 echo "$ac_t""$GTK_CONFIG" 1>&6
10222 else
10223 echo "$ac_t""no" 1>&6
10224 fi
10225
10226 min_gtk_version=1.2.7
10227 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10228 echo "configure:10229: checking for GTK - version >= $min_gtk_version" >&5
10229 no_gtk=""
10230 if test "$GTK_CONFIG" = "no" ; then
10231 no_gtk=yes
10232 else
10233 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10234 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10235 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10236 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10237 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10238 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10239 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10240 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10241 if test "x$enable_gtktest" = "xyes" ; then
10242 ac_save_CFLAGS="$CFLAGS"
10243 ac_save_LIBS="$LIBS"
10244 CFLAGS="$CFLAGS $GTK_CFLAGS"
10245 LIBS="$GTK_LIBS $LIBS"
10246 rm -f conf.gtktest
10247 if test "$cross_compiling" = yes; then
10248 echo $ac_n "cross compiling; assumed OK... $ac_c"
10249 else
10250 cat > conftest.$ac_ext <<EOF
10251 #line 10252 "configure"
10252 #include "confdefs.h"
10253
10254 #include <gtk/gtk.h>
10255 #include <stdio.h>
10256 #include <stdlib.h>
10257
10258 int
10259 main ()
10260 {
10261 int major, minor, micro;
10262 char *tmp_version;
10263
10264 system ("touch conf.gtktest");
10265
10266 /* HP/UX 9 (%@#!) writes to sscanf strings */
10267 tmp_version = g_strdup("$min_gtk_version");
10268 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10269 printf("%s, bad version string\n", "$min_gtk_version");
10270 exit(1);
10271 }
10272
10273 if ((gtk_major_version != $gtk_config_major_version) ||
10274 (gtk_minor_version != $gtk_config_minor_version) ||
10275 (gtk_micro_version != $gtk_config_micro_version))
10276 {
10277 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10278 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10279 gtk_major_version, gtk_minor_version, gtk_micro_version);
10280 printf ("*** was found! If gtk-config was correct, then it is best\n");
10281 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10282 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10283 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10284 printf("*** required on your system.\n");
10285 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10286 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10287 printf("*** before re-running configure\n");
10288 }
10289 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10290 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10291 (gtk_minor_version != GTK_MINOR_VERSION) ||
10292 (gtk_micro_version != GTK_MICRO_VERSION))
10293 {
10294 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10295 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10296 printf("*** library (version %d.%d.%d)\n",
10297 gtk_major_version, gtk_minor_version, gtk_micro_version);
10298 }
10299 #endif /* defined (GTK_MAJOR_VERSION) ... */
10300 else
10301 {
10302 if ((gtk_major_version > major) ||
10303 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10304 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10305 {
10306 return 0;
10307 }
10308 else
10309 {
10310 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10311 gtk_major_version, gtk_minor_version, gtk_micro_version);
10312 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10313 major, minor, micro);
10314 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10315 printf("***\n");
10316 printf("*** If you have already installed a sufficiently new version, this error\n");
10317 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10318 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10319 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10320 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10321 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10322 printf("*** so that the correct libraries are found at run-time))\n");
10323 }
10324 }
10325 return 1;
10326 }
10327
10328 EOF
10329 if { (eval echo configure:10330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10330 then
10331 :
10332 else
10333 echo "configure: failed program was:" >&5
10334 cat conftest.$ac_ext >&5
10335 rm -fr conftest*
10336 no_gtk=yes
10337 fi
10338 rm -fr conftest*
10339 fi
10340
10341 CFLAGS="$ac_save_CFLAGS"
10342 LIBS="$ac_save_LIBS"
10343 fi
10344 fi
10345 if test "x$no_gtk" = x ; then
10346 echo "$ac_t""yes" 1>&6
10347 wx_cv_lib_gtk=1.2.7
10348 else
10349 echo "$ac_t""no" 1>&6
10350 if test "$GTK_CONFIG" = "no" ; then
10351 echo "*** The gtk-config script installed by GTK could not be found"
10352 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10353 echo "*** your path, or set the GTK_CONFIG environment variable to the"
10354 echo "*** full path to gtk-config."
10355 else
10356 if test -f conf.gtktest ; then
10357 :
10358 else
10359 echo "*** Could not run GTK test program, checking why..."
10360 CFLAGS="$CFLAGS $GTK_CFLAGS"
10361 LIBS="$LIBS $GTK_LIBS"
10362 cat > conftest.$ac_ext <<EOF
10363 #line 10364 "configure"
10364 #include "confdefs.h"
10365
10366 #include <gtk/gtk.h>
10367 #include <stdio.h>
10368
10369 int main() {
10370 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10371 ; return 0; }
10372 EOF
10373 if { (eval echo configure:10374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10374 rm -rf conftest*
10375 echo "*** The test program compiled, but did not run. This usually means"
10376 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10377 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10378 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10379 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10380 echo "*** is required on your system"
10381 echo "***"
10382 echo "*** If you have an old version installed, it is best to remove it, although"
10383 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10384 echo "***"
10385 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10386 echo "*** came with the system with the command"
10387 echo "***"
10388 echo "*** rpm --erase --nodeps gtk gtk-devel"
10389 else
10390 echo "configure: failed program was:" >&5
10391 cat conftest.$ac_ext >&5
10392 rm -rf conftest*
10393 echo "*** The test program failed to compile or link. See the file config.log for the"
10394 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10395 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10396 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
10397 fi
10398 rm -f conftest*
10399 CFLAGS="$ac_save_CFLAGS"
10400 LIBS="$ac_save_LIBS"
10401 fi
10402 fi
10403 GTK_CFLAGS=""
10404 GTK_LIBS=""
10405 :
10406 fi
10407
10408
10409 rm -f conf.gtktest
10410
10411 fi
10412
10413 if test -z "$wx_cv_lib_gtk"; then
10414 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10415 if test "${with_gtk_prefix+set}" = set; then
10416 withval="$with_gtk_prefix"
10417 gtk_config_prefix="$withval"
10418 else
10419 gtk_config_prefix=""
10420 fi
10421
10422 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10423 if test "${with_gtk_exec_prefix+set}" = set; then
10424 withval="$with_gtk_exec_prefix"
10425 gtk_config_exec_prefix="$withval"
10426 else
10427 gtk_config_exec_prefix=""
10428 fi
10429
10430 # Check whether --enable-gtktest or --disable-gtktest was given.
10431 if test "${enable_gtktest+set}" = set; then
10432 enableval="$enable_gtktest"
10433 :
10434 else
10435 enable_gtktest=yes
10436 fi
10437
10438
10439 for module in . $GTK_MODULES
10440 do
10441 case "$module" in
10442 gthread)
10443 gtk_config_args="$gtk_config_args gthread"
10444 ;;
10445 esac
10446 done
10447
10448 if test x$gtk_config_exec_prefix != x ; then
10449 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10450 if test x${GTK_CONFIG+set} != xset ; then
10451 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10452 fi
10453 fi
10454 if test x$gtk_config_prefix != x ; then
10455 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10456 if test x${GTK_CONFIG+set} != xset ; then
10457 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10458 fi
10459 fi
10460
10461 # Extract the first word of "gtk-config", so it can be a program name with args.
10462 set dummy gtk-config; ac_word=$2
10463 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10464 echo "configure:10465: checking for $ac_word" >&5
10465 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10466 echo $ac_n "(cached) $ac_c" 1>&6
10467 else
10468 case "$GTK_CONFIG" in
10469 /*)
10470 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10471 ;;
10472 ?:/*)
10473 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10474 ;;
10475 *)
10476 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10477 ac_dummy="$PATH"
10478 for ac_dir in $ac_dummy; do
10479 test -z "$ac_dir" && ac_dir=.
10480 if test -f $ac_dir/$ac_word; then
10481 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10482 break
10483 fi
10484 done
10485 IFS="$ac_save_ifs"
10486 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10487 ;;
10488 esac
10489 fi
10490 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10491 if test -n "$GTK_CONFIG"; then
10492 echo "$ac_t""$GTK_CONFIG" 1>&6
10493 else
10494 echo "$ac_t""no" 1>&6
10495 fi
10496
10497 min_gtk_version=1.2.3
10498 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10499 echo "configure:10500: checking for GTK - version >= $min_gtk_version" >&5
10500 no_gtk=""
10501 if test "$GTK_CONFIG" = "no" ; then
10502 no_gtk=yes
10503 else
10504 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10505 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10506 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10507 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10508 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10509 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10510 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10511 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10512 if test "x$enable_gtktest" = "xyes" ; then
10513 ac_save_CFLAGS="$CFLAGS"
10514 ac_save_LIBS="$LIBS"
10515 CFLAGS="$CFLAGS $GTK_CFLAGS"
10516 LIBS="$GTK_LIBS $LIBS"
10517 rm -f conf.gtktest
10518 if test "$cross_compiling" = yes; then
10519 echo $ac_n "cross compiling; assumed OK... $ac_c"
10520 else
10521 cat > conftest.$ac_ext <<EOF
10522 #line 10523 "configure"
10523 #include "confdefs.h"
10524
10525 #include <gtk/gtk.h>
10526 #include <stdio.h>
10527 #include <stdlib.h>
10528
10529 int
10530 main ()
10531 {
10532 int major, minor, micro;
10533 char *tmp_version;
10534
10535 system ("touch conf.gtktest");
10536
10537 /* HP/UX 9 (%@#!) writes to sscanf strings */
10538 tmp_version = g_strdup("$min_gtk_version");
10539 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10540 printf("%s, bad version string\n", "$min_gtk_version");
10541 exit(1);
10542 }
10543
10544 if ((gtk_major_version != $gtk_config_major_version) ||
10545 (gtk_minor_version != $gtk_config_minor_version) ||
10546 (gtk_micro_version != $gtk_config_micro_version))
10547 {
10548 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10549 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10550 gtk_major_version, gtk_minor_version, gtk_micro_version);
10551 printf ("*** was found! If gtk-config was correct, then it is best\n");
10552 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10553 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10554 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10555 printf("*** required on your system.\n");
10556 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10557 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10558 printf("*** before re-running configure\n");
10559 }
10560 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10561 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10562 (gtk_minor_version != GTK_MINOR_VERSION) ||
10563 (gtk_micro_version != GTK_MICRO_VERSION))
10564 {
10565 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10566 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10567 printf("*** library (version %d.%d.%d)\n",
10568 gtk_major_version, gtk_minor_version, gtk_micro_version);
10569 }
10570 #endif /* defined (GTK_MAJOR_VERSION) ... */
10571 else
10572 {
10573 if ((gtk_major_version > major) ||
10574 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10575 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10576 {
10577 return 0;
10578 }
10579 else
10580 {
10581 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10582 gtk_major_version, gtk_minor_version, gtk_micro_version);
10583 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10584 major, minor, micro);
10585 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10586 printf("***\n");
10587 printf("*** If you have already installed a sufficiently new version, this error\n");
10588 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10589 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10590 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10591 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10592 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10593 printf("*** so that the correct libraries are found at run-time))\n");
10594 }
10595 }
10596 return 1;
10597 }
10598
10599 EOF
10600 if { (eval echo configure:10601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10601 then
10602 :
10603 else
10604 echo "configure: failed program was:" >&5
10605 cat conftest.$ac_ext >&5
10606 rm -fr conftest*
10607 no_gtk=yes
10608 fi
10609 rm -fr conftest*
10610 fi
10611
10612 CFLAGS="$ac_save_CFLAGS"
10613 LIBS="$ac_save_LIBS"
10614 fi
10615 fi
10616 if test "x$no_gtk" = x ; then
10617 echo "$ac_t""yes" 1>&6
10618 wx_cv_lib_gtk=1.2.3
10619 else
10620 echo "$ac_t""no" 1>&6
10621 if test "$GTK_CONFIG" = "no" ; then
10622 echo "*** The gtk-config script installed by GTK could not be found"
10623 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10624 echo "*** your path, or set the GTK_CONFIG environment variable to the"
10625 echo "*** full path to gtk-config."
10626 else
10627 if test -f conf.gtktest ; then
10628 :
10629 else
10630 echo "*** Could not run GTK test program, checking why..."
10631 CFLAGS="$CFLAGS $GTK_CFLAGS"
10632 LIBS="$LIBS $GTK_LIBS"
10633 cat > conftest.$ac_ext <<EOF
10634 #line 10635 "configure"
10635 #include "confdefs.h"
10636
10637 #include <gtk/gtk.h>
10638 #include <stdio.h>
10639
10640 int main() {
10641 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10642 ; return 0; }
10643 EOF
10644 if { (eval echo configure:10645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10645 rm -rf conftest*
10646 echo "*** The test program compiled, but did not run. This usually means"
10647 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10648 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10649 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10650 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10651 echo "*** is required on your system"
10652 echo "***"
10653 echo "*** If you have an old version installed, it is best to remove it, although"
10654 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10655 echo "***"
10656 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10657 echo "*** came with the system with the command"
10658 echo "***"
10659 echo "*** rpm --erase --nodeps gtk gtk-devel"
10660 else
10661 echo "configure: failed program was:" >&5
10662 cat conftest.$ac_ext >&5
10663 rm -rf conftest*
10664 echo "*** The test program failed to compile or link. See the file config.log for the"
10665 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10666 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10667 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
10668 fi
10669 rm -f conftest*
10670 CFLAGS="$ac_save_CFLAGS"
10671 LIBS="$ac_save_LIBS"
10672 fi
10673 fi
10674 GTK_CFLAGS=""
10675 GTK_LIBS=""
10676 :
10677 fi
10678
10679
10680 rm -f conf.gtktest
10681
10682 fi
10683
10684 if test -z "$wx_cv_lib_gtk"; then
10685 wx_cv_lib_gtk=none
10686 else
10687 wx_cv_cflags_gtk=$GTK_CFLAGS
10688 wx_cv_libs_gtk=$GTK_LIBS
10689 fi
10690
10691
10692 fi
10693
10694
10695 if test "$gtk_version_cached" = 1; then
10696 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
10697 fi
10698
10699 case "$wx_cv_lib_gtk" in
10700 2.0) WXGTK20=1
10701 ;;
10702 1.2.7) WXGTK127=1
10703 WXGTK12=1
10704 ;;
10705 1.2.3) WXGTK12=1
10706 ;;
10707 *) { echo "configure: error:
10708 Please check that gtk-config is in path, the directory
10709 where GTK+ libraries are installed (returned by
10710 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
10711 equivalent variable and GTK+ is version 1.2.3 or above.
10712 " 1>&2; exit 1; }
10713 ;;
10714 esac
10715
10716 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
10717 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
10718
10719 AFMINSTALL=afminstall
10720 TOOLKIT=GTK
10721 GUIDIST=GTK_DIST
10722
10723 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
10724 echo "configure:10725: checking for gdk_im_open in -lgdk" >&5
10725 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
10726 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10727 echo $ac_n "(cached) $ac_c" 1>&6
10728 else
10729 ac_save_LIBS="$LIBS"
10730 LIBS="-lgdk $LIBS"
10731 cat > conftest.$ac_ext <<EOF
10732 #line 10733 "configure"
10733 #include "confdefs.h"
10734 /* Override any gcc2 internal prototype to avoid an error. */
10735 /* We use char because int might match the return type of a gcc2
10736 builtin and then its argument prototype would still apply. */
10737 char gdk_im_open();
10738
10739 int main() {
10740 gdk_im_open()
10741 ; return 0; }
10742 EOF
10743 if { (eval echo configure:10744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10744 rm -rf conftest*
10745 eval "ac_cv_lib_$ac_lib_var=yes"
10746 else
10747 echo "configure: failed program was:" >&5
10748 cat conftest.$ac_ext >&5
10749 rm -rf conftest*
10750 eval "ac_cv_lib_$ac_lib_var=no"
10751 fi
10752 rm -f conftest*
10753 LIBS="$ac_save_LIBS"
10754
10755 fi
10756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10757 echo "$ac_t""yes" 1>&6
10758 cat >> confdefs.h <<\EOF
10759 #define HAVE_XIM 1
10760 EOF
10761
10762 else
10763 echo "$ac_t""no" 1>&6
10764 fi
10765
10766 fi
10767
10768 if test "$wxUSE_MGL" = 1; then
10769 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
10770 echo "configure:10771: checking for SciTech MGL library" >&5
10771 if test "x$MGL_ROOT" = x ; then
10772 echo "$ac_t""not found" 1>&6
10773 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
10774 else
10775 echo "$ac_t""$MGL_ROOT" 1>&6
10776 fi
10777
10778 case "${host}" in
10779 *-*-linux* )
10780 mgl_os=linux/gcc/glibc
10781 ;;
10782 *-pc-msdosdjgpp )
10783 mgl_os=dos32/dj2
10784 ;;
10785 *)
10786 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
10787 esac
10788
10789 mgl_lib_type=""
10790
10791 if test "$wxUSE_DEBUG_FLAG" = yes ; then
10792 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
10793 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
10794 mgl_lib_type=debug
10795 fi
10796 fi
10797 if test "x$mgl_lib_type" = x ; then
10798 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
10799 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
10800 mgl_lib_type=release
10801 else
10802 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
10803 fi
10804 fi
10805
10806 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
10807 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
10808
10809 AFMINSTALL=afminstall
10810 TOOLKIT=MGL
10811 GUIDIST=MGL_DIST
10812 fi
10813
10814 if test "$wxUSE_MICROWIN" = 1; then
10815 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
10816 echo "configure:10817: checking for MicroWindows" >&5
10817 if test "x$MICROWINDOWS" = x ; then
10818 echo "$ac_t""not found" 1>&6
10819 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
10820 else
10821 echo "$ac_t""$MICROWINDOWS" 1>&6
10822 fi
10823
10824 if test -f $MICROWINDOWS/lib/libmwin.a; then
10825 echo "$ac_t""MicroWindows' libraries found." 1>&6
10826 else
10827 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
10828 fi
10829
10830 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
10831 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
10832
10833 AFMINSTALL=afminstall
10834 TOOLKIT=MICROWIN
10835 GUIDIST=MICROWIN_DIST
10836
10837 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
10838 fi
10839
10840 if test "$wxUSE_WINE" = 1; then
10841 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10842 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
10843 echo "configure:10844: checking for windows.h" >&5
10844 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10845 echo $ac_n "(cached) $ac_c" 1>&6
10846 else
10847 cat > conftest.$ac_ext <<EOF
10848 #line 10849 "configure"
10849 #include "confdefs.h"
10850 #include <windows.h>
10851 EOF
10852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10853 { (eval echo configure:10854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10855 if test -z "$ac_err"; then
10856 rm -rf conftest*
10857 eval "ac_cv_header_$ac_safe=yes"
10858 else
10859 echo "$ac_err" >&5
10860 echo "configure: failed program was:" >&5
10861 cat conftest.$ac_ext >&5
10862 rm -rf conftest*
10863 eval "ac_cv_header_$ac_safe=no"
10864 fi
10865 rm -f conftest*
10866 fi
10867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10868 echo "$ac_t""yes" 1>&6
10869 :
10870 else
10871 echo "$ac_t""no" 1>&6
10872
10873 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
10874
10875 fi
10876
10877
10878 xpm_link=
10879 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
10880 echo "configure:10881: checking for Xpm library" >&5
10881
10882 ac_find_libraries=
10883 for ac_dir in $SEARCH_LIB;
10884 do
10885 for ac_extension in a so sl dylib; do
10886 if test -f "$ac_dir/libXpm.$ac_extension"; then
10887 ac_find_libraries=$ac_dir
10888 break 2
10889 fi
10890 done
10891 done
10892
10893 if test "$ac_find_libraries" != "" ; then
10894 GUI_TK_LIBRARY="-L$ac_find_libraries"
10895 xpm_link=" -lXpm"
10896 cat >> confdefs.h <<\EOF
10897 #define wxHAVE_LIB_XPM 1
10898 EOF
10899
10900 echo "$ac_t""found at $ac_find_libraries" 1>&6
10901 else
10902 echo "$ac_t""no" 1>&6
10903 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10904 fi
10905
10906 mesa_link=
10907 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
10908 echo "configure:10909: checking for Mesa library" >&5
10909
10910 ac_find_libraries=
10911 for ac_dir in $SEARCH_LIB;
10912 do
10913 for ac_extension in a so sl dylib; do
10914 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
10915 ac_find_libraries=$ac_dir
10916 break 2
10917 fi
10918 done
10919 done
10920
10921 if test "$ac_find_libraries" != "" ; then
10922 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
10923 mesa_link=" -lMesaGL"
10924 echo "$ac_t""found at $ac_find_libraries" 1>&6
10925 else
10926 { echo "configure: error: no" 1>&2; exit 1; }
10927 fi
10928
10929 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
10930 TOOLKIT=MSW
10931 GUIDIST=MSW_DIST
10932 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
10933 fi
10934
10935 if test "$wxUSE_MOTIF" = 1; then
10936 # If we find X, set shell vars x_includes and x_libraries to the
10937 # paths, otherwise set no_x=yes.
10938 # Uses ac_ vars as temps to allow command line to override cache and checks.
10939 # --without-x overrides everything else, but does not touch the cache.
10940 echo $ac_n "checking for X""... $ac_c" 1>&6
10941 echo "configure:10942: checking for X" >&5
10942
10943 # Check whether --with-x or --without-x was given.
10944 if test "${with_x+set}" = set; then
10945 withval="$with_x"
10946 :
10947 fi
10948
10949 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10950 if test "x$with_x" = xno; then
10951 # The user explicitly disabled X.
10952 have_x=disabled
10953 else
10954 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
10955 # Both variables are already set.
10956 have_x=yes
10957 else
10958 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
10959 echo $ac_n "(cached) $ac_c" 1>&6
10960 else
10961 # One or both of the vars are not set, and there is no cached value.
10962 ac_x_includes=NO ac_x_libraries=NO
10963 rm -fr conftestdir
10964 if mkdir conftestdir; then
10965 cd conftestdir
10966 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
10967 cat > Imakefile <<'EOF'
10968 acfindx:
10969 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10970 EOF
10971 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10972 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10973 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10974 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10975 for ac_extension in a so sl; do
10976 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
10977 test -f $ac_im_libdir/libX11.$ac_extension; then
10978 ac_im_usrlibdir=$ac_im_libdir; break
10979 fi
10980 done
10981 # Screen out bogus values from the imake configuration. They are
10982 # bogus both because they are the default anyway, and because
10983 # using them would break gcc on systems where it needs fixed includes.
10984 case "$ac_im_incroot" in
10985 /usr/include) ;;
10986 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
10987 esac
10988 case "$ac_im_usrlibdir" in
10989 /usr/lib | /lib) ;;
10990 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
10991 esac
10992 fi
10993 cd ..
10994 rm -fr conftestdir
10995 fi
10996
10997 if test "$ac_x_includes" = NO; then
10998 # Guess where to find include files, by looking for this one X11 .h file.
10999 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
11000
11001 # First, try using that file with no special directory specified.
11002 cat > conftest.$ac_ext <<EOF
11003 #line 11004 "configure"
11004 #include "confdefs.h"
11005 #include <$x_direct_test_include>
11006 EOF
11007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11008 { (eval echo configure:11009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11010 if test -z "$ac_err"; then
11011 rm -rf conftest*
11012 # We can compile using X headers with no special include directory.
11013 ac_x_includes=
11014 else
11015 echo "$ac_err" >&5
11016 echo "configure: failed program was:" >&5
11017 cat conftest.$ac_ext >&5
11018 rm -rf conftest*
11019 # Look for the header file in a standard set of common directories.
11020 # Check X11 before X11Rn because it is often a symlink to the current release.
11021 for ac_dir in \
11022 /usr/X11/include \
11023 /usr/X11R6/include \
11024 /usr/X11R5/include \
11025 /usr/X11R4/include \
11026 \
11027 /usr/include/X11 \
11028 /usr/include/X11R6 \
11029 /usr/include/X11R5 \
11030 /usr/include/X11R4 \
11031 \
11032 /usr/local/X11/include \
11033 /usr/local/X11R6/include \
11034 /usr/local/X11R5/include \
11035 /usr/local/X11R4/include \
11036 \
11037 /usr/local/include/X11 \
11038 /usr/local/include/X11R6 \
11039 /usr/local/include/X11R5 \
11040 /usr/local/include/X11R4 \
11041 \
11042 /usr/X386/include \
11043 /usr/x386/include \
11044 /usr/XFree86/include/X11 \
11045 \
11046 /usr/include \
11047 /usr/local/include \
11048 /usr/unsupported/include \
11049 /usr/athena/include \
11050 /usr/local/x11r5/include \
11051 /usr/lpp/Xamples/include \
11052 \
11053 /usr/openwin/include \
11054 /usr/openwin/share/include \
11055 ; \
11056 do
11057 if test -r "$ac_dir/$x_direct_test_include"; then
11058 ac_x_includes=$ac_dir
11059 break
11060 fi
11061 done
11062 fi
11063 rm -f conftest*
11064 fi # $ac_x_includes = NO
11065
11066 if test "$ac_x_libraries" = NO; then
11067 # Check for the libraries.
11068
11069 test -z "$x_direct_test_library" && x_direct_test_library=Xt
11070 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
11071
11072 # See if we find them without any special options.
11073 # Don't add to $LIBS permanently.
11074 ac_save_LIBS="$LIBS"
11075 LIBS="-l$x_direct_test_library $LIBS"
11076 cat > conftest.$ac_ext <<EOF
11077 #line 11078 "configure"
11078 #include "confdefs.h"
11079
11080 int main() {
11081 ${x_direct_test_function}()
11082 ; return 0; }
11083 EOF
11084 if { (eval echo configure:11085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11085 rm -rf conftest*
11086 LIBS="$ac_save_LIBS"
11087 # We can link X programs with no special library path.
11088 ac_x_libraries=
11089 else
11090 echo "configure: failed program was:" >&5
11091 cat conftest.$ac_ext >&5
11092 rm -rf conftest*
11093 LIBS="$ac_save_LIBS"
11094 # First see if replacing the include by lib works.
11095 # Check X11 before X11Rn because it is often a symlink to the current release.
11096 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
11097 /usr/X11/lib \
11098 /usr/X11R6/lib \
11099 /usr/X11R5/lib \
11100 /usr/X11R4/lib \
11101 \
11102 /usr/lib/X11 \
11103 /usr/lib/X11R6 \
11104 /usr/lib/X11R5 \
11105 /usr/lib/X11R4 \
11106 \
11107 /usr/local/X11/lib \
11108 /usr/local/X11R6/lib \
11109 /usr/local/X11R5/lib \
11110 /usr/local/X11R4/lib \
11111 \
11112 /usr/local/lib/X11 \
11113 /usr/local/lib/X11R6 \
11114 /usr/local/lib/X11R5 \
11115 /usr/local/lib/X11R4 \
11116 \
11117 /usr/X386/lib \
11118 /usr/x386/lib \
11119 /usr/XFree86/lib/X11 \
11120 \
11121 /usr/lib \
11122 /usr/local/lib \
11123 /usr/unsupported/lib \
11124 /usr/athena/lib \
11125 /usr/local/x11r5/lib \
11126 /usr/lpp/Xamples/lib \
11127 /lib/usr/lib/X11 \
11128 \
11129 /usr/openwin/lib \
11130 /usr/openwin/share/lib \
11131 ; \
11132 do
11133 for ac_extension in a so sl; do
11134 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
11135 ac_x_libraries=$ac_dir
11136 break 2
11137 fi
11138 done
11139 done
11140 fi
11141 rm -f conftest*
11142 fi # $ac_x_libraries = NO
11143
11144 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
11145 # Didn't find X anywhere. Cache the known absence of X.
11146 ac_cv_have_x="have_x=no"
11147 else
11148 # Record where we found X for the cache.
11149 ac_cv_have_x="have_x=yes \
11150 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11151 fi
11152 fi
11153 fi
11154 eval "$ac_cv_have_x"
11155 fi # $with_x != no
11156
11157 if test "$have_x" != yes; then
11158 echo "$ac_t""$have_x" 1>&6
11159 no_x=yes
11160 else
11161 # If each of the values was on the command line, it overrides each guess.
11162 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11163 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11164 # Update the cache value to reflect the command line values.
11165 ac_cv_have_x="have_x=yes \
11166 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
11167 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
11168 fi
11169
11170 if test "$no_x" = yes; then
11171 # Not all programs may use this symbol, but it does not hurt to define it.
11172 cat >> confdefs.h <<\EOF
11173 #define X_DISPLAY_MISSING 1
11174 EOF
11175
11176 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11177 else
11178 if test -n "$x_includes"; then
11179 X_CFLAGS="$X_CFLAGS -I$x_includes"
11180 fi
11181
11182 # It would also be nice to do this for all -L options, not just this one.
11183 if test -n "$x_libraries"; then
11184 X_LIBS="$X_LIBS -L$x_libraries"
11185 # For Solaris; some versions of Sun CC require a space after -R and
11186 # others require no space. Words are not sufficient . . . .
11187 case "`(uname -sr) 2>/dev/null`" in
11188 "SunOS 5"*)
11189 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
11190 echo "configure:11191: checking whether -R must be followed by a space" >&5
11191 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
11192 cat > conftest.$ac_ext <<EOF
11193 #line 11194 "configure"
11194 #include "confdefs.h"
11195
11196 int main() {
11197
11198 ; return 0; }
11199 EOF
11200 if { (eval echo configure:11201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11201 rm -rf conftest*
11202 ac_R_nospace=yes
11203 else
11204 echo "configure: failed program was:" >&5
11205 cat conftest.$ac_ext >&5
11206 rm -rf conftest*
11207 ac_R_nospace=no
11208 fi
11209 rm -f conftest*
11210 if test $ac_R_nospace = yes; then
11211 echo "$ac_t""no" 1>&6
11212 X_LIBS="$X_LIBS -R$x_libraries"
11213 else
11214 LIBS="$ac_xsave_LIBS -R $x_libraries"
11215 cat > conftest.$ac_ext <<EOF
11216 #line 11217 "configure"
11217 #include "confdefs.h"
11218
11219 int main() {
11220
11221 ; return 0; }
11222 EOF
11223 if { (eval echo configure:11224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11224 rm -rf conftest*
11225 ac_R_space=yes
11226 else
11227 echo "configure: failed program was:" >&5
11228 cat conftest.$ac_ext >&5
11229 rm -rf conftest*
11230 ac_R_space=no
11231 fi
11232 rm -f conftest*
11233 if test $ac_R_space = yes; then
11234 echo "$ac_t""yes" 1>&6
11235 X_LIBS="$X_LIBS -R $x_libraries"
11236 else
11237 echo "$ac_t""neither works" 1>&6
11238 fi
11239 fi
11240 LIBS="$ac_xsave_LIBS"
11241 esac
11242 fi
11243
11244 # Check for system-dependent libraries X programs must link with.
11245 # Do this before checking for the system-independent R6 libraries
11246 # (-lICE), since we may need -lsocket or whatever for X linking.
11247
11248 if test "$ISC" = yes; then
11249 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11250 else
11251 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
11252 # libraries were built with DECnet support. And karl@cs.umb.edu says
11253 # the Alpha needs dnet_stub (dnet does not exist).
11254 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
11255 echo "configure:11256: checking for dnet_ntoa in -ldnet" >&5
11256 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11258 echo $ac_n "(cached) $ac_c" 1>&6
11259 else
11260 ac_save_LIBS="$LIBS"
11261 LIBS="-ldnet $LIBS"
11262 cat > conftest.$ac_ext <<EOF
11263 #line 11264 "configure"
11264 #include "confdefs.h"
11265 /* Override any gcc2 internal prototype to avoid an error. */
11266 /* We use char because int might match the return type of a gcc2
11267 builtin and then its argument prototype would still apply. */
11268 char dnet_ntoa();
11269
11270 int main() {
11271 dnet_ntoa()
11272 ; return 0; }
11273 EOF
11274 if { (eval echo configure:11275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11275 rm -rf conftest*
11276 eval "ac_cv_lib_$ac_lib_var=yes"
11277 else
11278 echo "configure: failed program was:" >&5
11279 cat conftest.$ac_ext >&5
11280 rm -rf conftest*
11281 eval "ac_cv_lib_$ac_lib_var=no"
11282 fi
11283 rm -f conftest*
11284 LIBS="$ac_save_LIBS"
11285
11286 fi
11287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11288 echo "$ac_t""yes" 1>&6
11289 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11290 else
11291 echo "$ac_t""no" 1>&6
11292 fi
11293
11294 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11295 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
11296 echo "configure:11297: checking for dnet_ntoa in -ldnet_stub" >&5
11297 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11298 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11299 echo $ac_n "(cached) $ac_c" 1>&6
11300 else
11301 ac_save_LIBS="$LIBS"
11302 LIBS="-ldnet_stub $LIBS"
11303 cat > conftest.$ac_ext <<EOF
11304 #line 11305 "configure"
11305 #include "confdefs.h"
11306 /* Override any gcc2 internal prototype to avoid an error. */
11307 /* We use char because int might match the return type of a gcc2
11308 builtin and then its argument prototype would still apply. */
11309 char dnet_ntoa();
11310
11311 int main() {
11312 dnet_ntoa()
11313 ; return 0; }
11314 EOF
11315 if { (eval echo configure:11316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11316 rm -rf conftest*
11317 eval "ac_cv_lib_$ac_lib_var=yes"
11318 else
11319 echo "configure: failed program was:" >&5
11320 cat conftest.$ac_ext >&5
11321 rm -rf conftest*
11322 eval "ac_cv_lib_$ac_lib_var=no"
11323 fi
11324 rm -f conftest*
11325 LIBS="$ac_save_LIBS"
11326
11327 fi
11328 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11329 echo "$ac_t""yes" 1>&6
11330 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
11331 else
11332 echo "$ac_t""no" 1>&6
11333 fi
11334
11335 fi
11336
11337 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11338 # to get the SysV transport functions.
11339 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
11340 # needs -lnsl.
11341 # The nsl library prevents programs from opening the X display
11342 # on Irix 5.2, according to dickey@clark.net.
11343 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
11344 echo "configure:11345: checking for gethostbyname" >&5
11345 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
11346 echo $ac_n "(cached) $ac_c" 1>&6
11347 else
11348 cat > conftest.$ac_ext <<EOF
11349 #line 11350 "configure"
11350 #include "confdefs.h"
11351 /* System header to define __stub macros and hopefully few prototypes,
11352 which can conflict with char gethostbyname(); below. */
11353 #include <assert.h>
11354 /* Override any gcc2 internal prototype to avoid an error. */
11355 /* We use char because int might match the return type of a gcc2
11356 builtin and then its argument prototype would still apply. */
11357 char gethostbyname();
11358
11359 int main() {
11360
11361 /* The GNU C library defines this for functions which it implements
11362 to always fail with ENOSYS. Some functions are actually named
11363 something starting with __ and the normal name is an alias. */
11364 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11365 choke me
11366 #else
11367 gethostbyname();
11368 #endif
11369
11370 ; return 0; }
11371 EOF
11372 if { (eval echo configure:11373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11373 rm -rf conftest*
11374 eval "ac_cv_func_gethostbyname=yes"
11375 else
11376 echo "configure: failed program was:" >&5
11377 cat conftest.$ac_ext >&5
11378 rm -rf conftest*
11379 eval "ac_cv_func_gethostbyname=no"
11380 fi
11381 rm -f conftest*
11382 fi
11383
11384 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
11385 echo "$ac_t""yes" 1>&6
11386 :
11387 else
11388 echo "$ac_t""no" 1>&6
11389 fi
11390
11391 if test $ac_cv_func_gethostbyname = no; then
11392 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
11393 echo "configure:11394: checking for gethostbyname in -lnsl" >&5
11394 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
11395 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11396 echo $ac_n "(cached) $ac_c" 1>&6
11397 else
11398 ac_save_LIBS="$LIBS"
11399 LIBS="-lnsl $LIBS"
11400 cat > conftest.$ac_ext <<EOF
11401 #line 11402 "configure"
11402 #include "confdefs.h"
11403 /* Override any gcc2 internal prototype to avoid an error. */
11404 /* We use char because int might match the return type of a gcc2
11405 builtin and then its argument prototype would still apply. */
11406 char gethostbyname();
11407
11408 int main() {
11409 gethostbyname()
11410 ; return 0; }
11411 EOF
11412 if { (eval echo configure:11413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11413 rm -rf conftest*
11414 eval "ac_cv_lib_$ac_lib_var=yes"
11415 else
11416 echo "configure: failed program was:" >&5
11417 cat conftest.$ac_ext >&5
11418 rm -rf conftest*
11419 eval "ac_cv_lib_$ac_lib_var=no"
11420 fi
11421 rm -f conftest*
11422 LIBS="$ac_save_LIBS"
11423
11424 fi
11425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11426 echo "$ac_t""yes" 1>&6
11427 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11428 else
11429 echo "$ac_t""no" 1>&6
11430 fi
11431
11432 fi
11433
11434 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11435 # socket/setsockopt and other routines are undefined under SCO ODT
11436 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
11437 # on later versions), says simon@lia.di.epfl.ch: it contains
11438 # gethostby* variants that don't use the nameserver (or something).
11439 # -lsocket must be given before -lnsl if both are needed.
11440 # We assume that if connect needs -lnsl, so does gethostbyname.
11441 echo $ac_n "checking for connect""... $ac_c" 1>&6
11442 echo "configure:11443: checking for connect" >&5
11443 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
11444 echo $ac_n "(cached) $ac_c" 1>&6
11445 else
11446 cat > conftest.$ac_ext <<EOF
11447 #line 11448 "configure"
11448 #include "confdefs.h"
11449 /* System header to define __stub macros and hopefully few prototypes,
11450 which can conflict with char connect(); below. */
11451 #include <assert.h>
11452 /* Override any gcc2 internal prototype to avoid an error. */
11453 /* We use char because int might match the return type of a gcc2
11454 builtin and then its argument prototype would still apply. */
11455 char connect();
11456
11457 int main() {
11458
11459 /* The GNU C library defines this for functions which it implements
11460 to always fail with ENOSYS. Some functions are actually named
11461 something starting with __ and the normal name is an alias. */
11462 #if defined (__stub_connect) || defined (__stub___connect)
11463 choke me
11464 #else
11465 connect();
11466 #endif
11467
11468 ; return 0; }
11469 EOF
11470 if { (eval echo configure:11471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11471 rm -rf conftest*
11472 eval "ac_cv_func_connect=yes"
11473 else
11474 echo "configure: failed program was:" >&5
11475 cat conftest.$ac_ext >&5
11476 rm -rf conftest*
11477 eval "ac_cv_func_connect=no"
11478 fi
11479 rm -f conftest*
11480 fi
11481
11482 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
11483 echo "$ac_t""yes" 1>&6
11484 :
11485 else
11486 echo "$ac_t""no" 1>&6
11487 fi
11488
11489 if test $ac_cv_func_connect = no; then
11490 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
11491 echo "configure:11492: checking for connect in -lsocket" >&5
11492 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
11493 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11494 echo $ac_n "(cached) $ac_c" 1>&6
11495 else
11496 ac_save_LIBS="$LIBS"
11497 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
11498 cat > conftest.$ac_ext <<EOF
11499 #line 11500 "configure"
11500 #include "confdefs.h"
11501 /* Override any gcc2 internal prototype to avoid an error. */
11502 /* We use char because int might match the return type of a gcc2
11503 builtin and then its argument prototype would still apply. */
11504 char connect();
11505
11506 int main() {
11507 connect()
11508 ; return 0; }
11509 EOF
11510 if { (eval echo configure:11511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11511 rm -rf conftest*
11512 eval "ac_cv_lib_$ac_lib_var=yes"
11513 else
11514 echo "configure: failed program was:" >&5
11515 cat conftest.$ac_ext >&5
11516 rm -rf conftest*
11517 eval "ac_cv_lib_$ac_lib_var=no"
11518 fi
11519 rm -f conftest*
11520 LIBS="$ac_save_LIBS"
11521
11522 fi
11523 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11524 echo "$ac_t""yes" 1>&6
11525 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
11526 else
11527 echo "$ac_t""no" 1>&6
11528 fi
11529
11530 fi
11531
11532 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
11533 echo $ac_n "checking for remove""... $ac_c" 1>&6
11534 echo "configure:11535: checking for remove" >&5
11535 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
11536 echo $ac_n "(cached) $ac_c" 1>&6
11537 else
11538 cat > conftest.$ac_ext <<EOF
11539 #line 11540 "configure"
11540 #include "confdefs.h"
11541 /* System header to define __stub macros and hopefully few prototypes,
11542 which can conflict with char remove(); below. */
11543 #include <assert.h>
11544 /* Override any gcc2 internal prototype to avoid an error. */
11545 /* We use char because int might match the return type of a gcc2
11546 builtin and then its argument prototype would still apply. */
11547 char remove();
11548
11549 int main() {
11550
11551 /* The GNU C library defines this for functions which it implements
11552 to always fail with ENOSYS. Some functions are actually named
11553 something starting with __ and the normal name is an alias. */
11554 #if defined (__stub_remove) || defined (__stub___remove)
11555 choke me
11556 #else
11557 remove();
11558 #endif
11559
11560 ; return 0; }
11561 EOF
11562 if { (eval echo configure:11563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11563 rm -rf conftest*
11564 eval "ac_cv_func_remove=yes"
11565 else
11566 echo "configure: failed program was:" >&5
11567 cat conftest.$ac_ext >&5
11568 rm -rf conftest*
11569 eval "ac_cv_func_remove=no"
11570 fi
11571 rm -f conftest*
11572 fi
11573
11574 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
11575 echo "$ac_t""yes" 1>&6
11576 :
11577 else
11578 echo "$ac_t""no" 1>&6
11579 fi
11580
11581 if test $ac_cv_func_remove = no; then
11582 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
11583 echo "configure:11584: checking for remove in -lposix" >&5
11584 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
11585 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11586 echo $ac_n "(cached) $ac_c" 1>&6
11587 else
11588 ac_save_LIBS="$LIBS"
11589 LIBS="-lposix $LIBS"
11590 cat > conftest.$ac_ext <<EOF
11591 #line 11592 "configure"
11592 #include "confdefs.h"
11593 /* Override any gcc2 internal prototype to avoid an error. */
11594 /* We use char because int might match the return type of a gcc2
11595 builtin and then its argument prototype would still apply. */
11596 char remove();
11597
11598 int main() {
11599 remove()
11600 ; return 0; }
11601 EOF
11602 if { (eval echo configure:11603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11603 rm -rf conftest*
11604 eval "ac_cv_lib_$ac_lib_var=yes"
11605 else
11606 echo "configure: failed program was:" >&5
11607 cat conftest.$ac_ext >&5
11608 rm -rf conftest*
11609 eval "ac_cv_lib_$ac_lib_var=no"
11610 fi
11611 rm -f conftest*
11612 LIBS="$ac_save_LIBS"
11613
11614 fi
11615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11616 echo "$ac_t""yes" 1>&6
11617 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
11618 else
11619 echo "$ac_t""no" 1>&6
11620 fi
11621
11622 fi
11623
11624 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
11625 echo $ac_n "checking for shmat""... $ac_c" 1>&6
11626 echo "configure:11627: checking for shmat" >&5
11627 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
11628 echo $ac_n "(cached) $ac_c" 1>&6
11629 else
11630 cat > conftest.$ac_ext <<EOF
11631 #line 11632 "configure"
11632 #include "confdefs.h"
11633 /* System header to define __stub macros and hopefully few prototypes,
11634 which can conflict with char shmat(); below. */
11635 #include <assert.h>
11636 /* Override any gcc2 internal prototype to avoid an error. */
11637 /* We use char because int might match the return type of a gcc2
11638 builtin and then its argument prototype would still apply. */
11639 char shmat();
11640
11641 int main() {
11642
11643 /* The GNU C library defines this for functions which it implements
11644 to always fail with ENOSYS. Some functions are actually named
11645 something starting with __ and the normal name is an alias. */
11646 #if defined (__stub_shmat) || defined (__stub___shmat)
11647 choke me
11648 #else
11649 shmat();
11650 #endif
11651
11652 ; return 0; }
11653 EOF
11654 if { (eval echo configure:11655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11655 rm -rf conftest*
11656 eval "ac_cv_func_shmat=yes"
11657 else
11658 echo "configure: failed program was:" >&5
11659 cat conftest.$ac_ext >&5
11660 rm -rf conftest*
11661 eval "ac_cv_func_shmat=no"
11662 fi
11663 rm -f conftest*
11664 fi
11665
11666 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
11667 echo "$ac_t""yes" 1>&6
11668 :
11669 else
11670 echo "$ac_t""no" 1>&6
11671 fi
11672
11673 if test $ac_cv_func_shmat = no; then
11674 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
11675 echo "configure:11676: checking for shmat in -lipc" >&5
11676 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
11677 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11678 echo $ac_n "(cached) $ac_c" 1>&6
11679 else
11680 ac_save_LIBS="$LIBS"
11681 LIBS="-lipc $LIBS"
11682 cat > conftest.$ac_ext <<EOF
11683 #line 11684 "configure"
11684 #include "confdefs.h"
11685 /* Override any gcc2 internal prototype to avoid an error. */
11686 /* We use char because int might match the return type of a gcc2
11687 builtin and then its argument prototype would still apply. */
11688 char shmat();
11689
11690 int main() {
11691 shmat()
11692 ; return 0; }
11693 EOF
11694 if { (eval echo configure:11695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11695 rm -rf conftest*
11696 eval "ac_cv_lib_$ac_lib_var=yes"
11697 else
11698 echo "configure: failed program was:" >&5
11699 cat conftest.$ac_ext >&5
11700 rm -rf conftest*
11701 eval "ac_cv_lib_$ac_lib_var=no"
11702 fi
11703 rm -f conftest*
11704 LIBS="$ac_save_LIBS"
11705
11706 fi
11707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11708 echo "$ac_t""yes" 1>&6
11709 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
11710 else
11711 echo "$ac_t""no" 1>&6
11712 fi
11713
11714 fi
11715 fi
11716
11717 # Check for libraries that X11R6 Xt/Xaw programs need.
11718 ac_save_LDFLAGS="$LDFLAGS"
11719 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
11720 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11721 # check for ICE first), but we must link in the order -lSM -lICE or
11722 # we get undefined symbols. So assume we have SM if we have ICE.
11723 # These have to be linked with before -lX11, unlike the other
11724 # libraries we check for below, so use a different variable.
11725 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
11726 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
11727 echo "configure:11728: checking for IceConnectionNumber in -lICE" >&5
11728 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
11729 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11730 echo $ac_n "(cached) $ac_c" 1>&6
11731 else
11732 ac_save_LIBS="$LIBS"
11733 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
11734 cat > conftest.$ac_ext <<EOF
11735 #line 11736 "configure"
11736 #include "confdefs.h"
11737 /* Override any gcc2 internal prototype to avoid an error. */
11738 /* We use char because int might match the return type of a gcc2
11739 builtin and then its argument prototype would still apply. */
11740 char IceConnectionNumber();
11741
11742 int main() {
11743 IceConnectionNumber()
11744 ; return 0; }
11745 EOF
11746 if { (eval echo configure:11747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11747 rm -rf conftest*
11748 eval "ac_cv_lib_$ac_lib_var=yes"
11749 else
11750 echo "configure: failed program was:" >&5
11751 cat conftest.$ac_ext >&5
11752 rm -rf conftest*
11753 eval "ac_cv_lib_$ac_lib_var=no"
11754 fi
11755 rm -f conftest*
11756 LIBS="$ac_save_LIBS"
11757
11758 fi
11759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11760 echo "$ac_t""yes" 1>&6
11761 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
11762 else
11763 echo "$ac_t""no" 1>&6
11764 fi
11765
11766 LDFLAGS="$ac_save_LDFLAGS"
11767
11768 fi
11769
11770
11771 if test "$no_x" = "yes"; then
11772 { echo "configure: error: X11 not found" 1>&2; exit 1; }
11773 fi
11774
11775 GUI_TK_LIBRARY="$X_LIBS"
11776 TOOLKIT_INCLUDE="$X_CFLAGS"
11777 AFMINSTALL=afminstall
11778 COMPILED_X_PROGRAM=0
11779
11780 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
11781 echo "configure:11782: checking for Motif/Lesstif headers" >&5
11782
11783 ac_find_includes=
11784 for ac_dir in $SEARCH_INCLUDE;
11785 do
11786 if test -f "$ac_dir/Xm/Xm.h"; then
11787 ac_find_includes=$ac_dir
11788 break
11789 fi
11790 done
11791
11792 if test "$ac_find_includes" != "" ; then
11793 echo "$ac_t""found $ac_find_includes" 1>&6
11794 else
11795 cat > conftest.$ac_ext <<EOF
11796 #line 11797 "configure"
11797 #include "confdefs.h"
11798
11799 #include <Xm/Xm.h>
11800
11801 int main() {
11802
11803 int version;
11804 version = xmUseVersion;
11805
11806 ; return 0; }
11807 EOF
11808 if { (eval echo configure:11809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11809 rm -rf conftest*
11810
11811 echo "$ac_t""found in default search path" 1>&6
11812 COMPILED_X_PROGRAM=1
11813
11814 else
11815 echo "configure: failed program was:" >&5
11816 cat conftest.$ac_ext >&5
11817 rm -rf conftest*
11818
11819 echo "$ac_t""no" 1>&6
11820 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
11821
11822
11823 fi
11824 rm -f conftest*
11825 fi
11826
11827 if test "$COMPILED_X_PROGRAM" = 0; then
11828 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
11829 echo "configure:11830: checking for Motif/Lesstif library" >&5
11830
11831 ac_find_libraries=
11832 for ac_dir in $SEARCH_LIB;
11833 do
11834 for ac_extension in a so sl dylib; do
11835 if test -f "$ac_dir/libXm.$ac_extension"; then
11836 ac_find_libraries=$ac_dir
11837 break 2
11838 fi
11839 done
11840 done
11841
11842 if test "$ac_find_libraries" != "" ; then
11843
11844 ac_path_to_include=$ac_find_includes
11845 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
11846 result=$?
11847 if test $result = 0; then
11848 ac_path_to_include=""
11849 else
11850 ac_path_to_include=" -I$ac_find_includes"
11851 fi
11852
11853
11854 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11855 result=$?
11856 if test $result = 0; then
11857 ac_path_to_link=""
11858 else
11859 ac_path_to_link=" -L$ac_find_libraries"
11860 fi
11861
11862
11863 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
11864 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
11865 echo "$ac_t""found at $ac_find_libraries" 1>&6
11866 else
11867 cat > conftest.$ac_ext <<EOF
11868 #line 11869 "configure"
11869 #include "confdefs.h"
11870
11871 #include <Xm/Xm.h>
11872
11873 int main() {
11874
11875 int version;
11876 version = xmUseVersion;
11877
11878 ; return 0; }
11879 EOF
11880 if { (eval echo configure:11881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11881 rm -rf conftest*
11882
11883 echo "$ac_t""found in default search path" 1>&6
11884 COMPILED_X_PROGRAM=1
11885
11886 else
11887 echo "configure: failed program was:" >&5
11888 cat conftest.$ac_ext >&5
11889 rm -rf conftest*
11890
11891 echo "$ac_t""no" 1>&6
11892 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
11893
11894
11895 fi
11896 rm -f conftest*
11897 fi
11898 fi
11899
11900 xpm_link=
11901 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
11902 echo "configure:11903: checking for Xpm library" >&5
11903
11904 ac_find_libraries=
11905 for ac_dir in $SEARCH_LIB;
11906 do
11907 for ac_extension in a so sl dylib; do
11908 if test -f "$ac_dir/libXpm.$ac_extension"; then
11909 ac_find_libraries=$ac_dir
11910 break 2
11911 fi
11912 done
11913 done
11914
11915 if test "$ac_find_libraries" != "" ; then
11916
11917 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11918 result=$?
11919 if test $result = 0; then
11920 ac_path_to_link=""
11921 else
11922 ac_path_to_link=" -L$ac_find_libraries"
11923 fi
11924
11925 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
11926 xpm_link=" -lXpm"
11927 cat >> confdefs.h <<\EOF
11928 #define wxHAVE_LIB_XPM 1
11929 EOF
11930
11931 echo "$ac_t""found at $ac_find_libraries" 1>&6
11932 else
11933 cat > conftest.$ac_ext <<EOF
11934 #line 11935 "configure"
11935 #include "confdefs.h"
11936
11937 #include <X11/xpm.h>
11938
11939 int main() {
11940
11941 int version;
11942 version = XpmLibraryVersion();
11943
11944 ; return 0; }
11945 EOF
11946 if { (eval echo configure:11947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11947 rm -rf conftest*
11948
11949 xpm_link=" -lXpm"
11950 cat >> confdefs.h <<\EOF
11951 #define wxHAVE_LIB_XPM 1
11952 EOF
11953
11954 echo "$ac_t""found in default search path" 1>&6
11955 COMPILED_X_PROGRAM=0
11956
11957 else
11958 echo "configure: failed program was:" >&5
11959 cat conftest.$ac_ext >&5
11960 rm -rf conftest*
11961
11962 echo "$ac_t""no" 1>&6
11963 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
11964
11965
11966 fi
11967 rm -f conftest*
11968 fi
11969
11970 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
11971 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
11972 TOOLKIT=MOTIF
11973 GUIDIST=MOTIF_DIST
11974 fi
11975
11976 if test "$wxUSE_MAC" = 1; then
11977 if test "$wxUSE_PRECOMP" = "yes"; then
11978 CPPFLAGS="$CPPFLAGS -cpp-precomp"
11979 fi
11980 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
11981 CFLAGS="$CFLAGS -fpascal-strings"
11982 CXXFLAGS="$CXXFLAGS -fpascal-strings"
11983 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -DTARGET_CARBON"
11984
11985 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
11986 TOOLKIT=MAC
11987 GUIDIST=MACX_DIST
11988 fi
11989
11990 if test "$wxUSE_PM" = 1; then
11991 TOOLKIT=PM
11992 GUIDIST=GTK_DIST
11993 fi
11994
11995 if test "$TOOLKIT" = "PM" ; then
11996 TOOLKIT_DIR="os2"
11997 else
11998 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
11999 fi
12000
12001 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
12002
12003 if test "$wxUSE_UNIVERSAL" = "yes"; then
12004 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
12005 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
12006 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
12007 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
12008 WIDGET_SET=univ
12009 else
12010 ALL_OBJECTS="\$(GUIOBJS)"
12011 fi
12012
12013 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
12014
12015 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
12016 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
12017 fi
12018
12019 if test "$wxUSE_HTML" = "yes"; then
12020 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
12021 fi
12022
12023 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
12024 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
12025 fi
12026 if test "$wxUSE_LIBJPEG" = "builtin" ; then
12027 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
12028 fi
12029 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12030 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
12031 fi
12032 if test "$wxUSE_LIBPNG" = "builtin" ; then
12033 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
12034 fi
12035 if test "$wxUSE_FREETYPE" = "builtin" ; then
12036 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
12037 fi
12038
12039 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
12040 DISTDIR="wx\$(TOOLKIT)"
12041 else
12042 USE_GUI=0
12043
12044 TOOLKIT_DIR="base"
12045
12046 if test "$USE_WIN32" = 1 ; then
12047 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
12048 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
12049
12050 TOOLKIT="MSW"
12051 else
12052 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
12053 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
12054 fi
12055
12056 PORT_FILES="\${top_srcdir}/src/files.lst"
12057
12058 GUIDIST="BASE_DIST"
12059 DISTDIR="wxBase"
12060 fi
12061
12062 if test "$wxUSE_REGEX" = "builtin" ; then
12063 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
12064 fi
12065 if test "$wxUSE_ZLIB" = "builtin" ; then
12066 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
12067 fi
12068
12069 if test "$wxUSE_OPENGL" = "yes"; then
12070 if test "$wxUSE_MAC" = 1; then
12071 OPENGL_LIBS="-framework OpenGL -framework AGL"
12072 else
12073
12074 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
12075 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
12076 echo "configure:12077: checking for GL/gl.h" >&5
12077 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12078 echo $ac_n "(cached) $ac_c" 1>&6
12079 else
12080 cat > conftest.$ac_ext <<EOF
12081 #line 12082 "configure"
12082 #include "confdefs.h"
12083 #include <GL/gl.h>
12084 EOF
12085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12086 { (eval echo configure:12087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12088 if test -z "$ac_err"; then
12089 rm -rf conftest*
12090 eval "ac_cv_header_$ac_safe=yes"
12091 else
12092 echo "$ac_err" >&5
12093 echo "configure: failed program was:" >&5
12094 cat conftest.$ac_ext >&5
12095 rm -rf conftest*
12096 eval "ac_cv_header_$ac_safe=no"
12097 fi
12098 rm -f conftest*
12099 fi
12100 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12101 echo "$ac_t""yes" 1>&6
12102
12103 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
12104 echo "configure:12105: checking for -lGL" >&5
12105
12106 ac_find_libraries=
12107 for ac_dir in $SEARCH_LIB;
12108 do
12109 for ac_extension in a so sl dylib; do
12110 if test -f "$ac_dir/libGL.$ac_extension"; then
12111 ac_find_libraries=$ac_dir
12112 break 2
12113 fi
12114 done
12115 done
12116
12117 if test "$ac_find_libraries" != "" ; then
12118
12119 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
12120 result=$?
12121 if test $result = 0; then
12122 ac_path_to_link=""
12123 else
12124 ac_path_to_link=" -L$ac_find_libraries"
12125 fi
12126
12127 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
12128 OPENGL_LIBS="-lGL -lGLU"
12129 echo "$ac_t""yes" 1>&6
12130 else
12131 echo "$ac_t""no" 1>&6
12132 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
12133 echo "configure:12134: checking for -lMesaGL" >&5
12134
12135 ac_find_libraries=
12136 for ac_dir in $SEARCH_LIB;
12137 do
12138 for ac_extension in a so sl dylib; do
12139 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
12140 ac_find_libraries=$ac_dir
12141 break 2
12142 fi
12143 done
12144 done
12145
12146 if test "$ac_find_libraries" != "" ; then
12147
12148 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
12149 result=$?
12150 if test $result = 0; then
12151 ac_path_to_link=""
12152 else
12153 ac_path_to_link=" -L$ac_find_libraries"
12154 fi
12155
12156 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
12157 OPENGL_LIBS="-lMesaGL -lMesaGLU"
12158 echo "$ac_t""yes" 1>&6
12159 else
12160 echo "$ac_t""no" 1>&6
12161 fi
12162 fi
12163
12164 else
12165 echo "$ac_t""no" 1>&6
12166 fi
12167
12168
12169
12170 # AC_CHECK_HEADER(GL/gl.h,
12171 # [
12172 # AC_CHECK_LIB(GL, glFlush,
12173 # [
12174 # OPENGL_LIBS="-lGL -lGLU"
12175 # ],
12176 # [
12177 # AC_CHECK_LIB(MesaGL, glFlush,
12178 # [
12179 # OPENGL_LIBS="-lMesaGL -lMesaGLU"
12180 # ],
12181 # [],
12182 # [-lm])
12183 # ],
12184 # [-lm])
12185 # ])
12186
12187 if test "x$OPENGL_LIBS" = "x"; then
12188 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
12189 fi
12190 fi
12191
12192 if test "$wxUSE_OPENGL" = "yes"; then
12193 cat >> confdefs.h <<\EOF
12194 #define wxUSE_OPENGL 1
12195 EOF
12196
12197 cat >> confdefs.h <<\EOF
12198 #define wxUSE_GLCANVAS 1
12199 EOF
12200
12201 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
12202 fi
12203 fi
12204
12205 if test -z "$TOOLKIT_VPATH" ; then
12206 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
12207 fi
12208
12209 if test -n "$TOOLKIT" ; then
12210 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
12211 fi
12212
12213 lib_unicode_suffix=
12214 if test "$wxUSE_UNICODE" = "yes"; then
12215 lib_unicode_suffix=u
12216 fi
12217
12218 lib_debug_suffix=
12219 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
12220 lib_debug_suffix=d
12221 fi
12222
12223 TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
12224 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
12225
12226 if test "$cross_compiling" = "yes"; then
12227 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
12228 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
12229 fi
12230
12231 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
12232 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
12233
12234 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
12235 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
12236
12237 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
12238 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
12239 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
12240 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
12241
12242 WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
12243 WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
12244
12245 case "${host}" in
12246 *-*-cygwin* | *-*-mingw32* )
12247
12248
12249
12250 if test "$cross_compiling" != "yes"; then
12251 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
12252 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
12253 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
12254 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
12255 else
12256 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
12257 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
12258 fi
12259
12260 esac
12261
12262 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
12263 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
12264
12265 WXCONFIG_LIBS="-l${WX_LIBRARY}"
12266 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
12267
12268 if test "$wxUSE_OPENGL" = "yes"; then
12269 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
12270 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
12271 fi
12272
12273
12274
12275 if test "$wxUSE_SHARED" = "yes"; then
12276
12277 if test "$wxUSE_OPENGL" = "yes"; then
12278 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
12279 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
12280 else
12281 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
12282 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
12283 fi
12284
12285 if test "$GCC" = "yes"; then
12286 PIC_FLAG="-fPIC"
12287 fi
12288
12289 SHARED_LD="${CXX} -shared -o"
12290
12291 case "${host}" in
12292 *-hp-hpux* )
12293 if test "$GCC" != "yes"; then
12294 LDFLAGS="$LDFLAGS -L/usr/lib"
12295
12296 SHARED_LD="${CXX} -b -o"
12297 PIC_FLAG="+Z"
12298 fi
12299
12300 if test "$wxUSE_OPENGL" = "yes"; then
12301 WX_ALL_INSTALLED="preinstall_gl"
12302 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
12303 else
12304 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
12305 fi
12306 ;;
12307
12308 *-*-linux* )
12309 if test "$GCC" != "yes"; then
12310 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
12311 echo "configure:12312: checking for Intel compiler" >&5
12312 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
12313 echo $ac_n "(cached) $ac_c" 1>&6
12314 else
12315
12316 cat > conftest.$ac_ext <<EOF
12317 #line 12318 "configure"
12318 #include "confdefs.h"
12319
12320 int main() {
12321
12322 #ifndef __INTEL_COMPILER
12323 #error Not icc
12324 #endif
12325
12326 ; return 0; }
12327 EOF
12328 if { (eval echo configure:12329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12329 rm -rf conftest*
12330 wx_cv_prog_icc=yes
12331 else
12332 echo "configure: failed program was:" >&5
12333 cat conftest.$ac_ext >&5
12334 rm -rf conftest*
12335 wx_cv_prog_icc=no
12336
12337 fi
12338 rm -f conftest*
12339
12340 fi
12341
12342 echo "$ac_t""$wx_cv_prog_icc" 1>&6
12343 if test "$wx_cv_prog_icc" = "yes"; then
12344 PIC_FLAG="-KPIC"
12345 fi
12346 fi
12347
12348 if test "$wxUSE_SONAME" = "yes" ; then
12349 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
12350 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
12351 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
12352 fi
12353 ;;
12354
12355 *-*-solaris2* )
12356 if test "$GCC" = yes ; then
12357 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
12358 else
12359 SHARED_LD="${CXX} -G -o"
12360 PIC_FLAG="-KPIC"
12361 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
12362 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}"
12363 fi
12364 ;;
12365
12366 *-*-darwin* )
12367 CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT"
12368 CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT"
12369 SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o"
12370 PIC_FLAG="-dynamic -fPIC"
12371 ;;
12372
12373 *-*-aix* )
12374 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
12375 ;;
12376
12377 *-*-cygwin* | *-*-mingw32* )
12378
12379 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
12380
12381 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
12382 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
12383
12384 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
12385
12386 if test "$wxUSE_OPENGL" = "yes"; then
12387 WX_ALL_INSTALLED="preinstall_gl"
12388 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
12389 else
12390 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
12391 fi
12392 ;;
12393
12394 *-pc-os2_emx | *-pc-os2-emx )
12395 wxUSE_SHARED=no
12396 ;;
12397
12398 *-*-beos* )
12399 SHARED_LD="${LD} -shared -o"
12400 ;;
12401
12402 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
12403 *-*-sunos4* | \
12404 *-*-irix5* | *-*-irix6* | \
12405 *-*-osf* | \
12406 *-*-dgux5* | \
12407 *-*-sysv5* )
12408 ;;
12409
12410 *)
12411 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
12412 esac
12413
12414 if test "x$WX_TARGET_LIBRARY" = "x"; then
12415 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
12416 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
12417 fi
12418
12419 WX_TARGET_LIBRARY_TYPE="so"
12420 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
12421 fi
12422
12423 if test "$wxUSE_SHARED" = "no"; then
12424
12425 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
12426 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12427 fi
12428
12429 if test "$wxUSE_MAC" = 1; then
12430 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12431 fi
12432
12433 if test "$wxUSE_OPENGL" = "yes"; then
12434 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
12435 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
12436 else
12437 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
12438 fi
12439
12440 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
12441 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
12442
12443 WX_TARGET_LIBRARY_TYPE="a"
12444 INSTALL_LIBRARY='$(INSTALL_DATA)'
12445 fi
12446
12447 if test "$wxUSE_MAC" = 1; then
12448 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
12449 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
12450 # Extract the first word of "Rez", so it can be a program name with args.
12451 set dummy Rez; ac_word=$2
12452 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12453 echo "configure:12454: checking for $ac_word" >&5
12454 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
12455 echo $ac_n "(cached) $ac_c" 1>&6
12456 else
12457 if test -n "$RESCOMP"; then
12458 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
12459 else
12460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12461 ac_dummy="$PATH"
12462 for ac_dir in $ac_dummy; do
12463 test -z "$ac_dir" && ac_dir=.
12464 if test -f $ac_dir/$ac_word; then
12465 ac_cv_prog_RESCOMP="Rez"
12466 break
12467 fi
12468 done
12469 IFS="$ac_save_ifs"
12470 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
12471 fi
12472 fi
12473 RESCOMP="$ac_cv_prog_RESCOMP"
12474 if test -n "$RESCOMP"; then
12475 echo "$ac_t""$RESCOMP" 1>&6
12476 else
12477 echo "$ac_t""no" 1>&6
12478 fi
12479
12480 # Extract the first word of "DeRez", so it can be a program name with args.
12481 set dummy DeRez; ac_word=$2
12482 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12483 echo "configure:12484: checking for $ac_word" >&5
12484 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
12485 echo $ac_n "(cached) $ac_c" 1>&6
12486 else
12487 if test -n "$DEREZ"; then
12488 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
12489 else
12490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12491 ac_dummy="$PATH"
12492 for ac_dir in $ac_dummy; do
12493 test -z "$ac_dir" && ac_dir=.
12494 if test -f $ac_dir/$ac_word; then
12495 ac_cv_prog_DEREZ="DeRez"
12496 break
12497 fi
12498 done
12499 IFS="$ac_save_ifs"
12500 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
12501 fi
12502 fi
12503 DEREZ="$ac_cv_prog_DEREZ"
12504 if test -n "$DEREZ"; then
12505 echo "$ac_t""$DEREZ" 1>&6
12506 else
12507 echo "$ac_t""no" 1>&6
12508 fi
12509
12510 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
12511 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
12512 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
12513 fi
12514
12515
12516 if test "$wxUSE_MAC" != 1; then
12517 for ac_hdr in strings.h
12518 do
12519 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12520 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12521 echo "configure:12522: checking for $ac_hdr" >&5
12522 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12523 echo $ac_n "(cached) $ac_c" 1>&6
12524 else
12525 cat > conftest.$ac_ext <<EOF
12526 #line 12527 "configure"
12527 #include "confdefs.h"
12528 #include <$ac_hdr>
12529 EOF
12530 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12531 { (eval echo configure:12532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12532 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12533 if test -z "$ac_err"; then
12534 rm -rf conftest*
12535 eval "ac_cv_header_$ac_safe=yes"
12536 else
12537 echo "$ac_err" >&5
12538 echo "configure: failed program was:" >&5
12539 cat conftest.$ac_ext >&5
12540 rm -rf conftest*
12541 eval "ac_cv_header_$ac_safe=no"
12542 fi
12543 rm -f conftest*
12544 fi
12545 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12546 echo "$ac_t""yes" 1>&6
12547 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12548 cat >> confdefs.h <<EOF
12549 #define $ac_tr_hdr 1
12550 EOF
12551
12552 else
12553 echo "$ac_t""no" 1>&6
12554 fi
12555 done
12556
12557 fi
12558
12559 for ac_hdr in stdlib.h
12560 do
12561 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12562 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12563 echo "configure:12564: checking for $ac_hdr" >&5
12564 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12565 echo $ac_n "(cached) $ac_c" 1>&6
12566 else
12567 cat > conftest.$ac_ext <<EOF
12568 #line 12569 "configure"
12569 #include "confdefs.h"
12570 #include <$ac_hdr>
12571 EOF
12572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12573 { (eval echo configure:12574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12574 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12575 if test -z "$ac_err"; then
12576 rm -rf conftest*
12577 eval "ac_cv_header_$ac_safe=yes"
12578 else
12579 echo "$ac_err" >&5
12580 echo "configure: failed program was:" >&5
12581 cat conftest.$ac_ext >&5
12582 rm -rf conftest*
12583 eval "ac_cv_header_$ac_safe=no"
12584 fi
12585 rm -f conftest*
12586 fi
12587 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12588 echo "$ac_t""yes" 1>&6
12589 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12590 cat >> confdefs.h <<EOF
12591 #define $ac_tr_hdr 1
12592 EOF
12593
12594 else
12595 echo "$ac_t""no" 1>&6
12596 fi
12597 done
12598
12599 for ac_hdr in malloc.h
12600 do
12601 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12602 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12603 echo "configure:12604: checking for $ac_hdr" >&5
12604 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12605 echo $ac_n "(cached) $ac_c" 1>&6
12606 else
12607 cat > conftest.$ac_ext <<EOF
12608 #line 12609 "configure"
12609 #include "confdefs.h"
12610 #include <$ac_hdr>
12611 EOF
12612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12613 { (eval echo configure:12614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12615 if test -z "$ac_err"; then
12616 rm -rf conftest*
12617 eval "ac_cv_header_$ac_safe=yes"
12618 else
12619 echo "$ac_err" >&5
12620 echo "configure: failed program was:" >&5
12621 cat conftest.$ac_ext >&5
12622 rm -rf conftest*
12623 eval "ac_cv_header_$ac_safe=no"
12624 fi
12625 rm -f conftest*
12626 fi
12627 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12628 echo "$ac_t""yes" 1>&6
12629 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12630 cat >> confdefs.h <<EOF
12631 #define $ac_tr_hdr 1
12632 EOF
12633
12634 else
12635 echo "$ac_t""no" 1>&6
12636 fi
12637 done
12638
12639 for ac_hdr in unistd.h
12640 do
12641 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12642 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12643 echo "configure:12644: checking for $ac_hdr" >&5
12644 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12645 echo $ac_n "(cached) $ac_c" 1>&6
12646 else
12647 cat > conftest.$ac_ext <<EOF
12648 #line 12649 "configure"
12649 #include "confdefs.h"
12650 #include <$ac_hdr>
12651 EOF
12652 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12653 { (eval echo configure:12654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12654 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12655 if test -z "$ac_err"; then
12656 rm -rf conftest*
12657 eval "ac_cv_header_$ac_safe=yes"
12658 else
12659 echo "$ac_err" >&5
12660 echo "configure: failed program was:" >&5
12661 cat conftest.$ac_ext >&5
12662 rm -rf conftest*
12663 eval "ac_cv_header_$ac_safe=no"
12664 fi
12665 rm -f conftest*
12666 fi
12667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12668 echo "$ac_t""yes" 1>&6
12669 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12670 cat >> confdefs.h <<EOF
12671 #define $ac_tr_hdr 1
12672 EOF
12673
12674 else
12675 echo "$ac_t""no" 1>&6
12676 fi
12677 done
12678
12679 for ac_hdr in wchar.h
12680 do
12681 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12682 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12683 echo "configure:12684: checking for $ac_hdr" >&5
12684 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12685 echo $ac_n "(cached) $ac_c" 1>&6
12686 else
12687 cat > conftest.$ac_ext <<EOF
12688 #line 12689 "configure"
12689 #include "confdefs.h"
12690 #include <$ac_hdr>
12691 EOF
12692 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12693 { (eval echo configure:12694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12694 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12695 if test -z "$ac_err"; then
12696 rm -rf conftest*
12697 eval "ac_cv_header_$ac_safe=yes"
12698 else
12699 echo "$ac_err" >&5
12700 echo "configure: failed program was:" >&5
12701 cat conftest.$ac_ext >&5
12702 rm -rf conftest*
12703 eval "ac_cv_header_$ac_safe=no"
12704 fi
12705 rm -f conftest*
12706 fi
12707 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12708 echo "$ac_t""yes" 1>&6
12709 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12710 cat >> confdefs.h <<EOF
12711 #define $ac_tr_hdr 1
12712 EOF
12713
12714 else
12715 echo "$ac_t""no" 1>&6
12716 fi
12717 done
12718
12719 for ac_hdr in wcstr.h
12720 do
12721 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12722 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12723 echo "configure:12724: checking for $ac_hdr" >&5
12724 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12725 echo $ac_n "(cached) $ac_c" 1>&6
12726 else
12727 cat > conftest.$ac_ext <<EOF
12728 #line 12729 "configure"
12729 #include "confdefs.h"
12730 #include <$ac_hdr>
12731 EOF
12732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12733 { (eval echo configure:12734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12734 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12735 if test -z "$ac_err"; then
12736 rm -rf conftest*
12737 eval "ac_cv_header_$ac_safe=yes"
12738 else
12739 echo "$ac_err" >&5
12740 echo "configure: failed program was:" >&5
12741 cat conftest.$ac_ext >&5
12742 rm -rf conftest*
12743 eval "ac_cv_header_$ac_safe=no"
12744 fi
12745 rm -f conftest*
12746 fi
12747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12748 echo "$ac_t""yes" 1>&6
12749 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12750 cat >> confdefs.h <<EOF
12751 #define $ac_tr_hdr 1
12752 EOF
12753
12754 else
12755 echo "$ac_t""no" 1>&6
12756 fi
12757 done
12758
12759 for ac_hdr in wctype.h
12760 do
12761 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12762 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12763 echo "configure:12764: checking for $ac_hdr" >&5
12764 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12765 echo $ac_n "(cached) $ac_c" 1>&6
12766 else
12767 cat > conftest.$ac_ext <<EOF
12768 #line 12769 "configure"
12769 #include "confdefs.h"
12770 #include <$ac_hdr>
12771 EOF
12772 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12773 { (eval echo configure:12774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12774 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12775 if test -z "$ac_err"; then
12776 rm -rf conftest*
12777 eval "ac_cv_header_$ac_safe=yes"
12778 else
12779 echo "$ac_err" >&5
12780 echo "configure: failed program was:" >&5
12781 cat conftest.$ac_ext >&5
12782 rm -rf conftest*
12783 eval "ac_cv_header_$ac_safe=no"
12784 fi
12785 rm -f conftest*
12786 fi
12787 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12788 echo "$ac_t""yes" 1>&6
12789 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12790 cat >> confdefs.h <<EOF
12791 #define $ac_tr_hdr 1
12792 EOF
12793
12794 else
12795 echo "$ac_t""no" 1>&6
12796 fi
12797 done
12798
12799 for ac_hdr in fnmatch.h
12800 do
12801 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12802 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12803 echo "configure:12804: checking for $ac_hdr" >&5
12804 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12805 echo $ac_n "(cached) $ac_c" 1>&6
12806 else
12807 cat > conftest.$ac_ext <<EOF
12808 #line 12809 "configure"
12809 #include "confdefs.h"
12810 #include <$ac_hdr>
12811 EOF
12812 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12813 { (eval echo configure:12814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12814 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12815 if test -z "$ac_err"; then
12816 rm -rf conftest*
12817 eval "ac_cv_header_$ac_safe=yes"
12818 else
12819 echo "$ac_err" >&5
12820 echo "configure: failed program was:" >&5
12821 cat conftest.$ac_ext >&5
12822 rm -rf conftest*
12823 eval "ac_cv_header_$ac_safe=no"
12824 fi
12825 rm -f conftest*
12826 fi
12827 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12828 echo "$ac_t""yes" 1>&6
12829 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12830 cat >> confdefs.h <<EOF
12831 #define $ac_tr_hdr 1
12832 EOF
12833
12834 else
12835 echo "$ac_t""no" 1>&6
12836 fi
12837 done
12838
12839 for ac_hdr in iconv.h
12840 do
12841 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12842 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12843 echo "configure:12844: checking for $ac_hdr" >&5
12844 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12845 echo $ac_n "(cached) $ac_c" 1>&6
12846 else
12847 cat > conftest.$ac_ext <<EOF
12848 #line 12849 "configure"
12849 #include "confdefs.h"
12850 #include <$ac_hdr>
12851 EOF
12852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12853 { (eval echo configure:12854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12855 if test -z "$ac_err"; then
12856 rm -rf conftest*
12857 eval "ac_cv_header_$ac_safe=yes"
12858 else
12859 echo "$ac_err" >&5
12860 echo "configure: failed program was:" >&5
12861 cat conftest.$ac_ext >&5
12862 rm -rf conftest*
12863 eval "ac_cv_header_$ac_safe=no"
12864 fi
12865 rm -f conftest*
12866 fi
12867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12868 echo "$ac_t""yes" 1>&6
12869 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12870 cat >> confdefs.h <<EOF
12871 #define $ac_tr_hdr 1
12872 EOF
12873
12874 else
12875 echo "$ac_t""no" 1>&6
12876 fi
12877 done
12878
12879 for ac_hdr in langinfo.h
12880 do
12881 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12882 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12883 echo "configure:12884: checking for $ac_hdr" >&5
12884 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12885 echo $ac_n "(cached) $ac_c" 1>&6
12886 else
12887 cat > conftest.$ac_ext <<EOF
12888 #line 12889 "configure"
12889 #include "confdefs.h"
12890 #include <$ac_hdr>
12891 EOF
12892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12893 { (eval echo configure:12894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12895 if test -z "$ac_err"; then
12896 rm -rf conftest*
12897 eval "ac_cv_header_$ac_safe=yes"
12898 else
12899 echo "$ac_err" >&5
12900 echo "configure: failed program was:" >&5
12901 cat conftest.$ac_ext >&5
12902 rm -rf conftest*
12903 eval "ac_cv_header_$ac_safe=no"
12904 fi
12905 rm -f conftest*
12906 fi
12907 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12908 echo "$ac_t""yes" 1>&6
12909 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12910 cat >> confdefs.h <<EOF
12911 #define $ac_tr_hdr 1
12912 EOF
12913
12914 else
12915 echo "$ac_t""no" 1>&6
12916 fi
12917 done
12918
12919
12920 if test "$wxUSE_GUI" = "yes"; then
12921 if test "$wxUSE_UNIX" = "yes"; then
12922 for ac_hdr in X11/XKBlib.h
12923 do
12924 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12925 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12926 echo "configure:12927: checking for $ac_hdr" >&5
12927 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12928 echo $ac_n "(cached) $ac_c" 1>&6
12929 else
12930 cat > conftest.$ac_ext <<EOF
12931 #line 12932 "configure"
12932 #include "confdefs.h"
12933 #include <$ac_hdr>
12934 EOF
12935 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12936 { (eval echo configure:12937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12937 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12938 if test -z "$ac_err"; then
12939 rm -rf conftest*
12940 eval "ac_cv_header_$ac_safe=yes"
12941 else
12942 echo "$ac_err" >&5
12943 echo "configure: failed program was:" >&5
12944 cat conftest.$ac_ext >&5
12945 rm -rf conftest*
12946 eval "ac_cv_header_$ac_safe=no"
12947 fi
12948 rm -f conftest*
12949 fi
12950 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12951 echo "$ac_t""yes" 1>&6
12952 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12953 cat >> confdefs.h <<EOF
12954 #define $ac_tr_hdr 1
12955 EOF
12956
12957 else
12958 echo "$ac_t""no" 1>&6
12959 fi
12960 done
12961
12962 fi
12963 fi
12964
12965
12966 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
12967 echo "configure:12968: checking for ANSI C header files" >&5
12968 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
12969 echo $ac_n "(cached) $ac_c" 1>&6
12970 else
12971 cat > conftest.$ac_ext <<EOF
12972 #line 12973 "configure"
12973 #include "confdefs.h"
12974 #include <stdlib.h>
12975 #include <stdarg.h>
12976 #include <string.h>
12977 #include <float.h>
12978 EOF
12979 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12980 { (eval echo configure:12981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12981 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12982 if test -z "$ac_err"; then
12983 rm -rf conftest*
12984 ac_cv_header_stdc=yes
12985 else
12986 echo "$ac_err" >&5
12987 echo "configure: failed program was:" >&5
12988 cat conftest.$ac_ext >&5
12989 rm -rf conftest*
12990 ac_cv_header_stdc=no
12991 fi
12992 rm -f conftest*
12993
12994 if test $ac_cv_header_stdc = yes; then
12995 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12996 cat > conftest.$ac_ext <<EOF
12997 #line 12998 "configure"
12998 #include "confdefs.h"
12999 #include <string.h>
13000 EOF
13001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13002 egrep "memchr" >/dev/null 2>&1; then
13003 :
13004 else
13005 rm -rf conftest*
13006 ac_cv_header_stdc=no
13007 fi
13008 rm -f conftest*
13009
13010 fi
13011
13012 if test $ac_cv_header_stdc = yes; then
13013 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13014 cat > conftest.$ac_ext <<EOF
13015 #line 13016 "configure"
13016 #include "confdefs.h"
13017 #include <stdlib.h>
13018 EOF
13019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13020 egrep "free" >/dev/null 2>&1; then
13021 :
13022 else
13023 rm -rf conftest*
13024 ac_cv_header_stdc=no
13025 fi
13026 rm -f conftest*
13027
13028 fi
13029
13030 if test $ac_cv_header_stdc = yes; then
13031 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13032 if test "$cross_compiling" = yes; then
13033 :
13034 else
13035 cat > conftest.$ac_ext <<EOF
13036 #line 13037 "configure"
13037 #include "confdefs.h"
13038 #include <ctype.h>
13039 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13040 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13041 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13042 int main () { int i; for (i = 0; i < 256; i++)
13043 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13044 exit (0); }
13045
13046 EOF
13047 if { (eval echo configure:13048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13048 then
13049 :
13050 else
13051 echo "configure: failed program was:" >&5
13052 cat conftest.$ac_ext >&5
13053 rm -fr conftest*
13054 ac_cv_header_stdc=no
13055 fi
13056 rm -fr conftest*
13057 fi
13058
13059 fi
13060 fi
13061
13062 echo "$ac_t""$ac_cv_header_stdc" 1>&6
13063 if test $ac_cv_header_stdc = yes; then
13064 cat >> confdefs.h <<\EOF
13065 #define STDC_HEADERS 1
13066 EOF
13067
13068 fi
13069
13070 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
13071 echo "configure:13072: checking for mode_t" >&5
13072 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
13073 echo $ac_n "(cached) $ac_c" 1>&6
13074 else
13075 cat > conftest.$ac_ext <<EOF
13076 #line 13077 "configure"
13077 #include "confdefs.h"
13078 #include <sys/types.h>
13079 #if STDC_HEADERS
13080 #include <stdlib.h>
13081 #include <stddef.h>
13082 #endif
13083 EOF
13084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13085 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13086 rm -rf conftest*
13087 ac_cv_type_mode_t=yes
13088 else
13089 rm -rf conftest*
13090 ac_cv_type_mode_t=no
13091 fi
13092 rm -f conftest*
13093
13094 fi
13095 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
13096 if test $ac_cv_type_mode_t = no; then
13097 cat >> confdefs.h <<\EOF
13098 #define mode_t int
13099 EOF
13100
13101 fi
13102
13103 echo $ac_n "checking for off_t""... $ac_c" 1>&6
13104 echo "configure:13105: checking for off_t" >&5
13105 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
13106 echo $ac_n "(cached) $ac_c" 1>&6
13107 else
13108 cat > conftest.$ac_ext <<EOF
13109 #line 13110 "configure"
13110 #include "confdefs.h"
13111 #include <sys/types.h>
13112 #if STDC_HEADERS
13113 #include <stdlib.h>
13114 #include <stddef.h>
13115 #endif
13116 EOF
13117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13118 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13119 rm -rf conftest*
13120 ac_cv_type_off_t=yes
13121 else
13122 rm -rf conftest*
13123 ac_cv_type_off_t=no
13124 fi
13125 rm -f conftest*
13126
13127 fi
13128 echo "$ac_t""$ac_cv_type_off_t" 1>&6
13129 if test $ac_cv_type_off_t = no; then
13130 cat >> confdefs.h <<\EOF
13131 #define off_t long
13132 EOF
13133
13134 fi
13135
13136 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
13137 echo "configure:13138: checking for pid_t" >&5
13138 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
13139 echo $ac_n "(cached) $ac_c" 1>&6
13140 else
13141 cat > conftest.$ac_ext <<EOF
13142 #line 13143 "configure"
13143 #include "confdefs.h"
13144 #include <sys/types.h>
13145 #if STDC_HEADERS
13146 #include <stdlib.h>
13147 #include <stddef.h>
13148 #endif
13149 EOF
13150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13151 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13152 rm -rf conftest*
13153 ac_cv_type_pid_t=yes
13154 else
13155 rm -rf conftest*
13156 ac_cv_type_pid_t=no
13157 fi
13158 rm -f conftest*
13159
13160 fi
13161 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
13162 if test $ac_cv_type_pid_t = no; then
13163 cat >> confdefs.h <<\EOF
13164 #define pid_t int
13165 EOF
13166
13167 fi
13168
13169 echo $ac_n "checking for size_t""... $ac_c" 1>&6
13170 echo "configure:13171: checking for size_t" >&5
13171 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
13172 echo $ac_n "(cached) $ac_c" 1>&6
13173 else
13174 cat > conftest.$ac_ext <<EOF
13175 #line 13176 "configure"
13176 #include "confdefs.h"
13177 #include <sys/types.h>
13178 #if STDC_HEADERS
13179 #include <stdlib.h>
13180 #include <stddef.h>
13181 #endif
13182 EOF
13183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13184 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13185 rm -rf conftest*
13186 ac_cv_type_size_t=yes
13187 else
13188 rm -rf conftest*
13189 ac_cv_type_size_t=no
13190 fi
13191 rm -f conftest*
13192
13193 fi
13194 echo "$ac_t""$ac_cv_type_size_t" 1>&6
13195 if test $ac_cv_type_size_t = no; then
13196 cat >> confdefs.h <<\EOF
13197 #define size_t unsigned
13198 EOF
13199
13200 fi
13201
13202 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
13203 echo "configure:13204: checking for uid_t in sys/types.h" >&5
13204 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
13205 echo $ac_n "(cached) $ac_c" 1>&6
13206 else
13207 cat > conftest.$ac_ext <<EOF
13208 #line 13209 "configure"
13209 #include "confdefs.h"
13210 #include <sys/types.h>
13211 EOF
13212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13213 egrep "uid_t" >/dev/null 2>&1; then
13214 rm -rf conftest*
13215 ac_cv_type_uid_t=yes
13216 else
13217 rm -rf conftest*
13218 ac_cv_type_uid_t=no
13219 fi
13220 rm -f conftest*
13221
13222 fi
13223
13224 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
13225 if test $ac_cv_type_uid_t = no; then
13226 cat >> confdefs.h <<\EOF
13227 #define uid_t int
13228 EOF
13229
13230 cat >> confdefs.h <<\EOF
13231 #define gid_t int
13232 EOF
13233
13234 fi
13235
13236
13237 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
13238 echo "configure:13239: checking for wchar_t" >&5
13239 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
13240 echo $ac_n "(cached) $ac_c" 1>&6
13241 else
13242
13243 cat > conftest.$ac_ext <<EOF
13244 #line 13245 "configure"
13245 #include "confdefs.h"
13246
13247 #ifdef HAVE_WCHAR_H
13248 # ifdef __CYGWIN__
13249 # include <stddef.h>
13250 # endif
13251 # include <wchar.h>
13252 #endif
13253 #ifdef HAVE_STDLIB_H
13254 # include <stdlib.h>
13255 #endif
13256
13257 int main() {
13258
13259 wchar_t wc, *ws;
13260 wc = L'a';
13261 ws = L"Hello, world!";
13262
13263 ; return 0; }
13264 EOF
13265 if { (eval echo configure:13266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13266 rm -rf conftest*
13267 wx_cv_type_wchar_t=yes
13268 else
13269 echo "configure: failed program was:" >&5
13270 cat conftest.$ac_ext >&5
13271 rm -rf conftest*
13272 wx_cv_type_wchar_t=no
13273
13274 fi
13275 rm -f conftest*
13276
13277 fi
13278
13279 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
13280
13281 if test "$wx_cv_type_wchar_t" = "yes"; then
13282 cat >> confdefs.h <<\EOF
13283 #define wxUSE_WCHAR_T 1
13284 EOF
13285
13286 fi
13287
13288
13289 ac_ext=C
13290 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13291 ac_cpp='$CXXCPP $CPPFLAGS'
13292 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13293 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13294 cross_compiling=$ac_cv_prog_cxx_cross
13295
13296 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
13297 echo "configure:13298: checking if size_t is unsigned int" >&5
13298 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
13299 echo $ac_n "(cached) $ac_c" 1>&6
13300 else
13301 cat > conftest.$ac_ext <<EOF
13302 #line 13303 "configure"
13303 #include "confdefs.h"
13304 #include <stddef.h>
13305 int main() {
13306
13307 return 0; }
13308
13309 struct Foo { void foo(size_t); void foo(unsigned int); };
13310
13311 int bar() {
13312
13313 ; return 0; }
13314 EOF
13315 if { (eval echo configure:13316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13316 rm -rf conftest*
13317 wx_cv_size_t_is_uint=no
13318 else
13319 echo "configure: failed program was:" >&5
13320 cat conftest.$ac_ext >&5
13321 rm -rf conftest*
13322 wx_cv_size_t_is_uint=yes
13323
13324 fi
13325 rm -f conftest*
13326
13327 fi
13328
13329 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
13330
13331 if test "$wx_cv_size_t_is_uint" = "yes"; then
13332 cat >> confdefs.h <<\EOF
13333 #define wxSIZE_T_IS_UINT 1
13334 EOF
13335
13336 else
13337 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
13338 echo "configure:13339: checking if size_t is unsigned long" >&5
13339 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
13340 echo $ac_n "(cached) $ac_c" 1>&6
13341 else
13342 cat > conftest.$ac_ext <<EOF
13343 #line 13344 "configure"
13344 #include "confdefs.h"
13345 #include <stddef.h>
13346 int main() {
13347
13348 return 0; }
13349
13350 struct Foo { void foo(size_t); void foo(unsigned long); };
13351
13352 int bar() {
13353
13354 ; return 0; }
13355 EOF
13356 if { (eval echo configure:13357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13357 rm -rf conftest*
13358 wx_cv_size_t_is_ulong=no
13359 else
13360 echo "configure: failed program was:" >&5
13361 cat conftest.$ac_ext >&5
13362 rm -rf conftest*
13363 wx_cv_size_t_is_ulong=yes
13364
13365 fi
13366 rm -f conftest*
13367
13368 fi
13369
13370 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
13371
13372 if test "$wx_cv_size_t_is_ulong" = "yes"; then
13373 cat >> confdefs.h <<\EOF
13374 #define wxSIZE_T_IS_ULONG 1
13375 EOF
13376
13377 fi
13378 fi
13379
13380 ac_ext=c
13381 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13382 ac_cpp='$CPP $CPPFLAGS'
13383 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13384 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13385 cross_compiling=$ac_cv_prog_cc_cross
13386
13387
13388
13389 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
13390 echo "configure:13391: checking for pw_gecos in struct passwd" >&5
13391 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
13392 echo $ac_n "(cached) $ac_c" 1>&6
13393 else
13394
13395 cat > conftest.$ac_ext <<EOF
13396 #line 13397 "configure"
13397 #include "confdefs.h"
13398 #include <pwd.h>
13399 int main() {
13400
13401 char *p;
13402 struct passwd *pw;
13403 p = pw->pw_gecos;
13404
13405 ; return 0; }
13406 EOF
13407 if { (eval echo configure:13408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13408 rm -rf conftest*
13409
13410 wx_cv_struct_pw_gecos=yes
13411
13412 else
13413 echo "configure: failed program was:" >&5
13414 cat conftest.$ac_ext >&5
13415 rm -rf conftest*
13416
13417 wx_cv_struct_pw_gecos=no
13418
13419
13420 fi
13421 rm -f conftest*
13422
13423
13424 fi
13425
13426 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
13427
13428 if test "$wx_cv_struct_pw_gecos" = "yes"; then
13429 cat >> confdefs.h <<\EOF
13430 #define HAVE_PW_GECOS 1
13431 EOF
13432
13433 fi
13434
13435
13436 echo $ac_n "checking for working const""... $ac_c" 1>&6
13437 echo "configure:13438: checking for working const" >&5
13438 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
13439 echo $ac_n "(cached) $ac_c" 1>&6
13440 else
13441 cat > conftest.$ac_ext <<EOF
13442 #line 13443 "configure"
13443 #include "confdefs.h"
13444
13445 int main() {
13446
13447 /* Ultrix mips cc rejects this. */
13448 typedef int charset[2]; const charset x;
13449 /* SunOS 4.1.1 cc rejects this. */
13450 char const *const *ccp;
13451 char **p;
13452 /* NEC SVR4.0.2 mips cc rejects this. */
13453 struct point {int x, y;};
13454 static struct point const zero = {0,0};
13455 /* AIX XL C 1.02.0.0 rejects this.
13456 It does not let you subtract one const X* pointer from another in an arm
13457 of an if-expression whose if-part is not a constant expression */
13458 const char *g = "string";
13459 ccp = &g + (g ? g-g : 0);
13460 /* HPUX 7.0 cc rejects these. */
13461 ++ccp;
13462 p = (char**) ccp;
13463 ccp = (char const *const *) p;
13464 { /* SCO 3.2v4 cc rejects this. */
13465 char *t;
13466 char const *s = 0 ? (char *) 0 : (char const *) 0;
13467
13468 *t++ = 0;
13469 }
13470 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13471 int x[] = {25, 17};
13472 const int *foo = &x[0];
13473 ++foo;
13474 }
13475 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13476 typedef const int *iptr;
13477 iptr p = 0;
13478 ++p;
13479 }
13480 { /* AIX XL C 1.02.0.0 rejects this saying
13481 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13482 struct s { int j; const int *ap[3]; };
13483 struct s *b; b->j = 5;
13484 }
13485 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13486 const int foo = 10;
13487 }
13488
13489 ; return 0; }
13490 EOF
13491 if { (eval echo configure:13492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13492 rm -rf conftest*
13493 ac_cv_c_const=yes
13494 else
13495 echo "configure: failed program was:" >&5
13496 cat conftest.$ac_ext >&5
13497 rm -rf conftest*
13498 ac_cv_c_const=no
13499 fi
13500 rm -f conftest*
13501 fi
13502
13503 echo "$ac_t""$ac_cv_c_const" 1>&6
13504 if test $ac_cv_c_const = no; then
13505 cat >> confdefs.h <<\EOF
13506 #define const
13507 EOF
13508
13509 fi
13510
13511 echo $ac_n "checking for inline""... $ac_c" 1>&6
13512 echo "configure:13513: checking for inline" >&5
13513 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
13514 echo $ac_n "(cached) $ac_c" 1>&6
13515 else
13516 ac_cv_c_inline=no
13517 for ac_kw in inline __inline__ __inline; do
13518 cat > conftest.$ac_ext <<EOF
13519 #line 13520 "configure"
13520 #include "confdefs.h"
13521
13522 int main() {
13523 } $ac_kw foo() {
13524 ; return 0; }
13525 EOF
13526 if { (eval echo configure:13527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13527 rm -rf conftest*
13528 ac_cv_c_inline=$ac_kw; break
13529 else
13530 echo "configure: failed program was:" >&5
13531 cat conftest.$ac_ext >&5
13532 fi
13533 rm -f conftest*
13534 done
13535
13536 fi
13537
13538 echo "$ac_t""$ac_cv_c_inline" 1>&6
13539 case "$ac_cv_c_inline" in
13540 inline | yes) ;;
13541 no) cat >> confdefs.h <<\EOF
13542 #define inline
13543 EOF
13544 ;;
13545 *) cat >> confdefs.h <<EOF
13546 #define inline $ac_cv_c_inline
13547 EOF
13548 ;;
13549 esac
13550
13551
13552 echo $ac_n "checking size of char""... $ac_c" 1>&6
13553 echo "configure:13554: checking size of char" >&5
13554 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
13555 echo $ac_n "(cached) $ac_c" 1>&6
13556 else
13557 if test "$cross_compiling" = yes; then
13558 ac_cv_sizeof_char=1
13559 else
13560 cat > conftest.$ac_ext <<EOF
13561 #line 13562 "configure"
13562 #include "confdefs.h"
13563 #include <stdio.h>
13564 main()
13565 {
13566 FILE *f=fopen("conftestval", "w");
13567 if (!f) exit(1);
13568 fprintf(f, "%d\n", sizeof(char));
13569 exit(0);
13570 }
13571 EOF
13572 if { (eval echo configure:13573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13573 then
13574 ac_cv_sizeof_char=`cat conftestval`
13575 else
13576 echo "configure: failed program was:" >&5
13577 cat conftest.$ac_ext >&5
13578 rm -fr conftest*
13579 ac_cv_sizeof_char=0
13580 fi
13581 rm -fr conftest*
13582 fi
13583
13584 fi
13585 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
13586 cat >> confdefs.h <<EOF
13587 #define SIZEOF_CHAR $ac_cv_sizeof_char
13588 EOF
13589
13590
13591 echo $ac_n "checking size of short""... $ac_c" 1>&6
13592 echo "configure:13593: checking size of short" >&5
13593 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
13594 echo $ac_n "(cached) $ac_c" 1>&6
13595 else
13596 if test "$cross_compiling" = yes; then
13597 ac_cv_sizeof_short=2
13598 else
13599 cat > conftest.$ac_ext <<EOF
13600 #line 13601 "configure"
13601 #include "confdefs.h"
13602 #include <stdio.h>
13603 main()
13604 {
13605 FILE *f=fopen("conftestval", "w");
13606 if (!f) exit(1);
13607 fprintf(f, "%d\n", sizeof(short));
13608 exit(0);
13609 }
13610 EOF
13611 if { (eval echo configure:13612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13612 then
13613 ac_cv_sizeof_short=`cat conftestval`
13614 else
13615 echo "configure: failed program was:" >&5
13616 cat conftest.$ac_ext >&5
13617 rm -fr conftest*
13618 ac_cv_sizeof_short=0
13619 fi
13620 rm -fr conftest*
13621 fi
13622
13623 fi
13624 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
13625 cat >> confdefs.h <<EOF
13626 #define SIZEOF_SHORT $ac_cv_sizeof_short
13627 EOF
13628
13629
13630 echo $ac_n "checking size of int *""... $ac_c" 1>&6
13631 echo "configure:13632: checking size of int *" >&5
13632 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
13633 echo $ac_n "(cached) $ac_c" 1>&6
13634 else
13635 if test "$cross_compiling" = yes; then
13636 ac_cv_sizeof_int_p=4
13637 else
13638 cat > conftest.$ac_ext <<EOF
13639 #line 13640 "configure"
13640 #include "confdefs.h"
13641 #include <stdio.h>
13642 main()
13643 {
13644 FILE *f=fopen("conftestval", "w");
13645 if (!f) exit(1);
13646 fprintf(f, "%d\n", sizeof(int *));
13647 exit(0);
13648 }
13649 EOF
13650 if { (eval echo configure:13651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13651 then
13652 ac_cv_sizeof_int_p=`cat conftestval`
13653 else
13654 echo "configure: failed program was:" >&5
13655 cat conftest.$ac_ext >&5
13656 rm -fr conftest*
13657 ac_cv_sizeof_int_p=0
13658 fi
13659 rm -fr conftest*
13660 fi
13661
13662 fi
13663 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
13664 cat >> confdefs.h <<EOF
13665 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
13666 EOF
13667
13668
13669 echo $ac_n "checking size of int""... $ac_c" 1>&6
13670 echo "configure:13671: checking size of int" >&5
13671 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
13672 echo $ac_n "(cached) $ac_c" 1>&6
13673 else
13674 if test "$cross_compiling" = yes; then
13675 ac_cv_sizeof_int=4
13676 else
13677 cat > conftest.$ac_ext <<EOF
13678 #line 13679 "configure"
13679 #include "confdefs.h"
13680 #include <stdio.h>
13681 main()
13682 {
13683 FILE *f=fopen("conftestval", "w");
13684 if (!f) exit(1);
13685 fprintf(f, "%d\n", sizeof(int));
13686 exit(0);
13687 }
13688 EOF
13689 if { (eval echo configure:13690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13690 then
13691 ac_cv_sizeof_int=`cat conftestval`
13692 else
13693 echo "configure: failed program was:" >&5
13694 cat conftest.$ac_ext >&5
13695 rm -fr conftest*
13696 ac_cv_sizeof_int=0
13697 fi
13698 rm -fr conftest*
13699 fi
13700
13701 fi
13702 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
13703 cat >> confdefs.h <<EOF
13704 #define SIZEOF_INT $ac_cv_sizeof_int
13705 EOF
13706
13707
13708 echo $ac_n "checking size of long""... $ac_c" 1>&6
13709 echo "configure:13710: checking size of long" >&5
13710 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
13711 echo $ac_n "(cached) $ac_c" 1>&6
13712 else
13713 if test "$cross_compiling" = yes; then
13714 ac_cv_sizeof_long=4
13715 else
13716 cat > conftest.$ac_ext <<EOF
13717 #line 13718 "configure"
13718 #include "confdefs.h"
13719 #include <stdio.h>
13720 main()
13721 {
13722 FILE *f=fopen("conftestval", "w");
13723 if (!f) exit(1);
13724 fprintf(f, "%d\n", sizeof(long));
13725 exit(0);
13726 }
13727 EOF
13728 if { (eval echo configure:13729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13729 then
13730 ac_cv_sizeof_long=`cat conftestval`
13731 else
13732 echo "configure: failed program was:" >&5
13733 cat conftest.$ac_ext >&5
13734 rm -fr conftest*
13735 ac_cv_sizeof_long=0
13736 fi
13737 rm -fr conftest*
13738 fi
13739
13740 fi
13741 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
13742 cat >> confdefs.h <<EOF
13743 #define SIZEOF_LONG $ac_cv_sizeof_long
13744 EOF
13745
13746
13747 echo $ac_n "checking size of long long""... $ac_c" 1>&6
13748 echo "configure:13749: checking size of long long" >&5
13749 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
13750 echo $ac_n "(cached) $ac_c" 1>&6
13751 else
13752 if test "$cross_compiling" = yes; then
13753 ac_cv_sizeof_long_long=0
13754 else
13755 cat > conftest.$ac_ext <<EOF
13756 #line 13757 "configure"
13757 #include "confdefs.h"
13758 #include <stdio.h>
13759 main()
13760 {
13761 FILE *f=fopen("conftestval", "w");
13762 if (!f) exit(1);
13763 fprintf(f, "%d\n", sizeof(long long));
13764 exit(0);
13765 }
13766 EOF
13767 if { (eval echo configure:13768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13768 then
13769 ac_cv_sizeof_long_long=`cat conftestval`
13770 else
13771 echo "configure: failed program was:" >&5
13772 cat conftest.$ac_ext >&5
13773 rm -fr conftest*
13774 ac_cv_sizeof_long_long=0
13775 fi
13776 rm -fr conftest*
13777 fi
13778
13779 fi
13780 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
13781 cat >> confdefs.h <<EOF
13782 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13783 EOF
13784
13785
13786
13787 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
13788 echo "configure:13789: checking size of wchar_t" >&5
13789 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
13790 echo $ac_n "(cached) $ac_c" 1>&6
13791 else
13792
13793 if test "$cross_compiling" = yes; then
13794 wx_cv_sizeof_wchar_t=4
13795
13796 else
13797 cat > conftest.$ac_ext <<EOF
13798 #line 13799 "configure"
13799 #include "confdefs.h"
13800
13801 #ifdef HAVE_WCHAR_H
13802 # ifdef __CYGWIN__
13803 # include <stddef.h>
13804 # endif
13805 # include <wchar.h>
13806 #endif
13807 #ifdef HAVE_STDLIB_H
13808 # include <stdlib.h>
13809 #endif
13810 #include <stdio.h>
13811 int main()
13812 {
13813 FILE *f=fopen("conftestval", "w");
13814 if (!f) exit(1);
13815 fprintf(f, "%i", sizeof(wchar_t));
13816 exit(0);
13817 }
13818
13819 EOF
13820 if { (eval echo configure:13821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13821 then
13822 wx_cv_sizeof_wchar_t=`cat conftestval`
13823 else
13824 echo "configure: failed program was:" >&5
13825 cat conftest.$ac_ext >&5
13826 rm -fr conftest*
13827 wx_cv_sizeof_wchar_t=0
13828 fi
13829 rm -fr conftest*
13830 fi
13831
13832
13833 fi
13834
13835 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
13836
13837 cat >> confdefs.h <<EOF
13838 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
13839 EOF
13840
13841
13842 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
13843 echo "configure:13844: checking whether byte ordering is bigendian" >&5
13844 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
13845 echo $ac_n "(cached) $ac_c" 1>&6
13846 else
13847 ac_cv_c_bigendian=unknown
13848 # See if sys/param.h defines the BYTE_ORDER macro.
13849 cat > conftest.$ac_ext <<EOF
13850 #line 13851 "configure"
13851 #include "confdefs.h"
13852 #include <sys/types.h>
13853 #include <sys/param.h>
13854 int main() {
13855
13856 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13857 bogus endian macros
13858 #endif
13859 ; return 0; }
13860 EOF
13861 if { (eval echo configure:13862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13862 rm -rf conftest*
13863 # It does; now see whether it defined to BIG_ENDIAN or not.
13864 cat > conftest.$ac_ext <<EOF
13865 #line 13866 "configure"
13866 #include "confdefs.h"
13867 #include <sys/types.h>
13868 #include <sys/param.h>
13869 int main() {
13870
13871 #if BYTE_ORDER != BIG_ENDIAN
13872 not big endian
13873 #endif
13874 ; return 0; }
13875 EOF
13876 if { (eval echo configure:13877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13877 rm -rf conftest*
13878 ac_cv_c_bigendian=yes
13879 else
13880 echo "configure: failed program was:" >&5
13881 cat conftest.$ac_ext >&5
13882 rm -rf conftest*
13883 ac_cv_c_bigendian=no
13884 fi
13885 rm -f conftest*
13886 else
13887 echo "configure: failed program was:" >&5
13888 cat conftest.$ac_ext >&5
13889 fi
13890 rm -f conftest*
13891 if test $ac_cv_c_bigendian = unknown; then
13892 if test "$cross_compiling" = yes; then
13893 ac_cv_c_bigendian=unknown
13894 else
13895 cat > conftest.$ac_ext <<EOF
13896 #line 13897 "configure"
13897 #include "confdefs.h"
13898 main () {
13899 /* Are we little or big endian? From Harbison&Steele. */
13900 union
13901 {
13902 long l;
13903 char c[sizeof (long)];
13904 } u;
13905 u.l = 1;
13906 exit (u.c[sizeof (long) - 1] == 1);
13907 }
13908 EOF
13909 if { (eval echo configure:13910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13910 then
13911 ac_cv_c_bigendian=no
13912 else
13913 echo "configure: failed program was:" >&5
13914 cat conftest.$ac_ext >&5
13915 rm -fr conftest*
13916 ac_cv_c_bigendian=yes
13917 fi
13918 rm -fr conftest*
13919 fi
13920
13921 fi
13922 fi
13923
13924 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
13925 if test $ac_cv_c_bigendian = unknown; then
13926 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
13927 fi
13928 if test $ac_cv_c_bigendian = yes; then
13929 cat >> confdefs.h <<\EOF
13930 #define WORDS_BIGENDIAN 1
13931 EOF
13932
13933 fi
13934
13935
13936 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
13937 echo "configure:13938: checking how to run the C++ preprocessor" >&5
13938 if test -z "$CXXCPP"; then
13939 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
13940 echo $ac_n "(cached) $ac_c" 1>&6
13941 else
13942 ac_ext=C
13943 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13944 ac_cpp='$CXXCPP $CPPFLAGS'
13945 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13946 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13947 cross_compiling=$ac_cv_prog_cxx_cross
13948 CXXCPP="${CXX-g++} -E"
13949 cat > conftest.$ac_ext <<EOF
13950 #line 13951 "configure"
13951 #include "confdefs.h"
13952 #include <stdlib.h>
13953 EOF
13954 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13955 { (eval echo configure:13956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13956 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13957 if test -z "$ac_err"; then
13958 :
13959 else
13960 echo "$ac_err" >&5
13961 echo "configure: failed program was:" >&5
13962 cat conftest.$ac_ext >&5
13963 rm -rf conftest*
13964 CXXCPP=/lib/cpp
13965 fi
13966 rm -f conftest*
13967 ac_cv_prog_CXXCPP="$CXXCPP"
13968 ac_ext=C
13969 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13970 ac_cpp='$CXXCPP $CPPFLAGS'
13971 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13972 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13973 cross_compiling=$ac_cv_prog_cxx_cross
13974 fi
13975 fi
13976 CXXCPP="$ac_cv_prog_CXXCPP"
13977 echo "$ac_t""$CXXCPP" 1>&6
13978
13979
13980 if test "$cross_compiling" = "yes"; then
13981 cat >> confdefs.h <<\EOF
13982 #define wxUSE_IOSTREAMH 1
13983 EOF
13984
13985 else
13986
13987 ac_ext=C
13988 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13989 ac_cpp='$CXXCPP $CPPFLAGS'
13990 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13991 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13992 cross_compiling=$ac_cv_prog_cxx_cross
13993
13994
13995 for ac_hdr in iostream
13996 do
13997 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13998 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13999 echo "configure:14000: checking for $ac_hdr" >&5
14000 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14001 echo $ac_n "(cached) $ac_c" 1>&6
14002 else
14003 cat > conftest.$ac_ext <<EOF
14004 #line 14005 "configure"
14005 #include "confdefs.h"
14006 #include <$ac_hdr>
14007 EOF
14008 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14009 { (eval echo configure:14010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14010 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14011 if test -z "$ac_err"; then
14012 rm -rf conftest*
14013 eval "ac_cv_header_$ac_safe=yes"
14014 else
14015 echo "$ac_err" >&5
14016 echo "configure: failed program was:" >&5
14017 cat conftest.$ac_ext >&5
14018 rm -rf conftest*
14019 eval "ac_cv_header_$ac_safe=no"
14020 fi
14021 rm -f conftest*
14022 fi
14023 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14024 echo "$ac_t""yes" 1>&6
14025 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14026 cat >> confdefs.h <<EOF
14027 #define $ac_tr_hdr 1
14028 EOF
14029
14030 else
14031 echo "$ac_t""no" 1>&6
14032 fi
14033 done
14034
14035
14036 if test "$ac_cv_header_iostream" = "yes" ; then
14037 :
14038 else
14039 cat >> confdefs.h <<\EOF
14040 #define wxUSE_IOSTREAMH 1
14041 EOF
14042
14043 fi
14044
14045 ac_ext=c
14046 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14047 ac_cpp='$CPP $CPPFLAGS'
14048 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14049 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14050 cross_compiling=$ac_cv_prog_cc_cross
14051
14052 fi
14053
14054
14055
14056 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
14057 echo "configure:14058: checking if C++ compiler supports bool" >&5
14058 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
14059 echo $ac_n "(cached) $ac_c" 1>&6
14060 else
14061
14062
14063 ac_ext=C
14064 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14065 ac_cpp='$CXXCPP $CPPFLAGS'
14066 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14067 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14068 cross_compiling=$ac_cv_prog_cxx_cross
14069
14070
14071 cat > conftest.$ac_ext <<EOF
14072 #line 14073 "configure"
14073 #include "confdefs.h"
14074
14075
14076 int main() {
14077
14078 bool b = true;
14079
14080 return 0;
14081
14082 ; return 0; }
14083 EOF
14084 if { (eval echo configure:14085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14085 rm -rf conftest*
14086
14087 wx_cv_cpp_bool=yes
14088
14089 else
14090 echo "configure: failed program was:" >&5
14091 cat conftest.$ac_ext >&5
14092 rm -rf conftest*
14093
14094 wx_cv_cpp_bool=no
14095
14096
14097 fi
14098 rm -f conftest*
14099
14100 ac_ext=c
14101 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14102 ac_cpp='$CPP $CPPFLAGS'
14103 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14104 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14105 cross_compiling=$ac_cv_prog_cc_cross
14106
14107
14108 fi
14109
14110 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
14111
14112 if test "$wx_cv_cpp_bool" = "yes"; then
14113 cat >> confdefs.h <<\EOF
14114 #define HAVE_BOOL 1
14115 EOF
14116
14117 fi
14118
14119
14120
14121 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
14122 echo "configure:14123: checking for wcslen in -lc" >&5
14123 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
14124 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14125 echo $ac_n "(cached) $ac_c" 1>&6
14126 else
14127 ac_save_LIBS="$LIBS"
14128 LIBS="-lc $LIBS"
14129 cat > conftest.$ac_ext <<EOF
14130 #line 14131 "configure"
14131 #include "confdefs.h"
14132 /* Override any gcc2 internal prototype to avoid an error. */
14133 /* We use char because int might match the return type of a gcc2
14134 builtin and then its argument prototype would still apply. */
14135 char wcslen();
14136
14137 int main() {
14138 wcslen()
14139 ; return 0; }
14140 EOF
14141 if { (eval echo configure:14142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14142 rm -rf conftest*
14143 eval "ac_cv_lib_$ac_lib_var=yes"
14144 else
14145 echo "configure: failed program was:" >&5
14146 cat conftest.$ac_ext >&5
14147 rm -rf conftest*
14148 eval "ac_cv_lib_$ac_lib_var=no"
14149 fi
14150 rm -f conftest*
14151 LIBS="$ac_save_LIBS"
14152
14153 fi
14154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14155 echo "$ac_t""yes" 1>&6
14156
14157 cat >> confdefs.h <<\EOF
14158 #define HAVE_WCSLEN 1
14159 EOF
14160
14161 WCHAR_LINK=
14162
14163 else
14164 echo "$ac_t""no" 1>&6
14165
14166 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
14167 echo "configure:14168: checking for wcslen in -lw" >&5
14168 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
14169 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14170 echo $ac_n "(cached) $ac_c" 1>&6
14171 else
14172 ac_save_LIBS="$LIBS"
14173 LIBS="-lw $LIBS"
14174 cat > conftest.$ac_ext <<EOF
14175 #line 14176 "configure"
14176 #include "confdefs.h"
14177 /* Override any gcc2 internal prototype to avoid an error. */
14178 /* We use char because int might match the return type of a gcc2
14179 builtin and then its argument prototype would still apply. */
14180 char wcslen();
14181
14182 int main() {
14183 wcslen()
14184 ; return 0; }
14185 EOF
14186 if { (eval echo configure:14187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14187 rm -rf conftest*
14188 eval "ac_cv_lib_$ac_lib_var=yes"
14189 else
14190 echo "configure: failed program was:" >&5
14191 cat conftest.$ac_ext >&5
14192 rm -rf conftest*
14193 eval "ac_cv_lib_$ac_lib_var=no"
14194 fi
14195 rm -f conftest*
14196 LIBS="$ac_save_LIBS"
14197
14198 fi
14199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14200 echo "$ac_t""yes" 1>&6
14201
14202 cat >> confdefs.h <<\EOF
14203 #define HAVE_WCSLEN 1
14204 EOF
14205
14206 WCHAR_LINK=" -lw"
14207
14208 else
14209 echo "$ac_t""no" 1>&6
14210
14211 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
14212 echo "configure:14213: checking for wcslen in -lmsvcrt" >&5
14213 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
14214 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14215 echo $ac_n "(cached) $ac_c" 1>&6
14216 else
14217 ac_save_LIBS="$LIBS"
14218 LIBS="-lmsvcrt $LIBS"
14219 cat > conftest.$ac_ext <<EOF
14220 #line 14221 "configure"
14221 #include "confdefs.h"
14222 /* Override any gcc2 internal prototype to avoid an error. */
14223 /* We use char because int might match the return type of a gcc2
14224 builtin and then its argument prototype would still apply. */
14225 char wcslen();
14226
14227 int main() {
14228 wcslen()
14229 ; return 0; }
14230 EOF
14231 if { (eval echo configure:14232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14232 rm -rf conftest*
14233 eval "ac_cv_lib_$ac_lib_var=yes"
14234 else
14235 echo "configure: failed program was:" >&5
14236 cat conftest.$ac_ext >&5
14237 rm -rf conftest*
14238 eval "ac_cv_lib_$ac_lib_var=no"
14239 fi
14240 rm -f conftest*
14241 LIBS="$ac_save_LIBS"
14242
14243 fi
14244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14245 echo "$ac_t""yes" 1>&6
14246
14247 cat >> confdefs.h <<\EOF
14248 #define HAVE_WCSLEN 1
14249 EOF
14250
14251 WCHAR_LINK=
14252
14253 else
14254 echo "$ac_t""no" 1>&6
14255 fi
14256
14257
14258 fi
14259
14260
14261 fi
14262
14263
14264 for ac_func in wcsrtombs
14265 do
14266 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14267 echo "configure:14268: checking for $ac_func" >&5
14268 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14269 echo $ac_n "(cached) $ac_c" 1>&6
14270 else
14271 cat > conftest.$ac_ext <<EOF
14272 #line 14273 "configure"
14273 #include "confdefs.h"
14274 /* System header to define __stub macros and hopefully few prototypes,
14275 which can conflict with char $ac_func(); below. */
14276 #include <assert.h>
14277 /* Override any gcc2 internal prototype to avoid an error. */
14278 /* We use char because int might match the return type of a gcc2
14279 builtin and then its argument prototype would still apply. */
14280 char $ac_func();
14281
14282 int main() {
14283
14284 /* The GNU C library defines this for functions which it implements
14285 to always fail with ENOSYS. Some functions are actually named
14286 something starting with __ and the normal name is an alias. */
14287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14288 choke me
14289 #else
14290 $ac_func();
14291 #endif
14292
14293 ; return 0; }
14294 EOF
14295 if { (eval echo configure:14296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14296 rm -rf conftest*
14297 eval "ac_cv_func_$ac_func=yes"
14298 else
14299 echo "configure: failed program was:" >&5
14300 cat conftest.$ac_ext >&5
14301 rm -rf conftest*
14302 eval "ac_cv_func_$ac_func=no"
14303 fi
14304 rm -f conftest*
14305 fi
14306
14307 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14308 echo "$ac_t""yes" 1>&6
14309 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14310 cat >> confdefs.h <<EOF
14311 #define $ac_tr_func 1
14312 EOF
14313
14314 else
14315 echo "$ac_t""no" 1>&6
14316 fi
14317 done
14318
14319
14320 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
14321 echo "configure:14322: checking for vprintf" >&5
14322 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
14323 echo $ac_n "(cached) $ac_c" 1>&6
14324 else
14325 cat > conftest.$ac_ext <<EOF
14326 #line 14327 "configure"
14327 #include "confdefs.h"
14328 /* System header to define __stub macros and hopefully few prototypes,
14329 which can conflict with char vprintf(); below. */
14330 #include <assert.h>
14331 /* Override any gcc2 internal prototype to avoid an error. */
14332 /* We use char because int might match the return type of a gcc2
14333 builtin and then its argument prototype would still apply. */
14334 char vprintf();
14335
14336 int main() {
14337
14338 /* The GNU C library defines this for functions which it implements
14339 to always fail with ENOSYS. Some functions are actually named
14340 something starting with __ and the normal name is an alias. */
14341 #if defined (__stub_vprintf) || defined (__stub___vprintf)
14342 choke me
14343 #else
14344 vprintf();
14345 #endif
14346
14347 ; return 0; }
14348 EOF
14349 if { (eval echo configure:14350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14350 rm -rf conftest*
14351 eval "ac_cv_func_vprintf=yes"
14352 else
14353 echo "configure: failed program was:" >&5
14354 cat conftest.$ac_ext >&5
14355 rm -rf conftest*
14356 eval "ac_cv_func_vprintf=no"
14357 fi
14358 rm -f conftest*
14359 fi
14360
14361 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
14362 echo "$ac_t""yes" 1>&6
14363 cat >> confdefs.h <<\EOF
14364 #define HAVE_VPRINTF 1
14365 EOF
14366
14367 else
14368 echo "$ac_t""no" 1>&6
14369 fi
14370
14371 if test "$ac_cv_func_vprintf" != yes; then
14372 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
14373 echo "configure:14374: checking for _doprnt" >&5
14374 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
14375 echo $ac_n "(cached) $ac_c" 1>&6
14376 else
14377 cat > conftest.$ac_ext <<EOF
14378 #line 14379 "configure"
14379 #include "confdefs.h"
14380 /* System header to define __stub macros and hopefully few prototypes,
14381 which can conflict with char _doprnt(); below. */
14382 #include <assert.h>
14383 /* Override any gcc2 internal prototype to avoid an error. */
14384 /* We use char because int might match the return type of a gcc2
14385 builtin and then its argument prototype would still apply. */
14386 char _doprnt();
14387
14388 int main() {
14389
14390 /* The GNU C library defines this for functions which it implements
14391 to always fail with ENOSYS. Some functions are actually named
14392 something starting with __ and the normal name is an alias. */
14393 #if defined (__stub__doprnt) || defined (__stub____doprnt)
14394 choke me
14395 #else
14396 _doprnt();
14397 #endif
14398
14399 ; return 0; }
14400 EOF
14401 if { (eval echo configure:14402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14402 rm -rf conftest*
14403 eval "ac_cv_func__doprnt=yes"
14404 else
14405 echo "configure: failed program was:" >&5
14406 cat conftest.$ac_ext >&5
14407 rm -rf conftest*
14408 eval "ac_cv_func__doprnt=no"
14409 fi
14410 rm -f conftest*
14411 fi
14412
14413 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
14414 echo "$ac_t""yes" 1>&6
14415 cat >> confdefs.h <<\EOF
14416 #define HAVE_DOPRNT 1
14417 EOF
14418
14419 else
14420 echo "$ac_t""no" 1>&6
14421 fi
14422
14423 fi
14424
14425
14426
14427
14428
14429
14430 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
14431 echo "configure:14432: checking for vsnprintf" >&5
14432 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
14433 echo $ac_n "(cached) $ac_c" 1>&6
14434 else
14435
14436 cat > conftest.$ac_ext <<EOF
14437 #line 14438 "configure"
14438 #include "confdefs.h"
14439
14440 #include <stdio.h>
14441 #include <stdarg.h>
14442
14443 int main() {
14444
14445 int wx_test_vsnprintf(const char *, ...);
14446
14447 wx_test_vsnprintf("%s");
14448 return 0;
14449 }
14450
14451 int wx_test_vsnprintf(const char *fmt, ...)
14452 {
14453 char *s;
14454
14455 va_list argp;
14456 va_start(argp, fmt);
14457 vsnprintf(s, 42, fmt, argp);
14458 va_end(argp);
14459
14460 ; return 0; }
14461 EOF
14462 if { (eval echo configure:14463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14463 rm -rf conftest*
14464
14465 wx_cv_func_vsnprintf=yes
14466
14467 else
14468 echo "configure: failed program was:" >&5
14469 cat conftest.$ac_ext >&5
14470 rm -rf conftest*
14471
14472 cat > conftest.$ac_ext <<EOF
14473 #line 14474 "configure"
14474 #include "confdefs.h"
14475
14476 #include <stdio.h>
14477 #include <stdarg.h>
14478
14479 int main() {
14480
14481 int wx_test_vsnprintf(const char *, ...);
14482
14483 wx_test_vsnprintf("%s");
14484 return 0;
14485 }
14486
14487 int wx_test_vsnprintf(const char *fmt, ...)
14488 {
14489 char *s;
14490
14491 va_list argp;
14492 va_start(argp, fmt);
14493 _vsnprintf(s, 42, fmt, argp);
14494 va_end(argp);
14495
14496 ; return 0; }
14497 EOF
14498 if { (eval echo configure:14499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14499 rm -rf conftest*
14500
14501 wx_cv_func_vsnprintf=yes
14502
14503 else
14504 echo "configure: failed program was:" >&5
14505 cat conftest.$ac_ext >&5
14506 rm -rf conftest*
14507
14508 wx_cv_func_vsnprintf=no
14509
14510 fi
14511 rm -f conftest*
14512
14513 fi
14514 rm -f conftest*
14515
14516 fi
14517
14518 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
14519
14520 if test "$wx_cv_func_vsnprintf" = yes; then
14521 cat >> confdefs.h <<\EOF
14522 #define HAVE_VSNPRINTF 1
14523 EOF
14524
14525 else
14526 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
14527 fi
14528
14529 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
14530 echo "configure:14531: checking for vsscanf" >&5
14531 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
14532 echo $ac_n "(cached) $ac_c" 1>&6
14533 else
14534
14535 cat > conftest.$ac_ext <<EOF
14536 #line 14537 "configure"
14537 #include "confdefs.h"
14538
14539 #include <stdio.h>
14540 #include <stdarg.h>
14541
14542 int main() {
14543
14544 int wx_test_vsscanf(const char *, ...);
14545
14546 wx_test_vsscanf("%d");
14547 return 0;
14548 }
14549
14550 int wx_test_vsscanf(const char *fmt, ...)
14551 {
14552 va_list argp;
14553 va_start(argp, fmt);
14554 vsscanf("42", fmt, argp);
14555 va_end(argp);
14556
14557 ; return 0; }
14558 EOF
14559 if { (eval echo configure:14560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14560 rm -rf conftest*
14561
14562 wx_cv_func_vsscanf=yes
14563
14564 else
14565 echo "configure: failed program was:" >&5
14566 cat conftest.$ac_ext >&5
14567 rm -rf conftest*
14568
14569 wx_cv_func_vsscanf=no
14570
14571 fi
14572 rm -f conftest*
14573
14574 fi
14575
14576 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
14577
14578 if test "$wx_cv_func_vsscanf" = yes; then
14579 cat >> confdefs.h <<\EOF
14580 #define HAVE_VSSCANF 1
14581 EOF
14582
14583 fi
14584
14585 if test "$TOOLKIT" != "MSW"; then
14586
14587
14588
14589 ac_ext=C
14590 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14591 ac_cpp='$CXXCPP $CPPFLAGS'
14592 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14593 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14594 cross_compiling=$ac_cv_prog_cxx_cross
14595
14596 echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
14597 echo "configure:14598: checking if iconv() takes char**" >&5
14598 if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
14599 echo $ac_n "(cached) $ac_c" 1>&6
14600 else
14601
14602 cat > conftest.$ac_ext <<EOF
14603 #line 14604 "configure"
14604 #include "confdefs.h"
14605 #include <iconv.h>
14606 int main() {
14607
14608 char **inbuf, **outbuf;
14609 iconv_t cd;
14610 size_t insz, outsz;
14611 iconv(cd, inbuf, &insz, outbuf, &outsz);
14612
14613 ; return 0; }
14614 EOF
14615 if { (eval echo configure:14616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14616 rm -rf conftest*
14617 wx_cv_iconv_takes_char=yes
14618 else
14619 echo "configure: failed program was:" >&5
14620 cat conftest.$ac_ext >&5
14621 rm -rf conftest*
14622 wx_cv_iconv_takes_char=no
14623 fi
14624 rm -f conftest*
14625
14626 fi
14627
14628 echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
14629 ac_ext=c
14630 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14631 ac_cpp='$CPP $CPPFLAGS'
14632 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14633 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14634 cross_compiling=$ac_cv_prog_cc_cross
14635
14636 if test "$wx_cv_iconv_takes_char" = yes ; then
14637 cat >> confdefs.h <<\EOF
14638 #define WX_ICONV_TAKES_CHAR 1
14639 EOF
14640
14641 fi
14642
14643
14644 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
14645 for ac_func in sigaction
14646 do
14647 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14648 echo "configure:14649: checking for $ac_func" >&5
14649 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14650 echo $ac_n "(cached) $ac_c" 1>&6
14651 else
14652 cat > conftest.$ac_ext <<EOF
14653 #line 14654 "configure"
14654 #include "confdefs.h"
14655 /* System header to define __stub macros and hopefully few prototypes,
14656 which can conflict with char $ac_func(); below. */
14657 #include <assert.h>
14658 /* Override any gcc2 internal prototype to avoid an error. */
14659 /* We use char because int might match the return type of a gcc2
14660 builtin and then its argument prototype would still apply. */
14661 char $ac_func();
14662
14663 int main() {
14664
14665 /* The GNU C library defines this for functions which it implements
14666 to always fail with ENOSYS. Some functions are actually named
14667 something starting with __ and the normal name is an alias. */
14668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14669 choke me
14670 #else
14671 $ac_func();
14672 #endif
14673
14674 ; return 0; }
14675 EOF
14676 if { (eval echo configure:14677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14677 rm -rf conftest*
14678 eval "ac_cv_func_$ac_func=yes"
14679 else
14680 echo "configure: failed program was:" >&5
14681 cat conftest.$ac_ext >&5
14682 rm -rf conftest*
14683 eval "ac_cv_func_$ac_func=no"
14684 fi
14685 rm -f conftest*
14686 fi
14687
14688 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14689 echo "$ac_t""yes" 1>&6
14690 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14691 cat >> confdefs.h <<EOF
14692 #define $ac_tr_func 1
14693 EOF
14694
14695 else
14696 echo "$ac_t""no" 1>&6
14697 fi
14698 done
14699
14700
14701 if test "$ac_cv_func_sigaction" = "no"; then
14702 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
14703 wxUSE_ON_FATAL_EXCEPTION=no
14704 fi
14705
14706 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
14707
14708 ac_ext=C
14709 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14710 ac_cpp='$CXXCPP $CPPFLAGS'
14711 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14712 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14713 cross_compiling=$ac_cv_prog_cxx_cross
14714
14715
14716 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
14717 echo "configure:14718: checking for sa_handler type" >&5
14718 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
14719 echo $ac_n "(cached) $ac_c" 1>&6
14720 else
14721
14722 cat > conftest.$ac_ext <<EOF
14723 #line 14724 "configure"
14724 #include "confdefs.h"
14725 #include <signal.h>
14726 int main() {
14727
14728 extern void testSigHandler(int);
14729
14730 struct sigaction sa;
14731 sa.sa_handler = testSigHandler;
14732
14733 ; return 0; }
14734 EOF
14735 if { (eval echo configure:14736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14736 rm -rf conftest*
14737
14738 wx_cv_type_sa_handler=int
14739
14740 else
14741 echo "configure: failed program was:" >&5
14742 cat conftest.$ac_ext >&5
14743 rm -rf conftest*
14744
14745 wx_cv_type_sa_handler=void
14746
14747 fi
14748 rm -f conftest*
14749
14750 fi
14751
14752 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
14753
14754 ac_ext=c
14755 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14756 ac_cpp='$CPP $CPPFLAGS'
14757 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14758 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14759 cross_compiling=$ac_cv_prog_cc_cross
14760
14761
14762 cat >> confdefs.h <<EOF
14763 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
14764 EOF
14765
14766 fi
14767 fi
14768
14769 for ac_func in vfork
14770 do
14771 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14772 echo "configure:14773: checking for $ac_func" >&5
14773 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14774 echo $ac_n "(cached) $ac_c" 1>&6
14775 else
14776 cat > conftest.$ac_ext <<EOF
14777 #line 14778 "configure"
14778 #include "confdefs.h"
14779 /* System header to define __stub macros and hopefully few prototypes,
14780 which can conflict with char $ac_func(); below. */
14781 #include <assert.h>
14782 /* Override any gcc2 internal prototype to avoid an error. */
14783 /* We use char because int might match the return type of a gcc2
14784 builtin and then its argument prototype would still apply. */
14785 char $ac_func();
14786
14787 int main() {
14788
14789 /* The GNU C library defines this for functions which it implements
14790 to always fail with ENOSYS. Some functions are actually named
14791 something starting with __ and the normal name is an alias. */
14792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14793 choke me
14794 #else
14795 $ac_func();
14796 #endif
14797
14798 ; return 0; }
14799 EOF
14800 if { (eval echo configure:14801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14801 rm -rf conftest*
14802 eval "ac_cv_func_$ac_func=yes"
14803 else
14804 echo "configure: failed program was:" >&5
14805 cat conftest.$ac_ext >&5
14806 rm -rf conftest*
14807 eval "ac_cv_func_$ac_func=no"
14808 fi
14809 rm -f conftest*
14810 fi
14811
14812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14813 echo "$ac_t""yes" 1>&6
14814 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14815 cat >> confdefs.h <<EOF
14816 #define $ac_tr_func 1
14817 EOF
14818
14819 else
14820 echo "$ac_t""no" 1>&6
14821 fi
14822 done
14823
14824
14825 for ac_func in mkstemp mktemp
14826 do
14827 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14828 echo "configure:14829: checking for $ac_func" >&5
14829 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14830 echo $ac_n "(cached) $ac_c" 1>&6
14831 else
14832 cat > conftest.$ac_ext <<EOF
14833 #line 14834 "configure"
14834 #include "confdefs.h"
14835 /* System header to define __stub macros and hopefully few prototypes,
14836 which can conflict with char $ac_func(); below. */
14837 #include <assert.h>
14838 /* Override any gcc2 internal prototype to avoid an error. */
14839 /* We use char because int might match the return type of a gcc2
14840 builtin and then its argument prototype would still apply. */
14841 char $ac_func();
14842
14843 int main() {
14844
14845 /* The GNU C library defines this for functions which it implements
14846 to always fail with ENOSYS. Some functions are actually named
14847 something starting with __ and the normal name is an alias. */
14848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14849 choke me
14850 #else
14851 $ac_func();
14852 #endif
14853
14854 ; return 0; }
14855 EOF
14856 if { (eval echo configure:14857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14857 rm -rf conftest*
14858 eval "ac_cv_func_$ac_func=yes"
14859 else
14860 echo "configure: failed program was:" >&5
14861 cat conftest.$ac_ext >&5
14862 rm -rf conftest*
14863 eval "ac_cv_func_$ac_func=no"
14864 fi
14865 rm -f conftest*
14866 fi
14867
14868 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14869 echo "$ac_t""yes" 1>&6
14870 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14871 cat >> confdefs.h <<EOF
14872 #define $ac_tr_func 1
14873 EOF
14874 break
14875 else
14876 echo "$ac_t""no" 1>&6
14877 fi
14878 done
14879
14880
14881 echo $ac_n "checking for statfs""... $ac_c" 1>&6
14882 echo "configure:14883: checking for statfs" >&5
14883 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
14884 echo $ac_n "(cached) $ac_c" 1>&6
14885 else
14886 cat > conftest.$ac_ext <<EOF
14887 #line 14888 "configure"
14888 #include "confdefs.h"
14889
14890 #if defined(__BSD__)
14891 #include <sys/param.h>
14892 #include <sys/mount.h>
14893 #else
14894 #include <sys/vfs.h>
14895 #endif
14896
14897 int main() {
14898
14899 long l;
14900 struct statfs fs;
14901 statfs("/", &fs);
14902 l = fs.f_bsize;
14903 l += fs.f_blocks;
14904 l += fs.f_bavail;
14905
14906 ; return 0; }
14907 EOF
14908 if { (eval echo configure:14909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14909 rm -rf conftest*
14910
14911 wx_cv_func_statfs=yes
14912
14913 else
14914 echo "configure: failed program was:" >&5
14915 cat conftest.$ac_ext >&5
14916 rm -rf conftest*
14917
14918 wx_cv_func_statfs=no
14919
14920
14921 fi
14922 rm -f conftest*
14923
14924 fi
14925
14926 echo "$ac_t""$wx_cv_func_statfs" 1>&6
14927
14928 if test "$wx_cv_func_statfs" = "yes"; then
14929 cat >> confdefs.h <<\EOF
14930 #define HAVE_STATFS 1
14931 EOF
14932
14933 else
14934 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
14935 echo "configure:14936: checking for statvfs" >&5
14936 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
14937 echo $ac_n "(cached) $ac_c" 1>&6
14938 else
14939 cat > conftest.$ac_ext <<EOF
14940 #line 14941 "configure"
14941 #include "confdefs.h"
14942
14943 #include <sys/statvfs.h>
14944
14945 int main() {
14946
14947 long l;
14948 struct statvfs fs;
14949 statvfs("/", &fs);
14950 l = fs.f_bsize;
14951 l += fs.f_blocks;
14952 l += fs.f_bavail;
14953
14954 ; return 0; }
14955 EOF
14956 if { (eval echo configure:14957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14957 rm -rf conftest*
14958
14959 wx_cv_func_statvfs=yes
14960
14961 else
14962 echo "configure: failed program was:" >&5
14963 cat conftest.$ac_ext >&5
14964 rm -rf conftest*
14965
14966 wx_cv_func_statvfs=no
14967
14968
14969 fi
14970 rm -f conftest*
14971
14972 fi
14973
14974 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
14975
14976 if test "$wx_cv_func_statvfs" = "yes"; then
14977 cat >> confdefs.h <<\EOF
14978 #define HAVE_STATVFS 1
14979 EOF
14980
14981 else
14982 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
14983 fi
14984 fi
14985
14986 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
14987 for ac_func in fcntl flock
14988 do
14989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14990 echo "configure:14991: checking for $ac_func" >&5
14991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14992 echo $ac_n "(cached) $ac_c" 1>&6
14993 else
14994 cat > conftest.$ac_ext <<EOF
14995 #line 14996 "configure"
14996 #include "confdefs.h"
14997 /* System header to define __stub macros and hopefully few prototypes,
14998 which can conflict with char $ac_func(); below. */
14999 #include <assert.h>
15000 /* Override any gcc2 internal prototype to avoid an error. */
15001 /* We use char because int might match the return type of a gcc2
15002 builtin and then its argument prototype would still apply. */
15003 char $ac_func();
15004
15005 int main() {
15006
15007 /* The GNU C library defines this for functions which it implements
15008 to always fail with ENOSYS. Some functions are actually named
15009 something starting with __ and the normal name is an alias. */
15010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15011 choke me
15012 #else
15013 $ac_func();
15014 #endif
15015
15016 ; return 0; }
15017 EOF
15018 if { (eval echo configure:15019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15019 rm -rf conftest*
15020 eval "ac_cv_func_$ac_func=yes"
15021 else
15022 echo "configure: failed program was:" >&5
15023 cat conftest.$ac_ext >&5
15024 rm -rf conftest*
15025 eval "ac_cv_func_$ac_func=no"
15026 fi
15027 rm -f conftest*
15028 fi
15029
15030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15031 echo "$ac_t""yes" 1>&6
15032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15033 cat >> confdefs.h <<EOF
15034 #define $ac_tr_func 1
15035 EOF
15036 break
15037 else
15038 echo "$ac_t""no" 1>&6
15039 fi
15040 done
15041
15042
15043 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
15044 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
15045 wxUSE_SNGLINST_CHECKER=no
15046 fi
15047 fi
15048
15049 for ac_func in timegm
15050 do
15051 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15052 echo "configure:15053: checking for $ac_func" >&5
15053 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15054 echo $ac_n "(cached) $ac_c" 1>&6
15055 else
15056 cat > conftest.$ac_ext <<EOF
15057 #line 15058 "configure"
15058 #include "confdefs.h"
15059 /* System header to define __stub macros and hopefully few prototypes,
15060 which can conflict with char $ac_func(); below. */
15061 #include <assert.h>
15062 /* Override any gcc2 internal prototype to avoid an error. */
15063 /* We use char because int might match the return type of a gcc2
15064 builtin and then its argument prototype would still apply. */
15065 char $ac_func();
15066
15067 int main() {
15068
15069 /* The GNU C library defines this for functions which it implements
15070 to always fail with ENOSYS. Some functions are actually named
15071 something starting with __ and the normal name is an alias. */
15072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15073 choke me
15074 #else
15075 $ac_func();
15076 #endif
15077
15078 ; return 0; }
15079 EOF
15080 if { (eval echo configure:15081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15081 rm -rf conftest*
15082 eval "ac_cv_func_$ac_func=yes"
15083 else
15084 echo "configure: failed program was:" >&5
15085 cat conftest.$ac_ext >&5
15086 rm -rf conftest*
15087 eval "ac_cv_func_$ac_func=no"
15088 fi
15089 rm -f conftest*
15090 fi
15091
15092 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15093 echo "$ac_t""yes" 1>&6
15094 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15095 cat >> confdefs.h <<EOF
15096 #define $ac_tr_func 1
15097 EOF
15098
15099 else
15100 echo "$ac_t""no" 1>&6
15101 fi
15102 done
15103
15104
15105 for ac_func in putenv setenv
15106 do
15107 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15108 echo "configure:15109: checking for $ac_func" >&5
15109 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15110 echo $ac_n "(cached) $ac_c" 1>&6
15111 else
15112 cat > conftest.$ac_ext <<EOF
15113 #line 15114 "configure"
15114 #include "confdefs.h"
15115 /* System header to define __stub macros and hopefully few prototypes,
15116 which can conflict with char $ac_func(); below. */
15117 #include <assert.h>
15118 /* Override any gcc2 internal prototype to avoid an error. */
15119 /* We use char because int might match the return type of a gcc2
15120 builtin and then its argument prototype would still apply. */
15121 char $ac_func();
15122
15123 int main() {
15124
15125 /* The GNU C library defines this for functions which it implements
15126 to always fail with ENOSYS. Some functions are actually named
15127 something starting with __ and the normal name is an alias. */
15128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15129 choke me
15130 #else
15131 $ac_func();
15132 #endif
15133
15134 ; return 0; }
15135 EOF
15136 if { (eval echo configure:15137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15137 rm -rf conftest*
15138 eval "ac_cv_func_$ac_func=yes"
15139 else
15140 echo "configure: failed program was:" >&5
15141 cat conftest.$ac_ext >&5
15142 rm -rf conftest*
15143 eval "ac_cv_func_$ac_func=no"
15144 fi
15145 rm -f conftest*
15146 fi
15147
15148 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15149 echo "$ac_t""yes" 1>&6
15150 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15151 cat >> confdefs.h <<EOF
15152 #define $ac_tr_func 1
15153 EOF
15154 break
15155 else
15156 echo "$ac_t""no" 1>&6
15157 fi
15158 done
15159
15160
15161 HAVE_SOME_SLEEP_FUNC=0
15162 if test "$USE_BEOS" = 1; then
15163 cat >> confdefs.h <<\EOF
15164 #define HAVE_SLEEP 1
15165 EOF
15166
15167 HAVE_SOME_SLEEP_FUNC=1
15168 fi
15169
15170 if test "$USE_DARWIN" = 1; then
15171 cat >> confdefs.h <<\EOF
15172 #define HAVE_USLEEP 1
15173 EOF
15174
15175 HAVE_SOME_SLEEP_FUNC=1
15176 fi
15177
15178 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
15179 POSIX4_LINK=
15180 for ac_func in nanosleep
15181 do
15182 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15183 echo "configure:15184: checking for $ac_func" >&5
15184 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15185 echo $ac_n "(cached) $ac_c" 1>&6
15186 else
15187 cat > conftest.$ac_ext <<EOF
15188 #line 15189 "configure"
15189 #include "confdefs.h"
15190 /* System header to define __stub macros and hopefully few prototypes,
15191 which can conflict with char $ac_func(); below. */
15192 #include <assert.h>
15193 /* Override any gcc2 internal prototype to avoid an error. */
15194 /* We use char because int might match the return type of a gcc2
15195 builtin and then its argument prototype would still apply. */
15196 char $ac_func();
15197
15198 int main() {
15199
15200 /* The GNU C library defines this for functions which it implements
15201 to always fail with ENOSYS. Some functions are actually named
15202 something starting with __ and the normal name is an alias. */
15203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15204 choke me
15205 #else
15206 $ac_func();
15207 #endif
15208
15209 ; return 0; }
15210 EOF
15211 if { (eval echo configure:15212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15212 rm -rf conftest*
15213 eval "ac_cv_func_$ac_func=yes"
15214 else
15215 echo "configure: failed program was:" >&5
15216 cat conftest.$ac_ext >&5
15217 rm -rf conftest*
15218 eval "ac_cv_func_$ac_func=no"
15219 fi
15220 rm -f conftest*
15221 fi
15222
15223 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15224 echo "$ac_t""yes" 1>&6
15225 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15226 cat >> confdefs.h <<EOF
15227 #define $ac_tr_func 1
15228 EOF
15229 cat >> confdefs.h <<\EOF
15230 #define HAVE_NANOSLEEP 1
15231 EOF
15232
15233 else
15234 echo "$ac_t""no" 1>&6
15235 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
15236 echo "configure:15237: checking for nanosleep in -lposix4" >&5
15237 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
15238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15239 echo $ac_n "(cached) $ac_c" 1>&6
15240 else
15241 ac_save_LIBS="$LIBS"
15242 LIBS="-lposix4 $LIBS"
15243 cat > conftest.$ac_ext <<EOF
15244 #line 15245 "configure"
15245 #include "confdefs.h"
15246 /* Override any gcc2 internal prototype to avoid an error. */
15247 /* We use char because int might match the return type of a gcc2
15248 builtin and then its argument prototype would still apply. */
15249 char nanosleep();
15250
15251 int main() {
15252 nanosleep()
15253 ; return 0; }
15254 EOF
15255 if { (eval echo configure:15256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15256 rm -rf conftest*
15257 eval "ac_cv_lib_$ac_lib_var=yes"
15258 else
15259 echo "configure: failed program was:" >&5
15260 cat conftest.$ac_ext >&5
15261 rm -rf conftest*
15262 eval "ac_cv_lib_$ac_lib_var=no"
15263 fi
15264 rm -f conftest*
15265 LIBS="$ac_save_LIBS"
15266
15267 fi
15268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15269 echo "$ac_t""yes" 1>&6
15270
15271 cat >> confdefs.h <<\EOF
15272 #define HAVE_NANOSLEEP 1
15273 EOF
15274
15275 POSIX4_LINK=" -lposix4"
15276
15277 else
15278 echo "$ac_t""no" 1>&6
15279
15280 for ac_func in usleep
15281 do
15282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15283 echo "configure:15284: checking for $ac_func" >&5
15284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15285 echo $ac_n "(cached) $ac_c" 1>&6
15286 else
15287 cat > conftest.$ac_ext <<EOF
15288 #line 15289 "configure"
15289 #include "confdefs.h"
15290 /* System header to define __stub macros and hopefully few prototypes,
15291 which can conflict with char $ac_func(); below. */
15292 #include <assert.h>
15293 /* Override any gcc2 internal prototype to avoid an error. */
15294 /* We use char because int might match the return type of a gcc2
15295 builtin and then its argument prototype would still apply. */
15296 char $ac_func();
15297
15298 int main() {
15299
15300 /* The GNU C library defines this for functions which it implements
15301 to always fail with ENOSYS. Some functions are actually named
15302 something starting with __ and the normal name is an alias. */
15303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15304 choke me
15305 #else
15306 $ac_func();
15307 #endif
15308
15309 ; return 0; }
15310 EOF
15311 if { (eval echo configure:15312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15312 rm -rf conftest*
15313 eval "ac_cv_func_$ac_func=yes"
15314 else
15315 echo "configure: failed program was:" >&5
15316 cat conftest.$ac_ext >&5
15317 rm -rf conftest*
15318 eval "ac_cv_func_$ac_func=no"
15319 fi
15320 rm -f conftest*
15321 fi
15322
15323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15324 echo "$ac_t""yes" 1>&6
15325 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15326 cat >> confdefs.h <<EOF
15327 #define $ac_tr_func 1
15328 EOF
15329 cat >> confdefs.h <<\EOF
15330 #define HAVE_USLEEP 1
15331 EOF
15332
15333 else
15334 echo "$ac_t""no" 1>&6
15335 echo "configure: warning: wxSleep() function will not work" 1>&2
15336
15337 fi
15338 done
15339
15340
15341
15342 fi
15343
15344
15345
15346 fi
15347 done
15348
15349 fi
15350
15351 for ac_func in uname gethostname
15352 do
15353 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15354 echo "configure:15355: checking for $ac_func" >&5
15355 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15356 echo $ac_n "(cached) $ac_c" 1>&6
15357 else
15358 cat > conftest.$ac_ext <<EOF
15359 #line 15360 "configure"
15360 #include "confdefs.h"
15361 /* System header to define __stub macros and hopefully few prototypes,
15362 which can conflict with char $ac_func(); below. */
15363 #include <assert.h>
15364 /* Override any gcc2 internal prototype to avoid an error. */
15365 /* We use char because int might match the return type of a gcc2
15366 builtin and then its argument prototype would still apply. */
15367 char $ac_func();
15368
15369 int main() {
15370
15371 /* The GNU C library defines this for functions which it implements
15372 to always fail with ENOSYS. Some functions are actually named
15373 something starting with __ and the normal name is an alias. */
15374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15375 choke me
15376 #else
15377 $ac_func();
15378 #endif
15379
15380 ; return 0; }
15381 EOF
15382 if { (eval echo configure:15383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15383 rm -rf conftest*
15384 eval "ac_cv_func_$ac_func=yes"
15385 else
15386 echo "configure: failed program was:" >&5
15387 cat conftest.$ac_ext >&5
15388 rm -rf conftest*
15389 eval "ac_cv_func_$ac_func=no"
15390 fi
15391 rm -f conftest*
15392 fi
15393
15394 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15395 echo "$ac_t""yes" 1>&6
15396 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15397 cat >> confdefs.h <<EOF
15398 #define $ac_tr_func 1
15399 EOF
15400 break
15401 else
15402 echo "$ac_t""no" 1>&6
15403 fi
15404 done
15405
15406
15407
15408 ac_ext=C
15409 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15410 ac_cpp='$CXXCPP $CPPFLAGS'
15411 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15412 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15413 cross_compiling=$ac_cv_prog_cxx_cross
15414
15415
15416 for ac_func in strtok_r
15417 do
15418 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15419 echo "configure:15420: checking for $ac_func" >&5
15420 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15421 echo $ac_n "(cached) $ac_c" 1>&6
15422 else
15423 cat > conftest.$ac_ext <<EOF
15424 #line 15425 "configure"
15425 #include "confdefs.h"
15426 /* System header to define __stub macros and hopefully few prototypes,
15427 which can conflict with char $ac_func(); below. */
15428 #include <assert.h>
15429 /* Override any gcc2 internal prototype to avoid an error. */
15430 #ifdef __cplusplus
15431 extern "C"
15432 #endif
15433 /* We use char because int might match the return type of a gcc2
15434 builtin and then its argument prototype would still apply. */
15435 char $ac_func();
15436
15437 int main() {
15438
15439 /* The GNU C library defines this for functions which it implements
15440 to always fail with ENOSYS. Some functions are actually named
15441 something starting with __ and the normal name is an alias. */
15442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15443 choke me
15444 #else
15445 $ac_func();
15446 #endif
15447
15448 ; return 0; }
15449 EOF
15450 if { (eval echo configure:15451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15451 rm -rf conftest*
15452 eval "ac_cv_func_$ac_func=yes"
15453 else
15454 echo "configure: failed program was:" >&5
15455 cat conftest.$ac_ext >&5
15456 rm -rf conftest*
15457 eval "ac_cv_func_$ac_func=no"
15458 fi
15459 rm -f conftest*
15460 fi
15461
15462 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15463 echo "$ac_t""yes" 1>&6
15464 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15465 cat >> confdefs.h <<EOF
15466 #define $ac_tr_func 1
15467 EOF
15468
15469 else
15470 echo "$ac_t""no" 1>&6
15471 fi
15472 done
15473
15474
15475 ac_ext=c
15476 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15477 ac_cpp='$CPP $CPPFLAGS'
15478 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15479 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15480 cross_compiling=$ac_cv_prog_cc_cross
15481
15482
15483 INET_LINK=
15484 for ac_func in inet_addr
15485 do
15486 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15487 echo "configure:15488: checking for $ac_func" >&5
15488 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15489 echo $ac_n "(cached) $ac_c" 1>&6
15490 else
15491 cat > conftest.$ac_ext <<EOF
15492 #line 15493 "configure"
15493 #include "confdefs.h"
15494 /* System header to define __stub macros and hopefully few prototypes,
15495 which can conflict with char $ac_func(); below. */
15496 #include <assert.h>
15497 /* Override any gcc2 internal prototype to avoid an error. */
15498 /* We use char because int might match the return type of a gcc2
15499 builtin and then its argument prototype would still apply. */
15500 char $ac_func();
15501
15502 int main() {
15503
15504 /* The GNU C library defines this for functions which it implements
15505 to always fail with ENOSYS. Some functions are actually named
15506 something starting with __ and the normal name is an alias. */
15507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15508 choke me
15509 #else
15510 $ac_func();
15511 #endif
15512
15513 ; return 0; }
15514 EOF
15515 if { (eval echo configure:15516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15516 rm -rf conftest*
15517 eval "ac_cv_func_$ac_func=yes"
15518 else
15519 echo "configure: failed program was:" >&5
15520 cat conftest.$ac_ext >&5
15521 rm -rf conftest*
15522 eval "ac_cv_func_$ac_func=no"
15523 fi
15524 rm -f conftest*
15525 fi
15526
15527 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15528 echo "$ac_t""yes" 1>&6
15529 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15530 cat >> confdefs.h <<EOF
15531 #define $ac_tr_func 1
15532 EOF
15533 cat >> confdefs.h <<\EOF
15534 #define HAVE_INET_ADDR 1
15535 EOF
15536
15537 else
15538 echo "$ac_t""no" 1>&6
15539 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
15540 echo "configure:15541: checking for inet_addr in -lnsl" >&5
15541 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
15542 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15543 echo $ac_n "(cached) $ac_c" 1>&6
15544 else
15545 ac_save_LIBS="$LIBS"
15546 LIBS="-lnsl $LIBS"
15547 cat > conftest.$ac_ext <<EOF
15548 #line 15549 "configure"
15549 #include "confdefs.h"
15550 /* Override any gcc2 internal prototype to avoid an error. */
15551 /* We use char because int might match the return type of a gcc2
15552 builtin and then its argument prototype would still apply. */
15553 char inet_addr();
15554
15555 int main() {
15556 inet_addr()
15557 ; return 0; }
15558 EOF
15559 if { (eval echo configure:15560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15560 rm -rf conftest*
15561 eval "ac_cv_lib_$ac_lib_var=yes"
15562 else
15563 echo "configure: failed program was:" >&5
15564 cat conftest.$ac_ext >&5
15565 rm -rf conftest*
15566 eval "ac_cv_lib_$ac_lib_var=no"
15567 fi
15568 rm -f conftest*
15569 LIBS="$ac_save_LIBS"
15570
15571 fi
15572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15573 echo "$ac_t""yes" 1>&6
15574 INET_LINK="nsl"
15575 else
15576 echo "$ac_t""no" 1>&6
15577 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
15578 echo "configure:15579: checking for inet_addr in -lresolv" >&5
15579 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
15580 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15581 echo $ac_n "(cached) $ac_c" 1>&6
15582 else
15583 ac_save_LIBS="$LIBS"
15584 LIBS="-lresolv $LIBS"
15585 cat > conftest.$ac_ext <<EOF
15586 #line 15587 "configure"
15587 #include "confdefs.h"
15588 /* Override any gcc2 internal prototype to avoid an error. */
15589 /* We use char because int might match the return type of a gcc2
15590 builtin and then its argument prototype would still apply. */
15591 char inet_addr();
15592
15593 int main() {
15594 inet_addr()
15595 ; return 0; }
15596 EOF
15597 if { (eval echo configure:15598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15598 rm -rf conftest*
15599 eval "ac_cv_lib_$ac_lib_var=yes"
15600 else
15601 echo "configure: failed program was:" >&5
15602 cat conftest.$ac_ext >&5
15603 rm -rf conftest*
15604 eval "ac_cv_lib_$ac_lib_var=no"
15605 fi
15606 rm -f conftest*
15607 LIBS="$ac_save_LIBS"
15608
15609 fi
15610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15611 echo "$ac_t""yes" 1>&6
15612 INET_LINK="resolv"
15613
15614 else
15615 echo "$ac_t""no" 1>&6
15616 fi
15617
15618
15619 fi
15620
15621
15622
15623 fi
15624 done
15625
15626
15627 for ac_func in inet_aton
15628 do
15629 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15630 echo "configure:15631: checking for $ac_func" >&5
15631 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15632 echo $ac_n "(cached) $ac_c" 1>&6
15633 else
15634 cat > conftest.$ac_ext <<EOF
15635 #line 15636 "configure"
15636 #include "confdefs.h"
15637 /* System header to define __stub macros and hopefully few prototypes,
15638 which can conflict with char $ac_func(); below. */
15639 #include <assert.h>
15640 /* Override any gcc2 internal prototype to avoid an error. */
15641 /* We use char because int might match the return type of a gcc2
15642 builtin and then its argument prototype would still apply. */
15643 char $ac_func();
15644
15645 int main() {
15646
15647 /* The GNU C library defines this for functions which it implements
15648 to always fail with ENOSYS. Some functions are actually named
15649 something starting with __ and the normal name is an alias. */
15650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15651 choke me
15652 #else
15653 $ac_func();
15654 #endif
15655
15656 ; return 0; }
15657 EOF
15658 if { (eval echo configure:15659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15659 rm -rf conftest*
15660 eval "ac_cv_func_$ac_func=yes"
15661 else
15662 echo "configure: failed program was:" >&5
15663 cat conftest.$ac_ext >&5
15664 rm -rf conftest*
15665 eval "ac_cv_func_$ac_func=no"
15666 fi
15667 rm -f conftest*
15668 fi
15669
15670 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15671 echo "$ac_t""yes" 1>&6
15672 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15673 cat >> confdefs.h <<EOF
15674 #define $ac_tr_func 1
15675 EOF
15676 cat >> confdefs.h <<\EOF
15677 #define HAVE_INET_ATON 1
15678 EOF
15679
15680 else
15681 echo "$ac_t""no" 1>&6
15682 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
15683 echo "configure:15684: checking for inet_aton in -l$INET_LINK" >&5
15684 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
15685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15686 echo $ac_n "(cached) $ac_c" 1>&6
15687 else
15688 ac_save_LIBS="$LIBS"
15689 LIBS="-l$INET_LINK $LIBS"
15690 cat > conftest.$ac_ext <<EOF
15691 #line 15692 "configure"
15692 #include "confdefs.h"
15693 /* Override any gcc2 internal prototype to avoid an error. */
15694 /* We use char because int might match the return type of a gcc2
15695 builtin and then its argument prototype would still apply. */
15696 char inet_aton();
15697
15698 int main() {
15699 inet_aton()
15700 ; return 0; }
15701 EOF
15702 if { (eval echo configure:15703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15703 rm -rf conftest*
15704 eval "ac_cv_lib_$ac_lib_var=yes"
15705 else
15706 echo "configure: failed program was:" >&5
15707 cat conftest.$ac_ext >&5
15708 rm -rf conftest*
15709 eval "ac_cv_lib_$ac_lib_var=no"
15710 fi
15711 rm -f conftest*
15712 LIBS="$ac_save_LIBS"
15713
15714 fi
15715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15716 echo "$ac_t""yes" 1>&6
15717 cat >> confdefs.h <<\EOF
15718 #define HAVE_INET_ATON 1
15719 EOF
15720
15721 else
15722 echo "$ac_t""no" 1>&6
15723 fi
15724
15725
15726 fi
15727 done
15728
15729
15730 if test "x$INET_LINK" != "x"; then
15731 cat >> confdefs.h <<\EOF
15732 #define HAVE_INET_ADDR 1
15733 EOF
15734
15735 INET_LINK=" -l$INET_LINK"
15736 fi
15737
15738 fi
15739
15740
15741 cat > confcache <<\EOF
15742 # This file is a shell script that caches the results of configure
15743 # tests run on this system so they can be shared between configure
15744 # scripts and configure runs. It is not useful on other systems.
15745 # If it contains results you don't want to keep, you may remove or edit it.
15746 #
15747 # By default, configure uses ./config.cache as the cache file,
15748 # creating it if it does not exist already. You can give configure
15749 # the --cache-file=FILE option to use a different cache file; that is
15750 # what configure does when it calls configure scripts in
15751 # subdirectories, so they share the cache.
15752 # Giving --cache-file=/dev/null disables caching, for debugging configure.
15753 # config.status only pays attention to the cache file if you give it the
15754 # --recheck option to rerun configure.
15755 #
15756 EOF
15757 # The following way of writing the cache mishandles newlines in values,
15758 # but we know of no workaround that is simple, portable, and efficient.
15759 # So, don't put newlines in cache variables' values.
15760 # Ultrix sh set writes to stderr and can't be redirected directly,
15761 # and sets the high bit in the cache file unless we assign to the vars.
15762 (set) 2>&1 |
15763 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15764 *ac_space=\ *)
15765 # `set' does not quote correctly, so add quotes (double-quote substitution
15766 # turns \\\\ into \\, and sed turns \\ into \).
15767 sed -n \
15768 -e "s/'/'\\\\''/g" \
15769 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15770 ;;
15771 *)
15772 # `set' quotes correctly as required by POSIX, so do not add quotes.
15773 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15774 ;;
15775 esac >> confcache
15776 if cmp -s $cache_file confcache; then
15777 :
15778 else
15779 if test -w $cache_file; then
15780 echo "updating cache $cache_file"
15781 cat confcache > $cache_file
15782 else
15783 echo "not updating unwritable cache $cache_file"
15784 fi
15785 fi
15786 rm -f confcache
15787
15788
15789
15790 if test "$TOOLKIT" != "MSW"; then
15791
15792
15793 THREADS_LINK=
15794 THREADS_OBJ=
15795 CODE_GEN_FLAGS=
15796 CODE_GEN_FLAGS_CXX=
15797
15798 if test "$wxUSE_THREADS" = "yes" ; then
15799 if test "$wxUSE_WINE" = 1 ; then
15800 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
15801 wxUSE_THREADS="no"
15802 elif test "$USE_BEOS" = 1; then
15803 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
15804 wxUSE_THREADS="no"
15805 fi
15806 fi
15807
15808 if test "$wxUSE_THREADS" = "yes" ; then
15809
15810 if test "$USE_AIX" = 1; then
15811 THREADS_LIB=pthreads
15812 else
15813 THREADS_LIB=pthread
15814 fi
15815
15816 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
15817 echo "configure:15818: checking for pthread_create in -l$THREADS_LIB" >&5
15818 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
15819 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15820 echo $ac_n "(cached) $ac_c" 1>&6
15821 else
15822 ac_save_LIBS="$LIBS"
15823 LIBS="-l$THREADS_LIB $LIBS"
15824 cat > conftest.$ac_ext <<EOF
15825 #line 15826 "configure"
15826 #include "confdefs.h"
15827 /* Override any gcc2 internal prototype to avoid an error. */
15828 /* We use char because int might match the return type of a gcc2
15829 builtin and then its argument prototype would still apply. */
15830 char pthread_create();
15831
15832 int main() {
15833 pthread_create()
15834 ; return 0; }
15835 EOF
15836 if { (eval echo configure:15837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15837 rm -rf conftest*
15838 eval "ac_cv_lib_$ac_lib_var=yes"
15839 else
15840 echo "configure: failed program was:" >&5
15841 cat conftest.$ac_ext >&5
15842 rm -rf conftest*
15843 eval "ac_cv_lib_$ac_lib_var=no"
15844 fi
15845 rm -f conftest*
15846 LIBS="$ac_save_LIBS"
15847
15848 fi
15849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15850 echo "$ac_t""yes" 1>&6
15851
15852 THREADS_OBJ="threadpsx.lo"
15853 THREADS_LINK=$THREADS_LIB
15854
15855 else
15856 echo "$ac_t""no" 1>&6
15857
15858 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
15859 echo "configure:15860: checking for pthread_create in -lc_r" >&5
15860 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
15861 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15862 echo $ac_n "(cached) $ac_c" 1>&6
15863 else
15864 ac_save_LIBS="$LIBS"
15865 LIBS="-lc_r $LIBS"
15866 cat > conftest.$ac_ext <<EOF
15867 #line 15868 "configure"
15868 #include "confdefs.h"
15869 /* Override any gcc2 internal prototype to avoid an error. */
15870 /* We use char because int might match the return type of a gcc2
15871 builtin and then its argument prototype would still apply. */
15872 char pthread_create();
15873
15874 int main() {
15875 pthread_create()
15876 ; return 0; }
15877 EOF
15878 if { (eval echo configure:15879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15879 rm -rf conftest*
15880 eval "ac_cv_lib_$ac_lib_var=yes"
15881 else
15882 echo "configure: failed program was:" >&5
15883 cat conftest.$ac_ext >&5
15884 rm -rf conftest*
15885 eval "ac_cv_lib_$ac_lib_var=no"
15886 fi
15887 rm -f conftest*
15888 LIBS="$ac_save_LIBS"
15889
15890 fi
15891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15892 echo "$ac_t""yes" 1>&6
15893
15894 THREADS_OBJ="threadpsx.lo"
15895 THREADS_LINK="c_r"
15896
15897 else
15898 echo "$ac_t""no" 1>&6
15899
15900 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
15901 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
15902 echo "configure:15903: checking for sys/prctl.h" >&5
15903 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15904 echo $ac_n "(cached) $ac_c" 1>&6
15905 else
15906 cat > conftest.$ac_ext <<EOF
15907 #line 15908 "configure"
15908 #include "confdefs.h"
15909 #include <sys/prctl.h>
15910 EOF
15911 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15912 { (eval echo configure:15913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15913 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15914 if test -z "$ac_err"; then
15915 rm -rf conftest*
15916 eval "ac_cv_header_$ac_safe=yes"
15917 else
15918 echo "$ac_err" >&5
15919 echo "configure: failed program was:" >&5
15920 cat conftest.$ac_ext >&5
15921 rm -rf conftest*
15922 eval "ac_cv_header_$ac_safe=no"
15923 fi
15924 rm -f conftest*
15925 fi
15926 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15927 echo "$ac_t""yes" 1>&6
15928
15929 THREADS_OBJ="threadsgi.lo"
15930
15931 else
15932 echo "$ac_t""no" 1>&6
15933 fi
15934
15935
15936 fi
15937
15938
15939 fi
15940
15941
15942 if test -z "$THREADS_OBJ" ; then
15943 wxUSE_THREADS=no
15944 echo "configure: warning: No thread support on this system... disabled" 1>&2
15945 fi
15946 fi
15947
15948 if test "$wxUSE_THREADS" = "yes" ; then
15949 for ac_func in thr_setconcurrency
15950 do
15951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15952 echo "configure:15953: checking for $ac_func" >&5
15953 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15954 echo $ac_n "(cached) $ac_c" 1>&6
15955 else
15956 cat > conftest.$ac_ext <<EOF
15957 #line 15958 "configure"
15958 #include "confdefs.h"
15959 /* System header to define __stub macros and hopefully few prototypes,
15960 which can conflict with char $ac_func(); below. */
15961 #include <assert.h>
15962 /* Override any gcc2 internal prototype to avoid an error. */
15963 /* We use char because int might match the return type of a gcc2
15964 builtin and then its argument prototype would still apply. */
15965 char $ac_func();
15966
15967 int main() {
15968
15969 /* The GNU C library defines this for functions which it implements
15970 to always fail with ENOSYS. Some functions are actually named
15971 something starting with __ and the normal name is an alias. */
15972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15973 choke me
15974 #else
15975 $ac_func();
15976 #endif
15977
15978 ; return 0; }
15979 EOF
15980 if { (eval echo configure:15981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15981 rm -rf conftest*
15982 eval "ac_cv_func_$ac_func=yes"
15983 else
15984 echo "configure: failed program was:" >&5
15985 cat conftest.$ac_ext >&5
15986 rm -rf conftest*
15987 eval "ac_cv_func_$ac_func=no"
15988 fi
15989 rm -f conftest*
15990 fi
15991
15992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15993 echo "$ac_t""yes" 1>&6
15994 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15995 cat >> confdefs.h <<EOF
15996 #define $ac_tr_func 1
15997 EOF
15998
15999 else
16000 echo "$ac_t""no" 1>&6
16001 fi
16002 done
16003
16004
16005
16006 for ac_hdr in sched.h
16007 do
16008 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16009 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16010 echo "configure:16011: checking for $ac_hdr" >&5
16011 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16012 echo $ac_n "(cached) $ac_c" 1>&6
16013 else
16014 cat > conftest.$ac_ext <<EOF
16015 #line 16016 "configure"
16016 #include "confdefs.h"
16017 #include <$ac_hdr>
16018 EOF
16019 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16020 { (eval echo configure:16021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16021 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16022 if test -z "$ac_err"; then
16023 rm -rf conftest*
16024 eval "ac_cv_header_$ac_safe=yes"
16025 else
16026 echo "$ac_err" >&5
16027 echo "configure: failed program was:" >&5
16028 cat conftest.$ac_ext >&5
16029 rm -rf conftest*
16030 eval "ac_cv_header_$ac_safe=no"
16031 fi
16032 rm -f conftest*
16033 fi
16034 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16035 echo "$ac_t""yes" 1>&6
16036 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16037 cat >> confdefs.h <<EOF
16038 #define $ac_tr_hdr 1
16039 EOF
16040
16041 else
16042 echo "$ac_t""no" 1>&6
16043 fi
16044 done
16045
16046
16047 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
16048 echo "configure:16049: checking for sched_yield in -l$THREADS_LINK" >&5
16049 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
16050 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16051 echo $ac_n "(cached) $ac_c" 1>&6
16052 else
16053 ac_save_LIBS="$LIBS"
16054 LIBS="-l$THREADS_LINK $LIBS"
16055 cat > conftest.$ac_ext <<EOF
16056 #line 16057 "configure"
16057 #include "confdefs.h"
16058 /* Override any gcc2 internal prototype to avoid an error. */
16059 /* We use char because int might match the return type of a gcc2
16060 builtin and then its argument prototype would still apply. */
16061 char sched_yield();
16062
16063 int main() {
16064 sched_yield()
16065 ; return 0; }
16066 EOF
16067 if { (eval echo configure:16068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16068 rm -rf conftest*
16069 eval "ac_cv_lib_$ac_lib_var=yes"
16070 else
16071 echo "configure: failed program was:" >&5
16072 cat conftest.$ac_ext >&5
16073 rm -rf conftest*
16074 eval "ac_cv_lib_$ac_lib_var=no"
16075 fi
16076 rm -f conftest*
16077 LIBS="$ac_save_LIBS"
16078
16079 fi
16080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16081 echo "$ac_t""yes" 1>&6
16082 cat >> confdefs.h <<\EOF
16083 #define HAVE_SCHED_YIELD 1
16084 EOF
16085
16086 else
16087 echo "$ac_t""no" 1>&6
16088 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
16089 echo "configure:16090: checking for sched_yield in -lposix4" >&5
16090 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
16091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16092 echo $ac_n "(cached) $ac_c" 1>&6
16093 else
16094 ac_save_LIBS="$LIBS"
16095 LIBS="-lposix4 $LIBS"
16096 cat > conftest.$ac_ext <<EOF
16097 #line 16098 "configure"
16098 #include "confdefs.h"
16099 /* Override any gcc2 internal prototype to avoid an error. */
16100 /* We use char because int might match the return type of a gcc2
16101 builtin and then its argument prototype would still apply. */
16102 char sched_yield();
16103
16104 int main() {
16105 sched_yield()
16106 ; return 0; }
16107 EOF
16108 if { (eval echo configure:16109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16109 rm -rf conftest*
16110 eval "ac_cv_lib_$ac_lib_var=yes"
16111 else
16112 echo "configure: failed program was:" >&5
16113 cat conftest.$ac_ext >&5
16114 rm -rf conftest*
16115 eval "ac_cv_lib_$ac_lib_var=no"
16116 fi
16117 rm -f conftest*
16118 LIBS="$ac_save_LIBS"
16119
16120 fi
16121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16122 echo "$ac_t""yes" 1>&6
16123 cat >> confdefs.h <<\EOF
16124 #define HAVE_SCHED_YIELD 1
16125 EOF
16126 POSIX4_LINK=" -lposix4"
16127 else
16128 echo "$ac_t""no" 1>&6
16129 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
16130
16131 fi
16132
16133
16134 fi
16135
16136
16137 HAVE_PRIOR_FUNCS=0
16138 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
16139 echo "configure:16140: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
16140 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
16141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16142 echo $ac_n "(cached) $ac_c" 1>&6
16143 else
16144 ac_save_LIBS="$LIBS"
16145 LIBS="-l$THREADS_LINK $LIBS"
16146 cat > conftest.$ac_ext <<EOF
16147 #line 16148 "configure"
16148 #include "confdefs.h"
16149 /* Override any gcc2 internal prototype to avoid an error. */
16150 /* We use char because int might match the return type of a gcc2
16151 builtin and then its argument prototype would still apply. */
16152 char pthread_attr_getschedpolicy();
16153
16154 int main() {
16155 pthread_attr_getschedpolicy()
16156 ; return 0; }
16157 EOF
16158 if { (eval echo configure:16159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16159 rm -rf conftest*
16160 eval "ac_cv_lib_$ac_lib_var=yes"
16161 else
16162 echo "configure: failed program was:" >&5
16163 cat conftest.$ac_ext >&5
16164 rm -rf conftest*
16165 eval "ac_cv_lib_$ac_lib_var=no"
16166 fi
16167 rm -f conftest*
16168 LIBS="$ac_save_LIBS"
16169
16170 fi
16171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16172 echo "$ac_t""yes" 1>&6
16173 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
16174 echo "configure:16175: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
16175 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
16176 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16177 echo $ac_n "(cached) $ac_c" 1>&6
16178 else
16179 ac_save_LIBS="$LIBS"
16180 LIBS="-l$THREADS_LINK $LIBS"
16181 cat > conftest.$ac_ext <<EOF
16182 #line 16183 "configure"
16183 #include "confdefs.h"
16184 /* Override any gcc2 internal prototype to avoid an error. */
16185 /* We use char because int might match the return type of a gcc2
16186 builtin and then its argument prototype would still apply. */
16187 char pthread_attr_setschedparam();
16188
16189 int main() {
16190 pthread_attr_setschedparam()
16191 ; return 0; }
16192 EOF
16193 if { (eval echo configure:16194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16194 rm -rf conftest*
16195 eval "ac_cv_lib_$ac_lib_var=yes"
16196 else
16197 echo "configure: failed program was:" >&5
16198 cat conftest.$ac_ext >&5
16199 rm -rf conftest*
16200 eval "ac_cv_lib_$ac_lib_var=no"
16201 fi
16202 rm -f conftest*
16203 LIBS="$ac_save_LIBS"
16204
16205 fi
16206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16207 echo "$ac_t""yes" 1>&6
16208 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
16209 echo "configure:16210: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
16210 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
16211 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16212 echo $ac_n "(cached) $ac_c" 1>&6
16213 else
16214 ac_save_LIBS="$LIBS"
16215 LIBS="-l$THREADS_LINK $LIBS"
16216 cat > conftest.$ac_ext <<EOF
16217 #line 16218 "configure"
16218 #include "confdefs.h"
16219 /* Override any gcc2 internal prototype to avoid an error. */
16220 /* We use char because int might match the return type of a gcc2
16221 builtin and then its argument prototype would still apply. */
16222 char sched_get_priority_max();
16223
16224 int main() {
16225 sched_get_priority_max()
16226 ; return 0; }
16227 EOF
16228 if { (eval echo configure:16229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16229 rm -rf conftest*
16230 eval "ac_cv_lib_$ac_lib_var=yes"
16231 else
16232 echo "configure: failed program was:" >&5
16233 cat conftest.$ac_ext >&5
16234 rm -rf conftest*
16235 eval "ac_cv_lib_$ac_lib_var=no"
16236 fi
16237 rm -f conftest*
16238 LIBS="$ac_save_LIBS"
16239
16240 fi
16241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16242 echo "$ac_t""yes" 1>&6
16243 HAVE_PRIOR_FUNCS=1
16244 else
16245 echo "$ac_t""no" 1>&6
16246 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
16247 echo "configure:16248: checking for sched_get_priority_max in -lposix4" >&5
16248 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
16249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16250 echo $ac_n "(cached) $ac_c" 1>&6
16251 else
16252 ac_save_LIBS="$LIBS"
16253 LIBS="-lposix4 $LIBS"
16254 cat > conftest.$ac_ext <<EOF
16255 #line 16256 "configure"
16256 #include "confdefs.h"
16257 /* Override any gcc2 internal prototype to avoid an error. */
16258 /* We use char because int might match the return type of a gcc2
16259 builtin and then its argument prototype would still apply. */
16260 char sched_get_priority_max();
16261
16262 int main() {
16263 sched_get_priority_max()
16264 ; return 0; }
16265 EOF
16266 if { (eval echo configure:16267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16267 rm -rf conftest*
16268 eval "ac_cv_lib_$ac_lib_var=yes"
16269 else
16270 echo "configure: failed program was:" >&5
16271 cat conftest.$ac_ext >&5
16272 rm -rf conftest*
16273 eval "ac_cv_lib_$ac_lib_var=no"
16274 fi
16275 rm -f conftest*
16276 LIBS="$ac_save_LIBS"
16277
16278 fi
16279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16280 echo "$ac_t""yes" 1>&6
16281
16282 HAVE_PRIOR_FUNCS=1
16283 POSIX4_LINK=" -lposix4"
16284
16285 else
16286 echo "$ac_t""no" 1>&6
16287 fi
16288
16289
16290 fi
16291
16292
16293 else
16294 echo "$ac_t""no" 1>&6
16295 fi
16296
16297
16298 else
16299 echo "$ac_t""no" 1>&6
16300 fi
16301
16302
16303 if test "$HAVE_PRIOR_FUNCS" = 1; then
16304 cat >> confdefs.h <<\EOF
16305 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
16306 EOF
16307
16308 else
16309 echo "configure: warning: Setting thread priority will not work" 1>&2
16310 fi
16311
16312 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
16313 echo "configure:16314: checking for pthread_cancel in -l$THREADS_LINK" >&5
16314 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
16315 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16316 echo $ac_n "(cached) $ac_c" 1>&6
16317 else
16318 ac_save_LIBS="$LIBS"
16319 LIBS="-l$THREADS_LINK $LIBS"
16320 cat > conftest.$ac_ext <<EOF
16321 #line 16322 "configure"
16322 #include "confdefs.h"
16323 /* Override any gcc2 internal prototype to avoid an error. */
16324 /* We use char because int might match the return type of a gcc2
16325 builtin and then its argument prototype would still apply. */
16326 char pthread_cancel();
16327
16328 int main() {
16329 pthread_cancel()
16330 ; return 0; }
16331 EOF
16332 if { (eval echo configure:16333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16333 rm -rf conftest*
16334 eval "ac_cv_lib_$ac_lib_var=yes"
16335 else
16336 echo "configure: failed program was:" >&5
16337 cat conftest.$ac_ext >&5
16338 rm -rf conftest*
16339 eval "ac_cv_lib_$ac_lib_var=no"
16340 fi
16341 rm -f conftest*
16342 LIBS="$ac_save_LIBS"
16343
16344 fi
16345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16346 echo "$ac_t""yes" 1>&6
16347 cat >> confdefs.h <<\EOF
16348 #define HAVE_PTHREAD_CANCEL 1
16349 EOF
16350
16351 else
16352 echo "$ac_t""no" 1>&6
16353 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
16354 fi
16355
16356
16357 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
16358 echo "configure:16359: checking for pthread_cleanup_push/pop" >&5
16359 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
16360 echo $ac_n "(cached) $ac_c" 1>&6
16361 else
16362
16363 cat > conftest.$ac_ext <<EOF
16364 #line 16365 "configure"
16365 #include "confdefs.h"
16366 #include <pthread.h>
16367 int main() {
16368
16369 pthread_cleanup_push(NULL, NULL);
16370 pthread_cleanup_pop(0);
16371
16372 ; return 0; }
16373 EOF
16374 if { (eval echo configure:16375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16375 rm -rf conftest*
16376
16377 wx_cv_func_pthread_cleanup_push=yes
16378
16379 else
16380 echo "configure: failed program was:" >&5
16381 cat conftest.$ac_ext >&5
16382 rm -rf conftest*
16383
16384 wx_cv_func_pthread_cleanup_push=no
16385
16386 fi
16387 rm -f conftest*
16388
16389 fi
16390
16391 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
16392
16393 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
16394 cat >> confdefs.h <<\EOF
16395 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
16396 EOF
16397
16398 fi
16399
16400
16401 if test "x$wx_lib_glibc21" = "xyes"; then
16402 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
16403 fi
16404
16405 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
16406 echo "configure:16407: checking for pthread_mutexattr_t" >&5
16407 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
16408 echo $ac_n "(cached) $ac_c" 1>&6
16409 else
16410
16411 cat > conftest.$ac_ext <<EOF
16412 #line 16413 "configure"
16413 #include "confdefs.h"
16414 #include <pthread.h>
16415 int main() {
16416
16417 pthread_mutexattr_t attr;
16418 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
16419
16420 ; return 0; }
16421 EOF
16422 if { (eval echo configure:16423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16423 rm -rf conftest*
16424
16425 wx_cv_type_pthread_mutexattr_t=yes
16426
16427 else
16428 echo "configure: failed program was:" >&5
16429 cat conftest.$ac_ext >&5
16430 rm -rf conftest*
16431
16432 wx_cv_type_pthread_mutexattr_t=no
16433
16434
16435 fi
16436 rm -f conftest*
16437
16438 fi
16439
16440 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
16441
16442 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
16443 cat >> confdefs.h <<\EOF
16444 #define HAVE_PTHREAD_MUTEXATTR_T 1
16445 EOF
16446
16447 else
16448 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
16449 echo "configure:16450: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
16450 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
16451 echo $ac_n "(cached) $ac_c" 1>&6
16452 else
16453
16454 cat > conftest.$ac_ext <<EOF
16455 #line 16456 "configure"
16456 #include "confdefs.h"
16457 #include <pthread.h>
16458 int main() {
16459
16460 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
16461
16462 ; return 0; }
16463 EOF
16464 if { (eval echo configure:16465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16465 rm -rf conftest*
16466
16467 wx_cv_type_pthread_rec_mutex_init=yes
16468
16469 else
16470 echo "configure: failed program was:" >&5
16471 cat conftest.$ac_ext >&5
16472 rm -rf conftest*
16473
16474 wx_cv_type_pthread_rec_mutex_init=no
16475
16476
16477 fi
16478 rm -f conftest*
16479
16480 fi
16481
16482 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
16483 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
16484 cat >> confdefs.h <<\EOF
16485 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
16486 EOF
16487
16488 else
16489 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
16490 fi
16491 fi
16492
16493 THREADS_LINK=" -l$THREADS_LINK"
16494
16495 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
16496 CPPFLAGS="$CFLAGS -mt"
16497 CXXFLAGS="$CXXFLAGS -mt"
16498 LDFLAGS="$LDFLAGS -mt"
16499 fi
16500 fi
16501
16502 fi
16503
16504 if test "$wxUSE_THREADS" = "yes"; then
16505 cat >> confdefs.h <<\EOF
16506 #define wxUSE_THREADS 1
16507 EOF
16508
16509
16510 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG"
16511
16512 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
16513 else
16514 if test "$ac_cv_func_strtok_r" = "yes"; then
16515 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
16516 echo "configure:16517: checking if -D_REENTRANT is needed" >&5
16517 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
16518 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
16519 echo "$ac_t""yes" 1>&6
16520 else
16521 echo "$ac_t""no" 1>&6
16522 fi
16523 fi
16524 fi
16525
16526 if test "$WXGTK20" = 1 ; then
16527 cat >> confdefs.h <<EOF
16528 #define __WXGTK20__ $WXGTK20
16529 EOF
16530
16531 WXGTK12=1
16532 fi
16533
16534 if test "$WXGTK12" = 1 ; then
16535 cat >> confdefs.h <<EOF
16536 #define __WXGTK12__ $WXGTK12
16537 EOF
16538
16539 fi
16540
16541 if test "$WXGTK127" = 1 ; then
16542 cat >> confdefs.h <<EOF
16543 #define __WXGTK127__ $WXGTK127
16544 EOF
16545
16546 fi
16547
16548 WXDEBUG=
16549
16550 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
16551 WXDEBUG="-g"
16552 wxUSE_OPTIMISE=no
16553 fi
16554
16555 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
16556 wxUSE_DEBUG_INFO=yes
16557 WXDEBUG="-ggdb"
16558 fi
16559
16560 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
16561 cat >> confdefs.h <<\EOF
16562 #define WXDEBUG 1
16563 EOF
16564
16565 WXDEBUG_DEFINE="-D__WXDEBUG__"
16566 else
16567 if test "$wxUSE_GTK" = 1 ; then
16568 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
16569 fi
16570 fi
16571
16572 if test "$wxUSE_MEM_TRACING" = "yes" ; then
16573 cat >> confdefs.h <<\EOF
16574 #define wxUSE_MEMORY_TRACING 1
16575 EOF
16576
16577 cat >> confdefs.h <<\EOF
16578 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
16579 EOF
16580
16581 cat >> confdefs.h <<\EOF
16582 #define wxUSE_DEBUG_NEW_ALWAYS 1
16583 EOF
16584
16585 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
16586 fi
16587
16588 if test "$wxUSE_DMALLOC" = "yes" ; then
16589 DMALLOC_LIBS="-ldmalloc"
16590 fi
16591
16592 PROFILE=
16593 if test "$wxUSE_PROFILE" = "yes" ; then
16594 PROFILE=" -pg"
16595 fi
16596
16597 if test "$GCC" = "yes" ; then
16598 if test "$wxUSE_NO_RTTI" = "yes" ; then
16599 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
16600 fi
16601 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
16602 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
16603 fi
16604 if test "$wxUSE_PERMISSIVE" = "yes" ; then
16605 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
16606 fi
16607 if test "$USE_WIN32" = 1 ; then
16608 # I'm not even really sure what this was ever added to solve,
16609 # but someone added it for mingw native builds, so I guess
16610 # they had a reason, right??
16611 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
16612 fi
16613 fi
16614
16615
16616 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
16617 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
16618 if test "$wxUSE_OPTIMISE" = "no" ; then
16619 OPTIMISE=
16620 else
16621 if test "$GCC" = yes ; then
16622 OPTIMISE="-O2"
16623 case "${host}" in
16624 i586-*-*|i686-*-* )
16625 OPTIMISE="${OPTIMISE} "
16626 ;;
16627 esac
16628 else
16629 OPTIMISE="-O"
16630 fi
16631 fi
16632
16633 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
16634 cat >> confdefs.h <<\EOF
16635 #define WXWIN_COMPATIBILITY_2 1
16636 EOF
16637
16638
16639 WXWIN_COMPATIBILITY_2_2="yes"
16640 fi
16641
16642 if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
16643 cat >> confdefs.h <<\EOF
16644 #define WXWIN_COMPATIBILITY_2_2 1
16645 EOF
16646
16647 fi
16648
16649
16650 if test "$wxUSE_GUI" = "yes"; then
16651 cat >> confdefs.h <<\EOF
16652 #define wxUSE_GUI 1
16653 EOF
16654
16655
16656 else
16657 cat >> confdefs.h <<\EOF
16658 #define wxUSE_NOGUI 1
16659 EOF
16660
16661 fi
16662
16663
16664 if test "$wxUSE_UNIX" = "yes"; then
16665 cat >> confdefs.h <<\EOF
16666 #define wxUSE_UNIX 1
16667 EOF
16668
16669 fi
16670
16671
16672 if test "$wxUSE_APPLE_IEEE" = "yes"; then
16673 cat >> confdefs.h <<\EOF
16674 #define wxUSE_APPLE_IEEE 1
16675 EOF
16676
16677 fi
16678
16679 if test "$wxUSE_TIMER" = "yes"; then
16680 cat >> confdefs.h <<\EOF
16681 #define wxUSE_TIMER 1
16682 EOF
16683
16684 fi
16685
16686 if test "$wxUSE_WAVE" = "yes"; then
16687 cat >> confdefs.h <<\EOF
16688 #define wxUSE_WAVE 1
16689 EOF
16690
16691 fi
16692
16693 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
16694 cat >> confdefs.h <<\EOF
16695 #define wxUSE_CMDLINE_PARSER 1
16696 EOF
16697
16698 fi
16699
16700 if test "$wxUSE_STOPWATCH" = "yes"; then
16701 cat >> confdefs.h <<\EOF
16702 #define wxUSE_STOPWATCH 1
16703 EOF
16704
16705 fi
16706
16707 if test "$wxUSE_DATETIME" = "yes"; then
16708 cat >> confdefs.h <<\EOF
16709 #define wxUSE_DATETIME 1
16710 EOF
16711
16712 fi
16713
16714 if test "$wxUSE_TIMEDATE" = "yes"; then
16715 cat >> confdefs.h <<\EOF
16716 #define wxUSE_TIMEDATE 1
16717 EOF
16718
16719 fi
16720
16721 if test "$wxUSE_FILE" = "yes"; then
16722 cat >> confdefs.h <<\EOF
16723 #define wxUSE_FILE 1
16724 EOF
16725
16726 fi
16727
16728 if test "$wxUSE_FFILE" = "yes"; then
16729 cat >> confdefs.h <<\EOF
16730 #define wxUSE_FFILE 1
16731 EOF
16732
16733 fi
16734
16735 if test "$wxUSE_FILESYSTEM" = "yes"; then
16736 cat >> confdefs.h <<\EOF
16737 #define wxUSE_FILESYSTEM 1
16738 EOF
16739
16740 fi
16741
16742 if test "$wxUSE_FS_INET" = "yes"; then
16743 cat >> confdefs.h <<\EOF
16744 #define wxUSE_FS_INET 1
16745 EOF
16746
16747 fi
16748
16749 if test "$wxUSE_FS_ZIP" = "yes"; then
16750 cat >> confdefs.h <<\EOF
16751 #define wxUSE_FS_ZIP 1
16752 EOF
16753
16754 fi
16755
16756 if test "$wxUSE_ZIPSTREAM" = "yes"; then
16757 cat >> confdefs.h <<\EOF
16758 #define wxUSE_ZIPSTREAM 1
16759 EOF
16760
16761 fi
16762
16763 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16764 cat >> confdefs.h <<\EOF
16765 #define wxUSE_ON_FATAL_EXCEPTION 1
16766 EOF
16767
16768 fi
16769
16770 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16771 cat >> confdefs.h <<\EOF
16772 #define wxUSE_SNGLINST_CHECKER 1
16773 EOF
16774
16775 fi
16776
16777 if test "$wxUSE_BUSYINFO" = "yes"; then
16778 cat >> confdefs.h <<\EOF
16779 #define wxUSE_BUSYINFO 1
16780 EOF
16781
16782 fi
16783
16784 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
16785 cat >> confdefs.h <<\EOF
16786 #define wxUSE_STD_IOSTREAM 1
16787 EOF
16788
16789 fi
16790
16791 if test "$wxUSE_TEXTBUFFER" = "yes"; then
16792 cat >> confdefs.h <<\EOF
16793 #define wxUSE_TEXTBUFFER 1
16794 EOF
16795
16796 fi
16797
16798 if test "$wxUSE_TEXTFILE" = "yes"; then
16799 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
16800 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
16801 else
16802 cat >> confdefs.h <<\EOF
16803 #define wxUSE_TEXTFILE 1
16804 EOF
16805
16806 fi
16807 fi
16808
16809 if test "$wxUSE_CONFIG" = "yes" ; then
16810 if test "$wxUSE_TEXTFILE" != "yes"; then
16811 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
16812 else
16813 cat >> confdefs.h <<\EOF
16814 #define wxUSE_CONFIG 1
16815 EOF
16816
16817 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
16818 fi
16819 fi
16820
16821 if test "$wxUSE_INTL" = "yes" ; then
16822 if test "$wxUSE_FILE" != "yes"; then
16823 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
16824 else
16825 cat >> confdefs.h <<\EOF
16826 #define wxUSE_INTL 1
16827 EOF
16828
16829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
16830 GUIDIST="$GUIDIST INTL_DIST"
16831 fi
16832 fi
16833
16834 if test "$wxUSE_LOG" = "yes"; then
16835 cat >> confdefs.h <<\EOF
16836 #define wxUSE_LOG 1
16837 EOF
16838
16839
16840 if test "$wxUSE_LOGGUI" = "yes"; then
16841 cat >> confdefs.h <<\EOF
16842 #define wxUSE_LOGGUI 1
16843 EOF
16844
16845 fi
16846
16847 if test "$wxUSE_LOGWINDOW" = "yes"; then
16848 cat >> confdefs.h <<\EOF
16849 #define wxUSE_LOGWINDOW 1
16850 EOF
16851
16852 fi
16853
16854 if test "$wxUSE_LOGDIALOG" = "yes"; then
16855 cat >> confdefs.h <<\EOF
16856 #define wxUSE_LOG_DIALOG 1
16857 EOF
16858
16859 fi
16860 fi
16861
16862 if test "$wxUSE_LONGLONG" = "yes"; then
16863 cat >> confdefs.h <<\EOF
16864 #define wxUSE_LONGLONG 1
16865 EOF
16866
16867 fi
16868
16869 if test "$wxUSE_GEOMETRY" = "yes"; then
16870 cat >> confdefs.h <<\EOF
16871 #define wxUSE_GEOMETRY 1
16872 EOF
16873
16874 fi
16875
16876 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
16877 cat >> confdefs.h <<\EOF
16878 #define wxUSE_DIALUP_MANAGER 1
16879 EOF
16880
16881 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
16882 fi
16883
16884 if test "$wxUSE_STREAMS" = "yes" ; then
16885 cat >> confdefs.h <<\EOF
16886 #define wxUSE_STREAMS 1
16887 EOF
16888
16889 fi
16890
16891
16892 if test "$wxUSE_DATETIME" = "yes"; then
16893 for ac_func in strptime
16894 do
16895 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16896 echo "configure:16897: checking for $ac_func" >&5
16897 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16898 echo $ac_n "(cached) $ac_c" 1>&6
16899 else
16900 cat > conftest.$ac_ext <<EOF
16901 #line 16902 "configure"
16902 #include "confdefs.h"
16903 /* System header to define __stub macros and hopefully few prototypes,
16904 which can conflict with char $ac_func(); below. */
16905 #include <assert.h>
16906 /* Override any gcc2 internal prototype to avoid an error. */
16907 /* We use char because int might match the return type of a gcc2
16908 builtin and then its argument prototype would still apply. */
16909 char $ac_func();
16910
16911 int main() {
16912
16913 /* The GNU C library defines this for functions which it implements
16914 to always fail with ENOSYS. Some functions are actually named
16915 something starting with __ and the normal name is an alias. */
16916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16917 choke me
16918 #else
16919 $ac_func();
16920 #endif
16921
16922 ; return 0; }
16923 EOF
16924 if { (eval echo configure:16925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16925 rm -rf conftest*
16926 eval "ac_cv_func_$ac_func=yes"
16927 else
16928 echo "configure: failed program was:" >&5
16929 cat conftest.$ac_ext >&5
16930 rm -rf conftest*
16931 eval "ac_cv_func_$ac_func=no"
16932 fi
16933 rm -f conftest*
16934 fi
16935
16936 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16937 echo "$ac_t""yes" 1>&6
16938 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16939 cat >> confdefs.h <<EOF
16940 #define $ac_tr_func 1
16941 EOF
16942
16943 else
16944 echo "$ac_t""no" 1>&6
16945 fi
16946 done
16947
16948
16949 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
16950 echo "configure:16951: checking for timezone variable in <time.h>" >&5
16951 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
16952 echo $ac_n "(cached) $ac_c" 1>&6
16953 else
16954
16955 cat > conftest.$ac_ext <<EOF
16956 #line 16957 "configure"
16957 #include "confdefs.h"
16958
16959 #include <time.h>
16960
16961 int main() {
16962
16963 int tz;
16964 tz = timezone;
16965
16966 ; return 0; }
16967 EOF
16968 if { (eval echo configure:16969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16969 rm -rf conftest*
16970
16971 wx_cv_var_timezone=timezone
16972
16973 else
16974 echo "configure: failed program was:" >&5
16975 cat conftest.$ac_ext >&5
16976 rm -rf conftest*
16977
16978 cat > conftest.$ac_ext <<EOF
16979 #line 16980 "configure"
16980 #include "confdefs.h"
16981
16982 #include <time.h>
16983
16984 int main() {
16985
16986 int tz;
16987 tz = _timezone;
16988
16989 ; return 0; }
16990 EOF
16991 if { (eval echo configure:16992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16992 rm -rf conftest*
16993
16994 wx_cv_var_timezone=_timezone
16995
16996 else
16997 echo "configure: failed program was:" >&5
16998 cat conftest.$ac_ext >&5
16999 rm -rf conftest*
17000
17001 cat > conftest.$ac_ext <<EOF
17002 #line 17003 "configure"
17003 #include "confdefs.h"
17004
17005 #include <time.h>
17006
17007 int main() {
17008
17009 int tz;
17010 tz = __timezone;
17011
17012 ; return 0; }
17013 EOF
17014 if { (eval echo configure:17015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17015 rm -rf conftest*
17016
17017 wx_cv_var_timezone=__timezone
17018
17019 else
17020 echo "configure: failed program was:" >&5
17021 cat conftest.$ac_ext >&5
17022 rm -rf conftest*
17023
17024 if test "$USE_DOS" = 0 ; then
17025 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
17026 fi
17027
17028
17029 fi
17030 rm -f conftest*
17031
17032
17033 fi
17034 rm -f conftest*
17035
17036
17037 fi
17038 rm -f conftest*
17039
17040
17041 fi
17042
17043 echo "$ac_t""$wx_cv_var_timezone" 1>&6
17044
17045 if test "x$wx_cv_var_timezone" != x ; then
17046 cat >> confdefs.h <<EOF
17047 #define WX_TIMEZONE $wx_cv_var_timezone
17048 EOF
17049
17050 fi
17051
17052 for ac_func in localtime
17053 do
17054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17055 echo "configure:17056: checking for $ac_func" >&5
17056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17057 echo $ac_n "(cached) $ac_c" 1>&6
17058 else
17059 cat > conftest.$ac_ext <<EOF
17060 #line 17061 "configure"
17061 #include "confdefs.h"
17062 /* System header to define __stub macros and hopefully few prototypes,
17063 which can conflict with char $ac_func(); below. */
17064 #include <assert.h>
17065 /* Override any gcc2 internal prototype to avoid an error. */
17066 /* We use char because int might match the return type of a gcc2
17067 builtin and then its argument prototype would still apply. */
17068 char $ac_func();
17069
17070 int main() {
17071
17072 /* The GNU C library defines this for functions which it implements
17073 to always fail with ENOSYS. Some functions are actually named
17074 something starting with __ and the normal name is an alias. */
17075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17076 choke me
17077 #else
17078 $ac_func();
17079 #endif
17080
17081 ; return 0; }
17082 EOF
17083 if { (eval echo configure:17084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17084 rm -rf conftest*
17085 eval "ac_cv_func_$ac_func=yes"
17086 else
17087 echo "configure: failed program was:" >&5
17088 cat conftest.$ac_ext >&5
17089 rm -rf conftest*
17090 eval "ac_cv_func_$ac_func=no"
17091 fi
17092 rm -f conftest*
17093 fi
17094
17095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17096 echo "$ac_t""yes" 1>&6
17097 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17098 cat >> confdefs.h <<EOF
17099 #define $ac_tr_func 1
17100 EOF
17101
17102 else
17103 echo "$ac_t""no" 1>&6
17104 fi
17105 done
17106
17107
17108 if test "$ac_cv_func_localtime" = "yes"; then
17109 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
17110 echo "configure:17111: checking for tm_gmtoff in struct tm" >&5
17111 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
17112 echo $ac_n "(cached) $ac_c" 1>&6
17113 else
17114
17115 cat > conftest.$ac_ext <<EOF
17116 #line 17117 "configure"
17117 #include "confdefs.h"
17118
17119 #include <time.h>
17120
17121 int main() {
17122
17123 struct tm tm;
17124 tm.tm_gmtoff++;
17125
17126 ; return 0; }
17127 EOF
17128 if { (eval echo configure:17129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17129 rm -rf conftest*
17130
17131 wx_cv_struct_tm_has_gmtoff=yes
17132
17133 else
17134 echo "configure: failed program was:" >&5
17135 cat conftest.$ac_ext >&5
17136 rm -rf conftest*
17137 wx_cv_struct_tm_has_gmtoff=no
17138
17139 fi
17140 rm -f conftest*
17141
17142 fi
17143
17144 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
17145 fi
17146
17147 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
17148 cat >> confdefs.h <<\EOF
17149 #define WX_GMTOFF_IN_TM 1
17150 EOF
17151
17152 fi
17153
17154 for ac_func in gettimeofday ftime
17155 do
17156 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17157 echo "configure:17158: checking for $ac_func" >&5
17158 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17159 echo $ac_n "(cached) $ac_c" 1>&6
17160 else
17161 cat > conftest.$ac_ext <<EOF
17162 #line 17163 "configure"
17163 #include "confdefs.h"
17164 /* System header to define __stub macros and hopefully few prototypes,
17165 which can conflict with char $ac_func(); below. */
17166 #include <assert.h>
17167 /* Override any gcc2 internal prototype to avoid an error. */
17168 /* We use char because int might match the return type of a gcc2
17169 builtin and then its argument prototype would still apply. */
17170 char $ac_func();
17171
17172 int main() {
17173
17174 /* The GNU C library defines this for functions which it implements
17175 to always fail with ENOSYS. Some functions are actually named
17176 something starting with __ and the normal name is an alias. */
17177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17178 choke me
17179 #else
17180 $ac_func();
17181 #endif
17182
17183 ; return 0; }
17184 EOF
17185 if { (eval echo configure:17186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17186 rm -rf conftest*
17187 eval "ac_cv_func_$ac_func=yes"
17188 else
17189 echo "configure: failed program was:" >&5
17190 cat conftest.$ac_ext >&5
17191 rm -rf conftest*
17192 eval "ac_cv_func_$ac_func=no"
17193 fi
17194 rm -f conftest*
17195 fi
17196
17197 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17198 echo "$ac_t""yes" 1>&6
17199 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17200 cat >> confdefs.h <<EOF
17201 #define $ac_tr_func 1
17202 EOF
17203 break
17204 else
17205 echo "$ac_t""no" 1>&6
17206 fi
17207 done
17208
17209
17210 if test "$ac_cv_func_gettimeofday" = "yes"; then
17211 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
17212 echo "configure:17213: checking whether gettimeofday takes two arguments" >&5
17213 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
17214 echo $ac_n "(cached) $ac_c" 1>&6
17215 else
17216
17217
17218 ac_ext=C
17219 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17220 ac_cpp='$CXXCPP $CPPFLAGS'
17221 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17222 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17223 cross_compiling=$ac_cv_prog_cxx_cross
17224
17225
17226 cat > conftest.$ac_ext <<EOF
17227 #line 17228 "configure"
17228 #include "confdefs.h"
17229
17230 #include <sys/time.h>
17231 #include <unistd.h>
17232
17233 int main() {
17234
17235 struct timeval tv;
17236 gettimeofday(&tv, NULL);
17237
17238 ; return 0; }
17239 EOF
17240 if { (eval echo configure:17241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17241 rm -rf conftest*
17242 wx_cv_func_gettimeofday_has_2_args=yes
17243 else
17244 echo "configure: failed program was:" >&5
17245 cat conftest.$ac_ext >&5
17246 rm -rf conftest*
17247 cat > conftest.$ac_ext <<EOF
17248 #line 17249 "configure"
17249 #include "confdefs.h"
17250
17251 #include <sys/time.h>
17252 #include <unistd.h>
17253
17254 int main() {
17255
17256 struct timeval tv;
17257 gettimeofday(&tv);
17258
17259 ; return 0; }
17260 EOF
17261 if { (eval echo configure:17262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17262 rm -rf conftest*
17263 wx_cv_func_gettimeofday_has_2_args=no
17264 else
17265 echo "configure: failed program was:" >&5
17266 cat conftest.$ac_ext >&5
17267 rm -rf conftest*
17268
17269 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
17270 wx_cv_func_gettimeofday_has_2_args=unknown
17271
17272
17273 fi
17274 rm -f conftest*
17275
17276 fi
17277 rm -f conftest*
17278 ac_ext=c
17279 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17280 ac_cpp='$CPP $CPPFLAGS'
17281 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17282 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17283 cross_compiling=$ac_cv_prog_cc_cross
17284
17285
17286 fi
17287
17288 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
17289
17290 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
17291 cat >> confdefs.h <<\EOF
17292 #define WX_GETTIMEOFDAY_NO_TZ 1
17293 EOF
17294
17295 fi
17296 fi
17297
17298 cat >> confdefs.h <<\EOF
17299 #define wxUSE_TIMEDATE 1
17300 EOF
17301
17302 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
17303 fi
17304
17305
17306 if test "$TOOLKIT" != "MSW"; then
17307
17308 if test "$wxUSE_SOCKETS" = "yes"; then
17309 echo $ac_n "checking for socket""... $ac_c" 1>&6
17310 echo "configure:17311: checking for socket" >&5
17311 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
17312 echo $ac_n "(cached) $ac_c" 1>&6
17313 else
17314 cat > conftest.$ac_ext <<EOF
17315 #line 17316 "configure"
17316 #include "confdefs.h"
17317 /* System header to define __stub macros and hopefully few prototypes,
17318 which can conflict with char socket(); below. */
17319 #include <assert.h>
17320 /* Override any gcc2 internal prototype to avoid an error. */
17321 /* We use char because int might match the return type of a gcc2
17322 builtin and then its argument prototype would still apply. */
17323 char socket();
17324
17325 int main() {
17326
17327 /* The GNU C library defines this for functions which it implements
17328 to always fail with ENOSYS. Some functions are actually named
17329 something starting with __ and the normal name is an alias. */
17330 #if defined (__stub_socket) || defined (__stub___socket)
17331 choke me
17332 #else
17333 socket();
17334 #endif
17335
17336 ; return 0; }
17337 EOF
17338 if { (eval echo configure:17339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17339 rm -rf conftest*
17340 eval "ac_cv_func_socket=yes"
17341 else
17342 echo "configure: failed program was:" >&5
17343 cat conftest.$ac_ext >&5
17344 rm -rf conftest*
17345 eval "ac_cv_func_socket=no"
17346 fi
17347 rm -f conftest*
17348 fi
17349
17350 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
17351 echo "$ac_t""yes" 1>&6
17352 :
17353 else
17354 echo "$ac_t""no" 1>&6
17355 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
17356 echo "configure:17357: checking for socket in -lsocket" >&5
17357 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
17358 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17359 echo $ac_n "(cached) $ac_c" 1>&6
17360 else
17361 ac_save_LIBS="$LIBS"
17362 LIBS="-lsocket $LIBS"
17363 cat > conftest.$ac_ext <<EOF
17364 #line 17365 "configure"
17365 #include "confdefs.h"
17366 /* Override any gcc2 internal prototype to avoid an error. */
17367 /* We use char because int might match the return type of a gcc2
17368 builtin and then its argument prototype would still apply. */
17369 char socket();
17370
17371 int main() {
17372 socket()
17373 ; return 0; }
17374 EOF
17375 if { (eval echo configure:17376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17376 rm -rf conftest*
17377 eval "ac_cv_lib_$ac_lib_var=yes"
17378 else
17379 echo "configure: failed program was:" >&5
17380 cat conftest.$ac_ext >&5
17381 rm -rf conftest*
17382 eval "ac_cv_lib_$ac_lib_var=no"
17383 fi
17384 rm -f conftest*
17385 LIBS="$ac_save_LIBS"
17386
17387 fi
17388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17389 echo "$ac_t""yes" 1>&6
17390 INET_LINK="$INET_LINK -lsocket"
17391 else
17392 echo "$ac_t""no" 1>&6
17393
17394 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
17395 wxUSE_SOCKETS=no
17396
17397
17398 fi
17399
17400
17401 fi
17402
17403 fi
17404
17405
17406 if test "$wxUSE_SOCKETS" = "yes" ; then
17407 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
17408 echo "configure:17409: checking what is the type of the third argument of getsockname" >&5
17409 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
17410 echo $ac_n "(cached) $ac_c" 1>&6
17411 else
17412
17413
17414 ac_ext=C
17415 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17416 ac_cpp='$CXXCPP $CPPFLAGS'
17417 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17418 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17419 cross_compiling=$ac_cv_prog_cxx_cross
17420
17421
17422 cat > conftest.$ac_ext <<EOF
17423 #line 17424 "configure"
17424 #include "confdefs.h"
17425
17426 #include <sys/types.h>
17427 #include <sys/socket.h>
17428
17429 int main() {
17430
17431 socklen_t len;
17432 getsockname(0, 0, &len);
17433
17434 ; return 0; }
17435 EOF
17436 if { (eval echo configure:17437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17437 rm -rf conftest*
17438 wx_cv_type_getsockname3=socklen_t
17439 else
17440 echo "configure: failed program was:" >&5
17441 cat conftest.$ac_ext >&5
17442 rm -rf conftest*
17443 cat > conftest.$ac_ext <<EOF
17444 #line 17445 "configure"
17445 #include "confdefs.h"
17446
17447 #include <sys/types.h>
17448 #include <sys/socket.h>
17449
17450 int main() {
17451
17452 size_t len;
17453 getsockname(0, 0, &len);
17454
17455 ; return 0; }
17456 EOF
17457 if { (eval echo configure:17458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17458 rm -rf conftest*
17459 wx_cv_type_getsockname3=size_t
17460 else
17461 echo "configure: failed program was:" >&5
17462 cat conftest.$ac_ext >&5
17463 rm -rf conftest*
17464 cat > conftest.$ac_ext <<EOF
17465 #line 17466 "configure"
17466 #include "confdefs.h"
17467
17468 #include <sys/types.h>
17469 #include <sys/socket.h>
17470
17471 int main() {
17472
17473 int len;
17474 getsockname(0, 0, &len);
17475
17476 ; return 0; }
17477 EOF
17478 if { (eval echo configure:17479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17479 rm -rf conftest*
17480 wx_cv_type_getsockname3=int
17481 else
17482 echo "configure: failed program was:" >&5
17483 cat conftest.$ac_ext >&5
17484 rm -rf conftest*
17485 wx_cv_type_getsockname3=unknown
17486
17487 fi
17488 rm -f conftest*
17489
17490 fi
17491 rm -f conftest*
17492
17493 fi
17494 rm -f conftest*
17495
17496 ac_ext=c
17497 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17498 ac_cpp='$CPP $CPPFLAGS'
17499 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17500 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17501 cross_compiling=$ac_cv_prog_cc_cross
17502
17503
17504 fi
17505
17506 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
17507
17508 if test "$wx_cv_type_getsockname3" = "unknown"; then
17509 wxUSE_SOCKETS=no
17510 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
17511 else
17512 cat >> confdefs.h <<EOF
17513 #define SOCKLEN_T $wx_cv_type_getsockname3
17514 EOF
17515
17516 fi
17517 fi
17518 fi
17519
17520 if test "$wxUSE_SOCKETS" = "yes" ; then
17521 cat >> confdefs.h <<\EOF
17522 #define wxUSE_SOCKETS 1
17523 EOF
17524
17525 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
17526 fi
17527
17528
17529 if test "$wxUSE_GUI" = "yes"; then
17530
17531 if test "$TOOLKIT" = "MAC"; then
17532 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
17533 wxUSE_JOYSTICK=no
17534 fi
17535 if test "$TOOLKIT" = "MOTIF"; then
17536 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
17537 wxUSE_JOYSTICK=no
17538 fi
17539
17540 if test "$TOOLKIT" != "MSW"; then
17541 if test "$wxUSE_JOYSTICK" = "yes"; then
17542 for ac_hdr in linux/joystick.h
17543 do
17544 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17545 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17546 echo "configure:17547: checking for $ac_hdr" >&5
17547 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17548 echo $ac_n "(cached) $ac_c" 1>&6
17549 else
17550 cat > conftest.$ac_ext <<EOF
17551 #line 17552 "configure"
17552 #include "confdefs.h"
17553 #include <$ac_hdr>
17554 EOF
17555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17556 { (eval echo configure:17557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17558 if test -z "$ac_err"; then
17559 rm -rf conftest*
17560 eval "ac_cv_header_$ac_safe=yes"
17561 else
17562 echo "$ac_err" >&5
17563 echo "configure: failed program was:" >&5
17564 cat conftest.$ac_ext >&5
17565 rm -rf conftest*
17566 eval "ac_cv_header_$ac_safe=no"
17567 fi
17568 rm -f conftest*
17569 fi
17570 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17571 echo "$ac_t""yes" 1>&6
17572 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17573 cat >> confdefs.h <<EOF
17574 #define $ac_tr_hdr 1
17575 EOF
17576
17577 else
17578 echo "$ac_t""no" 1>&6
17579 fi
17580 done
17581
17582 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
17583 wxUSE_JOYSTICK=no
17584 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
17585 fi
17586 fi
17587 fi
17588
17589 if test "$wxUSE_JOYSTICK" = "yes"; then
17590 cat >> confdefs.h <<\EOF
17591 #define wxUSE_JOYSTICK 1
17592 EOF
17593
17594 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
17595 fi
17596 fi
17597
17598
17599 if test "$TOOLKIT" != "MSW"; then
17600
17601 HAVE_DL_FUNCS=0
17602 HAVE_SHL_FUNCS=0
17603 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
17604 if test "$USE_DARWIN" = 1; then
17605 HAVE_DL_FUNCS=1
17606 else
17607 for ac_func in dlopen
17608 do
17609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17610 echo "configure:17611: checking for $ac_func" >&5
17611 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17612 echo $ac_n "(cached) $ac_c" 1>&6
17613 else
17614 cat > conftest.$ac_ext <<EOF
17615 #line 17616 "configure"
17616 #include "confdefs.h"
17617 /* System header to define __stub macros and hopefully few prototypes,
17618 which can conflict with char $ac_func(); below. */
17619 #include <assert.h>
17620 /* Override any gcc2 internal prototype to avoid an error. */
17621 /* We use char because int might match the return type of a gcc2
17622 builtin and then its argument prototype would still apply. */
17623 char $ac_func();
17624
17625 int main() {
17626
17627 /* The GNU C library defines this for functions which it implements
17628 to always fail with ENOSYS. Some functions are actually named
17629 something starting with __ and the normal name is an alias. */
17630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17631 choke me
17632 #else
17633 $ac_func();
17634 #endif
17635
17636 ; return 0; }
17637 EOF
17638 if { (eval echo configure:17639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17639 rm -rf conftest*
17640 eval "ac_cv_func_$ac_func=yes"
17641 else
17642 echo "configure: failed program was:" >&5
17643 cat conftest.$ac_ext >&5
17644 rm -rf conftest*
17645 eval "ac_cv_func_$ac_func=no"
17646 fi
17647 rm -f conftest*
17648 fi
17649
17650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17651 echo "$ac_t""yes" 1>&6
17652 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17653 cat >> confdefs.h <<EOF
17654 #define $ac_tr_func 1
17655 EOF
17656
17657 cat >> confdefs.h <<\EOF
17658 #define HAVE_DLOPEN 1
17659 EOF
17660
17661 HAVE_DL_FUNCS=1
17662
17663 else
17664 echo "$ac_t""no" 1>&6
17665 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
17666 echo "configure:17667: checking for dlopen in -ldl" >&5
17667 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
17668 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17669 echo $ac_n "(cached) $ac_c" 1>&6
17670 else
17671 ac_save_LIBS="$LIBS"
17672 LIBS="-ldl $LIBS"
17673 cat > conftest.$ac_ext <<EOF
17674 #line 17675 "configure"
17675 #include "confdefs.h"
17676 /* Override any gcc2 internal prototype to avoid an error. */
17677 /* We use char because int might match the return type of a gcc2
17678 builtin and then its argument prototype would still apply. */
17679 char dlopen();
17680
17681 int main() {
17682 dlopen()
17683 ; return 0; }
17684 EOF
17685 if { (eval echo configure:17686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17686 rm -rf conftest*
17687 eval "ac_cv_lib_$ac_lib_var=yes"
17688 else
17689 echo "configure: failed program was:" >&5
17690 cat conftest.$ac_ext >&5
17691 rm -rf conftest*
17692 eval "ac_cv_lib_$ac_lib_var=no"
17693 fi
17694 rm -f conftest*
17695 LIBS="$ac_save_LIBS"
17696
17697 fi
17698 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17699 echo "$ac_t""yes" 1>&6
17700
17701 cat >> confdefs.h <<\EOF
17702 #define HAVE_DLOPEN 1
17703 EOF
17704
17705 HAVE_DL_FUNCS=1
17706 DL_LINK=" -ldl$DL_LINK"
17707
17708 else
17709 echo "$ac_t""no" 1>&6
17710
17711 for ac_func in shl_load
17712 do
17713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17714 echo "configure:17715: checking for $ac_func" >&5
17715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17716 echo $ac_n "(cached) $ac_c" 1>&6
17717 else
17718 cat > conftest.$ac_ext <<EOF
17719 #line 17720 "configure"
17720 #include "confdefs.h"
17721 /* System header to define __stub macros and hopefully few prototypes,
17722 which can conflict with char $ac_func(); below. */
17723 #include <assert.h>
17724 /* Override any gcc2 internal prototype to avoid an error. */
17725 /* We use char because int might match the return type of a gcc2
17726 builtin and then its argument prototype would still apply. */
17727 char $ac_func();
17728
17729 int main() {
17730
17731 /* The GNU C library defines this for functions which it implements
17732 to always fail with ENOSYS. Some functions are actually named
17733 something starting with __ and the normal name is an alias. */
17734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17735 choke me
17736 #else
17737 $ac_func();
17738 #endif
17739
17740 ; return 0; }
17741 EOF
17742 if { (eval echo configure:17743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17743 rm -rf conftest*
17744 eval "ac_cv_func_$ac_func=yes"
17745 else
17746 echo "configure: failed program was:" >&5
17747 cat conftest.$ac_ext >&5
17748 rm -rf conftest*
17749 eval "ac_cv_func_$ac_func=no"
17750 fi
17751 rm -f conftest*
17752 fi
17753
17754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17755 echo "$ac_t""yes" 1>&6
17756 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17757 cat >> confdefs.h <<EOF
17758 #define $ac_tr_func 1
17759 EOF
17760
17761 cat >> confdefs.h <<\EOF
17762 #define HAVE_SHL_LOAD 1
17763 EOF
17764
17765 HAVE_SHL_FUNCS=1
17766
17767 else
17768 echo "$ac_t""no" 1>&6
17769 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
17770 echo "configure:17771: checking for dld in -lshl_load" >&5
17771 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
17772 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17773 echo $ac_n "(cached) $ac_c" 1>&6
17774 else
17775 ac_save_LIBS="$LIBS"
17776 LIBS="-lshl_load $LIBS"
17777 cat > conftest.$ac_ext <<EOF
17778 #line 17779 "configure"
17779 #include "confdefs.h"
17780 /* Override any gcc2 internal prototype to avoid an error. */
17781 /* We use char because int might match the return type of a gcc2
17782 builtin and then its argument prototype would still apply. */
17783 char dld();
17784
17785 int main() {
17786 dld()
17787 ; return 0; }
17788 EOF
17789 if { (eval echo configure:17790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17790 rm -rf conftest*
17791 eval "ac_cv_lib_$ac_lib_var=yes"
17792 else
17793 echo "configure: failed program was:" >&5
17794 cat conftest.$ac_ext >&5
17795 rm -rf conftest*
17796 eval "ac_cv_lib_$ac_lib_var=no"
17797 fi
17798 rm -f conftest*
17799 LIBS="$ac_save_LIBS"
17800
17801 fi
17802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17803 echo "$ac_t""yes" 1>&6
17804
17805 HAVE_SHL_FUNCS=1
17806 DL_LINK=" -ldld$DL_LINK"
17807
17808 else
17809 echo "$ac_t""no" 1>&6
17810 fi
17811
17812
17813 fi
17814 done
17815
17816
17817 fi
17818
17819
17820 fi
17821 done
17822
17823
17824 if test "$HAVE_DL_FUNCS" = 1; then
17825 for ac_func in dlerror
17826 do
17827 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17828 echo "configure:17829: checking for $ac_func" >&5
17829 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17830 echo $ac_n "(cached) $ac_c" 1>&6
17831 else
17832 cat > conftest.$ac_ext <<EOF
17833 #line 17834 "configure"
17834 #include "confdefs.h"
17835 /* System header to define __stub macros and hopefully few prototypes,
17836 which can conflict with char $ac_func(); below. */
17837 #include <assert.h>
17838 /* Override any gcc2 internal prototype to avoid an error. */
17839 /* We use char because int might match the return type of a gcc2
17840 builtin and then its argument prototype would still apply. */
17841 char $ac_func();
17842
17843 int main() {
17844
17845 /* The GNU C library defines this for functions which it implements
17846 to always fail with ENOSYS. Some functions are actually named
17847 something starting with __ and the normal name is an alias. */
17848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17849 choke me
17850 #else
17851 $ac_func();
17852 #endif
17853
17854 ; return 0; }
17855 EOF
17856 if { (eval echo configure:17857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17857 rm -rf conftest*
17858 eval "ac_cv_func_$ac_func=yes"
17859 else
17860 echo "configure: failed program was:" >&5
17861 cat conftest.$ac_ext >&5
17862 rm -rf conftest*
17863 eval "ac_cv_func_$ac_func=no"
17864 fi
17865 rm -f conftest*
17866 fi
17867
17868 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17869 echo "$ac_t""yes" 1>&6
17870 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17871 cat >> confdefs.h <<EOF
17872 #define $ac_tr_func 1
17873 EOF
17874 cat >> confdefs.h <<\EOF
17875 #define HAVE_DLERROR 1
17876 EOF
17877
17878 else
17879 echo "$ac_t""no" 1>&6
17880 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
17881 echo "configure:17882: checking for dlerror in -ldl" >&5
17882 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
17883 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17884 echo $ac_n "(cached) $ac_c" 1>&6
17885 else
17886 ac_save_LIBS="$LIBS"
17887 LIBS="-ldl $LIBS"
17888 cat > conftest.$ac_ext <<EOF
17889 #line 17890 "configure"
17890 #include "confdefs.h"
17891 /* Override any gcc2 internal prototype to avoid an error. */
17892 /* We use char because int might match the return type of a gcc2
17893 builtin and then its argument prototype would still apply. */
17894 char dlerror();
17895
17896 int main() {
17897 dlerror()
17898 ; return 0; }
17899 EOF
17900 if { (eval echo configure:17901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17901 rm -rf conftest*
17902 eval "ac_cv_lib_$ac_lib_var=yes"
17903 else
17904 echo "configure: failed program was:" >&5
17905 cat conftest.$ac_ext >&5
17906 rm -rf conftest*
17907 eval "ac_cv_lib_$ac_lib_var=no"
17908 fi
17909 rm -f conftest*
17910 LIBS="$ac_save_LIBS"
17911
17912 fi
17913 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17914 echo "$ac_t""yes" 1>&6
17915 cat >> confdefs.h <<\EOF
17916 #define HAVE_DLERROR 1
17917 EOF
17918
17919 else
17920 echo "$ac_t""no" 1>&6
17921 fi
17922
17923 fi
17924 done
17925
17926 fi
17927 fi
17928
17929 if test "$HAVE_DL_FUNCS" = 0; then
17930 if test "$HAVE_SHL_FUNCS" = 0; then
17931 if test "$USE_UNIX" = 1; then
17932 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
17933 wxUSE_DYNAMIC_LOADER=no
17934 wxUSE_DYNLIB_CLASS=no
17935 else
17936 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
17937 fi
17938 fi
17939 fi
17940 fi
17941 fi
17942
17943 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
17944 cat >> confdefs.h <<\EOF
17945 #define wxUSE_DYNAMIC_LOADER 1
17946 EOF
17947
17948 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
17949 cat >> confdefs.h <<\EOF
17950 #define wxUSE_DYNLIB_CLASS 1
17951 EOF
17952
17953 fi
17954
17955
17956 if test "$wxUSE_FONTMAP" = "yes" ; then
17957 cat >> confdefs.h <<\EOF
17958 #define wxUSE_FONTMAP 1
17959 EOF
17960
17961 fi
17962
17963 if test "$wxUSE_UNICODE" = "yes" ; then
17964 cat >> confdefs.h <<\EOF
17965 #define wxUSE_UNICODE 1
17966 EOF
17967
17968 fi
17969
17970 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
17971 cat >> confdefs.h <<\EOF
17972 #define wxUSE_EXPERIMENTAL_PRINTF 1
17973 EOF
17974
17975 fi
17976
17977
17978
17979 IODBC_C_SRC=""
17980 if test "$wxUSE_ODBC" = "yes" ; then
17981 cat >> confdefs.h <<\EOF
17982 #define wxUSE_ODBC 1
17983 EOF
17984
17985 WXODBCFLAG="-D_IODBC_"
17986 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
17987 fi
17988
17989
17990 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
17991 cat >> confdefs.h <<\EOF
17992 #define wxUSE_POSTSCRIPT 1
17993 EOF
17994
17995 fi
17996
17997 cat >> confdefs.h <<\EOF
17998 #define wxUSE_AFM_FOR_POSTSCRIPT 1
17999 EOF
18000
18001
18002 cat >> confdefs.h <<\EOF
18003 #define wxUSE_NORMALIZED_PS_FONTS 1
18004 EOF
18005
18006
18007
18008 if test "$wxUSE_CONSTRAINTS" = "yes"; then
18009 cat >> confdefs.h <<\EOF
18010 #define wxUSE_CONSTRAINTS 1
18011 EOF
18012
18013 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
18014 fi
18015
18016 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18017 if test "$wxUSE_UNIVERSAL" = "yes"; then
18018 echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2
18019 wxUSE_MDI_ARCHITECTURE=no
18020 fi
18021
18022 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18023 cat >> confdefs.h <<\EOF
18024 #define wxUSE_MDI_ARCHITECTURE 1
18025 EOF
18026
18027 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
18028 fi
18029 fi
18030
18031 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
18032 cat >> confdefs.h <<\EOF
18033 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
18034 EOF
18035
18036 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
18037 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18038 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
18039 fi
18040 fi
18041
18042 if test "$wxUSE_HELP" = "yes"; then
18043 cat >> confdefs.h <<\EOF
18044 #define wxUSE_HELP 1
18045 EOF
18046
18047 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
18048
18049 if test "$wxUSE_MSW" = 1; then
18050 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
18051 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
18052 echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
18053 echo "configure:18054: checking for htmlhelp.h" >&5
18054 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18055 echo $ac_n "(cached) $ac_c" 1>&6
18056 else
18057 cat > conftest.$ac_ext <<EOF
18058 #line 18059 "configure"
18059 #include "confdefs.h"
18060 #include <htmlhelp.h>
18061 EOF
18062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18063 { (eval echo configure:18064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18065 if test -z "$ac_err"; then
18066 rm -rf conftest*
18067 eval "ac_cv_header_$ac_safe=yes"
18068 else
18069 echo "$ac_err" >&5
18070 echo "configure: failed program was:" >&5
18071 cat conftest.$ac_ext >&5
18072 rm -rf conftest*
18073 eval "ac_cv_header_$ac_safe=no"
18074 fi
18075 rm -f conftest*
18076 fi
18077 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18078 echo "$ac_t""yes" 1>&6
18079
18080 cat >> confdefs.h <<\EOF
18081 #define wxUSE_MS_HTML_HELP 1
18082 EOF
18083
18084
18085 else
18086 echo "$ac_t""no" 1>&6
18087
18088 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
18089 wxUSE_MS_HTML_HELP=no
18090
18091 fi
18092
18093 fi
18094 fi
18095
18096 if test "$wxUSE_WXHTML_HELP" = "yes"; then
18097 if test "$wxUSE_HTML" = "yes"; then
18098 cat >> confdefs.h <<\EOF
18099 #define wxUSE_WXHTML_HELP 1
18100 EOF
18101
18102 else
18103 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
18104 wxUSE_WXHTML_HELP=no
18105 fi
18106 fi
18107 fi
18108
18109 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
18110 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18111 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
18112 else
18113 cat >> confdefs.h <<\EOF
18114 #define wxUSE_PRINTING_ARCHITECTURE 1
18115 EOF
18116
18117 fi
18118 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
18119 fi
18120
18121 if test "$wxUSE_PROLOGIO" = "yes" ; then
18122 cat >> confdefs.h <<\EOF
18123 #define wxUSE_PROLOGIO 1
18124 EOF
18125
18126 fi
18127
18128 if test "$wxUSE_RESOURCES" = "yes" ; then
18129 cat >> confdefs.h <<\EOF
18130 #define wxUSE_RESOURCES 1
18131 EOF
18132
18133 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
18134 fi
18135
18136 if test "$wxUSE_X_RESOURCES" = "yes"; then
18137 cat >> confdefs.h <<\EOF
18138 #define wxUSE_X_RESOURCES 1
18139 EOF
18140
18141 fi
18142
18143
18144 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
18145 -o "$wxUSE_CLIPBOARD" = "yes" \
18146 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
18147 for ac_hdr in ole2.h
18148 do
18149 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18150 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18151 echo "configure:18152: checking for $ac_hdr" >&5
18152 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18153 echo $ac_n "(cached) $ac_c" 1>&6
18154 else
18155 cat > conftest.$ac_ext <<EOF
18156 #line 18157 "configure"
18157 #include "confdefs.h"
18158 #include <$ac_hdr>
18159 EOF
18160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18161 { (eval echo configure:18162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18162 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18163 if test -z "$ac_err"; then
18164 rm -rf conftest*
18165 eval "ac_cv_header_$ac_safe=yes"
18166 else
18167 echo "$ac_err" >&5
18168 echo "configure: failed program was:" >&5
18169 cat conftest.$ac_ext >&5
18170 rm -rf conftest*
18171 eval "ac_cv_header_$ac_safe=no"
18172 fi
18173 rm -f conftest*
18174 fi
18175 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18176 echo "$ac_t""yes" 1>&6
18177 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18178 cat >> confdefs.h <<EOF
18179 #define $ac_tr_hdr 1
18180 EOF
18181
18182 else
18183 echo "$ac_t""no" 1>&6
18184 fi
18185 done
18186
18187
18188 if test "$ac_cv_header_ole2_h" = "yes" ; then
18189 if test "$GCC" = yes ; then
18190 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
18191 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
18192 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
18193 cat >> confdefs.h <<\EOF
18194 #define wxUSE_OLE 1
18195 EOF
18196
18197
18198 fi
18199
18200 cat >> confdefs.h <<\EOF
18201 #define wxUSE_DATAOBJ 1
18202 EOF
18203
18204 else
18205 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
18206
18207 wxUSE_CLIPBOARD=no
18208 wxUSE_DRAG_AND_DROP=no
18209 wxUSE_DATAOBJ=no
18210 fi
18211
18212 if test "$wxUSE_METAFILE" = "yes"; then
18213 cat >> confdefs.h <<\EOF
18214 #define wxUSE_METAFILE 1
18215 EOF
18216
18217
18218 cat >> confdefs.h <<\EOF
18219 #define wxUSE_ENH_METAFILE 1
18220 EOF
18221
18222 fi
18223 fi
18224
18225 if test "$wxUSE_IPC" = "yes"; then
18226 if test "$wxUSE_SOCKETS" != "yes"; then
18227 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
18228 fi
18229
18230 cat >> confdefs.h <<\EOF
18231 #define wxUSE_IPC 1
18232 EOF
18233
18234 fi
18235
18236 if test "$wxUSE_CLIPBOARD" = "yes"; then
18237 cat >> confdefs.h <<\EOF
18238 #define wxUSE_CLIPBOARD 1
18239 EOF
18240
18241
18242 cat >> confdefs.h <<\EOF
18243 #define wxUSE_DATAOBJ 1
18244 EOF
18245
18246 fi
18247
18248 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
18249 if test "$wxUSE_GTK" = 1; then
18250 if test "$WXGTK12" != 1; then
18251 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
18252 wxUSE_DRAG_AND_DROP=no
18253 fi
18254 fi
18255
18256 if test "$wxUSE_MOTIF" = 1; then
18257 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
18258 wxUSE_DRAG_AND_DROP=no
18259 fi
18260
18261 if test "$wxUSE_MAC" = 1; then
18262 echo "configure: warning: Drag and drop not yet supported under Mac OS X... disabled" 1>&2
18263 wxUSE_DRAG_AND_DROP=no
18264 fi
18265
18266 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
18267 cat >> confdefs.h <<\EOF
18268 #define wxUSE_DRAG_AND_DROP 1
18269 EOF
18270
18271 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
18272 fi
18273
18274 fi
18275
18276 if test "$wxUSE_SPLINES" = "yes" ; then
18277 cat >> confdefs.h <<\EOF
18278 #define wxUSE_SPLINES 1
18279 EOF
18280
18281 fi
18282
18283
18284 USES_CONTROLS=0
18285 if test "$wxUSE_CONTROLS" = "yes"; then
18286 USES_CONTROLS=1
18287 fi
18288
18289 if test "$wxUSE_ACCEL" = "yes"; then
18290 cat >> confdefs.h <<\EOF
18291 #define wxUSE_ACCEL 1
18292 EOF
18293
18294 USES_CONTROLS=1
18295 fi
18296
18297 if test "$wxUSE_BUTTON" = "yes"; then
18298 cat >> confdefs.h <<\EOF
18299 #define wxUSE_BUTTON 1
18300 EOF
18301
18302 USES_CONTROLS=1
18303 fi
18304
18305 if test "$wxUSE_BMPBUTTON" = "yes"; then
18306 cat >> confdefs.h <<\EOF
18307 #define wxUSE_BMPBUTTON 1
18308 EOF
18309
18310 USES_CONTROLS=1
18311 fi
18312
18313 if test "$wxUSE_CALCTRL" = "yes"; then
18314 cat >> confdefs.h <<\EOF
18315 #define wxUSE_CALENDARCTRL 1
18316 EOF
18317
18318 USES_CONTROLS=1
18319 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
18320 fi
18321
18322 if test "$wxUSE_CARET" = "yes"; then
18323 cat >> confdefs.h <<\EOF
18324 #define wxUSE_CARET 1
18325 EOF
18326
18327 USES_CONTROLS=1
18328 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
18329 fi
18330
18331 if test "$wxUSE_COMBOBOX" = "yes"; then
18332 cat >> confdefs.h <<\EOF
18333 #define wxUSE_COMBOBOX 1
18334 EOF
18335
18336 USES_CONTROLS=1
18337 fi
18338
18339 if test "$wxUSE_CHOICE" = "yes"; then
18340 cat >> confdefs.h <<\EOF
18341 #define wxUSE_CHOICE 1
18342 EOF
18343
18344 USES_CONTROLS=1
18345 fi
18346
18347 if test "$wxUSE_CHECKBOX" = "yes"; then
18348 cat >> confdefs.h <<\EOF
18349 #define wxUSE_CHECKBOX 1
18350 EOF
18351
18352 USES_CONTROLS=1
18353 fi
18354
18355 if test "$wxUSE_CHECKLST" = "yes"; then
18356 cat >> confdefs.h <<\EOF
18357 #define wxUSE_CHECKLISTBOX 1
18358 EOF
18359
18360 USES_CONTROLS=1
18361 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
18362 fi
18363
18364 if test "$wxUSE_GAUGE" = "yes"; then
18365 cat >> confdefs.h <<\EOF
18366 #define wxUSE_GAUGE 1
18367 EOF
18368
18369 USES_CONTROLS=1
18370 fi
18371
18372 if test "$wxUSE_NEW_GRID" = "yes"; then
18373 wxUSE_GRID="yes"
18374 cat >> confdefs.h <<\EOF
18375 #define wxUSE_NEW_GRID 1
18376 EOF
18377
18378 USES_CONTROLS=1
18379 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
18380 fi
18381
18382 if test "$wxUSE_GRID" = "yes"; then
18383 cat >> confdefs.h <<\EOF
18384 #define wxUSE_GRID 1
18385 EOF
18386
18387 USES_CONTROLS=1
18388 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
18389 fi
18390
18391 if test "$wxUSE_IMAGLIST" = "yes"; then
18392 cat >> confdefs.h <<\EOF
18393 #define wxUSE_IMAGLIST 1
18394 EOF
18395
18396 fi
18397
18398 if test "$wxUSE_LISTBOX" = "yes"; then
18399 cat >> confdefs.h <<\EOF
18400 #define wxUSE_LISTBOX 1
18401 EOF
18402
18403 USES_CONTROLS=1
18404 fi
18405
18406 if test "$wxUSE_LISTCTRL" = "yes"; then
18407 if test "$wxUSE_IMAGLIST" = "yes"; then
18408 cat >> confdefs.h <<\EOF
18409 #define wxUSE_LISTCTRL 1
18410 EOF
18411
18412 USES_CONTROLS=1
18413 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
18414 else
18415 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
18416 fi
18417 fi
18418
18419 if test "$wxUSE_NOTEBOOK" = "yes"; then
18420 cat >> confdefs.h <<\EOF
18421 #define wxUSE_NOTEBOOK 1
18422 EOF
18423
18424 USES_CONTROLS=1
18425 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
18426 fi
18427
18428 if test "$wxUSE_PROPSHEET" = "yes"; then
18429 cat >> confdefs.h <<\EOF
18430 #define wxUSE_PROPSHEET 1
18431 EOF
18432
18433 USES_CONTROLS=1
18434 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
18435 fi
18436
18437 if test "$wxUSE_RADIOBOX" = "yes"; then
18438 cat >> confdefs.h <<\EOF
18439 #define wxUSE_RADIOBOX 1
18440 EOF
18441
18442 USES_CONTROLS=1
18443 fi
18444
18445 if test "$wxUSE_RADIOBTN" = "yes"; then
18446 cat >> confdefs.h <<\EOF
18447 #define wxUSE_RADIOBTN 1
18448 EOF
18449
18450 USES_CONTROLS=1
18451 fi
18452
18453 if test "$wxUSE_SASH" = "yes"; then
18454 cat >> confdefs.h <<\EOF
18455 #define wxUSE_SASH 1
18456 EOF
18457
18458 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
18459 fi
18460
18461 if test "$wxUSE_SCROLLBAR" = "yes"; then
18462 cat >> confdefs.h <<\EOF
18463 #define wxUSE_SCROLLBAR 1
18464 EOF
18465
18466 USES_CONTROLS=1
18467 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
18468 fi
18469
18470 if test "$wxUSE_SLIDER" = "yes"; then
18471 cat >> confdefs.h <<\EOF
18472 #define wxUSE_SLIDER 1
18473 EOF
18474
18475 USES_CONTROLS=1
18476 fi
18477
18478 if test "$wxUSE_SPINBTN" = "yes"; then
18479 cat >> confdefs.h <<\EOF
18480 #define wxUSE_SPINBTN 1
18481 EOF
18482
18483 USES_CONTROLS=1
18484 fi
18485
18486 if test "$wxUSE_SPINCTRL" = "yes"; then
18487 cat >> confdefs.h <<\EOF
18488 #define wxUSE_SPINCTRL 1
18489 EOF
18490
18491 USES_CONTROLS=1
18492 fi
18493
18494 if test "$wxUSE_SPLITTER" = "yes"; then
18495 cat >> confdefs.h <<\EOF
18496 #define wxUSE_SPLITTER 1
18497 EOF
18498
18499 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
18500 fi
18501
18502 if test "$wxUSE_STATBMP" = "yes"; then
18503 cat >> confdefs.h <<\EOF
18504 #define wxUSE_STATBMP 1
18505 EOF
18506
18507 USES_CONTROLS=1
18508 fi
18509
18510 if test "$wxUSE_STATBOX" = "yes"; then
18511 cat >> confdefs.h <<\EOF
18512 #define wxUSE_STATBOX 1
18513 EOF
18514
18515 USES_CONTROLS=1
18516 fi
18517
18518 if test "$wxUSE_STATTEXT" = "yes"; then
18519 cat >> confdefs.h <<\EOF
18520 #define wxUSE_STATTEXT 1
18521 EOF
18522
18523 USES_CONTROLS=1
18524 fi
18525
18526 if test "$wxUSE_STATLINE" = "yes"; then
18527 if test "$wxUSE_WINE" = 1 ; then
18528 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
18529 else
18530 cat >> confdefs.h <<\EOF
18531 #define wxUSE_STATLINE 1
18532 EOF
18533
18534 USES_CONTROLS=1
18535 fi
18536 fi
18537
18538 if test "$wxUSE_STATUSBAR" = "yes"; then
18539 cat >> confdefs.h <<\EOF
18540 #define wxUSE_STATUSBAR 1
18541 EOF
18542
18543 USES_CONTROLS=1
18544
18545 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
18546 fi
18547
18548 if test "$wxUSE_TABDIALOG" = "yes"; then
18549 cat >> confdefs.h <<\EOF
18550 #define wxUSE_TAB_DIALOG 1
18551 EOF
18552
18553 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
18554 fi
18555
18556 if test "$wxUSE_TEXTCTRL" = "yes"; then
18557 cat >> confdefs.h <<\EOF
18558 #define wxUSE_TEXTCTRL 1
18559 EOF
18560
18561 USES_CONTROLS=1
18562 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
18563 fi
18564
18565 if test "$wxUSE_TOGGLEBTN" = "yes"; then
18566 if test "$wxUSE_MAC" = 1; then
18567 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
18568 wxUSE_TOGGLEBTN=no
18569 fi
18570 if test "$wxUSE_UNIVERSAL" = "yes"; then
18571 echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2
18572 wxUSE_TOGGLEBTN=no
18573 fi
18574
18575 if test "$wxUSE_TOGGLEBTN" = "yes"; then
18576 cat >> confdefs.h <<\EOF
18577 #define wxUSE_TOGGLEBTN 1
18578 EOF
18579
18580 USES_CONTROLS=1
18581 fi
18582 fi
18583
18584 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
18585 cat >> confdefs.h <<\EOF
18586 #define wxUSE_TOOLBAR_SIMPLE 1
18587 EOF
18588
18589 wxUSE_TOOLBAR="yes"
18590 USES_CONTROLS=1
18591 fi
18592
18593 if test "$wxUSE_TOOLBAR" = "yes"; then
18594 cat >> confdefs.h <<\EOF
18595 #define wxUSE_TOOLBAR 1
18596 EOF
18597
18598 USES_CONTROLS=1
18599
18600 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
18601 wxUSE_TOOLBAR_NATIVE="yes"
18602 fi
18603
18604 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
18605 cat >> confdefs.h <<\EOF
18606 #define wxUSE_TOOLBAR_NATIVE 1
18607 EOF
18608
18609 USES_CONTROLS=1
18610 fi
18611
18612 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
18613 fi
18614
18615 if test "$wxUSE_TOOLTIPS" = "yes"; then
18616 if test "$wxUSE_MOTIF" = 1; then
18617 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
18618 else
18619 if test "$wxUSE_WINE" = 1; then
18620 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
18621 else
18622 if test "$wxUSE_UNIVERSAL" = "yes"; then
18623 echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2
18624 else
18625 cat >> confdefs.h <<\EOF
18626 #define wxUSE_TOOLTIPS 1
18627 EOF
18628
18629 fi
18630 fi
18631 fi
18632 fi
18633
18634 if test "$wxUSE_TREECTRL" = "yes"; then
18635 if test "$wxUSE_IMAGLIST" = "yes"; then
18636 cat >> confdefs.h <<\EOF
18637 #define wxUSE_TREECTRL 1
18638 EOF
18639
18640 USES_CONTROLS=1
18641 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
18642 else
18643 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
18644 fi
18645 fi
18646
18647 if test "$wxUSE_POPUPWIN" = "yes"; then
18648 if test "$wxUSE_MAC" = 1; then
18649 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
18650 else
18651 if test "$wxUSE_MOTIF" = 1; then
18652 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
18653 else
18654 cat >> confdefs.h <<\EOF
18655 #define wxUSE_POPUPWIN 1
18656 EOF
18657
18658
18659 USES_CONTROLS=1
18660 fi
18661 fi
18662 fi
18663
18664 if test "$wxUSE_TIPWINDOW" = "yes"; then
18665 cat >> confdefs.h <<\EOF
18666 #define wxUSE_TIPWINDOW 1
18667 EOF
18668
18669 fi
18670
18671 if test "$USES_CONTROLS" = 1; then
18672 cat >> confdefs.h <<\EOF
18673 #define wxUSE_CONTROLS 1
18674 EOF
18675
18676 fi
18677
18678
18679 if test "$wxUSE_TREELAYOUT" = "yes"; then
18680 cat >> confdefs.h <<\EOF
18681 #define wxUSE_TREELAYOUT 1
18682 EOF
18683
18684 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
18685 fi
18686
18687 if test "$wxUSE_DRAGIMAGE" = "yes"; then
18688 cat >> confdefs.h <<\EOF
18689 #define wxUSE_DRAGIMAGE 1
18690 EOF
18691
18692 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
18693 fi
18694
18695 if test "$wxUSE_MENUS" = "yes"; then
18696 cat >> confdefs.h <<\EOF
18697 #define wxUSE_MENUS 1
18698 EOF
18699
18700 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
18701 fi
18702
18703 if test "$wxUSE_METAFILE" = "yes"; then
18704 cat >> confdefs.h <<\EOF
18705 #define wxUSE_METAFILE 1
18706 EOF
18707
18708 fi
18709
18710 if test "$wxUSE_MIMETYPE" = "yes"; then
18711 cat >> confdefs.h <<\EOF
18712 #define wxUSE_MIMETYPE 1
18713 EOF
18714
18715 fi
18716
18717 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
18718 cat >> confdefs.h <<\EOF
18719 #define wxUSE_SYSTEM_OPTIONS 1
18720 EOF
18721
18722 fi
18723
18724 if test "$wxUSE_MINIFRAME" = "yes"; then
18725 cat >> confdefs.h <<\EOF
18726 #define wxUSE_MINIFRAME 1
18727 EOF
18728
18729 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
18730 fi
18731
18732 if test "$wxUSE_HTML" = "yes"; then
18733 cat >> confdefs.h <<\EOF
18734 #define wxUSE_HTML 1
18735 EOF
18736
18737 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
18738 fi
18739
18740 if test "$wxUSE_VALIDATORS" = "yes"; then
18741 cat >> confdefs.h <<\EOF
18742 #define wxUSE_VALIDATORS 1
18743 EOF
18744
18745 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
18746 fi
18747
18748 if test "$wxUSE_PALETTE" = "yes" ; then
18749 cat >> confdefs.h <<\EOF
18750 #define wxUSE_PALETTE 1
18751 EOF
18752
18753 fi
18754
18755 if test "$wxUSE_IMAGE" = "yes" ; then
18756 cat >> confdefs.h <<\EOF
18757 #define wxUSE_IMAGE 1
18758 EOF
18759
18760 fi
18761
18762 if test "$wxUSE_GIF" = "yes" ; then
18763 cat >> confdefs.h <<\EOF
18764 #define wxUSE_GIF 1
18765 EOF
18766
18767 fi
18768
18769 if test "$wxUSE_PCX" = "yes" ; then
18770 cat >> confdefs.h <<\EOF
18771 #define wxUSE_PCX 1
18772 EOF
18773
18774 fi
18775
18776 if test "$wxUSE_PNM" = "yes" ; then
18777 cat >> confdefs.h <<\EOF
18778 #define wxUSE_PNM 1
18779 EOF
18780
18781 fi
18782
18783 if test "$wxUSE_XPM" = "yes" ; then
18784 cat >> confdefs.h <<\EOF
18785 #define wxUSE_XPM 1
18786 EOF
18787
18788 fi
18789
18790
18791 if test "$wxUSE_CHOICEDLG" = "yes"; then
18792 cat >> confdefs.h <<\EOF
18793 #define wxUSE_CHOICEDLG 1
18794 EOF
18795
18796 fi
18797
18798 if test "$wxUSE_COLOURDLG" = "yes"; then
18799 cat >> confdefs.h <<\EOF
18800 #define wxUSE_COLOURDLG 1
18801 EOF
18802
18803 fi
18804
18805 if test "$wxUSE_FILEDLG" = "yes"; then
18806 cat >> confdefs.h <<\EOF
18807 #define wxUSE_FILEDLG 1
18808 EOF
18809
18810 fi
18811
18812 if test "$wxUSE_FINDREPLDLG" = "yes"; then
18813 cat >> confdefs.h <<\EOF
18814 #define wxUSE_FINDREPLDLG 1
18815 EOF
18816
18817 fi
18818
18819 if test "$wxUSE_FONTDLG" = "yes"; then
18820 cat >> confdefs.h <<\EOF
18821 #define wxUSE_FONTDLG 1
18822 EOF
18823
18824 fi
18825
18826 if test "$wxUSE_DIRDLG" = "yes"; then
18827 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18828 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
18829 else
18830 if test "$wxUSE_TREECTRL" != "yes"; then
18831 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
18832 else
18833 cat >> confdefs.h <<\EOF
18834 #define wxUSE_DIRDLG 1
18835 EOF
18836
18837 fi
18838 fi
18839 fi
18840
18841 if test "$wxUSE_MSGDLG" = "yes"; then
18842 cat >> confdefs.h <<\EOF
18843 #define wxUSE_MSGDLG 1
18844 EOF
18845
18846 fi
18847
18848 if test "$wxUSE_NUMBERDLG" = "yes"; then
18849 cat >> confdefs.h <<\EOF
18850 #define wxUSE_NUMBERDLG 1
18851 EOF
18852
18853 fi
18854
18855 if test "$wxUSE_PROGRESSDLG" = "yes"; then
18856 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18857 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
18858 else
18859 cat >> confdefs.h <<\EOF
18860 #define wxUSE_PROGRESSDLG 1
18861 EOF
18862
18863 fi
18864 fi
18865
18866 if test "$wxUSE_SPLASH" = "yes"; then
18867 cat >> confdefs.h <<\EOF
18868 #define wxUSE_SPLASH 1
18869 EOF
18870
18871 fi
18872
18873 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
18874 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18875 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
18876 else
18877 cat >> confdefs.h <<\EOF
18878 #define wxUSE_STARTUP_TIPS 1
18879 EOF
18880
18881 fi
18882 fi
18883
18884 if test "$wxUSE_TEXTDLG" = "yes"; then
18885 cat >> confdefs.h <<\EOF
18886 #define wxUSE_TEXTDLG 1
18887 EOF
18888
18889 fi
18890
18891 if test "$wxUSE_WIZARDDLG" = "yes"; then
18892 cat >> confdefs.h <<\EOF
18893 #define wxUSE_WIZARDDLG 1
18894 EOF
18895
18896 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
18897 fi
18898
18899
18900 if test "$cross_compiling" = "yes"; then
18901 OSINFO="\"$host\""
18902 else
18903 OSINFO=`uname -s -r -m`
18904 OSINFO="\"$OSINFO\""
18905 fi
18906
18907 cat >> confdefs.h <<EOF
18908 #define WXWIN_OS_DESCRIPTION $OSINFO
18909 EOF
18910
18911
18912
18913 if test "x$prefix" != "xNONE"; then
18914 wxPREFIX=$prefix
18915 else
18916 wxPREFIX=$ac_default_prefix
18917 fi
18918
18919 cat >> confdefs.h <<EOF
18920 #define wxINSTALL_PREFIX "$wxPREFIX"
18921 EOF
18922
18923
18924
18925
18926
18927 if test "$wxUSE_MAC" = 1 ; then
18928 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
18929 fi
18930
18931
18932 LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS"
18933
18934 if test "$wxUSE_GUI" = "yes"; then
18935
18936 LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS"
18937
18938
18939 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
18940 drawing dynamic erase event exec font image \
18941 minimal richedit rotate widgets"
18942
18943 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
18944 else
18945 SAMPLES_SUBDIRS="console"
18946 fi
18947
18948
18949 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
18950 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
18951 $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
18952
18953 if test "$wxUSE_GTK" = 1; then
18954 WXCONFIG_INCLUDE=
18955 else
18956 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
18957 fi
18958
18959 if test "$GXX" = yes ; then
18960 CXXWARNINGS="-Wall"
18961
18962 if test "$wxUSE_NO_DEPS" = "no" ; then
18963 CFLAGS="-MMD $CFLAGS"
18964 CXXFLAGS="-MMD $CXXFLAGS"
18965 fi
18966 fi
18967
18968 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
18969
18970 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
18971 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
18972
18973 LDFLAGS="$LDFLAGS$PROFILE"
18974
18975 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
19062 echo "configure:19063: checking whether ${MAKE-make} sets \${MAKE}" >&5
19063 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
19064 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
19065 echo $ac_n "(cached) $ac_c" 1>&6
19066 else
19067 cat > conftestmake <<\EOF
19068 all:
19069 @echo 'ac_maketemp="${MAKE}"'
19070 EOF
19071 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19072 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
19073 if test -n "$ac_maketemp"; then
19074 eval ac_cv_prog_make_${ac_make}_set=yes
19075 else
19076 eval ac_cv_prog_make_${ac_make}_set=no
19077 fi
19078 rm -f conftestmake
19079 fi
19080 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19081 echo "$ac_t""yes" 1>&6
19082 SET_MAKE=
19083 else
19084 echo "$ac_t""no" 1>&6
19085 SET_MAKE="MAKE=${MAKE-make}"
19086 fi
19087
19088
19089 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
19090 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
19091 fi
19092
19093
19094
19095 if test "$wxUSE_GUI" = "yes"; then
19096 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
19097 wx_cv_path_ifs=$PATH_IFS
19098 wx_cv_program_ext=$PROGRAM_EXT
19099 wx_cv_target_library=$WX_TARGET_LIBRARY
19100 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
19101 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
19102 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
19103 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
19104 subdirs="demos samples utils contrib"
19105
19106 fi
19107
19108 trap '' 1 2 15
19109 cat > confcache <<\EOF
19110 # This file is a shell script that caches the results of configure
19111 # tests run on this system so they can be shared between configure
19112 # scripts and configure runs. It is not useful on other systems.
19113 # If it contains results you don't want to keep, you may remove or edit it.
19114 #
19115 # By default, configure uses ./config.cache as the cache file,
19116 # creating it if it does not exist already. You can give configure
19117 # the --cache-file=FILE option to use a different cache file; that is
19118 # what configure does when it calls configure scripts in
19119 # subdirectories, so they share the cache.
19120 # Giving --cache-file=/dev/null disables caching, for debugging configure.
19121 # config.status only pays attention to the cache file if you give it the
19122 # --recheck option to rerun configure.
19123 #
19124 EOF
19125 # The following way of writing the cache mishandles newlines in values,
19126 # but we know of no workaround that is simple, portable, and efficient.
19127 # So, don't put newlines in cache variables' values.
19128 # Ultrix sh set writes to stderr and can't be redirected directly,
19129 # and sets the high bit in the cache file unless we assign to the vars.
19130 (set) 2>&1 |
19131 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19132 *ac_space=\ *)
19133 # `set' does not quote correctly, so add quotes (double-quote substitution
19134 # turns \\\\ into \\, and sed turns \\ into \).
19135 sed -n \
19136 -e "s/'/'\\\\''/g" \
19137 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19138 ;;
19139 *)
19140 # `set' quotes correctly as required by POSIX, so do not add quotes.
19141 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
19142 ;;
19143 esac >> confcache
19144 if cmp -s $cache_file confcache; then
19145 :
19146 else
19147 if test -w $cache_file; then
19148 echo "updating cache $cache_file"
19149 cat confcache > $cache_file
19150 else
19151 echo "not updating unwritable cache $cache_file"
19152 fi
19153 fi
19154 rm -f confcache
19155
19156 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
19157
19158 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19159 # Let make expand exec_prefix.
19160 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19161
19162 # Any assignment to VPATH causes Sun make to only execute
19163 # the first set of double-colon rules, so remove it if not needed.
19164 # If there is a colon in the path, we need to keep it.
19165 if test "x$srcdir" = x.; then
19166 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
19167 fi
19168
19169 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
19170
19171 DEFS=-DHAVE_CONFIG_H
19172
19173 # Without the "./", some shells look in PATH for config.status.
19174 : ${CONFIG_STATUS=./config.status}
19175
19176 echo creating $CONFIG_STATUS
19177 rm -f $CONFIG_STATUS
19178 cat > $CONFIG_STATUS <<EOF
19179 #! /bin/sh
19180 # Generated automatically by configure.
19181 # Run this file to recreate the current configuration.
19182 # This directory was configured as follows,
19183 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19184 #
19185 # $0 $ac_configure_args
19186 #
19187 # Compiler output produced by configure, useful for debugging
19188 # configure, is in ./config.log if it exists.
19189
19190 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
19191 for ac_option
19192 do
19193 case "\$ac_option" in
19194 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19195 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
19196 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
19197 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
19198 echo "$CONFIG_STATUS generated by autoconf version 2.13"
19199 exit 0 ;;
19200 -help | --help | --hel | --he | --h)
19201 echo "\$ac_cs_usage"; exit 0 ;;
19202 *) echo "\$ac_cs_usage"; exit 1 ;;
19203 esac
19204 done
19205
19206 ac_given_srcdir=$srcdir
19207 ac_given_INSTALL="$INSTALL"
19208
19209 trap 'rm -fr `echo "
19210 wx-config
19211 src/make.env
19212 src/makeprog.env
19213 src/makelib.env
19214 Makefile
19215 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
19216 EOF
19217 cat >> $CONFIG_STATUS <<EOF
19218
19219 # Protect against being on the right side of a sed subst in config.status.
19220 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
19221 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
19222 $ac_vpsub
19223 $extrasub
19224 s%@SHELL@%$SHELL%g
19225 s%@CFLAGS@%$CFLAGS%g
19226 s%@CPPFLAGS@%$CPPFLAGS%g
19227 s%@CXXFLAGS@%$CXXFLAGS%g
19228 s%@FFLAGS@%$FFLAGS%g
19229 s%@DEFS@%$DEFS%g
19230 s%@LDFLAGS@%$LDFLAGS%g
19231 s%@LIBS@%$LIBS%g
19232 s%@exec_prefix@%$exec_prefix%g
19233 s%@prefix@%$prefix%g
19234 s%@program_transform_name@%$program_transform_name%g
19235 s%@bindir@%$bindir%g
19236 s%@sbindir@%$sbindir%g
19237 s%@libexecdir@%$libexecdir%g
19238 s%@datadir@%$datadir%g
19239 s%@sysconfdir@%$sysconfdir%g
19240 s%@sharedstatedir@%$sharedstatedir%g
19241 s%@localstatedir@%$localstatedir%g
19242 s%@libdir@%$libdir%g
19243 s%@includedir@%$includedir%g
19244 s%@oldincludedir@%$oldincludedir%g
19245 s%@infodir@%$infodir%g
19246 s%@mandir@%$mandir%g
19247 s%@host@%$host%g
19248 s%@host_alias@%$host_alias%g
19249 s%@host_cpu@%$host_cpu%g
19250 s%@host_vendor@%$host_vendor%g
19251 s%@host_os@%$host_os%g
19252 s%@target@%$target%g
19253 s%@target_alias@%$target_alias%g
19254 s%@target_cpu@%$target_cpu%g
19255 s%@target_vendor@%$target_vendor%g
19256 s%@target_os@%$target_os%g
19257 s%@build@%$build%g
19258 s%@build_alias@%$build_alias%g
19259 s%@build_cpu@%$build_cpu%g
19260 s%@build_vendor@%$build_vendor%g
19261 s%@build_os@%$build_os%g
19262 s%@CC@%$CC%g
19263 s%@CPP@%$CPP%g
19264 s%@CXX@%$CXX%g
19265 s%@RANLIB@%$RANLIB%g
19266 s%@AR@%$AR%g
19267 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
19268 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
19269 s%@INSTALL_DATA@%$INSTALL_DATA%g
19270 s%@STRIP@%$STRIP%g
19271 s%@YACC@%$YACC%g
19272 s%@LEX@%$LEX%g
19273 s%@LEXLIB@%$LEXLIB%g
19274 s%@LN_S@%$LN_S%g
19275 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
19276 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
19277 s%@GTK_LIBS@%$GTK_LIBS%g
19278 s%@GTK_CONFIG@%$GTK_CONFIG%g
19279 s%@X_CFLAGS@%$X_CFLAGS%g
19280 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
19281 s%@X_LIBS@%$X_LIBS%g
19282 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
19283 s%@RESCOMP@%$RESCOMP%g
19284 s%@DEREZ@%$DEREZ%g
19285 s%@CXXCPP@%$CXXCPP%g
19286 s%@LEX_STEM@%$LEX_STEM%g
19287 s%@PATH_IFS@%$PATH_IFS%g
19288 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
19289 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
19290 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
19291 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
19292 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
19293 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
19294 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
19295 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
19296 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
19297 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
19298 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
19299 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
19300 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
19301 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
19302 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
19303 s%@WX_ALL@%$WX_ALL%g
19304 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
19305 s%@SHARED_LD@%$SHARED_LD%g
19306 s%@PIC_FLAG@%$PIC_FLAG%g
19307 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
19308 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
19309 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
19310 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
19311 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
19312 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
19313 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
19314 s%@USE_GUI@%$USE_GUI%g
19315 s%@AFMINSTALL@%$AFMINSTALL%g
19316 s%@TOOLKIT@%$TOOLKIT%g
19317 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
19318 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
19319 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
19320 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
19321 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
19322 s%@cross_compiling@%$cross_compiling%g
19323 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
19324 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
19325 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
19326 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
19327 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
19328 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
19329 s%@GUIDIST@%$GUIDIST%g
19330 s%@PORT_FILES@%$PORT_FILES%g
19331 s%@DISTDIR@%$DISTDIR%g
19332 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
19333 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
19334 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
19335 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
19336 s%@EXTRADEFS@%$EXTRADEFS%g
19337 s%@RESFLAGS@%$RESFLAGS%g
19338 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
19339 s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
19340 s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
19341 s%@LIBWXMACRES@%$LIBWXMACRES%g
19342 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
19343 s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
19344 s%@DLLTOOL@%$DLLTOOL%g
19345 s%@AS@%$AS%g
19346 s%@NM@%$NM%g
19347 s%@LD@%$LD%g
19348 s%@MAKEINFO@%$MAKEINFO%g
19349 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
19350 s%@SET_MAKE@%$SET_MAKE%g
19351 s%@subdirs@%$subdirs%g
19352
19353 CEOF
19354 EOF
19355
19356 cat >> $CONFIG_STATUS <<\EOF
19357
19358 # Split the substitutions into bite-sized pieces for seds with
19359 # small command number limits, like on Digital OSF/1 and HP-UX.
19360 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
19361 ac_file=1 # Number of current file.
19362 ac_beg=1 # First line for current file.
19363 ac_end=$ac_max_sed_cmds # Line after last line for current file.
19364 ac_more_lines=:
19365 ac_sed_cmds=""
19366 while $ac_more_lines; do
19367 if test $ac_beg -gt 1; then
19368 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
19369 else
19370 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
19371 fi
19372 if test ! -s conftest.s$ac_file; then
19373 ac_more_lines=false
19374 rm -f conftest.s$ac_file
19375 else
19376 if test -z "$ac_sed_cmds"; then
19377 ac_sed_cmds="sed -f conftest.s$ac_file"
19378 else
19379 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
19380 fi
19381 ac_file=`expr $ac_file + 1`
19382 ac_beg=$ac_end
19383 ac_end=`expr $ac_end + $ac_max_sed_cmds`
19384 fi
19385 done
19386 if test -z "$ac_sed_cmds"; then
19387 ac_sed_cmds=cat
19388 fi
19389 EOF
19390
19391 cat >> $CONFIG_STATUS <<EOF
19392
19393 CONFIG_FILES=\${CONFIG_FILES-"wx-config
19394 src/make.env
19395 src/makeprog.env
19396 src/makelib.env
19397 Makefile
19398 "}
19399 EOF
19400 cat >> $CONFIG_STATUS <<\EOF
19401 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
19402 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19403 case "$ac_file" in
19404 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19405 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19406 *) ac_file_in="${ac_file}.in" ;;
19407 esac
19408
19409 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
19410
19411 # Remove last slash and all that follows it. Not all systems have dirname.
19412 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
19413 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19414 # The file is in a subdirectory.
19415 test ! -d "$ac_dir" && mkdir "$ac_dir"
19416 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
19417 # A "../" for each directory in $ac_dir_suffix.
19418 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
19419 else
19420 ac_dir_suffix= ac_dots=
19421 fi
19422
19423 case "$ac_given_srcdir" in
19424 .) srcdir=.
19425 if test -z "$ac_dots"; then top_srcdir=.
19426 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
19427 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
19428 *) # Relative path.
19429 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
19430 top_srcdir="$ac_dots$ac_given_srcdir" ;;
19431 esac
19432
19433 case "$ac_given_INSTALL" in
19434 [/$]*) INSTALL="$ac_given_INSTALL" ;;
19435 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
19436 esac
19437
19438 echo creating "$ac_file"
19439 rm -f "$ac_file"
19440 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
19441 case "$ac_file" in
19442 *Makefile*) ac_comsub="1i\\
19443 # $configure_input" ;;
19444 *) ac_comsub= ;;
19445 esac
19446
19447 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19448 sed -e "$ac_comsub
19449 s%@configure_input@%$configure_input%g
19450 s%@srcdir@%$srcdir%g
19451 s%@top_srcdir@%$top_srcdir%g
19452 s%@INSTALL@%$INSTALL%g
19453 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
19454 fi; done
19455 rm -f conftest.s*
19456
19457 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19458 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19459 #
19460 # ac_d sets the value in "#define NAME VALUE" lines.
19461 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19462 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
19463 ac_dC='\3'
19464 ac_dD='%g'
19465 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
19466 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19467 ac_uB='\([ ]\)%\1#\2define\3'
19468 ac_uC=' '
19469 ac_uD='\4%g'
19470 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19471 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19472 ac_eB='$%\1#\2define\3'
19473 ac_eC=' '
19474 ac_eD='%g'
19475
19476 if test "${CONFIG_HEADERS+set}" != set; then
19477 EOF
19478 cat >> $CONFIG_STATUS <<EOF
19479 CONFIG_HEADERS="setup.h:setup.h.in"
19480 EOF
19481 cat >> $CONFIG_STATUS <<\EOF
19482 fi
19483 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
19484 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19485 case "$ac_file" in
19486 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19487 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19488 *) ac_file_in="${ac_file}.in" ;;
19489 esac
19490
19491 echo creating $ac_file
19492
19493 rm -f conftest.frag conftest.in conftest.out
19494 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19495 cat $ac_file_inputs > conftest.in
19496
19497 EOF
19498
19499 # Transform confdefs.h into a sed script conftest.vals that substitutes
19500 # the proper values into config.h.in to produce config.h. And first:
19501 # Protect against being on the right side of a sed subst in config.status.
19502 # Protect against being in an unquoted here document in config.status.
19503 rm -f conftest.vals
19504 cat > conftest.hdr <<\EOF
19505 s/[\\&%]/\\&/g
19506 s%[\\$`]%\\&%g
19507 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
19508 s%ac_d%ac_u%gp
19509 s%ac_u%ac_e%gp
19510 EOF
19511 sed -n -f conftest.hdr confdefs.h > conftest.vals
19512 rm -f conftest.hdr
19513
19514 # This sed command replaces #undef with comments. This is necessary, for
19515 # example, in the case of _POSIX_SOURCE, which is predefined and required
19516 # on some systems where configure will not decide to define it.
19517 cat >> conftest.vals <<\EOF
19518 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
19519 EOF
19520
19521 # Break up conftest.vals because some shells have a limit on
19522 # the size of here documents, and old seds have small limits too.
19523
19524 rm -f conftest.tail
19525 while :
19526 do
19527 ac_lines=`grep -c . conftest.vals`
19528 # grep -c gives empty output for an empty file on some AIX systems.
19529 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
19530 # Write a limited-size here document to conftest.frag.
19531 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
19532 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
19533 echo 'CEOF
19534 sed -f conftest.frag conftest.in > conftest.out
19535 rm -f conftest.in
19536 mv conftest.out conftest.in
19537 ' >> $CONFIG_STATUS
19538 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
19539 rm -f conftest.vals
19540 mv conftest.tail conftest.vals
19541 done
19542 rm -f conftest.vals
19543
19544 cat >> $CONFIG_STATUS <<\EOF
19545 rm -f conftest.frag conftest.h
19546 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
19547 cat conftest.in >> conftest.h
19548 rm -f conftest.in
19549 if cmp -s $ac_file conftest.h 2>/dev/null; then
19550 echo "$ac_file is unchanged"
19551 rm -f conftest.h
19552 else
19553 # Remove last slash and all that follows it. Not all systems have dirname.
19554 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
19555 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19556 # The file is in a subdirectory.
19557 test ! -d "$ac_dir" && mkdir "$ac_dir"
19558 fi
19559 rm -f $ac_file
19560 mv conftest.h $ac_file
19561 fi
19562 fi; done
19563
19564 EOF
19565 cat >> $CONFIG_STATUS <<EOF
19566
19567 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
19568 LN_S="${LN_S}"
19569
19570
19571 EOF
19572 cat >> $CONFIG_STATUS <<\EOF
19573
19574 if test ! -h wx-config; then
19575 chmod +x wx-config
19576 mv wx-config wx${TOOLCHAIN_NAME}-config
19577 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
19578 fi
19579
19580 if test ! -d lib; then
19581 mkdir lib
19582 fi
19583 if test ! -d lib/wx; then
19584 mkdir lib/wx
19585 fi
19586 if test ! -d lib/wx/include; then
19587 mkdir lib/wx/include
19588 fi
19589 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
19590 mkdir lib/wx/include/${TOOLCHAIN_NAME}
19591 fi
19592 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
19593 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
19594 fi
19595 if test -f setup.h; then
19596 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
19597 fi
19598
19599 exit 0
19600 EOF
19601 chmod +x $CONFIG_STATUS
19602 rm -fr confdefs* $ac_clean_files
19603 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
19604
19605 if test "$no_recursion" != yes; then
19606
19607 # Remove --cache-file and --srcdir arguments so they do not pile up.
19608 ac_sub_configure_args=
19609 ac_prev=
19610 for ac_arg in $ac_configure_args; do
19611 if test -n "$ac_prev"; then
19612 ac_prev=
19613 continue
19614 fi
19615 case "$ac_arg" in
19616 -cache-file | --cache-file | --cache-fil | --cache-fi \
19617 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19618 ac_prev=cache_file ;;
19619 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19620 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
19621 ;;
19622 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19623 ac_prev=srcdir ;;
19624 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19625 ;;
19626 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
19627 esac
19628 done
19629
19630 for ac_config_dir in demos samples utils contrib; do
19631
19632 # Do not complain, so a configure script can configure whichever
19633 # parts of a large source tree are present.
19634 if test ! -d $srcdir/$ac_config_dir; then
19635 continue
19636 fi
19637
19638 echo configuring in $ac_config_dir
19639
19640 case "$srcdir" in
19641 .) ;;
19642 *)
19643 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
19644 else
19645 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
19646 fi
19647 ;;
19648 esac
19649
19650 ac_popdir=`pwd`
19651 cd $ac_config_dir
19652
19653 # A "../" for each directory in /$ac_config_dir.
19654 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
19655
19656 case "$srcdir" in
19657 .) # No --srcdir option. We are building in place.
19658 ac_sub_srcdir=$srcdir ;;
19659 /*) # Absolute path.
19660 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
19661 *) # Relative path.
19662 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
19663 esac
19664
19665 # Check for guested configure; otherwise get Cygnus style configure.
19666 if test -f $ac_sub_srcdir/configure; then
19667 ac_sub_configure=$ac_sub_srcdir/configure
19668 elif test -f $ac_sub_srcdir/configure.in; then
19669 ac_sub_configure=$ac_configure
19670 else
19671 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
19672 ac_sub_configure=
19673 fi
19674
19675 # The recursion is here.
19676 if test -n "$ac_sub_configure"; then
19677
19678 # Make the cache file name correct relative to the subdirectory.
19679 case "$cache_file" in
19680 /*) ac_sub_cache_file=$cache_file ;;
19681 *) # Relative path.
19682 ac_sub_cache_file="$ac_dots$cache_file" ;;
19683 esac
19684 case "$ac_given_INSTALL" in
19685 [/$]*) INSTALL="$ac_given_INSTALL" ;;
19686 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
19687 esac
19688
19689 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
19690 # The eval makes quoting arguments work.
19691 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
19692 then :
19693 else
19694 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
19695 fi
19696 fi
19697
19698 cd $ac_popdir
19699 done
19700 fi
19701
19702