]> git.saurik.com Git - wxWidgets.git/blob - configure
cache the results of checks for make VPATH support and its GNUishness
[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
45 #serial AM2
46
47
48
49
50
51
52
53
54 # Configure paths for GTK+
55 # Owen Taylor 97-11-3
56
57
58
59 # Guess values for system-dependent variables and create Makefiles.
60 # Generated automatically using autoconf version 2.13
61 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
62 #
63 # This configure script is free software; the Free Software Foundation
64 # gives unlimited permission to copy, distribute and modify it.
65
66 # Defaults:
67 ac_help=
68 ac_default_prefix=/usr/local
69 # Any additions from configure.in:
70 ac_help="$ac_help
71 --enable-gui use GUI classes"
72 ac_help="$ac_help
73 --enable-universal use wxWindows GUI controls instead of native ones"
74 ac_help="$ac_help
75 --with-gtk use GTK+"
76 ac_help="$ac_help
77 --with-motif use Motif/Lesstif"
78 ac_help="$ac_help
79 --with-mac use Mac OS X"
80 ac_help="$ac_help
81 --with-wine use WINE"
82 ac_help="$ac_help
83 --with-msw use MS-Windows"
84 ac_help="$ac_help
85 --with-pm use OS/2 Presentation Manager"
86 ac_help="$ac_help
87 --with-mgl use SciTech MGL"
88 ac_help="$ac_help
89 --with-microwin use MicroWindows"
90 ac_help="$ac_help
91 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
92 ac_help="$ac_help
93 --with-libpng use libpng (PNG image format)"
94 ac_help="$ac_help
95 --with-libjpeg use libjpeg (JPEG file format)"
96 ac_help="$ac_help
97 --with-libtiff use libtiff (TIFF file format)"
98 ac_help="$ac_help
99 --with-freetype use freetype (font rasterizer)"
100 ac_help="$ac_help
101 --with-opengl use OpenGL (or Mesa)"
102 ac_help="$ac_help
103 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
104 ac_help="$ac_help
105 --with-regex enable support for wxRegEx class"
106 ac_help="$ac_help
107 --with-zlib use zlib for LZW compression"
108 ac_help="$ac_help
109 --with-odbc use the IODBC and wxODBC classes"
110 ac_help="$ac_help
111 --enable-shared create shared library code"
112 ac_help="$ac_help
113 --enable-soname set the DT_SONAME field in ELF shared libraries"
114 ac_help="$ac_help
115 --enable-optimise create optimised code"
116 ac_help="$ac_help
117 --enable-debug same as debug_flag and debug_info"
118 ac_help="$ac_help
119 --enable-precomp enable use of precompiled headers (Mac OS X)"
120 ac_help="$ac_help
121 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
122 ac_help="$ac_help
123 --enable-debug_info create code with debugging information"
124 ac_help="$ac_help
125 --enable-debug_gdb create code with extra GDB debugging information"
126 ac_help="$ac_help
127 --enable-debug_cntxt use wxDebugContext"
128 ac_help="$ac_help
129 --enable-mem_tracing create code with memory tracing"
130 ac_help="$ac_help
131 --enable-profile create code with profiling information"
132 ac_help="$ac_help
133 --enable-no_rtti create code without RTTI information"
134 ac_help="$ac_help
135 --enable-no_exceptions create code without C++ exceptions handling"
136 ac_help="$ac_help
137 --enable-permissive compile code disregarding strict ANSI"
138 ac_help="$ac_help
139 --enable-no_deps create code without dependency information"
140 ac_help="$ac_help
141 --enable-compat20 enable wxWindows 2.0 compatibility"
142 ac_help="$ac_help
143 --enable-compat22 enable wxWindows 2.2 compatibility"
144 ac_help="$ac_help
145 --enable-intl use internationalization system"
146 ac_help="$ac_help
147 --enable-config use wxConfig (and derived) classes"
148 ac_help="$ac_help
149 --enable-protocols use wxProtocol and derived classes"
150 ac_help="$ac_help
151 --enable-ftp use wxFTP (requires wxProtocol"
152 ac_help="$ac_help
153 --enable-http use wxHTTP (requires wxProtocol"
154 ac_help="$ac_help
155 --enable-fileproto use wxFileProto class (requires wxProtocol"
156 ac_help="$ac_help
157 --enable-sockets use socket/network classes"
158 ac_help="$ac_help
159 --enable-ipc use interprocess communication (wxSocket etc.)"
160 ac_help="$ac_help
161 --enable-cmdline use wxCmdLineParser class"
162 ac_help="$ac_help
163 --enable-datetime use wxDateTime class"
164 ac_help="$ac_help
165 --enable-timedate use obsolete wxDate/wxTime classes"
166 ac_help="$ac_help
167 --enable-stopwatch use wxStopWatch class"
168 ac_help="$ac_help
169 --enable-dialupman use dialup network classes"
170 ac_help="$ac_help
171 --enable-apple_ieee use the Apple IEEE codec"
172 ac_help="$ac_help
173 --enable-timer use wxTimer class"
174 ac_help="$ac_help
175 --enable-wave use wxWave class"
176 ac_help="$ac_help
177 --enable-fraction use wxFraction class"
178 ac_help="$ac_help
179 --enable-dynlib use wxLibrary class for DLL loading"
180 ac_help="$ac_help
181 --enable-dynamicloader use (new) wxDynamicLibrary class"
182 ac_help="$ac_help
183 --enable-longlong use wxLongLong class"
184 ac_help="$ac_help
185 --enable-geometry use geometry class"
186 ac_help="$ac_help
187 --enable-log use logging system"
188 ac_help="$ac_help
189 --enable-streams use wxStream etc classes"
190 ac_help="$ac_help
191 --enable-file use wxFile classes"
192 ac_help="$ac_help
193 --enable-ffile use wxFFile classes"
194 ac_help="$ac_help
195 --enable-textbuf use wxTextBuffer class"
196 ac_help="$ac_help
197 --enable-textfile use wxTextFile class"
198 ac_help="$ac_help
199 --enable-fontmap use font encodings conversion classes"
200 ac_help="$ac_help
201 --enable-unicode compile wxString with Unicode support"
202 ac_help="$ac_help
203 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
204 ac_help="$ac_help
205 --enable-wxprintfv use wxWindows implementation of vprintf()"
206 ac_help="$ac_help
207 --enable-std_iostreams use standard C++ stream classes"
208 ac_help="$ac_help
209 --enable-filesystem use virtual file systems classes"
210 ac_help="$ac_help
211 --enable-fs_inet use virtual HTTP/FTP filesystems"
212 ac_help="$ac_help
213 --enable-fs_zip use virtual ZIP filesystems"
214 ac_help="$ac_help
215 --enable-zipstream use wxZipInputStream"
216 ac_help="$ac_help
217 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
218 ac_help="$ac_help
219 --enable-snglinst use wxSingleInstanceChecker class"
220 ac_help="$ac_help
221 --enable-mimetype use wxMimeTypesManager"
222 ac_help="$ac_help
223 --enable-sysoptions use wxSystemOptions"
224 ac_help="$ac_help
225 --enable-url use wxURL class"
226 ac_help="$ac_help
227 --enable-protocol use wxProtocol class"
228 ac_help="$ac_help
229 --enable-protocol-http HTTP support in wxProtocol"
230 ac_help="$ac_help
231 --enable-protocol-ftp FTP support in wxProtocol"
232 ac_help="$ac_help
233 --enable-protocol-file FILE support in wxProtocol"
234 ac_help="$ac_help
235 --enable-threads use threads"
236 ac_help="$ac_help
237 --enable-docview use document view architecture"
238 ac_help="$ac_help
239 --enable-help use help subsystem"
240 ac_help="$ac_help
241 --enable-mshtmlhelp use MS HTML Help (win32)"
242 ac_help="$ac_help
243 --enable-html use wxHTML sub-library"
244 ac_help="$ac_help
245 --enable-htmlhelp use wxHTML-based help"
246 ac_help="$ac_help
247 --enable-constraints use layout-constraints system"
248 ac_help="$ac_help
249 --enable-printarch use printing architecture"
250 ac_help="$ac_help
251 --enable-mdi use multiple document interface architecture"
252 ac_help="$ac_help
253 --enable-loggui use standard GUI logger"
254 ac_help="$ac_help
255 --enable-logwin use wxLogWindow"
256 ac_help="$ac_help
257 --enable-logdialog use wxLogDialog"
258 ac_help="$ac_help
259 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
260 ac_help="$ac_help
261 --enable-prologio use Prolog IO library"
262 ac_help="$ac_help
263 --enable-resources use wxWindows resources"
264 ac_help="$ac_help
265 --enable-xresources use X resources for save (default for gtk+)"
266 ac_help="$ac_help
267 --enable-clipboard use wxClipboard classes"
268 ac_help="$ac_help
269 --enable-dnd use Drag'n'Drop classes"
270 ac_help="$ac_help
271 --enable-metafile use win32 metafiles"
272 ac_help="$ac_help
273 --enable-treelayout use wxTreeLayout classes"
274 ac_help="$ac_help
275 --enable-controls use all usual controls"
276 ac_help="$ac_help
277 --enable-accel use accelerators"
278 ac_help="$ac_help
279 --enable-button use wxButton class"
280 ac_help="$ac_help
281 --enable-bmpbutton use wxBitmapButton class"
282 ac_help="$ac_help
283 --enable-calendar use wxCalendarCtrl class"
284 ac_help="$ac_help
285 --enable-caret use wxCaret class"
286 ac_help="$ac_help
287 --enable-checkbox use wxCheckBox class"
288 ac_help="$ac_help
289 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
290 ac_help="$ac_help
291 --enable-choice use wxChoice class"
292 ac_help="$ac_help
293 --enable-combobox use wxComboBox classes"
294 ac_help="$ac_help
295 --enable-gauge use wxGauge class"
296 ac_help="$ac_help
297 --enable-grid use wxGrid class"
298 ac_help="$ac_help
299 --enable-newgrid use new wxGrid class"
300 ac_help="$ac_help
301 --enable-imaglist use wxImageList class"
302 ac_help="$ac_help
303 --enable-listbox use wxListBox class"
304 ac_help="$ac_help
305 --enable-listctrl use wxListCtrl class"
306 ac_help="$ac_help
307 --enable-notebook use wxNotebook class"
308 ac_help="$ac_help
309 --enable-propsheet use wxPropertySheet class"
310 ac_help="$ac_help
311 --enable-radiobox use wxRadioBox class"
312 ac_help="$ac_help
313 --enable-radiobtn use wxRadioButton class"
314 ac_help="$ac_help
315 --enable-sash use wxSashWindow class"
316 ac_help="$ac_help
317 --enable-scrollbar use wxScrollBar class and scrollable windows"
318 ac_help="$ac_help
319 --enable-slider use wxSlider class"
320 ac_help="$ac_help
321 --enable-spinbtn use wxSpinButton class"
322 ac_help="$ac_help
323 --enable-spinctrl use wxSpinCtrl class"
324 ac_help="$ac_help
325 --enable-splitter use wxSplitterWindow class"
326 ac_help="$ac_help
327 --enable-statbmp use wxStaticBitmap class"
328 ac_help="$ac_help
329 --enable-statbox use wxStaticBox class"
330 ac_help="$ac_help
331 --enable-statline use wxStaticLine class"
332 ac_help="$ac_help
333 --enable-stattext use wxStaticText class"
334 ac_help="$ac_help
335 --enable-statusbar use wxStatusBar class"
336 ac_help="$ac_help
337 --enable-tabdialog use wxTabControl class"
338 ac_help="$ac_help
339 --enable-textctrl use wxTextCtrl class"
340 ac_help="$ac_help
341 --enable-togglebtn use wxToggleButton class"
342 ac_help="$ac_help
343 --enable-toolbar use wxToolBar class"
344 ac_help="$ac_help
345 --enable-tbarnative use native wxToolBar class"
346 ac_help="$ac_help
347 --enable-tbarsmpl use wxToolBarSimple class"
348 ac_help="$ac_help
349 --enable-treectrl use wxTreeCtrl class"
350 ac_help="$ac_help
351 --enable-tipwindow use wxTipWindow class"
352 ac_help="$ac_help
353 --enable-popupwin use wxPopUpWindow class"
354 ac_help="$ac_help
355 --enable-commondlg use all common dialogs"
356 ac_help="$ac_help
357 --enable-choicedlg use wxChoiceDialog"
358 ac_help="$ac_help
359 --enable-coldlg use wxColourDialog"
360 ac_help="$ac_help
361 --enable-filedlg use wxFileDialog"
362 ac_help="$ac_help
363 --enable-finddlg use wxFindReplaceDialog"
364 ac_help="$ac_help
365 --enable-fontdlg use wxFontDialog"
366 ac_help="$ac_help
367 --enable-dirdlg use wxDirDialog"
368 ac_help="$ac_help
369 --enable-msgdlg use wxMessageDialog"
370 ac_help="$ac_help
371 --enable-numberdlg use wxNumberEntryDialog"
372 ac_help="$ac_help
373 --enable-splash use wxSplashScreen"
374 ac_help="$ac_help
375 --enable-textdlg use wxTextDialog"
376 ac_help="$ac_help
377 --enable-tipdlg use startup tips"
378 ac_help="$ac_help
379 --enable-progressdlg use wxProgressDialog"
380 ac_help="$ac_help
381 --enable-wizarddlg use wxWizard"
382 ac_help="$ac_help
383 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
384 ac_help="$ac_help
385 --enable-miniframe use wxMiniFrame class"
386 ac_help="$ac_help
387 --enable-tooltips use wxToolTip class"
388 ac_help="$ac_help
389 --enable-splines use spline drawing code"
390 ac_help="$ac_help
391 --enable-validators use wxValidator and derived classes"
392 ac_help="$ac_help
393 --enable-busyinfo use wxBusyInfo"
394 ac_help="$ac_help
395 --enable-joystick use wxJoystick (Linux only)"
396 ac_help="$ac_help
397 --enable-metafiles use wxMetaFile (Windows only)"
398 ac_help="$ac_help
399 --enable-dragimage use wxDragImage"
400 ac_help="$ac_help
401 --enable-palette use wxPalette class"
402 ac_help="$ac_help
403 --enable-image use wxImage class"
404 ac_help="$ac_help
405 --enable-gif use gif images (GIF file format)"
406 ac_help="$ac_help
407 --enable-pcx use pcx images (PCX file format)"
408 ac_help="$ac_help
409 --enable-iff use iff images (IFF file format)"
410 ac_help="$ac_help
411 --enable-pnm use pnm images (PNM file format)"
412 ac_help="$ac_help
413 --enable-xpm use xpm images (XPM file format)"
414 ac_help="$ac_help
415 --enable-icocur use Windows ICO and CUR formats"
416 ac_help="$ac_help
417 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
418 ac_help="$ac_help
419 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
420 ac_help="$ac_help
421 --disable-gtktest Do not try to compile and run a test GTK program"
422 ac_help="$ac_help
423 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
424 ac_help="$ac_help
425 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
426 ac_help="$ac_help
427 --disable-gtktest Do not try to compile and run a test GTK program"
428 ac_help="$ac_help
429 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
430 ac_help="$ac_help
431 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
432 ac_help="$ac_help
433 --disable-gtktest Do not try to compile and run a test GTK program"
434 ac_help="$ac_help
435 --with-x use the X Window System"
436 ac_help="$ac_help
437 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
438
439 # Initialize some variables set by options.
440 # The variables have the same names as the options, with
441 # dashes changed to underlines.
442 build=NONE
443 cache_file=./config.cache
444 exec_prefix=NONE
445 host=NONE
446 no_create=
447 nonopt=NONE
448 no_recursion=
449 prefix=NONE
450 program_prefix=NONE
451 program_suffix=NONE
452 program_transform_name=s,x,x,
453 silent=
454 site=
455 srcdir=
456 target=NONE
457 verbose=
458 x_includes=NONE
459 x_libraries=NONE
460 bindir='${exec_prefix}/bin'
461 sbindir='${exec_prefix}/sbin'
462 libexecdir='${exec_prefix}/libexec'
463 datadir='${prefix}/share'
464 sysconfdir='${prefix}/etc'
465 sharedstatedir='${prefix}/com'
466 localstatedir='${prefix}/var'
467 libdir='${exec_prefix}/lib'
468 includedir='${prefix}/include'
469 oldincludedir='/usr/include'
470 infodir='${prefix}/info'
471 mandir='${prefix}/man'
472
473 # Initialize some other variables.
474 subdirs=
475 MFLAGS= MAKEFLAGS=
476 SHELL=${CONFIG_SHELL-/bin/sh}
477 # Maximum number of lines to put in a shell here document.
478 ac_max_here_lines=12
479
480 ac_prev=
481 for ac_option
482 do
483
484 # If the previous option needs an argument, assign it.
485 if test -n "$ac_prev"; then
486 eval "$ac_prev=\$ac_option"
487 ac_prev=
488 continue
489 fi
490
491 case "$ac_option" in
492 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
493 *) ac_optarg= ;;
494 esac
495
496 # Accept the important Cygnus configure options, so we can diagnose typos.
497
498 case "$ac_option" in
499
500 -bindir | --bindir | --bindi | --bind | --bin | --bi)
501 ac_prev=bindir ;;
502 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
503 bindir="$ac_optarg" ;;
504
505 -build | --build | --buil | --bui | --bu)
506 ac_prev=build ;;
507 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
508 build="$ac_optarg" ;;
509
510 -cache-file | --cache-file | --cache-fil | --cache-fi \
511 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
512 ac_prev=cache_file ;;
513 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
514 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
515 cache_file="$ac_optarg" ;;
516
517 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
518 ac_prev=datadir ;;
519 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
520 | --da=*)
521 datadir="$ac_optarg" ;;
522
523 -disable-* | --disable-*)
524 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
525 # Reject names that are not valid shell variable names.
526 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
527 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
528 fi
529 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
530 eval "enable_${ac_feature}=no" ;;
531
532 -enable-* | --enable-*)
533 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
534 # Reject names that are not valid shell variable names.
535 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
536 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
537 fi
538 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
539 case "$ac_option" in
540 *=*) ;;
541 *) ac_optarg=yes ;;
542 esac
543 eval "enable_${ac_feature}='$ac_optarg'" ;;
544
545 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
546 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
547 | --exec | --exe | --ex)
548 ac_prev=exec_prefix ;;
549 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
550 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
551 | --exec=* | --exe=* | --ex=*)
552 exec_prefix="$ac_optarg" ;;
553
554 -gas | --gas | --ga | --g)
555 # Obsolete; use --with-gas.
556 with_gas=yes ;;
557
558 -help | --help | --hel | --he)
559 # Omit some internal or obsolete options to make the list less imposing.
560 # This message is too long to be a string in the A/UX 3.1 sh.
561 cat << EOF
562 Usage: configure [options] [host]
563 Options: [defaults in brackets after descriptions]
564 Configuration:
565 --cache-file=FILE cache test results in FILE
566 --help print this message
567 --no-create do not create output files
568 --quiet, --silent do not print \`checking...' messages
569 --version print the version of autoconf that created configure
570 Directory and file names:
571 --prefix=PREFIX install architecture-independent files in PREFIX
572 [$ac_default_prefix]
573 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
574 [same as prefix]
575 --bindir=DIR user executables in DIR [EPREFIX/bin]
576 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
577 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
578 --datadir=DIR read-only architecture-independent data in DIR
579 [PREFIX/share]
580 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
581 --sharedstatedir=DIR modifiable architecture-independent data in DIR
582 [PREFIX/com]
583 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
584 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
585 --includedir=DIR C header files in DIR [PREFIX/include]
586 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
587 --infodir=DIR info documentation in DIR [PREFIX/info]
588 --mandir=DIR man documentation in DIR [PREFIX/man]
589 --srcdir=DIR find the sources in DIR [configure dir or ..]
590 --program-prefix=PREFIX prepend PREFIX to installed program names
591 --program-suffix=SUFFIX append SUFFIX to installed program names
592 --program-transform-name=PROGRAM
593 run sed PROGRAM on installed program names
594 EOF
595 cat << EOF
596 Host type:
597 --build=BUILD configure for building on BUILD [BUILD=HOST]
598 --host=HOST configure for HOST [guessed]
599 --target=TARGET configure for TARGET [TARGET=HOST]
600 Features and packages:
601 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
602 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
603 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
604 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
605 --x-includes=DIR X include files are in DIR
606 --x-libraries=DIR X library files are in DIR
607 EOF
608 if test -n "$ac_help"; then
609 echo "--enable and --with options recognized:$ac_help"
610 fi
611 exit 0 ;;
612
613 -host | --host | --hos | --ho)
614 ac_prev=host ;;
615 -host=* | --host=* | --hos=* | --ho=*)
616 host="$ac_optarg" ;;
617
618 -includedir | --includedir | --includedi | --included | --include \
619 | --includ | --inclu | --incl | --inc)
620 ac_prev=includedir ;;
621 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
622 | --includ=* | --inclu=* | --incl=* | --inc=*)
623 includedir="$ac_optarg" ;;
624
625 -infodir | --infodir | --infodi | --infod | --info | --inf)
626 ac_prev=infodir ;;
627 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
628 infodir="$ac_optarg" ;;
629
630 -libdir | --libdir | --libdi | --libd)
631 ac_prev=libdir ;;
632 -libdir=* | --libdir=* | --libdi=* | --libd=*)
633 libdir="$ac_optarg" ;;
634
635 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
636 | --libexe | --libex | --libe)
637 ac_prev=libexecdir ;;
638 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
639 | --libexe=* | --libex=* | --libe=*)
640 libexecdir="$ac_optarg" ;;
641
642 -localstatedir | --localstatedir | --localstatedi | --localstated \
643 | --localstate | --localstat | --localsta | --localst \
644 | --locals | --local | --loca | --loc | --lo)
645 ac_prev=localstatedir ;;
646 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
647 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
648 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
649 localstatedir="$ac_optarg" ;;
650
651 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
652 ac_prev=mandir ;;
653 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
654 mandir="$ac_optarg" ;;
655
656 -nfp | --nfp | --nf)
657 # Obsolete; use --without-fp.
658 with_fp=no ;;
659
660 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
661 | --no-cr | --no-c)
662 no_create=yes ;;
663
664 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
665 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
666 no_recursion=yes ;;
667
668 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
669 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
670 | --oldin | --oldi | --old | --ol | --o)
671 ac_prev=oldincludedir ;;
672 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
673 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
674 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
675 oldincludedir="$ac_optarg" ;;
676
677 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
678 ac_prev=prefix ;;
679 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
680 prefix="$ac_optarg" ;;
681
682 -program-prefix | --program-prefix | --program-prefi | --program-pref \
683 | --program-pre | --program-pr | --program-p)
684 ac_prev=program_prefix ;;
685 -program-prefix=* | --program-prefix=* | --program-prefi=* \
686 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
687 program_prefix="$ac_optarg" ;;
688
689 -program-suffix | --program-suffix | --program-suffi | --program-suff \
690 | --program-suf | --program-su | --program-s)
691 ac_prev=program_suffix ;;
692 -program-suffix=* | --program-suffix=* | --program-suffi=* \
693 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
694 program_suffix="$ac_optarg" ;;
695
696 -program-transform-name | --program-transform-name \
697 | --program-transform-nam | --program-transform-na \
698 | --program-transform-n | --program-transform- \
699 | --program-transform | --program-transfor \
700 | --program-transfo | --program-transf \
701 | --program-trans | --program-tran \
702 | --progr-tra | --program-tr | --program-t)
703 ac_prev=program_transform_name ;;
704 -program-transform-name=* | --program-transform-name=* \
705 | --program-transform-nam=* | --program-transform-na=* \
706 | --program-transform-n=* | --program-transform-=* \
707 | --program-transform=* | --program-transfor=* \
708 | --program-transfo=* | --program-transf=* \
709 | --program-trans=* | --program-tran=* \
710 | --progr-tra=* | --program-tr=* | --program-t=*)
711 program_transform_name="$ac_optarg" ;;
712
713 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
714 | -silent | --silent | --silen | --sile | --sil)
715 silent=yes ;;
716
717 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
718 ac_prev=sbindir ;;
719 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
720 | --sbi=* | --sb=*)
721 sbindir="$ac_optarg" ;;
722
723 -sharedstatedir | --sharedstatedir | --sharedstatedi \
724 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
725 | --sharedst | --shareds | --shared | --share | --shar \
726 | --sha | --sh)
727 ac_prev=sharedstatedir ;;
728 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
729 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
730 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
731 | --sha=* | --sh=*)
732 sharedstatedir="$ac_optarg" ;;
733
734 -site | --site | --sit)
735 ac_prev=site ;;
736 -site=* | --site=* | --sit=*)
737 site="$ac_optarg" ;;
738
739 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
740 ac_prev=srcdir ;;
741 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
742 srcdir="$ac_optarg" ;;
743
744 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
745 | --syscon | --sysco | --sysc | --sys | --sy)
746 ac_prev=sysconfdir ;;
747 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
748 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
749 sysconfdir="$ac_optarg" ;;
750
751 -target | --target | --targe | --targ | --tar | --ta | --t)
752 ac_prev=target ;;
753 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
754 target="$ac_optarg" ;;
755
756 -v | -verbose | --verbose | --verbos | --verbo | --verb)
757 verbose=yes ;;
758
759 -version | --version | --versio | --versi | --vers)
760 echo "configure generated by autoconf version 2.13"
761 exit 0 ;;
762
763 -with-* | --with-*)
764 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
765 # Reject names that are not valid shell variable names.
766 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
767 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
768 fi
769 ac_package=`echo $ac_package| sed 's/-/_/g'`
770 case "$ac_option" in
771 *=*) ;;
772 *) ac_optarg=yes ;;
773 esac
774 eval "with_${ac_package}='$ac_optarg'" ;;
775
776 -without-* | --without-*)
777 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
778 # Reject names that are not valid shell variable names.
779 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
780 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
781 fi
782 ac_package=`echo $ac_package| sed 's/-/_/g'`
783 eval "with_${ac_package}=no" ;;
784
785 --x)
786 # Obsolete; use --with-x.
787 with_x=yes ;;
788
789 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
790 | --x-incl | --x-inc | --x-in | --x-i)
791 ac_prev=x_includes ;;
792 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
793 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
794 x_includes="$ac_optarg" ;;
795
796 -x-libraries | --x-libraries | --x-librarie | --x-librari \
797 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
798 ac_prev=x_libraries ;;
799 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
800 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
801 x_libraries="$ac_optarg" ;;
802
803 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
804 ;;
805
806 *)
807 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
808 echo "configure: warning: $ac_option: invalid host type" 1>&2
809 fi
810 if test "x$nonopt" != xNONE; then
811 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
812 fi
813 nonopt="$ac_option"
814 ;;
815
816 esac
817 done
818
819 if test -n "$ac_prev"; then
820 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
821 fi
822
823 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
824
825 # File descriptor usage:
826 # 0 standard input
827 # 1 file creation
828 # 2 errors and warnings
829 # 3 some systems may open it to /dev/tty
830 # 4 used on the Kubota Titan
831 # 6 checking for... messages and results
832 # 5 compiler messages saved in config.log
833 if test "$silent" = yes; then
834 exec 6>/dev/null
835 else
836 exec 6>&1
837 fi
838 exec 5>./config.log
839
840 echo "\
841 This file contains any messages produced by compilers while
842 running configure, to aid debugging if configure makes a mistake.
843 " 1>&5
844
845 # Strip out --no-create and --no-recursion so they do not pile up.
846 # Also quote any args containing shell metacharacters.
847 ac_configure_args=
848 for ac_arg
849 do
850 case "$ac_arg" in
851 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
852 | --no-cr | --no-c) ;;
853 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
854 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
855 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
856 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
857 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
858 esac
859 done
860
861 # NLS nuisances.
862 # Only set these to C if already set. These must not be set unconditionally
863 # because not all systems understand e.g. LANG=C (notably SCO).
864 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
865 # Non-C LC_CTYPE values break the ctype check.
866 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
867 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
868 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
869 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
870
871 # confdefs.h avoids OS command line length limits that DEFS can exceed.
872 rm -rf conftest* confdefs.h
873 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
874 echo > confdefs.h
875
876 # A filename unique to this package, relative to the directory that
877 # configure is in, which we can look for to find out if srcdir is correct.
878 ac_unique_file=wx-config.in
879
880 # Find the source files, if location was not specified.
881 if test -z "$srcdir"; then
882 ac_srcdir_defaulted=yes
883 # Try the directory containing this script, then its parent.
884 ac_prog=$0
885 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
886 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
887 srcdir=$ac_confdir
888 if test ! -r $srcdir/$ac_unique_file; then
889 srcdir=..
890 fi
891 else
892 ac_srcdir_defaulted=no
893 fi
894 if test ! -r $srcdir/$ac_unique_file; then
895 if test "$ac_srcdir_defaulted" = yes; then
896 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
897 else
898 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
899 fi
900 fi
901 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
902
903 # Prefer explicitly selected file to automatically selected ones.
904 if test -z "$CONFIG_SITE"; then
905 if test "x$prefix" != xNONE; then
906 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
907 else
908 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
909 fi
910 fi
911 for ac_site_file in $CONFIG_SITE; do
912 if test -r "$ac_site_file"; then
913 echo "loading site script $ac_site_file"
914 . "$ac_site_file"
915 fi
916 done
917
918 if test -r "$cache_file"; then
919 echo "loading cache $cache_file"
920 . $cache_file
921 else
922 echo "creating cache $cache_file"
923 > $cache_file
924 fi
925
926 ac_ext=c
927 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
928 ac_cpp='$CPP $CPPFLAGS'
929 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
930 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
931 cross_compiling=$ac_cv_prog_cc_cross
932
933 ac_exeext=
934 ac_objext=o
935 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
936 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
937 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
938 ac_n= ac_c='
939 ' ac_t=' '
940 else
941 ac_n=-n ac_c= ac_t=
942 fi
943 else
944 ac_n= ac_c='\c' ac_t=
945 fi
946
947
948
949 ac_aux_dir=
950 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
951 if test -f $ac_dir/install-sh; then
952 ac_aux_dir=$ac_dir
953 ac_install_sh="$ac_aux_dir/install-sh -c"
954 break
955 elif test -f $ac_dir/install.sh; then
956 ac_aux_dir=$ac_dir
957 ac_install_sh="$ac_aux_dir/install.sh -c"
958 break
959 fi
960 done
961 if test -z "$ac_aux_dir"; then
962 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
963 fi
964 ac_config_guess=$ac_aux_dir/config.guess
965 ac_config_sub=$ac_aux_dir/config.sub
966 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
967
968
969 # Do some error checking and defaulting for the host and target type.
970 # The inputs are:
971 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
972 #
973 # The rules are:
974 # 1. You are not allowed to specify --host, --target, and nonopt at the
975 # same time.
976 # 2. Host defaults to nonopt.
977 # 3. If nonopt is not specified, then host defaults to the current host,
978 # as determined by config.guess.
979 # 4. Target and build default to nonopt.
980 # 5. If nonopt is not specified, then target and build default to host.
981
982 # The aliases save the names the user supplied, while $host etc.
983 # will get canonicalized.
984 case $host---$target---$nonopt in
985 NONE---*---* | *---NONE---* | *---*---NONE) ;;
986 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
987 esac
988
989
990 # Make sure we can run config.sub.
991 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
992 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
993 fi
994
995 echo $ac_n "checking host system type""... $ac_c" 1>&6
996 echo "configure:997: checking host system type" >&5
997
998 host_alias=$host
999 case "$host_alias" in
1000 NONE)
1001 case $nonopt in
1002 NONE)
1003 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1004 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1005 fi ;;
1006 *) host_alias=$nonopt ;;
1007 esac ;;
1008 esac
1009
1010 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1011 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1012 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1013 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1014 echo "$ac_t""$host" 1>&6
1015
1016 echo $ac_n "checking target system type""... $ac_c" 1>&6
1017 echo "configure:1018: checking target system type" >&5
1018
1019 target_alias=$target
1020 case "$target_alias" in
1021 NONE)
1022 case $nonopt in
1023 NONE) target_alias=$host_alias ;;
1024 *) target_alias=$nonopt ;;
1025 esac ;;
1026 esac
1027
1028 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1029 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1030 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1031 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1032 echo "$ac_t""$target" 1>&6
1033
1034 echo $ac_n "checking build system type""... $ac_c" 1>&6
1035 echo "configure:1036: checking build system type" >&5
1036
1037 build_alias=$build
1038 case "$build_alias" in
1039 NONE)
1040 case $nonopt in
1041 NONE) build_alias=$host_alias ;;
1042 *) build_alias=$nonopt ;;
1043 esac ;;
1044 esac
1045
1046 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1047 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1048 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1049 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1050 echo "$ac_t""$build" 1>&6
1051
1052 test "$host_alias" != "$target_alias" &&
1053 test "$program_prefix$program_suffix$program_transform_name" = \
1054 NONENONEs,x,x, &&
1055 program_prefix=${target_alias}-
1056
1057
1058
1059 WX_MAJOR_VERSION_NUMBER=2
1060 WX_MINOR_VERSION_NUMBER=3
1061 WX_RELEASE_NUMBER=3
1062
1063 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1064 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1065
1066 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1067
1068 WX_CURRENT=2
1069 WX_REVISION=0
1070 WX_AGE=0
1071
1072
1073
1074 USE_UNIX=1
1075 USE_WIN32=0
1076 USE_DOS=0
1077 USE_BEOS=0
1078 USE_MAC=0
1079
1080 USE_LINUX=
1081 USE_SGI=
1082 USE_HPUX=
1083 USE_SYSV=
1084 USE_SVR4=
1085 USE_AIX=
1086 USE_SUN=
1087 USE_SOLARIS=
1088 USE_SUNOS=
1089 USE_ALPHA=
1090 USE_OSF=
1091 USE_BSD=
1092 USE_DARWIN=
1093 USE_FREEBSD=
1094 USE_OPENBSD=
1095 USE_NETBSD=
1096 USE_VMS=
1097 USE_ULTRIX=
1098 USE_DATA_GENERAL=
1099
1100 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1101
1102 CPP_MT_FLAG=-D_REENTRANT
1103
1104 ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE"
1105
1106 DEFAULT_wxUSE_GTK=0
1107 DEFAULT_wxUSE_MAC=0
1108 DEFAULT_wxUSE_MGL=0
1109 DEFAULT_wxUSE_MICROWIN=0
1110 DEFAULT_wxUSE_MOTIF=0
1111 DEFAULT_wxUSE_MSW=0
1112 DEFAULT_wxUSE_PM=0
1113 DEFAULT_wxUSE_WINE=0
1114
1115 DEFAULT_DEFAULT_wxUSE_GTK=0
1116 DEFAULT_DEFAULT_wxUSE_MAC=0
1117 DEFAULT_DEFAULT_wxUSE_MGL=0
1118 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1119 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1120 DEFAULT_DEFAULT_wxUSE_MSW=0
1121 DEFAULT_DEFAULT_wxUSE_PM=0
1122 DEFAULT_DEFAULT_wxUSE_WINE=0
1123
1124 PROGRAM_EXT=
1125 SO_SUFFIX=so
1126
1127 case "${host}" in
1128 *-hp-hpux* )
1129 USE_HPUX=1
1130 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1131 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1132 SO_SUFFIX=sl
1133 cat >> confdefs.h <<\EOF
1134 #define __HPUX__ 1
1135 EOF
1136
1137 ;;
1138 *-*-linux* )
1139 USE_LINUX=1
1140 cat >> confdefs.h <<\EOF
1141 #define __LINUX__ 1
1142 EOF
1143
1144 TMP=`uname -m`
1145 if test "x$TMP" = "xalpha"; then
1146 USE_ALPHA=1
1147 cat >> confdefs.h <<\EOF
1148 #define __ALPHA__ 1
1149 EOF
1150
1151 fi
1152 DEFAULT_DEFAULT_wxUSE_GTK=1
1153 ;;
1154 *-*-irix5* | *-*-irix6* )
1155 USE_SGI=1
1156 USE_SVR4=1
1157 cat >> confdefs.h <<\EOF
1158 #define __SGI__ 1
1159 EOF
1160
1161 cat >> confdefs.h <<\EOF
1162 #define __SVR4__ 1
1163 EOF
1164
1165 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1166 ;;
1167 *-*-solaris2* )
1168 USE_SUN=1
1169 USE_SOLARIS=1
1170 USE_SVR4=1
1171 cat >> confdefs.h <<\EOF
1172 #define __SUN__ 1
1173 EOF
1174
1175 cat >> confdefs.h <<\EOF
1176 #define __SOLARIS__ 1
1177 EOF
1178
1179 cat >> confdefs.h <<\EOF
1180 #define __SVR4__ 1
1181 EOF
1182
1183 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1184 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1185 ;;
1186 *-*-sunos4* )
1187 USE_SUN=1
1188 USE_SUNOS=1
1189 USE_BSD=1
1190 cat >> confdefs.h <<\EOF
1191 #define __SUN__ 1
1192 EOF
1193
1194 cat >> confdefs.h <<\EOF
1195 #define __SUNOS__ 1
1196 EOF
1197
1198 cat >> confdefs.h <<\EOF
1199 #define __BSD__ 1
1200 EOF
1201
1202 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1203 ;;
1204 *-*-freebsd*)
1205 USE_BSD=1
1206 USE_FREEBSD=1
1207 CPP_MT_FLAG=-D_THREAD_SAFE
1208 cat >> confdefs.h <<\EOF
1209 #define __FREEBSD__ 1
1210 EOF
1211
1212 cat >> confdefs.h <<\EOF
1213 #define __BSD__ 1
1214 EOF
1215
1216 DEFAULT_DEFAULT_wxUSE_GTK=1
1217 ;;
1218 *-*-openbsd*)
1219 USE_BSD=1
1220 USE_OPENBSD=1
1221 cat >> confdefs.h <<\EOF
1222 #define __FREEBSD__ 1
1223 EOF
1224
1225 cat >> confdefs.h <<\EOF
1226 #define __OPENBSD__ 1
1227 EOF
1228
1229 DEFAULT_DEFAULT_wxUSE_GTK=1
1230 ;;
1231 *-*-netbsd*)
1232 USE_BSD=1
1233 USE_NETBSD=1
1234 cat >> confdefs.h <<\EOF
1235 #define __FREEBSD__ 1
1236 EOF
1237
1238 cat >> confdefs.h <<\EOF
1239 #define __NETBSD__ 1
1240 EOF
1241
1242 DEFAULT_DEFAULT_wxUSE_GTK=1
1243 ;;
1244 *-*-osf* )
1245 USE_ALPHA=1
1246 USE_OSF=1
1247 cat >> confdefs.h <<\EOF
1248 #define __ALPHA__ 1
1249 EOF
1250
1251 cat >> confdefs.h <<\EOF
1252 #define __OSF__ 1
1253 EOF
1254
1255 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1256 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1257 ;;
1258 *-*-dgux5* )
1259 USE_ALPHA=1
1260 USE_SVR4=1
1261 cat >> confdefs.h <<\EOF
1262 #define __ALPHA__ 1
1263 EOF
1264
1265 cat >> confdefs.h <<\EOF
1266 #define __SVR4__ 1
1267 EOF
1268
1269 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1270 ;;
1271 *-*-sysv5* )
1272 USE_SYSV=1
1273 USE_SVR4=1
1274 cat >> confdefs.h <<\EOF
1275 #define __SYSV__ 1
1276 EOF
1277
1278 cat >> confdefs.h <<\EOF
1279 #define __SVR4__ 1
1280 EOF
1281
1282 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1283 ;;
1284 *-*-aix* )
1285 USE_AIX=1
1286 USE_SYSV=1
1287 USE_SVR4=1
1288 cat >> confdefs.h <<\EOF
1289 #define __AIX__ 1
1290 EOF
1291
1292 cat >> confdefs.h <<\EOF
1293 #define __SYSV__ 1
1294 EOF
1295
1296 cat >> confdefs.h <<\EOF
1297 #define __SVR4__ 1
1298 EOF
1299
1300 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1301 ;;
1302
1303 *-*-cygwin* | *-*-mingw32* )
1304 USE_UNIX=0
1305 USE_WIN32=1
1306 SO_SUFFIX=dll
1307 cat >> confdefs.h <<\EOF
1308 #define __WIN32__ 1
1309 EOF
1310
1311 cat >> confdefs.h <<\EOF
1312 #define __WIN95__ 1
1313 EOF
1314
1315 cat >> confdefs.h <<\EOF
1316 #define __WINDOWS__ 1
1317 EOF
1318
1319 cat >> confdefs.h <<\EOF
1320 #define __GNUWIN32__ 1
1321 EOF
1322
1323 cat >> confdefs.h <<\EOF
1324 #define STRICT 1
1325 EOF
1326
1327 cat >> confdefs.h <<\EOF
1328 #define WINVER 0x0400
1329 EOF
1330
1331 PROGRAM_EXT=".exe"
1332 RESCOMP=windres
1333 DEFAULT_DEFAULT_wxUSE_MSW=1
1334 ;;
1335
1336 *-pc-msdosdjgpp )
1337 USE_UNIX=0
1338 USE_DOS=1
1339 cat >> confdefs.h <<\EOF
1340 #define __DOS__ 1
1341 EOF
1342
1343 PROGRAM_EXT=".exe"
1344 DEFAULT_DEFAULT_wxUSE_MGL=1
1345 DEFAULT_DEFAULT_wxUSE_SHARED=0
1346 ;;
1347
1348 *-pc-os2_emx | *-pc-os2-emx )
1349 cat >> confdefs.h <<\EOF
1350 #define __EMX__ 1
1351 EOF
1352
1353 PROGRAM_EXT=".exe"
1354 DEFAULT_DEFAULT_wxUSE_PM=1
1355 ;;
1356
1357 powerpc-*-darwin* )
1358 USE_BSD=1
1359 USE_DARWIN=1
1360 CPP_MT_FLAG=
1361 SO_SUFFIX=dylib
1362 cat >> confdefs.h <<\EOF
1363 #define __BSD__ 1
1364 EOF
1365
1366 cat >> confdefs.h <<\EOF
1367 #define __DARWIN__ 1
1368 EOF
1369
1370 cat >> confdefs.h <<\EOF
1371 #define __POWERPC__ 1
1372 EOF
1373
1374 DEFAULT_DEFAULT_wxUSE_MAC=1
1375 ;;
1376
1377 *-*-beos* )
1378 USE_BEOS=1
1379 cat >> confdefs.h <<\EOF
1380 #define __BEOS__ 1
1381 EOF
1382
1383 ;;
1384
1385 *)
1386 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1387 esac
1388
1389 if test "$USE_UNIX" = 1 ; then
1390 wxUSE_UNIX=yes
1391 cat >> confdefs.h <<\EOF
1392 #define __UNIX__ 1
1393 EOF
1394
1395 fi
1396
1397 if test "$USE_LINUX" = 1; then
1398 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
1399 echo "configure:1400: checking for glibc 2.1 or later" >&5
1400 if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1402 else
1403
1404 cat > conftest.$ac_ext <<EOF
1405 #line 1406 "configure"
1406 #include "confdefs.h"
1407 #include <features.h>
1408 int main() {
1409
1410 #if !__GLIBC_PREREQ(2, 1)
1411 #error not glibc2.1
1412 #endif
1413
1414 ; return 0; }
1415 EOF
1416 if { (eval echo configure:1417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1417 rm -rf conftest*
1418
1419 wx_lib_glibc21=yes
1420
1421 else
1422 echo "configure: failed program was:" >&5
1423 cat conftest.$ac_ext >&5
1424 rm -rf conftest*
1425
1426 wx_lib_glibc21=no
1427
1428
1429 fi
1430 rm -f conftest*
1431
1432 fi
1433
1434 echo "$ac_t""$wx_lib_glibc21" 1>&6
1435 if test "$wx_lib_glibc21" = "yes"; then
1436 cat >> confdefs.h <<\EOF
1437 #define wxHAVE_GLIBC2 1
1438 EOF
1439
1440 fi
1441 fi
1442
1443
1444
1445
1446 wx_arg_cache_file="configarg.cache"
1447 echo "loading argument cache $wx_arg_cache_file"
1448 rm -f ${wx_arg_cache_file}.tmp
1449 touch ${wx_arg_cache_file}.tmp
1450 touch ${wx_arg_cache_file}
1451
1452
1453 DEBUG_CONFIGURE=0
1454 if test $DEBUG_CONFIGURE = 1; then
1455 DEFAULT_wxUSE_UNIVERSAL=no
1456
1457 DEFAULT_wxUSE_THREADS=yes
1458
1459 DEFAULT_wxUSE_SHARED=yes
1460 DEFAULT_wxUSE_SONAME=no
1461 DEFAULT_wxUSE_OPTIMISE=no
1462 DEFAULT_wxUSE_PROFILE=no
1463 DEFAULT_wxUSE_NO_DEPS=no
1464 DEFAULT_wxUSE_NO_RTTI=yes
1465 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1466 DEFAULT_wxUSE_PERMISSIVE=no
1467 DEFAULT_wxUSE_DEBUG_FLAG=yes
1468 DEFAULT_wxUSE_DEBUG_INFO=yes
1469 DEFAULT_wxUSE_DEBUG_GDB=yes
1470 DEFAULT_wxUSE_MEM_TRACING=no
1471 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1472 DEFAULT_wxUSE_DMALLOC=no
1473 DEFAULT_wxUSE_PRECOMP=no
1474 DEFAULT_wxUSE_APPLE_IEEE=no
1475
1476 DEFAULT_wxUSE_LOG=yes
1477 DEFAULT_wxUSE_LOGWINDOW=no
1478 DEFAULT_wxUSE_LOGGUI=no
1479 DEFAULT_wxUSE_LOGDIALOG=no
1480
1481 DEFAULT_wxUSE_GUI=yes
1482 DEFAULT_wxUSE_CONTROLS=no
1483
1484 DEFAULT_wxUSE_REGEX=no
1485 DEFAULT_wxUSE_ZLIB=no
1486 DEFAULT_wxUSE_LIBPNG=no
1487 DEFAULT_wxUSE_LIBJPEG=no
1488 DEFAULT_wxUSE_LIBTIFF=no
1489 DEFAULT_wxUSE_ODBC=no
1490 DEFAULT_wxUSE_FREETYPE=no
1491 DEFAULT_wxUSE_OPENGL=no
1492
1493 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1494 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1495 DEFAULT_wxUSE_STD_IOSTREAM=no
1496 DEFAULT_wxUSE_CMDLINE_PARSER=no
1497 DEFAULT_wxUSE_DATETIME=no
1498 DEFAULT_wxUSE_TIMEDATE=no
1499 DEFAULT_wxUSE_TIMER=no
1500 DEFAULT_wxUSE_STOPWATCH=no
1501 DEFAULT_wxUSE_FILE=no
1502 DEFAULT_wxUSE_FFILE=no
1503 DEFAULT_wxUSE_TEXTBUFFER=no
1504 DEFAULT_wxUSE_TEXTFILE=no
1505 DEFAULT_wxUSE_WAVE=no
1506 DEFAULT_wxUSE_INTL=no
1507 DEFAULT_wxUSE_CONFIG=no
1508 DEFAULT_wxUSE_FONTMAP=no
1509 DEFAULT_wxUSE_STREAMS=no
1510 DEFAULT_wxUSE_SOCKETS=no
1511 DEFAULT_wxUSE_DIALUP_MANAGER=no
1512 DEFAULT_wxUSE_JOYSTICK=no
1513 DEFAULT_wxUSE_DYNLIB_CLASS=no
1514 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1515 DEFAULT_wxUSE_LONGLONG=no
1516 DEFAULT_wxUSE_GEOMETRY=no
1517
1518 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1519 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1520 DEFAULT_wxUSE_POSTSCRIPT=no
1521
1522 DEFAULT_wxUSE_X_RESOURCES=no
1523 DEFAULT_wxUSE_CLIPBOARD=no
1524 DEFAULT_wxUSE_TOOLTIPS=no
1525 DEFAULT_wxUSE_DRAG_AND_DROP=no
1526 DEFAULT_wxUSE_DRAGIMAGE=no
1527 DEFAULT_wxUSE_SPLINES=no
1528
1529 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1530 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1531 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1532
1533 DEFAULT_wxUSE_PROLOGIO=no
1534 DEFAULT_wxUSE_RESOURCES=no
1535 DEFAULT_wxUSE_CONSTRAINTS=no
1536 DEFAULT_wxUSE_IPC=no
1537 DEFAULT_wxUSE_HELP=no
1538 DEFAULT_wxUSE_MS_HTML_HELP=no
1539 DEFAULT_wxUSE_WXHTML_HELP=no
1540 DEFAULT_wxUSE_TREELAYOUT=no
1541 DEFAULT_wxUSE_METAFILE=no
1542 DEFAULT_wxUSE_MIMETYPE=no
1543 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1544 DEFAULT_wxUSE_PROTOCOL=no
1545 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1546 DEFAULT_wxUSE_PROTOCOL_FTP=no
1547 DEFAULT_wxUSE_PROTOCOL_FILE=no
1548 DEFAULT_wxUSE_URL=no
1549
1550 DEFAULT_wxUSE_COMMONDLGS=no
1551 DEFAULT_wxUSE_CHOICEDLG=no
1552 DEFAULT_wxUSE_COLOURDLG=no
1553 DEFAULT_wxUSE_DIRDLG=no
1554 DEFAULT_wxUSE_FILEDLG=no
1555 DEFAULT_wxUSE_FINDREPLDLG=no
1556 DEFAULT_wxUSE_FONTDLG=no
1557 DEFAULT_wxUSE_MSGDLG=no
1558 DEFAULT_wxUSE_NUMBERDLG=no
1559 DEFAULT_wxUSE_TEXTDLG=no
1560 DEFAULT_wxUSE_SPLASH=no
1561 DEFAULT_wxUSE_STARTUP_TIPS=no
1562 DEFAULT_wxUSE_PROGRESSDLG=no
1563 DEFAULT_wxUSE_WIZARDDLG=no
1564
1565 DEFAULT_wxUSE_MENUS=no
1566 DEFAULT_wxUSE_MINIFRAME=no
1567 DEFAULT_wxUSE_HTML=no
1568 DEFAULT_wxUSE_FILESYSTEM=no
1569 DEFAULT_wxUSE_FS_INET=no
1570 DEFAULT_wxUSE_FS_ZIP=no
1571 DEFAULT_wxUSE_BUSYINFO=no
1572 DEFAULT_wxUSE_ZIPSTREAM=no
1573 DEFAULT_wxUSE_VALIDATORS=no
1574
1575 DEFAULT_wxUSE_ACCEL=no
1576 DEFAULT_wxUSE_BUTTON=no
1577 DEFAULT_wxUSE_BMPBUTTON=no
1578 DEFAULT_wxUSE_CALCTRL=no
1579 DEFAULT_wxUSE_CARET=no
1580 DEFAULT_wxUSE_CHECKBOX=no
1581 DEFAULT_wxUSE_CHECKLST=no
1582 DEFAULT_wxUSE_CHOICE=no
1583 DEFAULT_wxUSE_COMBOBOX=no
1584 DEFAULT_wxUSE_GAUGE=no
1585 DEFAULT_wxUSE_GRID=no
1586 DEFAULT_wxUSE_NEW_GRID=no
1587 DEFAULT_wxUSE_IMAGLIST=no
1588 DEFAULT_wxUSE_LISTBOX=no
1589 DEFAULT_wxUSE_LISTCTRL=no
1590 DEFAULT_wxUSE_NOTEBOOK=no
1591 DEFAULT_wxUSE_PROPSHEET=no
1592 DEFAULT_wxUSE_RADIOBOX=no
1593 DEFAULT_wxUSE_RADIOBTN=no
1594 DEFAULT_wxUSE_SASH=no
1595 DEFAULT_wxUSE_SCROLLBAR=no
1596 DEFAULT_wxUSE_SLIDER=no
1597 DEFAULT_wxUSE_SPINBTN=no
1598 DEFAULT_wxUSE_SPINCTRL=no
1599 DEFAULT_wxUSE_SPLITTER=no
1600 DEFAULT_wxUSE_STATBMP=no
1601 DEFAULT_wxUSE_STATBOX=no
1602 DEFAULT_wxUSE_STATLINE=no
1603 DEFAULT_wxUSE_STATTEXT=no
1604 DEFAULT_wxUSE_STATUSBAR=yes
1605 DEFAULT_wxUSE_TABDIALOG=no
1606 DEFAULT_wxUSE_TEXTCTRL=no
1607 DEFAULT_wxUSE_TOGGLEBTN=no
1608 DEFAULT_wxUSE_TOOLBAR=no
1609 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1610 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1611 DEFAULT_wxUSE_TREECTRL=no
1612 DEFAULT_wxUSE_POPUPWIN=no
1613 DEFAULT_wxUSE_TIPWINDOW=no
1614
1615 DEFAULT_wxUSE_UNICODE=no
1616 DEFAULT_wxUSE_UNICODE_MSLU=no
1617 DEFAULT_wxUSE_WCSRTOMBS=no
1618
1619 DEFAULT_wxUSE_PALETTE=no
1620 DEFAULT_wxUSE_IMAGE=no
1621 DEFAULT_wxUSE_GIF=no
1622 DEFAULT_wxUSE_PCX=no
1623 DEFAULT_wxUSE_PNM=no
1624 DEFAULT_wxUSE_IFF=no
1625 DEFAULT_wxUSE_XPM=no
1626 DEFAULT_wxUSE_ICO_CUR=no
1627 else
1628 DEFAULT_wxUSE_UNIVERSAL=no
1629
1630 DEFAULT_wxUSE_THREADS=yes
1631
1632 DEFAULT_wxUSE_SHARED=yes
1633 DEFAULT_wxUSE_SONAME=no
1634 DEFAULT_wxUSE_OPTIMISE=yes
1635 DEFAULT_wxUSE_PROFILE=no
1636 DEFAULT_wxUSE_NO_DEPS=no
1637 DEFAULT_wxUSE_NO_RTTI=yes
1638 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1639 DEFAULT_wxUSE_PERMISSIVE=no
1640 DEFAULT_wxUSE_DEBUG_FLAG=no
1641 DEFAULT_wxUSE_DEBUG_INFO=no
1642 DEFAULT_wxUSE_DEBUG_GDB=no
1643 DEFAULT_wxUSE_MEM_TRACING=no
1644 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1645 DEFAULT_wxUSE_DMALLOC=no
1646 DEFAULT_wxUSE_PRECOMP=no
1647 DEFAULT_wxUSE_APPLE_IEEE=yes
1648
1649 DEFAULT_wxUSE_LOG=yes
1650 DEFAULT_wxUSE_LOGWINDOW=yes
1651 DEFAULT_wxUSE_LOGGUI=yes
1652 DEFAULT_wxUSE_LOGDIALOG=yes
1653
1654 DEFAULT_wxUSE_GUI=yes
1655
1656 DEFAULT_wxUSE_REGEX=yes
1657 DEFAULT_wxUSE_ZLIB=yes
1658 DEFAULT_wxUSE_LIBPNG=yes
1659 DEFAULT_wxUSE_LIBJPEG=yes
1660 DEFAULT_wxUSE_LIBTIFF=yes
1661 DEFAULT_wxUSE_ODBC=no
1662 DEFAULT_wxUSE_FREETYPE=no
1663 DEFAULT_wxUSE_OPENGL=no
1664
1665 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1666 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1667 DEFAULT_wxUSE_STD_IOSTREAM=no
1668 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1669 DEFAULT_wxUSE_DATETIME=yes
1670 DEFAULT_wxUSE_TIMEDATE=no
1671 DEFAULT_wxUSE_TIMER=yes
1672 DEFAULT_wxUSE_STOPWATCH=yes
1673 DEFAULT_wxUSE_FILE=yes
1674 DEFAULT_wxUSE_FFILE=yes
1675 DEFAULT_wxUSE_TEXTBUFFER=yes
1676 DEFAULT_wxUSE_TEXTFILE=yes
1677 DEFAULT_wxUSE_WAVE=no
1678 DEFAULT_wxUSE_INTL=yes
1679 DEFAULT_wxUSE_CONFIG=yes
1680 DEFAULT_wxUSE_FONTMAP=yes
1681 DEFAULT_wxUSE_STREAMS=yes
1682 DEFAULT_wxUSE_SOCKETS=yes
1683 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1684 DEFAULT_wxUSE_JOYSTICK=yes
1685 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1686 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1687 DEFAULT_wxUSE_LONGLONG=yes
1688 DEFAULT_wxUSE_GEOMETRY=yes
1689
1690 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1691 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1692 DEFAULT_wxUSE_POSTSCRIPT=yes
1693
1694 DEFAULT_wxUSE_X_RESOURCES=no
1695 DEFAULT_wxUSE_CLIPBOARD=yes
1696 DEFAULT_wxUSE_TOOLTIPS=yes
1697 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1698 DEFAULT_wxUSE_DRAGIMAGE=yes
1699 DEFAULT_wxUSE_SPLINES=yes
1700
1701 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1702 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1703 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1704
1705 DEFAULT_wxUSE_PROLOGIO=yes
1706 DEFAULT_wxUSE_RESOURCES=yes
1707 DEFAULT_wxUSE_CONSTRAINTS=yes
1708 DEFAULT_wxUSE_IPC=yes
1709 DEFAULT_wxUSE_HELP=yes
1710 DEFAULT_wxUSE_MS_HTML_HELP=yes
1711 DEFAULT_wxUSE_WXHTML_HELP=yes
1712 DEFAULT_wxUSE_TREELAYOUT=yes
1713 DEFAULT_wxUSE_METAFILE=yes
1714 DEFAULT_wxUSE_MIMETYPE=yes
1715 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1716 DEFAULT_wxUSE_PROTOCOL=yes
1717 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1718 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1719 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1720 DEFAULT_wxUSE_URL=yes
1721
1722 DEFAULT_wxUSE_COMMONDLGS=yes
1723 DEFAULT_wxUSE_CHOICEDLG=yes
1724 DEFAULT_wxUSE_COLOURDLG=yes
1725 DEFAULT_wxUSE_DIRDLG=yes
1726 DEFAULT_wxUSE_FILEDLG=yes
1727 DEFAULT_wxUSE_FINDREPLDLG=yes
1728 DEFAULT_wxUSE_FONTDLG=yes
1729 DEFAULT_wxUSE_MSGDLG=yes
1730 DEFAULT_wxUSE_NUMBERDLG=yes
1731 DEFAULT_wxUSE_TEXTDLG=yes
1732 DEFAULT_wxUSE_SPLASH=yes
1733 DEFAULT_wxUSE_STARTUP_TIPS=yes
1734 DEFAULT_wxUSE_PROGRESSDLG=yes
1735 DEFAULT_wxUSE_WIZARDDLG=yes
1736
1737 DEFAULT_wxUSE_MENUS=yes
1738 DEFAULT_wxUSE_MINIFRAME=yes
1739 DEFAULT_wxUSE_HTML=yes
1740 DEFAULT_wxUSE_FILESYSTEM=yes
1741 DEFAULT_wxUSE_FS_INET=yes
1742 DEFAULT_wxUSE_FS_ZIP=yes
1743 DEFAULT_wxUSE_BUSYINFO=yes
1744 DEFAULT_wxUSE_ZIPSTREAM=yes
1745 DEFAULT_wxUSE_VALIDATORS=yes
1746
1747 DEFAULT_wxUSE_ACCEL=yes
1748 DEFAULT_wxUSE_BUTTON=yes
1749 DEFAULT_wxUSE_BMPBUTTON=yes
1750 DEFAULT_wxUSE_CALCTRL=yes
1751 DEFAULT_wxUSE_CARET=yes
1752 DEFAULT_wxUSE_CHECKBOX=yes
1753 DEFAULT_wxUSE_CHECKLST=yes
1754 DEFAULT_wxUSE_CHOICE=yes
1755 DEFAULT_wxUSE_COMBOBOX=yes
1756 DEFAULT_wxUSE_GAUGE=yes
1757 DEFAULT_wxUSE_GRID=yes
1758 DEFAULT_wxUSE_NEW_GRID=yes
1759 DEFAULT_wxUSE_IMAGLIST=yes
1760 DEFAULT_wxUSE_LISTBOX=yes
1761 DEFAULT_wxUSE_LISTCTRL=yes
1762 DEFAULT_wxUSE_NOTEBOOK=yes
1763 DEFAULT_wxUSE_PROPSHEET=yes
1764 DEFAULT_wxUSE_RADIOBOX=yes
1765 DEFAULT_wxUSE_RADIOBTN=yes
1766 DEFAULT_wxUSE_SASH=yes
1767 DEFAULT_wxUSE_SCROLLBAR=yes
1768 DEFAULT_wxUSE_SLIDER=yes
1769 DEFAULT_wxUSE_SPINBTN=yes
1770 DEFAULT_wxUSE_SPINCTRL=yes
1771 DEFAULT_wxUSE_SPLITTER=yes
1772 DEFAULT_wxUSE_STATBMP=yes
1773 DEFAULT_wxUSE_STATBOX=yes
1774 DEFAULT_wxUSE_STATLINE=yes
1775 DEFAULT_wxUSE_STATTEXT=yes
1776 DEFAULT_wxUSE_STATUSBAR=yes
1777 DEFAULT_wxUSE_TABDIALOG=no
1778 DEFAULT_wxUSE_TEXTCTRL=yes
1779 DEFAULT_wxUSE_TOGGLEBTN=yes
1780 DEFAULT_wxUSE_TOOLBAR=yes
1781 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1782 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1783 DEFAULT_wxUSE_TREECTRL=yes
1784 DEFAULT_wxUSE_POPUPWIN=yes
1785 DEFAULT_wxUSE_TIPWINDOW=yes
1786
1787 DEFAULT_wxUSE_UNICODE=no
1788 DEFAULT_wxUSE_UNICODE_MSLU=yes
1789 DEFAULT_wxUSE_WCSRTOMBS=no
1790
1791 DEFAULT_wxUSE_PALETTE=yes
1792 DEFAULT_wxUSE_IMAGE=yes
1793 DEFAULT_wxUSE_GIF=yes
1794 DEFAULT_wxUSE_PCX=yes
1795 DEFAULT_wxUSE_IFF=no
1796 DEFAULT_wxUSE_PNM=yes
1797 DEFAULT_wxUSE_XPM=yes
1798 DEFAULT_wxUSE_ICO_CUR=yes
1799 fi
1800
1801
1802
1803 for toolkit in `echo $ALL_TOOLKITS`; do
1804 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1805 if test "x$LINE" != x ; then
1806 has_toolkit_in_cache=1
1807 eval "DEFAULT_$LINE"
1808 eval "CACHE_$toolkit=1"
1809 fi
1810 done
1811
1812
1813
1814 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1815 echo "configure:1816: checking for --enable-gui" >&5
1816 no_cache=0
1817 # Check whether --enable-gui or --disable-gui was given.
1818 if test "${enable_gui+set}" = set; then
1819 enableval="$enable_gui"
1820
1821 if test "$enableval" = yes; then
1822 ac_cv_use_gui='wxUSE_GUI=yes'
1823 else
1824 ac_cv_use_gui='wxUSE_GUI=no'
1825 fi
1826
1827 else
1828
1829 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1830 if test "x$LINE" != x ; then
1831 eval "DEFAULT_$LINE"
1832 else
1833 no_cache=1
1834 fi
1835
1836 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1837
1838 fi
1839
1840
1841 eval "$ac_cv_use_gui"
1842 if test "$no_cache" != 1; then
1843 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1844 fi
1845
1846 if test "$wxUSE_GUI" = yes; then
1847 echo "$ac_t""yes" 1>&6
1848 else
1849 echo "$ac_t""no" 1>&6
1850 fi
1851
1852
1853 if test "$wxUSE_GUI" = "yes"; then
1854
1855
1856 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1857 echo "configure:1858: checking for --enable-universal" >&5
1858 no_cache=0
1859 # Check whether --enable-universal or --disable-universal was given.
1860 if test "${enable_universal+set}" = set; then
1861 enableval="$enable_universal"
1862
1863 if test "$enableval" = yes; then
1864 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1865 else
1866 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1867 fi
1868
1869 else
1870
1871 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1872 if test "x$LINE" != x ; then
1873 eval "DEFAULT_$LINE"
1874 else
1875 no_cache=1
1876 fi
1877
1878 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1879
1880 fi
1881
1882
1883 eval "$ac_cv_use_universal"
1884 if test "$no_cache" != 1; then
1885 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1886 fi
1887
1888 if test "$wxUSE_UNIVERSAL" = yes; then
1889 echo "$ac_t""yes" 1>&6
1890 else
1891 echo "$ac_t""no" 1>&6
1892 fi
1893
1894 # Check whether --with-gtk or --without-gtk was given.
1895 if test "${with_gtk+set}" = set; then
1896 withval="$with_gtk"
1897 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1898 fi
1899
1900 # Check whether --with-motif or --without-motif was given.
1901 if test "${with_motif+set}" = set; then
1902 withval="$with_motif"
1903 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1904 fi
1905
1906 # Check whether --with-mac or --without-mac was given.
1907 if test "${with_mac+set}" = set; then
1908 withval="$with_mac"
1909 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1910 fi
1911
1912 # Check whether --with-wine or --without-wine was given.
1913 if test "${with_wine+set}" = set; then
1914 withval="$with_wine"
1915 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1916 fi
1917
1918 # Check whether --with-msw or --without-msw was given.
1919 if test "${with_msw+set}" = set; then
1920 withval="$with_msw"
1921 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
1922 fi
1923
1924 # Check whether --with-pm or --without-pm was given.
1925 if test "${with_pm+set}" = set; then
1926 withval="$with_pm"
1927 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1928 fi
1929
1930 # Check whether --with-mgl or --without-mgl was given.
1931 if test "${with_mgl+set}" = set; then
1932 withval="$with_mgl"
1933 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1934 fi
1935
1936 # Check whether --with-microwin or --without-microwin was given.
1937 if test "${with_microwin+set}" = set; then
1938 withval="$with_microwin"
1939 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1940 fi
1941
1942
1943 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1944 if test "${enable_gtk2+set}" = set; then
1945 enableval="$enable_gtk2"
1946 wxUSE_GTK2=1
1947 else
1948 wxUSE_GTK2=0
1949 fi
1950
1951
1952
1953 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1954 echo "configure:1955: checking for --with-libpng" >&5
1955 no_cache=0
1956 # Check whether --with-libpng or --without-libpng was given.
1957 if test "${with_libpng+set}" = set; then
1958 withval="$with_libpng"
1959
1960 if test "$withval" = yes; then
1961 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1962 elif test "$withval" = no; then
1963 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1964 elif test "$withval" = sys; then
1965 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1966 elif test "$withval" = builtin; then
1967 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1968 else
1969 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1970 fi
1971
1972 else
1973
1974 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1975 if test "x$LINE" != x ; then
1976 eval "DEFAULT_$LINE"
1977 else
1978 no_cache=1
1979 fi
1980
1981 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1982
1983 fi
1984
1985
1986 eval "$ac_cv_use_libpng"
1987 if test "$no_cache" != 1; then
1988 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1989 fi
1990
1991 if test "$wxUSE_LIBPNG" = yes; then
1992 echo "$ac_t""yes" 1>&6
1993 elif test "$wxUSE_LIBPNG" = no; then
1994 echo "$ac_t""no" 1>&6
1995 elif test "$wxUSE_LIBPNG" = sys; then
1996 echo "$ac_t""system version" 1>&6
1997 elif test "$wxUSE_LIBPNG" = builtin; then
1998 echo "$ac_t""builtin version" 1>&6
1999 else
2000 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2001 fi
2002
2003
2004 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2005 echo "configure:2006: checking for --with-libjpeg" >&5
2006 no_cache=0
2007 # Check whether --with-libjpeg or --without-libjpeg was given.
2008 if test "${with_libjpeg+set}" = set; then
2009 withval="$with_libjpeg"
2010
2011 if test "$withval" = yes; then
2012 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2013 elif test "$withval" = no; then
2014 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2015 elif test "$withval" = sys; then
2016 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2017 elif test "$withval" = builtin; then
2018 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2019 else
2020 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2021 fi
2022
2023 else
2024
2025 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2026 if test "x$LINE" != x ; then
2027 eval "DEFAULT_$LINE"
2028 else
2029 no_cache=1
2030 fi
2031
2032 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2033
2034 fi
2035
2036
2037 eval "$ac_cv_use_libjpeg"
2038 if test "$no_cache" != 1; then
2039 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2040 fi
2041
2042 if test "$wxUSE_LIBJPEG" = yes; then
2043 echo "$ac_t""yes" 1>&6
2044 elif test "$wxUSE_LIBJPEG" = no; then
2045 echo "$ac_t""no" 1>&6
2046 elif test "$wxUSE_LIBJPEG" = sys; then
2047 echo "$ac_t""system version" 1>&6
2048 elif test "$wxUSE_LIBJPEG" = builtin; then
2049 echo "$ac_t""builtin version" 1>&6
2050 else
2051 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2052 fi
2053
2054
2055 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2056 echo "configure:2057: checking for --with-libtiff" >&5
2057 no_cache=0
2058 # Check whether --with-libtiff or --without-libtiff was given.
2059 if test "${with_libtiff+set}" = set; then
2060 withval="$with_libtiff"
2061
2062 if test "$withval" = yes; then
2063 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2064 elif test "$withval" = no; then
2065 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2066 elif test "$withval" = sys; then
2067 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2068 elif test "$withval" = builtin; then
2069 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2070 else
2071 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2072 fi
2073
2074 else
2075
2076 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2077 if test "x$LINE" != x ; then
2078 eval "DEFAULT_$LINE"
2079 else
2080 no_cache=1
2081 fi
2082
2083 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2084
2085 fi
2086
2087
2088 eval "$ac_cv_use_libtiff"
2089 if test "$no_cache" != 1; then
2090 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2091 fi
2092
2093 if test "$wxUSE_LIBTIFF" = yes; then
2094 echo "$ac_t""yes" 1>&6
2095 elif test "$wxUSE_LIBTIFF" = no; then
2096 echo "$ac_t""no" 1>&6
2097 elif test "$wxUSE_LIBTIFF" = sys; then
2098 echo "$ac_t""system version" 1>&6
2099 elif test "$wxUSE_LIBTIFF" = builtin; then
2100 echo "$ac_t""builtin version" 1>&6
2101 else
2102 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2103 fi
2104
2105
2106 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
2107 echo "configure:2108: checking for --with-freetype" >&5
2108 no_cache=0
2109 # Check whether --with-freetype or --without-freetype was given.
2110 if test "${with_freetype+set}" = set; then
2111 withval="$with_freetype"
2112
2113 if test "$withval" = yes; then
2114 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2115 elif test "$withval" = no; then
2116 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2117 elif test "$withval" = sys; then
2118 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
2119 elif test "$withval" = builtin; then
2120 ac_cv_use_freetype='wxUSE_FREETYPE=builtin'
2121 else
2122 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2123 fi
2124
2125 else
2126
2127 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2128 if test "x$LINE" != x ; then
2129 eval "DEFAULT_$LINE"
2130 else
2131 no_cache=1
2132 fi
2133
2134 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
2135
2136 fi
2137
2138
2139 eval "$ac_cv_use_freetype"
2140 if test "$no_cache" != 1; then
2141 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2142 fi
2143
2144 if test "$wxUSE_FREETYPE" = yes; then
2145 echo "$ac_t""yes" 1>&6
2146 elif test "$wxUSE_FREETYPE" = no; then
2147 echo "$ac_t""no" 1>&6
2148 elif test "$wxUSE_FREETYPE" = sys; then
2149 echo "$ac_t""system version" 1>&6
2150 elif test "$wxUSE_FREETYPE" = builtin; then
2151 echo "$ac_t""builtin version" 1>&6
2152 else
2153 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2154 fi
2155
2156
2157 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2158 echo "configure:2159: checking for --with-opengl" >&5
2159 no_cache=0
2160 # Check whether --with-opengl or --without-opengl was given.
2161 if test "${with_opengl+set}" = set; then
2162 withval="$with_opengl"
2163
2164 if test "$withval" = yes; then
2165 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2166 else
2167 ac_cv_use_opengl='wxUSE_OPENGL=no'
2168 fi
2169
2170 else
2171
2172 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2173 if test "x$LINE" != x ; then
2174 eval "DEFAULT_$LINE"
2175 else
2176 no_cache=1
2177 fi
2178
2179 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2180
2181 fi
2182
2183
2184 eval "$ac_cv_use_opengl"
2185 if test "$no_cache" != 1; then
2186 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2187 fi
2188
2189 if test "$wxUSE_OPENGL" = yes; then
2190 echo "$ac_t""yes" 1>&6
2191 else
2192 echo "$ac_t""no" 1>&6
2193 fi
2194
2195
2196 fi
2197
2198
2199 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2200 echo "configure:2201: checking for --with-dmalloc" >&5
2201 no_cache=0
2202 # Check whether --with-dmalloc or --without-dmalloc was given.
2203 if test "${with_dmalloc+set}" = set; then
2204 withval="$with_dmalloc"
2205
2206 if test "$withval" = yes; then
2207 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2208 else
2209 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2210 fi
2211
2212 else
2213
2214 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2215 if test "x$LINE" != x ; then
2216 eval "DEFAULT_$LINE"
2217 else
2218 no_cache=1
2219 fi
2220
2221 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2222
2223 fi
2224
2225
2226 eval "$ac_cv_use_dmalloc"
2227 if test "$no_cache" != 1; then
2228 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2229 fi
2230
2231 if test "$wxUSE_DMALLOC" = yes; then
2232 echo "$ac_t""yes" 1>&6
2233 else
2234 echo "$ac_t""no" 1>&6
2235 fi
2236
2237
2238 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2239 echo "configure:2240: checking for --with-regex" >&5
2240 no_cache=0
2241 # Check whether --with-regex or --without-regex was given.
2242 if test "${with_regex+set}" = set; then
2243 withval="$with_regex"
2244
2245 if test "$withval" = yes; then
2246 ac_cv_use_regex='wxUSE_REGEX=yes'
2247 elif test "$withval" = no; then
2248 ac_cv_use_regex='wxUSE_REGEX=no'
2249 elif test "$withval" = sys; then
2250 ac_cv_use_regex='wxUSE_REGEX=sys'
2251 elif test "$withval" = builtin; then
2252 ac_cv_use_regex='wxUSE_REGEX=builtin'
2253 else
2254 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2255 fi
2256
2257 else
2258
2259 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2260 if test "x$LINE" != x ; then
2261 eval "DEFAULT_$LINE"
2262 else
2263 no_cache=1
2264 fi
2265
2266 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2267
2268 fi
2269
2270
2271 eval "$ac_cv_use_regex"
2272 if test "$no_cache" != 1; then
2273 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2274 fi
2275
2276 if test "$wxUSE_REGEX" = yes; then
2277 echo "$ac_t""yes" 1>&6
2278 elif test "$wxUSE_REGEX" = no; then
2279 echo "$ac_t""no" 1>&6
2280 elif test "$wxUSE_REGEX" = sys; then
2281 echo "$ac_t""system version" 1>&6
2282 elif test "$wxUSE_REGEX" = builtin; then
2283 echo "$ac_t""builtin version" 1>&6
2284 else
2285 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2286 fi
2287
2288
2289 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2290 echo "configure:2291: checking for --with-zlib" >&5
2291 no_cache=0
2292 # Check whether --with-zlib or --without-zlib was given.
2293 if test "${with_zlib+set}" = set; then
2294 withval="$with_zlib"
2295
2296 if test "$withval" = yes; then
2297 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2298 elif test "$withval" = no; then
2299 ac_cv_use_zlib='wxUSE_ZLIB=no'
2300 elif test "$withval" = sys; then
2301 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2302 elif test "$withval" = builtin; then
2303 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2304 else
2305 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2306 fi
2307
2308 else
2309
2310 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2311 if test "x$LINE" != x ; then
2312 eval "DEFAULT_$LINE"
2313 else
2314 no_cache=1
2315 fi
2316
2317 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2318
2319 fi
2320
2321
2322 eval "$ac_cv_use_zlib"
2323 if test "$no_cache" != 1; then
2324 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2325 fi
2326
2327 if test "$wxUSE_ZLIB" = yes; then
2328 echo "$ac_t""yes" 1>&6
2329 elif test "$wxUSE_ZLIB" = no; then
2330 echo "$ac_t""no" 1>&6
2331 elif test "$wxUSE_ZLIB" = sys; then
2332 echo "$ac_t""system version" 1>&6
2333 elif test "$wxUSE_ZLIB" = builtin; then
2334 echo "$ac_t""builtin version" 1>&6
2335 else
2336 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2337 fi
2338
2339
2340 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2341 echo "configure:2342: checking for --with-odbc" >&5
2342 no_cache=0
2343 # Check whether --with-odbc or --without-odbc was given.
2344 if test "${with_odbc+set}" = set; then
2345 withval="$with_odbc"
2346
2347 if test "$withval" = yes; then
2348 ac_cv_use_odbc='wxUSE_ODBC=yes'
2349 else
2350 ac_cv_use_odbc='wxUSE_ODBC=no'
2351 fi
2352
2353 else
2354
2355 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2356 if test "x$LINE" != x ; then
2357 eval "DEFAULT_$LINE"
2358 else
2359 no_cache=1
2360 fi
2361
2362 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2363
2364 fi
2365
2366
2367 eval "$ac_cv_use_odbc"
2368 if test "$no_cache" != 1; then
2369 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2370 fi
2371
2372 if test "$wxUSE_ODBC" = yes; then
2373 echo "$ac_t""yes" 1>&6
2374 else
2375 echo "$ac_t""no" 1>&6
2376 fi
2377
2378
2379
2380
2381 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2382 echo "configure:2383: checking for --enable-shared" >&5
2383 no_cache=0
2384 # Check whether --enable-shared or --disable-shared was given.
2385 if test "${enable_shared+set}" = set; then
2386 enableval="$enable_shared"
2387
2388 if test "$enableval" = yes; then
2389 ac_cv_use_shared='wxUSE_SHARED=yes'
2390 else
2391 ac_cv_use_shared='wxUSE_SHARED=no'
2392 fi
2393
2394 else
2395
2396 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2397 if test "x$LINE" != x ; then
2398 eval "DEFAULT_$LINE"
2399 else
2400 no_cache=1
2401 fi
2402
2403 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2404
2405 fi
2406
2407
2408 eval "$ac_cv_use_shared"
2409 if test "$no_cache" != 1; then
2410 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2411 fi
2412
2413 if test "$wxUSE_SHARED" = yes; then
2414 echo "$ac_t""yes" 1>&6
2415 else
2416 echo "$ac_t""no" 1>&6
2417 fi
2418
2419
2420 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2421 echo "configure:2422: checking for --enable-soname" >&5
2422 no_cache=0
2423 # Check whether --enable-soname or --disable-soname was given.
2424 if test "${enable_soname+set}" = set; then
2425 enableval="$enable_soname"
2426
2427 if test "$enableval" = yes; then
2428 ac_cv_use_soname='wxUSE_SONAME=yes'
2429 else
2430 ac_cv_use_soname='wxUSE_SONAME=no'
2431 fi
2432
2433 else
2434
2435 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2436 if test "x$LINE" != x ; then
2437 eval "DEFAULT_$LINE"
2438 else
2439 no_cache=1
2440 fi
2441
2442 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2443
2444 fi
2445
2446
2447 eval "$ac_cv_use_soname"
2448 if test "$no_cache" != 1; then
2449 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2450 fi
2451
2452 if test "$wxUSE_SONAME" = yes; then
2453 echo "$ac_t""yes" 1>&6
2454 else
2455 echo "$ac_t""no" 1>&6
2456 fi
2457
2458
2459 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2460 echo "configure:2461: checking for --enable-optimise" >&5
2461 no_cache=0
2462 # Check whether --enable-optimise or --disable-optimise was given.
2463 if test "${enable_optimise+set}" = set; then
2464 enableval="$enable_optimise"
2465
2466 if test "$enableval" = yes; then
2467 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2468 else
2469 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2470 fi
2471
2472 else
2473
2474 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2475 if test "x$LINE" != x ; then
2476 eval "DEFAULT_$LINE"
2477 else
2478 no_cache=1
2479 fi
2480
2481 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2482
2483 fi
2484
2485
2486 eval "$ac_cv_use_optimise"
2487 if test "$no_cache" != 1; then
2488 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2489 fi
2490
2491 if test "$wxUSE_OPTIMISE" = yes; then
2492 echo "$ac_t""yes" 1>&6
2493 else
2494 echo "$ac_t""no" 1>&6
2495 fi
2496
2497
2498 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2499 echo "configure:2500: checking for --enable-debug" >&5
2500 no_cache=0
2501 # Check whether --enable-debug or --disable-debug was given.
2502 if test "${enable_debug+set}" = set; then
2503 enableval="$enable_debug"
2504
2505 if test "$enableval" = yes; then
2506 ac_cv_use_debug='wxUSE_DEBUG=yes'
2507 else
2508 ac_cv_use_debug='wxUSE_DEBUG=no'
2509 fi
2510
2511 else
2512
2513 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2514 if test "x$LINE" != x ; then
2515 eval "DEFAULT_$LINE"
2516 else
2517 no_cache=1
2518 fi
2519
2520 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2521
2522 fi
2523
2524
2525 eval "$ac_cv_use_debug"
2526 if test "$no_cache" != 1; then
2527 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2528 fi
2529
2530 if test "$wxUSE_DEBUG" = yes; then
2531 echo "$ac_t""yes" 1>&6
2532 else
2533 echo "$ac_t""no" 1>&6
2534 fi
2535
2536
2537
2538 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2539 echo "configure:2540: checking for --enable-precomp" >&5
2540 no_cache=0
2541 # Check whether --enable-precomp or --disable-precomp was given.
2542 if test "${enable_precomp+set}" = set; then
2543 enableval="$enable_precomp"
2544
2545 if test "$enableval" = yes; then
2546 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2547 else
2548 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2549 fi
2550
2551 else
2552
2553 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2554 if test "x$LINE" != x ; then
2555 eval "DEFAULT_$LINE"
2556 else
2557 no_cache=1
2558 fi
2559
2560 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2561
2562 fi
2563
2564
2565 eval "$ac_cv_use_precomp"
2566 if test "$no_cache" != 1; then
2567 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2568 fi
2569
2570 if test "$wxUSE_PRECOMP" = yes; then
2571 echo "$ac_t""yes" 1>&6
2572 else
2573 echo "$ac_t""no" 1>&6
2574 fi
2575
2576
2577 if test "$wxUSE_DEBUG" = "yes"; then
2578 DEFAULT_wxUSE_DEBUG_FLAG=yes
2579 DEFAULT_wxUSE_DEBUG_INFO=yes
2580 elif test "$wxUSE_DEBUG" = "no"; then
2581 DEFAULT_wxUSE_DEBUG_FLAG=no
2582 DEFAULT_wxUSE_DEBUG_INFO=no
2583 fi
2584
2585
2586 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2587 echo "configure:2588: checking for --enable-debug_flag" >&5
2588 no_cache=0
2589 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2590 if test "${enable_debug_flag+set}" = set; then
2591 enableval="$enable_debug_flag"
2592
2593 if test "$enableval" = yes; then
2594 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2595 else
2596 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2597 fi
2598
2599 else
2600
2601 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2602 if test "x$LINE" != x ; then
2603 eval "DEFAULT_$LINE"
2604 else
2605 no_cache=1
2606 fi
2607
2608 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2609
2610 fi
2611
2612
2613 eval "$ac_cv_use_debug_flag"
2614 if test "$no_cache" != 1; then
2615 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2616 fi
2617
2618 if test "$wxUSE_DEBUG_FLAG" = yes; then
2619 echo "$ac_t""yes" 1>&6
2620 else
2621 echo "$ac_t""no" 1>&6
2622 fi
2623
2624
2625 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2626 echo "configure:2627: checking for --enable-debug_info" >&5
2627 no_cache=0
2628 # Check whether --enable-debug_info or --disable-debug_info was given.
2629 if test "${enable_debug_info+set}" = set; then
2630 enableval="$enable_debug_info"
2631
2632 if test "$enableval" = yes; then
2633 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2634 else
2635 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2636 fi
2637
2638 else
2639
2640 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2641 if test "x$LINE" != x ; then
2642 eval "DEFAULT_$LINE"
2643 else
2644 no_cache=1
2645 fi
2646
2647 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2648
2649 fi
2650
2651
2652 eval "$ac_cv_use_debug_info"
2653 if test "$no_cache" != 1; then
2654 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2655 fi
2656
2657 if test "$wxUSE_DEBUG_INFO" = yes; then
2658 echo "$ac_t""yes" 1>&6
2659 else
2660 echo "$ac_t""no" 1>&6
2661 fi
2662
2663
2664 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2665 echo "configure:2666: checking for --enable-debug_gdb" >&5
2666 no_cache=0
2667 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2668 if test "${enable_debug_gdb+set}" = set; then
2669 enableval="$enable_debug_gdb"
2670
2671 if test "$enableval" = yes; then
2672 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2673 else
2674 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2675 fi
2676
2677 else
2678
2679 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2680 if test "x$LINE" != x ; then
2681 eval "DEFAULT_$LINE"
2682 else
2683 no_cache=1
2684 fi
2685
2686 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2687
2688 fi
2689
2690
2691 eval "$ac_cv_use_debug_gdb"
2692 if test "$no_cache" != 1; then
2693 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2694 fi
2695
2696 if test "$wxUSE_DEBUG_GDB" = yes; then
2697 echo "$ac_t""yes" 1>&6
2698 else
2699 echo "$ac_t""no" 1>&6
2700 fi
2701
2702
2703 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2704 echo "configure:2705: checking for --enable-debug_cntxt" >&5
2705 no_cache=0
2706 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2707 if test "${enable_debug_cntxt+set}" = set; then
2708 enableval="$enable_debug_cntxt"
2709
2710 if test "$enableval" = yes; then
2711 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2712 else
2713 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2714 fi
2715
2716 else
2717
2718 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2719 if test "x$LINE" != x ; then
2720 eval "DEFAULT_$LINE"
2721 else
2722 no_cache=1
2723 fi
2724
2725 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2726
2727 fi
2728
2729
2730 eval "$ac_cv_use_debug_cntxt"
2731 if test "$no_cache" != 1; then
2732 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2733 fi
2734
2735 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2736 echo "$ac_t""yes" 1>&6
2737 else
2738 echo "$ac_t""no" 1>&6
2739 fi
2740
2741
2742 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2743 echo "configure:2744: checking for --enable-mem_tracing" >&5
2744 no_cache=0
2745 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2746 if test "${enable_mem_tracing+set}" = set; then
2747 enableval="$enable_mem_tracing"
2748
2749 if test "$enableval" = yes; then
2750 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2751 else
2752 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2753 fi
2754
2755 else
2756
2757 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2758 if test "x$LINE" != x ; then
2759 eval "DEFAULT_$LINE"
2760 else
2761 no_cache=1
2762 fi
2763
2764 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2765
2766 fi
2767
2768
2769 eval "$ac_cv_use_mem_tracing"
2770 if test "$no_cache" != 1; then
2771 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2772 fi
2773
2774 if test "$wxUSE_MEM_TRACING" = yes; then
2775 echo "$ac_t""yes" 1>&6
2776 else
2777 echo "$ac_t""no" 1>&6
2778 fi
2779
2780
2781 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2782 echo "configure:2783: checking for --enable-profile" >&5
2783 no_cache=0
2784 # Check whether --enable-profile or --disable-profile was given.
2785 if test "${enable_profile+set}" = set; then
2786 enableval="$enable_profile"
2787
2788 if test "$enableval" = yes; then
2789 ac_cv_use_profile='wxUSE_PROFILE=yes'
2790 else
2791 ac_cv_use_profile='wxUSE_PROFILE=no'
2792 fi
2793
2794 else
2795
2796 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2797 if test "x$LINE" != x ; then
2798 eval "DEFAULT_$LINE"
2799 else
2800 no_cache=1
2801 fi
2802
2803 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2804
2805 fi
2806
2807
2808 eval "$ac_cv_use_profile"
2809 if test "$no_cache" != 1; then
2810 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2811 fi
2812
2813 if test "$wxUSE_PROFILE" = yes; then
2814 echo "$ac_t""yes" 1>&6
2815 else
2816 echo "$ac_t""no" 1>&6
2817 fi
2818
2819
2820 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2821 echo "configure:2822: checking for --enable-no_rtti" >&5
2822 no_cache=0
2823 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2824 if test "${enable_no_rtti+set}" = set; then
2825 enableval="$enable_no_rtti"
2826
2827 if test "$enableval" = yes; then
2828 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2829 else
2830 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2831 fi
2832
2833 else
2834
2835 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2836 if test "x$LINE" != x ; then
2837 eval "DEFAULT_$LINE"
2838 else
2839 no_cache=1
2840 fi
2841
2842 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2843
2844 fi
2845
2846
2847 eval "$ac_cv_use_no_rtti"
2848 if test "$no_cache" != 1; then
2849 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2850 fi
2851
2852 if test "$wxUSE_NO_RTTI" = yes; then
2853 echo "$ac_t""yes" 1>&6
2854 else
2855 echo "$ac_t""no" 1>&6
2856 fi
2857
2858
2859 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2860 echo "configure:2861: checking for --enable-no_exceptions" >&5
2861 no_cache=0
2862 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2863 if test "${enable_no_exceptions+set}" = set; then
2864 enableval="$enable_no_exceptions"
2865
2866 if test "$enableval" = yes; then
2867 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2868 else
2869 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2870 fi
2871
2872 else
2873
2874 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2875 if test "x$LINE" != x ; then
2876 eval "DEFAULT_$LINE"
2877 else
2878 no_cache=1
2879 fi
2880
2881 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2882
2883 fi
2884
2885
2886 eval "$ac_cv_use_no_exceptions"
2887 if test "$no_cache" != 1; then
2888 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2889 fi
2890
2891 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2892 echo "$ac_t""yes" 1>&6
2893 else
2894 echo "$ac_t""no" 1>&6
2895 fi
2896
2897
2898 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2899 echo "configure:2900: checking for --enable-permissive" >&5
2900 no_cache=0
2901 # Check whether --enable-permissive or --disable-permissive was given.
2902 if test "${enable_permissive+set}" = set; then
2903 enableval="$enable_permissive"
2904
2905 if test "$enableval" = yes; then
2906 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2907 else
2908 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2909 fi
2910
2911 else
2912
2913 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2914 if test "x$LINE" != x ; then
2915 eval "DEFAULT_$LINE"
2916 else
2917 no_cache=1
2918 fi
2919
2920 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2921
2922 fi
2923
2924
2925 eval "$ac_cv_use_permissive"
2926 if test "$no_cache" != 1; then
2927 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2928 fi
2929
2930 if test "$wxUSE_PERMISSIVE" = yes; then
2931 echo "$ac_t""yes" 1>&6
2932 else
2933 echo "$ac_t""no" 1>&6
2934 fi
2935
2936
2937 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2938 echo "configure:2939: checking for --enable-no_deps" >&5
2939 no_cache=0
2940 # Check whether --enable-no_deps or --disable-no_deps was given.
2941 if test "${enable_no_deps+set}" = set; then
2942 enableval="$enable_no_deps"
2943
2944 if test "$enableval" = yes; then
2945 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2946 else
2947 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2948 fi
2949
2950 else
2951
2952 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2953 if test "x$LINE" != x ; then
2954 eval "DEFAULT_$LINE"
2955 else
2956 no_cache=1
2957 fi
2958
2959 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2960
2961 fi
2962
2963
2964 eval "$ac_cv_use_no_deps"
2965 if test "$no_cache" != 1; then
2966 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2967 fi
2968
2969 if test "$wxUSE_NO_DEPS" = yes; then
2970 echo "$ac_t""yes" 1>&6
2971 else
2972 echo "$ac_t""no" 1>&6
2973 fi
2974
2975
2976
2977 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2978 echo "configure:2979: checking for --enable-compat20" >&5
2979 no_cache=0
2980 # Check whether --enable-compat20 or --disable-compat20 was given.
2981 if test "${enable_compat20+set}" = set; then
2982 enableval="$enable_compat20"
2983
2984 if test "$enableval" = yes; then
2985 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2986 else
2987 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2988 fi
2989
2990 else
2991
2992 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2993 if test "x$LINE" != x ; then
2994 eval "DEFAULT_$LINE"
2995 else
2996 no_cache=1
2997 fi
2998
2999 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
3000
3001 fi
3002
3003
3004 eval "$ac_cv_use_compat20"
3005 if test "$no_cache" != 1; then
3006 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3007 fi
3008
3009 if test "$WXWIN_COMPATIBILITY_2" = yes; then
3010 echo "$ac_t""yes" 1>&6
3011 else
3012 echo "$ac_t""no" 1>&6
3013 fi
3014
3015
3016 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
3017 echo "configure:3018: checking for --enable-compat22" >&5
3018 no_cache=0
3019 # Check whether --enable-compat22 or --disable-compat22 was given.
3020 if test "${enable_compat22+set}" = set; then
3021 enableval="$enable_compat22"
3022
3023 if test "$enableval" = yes; then
3024 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3025 else
3026 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3027 fi
3028
3029 else
3030
3031 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3032 if test "x$LINE" != x ; then
3033 eval "DEFAULT_$LINE"
3034 else
3035 no_cache=1
3036 fi
3037
3038 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3039
3040 fi
3041
3042
3043 eval "$ac_cv_use_compat22"
3044 if test "$no_cache" != 1; then
3045 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3046 fi
3047
3048 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3049 echo "$ac_t""yes" 1>&6
3050 else
3051 echo "$ac_t""no" 1>&6
3052 fi
3053
3054
3055
3056
3057 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
3058 echo "configure:3059: checking for --enable-intl" >&5
3059 no_cache=0
3060 # Check whether --enable-intl or --disable-intl was given.
3061 if test "${enable_intl+set}" = set; then
3062 enableval="$enable_intl"
3063
3064 if test "$enableval" = yes; then
3065 ac_cv_use_intl='wxUSE_INTL=yes'
3066 else
3067 ac_cv_use_intl='wxUSE_INTL=no'
3068 fi
3069
3070 else
3071
3072 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3073 if test "x$LINE" != x ; then
3074 eval "DEFAULT_$LINE"
3075 else
3076 no_cache=1
3077 fi
3078
3079 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3080
3081 fi
3082
3083
3084 eval "$ac_cv_use_intl"
3085 if test "$no_cache" != 1; then
3086 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3087 fi
3088
3089 if test "$wxUSE_INTL" = yes; then
3090 echo "$ac_t""yes" 1>&6
3091 else
3092 echo "$ac_t""no" 1>&6
3093 fi
3094
3095
3096 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3097 echo "configure:3098: checking for --enable-config" >&5
3098 no_cache=0
3099 # Check whether --enable-config or --disable-config was given.
3100 if test "${enable_config+set}" = set; then
3101 enableval="$enable_config"
3102
3103 if test "$enableval" = yes; then
3104 ac_cv_use_config='wxUSE_CONFIG=yes'
3105 else
3106 ac_cv_use_config='wxUSE_CONFIG=no'
3107 fi
3108
3109 else
3110
3111 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3112 if test "x$LINE" != x ; then
3113 eval "DEFAULT_$LINE"
3114 else
3115 no_cache=1
3116 fi
3117
3118 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3119
3120 fi
3121
3122
3123 eval "$ac_cv_use_config"
3124 if test "$no_cache" != 1; then
3125 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3126 fi
3127
3128 if test "$wxUSE_CONFIG" = yes; then
3129 echo "$ac_t""yes" 1>&6
3130 else
3131 echo "$ac_t""no" 1>&6
3132 fi
3133
3134
3135
3136 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
3137 echo "configure:3138: checking for --enable-protocols" >&5
3138 no_cache=0
3139 # Check whether --enable-protocols or --disable-protocols was given.
3140 if test "${enable_protocols+set}" = set; then
3141 enableval="$enable_protocols"
3142
3143 if test "$enableval" = yes; then
3144 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3145 else
3146 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3147 fi
3148
3149 else
3150
3151 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3152 if test "x$LINE" != x ; then
3153 eval "DEFAULT_$LINE"
3154 else
3155 no_cache=1
3156 fi
3157
3158 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3159
3160 fi
3161
3162
3163 eval "$ac_cv_use_protocols"
3164 if test "$no_cache" != 1; then
3165 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3166 fi
3167
3168 if test "$wxUSE_PROTOCOL" = yes; then
3169 echo "$ac_t""yes" 1>&6
3170 else
3171 echo "$ac_t""no" 1>&6
3172 fi
3173
3174
3175 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
3176 echo "configure:3177: checking for --enable-ftp" >&5
3177 no_cache=0
3178 # Check whether --enable-ftp or --disable-ftp was given.
3179 if test "${enable_ftp+set}" = set; then
3180 enableval="$enable_ftp"
3181
3182 if test "$enableval" = yes; then
3183 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3184 else
3185 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3186 fi
3187
3188 else
3189
3190 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3191 if test "x$LINE" != x ; then
3192 eval "DEFAULT_$LINE"
3193 else
3194 no_cache=1
3195 fi
3196
3197 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3198
3199 fi
3200
3201
3202 eval "$ac_cv_use_ftp"
3203 if test "$no_cache" != 1; then
3204 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3205 fi
3206
3207 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3208 echo "$ac_t""yes" 1>&6
3209 else
3210 echo "$ac_t""no" 1>&6
3211 fi
3212
3213
3214 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
3215 echo "configure:3216: checking for --enable-http" >&5
3216 no_cache=0
3217 # Check whether --enable-http or --disable-http was given.
3218 if test "${enable_http+set}" = set; then
3219 enableval="$enable_http"
3220
3221 if test "$enableval" = yes; then
3222 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3223 else
3224 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3225 fi
3226
3227 else
3228
3229 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3230 if test "x$LINE" != x ; then
3231 eval "DEFAULT_$LINE"
3232 else
3233 no_cache=1
3234 fi
3235
3236 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3237
3238 fi
3239
3240
3241 eval "$ac_cv_use_http"
3242 if test "$no_cache" != 1; then
3243 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3244 fi
3245
3246 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3247 echo "$ac_t""yes" 1>&6
3248 else
3249 echo "$ac_t""no" 1>&6
3250 fi
3251
3252
3253 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
3254 echo "configure:3255: checking for --enable-fileproto" >&5
3255 no_cache=0
3256 # Check whether --enable-fileproto or --disable-fileproto was given.
3257 if test "${enable_fileproto+set}" = set; then
3258 enableval="$enable_fileproto"
3259
3260 if test "$enableval" = yes; then
3261 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3262 else
3263 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3264 fi
3265
3266 else
3267
3268 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3269 if test "x$LINE" != x ; then
3270 eval "DEFAULT_$LINE"
3271 else
3272 no_cache=1
3273 fi
3274
3275 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3276
3277 fi
3278
3279
3280 eval "$ac_cv_use_fileproto"
3281 if test "$no_cache" != 1; then
3282 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3283 fi
3284
3285 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3286 echo "$ac_t""yes" 1>&6
3287 else
3288 echo "$ac_t""no" 1>&6
3289 fi
3290
3291
3292 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3293 echo "configure:3294: checking for --enable-sockets" >&5
3294 no_cache=0
3295 # Check whether --enable-sockets or --disable-sockets was given.
3296 if test "${enable_sockets+set}" = set; then
3297 enableval="$enable_sockets"
3298
3299 if test "$enableval" = yes; then
3300 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3301 else
3302 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3303 fi
3304
3305 else
3306
3307 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3308 if test "x$LINE" != x ; then
3309 eval "DEFAULT_$LINE"
3310 else
3311 no_cache=1
3312 fi
3313
3314 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3315
3316 fi
3317
3318
3319 eval "$ac_cv_use_sockets"
3320 if test "$no_cache" != 1; then
3321 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3322 fi
3323
3324 if test "$wxUSE_SOCKETS" = yes; then
3325 echo "$ac_t""yes" 1>&6
3326 else
3327 echo "$ac_t""no" 1>&6
3328 fi
3329
3330
3331
3332 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3333 echo "configure:3334: checking for --enable-ipc" >&5
3334 no_cache=0
3335 # Check whether --enable-ipc or --disable-ipc was given.
3336 if test "${enable_ipc+set}" = set; then
3337 enableval="$enable_ipc"
3338
3339 if test "$enableval" = yes; then
3340 ac_cv_use_ipc='wxUSE_IPC=yes'
3341 else
3342 ac_cv_use_ipc='wxUSE_IPC=no'
3343 fi
3344
3345 else
3346
3347 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3348 if test "x$LINE" != x ; then
3349 eval "DEFAULT_$LINE"
3350 else
3351 no_cache=1
3352 fi
3353
3354 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3355
3356 fi
3357
3358
3359 eval "$ac_cv_use_ipc"
3360 if test "$no_cache" != 1; then
3361 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3362 fi
3363
3364 if test "$wxUSE_IPC" = yes; then
3365 echo "$ac_t""yes" 1>&6
3366 else
3367 echo "$ac_t""no" 1>&6
3368 fi
3369
3370
3371
3372 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3373 echo "configure:3374: checking for --enable-cmdline" >&5
3374 no_cache=0
3375 # Check whether --enable-cmdline or --disable-cmdline was given.
3376 if test "${enable_cmdline+set}" = set; then
3377 enableval="$enable_cmdline"
3378
3379 if test "$enableval" = yes; then
3380 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3381 else
3382 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3383 fi
3384
3385 else
3386
3387 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3388 if test "x$LINE" != x ; then
3389 eval "DEFAULT_$LINE"
3390 else
3391 no_cache=1
3392 fi
3393
3394 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3395
3396 fi
3397
3398
3399 eval "$ac_cv_use_cmdline"
3400 if test "$no_cache" != 1; then
3401 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3402 fi
3403
3404 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3405 echo "$ac_t""yes" 1>&6
3406 else
3407 echo "$ac_t""no" 1>&6
3408 fi
3409
3410
3411 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3412 echo "configure:3413: checking for --enable-datetime" >&5
3413 no_cache=0
3414 # Check whether --enable-datetime or --disable-datetime was given.
3415 if test "${enable_datetime+set}" = set; then
3416 enableval="$enable_datetime"
3417
3418 if test "$enableval" = yes; then
3419 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3420 else
3421 ac_cv_use_datetime='wxUSE_DATETIME=no'
3422 fi
3423
3424 else
3425
3426 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3427 if test "x$LINE" != x ; then
3428 eval "DEFAULT_$LINE"
3429 else
3430 no_cache=1
3431 fi
3432
3433 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3434
3435 fi
3436
3437
3438 eval "$ac_cv_use_datetime"
3439 if test "$no_cache" != 1; then
3440 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3441 fi
3442
3443 if test "$wxUSE_DATETIME" = yes; then
3444 echo "$ac_t""yes" 1>&6
3445 else
3446 echo "$ac_t""no" 1>&6
3447 fi
3448
3449
3450 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3451 echo "configure:3452: checking for --enable-timedate" >&5
3452 no_cache=0
3453 # Check whether --enable-timedate or --disable-timedate was given.
3454 if test "${enable_timedate+set}" = set; then
3455 enableval="$enable_timedate"
3456
3457 if test "$enableval" = yes; then
3458 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3459 else
3460 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3461 fi
3462
3463 else
3464
3465 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3466 if test "x$LINE" != x ; then
3467 eval "DEFAULT_$LINE"
3468 else
3469 no_cache=1
3470 fi
3471
3472 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3473
3474 fi
3475
3476
3477 eval "$ac_cv_use_timedate"
3478 if test "$no_cache" != 1; then
3479 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3480 fi
3481
3482 if test "$wxUSE_TIMEDATE" = yes; then
3483 echo "$ac_t""yes" 1>&6
3484 else
3485 echo "$ac_t""no" 1>&6
3486 fi
3487
3488
3489 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3490 echo "configure:3491: checking for --enable-stopwatch" >&5
3491 no_cache=0
3492 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3493 if test "${enable_stopwatch+set}" = set; then
3494 enableval="$enable_stopwatch"
3495
3496 if test "$enableval" = yes; then
3497 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3498 else
3499 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3500 fi
3501
3502 else
3503
3504 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3505 if test "x$LINE" != x ; then
3506 eval "DEFAULT_$LINE"
3507 else
3508 no_cache=1
3509 fi
3510
3511 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3512
3513 fi
3514
3515
3516 eval "$ac_cv_use_stopwatch"
3517 if test "$no_cache" != 1; then
3518 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3519 fi
3520
3521 if test "$wxUSE_STOPWATCH" = yes; then
3522 echo "$ac_t""yes" 1>&6
3523 else
3524 echo "$ac_t""no" 1>&6
3525 fi
3526
3527
3528 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3529 echo "configure:3530: checking for --enable-dialupman" >&5
3530 no_cache=0
3531 # Check whether --enable-dialupman or --disable-dialupman was given.
3532 if test "${enable_dialupman+set}" = set; then
3533 enableval="$enable_dialupman"
3534
3535 if test "$enableval" = yes; then
3536 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3537 else
3538 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3539 fi
3540
3541 else
3542
3543 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3544 if test "x$LINE" != x ; then
3545 eval "DEFAULT_$LINE"
3546 else
3547 no_cache=1
3548 fi
3549
3550 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3551
3552 fi
3553
3554
3555 eval "$ac_cv_use_dialupman"
3556 if test "$no_cache" != 1; then
3557 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3558 fi
3559
3560 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3561 echo "$ac_t""yes" 1>&6
3562 else
3563 echo "$ac_t""no" 1>&6
3564 fi
3565
3566
3567 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3568 echo "configure:3569: checking for --enable-apple_ieee" >&5
3569 no_cache=0
3570 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3571 if test "${enable_apple_ieee+set}" = set; then
3572 enableval="$enable_apple_ieee"
3573
3574 if test "$enableval" = yes; then
3575 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3576 else
3577 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3578 fi
3579
3580 else
3581
3582 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3583 if test "x$LINE" != x ; then
3584 eval "DEFAULT_$LINE"
3585 else
3586 no_cache=1
3587 fi
3588
3589 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3590
3591 fi
3592
3593
3594 eval "$ac_cv_use_apple_ieee"
3595 if test "$no_cache" != 1; then
3596 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3597 fi
3598
3599 if test "$wxUSE_APPLE_IEEE" = yes; then
3600 echo "$ac_t""yes" 1>&6
3601 else
3602 echo "$ac_t""no" 1>&6
3603 fi
3604
3605
3606 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3607 echo "configure:3608: checking for --enable-timer" >&5
3608 no_cache=0
3609 # Check whether --enable-timer or --disable-timer was given.
3610 if test "${enable_timer+set}" = set; then
3611 enableval="$enable_timer"
3612
3613 if test "$enableval" = yes; then
3614 ac_cv_use_timer='wxUSE_TIMER=yes'
3615 else
3616 ac_cv_use_timer='wxUSE_TIMER=no'
3617 fi
3618
3619 else
3620
3621 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3622 if test "x$LINE" != x ; then
3623 eval "DEFAULT_$LINE"
3624 else
3625 no_cache=1
3626 fi
3627
3628 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3629
3630 fi
3631
3632
3633 eval "$ac_cv_use_timer"
3634 if test "$no_cache" != 1; then
3635 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3636 fi
3637
3638 if test "$wxUSE_TIMER" = yes; then
3639 echo "$ac_t""yes" 1>&6
3640 else
3641 echo "$ac_t""no" 1>&6
3642 fi
3643
3644
3645 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3646 echo "configure:3647: checking for --enable-wave" >&5
3647 no_cache=0
3648 # Check whether --enable-wave or --disable-wave was given.
3649 if test "${enable_wave+set}" = set; then
3650 enableval="$enable_wave"
3651
3652 if test "$enableval" = yes; then
3653 ac_cv_use_wave='wxUSE_WAVE=yes'
3654 else
3655 ac_cv_use_wave='wxUSE_WAVE=no'
3656 fi
3657
3658 else
3659
3660 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3661 if test "x$LINE" != x ; then
3662 eval "DEFAULT_$LINE"
3663 else
3664 no_cache=1
3665 fi
3666
3667 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3668
3669 fi
3670
3671
3672 eval "$ac_cv_use_wave"
3673 if test "$no_cache" != 1; then
3674 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3675 fi
3676
3677 if test "$wxUSE_WAVE" = yes; then
3678 echo "$ac_t""yes" 1>&6
3679 else
3680 echo "$ac_t""no" 1>&6
3681 fi
3682
3683
3684 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3685 echo "configure:3686: checking for --enable-fraction" >&5
3686 no_cache=0
3687 # Check whether --enable-fraction or --disable-fraction was given.
3688 if test "${enable_fraction+set}" = set; then
3689 enableval="$enable_fraction"
3690
3691 if test "$enableval" = yes; then
3692 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3693 else
3694 ac_cv_use_fraction='wxUSE_FRACTION=no'
3695 fi
3696
3697 else
3698
3699 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3700 if test "x$LINE" != x ; then
3701 eval "DEFAULT_$LINE"
3702 else
3703 no_cache=1
3704 fi
3705
3706 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3707
3708 fi
3709
3710
3711 eval "$ac_cv_use_fraction"
3712 if test "$no_cache" != 1; then
3713 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3714 fi
3715
3716 if test "$wxUSE_FRACTION" = yes; then
3717 echo "$ac_t""yes" 1>&6
3718 else
3719 echo "$ac_t""no" 1>&6
3720 fi
3721
3722
3723 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3724 echo "configure:3725: checking for --enable-dynlib" >&5
3725 no_cache=0
3726 # Check whether --enable-dynlib or --disable-dynlib was given.
3727 if test "${enable_dynlib+set}" = set; then
3728 enableval="$enable_dynlib"
3729
3730 if test "$enableval" = yes; then
3731 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3732 else
3733 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3734 fi
3735
3736 else
3737
3738 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3739 if test "x$LINE" != x ; then
3740 eval "DEFAULT_$LINE"
3741 else
3742 no_cache=1
3743 fi
3744
3745 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3746
3747 fi
3748
3749
3750 eval "$ac_cv_use_dynlib"
3751 if test "$no_cache" != 1; then
3752 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3753 fi
3754
3755 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3756 echo "$ac_t""yes" 1>&6
3757 else
3758 echo "$ac_t""no" 1>&6
3759 fi
3760
3761
3762 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3763 echo "configure:3764: checking for --enable-dynamicloader" >&5
3764 no_cache=0
3765 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3766 if test "${enable_dynamicloader+set}" = set; then
3767 enableval="$enable_dynamicloader"
3768
3769 if test "$enableval" = yes; then
3770 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3771 else
3772 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3773 fi
3774
3775 else
3776
3777 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3778 if test "x$LINE" != x ; then
3779 eval "DEFAULT_$LINE"
3780 else
3781 no_cache=1
3782 fi
3783
3784 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3785
3786 fi
3787
3788
3789 eval "$ac_cv_use_dynamicloader"
3790 if test "$no_cache" != 1; then
3791 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3792 fi
3793
3794 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3795 echo "$ac_t""yes" 1>&6
3796 else
3797 echo "$ac_t""no" 1>&6
3798 fi
3799
3800
3801 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3802 echo "configure:3803: checking for --enable-longlong" >&5
3803 no_cache=0
3804 # Check whether --enable-longlong or --disable-longlong was given.
3805 if test "${enable_longlong+set}" = set; then
3806 enableval="$enable_longlong"
3807
3808 if test "$enableval" = yes; then
3809 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3810 else
3811 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3812 fi
3813
3814 else
3815
3816 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3817 if test "x$LINE" != x ; then
3818 eval "DEFAULT_$LINE"
3819 else
3820 no_cache=1
3821 fi
3822
3823 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3824
3825 fi
3826
3827
3828 eval "$ac_cv_use_longlong"
3829 if test "$no_cache" != 1; then
3830 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3831 fi
3832
3833 if test "$wxUSE_LONGLONG" = yes; then
3834 echo "$ac_t""yes" 1>&6
3835 else
3836 echo "$ac_t""no" 1>&6
3837 fi
3838
3839
3840 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3841 echo "configure:3842: checking for --enable-geometry" >&5
3842 no_cache=0
3843 # Check whether --enable-geometry or --disable-geometry was given.
3844 if test "${enable_geometry+set}" = set; then
3845 enableval="$enable_geometry"
3846
3847 if test "$enableval" = yes; then
3848 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3849 else
3850 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3851 fi
3852
3853 else
3854
3855 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3856 if test "x$LINE" != x ; then
3857 eval "DEFAULT_$LINE"
3858 else
3859 no_cache=1
3860 fi
3861
3862 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3863
3864 fi
3865
3866
3867 eval "$ac_cv_use_geometry"
3868 if test "$no_cache" != 1; then
3869 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3870 fi
3871
3872 if test "$wxUSE_GEOMETRY" = yes; then
3873 echo "$ac_t""yes" 1>&6
3874 else
3875 echo "$ac_t""no" 1>&6
3876 fi
3877
3878
3879 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3880 echo "configure:3881: checking for --enable-log" >&5
3881 no_cache=0
3882 # Check whether --enable-log or --disable-log was given.
3883 if test "${enable_log+set}" = set; then
3884 enableval="$enable_log"
3885
3886 if test "$enableval" = yes; then
3887 ac_cv_use_log='wxUSE_LOG=yes'
3888 else
3889 ac_cv_use_log='wxUSE_LOG=no'
3890 fi
3891
3892 else
3893
3894 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3895 if test "x$LINE" != x ; then
3896 eval "DEFAULT_$LINE"
3897 else
3898 no_cache=1
3899 fi
3900
3901 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3902
3903 fi
3904
3905
3906 eval "$ac_cv_use_log"
3907 if test "$no_cache" != 1; then
3908 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3909 fi
3910
3911 if test "$wxUSE_LOG" = yes; then
3912 echo "$ac_t""yes" 1>&6
3913 else
3914 echo "$ac_t""no" 1>&6
3915 fi
3916
3917
3918 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3919 echo "configure:3920: checking for --enable-streams" >&5
3920 no_cache=0
3921 # Check whether --enable-streams or --disable-streams was given.
3922 if test "${enable_streams+set}" = set; then
3923 enableval="$enable_streams"
3924
3925 if test "$enableval" = yes; then
3926 ac_cv_use_streams='wxUSE_STREAMS=yes'
3927 else
3928 ac_cv_use_streams='wxUSE_STREAMS=no'
3929 fi
3930
3931 else
3932
3933 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3934 if test "x$LINE" != x ; then
3935 eval "DEFAULT_$LINE"
3936 else
3937 no_cache=1
3938 fi
3939
3940 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3941
3942 fi
3943
3944
3945 eval "$ac_cv_use_streams"
3946 if test "$no_cache" != 1; then
3947 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3948 fi
3949
3950 if test "$wxUSE_STREAMS" = yes; then
3951 echo "$ac_t""yes" 1>&6
3952 else
3953 echo "$ac_t""no" 1>&6
3954 fi
3955
3956
3957 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3958 echo "configure:3959: checking for --enable-file" >&5
3959 no_cache=0
3960 # Check whether --enable-file or --disable-file was given.
3961 if test "${enable_file+set}" = set; then
3962 enableval="$enable_file"
3963
3964 if test "$enableval" = yes; then
3965 ac_cv_use_file='wxUSE_FILE=yes'
3966 else
3967 ac_cv_use_file='wxUSE_FILE=no'
3968 fi
3969
3970 else
3971
3972 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3973 if test "x$LINE" != x ; then
3974 eval "DEFAULT_$LINE"
3975 else
3976 no_cache=1
3977 fi
3978
3979 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3980
3981 fi
3982
3983
3984 eval "$ac_cv_use_file"
3985 if test "$no_cache" != 1; then
3986 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3987 fi
3988
3989 if test "$wxUSE_FILE" = yes; then
3990 echo "$ac_t""yes" 1>&6
3991 else
3992 echo "$ac_t""no" 1>&6
3993 fi
3994
3995
3996 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3997 echo "configure:3998: checking for --enable-ffile" >&5
3998 no_cache=0
3999 # Check whether --enable-ffile or --disable-ffile was given.
4000 if test "${enable_ffile+set}" = set; then
4001 enableval="$enable_ffile"
4002
4003 if test "$enableval" = yes; then
4004 ac_cv_use_ffile='wxUSE_FFILE=yes'
4005 else
4006 ac_cv_use_ffile='wxUSE_FFILE=no'
4007 fi
4008
4009 else
4010
4011 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4012 if test "x$LINE" != x ; then
4013 eval "DEFAULT_$LINE"
4014 else
4015 no_cache=1
4016 fi
4017
4018 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4019
4020 fi
4021
4022
4023 eval "$ac_cv_use_ffile"
4024 if test "$no_cache" != 1; then
4025 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4026 fi
4027
4028 if test "$wxUSE_FFILE" = yes; then
4029 echo "$ac_t""yes" 1>&6
4030 else
4031 echo "$ac_t""no" 1>&6
4032 fi
4033
4034
4035 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
4036 echo "configure:4037: checking for --enable-textbuf" >&5
4037 no_cache=0
4038 # Check whether --enable-textbuf or --disable-textbuf was given.
4039 if test "${enable_textbuf+set}" = set; then
4040 enableval="$enable_textbuf"
4041
4042 if test "$enableval" = yes; then
4043 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4044 else
4045 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4046 fi
4047
4048 else
4049
4050 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4051 if test "x$LINE" != x ; then
4052 eval "DEFAULT_$LINE"
4053 else
4054 no_cache=1
4055 fi
4056
4057 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4058
4059 fi
4060
4061
4062 eval "$ac_cv_use_textbuf"
4063 if test "$no_cache" != 1; then
4064 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4065 fi
4066
4067 if test "$wxUSE_TEXTBUFFER" = yes; then
4068 echo "$ac_t""yes" 1>&6
4069 else
4070 echo "$ac_t""no" 1>&6
4071 fi
4072
4073
4074 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
4075 echo "configure:4076: checking for --enable-textfile" >&5
4076 no_cache=0
4077 # Check whether --enable-textfile or --disable-textfile was given.
4078 if test "${enable_textfile+set}" = set; then
4079 enableval="$enable_textfile"
4080
4081 if test "$enableval" = yes; then
4082 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4083 else
4084 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4085 fi
4086
4087 else
4088
4089 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4090 if test "x$LINE" != x ; then
4091 eval "DEFAULT_$LINE"
4092 else
4093 no_cache=1
4094 fi
4095
4096 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4097
4098 fi
4099
4100
4101 eval "$ac_cv_use_textfile"
4102 if test "$no_cache" != 1; then
4103 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4104 fi
4105
4106 if test "$wxUSE_TEXTFILE" = yes; then
4107 echo "$ac_t""yes" 1>&6
4108 else
4109 echo "$ac_t""no" 1>&6
4110 fi
4111
4112
4113 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
4114 echo "configure:4115: checking for --enable-fontmap" >&5
4115 no_cache=0
4116 # Check whether --enable-fontmap or --disable-fontmap was given.
4117 if test "${enable_fontmap+set}" = set; then
4118 enableval="$enable_fontmap"
4119
4120 if test "$enableval" = yes; then
4121 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4122 else
4123 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4124 fi
4125
4126 else
4127
4128 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4129 if test "x$LINE" != x ; then
4130 eval "DEFAULT_$LINE"
4131 else
4132 no_cache=1
4133 fi
4134
4135 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4136
4137 fi
4138
4139
4140 eval "$ac_cv_use_fontmap"
4141 if test "$no_cache" != 1; then
4142 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4143 fi
4144
4145 if test "$wxUSE_FONTMAP" = yes; then
4146 echo "$ac_t""yes" 1>&6
4147 else
4148 echo "$ac_t""no" 1>&6
4149 fi
4150
4151
4152 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
4153 echo "configure:4154: checking for --enable-unicode" >&5
4154 no_cache=0
4155 # Check whether --enable-unicode or --disable-unicode was given.
4156 if test "${enable_unicode+set}" = set; then
4157 enableval="$enable_unicode"
4158
4159 if test "$enableval" = yes; then
4160 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4161 else
4162 ac_cv_use_unicode='wxUSE_UNICODE=no'
4163 fi
4164
4165 else
4166
4167 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4168 if test "x$LINE" != x ; then
4169 eval "DEFAULT_$LINE"
4170 else
4171 no_cache=1
4172 fi
4173
4174 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4175
4176 fi
4177
4178
4179 eval "$ac_cv_use_unicode"
4180 if test "$no_cache" != 1; then
4181 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4182 fi
4183
4184 if test "$wxUSE_UNICODE" = yes; then
4185 echo "$ac_t""yes" 1>&6
4186 else
4187 echo "$ac_t""no" 1>&6
4188 fi
4189
4190
4191 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
4192 echo "configure:4193: checking for --enable-mslu" >&5
4193 no_cache=0
4194 # Check whether --enable-mslu or --disable-mslu was given.
4195 if test "${enable_mslu+set}" = set; then
4196 enableval="$enable_mslu"
4197
4198 if test "$enableval" = yes; then
4199 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4200 else
4201 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4202 fi
4203
4204 else
4205
4206 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4207 if test "x$LINE" != x ; then
4208 eval "DEFAULT_$LINE"
4209 else
4210 no_cache=1
4211 fi
4212
4213 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4214
4215 fi
4216
4217
4218 eval "$ac_cv_use_mslu"
4219 if test "$no_cache" != 1; then
4220 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4221 fi
4222
4223 if test "$wxUSE_UNICODE_MSLU" = yes; then
4224 echo "$ac_t""yes" 1>&6
4225 else
4226 echo "$ac_t""no" 1>&6
4227 fi
4228
4229
4230 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
4231 echo "configure:4232: checking for --enable-wxprintfv" >&5
4232 no_cache=0
4233 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4234 if test "${enable_wxprintfv+set}" = set; then
4235 enableval="$enable_wxprintfv"
4236
4237 if test "$enableval" = yes; then
4238 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4239 else
4240 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4241 fi
4242
4243 else
4244
4245 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4246 if test "x$LINE" != x ; then
4247 eval "DEFAULT_$LINE"
4248 else
4249 no_cache=1
4250 fi
4251
4252 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4253
4254 fi
4255
4256
4257 eval "$ac_cv_use_wxprintfv"
4258 if test "$no_cache" != 1; then
4259 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4260 fi
4261
4262 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4263 echo "$ac_t""yes" 1>&6
4264 else
4265 echo "$ac_t""no" 1>&6
4266 fi
4267
4268
4269 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
4270 echo "configure:4271: checking for --enable-std_iostreams" >&5
4271 no_cache=0
4272 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4273 if test "${enable_std_iostreams+set}" = set; then
4274 enableval="$enable_std_iostreams"
4275
4276 if test "$enableval" = yes; then
4277 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4278 else
4279 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4280 fi
4281
4282 else
4283
4284 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4285 if test "x$LINE" != x ; then
4286 eval "DEFAULT_$LINE"
4287 else
4288 no_cache=1
4289 fi
4290
4291 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4292
4293 fi
4294
4295
4296 eval "$ac_cv_use_std_iostreams"
4297 if test "$no_cache" != 1; then
4298 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4299 fi
4300
4301 if test "$wxUSE_STD_IOSTREAM" = yes; then
4302 echo "$ac_t""yes" 1>&6
4303 else
4304 echo "$ac_t""no" 1>&6
4305 fi
4306
4307
4308 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
4309 echo "configure:4310: checking for --enable-filesystem" >&5
4310 no_cache=0
4311 # Check whether --enable-filesystem or --disable-filesystem was given.
4312 if test "${enable_filesystem+set}" = set; then
4313 enableval="$enable_filesystem"
4314
4315 if test "$enableval" = yes; then
4316 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4317 else
4318 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4319 fi
4320
4321 else
4322
4323 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4324 if test "x$LINE" != x ; then
4325 eval "DEFAULT_$LINE"
4326 else
4327 no_cache=1
4328 fi
4329
4330 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4331
4332 fi
4333
4334
4335 eval "$ac_cv_use_filesystem"
4336 if test "$no_cache" != 1; then
4337 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4338 fi
4339
4340 if test "$wxUSE_FILESYSTEM" = yes; then
4341 echo "$ac_t""yes" 1>&6
4342 else
4343 echo "$ac_t""no" 1>&6
4344 fi
4345
4346
4347 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4348 echo "configure:4349: checking for --enable-fs_inet" >&5
4349 no_cache=0
4350 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4351 if test "${enable_fs_inet+set}" = set; then
4352 enableval="$enable_fs_inet"
4353
4354 if test "$enableval" = yes; then
4355 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4356 else
4357 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4358 fi
4359
4360 else
4361
4362 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4363 if test "x$LINE" != x ; then
4364 eval "DEFAULT_$LINE"
4365 else
4366 no_cache=1
4367 fi
4368
4369 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4370
4371 fi
4372
4373
4374 eval "$ac_cv_use_fs_inet"
4375 if test "$no_cache" != 1; then
4376 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4377 fi
4378
4379 if test "$wxUSE_FS_INET" = yes; then
4380 echo "$ac_t""yes" 1>&6
4381 else
4382 echo "$ac_t""no" 1>&6
4383 fi
4384
4385
4386 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4387 echo "configure:4388: checking for --enable-fs_zip" >&5
4388 no_cache=0
4389 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4390 if test "${enable_fs_zip+set}" = set; then
4391 enableval="$enable_fs_zip"
4392
4393 if test "$enableval" = yes; then
4394 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4395 else
4396 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4397 fi
4398
4399 else
4400
4401 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4402 if test "x$LINE" != x ; then
4403 eval "DEFAULT_$LINE"
4404 else
4405 no_cache=1
4406 fi
4407
4408 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4409
4410 fi
4411
4412
4413 eval "$ac_cv_use_fs_zip"
4414 if test "$no_cache" != 1; then
4415 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4416 fi
4417
4418 if test "$wxUSE_FS_ZIP" = yes; then
4419 echo "$ac_t""yes" 1>&6
4420 else
4421 echo "$ac_t""no" 1>&6
4422 fi
4423
4424
4425 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4426 echo "configure:4427: checking for --enable-zipstream" >&5
4427 no_cache=0
4428 # Check whether --enable-zipstream or --disable-zipstream was given.
4429 if test "${enable_zipstream+set}" = set; then
4430 enableval="$enable_zipstream"
4431
4432 if test "$enableval" = yes; then
4433 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4434 else
4435 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4436 fi
4437
4438 else
4439
4440 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4441 if test "x$LINE" != x ; then
4442 eval "DEFAULT_$LINE"
4443 else
4444 no_cache=1
4445 fi
4446
4447 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4448
4449 fi
4450
4451
4452 eval "$ac_cv_use_zipstream"
4453 if test "$no_cache" != 1; then
4454 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4455 fi
4456
4457 if test "$wxUSE_ZIPSTREAM" = yes; then
4458 echo "$ac_t""yes" 1>&6
4459 else
4460 echo "$ac_t""no" 1>&6
4461 fi
4462
4463
4464
4465 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4466 echo "configure:4467: checking for --enable-catch_segvs" >&5
4467 no_cache=0
4468 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4469 if test "${enable_catch_segvs+set}" = set; then
4470 enableval="$enable_catch_segvs"
4471
4472 if test "$enableval" = yes; then
4473 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4474 else
4475 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4476 fi
4477
4478 else
4479
4480 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4481 if test "x$LINE" != x ; then
4482 eval "DEFAULT_$LINE"
4483 else
4484 no_cache=1
4485 fi
4486
4487 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4488
4489 fi
4490
4491
4492 eval "$ac_cv_use_catch_segvs"
4493 if test "$no_cache" != 1; then
4494 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4495 fi
4496
4497 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4498 echo "$ac_t""yes" 1>&6
4499 else
4500 echo "$ac_t""no" 1>&6
4501 fi
4502
4503
4504 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4505 echo "configure:4506: checking for --enable-snglinst" >&5
4506 no_cache=0
4507 # Check whether --enable-snglinst or --disable-snglinst was given.
4508 if test "${enable_snglinst+set}" = set; then
4509 enableval="$enable_snglinst"
4510
4511 if test "$enableval" = yes; then
4512 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4513 else
4514 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4515 fi
4516
4517 else
4518
4519 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4520 if test "x$LINE" != x ; then
4521 eval "DEFAULT_$LINE"
4522 else
4523 no_cache=1
4524 fi
4525
4526 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4527
4528 fi
4529
4530
4531 eval "$ac_cv_use_snglinst"
4532 if test "$no_cache" != 1; then
4533 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4534 fi
4535
4536 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4537 echo "$ac_t""yes" 1>&6
4538 else
4539 echo "$ac_t""no" 1>&6
4540 fi
4541
4542
4543
4544 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4545 echo "configure:4546: checking for --enable-mimetype" >&5
4546 no_cache=0
4547 # Check whether --enable-mimetype or --disable-mimetype was given.
4548 if test "${enable_mimetype+set}" = set; then
4549 enableval="$enable_mimetype"
4550
4551 if test "$enableval" = yes; then
4552 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4553 else
4554 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4555 fi
4556
4557 else
4558
4559 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4560 if test "x$LINE" != x ; then
4561 eval "DEFAULT_$LINE"
4562 else
4563 no_cache=1
4564 fi
4565
4566 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4567
4568 fi
4569
4570
4571 eval "$ac_cv_use_mimetype"
4572 if test "$no_cache" != 1; then
4573 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4574 fi
4575
4576 if test "$wxUSE_MIMETYPE" = yes; then
4577 echo "$ac_t""yes" 1>&6
4578 else
4579 echo "$ac_t""no" 1>&6
4580 fi
4581
4582
4583 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4584 echo "configure:4585: checking for --enable-system_options" >&5
4585 no_cache=0
4586 # Check whether --enable-system_options or --disable-system_options was given.
4587 if test "${enable_system_options+set}" = set; then
4588 enableval="$enable_system_options"
4589
4590 if test "$enableval" = yes; then
4591 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4592 else
4593 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4594 fi
4595
4596 else
4597
4598 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4599 if test "x$LINE" != x ; then
4600 eval "DEFAULT_$LINE"
4601 else
4602 no_cache=1
4603 fi
4604
4605 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4606
4607 fi
4608
4609
4610 eval "$ac_cv_use_system_options"
4611 if test "$no_cache" != 1; then
4612 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4613 fi
4614
4615 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4616 echo "$ac_t""yes" 1>&6
4617 else
4618 echo "$ac_t""no" 1>&6
4619 fi
4620
4621
4622
4623 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
4624 echo "configure:4625: checking for --enable-url" >&5
4625 no_cache=0
4626 # Check whether --enable-url or --disable-url was given.
4627 if test "${enable_url+set}" = set; then
4628 enableval="$enable_url"
4629
4630 if test "$enableval" = yes; then
4631 ac_cv_use_url='wxUSE_URL=yes'
4632 else
4633 ac_cv_use_url='wxUSE_URL=no'
4634 fi
4635
4636 else
4637
4638 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4639 if test "x$LINE" != x ; then
4640 eval "DEFAULT_$LINE"
4641 else
4642 no_cache=1
4643 fi
4644
4645 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4646
4647 fi
4648
4649
4650 eval "$ac_cv_use_url"
4651 if test "$no_cache" != 1; then
4652 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4653 fi
4654
4655 if test "$wxUSE_URL" = yes; then
4656 echo "$ac_t""yes" 1>&6
4657 else
4658 echo "$ac_t""no" 1>&6
4659 fi
4660
4661
4662 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
4663 echo "configure:4664: checking for --enable-protocol" >&5
4664 no_cache=0
4665 # Check whether --enable-protocol or --disable-protocol was given.
4666 if test "${enable_protocol+set}" = set; then
4667 enableval="$enable_protocol"
4668
4669 if test "$enableval" = yes; then
4670 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4671 else
4672 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4673 fi
4674
4675 else
4676
4677 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4678 if test "x$LINE" != x ; then
4679 eval "DEFAULT_$LINE"
4680 else
4681 no_cache=1
4682 fi
4683
4684 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4685
4686 fi
4687
4688
4689 eval "$ac_cv_use_protocol"
4690 if test "$no_cache" != 1; then
4691 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4692 fi
4693
4694 if test "$wxUSE_PROTOCOL" = yes; then
4695 echo "$ac_t""yes" 1>&6
4696 else
4697 echo "$ac_t""no" 1>&6
4698 fi
4699
4700
4701 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
4702 echo "configure:4703: checking for --enable-protocol_http" >&5
4703 no_cache=0
4704 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4705 if test "${enable_protocol_http+set}" = set; then
4706 enableval="$enable_protocol_http"
4707
4708 if test "$enableval" = yes; then
4709 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4710 else
4711 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4712 fi
4713
4714 else
4715
4716 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4717 if test "x$LINE" != x ; then
4718 eval "DEFAULT_$LINE"
4719 else
4720 no_cache=1
4721 fi
4722
4723 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4724
4725 fi
4726
4727
4728 eval "$ac_cv_use_protocol_http"
4729 if test "$no_cache" != 1; then
4730 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4731 fi
4732
4733 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4734 echo "$ac_t""yes" 1>&6
4735 else
4736 echo "$ac_t""no" 1>&6
4737 fi
4738
4739
4740 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
4741 echo "configure:4742: checking for --enable-protocol_ftp" >&5
4742 no_cache=0
4743 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4744 if test "${enable_protocol_ftp+set}" = set; then
4745 enableval="$enable_protocol_ftp"
4746
4747 if test "$enableval" = yes; then
4748 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4749 else
4750 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4751 fi
4752
4753 else
4754
4755 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4756 if test "x$LINE" != x ; then
4757 eval "DEFAULT_$LINE"
4758 else
4759 no_cache=1
4760 fi
4761
4762 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4763
4764 fi
4765
4766
4767 eval "$ac_cv_use_protocol_ftp"
4768 if test "$no_cache" != 1; then
4769 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4770 fi
4771
4772 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4773 echo "$ac_t""yes" 1>&6
4774 else
4775 echo "$ac_t""no" 1>&6
4776 fi
4777
4778
4779 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
4780 echo "configure:4781: checking for --enable-protocol_file" >&5
4781 no_cache=0
4782 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4783 if test "${enable_protocol_file+set}" = set; then
4784 enableval="$enable_protocol_file"
4785
4786 if test "$enableval" = yes; then
4787 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4788 else
4789 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4790 fi
4791
4792 else
4793
4794 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4795 if test "x$LINE" != x ; then
4796 eval "DEFAULT_$LINE"
4797 else
4798 no_cache=1
4799 fi
4800
4801 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4802
4803 fi
4804
4805
4806 eval "$ac_cv_use_protocol_file"
4807 if test "$no_cache" != 1; then
4808 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4809 fi
4810
4811 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4812 echo "$ac_t""yes" 1>&6
4813 else
4814 echo "$ac_t""no" 1>&6
4815 fi
4816
4817
4818
4819
4820
4821 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4822 echo "configure:4823: checking for --enable-threads" >&5
4823 no_cache=0
4824 # Check whether --enable-threads or --disable-threads was given.
4825 if test "${enable_threads+set}" = set; then
4826 enableval="$enable_threads"
4827
4828 if test "$enableval" = yes; then
4829 ac_cv_use_threads='wxUSE_THREADS=yes'
4830 else
4831 ac_cv_use_threads='wxUSE_THREADS=no'
4832 fi
4833
4834 else
4835
4836 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4837 if test "x$LINE" != x ; then
4838 eval "DEFAULT_$LINE"
4839 else
4840 no_cache=1
4841 fi
4842
4843 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4844
4845 fi
4846
4847
4848 eval "$ac_cv_use_threads"
4849 if test "$no_cache" != 1; then
4850 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4851 fi
4852
4853 if test "$wxUSE_THREADS" = yes; then
4854 echo "$ac_t""yes" 1>&6
4855 else
4856 echo "$ac_t""no" 1>&6
4857 fi
4858
4859
4860 if test "$wxUSE_GUI" = "yes"; then
4861
4862
4863
4864 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4865 echo "configure:4866: checking for --enable-docview" >&5
4866 no_cache=0
4867 # Check whether --enable-docview or --disable-docview was given.
4868 if test "${enable_docview+set}" = set; then
4869 enableval="$enable_docview"
4870
4871 if test "$enableval" = yes; then
4872 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4873 else
4874 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4875 fi
4876
4877 else
4878
4879 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4880 if test "x$LINE" != x ; then
4881 eval "DEFAULT_$LINE"
4882 else
4883 no_cache=1
4884 fi
4885
4886 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4887
4888 fi
4889
4890
4891 eval "$ac_cv_use_docview"
4892 if test "$no_cache" != 1; then
4893 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4894 fi
4895
4896 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4897 echo "$ac_t""yes" 1>&6
4898 else
4899 echo "$ac_t""no" 1>&6
4900 fi
4901
4902
4903 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4904 echo "configure:4905: checking for --enable-help" >&5
4905 no_cache=0
4906 # Check whether --enable-help or --disable-help was given.
4907 if test "${enable_help+set}" = set; then
4908 enableval="$enable_help"
4909
4910 if test "$enableval" = yes; then
4911 ac_cv_use_help='wxUSE_HELP=yes'
4912 else
4913 ac_cv_use_help='wxUSE_HELP=no'
4914 fi
4915
4916 else
4917
4918 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4919 if test "x$LINE" != x ; then
4920 eval "DEFAULT_$LINE"
4921 else
4922 no_cache=1
4923 fi
4924
4925 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4926
4927 fi
4928
4929
4930 eval "$ac_cv_use_help"
4931 if test "$no_cache" != 1; then
4932 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4933 fi
4934
4935 if test "$wxUSE_HELP" = yes; then
4936 echo "$ac_t""yes" 1>&6
4937 else
4938 echo "$ac_t""no" 1>&6
4939 fi
4940
4941
4942 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4943 echo "configure:4944: checking for --enable-mshtmlhelp" >&5
4944 no_cache=0
4945 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4946 if test "${enable_mshtmlhelp+set}" = set; then
4947 enableval="$enable_mshtmlhelp"
4948
4949 if test "$enableval" = yes; then
4950 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4951 else
4952 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4953 fi
4954
4955 else
4956
4957 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4958 if test "x$LINE" != x ; then
4959 eval "DEFAULT_$LINE"
4960 else
4961 no_cache=1
4962 fi
4963
4964 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4965
4966 fi
4967
4968
4969 eval "$ac_cv_use_mshtmlhelp"
4970 if test "$no_cache" != 1; then
4971 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4972 fi
4973
4974 if test "$wxUSE_MS_HTML_HELP" = yes; then
4975 echo "$ac_t""yes" 1>&6
4976 else
4977 echo "$ac_t""no" 1>&6
4978 fi
4979
4980
4981 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4982 echo "configure:4983: checking for --enable-html" >&5
4983 no_cache=0
4984 # Check whether --enable-html or --disable-html was given.
4985 if test "${enable_html+set}" = set; then
4986 enableval="$enable_html"
4987
4988 if test "$enableval" = yes; then
4989 ac_cv_use_html='wxUSE_HTML=yes'
4990 else
4991 ac_cv_use_html='wxUSE_HTML=no'
4992 fi
4993
4994 else
4995
4996 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4997 if test "x$LINE" != x ; then
4998 eval "DEFAULT_$LINE"
4999 else
5000 no_cache=1
5001 fi
5002
5003 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5004
5005 fi
5006
5007
5008 eval "$ac_cv_use_html"
5009 if test "$no_cache" != 1; then
5010 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5011 fi
5012
5013 if test "$wxUSE_HTML" = yes; then
5014 echo "$ac_t""yes" 1>&6
5015 else
5016 echo "$ac_t""no" 1>&6
5017 fi
5018
5019
5020 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
5021 echo "configure:5022: checking for --enable-htmlhelp" >&5
5022 no_cache=0
5023 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5024 if test "${enable_htmlhelp+set}" = set; then
5025 enableval="$enable_htmlhelp"
5026
5027 if test "$enableval" = yes; then
5028 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5029 else
5030 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5031 fi
5032
5033 else
5034
5035 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5036 if test "x$LINE" != x ; then
5037 eval "DEFAULT_$LINE"
5038 else
5039 no_cache=1
5040 fi
5041
5042 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5043
5044 fi
5045
5046
5047 eval "$ac_cv_use_htmlhelp"
5048 if test "$no_cache" != 1; then
5049 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5050 fi
5051
5052 if test "$wxUSE_WXHTML_HELP" = yes; then
5053 echo "$ac_t""yes" 1>&6
5054 else
5055 echo "$ac_t""no" 1>&6
5056 fi
5057
5058
5059 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
5060 echo "configure:5061: checking for --enable-constraints" >&5
5061 no_cache=0
5062 # Check whether --enable-constraints or --disable-constraints was given.
5063 if test "${enable_constraints+set}" = set; then
5064 enableval="$enable_constraints"
5065
5066 if test "$enableval" = yes; then
5067 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5068 else
5069 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5070 fi
5071
5072 else
5073
5074 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5075 if test "x$LINE" != x ; then
5076 eval "DEFAULT_$LINE"
5077 else
5078 no_cache=1
5079 fi
5080
5081 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5082
5083 fi
5084
5085
5086 eval "$ac_cv_use_constraints"
5087 if test "$no_cache" != 1; then
5088 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5089 fi
5090
5091 if test "$wxUSE_CONSTRAINTS" = yes; then
5092 echo "$ac_t""yes" 1>&6
5093 else
5094 echo "$ac_t""no" 1>&6
5095 fi
5096
5097
5098 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
5099 echo "configure:5100: checking for --enable-printarch" >&5
5100 no_cache=0
5101 # Check whether --enable-printarch or --disable-printarch was given.
5102 if test "${enable_printarch+set}" = set; then
5103 enableval="$enable_printarch"
5104
5105 if test "$enableval" = yes; then
5106 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5107 else
5108 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5109 fi
5110
5111 else
5112
5113 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5114 if test "x$LINE" != x ; then
5115 eval "DEFAULT_$LINE"
5116 else
5117 no_cache=1
5118 fi
5119
5120 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5121
5122 fi
5123
5124
5125 eval "$ac_cv_use_printarch"
5126 if test "$no_cache" != 1; then
5127 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5128 fi
5129
5130 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5131 echo "$ac_t""yes" 1>&6
5132 else
5133 echo "$ac_t""no" 1>&6
5134 fi
5135
5136
5137 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
5138 echo "configure:5139: checking for --enable-mdi" >&5
5139 no_cache=0
5140 # Check whether --enable-mdi or --disable-mdi was given.
5141 if test "${enable_mdi+set}" = set; then
5142 enableval="$enable_mdi"
5143
5144 if test "$enableval" = yes; then
5145 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5146 else
5147 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5148 fi
5149
5150 else
5151
5152 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5153 if test "x$LINE" != x ; then
5154 eval "DEFAULT_$LINE"
5155 else
5156 no_cache=1
5157 fi
5158
5159 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5160
5161 fi
5162
5163
5164 eval "$ac_cv_use_mdi"
5165 if test "$no_cache" != 1; then
5166 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5167 fi
5168
5169 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5170 echo "$ac_t""yes" 1>&6
5171 else
5172 echo "$ac_t""no" 1>&6
5173 fi
5174
5175
5176 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
5177 echo "configure:5178: checking for --enable-loggui" >&5
5178 no_cache=0
5179 # Check whether --enable-loggui or --disable-loggui was given.
5180 if test "${enable_loggui+set}" = set; then
5181 enableval="$enable_loggui"
5182
5183 if test "$enableval" = yes; then
5184 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5185 else
5186 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5187 fi
5188
5189 else
5190
5191 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5192 if test "x$LINE" != x ; then
5193 eval "DEFAULT_$LINE"
5194 else
5195 no_cache=1
5196 fi
5197
5198 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5199
5200 fi
5201
5202
5203 eval "$ac_cv_use_loggui"
5204 if test "$no_cache" != 1; then
5205 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5206 fi
5207
5208 if test "$wxUSE_LOGGUI" = yes; then
5209 echo "$ac_t""yes" 1>&6
5210 else
5211 echo "$ac_t""no" 1>&6
5212 fi
5213
5214
5215 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
5216 echo "configure:5217: checking for --enable-logwin" >&5
5217 no_cache=0
5218 # Check whether --enable-logwin or --disable-logwin was given.
5219 if test "${enable_logwin+set}" = set; then
5220 enableval="$enable_logwin"
5221
5222 if test "$enableval" = yes; then
5223 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5224 else
5225 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5226 fi
5227
5228 else
5229
5230 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5231 if test "x$LINE" != x ; then
5232 eval "DEFAULT_$LINE"
5233 else
5234 no_cache=1
5235 fi
5236
5237 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5238
5239 fi
5240
5241
5242 eval "$ac_cv_use_logwin"
5243 if test "$no_cache" != 1; then
5244 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5245 fi
5246
5247 if test "$wxUSE_LOGWINDOW" = yes; then
5248 echo "$ac_t""yes" 1>&6
5249 else
5250 echo "$ac_t""no" 1>&6
5251 fi
5252
5253
5254 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
5255 echo "configure:5256: checking for --enable-logdialog" >&5
5256 no_cache=0
5257 # Check whether --enable-logdialog or --disable-logdialog was given.
5258 if test "${enable_logdialog+set}" = set; then
5259 enableval="$enable_logdialog"
5260
5261 if test "$enableval" = yes; then
5262 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5263 else
5264 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5265 fi
5266
5267 else
5268
5269 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5270 if test "x$LINE" != x ; then
5271 eval "DEFAULT_$LINE"
5272 else
5273 no_cache=1
5274 fi
5275
5276 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5277
5278 fi
5279
5280
5281 eval "$ac_cv_use_logdialog"
5282 if test "$no_cache" != 1; then
5283 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5284 fi
5285
5286 if test "$wxUSE_LOGDIALOG" = yes; then
5287 echo "$ac_t""yes" 1>&6
5288 else
5289 echo "$ac_t""no" 1>&6
5290 fi
5291
5292
5293
5294 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
5295 echo "configure:5296: checking for --enable-postscript" >&5
5296 no_cache=0
5297 # Check whether --enable-postscript or --disable-postscript was given.
5298 if test "${enable_postscript+set}" = set; then
5299 enableval="$enable_postscript"
5300
5301 if test "$enableval" = yes; then
5302 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5303 else
5304 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5305 fi
5306
5307 else
5308
5309 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5310 if test "x$LINE" != x ; then
5311 eval "DEFAULT_$LINE"
5312 else
5313 no_cache=1
5314 fi
5315
5316 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5317
5318 fi
5319
5320
5321 eval "$ac_cv_use_postscript"
5322 if test "$no_cache" != 1; then
5323 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5324 fi
5325
5326 if test "$wxUSE_POSTSCRIPT" = yes; then
5327 echo "$ac_t""yes" 1>&6
5328 else
5329 echo "$ac_t""no" 1>&6
5330 fi
5331
5332
5333
5334
5335
5336 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
5337 echo "configure:5338: checking for --enable-prologio" >&5
5338 no_cache=0
5339 # Check whether --enable-prologio or --disable-prologio was given.
5340 if test "${enable_prologio+set}" = set; then
5341 enableval="$enable_prologio"
5342
5343 if test "$enableval" = yes; then
5344 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5345 else
5346 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5347 fi
5348
5349 else
5350
5351 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5352 if test "x$LINE" != x ; then
5353 eval "DEFAULT_$LINE"
5354 else
5355 no_cache=1
5356 fi
5357
5358 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5359
5360 fi
5361
5362
5363 eval "$ac_cv_use_prologio"
5364 if test "$no_cache" != 1; then
5365 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5366 fi
5367
5368 if test "$wxUSE_PROLOGIO" = yes; then
5369 echo "$ac_t""yes" 1>&6
5370 else
5371 echo "$ac_t""no" 1>&6
5372 fi
5373
5374
5375 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
5376 echo "configure:5377: checking for --enable-resources" >&5
5377 no_cache=0
5378 # Check whether --enable-resources or --disable-resources was given.
5379 if test "${enable_resources+set}" = set; then
5380 enableval="$enable_resources"
5381
5382 if test "$enableval" = yes; then
5383 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5384 else
5385 ac_cv_use_resources='wxUSE_RESOURCES=no'
5386 fi
5387
5388 else
5389
5390 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5391 if test "x$LINE" != x ; then
5392 eval "DEFAULT_$LINE"
5393 else
5394 no_cache=1
5395 fi
5396
5397 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5398
5399 fi
5400
5401
5402 eval "$ac_cv_use_resources"
5403 if test "$no_cache" != 1; then
5404 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5405 fi
5406
5407 if test "$wxUSE_RESOURCES" = yes; then
5408 echo "$ac_t""yes" 1>&6
5409 else
5410 echo "$ac_t""no" 1>&6
5411 fi
5412
5413
5414
5415 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
5416 echo "configure:5417: checking for --enable-xresources" >&5
5417 no_cache=0
5418 # Check whether --enable-xresources or --disable-xresources was given.
5419 if test "${enable_xresources+set}" = set; then
5420 enableval="$enable_xresources"
5421
5422 if test "$enableval" = yes; then
5423 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5424 else
5425 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5426 fi
5427
5428 else
5429
5430 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5431 if test "x$LINE" != x ; then
5432 eval "DEFAULT_$LINE"
5433 else
5434 no_cache=1
5435 fi
5436
5437 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5438
5439 fi
5440
5441
5442 eval "$ac_cv_use_xresources"
5443 if test "$no_cache" != 1; then
5444 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5445 fi
5446
5447 if test "$wxUSE_X_RESOURCES" = yes; then
5448 echo "$ac_t""yes" 1>&6
5449 else
5450 echo "$ac_t""no" 1>&6
5451 fi
5452
5453
5454
5455
5456 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
5457 echo "configure:5458: checking for --enable-clipboard" >&5
5458 no_cache=0
5459 # Check whether --enable-clipboard or --disable-clipboard was given.
5460 if test "${enable_clipboard+set}" = set; then
5461 enableval="$enable_clipboard"
5462
5463 if test "$enableval" = yes; then
5464 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5465 else
5466 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5467 fi
5468
5469 else
5470
5471 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5472 if test "x$LINE" != x ; then
5473 eval "DEFAULT_$LINE"
5474 else
5475 no_cache=1
5476 fi
5477
5478 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5479
5480 fi
5481
5482
5483 eval "$ac_cv_use_clipboard"
5484 if test "$no_cache" != 1; then
5485 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5486 fi
5487
5488 if test "$wxUSE_CLIPBOARD" = yes; then
5489 echo "$ac_t""yes" 1>&6
5490 else
5491 echo "$ac_t""no" 1>&6
5492 fi
5493
5494
5495 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
5496 echo "configure:5497: checking for --enable-dnd" >&5
5497 no_cache=0
5498 # Check whether --enable-dnd or --disable-dnd was given.
5499 if test "${enable_dnd+set}" = set; then
5500 enableval="$enable_dnd"
5501
5502 if test "$enableval" = yes; then
5503 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5504 else
5505 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5506 fi
5507
5508 else
5509
5510 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5511 if test "x$LINE" != x ; then
5512 eval "DEFAULT_$LINE"
5513 else
5514 no_cache=1
5515 fi
5516
5517 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5518
5519 fi
5520
5521
5522 eval "$ac_cv_use_dnd"
5523 if test "$no_cache" != 1; then
5524 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5525 fi
5526
5527 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5528 echo "$ac_t""yes" 1>&6
5529 else
5530 echo "$ac_t""no" 1>&6
5531 fi
5532
5533
5534 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
5535 echo "configure:5536: checking for --enable-metafile" >&5
5536 no_cache=0
5537 # Check whether --enable-metafile or --disable-metafile was given.
5538 if test "${enable_metafile+set}" = set; then
5539 enableval="$enable_metafile"
5540
5541 if test "$enableval" = yes; then
5542 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5543 else
5544 ac_cv_use_metafile='wxUSE_METAFILE=no'
5545 fi
5546
5547 else
5548
5549 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5550 if test "x$LINE" != x ; then
5551 eval "DEFAULT_$LINE"
5552 else
5553 no_cache=1
5554 fi
5555
5556 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5557
5558 fi
5559
5560
5561 eval "$ac_cv_use_metafile"
5562 if test "$no_cache" != 1; then
5563 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5564 fi
5565
5566 if test "$wxUSE_METAFILE" = yes; then
5567 echo "$ac_t""yes" 1>&6
5568 else
5569 echo "$ac_t""no" 1>&6
5570 fi
5571
5572
5573
5574 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5575 echo "configure:5576: checking for --enable-treelayout" >&5
5576 no_cache=0
5577 # Check whether --enable-treelayout or --disable-treelayout was given.
5578 if test "${enable_treelayout+set}" = set; then
5579 enableval="$enable_treelayout"
5580
5581 if test "$enableval" = yes; then
5582 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5583 else
5584 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5585 fi
5586
5587 else
5588
5589 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5590 if test "x$LINE" != x ; then
5591 eval "DEFAULT_$LINE"
5592 else
5593 no_cache=1
5594 fi
5595
5596 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5597
5598 fi
5599
5600
5601 eval "$ac_cv_use_treelayout"
5602 if test "$no_cache" != 1; then
5603 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5604 fi
5605
5606 if test "$wxUSE_TREELAYOUT" = yes; then
5607 echo "$ac_t""yes" 1>&6
5608 else
5609 echo "$ac_t""no" 1>&6
5610 fi
5611
5612
5613
5614
5615 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5616 echo "configure:5617: checking for --enable-controls" >&5
5617 no_cache=0
5618 # Check whether --enable-controls or --disable-controls was given.
5619 if test "${enable_controls+set}" = set; then
5620 enableval="$enable_controls"
5621
5622 if test "$enableval" = yes; then
5623 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5624 else
5625 ac_cv_use_controls='wxUSE_CONTROLS=no'
5626 fi
5627
5628 else
5629
5630 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5631 if test "x$LINE" != x ; then
5632 eval "DEFAULT_$LINE"
5633 else
5634 no_cache=1
5635 fi
5636
5637 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5638
5639 fi
5640
5641
5642 eval "$ac_cv_use_controls"
5643 if test "$no_cache" != 1; then
5644 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5645 fi
5646
5647 if test "$wxUSE_CONTROLS" = yes; then
5648 echo "$ac_t""yes" 1>&6
5649 else
5650 echo "$ac_t""no" 1>&6
5651 fi
5652
5653
5654 if test "$wxUSE_CONTROLS" = "yes"; then
5655 DEFAULT_wxUSE_ACCEL=yes
5656 DEFAULT_wxUSE_BMPBUTTON=yes
5657 DEFAULT_wxUSE_BUTTON=yes
5658 DEFAULT_wxUSE_CALCTRL=no
5659 DEFAULT_wxUSE_CARET=yes
5660 DEFAULT_wxUSE_COMBOBOX=yes
5661 DEFAULT_wxUSE_CHECKBOX=yes
5662 DEFAULT_wxUSE_CHECKLISTBOX=yes
5663 DEFAULT_wxUSE_CHOICE=yes
5664 DEFAULT_wxUSE_GAUGE=yes
5665 DEFAULT_wxUSE_GRID=yes
5666 DEFAULT_wxUSE_NEW_GRID=yes
5667 DEFAULT_wxUSE_IMAGLIST=yes
5668 DEFAULT_wxUSE_LISTBOX=yes
5669 DEFAULT_wxUSE_LISTCTRL=yes
5670 DEFAULT_wxUSE_NOTEBOOK=yes
5671 DEFAULT_wxUSE_PROPSHEET=yes
5672 DEFAULT_wxUSE_RADIOBOX=yes
5673 DEFAULT_wxUSE_RADIOBTN=yes
5674 DEFAULT_wxUSE_SASH=yes
5675 DEFAULT_wxUSE_SCROLLBAR=yes
5676 DEFAULT_wxUSE_SLIDER=yes
5677 DEFAULT_wxUSE_SPINBTN=yes
5678 DEFAULT_wxUSE_SPINCTRL=yes
5679 DEFAULT_wxUSE_SPLITTER=yes
5680 DEFAULT_wxUSE_STATBMP=yes
5681 DEFAULT_wxUSE_STATBOX=yes
5682 DEFAULT_wxUSE_STATLINE=yes
5683 DEFAULT_wxUSE_STATUSBAR=yes
5684 DEFAULT_wxUSE_TAB_DIALOG=yes
5685 DEFAULT_wxUSE_TOGGLEBTN=yes
5686 DEFAULT_wxUSE_TOOLBAR=yes
5687 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5688 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5689 DEFAULT_wxUSE_TOOLTIPS=yes
5690 DEFAULT_wxUSE_TREECTRL=yes
5691 DEFAULT_wxUSE_POPUPWIN=yes
5692 DEFAULT_wxUSE_TIPWINDOW=yes
5693 elif test "$wxUSE_CONTROLS" = "no"; then
5694 DEFAULT_wxUSE_ACCEL=no
5695 DEFAULT_wxUSE_BMPBUTTON=no
5696 DEFAULT_wxUSE_BUTTON=no
5697 DEFAULT_wxUSE_CALCTRL=no
5698 DEFAULT_wxUSE_CARET=no
5699 DEFAULT_wxUSE_COMBOBOX=no
5700 DEFAULT_wxUSE_CHECKBOX=no
5701 DEFAULT_wxUSE_CHECKLISTBOX=no
5702 DEFAULT_wxUSE_CHOICE=no
5703 DEFAULT_wxUSE_GAUGE=no
5704 DEFAULT_wxUSE_GRID=no
5705 DEFAULT_wxUSE_NEW_GRID=no
5706 DEFAULT_wxUSE_IMAGLIST=no
5707 DEFAULT_wxUSE_LISTBOX=no
5708 DEFAULT_wxUSE_LISTCTRL=no
5709 DEFAULT_wxUSE_NOTEBOOK=no
5710 DEFAULT_wxUSE_PROPSHEET=no
5711 DEFAULT_wxUSE_RADIOBOX=no
5712 DEFAULT_wxUSE_RADIOBTN=no
5713 DEFAULT_wxUSE_SASH=no
5714 DEFAULT_wxUSE_SCROLLBAR=no
5715 DEFAULT_wxUSE_SLIDER=no
5716 DEFAULT_wxUSE_SPINBTN=no
5717 DEFAULT_wxUSE_SPINCTRL=no
5718 DEFAULT_wxUSE_SPLITTER=no
5719 DEFAULT_wxUSE_STATBMP=no
5720 DEFAULT_wxUSE_STATBOX=no
5721 DEFAULT_wxUSE_STATLINE=no
5722 DEFAULT_wxUSE_STATUSBAR=no
5723 DEFAULT_wxUSE_TAB_DIALOG=no
5724 DEFAULT_wxUSE_TOGGLEBTN=no
5725 DEFAULT_wxUSE_TOOLBAR=no
5726 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5727 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5728 DEFAULT_wxUSE_TOOLTIPS=no
5729 DEFAULT_wxUSE_TREECTRL=no
5730 DEFAULT_wxUSE_POPUPWIN=no
5731 DEFAULT_wxUSE_TIPWINDOW=no
5732 fi
5733
5734
5735 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5736 echo "configure:5737: checking for --enable-accel" >&5
5737 no_cache=0
5738 # Check whether --enable-accel or --disable-accel was given.
5739 if test "${enable_accel+set}" = set; then
5740 enableval="$enable_accel"
5741
5742 if test "$enableval" = yes; then
5743 ac_cv_use_accel='wxUSE_ACCEL=yes'
5744 else
5745 ac_cv_use_accel='wxUSE_ACCEL=no'
5746 fi
5747
5748 else
5749
5750 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5751 if test "x$LINE" != x ; then
5752 eval "DEFAULT_$LINE"
5753 else
5754 no_cache=1
5755 fi
5756
5757 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5758
5759 fi
5760
5761
5762 eval "$ac_cv_use_accel"
5763 if test "$no_cache" != 1; then
5764 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5765 fi
5766
5767 if test "$wxUSE_ACCEL" = yes; then
5768 echo "$ac_t""yes" 1>&6
5769 else
5770 echo "$ac_t""no" 1>&6
5771 fi
5772
5773
5774 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5775 echo "configure:5776: checking for --enable-button" >&5
5776 no_cache=0
5777 # Check whether --enable-button or --disable-button was given.
5778 if test "${enable_button+set}" = set; then
5779 enableval="$enable_button"
5780
5781 if test "$enableval" = yes; then
5782 ac_cv_use_button='wxUSE_BUTTON=yes'
5783 else
5784 ac_cv_use_button='wxUSE_BUTTON=no'
5785 fi
5786
5787 else
5788
5789 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5790 if test "x$LINE" != x ; then
5791 eval "DEFAULT_$LINE"
5792 else
5793 no_cache=1
5794 fi
5795
5796 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5797
5798 fi
5799
5800
5801 eval "$ac_cv_use_button"
5802 if test "$no_cache" != 1; then
5803 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5804 fi
5805
5806 if test "$wxUSE_BUTTON" = yes; then
5807 echo "$ac_t""yes" 1>&6
5808 else
5809 echo "$ac_t""no" 1>&6
5810 fi
5811
5812
5813 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5814 echo "configure:5815: checking for --enable-bmpbutton" >&5
5815 no_cache=0
5816 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5817 if test "${enable_bmpbutton+set}" = set; then
5818 enableval="$enable_bmpbutton"
5819
5820 if test "$enableval" = yes; then
5821 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5822 else
5823 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5824 fi
5825
5826 else
5827
5828 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5829 if test "x$LINE" != x ; then
5830 eval "DEFAULT_$LINE"
5831 else
5832 no_cache=1
5833 fi
5834
5835 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5836
5837 fi
5838
5839
5840 eval "$ac_cv_use_bmpbutton"
5841 if test "$no_cache" != 1; then
5842 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5843 fi
5844
5845 if test "$wxUSE_BMPBUTTON" = yes; then
5846 echo "$ac_t""yes" 1>&6
5847 else
5848 echo "$ac_t""no" 1>&6
5849 fi
5850
5851
5852 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5853 echo "configure:5854: checking for --enable-calendar" >&5
5854 no_cache=0
5855 # Check whether --enable-calendar or --disable-calendar was given.
5856 if test "${enable_calendar+set}" = set; then
5857 enableval="$enable_calendar"
5858
5859 if test "$enableval" = yes; then
5860 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5861 else
5862 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5863 fi
5864
5865 else
5866
5867 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5868 if test "x$LINE" != x ; then
5869 eval "DEFAULT_$LINE"
5870 else
5871 no_cache=1
5872 fi
5873
5874 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5875
5876 fi
5877
5878
5879 eval "$ac_cv_use_calendar"
5880 if test "$no_cache" != 1; then
5881 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5882 fi
5883
5884 if test "$wxUSE_CALCTRL" = yes; then
5885 echo "$ac_t""yes" 1>&6
5886 else
5887 echo "$ac_t""no" 1>&6
5888 fi
5889
5890
5891 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5892 echo "configure:5893: checking for --enable-caret" >&5
5893 no_cache=0
5894 # Check whether --enable-caret or --disable-caret was given.
5895 if test "${enable_caret+set}" = set; then
5896 enableval="$enable_caret"
5897
5898 if test "$enableval" = yes; then
5899 ac_cv_use_caret='wxUSE_CARET=yes'
5900 else
5901 ac_cv_use_caret='wxUSE_CARET=no'
5902 fi
5903
5904 else
5905
5906 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5907 if test "x$LINE" != x ; then
5908 eval "DEFAULT_$LINE"
5909 else
5910 no_cache=1
5911 fi
5912
5913 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5914
5915 fi
5916
5917
5918 eval "$ac_cv_use_caret"
5919 if test "$no_cache" != 1; then
5920 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5921 fi
5922
5923 if test "$wxUSE_CARET" = yes; then
5924 echo "$ac_t""yes" 1>&6
5925 else
5926 echo "$ac_t""no" 1>&6
5927 fi
5928
5929
5930 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5931 echo "configure:5932: checking for --enable-checkbox" >&5
5932 no_cache=0
5933 # Check whether --enable-checkbox or --disable-checkbox was given.
5934 if test "${enable_checkbox+set}" = set; then
5935 enableval="$enable_checkbox"
5936
5937 if test "$enableval" = yes; then
5938 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5939 else
5940 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5941 fi
5942
5943 else
5944
5945 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5946 if test "x$LINE" != x ; then
5947 eval "DEFAULT_$LINE"
5948 else
5949 no_cache=1
5950 fi
5951
5952 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5953
5954 fi
5955
5956
5957 eval "$ac_cv_use_checkbox"
5958 if test "$no_cache" != 1; then
5959 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5960 fi
5961
5962 if test "$wxUSE_CHECKBOX" = yes; then
5963 echo "$ac_t""yes" 1>&6
5964 else
5965 echo "$ac_t""no" 1>&6
5966 fi
5967
5968
5969 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5970 echo "configure:5971: checking for --enable-checklst" >&5
5971 no_cache=0
5972 # Check whether --enable-checklst or --disable-checklst was given.
5973 if test "${enable_checklst+set}" = set; then
5974 enableval="$enable_checklst"
5975
5976 if test "$enableval" = yes; then
5977 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5978 else
5979 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5980 fi
5981
5982 else
5983
5984 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5985 if test "x$LINE" != x ; then
5986 eval "DEFAULT_$LINE"
5987 else
5988 no_cache=1
5989 fi
5990
5991 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5992
5993 fi
5994
5995
5996 eval "$ac_cv_use_checklst"
5997 if test "$no_cache" != 1; then
5998 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5999 fi
6000
6001 if test "$wxUSE_CHECKLST" = yes; then
6002 echo "$ac_t""yes" 1>&6
6003 else
6004 echo "$ac_t""no" 1>&6
6005 fi
6006
6007
6008 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
6009 echo "configure:6010: checking for --enable-choice" >&5
6010 no_cache=0
6011 # Check whether --enable-choice or --disable-choice was given.
6012 if test "${enable_choice+set}" = set; then
6013 enableval="$enable_choice"
6014
6015 if test "$enableval" = yes; then
6016 ac_cv_use_choice='wxUSE_CHOICE=yes'
6017 else
6018 ac_cv_use_choice='wxUSE_CHOICE=no'
6019 fi
6020
6021 else
6022
6023 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6024 if test "x$LINE" != x ; then
6025 eval "DEFAULT_$LINE"
6026 else
6027 no_cache=1
6028 fi
6029
6030 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6031
6032 fi
6033
6034
6035 eval "$ac_cv_use_choice"
6036 if test "$no_cache" != 1; then
6037 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6038 fi
6039
6040 if test "$wxUSE_CHOICE" = yes; then
6041 echo "$ac_t""yes" 1>&6
6042 else
6043 echo "$ac_t""no" 1>&6
6044 fi
6045
6046
6047 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
6048 echo "configure:6049: checking for --enable-combobox" >&5
6049 no_cache=0
6050 # Check whether --enable-combobox or --disable-combobox was given.
6051 if test "${enable_combobox+set}" = set; then
6052 enableval="$enable_combobox"
6053
6054 if test "$enableval" = yes; then
6055 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6056 else
6057 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6058 fi
6059
6060 else
6061
6062 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6063 if test "x$LINE" != x ; then
6064 eval "DEFAULT_$LINE"
6065 else
6066 no_cache=1
6067 fi
6068
6069 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6070
6071 fi
6072
6073
6074 eval "$ac_cv_use_combobox"
6075 if test "$no_cache" != 1; then
6076 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6077 fi
6078
6079 if test "$wxUSE_COMBOBOX" = yes; then
6080 echo "$ac_t""yes" 1>&6
6081 else
6082 echo "$ac_t""no" 1>&6
6083 fi
6084
6085
6086 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
6087 echo "configure:6088: checking for --enable-gauge" >&5
6088 no_cache=0
6089 # Check whether --enable-gauge or --disable-gauge was given.
6090 if test "${enable_gauge+set}" = set; then
6091 enableval="$enable_gauge"
6092
6093 if test "$enableval" = yes; then
6094 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6095 else
6096 ac_cv_use_gauge='wxUSE_GAUGE=no'
6097 fi
6098
6099 else
6100
6101 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6102 if test "x$LINE" != x ; then
6103 eval "DEFAULT_$LINE"
6104 else
6105 no_cache=1
6106 fi
6107
6108 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6109
6110 fi
6111
6112
6113 eval "$ac_cv_use_gauge"
6114 if test "$no_cache" != 1; then
6115 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6116 fi
6117
6118 if test "$wxUSE_GAUGE" = yes; then
6119 echo "$ac_t""yes" 1>&6
6120 else
6121 echo "$ac_t""no" 1>&6
6122 fi
6123
6124
6125 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
6126 echo "configure:6127: checking for --enable-grid" >&5
6127 no_cache=0
6128 # Check whether --enable-grid or --disable-grid was given.
6129 if test "${enable_grid+set}" = set; then
6130 enableval="$enable_grid"
6131
6132 if test "$enableval" = yes; then
6133 ac_cv_use_grid='wxUSE_GRID=yes'
6134 else
6135 ac_cv_use_grid='wxUSE_GRID=no'
6136 fi
6137
6138 else
6139
6140 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6141 if test "x$LINE" != x ; then
6142 eval "DEFAULT_$LINE"
6143 else
6144 no_cache=1
6145 fi
6146
6147 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6148
6149 fi
6150
6151
6152 eval "$ac_cv_use_grid"
6153 if test "$no_cache" != 1; then
6154 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6155 fi
6156
6157 if test "$wxUSE_GRID" = yes; then
6158 echo "$ac_t""yes" 1>&6
6159 else
6160 echo "$ac_t""no" 1>&6
6161 fi
6162
6163
6164 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
6165 echo "configure:6166: checking for --enable-newgrid" >&5
6166 no_cache=0
6167 # Check whether --enable-newgrid or --disable-newgrid was given.
6168 if test "${enable_newgrid+set}" = set; then
6169 enableval="$enable_newgrid"
6170
6171 if test "$enableval" = yes; then
6172 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6173 else
6174 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6175 fi
6176
6177 else
6178
6179 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6180 if test "x$LINE" != x ; then
6181 eval "DEFAULT_$LINE"
6182 else
6183 no_cache=1
6184 fi
6185
6186 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6187
6188 fi
6189
6190
6191 eval "$ac_cv_use_newgrid"
6192 if test "$no_cache" != 1; then
6193 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6194 fi
6195
6196 if test "$wxUSE_NEW_GRID" = yes; then
6197 echo "$ac_t""yes" 1>&6
6198 else
6199 echo "$ac_t""no" 1>&6
6200 fi
6201
6202
6203 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
6204 echo "configure:6205: checking for --enable-imaglist" >&5
6205 no_cache=0
6206 # Check whether --enable-imaglist or --disable-imaglist was given.
6207 if test "${enable_imaglist+set}" = set; then
6208 enableval="$enable_imaglist"
6209
6210 if test "$enableval" = yes; then
6211 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6212 else
6213 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6214 fi
6215
6216 else
6217
6218 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6219 if test "x$LINE" != x ; then
6220 eval "DEFAULT_$LINE"
6221 else
6222 no_cache=1
6223 fi
6224
6225 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6226
6227 fi
6228
6229
6230 eval "$ac_cv_use_imaglist"
6231 if test "$no_cache" != 1; then
6232 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6233 fi
6234
6235 if test "$wxUSE_IMAGLIST" = yes; then
6236 echo "$ac_t""yes" 1>&6
6237 else
6238 echo "$ac_t""no" 1>&6
6239 fi
6240
6241
6242 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
6243 echo "configure:6244: checking for --enable-listbox" >&5
6244 no_cache=0
6245 # Check whether --enable-listbox or --disable-listbox was given.
6246 if test "${enable_listbox+set}" = set; then
6247 enableval="$enable_listbox"
6248
6249 if test "$enableval" = yes; then
6250 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6251 else
6252 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6253 fi
6254
6255 else
6256
6257 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6258 if test "x$LINE" != x ; then
6259 eval "DEFAULT_$LINE"
6260 else
6261 no_cache=1
6262 fi
6263
6264 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6265
6266 fi
6267
6268
6269 eval "$ac_cv_use_listbox"
6270 if test "$no_cache" != 1; then
6271 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6272 fi
6273
6274 if test "$wxUSE_LISTBOX" = yes; then
6275 echo "$ac_t""yes" 1>&6
6276 else
6277 echo "$ac_t""no" 1>&6
6278 fi
6279
6280
6281 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
6282 echo "configure:6283: checking for --enable-listctrl" >&5
6283 no_cache=0
6284 # Check whether --enable-listctrl or --disable-listctrl was given.
6285 if test "${enable_listctrl+set}" = set; then
6286 enableval="$enable_listctrl"
6287
6288 if test "$enableval" = yes; then
6289 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6290 else
6291 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6292 fi
6293
6294 else
6295
6296 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6297 if test "x$LINE" != x ; then
6298 eval "DEFAULT_$LINE"
6299 else
6300 no_cache=1
6301 fi
6302
6303 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6304
6305 fi
6306
6307
6308 eval "$ac_cv_use_listctrl"
6309 if test "$no_cache" != 1; then
6310 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6311 fi
6312
6313 if test "$wxUSE_LISTCTRL" = yes; then
6314 echo "$ac_t""yes" 1>&6
6315 else
6316 echo "$ac_t""no" 1>&6
6317 fi
6318
6319
6320 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
6321 echo "configure:6322: checking for --enable-notebook" >&5
6322 no_cache=0
6323 # Check whether --enable-notebook or --disable-notebook was given.
6324 if test "${enable_notebook+set}" = set; then
6325 enableval="$enable_notebook"
6326
6327 if test "$enableval" = yes; then
6328 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6329 else
6330 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6331 fi
6332
6333 else
6334
6335 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6336 if test "x$LINE" != x ; then
6337 eval "DEFAULT_$LINE"
6338 else
6339 no_cache=1
6340 fi
6341
6342 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6343
6344 fi
6345
6346
6347 eval "$ac_cv_use_notebook"
6348 if test "$no_cache" != 1; then
6349 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6350 fi
6351
6352 if test "$wxUSE_NOTEBOOK" = yes; then
6353 echo "$ac_t""yes" 1>&6
6354 else
6355 echo "$ac_t""no" 1>&6
6356 fi
6357
6358
6359 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
6360 echo "configure:6361: checking for --enable-propsheet" >&5
6361 no_cache=0
6362 # Check whether --enable-propsheet or --disable-propsheet was given.
6363 if test "${enable_propsheet+set}" = set; then
6364 enableval="$enable_propsheet"
6365
6366 if test "$enableval" = yes; then
6367 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6368 else
6369 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6370 fi
6371
6372 else
6373
6374 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6375 if test "x$LINE" != x ; then
6376 eval "DEFAULT_$LINE"
6377 else
6378 no_cache=1
6379 fi
6380
6381 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6382
6383 fi
6384
6385
6386 eval "$ac_cv_use_propsheet"
6387 if test "$no_cache" != 1; then
6388 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6389 fi
6390
6391 if test "$wxUSE_PROPSHEET" = yes; then
6392 echo "$ac_t""yes" 1>&6
6393 else
6394 echo "$ac_t""no" 1>&6
6395 fi
6396
6397
6398 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
6399 echo "configure:6400: checking for --enable-radiobox" >&5
6400 no_cache=0
6401 # Check whether --enable-radiobox or --disable-radiobox was given.
6402 if test "${enable_radiobox+set}" = set; then
6403 enableval="$enable_radiobox"
6404
6405 if test "$enableval" = yes; then
6406 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6407 else
6408 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6409 fi
6410
6411 else
6412
6413 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6414 if test "x$LINE" != x ; then
6415 eval "DEFAULT_$LINE"
6416 else
6417 no_cache=1
6418 fi
6419
6420 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6421
6422 fi
6423
6424
6425 eval "$ac_cv_use_radiobox"
6426 if test "$no_cache" != 1; then
6427 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6428 fi
6429
6430 if test "$wxUSE_RADIOBOX" = yes; then
6431 echo "$ac_t""yes" 1>&6
6432 else
6433 echo "$ac_t""no" 1>&6
6434 fi
6435
6436
6437 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
6438 echo "configure:6439: checking for --enable-radiobtn" >&5
6439 no_cache=0
6440 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6441 if test "${enable_radiobtn+set}" = set; then
6442 enableval="$enable_radiobtn"
6443
6444 if test "$enableval" = yes; then
6445 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6446 else
6447 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6448 fi
6449
6450 else
6451
6452 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6453 if test "x$LINE" != x ; then
6454 eval "DEFAULT_$LINE"
6455 else
6456 no_cache=1
6457 fi
6458
6459 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6460
6461 fi
6462
6463
6464 eval "$ac_cv_use_radiobtn"
6465 if test "$no_cache" != 1; then
6466 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6467 fi
6468
6469 if test "$wxUSE_RADIOBTN" = yes; then
6470 echo "$ac_t""yes" 1>&6
6471 else
6472 echo "$ac_t""no" 1>&6
6473 fi
6474
6475
6476 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
6477 echo "configure:6478: checking for --enable-sash" >&5
6478 no_cache=0
6479 # Check whether --enable-sash or --disable-sash was given.
6480 if test "${enable_sash+set}" = set; then
6481 enableval="$enable_sash"
6482
6483 if test "$enableval" = yes; then
6484 ac_cv_use_sash='wxUSE_SASH=yes'
6485 else
6486 ac_cv_use_sash='wxUSE_SASH=no'
6487 fi
6488
6489 else
6490
6491 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6492 if test "x$LINE" != x ; then
6493 eval "DEFAULT_$LINE"
6494 else
6495 no_cache=1
6496 fi
6497
6498 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6499
6500 fi
6501
6502
6503 eval "$ac_cv_use_sash"
6504 if test "$no_cache" != 1; then
6505 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6506 fi
6507
6508 if test "$wxUSE_SASH" = yes; then
6509 echo "$ac_t""yes" 1>&6
6510 else
6511 echo "$ac_t""no" 1>&6
6512 fi
6513
6514
6515 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
6516 echo "configure:6517: checking for --enable-scrollbar" >&5
6517 no_cache=0
6518 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6519 if test "${enable_scrollbar+set}" = set; then
6520 enableval="$enable_scrollbar"
6521
6522 if test "$enableval" = yes; then
6523 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6524 else
6525 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6526 fi
6527
6528 else
6529
6530 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6531 if test "x$LINE" != x ; then
6532 eval "DEFAULT_$LINE"
6533 else
6534 no_cache=1
6535 fi
6536
6537 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6538
6539 fi
6540
6541
6542 eval "$ac_cv_use_scrollbar"
6543 if test "$no_cache" != 1; then
6544 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6545 fi
6546
6547 if test "$wxUSE_SCROLLBAR" = yes; then
6548 echo "$ac_t""yes" 1>&6
6549 else
6550 echo "$ac_t""no" 1>&6
6551 fi
6552
6553
6554 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
6555 echo "configure:6556: checking for --enable-slider" >&5
6556 no_cache=0
6557 # Check whether --enable-slider or --disable-slider was given.
6558 if test "${enable_slider+set}" = set; then
6559 enableval="$enable_slider"
6560
6561 if test "$enableval" = yes; then
6562 ac_cv_use_slider='wxUSE_SLIDER=yes'
6563 else
6564 ac_cv_use_slider='wxUSE_SLIDER=no'
6565 fi
6566
6567 else
6568
6569 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6570 if test "x$LINE" != x ; then
6571 eval "DEFAULT_$LINE"
6572 else
6573 no_cache=1
6574 fi
6575
6576 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6577
6578 fi
6579
6580
6581 eval "$ac_cv_use_slider"
6582 if test "$no_cache" != 1; then
6583 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6584 fi
6585
6586 if test "$wxUSE_SLIDER" = yes; then
6587 echo "$ac_t""yes" 1>&6
6588 else
6589 echo "$ac_t""no" 1>&6
6590 fi
6591
6592
6593 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6594 echo "configure:6595: checking for --enable-spinbtn" >&5
6595 no_cache=0
6596 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6597 if test "${enable_spinbtn+set}" = set; then
6598 enableval="$enable_spinbtn"
6599
6600 if test "$enableval" = yes; then
6601 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6602 else
6603 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6604 fi
6605
6606 else
6607
6608 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6609 if test "x$LINE" != x ; then
6610 eval "DEFAULT_$LINE"
6611 else
6612 no_cache=1
6613 fi
6614
6615 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6616
6617 fi
6618
6619
6620 eval "$ac_cv_use_spinbtn"
6621 if test "$no_cache" != 1; then
6622 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6623 fi
6624
6625 if test "$wxUSE_SPINBTN" = yes; then
6626 echo "$ac_t""yes" 1>&6
6627 else
6628 echo "$ac_t""no" 1>&6
6629 fi
6630
6631
6632 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6633 echo "configure:6634: checking for --enable-spinctrl" >&5
6634 no_cache=0
6635 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6636 if test "${enable_spinctrl+set}" = set; then
6637 enableval="$enable_spinctrl"
6638
6639 if test "$enableval" = yes; then
6640 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6641 else
6642 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6643 fi
6644
6645 else
6646
6647 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6648 if test "x$LINE" != x ; then
6649 eval "DEFAULT_$LINE"
6650 else
6651 no_cache=1
6652 fi
6653
6654 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6655
6656 fi
6657
6658
6659 eval "$ac_cv_use_spinctrl"
6660 if test "$no_cache" != 1; then
6661 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6662 fi
6663
6664 if test "$wxUSE_SPINCTRL" = yes; then
6665 echo "$ac_t""yes" 1>&6
6666 else
6667 echo "$ac_t""no" 1>&6
6668 fi
6669
6670
6671 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6672 echo "configure:6673: checking for --enable-splitter" >&5
6673 no_cache=0
6674 # Check whether --enable-splitter or --disable-splitter was given.
6675 if test "${enable_splitter+set}" = set; then
6676 enableval="$enable_splitter"
6677
6678 if test "$enableval" = yes; then
6679 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6680 else
6681 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6682 fi
6683
6684 else
6685
6686 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6687 if test "x$LINE" != x ; then
6688 eval "DEFAULT_$LINE"
6689 else
6690 no_cache=1
6691 fi
6692
6693 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6694
6695 fi
6696
6697
6698 eval "$ac_cv_use_splitter"
6699 if test "$no_cache" != 1; then
6700 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6701 fi
6702
6703 if test "$wxUSE_SPLITTER" = yes; then
6704 echo "$ac_t""yes" 1>&6
6705 else
6706 echo "$ac_t""no" 1>&6
6707 fi
6708
6709
6710 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6711 echo "configure:6712: checking for --enable-statbmp" >&5
6712 no_cache=0
6713 # Check whether --enable-statbmp or --disable-statbmp was given.
6714 if test "${enable_statbmp+set}" = set; then
6715 enableval="$enable_statbmp"
6716
6717 if test "$enableval" = yes; then
6718 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6719 else
6720 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6721 fi
6722
6723 else
6724
6725 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6726 if test "x$LINE" != x ; then
6727 eval "DEFAULT_$LINE"
6728 else
6729 no_cache=1
6730 fi
6731
6732 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6733
6734 fi
6735
6736
6737 eval "$ac_cv_use_statbmp"
6738 if test "$no_cache" != 1; then
6739 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6740 fi
6741
6742 if test "$wxUSE_STATBMP" = yes; then
6743 echo "$ac_t""yes" 1>&6
6744 else
6745 echo "$ac_t""no" 1>&6
6746 fi
6747
6748
6749 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6750 echo "configure:6751: checking for --enable-statbox" >&5
6751 no_cache=0
6752 # Check whether --enable-statbox or --disable-statbox was given.
6753 if test "${enable_statbox+set}" = set; then
6754 enableval="$enable_statbox"
6755
6756 if test "$enableval" = yes; then
6757 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6758 else
6759 ac_cv_use_statbox='wxUSE_STATBOX=no'
6760 fi
6761
6762 else
6763
6764 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6765 if test "x$LINE" != x ; then
6766 eval "DEFAULT_$LINE"
6767 else
6768 no_cache=1
6769 fi
6770
6771 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6772
6773 fi
6774
6775
6776 eval "$ac_cv_use_statbox"
6777 if test "$no_cache" != 1; then
6778 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6779 fi
6780
6781 if test "$wxUSE_STATBOX" = yes; then
6782 echo "$ac_t""yes" 1>&6
6783 else
6784 echo "$ac_t""no" 1>&6
6785 fi
6786
6787
6788 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6789 echo "configure:6790: checking for --enable-statline" >&5
6790 no_cache=0
6791 # Check whether --enable-statline or --disable-statline was given.
6792 if test "${enable_statline+set}" = set; then
6793 enableval="$enable_statline"
6794
6795 if test "$enableval" = yes; then
6796 ac_cv_use_statline='wxUSE_STATLINE=yes'
6797 else
6798 ac_cv_use_statline='wxUSE_STATLINE=no'
6799 fi
6800
6801 else
6802
6803 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6804 if test "x$LINE" != x ; then
6805 eval "DEFAULT_$LINE"
6806 else
6807 no_cache=1
6808 fi
6809
6810 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6811
6812 fi
6813
6814
6815 eval "$ac_cv_use_statline"
6816 if test "$no_cache" != 1; then
6817 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6818 fi
6819
6820 if test "$wxUSE_STATLINE" = yes; then
6821 echo "$ac_t""yes" 1>&6
6822 else
6823 echo "$ac_t""no" 1>&6
6824 fi
6825
6826
6827 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6828 echo "configure:6829: checking for --enable-stattext" >&5
6829 no_cache=0
6830 # Check whether --enable-stattext or --disable-stattext was given.
6831 if test "${enable_stattext+set}" = set; then
6832 enableval="$enable_stattext"
6833
6834 if test "$enableval" = yes; then
6835 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6836 else
6837 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6838 fi
6839
6840 else
6841
6842 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6843 if test "x$LINE" != x ; then
6844 eval "DEFAULT_$LINE"
6845 else
6846 no_cache=1
6847 fi
6848
6849 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6850
6851 fi
6852
6853
6854 eval "$ac_cv_use_stattext"
6855 if test "$no_cache" != 1; then
6856 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6857 fi
6858
6859 if test "$wxUSE_STATTEXT" = yes; then
6860 echo "$ac_t""yes" 1>&6
6861 else
6862 echo "$ac_t""no" 1>&6
6863 fi
6864
6865
6866 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6867 echo "configure:6868: checking for --enable-statusbar" >&5
6868 no_cache=0
6869 # Check whether --enable-statusbar or --disable-statusbar was given.
6870 if test "${enable_statusbar+set}" = set; then
6871 enableval="$enable_statusbar"
6872
6873 if test "$enableval" = yes; then
6874 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6875 else
6876 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6877 fi
6878
6879 else
6880
6881 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6882 if test "x$LINE" != x ; then
6883 eval "DEFAULT_$LINE"
6884 else
6885 no_cache=1
6886 fi
6887
6888 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6889
6890 fi
6891
6892
6893 eval "$ac_cv_use_statusbar"
6894 if test "$no_cache" != 1; then
6895 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6896 fi
6897
6898 if test "$wxUSE_STATUSBAR" = yes; then
6899 echo "$ac_t""yes" 1>&6
6900 else
6901 echo "$ac_t""no" 1>&6
6902 fi
6903
6904
6905 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6906 echo "configure:6907: checking for --enable-tabdialog" >&5
6907 no_cache=0
6908 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6909 if test "${enable_tabdialog+set}" = set; then
6910 enableval="$enable_tabdialog"
6911
6912 if test "$enableval" = yes; then
6913 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6914 else
6915 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6916 fi
6917
6918 else
6919
6920 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6921 if test "x$LINE" != x ; then
6922 eval "DEFAULT_$LINE"
6923 else
6924 no_cache=1
6925 fi
6926
6927 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6928
6929 fi
6930
6931
6932 eval "$ac_cv_use_tabdialog"
6933 if test "$no_cache" != 1; then
6934 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6935 fi
6936
6937 if test "$wxUSE_TABDIALOG" = yes; then
6938 echo "$ac_t""yes" 1>&6
6939 else
6940 echo "$ac_t""no" 1>&6
6941 fi
6942
6943
6944 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6945 echo "configure:6946: checking for --enable-textctrl" >&5
6946 no_cache=0
6947 # Check whether --enable-textctrl or --disable-textctrl was given.
6948 if test "${enable_textctrl+set}" = set; then
6949 enableval="$enable_textctrl"
6950
6951 if test "$enableval" = yes; then
6952 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6953 else
6954 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6955 fi
6956
6957 else
6958
6959 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6960 if test "x$LINE" != x ; then
6961 eval "DEFAULT_$LINE"
6962 else
6963 no_cache=1
6964 fi
6965
6966 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6967
6968 fi
6969
6970
6971 eval "$ac_cv_use_textctrl"
6972 if test "$no_cache" != 1; then
6973 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6974 fi
6975
6976 if test "$wxUSE_TEXTCTRL" = yes; then
6977 echo "$ac_t""yes" 1>&6
6978 else
6979 echo "$ac_t""no" 1>&6
6980 fi
6981
6982
6983 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6984 echo "configure:6985: checking for --enable-togglebtn" >&5
6985 no_cache=0
6986 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6987 if test "${enable_togglebtn+set}" = set; then
6988 enableval="$enable_togglebtn"
6989
6990 if test "$enableval" = yes; then
6991 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6992 else
6993 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6994 fi
6995
6996 else
6997
6998 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6999 if test "x$LINE" != x ; then
7000 eval "DEFAULT_$LINE"
7001 else
7002 no_cache=1
7003 fi
7004
7005 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7006
7007 fi
7008
7009
7010 eval "$ac_cv_use_togglebtn"
7011 if test "$no_cache" != 1; then
7012 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7013 fi
7014
7015 if test "$wxUSE_TOGGLEBTN" = yes; then
7016 echo "$ac_t""yes" 1>&6
7017 else
7018 echo "$ac_t""no" 1>&6
7019 fi
7020
7021
7022 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
7023 echo "configure:7024: checking for --enable-toolbar" >&5
7024 no_cache=0
7025 # Check whether --enable-toolbar or --disable-toolbar was given.
7026 if test "${enable_toolbar+set}" = set; then
7027 enableval="$enable_toolbar"
7028
7029 if test "$enableval" = yes; then
7030 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7031 else
7032 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7033 fi
7034
7035 else
7036
7037 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7038 if test "x$LINE" != x ; then
7039 eval "DEFAULT_$LINE"
7040 else
7041 no_cache=1
7042 fi
7043
7044 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7045
7046 fi
7047
7048
7049 eval "$ac_cv_use_toolbar"
7050 if test "$no_cache" != 1; then
7051 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7052 fi
7053
7054 if test "$wxUSE_TOOLBAR" = yes; then
7055 echo "$ac_t""yes" 1>&6
7056 else
7057 echo "$ac_t""no" 1>&6
7058 fi
7059
7060
7061 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
7062 echo "configure:7063: checking for --enable-tbarnative" >&5
7063 no_cache=0
7064 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7065 if test "${enable_tbarnative+set}" = set; then
7066 enableval="$enable_tbarnative"
7067
7068 if test "$enableval" = yes; then
7069 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7070 else
7071 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7072 fi
7073
7074 else
7075
7076 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7077 if test "x$LINE" != x ; then
7078 eval "DEFAULT_$LINE"
7079 else
7080 no_cache=1
7081 fi
7082
7083 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7084
7085 fi
7086
7087
7088 eval "$ac_cv_use_tbarnative"
7089 if test "$no_cache" != 1; then
7090 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7091 fi
7092
7093 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7094 echo "$ac_t""yes" 1>&6
7095 else
7096 echo "$ac_t""no" 1>&6
7097 fi
7098
7099
7100 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
7101 echo "configure:7102: checking for --enable-tbarsmpl" >&5
7102 no_cache=0
7103 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7104 if test "${enable_tbarsmpl+set}" = set; then
7105 enableval="$enable_tbarsmpl"
7106
7107 if test "$enableval" = yes; then
7108 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7109 else
7110 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7111 fi
7112
7113 else
7114
7115 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7116 if test "x$LINE" != x ; then
7117 eval "DEFAULT_$LINE"
7118 else
7119 no_cache=1
7120 fi
7121
7122 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7123
7124 fi
7125
7126
7127 eval "$ac_cv_use_tbarsmpl"
7128 if test "$no_cache" != 1; then
7129 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7130 fi
7131
7132 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7133 echo "$ac_t""yes" 1>&6
7134 else
7135 echo "$ac_t""no" 1>&6
7136 fi
7137
7138
7139 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
7140 echo "configure:7141: checking for --enable-treectrl" >&5
7141 no_cache=0
7142 # Check whether --enable-treectrl or --disable-treectrl was given.
7143 if test "${enable_treectrl+set}" = set; then
7144 enableval="$enable_treectrl"
7145
7146 if test "$enableval" = yes; then
7147 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7148 else
7149 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7150 fi
7151
7152 else
7153
7154 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7155 if test "x$LINE" != x ; then
7156 eval "DEFAULT_$LINE"
7157 else
7158 no_cache=1
7159 fi
7160
7161 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7162
7163 fi
7164
7165
7166 eval "$ac_cv_use_treectrl"
7167 if test "$no_cache" != 1; then
7168 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7169 fi
7170
7171 if test "$wxUSE_TREECTRL" = yes; then
7172 echo "$ac_t""yes" 1>&6
7173 else
7174 echo "$ac_t""no" 1>&6
7175 fi
7176
7177
7178 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
7179 echo "configure:7180: checking for --enable-tipwindow" >&5
7180 no_cache=0
7181 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7182 if test "${enable_tipwindow+set}" = set; then
7183 enableval="$enable_tipwindow"
7184
7185 if test "$enableval" = yes; then
7186 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7187 else
7188 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7189 fi
7190
7191 else
7192
7193 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7194 if test "x$LINE" != x ; then
7195 eval "DEFAULT_$LINE"
7196 else
7197 no_cache=1
7198 fi
7199
7200 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7201
7202 fi
7203
7204
7205 eval "$ac_cv_use_tipwindow"
7206 if test "$no_cache" != 1; then
7207 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7208 fi
7209
7210 if test "$wxUSE_TIPWINDOW" = yes; then
7211 echo "$ac_t""yes" 1>&6
7212 else
7213 echo "$ac_t""no" 1>&6
7214 fi
7215
7216
7217 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
7218 echo "configure:7219: checking for --enable-popupwin" >&5
7219 no_cache=0
7220 # Check whether --enable-popupwin or --disable-popupwin was given.
7221 if test "${enable_popupwin+set}" = set; then
7222 enableval="$enable_popupwin"
7223
7224 if test "$enableval" = yes; then
7225 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7226 else
7227 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7228 fi
7229
7230 else
7231
7232 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7233 if test "x$LINE" != x ; then
7234 eval "DEFAULT_$LINE"
7235 else
7236 no_cache=1
7237 fi
7238
7239 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7240
7241 fi
7242
7243
7244 eval "$ac_cv_use_popupwin"
7245 if test "$no_cache" != 1; then
7246 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7247 fi
7248
7249 if test "$wxUSE_POPUPWIN" = yes; then
7250 echo "$ac_t""yes" 1>&6
7251 else
7252 echo "$ac_t""no" 1>&6
7253 fi
7254
7255
7256
7257
7258 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
7259 echo "configure:7260: checking for --enable-commondlg" >&5
7260 no_cache=0
7261 # Check whether --enable-commondlg or --disable-commondlg was given.
7262 if test "${enable_commondlg+set}" = set; then
7263 enableval="$enable_commondlg"
7264
7265 if test "$enableval" = yes; then
7266 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7267 else
7268 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7269 fi
7270
7271 else
7272
7273 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7274 if test "x$LINE" != x ; then
7275 eval "DEFAULT_$LINE"
7276 else
7277 no_cache=1
7278 fi
7279
7280 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7281
7282 fi
7283
7284
7285 eval "$ac_cv_use_commondlg"
7286 if test "$no_cache" != 1; then
7287 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7288 fi
7289
7290 if test "$wxUSE_COMMONDLGS" = yes; then
7291 echo "$ac_t""yes" 1>&6
7292 else
7293 echo "$ac_t""no" 1>&6
7294 fi
7295
7296
7297 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
7298 echo "configure:7299: checking for --enable-choicedlg" >&5
7299 no_cache=0
7300 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7301 if test "${enable_choicedlg+set}" = set; then
7302 enableval="$enable_choicedlg"
7303
7304 if test "$enableval" = yes; then
7305 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7306 else
7307 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7308 fi
7309
7310 else
7311
7312 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7313 if test "x$LINE" != x ; then
7314 eval "DEFAULT_$LINE"
7315 else
7316 no_cache=1
7317 fi
7318
7319 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7320
7321 fi
7322
7323
7324 eval "$ac_cv_use_choicedlg"
7325 if test "$no_cache" != 1; then
7326 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7327 fi
7328
7329 if test "$wxUSE_CHOICEDLG" = yes; then
7330 echo "$ac_t""yes" 1>&6
7331 else
7332 echo "$ac_t""no" 1>&6
7333 fi
7334
7335
7336 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
7337 echo "configure:7338: checking for --enable-coldlg" >&5
7338 no_cache=0
7339 # Check whether --enable-coldlg or --disable-coldlg was given.
7340 if test "${enable_coldlg+set}" = set; then
7341 enableval="$enable_coldlg"
7342
7343 if test "$enableval" = yes; then
7344 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7345 else
7346 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7347 fi
7348
7349 else
7350
7351 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7352 if test "x$LINE" != x ; then
7353 eval "DEFAULT_$LINE"
7354 else
7355 no_cache=1
7356 fi
7357
7358 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7359
7360 fi
7361
7362
7363 eval "$ac_cv_use_coldlg"
7364 if test "$no_cache" != 1; then
7365 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7366 fi
7367
7368 if test "$wxUSE_COLOURDLG" = yes; then
7369 echo "$ac_t""yes" 1>&6
7370 else
7371 echo "$ac_t""no" 1>&6
7372 fi
7373
7374
7375 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
7376 echo "configure:7377: checking for --enable-filedlg" >&5
7377 no_cache=0
7378 # Check whether --enable-filedlg or --disable-filedlg was given.
7379 if test "${enable_filedlg+set}" = set; then
7380 enableval="$enable_filedlg"
7381
7382 if test "$enableval" = yes; then
7383 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7384 else
7385 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7386 fi
7387
7388 else
7389
7390 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7391 if test "x$LINE" != x ; then
7392 eval "DEFAULT_$LINE"
7393 else
7394 no_cache=1
7395 fi
7396
7397 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7398
7399 fi
7400
7401
7402 eval "$ac_cv_use_filedlg"
7403 if test "$no_cache" != 1; then
7404 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7405 fi
7406
7407 if test "$wxUSE_FILEDLG" = yes; then
7408 echo "$ac_t""yes" 1>&6
7409 else
7410 echo "$ac_t""no" 1>&6
7411 fi
7412
7413
7414 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
7415 echo "configure:7416: checking for --enable-finddlg" >&5
7416 no_cache=0
7417 # Check whether --enable-finddlg or --disable-finddlg was given.
7418 if test "${enable_finddlg+set}" = set; then
7419 enableval="$enable_finddlg"
7420
7421 if test "$enableval" = yes; then
7422 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7423 else
7424 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7425 fi
7426
7427 else
7428
7429 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7430 if test "x$LINE" != x ; then
7431 eval "DEFAULT_$LINE"
7432 else
7433 no_cache=1
7434 fi
7435
7436 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7437
7438 fi
7439
7440
7441 eval "$ac_cv_use_finddlg"
7442 if test "$no_cache" != 1; then
7443 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7444 fi
7445
7446 if test "$wxUSE_FINDREPLDLG" = yes; then
7447 echo "$ac_t""yes" 1>&6
7448 else
7449 echo "$ac_t""no" 1>&6
7450 fi
7451
7452
7453 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
7454 echo "configure:7455: checking for --enable-fontdlg" >&5
7455 no_cache=0
7456 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7457 if test "${enable_fontdlg+set}" = set; then
7458 enableval="$enable_fontdlg"
7459
7460 if test "$enableval" = yes; then
7461 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7462 else
7463 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7464 fi
7465
7466 else
7467
7468 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7469 if test "x$LINE" != x ; then
7470 eval "DEFAULT_$LINE"
7471 else
7472 no_cache=1
7473 fi
7474
7475 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7476
7477 fi
7478
7479
7480 eval "$ac_cv_use_fontdlg"
7481 if test "$no_cache" != 1; then
7482 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7483 fi
7484
7485 if test "$wxUSE_FONTDLG" = yes; then
7486 echo "$ac_t""yes" 1>&6
7487 else
7488 echo "$ac_t""no" 1>&6
7489 fi
7490
7491
7492 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
7493 echo "configure:7494: checking for --enable-dirdlg" >&5
7494 no_cache=0
7495 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7496 if test "${enable_dirdlg+set}" = set; then
7497 enableval="$enable_dirdlg"
7498
7499 if test "$enableval" = yes; then
7500 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7501 else
7502 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7503 fi
7504
7505 else
7506
7507 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7508 if test "x$LINE" != x ; then
7509 eval "DEFAULT_$LINE"
7510 else
7511 no_cache=1
7512 fi
7513
7514 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7515
7516 fi
7517
7518
7519 eval "$ac_cv_use_dirdlg"
7520 if test "$no_cache" != 1; then
7521 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7522 fi
7523
7524 if test "$wxUSE_DIRDLG" = yes; then
7525 echo "$ac_t""yes" 1>&6
7526 else
7527 echo "$ac_t""no" 1>&6
7528 fi
7529
7530
7531 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
7532 echo "configure:7533: checking for --enable-msgdlg" >&5
7533 no_cache=0
7534 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7535 if test "${enable_msgdlg+set}" = set; then
7536 enableval="$enable_msgdlg"
7537
7538 if test "$enableval" = yes; then
7539 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7540 else
7541 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7542 fi
7543
7544 else
7545
7546 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7547 if test "x$LINE" != x ; then
7548 eval "DEFAULT_$LINE"
7549 else
7550 no_cache=1
7551 fi
7552
7553 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7554
7555 fi
7556
7557
7558 eval "$ac_cv_use_msgdlg"
7559 if test "$no_cache" != 1; then
7560 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7561 fi
7562
7563 if test "$wxUSE_MSGDLG" = yes; then
7564 echo "$ac_t""yes" 1>&6
7565 else
7566 echo "$ac_t""no" 1>&6
7567 fi
7568
7569
7570 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
7571 echo "configure:7572: checking for --enable-numberdlg" >&5
7572 no_cache=0
7573 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7574 if test "${enable_numberdlg+set}" = set; then
7575 enableval="$enable_numberdlg"
7576
7577 if test "$enableval" = yes; then
7578 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7579 else
7580 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7581 fi
7582
7583 else
7584
7585 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7586 if test "x$LINE" != x ; then
7587 eval "DEFAULT_$LINE"
7588 else
7589 no_cache=1
7590 fi
7591
7592 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7593
7594 fi
7595
7596
7597 eval "$ac_cv_use_numberdlg"
7598 if test "$no_cache" != 1; then
7599 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7600 fi
7601
7602 if test "$wxUSE_NUMBERDLG" = yes; then
7603 echo "$ac_t""yes" 1>&6
7604 else
7605 echo "$ac_t""no" 1>&6
7606 fi
7607
7608
7609 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7610 echo "configure:7611: checking for --enable-splash" >&5
7611 no_cache=0
7612 # Check whether --enable-splash or --disable-splash was given.
7613 if test "${enable_splash+set}" = set; then
7614 enableval="$enable_splash"
7615
7616 if test "$enableval" = yes; then
7617 ac_cv_use_splash='wxUSE_SPLASH=yes'
7618 else
7619 ac_cv_use_splash='wxUSE_SPLASH=no'
7620 fi
7621
7622 else
7623
7624 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7625 if test "x$LINE" != x ; then
7626 eval "DEFAULT_$LINE"
7627 else
7628 no_cache=1
7629 fi
7630
7631 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7632
7633 fi
7634
7635
7636 eval "$ac_cv_use_splash"
7637 if test "$no_cache" != 1; then
7638 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7639 fi
7640
7641 if test "$wxUSE_SPLASH" = yes; then
7642 echo "$ac_t""yes" 1>&6
7643 else
7644 echo "$ac_t""no" 1>&6
7645 fi
7646
7647
7648 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7649 echo "configure:7650: checking for --enable-textdlg" >&5
7650 no_cache=0
7651 # Check whether --enable-textdlg or --disable-textdlg was given.
7652 if test "${enable_textdlg+set}" = set; then
7653 enableval="$enable_textdlg"
7654
7655 if test "$enableval" = yes; then
7656 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7657 else
7658 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7659 fi
7660
7661 else
7662
7663 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7664 if test "x$LINE" != x ; then
7665 eval "DEFAULT_$LINE"
7666 else
7667 no_cache=1
7668 fi
7669
7670 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7671
7672 fi
7673
7674
7675 eval "$ac_cv_use_textdlg"
7676 if test "$no_cache" != 1; then
7677 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7678 fi
7679
7680 if test "$wxUSE_TEXTDLG" = yes; then
7681 echo "$ac_t""yes" 1>&6
7682 else
7683 echo "$ac_t""no" 1>&6
7684 fi
7685
7686
7687 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7688 echo "configure:7689: checking for --enable-tipdlg" >&5
7689 no_cache=0
7690 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7691 if test "${enable_tipdlg+set}" = set; then
7692 enableval="$enable_tipdlg"
7693
7694 if test "$enableval" = yes; then
7695 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7696 else
7697 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7698 fi
7699
7700 else
7701
7702 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7703 if test "x$LINE" != x ; then
7704 eval "DEFAULT_$LINE"
7705 else
7706 no_cache=1
7707 fi
7708
7709 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7710
7711 fi
7712
7713
7714 eval "$ac_cv_use_tipdlg"
7715 if test "$no_cache" != 1; then
7716 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7717 fi
7718
7719 if test "$wxUSE_STARTUP_TIPS" = yes; then
7720 echo "$ac_t""yes" 1>&6
7721 else
7722 echo "$ac_t""no" 1>&6
7723 fi
7724
7725
7726 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7727 echo "configure:7728: checking for --enable-progressdlg" >&5
7728 no_cache=0
7729 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7730 if test "${enable_progressdlg+set}" = set; then
7731 enableval="$enable_progressdlg"
7732
7733 if test "$enableval" = yes; then
7734 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7735 else
7736 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7737 fi
7738
7739 else
7740
7741 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7742 if test "x$LINE" != x ; then
7743 eval "DEFAULT_$LINE"
7744 else
7745 no_cache=1
7746 fi
7747
7748 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7749
7750 fi
7751
7752
7753 eval "$ac_cv_use_progressdlg"
7754 if test "$no_cache" != 1; then
7755 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7756 fi
7757
7758 if test "$wxUSE_PROGRESSDLG" = yes; then
7759 echo "$ac_t""yes" 1>&6
7760 else
7761 echo "$ac_t""no" 1>&6
7762 fi
7763
7764
7765 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7766 echo "configure:7767: checking for --enable-wizarddlg" >&5
7767 no_cache=0
7768 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7769 if test "${enable_wizarddlg+set}" = set; then
7770 enableval="$enable_wizarddlg"
7771
7772 if test "$enableval" = yes; then
7773 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7774 else
7775 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7776 fi
7777
7778 else
7779
7780 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7781 if test "x$LINE" != x ; then
7782 eval "DEFAULT_$LINE"
7783 else
7784 no_cache=1
7785 fi
7786
7787 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7788
7789 fi
7790
7791
7792 eval "$ac_cv_use_wizarddlg"
7793 if test "$no_cache" != 1; then
7794 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7795 fi
7796
7797 if test "$wxUSE_WIZARDDLG" = yes; then
7798 echo "$ac_t""yes" 1>&6
7799 else
7800 echo "$ac_t""no" 1>&6
7801 fi
7802
7803
7804
7805
7806 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7807 echo "configure:7808: checking for --enable-menus" >&5
7808 no_cache=0
7809 # Check whether --enable-menus or --disable-menus was given.
7810 if test "${enable_menus+set}" = set; then
7811 enableval="$enable_menus"
7812
7813 if test "$enableval" = yes; then
7814 ac_cv_use_menus='wxUSE_MENUS=yes'
7815 else
7816 ac_cv_use_menus='wxUSE_MENUS=no'
7817 fi
7818
7819 else
7820
7821 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7822 if test "x$LINE" != x ; then
7823 eval "DEFAULT_$LINE"
7824 else
7825 no_cache=1
7826 fi
7827
7828 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7829
7830 fi
7831
7832
7833 eval "$ac_cv_use_menus"
7834 if test "$no_cache" != 1; then
7835 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7836 fi
7837
7838 if test "$wxUSE_MENUS" = yes; then
7839 echo "$ac_t""yes" 1>&6
7840 else
7841 echo "$ac_t""no" 1>&6
7842 fi
7843
7844
7845 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7846 echo "configure:7847: checking for --enable-miniframe" >&5
7847 no_cache=0
7848 # Check whether --enable-miniframe or --disable-miniframe was given.
7849 if test "${enable_miniframe+set}" = set; then
7850 enableval="$enable_miniframe"
7851
7852 if test "$enableval" = yes; then
7853 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7854 else
7855 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7856 fi
7857
7858 else
7859
7860 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7861 if test "x$LINE" != x ; then
7862 eval "DEFAULT_$LINE"
7863 else
7864 no_cache=1
7865 fi
7866
7867 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7868
7869 fi
7870
7871
7872 eval "$ac_cv_use_miniframe"
7873 if test "$no_cache" != 1; then
7874 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7875 fi
7876
7877 if test "$wxUSE_MINIFRAME" = yes; then
7878 echo "$ac_t""yes" 1>&6
7879 else
7880 echo "$ac_t""no" 1>&6
7881 fi
7882
7883
7884 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7885 echo "configure:7886: checking for --enable-tooltips" >&5
7886 no_cache=0
7887 # Check whether --enable-tooltips or --disable-tooltips was given.
7888 if test "${enable_tooltips+set}" = set; then
7889 enableval="$enable_tooltips"
7890
7891 if test "$enableval" = yes; then
7892 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7893 else
7894 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7895 fi
7896
7897 else
7898
7899 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7900 if test "x$LINE" != x ; then
7901 eval "DEFAULT_$LINE"
7902 else
7903 no_cache=1
7904 fi
7905
7906 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7907
7908 fi
7909
7910
7911 eval "$ac_cv_use_tooltips"
7912 if test "$no_cache" != 1; then
7913 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7914 fi
7915
7916 if test "$wxUSE_TOOLTIPS" = yes; then
7917 echo "$ac_t""yes" 1>&6
7918 else
7919 echo "$ac_t""no" 1>&6
7920 fi
7921
7922
7923 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7924 echo "configure:7925: checking for --enable-splines" >&5
7925 no_cache=0
7926 # Check whether --enable-splines or --disable-splines was given.
7927 if test "${enable_splines+set}" = set; then
7928 enableval="$enable_splines"
7929
7930 if test "$enableval" = yes; then
7931 ac_cv_use_splines='wxUSE_SPLINES=yes'
7932 else
7933 ac_cv_use_splines='wxUSE_SPLINES=no'
7934 fi
7935
7936 else
7937
7938 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7939 if test "x$LINE" != x ; then
7940 eval "DEFAULT_$LINE"
7941 else
7942 no_cache=1
7943 fi
7944
7945 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7946
7947 fi
7948
7949
7950 eval "$ac_cv_use_splines"
7951 if test "$no_cache" != 1; then
7952 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7953 fi
7954
7955 if test "$wxUSE_SPLINES" = yes; then
7956 echo "$ac_t""yes" 1>&6
7957 else
7958 echo "$ac_t""no" 1>&6
7959 fi
7960
7961
7962 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7963 echo "configure:7964: checking for --enable-validators" >&5
7964 no_cache=0
7965 # Check whether --enable-validators or --disable-validators was given.
7966 if test "${enable_validators+set}" = set; then
7967 enableval="$enable_validators"
7968
7969 if test "$enableval" = yes; then
7970 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7971 else
7972 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7973 fi
7974
7975 else
7976
7977 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7978 if test "x$LINE" != x ; then
7979 eval "DEFAULT_$LINE"
7980 else
7981 no_cache=1
7982 fi
7983
7984 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7985
7986 fi
7987
7988
7989 eval "$ac_cv_use_validators"
7990 if test "$no_cache" != 1; then
7991 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7992 fi
7993
7994 if test "$wxUSE_VALIDATORS" = yes; then
7995 echo "$ac_t""yes" 1>&6
7996 else
7997 echo "$ac_t""no" 1>&6
7998 fi
7999
8000
8001 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
8002 echo "configure:8003: checking for --enable-busyinfo" >&5
8003 no_cache=0
8004 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8005 if test "${enable_busyinfo+set}" = set; then
8006 enableval="$enable_busyinfo"
8007
8008 if test "$enableval" = yes; then
8009 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8010 else
8011 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8012 fi
8013
8014 else
8015
8016 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8017 if test "x$LINE" != x ; then
8018 eval "DEFAULT_$LINE"
8019 else
8020 no_cache=1
8021 fi
8022
8023 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8024
8025 fi
8026
8027
8028 eval "$ac_cv_use_busyinfo"
8029 if test "$no_cache" != 1; then
8030 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8031 fi
8032
8033 if test "$wxUSE_BUSYINFO" = yes; then
8034 echo "$ac_t""yes" 1>&6
8035 else
8036 echo "$ac_t""no" 1>&6
8037 fi
8038
8039
8040 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
8041 echo "configure:8042: checking for --enable-joystick" >&5
8042 no_cache=0
8043 # Check whether --enable-joystick or --disable-joystick was given.
8044 if test "${enable_joystick+set}" = set; then
8045 enableval="$enable_joystick"
8046
8047 if test "$enableval" = yes; then
8048 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8049 else
8050 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8051 fi
8052
8053 else
8054
8055 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8056 if test "x$LINE" != x ; then
8057 eval "DEFAULT_$LINE"
8058 else
8059 no_cache=1
8060 fi
8061
8062 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8063
8064 fi
8065
8066
8067 eval "$ac_cv_use_joystick"
8068 if test "$no_cache" != 1; then
8069 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8070 fi
8071
8072 if test "$wxUSE_JOYSTICK" = yes; then
8073 echo "$ac_t""yes" 1>&6
8074 else
8075 echo "$ac_t""no" 1>&6
8076 fi
8077
8078
8079 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
8080 echo "configure:8081: checking for --enable-metafile" >&5
8081 no_cache=0
8082 # Check whether --enable-metafile or --disable-metafile was given.
8083 if test "${enable_metafile+set}" = set; then
8084 enableval="$enable_metafile"
8085
8086 if test "$enableval" = yes; then
8087 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8088 else
8089 ac_cv_use_metafile='wxUSE_METAFILE=no'
8090 fi
8091
8092 else
8093
8094 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8095 if test "x$LINE" != x ; then
8096 eval "DEFAULT_$LINE"
8097 else
8098 no_cache=1
8099 fi
8100
8101 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8102
8103 fi
8104
8105
8106 eval "$ac_cv_use_metafile"
8107 if test "$no_cache" != 1; then
8108 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8109 fi
8110
8111 if test "$wxUSE_METAFILE" = yes; then
8112 echo "$ac_t""yes" 1>&6
8113 else
8114 echo "$ac_t""no" 1>&6
8115 fi
8116
8117
8118 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
8119 echo "configure:8120: checking for --enable-dragimage" >&5
8120 no_cache=0
8121 # Check whether --enable-dragimage or --disable-dragimage was given.
8122 if test "${enable_dragimage+set}" = set; then
8123 enableval="$enable_dragimage"
8124
8125 if test "$enableval" = yes; then
8126 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8127 else
8128 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8129 fi
8130
8131 else
8132
8133 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8134 if test "x$LINE" != x ; then
8135 eval "DEFAULT_$LINE"
8136 else
8137 no_cache=1
8138 fi
8139
8140 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8141
8142 fi
8143
8144
8145 eval "$ac_cv_use_dragimage"
8146 if test "$no_cache" != 1; then
8147 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8148 fi
8149
8150 if test "$wxUSE_DRAGIMAGE" = yes; then
8151 echo "$ac_t""yes" 1>&6
8152 else
8153 echo "$ac_t""no" 1>&6
8154 fi
8155
8156
8157
8158
8159 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
8160 echo "configure:8161: checking for --enable-palette" >&5
8161 no_cache=0
8162 # Check whether --enable-palette or --disable-palette was given.
8163 if test "${enable_palette+set}" = set; then
8164 enableval="$enable_palette"
8165
8166 if test "$enableval" = yes; then
8167 ac_cv_use_palette='wxUSE_PALETTE=yes'
8168 else
8169 ac_cv_use_palette='wxUSE_PALETTE=no'
8170 fi
8171
8172 else
8173
8174 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8175 if test "x$LINE" != x ; then
8176 eval "DEFAULT_$LINE"
8177 else
8178 no_cache=1
8179 fi
8180
8181 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8182
8183 fi
8184
8185
8186 eval "$ac_cv_use_palette"
8187 if test "$no_cache" != 1; then
8188 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8189 fi
8190
8191 if test "$wxUSE_PALETTE" = yes; then
8192 echo "$ac_t""yes" 1>&6
8193 else
8194 echo "$ac_t""no" 1>&6
8195 fi
8196
8197
8198 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
8199 echo "configure:8200: checking for --enable-image" >&5
8200 no_cache=0
8201 # Check whether --enable-image or --disable-image was given.
8202 if test "${enable_image+set}" = set; then
8203 enableval="$enable_image"
8204
8205 if test "$enableval" = yes; then
8206 ac_cv_use_image='wxUSE_IMAGE=yes'
8207 else
8208 ac_cv_use_image='wxUSE_IMAGE=no'
8209 fi
8210
8211 else
8212
8213 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8214 if test "x$LINE" != x ; then
8215 eval "DEFAULT_$LINE"
8216 else
8217 no_cache=1
8218 fi
8219
8220 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8221
8222 fi
8223
8224
8225 eval "$ac_cv_use_image"
8226 if test "$no_cache" != 1; then
8227 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8228 fi
8229
8230 if test "$wxUSE_IMAGE" = yes; then
8231 echo "$ac_t""yes" 1>&6
8232 else
8233 echo "$ac_t""no" 1>&6
8234 fi
8235
8236
8237 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
8238 echo "configure:8239: checking for --enable-gif" >&5
8239 no_cache=0
8240 # Check whether --enable-gif or --disable-gif was given.
8241 if test "${enable_gif+set}" = set; then
8242 enableval="$enable_gif"
8243
8244 if test "$enableval" = yes; then
8245 ac_cv_use_gif='wxUSE_GIF=yes'
8246 else
8247 ac_cv_use_gif='wxUSE_GIF=no'
8248 fi
8249
8250 else
8251
8252 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8253 if test "x$LINE" != x ; then
8254 eval "DEFAULT_$LINE"
8255 else
8256 no_cache=1
8257 fi
8258
8259 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8260
8261 fi
8262
8263
8264 eval "$ac_cv_use_gif"
8265 if test "$no_cache" != 1; then
8266 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8267 fi
8268
8269 if test "$wxUSE_GIF" = yes; then
8270 echo "$ac_t""yes" 1>&6
8271 else
8272 echo "$ac_t""no" 1>&6
8273 fi
8274
8275
8276 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
8277 echo "configure:8278: checking for --enable-pcx" >&5
8278 no_cache=0
8279 # Check whether --enable-pcx or --disable-pcx was given.
8280 if test "${enable_pcx+set}" = set; then
8281 enableval="$enable_pcx"
8282
8283 if test "$enableval" = yes; then
8284 ac_cv_use_pcx='wxUSE_PCX=yes'
8285 else
8286 ac_cv_use_pcx='wxUSE_PCX=no'
8287 fi
8288
8289 else
8290
8291 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8292 if test "x$LINE" != x ; then
8293 eval "DEFAULT_$LINE"
8294 else
8295 no_cache=1
8296 fi
8297
8298 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8299
8300 fi
8301
8302
8303 eval "$ac_cv_use_pcx"
8304 if test "$no_cache" != 1; then
8305 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8306 fi
8307
8308 if test "$wxUSE_PCX" = yes; then
8309 echo "$ac_t""yes" 1>&6
8310 else
8311 echo "$ac_t""no" 1>&6
8312 fi
8313
8314
8315 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
8316 echo "configure:8317: checking for --enable-iff" >&5
8317 no_cache=0
8318 # Check whether --enable-iff or --disable-iff was given.
8319 if test "${enable_iff+set}" = set; then
8320 enableval="$enable_iff"
8321
8322 if test "$enableval" = yes; then
8323 ac_cv_use_iff='wxUSE_IFF=yes'
8324 else
8325 ac_cv_use_iff='wxUSE_IFF=no'
8326 fi
8327
8328 else
8329
8330 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8331 if test "x$LINE" != x ; then
8332 eval "DEFAULT_$LINE"
8333 else
8334 no_cache=1
8335 fi
8336
8337 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8338
8339 fi
8340
8341
8342 eval "$ac_cv_use_iff"
8343 if test "$no_cache" != 1; then
8344 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8345 fi
8346
8347 if test "$wxUSE_IFF" = yes; then
8348 echo "$ac_t""yes" 1>&6
8349 else
8350 echo "$ac_t""no" 1>&6
8351 fi
8352
8353
8354 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
8355 echo "configure:8356: checking for --enable-pnm" >&5
8356 no_cache=0
8357 # Check whether --enable-pnm or --disable-pnm was given.
8358 if test "${enable_pnm+set}" = set; then
8359 enableval="$enable_pnm"
8360
8361 if test "$enableval" = yes; then
8362 ac_cv_use_pnm='wxUSE_PNM=yes'
8363 else
8364 ac_cv_use_pnm='wxUSE_PNM=no'
8365 fi
8366
8367 else
8368
8369 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8370 if test "x$LINE" != x ; then
8371 eval "DEFAULT_$LINE"
8372 else
8373 no_cache=1
8374 fi
8375
8376 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8377
8378 fi
8379
8380
8381 eval "$ac_cv_use_pnm"
8382 if test "$no_cache" != 1; then
8383 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8384 fi
8385
8386 if test "$wxUSE_PNM" = yes; then
8387 echo "$ac_t""yes" 1>&6
8388 else
8389 echo "$ac_t""no" 1>&6
8390 fi
8391
8392
8393 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
8394 echo "configure:8395: checking for --enable-xpm" >&5
8395 no_cache=0
8396 # Check whether --enable-xpm or --disable-xpm was given.
8397 if test "${enable_xpm+set}" = set; then
8398 enableval="$enable_xpm"
8399
8400 if test "$enableval" = yes; then
8401 ac_cv_use_xpm='wxUSE_XPM=yes'
8402 else
8403 ac_cv_use_xpm='wxUSE_XPM=no'
8404 fi
8405
8406 else
8407
8408 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8409 if test "x$LINE" != x ; then
8410 eval "DEFAULT_$LINE"
8411 else
8412 no_cache=1
8413 fi
8414
8415 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8416
8417 fi
8418
8419
8420 eval "$ac_cv_use_xpm"
8421 if test "$no_cache" != 1; then
8422 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8423 fi
8424
8425 if test "$wxUSE_XPM" = yes; then
8426 echo "$ac_t""yes" 1>&6
8427 else
8428 echo "$ac_t""no" 1>&6
8429 fi
8430
8431
8432 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
8433 echo "configure:8434: checking for --enable-ico_cur" >&5
8434 no_cache=0
8435 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8436 if test "${enable_ico_cur+set}" = set; then
8437 enableval="$enable_ico_cur"
8438
8439 if test "$enableval" = yes; then
8440 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8441 else
8442 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8443 fi
8444
8445 else
8446
8447 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8448 if test "x$LINE" != x ; then
8449 eval "DEFAULT_$LINE"
8450 else
8451 no_cache=1
8452 fi
8453
8454 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8455
8456 fi
8457
8458
8459 eval "$ac_cv_use_ico_cur"
8460 if test "$no_cache" != 1; then
8461 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8462 fi
8463
8464 if test "$wxUSE_ICO_CUR" = yes; then
8465 echo "$ac_t""yes" 1>&6
8466 else
8467 echo "$ac_t""no" 1>&6
8468 fi
8469
8470
8471 fi
8472
8473
8474 echo "saving argument cache $wx_arg_cache_file"
8475 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8476
8477
8478
8479 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8480 echo "configure:8481: checking for toolkit" >&5
8481
8482 if test "$wxUSE_GUI" = "yes"; then
8483
8484 if test "$USE_BEOS" = 1; then
8485 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8486 fi
8487
8488 if test "$TOOLKIT_GIVEN" = 1; then
8489 for toolkit in `echo $ALL_TOOLKITS`; do
8490 var=wxUSE_$toolkit
8491 eval "value=\$${var}"
8492 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8493 done
8494 else
8495 for toolkit in `echo $ALL_TOOLKITS`; do
8496 if test "$has_toolkit_in_cache" != 1; then
8497 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8498 else
8499 var=DEFAULT_wxUSE_$toolkit
8500 fi
8501 eval "wxUSE_$toolkit=\$${var}"
8502 done
8503 fi
8504
8505 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
8506 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0}`
8507
8508 case "${host}" in
8509 *-pc-os2_emx | *-pc-os2-emx )
8510 # PATH_IFS is autodetected by OS/2's configure (usually ';')
8511 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8512 LEX_STEM="lexyy"
8513 ;;
8514 *)
8515 PATH_IFS=':'
8516 LEX_STEM="lex.yy"
8517 ;;
8518 esac
8519
8520 case "$NUM_TOOLKITS" in
8521 1)
8522 ;;
8523 0)
8524 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8525 ;;
8526 *)
8527 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8528 esac
8529
8530 for toolkit in `echo $ALL_TOOLKITS`; do
8531 var=wxUSE_$toolkit
8532 eval "value=\$${var}"
8533 if test "x$value" != x; then
8534 cache_var=CACHE_$toolkit
8535 eval "cache=\$${cache_var}"
8536 if test "$cache" = 1; then
8537 echo "$var=$value" >> ${wx_arg_cache_file}
8538 fi
8539 if test "$value" = 1; then
8540 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8541 echo "$ac_t""$toolkit_echo" 1>&6
8542 fi
8543 fi
8544 done
8545 else
8546 PATH_IFS=':'
8547 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8548 fi
8549
8550
8551 cat > confcache <<\EOF
8552 # This file is a shell script that caches the results of configure
8553 # tests run on this system so they can be shared between configure
8554 # scripts and configure runs. It is not useful on other systems.
8555 # If it contains results you don't want to keep, you may remove or edit it.
8556 #
8557 # By default, configure uses ./config.cache as the cache file,
8558 # creating it if it does not exist already. You can give configure
8559 # the --cache-file=FILE option to use a different cache file; that is
8560 # what configure does when it calls configure scripts in
8561 # subdirectories, so they share the cache.
8562 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8563 # config.status only pays attention to the cache file if you give it the
8564 # --recheck option to rerun configure.
8565 #
8566 EOF
8567 # The following way of writing the cache mishandles newlines in values,
8568 # but we know of no workaround that is simple, portable, and efficient.
8569 # So, don't put newlines in cache variables' values.
8570 # Ultrix sh set writes to stderr and can't be redirected directly,
8571 # and sets the high bit in the cache file unless we assign to the vars.
8572 (set) 2>&1 |
8573 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8574 *ac_space=\ *)
8575 # `set' does not quote correctly, so add quotes (double-quote substitution
8576 # turns \\\\ into \\, and sed turns \\ into \).
8577 sed -n \
8578 -e "s/'/'\\\\''/g" \
8579 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8580 ;;
8581 *)
8582 # `set' quotes correctly as required by POSIX, so do not add quotes.
8583 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8584 ;;
8585 esac >> confcache
8586 if cmp -s $cache_file confcache; then
8587 :
8588 else
8589 if test -w $cache_file; then
8590 echo "updating cache $cache_file"
8591 cat confcache > $cache_file
8592 else
8593 echo "not updating unwritable cache $cache_file"
8594 fi
8595 fi
8596 rm -f confcache
8597
8598
8599 if test "$build" != "$host" ; then
8600 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then
8601 CC=$host_alias-gcc
8602 CXX=$host_alias-c++
8603 AR=$host_alias-ar
8604 RANLIB=$host_alias-ranlib
8605 DLLTOOL=$host_alias-dlltool
8606 RESCOMP=$host_alias-windres
8607 LD=$host_alias-ld
8608 NM=$host_alias-nm
8609 STRIP=$host_alias-strip
8610 else
8611 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8612 fi
8613 fi
8614
8615 # Extract the first word of "gcc", so it can be a program name with args.
8616 set dummy gcc; ac_word=$2
8617 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8618 echo "configure:8619: checking for $ac_word" >&5
8619 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8620 echo $ac_n "(cached) $ac_c" 1>&6
8621 else
8622 if test -n "$CC"; then
8623 ac_cv_prog_CC="$CC" # Let the user override the test.
8624 else
8625 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8626 ac_dummy="$PATH"
8627 for ac_dir in $ac_dummy; do
8628 test -z "$ac_dir" && ac_dir=.
8629 if test -f $ac_dir/$ac_word; then
8630 ac_cv_prog_CC="gcc"
8631 break
8632 fi
8633 done
8634 IFS="$ac_save_ifs"
8635 fi
8636 fi
8637 CC="$ac_cv_prog_CC"
8638 if test -n "$CC"; then
8639 echo "$ac_t""$CC" 1>&6
8640 else
8641 echo "$ac_t""no" 1>&6
8642 fi
8643
8644 if test -z "$CC"; then
8645 # Extract the first word of "cc", so it can be a program name with args.
8646 set dummy cc; ac_word=$2
8647 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8648 echo "configure:8649: checking for $ac_word" >&5
8649 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8650 echo $ac_n "(cached) $ac_c" 1>&6
8651 else
8652 if test -n "$CC"; then
8653 ac_cv_prog_CC="$CC" # Let the user override the test.
8654 else
8655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8656 ac_prog_rejected=no
8657 ac_dummy="$PATH"
8658 for ac_dir in $ac_dummy; do
8659 test -z "$ac_dir" && ac_dir=.
8660 if test -f $ac_dir/$ac_word; then
8661 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8662 ac_prog_rejected=yes
8663 continue
8664 fi
8665 ac_cv_prog_CC="cc"
8666 break
8667 fi
8668 done
8669 IFS="$ac_save_ifs"
8670 if test $ac_prog_rejected = yes; then
8671 # We found a bogon in the path, so make sure we never use it.
8672 set dummy $ac_cv_prog_CC
8673 shift
8674 if test $# -gt 0; then
8675 # We chose a different compiler from the bogus one.
8676 # However, it has the same basename, so the bogon will be chosen
8677 # first if we set CC to just the basename; use the full file name.
8678 shift
8679 set dummy "$ac_dir/$ac_word" "$@"
8680 shift
8681 ac_cv_prog_CC="$@"
8682 fi
8683 fi
8684 fi
8685 fi
8686 CC="$ac_cv_prog_CC"
8687 if test -n "$CC"; then
8688 echo "$ac_t""$CC" 1>&6
8689 else
8690 echo "$ac_t""no" 1>&6
8691 fi
8692
8693 if test -z "$CC"; then
8694 case "`uname -s`" in
8695 *win32* | *WIN32*)
8696 # Extract the first word of "cl", so it can be a program name with args.
8697 set dummy cl; ac_word=$2
8698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8699 echo "configure:8700: checking for $ac_word" >&5
8700 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8701 echo $ac_n "(cached) $ac_c" 1>&6
8702 else
8703 if test -n "$CC"; then
8704 ac_cv_prog_CC="$CC" # Let the user override the test.
8705 else
8706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8707 ac_dummy="$PATH"
8708 for ac_dir in $ac_dummy; do
8709 test -z "$ac_dir" && ac_dir=.
8710 if test -f $ac_dir/$ac_word; then
8711 ac_cv_prog_CC="cl"
8712 break
8713 fi
8714 done
8715 IFS="$ac_save_ifs"
8716 fi
8717 fi
8718 CC="$ac_cv_prog_CC"
8719 if test -n "$CC"; then
8720 echo "$ac_t""$CC" 1>&6
8721 else
8722 echo "$ac_t""no" 1>&6
8723 fi
8724 ;;
8725 esac
8726 fi
8727 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8728 fi
8729
8730 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8731 echo "configure:8732: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8732
8733 ac_ext=c
8734 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8735 ac_cpp='$CPP $CPPFLAGS'
8736 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8737 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8738 cross_compiling=$ac_cv_prog_cc_cross
8739
8740 cat > conftest.$ac_ext << EOF
8741
8742 #line 8743 "configure"
8743 #include "confdefs.h"
8744
8745 main(){return(0);}
8746 EOF
8747 if { (eval echo configure:8748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8748 ac_cv_prog_cc_works=yes
8749 # If we can't run a trivial program, we are probably using a cross compiler.
8750 if (./conftest; exit) 2>/dev/null; then
8751 ac_cv_prog_cc_cross=no
8752 else
8753 ac_cv_prog_cc_cross=yes
8754 fi
8755 else
8756 echo "configure: failed program was:" >&5
8757 cat conftest.$ac_ext >&5
8758 ac_cv_prog_cc_works=no
8759 fi
8760 rm -fr conftest*
8761 ac_ext=c
8762 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8763 ac_cpp='$CPP $CPPFLAGS'
8764 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8765 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8766 cross_compiling=$ac_cv_prog_cc_cross
8767
8768 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8769 if test $ac_cv_prog_cc_works = no; then
8770 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8771 fi
8772 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8773 echo "configure:8774: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8774 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8775 cross_compiling=$ac_cv_prog_cc_cross
8776
8777 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8778 echo "configure:8779: checking whether we are using GNU C" >&5
8779 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8780 echo $ac_n "(cached) $ac_c" 1>&6
8781 else
8782 cat > conftest.c <<EOF
8783 #ifdef __GNUC__
8784 yes;
8785 #endif
8786 EOF
8787 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8788 ac_cv_prog_gcc=yes
8789 else
8790 ac_cv_prog_gcc=no
8791 fi
8792 fi
8793
8794 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8795
8796 if test $ac_cv_prog_gcc = yes; then
8797 GCC=yes
8798 else
8799 GCC=
8800 fi
8801
8802 ac_test_CFLAGS="${CFLAGS+set}"
8803 ac_save_CFLAGS="$CFLAGS"
8804 CFLAGS=
8805 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8806 echo "configure:8807: checking whether ${CC-cc} accepts -g" >&5
8807 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8808 echo $ac_n "(cached) $ac_c" 1>&6
8809 else
8810 echo 'void f(){}' > conftest.c
8811 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8812 ac_cv_prog_cc_g=yes
8813 else
8814 ac_cv_prog_cc_g=no
8815 fi
8816 rm -f conftest*
8817
8818 fi
8819
8820 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8821 if test "$ac_test_CFLAGS" = set; then
8822 CFLAGS="$ac_save_CFLAGS"
8823 elif test $ac_cv_prog_cc_g = yes; then
8824 if test "$GCC" = yes; then
8825 CFLAGS="-g -O2"
8826 else
8827 CFLAGS="-g"
8828 fi
8829 else
8830 if test "$GCC" = yes; then
8831 CFLAGS="-O2"
8832 else
8833 CFLAGS=
8834 fi
8835 fi
8836
8837
8838 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8839
8840 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8841 echo "configure:8842: checking how to run the C preprocessor" >&5
8842 # On Suns, sometimes $CPP names a directory.
8843 if test -n "$CPP" && test -d "$CPP"; then
8844 CPP=
8845 fi
8846 if test -z "$CPP"; then
8847 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8848 echo $ac_n "(cached) $ac_c" 1>&6
8849 else
8850 # This must be in double quotes, not single quotes, because CPP may get
8851 # substituted into the Makefile and "${CC-cc}" will confuse make.
8852 CPP="${CC-cc} -E"
8853 # On the NeXT, cc -E runs the code through the compiler's parser,
8854 # not just through cpp.
8855 cat > conftest.$ac_ext <<EOF
8856 #line 8857 "configure"
8857 #include "confdefs.h"
8858 #include <assert.h>
8859 Syntax Error
8860 EOF
8861 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8862 { (eval echo configure:8863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8863 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8864 if test -z "$ac_err"; then
8865 :
8866 else
8867 echo "$ac_err" >&5
8868 echo "configure: failed program was:" >&5
8869 cat conftest.$ac_ext >&5
8870 rm -rf conftest*
8871 CPP="${CC-cc} -E -traditional-cpp"
8872 cat > conftest.$ac_ext <<EOF
8873 #line 8874 "configure"
8874 #include "confdefs.h"
8875 #include <assert.h>
8876 Syntax Error
8877 EOF
8878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8879 { (eval echo configure:8880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8881 if test -z "$ac_err"; then
8882 :
8883 else
8884 echo "$ac_err" >&5
8885 echo "configure: failed program was:" >&5
8886 cat conftest.$ac_ext >&5
8887 rm -rf conftest*
8888 CPP="${CC-cc} -nologo -E"
8889 cat > conftest.$ac_ext <<EOF
8890 #line 8891 "configure"
8891 #include "confdefs.h"
8892 #include <assert.h>
8893 Syntax Error
8894 EOF
8895 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8896 { (eval echo configure:8897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8897 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8898 if test -z "$ac_err"; then
8899 :
8900 else
8901 echo "$ac_err" >&5
8902 echo "configure: failed program was:" >&5
8903 cat conftest.$ac_ext >&5
8904 rm -rf conftest*
8905 CPP=/lib/cpp
8906 fi
8907 rm -f conftest*
8908 fi
8909 rm -f conftest*
8910 fi
8911 rm -f conftest*
8912 ac_cv_prog_CPP="$CPP"
8913 fi
8914 CPP="$ac_cv_prog_CPP"
8915 else
8916 ac_cv_prog_CPP="$CPP"
8917 fi
8918 echo "$ac_t""$CPP" 1>&6
8919
8920 if test $ac_cv_prog_gcc = yes; then
8921 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8922 echo "configure:8923: checking whether ${CC-cc} needs -traditional" >&5
8923 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8924 echo $ac_n "(cached) $ac_c" 1>&6
8925 else
8926 ac_pattern="Autoconf.*'x'"
8927 cat > conftest.$ac_ext <<EOF
8928 #line 8929 "configure"
8929 #include "confdefs.h"
8930 #include <sgtty.h>
8931 Autoconf TIOCGETP
8932 EOF
8933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8934 egrep "$ac_pattern" >/dev/null 2>&1; then
8935 rm -rf conftest*
8936 ac_cv_prog_gcc_traditional=yes
8937 else
8938 rm -rf conftest*
8939 ac_cv_prog_gcc_traditional=no
8940 fi
8941 rm -f conftest*
8942
8943
8944 if test $ac_cv_prog_gcc_traditional = no; then
8945 cat > conftest.$ac_ext <<EOF
8946 #line 8947 "configure"
8947 #include "confdefs.h"
8948 #include <termio.h>
8949 Autoconf TCGETA
8950 EOF
8951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8952 egrep "$ac_pattern" >/dev/null 2>&1; then
8953 rm -rf conftest*
8954 ac_cv_prog_gcc_traditional=yes
8955 fi
8956 rm -f conftest*
8957
8958 fi
8959 fi
8960
8961 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8962 if test $ac_cv_prog_gcc_traditional = yes; then
8963 CC="$CC -traditional"
8964 fi
8965 fi
8966
8967
8968
8969 ac_ext=C
8970 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8971 ac_cpp='$CXXCPP $CPPFLAGS'
8972 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8973 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8974 cross_compiling=$ac_cv_prog_cxx_cross
8975
8976
8977 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8978 do
8979 # Extract the first word of "$ac_prog", so it can be a program name with args.
8980 set dummy $ac_prog; ac_word=$2
8981 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8982 echo "configure:8983: checking for $ac_word" >&5
8983 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8984 echo $ac_n "(cached) $ac_c" 1>&6
8985 else
8986 if test -n "$CXX"; then
8987 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8988 else
8989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8990 ac_dummy="$PATH"
8991 for ac_dir in $ac_dummy; do
8992 test -z "$ac_dir" && ac_dir=.
8993 if test -f $ac_dir/$ac_word; then
8994 ac_cv_prog_CXX="$ac_prog"
8995 break
8996 fi
8997 done
8998 IFS="$ac_save_ifs"
8999 fi
9000 fi
9001 CXX="$ac_cv_prog_CXX"
9002 if test -n "$CXX"; then
9003 echo "$ac_t""$CXX" 1>&6
9004 else
9005 echo "$ac_t""no" 1>&6
9006 fi
9007
9008 test -n "$CXX" && break
9009 done
9010 test -n "$CXX" || CXX="gcc"
9011
9012
9013 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9014 echo "configure:9015: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9015
9016 ac_ext=C
9017 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9018 ac_cpp='$CXXCPP $CPPFLAGS'
9019 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9020 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9021 cross_compiling=$ac_cv_prog_cxx_cross
9022
9023 cat > conftest.$ac_ext << EOF
9024
9025 #line 9026 "configure"
9026 #include "confdefs.h"
9027
9028 int main(){return(0);}
9029 EOF
9030 if { (eval echo configure:9031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9031 ac_cv_prog_cxx_works=yes
9032 # If we can't run a trivial program, we are probably using a cross compiler.
9033 if (./conftest; exit) 2>/dev/null; then
9034 ac_cv_prog_cxx_cross=no
9035 else
9036 ac_cv_prog_cxx_cross=yes
9037 fi
9038 else
9039 echo "configure: failed program was:" >&5
9040 cat conftest.$ac_ext >&5
9041 ac_cv_prog_cxx_works=no
9042 fi
9043 rm -fr conftest*
9044 ac_ext=C
9045 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9046 ac_cpp='$CXXCPP $CPPFLAGS'
9047 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9048 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9049 cross_compiling=$ac_cv_prog_cxx_cross
9050
9051 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9052 if test $ac_cv_prog_cxx_works = no; then
9053 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9054 fi
9055 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9056 echo "configure:9057: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9057 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9058 cross_compiling=$ac_cv_prog_cxx_cross
9059
9060 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9061 echo "configure:9062: checking whether we are using GNU C++" >&5
9062 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9063 echo $ac_n "(cached) $ac_c" 1>&6
9064 else
9065 cat > conftest.C <<EOF
9066 #ifdef __GNUC__
9067 yes;
9068 #endif
9069 EOF
9070 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9071 ac_cv_prog_gxx=yes
9072 else
9073 ac_cv_prog_gxx=no
9074 fi
9075 fi
9076
9077 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9078
9079 if test $ac_cv_prog_gxx = yes; then
9080 GXX=yes
9081 else
9082 GXX=
9083 fi
9084
9085 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9086 ac_save_CXXFLAGS="$CXXFLAGS"
9087 CXXFLAGS=
9088 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9089 echo "configure:9090: checking whether ${CXX-g++} accepts -g" >&5
9090 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9091 echo $ac_n "(cached) $ac_c" 1>&6
9092 else
9093 echo 'void f(){}' > conftest.cc
9094 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9095 ac_cv_prog_cxx_g=yes
9096 else
9097 ac_cv_prog_cxx_g=no
9098 fi
9099 rm -f conftest*
9100
9101 fi
9102
9103 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9104 if test "$ac_test_CXXFLAGS" = set; then
9105 CXXFLAGS="$ac_save_CXXFLAGS"
9106 elif test $ac_cv_prog_cxx_g = yes; then
9107 if test "$GXX" = yes; then
9108 CXXFLAGS="-g -O2"
9109 else
9110 CXXFLAGS="-g"
9111 fi
9112 else
9113 if test "$GXX" = yes; then
9114 CXXFLAGS="-O2"
9115 else
9116 CXXFLAGS=
9117 fi
9118 fi
9119
9120
9121 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
9122
9123 ac_ext=c
9124 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9125 ac_cpp='$CPP $CPPFLAGS'
9126 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9127 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9128 cross_compiling=$ac_cv_prog_cc_cross
9129
9130
9131 # Extract the first word of "ranlib", so it can be a program name with args.
9132 set dummy ranlib; ac_word=$2
9133 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9134 echo "configure:9135: checking for $ac_word" >&5
9135 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9136 echo $ac_n "(cached) $ac_c" 1>&6
9137 else
9138 if test -n "$RANLIB"; then
9139 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9140 else
9141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9142 ac_dummy="$PATH"
9143 for ac_dir in $ac_dummy; do
9144 test -z "$ac_dir" && ac_dir=.
9145 if test -f $ac_dir/$ac_word; then
9146 ac_cv_prog_RANLIB="ranlib"
9147 break
9148 fi
9149 done
9150 IFS="$ac_save_ifs"
9151 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9152 fi
9153 fi
9154 RANLIB="$ac_cv_prog_RANLIB"
9155 if test -n "$RANLIB"; then
9156 echo "$ac_t""$RANLIB" 1>&6
9157 else
9158 echo "$ac_t""no" 1>&6
9159 fi
9160
9161
9162 # Extract the first word of "ar", so it can be a program name with args.
9163 set dummy ar; ac_word=$2
9164 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9165 echo "configure:9166: checking for $ac_word" >&5
9166 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9167 echo $ac_n "(cached) $ac_c" 1>&6
9168 else
9169 if test -n "$AR"; then
9170 ac_cv_prog_AR="$AR" # Let the user override the test.
9171 else
9172 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9173 ac_dummy="$PATH"
9174 for ac_dir in $ac_dummy; do
9175 test -z "$ac_dir" && ac_dir=.
9176 if test -f $ac_dir/$ac_word; then
9177 ac_cv_prog_AR="ar"
9178 break
9179 fi
9180 done
9181 IFS="$ac_save_ifs"
9182 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9183 fi
9184 fi
9185 AR="$ac_cv_prog_AR"
9186 if test -n "$AR"; then
9187 echo "$ac_t""$AR" 1>&6
9188 else
9189 echo "$ac_t""no" 1>&6
9190 fi
9191
9192
9193 # Find a good install program. We prefer a C program (faster),
9194 # so one script is as good as another. But avoid the broken or
9195 # incompatible versions:
9196 # SysV /etc/install, /usr/sbin/install
9197 # SunOS /usr/etc/install
9198 # IRIX /sbin/install
9199 # AIX /bin/install
9200 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9201 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9202 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9203 # ./install, which can be erroneously created by make from ./install.sh.
9204 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9205 echo "configure:9206: checking for a BSD compatible install" >&5
9206 if test -z "$INSTALL"; then
9207 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9208 echo $ac_n "(cached) $ac_c" 1>&6
9209 else
9210 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9211 for ac_dir in $PATH; do
9212 # Account for people who put trailing slashes in PATH elements.
9213 case "$ac_dir/" in
9214 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9215 *)
9216 # OSF1 and SCO ODT 3.0 have their own names for install.
9217 # Don't use installbsd from OSF since it installs stuff as root
9218 # by default.
9219 for ac_prog in ginstall scoinst install; do
9220 if test -f $ac_dir/$ac_prog; then
9221 if test $ac_prog = install &&
9222 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9223 # AIX install. It has an incompatible calling convention.
9224 :
9225 else
9226 ac_cv_path_install="$ac_dir/$ac_prog -c"
9227 break 2
9228 fi
9229 fi
9230 done
9231 ;;
9232 esac
9233 done
9234 IFS="$ac_save_IFS"
9235
9236 fi
9237 if test "${ac_cv_path_install+set}" = set; then
9238 INSTALL="$ac_cv_path_install"
9239 else
9240 # As a last resort, use the slow shell script. We don't cache a
9241 # path for INSTALL within a source directory, because that will
9242 # break other packages using the cache if that directory is
9243 # removed, or if the path is relative.
9244 INSTALL="$ac_install_sh"
9245 fi
9246 fi
9247 echo "$ac_t""$INSTALL" 1>&6
9248
9249 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9250 # It thinks the first close brace ends the variable substitution.
9251 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9252
9253 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9254
9255 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9256
9257 case "${host}" in
9258
9259 powerpc-*-darwin* )
9260 INSTALL_PROGRAM="cp -fp"
9261 INSTALL_DATA="cp -fp"
9262 ;;
9263 *)
9264 ;;
9265 esac
9266
9267 # Extract the first word of "strip", so it can be a program name with args.
9268 set dummy strip; ac_word=$2
9269 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9270 echo "configure:9271: checking for $ac_word" >&5
9271 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9272 echo $ac_n "(cached) $ac_c" 1>&6
9273 else
9274 if test -n "$STRIP"; then
9275 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9276 else
9277 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9278 ac_dummy="$PATH"
9279 for ac_dir in $ac_dummy; do
9280 test -z "$ac_dir" && ac_dir=.
9281 if test -f $ac_dir/$ac_word; then
9282 ac_cv_prog_STRIP="strip"
9283 break
9284 fi
9285 done
9286 IFS="$ac_save_ifs"
9287 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9288 fi
9289 fi
9290 STRIP="$ac_cv_prog_STRIP"
9291 if test -n "$STRIP"; then
9292 echo "$ac_t""$STRIP" 1>&6
9293 else
9294 echo "$ac_t""no" 1>&6
9295 fi
9296
9297
9298 echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9299 echo "configure:9300: checking if make supports VPATH" >&5
9300 if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9301 echo $ac_n "(cached) $ac_c" 1>&6
9302 else
9303
9304 cat - << EOF > confMake
9305 check : file
9306 cp \$? \$@
9307 cp \$? final_file
9308 EOF
9309
9310 if test ! -d sub ; then
9311 mkdir sub
9312 fi
9313 echo dummy > sub/file
9314 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9315 RESULT=$?
9316 rm -f sub/file check final_file confMake
9317 rmdir sub
9318 if test "$RESULT" = 0; then
9319 wx_cv_prog_makevpath="yes"
9320 else
9321 wx_cv_prog_makevpath="no"
9322 fi
9323
9324 fi
9325
9326 echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9327
9328 if test "x$wx_cv_prog_makevpath" != "xyes"; then
9329 { echo "configure: error:
9330 You need a make-utility that is able to use the variable
9331 VPATH correctly.
9332 If your version of make does not support VPATH correctly,
9333 please install GNU-make (possibly as gmake), and start
9334 configure with the following command:
9335 export MAKE=gmake; ./configure for sh-type shells
9336 setenv MAKE gmake; ./configure for csh-type shells
9337 Also please do remember to use gmake in this case every time
9338 you are trying to compile.
9339 " 1>&2; exit 1; }
9340 fi
9341
9342 echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9343 echo "configure:9344: checking if make is GNU make" >&5
9344 if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9345 echo $ac_n "(cached) $ac_c" 1>&6
9346 else
9347
9348 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9349 grep GNU 2>&1 > /dev/null); then
9350 wx_cv_prog_makeisgnu="yes"
9351 else
9352 wx_cv_prog_makeisgnu="no"
9353 fi
9354
9355 fi
9356
9357 echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9358
9359 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9360 IF_GNU_MAKE=""
9361 else
9362 IF_GNU_MAKE="#"
9363 fi
9364
9365
9366
9367 for ac_prog in 'bison -y' byacc
9368 do
9369 # Extract the first word of "$ac_prog", so it can be a program name with args.
9370 set dummy $ac_prog; ac_word=$2
9371 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9372 echo "configure:9373: checking for $ac_word" >&5
9373 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9374 echo $ac_n "(cached) $ac_c" 1>&6
9375 else
9376 if test -n "$YACC"; then
9377 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9378 else
9379 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9380 ac_dummy="$PATH"
9381 for ac_dir in $ac_dummy; do
9382 test -z "$ac_dir" && ac_dir=.
9383 if test -f $ac_dir/$ac_word; then
9384 ac_cv_prog_YACC="$ac_prog"
9385 break
9386 fi
9387 done
9388 IFS="$ac_save_ifs"
9389 fi
9390 fi
9391 YACC="$ac_cv_prog_YACC"
9392 if test -n "$YACC"; then
9393 echo "$ac_t""$YACC" 1>&6
9394 else
9395 echo "$ac_t""no" 1>&6
9396 fi
9397
9398 test -n "$YACC" && break
9399 done
9400 test -n "$YACC" || YACC="yacc"
9401
9402
9403 # Extract the first word of "flex", so it can be a program name with args.
9404 set dummy flex; ac_word=$2
9405 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9406 echo "configure:9407: checking for $ac_word" >&5
9407 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9408 echo $ac_n "(cached) $ac_c" 1>&6
9409 else
9410 if test -n "$LEX"; then
9411 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9412 else
9413 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9414 ac_dummy="$PATH"
9415 for ac_dir in $ac_dummy; do
9416 test -z "$ac_dir" && ac_dir=.
9417 if test -f $ac_dir/$ac_word; then
9418 ac_cv_prog_LEX="flex"
9419 break
9420 fi
9421 done
9422 IFS="$ac_save_ifs"
9423 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9424 fi
9425 fi
9426 LEX="$ac_cv_prog_LEX"
9427 if test -n "$LEX"; then
9428 echo "$ac_t""$LEX" 1>&6
9429 else
9430 echo "$ac_t""no" 1>&6
9431 fi
9432
9433 if test -z "$LEXLIB"
9434 then
9435 case "$LEX" in
9436 flex*) ac_lib=fl ;;
9437 *) ac_lib=l ;;
9438 esac
9439 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9440 echo "configure:9441: checking for yywrap in -l$ac_lib" >&5
9441 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9442 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9443 echo $ac_n "(cached) $ac_c" 1>&6
9444 else
9445 ac_save_LIBS="$LIBS"
9446 LIBS="-l$ac_lib $LIBS"
9447 cat > conftest.$ac_ext <<EOF
9448 #line 9449 "configure"
9449 #include "confdefs.h"
9450 /* Override any gcc2 internal prototype to avoid an error. */
9451 /* We use char because int might match the return type of a gcc2
9452 builtin and then its argument prototype would still apply. */
9453 char yywrap();
9454
9455 int main() {
9456 yywrap()
9457 ; return 0; }
9458 EOF
9459 if { (eval echo configure:9460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9460 rm -rf conftest*
9461 eval "ac_cv_lib_$ac_lib_var=yes"
9462 else
9463 echo "configure: failed program was:" >&5
9464 cat conftest.$ac_ext >&5
9465 rm -rf conftest*
9466 eval "ac_cv_lib_$ac_lib_var=no"
9467 fi
9468 rm -f conftest*
9469 LIBS="$ac_save_LIBS"
9470
9471 fi
9472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9473 echo "$ac_t""yes" 1>&6
9474 LEXLIB="-l$ac_lib"
9475 else
9476 echo "$ac_t""no" 1>&6
9477 fi
9478
9479 fi
9480
9481
9482 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9483 echo "configure:9484: checking whether ln -s works" >&5
9484 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9485 echo $ac_n "(cached) $ac_c" 1>&6
9486 else
9487 rm -f conftestdata
9488 if ln -s X conftestdata 2>/dev/null
9489 then
9490 rm -f conftestdata
9491 ac_cv_prog_LN_S="ln -s"
9492 else
9493 ac_cv_prog_LN_S=ln
9494 fi
9495 fi
9496 LN_S="$ac_cv_prog_LN_S"
9497 if test "$ac_cv_prog_LN_S" = "ln -s"; then
9498 echo "$ac_t""yes" 1>&6
9499 else
9500 echo "$ac_t""no" 1>&6
9501 fi
9502
9503
9504
9505 SEARCH_INCLUDE="\
9506 /usr/local/include \
9507 \
9508 /usr/Motif-1.2/include \
9509 /usr/Motif-2.1/include \
9510 \
9511 /usr/include/Motif1.2 \
9512 /opt/xpm/include/X11 \
9513 /opt/GBxpm/include/ \
9514 /opt/GBxpm/X11/include/ \
9515 \
9516 /usr/Motif1.2/include \
9517 /usr/dt/include \
9518 /usr/openwin/include \
9519 \
9520 /usr/include/Xm \
9521 \
9522 /usr/X11R6/include \
9523 /usr/X11R6.4/include \
9524 /usr/X11R5/include \
9525 /usr/X11R4/include \
9526 \
9527 /usr/include/X11R6 \
9528 /usr/include/X11R5 \
9529 /usr/include/X11R4 \
9530 \
9531 /usr/local/X11R6/include \
9532 /usr/local/X11R5/include \
9533 /usr/local/X11R4/include \
9534 \
9535 /usr/local/include/X11R6 \
9536 /usr/local/include/X11R5 \
9537 /usr/local/include/X11R4 \
9538 \
9539 /usr/X11/include \
9540 /usr/include/X11 \
9541 /usr/local/X11/include \
9542 /usr/local/include/X11 \
9543 \
9544 /usr/X386/include \
9545 /usr/x386/include \
9546 /usr/XFree86/include/X11 \
9547 \
9548 X:/XFree86/include \
9549 X:/XFree86/include/X11 \
9550 \
9551 /usr/include/gtk \
9552 /usr/local/include/gtk \
9553 /usr/include/glib \
9554 /usr/local/include/glib \
9555 \
9556 /usr/include/qt \
9557 /usr/local/include/qt \
9558 \
9559 /usr/include/windows \
9560 /usr/include/wine \
9561 /usr/local/include/wine \
9562 \
9563 /usr/unsupported/include \
9564 /usr/athena/include \
9565 /usr/local/x11r5/include \
9566 /usr/lpp/Xamples/include \
9567 \
9568 /usr/openwin/share/include \
9569 \
9570 /usr/include"
9571
9572 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
9573
9574
9575 cat > confcache <<\EOF
9576 # This file is a shell script that caches the results of configure
9577 # tests run on this system so they can be shared between configure
9578 # scripts and configure runs. It is not useful on other systems.
9579 # If it contains results you don't want to keep, you may remove or edit it.
9580 #
9581 # By default, configure uses ./config.cache as the cache file,
9582 # creating it if it does not exist already. You can give configure
9583 # the --cache-file=FILE option to use a different cache file; that is
9584 # what configure does when it calls configure scripts in
9585 # subdirectories, so they share the cache.
9586 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9587 # config.status only pays attention to the cache file if you give it the
9588 # --recheck option to rerun configure.
9589 #
9590 EOF
9591 # The following way of writing the cache mishandles newlines in values,
9592 # but we know of no workaround that is simple, portable, and efficient.
9593 # So, don't put newlines in cache variables' values.
9594 # Ultrix sh set writes to stderr and can't be redirected directly,
9595 # and sets the high bit in the cache file unless we assign to the vars.
9596 (set) 2>&1 |
9597 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9598 *ac_space=\ *)
9599 # `set' does not quote correctly, so add quotes (double-quote substitution
9600 # turns \\\\ into \\, and sed turns \\ into \).
9601 sed -n \
9602 -e "s/'/'\\\\''/g" \
9603 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9604 ;;
9605 *)
9606 # `set' quotes correctly as required by POSIX, so do not add quotes.
9607 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9608 ;;
9609 esac >> confcache
9610 if cmp -s $cache_file confcache; then
9611 :
9612 else
9613 if test -w $cache_file; then
9614 echo "updating cache $cache_file"
9615 cat confcache > $cache_file
9616 else
9617 echo "not updating unwritable cache $cache_file"
9618 fi
9619 fi
9620 rm -f confcache
9621
9622
9623
9624
9625 REGEX_INCLUDE=
9626 if test "$wxUSE_REGEX" != "no"; then
9627 cat >> confdefs.h <<\EOF
9628 #define wxUSE_REGEX 1
9629 EOF
9630
9631
9632 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
9633 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
9634 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
9635 echo "configure:9636: checking for regex.h" >&5
9636 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9637 echo $ac_n "(cached) $ac_c" 1>&6
9638 else
9639 cat > conftest.$ac_ext <<EOF
9640 #line 9641 "configure"
9641 #include "confdefs.h"
9642 #include <regex.h>
9643 EOF
9644 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9645 { (eval echo configure:9646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9646 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9647 if test -z "$ac_err"; then
9648 rm -rf conftest*
9649 eval "ac_cv_header_$ac_safe=yes"
9650 else
9651 echo "$ac_err" >&5
9652 echo "configure: failed program was:" >&5
9653 cat conftest.$ac_ext >&5
9654 rm -rf conftest*
9655 eval "ac_cv_header_$ac_safe=no"
9656 fi
9657 rm -f conftest*
9658 fi
9659 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9660 echo "$ac_t""yes" 1>&6
9661 for ac_func in regcomp
9662 do
9663 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9664 echo "configure:9665: checking for $ac_func" >&5
9665 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9666 echo $ac_n "(cached) $ac_c" 1>&6
9667 else
9668 cat > conftest.$ac_ext <<EOF
9669 #line 9670 "configure"
9670 #include "confdefs.h"
9671 /* System header to define __stub macros and hopefully few prototypes,
9672 which can conflict with char $ac_func(); below. */
9673 #include <assert.h>
9674 /* Override any gcc2 internal prototype to avoid an error. */
9675 /* We use char because int might match the return type of a gcc2
9676 builtin and then its argument prototype would still apply. */
9677 char $ac_func();
9678
9679 int main() {
9680
9681 /* The GNU C library defines this for functions which it implements
9682 to always fail with ENOSYS. Some functions are actually named
9683 something starting with __ and the normal name is an alias. */
9684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9685 choke me
9686 #else
9687 $ac_func();
9688 #endif
9689
9690 ; return 0; }
9691 EOF
9692 if { (eval echo configure:9693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9693 rm -rf conftest*
9694 eval "ac_cv_func_$ac_func=yes"
9695 else
9696 echo "configure: failed program was:" >&5
9697 cat conftest.$ac_ext >&5
9698 rm -rf conftest*
9699 eval "ac_cv_func_$ac_func=no"
9700 fi
9701 rm -f conftest*
9702 fi
9703
9704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9705 echo "$ac_t""yes" 1>&6
9706 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9707 cat >> confdefs.h <<EOF
9708 #define $ac_tr_func 1
9709 EOF
9710
9711 else
9712 echo "$ac_t""no" 1>&6
9713 fi
9714 done
9715
9716 else
9717 echo "$ac_t""no" 1>&6
9718 fi
9719
9720
9721 if test "x$ac_cv_func_regcomp" != "xyes"; then
9722 if test "$wxUSE_REGEX" = "sys" ; then
9723 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9724 else
9725 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
9726 wxUSE_REGEX=builtin
9727 fi
9728 else
9729 wxUSE_REGEX=sys
9730 fi
9731 fi
9732
9733 if test "$wxUSE_REGEX" = "builtin" ; then
9734 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9735 fi
9736 fi
9737
9738
9739 ZLIB_INCLUDE=
9740 ZLIB_LINK=
9741 if test "$wxUSE_ZLIB" != "no" ; then
9742 cat >> confdefs.h <<\EOF
9743 #define wxUSE_ZLIB 1
9744 EOF
9745
9746
9747 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9748 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9749 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
9750 echo "configure:9751: checking for zlib.h" >&5
9751 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9752 echo $ac_n "(cached) $ac_c" 1>&6
9753 else
9754 cat > conftest.$ac_ext <<EOF
9755 #line 9756 "configure"
9756 #include "confdefs.h"
9757 #include <zlib.h>
9758 EOF
9759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9760 { (eval echo configure:9761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9762 if test -z "$ac_err"; then
9763 rm -rf conftest*
9764 eval "ac_cv_header_$ac_safe=yes"
9765 else
9766 echo "$ac_err" >&5
9767 echo "configure: failed program was:" >&5
9768 cat conftest.$ac_ext >&5
9769 rm -rf conftest*
9770 eval "ac_cv_header_$ac_safe=no"
9771 fi
9772 rm -f conftest*
9773 fi
9774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9775 echo "$ac_t""yes" 1>&6
9776 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
9777 echo "configure:9778: checking for deflate in -lz" >&5
9778 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9779 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9780 echo $ac_n "(cached) $ac_c" 1>&6
9781 else
9782 ac_save_LIBS="$LIBS"
9783 LIBS="-lz $LIBS"
9784 cat > conftest.$ac_ext <<EOF
9785 #line 9786 "configure"
9786 #include "confdefs.h"
9787 /* Override any gcc2 internal prototype to avoid an error. */
9788 /* We use char because int might match the return type of a gcc2
9789 builtin and then its argument prototype would still apply. */
9790 char deflate();
9791
9792 int main() {
9793 deflate()
9794 ; return 0; }
9795 EOF
9796 if { (eval echo configure:9797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9797 rm -rf conftest*
9798 eval "ac_cv_lib_$ac_lib_var=yes"
9799 else
9800 echo "configure: failed program was:" >&5
9801 cat conftest.$ac_ext >&5
9802 rm -rf conftest*
9803 eval "ac_cv_lib_$ac_lib_var=no"
9804 fi
9805 rm -f conftest*
9806 LIBS="$ac_save_LIBS"
9807
9808 fi
9809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9810 echo "$ac_t""yes" 1>&6
9811 ZLIB_LINK=" -lz"
9812 else
9813 echo "$ac_t""no" 1>&6
9814 fi
9815
9816 else
9817 echo "$ac_t""no" 1>&6
9818 fi
9819
9820
9821 if test "x$ZLIB_LINK" = "x" ; then
9822 if test "$wxUSE_ZLIB" = "sys" ; then
9823 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9824 else
9825 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
9826 wxUSE_ZLIB=builtin
9827 fi
9828 else
9829 wxUSE_ZLIB=sys
9830 fi
9831 fi
9832
9833 if test "$wxUSE_ZLIB" = "builtin" ; then
9834 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9835 fi
9836 fi
9837
9838
9839 PNG_INCLUDE=
9840 PNG_LINK=
9841 if test "$wxUSE_LIBPNG" != "no" ; then
9842 cat >> confdefs.h <<\EOF
9843 #define wxUSE_LIBPNG 1
9844 EOF
9845
9846
9847 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
9848 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
9849 wxUSE_LIBPNG=builtin
9850 fi
9851
9852 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9853 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9854 echo $ac_n "checking for png.h""... $ac_c" 1>&6
9855 echo "configure:9856: checking for png.h" >&5
9856 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9857 echo $ac_n "(cached) $ac_c" 1>&6
9858 else
9859 cat > conftest.$ac_ext <<EOF
9860 #line 9861 "configure"
9861 #include "confdefs.h"
9862 #include <png.h>
9863 EOF
9864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9865 { (eval echo configure:9866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9867 if test -z "$ac_err"; then
9868 rm -rf conftest*
9869 eval "ac_cv_header_$ac_safe=yes"
9870 else
9871 echo "$ac_err" >&5
9872 echo "configure: failed program was:" >&5
9873 cat conftest.$ac_ext >&5
9874 rm -rf conftest*
9875 eval "ac_cv_header_$ac_safe=no"
9876 fi
9877 rm -f conftest*
9878 fi
9879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9880 echo "$ac_t""yes" 1>&6
9881 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
9882 echo "configure:9883: checking for png_check_sig in -lpng" >&5
9883 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9884 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9885 echo $ac_n "(cached) $ac_c" 1>&6
9886 else
9887 ac_save_LIBS="$LIBS"
9888 LIBS="-lpng -lz -lm $LIBS"
9889 cat > conftest.$ac_ext <<EOF
9890 #line 9891 "configure"
9891 #include "confdefs.h"
9892 /* Override any gcc2 internal prototype to avoid an error. */
9893 /* We use char because int might match the return type of a gcc2
9894 builtin and then its argument prototype would still apply. */
9895 char png_check_sig();
9896
9897 int main() {
9898 png_check_sig()
9899 ; return 0; }
9900 EOF
9901 if { (eval echo configure:9902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9902 rm -rf conftest*
9903 eval "ac_cv_lib_$ac_lib_var=yes"
9904 else
9905 echo "configure: failed program was:" >&5
9906 cat conftest.$ac_ext >&5
9907 rm -rf conftest*
9908 eval "ac_cv_lib_$ac_lib_var=no"
9909 fi
9910 rm -f conftest*
9911 LIBS="$ac_save_LIBS"
9912
9913 fi
9914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9915 echo "$ac_t""yes" 1>&6
9916 PNG_LINK=" -lpng"
9917 else
9918 echo "$ac_t""no" 1>&6
9919 fi
9920
9921
9922 else
9923 echo "$ac_t""no" 1>&6
9924 fi
9925
9926
9927 if test "x$PNG_LINK" = "x" ; then
9928 if test "$wxUSE_LIBPNG" = "sys" ; then
9929 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9930 else
9931 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
9932 wxUSE_LIBPNG=builtin
9933 fi
9934 else
9935 wxUSE_LIBPNG=yes
9936 fi
9937 fi
9938
9939 if test "$wxUSE_LIBPNG" = "builtin" ; then
9940 PNG_INCLUDE="-I\${top_srcdir}/src/png"
9941 fi
9942
9943 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
9944 fi
9945
9946
9947 JPEG_INCLUDE=
9948 JPEG_LINK=
9949 if test "$wxUSE_LIBJPEG" != "no" ; then
9950 cat >> confdefs.h <<\EOF
9951 #define wxUSE_LIBJPEG 1
9952 EOF
9953
9954
9955 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9956 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
9957 echo "configure:9958: checking for jpeglib.h" >&5
9958 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
9959 echo $ac_n "(cached) $ac_c" 1>&6
9960 else
9961 cat > conftest.$ac_ext <<EOF
9962 #line 9963 "configure"
9963 #include "confdefs.h"
9964
9965 #undef HAVE_STDLIB_H
9966 #include <stdio.h>
9967 #include <jpeglib.h>
9968
9969 int main() {
9970
9971
9972 ; return 0; }
9973 EOF
9974 if { (eval echo configure:9975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9975 rm -rf conftest*
9976 ac_cv_header_jpeglib_h=yes
9977 else
9978 echo "configure: failed program was:" >&5
9979 cat conftest.$ac_ext >&5
9980 rm -rf conftest*
9981 ac_cv_header_jpeglib_h=no
9982
9983 fi
9984 rm -f conftest*
9985
9986 fi
9987
9988 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
9989
9990 if test "$ac_cv_header_jpeglib_h" = "yes"; then
9991 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
9992 echo "configure:9993: checking for jpeg_read_header in -ljpeg" >&5
9993 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
9994 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9995 echo $ac_n "(cached) $ac_c" 1>&6
9996 else
9997 ac_save_LIBS="$LIBS"
9998 LIBS="-ljpeg $LIBS"
9999 cat > conftest.$ac_ext <<EOF
10000 #line 10001 "configure"
10001 #include "confdefs.h"
10002 /* Override any gcc2 internal prototype to avoid an error. */
10003 /* We use char because int might match the return type of a gcc2
10004 builtin and then its argument prototype would still apply. */
10005 char jpeg_read_header();
10006
10007 int main() {
10008 jpeg_read_header()
10009 ; return 0; }
10010 EOF
10011 if { (eval echo configure:10012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10012 rm -rf conftest*
10013 eval "ac_cv_lib_$ac_lib_var=yes"
10014 else
10015 echo "configure: failed program was:" >&5
10016 cat conftest.$ac_ext >&5
10017 rm -rf conftest*
10018 eval "ac_cv_lib_$ac_lib_var=no"
10019 fi
10020 rm -f conftest*
10021 LIBS="$ac_save_LIBS"
10022
10023 fi
10024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10025 echo "$ac_t""yes" 1>&6
10026 JPEG_LINK=" -ljpeg"
10027 else
10028 echo "$ac_t""no" 1>&6
10029 fi
10030
10031 fi
10032
10033 if test "x$JPEG_LINK" = "x" ; then
10034 if test "$wxUSE_LIBJPEG" = "sys" ; then
10035 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
10036 else
10037 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
10038 wxUSE_LIBJPEG=builtin
10039 fi
10040 else
10041 wxUSE_LIBJPEG=sys
10042 fi
10043 fi
10044
10045 if test "$wxUSE_LIBJPEG" = "builtin" ; then
10046 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
10047 fi
10048 fi
10049
10050
10051 TIFF_INCLUDE=
10052 TIFF_LINK=
10053 if test "$wxUSE_LIBTIFF" != "no" ; then
10054 cat >> confdefs.h <<\EOF
10055 #define wxUSE_LIBTIFF 1
10056 EOF
10057
10058
10059 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
10060 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
10061 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
10062 echo "configure:10063: checking for tiffio.h" >&5
10063 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10064 echo $ac_n "(cached) $ac_c" 1>&6
10065 else
10066 cat > conftest.$ac_ext <<EOF
10067 #line 10068 "configure"
10068 #include "confdefs.h"
10069 #include <tiffio.h>
10070 EOF
10071 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10072 { (eval echo configure:10073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10073 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10074 if test -z "$ac_err"; then
10075 rm -rf conftest*
10076 eval "ac_cv_header_$ac_safe=yes"
10077 else
10078 echo "$ac_err" >&5
10079 echo "configure: failed program was:" >&5
10080 cat conftest.$ac_ext >&5
10081 rm -rf conftest*
10082 eval "ac_cv_header_$ac_safe=no"
10083 fi
10084 rm -f conftest*
10085 fi
10086 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10087 echo "$ac_t""yes" 1>&6
10088 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
10089 echo "configure:10090: checking for TIFFError in -ltiff" >&5
10090 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
10091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10092 echo $ac_n "(cached) $ac_c" 1>&6
10093 else
10094 ac_save_LIBS="$LIBS"
10095 LIBS="-ltiff -lm $LIBS"
10096 cat > conftest.$ac_ext <<EOF
10097 #line 10098 "configure"
10098 #include "confdefs.h"
10099 /* Override any gcc2 internal prototype to avoid an error. */
10100 /* We use char because int might match the return type of a gcc2
10101 builtin and then its argument prototype would still apply. */
10102 char TIFFError();
10103
10104 int main() {
10105 TIFFError()
10106 ; return 0; }
10107 EOF
10108 if { (eval echo configure:10109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10109 rm -rf conftest*
10110 eval "ac_cv_lib_$ac_lib_var=yes"
10111 else
10112 echo "configure: failed program was:" >&5
10113 cat conftest.$ac_ext >&5
10114 rm -rf conftest*
10115 eval "ac_cv_lib_$ac_lib_var=no"
10116 fi
10117 rm -f conftest*
10118 LIBS="$ac_save_LIBS"
10119
10120 fi
10121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10122 echo "$ac_t""yes" 1>&6
10123 TIFF_LINK=" -ltiff"
10124 else
10125 echo "$ac_t""no" 1>&6
10126 fi
10127
10128
10129 else
10130 echo "$ac_t""no" 1>&6
10131 fi
10132
10133
10134 if test "x$TIFF_LINK" = "x" ; then
10135 if test "$wxUSE_LIBTIFF" = "sys" ; then
10136 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
10137 else
10138 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
10139 wxUSE_LIBTIFF=builtin
10140 fi
10141 else
10142 wxUSE_LIBTIFF=sys
10143 fi
10144 fi
10145
10146 if test "$wxUSE_LIBTIFF" = "builtin" ; then
10147 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
10148 fi
10149 fi
10150
10151
10152 FREETYPE_INCLUDE=
10153 FREETYPE_LINK=
10154 if test "$wxUSE_FREETYPE" != "no" ; then
10155 cat >> confdefs.h <<\EOF
10156 #define wxUSE_FREETYPE 1
10157 EOF
10158
10159
10160 if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then
10161 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
10162 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
10163 echo "configure:10164: checking for freetype.h" >&5
10164 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10165 echo $ac_n "(cached) $ac_c" 1>&6
10166 else
10167 cat > conftest.$ac_ext <<EOF
10168 #line 10169 "configure"
10169 #include "confdefs.h"
10170 #include <freetype.h>
10171 EOF
10172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10173 { (eval echo configure:10174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10174 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10175 if test -z "$ac_err"; then
10176 rm -rf conftest*
10177 eval "ac_cv_header_$ac_safe=yes"
10178 else
10179 echo "$ac_err" >&5
10180 echo "configure: failed program was:" >&5
10181 cat conftest.$ac_ext >&5
10182 rm -rf conftest*
10183 eval "ac_cv_header_$ac_safe=no"
10184 fi
10185 rm -f conftest*
10186 fi
10187 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10188 echo "$ac_t""yes" 1>&6
10189 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
10190 echo "configure:10191: checking for FT_Render_Glyph in -lfreetype" >&5
10191 ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
10192 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10193 echo $ac_n "(cached) $ac_c" 1>&6
10194 else
10195 ac_save_LIBS="$LIBS"
10196 LIBS="-lfreetype -lm $LIBS"
10197 cat > conftest.$ac_ext <<EOF
10198 #line 10199 "configure"
10199 #include "confdefs.h"
10200 /* Override any gcc2 internal prototype to avoid an error. */
10201 /* We use char because int might match the return type of a gcc2
10202 builtin and then its argument prototype would still apply. */
10203 char FT_Render_Glyph();
10204
10205 int main() {
10206 FT_Render_Glyph()
10207 ; return 0; }
10208 EOF
10209 if { (eval echo configure:10210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10210 rm -rf conftest*
10211 eval "ac_cv_lib_$ac_lib_var=yes"
10212 else
10213 echo "configure: failed program was:" >&5
10214 cat conftest.$ac_ext >&5
10215 rm -rf conftest*
10216 eval "ac_cv_lib_$ac_lib_var=no"
10217 fi
10218 rm -f conftest*
10219 LIBS="$ac_save_LIBS"
10220
10221 fi
10222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10223 echo "$ac_t""yes" 1>&6
10224 FREETYPE_LINK=" -lfreetype"
10225 else
10226 echo "$ac_t""no" 1>&6
10227 fi
10228
10229
10230 else
10231 echo "$ac_t""no" 1>&6
10232 fi
10233
10234
10235 if test "x$FREETYPE_LINK" = "x" ; then
10236 if test "$wxUSE_FREETYPE" = "sys" ; then
10237 { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; }
10238 else
10239 echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2
10240 wxUSE_FREETYPE=builtin
10241 fi
10242 else
10243 wxUSE_FREETYPE=sys
10244 fi
10245 fi
10246
10247 if test "$wxUSE_FREETYPE" = "builtin" ; then
10248 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
10249 fi
10250 fi
10251
10252
10253 AFMINSTALL=
10254
10255 TOOLKIT=
10256 TOOLKIT_INCLUDE=
10257 WIDGET_SET=
10258
10259 if test "$USE_WIN32" = 1 ; then
10260 for ac_hdr in w32api.h
10261 do
10262 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10263 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10264 echo "configure:10265: checking for $ac_hdr" >&5
10265 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10266 echo $ac_n "(cached) $ac_c" 1>&6
10267 else
10268 cat > conftest.$ac_ext <<EOF
10269 #line 10270 "configure"
10270 #include "confdefs.h"
10271 #include <$ac_hdr>
10272 EOF
10273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10274 { (eval echo configure:10275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10276 if test -z "$ac_err"; then
10277 rm -rf conftest*
10278 eval "ac_cv_header_$ac_safe=yes"
10279 else
10280 echo "$ac_err" >&5
10281 echo "configure: failed program was:" >&5
10282 cat conftest.$ac_ext >&5
10283 rm -rf conftest*
10284 eval "ac_cv_header_$ac_safe=no"
10285 fi
10286 rm -f conftest*
10287 fi
10288 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10289 echo "$ac_t""yes" 1>&6
10290 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10291 cat >> confdefs.h <<EOF
10292 #define $ac_tr_hdr 1
10293 EOF
10294
10295 else
10296 echo "$ac_t""no" 1>&6
10297 fi
10298 done
10299
10300 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10301 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
10302 echo "configure:10303: checking for windows.h" >&5
10303 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10304 echo $ac_n "(cached) $ac_c" 1>&6
10305 else
10306 cat > conftest.$ac_ext <<EOF
10307 #line 10308 "configure"
10308 #include "confdefs.h"
10309 #include <windows.h>
10310 EOF
10311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10312 { (eval echo configure:10313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10314 if test -z "$ac_err"; then
10315 rm -rf conftest*
10316 eval "ac_cv_header_$ac_safe=yes"
10317 else
10318 echo "$ac_err" >&5
10319 echo "configure: failed program was:" >&5
10320 cat conftest.$ac_ext >&5
10321 rm -rf conftest*
10322 eval "ac_cv_header_$ac_safe=no"
10323 fi
10324 rm -f conftest*
10325 fi
10326 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10327 echo "$ac_t""yes" 1>&6
10328 :
10329 else
10330 echo "$ac_t""no" 1>&6
10331
10332 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
10333
10334 fi
10335
10336
10337 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
10338 echo "configure:10339: checking if w32api has good enough MSIE support" >&5
10339 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
10340 echo $ac_n "(cached) $ac_c" 1>&6
10341 else
10342
10343 cat > conftest.$ac_ext <<EOF
10344 #line 10345 "configure"
10345 #include "confdefs.h"
10346 #include <w32api.h>
10347 int main() {
10348
10349 #define wxCHECK_W32API_VERSION( major, minor ) \
10350 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
10351 && ( ( __W32API_MAJOR_VERSION > (major) ) \
10352 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
10353
10354 #if !wxCHECK_W32API_VERSION(1,1)
10355 #error You need w32api 1.1 or newer
10356 #endif
10357
10358 ; return 0; }
10359 EOF
10360 if { (eval echo configure:10361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10361 rm -rf conftest*
10362
10363 wx_cv_w32api_win32_ie=yes
10364
10365 else
10366 echo "configure: failed program was:" >&5
10367 cat conftest.$ac_ext >&5
10368 rm -rf conftest*
10369
10370 wx_cv_w32api_win32_ie=no
10371
10372 fi
10373 rm -f conftest*
10374
10375 fi
10376
10377 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
10378 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
10379 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
10380 fi
10381
10382 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
10383
10384 case "${host}" in
10385 *-*-cygwin* )
10386 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
10387 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
10388 esac
10389
10390 if test "$wxUSE_ODBC" = "yes" ; then
10391 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
10392 fi
10393
10394 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
10395 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
10396 fi
10397
10398 if test "$wxUSE_GUI" = "yes"; then
10399 USE_GUI=1
10400
10401 GUI_TK_LIBRARY=
10402
10403 WXGTK12=
10404 WXGTK127=
10405 WXGTK20=
10406
10407 if test "$wxUSE_MSW" = 1 ; then
10408 TOOLKIT=MSW
10409 GUIDIST=MSW_DIST
10410
10411 case "${host}" in
10412 *-*-mingw32* )
10413 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
10414 esac
10415 fi
10416
10417 if test "$wxUSE_GTK" = 1; then
10418 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
10419 echo "configure:10420: checking for GTK+ version" >&5
10420
10421 gtk_version_cached=1
10422 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
10423 echo $ac_n "(cached) $ac_c" 1>&6
10424 else
10425
10426 gtk_version_cached=0
10427 echo "$ac_t""" 1>&6
10428
10429 GTK_MODULES=
10430 if test "$wxUSE_THREADS" = "yes"; then
10431 GTK_MODULES=gthread
10432 fi
10433
10434 wx_cv_lib_gtk=
10435 if test "x$wxUSE_GTK2" = "xyes"; then
10436 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10437 if test "${with_gtk_prefix+set}" = set; then
10438 withval="$with_gtk_prefix"
10439 gtk_config_prefix="$withval"
10440 else
10441 gtk_config_prefix=""
10442 fi
10443
10444 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10445 if test "${with_gtk_exec_prefix+set}" = set; then
10446 withval="$with_gtk_exec_prefix"
10447 gtk_config_exec_prefix="$withval"
10448 else
10449 gtk_config_exec_prefix=""
10450 fi
10451
10452 # Check whether --enable-gtktest or --disable-gtktest was given.
10453 if test "${enable_gtktest+set}" = set; then
10454 enableval="$enable_gtktest"
10455 :
10456 else
10457 enable_gtktest=yes
10458 fi
10459
10460
10461 for module in . $GTK_MODULES
10462 do
10463 case "$module" in
10464 gthread)
10465 gtk_config_args="$gtk_config_args gthread"
10466 ;;
10467 esac
10468 done
10469
10470 if test x$gtk_config_exec_prefix != x ; then
10471 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10472 if test x${GTK_CONFIG_2_0+set} != xset ; then
10473 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
10474 fi
10475 fi
10476 if test x$gtk_config_prefix != x ; then
10477 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10478 if test x${GTK_CONFIG_2_0+set} != xset ; then
10479 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
10480 fi
10481 fi
10482
10483 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
10484 set dummy gtk-config-2.0; ac_word=$2
10485 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10486 echo "configure:10487: checking for $ac_word" >&5
10487 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
10488 echo $ac_n "(cached) $ac_c" 1>&6
10489 else
10490 case "$GTK_CONFIG_2_0" in
10491 /*)
10492 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
10493 ;;
10494 ?:/*)
10495 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
10496 ;;
10497 *)
10498 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10499 ac_dummy="$PATH"
10500 for ac_dir in $ac_dummy; do
10501 test -z "$ac_dir" && ac_dir=.
10502 if test -f $ac_dir/$ac_word; then
10503 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
10504 break
10505 fi
10506 done
10507 IFS="$ac_save_ifs"
10508 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
10509 ;;
10510 esac
10511 fi
10512 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
10513 if test -n "$GTK_CONFIG_2_0"; then
10514 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
10515 else
10516 echo "$ac_t""no" 1>&6
10517 fi
10518
10519 min_gtk_version=1.3.1
10520 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10521 echo "configure:10522: checking for GTK - version >= $min_gtk_version" >&5
10522 no_gtk=""
10523 if test "$GTK_CONFIG_2_0" = "no" ; then
10524 no_gtk=yes
10525 else
10526 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
10527 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
10528 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10529 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10530 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10531 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10532 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10533 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10534 if test "x$enable_gtktest" = "xyes" ; then
10535 ac_save_CFLAGS="$CFLAGS"
10536 ac_save_LIBS="$LIBS"
10537 CFLAGS="$CFLAGS $GTK_CFLAGS"
10538 LIBS="$GTK_LIBS $LIBS"
10539 rm -f conf.gtktest
10540 if test "$cross_compiling" = yes; then
10541 echo $ac_n "cross compiling; assumed OK... $ac_c"
10542 else
10543 cat > conftest.$ac_ext <<EOF
10544 #line 10545 "configure"
10545 #include "confdefs.h"
10546
10547 #include <gtk/gtk.h>
10548 #include <stdio.h>
10549 #include <stdlib.h>
10550
10551 int
10552 main ()
10553 {
10554 int major, minor, micro;
10555 char *tmp_version;
10556
10557 system ("touch conf.gtktest");
10558
10559 /* HP/UX 9 (%@#!) writes to sscanf strings */
10560 tmp_version = g_strdup("$min_gtk_version");
10561 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10562 printf("%s, bad version string\n", "$min_gtk_version");
10563 exit(1);
10564 }
10565
10566 if ((gtk_major_version != $gtk_config_major_version) ||
10567 (gtk_minor_version != $gtk_config_minor_version) ||
10568 (gtk_micro_version != $gtk_config_micro_version))
10569 {
10570 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10571 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10572 gtk_major_version, gtk_minor_version, gtk_micro_version);
10573 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
10574 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10575 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10576 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10577 printf("*** required on your system.\n");
10578 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
10579 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
10580 printf("*** before re-running configure\n");
10581 }
10582 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10583 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10584 (gtk_minor_version != GTK_MINOR_VERSION) ||
10585 (gtk_micro_version != GTK_MICRO_VERSION))
10586 {
10587 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10588 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10589 printf("*** library (version %d.%d.%d)\n",
10590 gtk_major_version, gtk_minor_version, gtk_micro_version);
10591 }
10592 #endif /* defined (GTK_MAJOR_VERSION) ... */
10593 else
10594 {
10595 if ((gtk_major_version > major) ||
10596 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10597 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10598 {
10599 return 0;
10600 }
10601 else
10602 {
10603 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10604 gtk_major_version, gtk_minor_version, gtk_micro_version);
10605 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10606 major, minor, micro);
10607 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10608 printf("***\n");
10609 printf("*** If you have already installed a sufficiently new version, this error\n");
10610 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
10611 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10612 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
10613 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
10614 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10615 printf("*** so that the correct libraries are found at run-time))\n");
10616 }
10617 }
10618 return 1;
10619 }
10620
10621 EOF
10622 if { (eval echo configure:10623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10623 then
10624 :
10625 else
10626 echo "configure: failed program was:" >&5
10627 cat conftest.$ac_ext >&5
10628 rm -fr conftest*
10629 no_gtk=yes
10630 fi
10631 rm -fr conftest*
10632 fi
10633
10634 CFLAGS="$ac_save_CFLAGS"
10635 LIBS="$ac_save_LIBS"
10636 fi
10637 fi
10638 if test "x$no_gtk" = x ; then
10639 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
10640 wx_cv_lib_gtk=2.0
10641 else
10642 echo "$ac_t""no" 1>&6
10643 if test "$GTK_CONFIG_2_0" = "no" ; then
10644 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
10645 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10646 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
10647 echo "*** full path to gtk-config-2.0."
10648 else
10649 if test -f conf.gtktest ; then
10650 :
10651 else
10652 echo "*** Could not run GTK test program, checking why..."
10653 CFLAGS="$CFLAGS $GTK_CFLAGS"
10654 LIBS="$LIBS $GTK_LIBS"
10655 cat > conftest.$ac_ext <<EOF
10656 #line 10657 "configure"
10657 #include "confdefs.h"
10658
10659 #include <gtk/gtk.h>
10660 #include <stdio.h>
10661
10662 int main() {
10663 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10664 ; return 0; }
10665 EOF
10666 if { (eval echo configure:10667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10667 rm -rf conftest*
10668 echo "*** The test program compiled, but did not run. This usually means"
10669 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10670 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10671 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10672 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10673 echo "*** is required on your system"
10674 echo "***"
10675 echo "*** If you have an old version installed, it is best to remove it, although"
10676 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10677 echo "***"
10678 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10679 echo "*** came with the system with the command"
10680 echo "***"
10681 echo "*** rpm --erase --nodeps gtk gtk-devel"
10682 else
10683 echo "configure: failed program was:" >&5
10684 cat conftest.$ac_ext >&5
10685 rm -rf conftest*
10686 echo "*** The test program failed to compile or link. See the file config.log for the"
10687 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10688 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10689 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
10690 fi
10691 rm -f conftest*
10692 CFLAGS="$ac_save_CFLAGS"
10693 LIBS="$ac_save_LIBS"
10694 fi
10695 fi
10696 GTK_CFLAGS=""
10697 GTK_LIBS=""
10698 :
10699 fi
10700
10701
10702 rm -f conf.gtktest
10703
10704 fi
10705
10706 if test -z "$wx_cv_lib_gtk"; then
10707 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10708 if test "${with_gtk_prefix+set}" = set; then
10709 withval="$with_gtk_prefix"
10710 gtk_config_prefix="$withval"
10711 else
10712 gtk_config_prefix=""
10713 fi
10714
10715 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10716 if test "${with_gtk_exec_prefix+set}" = set; then
10717 withval="$with_gtk_exec_prefix"
10718 gtk_config_exec_prefix="$withval"
10719 else
10720 gtk_config_exec_prefix=""
10721 fi
10722
10723 # Check whether --enable-gtktest or --disable-gtktest was given.
10724 if test "${enable_gtktest+set}" = set; then
10725 enableval="$enable_gtktest"
10726 :
10727 else
10728 enable_gtktest=yes
10729 fi
10730
10731
10732 for module in . $GTK_MODULES
10733 do
10734 case "$module" in
10735 gthread)
10736 gtk_config_args="$gtk_config_args gthread"
10737 ;;
10738 esac
10739 done
10740
10741 if test x$gtk_config_exec_prefix != x ; then
10742 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10743 if test x${GTK_CONFIG+set} != xset ; then
10744 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10745 fi
10746 fi
10747 if test x$gtk_config_prefix != x ; then
10748 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10749 if test x${GTK_CONFIG+set} != xset ; then
10750 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10751 fi
10752 fi
10753
10754 # Extract the first word of "gtk-config", so it can be a program name with args.
10755 set dummy gtk-config; ac_word=$2
10756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10757 echo "configure:10758: checking for $ac_word" >&5
10758 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10759 echo $ac_n "(cached) $ac_c" 1>&6
10760 else
10761 case "$GTK_CONFIG" in
10762 /*)
10763 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10764 ;;
10765 ?:/*)
10766 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10767 ;;
10768 *)
10769 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10770 ac_dummy="$PATH"
10771 for ac_dir in $ac_dummy; do
10772 test -z "$ac_dir" && ac_dir=.
10773 if test -f $ac_dir/$ac_word; then
10774 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10775 break
10776 fi
10777 done
10778 IFS="$ac_save_ifs"
10779 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10780 ;;
10781 esac
10782 fi
10783 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10784 if test -n "$GTK_CONFIG"; then
10785 echo "$ac_t""$GTK_CONFIG" 1>&6
10786 else
10787 echo "$ac_t""no" 1>&6
10788 fi
10789
10790 min_gtk_version=1.2.7
10791 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10792 echo "configure:10793: checking for GTK - version >= $min_gtk_version" >&5
10793 no_gtk=""
10794 if test "$GTK_CONFIG" = "no" ; then
10795 no_gtk=yes
10796 else
10797 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10798 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10799 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10800 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10801 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10802 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10803 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10804 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10805 if test "x$enable_gtktest" = "xyes" ; then
10806 ac_save_CFLAGS="$CFLAGS"
10807 ac_save_LIBS="$LIBS"
10808 CFLAGS="$CFLAGS $GTK_CFLAGS"
10809 LIBS="$GTK_LIBS $LIBS"
10810 rm -f conf.gtktest
10811 if test "$cross_compiling" = yes; then
10812 echo $ac_n "cross compiling; assumed OK... $ac_c"
10813 else
10814 cat > conftest.$ac_ext <<EOF
10815 #line 10816 "configure"
10816 #include "confdefs.h"
10817
10818 #include <gtk/gtk.h>
10819 #include <stdio.h>
10820 #include <stdlib.h>
10821
10822 int
10823 main ()
10824 {
10825 int major, minor, micro;
10826 char *tmp_version;
10827
10828 system ("touch conf.gtktest");
10829
10830 /* HP/UX 9 (%@#!) writes to sscanf strings */
10831 tmp_version = g_strdup("$min_gtk_version");
10832 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10833 printf("%s, bad version string\n", "$min_gtk_version");
10834 exit(1);
10835 }
10836
10837 if ((gtk_major_version != $gtk_config_major_version) ||
10838 (gtk_minor_version != $gtk_config_minor_version) ||
10839 (gtk_micro_version != $gtk_config_micro_version))
10840 {
10841 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10842 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10843 gtk_major_version, gtk_minor_version, gtk_micro_version);
10844 printf ("*** was found! If gtk-config was correct, then it is best\n");
10845 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10846 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10847 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10848 printf("*** required on your system.\n");
10849 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10850 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10851 printf("*** before re-running configure\n");
10852 }
10853 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10854 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10855 (gtk_minor_version != GTK_MINOR_VERSION) ||
10856 (gtk_micro_version != GTK_MICRO_VERSION))
10857 {
10858 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10859 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10860 printf("*** library (version %d.%d.%d)\n",
10861 gtk_major_version, gtk_minor_version, gtk_micro_version);
10862 }
10863 #endif /* defined (GTK_MAJOR_VERSION) ... */
10864 else
10865 {
10866 if ((gtk_major_version > major) ||
10867 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10868 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10869 {
10870 return 0;
10871 }
10872 else
10873 {
10874 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10875 gtk_major_version, gtk_minor_version, gtk_micro_version);
10876 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10877 major, minor, micro);
10878 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10879 printf("***\n");
10880 printf("*** If you have already installed a sufficiently new version, this error\n");
10881 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10882 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10883 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10884 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10885 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10886 printf("*** so that the correct libraries are found at run-time))\n");
10887 }
10888 }
10889 return 1;
10890 }
10891
10892 EOF
10893 if { (eval echo configure:10894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10894 then
10895 :
10896 else
10897 echo "configure: failed program was:" >&5
10898 cat conftest.$ac_ext >&5
10899 rm -fr conftest*
10900 no_gtk=yes
10901 fi
10902 rm -fr conftest*
10903 fi
10904
10905 CFLAGS="$ac_save_CFLAGS"
10906 LIBS="$ac_save_LIBS"
10907 fi
10908 fi
10909 if test "x$no_gtk" = x ; then
10910 echo "$ac_t""yes" 1>&6
10911 wx_cv_lib_gtk=1.2.7
10912 else
10913 echo "$ac_t""no" 1>&6
10914 if test "$GTK_CONFIG" = "no" ; then
10915 echo "*** The gtk-config script installed by GTK could not be found"
10916 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10917 echo "*** your path, or set the GTK_CONFIG environment variable to the"
10918 echo "*** full path to gtk-config."
10919 else
10920 if test -f conf.gtktest ; then
10921 :
10922 else
10923 echo "*** Could not run GTK test program, checking why..."
10924 CFLAGS="$CFLAGS $GTK_CFLAGS"
10925 LIBS="$LIBS $GTK_LIBS"
10926 cat > conftest.$ac_ext <<EOF
10927 #line 10928 "configure"
10928 #include "confdefs.h"
10929
10930 #include <gtk/gtk.h>
10931 #include <stdio.h>
10932
10933 int main() {
10934 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10935 ; return 0; }
10936 EOF
10937 if { (eval echo configure:10938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10938 rm -rf conftest*
10939 echo "*** The test program compiled, but did not run. This usually means"
10940 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10941 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10942 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10943 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10944 echo "*** is required on your system"
10945 echo "***"
10946 echo "*** If you have an old version installed, it is best to remove it, although"
10947 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10948 echo "***"
10949 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10950 echo "*** came with the system with the command"
10951 echo "***"
10952 echo "*** rpm --erase --nodeps gtk gtk-devel"
10953 else
10954 echo "configure: failed program was:" >&5
10955 cat conftest.$ac_ext >&5
10956 rm -rf conftest*
10957 echo "*** The test program failed to compile or link. See the file config.log for the"
10958 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10959 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10960 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
10961 fi
10962 rm -f conftest*
10963 CFLAGS="$ac_save_CFLAGS"
10964 LIBS="$ac_save_LIBS"
10965 fi
10966 fi
10967 GTK_CFLAGS=""
10968 GTK_LIBS=""
10969 :
10970 fi
10971
10972
10973 rm -f conf.gtktest
10974
10975 fi
10976
10977 if test -z "$wx_cv_lib_gtk"; then
10978 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10979 if test "${with_gtk_prefix+set}" = set; then
10980 withval="$with_gtk_prefix"
10981 gtk_config_prefix="$withval"
10982 else
10983 gtk_config_prefix=""
10984 fi
10985
10986 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10987 if test "${with_gtk_exec_prefix+set}" = set; then
10988 withval="$with_gtk_exec_prefix"
10989 gtk_config_exec_prefix="$withval"
10990 else
10991 gtk_config_exec_prefix=""
10992 fi
10993
10994 # Check whether --enable-gtktest or --disable-gtktest was given.
10995 if test "${enable_gtktest+set}" = set; then
10996 enableval="$enable_gtktest"
10997 :
10998 else
10999 enable_gtktest=yes
11000 fi
11001
11002
11003 for module in . $GTK_MODULES
11004 do
11005 case "$module" in
11006 gthread)
11007 gtk_config_args="$gtk_config_args gthread"
11008 ;;
11009 esac
11010 done
11011
11012 if test x$gtk_config_exec_prefix != x ; then
11013 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
11014 if test x${GTK_CONFIG+set} != xset ; then
11015 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
11016 fi
11017 fi
11018 if test x$gtk_config_prefix != x ; then
11019 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
11020 if test x${GTK_CONFIG+set} != xset ; then
11021 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
11022 fi
11023 fi
11024
11025 # Extract the first word of "gtk-config", so it can be a program name with args.
11026 set dummy gtk-config; ac_word=$2
11027 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11028 echo "configure:11029: checking for $ac_word" >&5
11029 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
11030 echo $ac_n "(cached) $ac_c" 1>&6
11031 else
11032 case "$GTK_CONFIG" in
11033 /*)
11034 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
11035 ;;
11036 ?:/*)
11037 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
11038 ;;
11039 *)
11040 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11041 ac_dummy="$PATH"
11042 for ac_dir in $ac_dummy; do
11043 test -z "$ac_dir" && ac_dir=.
11044 if test -f $ac_dir/$ac_word; then
11045 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
11046 break
11047 fi
11048 done
11049 IFS="$ac_save_ifs"
11050 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
11051 ;;
11052 esac
11053 fi
11054 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
11055 if test -n "$GTK_CONFIG"; then
11056 echo "$ac_t""$GTK_CONFIG" 1>&6
11057 else
11058 echo "$ac_t""no" 1>&6
11059 fi
11060
11061 min_gtk_version=1.2.3
11062 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
11063 echo "configure:11064: checking for GTK - version >= $min_gtk_version" >&5
11064 no_gtk=""
11065 if test "$GTK_CONFIG" = "no" ; then
11066 no_gtk=yes
11067 else
11068 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
11069 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
11070 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
11071 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11072 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
11073 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11074 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
11075 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11076 if test "x$enable_gtktest" = "xyes" ; then
11077 ac_save_CFLAGS="$CFLAGS"
11078 ac_save_LIBS="$LIBS"
11079 CFLAGS="$CFLAGS $GTK_CFLAGS"
11080 LIBS="$GTK_LIBS $LIBS"
11081 rm -f conf.gtktest
11082 if test "$cross_compiling" = yes; then
11083 echo $ac_n "cross compiling; assumed OK... $ac_c"
11084 else
11085 cat > conftest.$ac_ext <<EOF
11086 #line 11087 "configure"
11087 #include "confdefs.h"
11088
11089 #include <gtk/gtk.h>
11090 #include <stdio.h>
11091 #include <stdlib.h>
11092
11093 int
11094 main ()
11095 {
11096 int major, minor, micro;
11097 char *tmp_version;
11098
11099 system ("touch conf.gtktest");
11100
11101 /* HP/UX 9 (%@#!) writes to sscanf strings */
11102 tmp_version = g_strdup("$min_gtk_version");
11103 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11104 printf("%s, bad version string\n", "$min_gtk_version");
11105 exit(1);
11106 }
11107
11108 if ((gtk_major_version != $gtk_config_major_version) ||
11109 (gtk_minor_version != $gtk_config_minor_version) ||
11110 (gtk_micro_version != $gtk_config_micro_version))
11111 {
11112 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
11113 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11114 gtk_major_version, gtk_minor_version, gtk_micro_version);
11115 printf ("*** was found! If gtk-config was correct, then it is best\n");
11116 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11117 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11118 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11119 printf("*** required on your system.\n");
11120 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
11121 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
11122 printf("*** before re-running configure\n");
11123 }
11124 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
11125 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11126 (gtk_minor_version != GTK_MINOR_VERSION) ||
11127 (gtk_micro_version != GTK_MICRO_VERSION))
11128 {
11129 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11130 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11131 printf("*** library (version %d.%d.%d)\n",
11132 gtk_major_version, gtk_minor_version, gtk_micro_version);
11133 }
11134 #endif /* defined (GTK_MAJOR_VERSION) ... */
11135 else
11136 {
11137 if ((gtk_major_version > major) ||
11138 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11139 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11140 {
11141 return 0;
11142 }
11143 else
11144 {
11145 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11146 gtk_major_version, gtk_minor_version, gtk_micro_version);
11147 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11148 major, minor, micro);
11149 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11150 printf("***\n");
11151 printf("*** If you have already installed a sufficiently new version, this error\n");
11152 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
11153 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11154 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
11155 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
11156 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11157 printf("*** so that the correct libraries are found at run-time))\n");
11158 }
11159 }
11160 return 1;
11161 }
11162
11163 EOF
11164 if { (eval echo configure:11165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11165 then
11166 :
11167 else
11168 echo "configure: failed program was:" >&5
11169 cat conftest.$ac_ext >&5
11170 rm -fr conftest*
11171 no_gtk=yes
11172 fi
11173 rm -fr conftest*
11174 fi
11175
11176 CFLAGS="$ac_save_CFLAGS"
11177 LIBS="$ac_save_LIBS"
11178 fi
11179 fi
11180 if test "x$no_gtk" = x ; then
11181 echo "$ac_t""yes" 1>&6
11182 wx_cv_lib_gtk=1.2.3
11183 else
11184 echo "$ac_t""no" 1>&6
11185 if test "$GTK_CONFIG" = "no" ; then
11186 echo "*** The gtk-config script installed by GTK could not be found"
11187 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
11188 echo "*** your path, or set the GTK_CONFIG environment variable to the"
11189 echo "*** full path to gtk-config."
11190 else
11191 if test -f conf.gtktest ; then
11192 :
11193 else
11194 echo "*** Could not run GTK test program, checking why..."
11195 CFLAGS="$CFLAGS $GTK_CFLAGS"
11196 LIBS="$LIBS $GTK_LIBS"
11197 cat > conftest.$ac_ext <<EOF
11198 #line 11199 "configure"
11199 #include "confdefs.h"
11200
11201 #include <gtk/gtk.h>
11202 #include <stdio.h>
11203
11204 int main() {
11205 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
11206 ; return 0; }
11207 EOF
11208 if { (eval echo configure:11209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11209 rm -rf conftest*
11210 echo "*** The test program compiled, but did not run. This usually means"
11211 echo "*** that the run-time linker is not finding GTK or finding the wrong"
11212 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
11213 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11214 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11215 echo "*** is required on your system"
11216 echo "***"
11217 echo "*** If you have an old version installed, it is best to remove it, although"
11218 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11219 echo "***"
11220 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
11221 echo "*** came with the system with the command"
11222 echo "***"
11223 echo "*** rpm --erase --nodeps gtk gtk-devel"
11224 else
11225 echo "configure: failed program was:" >&5
11226 cat conftest.$ac_ext >&5
11227 rm -rf conftest*
11228 echo "*** The test program failed to compile or link. See the file config.log for the"
11229 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
11230 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
11231 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
11232 fi
11233 rm -f conftest*
11234 CFLAGS="$ac_save_CFLAGS"
11235 LIBS="$ac_save_LIBS"
11236 fi
11237 fi
11238 GTK_CFLAGS=""
11239 GTK_LIBS=""
11240 :
11241 fi
11242
11243
11244 rm -f conf.gtktest
11245
11246 fi
11247
11248 if test -z "$wx_cv_lib_gtk"; then
11249 wx_cv_lib_gtk=none
11250 else
11251 wx_cv_cflags_gtk=$GTK_CFLAGS
11252 wx_cv_libs_gtk=$GTK_LIBS
11253 fi
11254
11255
11256 fi
11257
11258
11259 if test "$gtk_version_cached" = 1; then
11260 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
11261 fi
11262
11263 case "$wx_cv_lib_gtk" in
11264 2.0) WXGTK20=1
11265 ;;
11266 1.2.7) WXGTK127=1
11267 WXGTK12=1
11268 ;;
11269 1.2.3) WXGTK12=1
11270 ;;
11271 *) { echo "configure: error:
11272 Please check that gtk-config is in path, the directory
11273 where GTK+ libraries are installed (returned by
11274 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
11275 equivalent variable and GTK+ is version 1.2.3 or above.
11276 " 1>&2; exit 1; }
11277 ;;
11278 esac
11279
11280 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11281 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
11282
11283 AFMINSTALL=afminstall
11284 TOOLKIT=GTK
11285 GUIDIST=GTK_DIST
11286
11287 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
11288 echo "configure:11289: checking for gdk_im_open in -lgdk" >&5
11289 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
11290 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11291 echo $ac_n "(cached) $ac_c" 1>&6
11292 else
11293 ac_save_LIBS="$LIBS"
11294 LIBS="-lgdk $LIBS"
11295 cat > conftest.$ac_ext <<EOF
11296 #line 11297 "configure"
11297 #include "confdefs.h"
11298 /* Override any gcc2 internal prototype to avoid an error. */
11299 /* We use char because int might match the return type of a gcc2
11300 builtin and then its argument prototype would still apply. */
11301 char gdk_im_open();
11302
11303 int main() {
11304 gdk_im_open()
11305 ; return 0; }
11306 EOF
11307 if { (eval echo configure:11308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11308 rm -rf conftest*
11309 eval "ac_cv_lib_$ac_lib_var=yes"
11310 else
11311 echo "configure: failed program was:" >&5
11312 cat conftest.$ac_ext >&5
11313 rm -rf conftest*
11314 eval "ac_cv_lib_$ac_lib_var=no"
11315 fi
11316 rm -f conftest*
11317 LIBS="$ac_save_LIBS"
11318
11319 fi
11320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11321 echo "$ac_t""yes" 1>&6
11322 cat >> confdefs.h <<\EOF
11323 #define HAVE_XIM 1
11324 EOF
11325
11326 else
11327 echo "$ac_t""no" 1>&6
11328 fi
11329
11330 fi
11331
11332 if test "$wxUSE_MGL" = 1; then
11333 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
11334 echo "configure:11335: checking for SciTech MGL library" >&5
11335 if test "x$MGL_ROOT" = x ; then
11336 echo "$ac_t""not found" 1>&6
11337 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
11338 else
11339 echo "$ac_t""$MGL_ROOT" 1>&6
11340 fi
11341
11342 case "${host}" in
11343 *-*-linux* )
11344 mgl_os=linux/gcc/glibc
11345 ;;
11346 *-pc-msdosdjgpp )
11347 mgl_os=dos32/dj2
11348 ;;
11349 *)
11350 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
11351 esac
11352
11353 mgl_lib_type=""
11354
11355 if test "$wxUSE_DEBUG_FLAG" = yes ; then
11356 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
11357 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
11358 mgl_lib_type=debug
11359 fi
11360 fi
11361 if test "x$mgl_lib_type" = x ; then
11362 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
11363 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
11364 mgl_lib_type=release
11365 else
11366 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
11367 fi
11368 fi
11369
11370 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
11371 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
11372
11373 AFMINSTALL=afminstall
11374 TOOLKIT=MGL
11375 GUIDIST=MGL_DIST
11376 fi
11377
11378 if test "$wxUSE_MICROWIN" = 1; then
11379 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
11380 echo "configure:11381: checking for MicroWindows" >&5
11381 if test "x$MICROWINDOWS" = x ; then
11382 echo "$ac_t""not found" 1>&6
11383 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
11384 else
11385 echo "$ac_t""$MICROWINDOWS" 1>&6
11386 fi
11387
11388 if test -f $MICROWINDOWS/lib/libmwin.a; then
11389 echo "$ac_t""MicroWindows' libraries found." 1>&6
11390 else
11391 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
11392 fi
11393
11394 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
11395 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
11396
11397 AFMINSTALL=afminstall
11398 TOOLKIT=MICROWIN
11399 GUIDIST=MICROWIN_DIST
11400
11401 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
11402 fi
11403
11404 if test "$wxUSE_WINE" = 1; then
11405 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11406 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
11407 echo "configure:11408: checking for windows.h" >&5
11408 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11409 echo $ac_n "(cached) $ac_c" 1>&6
11410 else
11411 cat > conftest.$ac_ext <<EOF
11412 #line 11413 "configure"
11413 #include "confdefs.h"
11414 #include <windows.h>
11415 EOF
11416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11417 { (eval echo configure:11418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11418 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11419 if test -z "$ac_err"; then
11420 rm -rf conftest*
11421 eval "ac_cv_header_$ac_safe=yes"
11422 else
11423 echo "$ac_err" >&5
11424 echo "configure: failed program was:" >&5
11425 cat conftest.$ac_ext >&5
11426 rm -rf conftest*
11427 eval "ac_cv_header_$ac_safe=no"
11428 fi
11429 rm -f conftest*
11430 fi
11431 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11432 echo "$ac_t""yes" 1>&6
11433 :
11434 else
11435 echo "$ac_t""no" 1>&6
11436
11437 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
11438
11439 fi
11440
11441
11442 xpm_link=
11443 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
11444 echo "configure:11445: checking for Xpm library" >&5
11445
11446 ac_find_libraries=
11447 for ac_dir in $SEARCH_LIB;
11448 do
11449 for ac_extension in a so sl dylib; do
11450 if test -f "$ac_dir/libXpm.$ac_extension"; then
11451 ac_find_libraries=$ac_dir
11452 break 2
11453 fi
11454 done
11455 done
11456
11457 if test "$ac_find_libraries" != "" ; then
11458 GUI_TK_LIBRARY="-L$ac_find_libraries"
11459 xpm_link=" -lXpm"
11460 cat >> confdefs.h <<\EOF
11461 #define wxHAVE_LIB_XPM 1
11462 EOF
11463
11464 echo "$ac_t""found at $ac_find_libraries" 1>&6
11465 else
11466 echo "$ac_t""no" 1>&6
11467 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
11468 fi
11469
11470 mesa_link=
11471 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
11472 echo "configure:11473: checking for Mesa library" >&5
11473
11474 ac_find_libraries=
11475 for ac_dir in $SEARCH_LIB;
11476 do
11477 for ac_extension in a so sl dylib; do
11478 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
11479 ac_find_libraries=$ac_dir
11480 break 2
11481 fi
11482 done
11483 done
11484
11485 if test "$ac_find_libraries" != "" ; then
11486 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
11487 mesa_link=" -lMesaGL"
11488 echo "$ac_t""found at $ac_find_libraries" 1>&6
11489 else
11490 { echo "configure: error: no" 1>&2; exit 1; }
11491 fi
11492
11493 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
11494 TOOLKIT=MSW
11495 GUIDIST=MSW_DIST
11496 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
11497 fi
11498
11499 if test "$wxUSE_MOTIF" = 1; then
11500 # If we find X, set shell vars x_includes and x_libraries to the
11501 # paths, otherwise set no_x=yes.
11502 # Uses ac_ vars as temps to allow command line to override cache and checks.
11503 # --without-x overrides everything else, but does not touch the cache.
11504 echo $ac_n "checking for X""... $ac_c" 1>&6
11505 echo "configure:11506: checking for X" >&5
11506
11507 # Check whether --with-x or --without-x was given.
11508 if test "${with_x+set}" = set; then
11509 withval="$with_x"
11510 :
11511 fi
11512
11513 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11514 if test "x$with_x" = xno; then
11515 # The user explicitly disabled X.
11516 have_x=disabled
11517 else
11518 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11519 # Both variables are already set.
11520 have_x=yes
11521 else
11522 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
11523 echo $ac_n "(cached) $ac_c" 1>&6
11524 else
11525 # One or both of the vars are not set, and there is no cached value.
11526 ac_x_includes=NO ac_x_libraries=NO
11527 rm -fr conftestdir
11528 if mkdir conftestdir; then
11529 cd conftestdir
11530 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
11531 cat > Imakefile <<'EOF'
11532 acfindx:
11533 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11534 EOF
11535 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11536 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11537 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11538 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11539 for ac_extension in a so sl; do
11540 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
11541 test -f $ac_im_libdir/libX11.$ac_extension; then
11542 ac_im_usrlibdir=$ac_im_libdir; break
11543 fi
11544 done
11545 # Screen out bogus values from the imake configuration. They are
11546 # bogus both because they are the default anyway, and because
11547 # using them would break gcc on systems where it needs fixed includes.
11548 case "$ac_im_incroot" in
11549 /usr/include) ;;
11550 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
11551 esac
11552 case "$ac_im_usrlibdir" in
11553 /usr/lib | /lib) ;;
11554 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
11555 esac
11556 fi
11557 cd ..
11558 rm -fr conftestdir
11559 fi
11560
11561 if test "$ac_x_includes" = NO; then
11562 # Guess where to find include files, by looking for this one X11 .h file.
11563 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
11564
11565 # First, try using that file with no special directory specified.
11566 cat > conftest.$ac_ext <<EOF
11567 #line 11568 "configure"
11568 #include "confdefs.h"
11569 #include <$x_direct_test_include>
11570 EOF
11571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11572 { (eval echo configure:11573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11573 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11574 if test -z "$ac_err"; then
11575 rm -rf conftest*
11576 # We can compile using X headers with no special include directory.
11577 ac_x_includes=
11578 else
11579 echo "$ac_err" >&5
11580 echo "configure: failed program was:" >&5
11581 cat conftest.$ac_ext >&5
11582 rm -rf conftest*
11583 # Look for the header file in a standard set of common directories.
11584 # Check X11 before X11Rn because it is often a symlink to the current release.
11585 for ac_dir in \
11586 /usr/X11/include \
11587 /usr/X11R6/include \
11588 /usr/X11R5/include \
11589 /usr/X11R4/include \
11590 \
11591 /usr/include/X11 \
11592 /usr/include/X11R6 \
11593 /usr/include/X11R5 \
11594 /usr/include/X11R4 \
11595 \
11596 /usr/local/X11/include \
11597 /usr/local/X11R6/include \
11598 /usr/local/X11R5/include \
11599 /usr/local/X11R4/include \
11600 \
11601 /usr/local/include/X11 \
11602 /usr/local/include/X11R6 \
11603 /usr/local/include/X11R5 \
11604 /usr/local/include/X11R4 \
11605 \
11606 /usr/X386/include \
11607 /usr/x386/include \
11608 /usr/XFree86/include/X11 \
11609 \
11610 /usr/include \
11611 /usr/local/include \
11612 /usr/unsupported/include \
11613 /usr/athena/include \
11614 /usr/local/x11r5/include \
11615 /usr/lpp/Xamples/include \
11616 \
11617 /usr/openwin/include \
11618 /usr/openwin/share/include \
11619 ; \
11620 do
11621 if test -r "$ac_dir/$x_direct_test_include"; then
11622 ac_x_includes=$ac_dir
11623 break
11624 fi
11625 done
11626 fi
11627 rm -f conftest*
11628 fi # $ac_x_includes = NO
11629
11630 if test "$ac_x_libraries" = NO; then
11631 # Check for the libraries.
11632
11633 test -z "$x_direct_test_library" && x_direct_test_library=Xt
11634 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
11635
11636 # See if we find them without any special options.
11637 # Don't add to $LIBS permanently.
11638 ac_save_LIBS="$LIBS"
11639 LIBS="-l$x_direct_test_library $LIBS"
11640 cat > conftest.$ac_ext <<EOF
11641 #line 11642 "configure"
11642 #include "confdefs.h"
11643
11644 int main() {
11645 ${x_direct_test_function}()
11646 ; return 0; }
11647 EOF
11648 if { (eval echo configure:11649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11649 rm -rf conftest*
11650 LIBS="$ac_save_LIBS"
11651 # We can link X programs with no special library path.
11652 ac_x_libraries=
11653 else
11654 echo "configure: failed program was:" >&5
11655 cat conftest.$ac_ext >&5
11656 rm -rf conftest*
11657 LIBS="$ac_save_LIBS"
11658 # First see if replacing the include by lib works.
11659 # Check X11 before X11Rn because it is often a symlink to the current release.
11660 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
11661 /usr/X11/lib \
11662 /usr/X11R6/lib \
11663 /usr/X11R5/lib \
11664 /usr/X11R4/lib \
11665 \
11666 /usr/lib/X11 \
11667 /usr/lib/X11R6 \
11668 /usr/lib/X11R5 \
11669 /usr/lib/X11R4 \
11670 \
11671 /usr/local/X11/lib \
11672 /usr/local/X11R6/lib \
11673 /usr/local/X11R5/lib \
11674 /usr/local/X11R4/lib \
11675 \
11676 /usr/local/lib/X11 \
11677 /usr/local/lib/X11R6 \
11678 /usr/local/lib/X11R5 \
11679 /usr/local/lib/X11R4 \
11680 \
11681 /usr/X386/lib \
11682 /usr/x386/lib \
11683 /usr/XFree86/lib/X11 \
11684 \
11685 /usr/lib \
11686 /usr/local/lib \
11687 /usr/unsupported/lib \
11688 /usr/athena/lib \
11689 /usr/local/x11r5/lib \
11690 /usr/lpp/Xamples/lib \
11691 /lib/usr/lib/X11 \
11692 \
11693 /usr/openwin/lib \
11694 /usr/openwin/share/lib \
11695 ; \
11696 do
11697 for ac_extension in a so sl; do
11698 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
11699 ac_x_libraries=$ac_dir
11700 break 2
11701 fi
11702 done
11703 done
11704 fi
11705 rm -f conftest*
11706 fi # $ac_x_libraries = NO
11707
11708 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
11709 # Didn't find X anywhere. Cache the known absence of X.
11710 ac_cv_have_x="have_x=no"
11711 else
11712 # Record where we found X for the cache.
11713 ac_cv_have_x="have_x=yes \
11714 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11715 fi
11716 fi
11717 fi
11718 eval "$ac_cv_have_x"
11719 fi # $with_x != no
11720
11721 if test "$have_x" != yes; then
11722 echo "$ac_t""$have_x" 1>&6
11723 no_x=yes
11724 else
11725 # If each of the values was on the command line, it overrides each guess.
11726 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11727 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11728 # Update the cache value to reflect the command line values.
11729 ac_cv_have_x="have_x=yes \
11730 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
11731 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
11732 fi
11733
11734 if test "$no_x" = yes; then
11735 # Not all programs may use this symbol, but it does not hurt to define it.
11736 cat >> confdefs.h <<\EOF
11737 #define X_DISPLAY_MISSING 1
11738 EOF
11739
11740 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11741 else
11742 if test -n "$x_includes"; then
11743 X_CFLAGS="$X_CFLAGS -I$x_includes"
11744 fi
11745
11746 # It would also be nice to do this for all -L options, not just this one.
11747 if test -n "$x_libraries"; then
11748 X_LIBS="$X_LIBS -L$x_libraries"
11749 # For Solaris; some versions of Sun CC require a space after -R and
11750 # others require no space. Words are not sufficient . . . .
11751 case "`(uname -sr) 2>/dev/null`" in
11752 "SunOS 5"*)
11753 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
11754 echo "configure:11755: checking whether -R must be followed by a space" >&5
11755 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
11756 cat > conftest.$ac_ext <<EOF
11757 #line 11758 "configure"
11758 #include "confdefs.h"
11759
11760 int main() {
11761
11762 ; return 0; }
11763 EOF
11764 if { (eval echo configure:11765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11765 rm -rf conftest*
11766 ac_R_nospace=yes
11767 else
11768 echo "configure: failed program was:" >&5
11769 cat conftest.$ac_ext >&5
11770 rm -rf conftest*
11771 ac_R_nospace=no
11772 fi
11773 rm -f conftest*
11774 if test $ac_R_nospace = yes; then
11775 echo "$ac_t""no" 1>&6
11776 X_LIBS="$X_LIBS -R$x_libraries"
11777 else
11778 LIBS="$ac_xsave_LIBS -R $x_libraries"
11779 cat > conftest.$ac_ext <<EOF
11780 #line 11781 "configure"
11781 #include "confdefs.h"
11782
11783 int main() {
11784
11785 ; return 0; }
11786 EOF
11787 if { (eval echo configure:11788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11788 rm -rf conftest*
11789 ac_R_space=yes
11790 else
11791 echo "configure: failed program was:" >&5
11792 cat conftest.$ac_ext >&5
11793 rm -rf conftest*
11794 ac_R_space=no
11795 fi
11796 rm -f conftest*
11797 if test $ac_R_space = yes; then
11798 echo "$ac_t""yes" 1>&6
11799 X_LIBS="$X_LIBS -R $x_libraries"
11800 else
11801 echo "$ac_t""neither works" 1>&6
11802 fi
11803 fi
11804 LIBS="$ac_xsave_LIBS"
11805 esac
11806 fi
11807
11808 # Check for system-dependent libraries X programs must link with.
11809 # Do this before checking for the system-independent R6 libraries
11810 # (-lICE), since we may need -lsocket or whatever for X linking.
11811
11812 if test "$ISC" = yes; then
11813 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11814 else
11815 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
11816 # libraries were built with DECnet support. And karl@cs.umb.edu says
11817 # the Alpha needs dnet_stub (dnet does not exist).
11818 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
11819 echo "configure:11820: checking for dnet_ntoa in -ldnet" >&5
11820 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11821 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11822 echo $ac_n "(cached) $ac_c" 1>&6
11823 else
11824 ac_save_LIBS="$LIBS"
11825 LIBS="-ldnet $LIBS"
11826 cat > conftest.$ac_ext <<EOF
11827 #line 11828 "configure"
11828 #include "confdefs.h"
11829 /* Override any gcc2 internal prototype to avoid an error. */
11830 /* We use char because int might match the return type of a gcc2
11831 builtin and then its argument prototype would still apply. */
11832 char dnet_ntoa();
11833
11834 int main() {
11835 dnet_ntoa()
11836 ; return 0; }
11837 EOF
11838 if { (eval echo configure:11839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11839 rm -rf conftest*
11840 eval "ac_cv_lib_$ac_lib_var=yes"
11841 else
11842 echo "configure: failed program was:" >&5
11843 cat conftest.$ac_ext >&5
11844 rm -rf conftest*
11845 eval "ac_cv_lib_$ac_lib_var=no"
11846 fi
11847 rm -f conftest*
11848 LIBS="$ac_save_LIBS"
11849
11850 fi
11851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11852 echo "$ac_t""yes" 1>&6
11853 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11854 else
11855 echo "$ac_t""no" 1>&6
11856 fi
11857
11858 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11859 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
11860 echo "configure:11861: checking for dnet_ntoa in -ldnet_stub" >&5
11861 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11862 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11863 echo $ac_n "(cached) $ac_c" 1>&6
11864 else
11865 ac_save_LIBS="$LIBS"
11866 LIBS="-ldnet_stub $LIBS"
11867 cat > conftest.$ac_ext <<EOF
11868 #line 11869 "configure"
11869 #include "confdefs.h"
11870 /* Override any gcc2 internal prototype to avoid an error. */
11871 /* We use char because int might match the return type of a gcc2
11872 builtin and then its argument prototype would still apply. */
11873 char dnet_ntoa();
11874
11875 int main() {
11876 dnet_ntoa()
11877 ; return 0; }
11878 EOF
11879 if { (eval echo configure:11880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11880 rm -rf conftest*
11881 eval "ac_cv_lib_$ac_lib_var=yes"
11882 else
11883 echo "configure: failed program was:" >&5
11884 cat conftest.$ac_ext >&5
11885 rm -rf conftest*
11886 eval "ac_cv_lib_$ac_lib_var=no"
11887 fi
11888 rm -f conftest*
11889 LIBS="$ac_save_LIBS"
11890
11891 fi
11892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11893 echo "$ac_t""yes" 1>&6
11894 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
11895 else
11896 echo "$ac_t""no" 1>&6
11897 fi
11898
11899 fi
11900
11901 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11902 # to get the SysV transport functions.
11903 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
11904 # needs -lnsl.
11905 # The nsl library prevents programs from opening the X display
11906 # on Irix 5.2, according to dickey@clark.net.
11907 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
11908 echo "configure:11909: checking for gethostbyname" >&5
11909 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
11910 echo $ac_n "(cached) $ac_c" 1>&6
11911 else
11912 cat > conftest.$ac_ext <<EOF
11913 #line 11914 "configure"
11914 #include "confdefs.h"
11915 /* System header to define __stub macros and hopefully few prototypes,
11916 which can conflict with char gethostbyname(); below. */
11917 #include <assert.h>
11918 /* Override any gcc2 internal prototype to avoid an error. */
11919 /* We use char because int might match the return type of a gcc2
11920 builtin and then its argument prototype would still apply. */
11921 char gethostbyname();
11922
11923 int main() {
11924
11925 /* The GNU C library defines this for functions which it implements
11926 to always fail with ENOSYS. Some functions are actually named
11927 something starting with __ and the normal name is an alias. */
11928 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11929 choke me
11930 #else
11931 gethostbyname();
11932 #endif
11933
11934 ; return 0; }
11935 EOF
11936 if { (eval echo configure:11937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11937 rm -rf conftest*
11938 eval "ac_cv_func_gethostbyname=yes"
11939 else
11940 echo "configure: failed program was:" >&5
11941 cat conftest.$ac_ext >&5
11942 rm -rf conftest*
11943 eval "ac_cv_func_gethostbyname=no"
11944 fi
11945 rm -f conftest*
11946 fi
11947
11948 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
11949 echo "$ac_t""yes" 1>&6
11950 :
11951 else
11952 echo "$ac_t""no" 1>&6
11953 fi
11954
11955 if test $ac_cv_func_gethostbyname = no; then
11956 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
11957 echo "configure:11958: checking for gethostbyname in -lnsl" >&5
11958 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
11959 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11960 echo $ac_n "(cached) $ac_c" 1>&6
11961 else
11962 ac_save_LIBS="$LIBS"
11963 LIBS="-lnsl $LIBS"
11964 cat > conftest.$ac_ext <<EOF
11965 #line 11966 "configure"
11966 #include "confdefs.h"
11967 /* Override any gcc2 internal prototype to avoid an error. */
11968 /* We use char because int might match the return type of a gcc2
11969 builtin and then its argument prototype would still apply. */
11970 char gethostbyname();
11971
11972 int main() {
11973 gethostbyname()
11974 ; return 0; }
11975 EOF
11976 if { (eval echo configure:11977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11977 rm -rf conftest*
11978 eval "ac_cv_lib_$ac_lib_var=yes"
11979 else
11980 echo "configure: failed program was:" >&5
11981 cat conftest.$ac_ext >&5
11982 rm -rf conftest*
11983 eval "ac_cv_lib_$ac_lib_var=no"
11984 fi
11985 rm -f conftest*
11986 LIBS="$ac_save_LIBS"
11987
11988 fi
11989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11990 echo "$ac_t""yes" 1>&6
11991 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11992 else
11993 echo "$ac_t""no" 1>&6
11994 fi
11995
11996 fi
11997
11998 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11999 # socket/setsockopt and other routines are undefined under SCO ODT
12000 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12001 # on later versions), says simon@lia.di.epfl.ch: it contains
12002 # gethostby* variants that don't use the nameserver (or something).
12003 # -lsocket must be given before -lnsl if both are needed.
12004 # We assume that if connect needs -lnsl, so does gethostbyname.
12005 echo $ac_n "checking for connect""... $ac_c" 1>&6
12006 echo "configure:12007: checking for connect" >&5
12007 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
12008 echo $ac_n "(cached) $ac_c" 1>&6
12009 else
12010 cat > conftest.$ac_ext <<EOF
12011 #line 12012 "configure"
12012 #include "confdefs.h"
12013 /* System header to define __stub macros and hopefully few prototypes,
12014 which can conflict with char connect(); below. */
12015 #include <assert.h>
12016 /* Override any gcc2 internal prototype to avoid an error. */
12017 /* We use char because int might match the return type of a gcc2
12018 builtin and then its argument prototype would still apply. */
12019 char connect();
12020
12021 int main() {
12022
12023 /* The GNU C library defines this for functions which it implements
12024 to always fail with ENOSYS. Some functions are actually named
12025 something starting with __ and the normal name is an alias. */
12026 #if defined (__stub_connect) || defined (__stub___connect)
12027 choke me
12028 #else
12029 connect();
12030 #endif
12031
12032 ; return 0; }
12033 EOF
12034 if { (eval echo configure:12035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12035 rm -rf conftest*
12036 eval "ac_cv_func_connect=yes"
12037 else
12038 echo "configure: failed program was:" >&5
12039 cat conftest.$ac_ext >&5
12040 rm -rf conftest*
12041 eval "ac_cv_func_connect=no"
12042 fi
12043 rm -f conftest*
12044 fi
12045
12046 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
12047 echo "$ac_t""yes" 1>&6
12048 :
12049 else
12050 echo "$ac_t""no" 1>&6
12051 fi
12052
12053 if test $ac_cv_func_connect = no; then
12054 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
12055 echo "configure:12056: checking for connect in -lsocket" >&5
12056 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
12057 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12058 echo $ac_n "(cached) $ac_c" 1>&6
12059 else
12060 ac_save_LIBS="$LIBS"
12061 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12062 cat > conftest.$ac_ext <<EOF
12063 #line 12064 "configure"
12064 #include "confdefs.h"
12065 /* Override any gcc2 internal prototype to avoid an error. */
12066 /* We use char because int might match the return type of a gcc2
12067 builtin and then its argument prototype would still apply. */
12068 char connect();
12069
12070 int main() {
12071 connect()
12072 ; return 0; }
12073 EOF
12074 if { (eval echo configure:12075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12075 rm -rf conftest*
12076 eval "ac_cv_lib_$ac_lib_var=yes"
12077 else
12078 echo "configure: failed program was:" >&5
12079 cat conftest.$ac_ext >&5
12080 rm -rf conftest*
12081 eval "ac_cv_lib_$ac_lib_var=no"
12082 fi
12083 rm -f conftest*
12084 LIBS="$ac_save_LIBS"
12085
12086 fi
12087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12088 echo "$ac_t""yes" 1>&6
12089 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12090 else
12091 echo "$ac_t""no" 1>&6
12092 fi
12093
12094 fi
12095
12096 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
12097 echo $ac_n "checking for remove""... $ac_c" 1>&6
12098 echo "configure:12099: checking for remove" >&5
12099 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
12100 echo $ac_n "(cached) $ac_c" 1>&6
12101 else
12102 cat > conftest.$ac_ext <<EOF
12103 #line 12104 "configure"
12104 #include "confdefs.h"
12105 /* System header to define __stub macros and hopefully few prototypes,
12106 which can conflict with char remove(); below. */
12107 #include <assert.h>
12108 /* Override any gcc2 internal prototype to avoid an error. */
12109 /* We use char because int might match the return type of a gcc2
12110 builtin and then its argument prototype would still apply. */
12111 char remove();
12112
12113 int main() {
12114
12115 /* The GNU C library defines this for functions which it implements
12116 to always fail with ENOSYS. Some functions are actually named
12117 something starting with __ and the normal name is an alias. */
12118 #if defined (__stub_remove) || defined (__stub___remove)
12119 choke me
12120 #else
12121 remove();
12122 #endif
12123
12124 ; return 0; }
12125 EOF
12126 if { (eval echo configure:12127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12127 rm -rf conftest*
12128 eval "ac_cv_func_remove=yes"
12129 else
12130 echo "configure: failed program was:" >&5
12131 cat conftest.$ac_ext >&5
12132 rm -rf conftest*
12133 eval "ac_cv_func_remove=no"
12134 fi
12135 rm -f conftest*
12136 fi
12137
12138 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
12139 echo "$ac_t""yes" 1>&6
12140 :
12141 else
12142 echo "$ac_t""no" 1>&6
12143 fi
12144
12145 if test $ac_cv_func_remove = no; then
12146 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
12147 echo "configure:12148: checking for remove in -lposix" >&5
12148 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
12149 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12150 echo $ac_n "(cached) $ac_c" 1>&6
12151 else
12152 ac_save_LIBS="$LIBS"
12153 LIBS="-lposix $LIBS"
12154 cat > conftest.$ac_ext <<EOF
12155 #line 12156 "configure"
12156 #include "confdefs.h"
12157 /* Override any gcc2 internal prototype to avoid an error. */
12158 /* We use char because int might match the return type of a gcc2
12159 builtin and then its argument prototype would still apply. */
12160 char remove();
12161
12162 int main() {
12163 remove()
12164 ; return 0; }
12165 EOF
12166 if { (eval echo configure:12167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12167 rm -rf conftest*
12168 eval "ac_cv_lib_$ac_lib_var=yes"
12169 else
12170 echo "configure: failed program was:" >&5
12171 cat conftest.$ac_ext >&5
12172 rm -rf conftest*
12173 eval "ac_cv_lib_$ac_lib_var=no"
12174 fi
12175 rm -f conftest*
12176 LIBS="$ac_save_LIBS"
12177
12178 fi
12179 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12180 echo "$ac_t""yes" 1>&6
12181 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12182 else
12183 echo "$ac_t""no" 1>&6
12184 fi
12185
12186 fi
12187
12188 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12189 echo $ac_n "checking for shmat""... $ac_c" 1>&6
12190 echo "configure:12191: checking for shmat" >&5
12191 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
12192 echo $ac_n "(cached) $ac_c" 1>&6
12193 else
12194 cat > conftest.$ac_ext <<EOF
12195 #line 12196 "configure"
12196 #include "confdefs.h"
12197 /* System header to define __stub macros and hopefully few prototypes,
12198 which can conflict with char shmat(); below. */
12199 #include <assert.h>
12200 /* Override any gcc2 internal prototype to avoid an error. */
12201 /* We use char because int might match the return type of a gcc2
12202 builtin and then its argument prototype would still apply. */
12203 char shmat();
12204
12205 int main() {
12206
12207 /* The GNU C library defines this for functions which it implements
12208 to always fail with ENOSYS. Some functions are actually named
12209 something starting with __ and the normal name is an alias. */
12210 #if defined (__stub_shmat) || defined (__stub___shmat)
12211 choke me
12212 #else
12213 shmat();
12214 #endif
12215
12216 ; return 0; }
12217 EOF
12218 if { (eval echo configure:12219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12219 rm -rf conftest*
12220 eval "ac_cv_func_shmat=yes"
12221 else
12222 echo "configure: failed program was:" >&5
12223 cat conftest.$ac_ext >&5
12224 rm -rf conftest*
12225 eval "ac_cv_func_shmat=no"
12226 fi
12227 rm -f conftest*
12228 fi
12229
12230 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
12231 echo "$ac_t""yes" 1>&6
12232 :
12233 else
12234 echo "$ac_t""no" 1>&6
12235 fi
12236
12237 if test $ac_cv_func_shmat = no; then
12238 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
12239 echo "configure:12240: checking for shmat in -lipc" >&5
12240 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
12241 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12242 echo $ac_n "(cached) $ac_c" 1>&6
12243 else
12244 ac_save_LIBS="$LIBS"
12245 LIBS="-lipc $LIBS"
12246 cat > conftest.$ac_ext <<EOF
12247 #line 12248 "configure"
12248 #include "confdefs.h"
12249 /* Override any gcc2 internal prototype to avoid an error. */
12250 /* We use char because int might match the return type of a gcc2
12251 builtin and then its argument prototype would still apply. */
12252 char shmat();
12253
12254 int main() {
12255 shmat()
12256 ; return 0; }
12257 EOF
12258 if { (eval echo configure:12259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12259 rm -rf conftest*
12260 eval "ac_cv_lib_$ac_lib_var=yes"
12261 else
12262 echo "configure: failed program was:" >&5
12263 cat conftest.$ac_ext >&5
12264 rm -rf conftest*
12265 eval "ac_cv_lib_$ac_lib_var=no"
12266 fi
12267 rm -f conftest*
12268 LIBS="$ac_save_LIBS"
12269
12270 fi
12271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12272 echo "$ac_t""yes" 1>&6
12273 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12274 else
12275 echo "$ac_t""no" 1>&6
12276 fi
12277
12278 fi
12279 fi
12280
12281 # Check for libraries that X11R6 Xt/Xaw programs need.
12282 ac_save_LDFLAGS="$LDFLAGS"
12283 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12284 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12285 # check for ICE first), but we must link in the order -lSM -lICE or
12286 # we get undefined symbols. So assume we have SM if we have ICE.
12287 # These have to be linked with before -lX11, unlike the other
12288 # libraries we check for below, so use a different variable.
12289 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
12290 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
12291 echo "configure:12292: checking for IceConnectionNumber in -lICE" >&5
12292 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
12293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12294 echo $ac_n "(cached) $ac_c" 1>&6
12295 else
12296 ac_save_LIBS="$LIBS"
12297 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12298 cat > conftest.$ac_ext <<EOF
12299 #line 12300 "configure"
12300 #include "confdefs.h"
12301 /* Override any gcc2 internal prototype to avoid an error. */
12302 /* We use char because int might match the return type of a gcc2
12303 builtin and then its argument prototype would still apply. */
12304 char IceConnectionNumber();
12305
12306 int main() {
12307 IceConnectionNumber()
12308 ; return 0; }
12309 EOF
12310 if { (eval echo configure:12311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12311 rm -rf conftest*
12312 eval "ac_cv_lib_$ac_lib_var=yes"
12313 else
12314 echo "configure: failed program was:" >&5
12315 cat conftest.$ac_ext >&5
12316 rm -rf conftest*
12317 eval "ac_cv_lib_$ac_lib_var=no"
12318 fi
12319 rm -f conftest*
12320 LIBS="$ac_save_LIBS"
12321
12322 fi
12323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12324 echo "$ac_t""yes" 1>&6
12325 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12326 else
12327 echo "$ac_t""no" 1>&6
12328 fi
12329
12330 LDFLAGS="$ac_save_LDFLAGS"
12331
12332 fi
12333
12334
12335 if test "$no_x" = "yes"; then
12336 { echo "configure: error: X11 not found" 1>&2; exit 1; }
12337 fi
12338
12339 GUI_TK_LIBRARY="$X_LIBS"
12340 TOOLKIT_INCLUDE="$X_CFLAGS"
12341 AFMINSTALL=afminstall
12342 COMPILED_X_PROGRAM=0
12343
12344 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
12345 echo "configure:12346: checking for Motif/Lesstif headers" >&5
12346
12347 ac_find_includes=
12348 for ac_dir in $SEARCH_INCLUDE;
12349 do
12350 if test -f "$ac_dir/Xm/Xm.h"; then
12351 ac_find_includes=$ac_dir
12352 break
12353 fi
12354 done
12355
12356 if test "$ac_find_includes" != "" ; then
12357 echo "$ac_t""found $ac_find_includes" 1>&6
12358 else
12359 cat > conftest.$ac_ext <<EOF
12360 #line 12361 "configure"
12361 #include "confdefs.h"
12362
12363 #include <Xm/Xm.h>
12364
12365 int main() {
12366
12367 int version;
12368 version = xmUseVersion;
12369
12370 ; return 0; }
12371 EOF
12372 if { (eval echo configure:12373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12373 rm -rf conftest*
12374
12375 echo "$ac_t""found in default search path" 1>&6
12376 COMPILED_X_PROGRAM=1
12377
12378 else
12379 echo "configure: failed program was:" >&5
12380 cat conftest.$ac_ext >&5
12381 rm -rf conftest*
12382
12383 echo "$ac_t""no" 1>&6
12384 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
12385
12386
12387 fi
12388 rm -f conftest*
12389 fi
12390
12391 if test "$COMPILED_X_PROGRAM" = 0; then
12392 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
12393 echo "configure:12394: checking for Motif/Lesstif library" >&5
12394
12395 ac_find_libraries=
12396 for ac_dir in $SEARCH_LIB;
12397 do
12398 for ac_extension in a so sl dylib; do
12399 if test -f "$ac_dir/libXm.$ac_extension"; then
12400 ac_find_libraries=$ac_dir
12401 break 2
12402 fi
12403 done
12404 done
12405
12406 if test "$ac_find_libraries" != "" ; then
12407
12408 ac_path_to_include=$ac_find_includes
12409 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
12410 result=$?
12411 if test $result = 0; then
12412 ac_path_to_include=""
12413 else
12414 ac_path_to_include=" -I$ac_find_includes"
12415 fi
12416
12417
12418 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12419 result=$?
12420 if test $result = 0; then
12421 ac_path_to_link=""
12422 else
12423 ac_path_to_link=" -L$ac_find_libraries"
12424 fi
12425
12426
12427 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
12428 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
12429 echo "$ac_t""found at $ac_find_libraries" 1>&6
12430 else
12431 cat > conftest.$ac_ext <<EOF
12432 #line 12433 "configure"
12433 #include "confdefs.h"
12434
12435 #include <Xm/Xm.h>
12436
12437 int main() {
12438
12439 int version;
12440 version = xmUseVersion;
12441
12442 ; return 0; }
12443 EOF
12444 if { (eval echo configure:12445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12445 rm -rf conftest*
12446
12447 echo "$ac_t""found in default search path" 1>&6
12448 COMPILED_X_PROGRAM=1
12449
12450 else
12451 echo "configure: failed program was:" >&5
12452 cat conftest.$ac_ext >&5
12453 rm -rf conftest*
12454
12455 echo "$ac_t""no" 1>&6
12456 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
12457
12458
12459 fi
12460 rm -f conftest*
12461 fi
12462 fi
12463
12464 xpm_link=
12465 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
12466 echo "configure:12467: checking for Xpm library" >&5
12467
12468 ac_find_libraries=
12469 for ac_dir in $SEARCH_LIB;
12470 do
12471 for ac_extension in a so sl dylib; do
12472 if test -f "$ac_dir/libXpm.$ac_extension"; then
12473 ac_find_libraries=$ac_dir
12474 break 2
12475 fi
12476 done
12477 done
12478
12479 if test "$ac_find_libraries" != "" ; then
12480
12481 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12482 result=$?
12483 if test $result = 0; then
12484 ac_path_to_link=""
12485 else
12486 ac_path_to_link=" -L$ac_find_libraries"
12487 fi
12488
12489 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
12490 xpm_link=" -lXpm"
12491 cat >> confdefs.h <<\EOF
12492 #define wxHAVE_LIB_XPM 1
12493 EOF
12494
12495 echo "$ac_t""found at $ac_find_libraries" 1>&6
12496 else
12497 cat > conftest.$ac_ext <<EOF
12498 #line 12499 "configure"
12499 #include "confdefs.h"
12500
12501 #include <X11/xpm.h>
12502
12503 int main() {
12504
12505 int version;
12506 version = XpmLibraryVersion();
12507
12508 ; return 0; }
12509 EOF
12510 if { (eval echo configure:12511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12511 rm -rf conftest*
12512
12513 xpm_link=" -lXpm"
12514 cat >> confdefs.h <<\EOF
12515 #define wxHAVE_LIB_XPM 1
12516 EOF
12517
12518 echo "$ac_t""found in default search path" 1>&6
12519 COMPILED_X_PROGRAM=0
12520
12521 else
12522 echo "configure: failed program was:" >&5
12523 cat conftest.$ac_ext >&5
12524 rm -rf conftest*
12525
12526 echo "$ac_t""no" 1>&6
12527 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12528
12529
12530 fi
12531 rm -f conftest*
12532 fi
12533
12534 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
12535 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
12536 TOOLKIT=MOTIF
12537 GUIDIST=MOTIF_DIST
12538 fi
12539
12540 if test "$wxUSE_MAC" = 1; then
12541 if test "$wxUSE_PRECOMP" = "yes"; then
12542 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12543 fi
12544 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
12545 CFLAGS="$CFLAGS -fpascal-strings"
12546 CXXFLAGS="$CXXFLAGS -fpascal-strings"
12547
12548 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
12549 TOOLKIT=MAC
12550 GUIDIST=MACX_DIST
12551 fi
12552
12553 if test "$wxUSE_PM" = 1; then
12554 TOOLKIT=PM
12555 GUIDIST=GTK_DIST
12556 fi
12557
12558 if test "$TOOLKIT" = "PM" ; then
12559 TOOLKIT_DIR="os2"
12560 else
12561 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
12562 fi
12563
12564 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
12565
12566 if test "$wxUSE_UNIVERSAL" = "yes"; then
12567 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
12568 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
12569 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
12570 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
12571 WIDGET_SET=univ
12572 else
12573 ALL_OBJECTS="\$(GUIOBJS)"
12574 fi
12575
12576 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
12577
12578 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
12579 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
12580 fi
12581
12582 if test "$wxUSE_HTML" = "yes"; then
12583 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
12584 fi
12585
12586 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
12587 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
12588 fi
12589 if test "$wxUSE_LIBJPEG" = "builtin" ; then
12590 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
12591 fi
12592 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12593 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
12594 fi
12595 if test "$wxUSE_LIBPNG" = "builtin" ; then
12596 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
12597 fi
12598 if test "$wxUSE_FREETYPE" = "builtin" ; then
12599 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
12600 fi
12601
12602 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
12603 DISTDIR="wx\$(TOOLKIT)"
12604 else
12605 USE_GUI=0
12606
12607 TOOLKIT_DIR="base"
12608
12609 if test "$USE_WIN32" = 1 ; then
12610 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
12611 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
12612
12613 TOOLKIT="MSW"
12614 else
12615 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
12616 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
12617 fi
12618
12619 PORT_FILES="\${top_srcdir}/src/files.lst"
12620
12621 GUIDIST="BASE_DIST"
12622 DISTDIR="wxBase"
12623 fi
12624
12625 if test "$wxUSE_REGEX" = "builtin" ; then
12626 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
12627 fi
12628 if test "$wxUSE_ZLIB" = "builtin" ; then
12629 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
12630 fi
12631
12632 if test "$wxUSE_OPENGL" = "yes"; then
12633 if test "$wxUSE_MAC" = 1; then
12634 OPENGL_LIBS="-framework OpenGL -framework AGL"
12635 else
12636
12637 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
12638 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
12639 echo "configure:12640: checking for GL/gl.h" >&5
12640 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12641 echo $ac_n "(cached) $ac_c" 1>&6
12642 else
12643 cat > conftest.$ac_ext <<EOF
12644 #line 12645 "configure"
12645 #include "confdefs.h"
12646 #include <GL/gl.h>
12647 EOF
12648 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12649 { (eval echo configure:12650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12650 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12651 if test -z "$ac_err"; then
12652 rm -rf conftest*
12653 eval "ac_cv_header_$ac_safe=yes"
12654 else
12655 echo "$ac_err" >&5
12656 echo "configure: failed program was:" >&5
12657 cat conftest.$ac_ext >&5
12658 rm -rf conftest*
12659 eval "ac_cv_header_$ac_safe=no"
12660 fi
12661 rm -f conftest*
12662 fi
12663 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12664 echo "$ac_t""yes" 1>&6
12665
12666 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
12667 echo "configure:12668: checking for -lGL" >&5
12668
12669 ac_find_libraries=
12670 for ac_dir in $SEARCH_LIB;
12671 do
12672 for ac_extension in a so sl dylib; do
12673 if test -f "$ac_dir/libGL.$ac_extension"; then
12674 ac_find_libraries=$ac_dir
12675 break 2
12676 fi
12677 done
12678 done
12679
12680 if test "$ac_find_libraries" != "" ; then
12681
12682 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
12683 result=$?
12684 if test $result = 0; then
12685 ac_path_to_link=""
12686 else
12687 ac_path_to_link=" -L$ac_find_libraries"
12688 fi
12689
12690 if test "$ac_path_to_link" = " -L/usr/lib" ; then
12691 LDFLAGS_GL="$LDFLAGS"
12692 else
12693 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
12694 fi
12695 OPENGL_LIBS="-lGL -lGLU"
12696 echo "$ac_t""yes" 1>&6
12697 else
12698 echo "$ac_t""no" 1>&6
12699 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
12700 echo "configure:12701: checking for -lMesaGL" >&5
12701
12702 ac_find_libraries=
12703 for ac_dir in $SEARCH_LIB;
12704 do
12705 for ac_extension in a so sl dylib; do
12706 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
12707 ac_find_libraries=$ac_dir
12708 break 2
12709 fi
12710 done
12711 done
12712
12713 if test "$ac_find_libraries" != "" ; then
12714
12715 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
12716 result=$?
12717 if test $result = 0; then
12718 ac_path_to_link=""
12719 else
12720 ac_path_to_link=" -L$ac_find_libraries"
12721 fi
12722
12723 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
12724 OPENGL_LIBS="-lMesaGL -lMesaGLU"
12725 echo "$ac_t""yes" 1>&6
12726 else
12727 echo "$ac_t""no" 1>&6
12728 fi
12729 fi
12730
12731 else
12732 echo "$ac_t""no" 1>&6
12733 fi
12734
12735
12736
12737 # AC_CHECK_HEADER(GL/gl.h,
12738 # [
12739 # AC_CHECK_LIB(GL, glFlush,
12740 # [
12741 # OPENGL_LIBS="-lGL -lGLU"
12742 # ],
12743 # [
12744 # AC_CHECK_LIB(MesaGL, glFlush,
12745 # [
12746 # OPENGL_LIBS="-lMesaGL -lMesaGLU"
12747 # ],
12748 # [],
12749 # [-lm])
12750 # ],
12751 # [-lm])
12752 # ])
12753
12754 if test "x$OPENGL_LIBS" = "x"; then
12755 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
12756 fi
12757 fi
12758
12759 if test "$wxUSE_OPENGL" = "yes"; then
12760 cat >> confdefs.h <<\EOF
12761 #define wxUSE_OPENGL 1
12762 EOF
12763
12764 cat >> confdefs.h <<\EOF
12765 #define wxUSE_GLCANVAS 1
12766 EOF
12767
12768 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
12769 fi
12770 fi
12771
12772 if test -z "$TOOLKIT_VPATH" ; then
12773 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
12774 fi
12775
12776 if test -n "$TOOLKIT" ; then
12777 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
12778 fi
12779
12780 lib_unicode_suffix=
12781 if test "$wxUSE_UNICODE" = "yes"; then
12782 lib_unicode_suffix=u
12783 fi
12784
12785 lib_debug_suffix=
12786 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
12787 lib_debug_suffix=d
12788 fi
12789
12790 TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
12791 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
12792
12793 if test "$cross_compiling" = "yes"; then
12794 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
12795 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
12796 fi
12797
12798 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
12799 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
12800
12801 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
12802 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
12803
12804 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
12805 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
12806 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
12807 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
12808
12809 WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
12810 WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
12811
12812 case "${host}" in
12813 *-*-cygwin* | *-*-mingw32* )
12814
12815
12816
12817 if test "$cross_compiling" != "yes"; then
12818 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
12819 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
12820 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
12821 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
12822 else
12823 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
12824 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
12825 fi
12826
12827 esac
12828
12829 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
12830 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
12831
12832 WXCONFIG_LIBS="-l${WX_LIBRARY}"
12833 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
12834
12835 if test "$wxUSE_OPENGL" = "yes"; then
12836 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
12837 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
12838 fi
12839
12840
12841
12842 if test "$wxUSE_SHARED" = "yes"; then
12843
12844 if test "$wxUSE_OPENGL" = "yes"; then
12845 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
12846 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
12847 else
12848 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
12849 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
12850 fi
12851
12852 if test "$GCC" = "yes"; then
12853 PIC_FLAG="-fPIC"
12854 fi
12855
12856 SHARED_LD="${CXX} -shared -o"
12857
12858 case "${host}" in
12859 *-hp-hpux* )
12860 if test "$GCC" == "yes"; then
12861 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
12862 else
12863 LDFLAGS="$LDFLAGS -L/usr/lib"
12864
12865 SHARED_LD="${CXX} -b -o"
12866 PIC_FLAG="+Z"
12867 fi
12868
12869 if test "$wxUSE_OPENGL" = "yes"; then
12870 WX_ALL_INSTALLED="preinstall_gl"
12871 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
12872 else
12873 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
12874 fi
12875 ;;
12876
12877 *-*-linux* )
12878 if test "$GCC" != "yes"; then
12879 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
12880 echo "configure:12881: checking for Intel compiler" >&5
12881 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
12882 echo $ac_n "(cached) $ac_c" 1>&6
12883 else
12884
12885 cat > conftest.$ac_ext <<EOF
12886 #line 12887 "configure"
12887 #include "confdefs.h"
12888
12889 int main() {
12890
12891 #ifndef __INTEL_COMPILER
12892 #error Not icc
12893 #endif
12894
12895 ; return 0; }
12896 EOF
12897 if { (eval echo configure:12898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12898 rm -rf conftest*
12899 wx_cv_prog_icc=yes
12900 else
12901 echo "configure: failed program was:" >&5
12902 cat conftest.$ac_ext >&5
12903 rm -rf conftest*
12904 wx_cv_prog_icc=no
12905
12906 fi
12907 rm -f conftest*
12908
12909 fi
12910
12911 echo "$ac_t""$wx_cv_prog_icc" 1>&6
12912 if test "$wx_cv_prog_icc" = "yes"; then
12913 PIC_FLAG="-KPIC"
12914 fi
12915 fi
12916
12917 if test "$wxUSE_SONAME" = "yes" ; then
12918 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
12919 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
12920 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
12921 fi
12922 ;;
12923
12924 *-*-solaris2* )
12925 if test "$GCC" = yes ; then
12926 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
12927 else
12928 SHARED_LD="${CXX} -G -o"
12929 PIC_FLAG="-KPIC"
12930 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
12931 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
12932 fi
12933 ;;
12934
12935 *-*-darwin* )
12936 CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT"
12937 CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT"
12938 SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o"
12939 PIC_FLAG="-dynamic -fPIC"
12940 ;;
12941
12942 *-*-aix* )
12943 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
12944 ;;
12945
12946 *-*-cygwin* | *-*-mingw32* )
12947
12948 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
12949
12950 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
12951 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
12952
12953 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
12954
12955 if test "$wxUSE_OPENGL" = "yes"; then
12956 WX_ALL_INSTALLED="preinstall_gl"
12957 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
12958 else
12959 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
12960 fi
12961 ;;
12962
12963 *-pc-os2_emx | *-pc-os2-emx )
12964 wxUSE_SHARED=no
12965 ;;
12966
12967 *-*-beos* )
12968 SHARED_LD="${LD} -shared -o"
12969 ;;
12970
12971 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
12972 *-*-sunos4* | \
12973 *-*-irix5* | *-*-irix6* | \
12974 *-*-osf* | \
12975 *-*-dgux5* | \
12976 *-*-sysv5* )
12977 ;;
12978
12979 *)
12980 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
12981 esac
12982
12983 if test "x$WX_TARGET_LIBRARY" = "x"; then
12984 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
12985 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
12986 fi
12987
12988 WX_TARGET_LIBRARY_TYPE="so"
12989 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
12990 fi
12991
12992 if test "$wxUSE_SHARED" = "no"; then
12993
12994 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
12995 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12996 fi
12997
12998 if test "$wxUSE_MAC" = 1; then
12999 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
13000 fi
13001
13002 if test "$wxUSE_OPENGL" = "yes"; then
13003 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
13004 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
13005 else
13006 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
13007 fi
13008
13009 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
13010 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
13011
13012 WX_TARGET_LIBRARY_TYPE="a"
13013 INSTALL_LIBRARY='$(INSTALL_DATA)'
13014 fi
13015
13016 if test "$wxUSE_MAC" = 1; then
13017 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
13018 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
13019 # Extract the first word of "Rez", so it can be a program name with args.
13020 set dummy Rez; ac_word=$2
13021 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13022 echo "configure:13023: checking for $ac_word" >&5
13023 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
13024 echo $ac_n "(cached) $ac_c" 1>&6
13025 else
13026 if test -n "$RESCOMP"; then
13027 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
13028 else
13029 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13030 ac_dummy="$PATH"
13031 for ac_dir in $ac_dummy; do
13032 test -z "$ac_dir" && ac_dir=.
13033 if test -f $ac_dir/$ac_word; then
13034 ac_cv_prog_RESCOMP="Rez"
13035 break
13036 fi
13037 done
13038 IFS="$ac_save_ifs"
13039 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
13040 fi
13041 fi
13042 RESCOMP="$ac_cv_prog_RESCOMP"
13043 if test -n "$RESCOMP"; then
13044 echo "$ac_t""$RESCOMP" 1>&6
13045 else
13046 echo "$ac_t""no" 1>&6
13047 fi
13048
13049 # Extract the first word of "DeRez", so it can be a program name with args.
13050 set dummy DeRez; ac_word=$2
13051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13052 echo "configure:13053: checking for $ac_word" >&5
13053 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
13054 echo $ac_n "(cached) $ac_c" 1>&6
13055 else
13056 if test -n "$DEREZ"; then
13057 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
13058 else
13059 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13060 ac_dummy="$PATH"
13061 for ac_dir in $ac_dummy; do
13062 test -z "$ac_dir" && ac_dir=.
13063 if test -f $ac_dir/$ac_word; then
13064 ac_cv_prog_DEREZ="DeRez"
13065 break
13066 fi
13067 done
13068 IFS="$ac_save_ifs"
13069 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
13070 fi
13071 fi
13072 DEREZ="$ac_cv_prog_DEREZ"
13073 if test -n "$DEREZ"; then
13074 echo "$ac_t""$DEREZ" 1>&6
13075 else
13076 echo "$ac_t""no" 1>&6
13077 fi
13078
13079 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
13080 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
13081 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
13082 fi
13083
13084
13085 if test "$wxUSE_MAC" != 1; then
13086 for ac_hdr in strings.h
13087 do
13088 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13089 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13090 echo "configure:13091: checking for $ac_hdr" >&5
13091 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13092 echo $ac_n "(cached) $ac_c" 1>&6
13093 else
13094 cat > conftest.$ac_ext <<EOF
13095 #line 13096 "configure"
13096 #include "confdefs.h"
13097 #include <$ac_hdr>
13098 EOF
13099 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13100 { (eval echo configure:13101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13101 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13102 if test -z "$ac_err"; then
13103 rm -rf conftest*
13104 eval "ac_cv_header_$ac_safe=yes"
13105 else
13106 echo "$ac_err" >&5
13107 echo "configure: failed program was:" >&5
13108 cat conftest.$ac_ext >&5
13109 rm -rf conftest*
13110 eval "ac_cv_header_$ac_safe=no"
13111 fi
13112 rm -f conftest*
13113 fi
13114 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13115 echo "$ac_t""yes" 1>&6
13116 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13117 cat >> confdefs.h <<EOF
13118 #define $ac_tr_hdr 1
13119 EOF
13120
13121 else
13122 echo "$ac_t""no" 1>&6
13123 fi
13124 done
13125
13126 fi
13127
13128 for ac_hdr in stdlib.h
13129 do
13130 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13131 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13132 echo "configure:13133: checking for $ac_hdr" >&5
13133 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13134 echo $ac_n "(cached) $ac_c" 1>&6
13135 else
13136 cat > conftest.$ac_ext <<EOF
13137 #line 13138 "configure"
13138 #include "confdefs.h"
13139 #include <$ac_hdr>
13140 EOF
13141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13142 { (eval echo configure:13143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13143 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13144 if test -z "$ac_err"; then
13145 rm -rf conftest*
13146 eval "ac_cv_header_$ac_safe=yes"
13147 else
13148 echo "$ac_err" >&5
13149 echo "configure: failed program was:" >&5
13150 cat conftest.$ac_ext >&5
13151 rm -rf conftest*
13152 eval "ac_cv_header_$ac_safe=no"
13153 fi
13154 rm -f conftest*
13155 fi
13156 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13157 echo "$ac_t""yes" 1>&6
13158 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13159 cat >> confdefs.h <<EOF
13160 #define $ac_tr_hdr 1
13161 EOF
13162
13163 else
13164 echo "$ac_t""no" 1>&6
13165 fi
13166 done
13167
13168 for ac_hdr in malloc.h
13169 do
13170 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13171 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13172 echo "configure:13173: checking for $ac_hdr" >&5
13173 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13174 echo $ac_n "(cached) $ac_c" 1>&6
13175 else
13176 cat > conftest.$ac_ext <<EOF
13177 #line 13178 "configure"
13178 #include "confdefs.h"
13179 #include <$ac_hdr>
13180 EOF
13181 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13182 { (eval echo configure:13183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13183 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13184 if test -z "$ac_err"; then
13185 rm -rf conftest*
13186 eval "ac_cv_header_$ac_safe=yes"
13187 else
13188 echo "$ac_err" >&5
13189 echo "configure: failed program was:" >&5
13190 cat conftest.$ac_ext >&5
13191 rm -rf conftest*
13192 eval "ac_cv_header_$ac_safe=no"
13193 fi
13194 rm -f conftest*
13195 fi
13196 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13197 echo "$ac_t""yes" 1>&6
13198 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13199 cat >> confdefs.h <<EOF
13200 #define $ac_tr_hdr 1
13201 EOF
13202
13203 else
13204 echo "$ac_t""no" 1>&6
13205 fi
13206 done
13207
13208 for ac_hdr in unistd.h
13209 do
13210 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13211 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13212 echo "configure:13213: checking for $ac_hdr" >&5
13213 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13214 echo $ac_n "(cached) $ac_c" 1>&6
13215 else
13216 cat > conftest.$ac_ext <<EOF
13217 #line 13218 "configure"
13218 #include "confdefs.h"
13219 #include <$ac_hdr>
13220 EOF
13221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13222 { (eval echo configure:13223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13223 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13224 if test -z "$ac_err"; then
13225 rm -rf conftest*
13226 eval "ac_cv_header_$ac_safe=yes"
13227 else
13228 echo "$ac_err" >&5
13229 echo "configure: failed program was:" >&5
13230 cat conftest.$ac_ext >&5
13231 rm -rf conftest*
13232 eval "ac_cv_header_$ac_safe=no"
13233 fi
13234 rm -f conftest*
13235 fi
13236 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13237 echo "$ac_t""yes" 1>&6
13238 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13239 cat >> confdefs.h <<EOF
13240 #define $ac_tr_hdr 1
13241 EOF
13242
13243 else
13244 echo "$ac_t""no" 1>&6
13245 fi
13246 done
13247
13248 for ac_hdr in wchar.h
13249 do
13250 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13251 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13252 echo "configure:13253: checking for $ac_hdr" >&5
13253 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13254 echo $ac_n "(cached) $ac_c" 1>&6
13255 else
13256 cat > conftest.$ac_ext <<EOF
13257 #line 13258 "configure"
13258 #include "confdefs.h"
13259 #include <$ac_hdr>
13260 EOF
13261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13262 { (eval echo configure:13263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13263 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13264 if test -z "$ac_err"; then
13265 rm -rf conftest*
13266 eval "ac_cv_header_$ac_safe=yes"
13267 else
13268 echo "$ac_err" >&5
13269 echo "configure: failed program was:" >&5
13270 cat conftest.$ac_ext >&5
13271 rm -rf conftest*
13272 eval "ac_cv_header_$ac_safe=no"
13273 fi
13274 rm -f conftest*
13275 fi
13276 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13277 echo "$ac_t""yes" 1>&6
13278 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13279 cat >> confdefs.h <<EOF
13280 #define $ac_tr_hdr 1
13281 EOF
13282
13283 else
13284 echo "$ac_t""no" 1>&6
13285 fi
13286 done
13287
13288 for ac_hdr in wcstr.h
13289 do
13290 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13291 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13292 echo "configure:13293: checking for $ac_hdr" >&5
13293 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13294 echo $ac_n "(cached) $ac_c" 1>&6
13295 else
13296 cat > conftest.$ac_ext <<EOF
13297 #line 13298 "configure"
13298 #include "confdefs.h"
13299 #include <$ac_hdr>
13300 EOF
13301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13302 { (eval echo configure:13303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13303 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13304 if test -z "$ac_err"; then
13305 rm -rf conftest*
13306 eval "ac_cv_header_$ac_safe=yes"
13307 else
13308 echo "$ac_err" >&5
13309 echo "configure: failed program was:" >&5
13310 cat conftest.$ac_ext >&5
13311 rm -rf conftest*
13312 eval "ac_cv_header_$ac_safe=no"
13313 fi
13314 rm -f conftest*
13315 fi
13316 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13317 echo "$ac_t""yes" 1>&6
13318 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13319 cat >> confdefs.h <<EOF
13320 #define $ac_tr_hdr 1
13321 EOF
13322
13323 else
13324 echo "$ac_t""no" 1>&6
13325 fi
13326 done
13327
13328 for ac_hdr in wctype.h
13329 do
13330 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13331 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13332 echo "configure:13333: checking for $ac_hdr" >&5
13333 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13334 echo $ac_n "(cached) $ac_c" 1>&6
13335 else
13336 cat > conftest.$ac_ext <<EOF
13337 #line 13338 "configure"
13338 #include "confdefs.h"
13339 #include <$ac_hdr>
13340 EOF
13341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13342 { (eval echo configure:13343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13344 if test -z "$ac_err"; then
13345 rm -rf conftest*
13346 eval "ac_cv_header_$ac_safe=yes"
13347 else
13348 echo "$ac_err" >&5
13349 echo "configure: failed program was:" >&5
13350 cat conftest.$ac_ext >&5
13351 rm -rf conftest*
13352 eval "ac_cv_header_$ac_safe=no"
13353 fi
13354 rm -f conftest*
13355 fi
13356 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13357 echo "$ac_t""yes" 1>&6
13358 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13359 cat >> confdefs.h <<EOF
13360 #define $ac_tr_hdr 1
13361 EOF
13362
13363 else
13364 echo "$ac_t""no" 1>&6
13365 fi
13366 done
13367
13368 for ac_hdr in fnmatch.h
13369 do
13370 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13371 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13372 echo "configure:13373: checking for $ac_hdr" >&5
13373 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13374 echo $ac_n "(cached) $ac_c" 1>&6
13375 else
13376 cat > conftest.$ac_ext <<EOF
13377 #line 13378 "configure"
13378 #include "confdefs.h"
13379 #include <$ac_hdr>
13380 EOF
13381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13382 { (eval echo configure:13383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13384 if test -z "$ac_err"; then
13385 rm -rf conftest*
13386 eval "ac_cv_header_$ac_safe=yes"
13387 else
13388 echo "$ac_err" >&5
13389 echo "configure: failed program was:" >&5
13390 cat conftest.$ac_ext >&5
13391 rm -rf conftest*
13392 eval "ac_cv_header_$ac_safe=no"
13393 fi
13394 rm -f conftest*
13395 fi
13396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13397 echo "$ac_t""yes" 1>&6
13398 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13399 cat >> confdefs.h <<EOF
13400 #define $ac_tr_hdr 1
13401 EOF
13402
13403 else
13404 echo "$ac_t""no" 1>&6
13405 fi
13406 done
13407
13408 for ac_hdr in langinfo.h
13409 do
13410 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13411 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13412 echo "configure:13413: checking for $ac_hdr" >&5
13413 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13414 echo $ac_n "(cached) $ac_c" 1>&6
13415 else
13416 cat > conftest.$ac_ext <<EOF
13417 #line 13418 "configure"
13418 #include "confdefs.h"
13419 #include <$ac_hdr>
13420 EOF
13421 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13422 { (eval echo configure:13423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13423 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13424 if test -z "$ac_err"; then
13425 rm -rf conftest*
13426 eval "ac_cv_header_$ac_safe=yes"
13427 else
13428 echo "$ac_err" >&5
13429 echo "configure: failed program was:" >&5
13430 cat conftest.$ac_ext >&5
13431 rm -rf conftest*
13432 eval "ac_cv_header_$ac_safe=no"
13433 fi
13434 rm -f conftest*
13435 fi
13436 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13437 echo "$ac_t""yes" 1>&6
13438 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13439 cat >> confdefs.h <<EOF
13440 #define $ac_tr_hdr 1
13441 EOF
13442
13443 else
13444 echo "$ac_t""no" 1>&6
13445 fi
13446 done
13447
13448
13449 if test "$wxUSE_GUI" = "yes"; then
13450 if test "$wxUSE_UNIX" = "yes"; then
13451 for ac_hdr in X11/XKBlib.h
13452 do
13453 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13454 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13455 echo "configure:13456: checking for $ac_hdr" >&5
13456 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13457 echo $ac_n "(cached) $ac_c" 1>&6
13458 else
13459 cat > conftest.$ac_ext <<EOF
13460 #line 13461 "configure"
13461 #include "confdefs.h"
13462 #include <$ac_hdr>
13463 EOF
13464 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13465 { (eval echo configure:13466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13466 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13467 if test -z "$ac_err"; then
13468 rm -rf conftest*
13469 eval "ac_cv_header_$ac_safe=yes"
13470 else
13471 echo "$ac_err" >&5
13472 echo "configure: failed program was:" >&5
13473 cat conftest.$ac_ext >&5
13474 rm -rf conftest*
13475 eval "ac_cv_header_$ac_safe=no"
13476 fi
13477 rm -f conftest*
13478 fi
13479 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13480 echo "$ac_t""yes" 1>&6
13481 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13482 cat >> confdefs.h <<EOF
13483 #define $ac_tr_hdr 1
13484 EOF
13485
13486 else
13487 echo "$ac_t""no" 1>&6
13488 fi
13489 done
13490
13491 fi
13492 fi
13493
13494
13495 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13496 echo "configure:13497: checking for ANSI C header files" >&5
13497 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
13498 echo $ac_n "(cached) $ac_c" 1>&6
13499 else
13500 cat > conftest.$ac_ext <<EOF
13501 #line 13502 "configure"
13502 #include "confdefs.h"
13503 #include <stdlib.h>
13504 #include <stdarg.h>
13505 #include <string.h>
13506 #include <float.h>
13507 EOF
13508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13509 { (eval echo configure:13510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13510 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13511 if test -z "$ac_err"; then
13512 rm -rf conftest*
13513 ac_cv_header_stdc=yes
13514 else
13515 echo "$ac_err" >&5
13516 echo "configure: failed program was:" >&5
13517 cat conftest.$ac_ext >&5
13518 rm -rf conftest*
13519 ac_cv_header_stdc=no
13520 fi
13521 rm -f conftest*
13522
13523 if test $ac_cv_header_stdc = yes; then
13524 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13525 cat > conftest.$ac_ext <<EOF
13526 #line 13527 "configure"
13527 #include "confdefs.h"
13528 #include <string.h>
13529 EOF
13530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13531 egrep "memchr" >/dev/null 2>&1; then
13532 :
13533 else
13534 rm -rf conftest*
13535 ac_cv_header_stdc=no
13536 fi
13537 rm -f conftest*
13538
13539 fi
13540
13541 if test $ac_cv_header_stdc = yes; then
13542 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13543 cat > conftest.$ac_ext <<EOF
13544 #line 13545 "configure"
13545 #include "confdefs.h"
13546 #include <stdlib.h>
13547 EOF
13548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13549 egrep "free" >/dev/null 2>&1; then
13550 :
13551 else
13552 rm -rf conftest*
13553 ac_cv_header_stdc=no
13554 fi
13555 rm -f conftest*
13556
13557 fi
13558
13559 if test $ac_cv_header_stdc = yes; then
13560 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13561 if test "$cross_compiling" = yes; then
13562 :
13563 else
13564 cat > conftest.$ac_ext <<EOF
13565 #line 13566 "configure"
13566 #include "confdefs.h"
13567 #include <ctype.h>
13568 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13569 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13570 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13571 int main () { int i; for (i = 0; i < 256; i++)
13572 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13573 exit (0); }
13574
13575 EOF
13576 if { (eval echo configure:13577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13577 then
13578 :
13579 else
13580 echo "configure: failed program was:" >&5
13581 cat conftest.$ac_ext >&5
13582 rm -fr conftest*
13583 ac_cv_header_stdc=no
13584 fi
13585 rm -fr conftest*
13586 fi
13587
13588 fi
13589 fi
13590
13591 echo "$ac_t""$ac_cv_header_stdc" 1>&6
13592 if test $ac_cv_header_stdc = yes; then
13593 cat >> confdefs.h <<\EOF
13594 #define STDC_HEADERS 1
13595 EOF
13596
13597 fi
13598
13599 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
13600 echo "configure:13601: checking for mode_t" >&5
13601 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
13602 echo $ac_n "(cached) $ac_c" 1>&6
13603 else
13604 cat > conftest.$ac_ext <<EOF
13605 #line 13606 "configure"
13606 #include "confdefs.h"
13607 #include <sys/types.h>
13608 #if STDC_HEADERS
13609 #include <stdlib.h>
13610 #include <stddef.h>
13611 #endif
13612 EOF
13613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13614 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13615 rm -rf conftest*
13616 ac_cv_type_mode_t=yes
13617 else
13618 rm -rf conftest*
13619 ac_cv_type_mode_t=no
13620 fi
13621 rm -f conftest*
13622
13623 fi
13624 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
13625 if test $ac_cv_type_mode_t = no; then
13626 cat >> confdefs.h <<\EOF
13627 #define mode_t int
13628 EOF
13629
13630 fi
13631
13632 echo $ac_n "checking for off_t""... $ac_c" 1>&6
13633 echo "configure:13634: checking for off_t" >&5
13634 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
13635 echo $ac_n "(cached) $ac_c" 1>&6
13636 else
13637 cat > conftest.$ac_ext <<EOF
13638 #line 13639 "configure"
13639 #include "confdefs.h"
13640 #include <sys/types.h>
13641 #if STDC_HEADERS
13642 #include <stdlib.h>
13643 #include <stddef.h>
13644 #endif
13645 EOF
13646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13647 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13648 rm -rf conftest*
13649 ac_cv_type_off_t=yes
13650 else
13651 rm -rf conftest*
13652 ac_cv_type_off_t=no
13653 fi
13654 rm -f conftest*
13655
13656 fi
13657 echo "$ac_t""$ac_cv_type_off_t" 1>&6
13658 if test $ac_cv_type_off_t = no; then
13659 cat >> confdefs.h <<\EOF
13660 #define off_t long
13661 EOF
13662
13663 fi
13664
13665 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
13666 echo "configure:13667: checking for pid_t" >&5
13667 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
13668 echo $ac_n "(cached) $ac_c" 1>&6
13669 else
13670 cat > conftest.$ac_ext <<EOF
13671 #line 13672 "configure"
13672 #include "confdefs.h"
13673 #include <sys/types.h>
13674 #if STDC_HEADERS
13675 #include <stdlib.h>
13676 #include <stddef.h>
13677 #endif
13678 EOF
13679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13680 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13681 rm -rf conftest*
13682 ac_cv_type_pid_t=yes
13683 else
13684 rm -rf conftest*
13685 ac_cv_type_pid_t=no
13686 fi
13687 rm -f conftest*
13688
13689 fi
13690 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
13691 if test $ac_cv_type_pid_t = no; then
13692 cat >> confdefs.h <<\EOF
13693 #define pid_t int
13694 EOF
13695
13696 fi
13697
13698 echo $ac_n "checking for size_t""... $ac_c" 1>&6
13699 echo "configure:13700: checking for size_t" >&5
13700 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
13701 echo $ac_n "(cached) $ac_c" 1>&6
13702 else
13703 cat > conftest.$ac_ext <<EOF
13704 #line 13705 "configure"
13705 #include "confdefs.h"
13706 #include <sys/types.h>
13707 #if STDC_HEADERS
13708 #include <stdlib.h>
13709 #include <stddef.h>
13710 #endif
13711 EOF
13712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13713 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13714 rm -rf conftest*
13715 ac_cv_type_size_t=yes
13716 else
13717 rm -rf conftest*
13718 ac_cv_type_size_t=no
13719 fi
13720 rm -f conftest*
13721
13722 fi
13723 echo "$ac_t""$ac_cv_type_size_t" 1>&6
13724 if test $ac_cv_type_size_t = no; then
13725 cat >> confdefs.h <<\EOF
13726 #define size_t unsigned
13727 EOF
13728
13729 fi
13730
13731 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
13732 echo "configure:13733: checking for uid_t in sys/types.h" >&5
13733 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
13734 echo $ac_n "(cached) $ac_c" 1>&6
13735 else
13736 cat > conftest.$ac_ext <<EOF
13737 #line 13738 "configure"
13738 #include "confdefs.h"
13739 #include <sys/types.h>
13740 EOF
13741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13742 egrep "uid_t" >/dev/null 2>&1; then
13743 rm -rf conftest*
13744 ac_cv_type_uid_t=yes
13745 else
13746 rm -rf conftest*
13747 ac_cv_type_uid_t=no
13748 fi
13749 rm -f conftest*
13750
13751 fi
13752
13753 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
13754 if test $ac_cv_type_uid_t = no; then
13755 cat >> confdefs.h <<\EOF
13756 #define uid_t int
13757 EOF
13758
13759 cat >> confdefs.h <<\EOF
13760 #define gid_t int
13761 EOF
13762
13763 fi
13764
13765
13766 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
13767 echo "configure:13768: checking for wchar_t" >&5
13768 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
13769 echo $ac_n "(cached) $ac_c" 1>&6
13770 else
13771
13772 cat > conftest.$ac_ext <<EOF
13773 #line 13774 "configure"
13774 #include "confdefs.h"
13775
13776 #ifdef HAVE_WCHAR_H
13777 # ifdef __CYGWIN__
13778 # include <stddef.h>
13779 # endif
13780 # include <wchar.h>
13781 #endif
13782 #ifdef HAVE_STDLIB_H
13783 # include <stdlib.h>
13784 #endif
13785
13786 int main() {
13787
13788 wchar_t wc, *ws;
13789 wc = L'a';
13790 ws = L"Hello, world!";
13791
13792 ; return 0; }
13793 EOF
13794 if { (eval echo configure:13795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13795 rm -rf conftest*
13796 wx_cv_type_wchar_t=yes
13797 else
13798 echo "configure: failed program was:" >&5
13799 cat conftest.$ac_ext >&5
13800 rm -rf conftest*
13801 wx_cv_type_wchar_t=no
13802
13803 fi
13804 rm -f conftest*
13805
13806 fi
13807
13808 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
13809
13810 if test "$wx_cv_type_wchar_t" = "yes"; then
13811 cat >> confdefs.h <<\EOF
13812 #define wxUSE_WCHAR_T 1
13813 EOF
13814
13815 fi
13816
13817
13818 ac_ext=C
13819 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13820 ac_cpp='$CXXCPP $CPPFLAGS'
13821 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13822 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13823 cross_compiling=$ac_cv_prog_cxx_cross
13824
13825 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
13826 echo "configure:13827: checking if size_t is unsigned int" >&5
13827 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
13828 echo $ac_n "(cached) $ac_c" 1>&6
13829 else
13830 cat > conftest.$ac_ext <<EOF
13831 #line 13832 "configure"
13832 #include "confdefs.h"
13833 #include <stddef.h>
13834 int main() {
13835
13836 return 0; }
13837
13838 struct Foo { void foo(size_t); void foo(unsigned int); };
13839
13840 int bar() {
13841
13842 ; return 0; }
13843 EOF
13844 if { (eval echo configure:13845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13845 rm -rf conftest*
13846 wx_cv_size_t_is_uint=no
13847 else
13848 echo "configure: failed program was:" >&5
13849 cat conftest.$ac_ext >&5
13850 rm -rf conftest*
13851 wx_cv_size_t_is_uint=yes
13852
13853 fi
13854 rm -f conftest*
13855
13856 fi
13857
13858 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
13859
13860 if test "$wx_cv_size_t_is_uint" = "yes"; then
13861 cat >> confdefs.h <<\EOF
13862 #define wxSIZE_T_IS_UINT 1
13863 EOF
13864
13865 else
13866 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
13867 echo "configure:13868: checking if size_t is unsigned long" >&5
13868 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
13869 echo $ac_n "(cached) $ac_c" 1>&6
13870 else
13871 cat > conftest.$ac_ext <<EOF
13872 #line 13873 "configure"
13873 #include "confdefs.h"
13874 #include <stddef.h>
13875 int main() {
13876
13877 return 0; }
13878
13879 struct Foo { void foo(size_t); void foo(unsigned long); };
13880
13881 int bar() {
13882
13883 ; return 0; }
13884 EOF
13885 if { (eval echo configure:13886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13886 rm -rf conftest*
13887 wx_cv_size_t_is_ulong=no
13888 else
13889 echo "configure: failed program was:" >&5
13890 cat conftest.$ac_ext >&5
13891 rm -rf conftest*
13892 wx_cv_size_t_is_ulong=yes
13893
13894 fi
13895 rm -f conftest*
13896
13897 fi
13898
13899 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
13900
13901 if test "$wx_cv_size_t_is_ulong" = "yes"; then
13902 cat >> confdefs.h <<\EOF
13903 #define wxSIZE_T_IS_ULONG 1
13904 EOF
13905
13906 fi
13907 fi
13908
13909 ac_ext=c
13910 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13911 ac_cpp='$CPP $CPPFLAGS'
13912 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13913 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13914 cross_compiling=$ac_cv_prog_cc_cross
13915
13916
13917
13918 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
13919 echo "configure:13920: checking for pw_gecos in struct passwd" >&5
13920 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
13921 echo $ac_n "(cached) $ac_c" 1>&6
13922 else
13923
13924 cat > conftest.$ac_ext <<EOF
13925 #line 13926 "configure"
13926 #include "confdefs.h"
13927 #include <pwd.h>
13928 int main() {
13929
13930 char *p;
13931 struct passwd *pw;
13932 p = pw->pw_gecos;
13933
13934 ; return 0; }
13935 EOF
13936 if { (eval echo configure:13937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13937 rm -rf conftest*
13938
13939 wx_cv_struct_pw_gecos=yes
13940
13941 else
13942 echo "configure: failed program was:" >&5
13943 cat conftest.$ac_ext >&5
13944 rm -rf conftest*
13945
13946 wx_cv_struct_pw_gecos=no
13947
13948
13949 fi
13950 rm -f conftest*
13951
13952
13953 fi
13954
13955 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
13956
13957 if test "$wx_cv_struct_pw_gecos" = "yes"; then
13958 cat >> confdefs.h <<\EOF
13959 #define HAVE_PW_GECOS 1
13960 EOF
13961
13962 fi
13963
13964
13965 echo $ac_n "checking for working const""... $ac_c" 1>&6
13966 echo "configure:13967: checking for working const" >&5
13967 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
13968 echo $ac_n "(cached) $ac_c" 1>&6
13969 else
13970 cat > conftest.$ac_ext <<EOF
13971 #line 13972 "configure"
13972 #include "confdefs.h"
13973
13974 int main() {
13975
13976 /* Ultrix mips cc rejects this. */
13977 typedef int charset[2]; const charset x;
13978 /* SunOS 4.1.1 cc rejects this. */
13979 char const *const *ccp;
13980 char **p;
13981 /* NEC SVR4.0.2 mips cc rejects this. */
13982 struct point {int x, y;};
13983 static struct point const zero = {0,0};
13984 /* AIX XL C 1.02.0.0 rejects this.
13985 It does not let you subtract one const X* pointer from another in an arm
13986 of an if-expression whose if-part is not a constant expression */
13987 const char *g = "string";
13988 ccp = &g + (g ? g-g : 0);
13989 /* HPUX 7.0 cc rejects these. */
13990 ++ccp;
13991 p = (char**) ccp;
13992 ccp = (char const *const *) p;
13993 { /* SCO 3.2v4 cc rejects this. */
13994 char *t;
13995 char const *s = 0 ? (char *) 0 : (char const *) 0;
13996
13997 *t++ = 0;
13998 }
13999 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14000 int x[] = {25, 17};
14001 const int *foo = &x[0];
14002 ++foo;
14003 }
14004 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14005 typedef const int *iptr;
14006 iptr p = 0;
14007 ++p;
14008 }
14009 { /* AIX XL C 1.02.0.0 rejects this saying
14010 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14011 struct s { int j; const int *ap[3]; };
14012 struct s *b; b->j = 5;
14013 }
14014 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14015 const int foo = 10;
14016 }
14017
14018 ; return 0; }
14019 EOF
14020 if { (eval echo configure:14021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14021 rm -rf conftest*
14022 ac_cv_c_const=yes
14023 else
14024 echo "configure: failed program was:" >&5
14025 cat conftest.$ac_ext >&5
14026 rm -rf conftest*
14027 ac_cv_c_const=no
14028 fi
14029 rm -f conftest*
14030 fi
14031
14032 echo "$ac_t""$ac_cv_c_const" 1>&6
14033 if test $ac_cv_c_const = no; then
14034 cat >> confdefs.h <<\EOF
14035 #define const
14036 EOF
14037
14038 fi
14039
14040 echo $ac_n "checking for inline""... $ac_c" 1>&6
14041 echo "configure:14042: checking for inline" >&5
14042 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
14043 echo $ac_n "(cached) $ac_c" 1>&6
14044 else
14045 ac_cv_c_inline=no
14046 for ac_kw in inline __inline__ __inline; do
14047 cat > conftest.$ac_ext <<EOF
14048 #line 14049 "configure"
14049 #include "confdefs.h"
14050
14051 int main() {
14052 } $ac_kw foo() {
14053 ; return 0; }
14054 EOF
14055 if { (eval echo configure:14056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14056 rm -rf conftest*
14057 ac_cv_c_inline=$ac_kw; break
14058 else
14059 echo "configure: failed program was:" >&5
14060 cat conftest.$ac_ext >&5
14061 fi
14062 rm -f conftest*
14063 done
14064
14065 fi
14066
14067 echo "$ac_t""$ac_cv_c_inline" 1>&6
14068 case "$ac_cv_c_inline" in
14069 inline | yes) ;;
14070 no) cat >> confdefs.h <<\EOF
14071 #define inline
14072 EOF
14073 ;;
14074 *) cat >> confdefs.h <<EOF
14075 #define inline $ac_cv_c_inline
14076 EOF
14077 ;;
14078 esac
14079
14080
14081 echo $ac_n "checking size of char""... $ac_c" 1>&6
14082 echo "configure:14083: checking size of char" >&5
14083 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
14084 echo $ac_n "(cached) $ac_c" 1>&6
14085 else
14086 if test "$cross_compiling" = yes; then
14087 ac_cv_sizeof_char=1
14088 else
14089 cat > conftest.$ac_ext <<EOF
14090 #line 14091 "configure"
14091 #include "confdefs.h"
14092 #include <stdio.h>
14093 main()
14094 {
14095 FILE *f=fopen("conftestval", "w");
14096 if (!f) exit(1);
14097 fprintf(f, "%d\n", sizeof(char));
14098 exit(0);
14099 }
14100 EOF
14101 if { (eval echo configure:14102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14102 then
14103 ac_cv_sizeof_char=`cat conftestval`
14104 else
14105 echo "configure: failed program was:" >&5
14106 cat conftest.$ac_ext >&5
14107 rm -fr conftest*
14108 ac_cv_sizeof_char=0
14109 fi
14110 rm -fr conftest*
14111 fi
14112
14113 fi
14114 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
14115 cat >> confdefs.h <<EOF
14116 #define SIZEOF_CHAR $ac_cv_sizeof_char
14117 EOF
14118
14119
14120 echo $ac_n "checking size of short""... $ac_c" 1>&6
14121 echo "configure:14122: checking size of short" >&5
14122 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
14123 echo $ac_n "(cached) $ac_c" 1>&6
14124 else
14125 if test "$cross_compiling" = yes; then
14126 ac_cv_sizeof_short=2
14127 else
14128 cat > conftest.$ac_ext <<EOF
14129 #line 14130 "configure"
14130 #include "confdefs.h"
14131 #include <stdio.h>
14132 main()
14133 {
14134 FILE *f=fopen("conftestval", "w");
14135 if (!f) exit(1);
14136 fprintf(f, "%d\n", sizeof(short));
14137 exit(0);
14138 }
14139 EOF
14140 if { (eval echo configure:14141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14141 then
14142 ac_cv_sizeof_short=`cat conftestval`
14143 else
14144 echo "configure: failed program was:" >&5
14145 cat conftest.$ac_ext >&5
14146 rm -fr conftest*
14147 ac_cv_sizeof_short=0
14148 fi
14149 rm -fr conftest*
14150 fi
14151
14152 fi
14153 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14154 cat >> confdefs.h <<EOF
14155 #define SIZEOF_SHORT $ac_cv_sizeof_short
14156 EOF
14157
14158
14159 echo $ac_n "checking size of int *""... $ac_c" 1>&6
14160 echo "configure:14161: checking size of int *" >&5
14161 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
14162 echo $ac_n "(cached) $ac_c" 1>&6
14163 else
14164 if test "$cross_compiling" = yes; then
14165 ac_cv_sizeof_int_p=4
14166 else
14167 cat > conftest.$ac_ext <<EOF
14168 #line 14169 "configure"
14169 #include "confdefs.h"
14170 #include <stdio.h>
14171 main()
14172 {
14173 FILE *f=fopen("conftestval", "w");
14174 if (!f) exit(1);
14175 fprintf(f, "%d\n", sizeof(int *));
14176 exit(0);
14177 }
14178 EOF
14179 if { (eval echo configure:14180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14180 then
14181 ac_cv_sizeof_int_p=`cat conftestval`
14182 else
14183 echo "configure: failed program was:" >&5
14184 cat conftest.$ac_ext >&5
14185 rm -fr conftest*
14186 ac_cv_sizeof_int_p=0
14187 fi
14188 rm -fr conftest*
14189 fi
14190
14191 fi
14192 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
14193 cat >> confdefs.h <<EOF
14194 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14195 EOF
14196
14197
14198 echo $ac_n "checking size of int""... $ac_c" 1>&6
14199 echo "configure:14200: checking size of int" >&5
14200 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
14201 echo $ac_n "(cached) $ac_c" 1>&6
14202 else
14203 if test "$cross_compiling" = yes; then
14204 ac_cv_sizeof_int=4
14205 else
14206 cat > conftest.$ac_ext <<EOF
14207 #line 14208 "configure"
14208 #include "confdefs.h"
14209 #include <stdio.h>
14210 main()
14211 {
14212 FILE *f=fopen("conftestval", "w");
14213 if (!f) exit(1);
14214 fprintf(f, "%d\n", sizeof(int));
14215 exit(0);
14216 }
14217 EOF
14218 if { (eval echo configure:14219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14219 then
14220 ac_cv_sizeof_int=`cat conftestval`
14221 else
14222 echo "configure: failed program was:" >&5
14223 cat conftest.$ac_ext >&5
14224 rm -fr conftest*
14225 ac_cv_sizeof_int=0
14226 fi
14227 rm -fr conftest*
14228 fi
14229
14230 fi
14231 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14232 cat >> confdefs.h <<EOF
14233 #define SIZEOF_INT $ac_cv_sizeof_int
14234 EOF
14235
14236
14237 echo $ac_n "checking size of long""... $ac_c" 1>&6
14238 echo "configure:14239: checking size of long" >&5
14239 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
14240 echo $ac_n "(cached) $ac_c" 1>&6
14241 else
14242 if test "$cross_compiling" = yes; then
14243 ac_cv_sizeof_long=4
14244 else
14245 cat > conftest.$ac_ext <<EOF
14246 #line 14247 "configure"
14247 #include "confdefs.h"
14248 #include <stdio.h>
14249 main()
14250 {
14251 FILE *f=fopen("conftestval", "w");
14252 if (!f) exit(1);
14253 fprintf(f, "%d\n", sizeof(long));
14254 exit(0);
14255 }
14256 EOF
14257 if { (eval echo configure:14258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14258 then
14259 ac_cv_sizeof_long=`cat conftestval`
14260 else
14261 echo "configure: failed program was:" >&5
14262 cat conftest.$ac_ext >&5
14263 rm -fr conftest*
14264 ac_cv_sizeof_long=0
14265 fi
14266 rm -fr conftest*
14267 fi
14268
14269 fi
14270 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14271 cat >> confdefs.h <<EOF
14272 #define SIZEOF_LONG $ac_cv_sizeof_long
14273 EOF
14274
14275
14276 echo $ac_n "checking size of long long""... $ac_c" 1>&6
14277 echo "configure:14278: checking size of long long" >&5
14278 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
14279 echo $ac_n "(cached) $ac_c" 1>&6
14280 else
14281 if test "$cross_compiling" = yes; then
14282 ac_cv_sizeof_long_long=0
14283 else
14284 cat > conftest.$ac_ext <<EOF
14285 #line 14286 "configure"
14286 #include "confdefs.h"
14287 #include <stdio.h>
14288 main()
14289 {
14290 FILE *f=fopen("conftestval", "w");
14291 if (!f) exit(1);
14292 fprintf(f, "%d\n", sizeof(long long));
14293 exit(0);
14294 }
14295 EOF
14296 if { (eval echo configure:14297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14297 then
14298 ac_cv_sizeof_long_long=`cat conftestval`
14299 else
14300 echo "configure: failed program was:" >&5
14301 cat conftest.$ac_ext >&5
14302 rm -fr conftest*
14303 ac_cv_sizeof_long_long=0
14304 fi
14305 rm -fr conftest*
14306 fi
14307
14308 fi
14309 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
14310 cat >> confdefs.h <<EOF
14311 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14312 EOF
14313
14314
14315
14316 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
14317 echo "configure:14318: checking size of wchar_t" >&5
14318 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
14319 echo $ac_n "(cached) $ac_c" 1>&6
14320 else
14321
14322 if test "$cross_compiling" = yes; then
14323 wx_cv_sizeof_wchar_t=4
14324
14325 else
14326 cat > conftest.$ac_ext <<EOF
14327 #line 14328 "configure"
14328 #include "confdefs.h"
14329
14330 #ifdef HAVE_WCHAR_H
14331 # ifdef __CYGWIN__
14332 # include <stddef.h>
14333 # endif
14334 # include <wchar.h>
14335 #endif
14336 #ifdef HAVE_STDLIB_H
14337 # include <stdlib.h>
14338 #endif
14339 #include <stdio.h>
14340 int main()
14341 {
14342 FILE *f=fopen("conftestval", "w");
14343 if (!f) exit(1);
14344 fprintf(f, "%i", sizeof(wchar_t));
14345 exit(0);
14346 }
14347
14348 EOF
14349 if { (eval echo configure:14350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14350 then
14351 wx_cv_sizeof_wchar_t=`cat conftestval`
14352 else
14353 echo "configure: failed program was:" >&5
14354 cat conftest.$ac_ext >&5
14355 rm -fr conftest*
14356 wx_cv_sizeof_wchar_t=0
14357 fi
14358 rm -fr conftest*
14359 fi
14360
14361
14362 fi
14363
14364 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
14365
14366 cat >> confdefs.h <<EOF
14367 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
14368 EOF
14369
14370
14371 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14372 echo "configure:14373: checking whether byte ordering is bigendian" >&5
14373 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
14374 echo $ac_n "(cached) $ac_c" 1>&6
14375 else
14376 ac_cv_c_bigendian=unknown
14377 # See if sys/param.h defines the BYTE_ORDER macro.
14378 cat > conftest.$ac_ext <<EOF
14379 #line 14380 "configure"
14380 #include "confdefs.h"
14381 #include <sys/types.h>
14382 #include <sys/param.h>
14383 int main() {
14384
14385 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14386 bogus endian macros
14387 #endif
14388 ; return 0; }
14389 EOF
14390 if { (eval echo configure:14391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14391 rm -rf conftest*
14392 # It does; now see whether it defined to BIG_ENDIAN or not.
14393 cat > conftest.$ac_ext <<EOF
14394 #line 14395 "configure"
14395 #include "confdefs.h"
14396 #include <sys/types.h>
14397 #include <sys/param.h>
14398 int main() {
14399
14400 #if BYTE_ORDER != BIG_ENDIAN
14401 not big endian
14402 #endif
14403 ; return 0; }
14404 EOF
14405 if { (eval echo configure:14406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14406 rm -rf conftest*
14407 ac_cv_c_bigendian=yes
14408 else
14409 echo "configure: failed program was:" >&5
14410 cat conftest.$ac_ext >&5
14411 rm -rf conftest*
14412 ac_cv_c_bigendian=no
14413 fi
14414 rm -f conftest*
14415 else
14416 echo "configure: failed program was:" >&5
14417 cat conftest.$ac_ext >&5
14418 fi
14419 rm -f conftest*
14420 if test $ac_cv_c_bigendian = unknown; then
14421 if test "$cross_compiling" = yes; then
14422 ac_cv_c_bigendian=unknown
14423 else
14424 cat > conftest.$ac_ext <<EOF
14425 #line 14426 "configure"
14426 #include "confdefs.h"
14427 main () {
14428 /* Are we little or big endian? From Harbison&Steele. */
14429 union
14430 {
14431 long l;
14432 char c[sizeof (long)];
14433 } u;
14434 u.l = 1;
14435 exit (u.c[sizeof (long) - 1] == 1);
14436 }
14437 EOF
14438 if { (eval echo configure:14439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14439 then
14440 ac_cv_c_bigendian=no
14441 else
14442 echo "configure: failed program was:" >&5
14443 cat conftest.$ac_ext >&5
14444 rm -fr conftest*
14445 ac_cv_c_bigendian=yes
14446 fi
14447 rm -fr conftest*
14448 fi
14449
14450 fi
14451 fi
14452
14453 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14454 if test $ac_cv_c_bigendian = unknown; then
14455 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
14456 fi
14457 if test $ac_cv_c_bigendian = yes; then
14458 cat >> confdefs.h <<\EOF
14459 #define WORDS_BIGENDIAN 1
14460 EOF
14461
14462 fi
14463
14464
14465 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
14466 echo "configure:14467: checking how to run the C++ preprocessor" >&5
14467 if test -z "$CXXCPP"; then
14468 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
14469 echo $ac_n "(cached) $ac_c" 1>&6
14470 else
14471 ac_ext=C
14472 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14473 ac_cpp='$CXXCPP $CPPFLAGS'
14474 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14475 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14476 cross_compiling=$ac_cv_prog_cxx_cross
14477 CXXCPP="${CXX-g++} -E"
14478 cat > conftest.$ac_ext <<EOF
14479 #line 14480 "configure"
14480 #include "confdefs.h"
14481 #include <stdlib.h>
14482 EOF
14483 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14484 { (eval echo configure:14485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14485 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14486 if test -z "$ac_err"; then
14487 :
14488 else
14489 echo "$ac_err" >&5
14490 echo "configure: failed program was:" >&5
14491 cat conftest.$ac_ext >&5
14492 rm -rf conftest*
14493 CXXCPP=/lib/cpp
14494 fi
14495 rm -f conftest*
14496 ac_cv_prog_CXXCPP="$CXXCPP"
14497 ac_ext=C
14498 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14499 ac_cpp='$CXXCPP $CPPFLAGS'
14500 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14501 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14502 cross_compiling=$ac_cv_prog_cxx_cross
14503 fi
14504 fi
14505 CXXCPP="$ac_cv_prog_CXXCPP"
14506 echo "$ac_t""$CXXCPP" 1>&6
14507
14508
14509 if test "$cross_compiling" = "yes"; then
14510 cat >> confdefs.h <<\EOF
14511 #define wxUSE_IOSTREAMH 1
14512 EOF
14513
14514 else
14515
14516 ac_ext=C
14517 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14518 ac_cpp='$CXXCPP $CPPFLAGS'
14519 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14520 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14521 cross_compiling=$ac_cv_prog_cxx_cross
14522
14523
14524 for ac_hdr in iostream
14525 do
14526 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14527 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14528 echo "configure:14529: checking for $ac_hdr" >&5
14529 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14530 echo $ac_n "(cached) $ac_c" 1>&6
14531 else
14532 cat > conftest.$ac_ext <<EOF
14533 #line 14534 "configure"
14534 #include "confdefs.h"
14535 #include <$ac_hdr>
14536 EOF
14537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14538 { (eval echo configure:14539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14540 if test -z "$ac_err"; then
14541 rm -rf conftest*
14542 eval "ac_cv_header_$ac_safe=yes"
14543 else
14544 echo "$ac_err" >&5
14545 echo "configure: failed program was:" >&5
14546 cat conftest.$ac_ext >&5
14547 rm -rf conftest*
14548 eval "ac_cv_header_$ac_safe=no"
14549 fi
14550 rm -f conftest*
14551 fi
14552 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14553 echo "$ac_t""yes" 1>&6
14554 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14555 cat >> confdefs.h <<EOF
14556 #define $ac_tr_hdr 1
14557 EOF
14558
14559 else
14560 echo "$ac_t""no" 1>&6
14561 fi
14562 done
14563
14564
14565 if test "$ac_cv_header_iostream" = "yes" ; then
14566 :
14567 else
14568 cat >> confdefs.h <<\EOF
14569 #define wxUSE_IOSTREAMH 1
14570 EOF
14571
14572 fi
14573
14574 ac_ext=c
14575 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14576 ac_cpp='$CPP $CPPFLAGS'
14577 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14578 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14579 cross_compiling=$ac_cv_prog_cc_cross
14580
14581 fi
14582
14583
14584
14585 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
14586 echo "configure:14587: checking if C++ compiler supports bool" >&5
14587 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
14588 echo $ac_n "(cached) $ac_c" 1>&6
14589 else
14590
14591
14592 ac_ext=C
14593 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14594 ac_cpp='$CXXCPP $CPPFLAGS'
14595 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14596 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14597 cross_compiling=$ac_cv_prog_cxx_cross
14598
14599
14600 cat > conftest.$ac_ext <<EOF
14601 #line 14602 "configure"
14602 #include "confdefs.h"
14603
14604
14605 int main() {
14606
14607 bool b = true;
14608
14609 return 0;
14610
14611 ; return 0; }
14612 EOF
14613 if { (eval echo configure:14614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14614 rm -rf conftest*
14615
14616 wx_cv_cpp_bool=yes
14617
14618 else
14619 echo "configure: failed program was:" >&5
14620 cat conftest.$ac_ext >&5
14621 rm -rf conftest*
14622
14623 wx_cv_cpp_bool=no
14624
14625
14626 fi
14627 rm -f conftest*
14628
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
14637 fi
14638
14639 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
14640
14641 if test "$wx_cv_cpp_bool" = "yes"; then
14642 cat >> confdefs.h <<\EOF
14643 #define HAVE_BOOL 1
14644 EOF
14645
14646 fi
14647
14648
14649
14650 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
14651 echo "configure:14652: checking for wcslen in -lc" >&5
14652 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
14653 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14654 echo $ac_n "(cached) $ac_c" 1>&6
14655 else
14656 ac_save_LIBS="$LIBS"
14657 LIBS="-lc $LIBS"
14658 cat > conftest.$ac_ext <<EOF
14659 #line 14660 "configure"
14660 #include "confdefs.h"
14661 /* Override any gcc2 internal prototype to avoid an error. */
14662 /* We use char because int might match the return type of a gcc2
14663 builtin and then its argument prototype would still apply. */
14664 char wcslen();
14665
14666 int main() {
14667 wcslen()
14668 ; return 0; }
14669 EOF
14670 if { (eval echo configure:14671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14671 rm -rf conftest*
14672 eval "ac_cv_lib_$ac_lib_var=yes"
14673 else
14674 echo "configure: failed program was:" >&5
14675 cat conftest.$ac_ext >&5
14676 rm -rf conftest*
14677 eval "ac_cv_lib_$ac_lib_var=no"
14678 fi
14679 rm -f conftest*
14680 LIBS="$ac_save_LIBS"
14681
14682 fi
14683 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14684 echo "$ac_t""yes" 1>&6
14685
14686 cat >> confdefs.h <<\EOF
14687 #define HAVE_WCSLEN 1
14688 EOF
14689
14690 WCHAR_LINK=
14691
14692 else
14693 echo "$ac_t""no" 1>&6
14694
14695 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
14696 echo "configure:14697: checking for wcslen in -lw" >&5
14697 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
14698 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14699 echo $ac_n "(cached) $ac_c" 1>&6
14700 else
14701 ac_save_LIBS="$LIBS"
14702 LIBS="-lw $LIBS"
14703 cat > conftest.$ac_ext <<EOF
14704 #line 14705 "configure"
14705 #include "confdefs.h"
14706 /* Override any gcc2 internal prototype to avoid an error. */
14707 /* We use char because int might match the return type of a gcc2
14708 builtin and then its argument prototype would still apply. */
14709 char wcslen();
14710
14711 int main() {
14712 wcslen()
14713 ; return 0; }
14714 EOF
14715 if { (eval echo configure:14716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14716 rm -rf conftest*
14717 eval "ac_cv_lib_$ac_lib_var=yes"
14718 else
14719 echo "configure: failed program was:" >&5
14720 cat conftest.$ac_ext >&5
14721 rm -rf conftest*
14722 eval "ac_cv_lib_$ac_lib_var=no"
14723 fi
14724 rm -f conftest*
14725 LIBS="$ac_save_LIBS"
14726
14727 fi
14728 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14729 echo "$ac_t""yes" 1>&6
14730
14731 cat >> confdefs.h <<\EOF
14732 #define HAVE_WCSLEN 1
14733 EOF
14734
14735 WCHAR_LINK=" -lw"
14736
14737 else
14738 echo "$ac_t""no" 1>&6
14739
14740 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
14741 echo "configure:14742: checking for wcslen in -lmsvcrt" >&5
14742 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
14743 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14744 echo $ac_n "(cached) $ac_c" 1>&6
14745 else
14746 ac_save_LIBS="$LIBS"
14747 LIBS="-lmsvcrt $LIBS"
14748 cat > conftest.$ac_ext <<EOF
14749 #line 14750 "configure"
14750 #include "confdefs.h"
14751 /* Override any gcc2 internal prototype to avoid an error. */
14752 /* We use char because int might match the return type of a gcc2
14753 builtin and then its argument prototype would still apply. */
14754 char wcslen();
14755
14756 int main() {
14757 wcslen()
14758 ; return 0; }
14759 EOF
14760 if { (eval echo configure:14761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14761 rm -rf conftest*
14762 eval "ac_cv_lib_$ac_lib_var=yes"
14763 else
14764 echo "configure: failed program was:" >&5
14765 cat conftest.$ac_ext >&5
14766 rm -rf conftest*
14767 eval "ac_cv_lib_$ac_lib_var=no"
14768 fi
14769 rm -f conftest*
14770 LIBS="$ac_save_LIBS"
14771
14772 fi
14773 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14774 echo "$ac_t""yes" 1>&6
14775
14776 cat >> confdefs.h <<\EOF
14777 #define HAVE_WCSLEN 1
14778 EOF
14779
14780 WCHAR_LINK=
14781
14782 else
14783 echo "$ac_t""no" 1>&6
14784 fi
14785
14786
14787 fi
14788
14789
14790 fi
14791
14792
14793 for ac_func in wcsrtombs
14794 do
14795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14796 echo "configure:14797: checking for $ac_func" >&5
14797 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14798 echo $ac_n "(cached) $ac_c" 1>&6
14799 else
14800 cat > conftest.$ac_ext <<EOF
14801 #line 14802 "configure"
14802 #include "confdefs.h"
14803 /* System header to define __stub macros and hopefully few prototypes,
14804 which can conflict with char $ac_func(); below. */
14805 #include <assert.h>
14806 /* Override any gcc2 internal prototype to avoid an error. */
14807 /* We use char because int might match the return type of a gcc2
14808 builtin and then its argument prototype would still apply. */
14809 char $ac_func();
14810
14811 int main() {
14812
14813 /* The GNU C library defines this for functions which it implements
14814 to always fail with ENOSYS. Some functions are actually named
14815 something starting with __ and the normal name is an alias. */
14816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14817 choke me
14818 #else
14819 $ac_func();
14820 #endif
14821
14822 ; return 0; }
14823 EOF
14824 if { (eval echo configure:14825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14825 rm -rf conftest*
14826 eval "ac_cv_func_$ac_func=yes"
14827 else
14828 echo "configure: failed program was:" >&5
14829 cat conftest.$ac_ext >&5
14830 rm -rf conftest*
14831 eval "ac_cv_func_$ac_func=no"
14832 fi
14833 rm -f conftest*
14834 fi
14835
14836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14837 echo "$ac_t""yes" 1>&6
14838 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14839 cat >> confdefs.h <<EOF
14840 #define $ac_tr_func 1
14841 EOF
14842
14843 else
14844 echo "$ac_t""no" 1>&6
14845 fi
14846 done
14847
14848
14849 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
14850 echo "configure:14851: checking for vprintf" >&5
14851 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
14852 echo $ac_n "(cached) $ac_c" 1>&6
14853 else
14854 cat > conftest.$ac_ext <<EOF
14855 #line 14856 "configure"
14856 #include "confdefs.h"
14857 /* System header to define __stub macros and hopefully few prototypes,
14858 which can conflict with char vprintf(); below. */
14859 #include <assert.h>
14860 /* Override any gcc2 internal prototype to avoid an error. */
14861 /* We use char because int might match the return type of a gcc2
14862 builtin and then its argument prototype would still apply. */
14863 char vprintf();
14864
14865 int main() {
14866
14867 /* The GNU C library defines this for functions which it implements
14868 to always fail with ENOSYS. Some functions are actually named
14869 something starting with __ and the normal name is an alias. */
14870 #if defined (__stub_vprintf) || defined (__stub___vprintf)
14871 choke me
14872 #else
14873 vprintf();
14874 #endif
14875
14876 ; return 0; }
14877 EOF
14878 if { (eval echo configure:14879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14879 rm -rf conftest*
14880 eval "ac_cv_func_vprintf=yes"
14881 else
14882 echo "configure: failed program was:" >&5
14883 cat conftest.$ac_ext >&5
14884 rm -rf conftest*
14885 eval "ac_cv_func_vprintf=no"
14886 fi
14887 rm -f conftest*
14888 fi
14889
14890 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
14891 echo "$ac_t""yes" 1>&6
14892 cat >> confdefs.h <<\EOF
14893 #define HAVE_VPRINTF 1
14894 EOF
14895
14896 else
14897 echo "$ac_t""no" 1>&6
14898 fi
14899
14900 if test "$ac_cv_func_vprintf" != yes; then
14901 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
14902 echo "configure:14903: checking for _doprnt" >&5
14903 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
14904 echo $ac_n "(cached) $ac_c" 1>&6
14905 else
14906 cat > conftest.$ac_ext <<EOF
14907 #line 14908 "configure"
14908 #include "confdefs.h"
14909 /* System header to define __stub macros and hopefully few prototypes,
14910 which can conflict with char _doprnt(); below. */
14911 #include <assert.h>
14912 /* Override any gcc2 internal prototype to avoid an error. */
14913 /* We use char because int might match the return type of a gcc2
14914 builtin and then its argument prototype would still apply. */
14915 char _doprnt();
14916
14917 int main() {
14918
14919 /* The GNU C library defines this for functions which it implements
14920 to always fail with ENOSYS. Some functions are actually named
14921 something starting with __ and the normal name is an alias. */
14922 #if defined (__stub__doprnt) || defined (__stub____doprnt)
14923 choke me
14924 #else
14925 _doprnt();
14926 #endif
14927
14928 ; return 0; }
14929 EOF
14930 if { (eval echo configure:14931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14931 rm -rf conftest*
14932 eval "ac_cv_func__doprnt=yes"
14933 else
14934 echo "configure: failed program was:" >&5
14935 cat conftest.$ac_ext >&5
14936 rm -rf conftest*
14937 eval "ac_cv_func__doprnt=no"
14938 fi
14939 rm -f conftest*
14940 fi
14941
14942 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
14943 echo "$ac_t""yes" 1>&6
14944 cat >> confdefs.h <<\EOF
14945 #define HAVE_DOPRNT 1
14946 EOF
14947
14948 else
14949 echo "$ac_t""no" 1>&6
14950 fi
14951
14952 fi
14953
14954
14955
14956
14957
14958
14959 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
14960 echo "configure:14961: checking for vsnprintf" >&5
14961 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
14962 echo $ac_n "(cached) $ac_c" 1>&6
14963 else
14964
14965 cat > conftest.$ac_ext <<EOF
14966 #line 14967 "configure"
14967 #include "confdefs.h"
14968
14969 #include <stdio.h>
14970 #include <stdarg.h>
14971
14972 int main() {
14973
14974 int wx_test_vsnprintf(const char *, ...);
14975
14976 wx_test_vsnprintf("%s");
14977 return 0;
14978 }
14979
14980 int wx_test_vsnprintf(const char *fmt, ...)
14981 {
14982 char *s;
14983
14984 va_list argp;
14985 va_start(argp, fmt);
14986 vsnprintf(s, 42, fmt, argp);
14987 va_end(argp);
14988
14989 ; return 0; }
14990 EOF
14991 if { (eval echo configure:14992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14992 rm -rf conftest*
14993
14994 wx_cv_func_vsnprintf=yes
14995
14996 else
14997 echo "configure: failed program was:" >&5
14998 cat conftest.$ac_ext >&5
14999 rm -rf conftest*
15000
15001 cat > conftest.$ac_ext <<EOF
15002 #line 15003 "configure"
15003 #include "confdefs.h"
15004
15005 #include <stdio.h>
15006 #include <stdarg.h>
15007
15008 int main() {
15009
15010 int wx_test_vsnprintf(const char *, ...);
15011
15012 wx_test_vsnprintf("%s");
15013 return 0;
15014 }
15015
15016 int wx_test_vsnprintf(const char *fmt, ...)
15017 {
15018 char *s;
15019
15020 va_list argp;
15021 va_start(argp, fmt);
15022 _vsnprintf(s, 42, fmt, argp);
15023 va_end(argp);
15024
15025 ; return 0; }
15026 EOF
15027 if { (eval echo configure:15028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15028 rm -rf conftest*
15029
15030 wx_cv_func_vsnprintf=yes
15031
15032 else
15033 echo "configure: failed program was:" >&5
15034 cat conftest.$ac_ext >&5
15035 rm -rf conftest*
15036
15037 wx_cv_func_vsnprintf=no
15038
15039 fi
15040 rm -f conftest*
15041
15042 fi
15043 rm -f conftest*
15044
15045 fi
15046
15047 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
15048
15049 if test "$wx_cv_func_vsnprintf" = yes; then
15050 cat >> confdefs.h <<\EOF
15051 #define HAVE_VSNPRINTF 1
15052 EOF
15053
15054 else
15055 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
15056 fi
15057
15058 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
15059 echo "configure:15060: checking for vsscanf" >&5
15060 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
15061 echo $ac_n "(cached) $ac_c" 1>&6
15062 else
15063
15064 cat > conftest.$ac_ext <<EOF
15065 #line 15066 "configure"
15066 #include "confdefs.h"
15067
15068 #include <stdio.h>
15069 #include <stdarg.h>
15070
15071 int main() {
15072
15073 int wx_test_vsscanf(const char *, ...);
15074
15075 wx_test_vsscanf("%d");
15076 return 0;
15077 }
15078
15079 int wx_test_vsscanf(const char *fmt, ...)
15080 {
15081 va_list argp;
15082 va_start(argp, fmt);
15083 vsscanf("42", fmt, argp);
15084 va_end(argp);
15085
15086 ; return 0; }
15087 EOF
15088 if { (eval echo configure:15089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15089 rm -rf conftest*
15090
15091 wx_cv_func_vsscanf=yes
15092
15093 else
15094 echo "configure: failed program was:" >&5
15095 cat conftest.$ac_ext >&5
15096 rm -rf conftest*
15097
15098 wx_cv_func_vsscanf=no
15099
15100 fi
15101 rm -f conftest*
15102
15103 fi
15104
15105 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
15106
15107 if test "$wx_cv_func_vsscanf" = yes; then
15108 cat >> confdefs.h <<\EOF
15109 #define HAVE_VSSCANF 1
15110 EOF
15111
15112 fi
15113
15114 if test "$TOOLKIT" != "MSW"; then
15115
15116
15117
15118 ac_ext=C
15119 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15120 ac_cpp='$CXXCPP $CPPFLAGS'
15121 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15122 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15123 cross_compiling=$ac_cv_prog_cxx_cross
15124
15125
15126
15127 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15128 if test "${with_libiconv_prefix+set}" = set; then
15129 withval="$with_libiconv_prefix"
15130
15131 for dir in `echo "$withval" | tr : ' '`; do
15132 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
15133 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
15134 done
15135
15136 fi
15137
15138
15139 echo $ac_n "checking for iconv""... $ac_c" 1>&6
15140 echo "configure:15141: checking for iconv" >&5
15141 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
15142 echo $ac_n "(cached) $ac_c" 1>&6
15143 else
15144
15145 am_cv_func_iconv="no, consider installing GNU libiconv"
15146 am_cv_lib_iconv=no
15147 cat > conftest.$ac_ext <<EOF
15148 #line 15149 "configure"
15149 #include "confdefs.h"
15150 #include <stdlib.h>
15151 #include <iconv.h>
15152 int main() {
15153 iconv_t cd = iconv_open("","");
15154 iconv(cd,NULL,NULL,NULL,NULL);
15155 iconv_close(cd);
15156 ; return 0; }
15157 EOF
15158 if { (eval echo configure:15159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15159 rm -rf conftest*
15160 am_cv_func_iconv=yes
15161 else
15162 echo "configure: failed program was:" >&5
15163 cat conftest.$ac_ext >&5
15164 fi
15165 rm -f conftest*
15166 if test "$am_cv_func_iconv" != yes; then
15167 am_save_LIBS="$LIBS"
15168 LIBS="$LIBS -liconv"
15169 cat > conftest.$ac_ext <<EOF
15170 #line 15171 "configure"
15171 #include "confdefs.h"
15172 #include <stdlib.h>
15173 #include <iconv.h>
15174 int main() {
15175 iconv_t cd = iconv_open("","");
15176 iconv(cd,NULL,NULL,NULL,NULL);
15177 iconv_close(cd);
15178 ; return 0; }
15179 EOF
15180 if { (eval echo configure:15181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15181 rm -rf conftest*
15182 am_cv_lib_iconv=yes
15183 am_cv_func_iconv=yes
15184 else
15185 echo "configure: failed program was:" >&5
15186 cat conftest.$ac_ext >&5
15187 fi
15188 rm -f conftest*
15189 LIBS="$am_save_LIBS"
15190 fi
15191
15192 fi
15193
15194 echo "$ac_t""$am_cv_func_iconv" 1>&6
15195 if test "$am_cv_func_iconv" = yes; then
15196 cat >> confdefs.h <<\EOF
15197 #define HAVE_ICONV 1
15198 EOF
15199
15200 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
15201 echo "configure:15202: checking for iconv declaration" >&5
15202 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
15203 echo $ac_n "(cached) $ac_c" 1>&6
15204 else
15205
15206 cat > conftest.$ac_ext <<EOF
15207 #line 15208 "configure"
15208 #include "confdefs.h"
15209
15210 #include <stdlib.h>
15211 #include <iconv.h>
15212 extern
15213 #ifdef __cplusplus
15214 "C"
15215 #endif
15216 #if defined(__STDC__) || defined(__cplusplus)
15217 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15218 #else
15219 size_t iconv();
15220 #endif
15221
15222 int main() {
15223
15224 ; return 0; }
15225 EOF
15226 if { (eval echo configure:15227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15227 rm -rf conftest*
15228 am_cv_proto_iconv_arg1=""
15229 else
15230 echo "configure: failed program was:" >&5
15231 cat conftest.$ac_ext >&5
15232 rm -rf conftest*
15233 am_cv_proto_iconv_arg1="const"
15234 fi
15235 rm -f conftest*
15236 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
15237 fi
15238
15239 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
15240 echo "$ac_t""${ac_t:-
15241 }$am_cv_proto_iconv" 1>&6
15242 cat >> confdefs.h <<EOF
15243 #define ICONV_CONST $am_cv_proto_iconv_arg1
15244 EOF
15245
15246 fi
15247 LIBICONV=
15248 if test "$am_cv_lib_iconv" = yes; then
15249 LIBICONV="-liconv"
15250 fi
15251
15252
15253 LIBS="$LIBICONV $LIBS"
15254 ac_ext=c
15255 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15256 ac_cpp='$CPP $CPPFLAGS'
15257 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15258 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15259 cross_compiling=$ac_cv_prog_cc_cross
15260
15261
15262 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
15263 for ac_func in sigaction
15264 do
15265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15266 echo "configure:15267: checking for $ac_func" >&5
15267 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15268 echo $ac_n "(cached) $ac_c" 1>&6
15269 else
15270 cat > conftest.$ac_ext <<EOF
15271 #line 15272 "configure"
15272 #include "confdefs.h"
15273 /* System header to define __stub macros and hopefully few prototypes,
15274 which can conflict with char $ac_func(); below. */
15275 #include <assert.h>
15276 /* Override any gcc2 internal prototype to avoid an error. */
15277 /* We use char because int might match the return type of a gcc2
15278 builtin and then its argument prototype would still apply. */
15279 char $ac_func();
15280
15281 int main() {
15282
15283 /* The GNU C library defines this for functions which it implements
15284 to always fail with ENOSYS. Some functions are actually named
15285 something starting with __ and the normal name is an alias. */
15286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15287 choke me
15288 #else
15289 $ac_func();
15290 #endif
15291
15292 ; return 0; }
15293 EOF
15294 if { (eval echo configure:15295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15295 rm -rf conftest*
15296 eval "ac_cv_func_$ac_func=yes"
15297 else
15298 echo "configure: failed program was:" >&5
15299 cat conftest.$ac_ext >&5
15300 rm -rf conftest*
15301 eval "ac_cv_func_$ac_func=no"
15302 fi
15303 rm -f conftest*
15304 fi
15305
15306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15307 echo "$ac_t""yes" 1>&6
15308 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15309 cat >> confdefs.h <<EOF
15310 #define $ac_tr_func 1
15311 EOF
15312
15313 else
15314 echo "$ac_t""no" 1>&6
15315 fi
15316 done
15317
15318
15319 if test "$ac_cv_func_sigaction" = "no"; then
15320 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
15321 wxUSE_ON_FATAL_EXCEPTION=no
15322 fi
15323
15324 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15325
15326 ac_ext=C
15327 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15328 ac_cpp='$CXXCPP $CPPFLAGS'
15329 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15330 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15331 cross_compiling=$ac_cv_prog_cxx_cross
15332
15333
15334 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
15335 echo "configure:15336: checking for sa_handler type" >&5
15336 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
15337 echo $ac_n "(cached) $ac_c" 1>&6
15338 else
15339
15340 cat > conftest.$ac_ext <<EOF
15341 #line 15342 "configure"
15342 #include "confdefs.h"
15343 #include <signal.h>
15344 int main() {
15345
15346 extern void testSigHandler(int);
15347
15348 struct sigaction sa;
15349 sa.sa_handler = testSigHandler;
15350
15351 ; return 0; }
15352 EOF
15353 if { (eval echo configure:15354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15354 rm -rf conftest*
15355
15356 wx_cv_type_sa_handler=int
15357
15358 else
15359 echo "configure: failed program was:" >&5
15360 cat conftest.$ac_ext >&5
15361 rm -rf conftest*
15362
15363 wx_cv_type_sa_handler=void
15364
15365 fi
15366 rm -f conftest*
15367
15368 fi
15369
15370 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
15371
15372 ac_ext=c
15373 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15374 ac_cpp='$CPP $CPPFLAGS'
15375 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15376 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15377 cross_compiling=$ac_cv_prog_cc_cross
15378
15379
15380 cat >> confdefs.h <<EOF
15381 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
15382 EOF
15383
15384 fi
15385 fi
15386
15387 for ac_func in vfork
15388 do
15389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15390 echo "configure:15391: checking for $ac_func" >&5
15391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15392 echo $ac_n "(cached) $ac_c" 1>&6
15393 else
15394 cat > conftest.$ac_ext <<EOF
15395 #line 15396 "configure"
15396 #include "confdefs.h"
15397 /* System header to define __stub macros and hopefully few prototypes,
15398 which can conflict with char $ac_func(); below. */
15399 #include <assert.h>
15400 /* Override any gcc2 internal prototype to avoid an error. */
15401 /* We use char because int might match the return type of a gcc2
15402 builtin and then its argument prototype would still apply. */
15403 char $ac_func();
15404
15405 int main() {
15406
15407 /* The GNU C library defines this for functions which it implements
15408 to always fail with ENOSYS. Some functions are actually named
15409 something starting with __ and the normal name is an alias. */
15410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15411 choke me
15412 #else
15413 $ac_func();
15414 #endif
15415
15416 ; return 0; }
15417 EOF
15418 if { (eval echo configure:15419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15419 rm -rf conftest*
15420 eval "ac_cv_func_$ac_func=yes"
15421 else
15422 echo "configure: failed program was:" >&5
15423 cat conftest.$ac_ext >&5
15424 rm -rf conftest*
15425 eval "ac_cv_func_$ac_func=no"
15426 fi
15427 rm -f conftest*
15428 fi
15429
15430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15431 echo "$ac_t""yes" 1>&6
15432 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15433 cat >> confdefs.h <<EOF
15434 #define $ac_tr_func 1
15435 EOF
15436
15437 else
15438 echo "$ac_t""no" 1>&6
15439 fi
15440 done
15441
15442
15443 for ac_func in mkstemp mktemp
15444 do
15445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15446 echo "configure:15447: checking for $ac_func" >&5
15447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15448 echo $ac_n "(cached) $ac_c" 1>&6
15449 else
15450 cat > conftest.$ac_ext <<EOF
15451 #line 15452 "configure"
15452 #include "confdefs.h"
15453 /* System header to define __stub macros and hopefully few prototypes,
15454 which can conflict with char $ac_func(); below. */
15455 #include <assert.h>
15456 /* Override any gcc2 internal prototype to avoid an error. */
15457 /* We use char because int might match the return type of a gcc2
15458 builtin and then its argument prototype would still apply. */
15459 char $ac_func();
15460
15461 int main() {
15462
15463 /* The GNU C library defines this for functions which it implements
15464 to always fail with ENOSYS. Some functions are actually named
15465 something starting with __ and the normal name is an alias. */
15466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15467 choke me
15468 #else
15469 $ac_func();
15470 #endif
15471
15472 ; return 0; }
15473 EOF
15474 if { (eval echo configure:15475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15475 rm -rf conftest*
15476 eval "ac_cv_func_$ac_func=yes"
15477 else
15478 echo "configure: failed program was:" >&5
15479 cat conftest.$ac_ext >&5
15480 rm -rf conftest*
15481 eval "ac_cv_func_$ac_func=no"
15482 fi
15483 rm -f conftest*
15484 fi
15485
15486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15487 echo "$ac_t""yes" 1>&6
15488 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15489 cat >> confdefs.h <<EOF
15490 #define $ac_tr_func 1
15491 EOF
15492 break
15493 else
15494 echo "$ac_t""no" 1>&6
15495 fi
15496 done
15497
15498
15499 echo $ac_n "checking for statfs""... $ac_c" 1>&6
15500 echo "configure:15501: checking for statfs" >&5
15501 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
15502 echo $ac_n "(cached) $ac_c" 1>&6
15503 else
15504 cat > conftest.$ac_ext <<EOF
15505 #line 15506 "configure"
15506 #include "confdefs.h"
15507
15508 #if defined(__BSD__)
15509 #include <sys/param.h>
15510 #include <sys/mount.h>
15511 #else
15512 #include <sys/vfs.h>
15513 #endif
15514
15515 int main() {
15516
15517 long l;
15518 struct statfs fs;
15519 statfs("/", &fs);
15520 l = fs.f_bsize;
15521 l += fs.f_blocks;
15522 l += fs.f_bavail;
15523
15524 ; return 0; }
15525 EOF
15526 if { (eval echo configure:15527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15527 rm -rf conftest*
15528
15529 wx_cv_func_statfs=yes
15530
15531 else
15532 echo "configure: failed program was:" >&5
15533 cat conftest.$ac_ext >&5
15534 rm -rf conftest*
15535
15536 wx_cv_func_statfs=no
15537
15538
15539 fi
15540 rm -f conftest*
15541
15542 fi
15543
15544 echo "$ac_t""$wx_cv_func_statfs" 1>&6
15545
15546 if test "$wx_cv_func_statfs" = "yes"; then
15547 cat >> confdefs.h <<\EOF
15548 #define HAVE_STATFS 1
15549 EOF
15550
15551 else
15552 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
15553 echo "configure:15554: checking for statvfs" >&5
15554 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
15555 echo $ac_n "(cached) $ac_c" 1>&6
15556 else
15557 cat > conftest.$ac_ext <<EOF
15558 #line 15559 "configure"
15559 #include "confdefs.h"
15560
15561 #include <sys/statvfs.h>
15562
15563 int main() {
15564
15565 long l;
15566 struct statvfs fs;
15567 statvfs("/", &fs);
15568 l = fs.f_bsize;
15569 l += fs.f_blocks;
15570 l += fs.f_bavail;
15571
15572 ; return 0; }
15573 EOF
15574 if { (eval echo configure:15575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15575 rm -rf conftest*
15576
15577 wx_cv_func_statvfs=yes
15578
15579 else
15580 echo "configure: failed program was:" >&5
15581 cat conftest.$ac_ext >&5
15582 rm -rf conftest*
15583
15584 wx_cv_func_statvfs=no
15585
15586
15587 fi
15588 rm -f conftest*
15589
15590 fi
15591
15592 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
15593
15594 if test "$wx_cv_func_statvfs" = "yes"; then
15595 cat >> confdefs.h <<\EOF
15596 #define HAVE_STATVFS 1
15597 EOF
15598
15599 else
15600 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
15601 fi
15602 fi
15603
15604 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15605 for ac_func in fcntl flock
15606 do
15607 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15608 echo "configure:15609: checking for $ac_func" >&5
15609 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15610 echo $ac_n "(cached) $ac_c" 1>&6
15611 else
15612 cat > conftest.$ac_ext <<EOF
15613 #line 15614 "configure"
15614 #include "confdefs.h"
15615 /* System header to define __stub macros and hopefully few prototypes,
15616 which can conflict with char $ac_func(); below. */
15617 #include <assert.h>
15618 /* Override any gcc2 internal prototype to avoid an error. */
15619 /* We use char because int might match the return type of a gcc2
15620 builtin and then its argument prototype would still apply. */
15621 char $ac_func();
15622
15623 int main() {
15624
15625 /* The GNU C library defines this for functions which it implements
15626 to always fail with ENOSYS. Some functions are actually named
15627 something starting with __ and the normal name is an alias. */
15628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15629 choke me
15630 #else
15631 $ac_func();
15632 #endif
15633
15634 ; return 0; }
15635 EOF
15636 if { (eval echo configure:15637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15637 rm -rf conftest*
15638 eval "ac_cv_func_$ac_func=yes"
15639 else
15640 echo "configure: failed program was:" >&5
15641 cat conftest.$ac_ext >&5
15642 rm -rf conftest*
15643 eval "ac_cv_func_$ac_func=no"
15644 fi
15645 rm -f conftest*
15646 fi
15647
15648 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15649 echo "$ac_t""yes" 1>&6
15650 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15651 cat >> confdefs.h <<EOF
15652 #define $ac_tr_func 1
15653 EOF
15654 break
15655 else
15656 echo "$ac_t""no" 1>&6
15657 fi
15658 done
15659
15660
15661 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
15662 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
15663 wxUSE_SNGLINST_CHECKER=no
15664 fi
15665 fi
15666
15667 for ac_func in timegm
15668 do
15669 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15670 echo "configure:15671: checking for $ac_func" >&5
15671 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15672 echo $ac_n "(cached) $ac_c" 1>&6
15673 else
15674 cat > conftest.$ac_ext <<EOF
15675 #line 15676 "configure"
15676 #include "confdefs.h"
15677 /* System header to define __stub macros and hopefully few prototypes,
15678 which can conflict with char $ac_func(); below. */
15679 #include <assert.h>
15680 /* Override any gcc2 internal prototype to avoid an error. */
15681 /* We use char because int might match the return type of a gcc2
15682 builtin and then its argument prototype would still apply. */
15683 char $ac_func();
15684
15685 int main() {
15686
15687 /* The GNU C library defines this for functions which it implements
15688 to always fail with ENOSYS. Some functions are actually named
15689 something starting with __ and the normal name is an alias. */
15690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15691 choke me
15692 #else
15693 $ac_func();
15694 #endif
15695
15696 ; return 0; }
15697 EOF
15698 if { (eval echo configure:15699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15699 rm -rf conftest*
15700 eval "ac_cv_func_$ac_func=yes"
15701 else
15702 echo "configure: failed program was:" >&5
15703 cat conftest.$ac_ext >&5
15704 rm -rf conftest*
15705 eval "ac_cv_func_$ac_func=no"
15706 fi
15707 rm -f conftest*
15708 fi
15709
15710 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15711 echo "$ac_t""yes" 1>&6
15712 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15713 cat >> confdefs.h <<EOF
15714 #define $ac_tr_func 1
15715 EOF
15716
15717 else
15718 echo "$ac_t""no" 1>&6
15719 fi
15720 done
15721
15722
15723 for ac_func in putenv setenv
15724 do
15725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15726 echo "configure:15727: checking for $ac_func" >&5
15727 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15728 echo $ac_n "(cached) $ac_c" 1>&6
15729 else
15730 cat > conftest.$ac_ext <<EOF
15731 #line 15732 "configure"
15732 #include "confdefs.h"
15733 /* System header to define __stub macros and hopefully few prototypes,
15734 which can conflict with char $ac_func(); below. */
15735 #include <assert.h>
15736 /* Override any gcc2 internal prototype to avoid an error. */
15737 /* We use char because int might match the return type of a gcc2
15738 builtin and then its argument prototype would still apply. */
15739 char $ac_func();
15740
15741 int main() {
15742
15743 /* The GNU C library defines this for functions which it implements
15744 to always fail with ENOSYS. Some functions are actually named
15745 something starting with __ and the normal name is an alias. */
15746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15747 choke me
15748 #else
15749 $ac_func();
15750 #endif
15751
15752 ; return 0; }
15753 EOF
15754 if { (eval echo configure:15755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15755 rm -rf conftest*
15756 eval "ac_cv_func_$ac_func=yes"
15757 else
15758 echo "configure: failed program was:" >&5
15759 cat conftest.$ac_ext >&5
15760 rm -rf conftest*
15761 eval "ac_cv_func_$ac_func=no"
15762 fi
15763 rm -f conftest*
15764 fi
15765
15766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15767 echo "$ac_t""yes" 1>&6
15768 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15769 cat >> confdefs.h <<EOF
15770 #define $ac_tr_func 1
15771 EOF
15772 break
15773 else
15774 echo "$ac_t""no" 1>&6
15775 fi
15776 done
15777
15778
15779 HAVE_SOME_SLEEP_FUNC=0
15780 if test "$USE_BEOS" = 1; then
15781 cat >> confdefs.h <<\EOF
15782 #define HAVE_SLEEP 1
15783 EOF
15784
15785 HAVE_SOME_SLEEP_FUNC=1
15786 fi
15787
15788 if test "$USE_DARWIN" = 1; then
15789 cat >> confdefs.h <<\EOF
15790 #define HAVE_USLEEP 1
15791 EOF
15792
15793 HAVE_SOME_SLEEP_FUNC=1
15794 fi
15795
15796 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
15797 POSIX4_LINK=
15798 for ac_func in nanosleep
15799 do
15800 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15801 echo "configure:15802: checking for $ac_func" >&5
15802 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15803 echo $ac_n "(cached) $ac_c" 1>&6
15804 else
15805 cat > conftest.$ac_ext <<EOF
15806 #line 15807 "configure"
15807 #include "confdefs.h"
15808 /* System header to define __stub macros and hopefully few prototypes,
15809 which can conflict with char $ac_func(); below. */
15810 #include <assert.h>
15811 /* Override any gcc2 internal prototype to avoid an error. */
15812 /* We use char because int might match the return type of a gcc2
15813 builtin and then its argument prototype would still apply. */
15814 char $ac_func();
15815
15816 int main() {
15817
15818 /* The GNU C library defines this for functions which it implements
15819 to always fail with ENOSYS. Some functions are actually named
15820 something starting with __ and the normal name is an alias. */
15821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15822 choke me
15823 #else
15824 $ac_func();
15825 #endif
15826
15827 ; return 0; }
15828 EOF
15829 if { (eval echo configure:15830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15830 rm -rf conftest*
15831 eval "ac_cv_func_$ac_func=yes"
15832 else
15833 echo "configure: failed program was:" >&5
15834 cat conftest.$ac_ext >&5
15835 rm -rf conftest*
15836 eval "ac_cv_func_$ac_func=no"
15837 fi
15838 rm -f conftest*
15839 fi
15840
15841 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15842 echo "$ac_t""yes" 1>&6
15843 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15844 cat >> confdefs.h <<EOF
15845 #define $ac_tr_func 1
15846 EOF
15847 cat >> confdefs.h <<\EOF
15848 #define HAVE_NANOSLEEP 1
15849 EOF
15850
15851 else
15852 echo "$ac_t""no" 1>&6
15853 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
15854 echo "configure:15855: checking for nanosleep in -lposix4" >&5
15855 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
15856 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15857 echo $ac_n "(cached) $ac_c" 1>&6
15858 else
15859 ac_save_LIBS="$LIBS"
15860 LIBS="-lposix4 $LIBS"
15861 cat > conftest.$ac_ext <<EOF
15862 #line 15863 "configure"
15863 #include "confdefs.h"
15864 /* Override any gcc2 internal prototype to avoid an error. */
15865 /* We use char because int might match the return type of a gcc2
15866 builtin and then its argument prototype would still apply. */
15867 char nanosleep();
15868
15869 int main() {
15870 nanosleep()
15871 ; return 0; }
15872 EOF
15873 if { (eval echo configure:15874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15874 rm -rf conftest*
15875 eval "ac_cv_lib_$ac_lib_var=yes"
15876 else
15877 echo "configure: failed program was:" >&5
15878 cat conftest.$ac_ext >&5
15879 rm -rf conftest*
15880 eval "ac_cv_lib_$ac_lib_var=no"
15881 fi
15882 rm -f conftest*
15883 LIBS="$ac_save_LIBS"
15884
15885 fi
15886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15887 echo "$ac_t""yes" 1>&6
15888
15889 cat >> confdefs.h <<\EOF
15890 #define HAVE_NANOSLEEP 1
15891 EOF
15892
15893 POSIX4_LINK=" -lposix4"
15894
15895 else
15896 echo "$ac_t""no" 1>&6
15897
15898 for ac_func in usleep
15899 do
15900 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15901 echo "configure:15902: checking for $ac_func" >&5
15902 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15903 echo $ac_n "(cached) $ac_c" 1>&6
15904 else
15905 cat > conftest.$ac_ext <<EOF
15906 #line 15907 "configure"
15907 #include "confdefs.h"
15908 /* System header to define __stub macros and hopefully few prototypes,
15909 which can conflict with char $ac_func(); below. */
15910 #include <assert.h>
15911 /* Override any gcc2 internal prototype to avoid an error. */
15912 /* We use char because int might match the return type of a gcc2
15913 builtin and then its argument prototype would still apply. */
15914 char $ac_func();
15915
15916 int main() {
15917
15918 /* The GNU C library defines this for functions which it implements
15919 to always fail with ENOSYS. Some functions are actually named
15920 something starting with __ and the normal name is an alias. */
15921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15922 choke me
15923 #else
15924 $ac_func();
15925 #endif
15926
15927 ; return 0; }
15928 EOF
15929 if { (eval echo configure:15930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15930 rm -rf conftest*
15931 eval "ac_cv_func_$ac_func=yes"
15932 else
15933 echo "configure: failed program was:" >&5
15934 cat conftest.$ac_ext >&5
15935 rm -rf conftest*
15936 eval "ac_cv_func_$ac_func=no"
15937 fi
15938 rm -f conftest*
15939 fi
15940
15941 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15942 echo "$ac_t""yes" 1>&6
15943 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15944 cat >> confdefs.h <<EOF
15945 #define $ac_tr_func 1
15946 EOF
15947 cat >> confdefs.h <<\EOF
15948 #define HAVE_USLEEP 1
15949 EOF
15950
15951 else
15952 echo "$ac_t""no" 1>&6
15953 echo "configure: warning: wxSleep() function will not work" 1>&2
15954
15955 fi
15956 done
15957
15958
15959
15960 fi
15961
15962
15963
15964 fi
15965 done
15966
15967 fi
15968
15969 for ac_func in uname gethostname
15970 do
15971 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15972 echo "configure:15973: checking for $ac_func" >&5
15973 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15974 echo $ac_n "(cached) $ac_c" 1>&6
15975 else
15976 cat > conftest.$ac_ext <<EOF
15977 #line 15978 "configure"
15978 #include "confdefs.h"
15979 /* System header to define __stub macros and hopefully few prototypes,
15980 which can conflict with char $ac_func(); below. */
15981 #include <assert.h>
15982 /* Override any gcc2 internal prototype to avoid an error. */
15983 /* We use char because int might match the return type of a gcc2
15984 builtin and then its argument prototype would still apply. */
15985 char $ac_func();
15986
15987 int main() {
15988
15989 /* The GNU C library defines this for functions which it implements
15990 to always fail with ENOSYS. Some functions are actually named
15991 something starting with __ and the normal name is an alias. */
15992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15993 choke me
15994 #else
15995 $ac_func();
15996 #endif
15997
15998 ; return 0; }
15999 EOF
16000 if { (eval echo configure:16001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16001 rm -rf conftest*
16002 eval "ac_cv_func_$ac_func=yes"
16003 else
16004 echo "configure: failed program was:" >&5
16005 cat conftest.$ac_ext >&5
16006 rm -rf conftest*
16007 eval "ac_cv_func_$ac_func=no"
16008 fi
16009 rm -f conftest*
16010 fi
16011
16012 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16013 echo "$ac_t""yes" 1>&6
16014 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16015 cat >> confdefs.h <<EOF
16016 #define $ac_tr_func 1
16017 EOF
16018 break
16019 else
16020 echo "$ac_t""no" 1>&6
16021 fi
16022 done
16023
16024
16025
16026 ac_ext=C
16027 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16028 ac_cpp='$CXXCPP $CPPFLAGS'
16029 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16030 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16031 cross_compiling=$ac_cv_prog_cxx_cross
16032
16033
16034 for ac_func in strtok_r
16035 do
16036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16037 echo "configure:16038: checking for $ac_func" >&5
16038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16039 echo $ac_n "(cached) $ac_c" 1>&6
16040 else
16041 cat > conftest.$ac_ext <<EOF
16042 #line 16043 "configure"
16043 #include "confdefs.h"
16044 /* System header to define __stub macros and hopefully few prototypes,
16045 which can conflict with char $ac_func(); below. */
16046 #include <assert.h>
16047 /* Override any gcc2 internal prototype to avoid an error. */
16048 #ifdef __cplusplus
16049 extern "C"
16050 #endif
16051 /* We use char because int might match the return type of a gcc2
16052 builtin and then its argument prototype would still apply. */
16053 char $ac_func();
16054
16055 int main() {
16056
16057 /* The GNU C library defines this for functions which it implements
16058 to always fail with ENOSYS. Some functions are actually named
16059 something starting with __ and the normal name is an alias. */
16060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16061 choke me
16062 #else
16063 $ac_func();
16064 #endif
16065
16066 ; return 0; }
16067 EOF
16068 if { (eval echo configure:16069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16069 rm -rf conftest*
16070 eval "ac_cv_func_$ac_func=yes"
16071 else
16072 echo "configure: failed program was:" >&5
16073 cat conftest.$ac_ext >&5
16074 rm -rf conftest*
16075 eval "ac_cv_func_$ac_func=no"
16076 fi
16077 rm -f conftest*
16078 fi
16079
16080 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16081 echo "$ac_t""yes" 1>&6
16082 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16083 cat >> confdefs.h <<EOF
16084 #define $ac_tr_func 1
16085 EOF
16086
16087 else
16088 echo "$ac_t""no" 1>&6
16089 fi
16090 done
16091
16092
16093 ac_ext=c
16094 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16095 ac_cpp='$CPP $CPPFLAGS'
16096 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16097 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16098 cross_compiling=$ac_cv_prog_cc_cross
16099
16100
16101 INET_LINK=
16102 for ac_func in inet_addr
16103 do
16104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16105 echo "configure:16106: checking for $ac_func" >&5
16106 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16107 echo $ac_n "(cached) $ac_c" 1>&6
16108 else
16109 cat > conftest.$ac_ext <<EOF
16110 #line 16111 "configure"
16111 #include "confdefs.h"
16112 /* System header to define __stub macros and hopefully few prototypes,
16113 which can conflict with char $ac_func(); below. */
16114 #include <assert.h>
16115 /* Override any gcc2 internal prototype to avoid an error. */
16116 /* We use char because int might match the return type of a gcc2
16117 builtin and then its argument prototype would still apply. */
16118 char $ac_func();
16119
16120 int main() {
16121
16122 /* The GNU C library defines this for functions which it implements
16123 to always fail with ENOSYS. Some functions are actually named
16124 something starting with __ and the normal name is an alias. */
16125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16126 choke me
16127 #else
16128 $ac_func();
16129 #endif
16130
16131 ; return 0; }
16132 EOF
16133 if { (eval echo configure:16134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16134 rm -rf conftest*
16135 eval "ac_cv_func_$ac_func=yes"
16136 else
16137 echo "configure: failed program was:" >&5
16138 cat conftest.$ac_ext >&5
16139 rm -rf conftest*
16140 eval "ac_cv_func_$ac_func=no"
16141 fi
16142 rm -f conftest*
16143 fi
16144
16145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16146 echo "$ac_t""yes" 1>&6
16147 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16148 cat >> confdefs.h <<EOF
16149 #define $ac_tr_func 1
16150 EOF
16151 cat >> confdefs.h <<\EOF
16152 #define HAVE_INET_ADDR 1
16153 EOF
16154
16155 else
16156 echo "$ac_t""no" 1>&6
16157 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
16158 echo "configure:16159: checking for inet_addr in -lnsl" >&5
16159 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
16160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16161 echo $ac_n "(cached) $ac_c" 1>&6
16162 else
16163 ac_save_LIBS="$LIBS"
16164 LIBS="-lnsl $LIBS"
16165 cat > conftest.$ac_ext <<EOF
16166 #line 16167 "configure"
16167 #include "confdefs.h"
16168 /* Override any gcc2 internal prototype to avoid an error. */
16169 /* We use char because int might match the return type of a gcc2
16170 builtin and then its argument prototype would still apply. */
16171 char inet_addr();
16172
16173 int main() {
16174 inet_addr()
16175 ; return 0; }
16176 EOF
16177 if { (eval echo configure:16178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16178 rm -rf conftest*
16179 eval "ac_cv_lib_$ac_lib_var=yes"
16180 else
16181 echo "configure: failed program was:" >&5
16182 cat conftest.$ac_ext >&5
16183 rm -rf conftest*
16184 eval "ac_cv_lib_$ac_lib_var=no"
16185 fi
16186 rm -f conftest*
16187 LIBS="$ac_save_LIBS"
16188
16189 fi
16190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16191 echo "$ac_t""yes" 1>&6
16192 INET_LINK="nsl"
16193 else
16194 echo "$ac_t""no" 1>&6
16195 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
16196 echo "configure:16197: checking for inet_addr in -lresolv" >&5
16197 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
16198 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16199 echo $ac_n "(cached) $ac_c" 1>&6
16200 else
16201 ac_save_LIBS="$LIBS"
16202 LIBS="-lresolv $LIBS"
16203 cat > conftest.$ac_ext <<EOF
16204 #line 16205 "configure"
16205 #include "confdefs.h"
16206 /* Override any gcc2 internal prototype to avoid an error. */
16207 /* We use char because int might match the return type of a gcc2
16208 builtin and then its argument prototype would still apply. */
16209 char inet_addr();
16210
16211 int main() {
16212 inet_addr()
16213 ; return 0; }
16214 EOF
16215 if { (eval echo configure:16216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16216 rm -rf conftest*
16217 eval "ac_cv_lib_$ac_lib_var=yes"
16218 else
16219 echo "configure: failed program was:" >&5
16220 cat conftest.$ac_ext >&5
16221 rm -rf conftest*
16222 eval "ac_cv_lib_$ac_lib_var=no"
16223 fi
16224 rm -f conftest*
16225 LIBS="$ac_save_LIBS"
16226
16227 fi
16228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16229 echo "$ac_t""yes" 1>&6
16230 INET_LINK="resolv"
16231
16232 else
16233 echo "$ac_t""no" 1>&6
16234 fi
16235
16236
16237 fi
16238
16239
16240
16241 fi
16242 done
16243
16244
16245 for ac_func in inet_aton
16246 do
16247 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16248 echo "configure:16249: checking for $ac_func" >&5
16249 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16250 echo $ac_n "(cached) $ac_c" 1>&6
16251 else
16252 cat > conftest.$ac_ext <<EOF
16253 #line 16254 "configure"
16254 #include "confdefs.h"
16255 /* System header to define __stub macros and hopefully few prototypes,
16256 which can conflict with char $ac_func(); below. */
16257 #include <assert.h>
16258 /* Override any gcc2 internal prototype to avoid an error. */
16259 /* We use char because int might match the return type of a gcc2
16260 builtin and then its argument prototype would still apply. */
16261 char $ac_func();
16262
16263 int main() {
16264
16265 /* The GNU C library defines this for functions which it implements
16266 to always fail with ENOSYS. Some functions are actually named
16267 something starting with __ and the normal name is an alias. */
16268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16269 choke me
16270 #else
16271 $ac_func();
16272 #endif
16273
16274 ; return 0; }
16275 EOF
16276 if { (eval echo configure:16277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16277 rm -rf conftest*
16278 eval "ac_cv_func_$ac_func=yes"
16279 else
16280 echo "configure: failed program was:" >&5
16281 cat conftest.$ac_ext >&5
16282 rm -rf conftest*
16283 eval "ac_cv_func_$ac_func=no"
16284 fi
16285 rm -f conftest*
16286 fi
16287
16288 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16289 echo "$ac_t""yes" 1>&6
16290 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16291 cat >> confdefs.h <<EOF
16292 #define $ac_tr_func 1
16293 EOF
16294 cat >> confdefs.h <<\EOF
16295 #define HAVE_INET_ATON 1
16296 EOF
16297
16298 else
16299 echo "$ac_t""no" 1>&6
16300 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
16301 echo "configure:16302: checking for inet_aton in -l$INET_LINK" >&5
16302 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
16303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16304 echo $ac_n "(cached) $ac_c" 1>&6
16305 else
16306 ac_save_LIBS="$LIBS"
16307 LIBS="-l$INET_LINK $LIBS"
16308 cat > conftest.$ac_ext <<EOF
16309 #line 16310 "configure"
16310 #include "confdefs.h"
16311 /* Override any gcc2 internal prototype to avoid an error. */
16312 /* We use char because int might match the return type of a gcc2
16313 builtin and then its argument prototype would still apply. */
16314 char inet_aton();
16315
16316 int main() {
16317 inet_aton()
16318 ; return 0; }
16319 EOF
16320 if { (eval echo configure:16321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16321 rm -rf conftest*
16322 eval "ac_cv_lib_$ac_lib_var=yes"
16323 else
16324 echo "configure: failed program was:" >&5
16325 cat conftest.$ac_ext >&5
16326 rm -rf conftest*
16327 eval "ac_cv_lib_$ac_lib_var=no"
16328 fi
16329 rm -f conftest*
16330 LIBS="$ac_save_LIBS"
16331
16332 fi
16333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16334 echo "$ac_t""yes" 1>&6
16335 cat >> confdefs.h <<\EOF
16336 #define HAVE_INET_ATON 1
16337 EOF
16338
16339 else
16340 echo "$ac_t""no" 1>&6
16341 fi
16342
16343
16344 fi
16345 done
16346
16347
16348 if test "x$INET_LINK" != "x"; then
16349 cat >> confdefs.h <<\EOF
16350 #define HAVE_INET_ADDR 1
16351 EOF
16352
16353 INET_LINK=" -l$INET_LINK"
16354 fi
16355
16356 fi
16357
16358
16359 cat > confcache <<\EOF
16360 # This file is a shell script that caches the results of configure
16361 # tests run on this system so they can be shared between configure
16362 # scripts and configure runs. It is not useful on other systems.
16363 # If it contains results you don't want to keep, you may remove or edit it.
16364 #
16365 # By default, configure uses ./config.cache as the cache file,
16366 # creating it if it does not exist already. You can give configure
16367 # the --cache-file=FILE option to use a different cache file; that is
16368 # what configure does when it calls configure scripts in
16369 # subdirectories, so they share the cache.
16370 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16371 # config.status only pays attention to the cache file if you give it the
16372 # --recheck option to rerun configure.
16373 #
16374 EOF
16375 # The following way of writing the cache mishandles newlines in values,
16376 # but we know of no workaround that is simple, portable, and efficient.
16377 # So, don't put newlines in cache variables' values.
16378 # Ultrix sh set writes to stderr and can't be redirected directly,
16379 # and sets the high bit in the cache file unless we assign to the vars.
16380 (set) 2>&1 |
16381 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16382 *ac_space=\ *)
16383 # `set' does not quote correctly, so add quotes (double-quote substitution
16384 # turns \\\\ into \\, and sed turns \\ into \).
16385 sed -n \
16386 -e "s/'/'\\\\''/g" \
16387 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16388 ;;
16389 *)
16390 # `set' quotes correctly as required by POSIX, so do not add quotes.
16391 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16392 ;;
16393 esac >> confcache
16394 if cmp -s $cache_file confcache; then
16395 :
16396 else
16397 if test -w $cache_file; then
16398 echo "updating cache $cache_file"
16399 cat confcache > $cache_file
16400 else
16401 echo "not updating unwritable cache $cache_file"
16402 fi
16403 fi
16404 rm -f confcache
16405
16406
16407
16408 if test "$TOOLKIT" != "MSW"; then
16409
16410
16411 THREADS_LINK=
16412 THREADS_OBJ=
16413 CODE_GEN_FLAGS=
16414 CODE_GEN_FLAGS_CXX=
16415
16416 if test "$wxUSE_THREADS" = "yes" ; then
16417 if test "$wxUSE_WINE" = 1 ; then
16418 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
16419 wxUSE_THREADS="no"
16420 elif test "$USE_BEOS" = 1; then
16421 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
16422 wxUSE_THREADS="no"
16423 fi
16424 fi
16425
16426 if test "$wxUSE_THREADS" = "yes" ; then
16427
16428 if test "$USE_AIX" = 1; then
16429 THREADS_LIB=pthreads
16430 else
16431 THREADS_LIB=pthread
16432 fi
16433
16434 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
16435 echo "configure:16436: checking for pthread_create in -l$THREADS_LIB" >&5
16436 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
16437 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16438 echo $ac_n "(cached) $ac_c" 1>&6
16439 else
16440 ac_save_LIBS="$LIBS"
16441 LIBS="-l$THREADS_LIB $LIBS"
16442 cat > conftest.$ac_ext <<EOF
16443 #line 16444 "configure"
16444 #include "confdefs.h"
16445 /* Override any gcc2 internal prototype to avoid an error. */
16446 /* We use char because int might match the return type of a gcc2
16447 builtin and then its argument prototype would still apply. */
16448 char pthread_create();
16449
16450 int main() {
16451 pthread_create()
16452 ; return 0; }
16453 EOF
16454 if { (eval echo configure:16455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16455 rm -rf conftest*
16456 eval "ac_cv_lib_$ac_lib_var=yes"
16457 else
16458 echo "configure: failed program was:" >&5
16459 cat conftest.$ac_ext >&5
16460 rm -rf conftest*
16461 eval "ac_cv_lib_$ac_lib_var=no"
16462 fi
16463 rm -f conftest*
16464 LIBS="$ac_save_LIBS"
16465
16466 fi
16467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16468 echo "$ac_t""yes" 1>&6
16469
16470 THREADS_OBJ="threadpsx.lo"
16471 THREADS_LINK=$THREADS_LIB
16472
16473 else
16474 echo "$ac_t""no" 1>&6
16475
16476 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
16477 echo "configure:16478: checking for pthread_create in -lc_r" >&5
16478 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
16479 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16480 echo $ac_n "(cached) $ac_c" 1>&6
16481 else
16482 ac_save_LIBS="$LIBS"
16483 LIBS="-lc_r $LIBS"
16484 cat > conftest.$ac_ext <<EOF
16485 #line 16486 "configure"
16486 #include "confdefs.h"
16487 /* Override any gcc2 internal prototype to avoid an error. */
16488 /* We use char because int might match the return type of a gcc2
16489 builtin and then its argument prototype would still apply. */
16490 char pthread_create();
16491
16492 int main() {
16493 pthread_create()
16494 ; return 0; }
16495 EOF
16496 if { (eval echo configure:16497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16497 rm -rf conftest*
16498 eval "ac_cv_lib_$ac_lib_var=yes"
16499 else
16500 echo "configure: failed program was:" >&5
16501 cat conftest.$ac_ext >&5
16502 rm -rf conftest*
16503 eval "ac_cv_lib_$ac_lib_var=no"
16504 fi
16505 rm -f conftest*
16506 LIBS="$ac_save_LIBS"
16507
16508 fi
16509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16510 echo "$ac_t""yes" 1>&6
16511
16512 THREADS_OBJ="threadpsx.lo"
16513 THREADS_LINK="c_r"
16514
16515 else
16516 echo "$ac_t""no" 1>&6
16517
16518 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
16519 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
16520 echo "configure:16521: checking for sys/prctl.h" >&5
16521 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16522 echo $ac_n "(cached) $ac_c" 1>&6
16523 else
16524 cat > conftest.$ac_ext <<EOF
16525 #line 16526 "configure"
16526 #include "confdefs.h"
16527 #include <sys/prctl.h>
16528 EOF
16529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16530 { (eval echo configure:16531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16532 if test -z "$ac_err"; then
16533 rm -rf conftest*
16534 eval "ac_cv_header_$ac_safe=yes"
16535 else
16536 echo "$ac_err" >&5
16537 echo "configure: failed program was:" >&5
16538 cat conftest.$ac_ext >&5
16539 rm -rf conftest*
16540 eval "ac_cv_header_$ac_safe=no"
16541 fi
16542 rm -f conftest*
16543 fi
16544 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16545 echo "$ac_t""yes" 1>&6
16546
16547 THREADS_OBJ="threadsgi.lo"
16548
16549 else
16550 echo "$ac_t""no" 1>&6
16551 fi
16552
16553
16554 fi
16555
16556
16557 fi
16558
16559
16560 if test -z "$THREADS_OBJ" ; then
16561 wxUSE_THREADS=no
16562 echo "configure: warning: No thread support on this system... disabled" 1>&2
16563 fi
16564 fi
16565
16566 if test "$wxUSE_THREADS" = "yes" ; then
16567 for ac_func in thr_setconcurrency
16568 do
16569 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16570 echo "configure:16571: checking for $ac_func" >&5
16571 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16572 echo $ac_n "(cached) $ac_c" 1>&6
16573 else
16574 cat > conftest.$ac_ext <<EOF
16575 #line 16576 "configure"
16576 #include "confdefs.h"
16577 /* System header to define __stub macros and hopefully few prototypes,
16578 which can conflict with char $ac_func(); below. */
16579 #include <assert.h>
16580 /* Override any gcc2 internal prototype to avoid an error. */
16581 /* We use char because int might match the return type of a gcc2
16582 builtin and then its argument prototype would still apply. */
16583 char $ac_func();
16584
16585 int main() {
16586
16587 /* The GNU C library defines this for functions which it implements
16588 to always fail with ENOSYS. Some functions are actually named
16589 something starting with __ and the normal name is an alias. */
16590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16591 choke me
16592 #else
16593 $ac_func();
16594 #endif
16595
16596 ; return 0; }
16597 EOF
16598 if { (eval echo configure:16599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16599 rm -rf conftest*
16600 eval "ac_cv_func_$ac_func=yes"
16601 else
16602 echo "configure: failed program was:" >&5
16603 cat conftest.$ac_ext >&5
16604 rm -rf conftest*
16605 eval "ac_cv_func_$ac_func=no"
16606 fi
16607 rm -f conftest*
16608 fi
16609
16610 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16611 echo "$ac_t""yes" 1>&6
16612 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16613 cat >> confdefs.h <<EOF
16614 #define $ac_tr_func 1
16615 EOF
16616
16617 else
16618 echo "$ac_t""no" 1>&6
16619 fi
16620 done
16621
16622
16623
16624 for ac_hdr in sched.h
16625 do
16626 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16627 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16628 echo "configure:16629: checking for $ac_hdr" >&5
16629 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16630 echo $ac_n "(cached) $ac_c" 1>&6
16631 else
16632 cat > conftest.$ac_ext <<EOF
16633 #line 16634 "configure"
16634 #include "confdefs.h"
16635 #include <$ac_hdr>
16636 EOF
16637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16638 { (eval echo configure:16639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16640 if test -z "$ac_err"; then
16641 rm -rf conftest*
16642 eval "ac_cv_header_$ac_safe=yes"
16643 else
16644 echo "$ac_err" >&5
16645 echo "configure: failed program was:" >&5
16646 cat conftest.$ac_ext >&5
16647 rm -rf conftest*
16648 eval "ac_cv_header_$ac_safe=no"
16649 fi
16650 rm -f conftest*
16651 fi
16652 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16653 echo "$ac_t""yes" 1>&6
16654 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16655 cat >> confdefs.h <<EOF
16656 #define $ac_tr_hdr 1
16657 EOF
16658
16659 else
16660 echo "$ac_t""no" 1>&6
16661 fi
16662 done
16663
16664
16665 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
16666 echo "configure:16667: checking for sched_yield in -l$THREADS_LINK" >&5
16667 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
16668 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16669 echo $ac_n "(cached) $ac_c" 1>&6
16670 else
16671 ac_save_LIBS="$LIBS"
16672 LIBS="-l$THREADS_LINK $LIBS"
16673 cat > conftest.$ac_ext <<EOF
16674 #line 16675 "configure"
16675 #include "confdefs.h"
16676 /* Override any gcc2 internal prototype to avoid an error. */
16677 /* We use char because int might match the return type of a gcc2
16678 builtin and then its argument prototype would still apply. */
16679 char sched_yield();
16680
16681 int main() {
16682 sched_yield()
16683 ; return 0; }
16684 EOF
16685 if { (eval echo configure:16686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16686 rm -rf conftest*
16687 eval "ac_cv_lib_$ac_lib_var=yes"
16688 else
16689 echo "configure: failed program was:" >&5
16690 cat conftest.$ac_ext >&5
16691 rm -rf conftest*
16692 eval "ac_cv_lib_$ac_lib_var=no"
16693 fi
16694 rm -f conftest*
16695 LIBS="$ac_save_LIBS"
16696
16697 fi
16698 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16699 echo "$ac_t""yes" 1>&6
16700 cat >> confdefs.h <<\EOF
16701 #define HAVE_SCHED_YIELD 1
16702 EOF
16703
16704 else
16705 echo "$ac_t""no" 1>&6
16706 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
16707 echo "configure:16708: checking for sched_yield in -lposix4" >&5
16708 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
16709 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16710 echo $ac_n "(cached) $ac_c" 1>&6
16711 else
16712 ac_save_LIBS="$LIBS"
16713 LIBS="-lposix4 $LIBS"
16714 cat > conftest.$ac_ext <<EOF
16715 #line 16716 "configure"
16716 #include "confdefs.h"
16717 /* Override any gcc2 internal prototype to avoid an error. */
16718 /* We use char because int might match the return type of a gcc2
16719 builtin and then its argument prototype would still apply. */
16720 char sched_yield();
16721
16722 int main() {
16723 sched_yield()
16724 ; return 0; }
16725 EOF
16726 if { (eval echo configure:16727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16727 rm -rf conftest*
16728 eval "ac_cv_lib_$ac_lib_var=yes"
16729 else
16730 echo "configure: failed program was:" >&5
16731 cat conftest.$ac_ext >&5
16732 rm -rf conftest*
16733 eval "ac_cv_lib_$ac_lib_var=no"
16734 fi
16735 rm -f conftest*
16736 LIBS="$ac_save_LIBS"
16737
16738 fi
16739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16740 echo "$ac_t""yes" 1>&6
16741 cat >> confdefs.h <<\EOF
16742 #define HAVE_SCHED_YIELD 1
16743 EOF
16744 POSIX4_LINK=" -lposix4"
16745 else
16746 echo "$ac_t""no" 1>&6
16747 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
16748
16749 fi
16750
16751
16752 fi
16753
16754
16755 HAVE_PRIOR_FUNCS=0
16756 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
16757 echo "configure:16758: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
16758 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
16759 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16760 echo $ac_n "(cached) $ac_c" 1>&6
16761 else
16762 ac_save_LIBS="$LIBS"
16763 LIBS="-l$THREADS_LINK $LIBS"
16764 cat > conftest.$ac_ext <<EOF
16765 #line 16766 "configure"
16766 #include "confdefs.h"
16767 /* Override any gcc2 internal prototype to avoid an error. */
16768 /* We use char because int might match the return type of a gcc2
16769 builtin and then its argument prototype would still apply. */
16770 char pthread_attr_getschedpolicy();
16771
16772 int main() {
16773 pthread_attr_getschedpolicy()
16774 ; return 0; }
16775 EOF
16776 if { (eval echo configure:16777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16777 rm -rf conftest*
16778 eval "ac_cv_lib_$ac_lib_var=yes"
16779 else
16780 echo "configure: failed program was:" >&5
16781 cat conftest.$ac_ext >&5
16782 rm -rf conftest*
16783 eval "ac_cv_lib_$ac_lib_var=no"
16784 fi
16785 rm -f conftest*
16786 LIBS="$ac_save_LIBS"
16787
16788 fi
16789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16790 echo "$ac_t""yes" 1>&6
16791 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
16792 echo "configure:16793: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
16793 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
16794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16795 echo $ac_n "(cached) $ac_c" 1>&6
16796 else
16797 ac_save_LIBS="$LIBS"
16798 LIBS="-l$THREADS_LINK $LIBS"
16799 cat > conftest.$ac_ext <<EOF
16800 #line 16801 "configure"
16801 #include "confdefs.h"
16802 /* Override any gcc2 internal prototype to avoid an error. */
16803 /* We use char because int might match the return type of a gcc2
16804 builtin and then its argument prototype would still apply. */
16805 char pthread_attr_setschedparam();
16806
16807 int main() {
16808 pthread_attr_setschedparam()
16809 ; return 0; }
16810 EOF
16811 if { (eval echo configure:16812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16812 rm -rf conftest*
16813 eval "ac_cv_lib_$ac_lib_var=yes"
16814 else
16815 echo "configure: failed program was:" >&5
16816 cat conftest.$ac_ext >&5
16817 rm -rf conftest*
16818 eval "ac_cv_lib_$ac_lib_var=no"
16819 fi
16820 rm -f conftest*
16821 LIBS="$ac_save_LIBS"
16822
16823 fi
16824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16825 echo "$ac_t""yes" 1>&6
16826 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
16827 echo "configure:16828: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
16828 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
16829 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16830 echo $ac_n "(cached) $ac_c" 1>&6
16831 else
16832 ac_save_LIBS="$LIBS"
16833 LIBS="-l$THREADS_LINK $LIBS"
16834 cat > conftest.$ac_ext <<EOF
16835 #line 16836 "configure"
16836 #include "confdefs.h"
16837 /* Override any gcc2 internal prototype to avoid an error. */
16838 /* We use char because int might match the return type of a gcc2
16839 builtin and then its argument prototype would still apply. */
16840 char sched_get_priority_max();
16841
16842 int main() {
16843 sched_get_priority_max()
16844 ; return 0; }
16845 EOF
16846 if { (eval echo configure:16847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16847 rm -rf conftest*
16848 eval "ac_cv_lib_$ac_lib_var=yes"
16849 else
16850 echo "configure: failed program was:" >&5
16851 cat conftest.$ac_ext >&5
16852 rm -rf conftest*
16853 eval "ac_cv_lib_$ac_lib_var=no"
16854 fi
16855 rm -f conftest*
16856 LIBS="$ac_save_LIBS"
16857
16858 fi
16859 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16860 echo "$ac_t""yes" 1>&6
16861 HAVE_PRIOR_FUNCS=1
16862 else
16863 echo "$ac_t""no" 1>&6
16864 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
16865 echo "configure:16866: checking for sched_get_priority_max in -lposix4" >&5
16866 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
16867 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16868 echo $ac_n "(cached) $ac_c" 1>&6
16869 else
16870 ac_save_LIBS="$LIBS"
16871 LIBS="-lposix4 $LIBS"
16872 cat > conftest.$ac_ext <<EOF
16873 #line 16874 "configure"
16874 #include "confdefs.h"
16875 /* Override any gcc2 internal prototype to avoid an error. */
16876 /* We use char because int might match the return type of a gcc2
16877 builtin and then its argument prototype would still apply. */
16878 char sched_get_priority_max();
16879
16880 int main() {
16881 sched_get_priority_max()
16882 ; return 0; }
16883 EOF
16884 if { (eval echo configure:16885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16885 rm -rf conftest*
16886 eval "ac_cv_lib_$ac_lib_var=yes"
16887 else
16888 echo "configure: failed program was:" >&5
16889 cat conftest.$ac_ext >&5
16890 rm -rf conftest*
16891 eval "ac_cv_lib_$ac_lib_var=no"
16892 fi
16893 rm -f conftest*
16894 LIBS="$ac_save_LIBS"
16895
16896 fi
16897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16898 echo "$ac_t""yes" 1>&6
16899
16900 HAVE_PRIOR_FUNCS=1
16901 POSIX4_LINK=" -lposix4"
16902
16903 else
16904 echo "$ac_t""no" 1>&6
16905 fi
16906
16907
16908 fi
16909
16910
16911 else
16912 echo "$ac_t""no" 1>&6
16913 fi
16914
16915
16916 else
16917 echo "$ac_t""no" 1>&6
16918 fi
16919
16920
16921 if test "$HAVE_PRIOR_FUNCS" = 1; then
16922 cat >> confdefs.h <<\EOF
16923 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
16924 EOF
16925
16926 else
16927 echo "configure: warning: Setting thread priority will not work" 1>&2
16928 fi
16929
16930 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
16931 echo "configure:16932: checking for pthread_cancel in -l$THREADS_LINK" >&5
16932 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
16933 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16934 echo $ac_n "(cached) $ac_c" 1>&6
16935 else
16936 ac_save_LIBS="$LIBS"
16937 LIBS="-l$THREADS_LINK $LIBS"
16938 cat > conftest.$ac_ext <<EOF
16939 #line 16940 "configure"
16940 #include "confdefs.h"
16941 /* Override any gcc2 internal prototype to avoid an error. */
16942 /* We use char because int might match the return type of a gcc2
16943 builtin and then its argument prototype would still apply. */
16944 char pthread_cancel();
16945
16946 int main() {
16947 pthread_cancel()
16948 ; return 0; }
16949 EOF
16950 if { (eval echo configure:16951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16951 rm -rf conftest*
16952 eval "ac_cv_lib_$ac_lib_var=yes"
16953 else
16954 echo "configure: failed program was:" >&5
16955 cat conftest.$ac_ext >&5
16956 rm -rf conftest*
16957 eval "ac_cv_lib_$ac_lib_var=no"
16958 fi
16959 rm -f conftest*
16960 LIBS="$ac_save_LIBS"
16961
16962 fi
16963 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16964 echo "$ac_t""yes" 1>&6
16965 cat >> confdefs.h <<\EOF
16966 #define HAVE_PTHREAD_CANCEL 1
16967 EOF
16968
16969 else
16970 echo "$ac_t""no" 1>&6
16971 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
16972 fi
16973
16974
16975 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
16976 echo "configure:16977: checking for pthread_cleanup_push/pop" >&5
16977 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
16978 echo $ac_n "(cached) $ac_c" 1>&6
16979 else
16980
16981 cat > conftest.$ac_ext <<EOF
16982 #line 16983 "configure"
16983 #include "confdefs.h"
16984 #include <pthread.h>
16985 int main() {
16986
16987 pthread_cleanup_push(NULL, NULL);
16988 pthread_cleanup_pop(0);
16989
16990 ; return 0; }
16991 EOF
16992 if { (eval echo configure:16993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16993 rm -rf conftest*
16994
16995 wx_cv_func_pthread_cleanup_push=yes
16996
16997 else
16998 echo "configure: failed program was:" >&5
16999 cat conftest.$ac_ext >&5
17000 rm -rf conftest*
17001
17002 wx_cv_func_pthread_cleanup_push=no
17003
17004 fi
17005 rm -f conftest*
17006
17007 fi
17008
17009 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
17010
17011 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
17012 cat >> confdefs.h <<\EOF
17013 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
17014 EOF
17015
17016 fi
17017
17018
17019 if test "x$wx_lib_glibc21" = "xyes"; then
17020 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
17021 fi
17022
17023 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
17024 echo "configure:17025: checking for pthread_mutexattr_t" >&5
17025 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
17026 echo $ac_n "(cached) $ac_c" 1>&6
17027 else
17028
17029 cat > conftest.$ac_ext <<EOF
17030 #line 17031 "configure"
17031 #include "confdefs.h"
17032 #include <pthread.h>
17033 int main() {
17034
17035 pthread_mutexattr_t attr;
17036 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
17037
17038 ; return 0; }
17039 EOF
17040 if { (eval echo configure:17041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17041 rm -rf conftest*
17042
17043 wx_cv_type_pthread_mutexattr_t=yes
17044
17045 else
17046 echo "configure: failed program was:" >&5
17047 cat conftest.$ac_ext >&5
17048 rm -rf conftest*
17049
17050 wx_cv_type_pthread_mutexattr_t=no
17051
17052
17053 fi
17054 rm -f conftest*
17055
17056 fi
17057
17058 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
17059
17060 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
17061 cat >> confdefs.h <<\EOF
17062 #define HAVE_PTHREAD_MUTEXATTR_T 1
17063 EOF
17064
17065 else
17066 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
17067 echo "configure:17068: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
17068 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
17069 echo $ac_n "(cached) $ac_c" 1>&6
17070 else
17071
17072 cat > conftest.$ac_ext <<EOF
17073 #line 17074 "configure"
17074 #include "confdefs.h"
17075 #include <pthread.h>
17076 int main() {
17077
17078 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
17079
17080 ; return 0; }
17081 EOF
17082 if { (eval echo configure:17083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17083 rm -rf conftest*
17084
17085 wx_cv_type_pthread_rec_mutex_init=yes
17086
17087 else
17088 echo "configure: failed program was:" >&5
17089 cat conftest.$ac_ext >&5
17090 rm -rf conftest*
17091
17092 wx_cv_type_pthread_rec_mutex_init=no
17093
17094
17095 fi
17096 rm -f conftest*
17097
17098 fi
17099
17100 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
17101 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
17102 cat >> confdefs.h <<\EOF
17103 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
17104 EOF
17105
17106 else
17107 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
17108 fi
17109 fi
17110
17111 THREADS_LINK=" -l$THREADS_LINK"
17112
17113 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
17114 CPPFLAGS="$CFLAGS -mt"
17115 CXXFLAGS="$CXXFLAGS -mt"
17116 LDFLAGS="$LDFLAGS -mt"
17117 fi
17118 fi
17119
17120 fi
17121
17122 if test "$wxUSE_THREADS" = "yes"; then
17123 cat >> confdefs.h <<\EOF
17124 #define wxUSE_THREADS 1
17125 EOF
17126
17127
17128 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG"
17129
17130 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
17131 else
17132 if test "$ac_cv_func_strtok_r" = "yes"; then
17133 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
17134 echo "configure:17135: checking if -D_REENTRANT is needed" >&5
17135 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
17136 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
17137 echo "$ac_t""yes" 1>&6
17138 else
17139 echo "$ac_t""no" 1>&6
17140 fi
17141 fi
17142 fi
17143
17144 if test "$WXGTK20" = 1 ; then
17145 cat >> confdefs.h <<EOF
17146 #define __WXGTK20__ $WXGTK20
17147 EOF
17148
17149 WXGTK12=1
17150 fi
17151
17152 if test "$WXGTK12" = 1 ; then
17153 cat >> confdefs.h <<EOF
17154 #define __WXGTK12__ $WXGTK12
17155 EOF
17156
17157 fi
17158
17159 if test "$WXGTK127" = 1 ; then
17160 cat >> confdefs.h <<EOF
17161 #define __WXGTK127__ $WXGTK127
17162 EOF
17163
17164 fi
17165
17166 WXDEBUG=
17167
17168 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
17169 WXDEBUG="-g"
17170 wxUSE_OPTIMISE=no
17171 fi
17172
17173 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
17174 wxUSE_DEBUG_INFO=yes
17175 WXDEBUG="-ggdb"
17176 fi
17177
17178 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
17179 cat >> confdefs.h <<\EOF
17180 #define WXDEBUG 1
17181 EOF
17182
17183 WXDEBUG_DEFINE="-D__WXDEBUG__"
17184 else
17185 if test "$wxUSE_GTK" = 1 ; then
17186 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
17187 fi
17188 fi
17189
17190 if test "$wxUSE_MEM_TRACING" = "yes" ; then
17191 cat >> confdefs.h <<\EOF
17192 #define wxUSE_MEMORY_TRACING 1
17193 EOF
17194
17195 cat >> confdefs.h <<\EOF
17196 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
17197 EOF
17198
17199 cat >> confdefs.h <<\EOF
17200 #define wxUSE_DEBUG_NEW_ALWAYS 1
17201 EOF
17202
17203 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
17204 fi
17205
17206 if test "$wxUSE_DMALLOC" = "yes" ; then
17207 DMALLOC_LIBS="-ldmalloc"
17208 fi
17209
17210 PROFILE=
17211 if test "$wxUSE_PROFILE" = "yes" ; then
17212 PROFILE=" -pg"
17213 fi
17214
17215 if test "$GCC" = "yes" ; then
17216 if test "$wxUSE_NO_RTTI" = "yes" ; then
17217 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
17218 fi
17219 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
17220 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
17221 fi
17222 if test "$wxUSE_PERMISSIVE" = "yes" ; then
17223 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
17224 fi
17225 if test "$USE_WIN32" = 1 ; then
17226 # I'm not even really sure what this was ever added to solve,
17227 # but someone added it for mingw native builds, so I guess
17228 # they had a reason, right??
17229 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
17230 fi
17231 fi
17232
17233
17234 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
17235 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
17236 if test "$wxUSE_OPTIMISE" = "no" ; then
17237 OPTIMISE=
17238 else
17239 if test "$GCC" = yes ; then
17240 OPTIMISE="-O2"
17241 case "${host}" in
17242 i586-*-*|i686-*-* )
17243 OPTIMISE="${OPTIMISE} "
17244 ;;
17245 esac
17246 else
17247 OPTIMISE="-O"
17248 fi
17249 fi
17250
17251 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
17252 cat >> confdefs.h <<\EOF
17253 #define WXWIN_COMPATIBILITY_2 1
17254 EOF
17255
17256
17257 WXWIN_COMPATIBILITY_2_2="yes"
17258 fi
17259
17260 if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
17261 cat >> confdefs.h <<\EOF
17262 #define WXWIN_COMPATIBILITY_2_2 1
17263 EOF
17264
17265 fi
17266
17267
17268 if test "$wxUSE_GUI" = "yes"; then
17269 cat >> confdefs.h <<\EOF
17270 #define wxUSE_GUI 1
17271 EOF
17272
17273
17274 else
17275 cat >> confdefs.h <<\EOF
17276 #define wxUSE_NOGUI 1
17277 EOF
17278
17279 fi
17280
17281
17282 if test "$wxUSE_UNIX" = "yes"; then
17283 cat >> confdefs.h <<\EOF
17284 #define wxUSE_UNIX 1
17285 EOF
17286
17287 fi
17288
17289
17290 if test "$wxUSE_APPLE_IEEE" = "yes"; then
17291 cat >> confdefs.h <<\EOF
17292 #define wxUSE_APPLE_IEEE 1
17293 EOF
17294
17295 fi
17296
17297 if test "$wxUSE_TIMER" = "yes"; then
17298 cat >> confdefs.h <<\EOF
17299 #define wxUSE_TIMER 1
17300 EOF
17301
17302 fi
17303
17304 if test "$wxUSE_WAVE" = "yes"; then
17305 cat >> confdefs.h <<\EOF
17306 #define wxUSE_WAVE 1
17307 EOF
17308
17309 fi
17310
17311 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
17312 cat >> confdefs.h <<\EOF
17313 #define wxUSE_CMDLINE_PARSER 1
17314 EOF
17315
17316 fi
17317
17318 if test "$wxUSE_STOPWATCH" = "yes"; then
17319 cat >> confdefs.h <<\EOF
17320 #define wxUSE_STOPWATCH 1
17321 EOF
17322
17323 fi
17324
17325 if test "$wxUSE_DATETIME" = "yes"; then
17326 cat >> confdefs.h <<\EOF
17327 #define wxUSE_DATETIME 1
17328 EOF
17329
17330 fi
17331
17332 if test "$wxUSE_TIMEDATE" = "yes"; then
17333 cat >> confdefs.h <<\EOF
17334 #define wxUSE_TIMEDATE 1
17335 EOF
17336
17337 fi
17338
17339 if test "$wxUSE_FILE" = "yes"; then
17340 cat >> confdefs.h <<\EOF
17341 #define wxUSE_FILE 1
17342 EOF
17343
17344 fi
17345
17346 if test "$wxUSE_FFILE" = "yes"; then
17347 cat >> confdefs.h <<\EOF
17348 #define wxUSE_FFILE 1
17349 EOF
17350
17351 fi
17352
17353 if test "$wxUSE_FILESYSTEM" = "yes"; then
17354 cat >> confdefs.h <<\EOF
17355 #define wxUSE_FILESYSTEM 1
17356 EOF
17357
17358 fi
17359
17360 if test "$wxUSE_FS_INET" = "yes"; then
17361 cat >> confdefs.h <<\EOF
17362 #define wxUSE_FS_INET 1
17363 EOF
17364
17365 fi
17366
17367 if test "$wxUSE_FS_ZIP" = "yes"; then
17368 cat >> confdefs.h <<\EOF
17369 #define wxUSE_FS_ZIP 1
17370 EOF
17371
17372 fi
17373
17374 if test "$wxUSE_ZIPSTREAM" = "yes"; then
17375 cat >> confdefs.h <<\EOF
17376 #define wxUSE_ZIPSTREAM 1
17377 EOF
17378
17379 fi
17380
17381 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
17382 cat >> confdefs.h <<\EOF
17383 #define wxUSE_ON_FATAL_EXCEPTION 1
17384 EOF
17385
17386 fi
17387
17388 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
17389 cat >> confdefs.h <<\EOF
17390 #define wxUSE_SNGLINST_CHECKER 1
17391 EOF
17392
17393 fi
17394
17395 if test "$wxUSE_BUSYINFO" = "yes"; then
17396 cat >> confdefs.h <<\EOF
17397 #define wxUSE_BUSYINFO 1
17398 EOF
17399
17400 fi
17401
17402 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
17403 cat >> confdefs.h <<\EOF
17404 #define wxUSE_STD_IOSTREAM 1
17405 EOF
17406
17407 fi
17408
17409 if test "$wxUSE_TEXTBUFFER" = "yes"; then
17410 cat >> confdefs.h <<\EOF
17411 #define wxUSE_TEXTBUFFER 1
17412 EOF
17413
17414 fi
17415
17416 if test "$wxUSE_TEXTFILE" = "yes"; then
17417 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
17418 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
17419 else
17420 cat >> confdefs.h <<\EOF
17421 #define wxUSE_TEXTFILE 1
17422 EOF
17423
17424 fi
17425 fi
17426
17427 if test "$wxUSE_CONFIG" = "yes" ; then
17428 if test "$wxUSE_TEXTFILE" != "yes"; then
17429 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
17430 else
17431 cat >> confdefs.h <<\EOF
17432 #define wxUSE_CONFIG 1
17433 EOF
17434
17435 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
17436 fi
17437 fi
17438
17439 if test "$wxUSE_INTL" = "yes" ; then
17440 if test "$wxUSE_FILE" != "yes"; then
17441 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
17442 else
17443 cat >> confdefs.h <<\EOF
17444 #define wxUSE_INTL 1
17445 EOF
17446
17447 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
17448 GUIDIST="$GUIDIST INTL_DIST"
17449 fi
17450 fi
17451
17452 if test "$wxUSE_LOG" = "yes"; then
17453 cat >> confdefs.h <<\EOF
17454 #define wxUSE_LOG 1
17455 EOF
17456
17457
17458 if test "$wxUSE_LOGGUI" = "yes"; then
17459 cat >> confdefs.h <<\EOF
17460 #define wxUSE_LOGGUI 1
17461 EOF
17462
17463 fi
17464
17465 if test "$wxUSE_LOGWINDOW" = "yes"; then
17466 cat >> confdefs.h <<\EOF
17467 #define wxUSE_LOGWINDOW 1
17468 EOF
17469
17470 fi
17471
17472 if test "$wxUSE_LOGDIALOG" = "yes"; then
17473 cat >> confdefs.h <<\EOF
17474 #define wxUSE_LOG_DIALOG 1
17475 EOF
17476
17477 fi
17478 fi
17479
17480 if test "$wxUSE_LONGLONG" = "yes"; then
17481 cat >> confdefs.h <<\EOF
17482 #define wxUSE_LONGLONG 1
17483 EOF
17484
17485 fi
17486
17487 if test "$wxUSE_GEOMETRY" = "yes"; then
17488 cat >> confdefs.h <<\EOF
17489 #define wxUSE_GEOMETRY 1
17490 EOF
17491
17492 fi
17493
17494 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
17495 cat >> confdefs.h <<\EOF
17496 #define wxUSE_DIALUP_MANAGER 1
17497 EOF
17498
17499 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
17500 fi
17501
17502 if test "$wxUSE_STREAMS" = "yes" ; then
17503 cat >> confdefs.h <<\EOF
17504 #define wxUSE_STREAMS 1
17505 EOF
17506
17507 fi
17508
17509
17510 if test "$wxUSE_DATETIME" = "yes"; then
17511 for ac_func in strptime
17512 do
17513 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17514 echo "configure:17515: checking for $ac_func" >&5
17515 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17516 echo $ac_n "(cached) $ac_c" 1>&6
17517 else
17518 cat > conftest.$ac_ext <<EOF
17519 #line 17520 "configure"
17520 #include "confdefs.h"
17521 /* System header to define __stub macros and hopefully few prototypes,
17522 which can conflict with char $ac_func(); below. */
17523 #include <assert.h>
17524 /* Override any gcc2 internal prototype to avoid an error. */
17525 /* We use char because int might match the return type of a gcc2
17526 builtin and then its argument prototype would still apply. */
17527 char $ac_func();
17528
17529 int main() {
17530
17531 /* The GNU C library defines this for functions which it implements
17532 to always fail with ENOSYS. Some functions are actually named
17533 something starting with __ and the normal name is an alias. */
17534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17535 choke me
17536 #else
17537 $ac_func();
17538 #endif
17539
17540 ; return 0; }
17541 EOF
17542 if { (eval echo configure:17543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17543 rm -rf conftest*
17544 eval "ac_cv_func_$ac_func=yes"
17545 else
17546 echo "configure: failed program was:" >&5
17547 cat conftest.$ac_ext >&5
17548 rm -rf conftest*
17549 eval "ac_cv_func_$ac_func=no"
17550 fi
17551 rm -f conftest*
17552 fi
17553
17554 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17555 echo "$ac_t""yes" 1>&6
17556 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17557 cat >> confdefs.h <<EOF
17558 #define $ac_tr_func 1
17559 EOF
17560
17561 else
17562 echo "$ac_t""no" 1>&6
17563 fi
17564 done
17565
17566
17567 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
17568 echo "configure:17569: checking for timezone variable in <time.h>" >&5
17569 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
17570 echo $ac_n "(cached) $ac_c" 1>&6
17571 else
17572
17573 cat > conftest.$ac_ext <<EOF
17574 #line 17575 "configure"
17575 #include "confdefs.h"
17576
17577 #include <time.h>
17578
17579 int main() {
17580
17581 int tz;
17582 tz = timezone;
17583
17584 ; return 0; }
17585 EOF
17586 if { (eval echo configure:17587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17587 rm -rf conftest*
17588
17589 wx_cv_var_timezone=timezone
17590
17591 else
17592 echo "configure: failed program was:" >&5
17593 cat conftest.$ac_ext >&5
17594 rm -rf conftest*
17595
17596 cat > conftest.$ac_ext <<EOF
17597 #line 17598 "configure"
17598 #include "confdefs.h"
17599
17600 #include <time.h>
17601
17602 int main() {
17603
17604 int tz;
17605 tz = _timezone;
17606
17607 ; return 0; }
17608 EOF
17609 if { (eval echo configure:17610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17610 rm -rf conftest*
17611
17612 wx_cv_var_timezone=_timezone
17613
17614 else
17615 echo "configure: failed program was:" >&5
17616 cat conftest.$ac_ext >&5
17617 rm -rf conftest*
17618
17619 cat > conftest.$ac_ext <<EOF
17620 #line 17621 "configure"
17621 #include "confdefs.h"
17622
17623 #include <time.h>
17624
17625 int main() {
17626
17627 int tz;
17628 tz = __timezone;
17629
17630 ; return 0; }
17631 EOF
17632 if { (eval echo configure:17633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17633 rm -rf conftest*
17634
17635 wx_cv_var_timezone=__timezone
17636
17637 else
17638 echo "configure: failed program was:" >&5
17639 cat conftest.$ac_ext >&5
17640 rm -rf conftest*
17641
17642 if test "$USE_DOS" = 0 ; then
17643 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
17644 fi
17645
17646
17647 fi
17648 rm -f conftest*
17649
17650
17651 fi
17652 rm -f conftest*
17653
17654
17655 fi
17656 rm -f conftest*
17657
17658
17659 fi
17660
17661 echo "$ac_t""$wx_cv_var_timezone" 1>&6
17662
17663 if test "x$wx_cv_var_timezone" != x ; then
17664 cat >> confdefs.h <<EOF
17665 #define WX_TIMEZONE $wx_cv_var_timezone
17666 EOF
17667
17668 fi
17669
17670 for ac_func in localtime
17671 do
17672 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17673 echo "configure:17674: checking for $ac_func" >&5
17674 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17675 echo $ac_n "(cached) $ac_c" 1>&6
17676 else
17677 cat > conftest.$ac_ext <<EOF
17678 #line 17679 "configure"
17679 #include "confdefs.h"
17680 /* System header to define __stub macros and hopefully few prototypes,
17681 which can conflict with char $ac_func(); below. */
17682 #include <assert.h>
17683 /* Override any gcc2 internal prototype to avoid an error. */
17684 /* We use char because int might match the return type of a gcc2
17685 builtin and then its argument prototype would still apply. */
17686 char $ac_func();
17687
17688 int main() {
17689
17690 /* The GNU C library defines this for functions which it implements
17691 to always fail with ENOSYS. Some functions are actually named
17692 something starting with __ and the normal name is an alias. */
17693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17694 choke me
17695 #else
17696 $ac_func();
17697 #endif
17698
17699 ; return 0; }
17700 EOF
17701 if { (eval echo configure:17702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17702 rm -rf conftest*
17703 eval "ac_cv_func_$ac_func=yes"
17704 else
17705 echo "configure: failed program was:" >&5
17706 cat conftest.$ac_ext >&5
17707 rm -rf conftest*
17708 eval "ac_cv_func_$ac_func=no"
17709 fi
17710 rm -f conftest*
17711 fi
17712
17713 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17714 echo "$ac_t""yes" 1>&6
17715 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17716 cat >> confdefs.h <<EOF
17717 #define $ac_tr_func 1
17718 EOF
17719
17720 else
17721 echo "$ac_t""no" 1>&6
17722 fi
17723 done
17724
17725
17726 if test "$ac_cv_func_localtime" = "yes"; then
17727 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
17728 echo "configure:17729: checking for tm_gmtoff in struct tm" >&5
17729 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
17730 echo $ac_n "(cached) $ac_c" 1>&6
17731 else
17732
17733 cat > conftest.$ac_ext <<EOF
17734 #line 17735 "configure"
17735 #include "confdefs.h"
17736
17737 #include <time.h>
17738
17739 int main() {
17740
17741 struct tm tm;
17742 tm.tm_gmtoff++;
17743
17744 ; return 0; }
17745 EOF
17746 if { (eval echo configure:17747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17747 rm -rf conftest*
17748
17749 wx_cv_struct_tm_has_gmtoff=yes
17750
17751 else
17752 echo "configure: failed program was:" >&5
17753 cat conftest.$ac_ext >&5
17754 rm -rf conftest*
17755 wx_cv_struct_tm_has_gmtoff=no
17756
17757 fi
17758 rm -f conftest*
17759
17760 fi
17761
17762 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
17763 fi
17764
17765 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
17766 cat >> confdefs.h <<\EOF
17767 #define WX_GMTOFF_IN_TM 1
17768 EOF
17769
17770 fi
17771
17772 for ac_func in gettimeofday ftime
17773 do
17774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17775 echo "configure:17776: checking for $ac_func" >&5
17776 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17777 echo $ac_n "(cached) $ac_c" 1>&6
17778 else
17779 cat > conftest.$ac_ext <<EOF
17780 #line 17781 "configure"
17781 #include "confdefs.h"
17782 /* System header to define __stub macros and hopefully few prototypes,
17783 which can conflict with char $ac_func(); below. */
17784 #include <assert.h>
17785 /* Override any gcc2 internal prototype to avoid an error. */
17786 /* We use char because int might match the return type of a gcc2
17787 builtin and then its argument prototype would still apply. */
17788 char $ac_func();
17789
17790 int main() {
17791
17792 /* The GNU C library defines this for functions which it implements
17793 to always fail with ENOSYS. Some functions are actually named
17794 something starting with __ and the normal name is an alias. */
17795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17796 choke me
17797 #else
17798 $ac_func();
17799 #endif
17800
17801 ; return 0; }
17802 EOF
17803 if { (eval echo configure:17804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17804 rm -rf conftest*
17805 eval "ac_cv_func_$ac_func=yes"
17806 else
17807 echo "configure: failed program was:" >&5
17808 cat conftest.$ac_ext >&5
17809 rm -rf conftest*
17810 eval "ac_cv_func_$ac_func=no"
17811 fi
17812 rm -f conftest*
17813 fi
17814
17815 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17816 echo "$ac_t""yes" 1>&6
17817 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17818 cat >> confdefs.h <<EOF
17819 #define $ac_tr_func 1
17820 EOF
17821 break
17822 else
17823 echo "$ac_t""no" 1>&6
17824 fi
17825 done
17826
17827
17828 if test "$ac_cv_func_gettimeofday" = "yes"; then
17829 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
17830 echo "configure:17831: checking whether gettimeofday takes two arguments" >&5
17831 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
17832 echo $ac_n "(cached) $ac_c" 1>&6
17833 else
17834
17835
17836 ac_ext=C
17837 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17838 ac_cpp='$CXXCPP $CPPFLAGS'
17839 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17840 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17841 cross_compiling=$ac_cv_prog_cxx_cross
17842
17843
17844 cat > conftest.$ac_ext <<EOF
17845 #line 17846 "configure"
17846 #include "confdefs.h"
17847
17848 #include <sys/time.h>
17849 #include <unistd.h>
17850
17851 int main() {
17852
17853 struct timeval tv;
17854 gettimeofday(&tv, NULL);
17855
17856 ; return 0; }
17857 EOF
17858 if { (eval echo configure:17859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17859 rm -rf conftest*
17860 wx_cv_func_gettimeofday_has_2_args=yes
17861 else
17862 echo "configure: failed program was:" >&5
17863 cat conftest.$ac_ext >&5
17864 rm -rf conftest*
17865 cat > conftest.$ac_ext <<EOF
17866 #line 17867 "configure"
17867 #include "confdefs.h"
17868
17869 #include <sys/time.h>
17870 #include <unistd.h>
17871
17872 int main() {
17873
17874 struct timeval tv;
17875 gettimeofday(&tv);
17876
17877 ; return 0; }
17878 EOF
17879 if { (eval echo configure:17880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17880 rm -rf conftest*
17881 wx_cv_func_gettimeofday_has_2_args=no
17882 else
17883 echo "configure: failed program was:" >&5
17884 cat conftest.$ac_ext >&5
17885 rm -rf conftest*
17886
17887 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
17888 wx_cv_func_gettimeofday_has_2_args=unknown
17889
17890
17891 fi
17892 rm -f conftest*
17893
17894 fi
17895 rm -f conftest*
17896 ac_ext=c
17897 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17898 ac_cpp='$CPP $CPPFLAGS'
17899 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17900 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17901 cross_compiling=$ac_cv_prog_cc_cross
17902
17903
17904 fi
17905
17906 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
17907
17908 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
17909 cat >> confdefs.h <<\EOF
17910 #define WX_GETTIMEOFDAY_NO_TZ 1
17911 EOF
17912
17913 fi
17914 fi
17915
17916 cat >> confdefs.h <<\EOF
17917 #define wxUSE_TIMEDATE 1
17918 EOF
17919
17920 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
17921 fi
17922
17923
17924 if test "$TOOLKIT" != "MSW"; then
17925
17926 if test "$wxUSE_SOCKETS" = "yes"; then
17927 echo $ac_n "checking for socket""... $ac_c" 1>&6
17928 echo "configure:17929: checking for socket" >&5
17929 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
17930 echo $ac_n "(cached) $ac_c" 1>&6
17931 else
17932 cat > conftest.$ac_ext <<EOF
17933 #line 17934 "configure"
17934 #include "confdefs.h"
17935 /* System header to define __stub macros and hopefully few prototypes,
17936 which can conflict with char socket(); below. */
17937 #include <assert.h>
17938 /* Override any gcc2 internal prototype to avoid an error. */
17939 /* We use char because int might match the return type of a gcc2
17940 builtin and then its argument prototype would still apply. */
17941 char socket();
17942
17943 int main() {
17944
17945 /* The GNU C library defines this for functions which it implements
17946 to always fail with ENOSYS. Some functions are actually named
17947 something starting with __ and the normal name is an alias. */
17948 #if defined (__stub_socket) || defined (__stub___socket)
17949 choke me
17950 #else
17951 socket();
17952 #endif
17953
17954 ; return 0; }
17955 EOF
17956 if { (eval echo configure:17957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17957 rm -rf conftest*
17958 eval "ac_cv_func_socket=yes"
17959 else
17960 echo "configure: failed program was:" >&5
17961 cat conftest.$ac_ext >&5
17962 rm -rf conftest*
17963 eval "ac_cv_func_socket=no"
17964 fi
17965 rm -f conftest*
17966 fi
17967
17968 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
17969 echo "$ac_t""yes" 1>&6
17970 :
17971 else
17972 echo "$ac_t""no" 1>&6
17973 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
17974 echo "configure:17975: checking for socket in -lsocket" >&5
17975 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
17976 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17977 echo $ac_n "(cached) $ac_c" 1>&6
17978 else
17979 ac_save_LIBS="$LIBS"
17980 LIBS="-lsocket $LIBS"
17981 cat > conftest.$ac_ext <<EOF
17982 #line 17983 "configure"
17983 #include "confdefs.h"
17984 /* Override any gcc2 internal prototype to avoid an error. */
17985 /* We use char because int might match the return type of a gcc2
17986 builtin and then its argument prototype would still apply. */
17987 char socket();
17988
17989 int main() {
17990 socket()
17991 ; return 0; }
17992 EOF
17993 if { (eval echo configure:17994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17994 rm -rf conftest*
17995 eval "ac_cv_lib_$ac_lib_var=yes"
17996 else
17997 echo "configure: failed program was:" >&5
17998 cat conftest.$ac_ext >&5
17999 rm -rf conftest*
18000 eval "ac_cv_lib_$ac_lib_var=no"
18001 fi
18002 rm -f conftest*
18003 LIBS="$ac_save_LIBS"
18004
18005 fi
18006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18007 echo "$ac_t""yes" 1>&6
18008 INET_LINK="$INET_LINK -lsocket"
18009 else
18010 echo "$ac_t""no" 1>&6
18011
18012 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
18013 wxUSE_SOCKETS=no
18014
18015
18016 fi
18017
18018
18019 fi
18020
18021 fi
18022
18023
18024 if test "$wxUSE_SOCKETS" = "yes" ; then
18025 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
18026 echo "configure:18027: checking what is the type of the third argument of getsockname" >&5
18027 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
18028 echo $ac_n "(cached) $ac_c" 1>&6
18029 else
18030
18031
18032 ac_ext=C
18033 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18034 ac_cpp='$CXXCPP $CPPFLAGS'
18035 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18036 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18037 cross_compiling=$ac_cv_prog_cxx_cross
18038
18039
18040 cat > conftest.$ac_ext <<EOF
18041 #line 18042 "configure"
18042 #include "confdefs.h"
18043
18044 #include <sys/types.h>
18045 #include <sys/socket.h>
18046
18047 int main() {
18048
18049 socklen_t len;
18050 getsockname(0, 0, &len);
18051
18052 ; return 0; }
18053 EOF
18054 if { (eval echo configure:18055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18055 rm -rf conftest*
18056 wx_cv_type_getsockname3=socklen_t
18057 else
18058 echo "configure: failed program was:" >&5
18059 cat conftest.$ac_ext >&5
18060 rm -rf conftest*
18061 cat > conftest.$ac_ext <<EOF
18062 #line 18063 "configure"
18063 #include "confdefs.h"
18064
18065 #include <sys/types.h>
18066 #include <sys/socket.h>
18067
18068 int main() {
18069
18070 size_t len;
18071 getsockname(0, 0, &len);
18072
18073 ; return 0; }
18074 EOF
18075 if { (eval echo configure:18076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18076 rm -rf conftest*
18077 wx_cv_type_getsockname3=size_t
18078 else
18079 echo "configure: failed program was:" >&5
18080 cat conftest.$ac_ext >&5
18081 rm -rf conftest*
18082 cat > conftest.$ac_ext <<EOF
18083 #line 18084 "configure"
18084 #include "confdefs.h"
18085
18086 #include <sys/types.h>
18087 #include <sys/socket.h>
18088
18089 int main() {
18090
18091 int len;
18092 getsockname(0, 0, &len);
18093
18094 ; return 0; }
18095 EOF
18096 if { (eval echo configure:18097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18097 rm -rf conftest*
18098 wx_cv_type_getsockname3=int
18099 else
18100 echo "configure: failed program was:" >&5
18101 cat conftest.$ac_ext >&5
18102 rm -rf conftest*
18103 wx_cv_type_getsockname3=unknown
18104
18105 fi
18106 rm -f conftest*
18107
18108 fi
18109 rm -f conftest*
18110
18111 fi
18112 rm -f conftest*
18113
18114 ac_ext=c
18115 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18116 ac_cpp='$CPP $CPPFLAGS'
18117 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18118 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18119 cross_compiling=$ac_cv_prog_cc_cross
18120
18121
18122 fi
18123
18124 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
18125
18126 if test "$wx_cv_type_getsockname3" = "unknown"; then
18127 wxUSE_SOCKETS=no
18128 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
18129 else
18130 cat >> confdefs.h <<EOF
18131 #define SOCKLEN_T $wx_cv_type_getsockname3
18132 EOF
18133
18134 fi
18135 fi
18136 fi
18137
18138 if test "$wxUSE_SOCKETS" = "yes" ; then
18139 cat >> confdefs.h <<\EOF
18140 #define wxUSE_SOCKETS 1
18141 EOF
18142
18143 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
18144 fi
18145
18146
18147 if test "$wxUSE_GUI" = "yes"; then
18148
18149 if test "$TOOLKIT" = "MAC"; then
18150 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
18151 wxUSE_JOYSTICK=no
18152 fi
18153 if test "$TOOLKIT" = "MOTIF"; then
18154 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
18155 wxUSE_JOYSTICK=no
18156 fi
18157
18158 if test "$TOOLKIT" != "MSW"; then
18159 if test "$wxUSE_JOYSTICK" = "yes"; then
18160 for ac_hdr in linux/joystick.h
18161 do
18162 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18163 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18164 echo "configure:18165: checking for $ac_hdr" >&5
18165 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18166 echo $ac_n "(cached) $ac_c" 1>&6
18167 else
18168 cat > conftest.$ac_ext <<EOF
18169 #line 18170 "configure"
18170 #include "confdefs.h"
18171 #include <$ac_hdr>
18172 EOF
18173 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18174 { (eval echo configure:18175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18175 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18176 if test -z "$ac_err"; then
18177 rm -rf conftest*
18178 eval "ac_cv_header_$ac_safe=yes"
18179 else
18180 echo "$ac_err" >&5
18181 echo "configure: failed program was:" >&5
18182 cat conftest.$ac_ext >&5
18183 rm -rf conftest*
18184 eval "ac_cv_header_$ac_safe=no"
18185 fi
18186 rm -f conftest*
18187 fi
18188 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18189 echo "$ac_t""yes" 1>&6
18190 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18191 cat >> confdefs.h <<EOF
18192 #define $ac_tr_hdr 1
18193 EOF
18194
18195 else
18196 echo "$ac_t""no" 1>&6
18197 fi
18198 done
18199
18200 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
18201 wxUSE_JOYSTICK=no
18202 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
18203 fi
18204 fi
18205 fi
18206
18207 if test "$wxUSE_JOYSTICK" = "yes"; then
18208 cat >> confdefs.h <<\EOF
18209 #define wxUSE_JOYSTICK 1
18210 EOF
18211
18212 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
18213 fi
18214 fi
18215
18216
18217 if test "$TOOLKIT" != "MSW"; then
18218
18219 HAVE_DL_FUNCS=0
18220 HAVE_SHL_FUNCS=0
18221 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
18222 if test "$USE_DARWIN" = 1; then
18223 HAVE_DL_FUNCS=1
18224 else
18225 for ac_func in dlopen
18226 do
18227 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18228 echo "configure:18229: checking for $ac_func" >&5
18229 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18230 echo $ac_n "(cached) $ac_c" 1>&6
18231 else
18232 cat > conftest.$ac_ext <<EOF
18233 #line 18234 "configure"
18234 #include "confdefs.h"
18235 /* System header to define __stub macros and hopefully few prototypes,
18236 which can conflict with char $ac_func(); below. */
18237 #include <assert.h>
18238 /* Override any gcc2 internal prototype to avoid an error. */
18239 /* We use char because int might match the return type of a gcc2
18240 builtin and then its argument prototype would still apply. */
18241 char $ac_func();
18242
18243 int main() {
18244
18245 /* The GNU C library defines this for functions which it implements
18246 to always fail with ENOSYS. Some functions are actually named
18247 something starting with __ and the normal name is an alias. */
18248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18249 choke me
18250 #else
18251 $ac_func();
18252 #endif
18253
18254 ; return 0; }
18255 EOF
18256 if { (eval echo configure:18257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18257 rm -rf conftest*
18258 eval "ac_cv_func_$ac_func=yes"
18259 else
18260 echo "configure: failed program was:" >&5
18261 cat conftest.$ac_ext >&5
18262 rm -rf conftest*
18263 eval "ac_cv_func_$ac_func=no"
18264 fi
18265 rm -f conftest*
18266 fi
18267
18268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18269 echo "$ac_t""yes" 1>&6
18270 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18271 cat >> confdefs.h <<EOF
18272 #define $ac_tr_func 1
18273 EOF
18274
18275 cat >> confdefs.h <<\EOF
18276 #define HAVE_DLOPEN 1
18277 EOF
18278
18279 HAVE_DL_FUNCS=1
18280
18281 else
18282 echo "$ac_t""no" 1>&6
18283 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
18284 echo "configure:18285: checking for dlopen in -ldl" >&5
18285 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
18286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18287 echo $ac_n "(cached) $ac_c" 1>&6
18288 else
18289 ac_save_LIBS="$LIBS"
18290 LIBS="-ldl $LIBS"
18291 cat > conftest.$ac_ext <<EOF
18292 #line 18293 "configure"
18293 #include "confdefs.h"
18294 /* Override any gcc2 internal prototype to avoid an error. */
18295 /* We use char because int might match the return type of a gcc2
18296 builtin and then its argument prototype would still apply. */
18297 char dlopen();
18298
18299 int main() {
18300 dlopen()
18301 ; return 0; }
18302 EOF
18303 if { (eval echo configure:18304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18304 rm -rf conftest*
18305 eval "ac_cv_lib_$ac_lib_var=yes"
18306 else
18307 echo "configure: failed program was:" >&5
18308 cat conftest.$ac_ext >&5
18309 rm -rf conftest*
18310 eval "ac_cv_lib_$ac_lib_var=no"
18311 fi
18312 rm -f conftest*
18313 LIBS="$ac_save_LIBS"
18314
18315 fi
18316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18317 echo "$ac_t""yes" 1>&6
18318
18319 cat >> confdefs.h <<\EOF
18320 #define HAVE_DLOPEN 1
18321 EOF
18322
18323 HAVE_DL_FUNCS=1
18324 DL_LINK=" -ldl$DL_LINK"
18325
18326 else
18327 echo "$ac_t""no" 1>&6
18328
18329 for ac_func in shl_load
18330 do
18331 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18332 echo "configure:18333: checking for $ac_func" >&5
18333 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18334 echo $ac_n "(cached) $ac_c" 1>&6
18335 else
18336 cat > conftest.$ac_ext <<EOF
18337 #line 18338 "configure"
18338 #include "confdefs.h"
18339 /* System header to define __stub macros and hopefully few prototypes,
18340 which can conflict with char $ac_func(); below. */
18341 #include <assert.h>
18342 /* Override any gcc2 internal prototype to avoid an error. */
18343 /* We use char because int might match the return type of a gcc2
18344 builtin and then its argument prototype would still apply. */
18345 char $ac_func();
18346
18347 int main() {
18348
18349 /* The GNU C library defines this for functions which it implements
18350 to always fail with ENOSYS. Some functions are actually named
18351 something starting with __ and the normal name is an alias. */
18352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18353 choke me
18354 #else
18355 $ac_func();
18356 #endif
18357
18358 ; return 0; }
18359 EOF
18360 if { (eval echo configure:18361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18361 rm -rf conftest*
18362 eval "ac_cv_func_$ac_func=yes"
18363 else
18364 echo "configure: failed program was:" >&5
18365 cat conftest.$ac_ext >&5
18366 rm -rf conftest*
18367 eval "ac_cv_func_$ac_func=no"
18368 fi
18369 rm -f conftest*
18370 fi
18371
18372 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18373 echo "$ac_t""yes" 1>&6
18374 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18375 cat >> confdefs.h <<EOF
18376 #define $ac_tr_func 1
18377 EOF
18378
18379 cat >> confdefs.h <<\EOF
18380 #define HAVE_SHL_LOAD 1
18381 EOF
18382
18383 HAVE_SHL_FUNCS=1
18384
18385 else
18386 echo "$ac_t""no" 1>&6
18387 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
18388 echo "configure:18389: checking for dld in -lshl_load" >&5
18389 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
18390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18391 echo $ac_n "(cached) $ac_c" 1>&6
18392 else
18393 ac_save_LIBS="$LIBS"
18394 LIBS="-lshl_load $LIBS"
18395 cat > conftest.$ac_ext <<EOF
18396 #line 18397 "configure"
18397 #include "confdefs.h"
18398 /* Override any gcc2 internal prototype to avoid an error. */
18399 /* We use char because int might match the return type of a gcc2
18400 builtin and then its argument prototype would still apply. */
18401 char dld();
18402
18403 int main() {
18404 dld()
18405 ; return 0; }
18406 EOF
18407 if { (eval echo configure:18408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18408 rm -rf conftest*
18409 eval "ac_cv_lib_$ac_lib_var=yes"
18410 else
18411 echo "configure: failed program was:" >&5
18412 cat conftest.$ac_ext >&5
18413 rm -rf conftest*
18414 eval "ac_cv_lib_$ac_lib_var=no"
18415 fi
18416 rm -f conftest*
18417 LIBS="$ac_save_LIBS"
18418
18419 fi
18420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18421 echo "$ac_t""yes" 1>&6
18422
18423 HAVE_SHL_FUNCS=1
18424 DL_LINK=" -ldld$DL_LINK"
18425
18426 else
18427 echo "$ac_t""no" 1>&6
18428 fi
18429
18430
18431 fi
18432 done
18433
18434
18435 fi
18436
18437
18438 fi
18439 done
18440
18441
18442 if test "$HAVE_DL_FUNCS" = 1; then
18443 for ac_func in dlerror
18444 do
18445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18446 echo "configure:18447: checking for $ac_func" >&5
18447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18448 echo $ac_n "(cached) $ac_c" 1>&6
18449 else
18450 cat > conftest.$ac_ext <<EOF
18451 #line 18452 "configure"
18452 #include "confdefs.h"
18453 /* System header to define __stub macros and hopefully few prototypes,
18454 which can conflict with char $ac_func(); below. */
18455 #include <assert.h>
18456 /* Override any gcc2 internal prototype to avoid an error. */
18457 /* We use char because int might match the return type of a gcc2
18458 builtin and then its argument prototype would still apply. */
18459 char $ac_func();
18460
18461 int main() {
18462
18463 /* The GNU C library defines this for functions which it implements
18464 to always fail with ENOSYS. Some functions are actually named
18465 something starting with __ and the normal name is an alias. */
18466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18467 choke me
18468 #else
18469 $ac_func();
18470 #endif
18471
18472 ; return 0; }
18473 EOF
18474 if { (eval echo configure:18475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18475 rm -rf conftest*
18476 eval "ac_cv_func_$ac_func=yes"
18477 else
18478 echo "configure: failed program was:" >&5
18479 cat conftest.$ac_ext >&5
18480 rm -rf conftest*
18481 eval "ac_cv_func_$ac_func=no"
18482 fi
18483 rm -f conftest*
18484 fi
18485
18486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18487 echo "$ac_t""yes" 1>&6
18488 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18489 cat >> confdefs.h <<EOF
18490 #define $ac_tr_func 1
18491 EOF
18492 cat >> confdefs.h <<\EOF
18493 #define HAVE_DLERROR 1
18494 EOF
18495
18496 else
18497 echo "$ac_t""no" 1>&6
18498 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
18499 echo "configure:18500: checking for dlerror in -ldl" >&5
18500 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
18501 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18502 echo $ac_n "(cached) $ac_c" 1>&6
18503 else
18504 ac_save_LIBS="$LIBS"
18505 LIBS="-ldl $LIBS"
18506 cat > conftest.$ac_ext <<EOF
18507 #line 18508 "configure"
18508 #include "confdefs.h"
18509 /* Override any gcc2 internal prototype to avoid an error. */
18510 /* We use char because int might match the return type of a gcc2
18511 builtin and then its argument prototype would still apply. */
18512 char dlerror();
18513
18514 int main() {
18515 dlerror()
18516 ; return 0; }
18517 EOF
18518 if { (eval echo configure:18519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18519 rm -rf conftest*
18520 eval "ac_cv_lib_$ac_lib_var=yes"
18521 else
18522 echo "configure: failed program was:" >&5
18523 cat conftest.$ac_ext >&5
18524 rm -rf conftest*
18525 eval "ac_cv_lib_$ac_lib_var=no"
18526 fi
18527 rm -f conftest*
18528 LIBS="$ac_save_LIBS"
18529
18530 fi
18531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18532 echo "$ac_t""yes" 1>&6
18533 cat >> confdefs.h <<\EOF
18534 #define HAVE_DLERROR 1
18535 EOF
18536
18537 else
18538 echo "$ac_t""no" 1>&6
18539 fi
18540
18541 fi
18542 done
18543
18544 fi
18545 fi
18546
18547 if test "$HAVE_DL_FUNCS" = 0; then
18548 if test "$HAVE_SHL_FUNCS" = 0; then
18549 if test "$USE_UNIX" = 1; then
18550 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
18551 wxUSE_DYNAMIC_LOADER=no
18552 wxUSE_DYNLIB_CLASS=no
18553 else
18554 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
18555 fi
18556 fi
18557 fi
18558 fi
18559 fi
18560
18561 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
18562 cat >> confdefs.h <<\EOF
18563 #define wxUSE_DYNAMIC_LOADER 1
18564 EOF
18565
18566 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
18567 cat >> confdefs.h <<\EOF
18568 #define wxUSE_DYNLIB_CLASS 1
18569 EOF
18570
18571 fi
18572
18573
18574 if test "$wxUSE_FONTMAP" = "yes" ; then
18575 cat >> confdefs.h <<\EOF
18576 #define wxUSE_FONTMAP 1
18577 EOF
18578
18579 fi
18580
18581 if test "$wxUSE_UNICODE" = "yes" ; then
18582 cat >> confdefs.h <<\EOF
18583 #define wxUSE_UNICODE 1
18584 EOF
18585
18586
18587 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
18588 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
18589 echo "configure:18590: checking for main in -lunicows" >&5
18590 ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
18591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18592 echo $ac_n "(cached) $ac_c" 1>&6
18593 else
18594 ac_save_LIBS="$LIBS"
18595 LIBS="-lunicows $LIBS"
18596 cat > conftest.$ac_ext <<EOF
18597 #line 18598 "configure"
18598 #include "confdefs.h"
18599
18600 int main() {
18601 main()
18602 ; return 0; }
18603 EOF
18604 if { (eval echo configure:18605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18605 rm -rf conftest*
18606 eval "ac_cv_lib_$ac_lib_var=yes"
18607 else
18608 echo "configure: failed program was:" >&5
18609 cat conftest.$ac_ext >&5
18610 rm -rf conftest*
18611 eval "ac_cv_lib_$ac_lib_var=no"
18612 fi
18613 rm -f conftest*
18614 LIBS="$ac_save_LIBS"
18615
18616 fi
18617 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18618 echo "$ac_t""yes" 1>&6
18619
18620 cat >> confdefs.h <<\EOF
18621 #define wxUSE_UNICODE_MSLU 1
18622 EOF
18623
18624
18625 else
18626 echo "$ac_t""no" 1>&6
18627
18628 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
18629 Applications will only run on Windows NT/2000/XP!" 1>&2
18630 wxUSE_UNICODE_MSLU=no
18631
18632 fi
18633
18634 fi
18635 fi
18636
18637 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
18638 cat >> confdefs.h <<\EOF
18639 #define wxUSE_EXPERIMENTAL_PRINTF 1
18640 EOF
18641
18642 fi
18643
18644
18645
18646 IODBC_C_SRC=""
18647 if test "$wxUSE_ODBC" = "yes" ; then
18648 cat >> confdefs.h <<\EOF
18649 #define wxUSE_ODBC 1
18650 EOF
18651
18652 WXODBCFLAG="-D_IODBC_"
18653 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
18654 fi
18655
18656
18657 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
18658 cat >> confdefs.h <<\EOF
18659 #define wxUSE_POSTSCRIPT 1
18660 EOF
18661
18662 fi
18663
18664 cat >> confdefs.h <<\EOF
18665 #define wxUSE_AFM_FOR_POSTSCRIPT 1
18666 EOF
18667
18668
18669 cat >> confdefs.h <<\EOF
18670 #define wxUSE_NORMALIZED_PS_FONTS 1
18671 EOF
18672
18673
18674
18675 if test "$wxUSE_CONSTRAINTS" = "yes"; then
18676 cat >> confdefs.h <<\EOF
18677 #define wxUSE_CONSTRAINTS 1
18678 EOF
18679
18680 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
18681 fi
18682
18683 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18684 if test "$wxUSE_UNIVERSAL" = "yes"; then
18685 echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2
18686 wxUSE_MDI_ARCHITECTURE=no
18687 fi
18688
18689 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18690 cat >> confdefs.h <<\EOF
18691 #define wxUSE_MDI_ARCHITECTURE 1
18692 EOF
18693
18694 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
18695 fi
18696 fi
18697
18698 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
18699 cat >> confdefs.h <<\EOF
18700 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
18701 EOF
18702
18703 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
18704 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18705 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
18706 fi
18707 fi
18708
18709 if test "$wxUSE_HELP" = "yes"; then
18710 cat >> confdefs.h <<\EOF
18711 #define wxUSE_HELP 1
18712 EOF
18713
18714 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
18715
18716 if test "$wxUSE_MSW" = 1; then
18717 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
18718 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
18719 echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
18720 echo "configure:18721: checking for htmlhelp.h" >&5
18721 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18722 echo $ac_n "(cached) $ac_c" 1>&6
18723 else
18724 cat > conftest.$ac_ext <<EOF
18725 #line 18726 "configure"
18726 #include "confdefs.h"
18727 #include <htmlhelp.h>
18728 EOF
18729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18730 { (eval echo configure:18731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18731 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18732 if test -z "$ac_err"; then
18733 rm -rf conftest*
18734 eval "ac_cv_header_$ac_safe=yes"
18735 else
18736 echo "$ac_err" >&5
18737 echo "configure: failed program was:" >&5
18738 cat conftest.$ac_ext >&5
18739 rm -rf conftest*
18740 eval "ac_cv_header_$ac_safe=no"
18741 fi
18742 rm -f conftest*
18743 fi
18744 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18745 echo "$ac_t""yes" 1>&6
18746
18747 cat >> confdefs.h <<\EOF
18748 #define wxUSE_MS_HTML_HELP 1
18749 EOF
18750
18751
18752 else
18753 echo "$ac_t""no" 1>&6
18754
18755 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
18756 wxUSE_MS_HTML_HELP=no
18757
18758 fi
18759
18760 fi
18761 fi
18762
18763 if test "$wxUSE_WXHTML_HELP" = "yes"; then
18764 if test "$wxUSE_HTML" = "yes"; then
18765 cat >> confdefs.h <<\EOF
18766 #define wxUSE_WXHTML_HELP 1
18767 EOF
18768
18769 else
18770 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
18771 wxUSE_WXHTML_HELP=no
18772 fi
18773 fi
18774 fi
18775
18776 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
18777 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18778 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
18779 else
18780 cat >> confdefs.h <<\EOF
18781 #define wxUSE_PRINTING_ARCHITECTURE 1
18782 EOF
18783
18784 fi
18785 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
18786 fi
18787
18788 if test "$wxUSE_PROLOGIO" = "yes" ; then
18789 cat >> confdefs.h <<\EOF
18790 #define wxUSE_PROLOGIO 1
18791 EOF
18792
18793 fi
18794
18795 if test "$wxUSE_RESOURCES" = "yes" ; then
18796 cat >> confdefs.h <<\EOF
18797 #define wxUSE_RESOURCES 1
18798 EOF
18799
18800 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
18801 fi
18802
18803 if test "$wxUSE_X_RESOURCES" = "yes"; then
18804 cat >> confdefs.h <<\EOF
18805 #define wxUSE_X_RESOURCES 1
18806 EOF
18807
18808 fi
18809
18810
18811 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
18812 -o "$wxUSE_CLIPBOARD" = "yes" \
18813 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
18814 for ac_hdr in ole2.h
18815 do
18816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18818 echo "configure:18819: checking for $ac_hdr" >&5
18819 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18820 echo $ac_n "(cached) $ac_c" 1>&6
18821 else
18822 cat > conftest.$ac_ext <<EOF
18823 #line 18824 "configure"
18824 #include "confdefs.h"
18825 #include <$ac_hdr>
18826 EOF
18827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18828 { (eval echo configure:18829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18830 if test -z "$ac_err"; then
18831 rm -rf conftest*
18832 eval "ac_cv_header_$ac_safe=yes"
18833 else
18834 echo "$ac_err" >&5
18835 echo "configure: failed program was:" >&5
18836 cat conftest.$ac_ext >&5
18837 rm -rf conftest*
18838 eval "ac_cv_header_$ac_safe=no"
18839 fi
18840 rm -f conftest*
18841 fi
18842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18843 echo "$ac_t""yes" 1>&6
18844 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18845 cat >> confdefs.h <<EOF
18846 #define $ac_tr_hdr 1
18847 EOF
18848
18849 else
18850 echo "$ac_t""no" 1>&6
18851 fi
18852 done
18853
18854
18855 if test "$ac_cv_header_ole2_h" = "yes" ; then
18856 if test "$GCC" = yes ; then
18857 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
18858 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
18859 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
18860 cat >> confdefs.h <<\EOF
18861 #define wxUSE_OLE 1
18862 EOF
18863
18864
18865 fi
18866
18867 cat >> confdefs.h <<\EOF
18868 #define wxUSE_DATAOBJ 1
18869 EOF
18870
18871 else
18872 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
18873
18874 wxUSE_CLIPBOARD=no
18875 wxUSE_DRAG_AND_DROP=no
18876 wxUSE_DATAOBJ=no
18877 fi
18878
18879 if test "$wxUSE_METAFILE" = "yes"; then
18880 cat >> confdefs.h <<\EOF
18881 #define wxUSE_METAFILE 1
18882 EOF
18883
18884
18885 cat >> confdefs.h <<\EOF
18886 #define wxUSE_ENH_METAFILE 1
18887 EOF
18888
18889 fi
18890 fi
18891
18892 if test "$wxUSE_IPC" = "yes"; then
18893 if test "$wxUSE_SOCKETS" != "yes"; then
18894 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
18895 fi
18896
18897 cat >> confdefs.h <<\EOF
18898 #define wxUSE_IPC 1
18899 EOF
18900
18901 fi
18902
18903 if test "$wxUSE_CLIPBOARD" = "yes"; then
18904 cat >> confdefs.h <<\EOF
18905 #define wxUSE_CLIPBOARD 1
18906 EOF
18907
18908
18909 cat >> confdefs.h <<\EOF
18910 #define wxUSE_DATAOBJ 1
18911 EOF
18912
18913 fi
18914
18915 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
18916 if test "$wxUSE_GTK" = 1; then
18917 if test "$WXGTK12" != 1; then
18918 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
18919 wxUSE_DRAG_AND_DROP=no
18920 fi
18921 fi
18922
18923 if test "$wxUSE_MOTIF" = 1; then
18924 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
18925 wxUSE_DRAG_AND_DROP=no
18926 fi
18927
18928 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
18929 cat >> confdefs.h <<\EOF
18930 #define wxUSE_DRAG_AND_DROP 1
18931 EOF
18932
18933 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
18934 fi
18935
18936 fi
18937
18938 if test "$wxUSE_SPLINES" = "yes" ; then
18939 cat >> confdefs.h <<\EOF
18940 #define wxUSE_SPLINES 1
18941 EOF
18942
18943 fi
18944
18945
18946 USES_CONTROLS=0
18947 if test "$wxUSE_CONTROLS" = "yes"; then
18948 USES_CONTROLS=1
18949 fi
18950
18951 if test "$wxUSE_ACCEL" = "yes"; then
18952 cat >> confdefs.h <<\EOF
18953 #define wxUSE_ACCEL 1
18954 EOF
18955
18956 USES_CONTROLS=1
18957 fi
18958
18959 if test "$wxUSE_BUTTON" = "yes"; then
18960 cat >> confdefs.h <<\EOF
18961 #define wxUSE_BUTTON 1
18962 EOF
18963
18964 USES_CONTROLS=1
18965 fi
18966
18967 if test "$wxUSE_BMPBUTTON" = "yes"; then
18968 cat >> confdefs.h <<\EOF
18969 #define wxUSE_BMPBUTTON 1
18970 EOF
18971
18972 USES_CONTROLS=1
18973 fi
18974
18975 if test "$wxUSE_CALCTRL" = "yes"; then
18976 cat >> confdefs.h <<\EOF
18977 #define wxUSE_CALENDARCTRL 1
18978 EOF
18979
18980 USES_CONTROLS=1
18981 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
18982 fi
18983
18984 if test "$wxUSE_CARET" = "yes"; then
18985 cat >> confdefs.h <<\EOF
18986 #define wxUSE_CARET 1
18987 EOF
18988
18989 USES_CONTROLS=1
18990 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
18991 fi
18992
18993 if test "$wxUSE_COMBOBOX" = "yes"; then
18994 cat >> confdefs.h <<\EOF
18995 #define wxUSE_COMBOBOX 1
18996 EOF
18997
18998 USES_CONTROLS=1
18999 fi
19000
19001 if test "$wxUSE_CHOICE" = "yes"; then
19002 cat >> confdefs.h <<\EOF
19003 #define wxUSE_CHOICE 1
19004 EOF
19005
19006 USES_CONTROLS=1
19007 fi
19008
19009 if test "$wxUSE_CHECKBOX" = "yes"; then
19010 cat >> confdefs.h <<\EOF
19011 #define wxUSE_CHECKBOX 1
19012 EOF
19013
19014 USES_CONTROLS=1
19015 fi
19016
19017 if test "$wxUSE_CHECKLST" = "yes"; then
19018 cat >> confdefs.h <<\EOF
19019 #define wxUSE_CHECKLISTBOX 1
19020 EOF
19021
19022 USES_CONTROLS=1
19023 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
19024 fi
19025
19026 if test "$wxUSE_GAUGE" = "yes"; then
19027 cat >> confdefs.h <<\EOF
19028 #define wxUSE_GAUGE 1
19029 EOF
19030
19031 USES_CONTROLS=1
19032 fi
19033
19034 if test "$wxUSE_NEW_GRID" = "yes"; then
19035 wxUSE_GRID="yes"
19036 cat >> confdefs.h <<\EOF
19037 #define wxUSE_NEW_GRID 1
19038 EOF
19039
19040 USES_CONTROLS=1
19041 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
19042 fi
19043
19044 if test "$wxUSE_GRID" = "yes"; then
19045 cat >> confdefs.h <<\EOF
19046 #define wxUSE_GRID 1
19047 EOF
19048
19049 USES_CONTROLS=1
19050 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
19051 fi
19052
19053 if test "$wxUSE_IMAGLIST" = "yes"; then
19054 cat >> confdefs.h <<\EOF
19055 #define wxUSE_IMAGLIST 1
19056 EOF
19057
19058 fi
19059
19060 if test "$wxUSE_LISTBOX" = "yes"; then
19061 cat >> confdefs.h <<\EOF
19062 #define wxUSE_LISTBOX 1
19063 EOF
19064
19065 USES_CONTROLS=1
19066 fi
19067
19068 if test "$wxUSE_LISTCTRL" = "yes"; then
19069 if test "$wxUSE_IMAGLIST" = "yes"; then
19070 cat >> confdefs.h <<\EOF
19071 #define wxUSE_LISTCTRL 1
19072 EOF
19073
19074 USES_CONTROLS=1
19075 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
19076 else
19077 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
19078 fi
19079 fi
19080
19081 if test "$wxUSE_NOTEBOOK" = "yes"; then
19082 cat >> confdefs.h <<\EOF
19083 #define wxUSE_NOTEBOOK 1
19084 EOF
19085
19086 USES_CONTROLS=1
19087 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
19088 fi
19089
19090 if test "$wxUSE_PROPSHEET" = "yes"; then
19091 cat >> confdefs.h <<\EOF
19092 #define wxUSE_PROPSHEET 1
19093 EOF
19094
19095 USES_CONTROLS=1
19096 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
19097 fi
19098
19099 if test "$wxUSE_RADIOBOX" = "yes"; then
19100 cat >> confdefs.h <<\EOF
19101 #define wxUSE_RADIOBOX 1
19102 EOF
19103
19104 USES_CONTROLS=1
19105 fi
19106
19107 if test "$wxUSE_RADIOBTN" = "yes"; then
19108 cat >> confdefs.h <<\EOF
19109 #define wxUSE_RADIOBTN 1
19110 EOF
19111
19112 USES_CONTROLS=1
19113 fi
19114
19115 if test "$wxUSE_SASH" = "yes"; then
19116 cat >> confdefs.h <<\EOF
19117 #define wxUSE_SASH 1
19118 EOF
19119
19120 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
19121 fi
19122
19123 if test "$wxUSE_SCROLLBAR" = "yes"; then
19124 cat >> confdefs.h <<\EOF
19125 #define wxUSE_SCROLLBAR 1
19126 EOF
19127
19128 USES_CONTROLS=1
19129 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
19130 fi
19131
19132 if test "$wxUSE_SLIDER" = "yes"; then
19133 cat >> confdefs.h <<\EOF
19134 #define wxUSE_SLIDER 1
19135 EOF
19136
19137 USES_CONTROLS=1
19138 fi
19139
19140 if test "$wxUSE_SPINBTN" = "yes"; then
19141 cat >> confdefs.h <<\EOF
19142 #define wxUSE_SPINBTN 1
19143 EOF
19144
19145 USES_CONTROLS=1
19146 fi
19147
19148 if test "$wxUSE_SPINCTRL" = "yes"; then
19149 cat >> confdefs.h <<\EOF
19150 #define wxUSE_SPINCTRL 1
19151 EOF
19152
19153 USES_CONTROLS=1
19154 fi
19155
19156 if test "$wxUSE_SPLITTER" = "yes"; then
19157 cat >> confdefs.h <<\EOF
19158 #define wxUSE_SPLITTER 1
19159 EOF
19160
19161 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
19162 fi
19163
19164 if test "$wxUSE_STATBMP" = "yes"; then
19165 cat >> confdefs.h <<\EOF
19166 #define wxUSE_STATBMP 1
19167 EOF
19168
19169 USES_CONTROLS=1
19170 fi
19171
19172 if test "$wxUSE_STATBOX" = "yes"; then
19173 cat >> confdefs.h <<\EOF
19174 #define wxUSE_STATBOX 1
19175 EOF
19176
19177 USES_CONTROLS=1
19178 fi
19179
19180 if test "$wxUSE_STATTEXT" = "yes"; then
19181 cat >> confdefs.h <<\EOF
19182 #define wxUSE_STATTEXT 1
19183 EOF
19184
19185 USES_CONTROLS=1
19186 fi
19187
19188 if test "$wxUSE_STATLINE" = "yes"; then
19189 if test "$wxUSE_WINE" = 1 ; then
19190 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
19191 else
19192 cat >> confdefs.h <<\EOF
19193 #define wxUSE_STATLINE 1
19194 EOF
19195
19196 USES_CONTROLS=1
19197 fi
19198 fi
19199
19200 if test "$wxUSE_STATUSBAR" = "yes"; then
19201 cat >> confdefs.h <<\EOF
19202 #define wxUSE_STATUSBAR 1
19203 EOF
19204
19205 USES_CONTROLS=1
19206
19207 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
19208 fi
19209
19210 if test "$wxUSE_TABDIALOG" = "yes"; then
19211 cat >> confdefs.h <<\EOF
19212 #define wxUSE_TAB_DIALOG 1
19213 EOF
19214
19215 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
19216 fi
19217
19218 if test "$wxUSE_TEXTCTRL" = "yes"; then
19219 cat >> confdefs.h <<\EOF
19220 #define wxUSE_TEXTCTRL 1
19221 EOF
19222
19223 USES_CONTROLS=1
19224 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
19225 fi
19226
19227 if test "$wxUSE_TOGGLEBTN" = "yes"; then
19228 if test "$wxUSE_MAC" = 1; then
19229 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
19230 wxUSE_TOGGLEBTN=no
19231 fi
19232 if test "$wxUSE_UNIVERSAL" = "yes"; then
19233 echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2
19234 wxUSE_TOGGLEBTN=no
19235 fi
19236
19237 if test "$wxUSE_TOGGLEBTN" = "yes"; then
19238 cat >> confdefs.h <<\EOF
19239 #define wxUSE_TOGGLEBTN 1
19240 EOF
19241
19242 USES_CONTROLS=1
19243 fi
19244 fi
19245
19246 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
19247 cat >> confdefs.h <<\EOF
19248 #define wxUSE_TOOLBAR_SIMPLE 1
19249 EOF
19250
19251 wxUSE_TOOLBAR="yes"
19252 USES_CONTROLS=1
19253 fi
19254
19255 if test "$wxUSE_TOOLBAR" = "yes"; then
19256 cat >> confdefs.h <<\EOF
19257 #define wxUSE_TOOLBAR 1
19258 EOF
19259
19260 USES_CONTROLS=1
19261
19262 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
19263 wxUSE_TOOLBAR_NATIVE="yes"
19264 fi
19265
19266 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
19267 cat >> confdefs.h <<\EOF
19268 #define wxUSE_TOOLBAR_NATIVE 1
19269 EOF
19270
19271 USES_CONTROLS=1
19272 fi
19273
19274 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
19275 fi
19276
19277 if test "$wxUSE_TOOLTIPS" = "yes"; then
19278 if test "$wxUSE_MOTIF" = 1; then
19279 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
19280 else
19281 if test "$wxUSE_WINE" = 1; then
19282 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
19283 else
19284 if test "$wxUSE_UNIVERSAL" = "yes"; then
19285 echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2
19286 else
19287 cat >> confdefs.h <<\EOF
19288 #define wxUSE_TOOLTIPS 1
19289 EOF
19290
19291 fi
19292 fi
19293 fi
19294 fi
19295
19296 if test "$wxUSE_TREECTRL" = "yes"; then
19297 if test "$wxUSE_IMAGLIST" = "yes"; then
19298 cat >> confdefs.h <<\EOF
19299 #define wxUSE_TREECTRL 1
19300 EOF
19301
19302 USES_CONTROLS=1
19303 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
19304 else
19305 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
19306 fi
19307 fi
19308
19309 if test "$wxUSE_POPUPWIN" = "yes"; then
19310 if test "$wxUSE_MAC" = 1; then
19311 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
19312 else
19313 if test "$wxUSE_MOTIF" = 1; then
19314 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
19315 else
19316 cat >> confdefs.h <<\EOF
19317 #define wxUSE_POPUPWIN 1
19318 EOF
19319
19320
19321 USES_CONTROLS=1
19322 fi
19323 fi
19324 fi
19325
19326 if test "$wxUSE_TIPWINDOW" = "yes"; then
19327 cat >> confdefs.h <<\EOF
19328 #define wxUSE_TIPWINDOW 1
19329 EOF
19330
19331 fi
19332
19333 if test "$USES_CONTROLS" = 1; then
19334 cat >> confdefs.h <<\EOF
19335 #define wxUSE_CONTROLS 1
19336 EOF
19337
19338 fi
19339
19340
19341 if test "$wxUSE_TREELAYOUT" = "yes"; then
19342 cat >> confdefs.h <<\EOF
19343 #define wxUSE_TREELAYOUT 1
19344 EOF
19345
19346 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
19347 fi
19348
19349 if test "$wxUSE_DRAGIMAGE" = "yes"; then
19350 cat >> confdefs.h <<\EOF
19351 #define wxUSE_DRAGIMAGE 1
19352 EOF
19353
19354 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
19355 fi
19356
19357 if test "$wxUSE_MENUS" = "yes"; then
19358 cat >> confdefs.h <<\EOF
19359 #define wxUSE_MENUS 1
19360 EOF
19361
19362 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
19363 fi
19364
19365 if test "$wxUSE_METAFILE" = "yes"; then
19366 cat >> confdefs.h <<\EOF
19367 #define wxUSE_METAFILE 1
19368 EOF
19369
19370 fi
19371
19372 if test "$wxUSE_MIMETYPE" = "yes"; then
19373 cat >> confdefs.h <<\EOF
19374 #define wxUSE_MIMETYPE 1
19375 EOF
19376
19377 fi
19378
19379 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
19380 cat >> confdefs.h <<\EOF
19381 #define wxUSE_SYSTEM_OPTIONS 1
19382 EOF
19383
19384 fi
19385
19386 if test "$wxUSE_PROTOCOL" = "yes"; then
19387 if test "$wxUSE_SOCKETS" != "yes"; then
19388 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
19389 wxUSE_PROTOCOL=no
19390 fi
19391
19392 if test "$wxUSE_PROTOCOL" = "yes"; then
19393 cat >> confdefs.h <<\EOF
19394 #define wxUSE_PROTOCOL 1
19395 EOF
19396
19397
19398 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
19399 cat >> confdefs.h <<\EOF
19400 #define wxUSE_PROTOCOL_HTTP 1
19401 EOF
19402
19403 fi
19404 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
19405 cat >> confdefs.h <<\EOF
19406 #define wxUSE_PROTOCOL_FTP 1
19407 EOF
19408
19409 fi
19410 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
19411 cat >> confdefs.h <<\EOF
19412 #define wxUSE_PROTOCOL_FILE 1
19413 EOF
19414
19415 fi
19416 fi
19417 fi
19418
19419 if test "$wxUSE_URL" = "yes"; then
19420 if test "$wxUSE_PROTOCOL" != "yes"; then
19421 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
19422 wxUSE_URL=no
19423 fi
19424 if test "$wxUSE_URL" = "yes"; then
19425 cat >> confdefs.h <<\EOF
19426 #define wxUSE_URL 1
19427 EOF
19428
19429 fi
19430 fi
19431
19432 if test "$wxUSE_MINIFRAME" = "yes"; then
19433 cat >> confdefs.h <<\EOF
19434 #define wxUSE_MINIFRAME 1
19435 EOF
19436
19437 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
19438 fi
19439
19440 if test "$wxUSE_HTML" = "yes"; then
19441 cat >> confdefs.h <<\EOF
19442 #define wxUSE_HTML 1
19443 EOF
19444
19445 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
19446 fi
19447
19448 if test "$wxUSE_VALIDATORS" = "yes"; then
19449 cat >> confdefs.h <<\EOF
19450 #define wxUSE_VALIDATORS 1
19451 EOF
19452
19453 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
19454 fi
19455
19456 if test "$wxUSE_PALETTE" = "yes" ; then
19457 cat >> confdefs.h <<\EOF
19458 #define wxUSE_PALETTE 1
19459 EOF
19460
19461 fi
19462
19463 if test "$wxUSE_IMAGE" = "yes" ; then
19464 cat >> confdefs.h <<\EOF
19465 #define wxUSE_IMAGE 1
19466 EOF
19467
19468 fi
19469
19470 if test "$wxUSE_GIF" = "yes" ; then
19471 cat >> confdefs.h <<\EOF
19472 #define wxUSE_GIF 1
19473 EOF
19474
19475 fi
19476
19477 if test "$wxUSE_PCX" = "yes" ; then
19478 cat >> confdefs.h <<\EOF
19479 #define wxUSE_PCX 1
19480 EOF
19481
19482 fi
19483
19484 if test "$wxUSE_IFF" = "yes" ; then
19485 cat >> confdefs.h <<\EOF
19486 #define wxUSE_IFF 1
19487 EOF
19488
19489 fi
19490
19491 if test "$wxUSE_PNM" = "yes" ; then
19492 cat >> confdefs.h <<\EOF
19493 #define wxUSE_PNM 1
19494 EOF
19495
19496 fi
19497
19498 if test "$wxUSE_XPM" = "yes" ; then
19499 cat >> confdefs.h <<\EOF
19500 #define wxUSE_XPM 1
19501 EOF
19502
19503 fi
19504
19505 if test "$wxUSE_ICO_CUR" = "yes" ; then
19506 cat >> confdefs.h <<\EOF
19507 #define wxUSE_ICO_CUR 1
19508 EOF
19509
19510 fi
19511
19512 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
19513 LIBS=" -lunicows $LIBS"
19514 fi
19515
19516
19517 if test "$wxUSE_CHOICEDLG" = "yes"; then
19518 cat >> confdefs.h <<\EOF
19519 #define wxUSE_CHOICEDLG 1
19520 EOF
19521
19522 fi
19523
19524 if test "$wxUSE_COLOURDLG" = "yes"; then
19525 cat >> confdefs.h <<\EOF
19526 #define wxUSE_COLOURDLG 1
19527 EOF
19528
19529 fi
19530
19531 if test "$wxUSE_FILEDLG" = "yes"; then
19532 cat >> confdefs.h <<\EOF
19533 #define wxUSE_FILEDLG 1
19534 EOF
19535
19536 fi
19537
19538 if test "$wxUSE_FINDREPLDLG" = "yes"; then
19539 cat >> confdefs.h <<\EOF
19540 #define wxUSE_FINDREPLDLG 1
19541 EOF
19542
19543 fi
19544
19545 if test "$wxUSE_FONTDLG" = "yes"; then
19546 cat >> confdefs.h <<\EOF
19547 #define wxUSE_FONTDLG 1
19548 EOF
19549
19550 fi
19551
19552 if test "$wxUSE_DIRDLG" = "yes"; then
19553 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19554 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
19555 else
19556 if test "$wxUSE_TREECTRL" != "yes"; then
19557 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
19558 else
19559 cat >> confdefs.h <<\EOF
19560 #define wxUSE_DIRDLG 1
19561 EOF
19562
19563 fi
19564 fi
19565 fi
19566
19567 if test "$wxUSE_MSGDLG" = "yes"; then
19568 cat >> confdefs.h <<\EOF
19569 #define wxUSE_MSGDLG 1
19570 EOF
19571
19572 fi
19573
19574 if test "$wxUSE_NUMBERDLG" = "yes"; then
19575 cat >> confdefs.h <<\EOF
19576 #define wxUSE_NUMBERDLG 1
19577 EOF
19578
19579 fi
19580
19581 if test "$wxUSE_PROGRESSDLG" = "yes"; then
19582 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19583 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
19584 else
19585 cat >> confdefs.h <<\EOF
19586 #define wxUSE_PROGRESSDLG 1
19587 EOF
19588
19589 fi
19590 fi
19591
19592 if test "$wxUSE_SPLASH" = "yes"; then
19593 cat >> confdefs.h <<\EOF
19594 #define wxUSE_SPLASH 1
19595 EOF
19596
19597 fi
19598
19599 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
19600 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19601 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
19602 else
19603 cat >> confdefs.h <<\EOF
19604 #define wxUSE_STARTUP_TIPS 1
19605 EOF
19606
19607 fi
19608 fi
19609
19610 if test "$wxUSE_TEXTDLG" = "yes"; then
19611 cat >> confdefs.h <<\EOF
19612 #define wxUSE_TEXTDLG 1
19613 EOF
19614
19615 fi
19616
19617 if test "$wxUSE_WIZARDDLG" = "yes"; then
19618 cat >> confdefs.h <<\EOF
19619 #define wxUSE_WIZARDDLG 1
19620 EOF
19621
19622 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
19623 fi
19624
19625
19626 if test "$cross_compiling" = "yes"; then
19627 OSINFO="\"$host\""
19628 else
19629 OSINFO=`uname -s -r -m`
19630 OSINFO="\"$OSINFO\""
19631 fi
19632
19633 cat >> confdefs.h <<EOF
19634 #define WXWIN_OS_DESCRIPTION $OSINFO
19635 EOF
19636
19637
19638
19639 if test "x$prefix" != "xNONE"; then
19640 wxPREFIX=$prefix
19641 else
19642 wxPREFIX=$ac_default_prefix
19643 fi
19644
19645 cat >> confdefs.h <<EOF
19646 #define wxINSTALL_PREFIX "$wxPREFIX"
19647 EOF
19648
19649
19650
19651
19652
19653 if test "$wxUSE_MAC" = 1 ; then
19654 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
19655 fi
19656
19657
19658 LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS"
19659
19660 if test "$wxUSE_GUI" = "yes"; then
19661
19662 LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS"
19663
19664
19665 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
19666 drawing dynamic erase event exec font image \
19667 minimal richedit rotate widgets"
19668
19669 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
19670 else
19671 SAMPLES_SUBDIRS="console"
19672 fi
19673
19674
19675 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
19676 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
19677 $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
19678
19679 if test "$wxUSE_GTK" = 1; then
19680 WXCONFIG_INCLUDE=
19681 else
19682 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
19683 fi
19684
19685 if test "$GXX" = yes ; then
19686 CXXWARNINGS="-Wall"
19687
19688 if test "$wxUSE_NO_DEPS" = "no" ; then
19689 CFLAGS="-MMD $CFLAGS"
19690 CXXFLAGS="-MMD $CXXFLAGS"
19691 fi
19692 fi
19693
19694 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
19695
19696 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
19697 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
19698
19699 LDFLAGS="$LDFLAGS$PROFILE"
19700
19701 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
19788 echo "configure:19789: checking whether ${MAKE-make} sets \${MAKE}" >&5
19789 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
19790 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
19791 echo $ac_n "(cached) $ac_c" 1>&6
19792 else
19793 cat > conftestmake <<\EOF
19794 all:
19795 @echo 'ac_maketemp="${MAKE}"'
19796 EOF
19797 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19798 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
19799 if test -n "$ac_maketemp"; then
19800 eval ac_cv_prog_make_${ac_make}_set=yes
19801 else
19802 eval ac_cv_prog_make_${ac_make}_set=no
19803 fi
19804 rm -f conftestmake
19805 fi
19806 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19807 echo "$ac_t""yes" 1>&6
19808 SET_MAKE=
19809 else
19810 echo "$ac_t""no" 1>&6
19811 SET_MAKE="MAKE=${MAKE-make}"
19812 fi
19813
19814
19815 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
19816 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
19817 fi
19818
19819
19820
19821 if test "$wxUSE_GUI" = "yes"; then
19822 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
19823 wx_cv_path_ifs=$PATH_IFS
19824 wx_cv_program_ext=$PROGRAM_EXT
19825 wx_cv_target_library=$WX_TARGET_LIBRARY
19826 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
19827 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
19828 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
19829 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
19830 subdirs="demos samples utils contrib"
19831
19832 fi
19833
19834 trap '' 1 2 15
19835 cat > confcache <<\EOF
19836 # This file is a shell script that caches the results of configure
19837 # tests run on this system so they can be shared between configure
19838 # scripts and configure runs. It is not useful on other systems.
19839 # If it contains results you don't want to keep, you may remove or edit it.
19840 #
19841 # By default, configure uses ./config.cache as the cache file,
19842 # creating it if it does not exist already. You can give configure
19843 # the --cache-file=FILE option to use a different cache file; that is
19844 # what configure does when it calls configure scripts in
19845 # subdirectories, so they share the cache.
19846 # Giving --cache-file=/dev/null disables caching, for debugging configure.
19847 # config.status only pays attention to the cache file if you give it the
19848 # --recheck option to rerun configure.
19849 #
19850 EOF
19851 # The following way of writing the cache mishandles newlines in values,
19852 # but we know of no workaround that is simple, portable, and efficient.
19853 # So, don't put newlines in cache variables' values.
19854 # Ultrix sh set writes to stderr and can't be redirected directly,
19855 # and sets the high bit in the cache file unless we assign to the vars.
19856 (set) 2>&1 |
19857 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19858 *ac_space=\ *)
19859 # `set' does not quote correctly, so add quotes (double-quote substitution
19860 # turns \\\\ into \\, and sed turns \\ into \).
19861 sed -n \
19862 -e "s/'/'\\\\''/g" \
19863 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19864 ;;
19865 *)
19866 # `set' quotes correctly as required by POSIX, so do not add quotes.
19867 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
19868 ;;
19869 esac >> confcache
19870 if cmp -s $cache_file confcache; then
19871 :
19872 else
19873 if test -w $cache_file; then
19874 echo "updating cache $cache_file"
19875 cat confcache > $cache_file
19876 else
19877 echo "not updating unwritable cache $cache_file"
19878 fi
19879 fi
19880 rm -f confcache
19881
19882 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
19883
19884 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19885 # Let make expand exec_prefix.
19886 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19887
19888 # Any assignment to VPATH causes Sun make to only execute
19889 # the first set of double-colon rules, so remove it if not needed.
19890 # If there is a colon in the path, we need to keep it.
19891 if test "x$srcdir" = x.; then
19892 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
19893 fi
19894
19895 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
19896
19897 DEFS=-DHAVE_CONFIG_H
19898
19899 # Without the "./", some shells look in PATH for config.status.
19900 : ${CONFIG_STATUS=./config.status}
19901
19902 echo creating $CONFIG_STATUS
19903 rm -f $CONFIG_STATUS
19904 cat > $CONFIG_STATUS <<EOF
19905 #! /bin/sh
19906 # Generated automatically by configure.
19907 # Run this file to recreate the current configuration.
19908 # This directory was configured as follows,
19909 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19910 #
19911 # $0 $ac_configure_args
19912 #
19913 # Compiler output produced by configure, useful for debugging
19914 # configure, is in ./config.log if it exists.
19915
19916 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
19917 for ac_option
19918 do
19919 case "\$ac_option" in
19920 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19921 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
19922 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
19923 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
19924 echo "$CONFIG_STATUS generated by autoconf version 2.13"
19925 exit 0 ;;
19926 -help | --help | --hel | --he | --h)
19927 echo "\$ac_cs_usage"; exit 0 ;;
19928 *) echo "\$ac_cs_usage"; exit 1 ;;
19929 esac
19930 done
19931
19932 ac_given_srcdir=$srcdir
19933 ac_given_INSTALL="$INSTALL"
19934
19935 trap 'rm -fr `echo "
19936 wx-config
19937 src/make.env
19938 src/makeprog.env
19939 src/makelib.env
19940 Makefile
19941 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
19942 EOF
19943 cat >> $CONFIG_STATUS <<EOF
19944
19945 # Protect against being on the right side of a sed subst in config.status.
19946 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
19947 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
19948 $ac_vpsub
19949 $extrasub
19950 s%@SHELL@%$SHELL%g
19951 s%@CFLAGS@%$CFLAGS%g
19952 s%@CPPFLAGS@%$CPPFLAGS%g
19953 s%@CXXFLAGS@%$CXXFLAGS%g
19954 s%@FFLAGS@%$FFLAGS%g
19955 s%@DEFS@%$DEFS%g
19956 s%@LDFLAGS@%$LDFLAGS%g
19957 s%@LIBS@%$LIBS%g
19958 s%@exec_prefix@%$exec_prefix%g
19959 s%@prefix@%$prefix%g
19960 s%@program_transform_name@%$program_transform_name%g
19961 s%@bindir@%$bindir%g
19962 s%@sbindir@%$sbindir%g
19963 s%@libexecdir@%$libexecdir%g
19964 s%@datadir@%$datadir%g
19965 s%@sysconfdir@%$sysconfdir%g
19966 s%@sharedstatedir@%$sharedstatedir%g
19967 s%@localstatedir@%$localstatedir%g
19968 s%@libdir@%$libdir%g
19969 s%@includedir@%$includedir%g
19970 s%@oldincludedir@%$oldincludedir%g
19971 s%@infodir@%$infodir%g
19972 s%@mandir@%$mandir%g
19973 s%@host@%$host%g
19974 s%@host_alias@%$host_alias%g
19975 s%@host_cpu@%$host_cpu%g
19976 s%@host_vendor@%$host_vendor%g
19977 s%@host_os@%$host_os%g
19978 s%@target@%$target%g
19979 s%@target_alias@%$target_alias%g
19980 s%@target_cpu@%$target_cpu%g
19981 s%@target_vendor@%$target_vendor%g
19982 s%@target_os@%$target_os%g
19983 s%@build@%$build%g
19984 s%@build_alias@%$build_alias%g
19985 s%@build_cpu@%$build_cpu%g
19986 s%@build_vendor@%$build_vendor%g
19987 s%@build_os@%$build_os%g
19988 s%@CC@%$CC%g
19989 s%@CPP@%$CPP%g
19990 s%@CXX@%$CXX%g
19991 s%@RANLIB@%$RANLIB%g
19992 s%@AR@%$AR%g
19993 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
19994 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
19995 s%@INSTALL_DATA@%$INSTALL_DATA%g
19996 s%@STRIP@%$STRIP%g
19997 s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
19998 s%@YACC@%$YACC%g
19999 s%@LEX@%$LEX%g
20000 s%@LEXLIB@%$LEXLIB%g
20001 s%@LN_S@%$LN_S%g
20002 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
20003 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
20004 s%@GTK_LIBS@%$GTK_LIBS%g
20005 s%@GTK_CONFIG@%$GTK_CONFIG%g
20006 s%@X_CFLAGS@%$X_CFLAGS%g
20007 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
20008 s%@X_LIBS@%$X_LIBS%g
20009 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
20010 s%@RESCOMP@%$RESCOMP%g
20011 s%@DEREZ@%$DEREZ%g
20012 s%@CXXCPP@%$CXXCPP%g
20013 s%@LIBICONV@%$LIBICONV%g
20014 s%@LEX_STEM@%$LEX_STEM%g
20015 s%@PATH_IFS@%$PATH_IFS%g
20016 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
20017 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
20018 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
20019 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
20020 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
20021 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
20022 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
20023 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
20024 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
20025 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
20026 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
20027 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
20028 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
20029 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
20030 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
20031 s%@WX_ALL@%$WX_ALL%g
20032 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
20033 s%@SHARED_LD@%$SHARED_LD%g
20034 s%@PIC_FLAG@%$PIC_FLAG%g
20035 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
20036 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
20037 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
20038 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
20039 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
20040 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
20041 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
20042 s%@USE_GUI@%$USE_GUI%g
20043 s%@AFMINSTALL@%$AFMINSTALL%g
20044 s%@TOOLKIT@%$TOOLKIT%g
20045 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
20046 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
20047 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
20048 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
20049 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
20050 s%@cross_compiling@%$cross_compiling%g
20051 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
20052 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
20053 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
20054 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
20055 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
20056 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
20057 s%@GUIDIST@%$GUIDIST%g
20058 s%@PORT_FILES@%$PORT_FILES%g
20059 s%@DISTDIR@%$DISTDIR%g
20060 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
20061 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
20062 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
20063 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
20064 s%@EXTRADEFS@%$EXTRADEFS%g
20065 s%@RESFLAGS@%$RESFLAGS%g
20066 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
20067 s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
20068 s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
20069 s%@LIBWXMACRES@%$LIBWXMACRES%g
20070 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
20071 s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
20072 s%@DLLTOOL@%$DLLTOOL%g
20073 s%@AS@%$AS%g
20074 s%@NM@%$NM%g
20075 s%@LD@%$LD%g
20076 s%@MAKEINFO@%$MAKEINFO%g
20077 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
20078 s%@SET_MAKE@%$SET_MAKE%g
20079 s%@subdirs@%$subdirs%g
20080
20081 CEOF
20082 EOF
20083
20084 cat >> $CONFIG_STATUS <<\EOF
20085
20086 # Split the substitutions into bite-sized pieces for seds with
20087 # small command number limits, like on Digital OSF/1 and HP-UX.
20088 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
20089 ac_file=1 # Number of current file.
20090 ac_beg=1 # First line for current file.
20091 ac_end=$ac_max_sed_cmds # Line after last line for current file.
20092 ac_more_lines=:
20093 ac_sed_cmds=""
20094 while $ac_more_lines; do
20095 if test $ac_beg -gt 1; then
20096 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
20097 else
20098 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
20099 fi
20100 if test ! -s conftest.s$ac_file; then
20101 ac_more_lines=false
20102 rm -f conftest.s$ac_file
20103 else
20104 if test -z "$ac_sed_cmds"; then
20105 ac_sed_cmds="sed -f conftest.s$ac_file"
20106 else
20107 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
20108 fi
20109 ac_file=`expr $ac_file + 1`
20110 ac_beg=$ac_end
20111 ac_end=`expr $ac_end + $ac_max_sed_cmds`
20112 fi
20113 done
20114 if test -z "$ac_sed_cmds"; then
20115 ac_sed_cmds=cat
20116 fi
20117 EOF
20118
20119 cat >> $CONFIG_STATUS <<EOF
20120
20121 CONFIG_FILES=\${CONFIG_FILES-"wx-config
20122 src/make.env
20123 src/makeprog.env
20124 src/makelib.env
20125 Makefile
20126 "}
20127 EOF
20128 cat >> $CONFIG_STATUS <<\EOF
20129 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
20130 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20131 case "$ac_file" in
20132 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20133 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20134 *) ac_file_in="${ac_file}.in" ;;
20135 esac
20136
20137 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
20138
20139 # Remove last slash and all that follows it. Not all systems have dirname.
20140 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20141 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20142 # The file is in a subdirectory.
20143 test ! -d "$ac_dir" && mkdir "$ac_dir"
20144 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
20145 # A "../" for each directory in $ac_dir_suffix.
20146 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
20147 else
20148 ac_dir_suffix= ac_dots=
20149 fi
20150
20151 case "$ac_given_srcdir" in
20152 .) srcdir=.
20153 if test -z "$ac_dots"; then top_srcdir=.
20154 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
20155 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
20156 *) # Relative path.
20157 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
20158 top_srcdir="$ac_dots$ac_given_srcdir" ;;
20159 esac
20160
20161 case "$ac_given_INSTALL" in
20162 [/$]*) INSTALL="$ac_given_INSTALL" ;;
20163 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
20164 esac
20165
20166 echo creating "$ac_file"
20167 rm -f "$ac_file"
20168 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
20169 case "$ac_file" in
20170 *Makefile*) ac_comsub="1i\\
20171 # $configure_input" ;;
20172 *) ac_comsub= ;;
20173 esac
20174
20175 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20176 sed -e "$ac_comsub
20177 s%@configure_input@%$configure_input%g
20178 s%@srcdir@%$srcdir%g
20179 s%@top_srcdir@%$top_srcdir%g
20180 s%@INSTALL@%$INSTALL%g
20181 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
20182 fi; done
20183 rm -f conftest.s*
20184
20185 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20186 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20187 #
20188 # ac_d sets the value in "#define NAME VALUE" lines.
20189 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20190 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
20191 ac_dC='\3'
20192 ac_dD='%g'
20193 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
20194 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20195 ac_uB='\([ ]\)%\1#\2define\3'
20196 ac_uC=' '
20197 ac_uD='\4%g'
20198 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20199 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20200 ac_eB='$%\1#\2define\3'
20201 ac_eC=' '
20202 ac_eD='%g'
20203
20204 if test "${CONFIG_HEADERS+set}" != set; then
20205 EOF
20206 cat >> $CONFIG_STATUS <<EOF
20207 CONFIG_HEADERS="setup.h:setup.h.in"
20208 EOF
20209 cat >> $CONFIG_STATUS <<\EOF
20210 fi
20211 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
20212 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20213 case "$ac_file" in
20214 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20215 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20216 *) ac_file_in="${ac_file}.in" ;;
20217 esac
20218
20219 echo creating $ac_file
20220
20221 rm -f conftest.frag conftest.in conftest.out
20222 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20223 cat $ac_file_inputs > conftest.in
20224
20225 EOF
20226
20227 # Transform confdefs.h into a sed script conftest.vals that substitutes
20228 # the proper values into config.h.in to produce config.h. And first:
20229 # Protect against being on the right side of a sed subst in config.status.
20230 # Protect against being in an unquoted here document in config.status.
20231 rm -f conftest.vals
20232 cat > conftest.hdr <<\EOF
20233 s/[\\&%]/\\&/g
20234 s%[\\$`]%\\&%g
20235 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
20236 s%ac_d%ac_u%gp
20237 s%ac_u%ac_e%gp
20238 EOF
20239 sed -n -f conftest.hdr confdefs.h > conftest.vals
20240 rm -f conftest.hdr
20241
20242 # This sed command replaces #undef with comments. This is necessary, for
20243 # example, in the case of _POSIX_SOURCE, which is predefined and required
20244 # on some systems where configure will not decide to define it.
20245 cat >> conftest.vals <<\EOF
20246 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
20247 EOF
20248
20249 # Break up conftest.vals because some shells have a limit on
20250 # the size of here documents, and old seds have small limits too.
20251
20252 rm -f conftest.tail
20253 while :
20254 do
20255 ac_lines=`grep -c . conftest.vals`
20256 # grep -c gives empty output for an empty file on some AIX systems.
20257 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
20258 # Write a limited-size here document to conftest.frag.
20259 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
20260 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
20261 echo 'CEOF
20262 sed -f conftest.frag conftest.in > conftest.out
20263 rm -f conftest.in
20264 mv conftest.out conftest.in
20265 ' >> $CONFIG_STATUS
20266 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
20267 rm -f conftest.vals
20268 mv conftest.tail conftest.vals
20269 done
20270 rm -f conftest.vals
20271
20272 cat >> $CONFIG_STATUS <<\EOF
20273 rm -f conftest.frag conftest.h
20274 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
20275 cat conftest.in >> conftest.h
20276 rm -f conftest.in
20277 if cmp -s $ac_file conftest.h 2>/dev/null; then
20278 echo "$ac_file is unchanged"
20279 rm -f conftest.h
20280 else
20281 # Remove last slash and all that follows it. Not all systems have dirname.
20282 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20283 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20284 # The file is in a subdirectory.
20285 test ! -d "$ac_dir" && mkdir "$ac_dir"
20286 fi
20287 rm -f $ac_file
20288 mv conftest.h $ac_file
20289 fi
20290 fi; done
20291
20292 EOF
20293 cat >> $CONFIG_STATUS <<EOF
20294
20295 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
20296 LN_S="${LN_S}"
20297
20298
20299 EOF
20300 cat >> $CONFIG_STATUS <<\EOF
20301
20302 if test ! -h wx-config; then
20303 chmod +x wx-config
20304 mv wx-config wx${TOOLCHAIN_NAME}-config
20305 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
20306 fi
20307
20308 if test ! -d lib; then
20309 mkdir lib
20310 fi
20311 if test ! -d lib/wx; then
20312 mkdir lib/wx
20313 fi
20314 if test ! -d lib/wx/include; then
20315 mkdir lib/wx/include
20316 fi
20317 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
20318 mkdir lib/wx/include/${TOOLCHAIN_NAME}
20319 fi
20320 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
20321 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
20322 fi
20323 if test -f setup.h; then
20324 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
20325 fi
20326
20327 exit 0
20328 EOF
20329 chmod +x $CONFIG_STATUS
20330 rm -fr confdefs* $ac_clean_files
20331 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
20332
20333 if test "$no_recursion" != yes; then
20334
20335 # Remove --cache-file and --srcdir arguments so they do not pile up.
20336 ac_sub_configure_args=
20337 ac_prev=
20338 for ac_arg in $ac_configure_args; do
20339 if test -n "$ac_prev"; then
20340 ac_prev=
20341 continue
20342 fi
20343 case "$ac_arg" in
20344 -cache-file | --cache-file | --cache-fil | --cache-fi \
20345 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20346 ac_prev=cache_file ;;
20347 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20348 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
20349 ;;
20350 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20351 ac_prev=srcdir ;;
20352 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20353 ;;
20354 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
20355 esac
20356 done
20357
20358 for ac_config_dir in demos samples utils contrib; do
20359
20360 # Do not complain, so a configure script can configure whichever
20361 # parts of a large source tree are present.
20362 if test ! -d $srcdir/$ac_config_dir; then
20363 continue
20364 fi
20365
20366 echo configuring in $ac_config_dir
20367
20368 case "$srcdir" in
20369 .) ;;
20370 *)
20371 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
20372 else
20373 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
20374 fi
20375 ;;
20376 esac
20377
20378 ac_popdir=`pwd`
20379 cd $ac_config_dir
20380
20381 # A "../" for each directory in /$ac_config_dir.
20382 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
20383
20384 case "$srcdir" in
20385 .) # No --srcdir option. We are building in place.
20386 ac_sub_srcdir=$srcdir ;;
20387 /*) # Absolute path.
20388 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
20389 *) # Relative path.
20390 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
20391 esac
20392
20393 # Check for guested configure; otherwise get Cygnus style configure.
20394 if test -f $ac_sub_srcdir/configure; then
20395 ac_sub_configure=$ac_sub_srcdir/configure
20396 elif test -f $ac_sub_srcdir/configure.in; then
20397 ac_sub_configure=$ac_configure
20398 else
20399 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
20400 ac_sub_configure=
20401 fi
20402
20403 # The recursion is here.
20404 if test -n "$ac_sub_configure"; then
20405
20406 # Make the cache file name correct relative to the subdirectory.
20407 case "$cache_file" in
20408 /*) ac_sub_cache_file=$cache_file ;;
20409 *) # Relative path.
20410 ac_sub_cache_file="$ac_dots$cache_file" ;;
20411 esac
20412 case "$ac_given_INSTALL" in
20413 [/$]*) INSTALL="$ac_given_INSTALL" ;;
20414 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
20415 esac
20416
20417 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
20418 # The eval makes quoting arguments work.
20419 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
20420 then :
20421 else
20422 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
20423 fi
20424 fi
20425
20426 cd $ac_popdir
20427 done
20428 fi
20429
20430