]> git.saurik.com Git - wxWidgets.git/blame_incremental - configure
A bit of translation.
[wxWidgets.git] / configure
... / ...
CommitLineData
1#! /bin/sh
2
3# From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44# Guess values for system-dependent variables and create Makefiles.
45# Generated automatically using autoconf version 2.13
46# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
47#
48# This configure script is free software; the Free Software Foundation
49# gives unlimited permission to copy, distribute and modify it.
50
51# Defaults:
52ac_help=
53ac_default_prefix=/usr/local
54# Any additions from configure.in:
55ac_help="$ac_help
56 --enable-gui use GUI classes"
57ac_help="$ac_help
58 --enable-universal use wxWindows GUI controls instead of native ones"
59ac_help="$ac_help
60 --with-gtk use GTK+"
61ac_help="$ac_help
62 --with-motif use Motif/Lesstif"
63ac_help="$ac_help
64 --with-mac use Mac OS X"
65ac_help="$ac_help
66 --with-wine use WINE"
67ac_help="$ac_help
68 --with-msw use MS-Windows"
69ac_help="$ac_help
70 --with-pm use OS/2 Presentation Manager"
71ac_help="$ac_help
72 --with-mgl use SciTech MGL"
73ac_help="$ac_help
74 --with-microwin use MicroWindows"
75ac_help="$ac_help
76 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
77ac_help="$ac_help
78 --with-libpng use libpng (PNG image format)"
79ac_help="$ac_help
80 --with-libjpeg use libjpeg (JPEG file format)"
81ac_help="$ac_help
82 --with-libtiff use libtiff (TIFF file format)"
83ac_help="$ac_help
84 --with-freetype use freetype (font rasterizer)"
85ac_help="$ac_help
86 --with-opengl use OpenGL (or Mesa)"
87ac_help="$ac_help
88 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
89ac_help="$ac_help
90 --with-regex enable support for wxRegEx class"
91ac_help="$ac_help
92 --with-zlib use zlib for LZW compression"
93ac_help="$ac_help
94 --with-odbc use the IODBC and wxODBC classes"
95ac_help="$ac_help
96 --enable-shared create shared library code"
97ac_help="$ac_help
98 --enable-soname set the DT_SONAME field in ELF shared libraries"
99ac_help="$ac_help
100 --enable-optimise create optimised code"
101ac_help="$ac_help
102 --enable-debug same as debug_flag and debug_info"
103ac_help="$ac_help
104 --enable-precomp enable use of precompiled headers (Mac OS X)"
105ac_help="$ac_help
106 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
107ac_help="$ac_help
108 --enable-debug_info create code with debugging information"
109ac_help="$ac_help
110 --enable-debug_gdb create code with extra GDB debugging information"
111ac_help="$ac_help
112 --enable-debug_cntxt use wxDebugContext"
113ac_help="$ac_help
114 --enable-mem_tracing create code with memory tracing"
115ac_help="$ac_help
116 --enable-profile create code with profiling information"
117ac_help="$ac_help
118 --enable-no_rtti create code without RTTI information"
119ac_help="$ac_help
120 --enable-no_exceptions create code without C++ exceptions handling"
121ac_help="$ac_help
122 --enable-permissive compile code disregarding strict ANSI"
123ac_help="$ac_help
124 --enable-no_deps create code without dependency information"
125ac_help="$ac_help
126 --enable-compat20 enable wxWindows 2.0 compatibility"
127ac_help="$ac_help
128 --enable-compat22 enable wxWindows 2.2 compatibility"
129ac_help="$ac_help
130 --enable-intl use internationalization system"
131ac_help="$ac_help
132 --enable-config use wxConfig (and derived) classes"
133ac_help="$ac_help
134 --enable-protocols use wxProtocol and derived classes"
135ac_help="$ac_help
136 --enable-ftp use wxFTP (requires wxProtocol"
137ac_help="$ac_help
138 --enable-http use wxHTTP (requires wxProtocol"
139ac_help="$ac_help
140 --enable-fileproto use wxFileProto class (requires wxProtocol"
141ac_help="$ac_help
142 --enable-sockets use socket/network classes"
143ac_help="$ac_help
144 --enable-ipc use interprocess communication (wxSocket etc.)"
145ac_help="$ac_help
146 --enable-cmdline use wxCmdLineParser class"
147ac_help="$ac_help
148 --enable-datetime use wxDateTime class"
149ac_help="$ac_help
150 --enable-timedate use obsolete wxDate/wxTime classes"
151ac_help="$ac_help
152 --enable-stopwatch use wxStopWatch class"
153ac_help="$ac_help
154 --enable-dialupman use dialup network classes"
155ac_help="$ac_help
156 --enable-apple_ieee use the Apple IEEE codec"
157ac_help="$ac_help
158 --enable-timer use wxTimer class"
159ac_help="$ac_help
160 --enable-wave use wxWave class"
161ac_help="$ac_help
162 --enable-fraction use wxFraction class"
163ac_help="$ac_help
164 --enable-dynlib use wxLibrary class for DLL loading"
165ac_help="$ac_help
166 --enable-dynamicloader use (new) wxDynamicLibrary class"
167ac_help="$ac_help
168 --enable-longlong use wxLongLong class"
169ac_help="$ac_help
170 --enable-geometry use geometry class"
171ac_help="$ac_help
172 --enable-log use logging system"
173ac_help="$ac_help
174 --enable-streams use wxStream etc classes"
175ac_help="$ac_help
176 --enable-file use wxFile classes"
177ac_help="$ac_help
178 --enable-ffile use wxFFile classes"
179ac_help="$ac_help
180 --enable-textbuf use wxTextBuffer class"
181ac_help="$ac_help
182 --enable-textfile use wxTextFile class"
183ac_help="$ac_help
184 --enable-fontmap use font encodings conversion classes"
185ac_help="$ac_help
186 --enable-unicode compile wxString with Unicode support"
187ac_help="$ac_help
188 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
189ac_help="$ac_help
190 --enable-wxprintfv use wxWindows implementation of vprintf()"
191ac_help="$ac_help
192 --enable-std_iostreams use standard C++ stream classes"
193ac_help="$ac_help
194 --enable-filesystem use virtual file systems classes"
195ac_help="$ac_help
196 --enable-fs_inet use virtual HTTP/FTP filesystems"
197ac_help="$ac_help
198 --enable-fs_zip use virtual ZIP filesystems"
199ac_help="$ac_help
200 --enable-zipstream use wxZipInputStream"
201ac_help="$ac_help
202 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
203ac_help="$ac_help
204 --enable-snglinst use wxSingleInstanceChecker class"
205ac_help="$ac_help
206 --enable-mimetype use wxMimeTypesManager"
207ac_help="$ac_help
208 --enable-sysoptions use wxSystemOptions"
209ac_help="$ac_help
210 --enable-url use wxURL class"
211ac_help="$ac_help
212 --enable-protocol use wxProtocol class"
213ac_help="$ac_help
214 --enable-protocol-http HTTP support in wxProtocol"
215ac_help="$ac_help
216 --enable-protocol-ftp FTP support in wxProtocol"
217ac_help="$ac_help
218 --enable-protocol-file FILE support in wxProtocol"
219ac_help="$ac_help
220 --enable-threads use threads"
221ac_help="$ac_help
222 --enable-docview use document view architecture"
223ac_help="$ac_help
224 --enable-help use help subsystem"
225ac_help="$ac_help
226 --enable-mshtmlhelp use MS HTML Help (win32)"
227ac_help="$ac_help
228 --enable-html use wxHTML sub-library"
229ac_help="$ac_help
230 --enable-htmlhelp use wxHTML-based help"
231ac_help="$ac_help
232 --enable-constraints use layout-constraints system"
233ac_help="$ac_help
234 --enable-printarch use printing architecture"
235ac_help="$ac_help
236 --enable-mdi use multiple document interface architecture"
237ac_help="$ac_help
238 --enable-loggui use standard GUI logger"
239ac_help="$ac_help
240 --enable-logwin use wxLogWindow"
241ac_help="$ac_help
242 --enable-logdialog use wxLogDialog"
243ac_help="$ac_help
244 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
245ac_help="$ac_help
246 --enable-prologio use Prolog IO library"
247ac_help="$ac_help
248 --enable-resources use wxWindows resources"
249ac_help="$ac_help
250 --enable-xresources use X resources for save (default for gtk+)"
251ac_help="$ac_help
252 --enable-clipboard use wxClipboard classes"
253ac_help="$ac_help
254 --enable-dnd use Drag'n'Drop classes"
255ac_help="$ac_help
256 --enable-metafile use win32 metafiles"
257ac_help="$ac_help
258 --enable-treelayout use wxTreeLayout classes"
259ac_help="$ac_help
260 --enable-controls use all usual controls"
261ac_help="$ac_help
262 --enable-accel use accelerators"
263ac_help="$ac_help
264 --enable-button use wxButton class"
265ac_help="$ac_help
266 --enable-bmpbutton use wxBitmapButton class"
267ac_help="$ac_help
268 --enable-calendar use wxCalendarCtrl class"
269ac_help="$ac_help
270 --enable-caret use wxCaret class"
271ac_help="$ac_help
272 --enable-checkbox use wxCheckBox class"
273ac_help="$ac_help
274 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
275ac_help="$ac_help
276 --enable-choice use wxChoice class"
277ac_help="$ac_help
278 --enable-combobox use wxComboBox classes"
279ac_help="$ac_help
280 --enable-gauge use wxGauge class"
281ac_help="$ac_help
282 --enable-grid use wxGrid class"
283ac_help="$ac_help
284 --enable-newgrid use new wxGrid class"
285ac_help="$ac_help
286 --enable-imaglist use wxImageList class"
287ac_help="$ac_help
288 --enable-listbox use wxListBox class"
289ac_help="$ac_help
290 --enable-listctrl use wxListCtrl class"
291ac_help="$ac_help
292 --enable-notebook use wxNotebook class"
293ac_help="$ac_help
294 --enable-propsheet use wxPropertySheet class"
295ac_help="$ac_help
296 --enable-radiobox use wxRadioBox class"
297ac_help="$ac_help
298 --enable-radiobtn use wxRadioButton class"
299ac_help="$ac_help
300 --enable-sash use wxSashWindow class"
301ac_help="$ac_help
302 --enable-scrollbar use wxScrollBar class and scrollable windows"
303ac_help="$ac_help
304 --enable-slider use wxSlider class"
305ac_help="$ac_help
306 --enable-spinbtn use wxSpinButton class"
307ac_help="$ac_help
308 --enable-spinctrl use wxSpinCtrl class"
309ac_help="$ac_help
310 --enable-splitter use wxSplitterWindow class"
311ac_help="$ac_help
312 --enable-statbmp use wxStaticBitmap class"
313ac_help="$ac_help
314 --enable-statbox use wxStaticBox class"
315ac_help="$ac_help
316 --enable-statline use wxStaticLine class"
317ac_help="$ac_help
318 --enable-stattext use wxStaticText class"
319ac_help="$ac_help
320 --enable-statusbar use wxStatusBar class"
321ac_help="$ac_help
322 --enable-tabdialog use wxTabControl class"
323ac_help="$ac_help
324 --enable-textctrl use wxTextCtrl class"
325ac_help="$ac_help
326 --enable-togglebtn use wxToggleButton class"
327ac_help="$ac_help
328 --enable-toolbar use wxToolBar class"
329ac_help="$ac_help
330 --enable-tbarnative use native wxToolBar class"
331ac_help="$ac_help
332 --enable-tbarsmpl use wxToolBarSimple class"
333ac_help="$ac_help
334 --enable-treectrl use wxTreeCtrl class"
335ac_help="$ac_help
336 --enable-tipwindow use wxTipWindow class"
337ac_help="$ac_help
338 --enable-popupwin use wxPopUpWindow class"
339ac_help="$ac_help
340 --enable-commondlg use all common dialogs"
341ac_help="$ac_help
342 --enable-choicedlg use wxChoiceDialog"
343ac_help="$ac_help
344 --enable-coldlg use wxColourDialog"
345ac_help="$ac_help
346 --enable-filedlg use wxFileDialog"
347ac_help="$ac_help
348 --enable-finddlg use wxFindReplaceDialog"
349ac_help="$ac_help
350 --enable-fontdlg use wxFontDialog"
351ac_help="$ac_help
352 --enable-dirdlg use wxDirDialog"
353ac_help="$ac_help
354 --enable-msgdlg use wxMessageDialog"
355ac_help="$ac_help
356 --enable-numberdlg use wxNumberEntryDialog"
357ac_help="$ac_help
358 --enable-splash use wxSplashScreen"
359ac_help="$ac_help
360 --enable-textdlg use wxTextDialog"
361ac_help="$ac_help
362 --enable-tipdlg use startup tips"
363ac_help="$ac_help
364 --enable-progressdlg use wxProgressDialog"
365ac_help="$ac_help
366 --enable-wizarddlg use wxWizard"
367ac_help="$ac_help
368 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
369ac_help="$ac_help
370 --enable-miniframe use wxMiniFrame class"
371ac_help="$ac_help
372 --enable-tooltips use wxToolTip class"
373ac_help="$ac_help
374 --enable-splines use spline drawing code"
375ac_help="$ac_help
376 --enable-validators use wxValidator and derived classes"
377ac_help="$ac_help
378 --enable-busyinfo use wxBusyInfo"
379ac_help="$ac_help
380 --enable-joystick use wxJoystick (Linux only)"
381ac_help="$ac_help
382 --enable-metafiles use wxMetaFile (Windows only)"
383ac_help="$ac_help
384 --enable-dragimage use wxDragImage"
385ac_help="$ac_help
386 --enable-palette use wxPalette class"
387ac_help="$ac_help
388 --enable-image use wxImage class"
389ac_help="$ac_help
390 --enable-gif use gif images (GIF file format)"
391ac_help="$ac_help
392 --enable-pcx use pcx images (PCX file format)"
393ac_help="$ac_help
394 --enable-pnm use pnm images (PNM file format)"
395ac_help="$ac_help
396 --enable-xpm use xpm images (XPM file format)"
397ac_help="$ac_help
398 --enable-icocur use Windows ICO and CUR formats"
399ac_help="$ac_help
400 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
401ac_help="$ac_help
402 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
403ac_help="$ac_help
404 --disable-gtktest Do not try to compile and run a test GTK program"
405ac_help="$ac_help
406 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
407ac_help="$ac_help
408 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
409ac_help="$ac_help
410 --disable-gtktest Do not try to compile and run a test GTK program"
411ac_help="$ac_help
412 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
413ac_help="$ac_help
414 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
415ac_help="$ac_help
416 --disable-gtktest Do not try to compile and run a test GTK program"
417ac_help="$ac_help
418 --with-x use the X Window System"
419
420# Initialize some variables set by options.
421# The variables have the same names as the options, with
422# dashes changed to underlines.
423build=NONE
424cache_file=./config.cache
425exec_prefix=NONE
426host=NONE
427no_create=
428nonopt=NONE
429no_recursion=
430prefix=NONE
431program_prefix=NONE
432program_suffix=NONE
433program_transform_name=s,x,x,
434silent=
435site=
436srcdir=
437target=NONE
438verbose=
439x_includes=NONE
440x_libraries=NONE
441bindir='${exec_prefix}/bin'
442sbindir='${exec_prefix}/sbin'
443libexecdir='${exec_prefix}/libexec'
444datadir='${prefix}/share'
445sysconfdir='${prefix}/etc'
446sharedstatedir='${prefix}/com'
447localstatedir='${prefix}/var'
448libdir='${exec_prefix}/lib'
449includedir='${prefix}/include'
450oldincludedir='/usr/include'
451infodir='${prefix}/info'
452mandir='${prefix}/man'
453
454# Initialize some other variables.
455subdirs=
456MFLAGS= MAKEFLAGS=
457SHELL=${CONFIG_SHELL-/bin/sh}
458# Maximum number of lines to put in a shell here document.
459ac_max_here_lines=12
460
461ac_prev=
462for ac_option
463do
464
465 # If the previous option needs an argument, assign it.
466 if test -n "$ac_prev"; then
467 eval "$ac_prev=\$ac_option"
468 ac_prev=
469 continue
470 fi
471
472 case "$ac_option" in
473 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
474 *) ac_optarg= ;;
475 esac
476
477 # Accept the important Cygnus configure options, so we can diagnose typos.
478
479 case "$ac_option" in
480
481 -bindir | --bindir | --bindi | --bind | --bin | --bi)
482 ac_prev=bindir ;;
483 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
484 bindir="$ac_optarg" ;;
485
486 -build | --build | --buil | --bui | --bu)
487 ac_prev=build ;;
488 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
489 build="$ac_optarg" ;;
490
491 -cache-file | --cache-file | --cache-fil | --cache-fi \
492 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
493 ac_prev=cache_file ;;
494 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
495 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
496 cache_file="$ac_optarg" ;;
497
498 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
499 ac_prev=datadir ;;
500 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
501 | --da=*)
502 datadir="$ac_optarg" ;;
503
504 -disable-* | --disable-*)
505 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
506 # Reject names that are not valid shell variable names.
507 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
508 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
509 fi
510 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
511 eval "enable_${ac_feature}=no" ;;
512
513 -enable-* | --enable-*)
514 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
515 # Reject names that are not valid shell variable names.
516 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
517 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
518 fi
519 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
520 case "$ac_option" in
521 *=*) ;;
522 *) ac_optarg=yes ;;
523 esac
524 eval "enable_${ac_feature}='$ac_optarg'" ;;
525
526 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
527 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
528 | --exec | --exe | --ex)
529 ac_prev=exec_prefix ;;
530 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
531 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
532 | --exec=* | --exe=* | --ex=*)
533 exec_prefix="$ac_optarg" ;;
534
535 -gas | --gas | --ga | --g)
536 # Obsolete; use --with-gas.
537 with_gas=yes ;;
538
539 -help | --help | --hel | --he)
540 # Omit some internal or obsolete options to make the list less imposing.
541 # This message is too long to be a string in the A/UX 3.1 sh.
542 cat << EOF
543Usage: configure [options] [host]
544Options: [defaults in brackets after descriptions]
545Configuration:
546 --cache-file=FILE cache test results in FILE
547 --help print this message
548 --no-create do not create output files
549 --quiet, --silent do not print \`checking...' messages
550 --version print the version of autoconf that created configure
551Directory and file names:
552 --prefix=PREFIX install architecture-independent files in PREFIX
553 [$ac_default_prefix]
554 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
555 [same as prefix]
556 --bindir=DIR user executables in DIR [EPREFIX/bin]
557 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
558 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
559 --datadir=DIR read-only architecture-independent data in DIR
560 [PREFIX/share]
561 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
562 --sharedstatedir=DIR modifiable architecture-independent data in DIR
563 [PREFIX/com]
564 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
565 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
566 --includedir=DIR C header files in DIR [PREFIX/include]
567 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
568 --infodir=DIR info documentation in DIR [PREFIX/info]
569 --mandir=DIR man documentation in DIR [PREFIX/man]
570 --srcdir=DIR find the sources in DIR [configure dir or ..]
571 --program-prefix=PREFIX prepend PREFIX to installed program names
572 --program-suffix=SUFFIX append SUFFIX to installed program names
573 --program-transform-name=PROGRAM
574 run sed PROGRAM on installed program names
575EOF
576 cat << EOF
577Host type:
578 --build=BUILD configure for building on BUILD [BUILD=HOST]
579 --host=HOST configure for HOST [guessed]
580 --target=TARGET configure for TARGET [TARGET=HOST]
581Features and packages:
582 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
583 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
584 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
585 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
586 --x-includes=DIR X include files are in DIR
587 --x-libraries=DIR X library files are in DIR
588EOF
589 if test -n "$ac_help"; then
590 echo "--enable and --with options recognized:$ac_help"
591 fi
592 exit 0 ;;
593
594 -host | --host | --hos | --ho)
595 ac_prev=host ;;
596 -host=* | --host=* | --hos=* | --ho=*)
597 host="$ac_optarg" ;;
598
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
604 includedir="$ac_optarg" ;;
605
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 ac_prev=infodir ;;
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609 infodir="$ac_optarg" ;;
610
611 -libdir | --libdir | --libdi | --libd)
612 ac_prev=libdir ;;
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 libdir="$ac_optarg" ;;
615
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
621 libexecdir="$ac_optarg" ;;
622
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630 localstatedir="$ac_optarg" ;;
631
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 ac_prev=mandir ;;
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 mandir="$ac_optarg" ;;
636
637 -nfp | --nfp | --nf)
638 # Obsolete; use --without-fp.
639 with_fp=no ;;
640
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c)
643 no_create=yes ;;
644
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 no_recursion=yes ;;
648
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656 oldincludedir="$ac_optarg" ;;
657
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 ac_prev=prefix ;;
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 prefix="$ac_optarg" ;;
662
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668 program_prefix="$ac_optarg" ;;
669
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675 program_suffix="$ac_optarg" ;;
676
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
692 program_transform_name="$ac_optarg" ;;
693
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
696 silent=yes ;;
697
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 ac_prev=sbindir ;;
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 | --sbi=* | --sb=*)
702 sbindir="$ac_optarg" ;;
703
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
707 | --sha | --sh)
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 | --sha=* | --sh=*)
713 sharedstatedir="$ac_optarg" ;;
714
715 -site | --site | --sit)
716 ac_prev=site ;;
717 -site=* | --site=* | --sit=*)
718 site="$ac_optarg" ;;
719
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 ac_prev=srcdir ;;
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 srcdir="$ac_optarg" ;;
724
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730 sysconfdir="$ac_optarg" ;;
731
732 -target | --target | --targe | --targ | --tar | --ta | --t)
733 ac_prev=target ;;
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735 target="$ac_optarg" ;;
736
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 verbose=yes ;;
739
740 -version | --version | --versio | --versi | --vers)
741 echo "configure generated by autoconf version 2.13"
742 exit 0 ;;
743
744 -with-* | --with-*)
745 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
746 # Reject names that are not valid shell variable names.
747 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
748 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
749 fi
750 ac_package=`echo $ac_package| sed 's/-/_/g'`
751 case "$ac_option" in
752 *=*) ;;
753 *) ac_optarg=yes ;;
754 esac
755 eval "with_${ac_package}='$ac_optarg'" ;;
756
757 -without-* | --without-*)
758 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
759 # Reject names that are not valid shell variable names.
760 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
761 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
762 fi
763 ac_package=`echo $ac_package| sed 's/-/_/g'`
764 eval "with_${ac_package}=no" ;;
765
766 --x)
767 # Obsolete; use --with-x.
768 with_x=yes ;;
769
770 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771 | --x-incl | --x-inc | --x-in | --x-i)
772 ac_prev=x_includes ;;
773 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775 x_includes="$ac_optarg" ;;
776
777 -x-libraries | --x-libraries | --x-librarie | --x-librari \
778 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779 ac_prev=x_libraries ;;
780 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782 x_libraries="$ac_optarg" ;;
783
784 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
785 ;;
786
787 *)
788 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
789 echo "configure: warning: $ac_option: invalid host type" 1>&2
790 fi
791 if test "x$nonopt" != xNONE; then
792 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
793 fi
794 nonopt="$ac_option"
795 ;;
796
797 esac
798done
799
800if test -n "$ac_prev"; then
801 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
802fi
803
804trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
805
806# File descriptor usage:
807# 0 standard input
808# 1 file creation
809# 2 errors and warnings
810# 3 some systems may open it to /dev/tty
811# 4 used on the Kubota Titan
812# 6 checking for... messages and results
813# 5 compiler messages saved in config.log
814if test "$silent" = yes; then
815 exec 6>/dev/null
816else
817 exec 6>&1
818fi
819exec 5>./config.log
820
821echo "\
822This file contains any messages produced by compilers while
823running configure, to aid debugging if configure makes a mistake.
824" 1>&5
825
826# Strip out --no-create and --no-recursion so they do not pile up.
827# Also quote any args containing shell metacharacters.
828ac_configure_args=
829for ac_arg
830do
831 case "$ac_arg" in
832 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
833 | --no-cr | --no-c) ;;
834 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
835 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
836 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
837 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
838 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
839 esac
840done
841
842# NLS nuisances.
843# Only set these to C if already set. These must not be set unconditionally
844# because not all systems understand e.g. LANG=C (notably SCO).
845# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
846# Non-C LC_CTYPE values break the ctype check.
847if test "${LANG+set}" = set; then LANG=C; export LANG; fi
848if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
849if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
850if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
851
852# confdefs.h avoids OS command line length limits that DEFS can exceed.
853rm -rf conftest* confdefs.h
854# AIX cpp loses on an empty file, so make sure it contains at least a newline.
855echo > confdefs.h
856
857# A filename unique to this package, relative to the directory that
858# configure is in, which we can look for to find out if srcdir is correct.
859ac_unique_file=wx-config.in
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_prog=$0
866 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
867 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
868 srcdir=$ac_confdir
869 if test ! -r $srcdir/$ac_unique_file; then
870 srcdir=..
871 fi
872else
873 ac_srcdir_defaulted=no
874fi
875if test ! -r $srcdir/$ac_unique_file; then
876 if test "$ac_srcdir_defaulted" = yes; then
877 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
878 else
879 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
880 fi
881fi
882srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
883
884# Prefer explicitly selected file to automatically selected ones.
885if test -z "$CONFIG_SITE"; then
886 if test "x$prefix" != xNONE; then
887 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
888 else
889 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
890 fi
891fi
892for ac_site_file in $CONFIG_SITE; do
893 if test -r "$ac_site_file"; then
894 echo "loading site script $ac_site_file"
895 . "$ac_site_file"
896 fi
897done
898
899if test -r "$cache_file"; then
900 echo "loading cache $cache_file"
901 . $cache_file
902else
903 echo "creating cache $cache_file"
904 > $cache_file
905fi
906
907ac_ext=c
908# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
909ac_cpp='$CPP $CPPFLAGS'
910ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
911ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
912cross_compiling=$ac_cv_prog_cc_cross
913
914ac_exeext=
915ac_objext=o
916if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
917 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
918 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
919 ac_n= ac_c='
920' ac_t=' '
921 else
922 ac_n=-n ac_c= ac_t=
923 fi
924else
925 ac_n= ac_c='\c' ac_t=
926fi
927
928
929
930ac_aux_dir=
931for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
932 if test -f $ac_dir/install-sh; then
933 ac_aux_dir=$ac_dir
934 ac_install_sh="$ac_aux_dir/install-sh -c"
935 break
936 elif test -f $ac_dir/install.sh; then
937 ac_aux_dir=$ac_dir
938 ac_install_sh="$ac_aux_dir/install.sh -c"
939 break
940 fi
941done
942if test -z "$ac_aux_dir"; then
943 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
944fi
945ac_config_guess=$ac_aux_dir/config.guess
946ac_config_sub=$ac_aux_dir/config.sub
947ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
948
949
950# Do some error checking and defaulting for the host and target type.
951# The inputs are:
952# configure --host=HOST --target=TARGET --build=BUILD NONOPT
953#
954# The rules are:
955# 1. You are not allowed to specify --host, --target, and nonopt at the
956# same time.
957# 2. Host defaults to nonopt.
958# 3. If nonopt is not specified, then host defaults to the current host,
959# as determined by config.guess.
960# 4. Target and build default to nonopt.
961# 5. If nonopt is not specified, then target and build default to host.
962
963# The aliases save the names the user supplied, while $host etc.
964# will get canonicalized.
965case $host---$target---$nonopt in
966NONE---*---* | *---NONE---* | *---*---NONE) ;;
967*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
968esac
969
970
971# Make sure we can run config.sub.
972if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
973else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
974fi
975
976echo $ac_n "checking host system type""... $ac_c" 1>&6
977echo "configure:978: checking host system type" >&5
978
979host_alias=$host
980case "$host_alias" in
981NONE)
982 case $nonopt in
983 NONE)
984 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
985 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
986 fi ;;
987 *) host_alias=$nonopt ;;
988 esac ;;
989esac
990
991host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
992host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
993host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
994host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
995echo "$ac_t""$host" 1>&6
996
997echo $ac_n "checking target system type""... $ac_c" 1>&6
998echo "configure:999: checking target system type" >&5
999
1000target_alias=$target
1001case "$target_alias" in
1002NONE)
1003 case $nonopt in
1004 NONE) target_alias=$host_alias ;;
1005 *) target_alias=$nonopt ;;
1006 esac ;;
1007esac
1008
1009target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1010target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1011target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1012target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1013echo "$ac_t""$target" 1>&6
1014
1015echo $ac_n "checking build system type""... $ac_c" 1>&6
1016echo "configure:1017: checking build system type" >&5
1017
1018build_alias=$build
1019case "$build_alias" in
1020NONE)
1021 case $nonopt in
1022 NONE) build_alias=$host_alias ;;
1023 *) build_alias=$nonopt ;;
1024 esac ;;
1025esac
1026
1027build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1028build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1029build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1030build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1031echo "$ac_t""$build" 1>&6
1032
1033test "$host_alias" != "$target_alias" &&
1034 test "$program_prefix$program_suffix$program_transform_name" = \
1035 NONENONEs,x,x, &&
1036 program_prefix=${target_alias}-
1037
1038
1039
1040WX_MAJOR_VERSION_NUMBER=2
1041WX_MINOR_VERSION_NUMBER=3
1042WX_RELEASE_NUMBER=3
1043
1044WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1045WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1046
1047WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1048
1049WX_CURRENT=2
1050WX_REVISION=0
1051WX_AGE=0
1052
1053
1054
1055USE_UNIX=1
1056USE_WIN32=0
1057USE_DOS=0
1058USE_BEOS=0
1059USE_MAC=0
1060
1061USE_LINUX=
1062USE_SGI=
1063USE_HPUX=
1064USE_SYSV=
1065USE_SVR4=
1066USE_AIX=
1067USE_SUN=
1068USE_SOLARIS=
1069USE_SUNOS=
1070USE_ALPHA=
1071USE_OSF=
1072USE_BSD=
1073USE_DARWIN=
1074USE_FREEBSD=
1075USE_OPENBSD=
1076USE_NETBSD=
1077USE_VMS=
1078USE_ULTRIX=
1079USE_DATA_GENERAL=
1080
1081NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1082
1083CPP_MT_FLAG=-D_REENTRANT
1084
1085ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE"
1086
1087DEFAULT_wxUSE_GTK=0
1088DEFAULT_wxUSE_MAC=0
1089DEFAULT_wxUSE_MGL=0
1090DEFAULT_wxUSE_MICROWIN=0
1091DEFAULT_wxUSE_MOTIF=0
1092DEFAULT_wxUSE_MSW=0
1093DEFAULT_wxUSE_PM=0
1094DEFAULT_wxUSE_WINE=0
1095
1096DEFAULT_DEFAULT_wxUSE_GTK=0
1097DEFAULT_DEFAULT_wxUSE_MAC=0
1098DEFAULT_DEFAULT_wxUSE_MGL=0
1099DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1100DEFAULT_DEFAULT_wxUSE_MOTIF=0
1101DEFAULT_DEFAULT_wxUSE_MSW=0
1102DEFAULT_DEFAULT_wxUSE_PM=0
1103DEFAULT_DEFAULT_wxUSE_WINE=0
1104
1105PROGRAM_EXT=
1106SO_SUFFIX=so
1107
1108case "${host}" in
1109 *-hp-hpux* )
1110 USE_HPUX=1
1111 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1112 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1113 SO_SUFFIX=sl
1114 cat >> confdefs.h <<\EOF
1115#define __HPUX__ 1
1116EOF
1117
1118 ;;
1119 *-*-linux* )
1120 USE_LINUX=1
1121 cat >> confdefs.h <<\EOF
1122#define __LINUX__ 1
1123EOF
1124
1125 TMP=`uname -m`
1126 if test "x$TMP" = "xalpha"; then
1127 USE_ALPHA=1
1128 cat >> confdefs.h <<\EOF
1129#define __ALPHA__ 1
1130EOF
1131
1132 fi
1133 DEFAULT_DEFAULT_wxUSE_GTK=1
1134 ;;
1135 *-*-irix5* | *-*-irix6* )
1136 USE_SGI=1
1137 USE_SVR4=1
1138 cat >> confdefs.h <<\EOF
1139#define __SGI__ 1
1140EOF
1141
1142 cat >> confdefs.h <<\EOF
1143#define __SVR4__ 1
1144EOF
1145
1146 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1147 ;;
1148 *-*-solaris2* )
1149 USE_SUN=1
1150 USE_SOLARIS=1
1151 USE_SVR4=1
1152 cat >> confdefs.h <<\EOF
1153#define __SUN__ 1
1154EOF
1155
1156 cat >> confdefs.h <<\EOF
1157#define __SOLARIS__ 1
1158EOF
1159
1160 cat >> confdefs.h <<\EOF
1161#define __SVR4__ 1
1162EOF
1163
1164 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1165 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1166 ;;
1167 *-*-sunos4* )
1168 USE_SUN=1
1169 USE_SUNOS=1
1170 USE_BSD=1
1171 cat >> confdefs.h <<\EOF
1172#define __SUN__ 1
1173EOF
1174
1175 cat >> confdefs.h <<\EOF
1176#define __SUNOS__ 1
1177EOF
1178
1179 cat >> confdefs.h <<\EOF
1180#define __BSD__ 1
1181EOF
1182
1183 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1184 ;;
1185 *-*-freebsd*)
1186 USE_BSD=1
1187 USE_FREEBSD=1
1188 CPP_MT_FLAG=-D_THREAD_SAFE
1189 cat >> confdefs.h <<\EOF
1190#define __FREEBSD__ 1
1191EOF
1192
1193 cat >> confdefs.h <<\EOF
1194#define __BSD__ 1
1195EOF
1196
1197 DEFAULT_DEFAULT_wxUSE_GTK=1
1198 ;;
1199 *-*-openbsd*)
1200 USE_BSD=1
1201 USE_OPENBSD=1
1202 cat >> confdefs.h <<\EOF
1203#define __FREEBSD__ 1
1204EOF
1205
1206 cat >> confdefs.h <<\EOF
1207#define __OPENBSD__ 1
1208EOF
1209
1210 DEFAULT_DEFAULT_wxUSE_GTK=1
1211 ;;
1212 *-*-netbsd*)
1213 USE_BSD=1
1214 USE_NETBSD=1
1215 cat >> confdefs.h <<\EOF
1216#define __FREEBSD__ 1
1217EOF
1218
1219 cat >> confdefs.h <<\EOF
1220#define __NETBSD__ 1
1221EOF
1222
1223 DEFAULT_DEFAULT_wxUSE_GTK=1
1224 ;;
1225 *-*-osf* )
1226 USE_ALPHA=1
1227 USE_OSF=1
1228 cat >> confdefs.h <<\EOF
1229#define __ALPHA__ 1
1230EOF
1231
1232 cat >> confdefs.h <<\EOF
1233#define __OSF__ 1
1234EOF
1235
1236 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1237 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1238 ;;
1239 *-*-dgux5* )
1240 USE_ALPHA=1
1241 USE_SVR4=1
1242 cat >> confdefs.h <<\EOF
1243#define __ALPHA__ 1
1244EOF
1245
1246 cat >> confdefs.h <<\EOF
1247#define __SVR4__ 1
1248EOF
1249
1250 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1251 ;;
1252 *-*-sysv5* )
1253 USE_SYSV=1
1254 USE_SVR4=1
1255 cat >> confdefs.h <<\EOF
1256#define __SYSV__ 1
1257EOF
1258
1259 cat >> confdefs.h <<\EOF
1260#define __SVR4__ 1
1261EOF
1262
1263 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1264 ;;
1265 *-*-aix* )
1266 USE_AIX=1
1267 USE_SYSV=1
1268 USE_SVR4=1
1269 cat >> confdefs.h <<\EOF
1270#define __AIX__ 1
1271EOF
1272
1273 cat >> confdefs.h <<\EOF
1274#define __SYSV__ 1
1275EOF
1276
1277 cat >> confdefs.h <<\EOF
1278#define __SVR4__ 1
1279EOF
1280
1281 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1282 ;;
1283
1284 *-*-cygwin* | *-*-mingw32* )
1285 USE_UNIX=0
1286 USE_WIN32=1
1287 SO_SUFFIX=dll
1288 cat >> confdefs.h <<\EOF
1289#define __WIN32__ 1
1290EOF
1291
1292 cat >> confdefs.h <<\EOF
1293#define __WIN95__ 1
1294EOF
1295
1296 cat >> confdefs.h <<\EOF
1297#define __WINDOWS__ 1
1298EOF
1299
1300 cat >> confdefs.h <<\EOF
1301#define __GNUWIN32__ 1
1302EOF
1303
1304 cat >> confdefs.h <<\EOF
1305#define STRICT 1
1306EOF
1307
1308 cat >> confdefs.h <<\EOF
1309#define WINVER 0x0400
1310EOF
1311
1312 PROGRAM_EXT=".exe"
1313 RESCOMP=windres
1314 DEFAULT_DEFAULT_wxUSE_MSW=1
1315 ;;
1316
1317 *-pc-msdosdjgpp )
1318 USE_UNIX=0
1319 USE_DOS=1
1320 cat >> confdefs.h <<\EOF
1321#define __DOS__ 1
1322EOF
1323
1324 PROGRAM_EXT=".exe"
1325 DEFAULT_DEFAULT_wxUSE_MGL=1
1326 DEFAULT_DEFAULT_wxUSE_SHARED=0
1327 ;;
1328
1329 *-pc-os2_emx | *-pc-os2-emx )
1330 cat >> confdefs.h <<\EOF
1331#define __EMX__ 1
1332EOF
1333
1334 PROGRAM_EXT=".exe"
1335 DEFAULT_DEFAULT_wxUSE_PM=1
1336 ;;
1337
1338 powerpc-*-darwin* )
1339 USE_BSD=1
1340 USE_DARWIN=1
1341 CPP_MT_FLAG=
1342 SO_SUFFIX=dylib
1343 cat >> confdefs.h <<\EOF
1344#define __BSD__ 1
1345EOF
1346
1347 cat >> confdefs.h <<\EOF
1348#define __DARWIN__ 1
1349EOF
1350
1351 cat >> confdefs.h <<\EOF
1352#define __POWERPC__ 1
1353EOF
1354
1355 DEFAULT_DEFAULT_wxUSE_MAC=1
1356 ;;
1357
1358 *-*-beos* )
1359 USE_BEOS=1
1360 cat >> confdefs.h <<\EOF
1361#define __BEOS__ 1
1362EOF
1363
1364 ;;
1365
1366 *)
1367 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1368esac
1369
1370if test "$USE_UNIX" = 1 ; then
1371 wxUSE_UNIX=yes
1372 cat >> confdefs.h <<\EOF
1373#define __UNIX__ 1
1374EOF
1375
1376fi
1377
1378if test "$USE_LINUX" = 1; then
1379 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
1380echo "configure:1381: checking for glibc 2.1 or later" >&5
1381if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1382 echo $ac_n "(cached) $ac_c" 1>&6
1383else
1384
1385 cat > conftest.$ac_ext <<EOF
1386#line 1387 "configure"
1387#include "confdefs.h"
1388#include <features.h>
1389int main() {
1390
1391 #if !__GLIBC_PREREQ(2, 1)
1392 #error not glibc2.1
1393 #endif
1394
1395; return 0; }
1396EOF
1397if { (eval echo configure:1398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1398 rm -rf conftest*
1399
1400 wx_lib_glibc21=yes
1401
1402else
1403 echo "configure: failed program was:" >&5
1404 cat conftest.$ac_ext >&5
1405 rm -rf conftest*
1406
1407 wx_lib_glibc21=no
1408
1409
1410fi
1411rm -f conftest*
1412
1413fi
1414
1415echo "$ac_t""$wx_lib_glibc21" 1>&6
1416 if test "$wx_lib_glibc21" = "yes"; then
1417 cat >> confdefs.h <<\EOF
1418#define wxHAVE_GLIBC2 1
1419EOF
1420
1421 fi
1422fi
1423
1424
1425
1426
1427 wx_arg_cache_file="configarg.cache"
1428 echo "loading argument cache $wx_arg_cache_file"
1429 rm -f ${wx_arg_cache_file}.tmp
1430 touch ${wx_arg_cache_file}.tmp
1431 touch ${wx_arg_cache_file}
1432
1433
1434DEBUG_CONFIGURE=0
1435if test $DEBUG_CONFIGURE = 1; then
1436 DEFAULT_wxUSE_UNIVERSAL=no
1437
1438 DEFAULT_wxUSE_THREADS=yes
1439
1440 DEFAULT_wxUSE_SHARED=yes
1441 DEFAULT_wxUSE_SONAME=no
1442 DEFAULT_wxUSE_OPTIMISE=no
1443 DEFAULT_wxUSE_PROFILE=no
1444 DEFAULT_wxUSE_NO_DEPS=no
1445 DEFAULT_wxUSE_NO_RTTI=yes
1446 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1447 DEFAULT_wxUSE_PERMISSIVE=no
1448 DEFAULT_wxUSE_DEBUG_FLAG=yes
1449 DEFAULT_wxUSE_DEBUG_INFO=yes
1450 DEFAULT_wxUSE_DEBUG_GDB=yes
1451 DEFAULT_wxUSE_MEM_TRACING=no
1452 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1453 DEFAULT_wxUSE_DMALLOC=no
1454 DEFAULT_wxUSE_PRECOMP=no
1455 DEFAULT_wxUSE_APPLE_IEEE=no
1456
1457 DEFAULT_wxUSE_LOG=yes
1458 DEFAULT_wxUSE_LOGWINDOW=no
1459 DEFAULT_wxUSE_LOGGUI=no
1460 DEFAULT_wxUSE_LOGDIALOG=no
1461
1462 DEFAULT_wxUSE_GUI=yes
1463 DEFAULT_wxUSE_CONTROLS=no
1464
1465 DEFAULT_wxUSE_REGEX=no
1466 DEFAULT_wxUSE_ZLIB=no
1467 DEFAULT_wxUSE_LIBPNG=no
1468 DEFAULT_wxUSE_LIBJPEG=no
1469 DEFAULT_wxUSE_LIBTIFF=no
1470 DEFAULT_wxUSE_ODBC=no
1471 DEFAULT_wxUSE_FREETYPE=no
1472 DEFAULT_wxUSE_OPENGL=no
1473
1474 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1475 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1476 DEFAULT_wxUSE_STD_IOSTREAM=no
1477 DEFAULT_wxUSE_CMDLINE_PARSER=no
1478 DEFAULT_wxUSE_DATETIME=no
1479 DEFAULT_wxUSE_TIMEDATE=no
1480 DEFAULT_wxUSE_TIMER=no
1481 DEFAULT_wxUSE_STOPWATCH=no
1482 DEFAULT_wxUSE_FILE=no
1483 DEFAULT_wxUSE_FFILE=no
1484 DEFAULT_wxUSE_TEXTBUFFER=no
1485 DEFAULT_wxUSE_TEXTFILE=no
1486 DEFAULT_wxUSE_WAVE=no
1487 DEFAULT_wxUSE_INTL=no
1488 DEFAULT_wxUSE_CONFIG=no
1489 DEFAULT_wxUSE_FONTMAP=no
1490 DEFAULT_wxUSE_STREAMS=no
1491 DEFAULT_wxUSE_SOCKETS=no
1492 DEFAULT_wxUSE_DIALUP_MANAGER=no
1493 DEFAULT_wxUSE_JOYSTICK=no
1494 DEFAULT_wxUSE_DYNLIB_CLASS=no
1495 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1496 DEFAULT_wxUSE_LONGLONG=no
1497 DEFAULT_wxUSE_GEOMETRY=no
1498
1499 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1500 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1501 DEFAULT_wxUSE_POSTSCRIPT=no
1502
1503 DEFAULT_wxUSE_X_RESOURCES=no
1504 DEFAULT_wxUSE_CLIPBOARD=no
1505 DEFAULT_wxUSE_TOOLTIPS=no
1506 DEFAULT_wxUSE_DRAG_AND_DROP=no
1507 DEFAULT_wxUSE_DRAGIMAGE=no
1508 DEFAULT_wxUSE_SPLINES=no
1509
1510 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1511 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1512 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1513
1514 DEFAULT_wxUSE_PROLOGIO=no
1515 DEFAULT_wxUSE_RESOURCES=no
1516 DEFAULT_wxUSE_CONSTRAINTS=no
1517 DEFAULT_wxUSE_IPC=no
1518 DEFAULT_wxUSE_HELP=no
1519 DEFAULT_wxUSE_MS_HTML_HELP=no
1520 DEFAULT_wxUSE_WXHTML_HELP=no
1521 DEFAULT_wxUSE_TREELAYOUT=no
1522 DEFAULT_wxUSE_METAFILE=no
1523 DEFAULT_wxUSE_MIMETYPE=no
1524 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1525 DEFAULT_wxUSE_PROTOCOL=no
1526 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1527 DEFAULT_wxUSE_PROTOCOL_FTP=no
1528 DEFAULT_wxUSE_PROTOCOL_FILE=no
1529 DEFAULT_wxUSE_URL=no
1530
1531 DEFAULT_wxUSE_COMMONDLGS=no
1532 DEFAULT_wxUSE_CHOICEDLG=no
1533 DEFAULT_wxUSE_COLOURDLG=no
1534 DEFAULT_wxUSE_DIRDLG=no
1535 DEFAULT_wxUSE_FILEDLG=no
1536 DEFAULT_wxUSE_FINDREPLDLG=no
1537 DEFAULT_wxUSE_FONTDLG=no
1538 DEFAULT_wxUSE_MSGDLG=no
1539 DEFAULT_wxUSE_NUMBERDLG=no
1540 DEFAULT_wxUSE_TEXTDLG=no
1541 DEFAULT_wxUSE_SPLASH=no
1542 DEFAULT_wxUSE_STARTUP_TIPS=no
1543 DEFAULT_wxUSE_PROGRESSDLG=no
1544 DEFAULT_wxUSE_WIZARDDLG=no
1545
1546 DEFAULT_wxUSE_MENUS=no
1547 DEFAULT_wxUSE_MINIFRAME=no
1548 DEFAULT_wxUSE_HTML=no
1549 DEFAULT_wxUSE_FILESYSTEM=no
1550 DEFAULT_wxUSE_FS_INET=no
1551 DEFAULT_wxUSE_FS_ZIP=no
1552 DEFAULT_wxUSE_BUSYINFO=no
1553 DEFAULT_wxUSE_ZIPSTREAM=no
1554 DEFAULT_wxUSE_VALIDATORS=no
1555
1556 DEFAULT_wxUSE_ACCEL=no
1557 DEFAULT_wxUSE_BUTTON=no
1558 DEFAULT_wxUSE_BMPBUTTON=no
1559 DEFAULT_wxUSE_CALCTRL=no
1560 DEFAULT_wxUSE_CARET=no
1561 DEFAULT_wxUSE_CHECKBOX=no
1562 DEFAULT_wxUSE_CHECKLST=no
1563 DEFAULT_wxUSE_CHOICE=no
1564 DEFAULT_wxUSE_COMBOBOX=no
1565 DEFAULT_wxUSE_GAUGE=no
1566 DEFAULT_wxUSE_GRID=no
1567 DEFAULT_wxUSE_NEW_GRID=no
1568 DEFAULT_wxUSE_IMAGLIST=no
1569 DEFAULT_wxUSE_LISTBOX=no
1570 DEFAULT_wxUSE_LISTCTRL=no
1571 DEFAULT_wxUSE_NOTEBOOK=no
1572 DEFAULT_wxUSE_PROPSHEET=no
1573 DEFAULT_wxUSE_RADIOBOX=no
1574 DEFAULT_wxUSE_RADIOBTN=no
1575 DEFAULT_wxUSE_SASH=no
1576 DEFAULT_wxUSE_SCROLLBAR=no
1577 DEFAULT_wxUSE_SLIDER=no
1578 DEFAULT_wxUSE_SPINBTN=no
1579 DEFAULT_wxUSE_SPINCTRL=no
1580 DEFAULT_wxUSE_SPLITTER=no
1581 DEFAULT_wxUSE_STATBMP=no
1582 DEFAULT_wxUSE_STATBOX=no
1583 DEFAULT_wxUSE_STATLINE=no
1584 DEFAULT_wxUSE_STATTEXT=no
1585 DEFAULT_wxUSE_STATUSBAR=yes
1586 DEFAULT_wxUSE_TABDIALOG=no
1587 DEFAULT_wxUSE_TEXTCTRL=no
1588 DEFAULT_wxUSE_TOGGLEBTN=no
1589 DEFAULT_wxUSE_TOOLBAR=no
1590 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1591 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1592 DEFAULT_wxUSE_TREECTRL=no
1593 DEFAULT_wxUSE_POPUPWIN=no
1594 DEFAULT_wxUSE_TIPWINDOW=no
1595
1596 DEFAULT_wxUSE_UNICODE=no
1597 DEFAULT_wxUSE_UNICODE_MSLU=no
1598 DEFAULT_wxUSE_WCSRTOMBS=no
1599
1600 DEFAULT_wxUSE_PALETTE=no
1601 DEFAULT_wxUSE_IMAGE=no
1602 DEFAULT_wxUSE_GIF=no
1603 DEFAULT_wxUSE_PCX=no
1604 DEFAULT_wxUSE_PNM=no
1605 DEFAULT_wxUSE_XPM=no
1606 DEFAULT_wxUSE_ICO_CUR=no
1607else
1608 DEFAULT_wxUSE_UNIVERSAL=no
1609
1610 DEFAULT_wxUSE_THREADS=yes
1611
1612 DEFAULT_wxUSE_SHARED=yes
1613 DEFAULT_wxUSE_SONAME=no
1614 DEFAULT_wxUSE_OPTIMISE=yes
1615 DEFAULT_wxUSE_PROFILE=no
1616 DEFAULT_wxUSE_NO_DEPS=no
1617 DEFAULT_wxUSE_NO_RTTI=yes
1618 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1619 DEFAULT_wxUSE_PERMISSIVE=no
1620 DEFAULT_wxUSE_DEBUG_FLAG=no
1621 DEFAULT_wxUSE_DEBUG_INFO=no
1622 DEFAULT_wxUSE_DEBUG_GDB=no
1623 DEFAULT_wxUSE_MEM_TRACING=no
1624 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1625 DEFAULT_wxUSE_DMALLOC=no
1626 DEFAULT_wxUSE_PRECOMP=no
1627 DEFAULT_wxUSE_APPLE_IEEE=yes
1628
1629 DEFAULT_wxUSE_LOG=yes
1630 DEFAULT_wxUSE_LOGWINDOW=yes
1631 DEFAULT_wxUSE_LOGGUI=yes
1632 DEFAULT_wxUSE_LOGDIALOG=yes
1633
1634 DEFAULT_wxUSE_GUI=yes
1635
1636 DEFAULT_wxUSE_REGEX=yes
1637 DEFAULT_wxUSE_ZLIB=yes
1638 DEFAULT_wxUSE_LIBPNG=yes
1639 DEFAULT_wxUSE_LIBJPEG=yes
1640 DEFAULT_wxUSE_LIBTIFF=yes
1641 DEFAULT_wxUSE_ODBC=no
1642 DEFAULT_wxUSE_FREETYPE=no
1643 DEFAULT_wxUSE_OPENGL=no
1644
1645 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1646 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1647 DEFAULT_wxUSE_STD_IOSTREAM=no
1648 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1649 DEFAULT_wxUSE_DATETIME=yes
1650 DEFAULT_wxUSE_TIMEDATE=no
1651 DEFAULT_wxUSE_TIMER=yes
1652 DEFAULT_wxUSE_STOPWATCH=yes
1653 DEFAULT_wxUSE_FILE=yes
1654 DEFAULT_wxUSE_FFILE=yes
1655 DEFAULT_wxUSE_TEXTBUFFER=yes
1656 DEFAULT_wxUSE_TEXTFILE=yes
1657 DEFAULT_wxUSE_WAVE=no
1658 DEFAULT_wxUSE_INTL=yes
1659 DEFAULT_wxUSE_CONFIG=yes
1660 DEFAULT_wxUSE_FONTMAP=yes
1661 DEFAULT_wxUSE_STREAMS=yes
1662 DEFAULT_wxUSE_SOCKETS=yes
1663 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1664 DEFAULT_wxUSE_JOYSTICK=yes
1665 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1666 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1667 DEFAULT_wxUSE_LONGLONG=yes
1668 DEFAULT_wxUSE_GEOMETRY=yes
1669
1670 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1671 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1672 DEFAULT_wxUSE_POSTSCRIPT=yes
1673
1674 DEFAULT_wxUSE_X_RESOURCES=no
1675 DEFAULT_wxUSE_CLIPBOARD=yes
1676 DEFAULT_wxUSE_TOOLTIPS=yes
1677 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1678 DEFAULT_wxUSE_DRAGIMAGE=yes
1679 DEFAULT_wxUSE_SPLINES=yes
1680
1681 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1682 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1683 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1684
1685 DEFAULT_wxUSE_PROLOGIO=yes
1686 DEFAULT_wxUSE_RESOURCES=yes
1687 DEFAULT_wxUSE_CONSTRAINTS=yes
1688 DEFAULT_wxUSE_IPC=yes
1689 DEFAULT_wxUSE_HELP=yes
1690 DEFAULT_wxUSE_MS_HTML_HELP=yes
1691 DEFAULT_wxUSE_WXHTML_HELP=yes
1692 DEFAULT_wxUSE_TREELAYOUT=yes
1693 DEFAULT_wxUSE_METAFILE=yes
1694 DEFAULT_wxUSE_MIMETYPE=yes
1695 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1696 DEFAULT_wxUSE_PROTOCOL=yes
1697 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1698 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1699 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1700 DEFAULT_wxUSE_URL=yes
1701
1702 DEFAULT_wxUSE_COMMONDLGS=yes
1703 DEFAULT_wxUSE_CHOICEDLG=yes
1704 DEFAULT_wxUSE_COLOURDLG=yes
1705 DEFAULT_wxUSE_DIRDLG=yes
1706 DEFAULT_wxUSE_FILEDLG=yes
1707 DEFAULT_wxUSE_FINDREPLDLG=yes
1708 DEFAULT_wxUSE_FONTDLG=yes
1709 DEFAULT_wxUSE_MSGDLG=yes
1710 DEFAULT_wxUSE_NUMBERDLG=yes
1711 DEFAULT_wxUSE_TEXTDLG=yes
1712 DEFAULT_wxUSE_SPLASH=yes
1713 DEFAULT_wxUSE_STARTUP_TIPS=yes
1714 DEFAULT_wxUSE_PROGRESSDLG=yes
1715 DEFAULT_wxUSE_WIZARDDLG=yes
1716
1717 DEFAULT_wxUSE_MENUS=yes
1718 DEFAULT_wxUSE_MINIFRAME=yes
1719 DEFAULT_wxUSE_HTML=yes
1720 DEFAULT_wxUSE_FILESYSTEM=yes
1721 DEFAULT_wxUSE_FS_INET=yes
1722 DEFAULT_wxUSE_FS_ZIP=yes
1723 DEFAULT_wxUSE_BUSYINFO=yes
1724 DEFAULT_wxUSE_ZIPSTREAM=yes
1725 DEFAULT_wxUSE_VALIDATORS=yes
1726
1727 DEFAULT_wxUSE_ACCEL=yes
1728 DEFAULT_wxUSE_BUTTON=yes
1729 DEFAULT_wxUSE_BMPBUTTON=yes
1730 DEFAULT_wxUSE_CALCTRL=yes
1731 DEFAULT_wxUSE_CARET=yes
1732 DEFAULT_wxUSE_CHECKBOX=yes
1733 DEFAULT_wxUSE_CHECKLST=yes
1734 DEFAULT_wxUSE_CHOICE=yes
1735 DEFAULT_wxUSE_COMBOBOX=yes
1736 DEFAULT_wxUSE_GAUGE=yes
1737 DEFAULT_wxUSE_GRID=yes
1738 DEFAULT_wxUSE_NEW_GRID=yes
1739 DEFAULT_wxUSE_IMAGLIST=yes
1740 DEFAULT_wxUSE_LISTBOX=yes
1741 DEFAULT_wxUSE_LISTCTRL=yes
1742 DEFAULT_wxUSE_NOTEBOOK=yes
1743 DEFAULT_wxUSE_PROPSHEET=yes
1744 DEFAULT_wxUSE_RADIOBOX=yes
1745 DEFAULT_wxUSE_RADIOBTN=yes
1746 DEFAULT_wxUSE_SASH=yes
1747 DEFAULT_wxUSE_SCROLLBAR=yes
1748 DEFAULT_wxUSE_SLIDER=yes
1749 DEFAULT_wxUSE_SPINBTN=yes
1750 DEFAULT_wxUSE_SPINCTRL=yes
1751 DEFAULT_wxUSE_SPLITTER=yes
1752 DEFAULT_wxUSE_STATBMP=yes
1753 DEFAULT_wxUSE_STATBOX=yes
1754 DEFAULT_wxUSE_STATLINE=yes
1755 DEFAULT_wxUSE_STATTEXT=yes
1756 DEFAULT_wxUSE_STATUSBAR=yes
1757 DEFAULT_wxUSE_TABDIALOG=no
1758 DEFAULT_wxUSE_TEXTCTRL=yes
1759 DEFAULT_wxUSE_TOGGLEBTN=yes
1760 DEFAULT_wxUSE_TOOLBAR=yes
1761 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1762 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1763 DEFAULT_wxUSE_TREECTRL=yes
1764 DEFAULT_wxUSE_POPUPWIN=yes
1765 DEFAULT_wxUSE_TIPWINDOW=yes
1766
1767 DEFAULT_wxUSE_UNICODE=no
1768 DEFAULT_wxUSE_UNICODE_MSLU=yes
1769 DEFAULT_wxUSE_WCSRTOMBS=no
1770
1771 DEFAULT_wxUSE_PALETTE=yes
1772 DEFAULT_wxUSE_IMAGE=yes
1773 DEFAULT_wxUSE_GIF=yes
1774 DEFAULT_wxUSE_PCX=yes
1775 DEFAULT_wxUSE_PNM=yes
1776 DEFAULT_wxUSE_XPM=yes
1777 DEFAULT_wxUSE_ICO_CUR=yes
1778fi
1779
1780
1781
1782for toolkit in `echo $ALL_TOOLKITS`; do
1783 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1784 if test "x$LINE" != x ; then
1785 has_toolkit_in_cache=1
1786 eval "DEFAULT_$LINE"
1787 eval "CACHE_$toolkit=1"
1788 fi
1789done
1790
1791
1792
1793 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1794echo "configure:1795: checking for --enable-gui" >&5
1795 no_cache=0
1796 # Check whether --enable-gui or --disable-gui was given.
1797if test "${enable_gui+set}" = set; then
1798 enableval="$enable_gui"
1799
1800 if test "$enableval" = yes; then
1801 ac_cv_use_gui='wxUSE_GUI=yes'
1802 else
1803 ac_cv_use_gui='wxUSE_GUI=no'
1804 fi
1805
1806else
1807
1808 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1809 if test "x$LINE" != x ; then
1810 eval "DEFAULT_$LINE"
1811 else
1812 no_cache=1
1813 fi
1814
1815 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1816
1817fi
1818
1819
1820 eval "$ac_cv_use_gui"
1821 if test "$no_cache" != 1; then
1822 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1823 fi
1824
1825 if test "$wxUSE_GUI" = yes; then
1826 echo "$ac_t""yes" 1>&6
1827 else
1828 echo "$ac_t""no" 1>&6
1829 fi
1830
1831
1832if test "$wxUSE_GUI" = "yes"; then
1833
1834
1835 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1836echo "configure:1837: checking for --enable-universal" >&5
1837 no_cache=0
1838 # Check whether --enable-universal or --disable-universal was given.
1839if test "${enable_universal+set}" = set; then
1840 enableval="$enable_universal"
1841
1842 if test "$enableval" = yes; then
1843 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1844 else
1845 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1846 fi
1847
1848else
1849
1850 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1851 if test "x$LINE" != x ; then
1852 eval "DEFAULT_$LINE"
1853 else
1854 no_cache=1
1855 fi
1856
1857 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1858
1859fi
1860
1861
1862 eval "$ac_cv_use_universal"
1863 if test "$no_cache" != 1; then
1864 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1865 fi
1866
1867 if test "$wxUSE_UNIVERSAL" = yes; then
1868 echo "$ac_t""yes" 1>&6
1869 else
1870 echo "$ac_t""no" 1>&6
1871 fi
1872
1873# Check whether --with-gtk or --without-gtk was given.
1874if test "${with_gtk+set}" = set; then
1875 withval="$with_gtk"
1876 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1877fi
1878
1879# Check whether --with-motif or --without-motif was given.
1880if test "${with_motif+set}" = set; then
1881 withval="$with_motif"
1882 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1883fi
1884
1885# Check whether --with-mac or --without-mac was given.
1886if test "${with_mac+set}" = set; then
1887 withval="$with_mac"
1888 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1889fi
1890
1891# Check whether --with-wine or --without-wine was given.
1892if test "${with_wine+set}" = set; then
1893 withval="$with_wine"
1894 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1895fi
1896
1897# Check whether --with-msw or --without-msw was given.
1898if test "${with_msw+set}" = set; then
1899 withval="$with_msw"
1900 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
1901fi
1902
1903# Check whether --with-pm or --without-pm was given.
1904if test "${with_pm+set}" = set; then
1905 withval="$with_pm"
1906 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1907fi
1908
1909# Check whether --with-mgl or --without-mgl was given.
1910if test "${with_mgl+set}" = set; then
1911 withval="$with_mgl"
1912 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1913fi
1914
1915# Check whether --with-microwin or --without-microwin was given.
1916if test "${with_microwin+set}" = set; then
1917 withval="$with_microwin"
1918 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1919fi
1920
1921
1922# Check whether --enable-gtk2 or --disable-gtk2 was given.
1923if test "${enable_gtk2+set}" = set; then
1924 enableval="$enable_gtk2"
1925 wxUSE_GTK2=1
1926else
1927 wxUSE_GTK2=0
1928fi
1929
1930
1931
1932 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1933echo "configure:1934: checking for --with-libpng" >&5
1934 no_cache=0
1935 # Check whether --with-libpng or --without-libpng was given.
1936if test "${with_libpng+set}" = set; then
1937 withval="$with_libpng"
1938
1939 if test "$withval" = yes; then
1940 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1941 elif test "$withval" = no; then
1942 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1943 elif test "$withval" = sys; then
1944 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1945 elif test "$withval" = builtin; then
1946 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1947 else
1948 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1949 fi
1950
1951else
1952
1953 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1954 if test "x$LINE" != x ; then
1955 eval "DEFAULT_$LINE"
1956 else
1957 no_cache=1
1958 fi
1959
1960 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1961
1962fi
1963
1964
1965 eval "$ac_cv_use_libpng"
1966 if test "$no_cache" != 1; then
1967 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1968 fi
1969
1970 if test "$wxUSE_LIBPNG" = yes; then
1971 echo "$ac_t""yes" 1>&6
1972 elif test "$wxUSE_LIBPNG" = no; then
1973 echo "$ac_t""no" 1>&6
1974 elif test "$wxUSE_LIBPNG" = sys; then
1975 echo "$ac_t""system version" 1>&6
1976 elif test "$wxUSE_LIBPNG" = builtin; then
1977 echo "$ac_t""builtin version" 1>&6
1978 else
1979 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1980 fi
1981
1982
1983 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1984echo "configure:1985: checking for --with-libjpeg" >&5
1985 no_cache=0
1986 # Check whether --with-libjpeg or --without-libjpeg was given.
1987if test "${with_libjpeg+set}" = set; then
1988 withval="$with_libjpeg"
1989
1990 if test "$withval" = yes; then
1991 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1992 elif test "$withval" = no; then
1993 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1994 elif test "$withval" = sys; then
1995 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1996 elif test "$withval" = builtin; then
1997 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
1998 else
1999 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2000 fi
2001
2002else
2003
2004 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2005 if test "x$LINE" != x ; then
2006 eval "DEFAULT_$LINE"
2007 else
2008 no_cache=1
2009 fi
2010
2011 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2012
2013fi
2014
2015
2016 eval "$ac_cv_use_libjpeg"
2017 if test "$no_cache" != 1; then
2018 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2019 fi
2020
2021 if test "$wxUSE_LIBJPEG" = yes; then
2022 echo "$ac_t""yes" 1>&6
2023 elif test "$wxUSE_LIBJPEG" = no; then
2024 echo "$ac_t""no" 1>&6
2025 elif test "$wxUSE_LIBJPEG" = sys; then
2026 echo "$ac_t""system version" 1>&6
2027 elif test "$wxUSE_LIBJPEG" = builtin; then
2028 echo "$ac_t""builtin version" 1>&6
2029 else
2030 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2031 fi
2032
2033
2034 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2035echo "configure:2036: checking for --with-libtiff" >&5
2036 no_cache=0
2037 # Check whether --with-libtiff or --without-libtiff was given.
2038if test "${with_libtiff+set}" = set; then
2039 withval="$with_libtiff"
2040
2041 if test "$withval" = yes; then
2042 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2043 elif test "$withval" = no; then
2044 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2045 elif test "$withval" = sys; then
2046 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2047 elif test "$withval" = builtin; then
2048 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2049 else
2050 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2051 fi
2052
2053else
2054
2055 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2056 if test "x$LINE" != x ; then
2057 eval "DEFAULT_$LINE"
2058 else
2059 no_cache=1
2060 fi
2061
2062 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2063
2064fi
2065
2066
2067 eval "$ac_cv_use_libtiff"
2068 if test "$no_cache" != 1; then
2069 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2070 fi
2071
2072 if test "$wxUSE_LIBTIFF" = yes; then
2073 echo "$ac_t""yes" 1>&6
2074 elif test "$wxUSE_LIBTIFF" = no; then
2075 echo "$ac_t""no" 1>&6
2076 elif test "$wxUSE_LIBTIFF" = sys; then
2077 echo "$ac_t""system version" 1>&6
2078 elif test "$wxUSE_LIBTIFF" = builtin; then
2079 echo "$ac_t""builtin version" 1>&6
2080 else
2081 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2082 fi
2083
2084
2085 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
2086echo "configure:2087: checking for --with-freetype" >&5
2087 no_cache=0
2088 # Check whether --with-freetype or --without-freetype was given.
2089if test "${with_freetype+set}" = set; then
2090 withval="$with_freetype"
2091
2092 if test "$withval" = yes; then
2093 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2094 elif test "$withval" = no; then
2095 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2096 elif test "$withval" = sys; then
2097 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
2098 elif test "$withval" = builtin; then
2099 ac_cv_use_freetype='wxUSE_FREETYPE=builtin'
2100 else
2101 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2102 fi
2103
2104else
2105
2106 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2107 if test "x$LINE" != x ; then
2108 eval "DEFAULT_$LINE"
2109 else
2110 no_cache=1
2111 fi
2112
2113 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
2114
2115fi
2116
2117
2118 eval "$ac_cv_use_freetype"
2119 if test "$no_cache" != 1; then
2120 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2121 fi
2122
2123 if test "$wxUSE_FREETYPE" = yes; then
2124 echo "$ac_t""yes" 1>&6
2125 elif test "$wxUSE_FREETYPE" = no; then
2126 echo "$ac_t""no" 1>&6
2127 elif test "$wxUSE_FREETYPE" = sys; then
2128 echo "$ac_t""system version" 1>&6
2129 elif test "$wxUSE_FREETYPE" = builtin; then
2130 echo "$ac_t""builtin version" 1>&6
2131 else
2132 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2133 fi
2134
2135
2136 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2137echo "configure:2138: checking for --with-opengl" >&5
2138 no_cache=0
2139 # Check whether --with-opengl or --without-opengl was given.
2140if test "${with_opengl+set}" = set; then
2141 withval="$with_opengl"
2142
2143 if test "$withval" = yes; then
2144 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2145 else
2146 ac_cv_use_opengl='wxUSE_OPENGL=no'
2147 fi
2148
2149else
2150
2151 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2152 if test "x$LINE" != x ; then
2153 eval "DEFAULT_$LINE"
2154 else
2155 no_cache=1
2156 fi
2157
2158 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2159
2160fi
2161
2162
2163 eval "$ac_cv_use_opengl"
2164 if test "$no_cache" != 1; then
2165 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2166 fi
2167
2168 if test "$wxUSE_OPENGL" = yes; then
2169 echo "$ac_t""yes" 1>&6
2170 else
2171 echo "$ac_t""no" 1>&6
2172 fi
2173
2174
2175fi
2176
2177
2178 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2179echo "configure:2180: checking for --with-dmalloc" >&5
2180 no_cache=0
2181 # Check whether --with-dmalloc or --without-dmalloc was given.
2182if test "${with_dmalloc+set}" = set; then
2183 withval="$with_dmalloc"
2184
2185 if test "$withval" = yes; then
2186 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2187 else
2188 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2189 fi
2190
2191else
2192
2193 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2194 if test "x$LINE" != x ; then
2195 eval "DEFAULT_$LINE"
2196 else
2197 no_cache=1
2198 fi
2199
2200 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2201
2202fi
2203
2204
2205 eval "$ac_cv_use_dmalloc"
2206 if test "$no_cache" != 1; then
2207 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2208 fi
2209
2210 if test "$wxUSE_DMALLOC" = yes; then
2211 echo "$ac_t""yes" 1>&6
2212 else
2213 echo "$ac_t""no" 1>&6
2214 fi
2215
2216
2217 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2218echo "configure:2219: checking for --with-regex" >&5
2219 no_cache=0
2220 # Check whether --with-regex or --without-regex was given.
2221if test "${with_regex+set}" = set; then
2222 withval="$with_regex"
2223
2224 if test "$withval" = yes; then
2225 ac_cv_use_regex='wxUSE_REGEX=yes'
2226 elif test "$withval" = no; then
2227 ac_cv_use_regex='wxUSE_REGEX=no'
2228 elif test "$withval" = sys; then
2229 ac_cv_use_regex='wxUSE_REGEX=sys'
2230 elif test "$withval" = builtin; then
2231 ac_cv_use_regex='wxUSE_REGEX=builtin'
2232 else
2233 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2234 fi
2235
2236else
2237
2238 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2239 if test "x$LINE" != x ; then
2240 eval "DEFAULT_$LINE"
2241 else
2242 no_cache=1
2243 fi
2244
2245 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2246
2247fi
2248
2249
2250 eval "$ac_cv_use_regex"
2251 if test "$no_cache" != 1; then
2252 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2253 fi
2254
2255 if test "$wxUSE_REGEX" = yes; then
2256 echo "$ac_t""yes" 1>&6
2257 elif test "$wxUSE_REGEX" = no; then
2258 echo "$ac_t""no" 1>&6
2259 elif test "$wxUSE_REGEX" = sys; then
2260 echo "$ac_t""system version" 1>&6
2261 elif test "$wxUSE_REGEX" = builtin; then
2262 echo "$ac_t""builtin version" 1>&6
2263 else
2264 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2265 fi
2266
2267
2268 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2269echo "configure:2270: checking for --with-zlib" >&5
2270 no_cache=0
2271 # Check whether --with-zlib or --without-zlib was given.
2272if test "${with_zlib+set}" = set; then
2273 withval="$with_zlib"
2274
2275 if test "$withval" = yes; then
2276 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2277 elif test "$withval" = no; then
2278 ac_cv_use_zlib='wxUSE_ZLIB=no'
2279 elif test "$withval" = sys; then
2280 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2281 elif test "$withval" = builtin; then
2282 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2283 else
2284 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2285 fi
2286
2287else
2288
2289 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2290 if test "x$LINE" != x ; then
2291 eval "DEFAULT_$LINE"
2292 else
2293 no_cache=1
2294 fi
2295
2296 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2297
2298fi
2299
2300
2301 eval "$ac_cv_use_zlib"
2302 if test "$no_cache" != 1; then
2303 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2304 fi
2305
2306 if test "$wxUSE_ZLIB" = yes; then
2307 echo "$ac_t""yes" 1>&6
2308 elif test "$wxUSE_ZLIB" = no; then
2309 echo "$ac_t""no" 1>&6
2310 elif test "$wxUSE_ZLIB" = sys; then
2311 echo "$ac_t""system version" 1>&6
2312 elif test "$wxUSE_ZLIB" = builtin; then
2313 echo "$ac_t""builtin version" 1>&6
2314 else
2315 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2316 fi
2317
2318
2319 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2320echo "configure:2321: checking for --with-odbc" >&5
2321 no_cache=0
2322 # Check whether --with-odbc or --without-odbc was given.
2323if test "${with_odbc+set}" = set; then
2324 withval="$with_odbc"
2325
2326 if test "$withval" = yes; then
2327 ac_cv_use_odbc='wxUSE_ODBC=yes'
2328 else
2329 ac_cv_use_odbc='wxUSE_ODBC=no'
2330 fi
2331
2332else
2333
2334 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2335 if test "x$LINE" != x ; then
2336 eval "DEFAULT_$LINE"
2337 else
2338 no_cache=1
2339 fi
2340
2341 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2342
2343fi
2344
2345
2346 eval "$ac_cv_use_odbc"
2347 if test "$no_cache" != 1; then
2348 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2349 fi
2350
2351 if test "$wxUSE_ODBC" = yes; then
2352 echo "$ac_t""yes" 1>&6
2353 else
2354 echo "$ac_t""no" 1>&6
2355 fi
2356
2357
2358
2359
2360 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2361echo "configure:2362: checking for --enable-shared" >&5
2362 no_cache=0
2363 # Check whether --enable-shared or --disable-shared was given.
2364if test "${enable_shared+set}" = set; then
2365 enableval="$enable_shared"
2366
2367 if test "$enableval" = yes; then
2368 ac_cv_use_shared='wxUSE_SHARED=yes'
2369 else
2370 ac_cv_use_shared='wxUSE_SHARED=no'
2371 fi
2372
2373else
2374
2375 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2376 if test "x$LINE" != x ; then
2377 eval "DEFAULT_$LINE"
2378 else
2379 no_cache=1
2380 fi
2381
2382 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2383
2384fi
2385
2386
2387 eval "$ac_cv_use_shared"
2388 if test "$no_cache" != 1; then
2389 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2390 fi
2391
2392 if test "$wxUSE_SHARED" = yes; then
2393 echo "$ac_t""yes" 1>&6
2394 else
2395 echo "$ac_t""no" 1>&6
2396 fi
2397
2398
2399 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2400echo "configure:2401: checking for --enable-soname" >&5
2401 no_cache=0
2402 # Check whether --enable-soname or --disable-soname was given.
2403if test "${enable_soname+set}" = set; then
2404 enableval="$enable_soname"
2405
2406 if test "$enableval" = yes; then
2407 ac_cv_use_soname='wxUSE_SONAME=yes'
2408 else
2409 ac_cv_use_soname='wxUSE_SONAME=no'
2410 fi
2411
2412else
2413
2414 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2415 if test "x$LINE" != x ; then
2416 eval "DEFAULT_$LINE"
2417 else
2418 no_cache=1
2419 fi
2420
2421 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2422
2423fi
2424
2425
2426 eval "$ac_cv_use_soname"
2427 if test "$no_cache" != 1; then
2428 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2429 fi
2430
2431 if test "$wxUSE_SONAME" = yes; then
2432 echo "$ac_t""yes" 1>&6
2433 else
2434 echo "$ac_t""no" 1>&6
2435 fi
2436
2437
2438 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2439echo "configure:2440: checking for --enable-optimise" >&5
2440 no_cache=0
2441 # Check whether --enable-optimise or --disable-optimise was given.
2442if test "${enable_optimise+set}" = set; then
2443 enableval="$enable_optimise"
2444
2445 if test "$enableval" = yes; then
2446 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2447 else
2448 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2449 fi
2450
2451else
2452
2453 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2454 if test "x$LINE" != x ; then
2455 eval "DEFAULT_$LINE"
2456 else
2457 no_cache=1
2458 fi
2459
2460 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2461
2462fi
2463
2464
2465 eval "$ac_cv_use_optimise"
2466 if test "$no_cache" != 1; then
2467 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2468 fi
2469
2470 if test "$wxUSE_OPTIMISE" = yes; then
2471 echo "$ac_t""yes" 1>&6
2472 else
2473 echo "$ac_t""no" 1>&6
2474 fi
2475
2476
2477 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2478echo "configure:2479: checking for --enable-debug" >&5
2479 no_cache=0
2480 # Check whether --enable-debug or --disable-debug was given.
2481if test "${enable_debug+set}" = set; then
2482 enableval="$enable_debug"
2483
2484 if test "$enableval" = yes; then
2485 ac_cv_use_debug='wxUSE_DEBUG=yes'
2486 else
2487 ac_cv_use_debug='wxUSE_DEBUG=no'
2488 fi
2489
2490else
2491
2492 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2493 if test "x$LINE" != x ; then
2494 eval "DEFAULT_$LINE"
2495 else
2496 no_cache=1
2497 fi
2498
2499 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2500
2501fi
2502
2503
2504 eval "$ac_cv_use_debug"
2505 if test "$no_cache" != 1; then
2506 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2507 fi
2508
2509 if test "$wxUSE_DEBUG" = yes; then
2510 echo "$ac_t""yes" 1>&6
2511 else
2512 echo "$ac_t""no" 1>&6
2513 fi
2514
2515
2516
2517 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2518echo "configure:2519: checking for --enable-precomp" >&5
2519 no_cache=0
2520 # Check whether --enable-precomp or --disable-precomp was given.
2521if test "${enable_precomp+set}" = set; then
2522 enableval="$enable_precomp"
2523
2524 if test "$enableval" = yes; then
2525 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2526 else
2527 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2528 fi
2529
2530else
2531
2532 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2533 if test "x$LINE" != x ; then
2534 eval "DEFAULT_$LINE"
2535 else
2536 no_cache=1
2537 fi
2538
2539 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2540
2541fi
2542
2543
2544 eval "$ac_cv_use_precomp"
2545 if test "$no_cache" != 1; then
2546 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2547 fi
2548
2549 if test "$wxUSE_PRECOMP" = yes; then
2550 echo "$ac_t""yes" 1>&6
2551 else
2552 echo "$ac_t""no" 1>&6
2553 fi
2554
2555
2556if test "$wxUSE_DEBUG" = "yes"; then
2557 DEFAULT_wxUSE_DEBUG_FLAG=yes
2558 DEFAULT_wxUSE_DEBUG_INFO=yes
2559elif test "$wxUSE_DEBUG" = "no"; then
2560 DEFAULT_wxUSE_DEBUG_FLAG=no
2561 DEFAULT_wxUSE_DEBUG_INFO=no
2562fi
2563
2564
2565 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2566echo "configure:2567: checking for --enable-debug_flag" >&5
2567 no_cache=0
2568 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2569if test "${enable_debug_flag+set}" = set; then
2570 enableval="$enable_debug_flag"
2571
2572 if test "$enableval" = yes; then
2573 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2574 else
2575 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2576 fi
2577
2578else
2579
2580 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2581 if test "x$LINE" != x ; then
2582 eval "DEFAULT_$LINE"
2583 else
2584 no_cache=1
2585 fi
2586
2587 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2588
2589fi
2590
2591
2592 eval "$ac_cv_use_debug_flag"
2593 if test "$no_cache" != 1; then
2594 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2595 fi
2596
2597 if test "$wxUSE_DEBUG_FLAG" = yes; then
2598 echo "$ac_t""yes" 1>&6
2599 else
2600 echo "$ac_t""no" 1>&6
2601 fi
2602
2603
2604 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2605echo "configure:2606: checking for --enable-debug_info" >&5
2606 no_cache=0
2607 # Check whether --enable-debug_info or --disable-debug_info was given.
2608if test "${enable_debug_info+set}" = set; then
2609 enableval="$enable_debug_info"
2610
2611 if test "$enableval" = yes; then
2612 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2613 else
2614 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2615 fi
2616
2617else
2618
2619 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2620 if test "x$LINE" != x ; then
2621 eval "DEFAULT_$LINE"
2622 else
2623 no_cache=1
2624 fi
2625
2626 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2627
2628fi
2629
2630
2631 eval "$ac_cv_use_debug_info"
2632 if test "$no_cache" != 1; then
2633 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2634 fi
2635
2636 if test "$wxUSE_DEBUG_INFO" = yes; then
2637 echo "$ac_t""yes" 1>&6
2638 else
2639 echo "$ac_t""no" 1>&6
2640 fi
2641
2642
2643 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2644echo "configure:2645: checking for --enable-debug_gdb" >&5
2645 no_cache=0
2646 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2647if test "${enable_debug_gdb+set}" = set; then
2648 enableval="$enable_debug_gdb"
2649
2650 if test "$enableval" = yes; then
2651 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2652 else
2653 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2654 fi
2655
2656else
2657
2658 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2659 if test "x$LINE" != x ; then
2660 eval "DEFAULT_$LINE"
2661 else
2662 no_cache=1
2663 fi
2664
2665 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2666
2667fi
2668
2669
2670 eval "$ac_cv_use_debug_gdb"
2671 if test "$no_cache" != 1; then
2672 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2673 fi
2674
2675 if test "$wxUSE_DEBUG_GDB" = yes; then
2676 echo "$ac_t""yes" 1>&6
2677 else
2678 echo "$ac_t""no" 1>&6
2679 fi
2680
2681
2682 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2683echo "configure:2684: checking for --enable-debug_cntxt" >&5
2684 no_cache=0
2685 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2686if test "${enable_debug_cntxt+set}" = set; then
2687 enableval="$enable_debug_cntxt"
2688
2689 if test "$enableval" = yes; then
2690 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2691 else
2692 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2693 fi
2694
2695else
2696
2697 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2698 if test "x$LINE" != x ; then
2699 eval "DEFAULT_$LINE"
2700 else
2701 no_cache=1
2702 fi
2703
2704 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2705
2706fi
2707
2708
2709 eval "$ac_cv_use_debug_cntxt"
2710 if test "$no_cache" != 1; then
2711 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2712 fi
2713
2714 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2715 echo "$ac_t""yes" 1>&6
2716 else
2717 echo "$ac_t""no" 1>&6
2718 fi
2719
2720
2721 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2722echo "configure:2723: checking for --enable-mem_tracing" >&5
2723 no_cache=0
2724 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2725if test "${enable_mem_tracing+set}" = set; then
2726 enableval="$enable_mem_tracing"
2727
2728 if test "$enableval" = yes; then
2729 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2730 else
2731 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2732 fi
2733
2734else
2735
2736 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2737 if test "x$LINE" != x ; then
2738 eval "DEFAULT_$LINE"
2739 else
2740 no_cache=1
2741 fi
2742
2743 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2744
2745fi
2746
2747
2748 eval "$ac_cv_use_mem_tracing"
2749 if test "$no_cache" != 1; then
2750 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2751 fi
2752
2753 if test "$wxUSE_MEM_TRACING" = yes; then
2754 echo "$ac_t""yes" 1>&6
2755 else
2756 echo "$ac_t""no" 1>&6
2757 fi
2758
2759
2760 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2761echo "configure:2762: checking for --enable-profile" >&5
2762 no_cache=0
2763 # Check whether --enable-profile or --disable-profile was given.
2764if test "${enable_profile+set}" = set; then
2765 enableval="$enable_profile"
2766
2767 if test "$enableval" = yes; then
2768 ac_cv_use_profile='wxUSE_PROFILE=yes'
2769 else
2770 ac_cv_use_profile='wxUSE_PROFILE=no'
2771 fi
2772
2773else
2774
2775 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2776 if test "x$LINE" != x ; then
2777 eval "DEFAULT_$LINE"
2778 else
2779 no_cache=1
2780 fi
2781
2782 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2783
2784fi
2785
2786
2787 eval "$ac_cv_use_profile"
2788 if test "$no_cache" != 1; then
2789 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2790 fi
2791
2792 if test "$wxUSE_PROFILE" = yes; then
2793 echo "$ac_t""yes" 1>&6
2794 else
2795 echo "$ac_t""no" 1>&6
2796 fi
2797
2798
2799 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2800echo "configure:2801: checking for --enable-no_rtti" >&5
2801 no_cache=0
2802 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2803if test "${enable_no_rtti+set}" = set; then
2804 enableval="$enable_no_rtti"
2805
2806 if test "$enableval" = yes; then
2807 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2808 else
2809 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2810 fi
2811
2812else
2813
2814 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2815 if test "x$LINE" != x ; then
2816 eval "DEFAULT_$LINE"
2817 else
2818 no_cache=1
2819 fi
2820
2821 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2822
2823fi
2824
2825
2826 eval "$ac_cv_use_no_rtti"
2827 if test "$no_cache" != 1; then
2828 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2829 fi
2830
2831 if test "$wxUSE_NO_RTTI" = yes; then
2832 echo "$ac_t""yes" 1>&6
2833 else
2834 echo "$ac_t""no" 1>&6
2835 fi
2836
2837
2838 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2839echo "configure:2840: checking for --enable-no_exceptions" >&5
2840 no_cache=0
2841 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2842if test "${enable_no_exceptions+set}" = set; then
2843 enableval="$enable_no_exceptions"
2844
2845 if test "$enableval" = yes; then
2846 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2847 else
2848 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2849 fi
2850
2851else
2852
2853 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2854 if test "x$LINE" != x ; then
2855 eval "DEFAULT_$LINE"
2856 else
2857 no_cache=1
2858 fi
2859
2860 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2861
2862fi
2863
2864
2865 eval "$ac_cv_use_no_exceptions"
2866 if test "$no_cache" != 1; then
2867 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2868 fi
2869
2870 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2871 echo "$ac_t""yes" 1>&6
2872 else
2873 echo "$ac_t""no" 1>&6
2874 fi
2875
2876
2877 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2878echo "configure:2879: checking for --enable-permissive" >&5
2879 no_cache=0
2880 # Check whether --enable-permissive or --disable-permissive was given.
2881if test "${enable_permissive+set}" = set; then
2882 enableval="$enable_permissive"
2883
2884 if test "$enableval" = yes; then
2885 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2886 else
2887 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2888 fi
2889
2890else
2891
2892 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2893 if test "x$LINE" != x ; then
2894 eval "DEFAULT_$LINE"
2895 else
2896 no_cache=1
2897 fi
2898
2899 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2900
2901fi
2902
2903
2904 eval "$ac_cv_use_permissive"
2905 if test "$no_cache" != 1; then
2906 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2907 fi
2908
2909 if test "$wxUSE_PERMISSIVE" = yes; then
2910 echo "$ac_t""yes" 1>&6
2911 else
2912 echo "$ac_t""no" 1>&6
2913 fi
2914
2915
2916 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2917echo "configure:2918: checking for --enable-no_deps" >&5
2918 no_cache=0
2919 # Check whether --enable-no_deps or --disable-no_deps was given.
2920if test "${enable_no_deps+set}" = set; then
2921 enableval="$enable_no_deps"
2922
2923 if test "$enableval" = yes; then
2924 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2925 else
2926 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2927 fi
2928
2929else
2930
2931 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2932 if test "x$LINE" != x ; then
2933 eval "DEFAULT_$LINE"
2934 else
2935 no_cache=1
2936 fi
2937
2938 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2939
2940fi
2941
2942
2943 eval "$ac_cv_use_no_deps"
2944 if test "$no_cache" != 1; then
2945 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2946 fi
2947
2948 if test "$wxUSE_NO_DEPS" = yes; then
2949 echo "$ac_t""yes" 1>&6
2950 else
2951 echo "$ac_t""no" 1>&6
2952 fi
2953
2954
2955
2956 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2957echo "configure:2958: checking for --enable-compat20" >&5
2958 no_cache=0
2959 # Check whether --enable-compat20 or --disable-compat20 was given.
2960if test "${enable_compat20+set}" = set; then
2961 enableval="$enable_compat20"
2962
2963 if test "$enableval" = yes; then
2964 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2965 else
2966 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2967 fi
2968
2969else
2970
2971 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2972 if test "x$LINE" != x ; then
2973 eval "DEFAULT_$LINE"
2974 else
2975 no_cache=1
2976 fi
2977
2978 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2979
2980fi
2981
2982
2983 eval "$ac_cv_use_compat20"
2984 if test "$no_cache" != 1; then
2985 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2986 fi
2987
2988 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2989 echo "$ac_t""yes" 1>&6
2990 else
2991 echo "$ac_t""no" 1>&6
2992 fi
2993
2994
2995 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2996echo "configure:2997: checking for --enable-compat22" >&5
2997 no_cache=0
2998 # Check whether --enable-compat22 or --disable-compat22 was given.
2999if test "${enable_compat22+set}" = set; then
3000 enableval="$enable_compat22"
3001
3002 if test "$enableval" = yes; then
3003 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3004 else
3005 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3006 fi
3007
3008else
3009
3010 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3011 if test "x$LINE" != x ; then
3012 eval "DEFAULT_$LINE"
3013 else
3014 no_cache=1
3015 fi
3016
3017 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3018
3019fi
3020
3021
3022 eval "$ac_cv_use_compat22"
3023 if test "$no_cache" != 1; then
3024 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3025 fi
3026
3027 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3028 echo "$ac_t""yes" 1>&6
3029 else
3030 echo "$ac_t""no" 1>&6
3031 fi
3032
3033
3034
3035
3036 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
3037echo "configure:3038: checking for --enable-intl" >&5
3038 no_cache=0
3039 # Check whether --enable-intl or --disable-intl was given.
3040if test "${enable_intl+set}" = set; then
3041 enableval="$enable_intl"
3042
3043 if test "$enableval" = yes; then
3044 ac_cv_use_intl='wxUSE_INTL=yes'
3045 else
3046 ac_cv_use_intl='wxUSE_INTL=no'
3047 fi
3048
3049else
3050
3051 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3052 if test "x$LINE" != x ; then
3053 eval "DEFAULT_$LINE"
3054 else
3055 no_cache=1
3056 fi
3057
3058 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3059
3060fi
3061
3062
3063 eval "$ac_cv_use_intl"
3064 if test "$no_cache" != 1; then
3065 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3066 fi
3067
3068 if test "$wxUSE_INTL" = yes; then
3069 echo "$ac_t""yes" 1>&6
3070 else
3071 echo "$ac_t""no" 1>&6
3072 fi
3073
3074
3075 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3076echo "configure:3077: checking for --enable-config" >&5
3077 no_cache=0
3078 # Check whether --enable-config or --disable-config was given.
3079if test "${enable_config+set}" = set; then
3080 enableval="$enable_config"
3081
3082 if test "$enableval" = yes; then
3083 ac_cv_use_config='wxUSE_CONFIG=yes'
3084 else
3085 ac_cv_use_config='wxUSE_CONFIG=no'
3086 fi
3087
3088else
3089
3090 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3091 if test "x$LINE" != x ; then
3092 eval "DEFAULT_$LINE"
3093 else
3094 no_cache=1
3095 fi
3096
3097 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3098
3099fi
3100
3101
3102 eval "$ac_cv_use_config"
3103 if test "$no_cache" != 1; then
3104 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3105 fi
3106
3107 if test "$wxUSE_CONFIG" = yes; then
3108 echo "$ac_t""yes" 1>&6
3109 else
3110 echo "$ac_t""no" 1>&6
3111 fi
3112
3113
3114
3115 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
3116echo "configure:3117: checking for --enable-protocols" >&5
3117 no_cache=0
3118 # Check whether --enable-protocols or --disable-protocols was given.
3119if test "${enable_protocols+set}" = set; then
3120 enableval="$enable_protocols"
3121
3122 if test "$enableval" = yes; then
3123 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3124 else
3125 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3126 fi
3127
3128else
3129
3130 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3131 if test "x$LINE" != x ; then
3132 eval "DEFAULT_$LINE"
3133 else
3134 no_cache=1
3135 fi
3136
3137 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3138
3139fi
3140
3141
3142 eval "$ac_cv_use_protocols"
3143 if test "$no_cache" != 1; then
3144 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3145 fi
3146
3147 if test "$wxUSE_PROTOCOL" = yes; then
3148 echo "$ac_t""yes" 1>&6
3149 else
3150 echo "$ac_t""no" 1>&6
3151 fi
3152
3153
3154 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
3155echo "configure:3156: checking for --enable-ftp" >&5
3156 no_cache=0
3157 # Check whether --enable-ftp or --disable-ftp was given.
3158if test "${enable_ftp+set}" = set; then
3159 enableval="$enable_ftp"
3160
3161 if test "$enableval" = yes; then
3162 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3163 else
3164 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3165 fi
3166
3167else
3168
3169 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3170 if test "x$LINE" != x ; then
3171 eval "DEFAULT_$LINE"
3172 else
3173 no_cache=1
3174 fi
3175
3176 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3177
3178fi
3179
3180
3181 eval "$ac_cv_use_ftp"
3182 if test "$no_cache" != 1; then
3183 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3184 fi
3185
3186 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3187 echo "$ac_t""yes" 1>&6
3188 else
3189 echo "$ac_t""no" 1>&6
3190 fi
3191
3192
3193 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
3194echo "configure:3195: checking for --enable-http" >&5
3195 no_cache=0
3196 # Check whether --enable-http or --disable-http was given.
3197if test "${enable_http+set}" = set; then
3198 enableval="$enable_http"
3199
3200 if test "$enableval" = yes; then
3201 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3202 else
3203 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3204 fi
3205
3206else
3207
3208 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3209 if test "x$LINE" != x ; then
3210 eval "DEFAULT_$LINE"
3211 else
3212 no_cache=1
3213 fi
3214
3215 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3216
3217fi
3218
3219
3220 eval "$ac_cv_use_http"
3221 if test "$no_cache" != 1; then
3222 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3223 fi
3224
3225 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3226 echo "$ac_t""yes" 1>&6
3227 else
3228 echo "$ac_t""no" 1>&6
3229 fi
3230
3231
3232 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
3233echo "configure:3234: checking for --enable-fileproto" >&5
3234 no_cache=0
3235 # Check whether --enable-fileproto or --disable-fileproto was given.
3236if test "${enable_fileproto+set}" = set; then
3237 enableval="$enable_fileproto"
3238
3239 if test "$enableval" = yes; then
3240 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3241 else
3242 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3243 fi
3244
3245else
3246
3247 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3248 if test "x$LINE" != x ; then
3249 eval "DEFAULT_$LINE"
3250 else
3251 no_cache=1
3252 fi
3253
3254 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3255
3256fi
3257
3258
3259 eval "$ac_cv_use_fileproto"
3260 if test "$no_cache" != 1; then
3261 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3262 fi
3263
3264 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3265 echo "$ac_t""yes" 1>&6
3266 else
3267 echo "$ac_t""no" 1>&6
3268 fi
3269
3270
3271 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3272echo "configure:3273: checking for --enable-sockets" >&5
3273 no_cache=0
3274 # Check whether --enable-sockets or --disable-sockets was given.
3275if test "${enable_sockets+set}" = set; then
3276 enableval="$enable_sockets"
3277
3278 if test "$enableval" = yes; then
3279 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3280 else
3281 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3282 fi
3283
3284else
3285
3286 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3287 if test "x$LINE" != x ; then
3288 eval "DEFAULT_$LINE"
3289 else
3290 no_cache=1
3291 fi
3292
3293 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3294
3295fi
3296
3297
3298 eval "$ac_cv_use_sockets"
3299 if test "$no_cache" != 1; then
3300 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3301 fi
3302
3303 if test "$wxUSE_SOCKETS" = yes; then
3304 echo "$ac_t""yes" 1>&6
3305 else
3306 echo "$ac_t""no" 1>&6
3307 fi
3308
3309
3310
3311 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3312echo "configure:3313: checking for --enable-ipc" >&5
3313 no_cache=0
3314 # Check whether --enable-ipc or --disable-ipc was given.
3315if test "${enable_ipc+set}" = set; then
3316 enableval="$enable_ipc"
3317
3318 if test "$enableval" = yes; then
3319 ac_cv_use_ipc='wxUSE_IPC=yes'
3320 else
3321 ac_cv_use_ipc='wxUSE_IPC=no'
3322 fi
3323
3324else
3325
3326 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3327 if test "x$LINE" != x ; then
3328 eval "DEFAULT_$LINE"
3329 else
3330 no_cache=1
3331 fi
3332
3333 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3334
3335fi
3336
3337
3338 eval "$ac_cv_use_ipc"
3339 if test "$no_cache" != 1; then
3340 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3341 fi
3342
3343 if test "$wxUSE_IPC" = yes; then
3344 echo "$ac_t""yes" 1>&6
3345 else
3346 echo "$ac_t""no" 1>&6
3347 fi
3348
3349
3350
3351 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3352echo "configure:3353: checking for --enable-cmdline" >&5
3353 no_cache=0
3354 # Check whether --enable-cmdline or --disable-cmdline was given.
3355if test "${enable_cmdline+set}" = set; then
3356 enableval="$enable_cmdline"
3357
3358 if test "$enableval" = yes; then
3359 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3360 else
3361 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3362 fi
3363
3364else
3365
3366 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3367 if test "x$LINE" != x ; then
3368 eval "DEFAULT_$LINE"
3369 else
3370 no_cache=1
3371 fi
3372
3373 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3374
3375fi
3376
3377
3378 eval "$ac_cv_use_cmdline"
3379 if test "$no_cache" != 1; then
3380 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3381 fi
3382
3383 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3384 echo "$ac_t""yes" 1>&6
3385 else
3386 echo "$ac_t""no" 1>&6
3387 fi
3388
3389
3390 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3391echo "configure:3392: checking for --enable-datetime" >&5
3392 no_cache=0
3393 # Check whether --enable-datetime or --disable-datetime was given.
3394if test "${enable_datetime+set}" = set; then
3395 enableval="$enable_datetime"
3396
3397 if test "$enableval" = yes; then
3398 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3399 else
3400 ac_cv_use_datetime='wxUSE_DATETIME=no'
3401 fi
3402
3403else
3404
3405 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3406 if test "x$LINE" != x ; then
3407 eval "DEFAULT_$LINE"
3408 else
3409 no_cache=1
3410 fi
3411
3412 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3413
3414fi
3415
3416
3417 eval "$ac_cv_use_datetime"
3418 if test "$no_cache" != 1; then
3419 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3420 fi
3421
3422 if test "$wxUSE_DATETIME" = yes; then
3423 echo "$ac_t""yes" 1>&6
3424 else
3425 echo "$ac_t""no" 1>&6
3426 fi
3427
3428
3429 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3430echo "configure:3431: checking for --enable-timedate" >&5
3431 no_cache=0
3432 # Check whether --enable-timedate or --disable-timedate was given.
3433if test "${enable_timedate+set}" = set; then
3434 enableval="$enable_timedate"
3435
3436 if test "$enableval" = yes; then
3437 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3438 else
3439 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3440 fi
3441
3442else
3443
3444 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3445 if test "x$LINE" != x ; then
3446 eval "DEFAULT_$LINE"
3447 else
3448 no_cache=1
3449 fi
3450
3451 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3452
3453fi
3454
3455
3456 eval "$ac_cv_use_timedate"
3457 if test "$no_cache" != 1; then
3458 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3459 fi
3460
3461 if test "$wxUSE_TIMEDATE" = yes; then
3462 echo "$ac_t""yes" 1>&6
3463 else
3464 echo "$ac_t""no" 1>&6
3465 fi
3466
3467
3468 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3469echo "configure:3470: checking for --enable-stopwatch" >&5
3470 no_cache=0
3471 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3472if test "${enable_stopwatch+set}" = set; then
3473 enableval="$enable_stopwatch"
3474
3475 if test "$enableval" = yes; then
3476 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3477 else
3478 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3479 fi
3480
3481else
3482
3483 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3484 if test "x$LINE" != x ; then
3485 eval "DEFAULT_$LINE"
3486 else
3487 no_cache=1
3488 fi
3489
3490 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3491
3492fi
3493
3494
3495 eval "$ac_cv_use_stopwatch"
3496 if test "$no_cache" != 1; then
3497 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3498 fi
3499
3500 if test "$wxUSE_STOPWATCH" = yes; then
3501 echo "$ac_t""yes" 1>&6
3502 else
3503 echo "$ac_t""no" 1>&6
3504 fi
3505
3506
3507 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3508echo "configure:3509: checking for --enable-dialupman" >&5
3509 no_cache=0
3510 # Check whether --enable-dialupman or --disable-dialupman was given.
3511if test "${enable_dialupman+set}" = set; then
3512 enableval="$enable_dialupman"
3513
3514 if test "$enableval" = yes; then
3515 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3516 else
3517 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3518 fi
3519
3520else
3521
3522 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3523 if test "x$LINE" != x ; then
3524 eval "DEFAULT_$LINE"
3525 else
3526 no_cache=1
3527 fi
3528
3529 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3530
3531fi
3532
3533
3534 eval "$ac_cv_use_dialupman"
3535 if test "$no_cache" != 1; then
3536 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3537 fi
3538
3539 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3540 echo "$ac_t""yes" 1>&6
3541 else
3542 echo "$ac_t""no" 1>&6
3543 fi
3544
3545
3546 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3547echo "configure:3548: checking for --enable-apple_ieee" >&5
3548 no_cache=0
3549 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3550if test "${enable_apple_ieee+set}" = set; then
3551 enableval="$enable_apple_ieee"
3552
3553 if test "$enableval" = yes; then
3554 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3555 else
3556 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3557 fi
3558
3559else
3560
3561 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3562 if test "x$LINE" != x ; then
3563 eval "DEFAULT_$LINE"
3564 else
3565 no_cache=1
3566 fi
3567
3568 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3569
3570fi
3571
3572
3573 eval "$ac_cv_use_apple_ieee"
3574 if test "$no_cache" != 1; then
3575 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3576 fi
3577
3578 if test "$wxUSE_APPLE_IEEE" = yes; then
3579 echo "$ac_t""yes" 1>&6
3580 else
3581 echo "$ac_t""no" 1>&6
3582 fi
3583
3584
3585 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3586echo "configure:3587: checking for --enable-timer" >&5
3587 no_cache=0
3588 # Check whether --enable-timer or --disable-timer was given.
3589if test "${enable_timer+set}" = set; then
3590 enableval="$enable_timer"
3591
3592 if test "$enableval" = yes; then
3593 ac_cv_use_timer='wxUSE_TIMER=yes'
3594 else
3595 ac_cv_use_timer='wxUSE_TIMER=no'
3596 fi
3597
3598else
3599
3600 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3601 if test "x$LINE" != x ; then
3602 eval "DEFAULT_$LINE"
3603 else
3604 no_cache=1
3605 fi
3606
3607 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3608
3609fi
3610
3611
3612 eval "$ac_cv_use_timer"
3613 if test "$no_cache" != 1; then
3614 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3615 fi
3616
3617 if test "$wxUSE_TIMER" = yes; then
3618 echo "$ac_t""yes" 1>&6
3619 else
3620 echo "$ac_t""no" 1>&6
3621 fi
3622
3623
3624 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3625echo "configure:3626: checking for --enable-wave" >&5
3626 no_cache=0
3627 # Check whether --enable-wave or --disable-wave was given.
3628if test "${enable_wave+set}" = set; then
3629 enableval="$enable_wave"
3630
3631 if test "$enableval" = yes; then
3632 ac_cv_use_wave='wxUSE_WAVE=yes'
3633 else
3634 ac_cv_use_wave='wxUSE_WAVE=no'
3635 fi
3636
3637else
3638
3639 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3640 if test "x$LINE" != x ; then
3641 eval "DEFAULT_$LINE"
3642 else
3643 no_cache=1
3644 fi
3645
3646 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3647
3648fi
3649
3650
3651 eval "$ac_cv_use_wave"
3652 if test "$no_cache" != 1; then
3653 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3654 fi
3655
3656 if test "$wxUSE_WAVE" = yes; then
3657 echo "$ac_t""yes" 1>&6
3658 else
3659 echo "$ac_t""no" 1>&6
3660 fi
3661
3662
3663 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3664echo "configure:3665: checking for --enable-fraction" >&5
3665 no_cache=0
3666 # Check whether --enable-fraction or --disable-fraction was given.
3667if test "${enable_fraction+set}" = set; then
3668 enableval="$enable_fraction"
3669
3670 if test "$enableval" = yes; then
3671 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3672 else
3673 ac_cv_use_fraction='wxUSE_FRACTION=no'
3674 fi
3675
3676else
3677
3678 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3679 if test "x$LINE" != x ; then
3680 eval "DEFAULT_$LINE"
3681 else
3682 no_cache=1
3683 fi
3684
3685 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3686
3687fi
3688
3689
3690 eval "$ac_cv_use_fraction"
3691 if test "$no_cache" != 1; then
3692 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3693 fi
3694
3695 if test "$wxUSE_FRACTION" = yes; then
3696 echo "$ac_t""yes" 1>&6
3697 else
3698 echo "$ac_t""no" 1>&6
3699 fi
3700
3701
3702 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3703echo "configure:3704: checking for --enable-dynlib" >&5
3704 no_cache=0
3705 # Check whether --enable-dynlib or --disable-dynlib was given.
3706if test "${enable_dynlib+set}" = set; then
3707 enableval="$enable_dynlib"
3708
3709 if test "$enableval" = yes; then
3710 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3711 else
3712 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3713 fi
3714
3715else
3716
3717 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3718 if test "x$LINE" != x ; then
3719 eval "DEFAULT_$LINE"
3720 else
3721 no_cache=1
3722 fi
3723
3724 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3725
3726fi
3727
3728
3729 eval "$ac_cv_use_dynlib"
3730 if test "$no_cache" != 1; then
3731 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3732 fi
3733
3734 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3735 echo "$ac_t""yes" 1>&6
3736 else
3737 echo "$ac_t""no" 1>&6
3738 fi
3739
3740
3741 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3742echo "configure:3743: checking for --enable-dynamicloader" >&5
3743 no_cache=0
3744 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3745if test "${enable_dynamicloader+set}" = set; then
3746 enableval="$enable_dynamicloader"
3747
3748 if test "$enableval" = yes; then
3749 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3750 else
3751 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3752 fi
3753
3754else
3755
3756 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3757 if test "x$LINE" != x ; then
3758 eval "DEFAULT_$LINE"
3759 else
3760 no_cache=1
3761 fi
3762
3763 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3764
3765fi
3766
3767
3768 eval "$ac_cv_use_dynamicloader"
3769 if test "$no_cache" != 1; then
3770 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3771 fi
3772
3773 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3774 echo "$ac_t""yes" 1>&6
3775 else
3776 echo "$ac_t""no" 1>&6
3777 fi
3778
3779
3780 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3781echo "configure:3782: checking for --enable-longlong" >&5
3782 no_cache=0
3783 # Check whether --enable-longlong or --disable-longlong was given.
3784if test "${enable_longlong+set}" = set; then
3785 enableval="$enable_longlong"
3786
3787 if test "$enableval" = yes; then
3788 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3789 else
3790 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3791 fi
3792
3793else
3794
3795 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3796 if test "x$LINE" != x ; then
3797 eval "DEFAULT_$LINE"
3798 else
3799 no_cache=1
3800 fi
3801
3802 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3803
3804fi
3805
3806
3807 eval "$ac_cv_use_longlong"
3808 if test "$no_cache" != 1; then
3809 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3810 fi
3811
3812 if test "$wxUSE_LONGLONG" = yes; then
3813 echo "$ac_t""yes" 1>&6
3814 else
3815 echo "$ac_t""no" 1>&6
3816 fi
3817
3818
3819 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3820echo "configure:3821: checking for --enable-geometry" >&5
3821 no_cache=0
3822 # Check whether --enable-geometry or --disable-geometry was given.
3823if test "${enable_geometry+set}" = set; then
3824 enableval="$enable_geometry"
3825
3826 if test "$enableval" = yes; then
3827 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3828 else
3829 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3830 fi
3831
3832else
3833
3834 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3835 if test "x$LINE" != x ; then
3836 eval "DEFAULT_$LINE"
3837 else
3838 no_cache=1
3839 fi
3840
3841 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3842
3843fi
3844
3845
3846 eval "$ac_cv_use_geometry"
3847 if test "$no_cache" != 1; then
3848 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3849 fi
3850
3851 if test "$wxUSE_GEOMETRY" = yes; then
3852 echo "$ac_t""yes" 1>&6
3853 else
3854 echo "$ac_t""no" 1>&6
3855 fi
3856
3857
3858 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3859echo "configure:3860: checking for --enable-log" >&5
3860 no_cache=0
3861 # Check whether --enable-log or --disable-log was given.
3862if test "${enable_log+set}" = set; then
3863 enableval="$enable_log"
3864
3865 if test "$enableval" = yes; then
3866 ac_cv_use_log='wxUSE_LOG=yes'
3867 else
3868 ac_cv_use_log='wxUSE_LOG=no'
3869 fi
3870
3871else
3872
3873 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3874 if test "x$LINE" != x ; then
3875 eval "DEFAULT_$LINE"
3876 else
3877 no_cache=1
3878 fi
3879
3880 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3881
3882fi
3883
3884
3885 eval "$ac_cv_use_log"
3886 if test "$no_cache" != 1; then
3887 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3888 fi
3889
3890 if test "$wxUSE_LOG" = yes; then
3891 echo "$ac_t""yes" 1>&6
3892 else
3893 echo "$ac_t""no" 1>&6
3894 fi
3895
3896
3897 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3898echo "configure:3899: checking for --enable-streams" >&5
3899 no_cache=0
3900 # Check whether --enable-streams or --disable-streams was given.
3901if test "${enable_streams+set}" = set; then
3902 enableval="$enable_streams"
3903
3904 if test "$enableval" = yes; then
3905 ac_cv_use_streams='wxUSE_STREAMS=yes'
3906 else
3907 ac_cv_use_streams='wxUSE_STREAMS=no'
3908 fi
3909
3910else
3911
3912 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3913 if test "x$LINE" != x ; then
3914 eval "DEFAULT_$LINE"
3915 else
3916 no_cache=1
3917 fi
3918
3919 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3920
3921fi
3922
3923
3924 eval "$ac_cv_use_streams"
3925 if test "$no_cache" != 1; then
3926 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3927 fi
3928
3929 if test "$wxUSE_STREAMS" = yes; then
3930 echo "$ac_t""yes" 1>&6
3931 else
3932 echo "$ac_t""no" 1>&6
3933 fi
3934
3935
3936 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3937echo "configure:3938: checking for --enable-file" >&5
3938 no_cache=0
3939 # Check whether --enable-file or --disable-file was given.
3940if test "${enable_file+set}" = set; then
3941 enableval="$enable_file"
3942
3943 if test "$enableval" = yes; then
3944 ac_cv_use_file='wxUSE_FILE=yes'
3945 else
3946 ac_cv_use_file='wxUSE_FILE=no'
3947 fi
3948
3949else
3950
3951 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3952 if test "x$LINE" != x ; then
3953 eval "DEFAULT_$LINE"
3954 else
3955 no_cache=1
3956 fi
3957
3958 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3959
3960fi
3961
3962
3963 eval "$ac_cv_use_file"
3964 if test "$no_cache" != 1; then
3965 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3966 fi
3967
3968 if test "$wxUSE_FILE" = yes; then
3969 echo "$ac_t""yes" 1>&6
3970 else
3971 echo "$ac_t""no" 1>&6
3972 fi
3973
3974
3975 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3976echo "configure:3977: checking for --enable-ffile" >&5
3977 no_cache=0
3978 # Check whether --enable-ffile or --disable-ffile was given.
3979if test "${enable_ffile+set}" = set; then
3980 enableval="$enable_ffile"
3981
3982 if test "$enableval" = yes; then
3983 ac_cv_use_ffile='wxUSE_FFILE=yes'
3984 else
3985 ac_cv_use_ffile='wxUSE_FFILE=no'
3986 fi
3987
3988else
3989
3990 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3991 if test "x$LINE" != x ; then
3992 eval "DEFAULT_$LINE"
3993 else
3994 no_cache=1
3995 fi
3996
3997 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3998
3999fi
4000
4001
4002 eval "$ac_cv_use_ffile"
4003 if test "$no_cache" != 1; then
4004 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4005 fi
4006
4007 if test "$wxUSE_FFILE" = yes; then
4008 echo "$ac_t""yes" 1>&6
4009 else
4010 echo "$ac_t""no" 1>&6
4011 fi
4012
4013
4014 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
4015echo "configure:4016: checking for --enable-textbuf" >&5
4016 no_cache=0
4017 # Check whether --enable-textbuf or --disable-textbuf was given.
4018if test "${enable_textbuf+set}" = set; then
4019 enableval="$enable_textbuf"
4020
4021 if test "$enableval" = yes; then
4022 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4023 else
4024 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4025 fi
4026
4027else
4028
4029 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4030 if test "x$LINE" != x ; then
4031 eval "DEFAULT_$LINE"
4032 else
4033 no_cache=1
4034 fi
4035
4036 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4037
4038fi
4039
4040
4041 eval "$ac_cv_use_textbuf"
4042 if test "$no_cache" != 1; then
4043 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4044 fi
4045
4046 if test "$wxUSE_TEXTBUFFER" = yes; then
4047 echo "$ac_t""yes" 1>&6
4048 else
4049 echo "$ac_t""no" 1>&6
4050 fi
4051
4052
4053 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
4054echo "configure:4055: checking for --enable-textfile" >&5
4055 no_cache=0
4056 # Check whether --enable-textfile or --disable-textfile was given.
4057if test "${enable_textfile+set}" = set; then
4058 enableval="$enable_textfile"
4059
4060 if test "$enableval" = yes; then
4061 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4062 else
4063 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4064 fi
4065
4066else
4067
4068 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4069 if test "x$LINE" != x ; then
4070 eval "DEFAULT_$LINE"
4071 else
4072 no_cache=1
4073 fi
4074
4075 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4076
4077fi
4078
4079
4080 eval "$ac_cv_use_textfile"
4081 if test "$no_cache" != 1; then
4082 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4083 fi
4084
4085 if test "$wxUSE_TEXTFILE" = yes; then
4086 echo "$ac_t""yes" 1>&6
4087 else
4088 echo "$ac_t""no" 1>&6
4089 fi
4090
4091
4092 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
4093echo "configure:4094: checking for --enable-fontmap" >&5
4094 no_cache=0
4095 # Check whether --enable-fontmap or --disable-fontmap was given.
4096if test "${enable_fontmap+set}" = set; then
4097 enableval="$enable_fontmap"
4098
4099 if test "$enableval" = yes; then
4100 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4101 else
4102 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4103 fi
4104
4105else
4106
4107 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4108 if test "x$LINE" != x ; then
4109 eval "DEFAULT_$LINE"
4110 else
4111 no_cache=1
4112 fi
4113
4114 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4115
4116fi
4117
4118
4119 eval "$ac_cv_use_fontmap"
4120 if test "$no_cache" != 1; then
4121 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4122 fi
4123
4124 if test "$wxUSE_FONTMAP" = yes; then
4125 echo "$ac_t""yes" 1>&6
4126 else
4127 echo "$ac_t""no" 1>&6
4128 fi
4129
4130
4131 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
4132echo "configure:4133: checking for --enable-unicode" >&5
4133 no_cache=0
4134 # Check whether --enable-unicode or --disable-unicode was given.
4135if test "${enable_unicode+set}" = set; then
4136 enableval="$enable_unicode"
4137
4138 if test "$enableval" = yes; then
4139 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4140 else
4141 ac_cv_use_unicode='wxUSE_UNICODE=no'
4142 fi
4143
4144else
4145
4146 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4147 if test "x$LINE" != x ; then
4148 eval "DEFAULT_$LINE"
4149 else
4150 no_cache=1
4151 fi
4152
4153 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4154
4155fi
4156
4157
4158 eval "$ac_cv_use_unicode"
4159 if test "$no_cache" != 1; then
4160 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4161 fi
4162
4163 if test "$wxUSE_UNICODE" = yes; then
4164 echo "$ac_t""yes" 1>&6
4165 else
4166 echo "$ac_t""no" 1>&6
4167 fi
4168
4169
4170 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
4171echo "configure:4172: checking for --enable-mslu" >&5
4172 no_cache=0
4173 # Check whether --enable-mslu or --disable-mslu was given.
4174if test "${enable_mslu+set}" = set; then
4175 enableval="$enable_mslu"
4176
4177 if test "$enableval" = yes; then
4178 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4179 else
4180 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4181 fi
4182
4183else
4184
4185 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4186 if test "x$LINE" != x ; then
4187 eval "DEFAULT_$LINE"
4188 else
4189 no_cache=1
4190 fi
4191
4192 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4193
4194fi
4195
4196
4197 eval "$ac_cv_use_mslu"
4198 if test "$no_cache" != 1; then
4199 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4200 fi
4201
4202 if test "$wxUSE_UNICODE_MSLU" = yes; then
4203 echo "$ac_t""yes" 1>&6
4204 else
4205 echo "$ac_t""no" 1>&6
4206 fi
4207
4208
4209 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
4210echo "configure:4211: checking for --enable-wxprintfv" >&5
4211 no_cache=0
4212 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4213if test "${enable_wxprintfv+set}" = set; then
4214 enableval="$enable_wxprintfv"
4215
4216 if test "$enableval" = yes; then
4217 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4218 else
4219 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4220 fi
4221
4222else
4223
4224 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4225 if test "x$LINE" != x ; then
4226 eval "DEFAULT_$LINE"
4227 else
4228 no_cache=1
4229 fi
4230
4231 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4232
4233fi
4234
4235
4236 eval "$ac_cv_use_wxprintfv"
4237 if test "$no_cache" != 1; then
4238 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4239 fi
4240
4241 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4242 echo "$ac_t""yes" 1>&6
4243 else
4244 echo "$ac_t""no" 1>&6
4245 fi
4246
4247
4248 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
4249echo "configure:4250: checking for --enable-std_iostreams" >&5
4250 no_cache=0
4251 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4252if test "${enable_std_iostreams+set}" = set; then
4253 enableval="$enable_std_iostreams"
4254
4255 if test "$enableval" = yes; then
4256 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4257 else
4258 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4259 fi
4260
4261else
4262
4263 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4264 if test "x$LINE" != x ; then
4265 eval "DEFAULT_$LINE"
4266 else
4267 no_cache=1
4268 fi
4269
4270 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4271
4272fi
4273
4274
4275 eval "$ac_cv_use_std_iostreams"
4276 if test "$no_cache" != 1; then
4277 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4278 fi
4279
4280 if test "$wxUSE_STD_IOSTREAM" = yes; then
4281 echo "$ac_t""yes" 1>&6
4282 else
4283 echo "$ac_t""no" 1>&6
4284 fi
4285
4286
4287 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
4288echo "configure:4289: checking for --enable-filesystem" >&5
4289 no_cache=0
4290 # Check whether --enable-filesystem or --disable-filesystem was given.
4291if test "${enable_filesystem+set}" = set; then
4292 enableval="$enable_filesystem"
4293
4294 if test "$enableval" = yes; then
4295 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4296 else
4297 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4298 fi
4299
4300else
4301
4302 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4303 if test "x$LINE" != x ; then
4304 eval "DEFAULT_$LINE"
4305 else
4306 no_cache=1
4307 fi
4308
4309 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4310
4311fi
4312
4313
4314 eval "$ac_cv_use_filesystem"
4315 if test "$no_cache" != 1; then
4316 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4317 fi
4318
4319 if test "$wxUSE_FILESYSTEM" = yes; then
4320 echo "$ac_t""yes" 1>&6
4321 else
4322 echo "$ac_t""no" 1>&6
4323 fi
4324
4325
4326 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4327echo "configure:4328: checking for --enable-fs_inet" >&5
4328 no_cache=0
4329 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4330if test "${enable_fs_inet+set}" = set; then
4331 enableval="$enable_fs_inet"
4332
4333 if test "$enableval" = yes; then
4334 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4335 else
4336 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4337 fi
4338
4339else
4340
4341 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4342 if test "x$LINE" != x ; then
4343 eval "DEFAULT_$LINE"
4344 else
4345 no_cache=1
4346 fi
4347
4348 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4349
4350fi
4351
4352
4353 eval "$ac_cv_use_fs_inet"
4354 if test "$no_cache" != 1; then
4355 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4356 fi
4357
4358 if test "$wxUSE_FS_INET" = yes; then
4359 echo "$ac_t""yes" 1>&6
4360 else
4361 echo "$ac_t""no" 1>&6
4362 fi
4363
4364
4365 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4366echo "configure:4367: checking for --enable-fs_zip" >&5
4367 no_cache=0
4368 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4369if test "${enable_fs_zip+set}" = set; then
4370 enableval="$enable_fs_zip"
4371
4372 if test "$enableval" = yes; then
4373 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4374 else
4375 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4376 fi
4377
4378else
4379
4380 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4381 if test "x$LINE" != x ; then
4382 eval "DEFAULT_$LINE"
4383 else
4384 no_cache=1
4385 fi
4386
4387 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4388
4389fi
4390
4391
4392 eval "$ac_cv_use_fs_zip"
4393 if test "$no_cache" != 1; then
4394 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4395 fi
4396
4397 if test "$wxUSE_FS_ZIP" = yes; then
4398 echo "$ac_t""yes" 1>&6
4399 else
4400 echo "$ac_t""no" 1>&6
4401 fi
4402
4403
4404 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4405echo "configure:4406: checking for --enable-zipstream" >&5
4406 no_cache=0
4407 # Check whether --enable-zipstream or --disable-zipstream was given.
4408if test "${enable_zipstream+set}" = set; then
4409 enableval="$enable_zipstream"
4410
4411 if test "$enableval" = yes; then
4412 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4413 else
4414 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4415 fi
4416
4417else
4418
4419 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4420 if test "x$LINE" != x ; then
4421 eval "DEFAULT_$LINE"
4422 else
4423 no_cache=1
4424 fi
4425
4426 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4427
4428fi
4429
4430
4431 eval "$ac_cv_use_zipstream"
4432 if test "$no_cache" != 1; then
4433 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4434 fi
4435
4436 if test "$wxUSE_ZIPSTREAM" = yes; then
4437 echo "$ac_t""yes" 1>&6
4438 else
4439 echo "$ac_t""no" 1>&6
4440 fi
4441
4442
4443
4444 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4445echo "configure:4446: checking for --enable-catch_segvs" >&5
4446 no_cache=0
4447 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4448if test "${enable_catch_segvs+set}" = set; then
4449 enableval="$enable_catch_segvs"
4450
4451 if test "$enableval" = yes; then
4452 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4453 else
4454 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4455 fi
4456
4457else
4458
4459 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4460 if test "x$LINE" != x ; then
4461 eval "DEFAULT_$LINE"
4462 else
4463 no_cache=1
4464 fi
4465
4466 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4467
4468fi
4469
4470
4471 eval "$ac_cv_use_catch_segvs"
4472 if test "$no_cache" != 1; then
4473 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4474 fi
4475
4476 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4477 echo "$ac_t""yes" 1>&6
4478 else
4479 echo "$ac_t""no" 1>&6
4480 fi
4481
4482
4483 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4484echo "configure:4485: checking for --enable-snglinst" >&5
4485 no_cache=0
4486 # Check whether --enable-snglinst or --disable-snglinst was given.
4487if test "${enable_snglinst+set}" = set; then
4488 enableval="$enable_snglinst"
4489
4490 if test "$enableval" = yes; then
4491 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4492 else
4493 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4494 fi
4495
4496else
4497
4498 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4499 if test "x$LINE" != x ; then
4500 eval "DEFAULT_$LINE"
4501 else
4502 no_cache=1
4503 fi
4504
4505 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4506
4507fi
4508
4509
4510 eval "$ac_cv_use_snglinst"
4511 if test "$no_cache" != 1; then
4512 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4513 fi
4514
4515 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4516 echo "$ac_t""yes" 1>&6
4517 else
4518 echo "$ac_t""no" 1>&6
4519 fi
4520
4521
4522
4523 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4524echo "configure:4525: checking for --enable-mimetype" >&5
4525 no_cache=0
4526 # Check whether --enable-mimetype or --disable-mimetype was given.
4527if test "${enable_mimetype+set}" = set; then
4528 enableval="$enable_mimetype"
4529
4530 if test "$enableval" = yes; then
4531 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4532 else
4533 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4534 fi
4535
4536else
4537
4538 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4539 if test "x$LINE" != x ; then
4540 eval "DEFAULT_$LINE"
4541 else
4542 no_cache=1
4543 fi
4544
4545 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4546
4547fi
4548
4549
4550 eval "$ac_cv_use_mimetype"
4551 if test "$no_cache" != 1; then
4552 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4553 fi
4554
4555 if test "$wxUSE_MIMETYPE" = yes; then
4556 echo "$ac_t""yes" 1>&6
4557 else
4558 echo "$ac_t""no" 1>&6
4559 fi
4560
4561
4562 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4563echo "configure:4564: checking for --enable-system_options" >&5
4564 no_cache=0
4565 # Check whether --enable-system_options or --disable-system_options was given.
4566if test "${enable_system_options+set}" = set; then
4567 enableval="$enable_system_options"
4568
4569 if test "$enableval" = yes; then
4570 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4571 else
4572 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4573 fi
4574
4575else
4576
4577 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4578 if test "x$LINE" != x ; then
4579 eval "DEFAULT_$LINE"
4580 else
4581 no_cache=1
4582 fi
4583
4584 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4585
4586fi
4587
4588
4589 eval "$ac_cv_use_system_options"
4590 if test "$no_cache" != 1; then
4591 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4592 fi
4593
4594 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4595 echo "$ac_t""yes" 1>&6
4596 else
4597 echo "$ac_t""no" 1>&6
4598 fi
4599
4600
4601
4602 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
4603echo "configure:4604: checking for --enable-url" >&5
4604 no_cache=0
4605 # Check whether --enable-url or --disable-url was given.
4606if test "${enable_url+set}" = set; then
4607 enableval="$enable_url"
4608
4609 if test "$enableval" = yes; then
4610 ac_cv_use_url='wxUSE_URL=yes'
4611 else
4612 ac_cv_use_url='wxUSE_URL=no'
4613 fi
4614
4615else
4616
4617 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4618 if test "x$LINE" != x ; then
4619 eval "DEFAULT_$LINE"
4620 else
4621 no_cache=1
4622 fi
4623
4624 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4625
4626fi
4627
4628
4629 eval "$ac_cv_use_url"
4630 if test "$no_cache" != 1; then
4631 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4632 fi
4633
4634 if test "$wxUSE_URL" = yes; then
4635 echo "$ac_t""yes" 1>&6
4636 else
4637 echo "$ac_t""no" 1>&6
4638 fi
4639
4640
4641 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
4642echo "configure:4643: checking for --enable-protocol" >&5
4643 no_cache=0
4644 # Check whether --enable-protocol or --disable-protocol was given.
4645if test "${enable_protocol+set}" = set; then
4646 enableval="$enable_protocol"
4647
4648 if test "$enableval" = yes; then
4649 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4650 else
4651 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4652 fi
4653
4654else
4655
4656 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4657 if test "x$LINE" != x ; then
4658 eval "DEFAULT_$LINE"
4659 else
4660 no_cache=1
4661 fi
4662
4663 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4664
4665fi
4666
4667
4668 eval "$ac_cv_use_protocol"
4669 if test "$no_cache" != 1; then
4670 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4671 fi
4672
4673 if test "$wxUSE_PROTOCOL" = yes; then
4674 echo "$ac_t""yes" 1>&6
4675 else
4676 echo "$ac_t""no" 1>&6
4677 fi
4678
4679
4680 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
4681echo "configure:4682: checking for --enable-protocol_http" >&5
4682 no_cache=0
4683 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4684if test "${enable_protocol_http+set}" = set; then
4685 enableval="$enable_protocol_http"
4686
4687 if test "$enableval" = yes; then
4688 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4689 else
4690 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4691 fi
4692
4693else
4694
4695 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4696 if test "x$LINE" != x ; then
4697 eval "DEFAULT_$LINE"
4698 else
4699 no_cache=1
4700 fi
4701
4702 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4703
4704fi
4705
4706
4707 eval "$ac_cv_use_protocol_http"
4708 if test "$no_cache" != 1; then
4709 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4710 fi
4711
4712 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4713 echo "$ac_t""yes" 1>&6
4714 else
4715 echo "$ac_t""no" 1>&6
4716 fi
4717
4718
4719 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
4720echo "configure:4721: checking for --enable-protocol_ftp" >&5
4721 no_cache=0
4722 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4723if test "${enable_protocol_ftp+set}" = set; then
4724 enableval="$enable_protocol_ftp"
4725
4726 if test "$enableval" = yes; then
4727 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4728 else
4729 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4730 fi
4731
4732else
4733
4734 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4735 if test "x$LINE" != x ; then
4736 eval "DEFAULT_$LINE"
4737 else
4738 no_cache=1
4739 fi
4740
4741 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4742
4743fi
4744
4745
4746 eval "$ac_cv_use_protocol_ftp"
4747 if test "$no_cache" != 1; then
4748 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4749 fi
4750
4751 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4752 echo "$ac_t""yes" 1>&6
4753 else
4754 echo "$ac_t""no" 1>&6
4755 fi
4756
4757
4758 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
4759echo "configure:4760: checking for --enable-protocol_file" >&5
4760 no_cache=0
4761 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4762if test "${enable_protocol_file+set}" = set; then
4763 enableval="$enable_protocol_file"
4764
4765 if test "$enableval" = yes; then
4766 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4767 else
4768 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4769 fi
4770
4771else
4772
4773 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4774 if test "x$LINE" != x ; then
4775 eval "DEFAULT_$LINE"
4776 else
4777 no_cache=1
4778 fi
4779
4780 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4781
4782fi
4783
4784
4785 eval "$ac_cv_use_protocol_file"
4786 if test "$no_cache" != 1; then
4787 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4788 fi
4789
4790 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4791 echo "$ac_t""yes" 1>&6
4792 else
4793 echo "$ac_t""no" 1>&6
4794 fi
4795
4796
4797
4798
4799
4800 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4801echo "configure:4802: checking for --enable-threads" >&5
4802 no_cache=0
4803 # Check whether --enable-threads or --disable-threads was given.
4804if test "${enable_threads+set}" = set; then
4805 enableval="$enable_threads"
4806
4807 if test "$enableval" = yes; then
4808 ac_cv_use_threads='wxUSE_THREADS=yes'
4809 else
4810 ac_cv_use_threads='wxUSE_THREADS=no'
4811 fi
4812
4813else
4814
4815 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4816 if test "x$LINE" != x ; then
4817 eval "DEFAULT_$LINE"
4818 else
4819 no_cache=1
4820 fi
4821
4822 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4823
4824fi
4825
4826
4827 eval "$ac_cv_use_threads"
4828 if test "$no_cache" != 1; then
4829 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4830 fi
4831
4832 if test "$wxUSE_THREADS" = yes; then
4833 echo "$ac_t""yes" 1>&6
4834 else
4835 echo "$ac_t""no" 1>&6
4836 fi
4837
4838
4839if test "$wxUSE_GUI" = "yes"; then
4840
4841
4842
4843 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4844echo "configure:4845: checking for --enable-docview" >&5
4845 no_cache=0
4846 # Check whether --enable-docview or --disable-docview was given.
4847if test "${enable_docview+set}" = set; then
4848 enableval="$enable_docview"
4849
4850 if test "$enableval" = yes; then
4851 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4852 else
4853 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4854 fi
4855
4856else
4857
4858 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4859 if test "x$LINE" != x ; then
4860 eval "DEFAULT_$LINE"
4861 else
4862 no_cache=1
4863 fi
4864
4865 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4866
4867fi
4868
4869
4870 eval "$ac_cv_use_docview"
4871 if test "$no_cache" != 1; then
4872 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4873 fi
4874
4875 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4876 echo "$ac_t""yes" 1>&6
4877 else
4878 echo "$ac_t""no" 1>&6
4879 fi
4880
4881
4882 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4883echo "configure:4884: checking for --enable-help" >&5
4884 no_cache=0
4885 # Check whether --enable-help or --disable-help was given.
4886if test "${enable_help+set}" = set; then
4887 enableval="$enable_help"
4888
4889 if test "$enableval" = yes; then
4890 ac_cv_use_help='wxUSE_HELP=yes'
4891 else
4892 ac_cv_use_help='wxUSE_HELP=no'
4893 fi
4894
4895else
4896
4897 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4898 if test "x$LINE" != x ; then
4899 eval "DEFAULT_$LINE"
4900 else
4901 no_cache=1
4902 fi
4903
4904 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4905
4906fi
4907
4908
4909 eval "$ac_cv_use_help"
4910 if test "$no_cache" != 1; then
4911 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4912 fi
4913
4914 if test "$wxUSE_HELP" = yes; then
4915 echo "$ac_t""yes" 1>&6
4916 else
4917 echo "$ac_t""no" 1>&6
4918 fi
4919
4920
4921 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4922echo "configure:4923: checking for --enable-mshtmlhelp" >&5
4923 no_cache=0
4924 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4925if test "${enable_mshtmlhelp+set}" = set; then
4926 enableval="$enable_mshtmlhelp"
4927
4928 if test "$enableval" = yes; then
4929 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4930 else
4931 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4932 fi
4933
4934else
4935
4936 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4937 if test "x$LINE" != x ; then
4938 eval "DEFAULT_$LINE"
4939 else
4940 no_cache=1
4941 fi
4942
4943 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4944
4945fi
4946
4947
4948 eval "$ac_cv_use_mshtmlhelp"
4949 if test "$no_cache" != 1; then
4950 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4951 fi
4952
4953 if test "$wxUSE_MS_HTML_HELP" = yes; then
4954 echo "$ac_t""yes" 1>&6
4955 else
4956 echo "$ac_t""no" 1>&6
4957 fi
4958
4959
4960 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4961echo "configure:4962: checking for --enable-html" >&5
4962 no_cache=0
4963 # Check whether --enable-html or --disable-html was given.
4964if test "${enable_html+set}" = set; then
4965 enableval="$enable_html"
4966
4967 if test "$enableval" = yes; then
4968 ac_cv_use_html='wxUSE_HTML=yes'
4969 else
4970 ac_cv_use_html='wxUSE_HTML=no'
4971 fi
4972
4973else
4974
4975 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4976 if test "x$LINE" != x ; then
4977 eval "DEFAULT_$LINE"
4978 else
4979 no_cache=1
4980 fi
4981
4982 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4983
4984fi
4985
4986
4987 eval "$ac_cv_use_html"
4988 if test "$no_cache" != 1; then
4989 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4990 fi
4991
4992 if test "$wxUSE_HTML" = yes; then
4993 echo "$ac_t""yes" 1>&6
4994 else
4995 echo "$ac_t""no" 1>&6
4996 fi
4997
4998
4999 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
5000echo "configure:5001: checking for --enable-htmlhelp" >&5
5001 no_cache=0
5002 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5003if test "${enable_htmlhelp+set}" = set; then
5004 enableval="$enable_htmlhelp"
5005
5006 if test "$enableval" = yes; then
5007 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5008 else
5009 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5010 fi
5011
5012else
5013
5014 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5015 if test "x$LINE" != x ; then
5016 eval "DEFAULT_$LINE"
5017 else
5018 no_cache=1
5019 fi
5020
5021 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5022
5023fi
5024
5025
5026 eval "$ac_cv_use_htmlhelp"
5027 if test "$no_cache" != 1; then
5028 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5029 fi
5030
5031 if test "$wxUSE_WXHTML_HELP" = yes; then
5032 echo "$ac_t""yes" 1>&6
5033 else
5034 echo "$ac_t""no" 1>&6
5035 fi
5036
5037
5038 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
5039echo "configure:5040: checking for --enable-constraints" >&5
5040 no_cache=0
5041 # Check whether --enable-constraints or --disable-constraints was given.
5042if test "${enable_constraints+set}" = set; then
5043 enableval="$enable_constraints"
5044
5045 if test "$enableval" = yes; then
5046 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5047 else
5048 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5049 fi
5050
5051else
5052
5053 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5054 if test "x$LINE" != x ; then
5055 eval "DEFAULT_$LINE"
5056 else
5057 no_cache=1
5058 fi
5059
5060 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5061
5062fi
5063
5064
5065 eval "$ac_cv_use_constraints"
5066 if test "$no_cache" != 1; then
5067 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5068 fi
5069
5070 if test "$wxUSE_CONSTRAINTS" = yes; then
5071 echo "$ac_t""yes" 1>&6
5072 else
5073 echo "$ac_t""no" 1>&6
5074 fi
5075
5076
5077 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
5078echo "configure:5079: checking for --enable-printarch" >&5
5079 no_cache=0
5080 # Check whether --enable-printarch or --disable-printarch was given.
5081if test "${enable_printarch+set}" = set; then
5082 enableval="$enable_printarch"
5083
5084 if test "$enableval" = yes; then
5085 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5086 else
5087 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5088 fi
5089
5090else
5091
5092 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5093 if test "x$LINE" != x ; then
5094 eval "DEFAULT_$LINE"
5095 else
5096 no_cache=1
5097 fi
5098
5099 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5100
5101fi
5102
5103
5104 eval "$ac_cv_use_printarch"
5105 if test "$no_cache" != 1; then
5106 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5107 fi
5108
5109 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5110 echo "$ac_t""yes" 1>&6
5111 else
5112 echo "$ac_t""no" 1>&6
5113 fi
5114
5115
5116 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
5117echo "configure:5118: checking for --enable-mdi" >&5
5118 no_cache=0
5119 # Check whether --enable-mdi or --disable-mdi was given.
5120if test "${enable_mdi+set}" = set; then
5121 enableval="$enable_mdi"
5122
5123 if test "$enableval" = yes; then
5124 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5125 else
5126 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5127 fi
5128
5129else
5130
5131 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5132 if test "x$LINE" != x ; then
5133 eval "DEFAULT_$LINE"
5134 else
5135 no_cache=1
5136 fi
5137
5138 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5139
5140fi
5141
5142
5143 eval "$ac_cv_use_mdi"
5144 if test "$no_cache" != 1; then
5145 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5146 fi
5147
5148 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5149 echo "$ac_t""yes" 1>&6
5150 else
5151 echo "$ac_t""no" 1>&6
5152 fi
5153
5154
5155 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
5156echo "configure:5157: checking for --enable-loggui" >&5
5157 no_cache=0
5158 # Check whether --enable-loggui or --disable-loggui was given.
5159if test "${enable_loggui+set}" = set; then
5160 enableval="$enable_loggui"
5161
5162 if test "$enableval" = yes; then
5163 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5164 else
5165 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5166 fi
5167
5168else
5169
5170 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5171 if test "x$LINE" != x ; then
5172 eval "DEFAULT_$LINE"
5173 else
5174 no_cache=1
5175 fi
5176
5177 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5178
5179fi
5180
5181
5182 eval "$ac_cv_use_loggui"
5183 if test "$no_cache" != 1; then
5184 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5185 fi
5186
5187 if test "$wxUSE_LOGGUI" = yes; then
5188 echo "$ac_t""yes" 1>&6
5189 else
5190 echo "$ac_t""no" 1>&6
5191 fi
5192
5193
5194 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
5195echo "configure:5196: checking for --enable-logwin" >&5
5196 no_cache=0
5197 # Check whether --enable-logwin or --disable-logwin was given.
5198if test "${enable_logwin+set}" = set; then
5199 enableval="$enable_logwin"
5200
5201 if test "$enableval" = yes; then
5202 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5203 else
5204 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5205 fi
5206
5207else
5208
5209 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5210 if test "x$LINE" != x ; then
5211 eval "DEFAULT_$LINE"
5212 else
5213 no_cache=1
5214 fi
5215
5216 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5217
5218fi
5219
5220
5221 eval "$ac_cv_use_logwin"
5222 if test "$no_cache" != 1; then
5223 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5224 fi
5225
5226 if test "$wxUSE_LOGWINDOW" = yes; then
5227 echo "$ac_t""yes" 1>&6
5228 else
5229 echo "$ac_t""no" 1>&6
5230 fi
5231
5232
5233 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
5234echo "configure:5235: checking for --enable-logdialog" >&5
5235 no_cache=0
5236 # Check whether --enable-logdialog or --disable-logdialog was given.
5237if test "${enable_logdialog+set}" = set; then
5238 enableval="$enable_logdialog"
5239
5240 if test "$enableval" = yes; then
5241 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5242 else
5243 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5244 fi
5245
5246else
5247
5248 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5249 if test "x$LINE" != x ; then
5250 eval "DEFAULT_$LINE"
5251 else
5252 no_cache=1
5253 fi
5254
5255 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5256
5257fi
5258
5259
5260 eval "$ac_cv_use_logdialog"
5261 if test "$no_cache" != 1; then
5262 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5263 fi
5264
5265 if test "$wxUSE_LOGDIALOG" = yes; then
5266 echo "$ac_t""yes" 1>&6
5267 else
5268 echo "$ac_t""no" 1>&6
5269 fi
5270
5271
5272
5273 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
5274echo "configure:5275: checking for --enable-postscript" >&5
5275 no_cache=0
5276 # Check whether --enable-postscript or --disable-postscript was given.
5277if test "${enable_postscript+set}" = set; then
5278 enableval="$enable_postscript"
5279
5280 if test "$enableval" = yes; then
5281 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5282 else
5283 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5284 fi
5285
5286else
5287
5288 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5289 if test "x$LINE" != x ; then
5290 eval "DEFAULT_$LINE"
5291 else
5292 no_cache=1
5293 fi
5294
5295 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5296
5297fi
5298
5299
5300 eval "$ac_cv_use_postscript"
5301 if test "$no_cache" != 1; then
5302 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5303 fi
5304
5305 if test "$wxUSE_POSTSCRIPT" = yes; then
5306 echo "$ac_t""yes" 1>&6
5307 else
5308 echo "$ac_t""no" 1>&6
5309 fi
5310
5311
5312
5313
5314
5315 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
5316echo "configure:5317: checking for --enable-prologio" >&5
5317 no_cache=0
5318 # Check whether --enable-prologio or --disable-prologio was given.
5319if test "${enable_prologio+set}" = set; then
5320 enableval="$enable_prologio"
5321
5322 if test "$enableval" = yes; then
5323 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5324 else
5325 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5326 fi
5327
5328else
5329
5330 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5331 if test "x$LINE" != x ; then
5332 eval "DEFAULT_$LINE"
5333 else
5334 no_cache=1
5335 fi
5336
5337 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5338
5339fi
5340
5341
5342 eval "$ac_cv_use_prologio"
5343 if test "$no_cache" != 1; then
5344 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5345 fi
5346
5347 if test "$wxUSE_PROLOGIO" = yes; then
5348 echo "$ac_t""yes" 1>&6
5349 else
5350 echo "$ac_t""no" 1>&6
5351 fi
5352
5353
5354 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
5355echo "configure:5356: checking for --enable-resources" >&5
5356 no_cache=0
5357 # Check whether --enable-resources or --disable-resources was given.
5358if test "${enable_resources+set}" = set; then
5359 enableval="$enable_resources"
5360
5361 if test "$enableval" = yes; then
5362 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5363 else
5364 ac_cv_use_resources='wxUSE_RESOURCES=no'
5365 fi
5366
5367else
5368
5369 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5370 if test "x$LINE" != x ; then
5371 eval "DEFAULT_$LINE"
5372 else
5373 no_cache=1
5374 fi
5375
5376 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5377
5378fi
5379
5380
5381 eval "$ac_cv_use_resources"
5382 if test "$no_cache" != 1; then
5383 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5384 fi
5385
5386 if test "$wxUSE_RESOURCES" = yes; then
5387 echo "$ac_t""yes" 1>&6
5388 else
5389 echo "$ac_t""no" 1>&6
5390 fi
5391
5392
5393
5394 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
5395echo "configure:5396: checking for --enable-xresources" >&5
5396 no_cache=0
5397 # Check whether --enable-xresources or --disable-xresources was given.
5398if test "${enable_xresources+set}" = set; then
5399 enableval="$enable_xresources"
5400
5401 if test "$enableval" = yes; then
5402 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5403 else
5404 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5405 fi
5406
5407else
5408
5409 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5410 if test "x$LINE" != x ; then
5411 eval "DEFAULT_$LINE"
5412 else
5413 no_cache=1
5414 fi
5415
5416 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5417
5418fi
5419
5420
5421 eval "$ac_cv_use_xresources"
5422 if test "$no_cache" != 1; then
5423 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5424 fi
5425
5426 if test "$wxUSE_X_RESOURCES" = yes; then
5427 echo "$ac_t""yes" 1>&6
5428 else
5429 echo "$ac_t""no" 1>&6
5430 fi
5431
5432
5433
5434
5435 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
5436echo "configure:5437: checking for --enable-clipboard" >&5
5437 no_cache=0
5438 # Check whether --enable-clipboard or --disable-clipboard was given.
5439if test "${enable_clipboard+set}" = set; then
5440 enableval="$enable_clipboard"
5441
5442 if test "$enableval" = yes; then
5443 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5444 else
5445 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5446 fi
5447
5448else
5449
5450 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5451 if test "x$LINE" != x ; then
5452 eval "DEFAULT_$LINE"
5453 else
5454 no_cache=1
5455 fi
5456
5457 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5458
5459fi
5460
5461
5462 eval "$ac_cv_use_clipboard"
5463 if test "$no_cache" != 1; then
5464 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5465 fi
5466
5467 if test "$wxUSE_CLIPBOARD" = yes; then
5468 echo "$ac_t""yes" 1>&6
5469 else
5470 echo "$ac_t""no" 1>&6
5471 fi
5472
5473
5474 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
5475echo "configure:5476: checking for --enable-dnd" >&5
5476 no_cache=0
5477 # Check whether --enable-dnd or --disable-dnd was given.
5478if test "${enable_dnd+set}" = set; then
5479 enableval="$enable_dnd"
5480
5481 if test "$enableval" = yes; then
5482 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5483 else
5484 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5485 fi
5486
5487else
5488
5489 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5490 if test "x$LINE" != x ; then
5491 eval "DEFAULT_$LINE"
5492 else
5493 no_cache=1
5494 fi
5495
5496 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5497
5498fi
5499
5500
5501 eval "$ac_cv_use_dnd"
5502 if test "$no_cache" != 1; then
5503 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5504 fi
5505
5506 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5507 echo "$ac_t""yes" 1>&6
5508 else
5509 echo "$ac_t""no" 1>&6
5510 fi
5511
5512
5513 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
5514echo "configure:5515: checking for --enable-metafile" >&5
5515 no_cache=0
5516 # Check whether --enable-metafile or --disable-metafile was given.
5517if test "${enable_metafile+set}" = set; then
5518 enableval="$enable_metafile"
5519
5520 if test "$enableval" = yes; then
5521 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5522 else
5523 ac_cv_use_metafile='wxUSE_METAFILE=no'
5524 fi
5525
5526else
5527
5528 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5529 if test "x$LINE" != x ; then
5530 eval "DEFAULT_$LINE"
5531 else
5532 no_cache=1
5533 fi
5534
5535 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5536
5537fi
5538
5539
5540 eval "$ac_cv_use_metafile"
5541 if test "$no_cache" != 1; then
5542 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5543 fi
5544
5545 if test "$wxUSE_METAFILE" = yes; then
5546 echo "$ac_t""yes" 1>&6
5547 else
5548 echo "$ac_t""no" 1>&6
5549 fi
5550
5551
5552
5553 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5554echo "configure:5555: checking for --enable-treelayout" >&5
5555 no_cache=0
5556 # Check whether --enable-treelayout or --disable-treelayout was given.
5557if test "${enable_treelayout+set}" = set; then
5558 enableval="$enable_treelayout"
5559
5560 if test "$enableval" = yes; then
5561 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5562 else
5563 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5564 fi
5565
5566else
5567
5568 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5569 if test "x$LINE" != x ; then
5570 eval "DEFAULT_$LINE"
5571 else
5572 no_cache=1
5573 fi
5574
5575 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5576
5577fi
5578
5579
5580 eval "$ac_cv_use_treelayout"
5581 if test "$no_cache" != 1; then
5582 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5583 fi
5584
5585 if test "$wxUSE_TREELAYOUT" = yes; then
5586 echo "$ac_t""yes" 1>&6
5587 else
5588 echo "$ac_t""no" 1>&6
5589 fi
5590
5591
5592
5593
5594 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5595echo "configure:5596: checking for --enable-controls" >&5
5596 no_cache=0
5597 # Check whether --enable-controls or --disable-controls was given.
5598if test "${enable_controls+set}" = set; then
5599 enableval="$enable_controls"
5600
5601 if test "$enableval" = yes; then
5602 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5603 else
5604 ac_cv_use_controls='wxUSE_CONTROLS=no'
5605 fi
5606
5607else
5608
5609 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5610 if test "x$LINE" != x ; then
5611 eval "DEFAULT_$LINE"
5612 else
5613 no_cache=1
5614 fi
5615
5616 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5617
5618fi
5619
5620
5621 eval "$ac_cv_use_controls"
5622 if test "$no_cache" != 1; then
5623 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5624 fi
5625
5626 if test "$wxUSE_CONTROLS" = yes; then
5627 echo "$ac_t""yes" 1>&6
5628 else
5629 echo "$ac_t""no" 1>&6
5630 fi
5631
5632
5633if test "$wxUSE_CONTROLS" = "yes"; then
5634 DEFAULT_wxUSE_ACCEL=yes
5635 DEFAULT_wxUSE_BMPBUTTON=yes
5636 DEFAULT_wxUSE_BUTTON=yes
5637 DEFAULT_wxUSE_CALCTRL=no
5638 DEFAULT_wxUSE_CARET=yes
5639 DEFAULT_wxUSE_COMBOBOX=yes
5640 DEFAULT_wxUSE_CHECKBOX=yes
5641 DEFAULT_wxUSE_CHECKLISTBOX=yes
5642 DEFAULT_wxUSE_CHOICE=yes
5643 DEFAULT_wxUSE_GAUGE=yes
5644 DEFAULT_wxUSE_GRID=yes
5645 DEFAULT_wxUSE_NEW_GRID=yes
5646 DEFAULT_wxUSE_IMAGLIST=yes
5647 DEFAULT_wxUSE_LISTBOX=yes
5648 DEFAULT_wxUSE_LISTCTRL=yes
5649 DEFAULT_wxUSE_NOTEBOOK=yes
5650 DEFAULT_wxUSE_PROPSHEET=yes
5651 DEFAULT_wxUSE_RADIOBOX=yes
5652 DEFAULT_wxUSE_RADIOBTN=yes
5653 DEFAULT_wxUSE_SASH=yes
5654 DEFAULT_wxUSE_SCROLLBAR=yes
5655 DEFAULT_wxUSE_SLIDER=yes
5656 DEFAULT_wxUSE_SPINBTN=yes
5657 DEFAULT_wxUSE_SPINCTRL=yes
5658 DEFAULT_wxUSE_SPLITTER=yes
5659 DEFAULT_wxUSE_STATBMP=yes
5660 DEFAULT_wxUSE_STATBOX=yes
5661 DEFAULT_wxUSE_STATLINE=yes
5662 DEFAULT_wxUSE_STATUSBAR=yes
5663 DEFAULT_wxUSE_TAB_DIALOG=yes
5664 DEFAULT_wxUSE_TOGGLEBTN=yes
5665 DEFAULT_wxUSE_TOOLBAR=yes
5666 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5667 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5668 DEFAULT_wxUSE_TOOLTIPS=yes
5669 DEFAULT_wxUSE_TREECTRL=yes
5670 DEFAULT_wxUSE_POPUPWIN=yes
5671 DEFAULT_wxUSE_TIPWINDOW=yes
5672elif test "$wxUSE_CONTROLS" = "no"; then
5673 DEFAULT_wxUSE_ACCEL=no
5674 DEFAULT_wxUSE_BMPBUTTON=no
5675 DEFAULT_wxUSE_BUTTON=no
5676 DEFAULT_wxUSE_CALCTRL=no
5677 DEFAULT_wxUSE_CARET=no
5678 DEFAULT_wxUSE_COMBOBOX=no
5679 DEFAULT_wxUSE_CHECKBOX=no
5680 DEFAULT_wxUSE_CHECKLISTBOX=no
5681 DEFAULT_wxUSE_CHOICE=no
5682 DEFAULT_wxUSE_GAUGE=no
5683 DEFAULT_wxUSE_GRID=no
5684 DEFAULT_wxUSE_NEW_GRID=no
5685 DEFAULT_wxUSE_IMAGLIST=no
5686 DEFAULT_wxUSE_LISTBOX=no
5687 DEFAULT_wxUSE_LISTCTRL=no
5688 DEFAULT_wxUSE_NOTEBOOK=no
5689 DEFAULT_wxUSE_PROPSHEET=no
5690 DEFAULT_wxUSE_RADIOBOX=no
5691 DEFAULT_wxUSE_RADIOBTN=no
5692 DEFAULT_wxUSE_SASH=no
5693 DEFAULT_wxUSE_SCROLLBAR=no
5694 DEFAULT_wxUSE_SLIDER=no
5695 DEFAULT_wxUSE_SPINBTN=no
5696 DEFAULT_wxUSE_SPINCTRL=no
5697 DEFAULT_wxUSE_SPLITTER=no
5698 DEFAULT_wxUSE_STATBMP=no
5699 DEFAULT_wxUSE_STATBOX=no
5700 DEFAULT_wxUSE_STATLINE=no
5701 DEFAULT_wxUSE_STATUSBAR=no
5702 DEFAULT_wxUSE_TAB_DIALOG=no
5703 DEFAULT_wxUSE_TOGGLEBTN=no
5704 DEFAULT_wxUSE_TOOLBAR=no
5705 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5706 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5707 DEFAULT_wxUSE_TOOLTIPS=no
5708 DEFAULT_wxUSE_TREECTRL=no
5709 DEFAULT_wxUSE_POPUPWIN=no
5710 DEFAULT_wxUSE_TIPWINDOW=no
5711fi
5712
5713
5714 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5715echo "configure:5716: checking for --enable-accel" >&5
5716 no_cache=0
5717 # Check whether --enable-accel or --disable-accel was given.
5718if test "${enable_accel+set}" = set; then
5719 enableval="$enable_accel"
5720
5721 if test "$enableval" = yes; then
5722 ac_cv_use_accel='wxUSE_ACCEL=yes'
5723 else
5724 ac_cv_use_accel='wxUSE_ACCEL=no'
5725 fi
5726
5727else
5728
5729 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5730 if test "x$LINE" != x ; then
5731 eval "DEFAULT_$LINE"
5732 else
5733 no_cache=1
5734 fi
5735
5736 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5737
5738fi
5739
5740
5741 eval "$ac_cv_use_accel"
5742 if test "$no_cache" != 1; then
5743 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5744 fi
5745
5746 if test "$wxUSE_ACCEL" = yes; then
5747 echo "$ac_t""yes" 1>&6
5748 else
5749 echo "$ac_t""no" 1>&6
5750 fi
5751
5752
5753 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5754echo "configure:5755: checking for --enable-button" >&5
5755 no_cache=0
5756 # Check whether --enable-button or --disable-button was given.
5757if test "${enable_button+set}" = set; then
5758 enableval="$enable_button"
5759
5760 if test "$enableval" = yes; then
5761 ac_cv_use_button='wxUSE_BUTTON=yes'
5762 else
5763 ac_cv_use_button='wxUSE_BUTTON=no'
5764 fi
5765
5766else
5767
5768 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5769 if test "x$LINE" != x ; then
5770 eval "DEFAULT_$LINE"
5771 else
5772 no_cache=1
5773 fi
5774
5775 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5776
5777fi
5778
5779
5780 eval "$ac_cv_use_button"
5781 if test "$no_cache" != 1; then
5782 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5783 fi
5784
5785 if test "$wxUSE_BUTTON" = yes; then
5786 echo "$ac_t""yes" 1>&6
5787 else
5788 echo "$ac_t""no" 1>&6
5789 fi
5790
5791
5792 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5793echo "configure:5794: checking for --enable-bmpbutton" >&5
5794 no_cache=0
5795 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5796if test "${enable_bmpbutton+set}" = set; then
5797 enableval="$enable_bmpbutton"
5798
5799 if test "$enableval" = yes; then
5800 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5801 else
5802 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5803 fi
5804
5805else
5806
5807 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5808 if test "x$LINE" != x ; then
5809 eval "DEFAULT_$LINE"
5810 else
5811 no_cache=1
5812 fi
5813
5814 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5815
5816fi
5817
5818
5819 eval "$ac_cv_use_bmpbutton"
5820 if test "$no_cache" != 1; then
5821 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5822 fi
5823
5824 if test "$wxUSE_BMPBUTTON" = yes; then
5825 echo "$ac_t""yes" 1>&6
5826 else
5827 echo "$ac_t""no" 1>&6
5828 fi
5829
5830
5831 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5832echo "configure:5833: checking for --enable-calendar" >&5
5833 no_cache=0
5834 # Check whether --enable-calendar or --disable-calendar was given.
5835if test "${enable_calendar+set}" = set; then
5836 enableval="$enable_calendar"
5837
5838 if test "$enableval" = yes; then
5839 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5840 else
5841 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5842 fi
5843
5844else
5845
5846 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5847 if test "x$LINE" != x ; then
5848 eval "DEFAULT_$LINE"
5849 else
5850 no_cache=1
5851 fi
5852
5853 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5854
5855fi
5856
5857
5858 eval "$ac_cv_use_calendar"
5859 if test "$no_cache" != 1; then
5860 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5861 fi
5862
5863 if test "$wxUSE_CALCTRL" = yes; then
5864 echo "$ac_t""yes" 1>&6
5865 else
5866 echo "$ac_t""no" 1>&6
5867 fi
5868
5869
5870 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5871echo "configure:5872: checking for --enable-caret" >&5
5872 no_cache=0
5873 # Check whether --enable-caret or --disable-caret was given.
5874if test "${enable_caret+set}" = set; then
5875 enableval="$enable_caret"
5876
5877 if test "$enableval" = yes; then
5878 ac_cv_use_caret='wxUSE_CARET=yes'
5879 else
5880 ac_cv_use_caret='wxUSE_CARET=no'
5881 fi
5882
5883else
5884
5885 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5886 if test "x$LINE" != x ; then
5887 eval "DEFAULT_$LINE"
5888 else
5889 no_cache=1
5890 fi
5891
5892 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5893
5894fi
5895
5896
5897 eval "$ac_cv_use_caret"
5898 if test "$no_cache" != 1; then
5899 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5900 fi
5901
5902 if test "$wxUSE_CARET" = yes; then
5903 echo "$ac_t""yes" 1>&6
5904 else
5905 echo "$ac_t""no" 1>&6
5906 fi
5907
5908
5909 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5910echo "configure:5911: checking for --enable-checkbox" >&5
5911 no_cache=0
5912 # Check whether --enable-checkbox or --disable-checkbox was given.
5913if test "${enable_checkbox+set}" = set; then
5914 enableval="$enable_checkbox"
5915
5916 if test "$enableval" = yes; then
5917 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5918 else
5919 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5920 fi
5921
5922else
5923
5924 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5925 if test "x$LINE" != x ; then
5926 eval "DEFAULT_$LINE"
5927 else
5928 no_cache=1
5929 fi
5930
5931 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5932
5933fi
5934
5935
5936 eval "$ac_cv_use_checkbox"
5937 if test "$no_cache" != 1; then
5938 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5939 fi
5940
5941 if test "$wxUSE_CHECKBOX" = yes; then
5942 echo "$ac_t""yes" 1>&6
5943 else
5944 echo "$ac_t""no" 1>&6
5945 fi
5946
5947
5948 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5949echo "configure:5950: checking for --enable-checklst" >&5
5950 no_cache=0
5951 # Check whether --enable-checklst or --disable-checklst was given.
5952if test "${enable_checklst+set}" = set; then
5953 enableval="$enable_checklst"
5954
5955 if test "$enableval" = yes; then
5956 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5957 else
5958 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5959 fi
5960
5961else
5962
5963 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5964 if test "x$LINE" != x ; then
5965 eval "DEFAULT_$LINE"
5966 else
5967 no_cache=1
5968 fi
5969
5970 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5971
5972fi
5973
5974
5975 eval "$ac_cv_use_checklst"
5976 if test "$no_cache" != 1; then
5977 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5978 fi
5979
5980 if test "$wxUSE_CHECKLST" = yes; then
5981 echo "$ac_t""yes" 1>&6
5982 else
5983 echo "$ac_t""no" 1>&6
5984 fi
5985
5986
5987 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5988echo "configure:5989: checking for --enable-choice" >&5
5989 no_cache=0
5990 # Check whether --enable-choice or --disable-choice was given.
5991if test "${enable_choice+set}" = set; then
5992 enableval="$enable_choice"
5993
5994 if test "$enableval" = yes; then
5995 ac_cv_use_choice='wxUSE_CHOICE=yes'
5996 else
5997 ac_cv_use_choice='wxUSE_CHOICE=no'
5998 fi
5999
6000else
6001
6002 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6003 if test "x$LINE" != x ; then
6004 eval "DEFAULT_$LINE"
6005 else
6006 no_cache=1
6007 fi
6008
6009 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6010
6011fi
6012
6013
6014 eval "$ac_cv_use_choice"
6015 if test "$no_cache" != 1; then
6016 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6017 fi
6018
6019 if test "$wxUSE_CHOICE" = yes; then
6020 echo "$ac_t""yes" 1>&6
6021 else
6022 echo "$ac_t""no" 1>&6
6023 fi
6024
6025
6026 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
6027echo "configure:6028: checking for --enable-combobox" >&5
6028 no_cache=0
6029 # Check whether --enable-combobox or --disable-combobox was given.
6030if test "${enable_combobox+set}" = set; then
6031 enableval="$enable_combobox"
6032
6033 if test "$enableval" = yes; then
6034 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6035 else
6036 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6037 fi
6038
6039else
6040
6041 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6042 if test "x$LINE" != x ; then
6043 eval "DEFAULT_$LINE"
6044 else
6045 no_cache=1
6046 fi
6047
6048 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6049
6050fi
6051
6052
6053 eval "$ac_cv_use_combobox"
6054 if test "$no_cache" != 1; then
6055 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6056 fi
6057
6058 if test "$wxUSE_COMBOBOX" = yes; then
6059 echo "$ac_t""yes" 1>&6
6060 else
6061 echo "$ac_t""no" 1>&6
6062 fi
6063
6064
6065 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
6066echo "configure:6067: checking for --enable-gauge" >&5
6067 no_cache=0
6068 # Check whether --enable-gauge or --disable-gauge was given.
6069if test "${enable_gauge+set}" = set; then
6070 enableval="$enable_gauge"
6071
6072 if test "$enableval" = yes; then
6073 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6074 else
6075 ac_cv_use_gauge='wxUSE_GAUGE=no'
6076 fi
6077
6078else
6079
6080 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6081 if test "x$LINE" != x ; then
6082 eval "DEFAULT_$LINE"
6083 else
6084 no_cache=1
6085 fi
6086
6087 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6088
6089fi
6090
6091
6092 eval "$ac_cv_use_gauge"
6093 if test "$no_cache" != 1; then
6094 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6095 fi
6096
6097 if test "$wxUSE_GAUGE" = yes; then
6098 echo "$ac_t""yes" 1>&6
6099 else
6100 echo "$ac_t""no" 1>&6
6101 fi
6102
6103
6104 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
6105echo "configure:6106: checking for --enable-grid" >&5
6106 no_cache=0
6107 # Check whether --enable-grid or --disable-grid was given.
6108if test "${enable_grid+set}" = set; then
6109 enableval="$enable_grid"
6110
6111 if test "$enableval" = yes; then
6112 ac_cv_use_grid='wxUSE_GRID=yes'
6113 else
6114 ac_cv_use_grid='wxUSE_GRID=no'
6115 fi
6116
6117else
6118
6119 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6120 if test "x$LINE" != x ; then
6121 eval "DEFAULT_$LINE"
6122 else
6123 no_cache=1
6124 fi
6125
6126 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6127
6128fi
6129
6130
6131 eval "$ac_cv_use_grid"
6132 if test "$no_cache" != 1; then
6133 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6134 fi
6135
6136 if test "$wxUSE_GRID" = yes; then
6137 echo "$ac_t""yes" 1>&6
6138 else
6139 echo "$ac_t""no" 1>&6
6140 fi
6141
6142
6143 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
6144echo "configure:6145: checking for --enable-newgrid" >&5
6145 no_cache=0
6146 # Check whether --enable-newgrid or --disable-newgrid was given.
6147if test "${enable_newgrid+set}" = set; then
6148 enableval="$enable_newgrid"
6149
6150 if test "$enableval" = yes; then
6151 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6152 else
6153 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6154 fi
6155
6156else
6157
6158 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6159 if test "x$LINE" != x ; then
6160 eval "DEFAULT_$LINE"
6161 else
6162 no_cache=1
6163 fi
6164
6165 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6166
6167fi
6168
6169
6170 eval "$ac_cv_use_newgrid"
6171 if test "$no_cache" != 1; then
6172 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6173 fi
6174
6175 if test "$wxUSE_NEW_GRID" = yes; then
6176 echo "$ac_t""yes" 1>&6
6177 else
6178 echo "$ac_t""no" 1>&6
6179 fi
6180
6181
6182 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
6183echo "configure:6184: checking for --enable-imaglist" >&5
6184 no_cache=0
6185 # Check whether --enable-imaglist or --disable-imaglist was given.
6186if test "${enable_imaglist+set}" = set; then
6187 enableval="$enable_imaglist"
6188
6189 if test "$enableval" = yes; then
6190 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6191 else
6192 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6193 fi
6194
6195else
6196
6197 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6198 if test "x$LINE" != x ; then
6199 eval "DEFAULT_$LINE"
6200 else
6201 no_cache=1
6202 fi
6203
6204 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6205
6206fi
6207
6208
6209 eval "$ac_cv_use_imaglist"
6210 if test "$no_cache" != 1; then
6211 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6212 fi
6213
6214 if test "$wxUSE_IMAGLIST" = yes; then
6215 echo "$ac_t""yes" 1>&6
6216 else
6217 echo "$ac_t""no" 1>&6
6218 fi
6219
6220
6221 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
6222echo "configure:6223: checking for --enable-listbox" >&5
6223 no_cache=0
6224 # Check whether --enable-listbox or --disable-listbox was given.
6225if test "${enable_listbox+set}" = set; then
6226 enableval="$enable_listbox"
6227
6228 if test "$enableval" = yes; then
6229 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6230 else
6231 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6232 fi
6233
6234else
6235
6236 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6237 if test "x$LINE" != x ; then
6238 eval "DEFAULT_$LINE"
6239 else
6240 no_cache=1
6241 fi
6242
6243 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6244
6245fi
6246
6247
6248 eval "$ac_cv_use_listbox"
6249 if test "$no_cache" != 1; then
6250 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6251 fi
6252
6253 if test "$wxUSE_LISTBOX" = yes; then
6254 echo "$ac_t""yes" 1>&6
6255 else
6256 echo "$ac_t""no" 1>&6
6257 fi
6258
6259
6260 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
6261echo "configure:6262: checking for --enable-listctrl" >&5
6262 no_cache=0
6263 # Check whether --enable-listctrl or --disable-listctrl was given.
6264if test "${enable_listctrl+set}" = set; then
6265 enableval="$enable_listctrl"
6266
6267 if test "$enableval" = yes; then
6268 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6269 else
6270 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6271 fi
6272
6273else
6274
6275 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6276 if test "x$LINE" != x ; then
6277 eval "DEFAULT_$LINE"
6278 else
6279 no_cache=1
6280 fi
6281
6282 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6283
6284fi
6285
6286
6287 eval "$ac_cv_use_listctrl"
6288 if test "$no_cache" != 1; then
6289 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6290 fi
6291
6292 if test "$wxUSE_LISTCTRL" = yes; then
6293 echo "$ac_t""yes" 1>&6
6294 else
6295 echo "$ac_t""no" 1>&6
6296 fi
6297
6298
6299 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
6300echo "configure:6301: checking for --enable-notebook" >&5
6301 no_cache=0
6302 # Check whether --enable-notebook or --disable-notebook was given.
6303if test "${enable_notebook+set}" = set; then
6304 enableval="$enable_notebook"
6305
6306 if test "$enableval" = yes; then
6307 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6308 else
6309 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6310 fi
6311
6312else
6313
6314 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6315 if test "x$LINE" != x ; then
6316 eval "DEFAULT_$LINE"
6317 else
6318 no_cache=1
6319 fi
6320
6321 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6322
6323fi
6324
6325
6326 eval "$ac_cv_use_notebook"
6327 if test "$no_cache" != 1; then
6328 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6329 fi
6330
6331 if test "$wxUSE_NOTEBOOK" = yes; then
6332 echo "$ac_t""yes" 1>&6
6333 else
6334 echo "$ac_t""no" 1>&6
6335 fi
6336
6337
6338 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
6339echo "configure:6340: checking for --enable-propsheet" >&5
6340 no_cache=0
6341 # Check whether --enable-propsheet or --disable-propsheet was given.
6342if test "${enable_propsheet+set}" = set; then
6343 enableval="$enable_propsheet"
6344
6345 if test "$enableval" = yes; then
6346 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6347 else
6348 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6349 fi
6350
6351else
6352
6353 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6354 if test "x$LINE" != x ; then
6355 eval "DEFAULT_$LINE"
6356 else
6357 no_cache=1
6358 fi
6359
6360 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6361
6362fi
6363
6364
6365 eval "$ac_cv_use_propsheet"
6366 if test "$no_cache" != 1; then
6367 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6368 fi
6369
6370 if test "$wxUSE_PROPSHEET" = yes; then
6371 echo "$ac_t""yes" 1>&6
6372 else
6373 echo "$ac_t""no" 1>&6
6374 fi
6375
6376
6377 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
6378echo "configure:6379: checking for --enable-radiobox" >&5
6379 no_cache=0
6380 # Check whether --enable-radiobox or --disable-radiobox was given.
6381if test "${enable_radiobox+set}" = set; then
6382 enableval="$enable_radiobox"
6383
6384 if test "$enableval" = yes; then
6385 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6386 else
6387 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6388 fi
6389
6390else
6391
6392 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6393 if test "x$LINE" != x ; then
6394 eval "DEFAULT_$LINE"
6395 else
6396 no_cache=1
6397 fi
6398
6399 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6400
6401fi
6402
6403
6404 eval "$ac_cv_use_radiobox"
6405 if test "$no_cache" != 1; then
6406 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6407 fi
6408
6409 if test "$wxUSE_RADIOBOX" = yes; then
6410 echo "$ac_t""yes" 1>&6
6411 else
6412 echo "$ac_t""no" 1>&6
6413 fi
6414
6415
6416 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
6417echo "configure:6418: checking for --enable-radiobtn" >&5
6418 no_cache=0
6419 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6420if test "${enable_radiobtn+set}" = set; then
6421 enableval="$enable_radiobtn"
6422
6423 if test "$enableval" = yes; then
6424 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6425 else
6426 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6427 fi
6428
6429else
6430
6431 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6432 if test "x$LINE" != x ; then
6433 eval "DEFAULT_$LINE"
6434 else
6435 no_cache=1
6436 fi
6437
6438 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6439
6440fi
6441
6442
6443 eval "$ac_cv_use_radiobtn"
6444 if test "$no_cache" != 1; then
6445 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6446 fi
6447
6448 if test "$wxUSE_RADIOBTN" = yes; then
6449 echo "$ac_t""yes" 1>&6
6450 else
6451 echo "$ac_t""no" 1>&6
6452 fi
6453
6454
6455 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
6456echo "configure:6457: checking for --enable-sash" >&5
6457 no_cache=0
6458 # Check whether --enable-sash or --disable-sash was given.
6459if test "${enable_sash+set}" = set; then
6460 enableval="$enable_sash"
6461
6462 if test "$enableval" = yes; then
6463 ac_cv_use_sash='wxUSE_SASH=yes'
6464 else
6465 ac_cv_use_sash='wxUSE_SASH=no'
6466 fi
6467
6468else
6469
6470 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6471 if test "x$LINE" != x ; then
6472 eval "DEFAULT_$LINE"
6473 else
6474 no_cache=1
6475 fi
6476
6477 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6478
6479fi
6480
6481
6482 eval "$ac_cv_use_sash"
6483 if test "$no_cache" != 1; then
6484 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6485 fi
6486
6487 if test "$wxUSE_SASH" = yes; then
6488 echo "$ac_t""yes" 1>&6
6489 else
6490 echo "$ac_t""no" 1>&6
6491 fi
6492
6493
6494 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
6495echo "configure:6496: checking for --enable-scrollbar" >&5
6496 no_cache=0
6497 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6498if test "${enable_scrollbar+set}" = set; then
6499 enableval="$enable_scrollbar"
6500
6501 if test "$enableval" = yes; then
6502 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6503 else
6504 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6505 fi
6506
6507else
6508
6509 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6510 if test "x$LINE" != x ; then
6511 eval "DEFAULT_$LINE"
6512 else
6513 no_cache=1
6514 fi
6515
6516 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6517
6518fi
6519
6520
6521 eval "$ac_cv_use_scrollbar"
6522 if test "$no_cache" != 1; then
6523 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6524 fi
6525
6526 if test "$wxUSE_SCROLLBAR" = yes; then
6527 echo "$ac_t""yes" 1>&6
6528 else
6529 echo "$ac_t""no" 1>&6
6530 fi
6531
6532
6533 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
6534echo "configure:6535: checking for --enable-slider" >&5
6535 no_cache=0
6536 # Check whether --enable-slider or --disable-slider was given.
6537if test "${enable_slider+set}" = set; then
6538 enableval="$enable_slider"
6539
6540 if test "$enableval" = yes; then
6541 ac_cv_use_slider='wxUSE_SLIDER=yes'
6542 else
6543 ac_cv_use_slider='wxUSE_SLIDER=no'
6544 fi
6545
6546else
6547
6548 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6549 if test "x$LINE" != x ; then
6550 eval "DEFAULT_$LINE"
6551 else
6552 no_cache=1
6553 fi
6554
6555 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6556
6557fi
6558
6559
6560 eval "$ac_cv_use_slider"
6561 if test "$no_cache" != 1; then
6562 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6563 fi
6564
6565 if test "$wxUSE_SLIDER" = yes; then
6566 echo "$ac_t""yes" 1>&6
6567 else
6568 echo "$ac_t""no" 1>&6
6569 fi
6570
6571
6572 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6573echo "configure:6574: checking for --enable-spinbtn" >&5
6574 no_cache=0
6575 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6576if test "${enable_spinbtn+set}" = set; then
6577 enableval="$enable_spinbtn"
6578
6579 if test "$enableval" = yes; then
6580 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6581 else
6582 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6583 fi
6584
6585else
6586
6587 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6588 if test "x$LINE" != x ; then
6589 eval "DEFAULT_$LINE"
6590 else
6591 no_cache=1
6592 fi
6593
6594 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6595
6596fi
6597
6598
6599 eval "$ac_cv_use_spinbtn"
6600 if test "$no_cache" != 1; then
6601 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6602 fi
6603
6604 if test "$wxUSE_SPINBTN" = yes; then
6605 echo "$ac_t""yes" 1>&6
6606 else
6607 echo "$ac_t""no" 1>&6
6608 fi
6609
6610
6611 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6612echo "configure:6613: checking for --enable-spinctrl" >&5
6613 no_cache=0
6614 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6615if test "${enable_spinctrl+set}" = set; then
6616 enableval="$enable_spinctrl"
6617
6618 if test "$enableval" = yes; then
6619 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6620 else
6621 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6622 fi
6623
6624else
6625
6626 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6627 if test "x$LINE" != x ; then
6628 eval "DEFAULT_$LINE"
6629 else
6630 no_cache=1
6631 fi
6632
6633 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6634
6635fi
6636
6637
6638 eval "$ac_cv_use_spinctrl"
6639 if test "$no_cache" != 1; then
6640 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6641 fi
6642
6643 if test "$wxUSE_SPINCTRL" = yes; then
6644 echo "$ac_t""yes" 1>&6
6645 else
6646 echo "$ac_t""no" 1>&6
6647 fi
6648
6649
6650 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6651echo "configure:6652: checking for --enable-splitter" >&5
6652 no_cache=0
6653 # Check whether --enable-splitter or --disable-splitter was given.
6654if test "${enable_splitter+set}" = set; then
6655 enableval="$enable_splitter"
6656
6657 if test "$enableval" = yes; then
6658 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6659 else
6660 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6661 fi
6662
6663else
6664
6665 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6666 if test "x$LINE" != x ; then
6667 eval "DEFAULT_$LINE"
6668 else
6669 no_cache=1
6670 fi
6671
6672 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6673
6674fi
6675
6676
6677 eval "$ac_cv_use_splitter"
6678 if test "$no_cache" != 1; then
6679 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6680 fi
6681
6682 if test "$wxUSE_SPLITTER" = yes; then
6683 echo "$ac_t""yes" 1>&6
6684 else
6685 echo "$ac_t""no" 1>&6
6686 fi
6687
6688
6689 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6690echo "configure:6691: checking for --enable-statbmp" >&5
6691 no_cache=0
6692 # Check whether --enable-statbmp or --disable-statbmp was given.
6693if test "${enable_statbmp+set}" = set; then
6694 enableval="$enable_statbmp"
6695
6696 if test "$enableval" = yes; then
6697 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6698 else
6699 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6700 fi
6701
6702else
6703
6704 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6705 if test "x$LINE" != x ; then
6706 eval "DEFAULT_$LINE"
6707 else
6708 no_cache=1
6709 fi
6710
6711 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6712
6713fi
6714
6715
6716 eval "$ac_cv_use_statbmp"
6717 if test "$no_cache" != 1; then
6718 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6719 fi
6720
6721 if test "$wxUSE_STATBMP" = yes; then
6722 echo "$ac_t""yes" 1>&6
6723 else
6724 echo "$ac_t""no" 1>&6
6725 fi
6726
6727
6728 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6729echo "configure:6730: checking for --enable-statbox" >&5
6730 no_cache=0
6731 # Check whether --enable-statbox or --disable-statbox was given.
6732if test "${enable_statbox+set}" = set; then
6733 enableval="$enable_statbox"
6734
6735 if test "$enableval" = yes; then
6736 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6737 else
6738 ac_cv_use_statbox='wxUSE_STATBOX=no'
6739 fi
6740
6741else
6742
6743 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6744 if test "x$LINE" != x ; then
6745 eval "DEFAULT_$LINE"
6746 else
6747 no_cache=1
6748 fi
6749
6750 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6751
6752fi
6753
6754
6755 eval "$ac_cv_use_statbox"
6756 if test "$no_cache" != 1; then
6757 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6758 fi
6759
6760 if test "$wxUSE_STATBOX" = yes; then
6761 echo "$ac_t""yes" 1>&6
6762 else
6763 echo "$ac_t""no" 1>&6
6764 fi
6765
6766
6767 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6768echo "configure:6769: checking for --enable-statline" >&5
6769 no_cache=0
6770 # Check whether --enable-statline or --disable-statline was given.
6771if test "${enable_statline+set}" = set; then
6772 enableval="$enable_statline"
6773
6774 if test "$enableval" = yes; then
6775 ac_cv_use_statline='wxUSE_STATLINE=yes'
6776 else
6777 ac_cv_use_statline='wxUSE_STATLINE=no'
6778 fi
6779
6780else
6781
6782 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6783 if test "x$LINE" != x ; then
6784 eval "DEFAULT_$LINE"
6785 else
6786 no_cache=1
6787 fi
6788
6789 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6790
6791fi
6792
6793
6794 eval "$ac_cv_use_statline"
6795 if test "$no_cache" != 1; then
6796 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6797 fi
6798
6799 if test "$wxUSE_STATLINE" = yes; then
6800 echo "$ac_t""yes" 1>&6
6801 else
6802 echo "$ac_t""no" 1>&6
6803 fi
6804
6805
6806 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6807echo "configure:6808: checking for --enable-stattext" >&5
6808 no_cache=0
6809 # Check whether --enable-stattext or --disable-stattext was given.
6810if test "${enable_stattext+set}" = set; then
6811 enableval="$enable_stattext"
6812
6813 if test "$enableval" = yes; then
6814 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6815 else
6816 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6817 fi
6818
6819else
6820
6821 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6822 if test "x$LINE" != x ; then
6823 eval "DEFAULT_$LINE"
6824 else
6825 no_cache=1
6826 fi
6827
6828 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6829
6830fi
6831
6832
6833 eval "$ac_cv_use_stattext"
6834 if test "$no_cache" != 1; then
6835 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6836 fi
6837
6838 if test "$wxUSE_STATTEXT" = yes; then
6839 echo "$ac_t""yes" 1>&6
6840 else
6841 echo "$ac_t""no" 1>&6
6842 fi
6843
6844
6845 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6846echo "configure:6847: checking for --enable-statusbar" >&5
6847 no_cache=0
6848 # Check whether --enable-statusbar or --disable-statusbar was given.
6849if test "${enable_statusbar+set}" = set; then
6850 enableval="$enable_statusbar"
6851
6852 if test "$enableval" = yes; then
6853 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6854 else
6855 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6856 fi
6857
6858else
6859
6860 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6861 if test "x$LINE" != x ; then
6862 eval "DEFAULT_$LINE"
6863 else
6864 no_cache=1
6865 fi
6866
6867 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6868
6869fi
6870
6871
6872 eval "$ac_cv_use_statusbar"
6873 if test "$no_cache" != 1; then
6874 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6875 fi
6876
6877 if test "$wxUSE_STATUSBAR" = yes; then
6878 echo "$ac_t""yes" 1>&6
6879 else
6880 echo "$ac_t""no" 1>&6
6881 fi
6882
6883
6884 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6885echo "configure:6886: checking for --enable-tabdialog" >&5
6886 no_cache=0
6887 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6888if test "${enable_tabdialog+set}" = set; then
6889 enableval="$enable_tabdialog"
6890
6891 if test "$enableval" = yes; then
6892 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6893 else
6894 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6895 fi
6896
6897else
6898
6899 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6900 if test "x$LINE" != x ; then
6901 eval "DEFAULT_$LINE"
6902 else
6903 no_cache=1
6904 fi
6905
6906 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6907
6908fi
6909
6910
6911 eval "$ac_cv_use_tabdialog"
6912 if test "$no_cache" != 1; then
6913 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6914 fi
6915
6916 if test "$wxUSE_TABDIALOG" = yes; then
6917 echo "$ac_t""yes" 1>&6
6918 else
6919 echo "$ac_t""no" 1>&6
6920 fi
6921
6922
6923 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6924echo "configure:6925: checking for --enable-textctrl" >&5
6925 no_cache=0
6926 # Check whether --enable-textctrl or --disable-textctrl was given.
6927if test "${enable_textctrl+set}" = set; then
6928 enableval="$enable_textctrl"
6929
6930 if test "$enableval" = yes; then
6931 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6932 else
6933 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6934 fi
6935
6936else
6937
6938 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6939 if test "x$LINE" != x ; then
6940 eval "DEFAULT_$LINE"
6941 else
6942 no_cache=1
6943 fi
6944
6945 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6946
6947fi
6948
6949
6950 eval "$ac_cv_use_textctrl"
6951 if test "$no_cache" != 1; then
6952 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6953 fi
6954
6955 if test "$wxUSE_TEXTCTRL" = yes; then
6956 echo "$ac_t""yes" 1>&6
6957 else
6958 echo "$ac_t""no" 1>&6
6959 fi
6960
6961
6962 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6963echo "configure:6964: checking for --enable-togglebtn" >&5
6964 no_cache=0
6965 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6966if test "${enable_togglebtn+set}" = set; then
6967 enableval="$enable_togglebtn"
6968
6969 if test "$enableval" = yes; then
6970 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6971 else
6972 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6973 fi
6974
6975else
6976
6977 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6978 if test "x$LINE" != x ; then
6979 eval "DEFAULT_$LINE"
6980 else
6981 no_cache=1
6982 fi
6983
6984 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6985
6986fi
6987
6988
6989 eval "$ac_cv_use_togglebtn"
6990 if test "$no_cache" != 1; then
6991 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6992 fi
6993
6994 if test "$wxUSE_TOGGLEBTN" = yes; then
6995 echo "$ac_t""yes" 1>&6
6996 else
6997 echo "$ac_t""no" 1>&6
6998 fi
6999
7000
7001 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
7002echo "configure:7003: checking for --enable-toolbar" >&5
7003 no_cache=0
7004 # Check whether --enable-toolbar or --disable-toolbar was given.
7005if test "${enable_toolbar+set}" = set; then
7006 enableval="$enable_toolbar"
7007
7008 if test "$enableval" = yes; then
7009 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7010 else
7011 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7012 fi
7013
7014else
7015
7016 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7017 if test "x$LINE" != x ; then
7018 eval "DEFAULT_$LINE"
7019 else
7020 no_cache=1
7021 fi
7022
7023 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7024
7025fi
7026
7027
7028 eval "$ac_cv_use_toolbar"
7029 if test "$no_cache" != 1; then
7030 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7031 fi
7032
7033 if test "$wxUSE_TOOLBAR" = yes; then
7034 echo "$ac_t""yes" 1>&6
7035 else
7036 echo "$ac_t""no" 1>&6
7037 fi
7038
7039
7040 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
7041echo "configure:7042: checking for --enable-tbarnative" >&5
7042 no_cache=0
7043 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7044if test "${enable_tbarnative+set}" = set; then
7045 enableval="$enable_tbarnative"
7046
7047 if test "$enableval" = yes; then
7048 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7049 else
7050 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7051 fi
7052
7053else
7054
7055 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7056 if test "x$LINE" != x ; then
7057 eval "DEFAULT_$LINE"
7058 else
7059 no_cache=1
7060 fi
7061
7062 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7063
7064fi
7065
7066
7067 eval "$ac_cv_use_tbarnative"
7068 if test "$no_cache" != 1; then
7069 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7070 fi
7071
7072 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7073 echo "$ac_t""yes" 1>&6
7074 else
7075 echo "$ac_t""no" 1>&6
7076 fi
7077
7078
7079 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
7080echo "configure:7081: checking for --enable-tbarsmpl" >&5
7081 no_cache=0
7082 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7083if test "${enable_tbarsmpl+set}" = set; then
7084 enableval="$enable_tbarsmpl"
7085
7086 if test "$enableval" = yes; then
7087 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7088 else
7089 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7090 fi
7091
7092else
7093
7094 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7095 if test "x$LINE" != x ; then
7096 eval "DEFAULT_$LINE"
7097 else
7098 no_cache=1
7099 fi
7100
7101 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7102
7103fi
7104
7105
7106 eval "$ac_cv_use_tbarsmpl"
7107 if test "$no_cache" != 1; then
7108 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7109 fi
7110
7111 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7112 echo "$ac_t""yes" 1>&6
7113 else
7114 echo "$ac_t""no" 1>&6
7115 fi
7116
7117
7118 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
7119echo "configure:7120: checking for --enable-treectrl" >&5
7120 no_cache=0
7121 # Check whether --enable-treectrl or --disable-treectrl was given.
7122if test "${enable_treectrl+set}" = set; then
7123 enableval="$enable_treectrl"
7124
7125 if test "$enableval" = yes; then
7126 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7127 else
7128 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7129 fi
7130
7131else
7132
7133 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7134 if test "x$LINE" != x ; then
7135 eval "DEFAULT_$LINE"
7136 else
7137 no_cache=1
7138 fi
7139
7140 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7141
7142fi
7143
7144
7145 eval "$ac_cv_use_treectrl"
7146 if test "$no_cache" != 1; then
7147 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7148 fi
7149
7150 if test "$wxUSE_TREECTRL" = yes; then
7151 echo "$ac_t""yes" 1>&6
7152 else
7153 echo "$ac_t""no" 1>&6
7154 fi
7155
7156
7157 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
7158echo "configure:7159: checking for --enable-tipwindow" >&5
7159 no_cache=0
7160 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7161if test "${enable_tipwindow+set}" = set; then
7162 enableval="$enable_tipwindow"
7163
7164 if test "$enableval" = yes; then
7165 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7166 else
7167 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7168 fi
7169
7170else
7171
7172 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7173 if test "x$LINE" != x ; then
7174 eval "DEFAULT_$LINE"
7175 else
7176 no_cache=1
7177 fi
7178
7179 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7180
7181fi
7182
7183
7184 eval "$ac_cv_use_tipwindow"
7185 if test "$no_cache" != 1; then
7186 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7187 fi
7188
7189 if test "$wxUSE_TIPWINDOW" = yes; then
7190 echo "$ac_t""yes" 1>&6
7191 else
7192 echo "$ac_t""no" 1>&6
7193 fi
7194
7195
7196 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
7197echo "configure:7198: checking for --enable-popupwin" >&5
7198 no_cache=0
7199 # Check whether --enable-popupwin or --disable-popupwin was given.
7200if test "${enable_popupwin+set}" = set; then
7201 enableval="$enable_popupwin"
7202
7203 if test "$enableval" = yes; then
7204 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7205 else
7206 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7207 fi
7208
7209else
7210
7211 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7212 if test "x$LINE" != x ; then
7213 eval "DEFAULT_$LINE"
7214 else
7215 no_cache=1
7216 fi
7217
7218 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7219
7220fi
7221
7222
7223 eval "$ac_cv_use_popupwin"
7224 if test "$no_cache" != 1; then
7225 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7226 fi
7227
7228 if test "$wxUSE_POPUPWIN" = yes; then
7229 echo "$ac_t""yes" 1>&6
7230 else
7231 echo "$ac_t""no" 1>&6
7232 fi
7233
7234
7235
7236
7237 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
7238echo "configure:7239: checking for --enable-commondlg" >&5
7239 no_cache=0
7240 # Check whether --enable-commondlg or --disable-commondlg was given.
7241if test "${enable_commondlg+set}" = set; then
7242 enableval="$enable_commondlg"
7243
7244 if test "$enableval" = yes; then
7245 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7246 else
7247 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7248 fi
7249
7250else
7251
7252 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7253 if test "x$LINE" != x ; then
7254 eval "DEFAULT_$LINE"
7255 else
7256 no_cache=1
7257 fi
7258
7259 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7260
7261fi
7262
7263
7264 eval "$ac_cv_use_commondlg"
7265 if test "$no_cache" != 1; then
7266 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7267 fi
7268
7269 if test "$wxUSE_COMMONDLGS" = yes; then
7270 echo "$ac_t""yes" 1>&6
7271 else
7272 echo "$ac_t""no" 1>&6
7273 fi
7274
7275
7276 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
7277echo "configure:7278: checking for --enable-choicedlg" >&5
7278 no_cache=0
7279 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7280if test "${enable_choicedlg+set}" = set; then
7281 enableval="$enable_choicedlg"
7282
7283 if test "$enableval" = yes; then
7284 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7285 else
7286 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7287 fi
7288
7289else
7290
7291 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7292 if test "x$LINE" != x ; then
7293 eval "DEFAULT_$LINE"
7294 else
7295 no_cache=1
7296 fi
7297
7298 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7299
7300fi
7301
7302
7303 eval "$ac_cv_use_choicedlg"
7304 if test "$no_cache" != 1; then
7305 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7306 fi
7307
7308 if test "$wxUSE_CHOICEDLG" = yes; then
7309 echo "$ac_t""yes" 1>&6
7310 else
7311 echo "$ac_t""no" 1>&6
7312 fi
7313
7314
7315 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
7316echo "configure:7317: checking for --enable-coldlg" >&5
7317 no_cache=0
7318 # Check whether --enable-coldlg or --disable-coldlg was given.
7319if test "${enable_coldlg+set}" = set; then
7320 enableval="$enable_coldlg"
7321
7322 if test "$enableval" = yes; then
7323 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7324 else
7325 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7326 fi
7327
7328else
7329
7330 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7331 if test "x$LINE" != x ; then
7332 eval "DEFAULT_$LINE"
7333 else
7334 no_cache=1
7335 fi
7336
7337 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7338
7339fi
7340
7341
7342 eval "$ac_cv_use_coldlg"
7343 if test "$no_cache" != 1; then
7344 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7345 fi
7346
7347 if test "$wxUSE_COLOURDLG" = yes; then
7348 echo "$ac_t""yes" 1>&6
7349 else
7350 echo "$ac_t""no" 1>&6
7351 fi
7352
7353
7354 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
7355echo "configure:7356: checking for --enable-filedlg" >&5
7356 no_cache=0
7357 # Check whether --enable-filedlg or --disable-filedlg was given.
7358if test "${enable_filedlg+set}" = set; then
7359 enableval="$enable_filedlg"
7360
7361 if test "$enableval" = yes; then
7362 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7363 else
7364 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7365 fi
7366
7367else
7368
7369 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7370 if test "x$LINE" != x ; then
7371 eval "DEFAULT_$LINE"
7372 else
7373 no_cache=1
7374 fi
7375
7376 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7377
7378fi
7379
7380
7381 eval "$ac_cv_use_filedlg"
7382 if test "$no_cache" != 1; then
7383 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7384 fi
7385
7386 if test "$wxUSE_FILEDLG" = yes; then
7387 echo "$ac_t""yes" 1>&6
7388 else
7389 echo "$ac_t""no" 1>&6
7390 fi
7391
7392
7393 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
7394echo "configure:7395: checking for --enable-finddlg" >&5
7395 no_cache=0
7396 # Check whether --enable-finddlg or --disable-finddlg was given.
7397if test "${enable_finddlg+set}" = set; then
7398 enableval="$enable_finddlg"
7399
7400 if test "$enableval" = yes; then
7401 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7402 else
7403 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7404 fi
7405
7406else
7407
7408 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7409 if test "x$LINE" != x ; then
7410 eval "DEFAULT_$LINE"
7411 else
7412 no_cache=1
7413 fi
7414
7415 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7416
7417fi
7418
7419
7420 eval "$ac_cv_use_finddlg"
7421 if test "$no_cache" != 1; then
7422 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7423 fi
7424
7425 if test "$wxUSE_FINDREPLDLG" = yes; then
7426 echo "$ac_t""yes" 1>&6
7427 else
7428 echo "$ac_t""no" 1>&6
7429 fi
7430
7431
7432 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
7433echo "configure:7434: checking for --enable-fontdlg" >&5
7434 no_cache=0
7435 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7436if test "${enable_fontdlg+set}" = set; then
7437 enableval="$enable_fontdlg"
7438
7439 if test "$enableval" = yes; then
7440 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7441 else
7442 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7443 fi
7444
7445else
7446
7447 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7448 if test "x$LINE" != x ; then
7449 eval "DEFAULT_$LINE"
7450 else
7451 no_cache=1
7452 fi
7453
7454 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7455
7456fi
7457
7458
7459 eval "$ac_cv_use_fontdlg"
7460 if test "$no_cache" != 1; then
7461 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7462 fi
7463
7464 if test "$wxUSE_FONTDLG" = yes; then
7465 echo "$ac_t""yes" 1>&6
7466 else
7467 echo "$ac_t""no" 1>&6
7468 fi
7469
7470
7471 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
7472echo "configure:7473: checking for --enable-dirdlg" >&5
7473 no_cache=0
7474 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7475if test "${enable_dirdlg+set}" = set; then
7476 enableval="$enable_dirdlg"
7477
7478 if test "$enableval" = yes; then
7479 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7480 else
7481 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7482 fi
7483
7484else
7485
7486 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7487 if test "x$LINE" != x ; then
7488 eval "DEFAULT_$LINE"
7489 else
7490 no_cache=1
7491 fi
7492
7493 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7494
7495fi
7496
7497
7498 eval "$ac_cv_use_dirdlg"
7499 if test "$no_cache" != 1; then
7500 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7501 fi
7502
7503 if test "$wxUSE_DIRDLG" = yes; then
7504 echo "$ac_t""yes" 1>&6
7505 else
7506 echo "$ac_t""no" 1>&6
7507 fi
7508
7509
7510 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
7511echo "configure:7512: checking for --enable-msgdlg" >&5
7512 no_cache=0
7513 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7514if test "${enable_msgdlg+set}" = set; then
7515 enableval="$enable_msgdlg"
7516
7517 if test "$enableval" = yes; then
7518 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7519 else
7520 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7521 fi
7522
7523else
7524
7525 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7526 if test "x$LINE" != x ; then
7527 eval "DEFAULT_$LINE"
7528 else
7529 no_cache=1
7530 fi
7531
7532 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7533
7534fi
7535
7536
7537 eval "$ac_cv_use_msgdlg"
7538 if test "$no_cache" != 1; then
7539 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7540 fi
7541
7542 if test "$wxUSE_MSGDLG" = yes; then
7543 echo "$ac_t""yes" 1>&6
7544 else
7545 echo "$ac_t""no" 1>&6
7546 fi
7547
7548
7549 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
7550echo "configure:7551: checking for --enable-numberdlg" >&5
7551 no_cache=0
7552 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7553if test "${enable_numberdlg+set}" = set; then
7554 enableval="$enable_numberdlg"
7555
7556 if test "$enableval" = yes; then
7557 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7558 else
7559 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7560 fi
7561
7562else
7563
7564 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7565 if test "x$LINE" != x ; then
7566 eval "DEFAULT_$LINE"
7567 else
7568 no_cache=1
7569 fi
7570
7571 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7572
7573fi
7574
7575
7576 eval "$ac_cv_use_numberdlg"
7577 if test "$no_cache" != 1; then
7578 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7579 fi
7580
7581 if test "$wxUSE_NUMBERDLG" = yes; then
7582 echo "$ac_t""yes" 1>&6
7583 else
7584 echo "$ac_t""no" 1>&6
7585 fi
7586
7587
7588 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7589echo "configure:7590: checking for --enable-splash" >&5
7590 no_cache=0
7591 # Check whether --enable-splash or --disable-splash was given.
7592if test "${enable_splash+set}" = set; then
7593 enableval="$enable_splash"
7594
7595 if test "$enableval" = yes; then
7596 ac_cv_use_splash='wxUSE_SPLASH=yes'
7597 else
7598 ac_cv_use_splash='wxUSE_SPLASH=no'
7599 fi
7600
7601else
7602
7603 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7604 if test "x$LINE" != x ; then
7605 eval "DEFAULT_$LINE"
7606 else
7607 no_cache=1
7608 fi
7609
7610 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7611
7612fi
7613
7614
7615 eval "$ac_cv_use_splash"
7616 if test "$no_cache" != 1; then
7617 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7618 fi
7619
7620 if test "$wxUSE_SPLASH" = yes; then
7621 echo "$ac_t""yes" 1>&6
7622 else
7623 echo "$ac_t""no" 1>&6
7624 fi
7625
7626
7627 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7628echo "configure:7629: checking for --enable-textdlg" >&5
7629 no_cache=0
7630 # Check whether --enable-textdlg or --disable-textdlg was given.
7631if test "${enable_textdlg+set}" = set; then
7632 enableval="$enable_textdlg"
7633
7634 if test "$enableval" = yes; then
7635 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7636 else
7637 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7638 fi
7639
7640else
7641
7642 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7643 if test "x$LINE" != x ; then
7644 eval "DEFAULT_$LINE"
7645 else
7646 no_cache=1
7647 fi
7648
7649 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7650
7651fi
7652
7653
7654 eval "$ac_cv_use_textdlg"
7655 if test "$no_cache" != 1; then
7656 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7657 fi
7658
7659 if test "$wxUSE_TEXTDLG" = yes; then
7660 echo "$ac_t""yes" 1>&6
7661 else
7662 echo "$ac_t""no" 1>&6
7663 fi
7664
7665
7666 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7667echo "configure:7668: checking for --enable-tipdlg" >&5
7668 no_cache=0
7669 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7670if test "${enable_tipdlg+set}" = set; then
7671 enableval="$enable_tipdlg"
7672
7673 if test "$enableval" = yes; then
7674 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7675 else
7676 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7677 fi
7678
7679else
7680
7681 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7682 if test "x$LINE" != x ; then
7683 eval "DEFAULT_$LINE"
7684 else
7685 no_cache=1
7686 fi
7687
7688 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7689
7690fi
7691
7692
7693 eval "$ac_cv_use_tipdlg"
7694 if test "$no_cache" != 1; then
7695 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7696 fi
7697
7698 if test "$wxUSE_STARTUP_TIPS" = yes; then
7699 echo "$ac_t""yes" 1>&6
7700 else
7701 echo "$ac_t""no" 1>&6
7702 fi
7703
7704
7705 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7706echo "configure:7707: checking for --enable-progressdlg" >&5
7707 no_cache=0
7708 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7709if test "${enable_progressdlg+set}" = set; then
7710 enableval="$enable_progressdlg"
7711
7712 if test "$enableval" = yes; then
7713 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7714 else
7715 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7716 fi
7717
7718else
7719
7720 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7721 if test "x$LINE" != x ; then
7722 eval "DEFAULT_$LINE"
7723 else
7724 no_cache=1
7725 fi
7726
7727 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7728
7729fi
7730
7731
7732 eval "$ac_cv_use_progressdlg"
7733 if test "$no_cache" != 1; then
7734 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7735 fi
7736
7737 if test "$wxUSE_PROGRESSDLG" = yes; then
7738 echo "$ac_t""yes" 1>&6
7739 else
7740 echo "$ac_t""no" 1>&6
7741 fi
7742
7743
7744 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7745echo "configure:7746: checking for --enable-wizarddlg" >&5
7746 no_cache=0
7747 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7748if test "${enable_wizarddlg+set}" = set; then
7749 enableval="$enable_wizarddlg"
7750
7751 if test "$enableval" = yes; then
7752 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7753 else
7754 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7755 fi
7756
7757else
7758
7759 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7760 if test "x$LINE" != x ; then
7761 eval "DEFAULT_$LINE"
7762 else
7763 no_cache=1
7764 fi
7765
7766 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7767
7768fi
7769
7770
7771 eval "$ac_cv_use_wizarddlg"
7772 if test "$no_cache" != 1; then
7773 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7774 fi
7775
7776 if test "$wxUSE_WIZARDDLG" = yes; then
7777 echo "$ac_t""yes" 1>&6
7778 else
7779 echo "$ac_t""no" 1>&6
7780 fi
7781
7782
7783
7784
7785 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7786echo "configure:7787: checking for --enable-menus" >&5
7787 no_cache=0
7788 # Check whether --enable-menus or --disable-menus was given.
7789if test "${enable_menus+set}" = set; then
7790 enableval="$enable_menus"
7791
7792 if test "$enableval" = yes; then
7793 ac_cv_use_menus='wxUSE_MENUS=yes'
7794 else
7795 ac_cv_use_menus='wxUSE_MENUS=no'
7796 fi
7797
7798else
7799
7800 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7801 if test "x$LINE" != x ; then
7802 eval "DEFAULT_$LINE"
7803 else
7804 no_cache=1
7805 fi
7806
7807 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7808
7809fi
7810
7811
7812 eval "$ac_cv_use_menus"
7813 if test "$no_cache" != 1; then
7814 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7815 fi
7816
7817 if test "$wxUSE_MENUS" = yes; then
7818 echo "$ac_t""yes" 1>&6
7819 else
7820 echo "$ac_t""no" 1>&6
7821 fi
7822
7823
7824 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7825echo "configure:7826: checking for --enable-miniframe" >&5
7826 no_cache=0
7827 # Check whether --enable-miniframe or --disable-miniframe was given.
7828if test "${enable_miniframe+set}" = set; then
7829 enableval="$enable_miniframe"
7830
7831 if test "$enableval" = yes; then
7832 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7833 else
7834 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7835 fi
7836
7837else
7838
7839 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7840 if test "x$LINE" != x ; then
7841 eval "DEFAULT_$LINE"
7842 else
7843 no_cache=1
7844 fi
7845
7846 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7847
7848fi
7849
7850
7851 eval "$ac_cv_use_miniframe"
7852 if test "$no_cache" != 1; then
7853 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7854 fi
7855
7856 if test "$wxUSE_MINIFRAME" = yes; then
7857 echo "$ac_t""yes" 1>&6
7858 else
7859 echo "$ac_t""no" 1>&6
7860 fi
7861
7862
7863 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7864echo "configure:7865: checking for --enable-tooltips" >&5
7865 no_cache=0
7866 # Check whether --enable-tooltips or --disable-tooltips was given.
7867if test "${enable_tooltips+set}" = set; then
7868 enableval="$enable_tooltips"
7869
7870 if test "$enableval" = yes; then
7871 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7872 else
7873 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7874 fi
7875
7876else
7877
7878 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7879 if test "x$LINE" != x ; then
7880 eval "DEFAULT_$LINE"
7881 else
7882 no_cache=1
7883 fi
7884
7885 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7886
7887fi
7888
7889
7890 eval "$ac_cv_use_tooltips"
7891 if test "$no_cache" != 1; then
7892 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7893 fi
7894
7895 if test "$wxUSE_TOOLTIPS" = yes; then
7896 echo "$ac_t""yes" 1>&6
7897 else
7898 echo "$ac_t""no" 1>&6
7899 fi
7900
7901
7902 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7903echo "configure:7904: checking for --enable-splines" >&5
7904 no_cache=0
7905 # Check whether --enable-splines or --disable-splines was given.
7906if test "${enable_splines+set}" = set; then
7907 enableval="$enable_splines"
7908
7909 if test "$enableval" = yes; then
7910 ac_cv_use_splines='wxUSE_SPLINES=yes'
7911 else
7912 ac_cv_use_splines='wxUSE_SPLINES=no'
7913 fi
7914
7915else
7916
7917 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7918 if test "x$LINE" != x ; then
7919 eval "DEFAULT_$LINE"
7920 else
7921 no_cache=1
7922 fi
7923
7924 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7925
7926fi
7927
7928
7929 eval "$ac_cv_use_splines"
7930 if test "$no_cache" != 1; then
7931 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7932 fi
7933
7934 if test "$wxUSE_SPLINES" = yes; then
7935 echo "$ac_t""yes" 1>&6
7936 else
7937 echo "$ac_t""no" 1>&6
7938 fi
7939
7940
7941 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7942echo "configure:7943: checking for --enable-validators" >&5
7943 no_cache=0
7944 # Check whether --enable-validators or --disable-validators was given.
7945if test "${enable_validators+set}" = set; then
7946 enableval="$enable_validators"
7947
7948 if test "$enableval" = yes; then
7949 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7950 else
7951 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7952 fi
7953
7954else
7955
7956 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7957 if test "x$LINE" != x ; then
7958 eval "DEFAULT_$LINE"
7959 else
7960 no_cache=1
7961 fi
7962
7963 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7964
7965fi
7966
7967
7968 eval "$ac_cv_use_validators"
7969 if test "$no_cache" != 1; then
7970 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7971 fi
7972
7973 if test "$wxUSE_VALIDATORS" = yes; then
7974 echo "$ac_t""yes" 1>&6
7975 else
7976 echo "$ac_t""no" 1>&6
7977 fi
7978
7979
7980 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7981echo "configure:7982: checking for --enable-busyinfo" >&5
7982 no_cache=0
7983 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7984if test "${enable_busyinfo+set}" = set; then
7985 enableval="$enable_busyinfo"
7986
7987 if test "$enableval" = yes; then
7988 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7989 else
7990 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7991 fi
7992
7993else
7994
7995 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7996 if test "x$LINE" != x ; then
7997 eval "DEFAULT_$LINE"
7998 else
7999 no_cache=1
8000 fi
8001
8002 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8003
8004fi
8005
8006
8007 eval "$ac_cv_use_busyinfo"
8008 if test "$no_cache" != 1; then
8009 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8010 fi
8011
8012 if test "$wxUSE_BUSYINFO" = yes; then
8013 echo "$ac_t""yes" 1>&6
8014 else
8015 echo "$ac_t""no" 1>&6
8016 fi
8017
8018
8019 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
8020echo "configure:8021: checking for --enable-joystick" >&5
8021 no_cache=0
8022 # Check whether --enable-joystick or --disable-joystick was given.
8023if test "${enable_joystick+set}" = set; then
8024 enableval="$enable_joystick"
8025
8026 if test "$enableval" = yes; then
8027 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8028 else
8029 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8030 fi
8031
8032else
8033
8034 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8035 if test "x$LINE" != x ; then
8036 eval "DEFAULT_$LINE"
8037 else
8038 no_cache=1
8039 fi
8040
8041 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8042
8043fi
8044
8045
8046 eval "$ac_cv_use_joystick"
8047 if test "$no_cache" != 1; then
8048 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8049 fi
8050
8051 if test "$wxUSE_JOYSTICK" = yes; then
8052 echo "$ac_t""yes" 1>&6
8053 else
8054 echo "$ac_t""no" 1>&6
8055 fi
8056
8057
8058 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
8059echo "configure:8060: checking for --enable-metafile" >&5
8060 no_cache=0
8061 # Check whether --enable-metafile or --disable-metafile was given.
8062if test "${enable_metafile+set}" = set; then
8063 enableval="$enable_metafile"
8064
8065 if test "$enableval" = yes; then
8066 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8067 else
8068 ac_cv_use_metafile='wxUSE_METAFILE=no'
8069 fi
8070
8071else
8072
8073 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8074 if test "x$LINE" != x ; then
8075 eval "DEFAULT_$LINE"
8076 else
8077 no_cache=1
8078 fi
8079
8080 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8081
8082fi
8083
8084
8085 eval "$ac_cv_use_metafile"
8086 if test "$no_cache" != 1; then
8087 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8088 fi
8089
8090 if test "$wxUSE_METAFILE" = yes; then
8091 echo "$ac_t""yes" 1>&6
8092 else
8093 echo "$ac_t""no" 1>&6
8094 fi
8095
8096
8097 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
8098echo "configure:8099: checking for --enable-dragimage" >&5
8099 no_cache=0
8100 # Check whether --enable-dragimage or --disable-dragimage was given.
8101if test "${enable_dragimage+set}" = set; then
8102 enableval="$enable_dragimage"
8103
8104 if test "$enableval" = yes; then
8105 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8106 else
8107 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8108 fi
8109
8110else
8111
8112 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8113 if test "x$LINE" != x ; then
8114 eval "DEFAULT_$LINE"
8115 else
8116 no_cache=1
8117 fi
8118
8119 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8120
8121fi
8122
8123
8124 eval "$ac_cv_use_dragimage"
8125 if test "$no_cache" != 1; then
8126 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8127 fi
8128
8129 if test "$wxUSE_DRAGIMAGE" = yes; then
8130 echo "$ac_t""yes" 1>&6
8131 else
8132 echo "$ac_t""no" 1>&6
8133 fi
8134
8135
8136
8137
8138 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
8139echo "configure:8140: checking for --enable-palette" >&5
8140 no_cache=0
8141 # Check whether --enable-palette or --disable-palette was given.
8142if test "${enable_palette+set}" = set; then
8143 enableval="$enable_palette"
8144
8145 if test "$enableval" = yes; then
8146 ac_cv_use_palette='wxUSE_PALETTE=yes'
8147 else
8148 ac_cv_use_palette='wxUSE_PALETTE=no'
8149 fi
8150
8151else
8152
8153 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8154 if test "x$LINE" != x ; then
8155 eval "DEFAULT_$LINE"
8156 else
8157 no_cache=1
8158 fi
8159
8160 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8161
8162fi
8163
8164
8165 eval "$ac_cv_use_palette"
8166 if test "$no_cache" != 1; then
8167 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8168 fi
8169
8170 if test "$wxUSE_PALETTE" = yes; then
8171 echo "$ac_t""yes" 1>&6
8172 else
8173 echo "$ac_t""no" 1>&6
8174 fi
8175
8176
8177 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
8178echo "configure:8179: checking for --enable-image" >&5
8179 no_cache=0
8180 # Check whether --enable-image or --disable-image was given.
8181if test "${enable_image+set}" = set; then
8182 enableval="$enable_image"
8183
8184 if test "$enableval" = yes; then
8185 ac_cv_use_image='wxUSE_IMAGE=yes'
8186 else
8187 ac_cv_use_image='wxUSE_IMAGE=no'
8188 fi
8189
8190else
8191
8192 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8193 if test "x$LINE" != x ; then
8194 eval "DEFAULT_$LINE"
8195 else
8196 no_cache=1
8197 fi
8198
8199 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8200
8201fi
8202
8203
8204 eval "$ac_cv_use_image"
8205 if test "$no_cache" != 1; then
8206 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8207 fi
8208
8209 if test "$wxUSE_IMAGE" = yes; then
8210 echo "$ac_t""yes" 1>&6
8211 else
8212 echo "$ac_t""no" 1>&6
8213 fi
8214
8215
8216 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
8217echo "configure:8218: checking for --enable-gif" >&5
8218 no_cache=0
8219 # Check whether --enable-gif or --disable-gif was given.
8220if test "${enable_gif+set}" = set; then
8221 enableval="$enable_gif"
8222
8223 if test "$enableval" = yes; then
8224 ac_cv_use_gif='wxUSE_GIF=yes'
8225 else
8226 ac_cv_use_gif='wxUSE_GIF=no'
8227 fi
8228
8229else
8230
8231 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8232 if test "x$LINE" != x ; then
8233 eval "DEFAULT_$LINE"
8234 else
8235 no_cache=1
8236 fi
8237
8238 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8239
8240fi
8241
8242
8243 eval "$ac_cv_use_gif"
8244 if test "$no_cache" != 1; then
8245 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8246 fi
8247
8248 if test "$wxUSE_GIF" = yes; then
8249 echo "$ac_t""yes" 1>&6
8250 else
8251 echo "$ac_t""no" 1>&6
8252 fi
8253
8254
8255 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
8256echo "configure:8257: checking for --enable-pcx" >&5
8257 no_cache=0
8258 # Check whether --enable-pcx or --disable-pcx was given.
8259if test "${enable_pcx+set}" = set; then
8260 enableval="$enable_pcx"
8261
8262 if test "$enableval" = yes; then
8263 ac_cv_use_pcx='wxUSE_PCX=yes'
8264 else
8265 ac_cv_use_pcx='wxUSE_PCX=no'
8266 fi
8267
8268else
8269
8270 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8271 if test "x$LINE" != x ; then
8272 eval "DEFAULT_$LINE"
8273 else
8274 no_cache=1
8275 fi
8276
8277 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8278
8279fi
8280
8281
8282 eval "$ac_cv_use_pcx"
8283 if test "$no_cache" != 1; then
8284 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8285 fi
8286
8287 if test "$wxUSE_PCX" = yes; then
8288 echo "$ac_t""yes" 1>&6
8289 else
8290 echo "$ac_t""no" 1>&6
8291 fi
8292
8293
8294 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
8295echo "configure:8296: checking for --enable-pnm" >&5
8296 no_cache=0
8297 # Check whether --enable-pnm or --disable-pnm was given.
8298if test "${enable_pnm+set}" = set; then
8299 enableval="$enable_pnm"
8300
8301 if test "$enableval" = yes; then
8302 ac_cv_use_pnm='wxUSE_PNM=yes'
8303 else
8304 ac_cv_use_pnm='wxUSE_PNM=no'
8305 fi
8306
8307else
8308
8309 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8310 if test "x$LINE" != x ; then
8311 eval "DEFAULT_$LINE"
8312 else
8313 no_cache=1
8314 fi
8315
8316 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8317
8318fi
8319
8320
8321 eval "$ac_cv_use_pnm"
8322 if test "$no_cache" != 1; then
8323 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8324 fi
8325
8326 if test "$wxUSE_PNM" = yes; then
8327 echo "$ac_t""yes" 1>&6
8328 else
8329 echo "$ac_t""no" 1>&6
8330 fi
8331
8332
8333 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
8334echo "configure:8335: checking for --enable-xpm" >&5
8335 no_cache=0
8336 # Check whether --enable-xpm or --disable-xpm was given.
8337if test "${enable_xpm+set}" = set; then
8338 enableval="$enable_xpm"
8339
8340 if test "$enableval" = yes; then
8341 ac_cv_use_xpm='wxUSE_XPM=yes'
8342 else
8343 ac_cv_use_xpm='wxUSE_XPM=no'
8344 fi
8345
8346else
8347
8348 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8349 if test "x$LINE" != x ; then
8350 eval "DEFAULT_$LINE"
8351 else
8352 no_cache=1
8353 fi
8354
8355 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8356
8357fi
8358
8359
8360 eval "$ac_cv_use_xpm"
8361 if test "$no_cache" != 1; then
8362 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8363 fi
8364
8365 if test "$wxUSE_XPM" = yes; then
8366 echo "$ac_t""yes" 1>&6
8367 else
8368 echo "$ac_t""no" 1>&6
8369 fi
8370
8371
8372 echo $ac_n "checking for --enable-icocur""... $ac_c" 1>&6
8373echo "configure:8374: checking for --enable-icocur" >&5
8374 no_cache=0
8375 # Check whether --enable-icocur or --disable-icocur was given.
8376if test "${enable_icocur+set}" = set; then
8377 enableval="$enable_icocur"
8378
8379 if test "$enableval" = yes; then
8380 ac_cv_use_icocur='wxUSE_ICO_CUR=yes'
8381 else
8382 ac_cv_use_icocur='wxUSE_ICO_CUR=no'
8383 fi
8384
8385else
8386
8387 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8388 if test "x$LINE" != x ; then
8389 eval "DEFAULT_$LINE"
8390 else
8391 no_cache=1
8392 fi
8393
8394 ac_cv_use_icocur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8395
8396fi
8397
8398
8399 eval "$ac_cv_use_icocur"
8400 if test "$no_cache" != 1; then
8401 echo $ac_cv_use_icocur >> ${wx_arg_cache_file}.tmp
8402 fi
8403
8404 if test "$wxUSE_ICO_CUR" = yes; then
8405 echo "$ac_t""yes" 1>&6
8406 else
8407 echo "$ac_t""no" 1>&6
8408 fi
8409
8410
8411fi
8412
8413
8414 echo "saving argument cache $wx_arg_cache_file"
8415 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8416
8417
8418
8419echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8420echo "configure:8421: checking for toolkit" >&5
8421
8422if test "$wxUSE_GUI" = "yes"; then
8423
8424 if test "$USE_BEOS" = 1; then
8425 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8426 fi
8427
8428 if test "$TOOLKIT_GIVEN" = 1; then
8429 for toolkit in `echo $ALL_TOOLKITS`; do
8430 var=wxUSE_$toolkit
8431 eval "value=\$${var}"
8432 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8433 done
8434 else
8435 for toolkit in `echo $ALL_TOOLKITS`; do
8436 if test "$has_toolkit_in_cache" != 1; then
8437 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8438 else
8439 var=DEFAULT_wxUSE_$toolkit
8440 fi
8441 eval "wxUSE_$toolkit=\$${var}"
8442 done
8443 fi
8444
8445 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
8446 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0}`
8447
8448 case "${host}" in
8449 *-pc-os2_emx | *-pc-os2-emx )
8450 # PATH_IFS is autodetected by OS/2's configure (usually ';')
8451 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8452 LEX_STEM="lexyy"
8453 ;;
8454 *)
8455 PATH_IFS=':'
8456 LEX_STEM="lex.yy"
8457 ;;
8458 esac
8459
8460 case "$NUM_TOOLKITS" in
8461 1)
8462 ;;
8463 0)
8464 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8465 ;;
8466 *)
8467 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8468 esac
8469
8470 for toolkit in `echo $ALL_TOOLKITS`; do
8471 var=wxUSE_$toolkit
8472 eval "value=\$${var}"
8473 if test "x$value" != x; then
8474 cache_var=CACHE_$toolkit
8475 eval "cache=\$${cache_var}"
8476 if test "$cache" = 1; then
8477 echo "$var=$value" >> ${wx_arg_cache_file}
8478 fi
8479 if test "$value" = 1; then
8480 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8481 echo "$ac_t""$toolkit_echo" 1>&6
8482 fi
8483 fi
8484 done
8485else
8486 PATH_IFS=':'
8487 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8488fi
8489
8490
8491cat > confcache <<\EOF
8492# This file is a shell script that caches the results of configure
8493# tests run on this system so they can be shared between configure
8494# scripts and configure runs. It is not useful on other systems.
8495# If it contains results you don't want to keep, you may remove or edit it.
8496#
8497# By default, configure uses ./config.cache as the cache file,
8498# creating it if it does not exist already. You can give configure
8499# the --cache-file=FILE option to use a different cache file; that is
8500# what configure does when it calls configure scripts in
8501# subdirectories, so they share the cache.
8502# Giving --cache-file=/dev/null disables caching, for debugging configure.
8503# config.status only pays attention to the cache file if you give it the
8504# --recheck option to rerun configure.
8505#
8506EOF
8507# The following way of writing the cache mishandles newlines in values,
8508# but we know of no workaround that is simple, portable, and efficient.
8509# So, don't put newlines in cache variables' values.
8510# Ultrix sh set writes to stderr and can't be redirected directly,
8511# and sets the high bit in the cache file unless we assign to the vars.
8512(set) 2>&1 |
8513 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8514 *ac_space=\ *)
8515 # `set' does not quote correctly, so add quotes (double-quote substitution
8516 # turns \\\\ into \\, and sed turns \\ into \).
8517 sed -n \
8518 -e "s/'/'\\\\''/g" \
8519 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8520 ;;
8521 *)
8522 # `set' quotes correctly as required by POSIX, so do not add quotes.
8523 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8524 ;;
8525 esac >> confcache
8526if cmp -s $cache_file confcache; then
8527 :
8528else
8529 if test -w $cache_file; then
8530 echo "updating cache $cache_file"
8531 cat confcache > $cache_file
8532 else
8533 echo "not updating unwritable cache $cache_file"
8534 fi
8535fi
8536rm -f confcache
8537
8538
8539if test "$build" != "$host" ; then
8540 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then
8541 CC=$host_alias-gcc
8542 CXX=$host_alias-c++
8543 AR=$host_alias-ar
8544 RANLIB=$host_alias-ranlib
8545 DLLTOOL=$host_alias-dlltool
8546 RESCOMP=$host_alias-windres
8547 LD=$host_alias-ld
8548 NM=$host_alias-nm
8549 STRIP=$host_alias-strip
8550 else
8551 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8552 fi
8553fi
8554
8555# Extract the first word of "gcc", so it can be a program name with args.
8556set dummy gcc; ac_word=$2
8557echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8558echo "configure:8559: checking for $ac_word" >&5
8559if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8560 echo $ac_n "(cached) $ac_c" 1>&6
8561else
8562 if test -n "$CC"; then
8563 ac_cv_prog_CC="$CC" # Let the user override the test.
8564else
8565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8566 ac_dummy="$PATH"
8567 for ac_dir in $ac_dummy; do
8568 test -z "$ac_dir" && ac_dir=.
8569 if test -f $ac_dir/$ac_word; then
8570 ac_cv_prog_CC="gcc"
8571 break
8572 fi
8573 done
8574 IFS="$ac_save_ifs"
8575fi
8576fi
8577CC="$ac_cv_prog_CC"
8578if test -n "$CC"; then
8579 echo "$ac_t""$CC" 1>&6
8580else
8581 echo "$ac_t""no" 1>&6
8582fi
8583
8584if test -z "$CC"; then
8585 # Extract the first word of "cc", so it can be a program name with args.
8586set dummy cc; ac_word=$2
8587echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8588echo "configure:8589: checking for $ac_word" >&5
8589if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8590 echo $ac_n "(cached) $ac_c" 1>&6
8591else
8592 if test -n "$CC"; then
8593 ac_cv_prog_CC="$CC" # Let the user override the test.
8594else
8595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8596 ac_prog_rejected=no
8597 ac_dummy="$PATH"
8598 for ac_dir in $ac_dummy; do
8599 test -z "$ac_dir" && ac_dir=.
8600 if test -f $ac_dir/$ac_word; then
8601 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8602 ac_prog_rejected=yes
8603 continue
8604 fi
8605 ac_cv_prog_CC="cc"
8606 break
8607 fi
8608 done
8609 IFS="$ac_save_ifs"
8610if test $ac_prog_rejected = yes; then
8611 # We found a bogon in the path, so make sure we never use it.
8612 set dummy $ac_cv_prog_CC
8613 shift
8614 if test $# -gt 0; then
8615 # We chose a different compiler from the bogus one.
8616 # However, it has the same basename, so the bogon will be chosen
8617 # first if we set CC to just the basename; use the full file name.
8618 shift
8619 set dummy "$ac_dir/$ac_word" "$@"
8620 shift
8621 ac_cv_prog_CC="$@"
8622 fi
8623fi
8624fi
8625fi
8626CC="$ac_cv_prog_CC"
8627if test -n "$CC"; then
8628 echo "$ac_t""$CC" 1>&6
8629else
8630 echo "$ac_t""no" 1>&6
8631fi
8632
8633 if test -z "$CC"; then
8634 case "`uname -s`" in
8635 *win32* | *WIN32*)
8636 # Extract the first word of "cl", so it can be a program name with args.
8637set dummy cl; ac_word=$2
8638echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8639echo "configure:8640: checking for $ac_word" >&5
8640if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8641 echo $ac_n "(cached) $ac_c" 1>&6
8642else
8643 if test -n "$CC"; then
8644 ac_cv_prog_CC="$CC" # Let the user override the test.
8645else
8646 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8647 ac_dummy="$PATH"
8648 for ac_dir in $ac_dummy; do
8649 test -z "$ac_dir" && ac_dir=.
8650 if test -f $ac_dir/$ac_word; then
8651 ac_cv_prog_CC="cl"
8652 break
8653 fi
8654 done
8655 IFS="$ac_save_ifs"
8656fi
8657fi
8658CC="$ac_cv_prog_CC"
8659if test -n "$CC"; then
8660 echo "$ac_t""$CC" 1>&6
8661else
8662 echo "$ac_t""no" 1>&6
8663fi
8664 ;;
8665 esac
8666 fi
8667 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8668fi
8669
8670echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8671echo "configure:8672: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8672
8673ac_ext=c
8674# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8675ac_cpp='$CPP $CPPFLAGS'
8676ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8677ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8678cross_compiling=$ac_cv_prog_cc_cross
8679
8680cat > conftest.$ac_ext << EOF
8681
8682#line 8683 "configure"
8683#include "confdefs.h"
8684
8685main(){return(0);}
8686EOF
8687if { (eval echo configure:8688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8688 ac_cv_prog_cc_works=yes
8689 # If we can't run a trivial program, we are probably using a cross compiler.
8690 if (./conftest; exit) 2>/dev/null; then
8691 ac_cv_prog_cc_cross=no
8692 else
8693 ac_cv_prog_cc_cross=yes
8694 fi
8695else
8696 echo "configure: failed program was:" >&5
8697 cat conftest.$ac_ext >&5
8698 ac_cv_prog_cc_works=no
8699fi
8700rm -fr conftest*
8701ac_ext=c
8702# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8703ac_cpp='$CPP $CPPFLAGS'
8704ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8705ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8706cross_compiling=$ac_cv_prog_cc_cross
8707
8708echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8709if test $ac_cv_prog_cc_works = no; then
8710 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8711fi
8712echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8713echo "configure:8714: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8714echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8715cross_compiling=$ac_cv_prog_cc_cross
8716
8717echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8718echo "configure:8719: checking whether we are using GNU C" >&5
8719if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8720 echo $ac_n "(cached) $ac_c" 1>&6
8721else
8722 cat > conftest.c <<EOF
8723#ifdef __GNUC__
8724 yes;
8725#endif
8726EOF
8727if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8728 ac_cv_prog_gcc=yes
8729else
8730 ac_cv_prog_gcc=no
8731fi
8732fi
8733
8734echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8735
8736if test $ac_cv_prog_gcc = yes; then
8737 GCC=yes
8738else
8739 GCC=
8740fi
8741
8742ac_test_CFLAGS="${CFLAGS+set}"
8743ac_save_CFLAGS="$CFLAGS"
8744CFLAGS=
8745echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8746echo "configure:8747: checking whether ${CC-cc} accepts -g" >&5
8747if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8748 echo $ac_n "(cached) $ac_c" 1>&6
8749else
8750 echo 'void f(){}' > conftest.c
8751if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8752 ac_cv_prog_cc_g=yes
8753else
8754 ac_cv_prog_cc_g=no
8755fi
8756rm -f conftest*
8757
8758fi
8759
8760echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8761if test "$ac_test_CFLAGS" = set; then
8762 CFLAGS="$ac_save_CFLAGS"
8763elif test $ac_cv_prog_cc_g = yes; then
8764 if test "$GCC" = yes; then
8765 CFLAGS="-g -O2"
8766 else
8767 CFLAGS="-g"
8768 fi
8769else
8770 if test "$GCC" = yes; then
8771 CFLAGS="-O2"
8772 else
8773 CFLAGS=
8774 fi
8775fi
8776
8777
8778CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8779
8780echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8781echo "configure:8782: checking how to run the C preprocessor" >&5
8782# On Suns, sometimes $CPP names a directory.
8783if test -n "$CPP" && test -d "$CPP"; then
8784 CPP=
8785fi
8786if test -z "$CPP"; then
8787if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8788 echo $ac_n "(cached) $ac_c" 1>&6
8789else
8790 # This must be in double quotes, not single quotes, because CPP may get
8791 # substituted into the Makefile and "${CC-cc}" will confuse make.
8792 CPP="${CC-cc} -E"
8793 # On the NeXT, cc -E runs the code through the compiler's parser,
8794 # not just through cpp.
8795 cat > conftest.$ac_ext <<EOF
8796#line 8797 "configure"
8797#include "confdefs.h"
8798#include <assert.h>
8799Syntax Error
8800EOF
8801ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8802{ (eval echo configure:8803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8803ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8804if test -z "$ac_err"; then
8805 :
8806else
8807 echo "$ac_err" >&5
8808 echo "configure: failed program was:" >&5
8809 cat conftest.$ac_ext >&5
8810 rm -rf conftest*
8811 CPP="${CC-cc} -E -traditional-cpp"
8812 cat > conftest.$ac_ext <<EOF
8813#line 8814 "configure"
8814#include "confdefs.h"
8815#include <assert.h>
8816Syntax Error
8817EOF
8818ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8819{ (eval echo configure:8820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8820ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8821if test -z "$ac_err"; then
8822 :
8823else
8824 echo "$ac_err" >&5
8825 echo "configure: failed program was:" >&5
8826 cat conftest.$ac_ext >&5
8827 rm -rf conftest*
8828 CPP="${CC-cc} -nologo -E"
8829 cat > conftest.$ac_ext <<EOF
8830#line 8831 "configure"
8831#include "confdefs.h"
8832#include <assert.h>
8833Syntax Error
8834EOF
8835ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8836{ (eval echo configure:8837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8837ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8838if test -z "$ac_err"; then
8839 :
8840else
8841 echo "$ac_err" >&5
8842 echo "configure: failed program was:" >&5
8843 cat conftest.$ac_ext >&5
8844 rm -rf conftest*
8845 CPP=/lib/cpp
8846fi
8847rm -f conftest*
8848fi
8849rm -f conftest*
8850fi
8851rm -f conftest*
8852 ac_cv_prog_CPP="$CPP"
8853fi
8854 CPP="$ac_cv_prog_CPP"
8855else
8856 ac_cv_prog_CPP="$CPP"
8857fi
8858echo "$ac_t""$CPP" 1>&6
8859
8860if test $ac_cv_prog_gcc = yes; then
8861 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8862echo "configure:8863: checking whether ${CC-cc} needs -traditional" >&5
8863if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8864 echo $ac_n "(cached) $ac_c" 1>&6
8865else
8866 ac_pattern="Autoconf.*'x'"
8867 cat > conftest.$ac_ext <<EOF
8868#line 8869 "configure"
8869#include "confdefs.h"
8870#include <sgtty.h>
8871Autoconf TIOCGETP
8872EOF
8873if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8874 egrep "$ac_pattern" >/dev/null 2>&1; then
8875 rm -rf conftest*
8876 ac_cv_prog_gcc_traditional=yes
8877else
8878 rm -rf conftest*
8879 ac_cv_prog_gcc_traditional=no
8880fi
8881rm -f conftest*
8882
8883
8884 if test $ac_cv_prog_gcc_traditional = no; then
8885 cat > conftest.$ac_ext <<EOF
8886#line 8887 "configure"
8887#include "confdefs.h"
8888#include <termio.h>
8889Autoconf TCGETA
8890EOF
8891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8892 egrep "$ac_pattern" >/dev/null 2>&1; then
8893 rm -rf conftest*
8894 ac_cv_prog_gcc_traditional=yes
8895fi
8896rm -f conftest*
8897
8898 fi
8899fi
8900
8901echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8902 if test $ac_cv_prog_gcc_traditional = yes; then
8903 CC="$CC -traditional"
8904 fi
8905fi
8906
8907
8908
8909ac_ext=C
8910# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8911ac_cpp='$CXXCPP $CPPFLAGS'
8912ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8913ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8914cross_compiling=$ac_cv_prog_cxx_cross
8915
8916
8917for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8918do
8919# Extract the first word of "$ac_prog", so it can be a program name with args.
8920set dummy $ac_prog; ac_word=$2
8921echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8922echo "configure:8923: checking for $ac_word" >&5
8923if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8924 echo $ac_n "(cached) $ac_c" 1>&6
8925else
8926 if test -n "$CXX"; then
8927 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8928else
8929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8930 ac_dummy="$PATH"
8931 for ac_dir in $ac_dummy; do
8932 test -z "$ac_dir" && ac_dir=.
8933 if test -f $ac_dir/$ac_word; then
8934 ac_cv_prog_CXX="$ac_prog"
8935 break
8936 fi
8937 done
8938 IFS="$ac_save_ifs"
8939fi
8940fi
8941CXX="$ac_cv_prog_CXX"
8942if test -n "$CXX"; then
8943 echo "$ac_t""$CXX" 1>&6
8944else
8945 echo "$ac_t""no" 1>&6
8946fi
8947
8948test -n "$CXX" && break
8949done
8950test -n "$CXX" || CXX="gcc"
8951
8952
8953echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8954echo "configure:8955: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8955
8956ac_ext=C
8957# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8958ac_cpp='$CXXCPP $CPPFLAGS'
8959ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8960ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8961cross_compiling=$ac_cv_prog_cxx_cross
8962
8963cat > conftest.$ac_ext << EOF
8964
8965#line 8966 "configure"
8966#include "confdefs.h"
8967
8968int main(){return(0);}
8969EOF
8970if { (eval echo configure:8971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8971 ac_cv_prog_cxx_works=yes
8972 # If we can't run a trivial program, we are probably using a cross compiler.
8973 if (./conftest; exit) 2>/dev/null; then
8974 ac_cv_prog_cxx_cross=no
8975 else
8976 ac_cv_prog_cxx_cross=yes
8977 fi
8978else
8979 echo "configure: failed program was:" >&5
8980 cat conftest.$ac_ext >&5
8981 ac_cv_prog_cxx_works=no
8982fi
8983rm -fr conftest*
8984ac_ext=C
8985# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8986ac_cpp='$CXXCPP $CPPFLAGS'
8987ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8988ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8989cross_compiling=$ac_cv_prog_cxx_cross
8990
8991echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8992if test $ac_cv_prog_cxx_works = no; then
8993 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8994fi
8995echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8996echo "configure:8997: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
8997echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8998cross_compiling=$ac_cv_prog_cxx_cross
8999
9000echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9001echo "configure:9002: checking whether we are using GNU C++" >&5
9002if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9003 echo $ac_n "(cached) $ac_c" 1>&6
9004else
9005 cat > conftest.C <<EOF
9006#ifdef __GNUC__
9007 yes;
9008#endif
9009EOF
9010if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9011 ac_cv_prog_gxx=yes
9012else
9013 ac_cv_prog_gxx=no
9014fi
9015fi
9016
9017echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9018
9019if test $ac_cv_prog_gxx = yes; then
9020 GXX=yes
9021else
9022 GXX=
9023fi
9024
9025ac_test_CXXFLAGS="${CXXFLAGS+set}"
9026ac_save_CXXFLAGS="$CXXFLAGS"
9027CXXFLAGS=
9028echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9029echo "configure:9030: checking whether ${CXX-g++} accepts -g" >&5
9030if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9031 echo $ac_n "(cached) $ac_c" 1>&6
9032else
9033 echo 'void f(){}' > conftest.cc
9034if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9035 ac_cv_prog_cxx_g=yes
9036else
9037 ac_cv_prog_cxx_g=no
9038fi
9039rm -f conftest*
9040
9041fi
9042
9043echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9044if test "$ac_test_CXXFLAGS" = set; then
9045 CXXFLAGS="$ac_save_CXXFLAGS"
9046elif test $ac_cv_prog_cxx_g = yes; then
9047 if test "$GXX" = yes; then
9048 CXXFLAGS="-g -O2"
9049 else
9050 CXXFLAGS="-g"
9051 fi
9052else
9053 if test "$GXX" = yes; then
9054 CXXFLAGS="-O2"
9055 else
9056 CXXFLAGS=
9057 fi
9058fi
9059
9060
9061CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
9062
9063ac_ext=c
9064# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9065ac_cpp='$CPP $CPPFLAGS'
9066ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9067ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9068cross_compiling=$ac_cv_prog_cc_cross
9069
9070
9071# Extract the first word of "ranlib", so it can be a program name with args.
9072set dummy ranlib; ac_word=$2
9073echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9074echo "configure:9075: checking for $ac_word" >&5
9075if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9076 echo $ac_n "(cached) $ac_c" 1>&6
9077else
9078 if test -n "$RANLIB"; then
9079 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9080else
9081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9082 ac_dummy="$PATH"
9083 for ac_dir in $ac_dummy; do
9084 test -z "$ac_dir" && ac_dir=.
9085 if test -f $ac_dir/$ac_word; then
9086 ac_cv_prog_RANLIB="ranlib"
9087 break
9088 fi
9089 done
9090 IFS="$ac_save_ifs"
9091 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9092fi
9093fi
9094RANLIB="$ac_cv_prog_RANLIB"
9095if test -n "$RANLIB"; then
9096 echo "$ac_t""$RANLIB" 1>&6
9097else
9098 echo "$ac_t""no" 1>&6
9099fi
9100
9101
9102# Extract the first word of "ar", so it can be a program name with args.
9103set dummy ar; ac_word=$2
9104echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9105echo "configure:9106: checking for $ac_word" >&5
9106if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9107 echo $ac_n "(cached) $ac_c" 1>&6
9108else
9109 if test -n "$AR"; then
9110 ac_cv_prog_AR="$AR" # Let the user override the test.
9111else
9112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9113 ac_dummy="$PATH"
9114 for ac_dir in $ac_dummy; do
9115 test -z "$ac_dir" && ac_dir=.
9116 if test -f $ac_dir/$ac_word; then
9117 ac_cv_prog_AR="ar"
9118 break
9119 fi
9120 done
9121 IFS="$ac_save_ifs"
9122 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9123fi
9124fi
9125AR="$ac_cv_prog_AR"
9126if test -n "$AR"; then
9127 echo "$ac_t""$AR" 1>&6
9128else
9129 echo "$ac_t""no" 1>&6
9130fi
9131
9132
9133# Find a good install program. We prefer a C program (faster),
9134# so one script is as good as another. But avoid the broken or
9135# incompatible versions:
9136# SysV /etc/install, /usr/sbin/install
9137# SunOS /usr/etc/install
9138# IRIX /sbin/install
9139# AIX /bin/install
9140# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9141# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9142# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9143# ./install, which can be erroneously created by make from ./install.sh.
9144echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9145echo "configure:9146: checking for a BSD compatible install" >&5
9146if test -z "$INSTALL"; then
9147if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9148 echo $ac_n "(cached) $ac_c" 1>&6
9149else
9150 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9151 for ac_dir in $PATH; do
9152 # Account for people who put trailing slashes in PATH elements.
9153 case "$ac_dir/" in
9154 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9155 *)
9156 # OSF1 and SCO ODT 3.0 have their own names for install.
9157 # Don't use installbsd from OSF since it installs stuff as root
9158 # by default.
9159 for ac_prog in ginstall scoinst install; do
9160 if test -f $ac_dir/$ac_prog; then
9161 if test $ac_prog = install &&
9162 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9163 # AIX install. It has an incompatible calling convention.
9164 :
9165 else
9166 ac_cv_path_install="$ac_dir/$ac_prog -c"
9167 break 2
9168 fi
9169 fi
9170 done
9171 ;;
9172 esac
9173 done
9174 IFS="$ac_save_IFS"
9175
9176fi
9177 if test "${ac_cv_path_install+set}" = set; then
9178 INSTALL="$ac_cv_path_install"
9179 else
9180 # As a last resort, use the slow shell script. We don't cache a
9181 # path for INSTALL within a source directory, because that will
9182 # break other packages using the cache if that directory is
9183 # removed, or if the path is relative.
9184 INSTALL="$ac_install_sh"
9185 fi
9186fi
9187echo "$ac_t""$INSTALL" 1>&6
9188
9189# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9190# It thinks the first close brace ends the variable substitution.
9191test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9192
9193test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9194
9195test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9196
9197case "${host}" in
9198
9199 powerpc-*-darwin* )
9200 INSTALL_PROGRAM="cp -fp"
9201 INSTALL_DATA="cp -fp"
9202 ;;
9203 *)
9204 ;;
9205esac
9206
9207# Extract the first word of "strip", so it can be a program name with args.
9208set dummy strip; ac_word=$2
9209echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9210echo "configure:9211: checking for $ac_word" >&5
9211if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9212 echo $ac_n "(cached) $ac_c" 1>&6
9213else
9214 if test -n "$STRIP"; then
9215 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9216else
9217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9218 ac_dummy="$PATH"
9219 for ac_dir in $ac_dummy; do
9220 test -z "$ac_dir" && ac_dir=.
9221 if test -f $ac_dir/$ac_word; then
9222 ac_cv_prog_STRIP="strip"
9223 break
9224 fi
9225 done
9226 IFS="$ac_save_ifs"
9227 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9228fi
9229fi
9230STRIP="$ac_cv_prog_STRIP"
9231if test -n "$STRIP"; then
9232 echo "$ac_t""$STRIP" 1>&6
9233else
9234 echo "$ac_t""no" 1>&6
9235fi
9236
9237
9238echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
9239echo "configure:9240: checking make for VPATH support" >&5
9240cat - << EOF > confMake
9241check : file
9242 cp \$? \$@
9243 cp \$? final_file
9244EOF
9245
9246if test ! -d sub ; then
9247 mkdir sub
9248fi
9249echo dummy > sub/file
9250${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9251RESULT=$?
9252rm -f sub/file check final_file confMake
9253rmdir sub
9254if test "$RESULT" = 0; then
9255 echo "$ac_t""yes" 1>&6
9256else
9257 echo "$ac_t""no" 1>&6
9258 { echo "configure: error:
9259You need a make-utility that is able to use the variable
9260VPATH correctly.
9261If your version of make does not support VPATH correctly,
9262please install GNU-make (possibly as gmake), and start
9263configure with the following command:
9264export MAKE=gmake; ./configure for sh-type shells
9265setenv MAKE gmake; ./configure for csh-type shells
9266Also please do remember to use gmake in this case every time
9267you are trying to compile.
9268" 1>&2; exit 1; }
9269fi
9270
9271for ac_prog in 'bison -y' byacc
9272do
9273# Extract the first word of "$ac_prog", so it can be a program name with args.
9274set dummy $ac_prog; ac_word=$2
9275echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9276echo "configure:9277: checking for $ac_word" >&5
9277if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9278 echo $ac_n "(cached) $ac_c" 1>&6
9279else
9280 if test -n "$YACC"; then
9281 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9282else
9283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9284 ac_dummy="$PATH"
9285 for ac_dir in $ac_dummy; do
9286 test -z "$ac_dir" && ac_dir=.
9287 if test -f $ac_dir/$ac_word; then
9288 ac_cv_prog_YACC="$ac_prog"
9289 break
9290 fi
9291 done
9292 IFS="$ac_save_ifs"
9293fi
9294fi
9295YACC="$ac_cv_prog_YACC"
9296if test -n "$YACC"; then
9297 echo "$ac_t""$YACC" 1>&6
9298else
9299 echo "$ac_t""no" 1>&6
9300fi
9301
9302test -n "$YACC" && break
9303done
9304test -n "$YACC" || YACC="yacc"
9305
9306
9307# Extract the first word of "flex", so it can be a program name with args.
9308set dummy flex; ac_word=$2
9309echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9310echo "configure:9311: checking for $ac_word" >&5
9311if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9312 echo $ac_n "(cached) $ac_c" 1>&6
9313else
9314 if test -n "$LEX"; then
9315 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9316else
9317 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9318 ac_dummy="$PATH"
9319 for ac_dir in $ac_dummy; do
9320 test -z "$ac_dir" && ac_dir=.
9321 if test -f $ac_dir/$ac_word; then
9322 ac_cv_prog_LEX="flex"
9323 break
9324 fi
9325 done
9326 IFS="$ac_save_ifs"
9327 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9328fi
9329fi
9330LEX="$ac_cv_prog_LEX"
9331if test -n "$LEX"; then
9332 echo "$ac_t""$LEX" 1>&6
9333else
9334 echo "$ac_t""no" 1>&6
9335fi
9336
9337if test -z "$LEXLIB"
9338then
9339 case "$LEX" in
9340 flex*) ac_lib=fl ;;
9341 *) ac_lib=l ;;
9342 esac
9343 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9344echo "configure:9345: checking for yywrap in -l$ac_lib" >&5
9345ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9346if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9347 echo $ac_n "(cached) $ac_c" 1>&6
9348else
9349 ac_save_LIBS="$LIBS"
9350LIBS="-l$ac_lib $LIBS"
9351cat > conftest.$ac_ext <<EOF
9352#line 9353 "configure"
9353#include "confdefs.h"
9354/* Override any gcc2 internal prototype to avoid an error. */
9355/* We use char because int might match the return type of a gcc2
9356 builtin and then its argument prototype would still apply. */
9357char yywrap();
9358
9359int main() {
9360yywrap()
9361; return 0; }
9362EOF
9363if { (eval echo configure:9364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9364 rm -rf conftest*
9365 eval "ac_cv_lib_$ac_lib_var=yes"
9366else
9367 echo "configure: failed program was:" >&5
9368 cat conftest.$ac_ext >&5
9369 rm -rf conftest*
9370 eval "ac_cv_lib_$ac_lib_var=no"
9371fi
9372rm -f conftest*
9373LIBS="$ac_save_LIBS"
9374
9375fi
9376if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9377 echo "$ac_t""yes" 1>&6
9378 LEXLIB="-l$ac_lib"
9379else
9380 echo "$ac_t""no" 1>&6
9381fi
9382
9383fi
9384
9385
9386echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9387echo "configure:9388: checking whether ln -s works" >&5
9388if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9389 echo $ac_n "(cached) $ac_c" 1>&6
9390else
9391 rm -f conftestdata
9392if ln -s X conftestdata 2>/dev/null
9393then
9394 rm -f conftestdata
9395 ac_cv_prog_LN_S="ln -s"
9396else
9397 ac_cv_prog_LN_S=ln
9398fi
9399fi
9400LN_S="$ac_cv_prog_LN_S"
9401if test "$ac_cv_prog_LN_S" = "ln -s"; then
9402 echo "$ac_t""yes" 1>&6
9403else
9404 echo "$ac_t""no" 1>&6
9405fi
9406
9407
9408
9409SEARCH_INCLUDE="\
9410 /usr/local/include \
9411 \
9412 /usr/Motif-1.2/include \
9413 /usr/Motif-2.1/include \
9414 \
9415 /usr/include/Motif1.2 \
9416 /opt/xpm/include/X11 \
9417 /opt/GBxpm/include/ \
9418 /opt/GBxpm/X11/include/ \
9419 \
9420 /usr/Motif1.2/include \
9421 /usr/dt/include \
9422 /usr/openwin/include \
9423 \
9424 /usr/include/Xm \
9425 \
9426 /usr/X11R6/include \
9427 /usr/X11R6.4/include \
9428 /usr/X11R5/include \
9429 /usr/X11R4/include \
9430 \
9431 /usr/include/X11R6 \
9432 /usr/include/X11R5 \
9433 /usr/include/X11R4 \
9434 \
9435 /usr/local/X11R6/include \
9436 /usr/local/X11R5/include \
9437 /usr/local/X11R4/include \
9438 \
9439 /usr/local/include/X11R6 \
9440 /usr/local/include/X11R5 \
9441 /usr/local/include/X11R4 \
9442 \
9443 /usr/X11/include \
9444 /usr/include/X11 \
9445 /usr/local/X11/include \
9446 /usr/local/include/X11 \
9447 \
9448 /usr/X386/include \
9449 /usr/x386/include \
9450 /usr/XFree86/include/X11 \
9451 \
9452 X:/XFree86/include \
9453 X:/XFree86/include/X11 \
9454 \
9455 /usr/include/gtk \
9456 /usr/local/include/gtk \
9457 /usr/include/glib \
9458 /usr/local/include/glib \
9459 \
9460 /usr/include/qt \
9461 /usr/local/include/qt \
9462 \
9463 /usr/include/windows \
9464 /usr/include/wine \
9465 /usr/local/include/wine \
9466 \
9467 /usr/unsupported/include \
9468 /usr/athena/include \
9469 /usr/local/x11r5/include \
9470 /usr/lpp/Xamples/include \
9471 \
9472 /usr/openwin/share/include \
9473 \
9474 /usr/include"
9475
9476SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
9477
9478
9479cat > confcache <<\EOF
9480# This file is a shell script that caches the results of configure
9481# tests run on this system so they can be shared between configure
9482# scripts and configure runs. It is not useful on other systems.
9483# If it contains results you don't want to keep, you may remove or edit it.
9484#
9485# By default, configure uses ./config.cache as the cache file,
9486# creating it if it does not exist already. You can give configure
9487# the --cache-file=FILE option to use a different cache file; that is
9488# what configure does when it calls configure scripts in
9489# subdirectories, so they share the cache.
9490# Giving --cache-file=/dev/null disables caching, for debugging configure.
9491# config.status only pays attention to the cache file if you give it the
9492# --recheck option to rerun configure.
9493#
9494EOF
9495# The following way of writing the cache mishandles newlines in values,
9496# but we know of no workaround that is simple, portable, and efficient.
9497# So, don't put newlines in cache variables' values.
9498# Ultrix sh set writes to stderr and can't be redirected directly,
9499# and sets the high bit in the cache file unless we assign to the vars.
9500(set) 2>&1 |
9501 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9502 *ac_space=\ *)
9503 # `set' does not quote correctly, so add quotes (double-quote substitution
9504 # turns \\\\ into \\, and sed turns \\ into \).
9505 sed -n \
9506 -e "s/'/'\\\\''/g" \
9507 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9508 ;;
9509 *)
9510 # `set' quotes correctly as required by POSIX, so do not add quotes.
9511 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9512 ;;
9513 esac >> confcache
9514if cmp -s $cache_file confcache; then
9515 :
9516else
9517 if test -w $cache_file; then
9518 echo "updating cache $cache_file"
9519 cat confcache > $cache_file
9520 else
9521 echo "not updating unwritable cache $cache_file"
9522 fi
9523fi
9524rm -f confcache
9525
9526
9527
9528
9529REGEX_INCLUDE=
9530if test "$wxUSE_REGEX" != "no"; then
9531 cat >> confdefs.h <<\EOF
9532#define wxUSE_REGEX 1
9533EOF
9534
9535
9536 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
9537 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
9538echo $ac_n "checking for regex.h""... $ac_c" 1>&6
9539echo "configure:9540: checking for regex.h" >&5
9540if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9541 echo $ac_n "(cached) $ac_c" 1>&6
9542else
9543 cat > conftest.$ac_ext <<EOF
9544#line 9545 "configure"
9545#include "confdefs.h"
9546#include <regex.h>
9547EOF
9548ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9549{ (eval echo configure:9550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9550ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9551if test -z "$ac_err"; then
9552 rm -rf conftest*
9553 eval "ac_cv_header_$ac_safe=yes"
9554else
9555 echo "$ac_err" >&5
9556 echo "configure: failed program was:" >&5
9557 cat conftest.$ac_ext >&5
9558 rm -rf conftest*
9559 eval "ac_cv_header_$ac_safe=no"
9560fi
9561rm -f conftest*
9562fi
9563if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9564 echo "$ac_t""yes" 1>&6
9565 for ac_func in regcomp
9566do
9567echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9568echo "configure:9569: checking for $ac_func" >&5
9569if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9570 echo $ac_n "(cached) $ac_c" 1>&6
9571else
9572 cat > conftest.$ac_ext <<EOF
9573#line 9574 "configure"
9574#include "confdefs.h"
9575/* System header to define __stub macros and hopefully few prototypes,
9576 which can conflict with char $ac_func(); below. */
9577#include <assert.h>
9578/* Override any gcc2 internal prototype to avoid an error. */
9579/* We use char because int might match the return type of a gcc2
9580 builtin and then its argument prototype would still apply. */
9581char $ac_func();
9582
9583int main() {
9584
9585/* The GNU C library defines this for functions which it implements
9586 to always fail with ENOSYS. Some functions are actually named
9587 something starting with __ and the normal name is an alias. */
9588#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9589choke me
9590#else
9591$ac_func();
9592#endif
9593
9594; return 0; }
9595EOF
9596if { (eval echo configure:9597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9597 rm -rf conftest*
9598 eval "ac_cv_func_$ac_func=yes"
9599else
9600 echo "configure: failed program was:" >&5
9601 cat conftest.$ac_ext >&5
9602 rm -rf conftest*
9603 eval "ac_cv_func_$ac_func=no"
9604fi
9605rm -f conftest*
9606fi
9607
9608if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9609 echo "$ac_t""yes" 1>&6
9610 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9611 cat >> confdefs.h <<EOF
9612#define $ac_tr_func 1
9613EOF
9614
9615else
9616 echo "$ac_t""no" 1>&6
9617fi
9618done
9619
9620else
9621 echo "$ac_t""no" 1>&6
9622fi
9623
9624
9625 if test "x$ac_cv_func_regcomp" != "xyes"; then
9626 if test "$wxUSE_REGEX" = "sys" ; then
9627 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9628 else
9629 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
9630 wxUSE_REGEX=builtin
9631 fi
9632 else
9633 wxUSE_REGEX=sys
9634 fi
9635 fi
9636
9637 if test "$wxUSE_REGEX" = "builtin" ; then
9638 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9639 fi
9640fi
9641
9642
9643ZLIB_INCLUDE=
9644ZLIB_LINK=
9645if test "$wxUSE_ZLIB" != "no" ; then
9646 cat >> confdefs.h <<\EOF
9647#define wxUSE_ZLIB 1
9648EOF
9649
9650
9651 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9652 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9653echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
9654echo "configure:9655: checking for zlib.h" >&5
9655if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9656 echo $ac_n "(cached) $ac_c" 1>&6
9657else
9658 cat > conftest.$ac_ext <<EOF
9659#line 9660 "configure"
9660#include "confdefs.h"
9661#include <zlib.h>
9662EOF
9663ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9664{ (eval echo configure:9665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9665ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9666if test -z "$ac_err"; then
9667 rm -rf conftest*
9668 eval "ac_cv_header_$ac_safe=yes"
9669else
9670 echo "$ac_err" >&5
9671 echo "configure: failed program was:" >&5
9672 cat conftest.$ac_ext >&5
9673 rm -rf conftest*
9674 eval "ac_cv_header_$ac_safe=no"
9675fi
9676rm -f conftest*
9677fi
9678if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9679 echo "$ac_t""yes" 1>&6
9680 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
9681echo "configure:9682: checking for deflate in -lz" >&5
9682ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9683if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9684 echo $ac_n "(cached) $ac_c" 1>&6
9685else
9686 ac_save_LIBS="$LIBS"
9687LIBS="-lz $LIBS"
9688cat > conftest.$ac_ext <<EOF
9689#line 9690 "configure"
9690#include "confdefs.h"
9691/* Override any gcc2 internal prototype to avoid an error. */
9692/* We use char because int might match the return type of a gcc2
9693 builtin and then its argument prototype would still apply. */
9694char deflate();
9695
9696int main() {
9697deflate()
9698; return 0; }
9699EOF
9700if { (eval echo configure:9701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9701 rm -rf conftest*
9702 eval "ac_cv_lib_$ac_lib_var=yes"
9703else
9704 echo "configure: failed program was:" >&5
9705 cat conftest.$ac_ext >&5
9706 rm -rf conftest*
9707 eval "ac_cv_lib_$ac_lib_var=no"
9708fi
9709rm -f conftest*
9710LIBS="$ac_save_LIBS"
9711
9712fi
9713if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9714 echo "$ac_t""yes" 1>&6
9715 ZLIB_LINK=" -lz"
9716else
9717 echo "$ac_t""no" 1>&6
9718fi
9719
9720else
9721 echo "$ac_t""no" 1>&6
9722fi
9723
9724
9725 if test "x$ZLIB_LINK" = "x" ; then
9726 if test "$wxUSE_ZLIB" = "sys" ; then
9727 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9728 else
9729 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
9730 wxUSE_ZLIB=builtin
9731 fi
9732 else
9733 wxUSE_ZLIB=sys
9734 fi
9735 fi
9736
9737 if test "$wxUSE_ZLIB" = "builtin" ; then
9738 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9739 fi
9740fi
9741
9742
9743PNG_INCLUDE=
9744PNG_LINK=
9745if test "$wxUSE_LIBPNG" != "no" ; then
9746 cat >> confdefs.h <<\EOF
9747#define wxUSE_LIBPNG 1
9748EOF
9749
9750
9751 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
9752 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
9753 wxUSE_LIBPNG=builtin
9754 fi
9755
9756 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9757 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9758echo $ac_n "checking for png.h""... $ac_c" 1>&6
9759echo "configure:9760: checking for png.h" >&5
9760if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9761 echo $ac_n "(cached) $ac_c" 1>&6
9762else
9763 cat > conftest.$ac_ext <<EOF
9764#line 9765 "configure"
9765#include "confdefs.h"
9766#include <png.h>
9767EOF
9768ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9769{ (eval echo configure:9770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9770ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9771if test -z "$ac_err"; then
9772 rm -rf conftest*
9773 eval "ac_cv_header_$ac_safe=yes"
9774else
9775 echo "$ac_err" >&5
9776 echo "configure: failed program was:" >&5
9777 cat conftest.$ac_ext >&5
9778 rm -rf conftest*
9779 eval "ac_cv_header_$ac_safe=no"
9780fi
9781rm -f conftest*
9782fi
9783if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9784 echo "$ac_t""yes" 1>&6
9785 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
9786echo "configure:9787: checking for png_check_sig in -lpng" >&5
9787ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9788if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9789 echo $ac_n "(cached) $ac_c" 1>&6
9790else
9791 ac_save_LIBS="$LIBS"
9792LIBS="-lpng -lz -lm $LIBS"
9793cat > conftest.$ac_ext <<EOF
9794#line 9795 "configure"
9795#include "confdefs.h"
9796/* Override any gcc2 internal prototype to avoid an error. */
9797/* We use char because int might match the return type of a gcc2
9798 builtin and then its argument prototype would still apply. */
9799char png_check_sig();
9800
9801int main() {
9802png_check_sig()
9803; return 0; }
9804EOF
9805if { (eval echo configure:9806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9806 rm -rf conftest*
9807 eval "ac_cv_lib_$ac_lib_var=yes"
9808else
9809 echo "configure: failed program was:" >&5
9810 cat conftest.$ac_ext >&5
9811 rm -rf conftest*
9812 eval "ac_cv_lib_$ac_lib_var=no"
9813fi
9814rm -f conftest*
9815LIBS="$ac_save_LIBS"
9816
9817fi
9818if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9819 echo "$ac_t""yes" 1>&6
9820 PNG_LINK=" -lpng"
9821else
9822 echo "$ac_t""no" 1>&6
9823fi
9824
9825
9826else
9827 echo "$ac_t""no" 1>&6
9828fi
9829
9830
9831 if test "x$PNG_LINK" = "x" ; then
9832 if test "$wxUSE_LIBPNG" = "sys" ; then
9833 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9834 else
9835 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
9836 wxUSE_LIBPNG=builtin
9837 fi
9838 else
9839 wxUSE_LIBPNG=yes
9840 fi
9841 fi
9842
9843 if test "$wxUSE_LIBPNG" = "builtin" ; then
9844 PNG_INCLUDE="-I\${top_srcdir}/src/png"
9845 fi
9846
9847 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
9848fi
9849
9850
9851JPEG_INCLUDE=
9852JPEG_LINK=
9853if test "$wxUSE_LIBJPEG" != "no" ; then
9854 cat >> confdefs.h <<\EOF
9855#define wxUSE_LIBJPEG 1
9856EOF
9857
9858
9859 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9860 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
9861echo "configure:9862: checking for jpeglib.h" >&5
9862 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
9863 echo $ac_n "(cached) $ac_c" 1>&6
9864else
9865 cat > conftest.$ac_ext <<EOF
9866#line 9867 "configure"
9867#include "confdefs.h"
9868
9869 #undef HAVE_STDLIB_H
9870 #include <stdio.h>
9871 #include <jpeglib.h>
9872
9873int main() {
9874
9875
9876; return 0; }
9877EOF
9878if { (eval echo configure:9879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9879 rm -rf conftest*
9880 ac_cv_header_jpeglib_h=yes
9881else
9882 echo "configure: failed program was:" >&5
9883 cat conftest.$ac_ext >&5
9884 rm -rf conftest*
9885 ac_cv_header_jpeglib_h=no
9886
9887fi
9888rm -f conftest*
9889
9890fi
9891
9892 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
9893
9894 if test "$ac_cv_header_jpeglib_h" = "yes"; then
9895 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
9896echo "configure:9897: checking for jpeg_read_header in -ljpeg" >&5
9897ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
9898if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9899 echo $ac_n "(cached) $ac_c" 1>&6
9900else
9901 ac_save_LIBS="$LIBS"
9902LIBS="-ljpeg $LIBS"
9903cat > conftest.$ac_ext <<EOF
9904#line 9905 "configure"
9905#include "confdefs.h"
9906/* Override any gcc2 internal prototype to avoid an error. */
9907/* We use char because int might match the return type of a gcc2
9908 builtin and then its argument prototype would still apply. */
9909char jpeg_read_header();
9910
9911int main() {
9912jpeg_read_header()
9913; return 0; }
9914EOF
9915if { (eval echo configure:9916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9916 rm -rf conftest*
9917 eval "ac_cv_lib_$ac_lib_var=yes"
9918else
9919 echo "configure: failed program was:" >&5
9920 cat conftest.$ac_ext >&5
9921 rm -rf conftest*
9922 eval "ac_cv_lib_$ac_lib_var=no"
9923fi
9924rm -f conftest*
9925LIBS="$ac_save_LIBS"
9926
9927fi
9928if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9929 echo "$ac_t""yes" 1>&6
9930 JPEG_LINK=" -ljpeg"
9931else
9932 echo "$ac_t""no" 1>&6
9933fi
9934
9935 fi
9936
9937 if test "x$JPEG_LINK" = "x" ; then
9938 if test "$wxUSE_LIBJPEG" = "sys" ; then
9939 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
9940 else
9941 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
9942 wxUSE_LIBJPEG=builtin
9943 fi
9944 else
9945 wxUSE_LIBJPEG=sys
9946 fi
9947 fi
9948
9949 if test "$wxUSE_LIBJPEG" = "builtin" ; then
9950 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
9951 fi
9952fi
9953
9954
9955TIFF_INCLUDE=
9956TIFF_LINK=
9957if test "$wxUSE_LIBTIFF" != "no" ; then
9958 cat >> confdefs.h <<\EOF
9959#define wxUSE_LIBTIFF 1
9960EOF
9961
9962
9963 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
9964 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
9965echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
9966echo "configure:9967: checking for tiffio.h" >&5
9967if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9968 echo $ac_n "(cached) $ac_c" 1>&6
9969else
9970 cat > conftest.$ac_ext <<EOF
9971#line 9972 "configure"
9972#include "confdefs.h"
9973#include <tiffio.h>
9974EOF
9975ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9976{ (eval echo configure:9977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9977ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9978if test -z "$ac_err"; then
9979 rm -rf conftest*
9980 eval "ac_cv_header_$ac_safe=yes"
9981else
9982 echo "$ac_err" >&5
9983 echo "configure: failed program was:" >&5
9984 cat conftest.$ac_ext >&5
9985 rm -rf conftest*
9986 eval "ac_cv_header_$ac_safe=no"
9987fi
9988rm -f conftest*
9989fi
9990if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9991 echo "$ac_t""yes" 1>&6
9992 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
9993echo "configure:9994: checking for TIFFError in -ltiff" >&5
9994ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
9995if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9996 echo $ac_n "(cached) $ac_c" 1>&6
9997else
9998 ac_save_LIBS="$LIBS"
9999LIBS="-ltiff -lm $LIBS"
10000cat > conftest.$ac_ext <<EOF
10001#line 10002 "configure"
10002#include "confdefs.h"
10003/* Override any gcc2 internal prototype to avoid an error. */
10004/* We use char because int might match the return type of a gcc2
10005 builtin and then its argument prototype would still apply. */
10006char TIFFError();
10007
10008int main() {
10009TIFFError()
10010; return 0; }
10011EOF
10012if { (eval echo configure:10013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10013 rm -rf conftest*
10014 eval "ac_cv_lib_$ac_lib_var=yes"
10015else
10016 echo "configure: failed program was:" >&5
10017 cat conftest.$ac_ext >&5
10018 rm -rf conftest*
10019 eval "ac_cv_lib_$ac_lib_var=no"
10020fi
10021rm -f conftest*
10022LIBS="$ac_save_LIBS"
10023
10024fi
10025if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10026 echo "$ac_t""yes" 1>&6
10027 TIFF_LINK=" -ltiff"
10028else
10029 echo "$ac_t""no" 1>&6
10030fi
10031
10032
10033else
10034 echo "$ac_t""no" 1>&6
10035fi
10036
10037
10038 if test "x$TIFF_LINK" = "x" ; then
10039 if test "$wxUSE_LIBTIFF" = "sys" ; then
10040 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
10041 else
10042 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
10043 wxUSE_LIBTIFF=builtin
10044 fi
10045 else
10046 wxUSE_LIBTIFF=sys
10047 fi
10048 fi
10049
10050 if test "$wxUSE_LIBTIFF" = "builtin" ; then
10051 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
10052 fi
10053fi
10054
10055
10056FREETYPE_INCLUDE=
10057FREETYPE_LINK=
10058if test "$wxUSE_FREETYPE" != "no" ; then
10059 cat >> confdefs.h <<\EOF
10060#define wxUSE_FREETYPE 1
10061EOF
10062
10063
10064 if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then
10065 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
10066echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
10067echo "configure:10068: checking for freetype.h" >&5
10068if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10069 echo $ac_n "(cached) $ac_c" 1>&6
10070else
10071 cat > conftest.$ac_ext <<EOF
10072#line 10073 "configure"
10073#include "confdefs.h"
10074#include <freetype.h>
10075EOF
10076ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10077{ (eval echo configure:10078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10078ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10079if test -z "$ac_err"; then
10080 rm -rf conftest*
10081 eval "ac_cv_header_$ac_safe=yes"
10082else
10083 echo "$ac_err" >&5
10084 echo "configure: failed program was:" >&5
10085 cat conftest.$ac_ext >&5
10086 rm -rf conftest*
10087 eval "ac_cv_header_$ac_safe=no"
10088fi
10089rm -f conftest*
10090fi
10091if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10092 echo "$ac_t""yes" 1>&6
10093 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
10094echo "configure:10095: checking for FT_Render_Glyph in -lfreetype" >&5
10095ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
10096if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10097 echo $ac_n "(cached) $ac_c" 1>&6
10098else
10099 ac_save_LIBS="$LIBS"
10100LIBS="-lfreetype -lm $LIBS"
10101cat > conftest.$ac_ext <<EOF
10102#line 10103 "configure"
10103#include "confdefs.h"
10104/* Override any gcc2 internal prototype to avoid an error. */
10105/* We use char because int might match the return type of a gcc2
10106 builtin and then its argument prototype would still apply. */
10107char FT_Render_Glyph();
10108
10109int main() {
10110FT_Render_Glyph()
10111; return 0; }
10112EOF
10113if { (eval echo configure:10114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10114 rm -rf conftest*
10115 eval "ac_cv_lib_$ac_lib_var=yes"
10116else
10117 echo "configure: failed program was:" >&5
10118 cat conftest.$ac_ext >&5
10119 rm -rf conftest*
10120 eval "ac_cv_lib_$ac_lib_var=no"
10121fi
10122rm -f conftest*
10123LIBS="$ac_save_LIBS"
10124
10125fi
10126if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10127 echo "$ac_t""yes" 1>&6
10128 FREETYPE_LINK=" -lfreetype"
10129else
10130 echo "$ac_t""no" 1>&6
10131fi
10132
10133
10134else
10135 echo "$ac_t""no" 1>&6
10136fi
10137
10138
10139 if test "x$FREETYPE_LINK" = "x" ; then
10140 if test "$wxUSE_FREETYPE" = "sys" ; then
10141 { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; }
10142 else
10143 echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2
10144 wxUSE_FREETYPE=builtin
10145 fi
10146 else
10147 wxUSE_FREETYPE=sys
10148 fi
10149 fi
10150
10151 if test "$wxUSE_FREETYPE" = "builtin" ; then
10152 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
10153 fi
10154fi
10155
10156
10157AFMINSTALL=
10158
10159TOOLKIT=
10160TOOLKIT_INCLUDE=
10161WIDGET_SET=
10162
10163if test "$USE_WIN32" = 1 ; then
10164 for ac_hdr in w32api.h
10165do
10166ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10167echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10168echo "configure:10169: checking for $ac_hdr" >&5
10169if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10170 echo $ac_n "(cached) $ac_c" 1>&6
10171else
10172 cat > conftest.$ac_ext <<EOF
10173#line 10174 "configure"
10174#include "confdefs.h"
10175#include <$ac_hdr>
10176EOF
10177ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10178{ (eval echo configure:10179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10179ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10180if test -z "$ac_err"; then
10181 rm -rf conftest*
10182 eval "ac_cv_header_$ac_safe=yes"
10183else
10184 echo "$ac_err" >&5
10185 echo "configure: failed program was:" >&5
10186 cat conftest.$ac_ext >&5
10187 rm -rf conftest*
10188 eval "ac_cv_header_$ac_safe=no"
10189fi
10190rm -f conftest*
10191fi
10192if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10193 echo "$ac_t""yes" 1>&6
10194 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10195 cat >> confdefs.h <<EOF
10196#define $ac_tr_hdr 1
10197EOF
10198
10199else
10200 echo "$ac_t""no" 1>&6
10201fi
10202done
10203
10204 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10205echo $ac_n "checking for windows.h""... $ac_c" 1>&6
10206echo "configure:10207: checking for windows.h" >&5
10207if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10208 echo $ac_n "(cached) $ac_c" 1>&6
10209else
10210 cat > conftest.$ac_ext <<EOF
10211#line 10212 "configure"
10212#include "confdefs.h"
10213#include <windows.h>
10214EOF
10215ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10216{ (eval echo configure:10217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10217ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10218if test -z "$ac_err"; then
10219 rm -rf conftest*
10220 eval "ac_cv_header_$ac_safe=yes"
10221else
10222 echo "$ac_err" >&5
10223 echo "configure: failed program was:" >&5
10224 cat conftest.$ac_ext >&5
10225 rm -rf conftest*
10226 eval "ac_cv_header_$ac_safe=no"
10227fi
10228rm -f conftest*
10229fi
10230if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10231 echo "$ac_t""yes" 1>&6
10232 :
10233else
10234 echo "$ac_t""no" 1>&6
10235
10236 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
10237
10238fi
10239
10240
10241 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
10242echo "configure:10243: checking if w32api has good enough MSIE support" >&5
10243if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
10244 echo $ac_n "(cached) $ac_c" 1>&6
10245else
10246
10247 cat > conftest.$ac_ext <<EOF
10248#line 10249 "configure"
10249#include "confdefs.h"
10250#include <w32api.h>
10251int main() {
10252
10253 #define wxCHECK_W32API_VERSION( major, minor ) \
10254 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
10255 && ( ( __W32API_MAJOR_VERSION > (major) ) \
10256 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
10257
10258 #if !wxCHECK_W32API_VERSION(1,1)
10259 #error You need w32api 1.1 or newer
10260 #endif
10261
10262; return 0; }
10263EOF
10264if { (eval echo configure:10265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10265 rm -rf conftest*
10266
10267 wx_cv_w32api_win32_ie=yes
10268
10269else
10270 echo "configure: failed program was:" >&5
10271 cat conftest.$ac_ext >&5
10272 rm -rf conftest*
10273
10274 wx_cv_w32api_win32_ie=no
10275
10276fi
10277rm -f conftest*
10278
10279fi
10280
10281echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
10282 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
10283 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
10284 fi
10285
10286 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
10287
10288 case "${host}" in
10289 *-*-cygwin* )
10290 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
10291 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
10292 esac
10293
10294 if test "$wxUSE_ODBC" = "yes" ; then
10295 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
10296 fi
10297
10298 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
10299 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
10300fi
10301
10302if test "$wxUSE_GUI" = "yes"; then
10303 USE_GUI=1
10304
10305 GUI_TK_LIBRARY=
10306
10307 WXGTK12=
10308 WXGTK127=
10309 WXGTK20=
10310
10311 if test "$wxUSE_MSW" = 1 ; then
10312 TOOLKIT=MSW
10313 GUIDIST=MSW_DIST
10314
10315 case "${host}" in
10316 *-*-mingw32* )
10317 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
10318 esac
10319 fi
10320
10321 if test "$wxUSE_GTK" = 1; then
10322 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
10323echo "configure:10324: checking for GTK+ version" >&5
10324
10325 gtk_version_cached=1
10326 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
10327 echo $ac_n "(cached) $ac_c" 1>&6
10328else
10329
10330 gtk_version_cached=0
10331 echo "$ac_t""" 1>&6
10332
10333 GTK_MODULES=
10334 if test "$wxUSE_THREADS" = "yes"; then
10335 GTK_MODULES=gthread
10336 fi
10337
10338 wx_cv_lib_gtk=
10339 if test "x$wxUSE_GTK2" = "xyes"; then
10340 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10341if test "${with_gtk_prefix+set}" = set; then
10342 withval="$with_gtk_prefix"
10343 gtk_config_prefix="$withval"
10344else
10345 gtk_config_prefix=""
10346fi
10347
10348# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10349if test "${with_gtk_exec_prefix+set}" = set; then
10350 withval="$with_gtk_exec_prefix"
10351 gtk_config_exec_prefix="$withval"
10352else
10353 gtk_config_exec_prefix=""
10354fi
10355
10356# Check whether --enable-gtktest or --disable-gtktest was given.
10357if test "${enable_gtktest+set}" = set; then
10358 enableval="$enable_gtktest"
10359 :
10360else
10361 enable_gtktest=yes
10362fi
10363
10364
10365 for module in . $GTK_MODULES
10366 do
10367 case "$module" in
10368 gthread)
10369 gtk_config_args="$gtk_config_args gthread"
10370 ;;
10371 esac
10372 done
10373
10374 if test x$gtk_config_exec_prefix != x ; then
10375 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10376 if test x${GTK_CONFIG_2_0+set} != xset ; then
10377 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
10378 fi
10379 fi
10380 if test x$gtk_config_prefix != x ; then
10381 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10382 if test x${GTK_CONFIG_2_0+set} != xset ; then
10383 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
10384 fi
10385 fi
10386
10387 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
10388set dummy gtk-config-2.0; ac_word=$2
10389echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10390echo "configure:10391: checking for $ac_word" >&5
10391if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
10392 echo $ac_n "(cached) $ac_c" 1>&6
10393else
10394 case "$GTK_CONFIG_2_0" in
10395 /*)
10396 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
10397 ;;
10398 ?:/*)
10399 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
10400 ;;
10401 *)
10402 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10403 ac_dummy="$PATH"
10404 for ac_dir in $ac_dummy; do
10405 test -z "$ac_dir" && ac_dir=.
10406 if test -f $ac_dir/$ac_word; then
10407 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
10408 break
10409 fi
10410 done
10411 IFS="$ac_save_ifs"
10412 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
10413 ;;
10414esac
10415fi
10416GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
10417if test -n "$GTK_CONFIG_2_0"; then
10418 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
10419else
10420 echo "$ac_t""no" 1>&6
10421fi
10422
10423 min_gtk_version=1.3.1
10424 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10425echo "configure:10426: checking for GTK - version >= $min_gtk_version" >&5
10426 no_gtk=""
10427 if test "$GTK_CONFIG_2_0" = "no" ; then
10428 no_gtk=yes
10429 else
10430 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
10431 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
10432 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10433 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10434 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10435 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10436 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10437 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10438 if test "x$enable_gtktest" = "xyes" ; then
10439 ac_save_CFLAGS="$CFLAGS"
10440 ac_save_LIBS="$LIBS"
10441 CFLAGS="$CFLAGS $GTK_CFLAGS"
10442 LIBS="$GTK_LIBS $LIBS"
10443 rm -f conf.gtktest
10444 if test "$cross_compiling" = yes; then
10445 echo $ac_n "cross compiling; assumed OK... $ac_c"
10446else
10447 cat > conftest.$ac_ext <<EOF
10448#line 10449 "configure"
10449#include "confdefs.h"
10450
10451#include <gtk/gtk.h>
10452#include <stdio.h>
10453#include <stdlib.h>
10454
10455int
10456main ()
10457{
10458 int major, minor, micro;
10459 char *tmp_version;
10460
10461 system ("touch conf.gtktest");
10462
10463 /* HP/UX 9 (%@#!) writes to sscanf strings */
10464 tmp_version = g_strdup("$min_gtk_version");
10465 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10466 printf("%s, bad version string\n", "$min_gtk_version");
10467 exit(1);
10468 }
10469
10470 if ((gtk_major_version != $gtk_config_major_version) ||
10471 (gtk_minor_version != $gtk_config_minor_version) ||
10472 (gtk_micro_version != $gtk_config_micro_version))
10473 {
10474 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10475 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10476 gtk_major_version, gtk_minor_version, gtk_micro_version);
10477 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
10478 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10479 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10480 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10481 printf("*** required on your system.\n");
10482 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
10483 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
10484 printf("*** before re-running configure\n");
10485 }
10486#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10487 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10488 (gtk_minor_version != GTK_MINOR_VERSION) ||
10489 (gtk_micro_version != GTK_MICRO_VERSION))
10490 {
10491 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10492 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10493 printf("*** library (version %d.%d.%d)\n",
10494 gtk_major_version, gtk_minor_version, gtk_micro_version);
10495 }
10496#endif /* defined (GTK_MAJOR_VERSION) ... */
10497 else
10498 {
10499 if ((gtk_major_version > major) ||
10500 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10501 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10502 {
10503 return 0;
10504 }
10505 else
10506 {
10507 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10508 gtk_major_version, gtk_minor_version, gtk_micro_version);
10509 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10510 major, minor, micro);
10511 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10512 printf("***\n");
10513 printf("*** If you have already installed a sufficiently new version, this error\n");
10514 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
10515 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10516 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
10517 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
10518 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10519 printf("*** so that the correct libraries are found at run-time))\n");
10520 }
10521 }
10522 return 1;
10523}
10524
10525EOF
10526if { (eval echo configure:10527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10527then
10528 :
10529else
10530 echo "configure: failed program was:" >&5
10531 cat conftest.$ac_ext >&5
10532 rm -fr conftest*
10533 no_gtk=yes
10534fi
10535rm -fr conftest*
10536fi
10537
10538 CFLAGS="$ac_save_CFLAGS"
10539 LIBS="$ac_save_LIBS"
10540 fi
10541 fi
10542 if test "x$no_gtk" = x ; then
10543 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
10544 wx_cv_lib_gtk=2.0
10545 else
10546 echo "$ac_t""no" 1>&6
10547 if test "$GTK_CONFIG_2_0" = "no" ; then
10548 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
10549 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10550 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
10551 echo "*** full path to gtk-config-2.0."
10552 else
10553 if test -f conf.gtktest ; then
10554 :
10555 else
10556 echo "*** Could not run GTK test program, checking why..."
10557 CFLAGS="$CFLAGS $GTK_CFLAGS"
10558 LIBS="$LIBS $GTK_LIBS"
10559 cat > conftest.$ac_ext <<EOF
10560#line 10561 "configure"
10561#include "confdefs.h"
10562
10563#include <gtk/gtk.h>
10564#include <stdio.h>
10565
10566int main() {
10567 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10568; return 0; }
10569EOF
10570if { (eval echo configure:10571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10571 rm -rf conftest*
10572 echo "*** The test program compiled, but did not run. This usually means"
10573 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10574 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10575 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10576 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10577 echo "*** is required on your system"
10578 echo "***"
10579 echo "*** If you have an old version installed, it is best to remove it, although"
10580 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10581 echo "***"
10582 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10583 echo "*** came with the system with the command"
10584 echo "***"
10585 echo "*** rpm --erase --nodeps gtk gtk-devel"
10586else
10587 echo "configure: failed program was:" >&5
10588 cat conftest.$ac_ext >&5
10589 rm -rf conftest*
10590 echo "*** The test program failed to compile or link. See the file config.log for the"
10591 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10592 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10593 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
10594fi
10595rm -f conftest*
10596 CFLAGS="$ac_save_CFLAGS"
10597 LIBS="$ac_save_LIBS"
10598 fi
10599 fi
10600 GTK_CFLAGS=""
10601 GTK_LIBS=""
10602 :
10603 fi
10604
10605
10606 rm -f conf.gtktest
10607
10608 fi
10609
10610 if test -z "$wx_cv_lib_gtk"; then
10611 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10612if test "${with_gtk_prefix+set}" = set; then
10613 withval="$with_gtk_prefix"
10614 gtk_config_prefix="$withval"
10615else
10616 gtk_config_prefix=""
10617fi
10618
10619# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10620if test "${with_gtk_exec_prefix+set}" = set; then
10621 withval="$with_gtk_exec_prefix"
10622 gtk_config_exec_prefix="$withval"
10623else
10624 gtk_config_exec_prefix=""
10625fi
10626
10627# Check whether --enable-gtktest or --disable-gtktest was given.
10628if test "${enable_gtktest+set}" = set; then
10629 enableval="$enable_gtktest"
10630 :
10631else
10632 enable_gtktest=yes
10633fi
10634
10635
10636 for module in . $GTK_MODULES
10637 do
10638 case "$module" in
10639 gthread)
10640 gtk_config_args="$gtk_config_args gthread"
10641 ;;
10642 esac
10643 done
10644
10645 if test x$gtk_config_exec_prefix != x ; then
10646 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10647 if test x${GTK_CONFIG+set} != xset ; then
10648 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10649 fi
10650 fi
10651 if test x$gtk_config_prefix != x ; then
10652 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10653 if test x${GTK_CONFIG+set} != xset ; then
10654 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10655 fi
10656 fi
10657
10658 # Extract the first word of "gtk-config", so it can be a program name with args.
10659set dummy gtk-config; ac_word=$2
10660echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10661echo "configure:10662: checking for $ac_word" >&5
10662if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10663 echo $ac_n "(cached) $ac_c" 1>&6
10664else
10665 case "$GTK_CONFIG" in
10666 /*)
10667 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10668 ;;
10669 ?:/*)
10670 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10671 ;;
10672 *)
10673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10674 ac_dummy="$PATH"
10675 for ac_dir in $ac_dummy; do
10676 test -z "$ac_dir" && ac_dir=.
10677 if test -f $ac_dir/$ac_word; then
10678 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10679 break
10680 fi
10681 done
10682 IFS="$ac_save_ifs"
10683 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10684 ;;
10685esac
10686fi
10687GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10688if test -n "$GTK_CONFIG"; then
10689 echo "$ac_t""$GTK_CONFIG" 1>&6
10690else
10691 echo "$ac_t""no" 1>&6
10692fi
10693
10694 min_gtk_version=1.2.7
10695 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10696echo "configure:10697: checking for GTK - version >= $min_gtk_version" >&5
10697 no_gtk=""
10698 if test "$GTK_CONFIG" = "no" ; then
10699 no_gtk=yes
10700 else
10701 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10702 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10703 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10704 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10705 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10706 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10707 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10708 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10709 if test "x$enable_gtktest" = "xyes" ; then
10710 ac_save_CFLAGS="$CFLAGS"
10711 ac_save_LIBS="$LIBS"
10712 CFLAGS="$CFLAGS $GTK_CFLAGS"
10713 LIBS="$GTK_LIBS $LIBS"
10714 rm -f conf.gtktest
10715 if test "$cross_compiling" = yes; then
10716 echo $ac_n "cross compiling; assumed OK... $ac_c"
10717else
10718 cat > conftest.$ac_ext <<EOF
10719#line 10720 "configure"
10720#include "confdefs.h"
10721
10722#include <gtk/gtk.h>
10723#include <stdio.h>
10724#include <stdlib.h>
10725
10726int
10727main ()
10728{
10729 int major, minor, micro;
10730 char *tmp_version;
10731
10732 system ("touch conf.gtktest");
10733
10734 /* HP/UX 9 (%@#!) writes to sscanf strings */
10735 tmp_version = g_strdup("$min_gtk_version");
10736 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10737 printf("%s, bad version string\n", "$min_gtk_version");
10738 exit(1);
10739 }
10740
10741 if ((gtk_major_version != $gtk_config_major_version) ||
10742 (gtk_minor_version != $gtk_config_minor_version) ||
10743 (gtk_micro_version != $gtk_config_micro_version))
10744 {
10745 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10746 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10747 gtk_major_version, gtk_minor_version, gtk_micro_version);
10748 printf ("*** was found! If gtk-config was correct, then it is best\n");
10749 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10750 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10751 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10752 printf("*** required on your system.\n");
10753 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10754 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10755 printf("*** before re-running configure\n");
10756 }
10757#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10758 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10759 (gtk_minor_version != GTK_MINOR_VERSION) ||
10760 (gtk_micro_version != GTK_MICRO_VERSION))
10761 {
10762 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10763 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10764 printf("*** library (version %d.%d.%d)\n",
10765 gtk_major_version, gtk_minor_version, gtk_micro_version);
10766 }
10767#endif /* defined (GTK_MAJOR_VERSION) ... */
10768 else
10769 {
10770 if ((gtk_major_version > major) ||
10771 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10772 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10773 {
10774 return 0;
10775 }
10776 else
10777 {
10778 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10779 gtk_major_version, gtk_minor_version, gtk_micro_version);
10780 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10781 major, minor, micro);
10782 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10783 printf("***\n");
10784 printf("*** If you have already installed a sufficiently new version, this error\n");
10785 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10786 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10787 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10788 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10789 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10790 printf("*** so that the correct libraries are found at run-time))\n");
10791 }
10792 }
10793 return 1;
10794}
10795
10796EOF
10797if { (eval echo configure:10798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10798then
10799 :
10800else
10801 echo "configure: failed program was:" >&5
10802 cat conftest.$ac_ext >&5
10803 rm -fr conftest*
10804 no_gtk=yes
10805fi
10806rm -fr conftest*
10807fi
10808
10809 CFLAGS="$ac_save_CFLAGS"
10810 LIBS="$ac_save_LIBS"
10811 fi
10812 fi
10813 if test "x$no_gtk" = x ; then
10814 echo "$ac_t""yes" 1>&6
10815 wx_cv_lib_gtk=1.2.7
10816 else
10817 echo "$ac_t""no" 1>&6
10818 if test "$GTK_CONFIG" = "no" ; then
10819 echo "*** The gtk-config script installed by GTK could not be found"
10820 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10821 echo "*** your path, or set the GTK_CONFIG environment variable to the"
10822 echo "*** full path to gtk-config."
10823 else
10824 if test -f conf.gtktest ; then
10825 :
10826 else
10827 echo "*** Could not run GTK test program, checking why..."
10828 CFLAGS="$CFLAGS $GTK_CFLAGS"
10829 LIBS="$LIBS $GTK_LIBS"
10830 cat > conftest.$ac_ext <<EOF
10831#line 10832 "configure"
10832#include "confdefs.h"
10833
10834#include <gtk/gtk.h>
10835#include <stdio.h>
10836
10837int main() {
10838 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10839; return 0; }
10840EOF
10841if { (eval echo configure:10842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10842 rm -rf conftest*
10843 echo "*** The test program compiled, but did not run. This usually means"
10844 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10845 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10846 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10847 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10848 echo "*** is required on your system"
10849 echo "***"
10850 echo "*** If you have an old version installed, it is best to remove it, although"
10851 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10852 echo "***"
10853 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10854 echo "*** came with the system with the command"
10855 echo "***"
10856 echo "*** rpm --erase --nodeps gtk gtk-devel"
10857else
10858 echo "configure: failed program was:" >&5
10859 cat conftest.$ac_ext >&5
10860 rm -rf conftest*
10861 echo "*** The test program failed to compile or link. See the file config.log for the"
10862 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10863 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10864 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
10865fi
10866rm -f conftest*
10867 CFLAGS="$ac_save_CFLAGS"
10868 LIBS="$ac_save_LIBS"
10869 fi
10870 fi
10871 GTK_CFLAGS=""
10872 GTK_LIBS=""
10873 :
10874 fi
10875
10876
10877 rm -f conf.gtktest
10878
10879 fi
10880
10881 if test -z "$wx_cv_lib_gtk"; then
10882 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10883if test "${with_gtk_prefix+set}" = set; then
10884 withval="$with_gtk_prefix"
10885 gtk_config_prefix="$withval"
10886else
10887 gtk_config_prefix=""
10888fi
10889
10890# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10891if test "${with_gtk_exec_prefix+set}" = set; then
10892 withval="$with_gtk_exec_prefix"
10893 gtk_config_exec_prefix="$withval"
10894else
10895 gtk_config_exec_prefix=""
10896fi
10897
10898# Check whether --enable-gtktest or --disable-gtktest was given.
10899if test "${enable_gtktest+set}" = set; then
10900 enableval="$enable_gtktest"
10901 :
10902else
10903 enable_gtktest=yes
10904fi
10905
10906
10907 for module in . $GTK_MODULES
10908 do
10909 case "$module" in
10910 gthread)
10911 gtk_config_args="$gtk_config_args gthread"
10912 ;;
10913 esac
10914 done
10915
10916 if test x$gtk_config_exec_prefix != x ; then
10917 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10918 if test x${GTK_CONFIG+set} != xset ; then
10919 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10920 fi
10921 fi
10922 if test x$gtk_config_prefix != x ; then
10923 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10924 if test x${GTK_CONFIG+set} != xset ; then
10925 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10926 fi
10927 fi
10928
10929 # Extract the first word of "gtk-config", so it can be a program name with args.
10930set dummy gtk-config; ac_word=$2
10931echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10932echo "configure:10933: checking for $ac_word" >&5
10933if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10934 echo $ac_n "(cached) $ac_c" 1>&6
10935else
10936 case "$GTK_CONFIG" in
10937 /*)
10938 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10939 ;;
10940 ?:/*)
10941 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10942 ;;
10943 *)
10944 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10945 ac_dummy="$PATH"
10946 for ac_dir in $ac_dummy; do
10947 test -z "$ac_dir" && ac_dir=.
10948 if test -f $ac_dir/$ac_word; then
10949 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10950 break
10951 fi
10952 done
10953 IFS="$ac_save_ifs"
10954 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10955 ;;
10956esac
10957fi
10958GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10959if test -n "$GTK_CONFIG"; then
10960 echo "$ac_t""$GTK_CONFIG" 1>&6
10961else
10962 echo "$ac_t""no" 1>&6
10963fi
10964
10965 min_gtk_version=1.2.3
10966 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10967echo "configure:10968: checking for GTK - version >= $min_gtk_version" >&5
10968 no_gtk=""
10969 if test "$GTK_CONFIG" = "no" ; then
10970 no_gtk=yes
10971 else
10972 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10973 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10974 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10975 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10976 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10977 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10978 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10979 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10980 if test "x$enable_gtktest" = "xyes" ; then
10981 ac_save_CFLAGS="$CFLAGS"
10982 ac_save_LIBS="$LIBS"
10983 CFLAGS="$CFLAGS $GTK_CFLAGS"
10984 LIBS="$GTK_LIBS $LIBS"
10985 rm -f conf.gtktest
10986 if test "$cross_compiling" = yes; then
10987 echo $ac_n "cross compiling; assumed OK... $ac_c"
10988else
10989 cat > conftest.$ac_ext <<EOF
10990#line 10991 "configure"
10991#include "confdefs.h"
10992
10993#include <gtk/gtk.h>
10994#include <stdio.h>
10995#include <stdlib.h>
10996
10997int
10998main ()
10999{
11000 int major, minor, micro;
11001 char *tmp_version;
11002
11003 system ("touch conf.gtktest");
11004
11005 /* HP/UX 9 (%@#!) writes to sscanf strings */
11006 tmp_version = g_strdup("$min_gtk_version");
11007 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11008 printf("%s, bad version string\n", "$min_gtk_version");
11009 exit(1);
11010 }
11011
11012 if ((gtk_major_version != $gtk_config_major_version) ||
11013 (gtk_minor_version != $gtk_config_minor_version) ||
11014 (gtk_micro_version != $gtk_config_micro_version))
11015 {
11016 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
11017 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11018 gtk_major_version, gtk_minor_version, gtk_micro_version);
11019 printf ("*** was found! If gtk-config was correct, then it is best\n");
11020 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11021 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11022 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11023 printf("*** required on your system.\n");
11024 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
11025 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
11026 printf("*** before re-running configure\n");
11027 }
11028#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
11029 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11030 (gtk_minor_version != GTK_MINOR_VERSION) ||
11031 (gtk_micro_version != GTK_MICRO_VERSION))
11032 {
11033 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11034 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11035 printf("*** library (version %d.%d.%d)\n",
11036 gtk_major_version, gtk_minor_version, gtk_micro_version);
11037 }
11038#endif /* defined (GTK_MAJOR_VERSION) ... */
11039 else
11040 {
11041 if ((gtk_major_version > major) ||
11042 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11043 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11044 {
11045 return 0;
11046 }
11047 else
11048 {
11049 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11050 gtk_major_version, gtk_minor_version, gtk_micro_version);
11051 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11052 major, minor, micro);
11053 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11054 printf("***\n");
11055 printf("*** If you have already installed a sufficiently new version, this error\n");
11056 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
11057 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11058 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
11059 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
11060 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11061 printf("*** so that the correct libraries are found at run-time))\n");
11062 }
11063 }
11064 return 1;
11065}
11066
11067EOF
11068if { (eval echo configure:11069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11069then
11070 :
11071else
11072 echo "configure: failed program was:" >&5
11073 cat conftest.$ac_ext >&5
11074 rm -fr conftest*
11075 no_gtk=yes
11076fi
11077rm -fr conftest*
11078fi
11079
11080 CFLAGS="$ac_save_CFLAGS"
11081 LIBS="$ac_save_LIBS"
11082 fi
11083 fi
11084 if test "x$no_gtk" = x ; then
11085 echo "$ac_t""yes" 1>&6
11086 wx_cv_lib_gtk=1.2.3
11087 else
11088 echo "$ac_t""no" 1>&6
11089 if test "$GTK_CONFIG" = "no" ; then
11090 echo "*** The gtk-config script installed by GTK could not be found"
11091 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
11092 echo "*** your path, or set the GTK_CONFIG environment variable to the"
11093 echo "*** full path to gtk-config."
11094 else
11095 if test -f conf.gtktest ; then
11096 :
11097 else
11098 echo "*** Could not run GTK test program, checking why..."
11099 CFLAGS="$CFLAGS $GTK_CFLAGS"
11100 LIBS="$LIBS $GTK_LIBS"
11101 cat > conftest.$ac_ext <<EOF
11102#line 11103 "configure"
11103#include "confdefs.h"
11104
11105#include <gtk/gtk.h>
11106#include <stdio.h>
11107
11108int main() {
11109 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
11110; return 0; }
11111EOF
11112if { (eval echo configure:11113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11113 rm -rf conftest*
11114 echo "*** The test program compiled, but did not run. This usually means"
11115 echo "*** that the run-time linker is not finding GTK or finding the wrong"
11116 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
11117 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11118 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11119 echo "*** is required on your system"
11120 echo "***"
11121 echo "*** If you have an old version installed, it is best to remove it, although"
11122 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11123 echo "***"
11124 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
11125 echo "*** came with the system with the command"
11126 echo "***"
11127 echo "*** rpm --erase --nodeps gtk gtk-devel"
11128else
11129 echo "configure: failed program was:" >&5
11130 cat conftest.$ac_ext >&5
11131 rm -rf conftest*
11132 echo "*** The test program failed to compile or link. See the file config.log for the"
11133 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
11134 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
11135 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
11136fi
11137rm -f conftest*
11138 CFLAGS="$ac_save_CFLAGS"
11139 LIBS="$ac_save_LIBS"
11140 fi
11141 fi
11142 GTK_CFLAGS=""
11143 GTK_LIBS=""
11144 :
11145 fi
11146
11147
11148 rm -f conf.gtktest
11149
11150 fi
11151
11152 if test -z "$wx_cv_lib_gtk"; then
11153 wx_cv_lib_gtk=none
11154 else
11155 wx_cv_cflags_gtk=$GTK_CFLAGS
11156 wx_cv_libs_gtk=$GTK_LIBS
11157 fi
11158
11159
11160fi
11161
11162
11163 if test "$gtk_version_cached" = 1; then
11164 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
11165 fi
11166
11167 case "$wx_cv_lib_gtk" in
11168 2.0) WXGTK20=1
11169 ;;
11170 1.2.7) WXGTK127=1
11171 WXGTK12=1
11172 ;;
11173 1.2.3) WXGTK12=1
11174 ;;
11175 *) { echo "configure: error:
11176Please check that gtk-config is in path, the directory
11177where GTK+ libraries are installed (returned by
11178'gtk-config --libs' command) is in LD_LIBRARY_PATH or
11179equivalent variable and GTK+ is version 1.2.3 or above.
11180 " 1>&2; exit 1; }
11181 ;;
11182 esac
11183
11184 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11185 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
11186
11187 AFMINSTALL=afminstall
11188 TOOLKIT=GTK
11189 GUIDIST=GTK_DIST
11190
11191 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
11192echo "configure:11193: checking for gdk_im_open in -lgdk" >&5
11193ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
11194if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11195 echo $ac_n "(cached) $ac_c" 1>&6
11196else
11197 ac_save_LIBS="$LIBS"
11198LIBS="-lgdk $LIBS"
11199cat > conftest.$ac_ext <<EOF
11200#line 11201 "configure"
11201#include "confdefs.h"
11202/* Override any gcc2 internal prototype to avoid an error. */
11203/* We use char because int might match the return type of a gcc2
11204 builtin and then its argument prototype would still apply. */
11205char gdk_im_open();
11206
11207int main() {
11208gdk_im_open()
11209; return 0; }
11210EOF
11211if { (eval echo configure:11212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11212 rm -rf conftest*
11213 eval "ac_cv_lib_$ac_lib_var=yes"
11214else
11215 echo "configure: failed program was:" >&5
11216 cat conftest.$ac_ext >&5
11217 rm -rf conftest*
11218 eval "ac_cv_lib_$ac_lib_var=no"
11219fi
11220rm -f conftest*
11221LIBS="$ac_save_LIBS"
11222
11223fi
11224if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11225 echo "$ac_t""yes" 1>&6
11226 cat >> confdefs.h <<\EOF
11227#define HAVE_XIM 1
11228EOF
11229
11230else
11231 echo "$ac_t""no" 1>&6
11232fi
11233
11234 fi
11235
11236 if test "$wxUSE_MGL" = 1; then
11237 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
11238echo "configure:11239: checking for SciTech MGL library" >&5
11239 if test "x$MGL_ROOT" = x ; then
11240 echo "$ac_t""not found" 1>&6
11241 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
11242 else
11243 echo "$ac_t""$MGL_ROOT" 1>&6
11244 fi
11245
11246 case "${host}" in
11247 *-*-linux* )
11248 mgl_os=linux/gcc/glibc
11249 ;;
11250 *-pc-msdosdjgpp )
11251 mgl_os=dos32/dj2
11252 ;;
11253 *)
11254 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
11255 esac
11256
11257 mgl_lib_type=""
11258
11259 if test "$wxUSE_DEBUG_FLAG" = yes ; then
11260 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
11261 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
11262 mgl_lib_type=debug
11263 fi
11264 fi
11265 if test "x$mgl_lib_type" = x ; then
11266 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
11267 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
11268 mgl_lib_type=release
11269 else
11270 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
11271 fi
11272 fi
11273
11274 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
11275 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
11276
11277 AFMINSTALL=afminstall
11278 TOOLKIT=MGL
11279 GUIDIST=MGL_DIST
11280 fi
11281
11282 if test "$wxUSE_MICROWIN" = 1; then
11283 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
11284echo "configure:11285: checking for MicroWindows" >&5
11285 if test "x$MICROWINDOWS" = x ; then
11286 echo "$ac_t""not found" 1>&6
11287 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
11288 else
11289 echo "$ac_t""$MICROWINDOWS" 1>&6
11290 fi
11291
11292 if test -f $MICROWINDOWS/lib/libmwin.a; then
11293 echo "$ac_t""MicroWindows' libraries found." 1>&6
11294 else
11295 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
11296 fi
11297
11298 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
11299 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
11300
11301 AFMINSTALL=afminstall
11302 TOOLKIT=MICROWIN
11303 GUIDIST=MICROWIN_DIST
11304
11305 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
11306 fi
11307
11308 if test "$wxUSE_WINE" = 1; then
11309 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11310echo $ac_n "checking for windows.h""... $ac_c" 1>&6
11311echo "configure:11312: checking for windows.h" >&5
11312if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11313 echo $ac_n "(cached) $ac_c" 1>&6
11314else
11315 cat > conftest.$ac_ext <<EOF
11316#line 11317 "configure"
11317#include "confdefs.h"
11318#include <windows.h>
11319EOF
11320ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11321{ (eval echo configure:11322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11322ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11323if test -z "$ac_err"; then
11324 rm -rf conftest*
11325 eval "ac_cv_header_$ac_safe=yes"
11326else
11327 echo "$ac_err" >&5
11328 echo "configure: failed program was:" >&5
11329 cat conftest.$ac_ext >&5
11330 rm -rf conftest*
11331 eval "ac_cv_header_$ac_safe=no"
11332fi
11333rm -f conftest*
11334fi
11335if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11336 echo "$ac_t""yes" 1>&6
11337 :
11338else
11339 echo "$ac_t""no" 1>&6
11340
11341 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
11342
11343fi
11344
11345
11346 xpm_link=
11347 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
11348echo "configure:11349: checking for Xpm library" >&5
11349
11350ac_find_libraries=
11351for ac_dir in $SEARCH_LIB;
11352 do
11353 for ac_extension in a so sl dylib; do
11354 if test -f "$ac_dir/libXpm.$ac_extension"; then
11355 ac_find_libraries=$ac_dir
11356 break 2
11357 fi
11358 done
11359 done
11360
11361 if test "$ac_find_libraries" != "" ; then
11362 GUI_TK_LIBRARY="-L$ac_find_libraries"
11363 xpm_link=" -lXpm"
11364 cat >> confdefs.h <<\EOF
11365#define wxHAVE_LIB_XPM 1
11366EOF
11367
11368 echo "$ac_t""found at $ac_find_libraries" 1>&6
11369 else
11370 echo "$ac_t""no" 1>&6
11371 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
11372 fi
11373
11374 mesa_link=
11375 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
11376echo "configure:11377: checking for Mesa library" >&5
11377
11378ac_find_libraries=
11379for ac_dir in $SEARCH_LIB;
11380 do
11381 for ac_extension in a so sl dylib; do
11382 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
11383 ac_find_libraries=$ac_dir
11384 break 2
11385 fi
11386 done
11387 done
11388
11389 if test "$ac_find_libraries" != "" ; then
11390 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
11391 mesa_link=" -lMesaGL"
11392 echo "$ac_t""found at $ac_find_libraries" 1>&6
11393 else
11394 { echo "configure: error: no" 1>&2; exit 1; }
11395 fi
11396
11397 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
11398 TOOLKIT=MSW
11399 GUIDIST=MSW_DIST
11400 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
11401 fi
11402
11403 if test "$wxUSE_MOTIF" = 1; then
11404 # If we find X, set shell vars x_includes and x_libraries to the
11405# paths, otherwise set no_x=yes.
11406# Uses ac_ vars as temps to allow command line to override cache and checks.
11407# --without-x overrides everything else, but does not touch the cache.
11408echo $ac_n "checking for X""... $ac_c" 1>&6
11409echo "configure:11410: checking for X" >&5
11410
11411# Check whether --with-x or --without-x was given.
11412if test "${with_x+set}" = set; then
11413 withval="$with_x"
11414 :
11415fi
11416
11417# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11418if test "x$with_x" = xno; then
11419 # The user explicitly disabled X.
11420 have_x=disabled
11421else
11422 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11423 # Both variables are already set.
11424 have_x=yes
11425 else
11426if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
11427 echo $ac_n "(cached) $ac_c" 1>&6
11428else
11429 # One or both of the vars are not set, and there is no cached value.
11430ac_x_includes=NO ac_x_libraries=NO
11431rm -fr conftestdir
11432if mkdir conftestdir; then
11433 cd conftestdir
11434 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
11435 cat > Imakefile <<'EOF'
11436acfindx:
11437 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11438EOF
11439 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11440 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11441 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11442 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11443 for ac_extension in a so sl; do
11444 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
11445 test -f $ac_im_libdir/libX11.$ac_extension; then
11446 ac_im_usrlibdir=$ac_im_libdir; break
11447 fi
11448 done
11449 # Screen out bogus values from the imake configuration. They are
11450 # bogus both because they are the default anyway, and because
11451 # using them would break gcc on systems where it needs fixed includes.
11452 case "$ac_im_incroot" in
11453 /usr/include) ;;
11454 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
11455 esac
11456 case "$ac_im_usrlibdir" in
11457 /usr/lib | /lib) ;;
11458 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
11459 esac
11460 fi
11461 cd ..
11462 rm -fr conftestdir
11463fi
11464
11465if test "$ac_x_includes" = NO; then
11466 # Guess where to find include files, by looking for this one X11 .h file.
11467 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
11468
11469 # First, try using that file with no special directory specified.
11470cat > conftest.$ac_ext <<EOF
11471#line 11472 "configure"
11472#include "confdefs.h"
11473#include <$x_direct_test_include>
11474EOF
11475ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11476{ (eval echo configure:11477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11477ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11478if test -z "$ac_err"; then
11479 rm -rf conftest*
11480 # We can compile using X headers with no special include directory.
11481ac_x_includes=
11482else
11483 echo "$ac_err" >&5
11484 echo "configure: failed program was:" >&5
11485 cat conftest.$ac_ext >&5
11486 rm -rf conftest*
11487 # Look for the header file in a standard set of common directories.
11488# Check X11 before X11Rn because it is often a symlink to the current release.
11489 for ac_dir in \
11490 /usr/X11/include \
11491 /usr/X11R6/include \
11492 /usr/X11R5/include \
11493 /usr/X11R4/include \
11494 \
11495 /usr/include/X11 \
11496 /usr/include/X11R6 \
11497 /usr/include/X11R5 \
11498 /usr/include/X11R4 \
11499 \
11500 /usr/local/X11/include \
11501 /usr/local/X11R6/include \
11502 /usr/local/X11R5/include \
11503 /usr/local/X11R4/include \
11504 \
11505 /usr/local/include/X11 \
11506 /usr/local/include/X11R6 \
11507 /usr/local/include/X11R5 \
11508 /usr/local/include/X11R4 \
11509 \
11510 /usr/X386/include \
11511 /usr/x386/include \
11512 /usr/XFree86/include/X11 \
11513 \
11514 /usr/include \
11515 /usr/local/include \
11516 /usr/unsupported/include \
11517 /usr/athena/include \
11518 /usr/local/x11r5/include \
11519 /usr/lpp/Xamples/include \
11520 \
11521 /usr/openwin/include \
11522 /usr/openwin/share/include \
11523 ; \
11524 do
11525 if test -r "$ac_dir/$x_direct_test_include"; then
11526 ac_x_includes=$ac_dir
11527 break
11528 fi
11529 done
11530fi
11531rm -f conftest*
11532fi # $ac_x_includes = NO
11533
11534if test "$ac_x_libraries" = NO; then
11535 # Check for the libraries.
11536
11537 test -z "$x_direct_test_library" && x_direct_test_library=Xt
11538 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
11539
11540 # See if we find them without any special options.
11541 # Don't add to $LIBS permanently.
11542 ac_save_LIBS="$LIBS"
11543 LIBS="-l$x_direct_test_library $LIBS"
11544cat > conftest.$ac_ext <<EOF
11545#line 11546 "configure"
11546#include "confdefs.h"
11547
11548int main() {
11549${x_direct_test_function}()
11550; return 0; }
11551EOF
11552if { (eval echo configure:11553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11553 rm -rf conftest*
11554 LIBS="$ac_save_LIBS"
11555# We can link X programs with no special library path.
11556ac_x_libraries=
11557else
11558 echo "configure: failed program was:" >&5
11559 cat conftest.$ac_ext >&5
11560 rm -rf conftest*
11561 LIBS="$ac_save_LIBS"
11562# First see if replacing the include by lib works.
11563# Check X11 before X11Rn because it is often a symlink to the current release.
11564for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
11565 /usr/X11/lib \
11566 /usr/X11R6/lib \
11567 /usr/X11R5/lib \
11568 /usr/X11R4/lib \
11569 \
11570 /usr/lib/X11 \
11571 /usr/lib/X11R6 \
11572 /usr/lib/X11R5 \
11573 /usr/lib/X11R4 \
11574 \
11575 /usr/local/X11/lib \
11576 /usr/local/X11R6/lib \
11577 /usr/local/X11R5/lib \
11578 /usr/local/X11R4/lib \
11579 \
11580 /usr/local/lib/X11 \
11581 /usr/local/lib/X11R6 \
11582 /usr/local/lib/X11R5 \
11583 /usr/local/lib/X11R4 \
11584 \
11585 /usr/X386/lib \
11586 /usr/x386/lib \
11587 /usr/XFree86/lib/X11 \
11588 \
11589 /usr/lib \
11590 /usr/local/lib \
11591 /usr/unsupported/lib \
11592 /usr/athena/lib \
11593 /usr/local/x11r5/lib \
11594 /usr/lpp/Xamples/lib \
11595 /lib/usr/lib/X11 \
11596 \
11597 /usr/openwin/lib \
11598 /usr/openwin/share/lib \
11599 ; \
11600do
11601 for ac_extension in a so sl; do
11602 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
11603 ac_x_libraries=$ac_dir
11604 break 2
11605 fi
11606 done
11607done
11608fi
11609rm -f conftest*
11610fi # $ac_x_libraries = NO
11611
11612if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
11613 # Didn't find X anywhere. Cache the known absence of X.
11614 ac_cv_have_x="have_x=no"
11615else
11616 # Record where we found X for the cache.
11617 ac_cv_have_x="have_x=yes \
11618 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11619fi
11620fi
11621 fi
11622 eval "$ac_cv_have_x"
11623fi # $with_x != no
11624
11625if test "$have_x" != yes; then
11626 echo "$ac_t""$have_x" 1>&6
11627 no_x=yes
11628else
11629 # If each of the values was on the command line, it overrides each guess.
11630 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11631 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11632 # Update the cache value to reflect the command line values.
11633 ac_cv_have_x="have_x=yes \
11634 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
11635 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
11636fi
11637
11638if test "$no_x" = yes; then
11639 # Not all programs may use this symbol, but it does not hurt to define it.
11640 cat >> confdefs.h <<\EOF
11641#define X_DISPLAY_MISSING 1
11642EOF
11643
11644 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11645else
11646 if test -n "$x_includes"; then
11647 X_CFLAGS="$X_CFLAGS -I$x_includes"
11648 fi
11649
11650 # It would also be nice to do this for all -L options, not just this one.
11651 if test -n "$x_libraries"; then
11652 X_LIBS="$X_LIBS -L$x_libraries"
11653 # For Solaris; some versions of Sun CC require a space after -R and
11654 # others require no space. Words are not sufficient . . . .
11655 case "`(uname -sr) 2>/dev/null`" in
11656 "SunOS 5"*)
11657 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
11658echo "configure:11659: checking whether -R must be followed by a space" >&5
11659 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
11660 cat > conftest.$ac_ext <<EOF
11661#line 11662 "configure"
11662#include "confdefs.h"
11663
11664int main() {
11665
11666; return 0; }
11667EOF
11668if { (eval echo configure:11669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11669 rm -rf conftest*
11670 ac_R_nospace=yes
11671else
11672 echo "configure: failed program was:" >&5
11673 cat conftest.$ac_ext >&5
11674 rm -rf conftest*
11675 ac_R_nospace=no
11676fi
11677rm -f conftest*
11678 if test $ac_R_nospace = yes; then
11679 echo "$ac_t""no" 1>&6
11680 X_LIBS="$X_LIBS -R$x_libraries"
11681 else
11682 LIBS="$ac_xsave_LIBS -R $x_libraries"
11683 cat > conftest.$ac_ext <<EOF
11684#line 11685 "configure"
11685#include "confdefs.h"
11686
11687int main() {
11688
11689; return 0; }
11690EOF
11691if { (eval echo configure:11692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11692 rm -rf conftest*
11693 ac_R_space=yes
11694else
11695 echo "configure: failed program was:" >&5
11696 cat conftest.$ac_ext >&5
11697 rm -rf conftest*
11698 ac_R_space=no
11699fi
11700rm -f conftest*
11701 if test $ac_R_space = yes; then
11702 echo "$ac_t""yes" 1>&6
11703 X_LIBS="$X_LIBS -R $x_libraries"
11704 else
11705 echo "$ac_t""neither works" 1>&6
11706 fi
11707 fi
11708 LIBS="$ac_xsave_LIBS"
11709 esac
11710 fi
11711
11712 # Check for system-dependent libraries X programs must link with.
11713 # Do this before checking for the system-independent R6 libraries
11714 # (-lICE), since we may need -lsocket or whatever for X linking.
11715
11716 if test "$ISC" = yes; then
11717 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11718 else
11719 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
11720 # libraries were built with DECnet support. And karl@cs.umb.edu says
11721 # the Alpha needs dnet_stub (dnet does not exist).
11722 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
11723echo "configure:11724: checking for dnet_ntoa in -ldnet" >&5
11724ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11725if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11726 echo $ac_n "(cached) $ac_c" 1>&6
11727else
11728 ac_save_LIBS="$LIBS"
11729LIBS="-ldnet $LIBS"
11730cat > conftest.$ac_ext <<EOF
11731#line 11732 "configure"
11732#include "confdefs.h"
11733/* Override any gcc2 internal prototype to avoid an error. */
11734/* We use char because int might match the return type of a gcc2
11735 builtin and then its argument prototype would still apply. */
11736char dnet_ntoa();
11737
11738int main() {
11739dnet_ntoa()
11740; return 0; }
11741EOF
11742if { (eval echo configure:11743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11743 rm -rf conftest*
11744 eval "ac_cv_lib_$ac_lib_var=yes"
11745else
11746 echo "configure: failed program was:" >&5
11747 cat conftest.$ac_ext >&5
11748 rm -rf conftest*
11749 eval "ac_cv_lib_$ac_lib_var=no"
11750fi
11751rm -f conftest*
11752LIBS="$ac_save_LIBS"
11753
11754fi
11755if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11756 echo "$ac_t""yes" 1>&6
11757 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11758else
11759 echo "$ac_t""no" 1>&6
11760fi
11761
11762 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11763 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
11764echo "configure:11765: checking for dnet_ntoa in -ldnet_stub" >&5
11765ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11766if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11767 echo $ac_n "(cached) $ac_c" 1>&6
11768else
11769 ac_save_LIBS="$LIBS"
11770LIBS="-ldnet_stub $LIBS"
11771cat > conftest.$ac_ext <<EOF
11772#line 11773 "configure"
11773#include "confdefs.h"
11774/* Override any gcc2 internal prototype to avoid an error. */
11775/* We use char because int might match the return type of a gcc2
11776 builtin and then its argument prototype would still apply. */
11777char dnet_ntoa();
11778
11779int main() {
11780dnet_ntoa()
11781; return 0; }
11782EOF
11783if { (eval echo configure:11784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11784 rm -rf conftest*
11785 eval "ac_cv_lib_$ac_lib_var=yes"
11786else
11787 echo "configure: failed program was:" >&5
11788 cat conftest.$ac_ext >&5
11789 rm -rf conftest*
11790 eval "ac_cv_lib_$ac_lib_var=no"
11791fi
11792rm -f conftest*
11793LIBS="$ac_save_LIBS"
11794
11795fi
11796if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11797 echo "$ac_t""yes" 1>&6
11798 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
11799else
11800 echo "$ac_t""no" 1>&6
11801fi
11802
11803 fi
11804
11805 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11806 # to get the SysV transport functions.
11807 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
11808 # needs -lnsl.
11809 # The nsl library prevents programs from opening the X display
11810 # on Irix 5.2, according to dickey@clark.net.
11811 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
11812echo "configure:11813: checking for gethostbyname" >&5
11813if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
11814 echo $ac_n "(cached) $ac_c" 1>&6
11815else
11816 cat > conftest.$ac_ext <<EOF
11817#line 11818 "configure"
11818#include "confdefs.h"
11819/* System header to define __stub macros and hopefully few prototypes,
11820 which can conflict with char gethostbyname(); below. */
11821#include <assert.h>
11822/* Override any gcc2 internal prototype to avoid an error. */
11823/* We use char because int might match the return type of a gcc2
11824 builtin and then its argument prototype would still apply. */
11825char gethostbyname();
11826
11827int main() {
11828
11829/* The GNU C library defines this for functions which it implements
11830 to always fail with ENOSYS. Some functions are actually named
11831 something starting with __ and the normal name is an alias. */
11832#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11833choke me
11834#else
11835gethostbyname();
11836#endif
11837
11838; return 0; }
11839EOF
11840if { (eval echo configure:11841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11841 rm -rf conftest*
11842 eval "ac_cv_func_gethostbyname=yes"
11843else
11844 echo "configure: failed program was:" >&5
11845 cat conftest.$ac_ext >&5
11846 rm -rf conftest*
11847 eval "ac_cv_func_gethostbyname=no"
11848fi
11849rm -f conftest*
11850fi
11851
11852if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
11853 echo "$ac_t""yes" 1>&6
11854 :
11855else
11856 echo "$ac_t""no" 1>&6
11857fi
11858
11859 if test $ac_cv_func_gethostbyname = no; then
11860 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
11861echo "configure:11862: checking for gethostbyname in -lnsl" >&5
11862ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
11863if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11864 echo $ac_n "(cached) $ac_c" 1>&6
11865else
11866 ac_save_LIBS="$LIBS"
11867LIBS="-lnsl $LIBS"
11868cat > conftest.$ac_ext <<EOF
11869#line 11870 "configure"
11870#include "confdefs.h"
11871/* Override any gcc2 internal prototype to avoid an error. */
11872/* We use char because int might match the return type of a gcc2
11873 builtin and then its argument prototype would still apply. */
11874char gethostbyname();
11875
11876int main() {
11877gethostbyname()
11878; return 0; }
11879EOF
11880if { (eval echo configure:11881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11881 rm -rf conftest*
11882 eval "ac_cv_lib_$ac_lib_var=yes"
11883else
11884 echo "configure: failed program was:" >&5
11885 cat conftest.$ac_ext >&5
11886 rm -rf conftest*
11887 eval "ac_cv_lib_$ac_lib_var=no"
11888fi
11889rm -f conftest*
11890LIBS="$ac_save_LIBS"
11891
11892fi
11893if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11894 echo "$ac_t""yes" 1>&6
11895 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11896else
11897 echo "$ac_t""no" 1>&6
11898fi
11899
11900 fi
11901
11902 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11903 # socket/setsockopt and other routines are undefined under SCO ODT
11904 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
11905 # on later versions), says simon@lia.di.epfl.ch: it contains
11906 # gethostby* variants that don't use the nameserver (or something).
11907 # -lsocket must be given before -lnsl if both are needed.
11908 # We assume that if connect needs -lnsl, so does gethostbyname.
11909 echo $ac_n "checking for connect""... $ac_c" 1>&6
11910echo "configure:11911: checking for connect" >&5
11911if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
11912 echo $ac_n "(cached) $ac_c" 1>&6
11913else
11914 cat > conftest.$ac_ext <<EOF
11915#line 11916 "configure"
11916#include "confdefs.h"
11917/* System header to define __stub macros and hopefully few prototypes,
11918 which can conflict with char connect(); below. */
11919#include <assert.h>
11920/* Override any gcc2 internal prototype to avoid an error. */
11921/* We use char because int might match the return type of a gcc2
11922 builtin and then its argument prototype would still apply. */
11923char connect();
11924
11925int main() {
11926
11927/* The GNU C library defines this for functions which it implements
11928 to always fail with ENOSYS. Some functions are actually named
11929 something starting with __ and the normal name is an alias. */
11930#if defined (__stub_connect) || defined (__stub___connect)
11931choke me
11932#else
11933connect();
11934#endif
11935
11936; return 0; }
11937EOF
11938if { (eval echo configure:11939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11939 rm -rf conftest*
11940 eval "ac_cv_func_connect=yes"
11941else
11942 echo "configure: failed program was:" >&5
11943 cat conftest.$ac_ext >&5
11944 rm -rf conftest*
11945 eval "ac_cv_func_connect=no"
11946fi
11947rm -f conftest*
11948fi
11949
11950if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
11951 echo "$ac_t""yes" 1>&6
11952 :
11953else
11954 echo "$ac_t""no" 1>&6
11955fi
11956
11957 if test $ac_cv_func_connect = no; then
11958 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
11959echo "configure:11960: checking for connect in -lsocket" >&5
11960ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
11961if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11962 echo $ac_n "(cached) $ac_c" 1>&6
11963else
11964 ac_save_LIBS="$LIBS"
11965LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
11966cat > conftest.$ac_ext <<EOF
11967#line 11968 "configure"
11968#include "confdefs.h"
11969/* Override any gcc2 internal prototype to avoid an error. */
11970/* We use char because int might match the return type of a gcc2
11971 builtin and then its argument prototype would still apply. */
11972char connect();
11973
11974int main() {
11975connect()
11976; return 0; }
11977EOF
11978if { (eval echo configure:11979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11979 rm -rf conftest*
11980 eval "ac_cv_lib_$ac_lib_var=yes"
11981else
11982 echo "configure: failed program was:" >&5
11983 cat conftest.$ac_ext >&5
11984 rm -rf conftest*
11985 eval "ac_cv_lib_$ac_lib_var=no"
11986fi
11987rm -f conftest*
11988LIBS="$ac_save_LIBS"
11989
11990fi
11991if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11992 echo "$ac_t""yes" 1>&6
11993 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
11994else
11995 echo "$ac_t""no" 1>&6
11996fi
11997
11998 fi
11999
12000 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
12001 echo $ac_n "checking for remove""... $ac_c" 1>&6
12002echo "configure:12003: checking for remove" >&5
12003if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
12004 echo $ac_n "(cached) $ac_c" 1>&6
12005else
12006 cat > conftest.$ac_ext <<EOF
12007#line 12008 "configure"
12008#include "confdefs.h"
12009/* System header to define __stub macros and hopefully few prototypes,
12010 which can conflict with char remove(); below. */
12011#include <assert.h>
12012/* Override any gcc2 internal prototype to avoid an error. */
12013/* We use char because int might match the return type of a gcc2
12014 builtin and then its argument prototype would still apply. */
12015char remove();
12016
12017int main() {
12018
12019/* The GNU C library defines this for functions which it implements
12020 to always fail with ENOSYS. Some functions are actually named
12021 something starting with __ and the normal name is an alias. */
12022#if defined (__stub_remove) || defined (__stub___remove)
12023choke me
12024#else
12025remove();
12026#endif
12027
12028; return 0; }
12029EOF
12030if { (eval echo configure:12031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12031 rm -rf conftest*
12032 eval "ac_cv_func_remove=yes"
12033else
12034 echo "configure: failed program was:" >&5
12035 cat conftest.$ac_ext >&5
12036 rm -rf conftest*
12037 eval "ac_cv_func_remove=no"
12038fi
12039rm -f conftest*
12040fi
12041
12042if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
12043 echo "$ac_t""yes" 1>&6
12044 :
12045else
12046 echo "$ac_t""no" 1>&6
12047fi
12048
12049 if test $ac_cv_func_remove = no; then
12050 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
12051echo "configure:12052: checking for remove in -lposix" >&5
12052ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
12053if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12054 echo $ac_n "(cached) $ac_c" 1>&6
12055else
12056 ac_save_LIBS="$LIBS"
12057LIBS="-lposix $LIBS"
12058cat > conftest.$ac_ext <<EOF
12059#line 12060 "configure"
12060#include "confdefs.h"
12061/* Override any gcc2 internal prototype to avoid an error. */
12062/* We use char because int might match the return type of a gcc2
12063 builtin and then its argument prototype would still apply. */
12064char remove();
12065
12066int main() {
12067remove()
12068; return 0; }
12069EOF
12070if { (eval echo configure:12071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12071 rm -rf conftest*
12072 eval "ac_cv_lib_$ac_lib_var=yes"
12073else
12074 echo "configure: failed program was:" >&5
12075 cat conftest.$ac_ext >&5
12076 rm -rf conftest*
12077 eval "ac_cv_lib_$ac_lib_var=no"
12078fi
12079rm -f conftest*
12080LIBS="$ac_save_LIBS"
12081
12082fi
12083if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12084 echo "$ac_t""yes" 1>&6
12085 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12086else
12087 echo "$ac_t""no" 1>&6
12088fi
12089
12090 fi
12091
12092 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12093 echo $ac_n "checking for shmat""... $ac_c" 1>&6
12094echo "configure:12095: checking for shmat" >&5
12095if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
12096 echo $ac_n "(cached) $ac_c" 1>&6
12097else
12098 cat > conftest.$ac_ext <<EOF
12099#line 12100 "configure"
12100#include "confdefs.h"
12101/* System header to define __stub macros and hopefully few prototypes,
12102 which can conflict with char shmat(); below. */
12103#include <assert.h>
12104/* Override any gcc2 internal prototype to avoid an error. */
12105/* We use char because int might match the return type of a gcc2
12106 builtin and then its argument prototype would still apply. */
12107char shmat();
12108
12109int main() {
12110
12111/* The GNU C library defines this for functions which it implements
12112 to always fail with ENOSYS. Some functions are actually named
12113 something starting with __ and the normal name is an alias. */
12114#if defined (__stub_shmat) || defined (__stub___shmat)
12115choke me
12116#else
12117shmat();
12118#endif
12119
12120; return 0; }
12121EOF
12122if { (eval echo configure:12123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12123 rm -rf conftest*
12124 eval "ac_cv_func_shmat=yes"
12125else
12126 echo "configure: failed program was:" >&5
12127 cat conftest.$ac_ext >&5
12128 rm -rf conftest*
12129 eval "ac_cv_func_shmat=no"
12130fi
12131rm -f conftest*
12132fi
12133
12134if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
12135 echo "$ac_t""yes" 1>&6
12136 :
12137else
12138 echo "$ac_t""no" 1>&6
12139fi
12140
12141 if test $ac_cv_func_shmat = no; then
12142 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
12143echo "configure:12144: checking for shmat in -lipc" >&5
12144ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
12145if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12146 echo $ac_n "(cached) $ac_c" 1>&6
12147else
12148 ac_save_LIBS="$LIBS"
12149LIBS="-lipc $LIBS"
12150cat > conftest.$ac_ext <<EOF
12151#line 12152 "configure"
12152#include "confdefs.h"
12153/* Override any gcc2 internal prototype to avoid an error. */
12154/* We use char because int might match the return type of a gcc2
12155 builtin and then its argument prototype would still apply. */
12156char shmat();
12157
12158int main() {
12159shmat()
12160; return 0; }
12161EOF
12162if { (eval echo configure:12163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12163 rm -rf conftest*
12164 eval "ac_cv_lib_$ac_lib_var=yes"
12165else
12166 echo "configure: failed program was:" >&5
12167 cat conftest.$ac_ext >&5
12168 rm -rf conftest*
12169 eval "ac_cv_lib_$ac_lib_var=no"
12170fi
12171rm -f conftest*
12172LIBS="$ac_save_LIBS"
12173
12174fi
12175if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12176 echo "$ac_t""yes" 1>&6
12177 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12178else
12179 echo "$ac_t""no" 1>&6
12180fi
12181
12182 fi
12183 fi
12184
12185 # Check for libraries that X11R6 Xt/Xaw programs need.
12186 ac_save_LDFLAGS="$LDFLAGS"
12187 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12188 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12189 # check for ICE first), but we must link in the order -lSM -lICE or
12190 # we get undefined symbols. So assume we have SM if we have ICE.
12191 # These have to be linked with before -lX11, unlike the other
12192 # libraries we check for below, so use a different variable.
12193 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
12194 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
12195echo "configure:12196: checking for IceConnectionNumber in -lICE" >&5
12196ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
12197if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12198 echo $ac_n "(cached) $ac_c" 1>&6
12199else
12200 ac_save_LIBS="$LIBS"
12201LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12202cat > conftest.$ac_ext <<EOF
12203#line 12204 "configure"
12204#include "confdefs.h"
12205/* Override any gcc2 internal prototype to avoid an error. */
12206/* We use char because int might match the return type of a gcc2
12207 builtin and then its argument prototype would still apply. */
12208char IceConnectionNumber();
12209
12210int main() {
12211IceConnectionNumber()
12212; return 0; }
12213EOF
12214if { (eval echo configure:12215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12215 rm -rf conftest*
12216 eval "ac_cv_lib_$ac_lib_var=yes"
12217else
12218 echo "configure: failed program was:" >&5
12219 cat conftest.$ac_ext >&5
12220 rm -rf conftest*
12221 eval "ac_cv_lib_$ac_lib_var=no"
12222fi
12223rm -f conftest*
12224LIBS="$ac_save_LIBS"
12225
12226fi
12227if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12228 echo "$ac_t""yes" 1>&6
12229 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12230else
12231 echo "$ac_t""no" 1>&6
12232fi
12233
12234 LDFLAGS="$ac_save_LDFLAGS"
12235
12236fi
12237
12238
12239 if test "$no_x" = "yes"; then
12240 { echo "configure: error: X11 not found" 1>&2; exit 1; }
12241 fi
12242
12243 GUI_TK_LIBRARY="$X_LIBS"
12244 TOOLKIT_INCLUDE="$X_CFLAGS"
12245 AFMINSTALL=afminstall
12246 COMPILED_X_PROGRAM=0
12247
12248 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
12249echo "configure:12250: checking for Motif/Lesstif headers" >&5
12250
12251ac_find_includes=
12252for ac_dir in $SEARCH_INCLUDE;
12253 do
12254 if test -f "$ac_dir/Xm/Xm.h"; then
12255 ac_find_includes=$ac_dir
12256 break
12257 fi
12258 done
12259
12260 if test "$ac_find_includes" != "" ; then
12261 echo "$ac_t""found $ac_find_includes" 1>&6
12262 else
12263 cat > conftest.$ac_ext <<EOF
12264#line 12265 "configure"
12265#include "confdefs.h"
12266
12267 #include <Xm/Xm.h>
12268
12269int main() {
12270
12271 int version;
12272 version = xmUseVersion;
12273
12274; return 0; }
12275EOF
12276if { (eval echo configure:12277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12277 rm -rf conftest*
12278
12279 echo "$ac_t""found in default search path" 1>&6
12280 COMPILED_X_PROGRAM=1
12281
12282else
12283 echo "configure: failed program was:" >&5
12284 cat conftest.$ac_ext >&5
12285 rm -rf conftest*
12286
12287 echo "$ac_t""no" 1>&6
12288 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
12289
12290
12291fi
12292rm -f conftest*
12293 fi
12294
12295 if test "$COMPILED_X_PROGRAM" = 0; then
12296 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
12297echo "configure:12298: checking for Motif/Lesstif library" >&5
12298
12299ac_find_libraries=
12300for ac_dir in $SEARCH_LIB;
12301 do
12302 for ac_extension in a so sl dylib; do
12303 if test -f "$ac_dir/libXm.$ac_extension"; then
12304 ac_find_libraries=$ac_dir
12305 break 2
12306 fi
12307 done
12308 done
12309
12310 if test "$ac_find_libraries" != "" ; then
12311
12312 ac_path_to_include=$ac_find_includes
12313 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
12314 result=$?
12315 if test $result = 0; then
12316 ac_path_to_include=""
12317 else
12318 ac_path_to_include=" -I$ac_find_includes"
12319 fi
12320
12321
12322 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12323 result=$?
12324 if test $result = 0; then
12325 ac_path_to_link=""
12326 else
12327 ac_path_to_link=" -L$ac_find_libraries"
12328 fi
12329
12330
12331 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
12332 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
12333 echo "$ac_t""found at $ac_find_libraries" 1>&6
12334 else
12335 cat > conftest.$ac_ext <<EOF
12336#line 12337 "configure"
12337#include "confdefs.h"
12338
12339 #include <Xm/Xm.h>
12340
12341int main() {
12342
12343 int version;
12344 version = xmUseVersion;
12345
12346; return 0; }
12347EOF
12348if { (eval echo configure:12349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12349 rm -rf conftest*
12350
12351 echo "$ac_t""found in default search path" 1>&6
12352 COMPILED_X_PROGRAM=1
12353
12354else
12355 echo "configure: failed program was:" >&5
12356 cat conftest.$ac_ext >&5
12357 rm -rf conftest*
12358
12359 echo "$ac_t""no" 1>&6
12360 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
12361
12362
12363fi
12364rm -f conftest*
12365 fi
12366 fi
12367
12368 xpm_link=
12369 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
12370echo "configure:12371: checking for Xpm library" >&5
12371
12372ac_find_libraries=
12373for ac_dir in $SEARCH_LIB;
12374 do
12375 for ac_extension in a so sl dylib; do
12376 if test -f "$ac_dir/libXpm.$ac_extension"; then
12377 ac_find_libraries=$ac_dir
12378 break 2
12379 fi
12380 done
12381 done
12382
12383 if test "$ac_find_libraries" != "" ; then
12384
12385 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12386 result=$?
12387 if test $result = 0; then
12388 ac_path_to_link=""
12389 else
12390 ac_path_to_link=" -L$ac_find_libraries"
12391 fi
12392
12393 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
12394 xpm_link=" -lXpm"
12395 cat >> confdefs.h <<\EOF
12396#define wxHAVE_LIB_XPM 1
12397EOF
12398
12399 echo "$ac_t""found at $ac_find_libraries" 1>&6
12400 else
12401 cat > conftest.$ac_ext <<EOF
12402#line 12403 "configure"
12403#include "confdefs.h"
12404
12405 #include <X11/xpm.h>
12406
12407int main() {
12408
12409 int version;
12410 version = XpmLibraryVersion();
12411
12412; return 0; }
12413EOF
12414if { (eval echo configure:12415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12415 rm -rf conftest*
12416
12417 xpm_link=" -lXpm"
12418 cat >> confdefs.h <<\EOF
12419#define wxHAVE_LIB_XPM 1
12420EOF
12421
12422 echo "$ac_t""found in default search path" 1>&6
12423 COMPILED_X_PROGRAM=0
12424
12425else
12426 echo "configure: failed program was:" >&5
12427 cat conftest.$ac_ext >&5
12428 rm -rf conftest*
12429
12430 echo "$ac_t""no" 1>&6
12431 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12432
12433
12434fi
12435rm -f conftest*
12436 fi
12437
12438 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
12439 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
12440 TOOLKIT=MOTIF
12441 GUIDIST=MOTIF_DIST
12442 fi
12443
12444 if test "$wxUSE_MAC" = 1; then
12445 if test "$wxUSE_PRECOMP" = "yes"; then
12446 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12447 fi
12448 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
12449 CFLAGS="$CFLAGS -fpascal-strings"
12450 CXXFLAGS="$CXXFLAGS -fpascal-strings"
12451
12452 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
12453 TOOLKIT=MAC
12454 GUIDIST=MACX_DIST
12455 fi
12456
12457 if test "$wxUSE_PM" = 1; then
12458 TOOLKIT=PM
12459 GUIDIST=GTK_DIST
12460 fi
12461
12462 if test "$TOOLKIT" = "PM" ; then
12463 TOOLKIT_DIR="os2"
12464 else
12465 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
12466 fi
12467
12468 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
12469
12470 if test "$wxUSE_UNIVERSAL" = "yes"; then
12471 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
12472 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
12473 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
12474 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
12475 WIDGET_SET=univ
12476 else
12477 ALL_OBJECTS="\$(GUIOBJS)"
12478 fi
12479
12480 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
12481
12482 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
12483 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
12484 fi
12485
12486 if test "$wxUSE_HTML" = "yes"; then
12487 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
12488 fi
12489
12490 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
12491 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
12492 fi
12493 if test "$wxUSE_LIBJPEG" = "builtin" ; then
12494 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
12495 fi
12496 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12497 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
12498 fi
12499 if test "$wxUSE_LIBPNG" = "builtin" ; then
12500 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
12501 fi
12502 if test "$wxUSE_FREETYPE" = "builtin" ; then
12503 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
12504 fi
12505
12506 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
12507 DISTDIR="wx\$(TOOLKIT)"
12508else
12509 USE_GUI=0
12510
12511 TOOLKIT_DIR="base"
12512
12513 if test "$USE_WIN32" = 1 ; then
12514 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
12515 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
12516
12517 TOOLKIT="MSW"
12518 else
12519 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
12520 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
12521 fi
12522
12523 PORT_FILES="\${top_srcdir}/src/files.lst"
12524
12525 GUIDIST="BASE_DIST"
12526 DISTDIR="wxBase"
12527fi
12528
12529if test "$wxUSE_REGEX" = "builtin" ; then
12530 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
12531fi
12532if test "$wxUSE_ZLIB" = "builtin" ; then
12533 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
12534fi
12535
12536if test "$wxUSE_OPENGL" = "yes"; then
12537 if test "$wxUSE_MAC" = 1; then
12538 OPENGL_LIBS="-framework OpenGL -framework AGL"
12539 else
12540
12541 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
12542echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
12543echo "configure:12544: checking for GL/gl.h" >&5
12544if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12545 echo $ac_n "(cached) $ac_c" 1>&6
12546else
12547 cat > conftest.$ac_ext <<EOF
12548#line 12549 "configure"
12549#include "confdefs.h"
12550#include <GL/gl.h>
12551EOF
12552ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12553{ (eval echo configure:12554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12554ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12555if test -z "$ac_err"; then
12556 rm -rf conftest*
12557 eval "ac_cv_header_$ac_safe=yes"
12558else
12559 echo "$ac_err" >&5
12560 echo "configure: failed program was:" >&5
12561 cat conftest.$ac_ext >&5
12562 rm -rf conftest*
12563 eval "ac_cv_header_$ac_safe=no"
12564fi
12565rm -f conftest*
12566fi
12567if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12568 echo "$ac_t""yes" 1>&6
12569
12570 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
12571echo "configure:12572: checking for -lGL" >&5
12572
12573ac_find_libraries=
12574for ac_dir in $SEARCH_LIB;
12575 do
12576 for ac_extension in a so sl dylib; do
12577 if test -f "$ac_dir/libGL.$ac_extension"; then
12578 ac_find_libraries=$ac_dir
12579 break 2
12580 fi
12581 done
12582 done
12583
12584 if test "$ac_find_libraries" != "" ; then
12585
12586 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
12587 result=$?
12588 if test $result = 0; then
12589 ac_path_to_link=""
12590 else
12591 ac_path_to_link=" -L$ac_find_libraries"
12592 fi
12593
12594 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
12595 OPENGL_LIBS="-lGL -lGLU"
12596 echo "$ac_t""yes" 1>&6
12597 else
12598 echo "$ac_t""no" 1>&6
12599 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
12600echo "configure:12601: checking for -lMesaGL" >&5
12601
12602ac_find_libraries=
12603for ac_dir in $SEARCH_LIB;
12604 do
12605 for ac_extension in a so sl dylib; do
12606 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
12607 ac_find_libraries=$ac_dir
12608 break 2
12609 fi
12610 done
12611 done
12612
12613 if test "$ac_find_libraries" != "" ; then
12614
12615 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
12616 result=$?
12617 if test $result = 0; then
12618 ac_path_to_link=""
12619 else
12620 ac_path_to_link=" -L$ac_find_libraries"
12621 fi
12622
12623 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
12624 OPENGL_LIBS="-lMesaGL -lMesaGLU"
12625 echo "$ac_t""yes" 1>&6
12626 else
12627 echo "$ac_t""no" 1>&6
12628 fi
12629 fi
12630
12631else
12632 echo "$ac_t""no" 1>&6
12633fi
12634
12635
12636
12637# AC_CHECK_HEADER(GL/gl.h,
12638# [
12639# AC_CHECK_LIB(GL, glFlush,
12640# [
12641# OPENGL_LIBS="-lGL -lGLU"
12642# ],
12643# [
12644# AC_CHECK_LIB(MesaGL, glFlush,
12645# [
12646# OPENGL_LIBS="-lMesaGL -lMesaGLU"
12647# ],
12648# [],
12649# [-lm])
12650# ],
12651# [-lm])
12652# ])
12653
12654 if test "x$OPENGL_LIBS" = "x"; then
12655 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
12656 fi
12657 fi
12658
12659 if test "$wxUSE_OPENGL" = "yes"; then
12660 cat >> confdefs.h <<\EOF
12661#define wxUSE_OPENGL 1
12662EOF
12663
12664 cat >> confdefs.h <<\EOF
12665#define wxUSE_GLCANVAS 1
12666EOF
12667
12668 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
12669 fi
12670fi
12671
12672if test -z "$TOOLKIT_VPATH" ; then
12673 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
12674fi
12675
12676if test -n "$TOOLKIT" ; then
12677 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
12678fi
12679
12680lib_unicode_suffix=
12681if test "$wxUSE_UNICODE" = "yes"; then
12682 lib_unicode_suffix=u
12683fi
12684
12685lib_debug_suffix=
12686if test "$wxUSE_DEBUG_FLAG" = "yes"; then
12687 lib_debug_suffix=d
12688fi
12689
12690TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
12691TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
12692
12693if test "$cross_compiling" = "yes"; then
12694 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
12695 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
12696fi
12697
12698WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
12699WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
12700
12701WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
12702WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
12703
12704WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
12705WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
12706WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
12707WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
12708
12709WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
12710WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
12711
12712case "${host}" in
12713 *-*-cygwin* | *-*-mingw32* )
12714
12715
12716
12717 if test "$cross_compiling" != "yes"; then
12718 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
12719 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
12720 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
12721 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
12722 else
12723 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
12724 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
12725 fi
12726
12727esac
12728
12729WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
12730WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
12731
12732WXCONFIG_LIBS="-l${WX_LIBRARY}"
12733WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
12734
12735if test "$wxUSE_OPENGL" = "yes"; then
12736 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
12737 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
12738fi
12739
12740
12741
12742if test "$wxUSE_SHARED" = "yes"; then
12743
12744 if test "$wxUSE_OPENGL" = "yes"; then
12745 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
12746 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
12747 else
12748 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
12749 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
12750 fi
12751
12752 if test "$GCC" = "yes"; then
12753 PIC_FLAG="-fPIC"
12754 fi
12755
12756 SHARED_LD="${CXX} -shared -o"
12757
12758 case "${host}" in
12759 *-hp-hpux* )
12760 if test "$GCC" == "yes"; then
12761 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
12762 else
12763 LDFLAGS="$LDFLAGS -L/usr/lib"
12764
12765 SHARED_LD="${CXX} -b -o"
12766 PIC_FLAG="+Z"
12767 fi
12768
12769 if test "$wxUSE_OPENGL" = "yes"; then
12770 WX_ALL_INSTALLED="preinstall_gl"
12771 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
12772 else
12773 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
12774 fi
12775 ;;
12776
12777 *-*-linux* )
12778 if test "$GCC" != "yes"; then
12779 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
12780echo "configure:12781: checking for Intel compiler" >&5
12781if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
12782 echo $ac_n "(cached) $ac_c" 1>&6
12783else
12784
12785 cat > conftest.$ac_ext <<EOF
12786#line 12787 "configure"
12787#include "confdefs.h"
12788
12789int main() {
12790
12791 #ifndef __INTEL_COMPILER
12792 #error Not icc
12793 #endif
12794
12795; return 0; }
12796EOF
12797if { (eval echo configure:12798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12798 rm -rf conftest*
12799 wx_cv_prog_icc=yes
12800else
12801 echo "configure: failed program was:" >&5
12802 cat conftest.$ac_ext >&5
12803 rm -rf conftest*
12804 wx_cv_prog_icc=no
12805
12806fi
12807rm -f conftest*
12808
12809fi
12810
12811echo "$ac_t""$wx_cv_prog_icc" 1>&6
12812 if test "$wx_cv_prog_icc" = "yes"; then
12813 PIC_FLAG="-KPIC"
12814 fi
12815 fi
12816
12817 if test "$wxUSE_SONAME" = "yes" ; then
12818 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
12819 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
12820 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
12821 fi
12822 ;;
12823
12824 *-*-solaris2* )
12825 if test "$GCC" = yes ; then
12826 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
12827 else
12828 SHARED_LD="${CXX} -G -o"
12829 PIC_FLAG="-KPIC"
12830 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
12831 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
12832 fi
12833 ;;
12834
12835 *-*-darwin* )
12836 CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT"
12837 CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT"
12838 SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o"
12839 PIC_FLAG="-dynamic -fPIC"
12840 ;;
12841
12842 *-*-aix* )
12843 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
12844 ;;
12845
12846 *-*-cygwin* | *-*-mingw32* )
12847
12848 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
12849
12850 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
12851 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
12852
12853 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
12854
12855 if test "$wxUSE_OPENGL" = "yes"; then
12856 WX_ALL_INSTALLED="preinstall_gl"
12857 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
12858 else
12859 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
12860 fi
12861 ;;
12862
12863 *-pc-os2_emx | *-pc-os2-emx )
12864 wxUSE_SHARED=no
12865 ;;
12866
12867 *-*-beos* )
12868 SHARED_LD="${LD} -shared -o"
12869 ;;
12870
12871 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
12872 *-*-sunos4* | \
12873 *-*-irix5* | *-*-irix6* | \
12874 *-*-osf* | \
12875 *-*-dgux5* | \
12876 *-*-sysv5* )
12877 ;;
12878
12879 *)
12880 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
12881 esac
12882
12883 if test "x$WX_TARGET_LIBRARY" = "x"; then
12884 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
12885 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
12886 fi
12887
12888 WX_TARGET_LIBRARY_TYPE="so"
12889 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
12890fi
12891
12892if test "$wxUSE_SHARED" = "no"; then
12893
12894 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
12895 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12896 fi
12897
12898 if test "$wxUSE_MAC" = 1; then
12899 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12900 fi
12901
12902 if test "$wxUSE_OPENGL" = "yes"; then
12903 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
12904 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
12905 else
12906 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
12907 fi
12908
12909 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
12910 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
12911
12912 WX_TARGET_LIBRARY_TYPE="a"
12913 INSTALL_LIBRARY='$(INSTALL_DATA)'
12914fi
12915
12916if test "$wxUSE_MAC" = 1; then
12917 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
12918 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
12919 # Extract the first word of "Rez", so it can be a program name with args.
12920set dummy Rez; ac_word=$2
12921echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12922echo "configure:12923: checking for $ac_word" >&5
12923if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
12924 echo $ac_n "(cached) $ac_c" 1>&6
12925else
12926 if test -n "$RESCOMP"; then
12927 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
12928else
12929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12930 ac_dummy="$PATH"
12931 for ac_dir in $ac_dummy; do
12932 test -z "$ac_dir" && ac_dir=.
12933 if test -f $ac_dir/$ac_word; then
12934 ac_cv_prog_RESCOMP="Rez"
12935 break
12936 fi
12937 done
12938 IFS="$ac_save_ifs"
12939 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
12940fi
12941fi
12942RESCOMP="$ac_cv_prog_RESCOMP"
12943if test -n "$RESCOMP"; then
12944 echo "$ac_t""$RESCOMP" 1>&6
12945else
12946 echo "$ac_t""no" 1>&6
12947fi
12948
12949 # Extract the first word of "DeRez", so it can be a program name with args.
12950set dummy DeRez; ac_word=$2
12951echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12952echo "configure:12953: checking for $ac_word" >&5
12953if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
12954 echo $ac_n "(cached) $ac_c" 1>&6
12955else
12956 if test -n "$DEREZ"; then
12957 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
12958else
12959 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12960 ac_dummy="$PATH"
12961 for ac_dir in $ac_dummy; do
12962 test -z "$ac_dir" && ac_dir=.
12963 if test -f $ac_dir/$ac_word; then
12964 ac_cv_prog_DEREZ="DeRez"
12965 break
12966 fi
12967 done
12968 IFS="$ac_save_ifs"
12969 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
12970fi
12971fi
12972DEREZ="$ac_cv_prog_DEREZ"
12973if test -n "$DEREZ"; then
12974 echo "$ac_t""$DEREZ" 1>&6
12975else
12976 echo "$ac_t""no" 1>&6
12977fi
12978
12979 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
12980 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
12981 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
12982fi
12983
12984
12985if test "$wxUSE_MAC" != 1; then
12986 for ac_hdr in strings.h
12987do
12988ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12989echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12990echo "configure:12991: checking for $ac_hdr" >&5
12991if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12992 echo $ac_n "(cached) $ac_c" 1>&6
12993else
12994 cat > conftest.$ac_ext <<EOF
12995#line 12996 "configure"
12996#include "confdefs.h"
12997#include <$ac_hdr>
12998EOF
12999ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13000{ (eval echo configure:13001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13001ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13002if test -z "$ac_err"; then
13003 rm -rf conftest*
13004 eval "ac_cv_header_$ac_safe=yes"
13005else
13006 echo "$ac_err" >&5
13007 echo "configure: failed program was:" >&5
13008 cat conftest.$ac_ext >&5
13009 rm -rf conftest*
13010 eval "ac_cv_header_$ac_safe=no"
13011fi
13012rm -f conftest*
13013fi
13014if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13015 echo "$ac_t""yes" 1>&6
13016 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13017 cat >> confdefs.h <<EOF
13018#define $ac_tr_hdr 1
13019EOF
13020
13021else
13022 echo "$ac_t""no" 1>&6
13023fi
13024done
13025
13026fi
13027
13028for ac_hdr in stdlib.h
13029do
13030ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13031echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13032echo "configure:13033: checking for $ac_hdr" >&5
13033if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13034 echo $ac_n "(cached) $ac_c" 1>&6
13035else
13036 cat > conftest.$ac_ext <<EOF
13037#line 13038 "configure"
13038#include "confdefs.h"
13039#include <$ac_hdr>
13040EOF
13041ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13042{ (eval echo configure:13043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13043ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13044if test -z "$ac_err"; then
13045 rm -rf conftest*
13046 eval "ac_cv_header_$ac_safe=yes"
13047else
13048 echo "$ac_err" >&5
13049 echo "configure: failed program was:" >&5
13050 cat conftest.$ac_ext >&5
13051 rm -rf conftest*
13052 eval "ac_cv_header_$ac_safe=no"
13053fi
13054rm -f conftest*
13055fi
13056if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13057 echo "$ac_t""yes" 1>&6
13058 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13059 cat >> confdefs.h <<EOF
13060#define $ac_tr_hdr 1
13061EOF
13062
13063else
13064 echo "$ac_t""no" 1>&6
13065fi
13066done
13067
13068for ac_hdr in malloc.h
13069do
13070ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13071echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13072echo "configure:13073: checking for $ac_hdr" >&5
13073if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13074 echo $ac_n "(cached) $ac_c" 1>&6
13075else
13076 cat > conftest.$ac_ext <<EOF
13077#line 13078 "configure"
13078#include "confdefs.h"
13079#include <$ac_hdr>
13080EOF
13081ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13082{ (eval echo configure:13083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13083ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13084if test -z "$ac_err"; then
13085 rm -rf conftest*
13086 eval "ac_cv_header_$ac_safe=yes"
13087else
13088 echo "$ac_err" >&5
13089 echo "configure: failed program was:" >&5
13090 cat conftest.$ac_ext >&5
13091 rm -rf conftest*
13092 eval "ac_cv_header_$ac_safe=no"
13093fi
13094rm -f conftest*
13095fi
13096if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13097 echo "$ac_t""yes" 1>&6
13098 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13099 cat >> confdefs.h <<EOF
13100#define $ac_tr_hdr 1
13101EOF
13102
13103else
13104 echo "$ac_t""no" 1>&6
13105fi
13106done
13107
13108for ac_hdr in unistd.h
13109do
13110ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13111echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13112echo "configure:13113: checking for $ac_hdr" >&5
13113if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13114 echo $ac_n "(cached) $ac_c" 1>&6
13115else
13116 cat > conftest.$ac_ext <<EOF
13117#line 13118 "configure"
13118#include "confdefs.h"
13119#include <$ac_hdr>
13120EOF
13121ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13122{ (eval echo configure:13123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13123ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13124if test -z "$ac_err"; then
13125 rm -rf conftest*
13126 eval "ac_cv_header_$ac_safe=yes"
13127else
13128 echo "$ac_err" >&5
13129 echo "configure: failed program was:" >&5
13130 cat conftest.$ac_ext >&5
13131 rm -rf conftest*
13132 eval "ac_cv_header_$ac_safe=no"
13133fi
13134rm -f conftest*
13135fi
13136if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13137 echo "$ac_t""yes" 1>&6
13138 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13139 cat >> confdefs.h <<EOF
13140#define $ac_tr_hdr 1
13141EOF
13142
13143else
13144 echo "$ac_t""no" 1>&6
13145fi
13146done
13147
13148for ac_hdr in wchar.h
13149do
13150ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13151echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13152echo "configure:13153: checking for $ac_hdr" >&5
13153if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13154 echo $ac_n "(cached) $ac_c" 1>&6
13155else
13156 cat > conftest.$ac_ext <<EOF
13157#line 13158 "configure"
13158#include "confdefs.h"
13159#include <$ac_hdr>
13160EOF
13161ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13162{ (eval echo configure:13163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13163ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13164if test -z "$ac_err"; then
13165 rm -rf conftest*
13166 eval "ac_cv_header_$ac_safe=yes"
13167else
13168 echo "$ac_err" >&5
13169 echo "configure: failed program was:" >&5
13170 cat conftest.$ac_ext >&5
13171 rm -rf conftest*
13172 eval "ac_cv_header_$ac_safe=no"
13173fi
13174rm -f conftest*
13175fi
13176if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13177 echo "$ac_t""yes" 1>&6
13178 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13179 cat >> confdefs.h <<EOF
13180#define $ac_tr_hdr 1
13181EOF
13182
13183else
13184 echo "$ac_t""no" 1>&6
13185fi
13186done
13187
13188for ac_hdr in wcstr.h
13189do
13190ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13191echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13192echo "configure:13193: checking for $ac_hdr" >&5
13193if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13194 echo $ac_n "(cached) $ac_c" 1>&6
13195else
13196 cat > conftest.$ac_ext <<EOF
13197#line 13198 "configure"
13198#include "confdefs.h"
13199#include <$ac_hdr>
13200EOF
13201ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13202{ (eval echo configure:13203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13203ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13204if test -z "$ac_err"; then
13205 rm -rf conftest*
13206 eval "ac_cv_header_$ac_safe=yes"
13207else
13208 echo "$ac_err" >&5
13209 echo "configure: failed program was:" >&5
13210 cat conftest.$ac_ext >&5
13211 rm -rf conftest*
13212 eval "ac_cv_header_$ac_safe=no"
13213fi
13214rm -f conftest*
13215fi
13216if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13217 echo "$ac_t""yes" 1>&6
13218 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13219 cat >> confdefs.h <<EOF
13220#define $ac_tr_hdr 1
13221EOF
13222
13223else
13224 echo "$ac_t""no" 1>&6
13225fi
13226done
13227
13228for ac_hdr in wctype.h
13229do
13230ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13231echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13232echo "configure:13233: checking for $ac_hdr" >&5
13233if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13234 echo $ac_n "(cached) $ac_c" 1>&6
13235else
13236 cat > conftest.$ac_ext <<EOF
13237#line 13238 "configure"
13238#include "confdefs.h"
13239#include <$ac_hdr>
13240EOF
13241ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13242{ (eval echo configure:13243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13243ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13244if test -z "$ac_err"; then
13245 rm -rf conftest*
13246 eval "ac_cv_header_$ac_safe=yes"
13247else
13248 echo "$ac_err" >&5
13249 echo "configure: failed program was:" >&5
13250 cat conftest.$ac_ext >&5
13251 rm -rf conftest*
13252 eval "ac_cv_header_$ac_safe=no"
13253fi
13254rm -f conftest*
13255fi
13256if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13257 echo "$ac_t""yes" 1>&6
13258 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13259 cat >> confdefs.h <<EOF
13260#define $ac_tr_hdr 1
13261EOF
13262
13263else
13264 echo "$ac_t""no" 1>&6
13265fi
13266done
13267
13268for ac_hdr in fnmatch.h
13269do
13270ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13271echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13272echo "configure:13273: checking for $ac_hdr" >&5
13273if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13274 echo $ac_n "(cached) $ac_c" 1>&6
13275else
13276 cat > conftest.$ac_ext <<EOF
13277#line 13278 "configure"
13278#include "confdefs.h"
13279#include <$ac_hdr>
13280EOF
13281ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13282{ (eval echo configure:13283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13283ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13284if test -z "$ac_err"; then
13285 rm -rf conftest*
13286 eval "ac_cv_header_$ac_safe=yes"
13287else
13288 echo "$ac_err" >&5
13289 echo "configure: failed program was:" >&5
13290 cat conftest.$ac_ext >&5
13291 rm -rf conftest*
13292 eval "ac_cv_header_$ac_safe=no"
13293fi
13294rm -f conftest*
13295fi
13296if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13297 echo "$ac_t""yes" 1>&6
13298 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13299 cat >> confdefs.h <<EOF
13300#define $ac_tr_hdr 1
13301EOF
13302
13303else
13304 echo "$ac_t""no" 1>&6
13305fi
13306done
13307
13308for ac_hdr in iconv.h
13309do
13310ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13311echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13312echo "configure:13313: checking for $ac_hdr" >&5
13313if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13314 echo $ac_n "(cached) $ac_c" 1>&6
13315else
13316 cat > conftest.$ac_ext <<EOF
13317#line 13318 "configure"
13318#include "confdefs.h"
13319#include <$ac_hdr>
13320EOF
13321ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13322{ (eval echo configure:13323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13323ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13324if test -z "$ac_err"; then
13325 rm -rf conftest*
13326 eval "ac_cv_header_$ac_safe=yes"
13327else
13328 echo "$ac_err" >&5
13329 echo "configure: failed program was:" >&5
13330 cat conftest.$ac_ext >&5
13331 rm -rf conftest*
13332 eval "ac_cv_header_$ac_safe=no"
13333fi
13334rm -f conftest*
13335fi
13336if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13337 echo "$ac_t""yes" 1>&6
13338 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13339 cat >> confdefs.h <<EOF
13340#define $ac_tr_hdr 1
13341EOF
13342
13343else
13344 echo "$ac_t""no" 1>&6
13345fi
13346done
13347
13348for ac_hdr in langinfo.h
13349do
13350ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13351echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13352echo "configure:13353: checking for $ac_hdr" >&5
13353if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13354 echo $ac_n "(cached) $ac_c" 1>&6
13355else
13356 cat > conftest.$ac_ext <<EOF
13357#line 13358 "configure"
13358#include "confdefs.h"
13359#include <$ac_hdr>
13360EOF
13361ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13362{ (eval echo configure:13363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13363ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13364if test -z "$ac_err"; then
13365 rm -rf conftest*
13366 eval "ac_cv_header_$ac_safe=yes"
13367else
13368 echo "$ac_err" >&5
13369 echo "configure: failed program was:" >&5
13370 cat conftest.$ac_ext >&5
13371 rm -rf conftest*
13372 eval "ac_cv_header_$ac_safe=no"
13373fi
13374rm -f conftest*
13375fi
13376if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13377 echo "$ac_t""yes" 1>&6
13378 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13379 cat >> confdefs.h <<EOF
13380#define $ac_tr_hdr 1
13381EOF
13382
13383else
13384 echo "$ac_t""no" 1>&6
13385fi
13386done
13387
13388
13389if test "$wxUSE_GUI" = "yes"; then
13390 if test "$wxUSE_UNIX" = "yes"; then
13391 for ac_hdr in X11/XKBlib.h
13392do
13393ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13394echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13395echo "configure:13396: checking for $ac_hdr" >&5
13396if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13397 echo $ac_n "(cached) $ac_c" 1>&6
13398else
13399 cat > conftest.$ac_ext <<EOF
13400#line 13401 "configure"
13401#include "confdefs.h"
13402#include <$ac_hdr>
13403EOF
13404ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13405{ (eval echo configure:13406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13406ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13407if test -z "$ac_err"; then
13408 rm -rf conftest*
13409 eval "ac_cv_header_$ac_safe=yes"
13410else
13411 echo "$ac_err" >&5
13412 echo "configure: failed program was:" >&5
13413 cat conftest.$ac_ext >&5
13414 rm -rf conftest*
13415 eval "ac_cv_header_$ac_safe=no"
13416fi
13417rm -f conftest*
13418fi
13419if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13420 echo "$ac_t""yes" 1>&6
13421 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13422 cat >> confdefs.h <<EOF
13423#define $ac_tr_hdr 1
13424EOF
13425
13426else
13427 echo "$ac_t""no" 1>&6
13428fi
13429done
13430
13431 fi
13432fi
13433
13434
13435echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13436echo "configure:13437: checking for ANSI C header files" >&5
13437if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
13438 echo $ac_n "(cached) $ac_c" 1>&6
13439else
13440 cat > conftest.$ac_ext <<EOF
13441#line 13442 "configure"
13442#include "confdefs.h"
13443#include <stdlib.h>
13444#include <stdarg.h>
13445#include <string.h>
13446#include <float.h>
13447EOF
13448ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13449{ (eval echo configure:13450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13450ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13451if test -z "$ac_err"; then
13452 rm -rf conftest*
13453 ac_cv_header_stdc=yes
13454else
13455 echo "$ac_err" >&5
13456 echo "configure: failed program was:" >&5
13457 cat conftest.$ac_ext >&5
13458 rm -rf conftest*
13459 ac_cv_header_stdc=no
13460fi
13461rm -f conftest*
13462
13463if test $ac_cv_header_stdc = yes; then
13464 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13465cat > conftest.$ac_ext <<EOF
13466#line 13467 "configure"
13467#include "confdefs.h"
13468#include <string.h>
13469EOF
13470if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13471 egrep "memchr" >/dev/null 2>&1; then
13472 :
13473else
13474 rm -rf conftest*
13475 ac_cv_header_stdc=no
13476fi
13477rm -f conftest*
13478
13479fi
13480
13481if test $ac_cv_header_stdc = yes; then
13482 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13483cat > conftest.$ac_ext <<EOF
13484#line 13485 "configure"
13485#include "confdefs.h"
13486#include <stdlib.h>
13487EOF
13488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13489 egrep "free" >/dev/null 2>&1; then
13490 :
13491else
13492 rm -rf conftest*
13493 ac_cv_header_stdc=no
13494fi
13495rm -f conftest*
13496
13497fi
13498
13499if test $ac_cv_header_stdc = yes; then
13500 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13501if test "$cross_compiling" = yes; then
13502 :
13503else
13504 cat > conftest.$ac_ext <<EOF
13505#line 13506 "configure"
13506#include "confdefs.h"
13507#include <ctype.h>
13508#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13509#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13510#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13511int main () { int i; for (i = 0; i < 256; i++)
13512if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13513exit (0); }
13514
13515EOF
13516if { (eval echo configure:13517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13517then
13518 :
13519else
13520 echo "configure: failed program was:" >&5
13521 cat conftest.$ac_ext >&5
13522 rm -fr conftest*
13523 ac_cv_header_stdc=no
13524fi
13525rm -fr conftest*
13526fi
13527
13528fi
13529fi
13530
13531echo "$ac_t""$ac_cv_header_stdc" 1>&6
13532if test $ac_cv_header_stdc = yes; then
13533 cat >> confdefs.h <<\EOF
13534#define STDC_HEADERS 1
13535EOF
13536
13537fi
13538
13539echo $ac_n "checking for mode_t""... $ac_c" 1>&6
13540echo "configure:13541: checking for mode_t" >&5
13541if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
13542 echo $ac_n "(cached) $ac_c" 1>&6
13543else
13544 cat > conftest.$ac_ext <<EOF
13545#line 13546 "configure"
13546#include "confdefs.h"
13547#include <sys/types.h>
13548#if STDC_HEADERS
13549#include <stdlib.h>
13550#include <stddef.h>
13551#endif
13552EOF
13553if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13554 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13555 rm -rf conftest*
13556 ac_cv_type_mode_t=yes
13557else
13558 rm -rf conftest*
13559 ac_cv_type_mode_t=no
13560fi
13561rm -f conftest*
13562
13563fi
13564echo "$ac_t""$ac_cv_type_mode_t" 1>&6
13565if test $ac_cv_type_mode_t = no; then
13566 cat >> confdefs.h <<\EOF
13567#define mode_t int
13568EOF
13569
13570fi
13571
13572echo $ac_n "checking for off_t""... $ac_c" 1>&6
13573echo "configure:13574: checking for off_t" >&5
13574if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
13575 echo $ac_n "(cached) $ac_c" 1>&6
13576else
13577 cat > conftest.$ac_ext <<EOF
13578#line 13579 "configure"
13579#include "confdefs.h"
13580#include <sys/types.h>
13581#if STDC_HEADERS
13582#include <stdlib.h>
13583#include <stddef.h>
13584#endif
13585EOF
13586if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13587 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13588 rm -rf conftest*
13589 ac_cv_type_off_t=yes
13590else
13591 rm -rf conftest*
13592 ac_cv_type_off_t=no
13593fi
13594rm -f conftest*
13595
13596fi
13597echo "$ac_t""$ac_cv_type_off_t" 1>&6
13598if test $ac_cv_type_off_t = no; then
13599 cat >> confdefs.h <<\EOF
13600#define off_t long
13601EOF
13602
13603fi
13604
13605echo $ac_n "checking for pid_t""... $ac_c" 1>&6
13606echo "configure:13607: checking for pid_t" >&5
13607if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
13608 echo $ac_n "(cached) $ac_c" 1>&6
13609else
13610 cat > conftest.$ac_ext <<EOF
13611#line 13612 "configure"
13612#include "confdefs.h"
13613#include <sys/types.h>
13614#if STDC_HEADERS
13615#include <stdlib.h>
13616#include <stddef.h>
13617#endif
13618EOF
13619if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13620 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13621 rm -rf conftest*
13622 ac_cv_type_pid_t=yes
13623else
13624 rm -rf conftest*
13625 ac_cv_type_pid_t=no
13626fi
13627rm -f conftest*
13628
13629fi
13630echo "$ac_t""$ac_cv_type_pid_t" 1>&6
13631if test $ac_cv_type_pid_t = no; then
13632 cat >> confdefs.h <<\EOF
13633#define pid_t int
13634EOF
13635
13636fi
13637
13638echo $ac_n "checking for size_t""... $ac_c" 1>&6
13639echo "configure:13640: checking for size_t" >&5
13640if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
13641 echo $ac_n "(cached) $ac_c" 1>&6
13642else
13643 cat > conftest.$ac_ext <<EOF
13644#line 13645 "configure"
13645#include "confdefs.h"
13646#include <sys/types.h>
13647#if STDC_HEADERS
13648#include <stdlib.h>
13649#include <stddef.h>
13650#endif
13651EOF
13652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13653 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13654 rm -rf conftest*
13655 ac_cv_type_size_t=yes
13656else
13657 rm -rf conftest*
13658 ac_cv_type_size_t=no
13659fi
13660rm -f conftest*
13661
13662fi
13663echo "$ac_t""$ac_cv_type_size_t" 1>&6
13664if test $ac_cv_type_size_t = no; then
13665 cat >> confdefs.h <<\EOF
13666#define size_t unsigned
13667EOF
13668
13669fi
13670
13671echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
13672echo "configure:13673: checking for uid_t in sys/types.h" >&5
13673if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
13674 echo $ac_n "(cached) $ac_c" 1>&6
13675else
13676 cat > conftest.$ac_ext <<EOF
13677#line 13678 "configure"
13678#include "confdefs.h"
13679#include <sys/types.h>
13680EOF
13681if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13682 egrep "uid_t" >/dev/null 2>&1; then
13683 rm -rf conftest*
13684 ac_cv_type_uid_t=yes
13685else
13686 rm -rf conftest*
13687 ac_cv_type_uid_t=no
13688fi
13689rm -f conftest*
13690
13691fi
13692
13693echo "$ac_t""$ac_cv_type_uid_t" 1>&6
13694if test $ac_cv_type_uid_t = no; then
13695 cat >> confdefs.h <<\EOF
13696#define uid_t int
13697EOF
13698
13699 cat >> confdefs.h <<\EOF
13700#define gid_t int
13701EOF
13702
13703fi
13704
13705
13706echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
13707echo "configure:13708: checking for wchar_t" >&5
13708if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
13709 echo $ac_n "(cached) $ac_c" 1>&6
13710else
13711
13712 cat > conftest.$ac_ext <<EOF
13713#line 13714 "configure"
13714#include "confdefs.h"
13715
13716 #ifdef HAVE_WCHAR_H
13717 # ifdef __CYGWIN__
13718 # include <stddef.h>
13719 # endif
13720 # include <wchar.h>
13721 #endif
13722 #ifdef HAVE_STDLIB_H
13723 # include <stdlib.h>
13724 #endif
13725
13726int main() {
13727
13728 wchar_t wc, *ws;
13729 wc = L'a';
13730 ws = L"Hello, world!";
13731
13732; return 0; }
13733EOF
13734if { (eval echo configure:13735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13735 rm -rf conftest*
13736 wx_cv_type_wchar_t=yes
13737else
13738 echo "configure: failed program was:" >&5
13739 cat conftest.$ac_ext >&5
13740 rm -rf conftest*
13741 wx_cv_type_wchar_t=no
13742
13743fi
13744rm -f conftest*
13745
13746fi
13747
13748echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
13749
13750if test "$wx_cv_type_wchar_t" = "yes"; then
13751 cat >> confdefs.h <<\EOF
13752#define wxUSE_WCHAR_T 1
13753EOF
13754
13755fi
13756
13757
13758ac_ext=C
13759# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13760ac_cpp='$CXXCPP $CPPFLAGS'
13761ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13762ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13763cross_compiling=$ac_cv_prog_cxx_cross
13764
13765echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
13766echo "configure:13767: checking if size_t is unsigned int" >&5
13767if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
13768 echo $ac_n "(cached) $ac_c" 1>&6
13769else
13770 cat > conftest.$ac_ext <<EOF
13771#line 13772 "configure"
13772#include "confdefs.h"
13773#include <stddef.h>
13774int main() {
13775
13776 return 0; }
13777
13778 struct Foo { void foo(size_t); void foo(unsigned int); };
13779
13780 int bar() {
13781
13782; return 0; }
13783EOF
13784if { (eval echo configure:13785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13785 rm -rf conftest*
13786 wx_cv_size_t_is_uint=no
13787else
13788 echo "configure: failed program was:" >&5
13789 cat conftest.$ac_ext >&5
13790 rm -rf conftest*
13791 wx_cv_size_t_is_uint=yes
13792
13793fi
13794rm -f conftest*
13795
13796fi
13797
13798echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
13799
13800if test "$wx_cv_size_t_is_uint" = "yes"; then
13801 cat >> confdefs.h <<\EOF
13802#define wxSIZE_T_IS_UINT 1
13803EOF
13804
13805else
13806 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
13807echo "configure:13808: checking if size_t is unsigned long" >&5
13808if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
13809 echo $ac_n "(cached) $ac_c" 1>&6
13810else
13811 cat > conftest.$ac_ext <<EOF
13812#line 13813 "configure"
13813#include "confdefs.h"
13814#include <stddef.h>
13815int main() {
13816
13817 return 0; }
13818
13819 struct Foo { void foo(size_t); void foo(unsigned long); };
13820
13821 int bar() {
13822
13823; return 0; }
13824EOF
13825if { (eval echo configure:13826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13826 rm -rf conftest*
13827 wx_cv_size_t_is_ulong=no
13828else
13829 echo "configure: failed program was:" >&5
13830 cat conftest.$ac_ext >&5
13831 rm -rf conftest*
13832 wx_cv_size_t_is_ulong=yes
13833
13834fi
13835rm -f conftest*
13836
13837fi
13838
13839echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
13840
13841 if test "$wx_cv_size_t_is_ulong" = "yes"; then
13842 cat >> confdefs.h <<\EOF
13843#define wxSIZE_T_IS_ULONG 1
13844EOF
13845
13846 fi
13847fi
13848
13849ac_ext=c
13850# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13851ac_cpp='$CPP $CPPFLAGS'
13852ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13853ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13854cross_compiling=$ac_cv_prog_cc_cross
13855
13856
13857
13858echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
13859echo "configure:13860: checking for pw_gecos in struct passwd" >&5
13860if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
13861 echo $ac_n "(cached) $ac_c" 1>&6
13862else
13863
13864 cat > conftest.$ac_ext <<EOF
13865#line 13866 "configure"
13866#include "confdefs.h"
13867#include <pwd.h>
13868int main() {
13869
13870 char *p;
13871 struct passwd *pw;
13872 p = pw->pw_gecos;
13873
13874; return 0; }
13875EOF
13876if { (eval echo configure:13877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13877 rm -rf conftest*
13878
13879 wx_cv_struct_pw_gecos=yes
13880
13881else
13882 echo "configure: failed program was:" >&5
13883 cat conftest.$ac_ext >&5
13884 rm -rf conftest*
13885
13886 wx_cv_struct_pw_gecos=no
13887
13888
13889fi
13890rm -f conftest*
13891
13892
13893fi
13894
13895echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
13896
13897if test "$wx_cv_struct_pw_gecos" = "yes"; then
13898 cat >> confdefs.h <<\EOF
13899#define HAVE_PW_GECOS 1
13900EOF
13901
13902fi
13903
13904
13905echo $ac_n "checking for working const""... $ac_c" 1>&6
13906echo "configure:13907: checking for working const" >&5
13907if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
13908 echo $ac_n "(cached) $ac_c" 1>&6
13909else
13910 cat > conftest.$ac_ext <<EOF
13911#line 13912 "configure"
13912#include "confdefs.h"
13913
13914int main() {
13915
13916/* Ultrix mips cc rejects this. */
13917typedef int charset[2]; const charset x;
13918/* SunOS 4.1.1 cc rejects this. */
13919char const *const *ccp;
13920char **p;
13921/* NEC SVR4.0.2 mips cc rejects this. */
13922struct point {int x, y;};
13923static struct point const zero = {0,0};
13924/* AIX XL C 1.02.0.0 rejects this.
13925 It does not let you subtract one const X* pointer from another in an arm
13926 of an if-expression whose if-part is not a constant expression */
13927const char *g = "string";
13928ccp = &g + (g ? g-g : 0);
13929/* HPUX 7.0 cc rejects these. */
13930++ccp;
13931p = (char**) ccp;
13932ccp = (char const *const *) p;
13933{ /* SCO 3.2v4 cc rejects this. */
13934 char *t;
13935 char const *s = 0 ? (char *) 0 : (char const *) 0;
13936
13937 *t++ = 0;
13938}
13939{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13940 int x[] = {25, 17};
13941 const int *foo = &x[0];
13942 ++foo;
13943}
13944{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13945 typedef const int *iptr;
13946 iptr p = 0;
13947 ++p;
13948}
13949{ /* AIX XL C 1.02.0.0 rejects this saying
13950 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13951 struct s { int j; const int *ap[3]; };
13952 struct s *b; b->j = 5;
13953}
13954{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13955 const int foo = 10;
13956}
13957
13958; return 0; }
13959EOF
13960if { (eval echo configure:13961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13961 rm -rf conftest*
13962 ac_cv_c_const=yes
13963else
13964 echo "configure: failed program was:" >&5
13965 cat conftest.$ac_ext >&5
13966 rm -rf conftest*
13967 ac_cv_c_const=no
13968fi
13969rm -f conftest*
13970fi
13971
13972echo "$ac_t""$ac_cv_c_const" 1>&6
13973if test $ac_cv_c_const = no; then
13974 cat >> confdefs.h <<\EOF
13975#define const
13976EOF
13977
13978fi
13979
13980echo $ac_n "checking for inline""... $ac_c" 1>&6
13981echo "configure:13982: checking for inline" >&5
13982if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
13983 echo $ac_n "(cached) $ac_c" 1>&6
13984else
13985 ac_cv_c_inline=no
13986for ac_kw in inline __inline__ __inline; do
13987 cat > conftest.$ac_ext <<EOF
13988#line 13989 "configure"
13989#include "confdefs.h"
13990
13991int main() {
13992} $ac_kw foo() {
13993; return 0; }
13994EOF
13995if { (eval echo configure:13996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13996 rm -rf conftest*
13997 ac_cv_c_inline=$ac_kw; break
13998else
13999 echo "configure: failed program was:" >&5
14000 cat conftest.$ac_ext >&5
14001fi
14002rm -f conftest*
14003done
14004
14005fi
14006
14007echo "$ac_t""$ac_cv_c_inline" 1>&6
14008case "$ac_cv_c_inline" in
14009 inline | yes) ;;
14010 no) cat >> confdefs.h <<\EOF
14011#define inline
14012EOF
14013 ;;
14014 *) cat >> confdefs.h <<EOF
14015#define inline $ac_cv_c_inline
14016EOF
14017 ;;
14018esac
14019
14020
14021echo $ac_n "checking size of char""... $ac_c" 1>&6
14022echo "configure:14023: checking size of char" >&5
14023if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
14024 echo $ac_n "(cached) $ac_c" 1>&6
14025else
14026 if test "$cross_compiling" = yes; then
14027 ac_cv_sizeof_char=1
14028else
14029 cat > conftest.$ac_ext <<EOF
14030#line 14031 "configure"
14031#include "confdefs.h"
14032#include <stdio.h>
14033main()
14034{
14035 FILE *f=fopen("conftestval", "w");
14036 if (!f) exit(1);
14037 fprintf(f, "%d\n", sizeof(char));
14038 exit(0);
14039}
14040EOF
14041if { (eval echo configure:14042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14042then
14043 ac_cv_sizeof_char=`cat conftestval`
14044else
14045 echo "configure: failed program was:" >&5
14046 cat conftest.$ac_ext >&5
14047 rm -fr conftest*
14048 ac_cv_sizeof_char=0
14049fi
14050rm -fr conftest*
14051fi
14052
14053fi
14054echo "$ac_t""$ac_cv_sizeof_char" 1>&6
14055cat >> confdefs.h <<EOF
14056#define SIZEOF_CHAR $ac_cv_sizeof_char
14057EOF
14058
14059
14060echo $ac_n "checking size of short""... $ac_c" 1>&6
14061echo "configure:14062: checking size of short" >&5
14062if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
14063 echo $ac_n "(cached) $ac_c" 1>&6
14064else
14065 if test "$cross_compiling" = yes; then
14066 ac_cv_sizeof_short=2
14067else
14068 cat > conftest.$ac_ext <<EOF
14069#line 14070 "configure"
14070#include "confdefs.h"
14071#include <stdio.h>
14072main()
14073{
14074 FILE *f=fopen("conftestval", "w");
14075 if (!f) exit(1);
14076 fprintf(f, "%d\n", sizeof(short));
14077 exit(0);
14078}
14079EOF
14080if { (eval echo configure:14081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14081then
14082 ac_cv_sizeof_short=`cat conftestval`
14083else
14084 echo "configure: failed program was:" >&5
14085 cat conftest.$ac_ext >&5
14086 rm -fr conftest*
14087 ac_cv_sizeof_short=0
14088fi
14089rm -fr conftest*
14090fi
14091
14092fi
14093echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14094cat >> confdefs.h <<EOF
14095#define SIZEOF_SHORT $ac_cv_sizeof_short
14096EOF
14097
14098
14099echo $ac_n "checking size of int *""... $ac_c" 1>&6
14100echo "configure:14101: checking size of int *" >&5
14101if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
14102 echo $ac_n "(cached) $ac_c" 1>&6
14103else
14104 if test "$cross_compiling" = yes; then
14105 ac_cv_sizeof_int_p=4
14106else
14107 cat > conftest.$ac_ext <<EOF
14108#line 14109 "configure"
14109#include "confdefs.h"
14110#include <stdio.h>
14111main()
14112{
14113 FILE *f=fopen("conftestval", "w");
14114 if (!f) exit(1);
14115 fprintf(f, "%d\n", sizeof(int *));
14116 exit(0);
14117}
14118EOF
14119if { (eval echo configure:14120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14120then
14121 ac_cv_sizeof_int_p=`cat conftestval`
14122else
14123 echo "configure: failed program was:" >&5
14124 cat conftest.$ac_ext >&5
14125 rm -fr conftest*
14126 ac_cv_sizeof_int_p=0
14127fi
14128rm -fr conftest*
14129fi
14130
14131fi
14132echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
14133cat >> confdefs.h <<EOF
14134#define SIZEOF_INT_P $ac_cv_sizeof_int_p
14135EOF
14136
14137
14138echo $ac_n "checking size of int""... $ac_c" 1>&6
14139echo "configure:14140: checking size of int" >&5
14140if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
14141 echo $ac_n "(cached) $ac_c" 1>&6
14142else
14143 if test "$cross_compiling" = yes; then
14144 ac_cv_sizeof_int=4
14145else
14146 cat > conftest.$ac_ext <<EOF
14147#line 14148 "configure"
14148#include "confdefs.h"
14149#include <stdio.h>
14150main()
14151{
14152 FILE *f=fopen("conftestval", "w");
14153 if (!f) exit(1);
14154 fprintf(f, "%d\n", sizeof(int));
14155 exit(0);
14156}
14157EOF
14158if { (eval echo configure:14159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14159then
14160 ac_cv_sizeof_int=`cat conftestval`
14161else
14162 echo "configure: failed program was:" >&5
14163 cat conftest.$ac_ext >&5
14164 rm -fr conftest*
14165 ac_cv_sizeof_int=0
14166fi
14167rm -fr conftest*
14168fi
14169
14170fi
14171echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14172cat >> confdefs.h <<EOF
14173#define SIZEOF_INT $ac_cv_sizeof_int
14174EOF
14175
14176
14177echo $ac_n "checking size of long""... $ac_c" 1>&6
14178echo "configure:14179: checking size of long" >&5
14179if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
14180 echo $ac_n "(cached) $ac_c" 1>&6
14181else
14182 if test "$cross_compiling" = yes; then
14183 ac_cv_sizeof_long=4
14184else
14185 cat > conftest.$ac_ext <<EOF
14186#line 14187 "configure"
14187#include "confdefs.h"
14188#include <stdio.h>
14189main()
14190{
14191 FILE *f=fopen("conftestval", "w");
14192 if (!f) exit(1);
14193 fprintf(f, "%d\n", sizeof(long));
14194 exit(0);
14195}
14196EOF
14197if { (eval echo configure:14198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14198then
14199 ac_cv_sizeof_long=`cat conftestval`
14200else
14201 echo "configure: failed program was:" >&5
14202 cat conftest.$ac_ext >&5
14203 rm -fr conftest*
14204 ac_cv_sizeof_long=0
14205fi
14206rm -fr conftest*
14207fi
14208
14209fi
14210echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14211cat >> confdefs.h <<EOF
14212#define SIZEOF_LONG $ac_cv_sizeof_long
14213EOF
14214
14215
14216echo $ac_n "checking size of long long""... $ac_c" 1>&6
14217echo "configure:14218: checking size of long long" >&5
14218if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
14219 echo $ac_n "(cached) $ac_c" 1>&6
14220else
14221 if test "$cross_compiling" = yes; then
14222 ac_cv_sizeof_long_long=0
14223else
14224 cat > conftest.$ac_ext <<EOF
14225#line 14226 "configure"
14226#include "confdefs.h"
14227#include <stdio.h>
14228main()
14229{
14230 FILE *f=fopen("conftestval", "w");
14231 if (!f) exit(1);
14232 fprintf(f, "%d\n", sizeof(long long));
14233 exit(0);
14234}
14235EOF
14236if { (eval echo configure:14237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14237then
14238 ac_cv_sizeof_long_long=`cat conftestval`
14239else
14240 echo "configure: failed program was:" >&5
14241 cat conftest.$ac_ext >&5
14242 rm -fr conftest*
14243 ac_cv_sizeof_long_long=0
14244fi
14245rm -fr conftest*
14246fi
14247
14248fi
14249echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
14250cat >> confdefs.h <<EOF
14251#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14252EOF
14253
14254
14255
14256echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
14257echo "configure:14258: checking size of wchar_t" >&5
14258if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
14259 echo $ac_n "(cached) $ac_c" 1>&6
14260else
14261
14262 if test "$cross_compiling" = yes; then
14263 wx_cv_sizeof_wchar_t=4
14264
14265else
14266 cat > conftest.$ac_ext <<EOF
14267#line 14268 "configure"
14268#include "confdefs.h"
14269
14270 #ifdef HAVE_WCHAR_H
14271 # ifdef __CYGWIN__
14272 # include <stddef.h>
14273 # endif
14274 # include <wchar.h>
14275 #endif
14276 #ifdef HAVE_STDLIB_H
14277 # include <stdlib.h>
14278 #endif
14279 #include <stdio.h>
14280 int main()
14281 {
14282 FILE *f=fopen("conftestval", "w");
14283 if (!f) exit(1);
14284 fprintf(f, "%i", sizeof(wchar_t));
14285 exit(0);
14286 }
14287
14288EOF
14289if { (eval echo configure:14290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14290then
14291 wx_cv_sizeof_wchar_t=`cat conftestval`
14292else
14293 echo "configure: failed program was:" >&5
14294 cat conftest.$ac_ext >&5
14295 rm -fr conftest*
14296 wx_cv_sizeof_wchar_t=0
14297fi
14298rm -fr conftest*
14299fi
14300
14301
14302fi
14303
14304echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
14305
14306cat >> confdefs.h <<EOF
14307#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
14308EOF
14309
14310
14311echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14312echo "configure:14313: checking whether byte ordering is bigendian" >&5
14313if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
14314 echo $ac_n "(cached) $ac_c" 1>&6
14315else
14316 ac_cv_c_bigendian=unknown
14317# See if sys/param.h defines the BYTE_ORDER macro.
14318cat > conftest.$ac_ext <<EOF
14319#line 14320 "configure"
14320#include "confdefs.h"
14321#include <sys/types.h>
14322#include <sys/param.h>
14323int main() {
14324
14325#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14326 bogus endian macros
14327#endif
14328; return 0; }
14329EOF
14330if { (eval echo configure:14331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14331 rm -rf conftest*
14332 # It does; now see whether it defined to BIG_ENDIAN or not.
14333cat > conftest.$ac_ext <<EOF
14334#line 14335 "configure"
14335#include "confdefs.h"
14336#include <sys/types.h>
14337#include <sys/param.h>
14338int main() {
14339
14340#if BYTE_ORDER != BIG_ENDIAN
14341 not big endian
14342#endif
14343; return 0; }
14344EOF
14345if { (eval echo configure:14346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14346 rm -rf conftest*
14347 ac_cv_c_bigendian=yes
14348else
14349 echo "configure: failed program was:" >&5
14350 cat conftest.$ac_ext >&5
14351 rm -rf conftest*
14352 ac_cv_c_bigendian=no
14353fi
14354rm -f conftest*
14355else
14356 echo "configure: failed program was:" >&5
14357 cat conftest.$ac_ext >&5
14358fi
14359rm -f conftest*
14360if test $ac_cv_c_bigendian = unknown; then
14361if test "$cross_compiling" = yes; then
14362 ac_cv_c_bigendian=unknown
14363else
14364 cat > conftest.$ac_ext <<EOF
14365#line 14366 "configure"
14366#include "confdefs.h"
14367main () {
14368 /* Are we little or big endian? From Harbison&Steele. */
14369 union
14370 {
14371 long l;
14372 char c[sizeof (long)];
14373 } u;
14374 u.l = 1;
14375 exit (u.c[sizeof (long) - 1] == 1);
14376}
14377EOF
14378if { (eval echo configure:14379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14379then
14380 ac_cv_c_bigendian=no
14381else
14382 echo "configure: failed program was:" >&5
14383 cat conftest.$ac_ext >&5
14384 rm -fr conftest*
14385 ac_cv_c_bigendian=yes
14386fi
14387rm -fr conftest*
14388fi
14389
14390fi
14391fi
14392
14393echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14394if test $ac_cv_c_bigendian = unknown; then
14395 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
14396fi
14397if test $ac_cv_c_bigendian = yes; then
14398 cat >> confdefs.h <<\EOF
14399#define WORDS_BIGENDIAN 1
14400EOF
14401
14402fi
14403
14404
14405echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
14406echo "configure:14407: checking how to run the C++ preprocessor" >&5
14407if test -z "$CXXCPP"; then
14408if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
14409 echo $ac_n "(cached) $ac_c" 1>&6
14410else
14411 ac_ext=C
14412# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14413ac_cpp='$CXXCPP $CPPFLAGS'
14414ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14415ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14416cross_compiling=$ac_cv_prog_cxx_cross
14417 CXXCPP="${CXX-g++} -E"
14418 cat > conftest.$ac_ext <<EOF
14419#line 14420 "configure"
14420#include "confdefs.h"
14421#include <stdlib.h>
14422EOF
14423ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14424{ (eval echo configure:14425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14425ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14426if test -z "$ac_err"; then
14427 :
14428else
14429 echo "$ac_err" >&5
14430 echo "configure: failed program was:" >&5
14431 cat conftest.$ac_ext >&5
14432 rm -rf conftest*
14433 CXXCPP=/lib/cpp
14434fi
14435rm -f conftest*
14436 ac_cv_prog_CXXCPP="$CXXCPP"
14437ac_ext=C
14438# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14439ac_cpp='$CXXCPP $CPPFLAGS'
14440ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14441ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14442cross_compiling=$ac_cv_prog_cxx_cross
14443fi
14444fi
14445CXXCPP="$ac_cv_prog_CXXCPP"
14446echo "$ac_t""$CXXCPP" 1>&6
14447
14448
14449 if test "$cross_compiling" = "yes"; then
14450 cat >> confdefs.h <<\EOF
14451#define wxUSE_IOSTREAMH 1
14452EOF
14453
14454 else
14455
14456 ac_ext=C
14457# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14458ac_cpp='$CXXCPP $CPPFLAGS'
14459ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14460ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14461cross_compiling=$ac_cv_prog_cxx_cross
14462
14463
14464 for ac_hdr in iostream
14465do
14466ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14467echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14468echo "configure:14469: checking for $ac_hdr" >&5
14469if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14470 echo $ac_n "(cached) $ac_c" 1>&6
14471else
14472 cat > conftest.$ac_ext <<EOF
14473#line 14474 "configure"
14474#include "confdefs.h"
14475#include <$ac_hdr>
14476EOF
14477ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14478{ (eval echo configure:14479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14479ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14480if test -z "$ac_err"; then
14481 rm -rf conftest*
14482 eval "ac_cv_header_$ac_safe=yes"
14483else
14484 echo "$ac_err" >&5
14485 echo "configure: failed program was:" >&5
14486 cat conftest.$ac_ext >&5
14487 rm -rf conftest*
14488 eval "ac_cv_header_$ac_safe=no"
14489fi
14490rm -f conftest*
14491fi
14492if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14493 echo "$ac_t""yes" 1>&6
14494 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14495 cat >> confdefs.h <<EOF
14496#define $ac_tr_hdr 1
14497EOF
14498
14499else
14500 echo "$ac_t""no" 1>&6
14501fi
14502done
14503
14504
14505 if test "$ac_cv_header_iostream" = "yes" ; then
14506 :
14507 else
14508 cat >> confdefs.h <<\EOF
14509#define wxUSE_IOSTREAMH 1
14510EOF
14511
14512 fi
14513
14514 ac_ext=c
14515# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14516ac_cpp='$CPP $CPPFLAGS'
14517ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14518ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14519cross_compiling=$ac_cv_prog_cc_cross
14520
14521 fi
14522
14523
14524
14525 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
14526echo "configure:14527: checking if C++ compiler supports bool" >&5
14527if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
14528 echo $ac_n "(cached) $ac_c" 1>&6
14529else
14530
14531
14532 ac_ext=C
14533# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14534ac_cpp='$CXXCPP $CPPFLAGS'
14535ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14536ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14537cross_compiling=$ac_cv_prog_cxx_cross
14538
14539
14540 cat > conftest.$ac_ext <<EOF
14541#line 14542 "configure"
14542#include "confdefs.h"
14543
14544
14545int main() {
14546
14547 bool b = true;
14548
14549 return 0;
14550
14551; return 0; }
14552EOF
14553if { (eval echo configure:14554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14554 rm -rf conftest*
14555
14556 wx_cv_cpp_bool=yes
14557
14558else
14559 echo "configure: failed program was:" >&5
14560 cat conftest.$ac_ext >&5
14561 rm -rf conftest*
14562
14563 wx_cv_cpp_bool=no
14564
14565
14566fi
14567rm -f conftest*
14568
14569 ac_ext=c
14570# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14571ac_cpp='$CPP $CPPFLAGS'
14572ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14573ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14574cross_compiling=$ac_cv_prog_cc_cross
14575
14576
14577fi
14578
14579echo "$ac_t""$wx_cv_cpp_bool" 1>&6
14580
14581 if test "$wx_cv_cpp_bool" = "yes"; then
14582 cat >> confdefs.h <<\EOF
14583#define HAVE_BOOL 1
14584EOF
14585
14586 fi
14587
14588
14589
14590echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
14591echo "configure:14592: checking for wcslen in -lc" >&5
14592ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
14593if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14594 echo $ac_n "(cached) $ac_c" 1>&6
14595else
14596 ac_save_LIBS="$LIBS"
14597LIBS="-lc $LIBS"
14598cat > conftest.$ac_ext <<EOF
14599#line 14600 "configure"
14600#include "confdefs.h"
14601/* Override any gcc2 internal prototype to avoid an error. */
14602/* We use char because int might match the return type of a gcc2
14603 builtin and then its argument prototype would still apply. */
14604char wcslen();
14605
14606int main() {
14607wcslen()
14608; return 0; }
14609EOF
14610if { (eval echo configure:14611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14611 rm -rf conftest*
14612 eval "ac_cv_lib_$ac_lib_var=yes"
14613else
14614 echo "configure: failed program was:" >&5
14615 cat conftest.$ac_ext >&5
14616 rm -rf conftest*
14617 eval "ac_cv_lib_$ac_lib_var=no"
14618fi
14619rm -f conftest*
14620LIBS="$ac_save_LIBS"
14621
14622fi
14623if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14624 echo "$ac_t""yes" 1>&6
14625
14626 cat >> confdefs.h <<\EOF
14627#define HAVE_WCSLEN 1
14628EOF
14629
14630 WCHAR_LINK=
14631
14632else
14633 echo "$ac_t""no" 1>&6
14634
14635 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
14636echo "configure:14637: checking for wcslen in -lw" >&5
14637ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
14638if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14639 echo $ac_n "(cached) $ac_c" 1>&6
14640else
14641 ac_save_LIBS="$LIBS"
14642LIBS="-lw $LIBS"
14643cat > conftest.$ac_ext <<EOF
14644#line 14645 "configure"
14645#include "confdefs.h"
14646/* Override any gcc2 internal prototype to avoid an error. */
14647/* We use char because int might match the return type of a gcc2
14648 builtin and then its argument prototype would still apply. */
14649char wcslen();
14650
14651int main() {
14652wcslen()
14653; return 0; }
14654EOF
14655if { (eval echo configure:14656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14656 rm -rf conftest*
14657 eval "ac_cv_lib_$ac_lib_var=yes"
14658else
14659 echo "configure: failed program was:" >&5
14660 cat conftest.$ac_ext >&5
14661 rm -rf conftest*
14662 eval "ac_cv_lib_$ac_lib_var=no"
14663fi
14664rm -f conftest*
14665LIBS="$ac_save_LIBS"
14666
14667fi
14668if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14669 echo "$ac_t""yes" 1>&6
14670
14671 cat >> confdefs.h <<\EOF
14672#define HAVE_WCSLEN 1
14673EOF
14674
14675 WCHAR_LINK=" -lw"
14676
14677else
14678 echo "$ac_t""no" 1>&6
14679
14680 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
14681echo "configure:14682: checking for wcslen in -lmsvcrt" >&5
14682ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
14683if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14684 echo $ac_n "(cached) $ac_c" 1>&6
14685else
14686 ac_save_LIBS="$LIBS"
14687LIBS="-lmsvcrt $LIBS"
14688cat > conftest.$ac_ext <<EOF
14689#line 14690 "configure"
14690#include "confdefs.h"
14691/* Override any gcc2 internal prototype to avoid an error. */
14692/* We use char because int might match the return type of a gcc2
14693 builtin and then its argument prototype would still apply. */
14694char wcslen();
14695
14696int main() {
14697wcslen()
14698; return 0; }
14699EOF
14700if { (eval echo configure:14701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14701 rm -rf conftest*
14702 eval "ac_cv_lib_$ac_lib_var=yes"
14703else
14704 echo "configure: failed program was:" >&5
14705 cat conftest.$ac_ext >&5
14706 rm -rf conftest*
14707 eval "ac_cv_lib_$ac_lib_var=no"
14708fi
14709rm -f conftest*
14710LIBS="$ac_save_LIBS"
14711
14712fi
14713if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14714 echo "$ac_t""yes" 1>&6
14715
14716 cat >> confdefs.h <<\EOF
14717#define HAVE_WCSLEN 1
14718EOF
14719
14720 WCHAR_LINK=
14721
14722else
14723 echo "$ac_t""no" 1>&6
14724fi
14725
14726
14727fi
14728
14729
14730fi
14731
14732
14733for ac_func in wcsrtombs
14734do
14735echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14736echo "configure:14737: checking for $ac_func" >&5
14737if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14738 echo $ac_n "(cached) $ac_c" 1>&6
14739else
14740 cat > conftest.$ac_ext <<EOF
14741#line 14742 "configure"
14742#include "confdefs.h"
14743/* System header to define __stub macros and hopefully few prototypes,
14744 which can conflict with char $ac_func(); below. */
14745#include <assert.h>
14746/* Override any gcc2 internal prototype to avoid an error. */
14747/* We use char because int might match the return type of a gcc2
14748 builtin and then its argument prototype would still apply. */
14749char $ac_func();
14750
14751int main() {
14752
14753/* The GNU C library defines this for functions which it implements
14754 to always fail with ENOSYS. Some functions are actually named
14755 something starting with __ and the normal name is an alias. */
14756#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14757choke me
14758#else
14759$ac_func();
14760#endif
14761
14762; return 0; }
14763EOF
14764if { (eval echo configure:14765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14765 rm -rf conftest*
14766 eval "ac_cv_func_$ac_func=yes"
14767else
14768 echo "configure: failed program was:" >&5
14769 cat conftest.$ac_ext >&5
14770 rm -rf conftest*
14771 eval "ac_cv_func_$ac_func=no"
14772fi
14773rm -f conftest*
14774fi
14775
14776if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14777 echo "$ac_t""yes" 1>&6
14778 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14779 cat >> confdefs.h <<EOF
14780#define $ac_tr_func 1
14781EOF
14782
14783else
14784 echo "$ac_t""no" 1>&6
14785fi
14786done
14787
14788
14789echo $ac_n "checking for vprintf""... $ac_c" 1>&6
14790echo "configure:14791: checking for vprintf" >&5
14791if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
14792 echo $ac_n "(cached) $ac_c" 1>&6
14793else
14794 cat > conftest.$ac_ext <<EOF
14795#line 14796 "configure"
14796#include "confdefs.h"
14797/* System header to define __stub macros and hopefully few prototypes,
14798 which can conflict with char vprintf(); below. */
14799#include <assert.h>
14800/* Override any gcc2 internal prototype to avoid an error. */
14801/* We use char because int might match the return type of a gcc2
14802 builtin and then its argument prototype would still apply. */
14803char vprintf();
14804
14805int main() {
14806
14807/* The GNU C library defines this for functions which it implements
14808 to always fail with ENOSYS. Some functions are actually named
14809 something starting with __ and the normal name is an alias. */
14810#if defined (__stub_vprintf) || defined (__stub___vprintf)
14811choke me
14812#else
14813vprintf();
14814#endif
14815
14816; return 0; }
14817EOF
14818if { (eval echo configure:14819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14819 rm -rf conftest*
14820 eval "ac_cv_func_vprintf=yes"
14821else
14822 echo "configure: failed program was:" >&5
14823 cat conftest.$ac_ext >&5
14824 rm -rf conftest*
14825 eval "ac_cv_func_vprintf=no"
14826fi
14827rm -f conftest*
14828fi
14829
14830if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
14831 echo "$ac_t""yes" 1>&6
14832 cat >> confdefs.h <<\EOF
14833#define HAVE_VPRINTF 1
14834EOF
14835
14836else
14837 echo "$ac_t""no" 1>&6
14838fi
14839
14840if test "$ac_cv_func_vprintf" != yes; then
14841echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
14842echo "configure:14843: checking for _doprnt" >&5
14843if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
14844 echo $ac_n "(cached) $ac_c" 1>&6
14845else
14846 cat > conftest.$ac_ext <<EOF
14847#line 14848 "configure"
14848#include "confdefs.h"
14849/* System header to define __stub macros and hopefully few prototypes,
14850 which can conflict with char _doprnt(); below. */
14851#include <assert.h>
14852/* Override any gcc2 internal prototype to avoid an error. */
14853/* We use char because int might match the return type of a gcc2
14854 builtin and then its argument prototype would still apply. */
14855char _doprnt();
14856
14857int main() {
14858
14859/* The GNU C library defines this for functions which it implements
14860 to always fail with ENOSYS. Some functions are actually named
14861 something starting with __ and the normal name is an alias. */
14862#if defined (__stub__doprnt) || defined (__stub____doprnt)
14863choke me
14864#else
14865_doprnt();
14866#endif
14867
14868; return 0; }
14869EOF
14870if { (eval echo configure:14871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14871 rm -rf conftest*
14872 eval "ac_cv_func__doprnt=yes"
14873else
14874 echo "configure: failed program was:" >&5
14875 cat conftest.$ac_ext >&5
14876 rm -rf conftest*
14877 eval "ac_cv_func__doprnt=no"
14878fi
14879rm -f conftest*
14880fi
14881
14882if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
14883 echo "$ac_t""yes" 1>&6
14884 cat >> confdefs.h <<\EOF
14885#define HAVE_DOPRNT 1
14886EOF
14887
14888else
14889 echo "$ac_t""no" 1>&6
14890fi
14891
14892fi
14893
14894
14895
14896
14897
14898
14899echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
14900echo "configure:14901: checking for vsnprintf" >&5
14901if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
14902 echo $ac_n "(cached) $ac_c" 1>&6
14903else
14904
14905 cat > conftest.$ac_ext <<EOF
14906#line 14907 "configure"
14907#include "confdefs.h"
14908
14909 #include <stdio.h>
14910 #include <stdarg.h>
14911
14912int main() {
14913
14914 int wx_test_vsnprintf(const char *, ...);
14915
14916 wx_test_vsnprintf("%s");
14917 return 0;
14918 }
14919
14920 int wx_test_vsnprintf(const char *fmt, ...)
14921 {
14922 char *s;
14923
14924 va_list argp;
14925 va_start(argp, fmt);
14926 vsnprintf(s, 42, fmt, argp);
14927 va_end(argp);
14928
14929; return 0; }
14930EOF
14931if { (eval echo configure:14932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14932 rm -rf conftest*
14933
14934 wx_cv_func_vsnprintf=yes
14935
14936else
14937 echo "configure: failed program was:" >&5
14938 cat conftest.$ac_ext >&5
14939 rm -rf conftest*
14940
14941 cat > conftest.$ac_ext <<EOF
14942#line 14943 "configure"
14943#include "confdefs.h"
14944
14945 #include <stdio.h>
14946 #include <stdarg.h>
14947
14948int main() {
14949
14950 int wx_test_vsnprintf(const char *, ...);
14951
14952 wx_test_vsnprintf("%s");
14953 return 0;
14954 }
14955
14956 int wx_test_vsnprintf(const char *fmt, ...)
14957 {
14958 char *s;
14959
14960 va_list argp;
14961 va_start(argp, fmt);
14962 _vsnprintf(s, 42, fmt, argp);
14963 va_end(argp);
14964
14965; return 0; }
14966EOF
14967if { (eval echo configure:14968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14968 rm -rf conftest*
14969
14970 wx_cv_func_vsnprintf=yes
14971
14972else
14973 echo "configure: failed program was:" >&5
14974 cat conftest.$ac_ext >&5
14975 rm -rf conftest*
14976
14977 wx_cv_func_vsnprintf=no
14978
14979fi
14980rm -f conftest*
14981
14982fi
14983rm -f conftest*
14984
14985fi
14986
14987echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
14988
14989if test "$wx_cv_func_vsnprintf" = yes; then
14990 cat >> confdefs.h <<\EOF
14991#define HAVE_VSNPRINTF 1
14992EOF
14993
14994else
14995 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
14996fi
14997
14998echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
14999echo "configure:15000: checking for vsscanf" >&5
15000if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
15001 echo $ac_n "(cached) $ac_c" 1>&6
15002else
15003
15004 cat > conftest.$ac_ext <<EOF
15005#line 15006 "configure"
15006#include "confdefs.h"
15007
15008 #include <stdio.h>
15009 #include <stdarg.h>
15010
15011int main() {
15012
15013 int wx_test_vsscanf(const char *, ...);
15014
15015 wx_test_vsscanf("%d");
15016 return 0;
15017 }
15018
15019 int wx_test_vsscanf(const char *fmt, ...)
15020 {
15021 va_list argp;
15022 va_start(argp, fmt);
15023 vsscanf("42", fmt, argp);
15024 va_end(argp);
15025
15026; return 0; }
15027EOF
15028if { (eval echo configure:15029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15029 rm -rf conftest*
15030
15031 wx_cv_func_vsscanf=yes
15032
15033else
15034 echo "configure: failed program was:" >&5
15035 cat conftest.$ac_ext >&5
15036 rm -rf conftest*
15037
15038 wx_cv_func_vsscanf=no
15039
15040fi
15041rm -f conftest*
15042
15043fi
15044
15045echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
15046
15047if test "$wx_cv_func_vsscanf" = yes; then
15048 cat >> confdefs.h <<\EOF
15049#define HAVE_VSSCANF 1
15050EOF
15051
15052fi
15053
15054if test "$TOOLKIT" != "MSW"; then
15055
15056
15057
15058ac_ext=C
15059# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15060ac_cpp='$CXXCPP $CPPFLAGS'
15061ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15062ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15063cross_compiling=$ac_cv_prog_cxx_cross
15064
15065echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
15066echo "configure:15067: checking if iconv() takes char**" >&5
15067if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
15068 echo $ac_n "(cached) $ac_c" 1>&6
15069else
15070
15071 cat > conftest.$ac_ext <<EOF
15072#line 15073 "configure"
15073#include "confdefs.h"
15074#include <iconv.h>
15075int main() {
15076
15077 char **inbuf, **outbuf;
15078 iconv_t cd;
15079 size_t insz, outsz;
15080 iconv(cd, inbuf, &insz, outbuf, &outsz);
15081
15082; return 0; }
15083EOF
15084if { (eval echo configure:15085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15085 rm -rf conftest*
15086 wx_cv_iconv_takes_char=yes
15087else
15088 echo "configure: failed program was:" >&5
15089 cat conftest.$ac_ext >&5
15090 rm -rf conftest*
15091 wx_cv_iconv_takes_char=no
15092fi
15093rm -f conftest*
15094
15095fi
15096
15097echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
15098ac_ext=c
15099# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15100ac_cpp='$CPP $CPPFLAGS'
15101ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15102ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15103cross_compiling=$ac_cv_prog_cc_cross
15104
15105if test "$wx_cv_iconv_takes_char" = yes ; then
15106 cat >> confdefs.h <<\EOF
15107#define WX_ICONV_TAKES_CHAR 1
15108EOF
15109
15110fi
15111
15112
15113if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
15114 for ac_func in sigaction
15115do
15116echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15117echo "configure:15118: checking for $ac_func" >&5
15118if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15119 echo $ac_n "(cached) $ac_c" 1>&6
15120else
15121 cat > conftest.$ac_ext <<EOF
15122#line 15123 "configure"
15123#include "confdefs.h"
15124/* System header to define __stub macros and hopefully few prototypes,
15125 which can conflict with char $ac_func(); below. */
15126#include <assert.h>
15127/* Override any gcc2 internal prototype to avoid an error. */
15128/* We use char because int might match the return type of a gcc2
15129 builtin and then its argument prototype would still apply. */
15130char $ac_func();
15131
15132int main() {
15133
15134/* The GNU C library defines this for functions which it implements
15135 to always fail with ENOSYS. Some functions are actually named
15136 something starting with __ and the normal name is an alias. */
15137#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15138choke me
15139#else
15140$ac_func();
15141#endif
15142
15143; return 0; }
15144EOF
15145if { (eval echo configure:15146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15146 rm -rf conftest*
15147 eval "ac_cv_func_$ac_func=yes"
15148else
15149 echo "configure: failed program was:" >&5
15150 cat conftest.$ac_ext >&5
15151 rm -rf conftest*
15152 eval "ac_cv_func_$ac_func=no"
15153fi
15154rm -f conftest*
15155fi
15156
15157if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15158 echo "$ac_t""yes" 1>&6
15159 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15160 cat >> confdefs.h <<EOF
15161#define $ac_tr_func 1
15162EOF
15163
15164else
15165 echo "$ac_t""no" 1>&6
15166fi
15167done
15168
15169
15170 if test "$ac_cv_func_sigaction" = "no"; then
15171 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
15172 wxUSE_ON_FATAL_EXCEPTION=no
15173 fi
15174
15175 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15176
15177 ac_ext=C
15178# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15179ac_cpp='$CXXCPP $CPPFLAGS'
15180ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15181ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15182cross_compiling=$ac_cv_prog_cxx_cross
15183
15184
15185 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
15186echo "configure:15187: checking for sa_handler type" >&5
15187if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
15188 echo $ac_n "(cached) $ac_c" 1>&6
15189else
15190
15191 cat > conftest.$ac_ext <<EOF
15192#line 15193 "configure"
15193#include "confdefs.h"
15194#include <signal.h>
15195int main() {
15196
15197 extern void testSigHandler(int);
15198
15199 struct sigaction sa;
15200 sa.sa_handler = testSigHandler;
15201
15202; return 0; }
15203EOF
15204if { (eval echo configure:15205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15205 rm -rf conftest*
15206
15207 wx_cv_type_sa_handler=int
15208
15209else
15210 echo "configure: failed program was:" >&5
15211 cat conftest.$ac_ext >&5
15212 rm -rf conftest*
15213
15214 wx_cv_type_sa_handler=void
15215
15216fi
15217rm -f conftest*
15218
15219fi
15220
15221echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
15222
15223 ac_ext=c
15224# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15225ac_cpp='$CPP $CPPFLAGS'
15226ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15227ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15228cross_compiling=$ac_cv_prog_cc_cross
15229
15230
15231 cat >> confdefs.h <<EOF
15232#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
15233EOF
15234
15235 fi
15236fi
15237
15238for ac_func in vfork
15239do
15240echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15241echo "configure:15242: checking for $ac_func" >&5
15242if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15243 echo $ac_n "(cached) $ac_c" 1>&6
15244else
15245 cat > conftest.$ac_ext <<EOF
15246#line 15247 "configure"
15247#include "confdefs.h"
15248/* System header to define __stub macros and hopefully few prototypes,
15249 which can conflict with char $ac_func(); below. */
15250#include <assert.h>
15251/* Override any gcc2 internal prototype to avoid an error. */
15252/* We use char because int might match the return type of a gcc2
15253 builtin and then its argument prototype would still apply. */
15254char $ac_func();
15255
15256int main() {
15257
15258/* The GNU C library defines this for functions which it implements
15259 to always fail with ENOSYS. Some functions are actually named
15260 something starting with __ and the normal name is an alias. */
15261#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15262choke me
15263#else
15264$ac_func();
15265#endif
15266
15267; return 0; }
15268EOF
15269if { (eval echo configure:15270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15270 rm -rf conftest*
15271 eval "ac_cv_func_$ac_func=yes"
15272else
15273 echo "configure: failed program was:" >&5
15274 cat conftest.$ac_ext >&5
15275 rm -rf conftest*
15276 eval "ac_cv_func_$ac_func=no"
15277fi
15278rm -f conftest*
15279fi
15280
15281if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15282 echo "$ac_t""yes" 1>&6
15283 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15284 cat >> confdefs.h <<EOF
15285#define $ac_tr_func 1
15286EOF
15287
15288else
15289 echo "$ac_t""no" 1>&6
15290fi
15291done
15292
15293
15294for ac_func in mkstemp mktemp
15295do
15296echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15297echo "configure:15298: checking for $ac_func" >&5
15298if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15299 echo $ac_n "(cached) $ac_c" 1>&6
15300else
15301 cat > conftest.$ac_ext <<EOF
15302#line 15303 "configure"
15303#include "confdefs.h"
15304/* System header to define __stub macros and hopefully few prototypes,
15305 which can conflict with char $ac_func(); below. */
15306#include <assert.h>
15307/* Override any gcc2 internal prototype to avoid an error. */
15308/* We use char because int might match the return type of a gcc2
15309 builtin and then its argument prototype would still apply. */
15310char $ac_func();
15311
15312int main() {
15313
15314/* The GNU C library defines this for functions which it implements
15315 to always fail with ENOSYS. Some functions are actually named
15316 something starting with __ and the normal name is an alias. */
15317#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15318choke me
15319#else
15320$ac_func();
15321#endif
15322
15323; return 0; }
15324EOF
15325if { (eval echo configure:15326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15326 rm -rf conftest*
15327 eval "ac_cv_func_$ac_func=yes"
15328else
15329 echo "configure: failed program was:" >&5
15330 cat conftest.$ac_ext >&5
15331 rm -rf conftest*
15332 eval "ac_cv_func_$ac_func=no"
15333fi
15334rm -f conftest*
15335fi
15336
15337if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15338 echo "$ac_t""yes" 1>&6
15339 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15340 cat >> confdefs.h <<EOF
15341#define $ac_tr_func 1
15342EOF
15343 break
15344else
15345 echo "$ac_t""no" 1>&6
15346fi
15347done
15348
15349
15350echo $ac_n "checking for statfs""... $ac_c" 1>&6
15351echo "configure:15352: checking for statfs" >&5
15352if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
15353 echo $ac_n "(cached) $ac_c" 1>&6
15354else
15355 cat > conftest.$ac_ext <<EOF
15356#line 15357 "configure"
15357#include "confdefs.h"
15358
15359 #if defined(__BSD__)
15360 #include <sys/param.h>
15361 #include <sys/mount.h>
15362 #else
15363 #include <sys/vfs.h>
15364 #endif
15365
15366int main() {
15367
15368 long l;
15369 struct statfs fs;
15370 statfs("/", &fs);
15371 l = fs.f_bsize;
15372 l += fs.f_blocks;
15373 l += fs.f_bavail;
15374
15375; return 0; }
15376EOF
15377if { (eval echo configure:15378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15378 rm -rf conftest*
15379
15380 wx_cv_func_statfs=yes
15381
15382else
15383 echo "configure: failed program was:" >&5
15384 cat conftest.$ac_ext >&5
15385 rm -rf conftest*
15386
15387 wx_cv_func_statfs=no
15388
15389
15390fi
15391rm -f conftest*
15392
15393fi
15394
15395echo "$ac_t""$wx_cv_func_statfs" 1>&6
15396
15397if test "$wx_cv_func_statfs" = "yes"; then
15398 cat >> confdefs.h <<\EOF
15399#define HAVE_STATFS 1
15400EOF
15401
15402else
15403 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
15404echo "configure:15405: checking for statvfs" >&5
15405if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
15406 echo $ac_n "(cached) $ac_c" 1>&6
15407else
15408 cat > conftest.$ac_ext <<EOF
15409#line 15410 "configure"
15410#include "confdefs.h"
15411
15412 #include <sys/statvfs.h>
15413
15414int main() {
15415
15416 long l;
15417 struct statvfs fs;
15418 statvfs("/", &fs);
15419 l = fs.f_bsize;
15420 l += fs.f_blocks;
15421 l += fs.f_bavail;
15422
15423; return 0; }
15424EOF
15425if { (eval echo configure:15426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15426 rm -rf conftest*
15427
15428 wx_cv_func_statvfs=yes
15429
15430else
15431 echo "configure: failed program was:" >&5
15432 cat conftest.$ac_ext >&5
15433 rm -rf conftest*
15434
15435 wx_cv_func_statvfs=no
15436
15437
15438fi
15439rm -f conftest*
15440
15441fi
15442
15443echo "$ac_t""$wx_cv_func_statvfs" 1>&6
15444
15445 if test "$wx_cv_func_statvfs" = "yes"; then
15446 cat >> confdefs.h <<\EOF
15447#define HAVE_STATVFS 1
15448EOF
15449
15450 else
15451 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
15452 fi
15453fi
15454
15455if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15456 for ac_func in fcntl flock
15457do
15458echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15459echo "configure:15460: checking for $ac_func" >&5
15460if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15461 echo $ac_n "(cached) $ac_c" 1>&6
15462else
15463 cat > conftest.$ac_ext <<EOF
15464#line 15465 "configure"
15465#include "confdefs.h"
15466/* System header to define __stub macros and hopefully few prototypes,
15467 which can conflict with char $ac_func(); below. */
15468#include <assert.h>
15469/* Override any gcc2 internal prototype to avoid an error. */
15470/* We use char because int might match the return type of a gcc2
15471 builtin and then its argument prototype would still apply. */
15472char $ac_func();
15473
15474int main() {
15475
15476/* The GNU C library defines this for functions which it implements
15477 to always fail with ENOSYS. Some functions are actually named
15478 something starting with __ and the normal name is an alias. */
15479#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15480choke me
15481#else
15482$ac_func();
15483#endif
15484
15485; return 0; }
15486EOF
15487if { (eval echo configure:15488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15488 rm -rf conftest*
15489 eval "ac_cv_func_$ac_func=yes"
15490else
15491 echo "configure: failed program was:" >&5
15492 cat conftest.$ac_ext >&5
15493 rm -rf conftest*
15494 eval "ac_cv_func_$ac_func=no"
15495fi
15496rm -f conftest*
15497fi
15498
15499if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15500 echo "$ac_t""yes" 1>&6
15501 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15502 cat >> confdefs.h <<EOF
15503#define $ac_tr_func 1
15504EOF
15505 break
15506else
15507 echo "$ac_t""no" 1>&6
15508fi
15509done
15510
15511
15512 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
15513 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
15514 wxUSE_SNGLINST_CHECKER=no
15515 fi
15516fi
15517
15518for ac_func in timegm
15519do
15520echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15521echo "configure:15522: checking for $ac_func" >&5
15522if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15523 echo $ac_n "(cached) $ac_c" 1>&6
15524else
15525 cat > conftest.$ac_ext <<EOF
15526#line 15527 "configure"
15527#include "confdefs.h"
15528/* System header to define __stub macros and hopefully few prototypes,
15529 which can conflict with char $ac_func(); below. */
15530#include <assert.h>
15531/* Override any gcc2 internal prototype to avoid an error. */
15532/* We use char because int might match the return type of a gcc2
15533 builtin and then its argument prototype would still apply. */
15534char $ac_func();
15535
15536int main() {
15537
15538/* The GNU C library defines this for functions which it implements
15539 to always fail with ENOSYS. Some functions are actually named
15540 something starting with __ and the normal name is an alias. */
15541#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15542choke me
15543#else
15544$ac_func();
15545#endif
15546
15547; return 0; }
15548EOF
15549if { (eval echo configure:15550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15550 rm -rf conftest*
15551 eval "ac_cv_func_$ac_func=yes"
15552else
15553 echo "configure: failed program was:" >&5
15554 cat conftest.$ac_ext >&5
15555 rm -rf conftest*
15556 eval "ac_cv_func_$ac_func=no"
15557fi
15558rm -f conftest*
15559fi
15560
15561if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15562 echo "$ac_t""yes" 1>&6
15563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15564 cat >> confdefs.h <<EOF
15565#define $ac_tr_func 1
15566EOF
15567
15568else
15569 echo "$ac_t""no" 1>&6
15570fi
15571done
15572
15573
15574for ac_func in putenv setenv
15575do
15576echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15577echo "configure:15578: checking for $ac_func" >&5
15578if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15579 echo $ac_n "(cached) $ac_c" 1>&6
15580else
15581 cat > conftest.$ac_ext <<EOF
15582#line 15583 "configure"
15583#include "confdefs.h"
15584/* System header to define __stub macros and hopefully few prototypes,
15585 which can conflict with char $ac_func(); below. */
15586#include <assert.h>
15587/* Override any gcc2 internal prototype to avoid an error. */
15588/* We use char because int might match the return type of a gcc2
15589 builtin and then its argument prototype would still apply. */
15590char $ac_func();
15591
15592int main() {
15593
15594/* The GNU C library defines this for functions which it implements
15595 to always fail with ENOSYS. Some functions are actually named
15596 something starting with __ and the normal name is an alias. */
15597#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15598choke me
15599#else
15600$ac_func();
15601#endif
15602
15603; return 0; }
15604EOF
15605if { (eval echo configure:15606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15606 rm -rf conftest*
15607 eval "ac_cv_func_$ac_func=yes"
15608else
15609 echo "configure: failed program was:" >&5
15610 cat conftest.$ac_ext >&5
15611 rm -rf conftest*
15612 eval "ac_cv_func_$ac_func=no"
15613fi
15614rm -f conftest*
15615fi
15616
15617if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15618 echo "$ac_t""yes" 1>&6
15619 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15620 cat >> confdefs.h <<EOF
15621#define $ac_tr_func 1
15622EOF
15623 break
15624else
15625 echo "$ac_t""no" 1>&6
15626fi
15627done
15628
15629
15630HAVE_SOME_SLEEP_FUNC=0
15631if test "$USE_BEOS" = 1; then
15632 cat >> confdefs.h <<\EOF
15633#define HAVE_SLEEP 1
15634EOF
15635
15636 HAVE_SOME_SLEEP_FUNC=1
15637fi
15638
15639if test "$USE_DARWIN" = 1; then
15640 cat >> confdefs.h <<\EOF
15641#define HAVE_USLEEP 1
15642EOF
15643
15644 HAVE_SOME_SLEEP_FUNC=1
15645fi
15646
15647if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
15648 POSIX4_LINK=
15649 for ac_func in nanosleep
15650do
15651echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15652echo "configure:15653: checking for $ac_func" >&5
15653if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15654 echo $ac_n "(cached) $ac_c" 1>&6
15655else
15656 cat > conftest.$ac_ext <<EOF
15657#line 15658 "configure"
15658#include "confdefs.h"
15659/* System header to define __stub macros and hopefully few prototypes,
15660 which can conflict with char $ac_func(); below. */
15661#include <assert.h>
15662/* Override any gcc2 internal prototype to avoid an error. */
15663/* We use char because int might match the return type of a gcc2
15664 builtin and then its argument prototype would still apply. */
15665char $ac_func();
15666
15667int main() {
15668
15669/* The GNU C library defines this for functions which it implements
15670 to always fail with ENOSYS. Some functions are actually named
15671 something starting with __ and the normal name is an alias. */
15672#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15673choke me
15674#else
15675$ac_func();
15676#endif
15677
15678; return 0; }
15679EOF
15680if { (eval echo configure:15681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15681 rm -rf conftest*
15682 eval "ac_cv_func_$ac_func=yes"
15683else
15684 echo "configure: failed program was:" >&5
15685 cat conftest.$ac_ext >&5
15686 rm -rf conftest*
15687 eval "ac_cv_func_$ac_func=no"
15688fi
15689rm -f conftest*
15690fi
15691
15692if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15693 echo "$ac_t""yes" 1>&6
15694 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15695 cat >> confdefs.h <<EOF
15696#define $ac_tr_func 1
15697EOF
15698 cat >> confdefs.h <<\EOF
15699#define HAVE_NANOSLEEP 1
15700EOF
15701
15702else
15703 echo "$ac_t""no" 1>&6
15704echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
15705echo "configure:15706: checking for nanosleep in -lposix4" >&5
15706ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
15707if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15708 echo $ac_n "(cached) $ac_c" 1>&6
15709else
15710 ac_save_LIBS="$LIBS"
15711LIBS="-lposix4 $LIBS"
15712cat > conftest.$ac_ext <<EOF
15713#line 15714 "configure"
15714#include "confdefs.h"
15715/* Override any gcc2 internal prototype to avoid an error. */
15716/* We use char because int might match the return type of a gcc2
15717 builtin and then its argument prototype would still apply. */
15718char nanosleep();
15719
15720int main() {
15721nanosleep()
15722; return 0; }
15723EOF
15724if { (eval echo configure:15725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15725 rm -rf conftest*
15726 eval "ac_cv_lib_$ac_lib_var=yes"
15727else
15728 echo "configure: failed program was:" >&5
15729 cat conftest.$ac_ext >&5
15730 rm -rf conftest*
15731 eval "ac_cv_lib_$ac_lib_var=no"
15732fi
15733rm -f conftest*
15734LIBS="$ac_save_LIBS"
15735
15736fi
15737if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15738 echo "$ac_t""yes" 1>&6
15739
15740 cat >> confdefs.h <<\EOF
15741#define HAVE_NANOSLEEP 1
15742EOF
15743
15744 POSIX4_LINK=" -lposix4"
15745
15746else
15747 echo "$ac_t""no" 1>&6
15748
15749 for ac_func in usleep
15750do
15751echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15752echo "configure:15753: checking for $ac_func" >&5
15753if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15754 echo $ac_n "(cached) $ac_c" 1>&6
15755else
15756 cat > conftest.$ac_ext <<EOF
15757#line 15758 "configure"
15758#include "confdefs.h"
15759/* System header to define __stub macros and hopefully few prototypes,
15760 which can conflict with char $ac_func(); below. */
15761#include <assert.h>
15762/* Override any gcc2 internal prototype to avoid an error. */
15763/* We use char because int might match the return type of a gcc2
15764 builtin and then its argument prototype would still apply. */
15765char $ac_func();
15766
15767int main() {
15768
15769/* The GNU C library defines this for functions which it implements
15770 to always fail with ENOSYS. Some functions are actually named
15771 something starting with __ and the normal name is an alias. */
15772#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15773choke me
15774#else
15775$ac_func();
15776#endif
15777
15778; return 0; }
15779EOF
15780if { (eval echo configure:15781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15781 rm -rf conftest*
15782 eval "ac_cv_func_$ac_func=yes"
15783else
15784 echo "configure: failed program was:" >&5
15785 cat conftest.$ac_ext >&5
15786 rm -rf conftest*
15787 eval "ac_cv_func_$ac_func=no"
15788fi
15789rm -f conftest*
15790fi
15791
15792if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15793 echo "$ac_t""yes" 1>&6
15794 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15795 cat >> confdefs.h <<EOF
15796#define $ac_tr_func 1
15797EOF
15798 cat >> confdefs.h <<\EOF
15799#define HAVE_USLEEP 1
15800EOF
15801
15802else
15803 echo "$ac_t""no" 1>&6
15804echo "configure: warning: wxSleep() function will not work" 1>&2
15805
15806fi
15807done
15808
15809
15810
15811fi
15812
15813
15814
15815fi
15816done
15817
15818fi
15819
15820for ac_func in uname gethostname
15821do
15822echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15823echo "configure:15824: checking for $ac_func" >&5
15824if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15825 echo $ac_n "(cached) $ac_c" 1>&6
15826else
15827 cat > conftest.$ac_ext <<EOF
15828#line 15829 "configure"
15829#include "confdefs.h"
15830/* System header to define __stub macros and hopefully few prototypes,
15831 which can conflict with char $ac_func(); below. */
15832#include <assert.h>
15833/* Override any gcc2 internal prototype to avoid an error. */
15834/* We use char because int might match the return type of a gcc2
15835 builtin and then its argument prototype would still apply. */
15836char $ac_func();
15837
15838int main() {
15839
15840/* The GNU C library defines this for functions which it implements
15841 to always fail with ENOSYS. Some functions are actually named
15842 something starting with __ and the normal name is an alias. */
15843#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15844choke me
15845#else
15846$ac_func();
15847#endif
15848
15849; return 0; }
15850EOF
15851if { (eval echo configure:15852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15852 rm -rf conftest*
15853 eval "ac_cv_func_$ac_func=yes"
15854else
15855 echo "configure: failed program was:" >&5
15856 cat conftest.$ac_ext >&5
15857 rm -rf conftest*
15858 eval "ac_cv_func_$ac_func=no"
15859fi
15860rm -f conftest*
15861fi
15862
15863if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15864 echo "$ac_t""yes" 1>&6
15865 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15866 cat >> confdefs.h <<EOF
15867#define $ac_tr_func 1
15868EOF
15869 break
15870else
15871 echo "$ac_t""no" 1>&6
15872fi
15873done
15874
15875
15876
15877ac_ext=C
15878# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15879ac_cpp='$CXXCPP $CPPFLAGS'
15880ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15881ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15882cross_compiling=$ac_cv_prog_cxx_cross
15883
15884
15885for ac_func in strtok_r
15886do
15887echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15888echo "configure:15889: checking for $ac_func" >&5
15889if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15890 echo $ac_n "(cached) $ac_c" 1>&6
15891else
15892 cat > conftest.$ac_ext <<EOF
15893#line 15894 "configure"
15894#include "confdefs.h"
15895/* System header to define __stub macros and hopefully few prototypes,
15896 which can conflict with char $ac_func(); below. */
15897#include <assert.h>
15898/* Override any gcc2 internal prototype to avoid an error. */
15899#ifdef __cplusplus
15900extern "C"
15901#endif
15902/* We use char because int might match the return type of a gcc2
15903 builtin and then its argument prototype would still apply. */
15904char $ac_func();
15905
15906int main() {
15907
15908/* The GNU C library defines this for functions which it implements
15909 to always fail with ENOSYS. Some functions are actually named
15910 something starting with __ and the normal name is an alias. */
15911#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15912choke me
15913#else
15914$ac_func();
15915#endif
15916
15917; return 0; }
15918EOF
15919if { (eval echo configure:15920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15920 rm -rf conftest*
15921 eval "ac_cv_func_$ac_func=yes"
15922else
15923 echo "configure: failed program was:" >&5
15924 cat conftest.$ac_ext >&5
15925 rm -rf conftest*
15926 eval "ac_cv_func_$ac_func=no"
15927fi
15928rm -f conftest*
15929fi
15930
15931if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15932 echo "$ac_t""yes" 1>&6
15933 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15934 cat >> confdefs.h <<EOF
15935#define $ac_tr_func 1
15936EOF
15937
15938else
15939 echo "$ac_t""no" 1>&6
15940fi
15941done
15942
15943
15944ac_ext=c
15945# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15946ac_cpp='$CPP $CPPFLAGS'
15947ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15948ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15949cross_compiling=$ac_cv_prog_cc_cross
15950
15951
15952INET_LINK=
15953for ac_func in inet_addr
15954do
15955echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15956echo "configure:15957: checking for $ac_func" >&5
15957if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15958 echo $ac_n "(cached) $ac_c" 1>&6
15959else
15960 cat > conftest.$ac_ext <<EOF
15961#line 15962 "configure"
15962#include "confdefs.h"
15963/* System header to define __stub macros and hopefully few prototypes,
15964 which can conflict with char $ac_func(); below. */
15965#include <assert.h>
15966/* Override any gcc2 internal prototype to avoid an error. */
15967/* We use char because int might match the return type of a gcc2
15968 builtin and then its argument prototype would still apply. */
15969char $ac_func();
15970
15971int main() {
15972
15973/* The GNU C library defines this for functions which it implements
15974 to always fail with ENOSYS. Some functions are actually named
15975 something starting with __ and the normal name is an alias. */
15976#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15977choke me
15978#else
15979$ac_func();
15980#endif
15981
15982; return 0; }
15983EOF
15984if { (eval echo configure:15985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15985 rm -rf conftest*
15986 eval "ac_cv_func_$ac_func=yes"
15987else
15988 echo "configure: failed program was:" >&5
15989 cat conftest.$ac_ext >&5
15990 rm -rf conftest*
15991 eval "ac_cv_func_$ac_func=no"
15992fi
15993rm -f conftest*
15994fi
15995
15996if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15997 echo "$ac_t""yes" 1>&6
15998 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15999 cat >> confdefs.h <<EOF
16000#define $ac_tr_func 1
16001EOF
16002 cat >> confdefs.h <<\EOF
16003#define HAVE_INET_ADDR 1
16004EOF
16005
16006else
16007 echo "$ac_t""no" 1>&6
16008echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
16009echo "configure:16010: checking for inet_addr in -lnsl" >&5
16010ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
16011if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16012 echo $ac_n "(cached) $ac_c" 1>&6
16013else
16014 ac_save_LIBS="$LIBS"
16015LIBS="-lnsl $LIBS"
16016cat > conftest.$ac_ext <<EOF
16017#line 16018 "configure"
16018#include "confdefs.h"
16019/* Override any gcc2 internal prototype to avoid an error. */
16020/* We use char because int might match the return type of a gcc2
16021 builtin and then its argument prototype would still apply. */
16022char inet_addr();
16023
16024int main() {
16025inet_addr()
16026; return 0; }
16027EOF
16028if { (eval echo configure:16029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16029 rm -rf conftest*
16030 eval "ac_cv_lib_$ac_lib_var=yes"
16031else
16032 echo "configure: failed program was:" >&5
16033 cat conftest.$ac_ext >&5
16034 rm -rf conftest*
16035 eval "ac_cv_lib_$ac_lib_var=no"
16036fi
16037rm -f conftest*
16038LIBS="$ac_save_LIBS"
16039
16040fi
16041if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16042 echo "$ac_t""yes" 1>&6
16043 INET_LINK="nsl"
16044else
16045 echo "$ac_t""no" 1>&6
16046echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
16047echo "configure:16048: checking for inet_addr in -lresolv" >&5
16048ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
16049if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16050 echo $ac_n "(cached) $ac_c" 1>&6
16051else
16052 ac_save_LIBS="$LIBS"
16053LIBS="-lresolv $LIBS"
16054cat > conftest.$ac_ext <<EOF
16055#line 16056 "configure"
16056#include "confdefs.h"
16057/* Override any gcc2 internal prototype to avoid an error. */
16058/* We use char because int might match the return type of a gcc2
16059 builtin and then its argument prototype would still apply. */
16060char inet_addr();
16061
16062int main() {
16063inet_addr()
16064; return 0; }
16065EOF
16066if { (eval echo configure:16067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16067 rm -rf conftest*
16068 eval "ac_cv_lib_$ac_lib_var=yes"
16069else
16070 echo "configure: failed program was:" >&5
16071 cat conftest.$ac_ext >&5
16072 rm -rf conftest*
16073 eval "ac_cv_lib_$ac_lib_var=no"
16074fi
16075rm -f conftest*
16076LIBS="$ac_save_LIBS"
16077
16078fi
16079if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16080 echo "$ac_t""yes" 1>&6
16081 INET_LINK="resolv"
16082
16083else
16084 echo "$ac_t""no" 1>&6
16085fi
16086
16087
16088fi
16089
16090
16091
16092fi
16093done
16094
16095
16096for ac_func in inet_aton
16097do
16098echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16099echo "configure:16100: checking for $ac_func" >&5
16100if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16101 echo $ac_n "(cached) $ac_c" 1>&6
16102else
16103 cat > conftest.$ac_ext <<EOF
16104#line 16105 "configure"
16105#include "confdefs.h"
16106/* System header to define __stub macros and hopefully few prototypes,
16107 which can conflict with char $ac_func(); below. */
16108#include <assert.h>
16109/* Override any gcc2 internal prototype to avoid an error. */
16110/* We use char because int might match the return type of a gcc2
16111 builtin and then its argument prototype would still apply. */
16112char $ac_func();
16113
16114int main() {
16115
16116/* The GNU C library defines this for functions which it implements
16117 to always fail with ENOSYS. Some functions are actually named
16118 something starting with __ and the normal name is an alias. */
16119#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16120choke me
16121#else
16122$ac_func();
16123#endif
16124
16125; return 0; }
16126EOF
16127if { (eval echo configure:16128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16128 rm -rf conftest*
16129 eval "ac_cv_func_$ac_func=yes"
16130else
16131 echo "configure: failed program was:" >&5
16132 cat conftest.$ac_ext >&5
16133 rm -rf conftest*
16134 eval "ac_cv_func_$ac_func=no"
16135fi
16136rm -f conftest*
16137fi
16138
16139if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16140 echo "$ac_t""yes" 1>&6
16141 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16142 cat >> confdefs.h <<EOF
16143#define $ac_tr_func 1
16144EOF
16145 cat >> confdefs.h <<\EOF
16146#define HAVE_INET_ATON 1
16147EOF
16148
16149else
16150 echo "$ac_t""no" 1>&6
16151 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
16152echo "configure:16153: checking for inet_aton in -l$INET_LINK" >&5
16153ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
16154if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16155 echo $ac_n "(cached) $ac_c" 1>&6
16156else
16157 ac_save_LIBS="$LIBS"
16158LIBS="-l$INET_LINK $LIBS"
16159cat > conftest.$ac_ext <<EOF
16160#line 16161 "configure"
16161#include "confdefs.h"
16162/* Override any gcc2 internal prototype to avoid an error. */
16163/* We use char because int might match the return type of a gcc2
16164 builtin and then its argument prototype would still apply. */
16165char inet_aton();
16166
16167int main() {
16168inet_aton()
16169; return 0; }
16170EOF
16171if { (eval echo configure:16172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16172 rm -rf conftest*
16173 eval "ac_cv_lib_$ac_lib_var=yes"
16174else
16175 echo "configure: failed program was:" >&5
16176 cat conftest.$ac_ext >&5
16177 rm -rf conftest*
16178 eval "ac_cv_lib_$ac_lib_var=no"
16179fi
16180rm -f conftest*
16181LIBS="$ac_save_LIBS"
16182
16183fi
16184if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16185 echo "$ac_t""yes" 1>&6
16186 cat >> confdefs.h <<\EOF
16187#define HAVE_INET_ATON 1
16188EOF
16189
16190else
16191 echo "$ac_t""no" 1>&6
16192fi
16193
16194
16195fi
16196done
16197
16198
16199if test "x$INET_LINK" != "x"; then
16200 cat >> confdefs.h <<\EOF
16201#define HAVE_INET_ADDR 1
16202EOF
16203
16204 INET_LINK=" -l$INET_LINK"
16205fi
16206
16207fi
16208
16209
16210cat > confcache <<\EOF
16211# This file is a shell script that caches the results of configure
16212# tests run on this system so they can be shared between configure
16213# scripts and configure runs. It is not useful on other systems.
16214# If it contains results you don't want to keep, you may remove or edit it.
16215#
16216# By default, configure uses ./config.cache as the cache file,
16217# creating it if it does not exist already. You can give configure
16218# the --cache-file=FILE option to use a different cache file; that is
16219# what configure does when it calls configure scripts in
16220# subdirectories, so they share the cache.
16221# Giving --cache-file=/dev/null disables caching, for debugging configure.
16222# config.status only pays attention to the cache file if you give it the
16223# --recheck option to rerun configure.
16224#
16225EOF
16226# The following way of writing the cache mishandles newlines in values,
16227# but we know of no workaround that is simple, portable, and efficient.
16228# So, don't put newlines in cache variables' values.
16229# Ultrix sh set writes to stderr and can't be redirected directly,
16230# and sets the high bit in the cache file unless we assign to the vars.
16231(set) 2>&1 |
16232 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16233 *ac_space=\ *)
16234 # `set' does not quote correctly, so add quotes (double-quote substitution
16235 # turns \\\\ into \\, and sed turns \\ into \).
16236 sed -n \
16237 -e "s/'/'\\\\''/g" \
16238 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16239 ;;
16240 *)
16241 # `set' quotes correctly as required by POSIX, so do not add quotes.
16242 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16243 ;;
16244 esac >> confcache
16245if cmp -s $cache_file confcache; then
16246 :
16247else
16248 if test -w $cache_file; then
16249 echo "updating cache $cache_file"
16250 cat confcache > $cache_file
16251 else
16252 echo "not updating unwritable cache $cache_file"
16253 fi
16254fi
16255rm -f confcache
16256
16257
16258
16259if test "$TOOLKIT" != "MSW"; then
16260
16261
16262 THREADS_LINK=
16263 THREADS_OBJ=
16264 CODE_GEN_FLAGS=
16265 CODE_GEN_FLAGS_CXX=
16266
16267 if test "$wxUSE_THREADS" = "yes" ; then
16268 if test "$wxUSE_WINE" = 1 ; then
16269 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
16270 wxUSE_THREADS="no"
16271 elif test "$USE_BEOS" = 1; then
16272 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
16273 wxUSE_THREADS="no"
16274 fi
16275 fi
16276
16277 if test "$wxUSE_THREADS" = "yes" ; then
16278
16279 if test "$USE_AIX" = 1; then
16280 THREADS_LIB=pthreads
16281 else
16282 THREADS_LIB=pthread
16283 fi
16284
16285 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
16286echo "configure:16287: checking for pthread_create in -l$THREADS_LIB" >&5
16287ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
16288if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16289 echo $ac_n "(cached) $ac_c" 1>&6
16290else
16291 ac_save_LIBS="$LIBS"
16292LIBS="-l$THREADS_LIB $LIBS"
16293cat > conftest.$ac_ext <<EOF
16294#line 16295 "configure"
16295#include "confdefs.h"
16296/* Override any gcc2 internal prototype to avoid an error. */
16297/* We use char because int might match the return type of a gcc2
16298 builtin and then its argument prototype would still apply. */
16299char pthread_create();
16300
16301int main() {
16302pthread_create()
16303; return 0; }
16304EOF
16305if { (eval echo configure:16306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16306 rm -rf conftest*
16307 eval "ac_cv_lib_$ac_lib_var=yes"
16308else
16309 echo "configure: failed program was:" >&5
16310 cat conftest.$ac_ext >&5
16311 rm -rf conftest*
16312 eval "ac_cv_lib_$ac_lib_var=no"
16313fi
16314rm -f conftest*
16315LIBS="$ac_save_LIBS"
16316
16317fi
16318if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16319 echo "$ac_t""yes" 1>&6
16320
16321 THREADS_OBJ="threadpsx.lo"
16322 THREADS_LINK=$THREADS_LIB
16323
16324else
16325 echo "$ac_t""no" 1>&6
16326
16327 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
16328echo "configure:16329: checking for pthread_create in -lc_r" >&5
16329ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
16330if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16331 echo $ac_n "(cached) $ac_c" 1>&6
16332else
16333 ac_save_LIBS="$LIBS"
16334LIBS="-lc_r $LIBS"
16335cat > conftest.$ac_ext <<EOF
16336#line 16337 "configure"
16337#include "confdefs.h"
16338/* Override any gcc2 internal prototype to avoid an error. */
16339/* We use char because int might match the return type of a gcc2
16340 builtin and then its argument prototype would still apply. */
16341char pthread_create();
16342
16343int main() {
16344pthread_create()
16345; return 0; }
16346EOF
16347if { (eval echo configure:16348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16348 rm -rf conftest*
16349 eval "ac_cv_lib_$ac_lib_var=yes"
16350else
16351 echo "configure: failed program was:" >&5
16352 cat conftest.$ac_ext >&5
16353 rm -rf conftest*
16354 eval "ac_cv_lib_$ac_lib_var=no"
16355fi
16356rm -f conftest*
16357LIBS="$ac_save_LIBS"
16358
16359fi
16360if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16361 echo "$ac_t""yes" 1>&6
16362
16363 THREADS_OBJ="threadpsx.lo"
16364 THREADS_LINK="c_r"
16365
16366else
16367 echo "$ac_t""no" 1>&6
16368
16369 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
16370echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
16371echo "configure:16372: checking for sys/prctl.h" >&5
16372if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16373 echo $ac_n "(cached) $ac_c" 1>&6
16374else
16375 cat > conftest.$ac_ext <<EOF
16376#line 16377 "configure"
16377#include "confdefs.h"
16378#include <sys/prctl.h>
16379EOF
16380ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16381{ (eval echo configure:16382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16382ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16383if test -z "$ac_err"; then
16384 rm -rf conftest*
16385 eval "ac_cv_header_$ac_safe=yes"
16386else
16387 echo "$ac_err" >&5
16388 echo "configure: failed program was:" >&5
16389 cat conftest.$ac_ext >&5
16390 rm -rf conftest*
16391 eval "ac_cv_header_$ac_safe=no"
16392fi
16393rm -f conftest*
16394fi
16395if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16396 echo "$ac_t""yes" 1>&6
16397
16398 THREADS_OBJ="threadsgi.lo"
16399
16400else
16401 echo "$ac_t""no" 1>&6
16402fi
16403
16404
16405fi
16406
16407
16408fi
16409
16410
16411 if test -z "$THREADS_OBJ" ; then
16412 wxUSE_THREADS=no
16413 echo "configure: warning: No thread support on this system... disabled" 1>&2
16414 fi
16415 fi
16416
16417 if test "$wxUSE_THREADS" = "yes" ; then
16418 for ac_func in thr_setconcurrency
16419do
16420echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16421echo "configure:16422: checking for $ac_func" >&5
16422if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16423 echo $ac_n "(cached) $ac_c" 1>&6
16424else
16425 cat > conftest.$ac_ext <<EOF
16426#line 16427 "configure"
16427#include "confdefs.h"
16428/* System header to define __stub macros and hopefully few prototypes,
16429 which can conflict with char $ac_func(); below. */
16430#include <assert.h>
16431/* Override any gcc2 internal prototype to avoid an error. */
16432/* We use char because int might match the return type of a gcc2
16433 builtin and then its argument prototype would still apply. */
16434char $ac_func();
16435
16436int main() {
16437
16438/* The GNU C library defines this for functions which it implements
16439 to always fail with ENOSYS. Some functions are actually named
16440 something starting with __ and the normal name is an alias. */
16441#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16442choke me
16443#else
16444$ac_func();
16445#endif
16446
16447; return 0; }
16448EOF
16449if { (eval echo configure:16450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16450 rm -rf conftest*
16451 eval "ac_cv_func_$ac_func=yes"
16452else
16453 echo "configure: failed program was:" >&5
16454 cat conftest.$ac_ext >&5
16455 rm -rf conftest*
16456 eval "ac_cv_func_$ac_func=no"
16457fi
16458rm -f conftest*
16459fi
16460
16461if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16462 echo "$ac_t""yes" 1>&6
16463 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16464 cat >> confdefs.h <<EOF
16465#define $ac_tr_func 1
16466EOF
16467
16468else
16469 echo "$ac_t""no" 1>&6
16470fi
16471done
16472
16473
16474
16475 for ac_hdr in sched.h
16476do
16477ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16478echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16479echo "configure:16480: checking for $ac_hdr" >&5
16480if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16481 echo $ac_n "(cached) $ac_c" 1>&6
16482else
16483 cat > conftest.$ac_ext <<EOF
16484#line 16485 "configure"
16485#include "confdefs.h"
16486#include <$ac_hdr>
16487EOF
16488ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16489{ (eval echo configure:16490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16490ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16491if test -z "$ac_err"; then
16492 rm -rf conftest*
16493 eval "ac_cv_header_$ac_safe=yes"
16494else
16495 echo "$ac_err" >&5
16496 echo "configure: failed program was:" >&5
16497 cat conftest.$ac_ext >&5
16498 rm -rf conftest*
16499 eval "ac_cv_header_$ac_safe=no"
16500fi
16501rm -f conftest*
16502fi
16503if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16504 echo "$ac_t""yes" 1>&6
16505 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16506 cat >> confdefs.h <<EOF
16507#define $ac_tr_hdr 1
16508EOF
16509
16510else
16511 echo "$ac_t""no" 1>&6
16512fi
16513done
16514
16515
16516 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
16517echo "configure:16518: checking for sched_yield in -l$THREADS_LINK" >&5
16518ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
16519if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16520 echo $ac_n "(cached) $ac_c" 1>&6
16521else
16522 ac_save_LIBS="$LIBS"
16523LIBS="-l$THREADS_LINK $LIBS"
16524cat > conftest.$ac_ext <<EOF
16525#line 16526 "configure"
16526#include "confdefs.h"
16527/* Override any gcc2 internal prototype to avoid an error. */
16528/* We use char because int might match the return type of a gcc2
16529 builtin and then its argument prototype would still apply. */
16530char sched_yield();
16531
16532int main() {
16533sched_yield()
16534; return 0; }
16535EOF
16536if { (eval echo configure:16537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16537 rm -rf conftest*
16538 eval "ac_cv_lib_$ac_lib_var=yes"
16539else
16540 echo "configure: failed program was:" >&5
16541 cat conftest.$ac_ext >&5
16542 rm -rf conftest*
16543 eval "ac_cv_lib_$ac_lib_var=no"
16544fi
16545rm -f conftest*
16546LIBS="$ac_save_LIBS"
16547
16548fi
16549if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16550 echo "$ac_t""yes" 1>&6
16551 cat >> confdefs.h <<\EOF
16552#define HAVE_SCHED_YIELD 1
16553EOF
16554
16555else
16556 echo "$ac_t""no" 1>&6
16557echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
16558echo "configure:16559: checking for sched_yield in -lposix4" >&5
16559ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
16560if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16561 echo $ac_n "(cached) $ac_c" 1>&6
16562else
16563 ac_save_LIBS="$LIBS"
16564LIBS="-lposix4 $LIBS"
16565cat > conftest.$ac_ext <<EOF
16566#line 16567 "configure"
16567#include "confdefs.h"
16568/* Override any gcc2 internal prototype to avoid an error. */
16569/* We use char because int might match the return type of a gcc2
16570 builtin and then its argument prototype would still apply. */
16571char sched_yield();
16572
16573int main() {
16574sched_yield()
16575; return 0; }
16576EOF
16577if { (eval echo configure:16578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16578 rm -rf conftest*
16579 eval "ac_cv_lib_$ac_lib_var=yes"
16580else
16581 echo "configure: failed program was:" >&5
16582 cat conftest.$ac_ext >&5
16583 rm -rf conftest*
16584 eval "ac_cv_lib_$ac_lib_var=no"
16585fi
16586rm -f conftest*
16587LIBS="$ac_save_LIBS"
16588
16589fi
16590if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16591 echo "$ac_t""yes" 1>&6
16592 cat >> confdefs.h <<\EOF
16593#define HAVE_SCHED_YIELD 1
16594EOF
16595 POSIX4_LINK=" -lposix4"
16596else
16597 echo "$ac_t""no" 1>&6
16598echo "configure: warning: wxThread::Yield will not work properly" 1>&2
16599
16600fi
16601
16602
16603fi
16604
16605
16606 HAVE_PRIOR_FUNCS=0
16607 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
16608echo "configure:16609: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
16609ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
16610if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16611 echo $ac_n "(cached) $ac_c" 1>&6
16612else
16613 ac_save_LIBS="$LIBS"
16614LIBS="-l$THREADS_LINK $LIBS"
16615cat > conftest.$ac_ext <<EOF
16616#line 16617 "configure"
16617#include "confdefs.h"
16618/* Override any gcc2 internal prototype to avoid an error. */
16619/* We use char because int might match the return type of a gcc2
16620 builtin and then its argument prototype would still apply. */
16621char pthread_attr_getschedpolicy();
16622
16623int main() {
16624pthread_attr_getschedpolicy()
16625; return 0; }
16626EOF
16627if { (eval echo configure:16628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16628 rm -rf conftest*
16629 eval "ac_cv_lib_$ac_lib_var=yes"
16630else
16631 echo "configure: failed program was:" >&5
16632 cat conftest.$ac_ext >&5
16633 rm -rf conftest*
16634 eval "ac_cv_lib_$ac_lib_var=no"
16635fi
16636rm -f conftest*
16637LIBS="$ac_save_LIBS"
16638
16639fi
16640if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16641 echo "$ac_t""yes" 1>&6
16642 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
16643echo "configure:16644: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
16644ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
16645if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16646 echo $ac_n "(cached) $ac_c" 1>&6
16647else
16648 ac_save_LIBS="$LIBS"
16649LIBS="-l$THREADS_LINK $LIBS"
16650cat > conftest.$ac_ext <<EOF
16651#line 16652 "configure"
16652#include "confdefs.h"
16653/* Override any gcc2 internal prototype to avoid an error. */
16654/* We use char because int might match the return type of a gcc2
16655 builtin and then its argument prototype would still apply. */
16656char pthread_attr_setschedparam();
16657
16658int main() {
16659pthread_attr_setschedparam()
16660; return 0; }
16661EOF
16662if { (eval echo configure:16663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16663 rm -rf conftest*
16664 eval "ac_cv_lib_$ac_lib_var=yes"
16665else
16666 echo "configure: failed program was:" >&5
16667 cat conftest.$ac_ext >&5
16668 rm -rf conftest*
16669 eval "ac_cv_lib_$ac_lib_var=no"
16670fi
16671rm -f conftest*
16672LIBS="$ac_save_LIBS"
16673
16674fi
16675if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16676 echo "$ac_t""yes" 1>&6
16677 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
16678echo "configure:16679: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
16679ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
16680if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16681 echo $ac_n "(cached) $ac_c" 1>&6
16682else
16683 ac_save_LIBS="$LIBS"
16684LIBS="-l$THREADS_LINK $LIBS"
16685cat > conftest.$ac_ext <<EOF
16686#line 16687 "configure"
16687#include "confdefs.h"
16688/* Override any gcc2 internal prototype to avoid an error. */
16689/* We use char because int might match the return type of a gcc2
16690 builtin and then its argument prototype would still apply. */
16691char sched_get_priority_max();
16692
16693int main() {
16694sched_get_priority_max()
16695; return 0; }
16696EOF
16697if { (eval echo configure:16698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16698 rm -rf conftest*
16699 eval "ac_cv_lib_$ac_lib_var=yes"
16700else
16701 echo "configure: failed program was:" >&5
16702 cat conftest.$ac_ext >&5
16703 rm -rf conftest*
16704 eval "ac_cv_lib_$ac_lib_var=no"
16705fi
16706rm -f conftest*
16707LIBS="$ac_save_LIBS"
16708
16709fi
16710if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16711 echo "$ac_t""yes" 1>&6
16712 HAVE_PRIOR_FUNCS=1
16713else
16714 echo "$ac_t""no" 1>&6
16715echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
16716echo "configure:16717: checking for sched_get_priority_max in -lposix4" >&5
16717ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
16718if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16719 echo $ac_n "(cached) $ac_c" 1>&6
16720else
16721 ac_save_LIBS="$LIBS"
16722LIBS="-lposix4 $LIBS"
16723cat > conftest.$ac_ext <<EOF
16724#line 16725 "configure"
16725#include "confdefs.h"
16726/* Override any gcc2 internal prototype to avoid an error. */
16727/* We use char because int might match the return type of a gcc2
16728 builtin and then its argument prototype would still apply. */
16729char sched_get_priority_max();
16730
16731int main() {
16732sched_get_priority_max()
16733; return 0; }
16734EOF
16735if { (eval echo configure:16736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16736 rm -rf conftest*
16737 eval "ac_cv_lib_$ac_lib_var=yes"
16738else
16739 echo "configure: failed program was:" >&5
16740 cat conftest.$ac_ext >&5
16741 rm -rf conftest*
16742 eval "ac_cv_lib_$ac_lib_var=no"
16743fi
16744rm -f conftest*
16745LIBS="$ac_save_LIBS"
16746
16747fi
16748if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16749 echo "$ac_t""yes" 1>&6
16750
16751 HAVE_PRIOR_FUNCS=1
16752 POSIX4_LINK=" -lposix4"
16753
16754else
16755 echo "$ac_t""no" 1>&6
16756fi
16757
16758
16759fi
16760
16761
16762else
16763 echo "$ac_t""no" 1>&6
16764fi
16765
16766
16767else
16768 echo "$ac_t""no" 1>&6
16769fi
16770
16771
16772 if test "$HAVE_PRIOR_FUNCS" = 1; then
16773 cat >> confdefs.h <<\EOF
16774#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
16775EOF
16776
16777 else
16778 echo "configure: warning: Setting thread priority will not work" 1>&2
16779 fi
16780
16781 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
16782echo "configure:16783: checking for pthread_cancel in -l$THREADS_LINK" >&5
16783ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
16784if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16785 echo $ac_n "(cached) $ac_c" 1>&6
16786else
16787 ac_save_LIBS="$LIBS"
16788LIBS="-l$THREADS_LINK $LIBS"
16789cat > conftest.$ac_ext <<EOF
16790#line 16791 "configure"
16791#include "confdefs.h"
16792/* Override any gcc2 internal prototype to avoid an error. */
16793/* We use char because int might match the return type of a gcc2
16794 builtin and then its argument prototype would still apply. */
16795char pthread_cancel();
16796
16797int main() {
16798pthread_cancel()
16799; return 0; }
16800EOF
16801if { (eval echo configure:16802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16802 rm -rf conftest*
16803 eval "ac_cv_lib_$ac_lib_var=yes"
16804else
16805 echo "configure: failed program was:" >&5
16806 cat conftest.$ac_ext >&5
16807 rm -rf conftest*
16808 eval "ac_cv_lib_$ac_lib_var=no"
16809fi
16810rm -f conftest*
16811LIBS="$ac_save_LIBS"
16812
16813fi
16814if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16815 echo "$ac_t""yes" 1>&6
16816 cat >> confdefs.h <<\EOF
16817#define HAVE_PTHREAD_CANCEL 1
16818EOF
16819
16820else
16821 echo "$ac_t""no" 1>&6
16822echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
16823fi
16824
16825
16826 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
16827echo "configure:16828: checking for pthread_cleanup_push/pop" >&5
16828if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
16829 echo $ac_n "(cached) $ac_c" 1>&6
16830else
16831
16832 cat > conftest.$ac_ext <<EOF
16833#line 16834 "configure"
16834#include "confdefs.h"
16835#include <pthread.h>
16836int main() {
16837
16838 pthread_cleanup_push(NULL, NULL);
16839 pthread_cleanup_pop(0);
16840
16841; return 0; }
16842EOF
16843if { (eval echo configure:16844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16844 rm -rf conftest*
16845
16846 wx_cv_func_pthread_cleanup_push=yes
16847
16848else
16849 echo "configure: failed program was:" >&5
16850 cat conftest.$ac_ext >&5
16851 rm -rf conftest*
16852
16853 wx_cv_func_pthread_cleanup_push=no
16854
16855fi
16856rm -f conftest*
16857
16858fi
16859
16860echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
16861
16862 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
16863 cat >> confdefs.h <<\EOF
16864#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
16865EOF
16866
16867 fi
16868
16869
16870 if test "x$wx_lib_glibc21" = "xyes"; then
16871 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
16872 fi
16873
16874 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
16875echo "configure:16876: checking for pthread_mutexattr_t" >&5
16876if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
16877 echo $ac_n "(cached) $ac_c" 1>&6
16878else
16879
16880 cat > conftest.$ac_ext <<EOF
16881#line 16882 "configure"
16882#include "confdefs.h"
16883#include <pthread.h>
16884int main() {
16885
16886 pthread_mutexattr_t attr;
16887 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
16888
16889; return 0; }
16890EOF
16891if { (eval echo configure:16892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16892 rm -rf conftest*
16893
16894 wx_cv_type_pthread_mutexattr_t=yes
16895
16896else
16897 echo "configure: failed program was:" >&5
16898 cat conftest.$ac_ext >&5
16899 rm -rf conftest*
16900
16901 wx_cv_type_pthread_mutexattr_t=no
16902
16903
16904fi
16905rm -f conftest*
16906
16907fi
16908
16909echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
16910
16911 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
16912 cat >> confdefs.h <<\EOF
16913#define HAVE_PTHREAD_MUTEXATTR_T 1
16914EOF
16915
16916 else
16917 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
16918echo "configure:16919: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
16919if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
16920 echo $ac_n "(cached) $ac_c" 1>&6
16921else
16922
16923 cat > conftest.$ac_ext <<EOF
16924#line 16925 "configure"
16925#include "confdefs.h"
16926#include <pthread.h>
16927int main() {
16928
16929 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
16930
16931; return 0; }
16932EOF
16933if { (eval echo configure:16934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16934 rm -rf conftest*
16935
16936 wx_cv_type_pthread_rec_mutex_init=yes
16937
16938else
16939 echo "configure: failed program was:" >&5
16940 cat conftest.$ac_ext >&5
16941 rm -rf conftest*
16942
16943 wx_cv_type_pthread_rec_mutex_init=no
16944
16945
16946fi
16947rm -f conftest*
16948
16949fi
16950
16951echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
16952 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
16953 cat >> confdefs.h <<\EOF
16954#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
16955EOF
16956
16957 else
16958 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
16959 fi
16960 fi
16961
16962 THREADS_LINK=" -l$THREADS_LINK"
16963
16964 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
16965 CPPFLAGS="$CFLAGS -mt"
16966 CXXFLAGS="$CXXFLAGS -mt"
16967 LDFLAGS="$LDFLAGS -mt"
16968 fi
16969 fi
16970
16971fi
16972
16973if test "$wxUSE_THREADS" = "yes"; then
16974 cat >> confdefs.h <<\EOF
16975#define wxUSE_THREADS 1
16976EOF
16977
16978
16979 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG"
16980
16981 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
16982else
16983 if test "$ac_cv_func_strtok_r" = "yes"; then
16984 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
16985echo "configure:16986: checking if -D_REENTRANT is needed" >&5
16986 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
16987 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
16988 echo "$ac_t""yes" 1>&6
16989 else
16990 echo "$ac_t""no" 1>&6
16991 fi
16992 fi
16993fi
16994
16995if test "$WXGTK20" = 1 ; then
16996 cat >> confdefs.h <<EOF
16997#define __WXGTK20__ $WXGTK20
16998EOF
16999
17000 WXGTK12=1
17001fi
17002
17003if test "$WXGTK12" = 1 ; then
17004 cat >> confdefs.h <<EOF
17005#define __WXGTK12__ $WXGTK12
17006EOF
17007
17008fi
17009
17010if test "$WXGTK127" = 1 ; then
17011 cat >> confdefs.h <<EOF
17012#define __WXGTK127__ $WXGTK127
17013EOF
17014
17015fi
17016
17017WXDEBUG=
17018
17019if test "$wxUSE_DEBUG_INFO" = "yes" ; then
17020 WXDEBUG="-g"
17021 wxUSE_OPTIMISE=no
17022fi
17023
17024if test "$wxUSE_DEBUG_GDB" = "yes" ; then
17025 wxUSE_DEBUG_INFO=yes
17026 WXDEBUG="-ggdb"
17027fi
17028
17029if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
17030 cat >> confdefs.h <<\EOF
17031#define WXDEBUG 1
17032EOF
17033
17034 WXDEBUG_DEFINE="-D__WXDEBUG__"
17035else
17036 if test "$wxUSE_GTK" = 1 ; then
17037 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
17038 fi
17039fi
17040
17041if test "$wxUSE_MEM_TRACING" = "yes" ; then
17042 cat >> confdefs.h <<\EOF
17043#define wxUSE_MEMORY_TRACING 1
17044EOF
17045
17046 cat >> confdefs.h <<\EOF
17047#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
17048EOF
17049
17050 cat >> confdefs.h <<\EOF
17051#define wxUSE_DEBUG_NEW_ALWAYS 1
17052EOF
17053
17054 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
17055fi
17056
17057if test "$wxUSE_DMALLOC" = "yes" ; then
17058 DMALLOC_LIBS="-ldmalloc"
17059fi
17060
17061PROFILE=
17062if test "$wxUSE_PROFILE" = "yes" ; then
17063 PROFILE=" -pg"
17064fi
17065
17066if test "$GCC" = "yes" ; then
17067 if test "$wxUSE_NO_RTTI" = "yes" ; then
17068 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
17069 fi
17070 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
17071 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
17072 fi
17073 if test "$wxUSE_PERMISSIVE" = "yes" ; then
17074 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
17075 fi
17076 if test "$USE_WIN32" = 1 ; then
17077 # I'm not even really sure what this was ever added to solve,
17078 # but someone added it for mingw native builds, so I guess
17079 # they had a reason, right??
17080 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
17081 fi
17082fi
17083
17084
17085CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
17086CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
17087if test "$wxUSE_OPTIMISE" = "no" ; then
17088 OPTIMISE=
17089else
17090 if test "$GCC" = yes ; then
17091 OPTIMISE="-O2"
17092 case "${host}" in
17093 i586-*-*|i686-*-* )
17094 OPTIMISE="${OPTIMISE} "
17095 ;;
17096 esac
17097 else
17098 OPTIMISE="-O"
17099 fi
17100fi
17101
17102if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
17103 cat >> confdefs.h <<\EOF
17104#define WXWIN_COMPATIBILITY_2 1
17105EOF
17106
17107
17108 WXWIN_COMPATIBILITY_2_2="yes"
17109fi
17110
17111if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
17112 cat >> confdefs.h <<\EOF
17113#define WXWIN_COMPATIBILITY_2_2 1
17114EOF
17115
17116fi
17117
17118
17119if test "$wxUSE_GUI" = "yes"; then
17120 cat >> confdefs.h <<\EOF
17121#define wxUSE_GUI 1
17122EOF
17123
17124
17125 else
17126 cat >> confdefs.h <<\EOF
17127#define wxUSE_NOGUI 1
17128EOF
17129
17130fi
17131
17132
17133if test "$wxUSE_UNIX" = "yes"; then
17134 cat >> confdefs.h <<\EOF
17135#define wxUSE_UNIX 1
17136EOF
17137
17138fi
17139
17140
17141if test "$wxUSE_APPLE_IEEE" = "yes"; then
17142 cat >> confdefs.h <<\EOF
17143#define wxUSE_APPLE_IEEE 1
17144EOF
17145
17146fi
17147
17148if test "$wxUSE_TIMER" = "yes"; then
17149 cat >> confdefs.h <<\EOF
17150#define wxUSE_TIMER 1
17151EOF
17152
17153fi
17154
17155if test "$wxUSE_WAVE" = "yes"; then
17156 cat >> confdefs.h <<\EOF
17157#define wxUSE_WAVE 1
17158EOF
17159
17160fi
17161
17162if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
17163 cat >> confdefs.h <<\EOF
17164#define wxUSE_CMDLINE_PARSER 1
17165EOF
17166
17167fi
17168
17169if test "$wxUSE_STOPWATCH" = "yes"; then
17170 cat >> confdefs.h <<\EOF
17171#define wxUSE_STOPWATCH 1
17172EOF
17173
17174fi
17175
17176if test "$wxUSE_DATETIME" = "yes"; then
17177 cat >> confdefs.h <<\EOF
17178#define wxUSE_DATETIME 1
17179EOF
17180
17181fi
17182
17183if test "$wxUSE_TIMEDATE" = "yes"; then
17184 cat >> confdefs.h <<\EOF
17185#define wxUSE_TIMEDATE 1
17186EOF
17187
17188fi
17189
17190if test "$wxUSE_FILE" = "yes"; then
17191 cat >> confdefs.h <<\EOF
17192#define wxUSE_FILE 1
17193EOF
17194
17195fi
17196
17197if test "$wxUSE_FFILE" = "yes"; then
17198 cat >> confdefs.h <<\EOF
17199#define wxUSE_FFILE 1
17200EOF
17201
17202fi
17203
17204if test "$wxUSE_FILESYSTEM" = "yes"; then
17205 cat >> confdefs.h <<\EOF
17206#define wxUSE_FILESYSTEM 1
17207EOF
17208
17209fi
17210
17211if test "$wxUSE_FS_INET" = "yes"; then
17212 cat >> confdefs.h <<\EOF
17213#define wxUSE_FS_INET 1
17214EOF
17215
17216fi
17217
17218if test "$wxUSE_FS_ZIP" = "yes"; then
17219 cat >> confdefs.h <<\EOF
17220#define wxUSE_FS_ZIP 1
17221EOF
17222
17223fi
17224
17225if test "$wxUSE_ZIPSTREAM" = "yes"; then
17226 cat >> confdefs.h <<\EOF
17227#define wxUSE_ZIPSTREAM 1
17228EOF
17229
17230fi
17231
17232if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
17233 cat >> confdefs.h <<\EOF
17234#define wxUSE_ON_FATAL_EXCEPTION 1
17235EOF
17236
17237fi
17238
17239if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
17240 cat >> confdefs.h <<\EOF
17241#define wxUSE_SNGLINST_CHECKER 1
17242EOF
17243
17244fi
17245
17246if test "$wxUSE_BUSYINFO" = "yes"; then
17247 cat >> confdefs.h <<\EOF
17248#define wxUSE_BUSYINFO 1
17249EOF
17250
17251fi
17252
17253if test "$wxUSE_STD_IOSTREAM" = "yes"; then
17254 cat >> confdefs.h <<\EOF
17255#define wxUSE_STD_IOSTREAM 1
17256EOF
17257
17258fi
17259
17260if test "$wxUSE_TEXTBUFFER" = "yes"; then
17261 cat >> confdefs.h <<\EOF
17262#define wxUSE_TEXTBUFFER 1
17263EOF
17264
17265fi
17266
17267if test "$wxUSE_TEXTFILE" = "yes"; then
17268 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
17269 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
17270 else
17271 cat >> confdefs.h <<\EOF
17272#define wxUSE_TEXTFILE 1
17273EOF
17274
17275 fi
17276fi
17277
17278if test "$wxUSE_CONFIG" = "yes" ; then
17279 if test "$wxUSE_TEXTFILE" != "yes"; then
17280 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
17281 else
17282 cat >> confdefs.h <<\EOF
17283#define wxUSE_CONFIG 1
17284EOF
17285
17286 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
17287 fi
17288fi
17289
17290if test "$wxUSE_INTL" = "yes" ; then
17291 if test "$wxUSE_FILE" != "yes"; then
17292 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
17293 else
17294 cat >> confdefs.h <<\EOF
17295#define wxUSE_INTL 1
17296EOF
17297
17298 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
17299 GUIDIST="$GUIDIST INTL_DIST"
17300 fi
17301fi
17302
17303if test "$wxUSE_LOG" = "yes"; then
17304 cat >> confdefs.h <<\EOF
17305#define wxUSE_LOG 1
17306EOF
17307
17308
17309 if test "$wxUSE_LOGGUI" = "yes"; then
17310 cat >> confdefs.h <<\EOF
17311#define wxUSE_LOGGUI 1
17312EOF
17313
17314 fi
17315
17316 if test "$wxUSE_LOGWINDOW" = "yes"; then
17317 cat >> confdefs.h <<\EOF
17318#define wxUSE_LOGWINDOW 1
17319EOF
17320
17321 fi
17322
17323 if test "$wxUSE_LOGDIALOG" = "yes"; then
17324 cat >> confdefs.h <<\EOF
17325#define wxUSE_LOG_DIALOG 1
17326EOF
17327
17328 fi
17329fi
17330
17331if test "$wxUSE_LONGLONG" = "yes"; then
17332 cat >> confdefs.h <<\EOF
17333#define wxUSE_LONGLONG 1
17334EOF
17335
17336fi
17337
17338if test "$wxUSE_GEOMETRY" = "yes"; then
17339 cat >> confdefs.h <<\EOF
17340#define wxUSE_GEOMETRY 1
17341EOF
17342
17343fi
17344
17345if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
17346 cat >> confdefs.h <<\EOF
17347#define wxUSE_DIALUP_MANAGER 1
17348EOF
17349
17350 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
17351fi
17352
17353if test "$wxUSE_STREAMS" = "yes" ; then
17354 cat >> confdefs.h <<\EOF
17355#define wxUSE_STREAMS 1
17356EOF
17357
17358fi
17359
17360
17361if test "$wxUSE_DATETIME" = "yes"; then
17362 for ac_func in strptime
17363do
17364echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17365echo "configure:17366: checking for $ac_func" >&5
17366if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17367 echo $ac_n "(cached) $ac_c" 1>&6
17368else
17369 cat > conftest.$ac_ext <<EOF
17370#line 17371 "configure"
17371#include "confdefs.h"
17372/* System header to define __stub macros and hopefully few prototypes,
17373 which can conflict with char $ac_func(); below. */
17374#include <assert.h>
17375/* Override any gcc2 internal prototype to avoid an error. */
17376/* We use char because int might match the return type of a gcc2
17377 builtin and then its argument prototype would still apply. */
17378char $ac_func();
17379
17380int main() {
17381
17382/* The GNU C library defines this for functions which it implements
17383 to always fail with ENOSYS. Some functions are actually named
17384 something starting with __ and the normal name is an alias. */
17385#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17386choke me
17387#else
17388$ac_func();
17389#endif
17390
17391; return 0; }
17392EOF
17393if { (eval echo configure:17394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17394 rm -rf conftest*
17395 eval "ac_cv_func_$ac_func=yes"
17396else
17397 echo "configure: failed program was:" >&5
17398 cat conftest.$ac_ext >&5
17399 rm -rf conftest*
17400 eval "ac_cv_func_$ac_func=no"
17401fi
17402rm -f conftest*
17403fi
17404
17405if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17406 echo "$ac_t""yes" 1>&6
17407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17408 cat >> confdefs.h <<EOF
17409#define $ac_tr_func 1
17410EOF
17411
17412else
17413 echo "$ac_t""no" 1>&6
17414fi
17415done
17416
17417
17418 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
17419echo "configure:17420: checking for timezone variable in <time.h>" >&5
17420if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
17421 echo $ac_n "(cached) $ac_c" 1>&6
17422else
17423
17424 cat > conftest.$ac_ext <<EOF
17425#line 17426 "configure"
17426#include "confdefs.h"
17427
17428 #include <time.h>
17429
17430int main() {
17431
17432 int tz;
17433 tz = timezone;
17434
17435; return 0; }
17436EOF
17437if { (eval echo configure:17438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17438 rm -rf conftest*
17439
17440 wx_cv_var_timezone=timezone
17441
17442else
17443 echo "configure: failed program was:" >&5
17444 cat conftest.$ac_ext >&5
17445 rm -rf conftest*
17446
17447 cat > conftest.$ac_ext <<EOF
17448#line 17449 "configure"
17449#include "confdefs.h"
17450
17451 #include <time.h>
17452
17453int main() {
17454
17455 int tz;
17456 tz = _timezone;
17457
17458; return 0; }
17459EOF
17460if { (eval echo configure:17461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17461 rm -rf conftest*
17462
17463 wx_cv_var_timezone=_timezone
17464
17465else
17466 echo "configure: failed program was:" >&5
17467 cat conftest.$ac_ext >&5
17468 rm -rf conftest*
17469
17470 cat > conftest.$ac_ext <<EOF
17471#line 17472 "configure"
17472#include "confdefs.h"
17473
17474 #include <time.h>
17475
17476int main() {
17477
17478 int tz;
17479 tz = __timezone;
17480
17481; return 0; }
17482EOF
17483if { (eval echo configure:17484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17484 rm -rf conftest*
17485
17486 wx_cv_var_timezone=__timezone
17487
17488else
17489 echo "configure: failed program was:" >&5
17490 cat conftest.$ac_ext >&5
17491 rm -rf conftest*
17492
17493 if test "$USE_DOS" = 0 ; then
17494 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
17495 fi
17496
17497
17498fi
17499rm -f conftest*
17500
17501
17502fi
17503rm -f conftest*
17504
17505
17506fi
17507rm -f conftest*
17508
17509
17510fi
17511
17512echo "$ac_t""$wx_cv_var_timezone" 1>&6
17513
17514 if test "x$wx_cv_var_timezone" != x ; then
17515 cat >> confdefs.h <<EOF
17516#define WX_TIMEZONE $wx_cv_var_timezone
17517EOF
17518
17519 fi
17520
17521 for ac_func in localtime
17522do
17523echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17524echo "configure:17525: checking for $ac_func" >&5
17525if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17526 echo $ac_n "(cached) $ac_c" 1>&6
17527else
17528 cat > conftest.$ac_ext <<EOF
17529#line 17530 "configure"
17530#include "confdefs.h"
17531/* System header to define __stub macros and hopefully few prototypes,
17532 which can conflict with char $ac_func(); below. */
17533#include <assert.h>
17534/* Override any gcc2 internal prototype to avoid an error. */
17535/* We use char because int might match the return type of a gcc2
17536 builtin and then its argument prototype would still apply. */
17537char $ac_func();
17538
17539int main() {
17540
17541/* The GNU C library defines this for functions which it implements
17542 to always fail with ENOSYS. Some functions are actually named
17543 something starting with __ and the normal name is an alias. */
17544#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17545choke me
17546#else
17547$ac_func();
17548#endif
17549
17550; return 0; }
17551EOF
17552if { (eval echo configure:17553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17553 rm -rf conftest*
17554 eval "ac_cv_func_$ac_func=yes"
17555else
17556 echo "configure: failed program was:" >&5
17557 cat conftest.$ac_ext >&5
17558 rm -rf conftest*
17559 eval "ac_cv_func_$ac_func=no"
17560fi
17561rm -f conftest*
17562fi
17563
17564if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17565 echo "$ac_t""yes" 1>&6
17566 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17567 cat >> confdefs.h <<EOF
17568#define $ac_tr_func 1
17569EOF
17570
17571else
17572 echo "$ac_t""no" 1>&6
17573fi
17574done
17575
17576
17577 if test "$ac_cv_func_localtime" = "yes"; then
17578 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
17579echo "configure:17580: checking for tm_gmtoff in struct tm" >&5
17580if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
17581 echo $ac_n "(cached) $ac_c" 1>&6
17582else
17583
17584 cat > conftest.$ac_ext <<EOF
17585#line 17586 "configure"
17586#include "confdefs.h"
17587
17588 #include <time.h>
17589
17590int main() {
17591
17592 struct tm tm;
17593 tm.tm_gmtoff++;
17594
17595; return 0; }
17596EOF
17597if { (eval echo configure:17598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17598 rm -rf conftest*
17599
17600 wx_cv_struct_tm_has_gmtoff=yes
17601
17602else
17603 echo "configure: failed program was:" >&5
17604 cat conftest.$ac_ext >&5
17605 rm -rf conftest*
17606 wx_cv_struct_tm_has_gmtoff=no
17607
17608fi
17609rm -f conftest*
17610
17611fi
17612
17613echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
17614 fi
17615
17616 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
17617 cat >> confdefs.h <<\EOF
17618#define WX_GMTOFF_IN_TM 1
17619EOF
17620
17621 fi
17622
17623 for ac_func in gettimeofday ftime
17624do
17625echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17626echo "configure:17627: checking for $ac_func" >&5
17627if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17628 echo $ac_n "(cached) $ac_c" 1>&6
17629else
17630 cat > conftest.$ac_ext <<EOF
17631#line 17632 "configure"
17632#include "confdefs.h"
17633/* System header to define __stub macros and hopefully few prototypes,
17634 which can conflict with char $ac_func(); below. */
17635#include <assert.h>
17636/* Override any gcc2 internal prototype to avoid an error. */
17637/* We use char because int might match the return type of a gcc2
17638 builtin and then its argument prototype would still apply. */
17639char $ac_func();
17640
17641int main() {
17642
17643/* The GNU C library defines this for functions which it implements
17644 to always fail with ENOSYS. Some functions are actually named
17645 something starting with __ and the normal name is an alias. */
17646#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17647choke me
17648#else
17649$ac_func();
17650#endif
17651
17652; return 0; }
17653EOF
17654if { (eval echo configure:17655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17655 rm -rf conftest*
17656 eval "ac_cv_func_$ac_func=yes"
17657else
17658 echo "configure: failed program was:" >&5
17659 cat conftest.$ac_ext >&5
17660 rm -rf conftest*
17661 eval "ac_cv_func_$ac_func=no"
17662fi
17663rm -f conftest*
17664fi
17665
17666if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17667 echo "$ac_t""yes" 1>&6
17668 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17669 cat >> confdefs.h <<EOF
17670#define $ac_tr_func 1
17671EOF
17672 break
17673else
17674 echo "$ac_t""no" 1>&6
17675fi
17676done
17677
17678
17679 if test "$ac_cv_func_gettimeofday" = "yes"; then
17680 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
17681echo "configure:17682: checking whether gettimeofday takes two arguments" >&5
17682if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
17683 echo $ac_n "(cached) $ac_c" 1>&6
17684else
17685
17686
17687 ac_ext=C
17688# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17689ac_cpp='$CXXCPP $CPPFLAGS'
17690ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17691ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17692cross_compiling=$ac_cv_prog_cxx_cross
17693
17694
17695 cat > conftest.$ac_ext <<EOF
17696#line 17697 "configure"
17697#include "confdefs.h"
17698
17699 #include <sys/time.h>
17700 #include <unistd.h>
17701
17702int main() {
17703
17704 struct timeval tv;
17705 gettimeofday(&tv, NULL);
17706
17707; return 0; }
17708EOF
17709if { (eval echo configure:17710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17710 rm -rf conftest*
17711 wx_cv_func_gettimeofday_has_2_args=yes
17712else
17713 echo "configure: failed program was:" >&5
17714 cat conftest.$ac_ext >&5
17715 rm -rf conftest*
17716 cat > conftest.$ac_ext <<EOF
17717#line 17718 "configure"
17718#include "confdefs.h"
17719
17720 #include <sys/time.h>
17721 #include <unistd.h>
17722
17723int main() {
17724
17725 struct timeval tv;
17726 gettimeofday(&tv);
17727
17728; return 0; }
17729EOF
17730if { (eval echo configure:17731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17731 rm -rf conftest*
17732 wx_cv_func_gettimeofday_has_2_args=no
17733else
17734 echo "configure: failed program was:" >&5
17735 cat conftest.$ac_ext >&5
17736 rm -rf conftest*
17737
17738 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
17739 wx_cv_func_gettimeofday_has_2_args=unknown
17740
17741
17742fi
17743rm -f conftest*
17744
17745fi
17746rm -f conftest*
17747 ac_ext=c
17748# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17749ac_cpp='$CPP $CPPFLAGS'
17750ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17751ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17752cross_compiling=$ac_cv_prog_cc_cross
17753
17754
17755fi
17756
17757echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
17758
17759 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
17760 cat >> confdefs.h <<\EOF
17761#define WX_GETTIMEOFDAY_NO_TZ 1
17762EOF
17763
17764 fi
17765 fi
17766
17767 cat >> confdefs.h <<\EOF
17768#define wxUSE_TIMEDATE 1
17769EOF
17770
17771 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
17772fi
17773
17774
17775if test "$TOOLKIT" != "MSW"; then
17776
17777 if test "$wxUSE_SOCKETS" = "yes"; then
17778 echo $ac_n "checking for socket""... $ac_c" 1>&6
17779echo "configure:17780: checking for socket" >&5
17780if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
17781 echo $ac_n "(cached) $ac_c" 1>&6
17782else
17783 cat > conftest.$ac_ext <<EOF
17784#line 17785 "configure"
17785#include "confdefs.h"
17786/* System header to define __stub macros and hopefully few prototypes,
17787 which can conflict with char socket(); below. */
17788#include <assert.h>
17789/* Override any gcc2 internal prototype to avoid an error. */
17790/* We use char because int might match the return type of a gcc2
17791 builtin and then its argument prototype would still apply. */
17792char socket();
17793
17794int main() {
17795
17796/* The GNU C library defines this for functions which it implements
17797 to always fail with ENOSYS. Some functions are actually named
17798 something starting with __ and the normal name is an alias. */
17799#if defined (__stub_socket) || defined (__stub___socket)
17800choke me
17801#else
17802socket();
17803#endif
17804
17805; return 0; }
17806EOF
17807if { (eval echo configure:17808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17808 rm -rf conftest*
17809 eval "ac_cv_func_socket=yes"
17810else
17811 echo "configure: failed program was:" >&5
17812 cat conftest.$ac_ext >&5
17813 rm -rf conftest*
17814 eval "ac_cv_func_socket=no"
17815fi
17816rm -f conftest*
17817fi
17818
17819if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
17820 echo "$ac_t""yes" 1>&6
17821 :
17822else
17823 echo "$ac_t""no" 1>&6
17824echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
17825echo "configure:17826: checking for socket in -lsocket" >&5
17826ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
17827if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17828 echo $ac_n "(cached) $ac_c" 1>&6
17829else
17830 ac_save_LIBS="$LIBS"
17831LIBS="-lsocket $LIBS"
17832cat > conftest.$ac_ext <<EOF
17833#line 17834 "configure"
17834#include "confdefs.h"
17835/* Override any gcc2 internal prototype to avoid an error. */
17836/* We use char because int might match the return type of a gcc2
17837 builtin and then its argument prototype would still apply. */
17838char socket();
17839
17840int main() {
17841socket()
17842; return 0; }
17843EOF
17844if { (eval echo configure:17845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17845 rm -rf conftest*
17846 eval "ac_cv_lib_$ac_lib_var=yes"
17847else
17848 echo "configure: failed program was:" >&5
17849 cat conftest.$ac_ext >&5
17850 rm -rf conftest*
17851 eval "ac_cv_lib_$ac_lib_var=no"
17852fi
17853rm -f conftest*
17854LIBS="$ac_save_LIBS"
17855
17856fi
17857if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17858 echo "$ac_t""yes" 1>&6
17859 INET_LINK="$INET_LINK -lsocket"
17860else
17861 echo "$ac_t""no" 1>&6
17862
17863 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
17864 wxUSE_SOCKETS=no
17865
17866
17867fi
17868
17869
17870fi
17871
17872 fi
17873
17874
17875 if test "$wxUSE_SOCKETS" = "yes" ; then
17876 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
17877echo "configure:17878: checking what is the type of the third argument of getsockname" >&5
17878if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
17879 echo $ac_n "(cached) $ac_c" 1>&6
17880else
17881
17882
17883 ac_ext=C
17884# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17885ac_cpp='$CXXCPP $CPPFLAGS'
17886ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17887ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17888cross_compiling=$ac_cv_prog_cxx_cross
17889
17890
17891 cat > conftest.$ac_ext <<EOF
17892#line 17893 "configure"
17893#include "confdefs.h"
17894
17895 #include <sys/types.h>
17896 #include <sys/socket.h>
17897
17898int main() {
17899
17900 socklen_t len;
17901 getsockname(0, 0, &len);
17902
17903; return 0; }
17904EOF
17905if { (eval echo configure:17906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17906 rm -rf conftest*
17907 wx_cv_type_getsockname3=socklen_t
17908else
17909 echo "configure: failed program was:" >&5
17910 cat conftest.$ac_ext >&5
17911 rm -rf conftest*
17912 cat > conftest.$ac_ext <<EOF
17913#line 17914 "configure"
17914#include "confdefs.h"
17915
17916 #include <sys/types.h>
17917 #include <sys/socket.h>
17918
17919int main() {
17920
17921 size_t len;
17922 getsockname(0, 0, &len);
17923
17924; return 0; }
17925EOF
17926if { (eval echo configure:17927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17927 rm -rf conftest*
17928 wx_cv_type_getsockname3=size_t
17929else
17930 echo "configure: failed program was:" >&5
17931 cat conftest.$ac_ext >&5
17932 rm -rf conftest*
17933 cat > conftest.$ac_ext <<EOF
17934#line 17935 "configure"
17935#include "confdefs.h"
17936
17937 #include <sys/types.h>
17938 #include <sys/socket.h>
17939
17940int main() {
17941
17942 int len;
17943 getsockname(0, 0, &len);
17944
17945; return 0; }
17946EOF
17947if { (eval echo configure:17948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17948 rm -rf conftest*
17949 wx_cv_type_getsockname3=int
17950else
17951 echo "configure: failed program was:" >&5
17952 cat conftest.$ac_ext >&5
17953 rm -rf conftest*
17954 wx_cv_type_getsockname3=unknown
17955
17956fi
17957rm -f conftest*
17958
17959fi
17960rm -f conftest*
17961
17962fi
17963rm -f conftest*
17964
17965 ac_ext=c
17966# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17967ac_cpp='$CPP $CPPFLAGS'
17968ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17969ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17970cross_compiling=$ac_cv_prog_cc_cross
17971
17972
17973fi
17974
17975echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
17976
17977 if test "$wx_cv_type_getsockname3" = "unknown"; then
17978 wxUSE_SOCKETS=no
17979 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
17980 else
17981 cat >> confdefs.h <<EOF
17982#define SOCKLEN_T $wx_cv_type_getsockname3
17983EOF
17984
17985 fi
17986 fi
17987fi
17988
17989if test "$wxUSE_SOCKETS" = "yes" ; then
17990 cat >> confdefs.h <<\EOF
17991#define wxUSE_SOCKETS 1
17992EOF
17993
17994 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
17995fi
17996
17997
17998if test "$wxUSE_GUI" = "yes"; then
17999
18000 if test "$TOOLKIT" = "MAC"; then
18001 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
18002 wxUSE_JOYSTICK=no
18003 fi
18004 if test "$TOOLKIT" = "MOTIF"; then
18005 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
18006 wxUSE_JOYSTICK=no
18007 fi
18008
18009 if test "$TOOLKIT" != "MSW"; then
18010 if test "$wxUSE_JOYSTICK" = "yes"; then
18011 for ac_hdr in linux/joystick.h
18012do
18013ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18014echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18015echo "configure:18016: checking for $ac_hdr" >&5
18016if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18017 echo $ac_n "(cached) $ac_c" 1>&6
18018else
18019 cat > conftest.$ac_ext <<EOF
18020#line 18021 "configure"
18021#include "confdefs.h"
18022#include <$ac_hdr>
18023EOF
18024ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18025{ (eval echo configure:18026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18026ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18027if test -z "$ac_err"; then
18028 rm -rf conftest*
18029 eval "ac_cv_header_$ac_safe=yes"
18030else
18031 echo "$ac_err" >&5
18032 echo "configure: failed program was:" >&5
18033 cat conftest.$ac_ext >&5
18034 rm -rf conftest*
18035 eval "ac_cv_header_$ac_safe=no"
18036fi
18037rm -f conftest*
18038fi
18039if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18040 echo "$ac_t""yes" 1>&6
18041 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18042 cat >> confdefs.h <<EOF
18043#define $ac_tr_hdr 1
18044EOF
18045
18046else
18047 echo "$ac_t""no" 1>&6
18048fi
18049done
18050
18051 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
18052 wxUSE_JOYSTICK=no
18053 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
18054 fi
18055 fi
18056 fi
18057
18058 if test "$wxUSE_JOYSTICK" = "yes"; then
18059 cat >> confdefs.h <<\EOF
18060#define wxUSE_JOYSTICK 1
18061EOF
18062
18063 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
18064 fi
18065fi
18066
18067
18068if test "$TOOLKIT" != "MSW"; then
18069
18070 HAVE_DL_FUNCS=0
18071 HAVE_SHL_FUNCS=0
18072 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
18073 if test "$USE_DARWIN" = 1; then
18074 HAVE_DL_FUNCS=1
18075 else
18076 for ac_func in dlopen
18077do
18078echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18079echo "configure:18080: checking for $ac_func" >&5
18080if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18081 echo $ac_n "(cached) $ac_c" 1>&6
18082else
18083 cat > conftest.$ac_ext <<EOF
18084#line 18085 "configure"
18085#include "confdefs.h"
18086/* System header to define __stub macros and hopefully few prototypes,
18087 which can conflict with char $ac_func(); below. */
18088#include <assert.h>
18089/* Override any gcc2 internal prototype to avoid an error. */
18090/* We use char because int might match the return type of a gcc2
18091 builtin and then its argument prototype would still apply. */
18092char $ac_func();
18093
18094int main() {
18095
18096/* The GNU C library defines this for functions which it implements
18097 to always fail with ENOSYS. Some functions are actually named
18098 something starting with __ and the normal name is an alias. */
18099#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18100choke me
18101#else
18102$ac_func();
18103#endif
18104
18105; return 0; }
18106EOF
18107if { (eval echo configure:18108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18108 rm -rf conftest*
18109 eval "ac_cv_func_$ac_func=yes"
18110else
18111 echo "configure: failed program was:" >&5
18112 cat conftest.$ac_ext >&5
18113 rm -rf conftest*
18114 eval "ac_cv_func_$ac_func=no"
18115fi
18116rm -f conftest*
18117fi
18118
18119if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18120 echo "$ac_t""yes" 1>&6
18121 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18122 cat >> confdefs.h <<EOF
18123#define $ac_tr_func 1
18124EOF
18125
18126 cat >> confdefs.h <<\EOF
18127#define HAVE_DLOPEN 1
18128EOF
18129
18130 HAVE_DL_FUNCS=1
18131
18132else
18133 echo "$ac_t""no" 1>&6
18134echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
18135echo "configure:18136: checking for dlopen in -ldl" >&5
18136ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
18137if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18138 echo $ac_n "(cached) $ac_c" 1>&6
18139else
18140 ac_save_LIBS="$LIBS"
18141LIBS="-ldl $LIBS"
18142cat > conftest.$ac_ext <<EOF
18143#line 18144 "configure"
18144#include "confdefs.h"
18145/* Override any gcc2 internal prototype to avoid an error. */
18146/* We use char because int might match the return type of a gcc2
18147 builtin and then its argument prototype would still apply. */
18148char dlopen();
18149
18150int main() {
18151dlopen()
18152; return 0; }
18153EOF
18154if { (eval echo configure:18155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18155 rm -rf conftest*
18156 eval "ac_cv_lib_$ac_lib_var=yes"
18157else
18158 echo "configure: failed program was:" >&5
18159 cat conftest.$ac_ext >&5
18160 rm -rf conftest*
18161 eval "ac_cv_lib_$ac_lib_var=no"
18162fi
18163rm -f conftest*
18164LIBS="$ac_save_LIBS"
18165
18166fi
18167if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18168 echo "$ac_t""yes" 1>&6
18169
18170 cat >> confdefs.h <<\EOF
18171#define HAVE_DLOPEN 1
18172EOF
18173
18174 HAVE_DL_FUNCS=1
18175 DL_LINK=" -ldl$DL_LINK"
18176
18177else
18178 echo "$ac_t""no" 1>&6
18179
18180 for ac_func in shl_load
18181do
18182echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18183echo "configure:18184: checking for $ac_func" >&5
18184if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18185 echo $ac_n "(cached) $ac_c" 1>&6
18186else
18187 cat > conftest.$ac_ext <<EOF
18188#line 18189 "configure"
18189#include "confdefs.h"
18190/* System header to define __stub macros and hopefully few prototypes,
18191 which can conflict with char $ac_func(); below. */
18192#include <assert.h>
18193/* Override any gcc2 internal prototype to avoid an error. */
18194/* We use char because int might match the return type of a gcc2
18195 builtin and then its argument prototype would still apply. */
18196char $ac_func();
18197
18198int main() {
18199
18200/* The GNU C library defines this for functions which it implements
18201 to always fail with ENOSYS. Some functions are actually named
18202 something starting with __ and the normal name is an alias. */
18203#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18204choke me
18205#else
18206$ac_func();
18207#endif
18208
18209; return 0; }
18210EOF
18211if { (eval echo configure:18212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18212 rm -rf conftest*
18213 eval "ac_cv_func_$ac_func=yes"
18214else
18215 echo "configure: failed program was:" >&5
18216 cat conftest.$ac_ext >&5
18217 rm -rf conftest*
18218 eval "ac_cv_func_$ac_func=no"
18219fi
18220rm -f conftest*
18221fi
18222
18223if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18224 echo "$ac_t""yes" 1>&6
18225 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18226 cat >> confdefs.h <<EOF
18227#define $ac_tr_func 1
18228EOF
18229
18230 cat >> confdefs.h <<\EOF
18231#define HAVE_SHL_LOAD 1
18232EOF
18233
18234 HAVE_SHL_FUNCS=1
18235
18236else
18237 echo "$ac_t""no" 1>&6
18238echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
18239echo "configure:18240: checking for dld in -lshl_load" >&5
18240ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
18241if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18242 echo $ac_n "(cached) $ac_c" 1>&6
18243else
18244 ac_save_LIBS="$LIBS"
18245LIBS="-lshl_load $LIBS"
18246cat > conftest.$ac_ext <<EOF
18247#line 18248 "configure"
18248#include "confdefs.h"
18249/* Override any gcc2 internal prototype to avoid an error. */
18250/* We use char because int might match the return type of a gcc2
18251 builtin and then its argument prototype would still apply. */
18252char dld();
18253
18254int main() {
18255dld()
18256; return 0; }
18257EOF
18258if { (eval echo configure:18259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18259 rm -rf conftest*
18260 eval "ac_cv_lib_$ac_lib_var=yes"
18261else
18262 echo "configure: failed program was:" >&5
18263 cat conftest.$ac_ext >&5
18264 rm -rf conftest*
18265 eval "ac_cv_lib_$ac_lib_var=no"
18266fi
18267rm -f conftest*
18268LIBS="$ac_save_LIBS"
18269
18270fi
18271if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18272 echo "$ac_t""yes" 1>&6
18273
18274 HAVE_SHL_FUNCS=1
18275 DL_LINK=" -ldld$DL_LINK"
18276
18277else
18278 echo "$ac_t""no" 1>&6
18279fi
18280
18281
18282fi
18283done
18284
18285
18286fi
18287
18288
18289fi
18290done
18291
18292
18293 if test "$HAVE_DL_FUNCS" = 1; then
18294 for ac_func in dlerror
18295do
18296echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18297echo "configure:18298: checking for $ac_func" >&5
18298if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18299 echo $ac_n "(cached) $ac_c" 1>&6
18300else
18301 cat > conftest.$ac_ext <<EOF
18302#line 18303 "configure"
18303#include "confdefs.h"
18304/* System header to define __stub macros and hopefully few prototypes,
18305 which can conflict with char $ac_func(); below. */
18306#include <assert.h>
18307/* Override any gcc2 internal prototype to avoid an error. */
18308/* We use char because int might match the return type of a gcc2
18309 builtin and then its argument prototype would still apply. */
18310char $ac_func();
18311
18312int main() {
18313
18314/* The GNU C library defines this for functions which it implements
18315 to always fail with ENOSYS. Some functions are actually named
18316 something starting with __ and the normal name is an alias. */
18317#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18318choke me
18319#else
18320$ac_func();
18321#endif
18322
18323; return 0; }
18324EOF
18325if { (eval echo configure:18326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18326 rm -rf conftest*
18327 eval "ac_cv_func_$ac_func=yes"
18328else
18329 echo "configure: failed program was:" >&5
18330 cat conftest.$ac_ext >&5
18331 rm -rf conftest*
18332 eval "ac_cv_func_$ac_func=no"
18333fi
18334rm -f conftest*
18335fi
18336
18337if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18338 echo "$ac_t""yes" 1>&6
18339 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18340 cat >> confdefs.h <<EOF
18341#define $ac_tr_func 1
18342EOF
18343 cat >> confdefs.h <<\EOF
18344#define HAVE_DLERROR 1
18345EOF
18346
18347else
18348 echo "$ac_t""no" 1>&6
18349echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
18350echo "configure:18351: checking for dlerror in -ldl" >&5
18351ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
18352if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18353 echo $ac_n "(cached) $ac_c" 1>&6
18354else
18355 ac_save_LIBS="$LIBS"
18356LIBS="-ldl $LIBS"
18357cat > conftest.$ac_ext <<EOF
18358#line 18359 "configure"
18359#include "confdefs.h"
18360/* Override any gcc2 internal prototype to avoid an error. */
18361/* We use char because int might match the return type of a gcc2
18362 builtin and then its argument prototype would still apply. */
18363char dlerror();
18364
18365int main() {
18366dlerror()
18367; return 0; }
18368EOF
18369if { (eval echo configure:18370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18370 rm -rf conftest*
18371 eval "ac_cv_lib_$ac_lib_var=yes"
18372else
18373 echo "configure: failed program was:" >&5
18374 cat conftest.$ac_ext >&5
18375 rm -rf conftest*
18376 eval "ac_cv_lib_$ac_lib_var=no"
18377fi
18378rm -f conftest*
18379LIBS="$ac_save_LIBS"
18380
18381fi
18382if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18383 echo "$ac_t""yes" 1>&6
18384 cat >> confdefs.h <<\EOF
18385#define HAVE_DLERROR 1
18386EOF
18387
18388else
18389 echo "$ac_t""no" 1>&6
18390fi
18391
18392fi
18393done
18394
18395 fi
18396 fi
18397
18398 if test "$HAVE_DL_FUNCS" = 0; then
18399 if test "$HAVE_SHL_FUNCS" = 0; then
18400 if test "$USE_UNIX" = 1; then
18401 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
18402 wxUSE_DYNAMIC_LOADER=no
18403 wxUSE_DYNLIB_CLASS=no
18404 else
18405 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
18406 fi
18407 fi
18408 fi
18409 fi
18410fi
18411
18412if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
18413 cat >> confdefs.h <<\EOF
18414#define wxUSE_DYNAMIC_LOADER 1
18415EOF
18416
18417elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
18418 cat >> confdefs.h <<\EOF
18419#define wxUSE_DYNLIB_CLASS 1
18420EOF
18421
18422fi
18423
18424
18425if test "$wxUSE_FONTMAP" = "yes" ; then
18426 cat >> confdefs.h <<\EOF
18427#define wxUSE_FONTMAP 1
18428EOF
18429
18430fi
18431
18432if test "$wxUSE_UNICODE" = "yes" ; then
18433 cat >> confdefs.h <<\EOF
18434#define wxUSE_UNICODE 1
18435EOF
18436
18437
18438 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
18439 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
18440echo "configure:18441: checking for main in -lunicows" >&5
18441ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
18442if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18443 echo $ac_n "(cached) $ac_c" 1>&6
18444else
18445 ac_save_LIBS="$LIBS"
18446LIBS="-lunicows $LIBS"
18447cat > conftest.$ac_ext <<EOF
18448#line 18449 "configure"
18449#include "confdefs.h"
18450
18451int main() {
18452main()
18453; return 0; }
18454EOF
18455if { (eval echo configure:18456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18456 rm -rf conftest*
18457 eval "ac_cv_lib_$ac_lib_var=yes"
18458else
18459 echo "configure: failed program was:" >&5
18460 cat conftest.$ac_ext >&5
18461 rm -rf conftest*
18462 eval "ac_cv_lib_$ac_lib_var=no"
18463fi
18464rm -f conftest*
18465LIBS="$ac_save_LIBS"
18466
18467fi
18468if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18469 echo "$ac_t""yes" 1>&6
18470
18471 cat >> confdefs.h <<\EOF
18472#define wxUSE_UNICODE_MSLU 1
18473EOF
18474
18475
18476else
18477 echo "$ac_t""no" 1>&6
18478
18479 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
18480 Applications will only run on Windows NT/2000/XP!" 1>&2
18481 wxUSE_UNICODE_MSLU=no
18482
18483fi
18484
18485 fi
18486fi
18487
18488if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
18489 cat >> confdefs.h <<\EOF
18490#define wxUSE_EXPERIMENTAL_PRINTF 1
18491EOF
18492
18493fi
18494
18495
18496
18497IODBC_C_SRC=""
18498if test "$wxUSE_ODBC" = "yes" ; then
18499 cat >> confdefs.h <<\EOF
18500#define wxUSE_ODBC 1
18501EOF
18502
18503 WXODBCFLAG="-D_IODBC_"
18504 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
18505fi
18506
18507
18508if test "$wxUSE_POSTSCRIPT" = "yes" ; then
18509 cat >> confdefs.h <<\EOF
18510#define wxUSE_POSTSCRIPT 1
18511EOF
18512
18513fi
18514
18515cat >> confdefs.h <<\EOF
18516#define wxUSE_AFM_FOR_POSTSCRIPT 1
18517EOF
18518
18519
18520cat >> confdefs.h <<\EOF
18521#define wxUSE_NORMALIZED_PS_FONTS 1
18522EOF
18523
18524
18525
18526if test "$wxUSE_CONSTRAINTS" = "yes"; then
18527 cat >> confdefs.h <<\EOF
18528#define wxUSE_CONSTRAINTS 1
18529EOF
18530
18531 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
18532fi
18533
18534if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18535 if test "$wxUSE_UNIVERSAL" = "yes"; then
18536 echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2
18537 wxUSE_MDI_ARCHITECTURE=no
18538 fi
18539
18540 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18541 cat >> confdefs.h <<\EOF
18542#define wxUSE_MDI_ARCHITECTURE 1
18543EOF
18544
18545 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
18546 fi
18547fi
18548
18549if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
18550 cat >> confdefs.h <<\EOF
18551#define wxUSE_DOC_VIEW_ARCHITECTURE 1
18552EOF
18553
18554 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
18555 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18556 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
18557 fi
18558fi
18559
18560if test "$wxUSE_HELP" = "yes"; then
18561 cat >> confdefs.h <<\EOF
18562#define wxUSE_HELP 1
18563EOF
18564
18565 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
18566
18567 if test "$wxUSE_MSW" = 1; then
18568 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
18569 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
18570echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
18571echo "configure:18572: checking for htmlhelp.h" >&5
18572if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18573 echo $ac_n "(cached) $ac_c" 1>&6
18574else
18575 cat > conftest.$ac_ext <<EOF
18576#line 18577 "configure"
18577#include "confdefs.h"
18578#include <htmlhelp.h>
18579EOF
18580ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18581{ (eval echo configure:18582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18582ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18583if test -z "$ac_err"; then
18584 rm -rf conftest*
18585 eval "ac_cv_header_$ac_safe=yes"
18586else
18587 echo "$ac_err" >&5
18588 echo "configure: failed program was:" >&5
18589 cat conftest.$ac_ext >&5
18590 rm -rf conftest*
18591 eval "ac_cv_header_$ac_safe=no"
18592fi
18593rm -f conftest*
18594fi
18595if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18596 echo "$ac_t""yes" 1>&6
18597
18598 cat >> confdefs.h <<\EOF
18599#define wxUSE_MS_HTML_HELP 1
18600EOF
18601
18602
18603else
18604 echo "$ac_t""no" 1>&6
18605
18606 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
18607 wxUSE_MS_HTML_HELP=no
18608
18609fi
18610
18611 fi
18612 fi
18613
18614 if test "$wxUSE_WXHTML_HELP" = "yes"; then
18615 if test "$wxUSE_HTML" = "yes"; then
18616 cat >> confdefs.h <<\EOF
18617#define wxUSE_WXHTML_HELP 1
18618EOF
18619
18620 else
18621 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
18622 wxUSE_WXHTML_HELP=no
18623 fi
18624 fi
18625fi
18626
18627if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
18628 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18629 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
18630 else
18631 cat >> confdefs.h <<\EOF
18632#define wxUSE_PRINTING_ARCHITECTURE 1
18633EOF
18634
18635 fi
18636 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
18637fi
18638
18639if test "$wxUSE_PROLOGIO" = "yes" ; then
18640 cat >> confdefs.h <<\EOF
18641#define wxUSE_PROLOGIO 1
18642EOF
18643
18644fi
18645
18646if test "$wxUSE_RESOURCES" = "yes" ; then
18647 cat >> confdefs.h <<\EOF
18648#define wxUSE_RESOURCES 1
18649EOF
18650
18651 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
18652fi
18653
18654if test "$wxUSE_X_RESOURCES" = "yes"; then
18655 cat >> confdefs.h <<\EOF
18656#define wxUSE_X_RESOURCES 1
18657EOF
18658
18659fi
18660
18661
18662if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
18663 -o "$wxUSE_CLIPBOARD" = "yes" \
18664 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
18665 for ac_hdr in ole2.h
18666do
18667ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18668echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18669echo "configure:18670: checking for $ac_hdr" >&5
18670if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18671 echo $ac_n "(cached) $ac_c" 1>&6
18672else
18673 cat > conftest.$ac_ext <<EOF
18674#line 18675 "configure"
18675#include "confdefs.h"
18676#include <$ac_hdr>
18677EOF
18678ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18679{ (eval echo configure:18680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18680ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18681if test -z "$ac_err"; then
18682 rm -rf conftest*
18683 eval "ac_cv_header_$ac_safe=yes"
18684else
18685 echo "$ac_err" >&5
18686 echo "configure: failed program was:" >&5
18687 cat conftest.$ac_ext >&5
18688 rm -rf conftest*
18689 eval "ac_cv_header_$ac_safe=no"
18690fi
18691rm -f conftest*
18692fi
18693if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18694 echo "$ac_t""yes" 1>&6
18695 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18696 cat >> confdefs.h <<EOF
18697#define $ac_tr_hdr 1
18698EOF
18699
18700else
18701 echo "$ac_t""no" 1>&6
18702fi
18703done
18704
18705
18706 if test "$ac_cv_header_ole2_h" = "yes" ; then
18707 if test "$GCC" = yes ; then
18708 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
18709 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
18710 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
18711 cat >> confdefs.h <<\EOF
18712#define wxUSE_OLE 1
18713EOF
18714
18715
18716 fi
18717
18718 cat >> confdefs.h <<\EOF
18719#define wxUSE_DATAOBJ 1
18720EOF
18721
18722 else
18723 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
18724
18725 wxUSE_CLIPBOARD=no
18726 wxUSE_DRAG_AND_DROP=no
18727 wxUSE_DATAOBJ=no
18728 fi
18729
18730 if test "$wxUSE_METAFILE" = "yes"; then
18731 cat >> confdefs.h <<\EOF
18732#define wxUSE_METAFILE 1
18733EOF
18734
18735
18736 cat >> confdefs.h <<\EOF
18737#define wxUSE_ENH_METAFILE 1
18738EOF
18739
18740 fi
18741fi
18742
18743if test "$wxUSE_IPC" = "yes"; then
18744 if test "$wxUSE_SOCKETS" != "yes"; then
18745 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
18746 fi
18747
18748 cat >> confdefs.h <<\EOF
18749#define wxUSE_IPC 1
18750EOF
18751
18752fi
18753
18754if test "$wxUSE_CLIPBOARD" = "yes"; then
18755 cat >> confdefs.h <<\EOF
18756#define wxUSE_CLIPBOARD 1
18757EOF
18758
18759
18760 cat >> confdefs.h <<\EOF
18761#define wxUSE_DATAOBJ 1
18762EOF
18763
18764fi
18765
18766if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
18767 if test "$wxUSE_GTK" = 1; then
18768 if test "$WXGTK12" != 1; then
18769 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
18770 wxUSE_DRAG_AND_DROP=no
18771 fi
18772 fi
18773
18774 if test "$wxUSE_MOTIF" = 1; then
18775 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
18776 wxUSE_DRAG_AND_DROP=no
18777 fi
18778
18779 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
18780 cat >> confdefs.h <<\EOF
18781#define wxUSE_DRAG_AND_DROP 1
18782EOF
18783
18784 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
18785 fi
18786
18787fi
18788
18789if test "$wxUSE_SPLINES" = "yes" ; then
18790 cat >> confdefs.h <<\EOF
18791#define wxUSE_SPLINES 1
18792EOF
18793
18794fi
18795
18796
18797USES_CONTROLS=0
18798if test "$wxUSE_CONTROLS" = "yes"; then
18799 USES_CONTROLS=1
18800fi
18801
18802if test "$wxUSE_ACCEL" = "yes"; then
18803 cat >> confdefs.h <<\EOF
18804#define wxUSE_ACCEL 1
18805EOF
18806
18807 USES_CONTROLS=1
18808fi
18809
18810if test "$wxUSE_BUTTON" = "yes"; then
18811 cat >> confdefs.h <<\EOF
18812#define wxUSE_BUTTON 1
18813EOF
18814
18815 USES_CONTROLS=1
18816fi
18817
18818if test "$wxUSE_BMPBUTTON" = "yes"; then
18819 cat >> confdefs.h <<\EOF
18820#define wxUSE_BMPBUTTON 1
18821EOF
18822
18823 USES_CONTROLS=1
18824fi
18825
18826if test "$wxUSE_CALCTRL" = "yes"; then
18827 cat >> confdefs.h <<\EOF
18828#define wxUSE_CALENDARCTRL 1
18829EOF
18830
18831 USES_CONTROLS=1
18832 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
18833fi
18834
18835if test "$wxUSE_CARET" = "yes"; then
18836 cat >> confdefs.h <<\EOF
18837#define wxUSE_CARET 1
18838EOF
18839
18840 USES_CONTROLS=1
18841 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
18842fi
18843
18844if test "$wxUSE_COMBOBOX" = "yes"; then
18845 cat >> confdefs.h <<\EOF
18846#define wxUSE_COMBOBOX 1
18847EOF
18848
18849 USES_CONTROLS=1
18850fi
18851
18852if test "$wxUSE_CHOICE" = "yes"; then
18853 cat >> confdefs.h <<\EOF
18854#define wxUSE_CHOICE 1
18855EOF
18856
18857 USES_CONTROLS=1
18858fi
18859
18860if test "$wxUSE_CHECKBOX" = "yes"; then
18861 cat >> confdefs.h <<\EOF
18862#define wxUSE_CHECKBOX 1
18863EOF
18864
18865 USES_CONTROLS=1
18866fi
18867
18868if test "$wxUSE_CHECKLST" = "yes"; then
18869 cat >> confdefs.h <<\EOF
18870#define wxUSE_CHECKLISTBOX 1
18871EOF
18872
18873 USES_CONTROLS=1
18874 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
18875fi
18876
18877if test "$wxUSE_GAUGE" = "yes"; then
18878 cat >> confdefs.h <<\EOF
18879#define wxUSE_GAUGE 1
18880EOF
18881
18882 USES_CONTROLS=1
18883fi
18884
18885if test "$wxUSE_NEW_GRID" = "yes"; then
18886 wxUSE_GRID="yes"
18887 cat >> confdefs.h <<\EOF
18888#define wxUSE_NEW_GRID 1
18889EOF
18890
18891 USES_CONTROLS=1
18892 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
18893fi
18894
18895if test "$wxUSE_GRID" = "yes"; then
18896 cat >> confdefs.h <<\EOF
18897#define wxUSE_GRID 1
18898EOF
18899
18900 USES_CONTROLS=1
18901 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
18902fi
18903
18904if test "$wxUSE_IMAGLIST" = "yes"; then
18905 cat >> confdefs.h <<\EOF
18906#define wxUSE_IMAGLIST 1
18907EOF
18908
18909fi
18910
18911if test "$wxUSE_LISTBOX" = "yes"; then
18912 cat >> confdefs.h <<\EOF
18913#define wxUSE_LISTBOX 1
18914EOF
18915
18916 USES_CONTROLS=1
18917fi
18918
18919if test "$wxUSE_LISTCTRL" = "yes"; then
18920 if test "$wxUSE_IMAGLIST" = "yes"; then
18921 cat >> confdefs.h <<\EOF
18922#define wxUSE_LISTCTRL 1
18923EOF
18924
18925 USES_CONTROLS=1
18926 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
18927 else
18928 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
18929 fi
18930fi
18931
18932if test "$wxUSE_NOTEBOOK" = "yes"; then
18933 cat >> confdefs.h <<\EOF
18934#define wxUSE_NOTEBOOK 1
18935EOF
18936
18937 USES_CONTROLS=1
18938 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
18939fi
18940
18941if test "$wxUSE_PROPSHEET" = "yes"; then
18942 cat >> confdefs.h <<\EOF
18943#define wxUSE_PROPSHEET 1
18944EOF
18945
18946 USES_CONTROLS=1
18947 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
18948fi
18949
18950if test "$wxUSE_RADIOBOX" = "yes"; then
18951 cat >> confdefs.h <<\EOF
18952#define wxUSE_RADIOBOX 1
18953EOF
18954
18955 USES_CONTROLS=1
18956fi
18957
18958if test "$wxUSE_RADIOBTN" = "yes"; then
18959 cat >> confdefs.h <<\EOF
18960#define wxUSE_RADIOBTN 1
18961EOF
18962
18963 USES_CONTROLS=1
18964fi
18965
18966if test "$wxUSE_SASH" = "yes"; then
18967 cat >> confdefs.h <<\EOF
18968#define wxUSE_SASH 1
18969EOF
18970
18971 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
18972fi
18973
18974if test "$wxUSE_SCROLLBAR" = "yes"; then
18975 cat >> confdefs.h <<\EOF
18976#define wxUSE_SCROLLBAR 1
18977EOF
18978
18979 USES_CONTROLS=1
18980 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
18981fi
18982
18983if test "$wxUSE_SLIDER" = "yes"; then
18984 cat >> confdefs.h <<\EOF
18985#define wxUSE_SLIDER 1
18986EOF
18987
18988 USES_CONTROLS=1
18989fi
18990
18991if test "$wxUSE_SPINBTN" = "yes"; then
18992 cat >> confdefs.h <<\EOF
18993#define wxUSE_SPINBTN 1
18994EOF
18995
18996 USES_CONTROLS=1
18997fi
18998
18999if test "$wxUSE_SPINCTRL" = "yes"; then
19000 cat >> confdefs.h <<\EOF
19001#define wxUSE_SPINCTRL 1
19002EOF
19003
19004 USES_CONTROLS=1
19005fi
19006
19007if test "$wxUSE_SPLITTER" = "yes"; then
19008 cat >> confdefs.h <<\EOF
19009#define wxUSE_SPLITTER 1
19010EOF
19011
19012 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
19013fi
19014
19015if test "$wxUSE_STATBMP" = "yes"; then
19016 cat >> confdefs.h <<\EOF
19017#define wxUSE_STATBMP 1
19018EOF
19019
19020 USES_CONTROLS=1
19021fi
19022
19023if test "$wxUSE_STATBOX" = "yes"; then
19024 cat >> confdefs.h <<\EOF
19025#define wxUSE_STATBOX 1
19026EOF
19027
19028 USES_CONTROLS=1
19029fi
19030
19031if test "$wxUSE_STATTEXT" = "yes"; then
19032 cat >> confdefs.h <<\EOF
19033#define wxUSE_STATTEXT 1
19034EOF
19035
19036 USES_CONTROLS=1
19037fi
19038
19039if test "$wxUSE_STATLINE" = "yes"; then
19040 if test "$wxUSE_WINE" = 1 ; then
19041 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
19042 else
19043 cat >> confdefs.h <<\EOF
19044#define wxUSE_STATLINE 1
19045EOF
19046
19047 USES_CONTROLS=1
19048 fi
19049fi
19050
19051if test "$wxUSE_STATUSBAR" = "yes"; then
19052 cat >> confdefs.h <<\EOF
19053#define wxUSE_STATUSBAR 1
19054EOF
19055
19056 USES_CONTROLS=1
19057
19058 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
19059fi
19060
19061if test "$wxUSE_TABDIALOG" = "yes"; then
19062 cat >> confdefs.h <<\EOF
19063#define wxUSE_TAB_DIALOG 1
19064EOF
19065
19066 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
19067fi
19068
19069if test "$wxUSE_TEXTCTRL" = "yes"; then
19070 cat >> confdefs.h <<\EOF
19071#define wxUSE_TEXTCTRL 1
19072EOF
19073
19074 USES_CONTROLS=1
19075 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
19076fi
19077
19078if test "$wxUSE_TOGGLEBTN" = "yes"; then
19079 if test "$wxUSE_MAC" = 1; then
19080 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
19081 wxUSE_TOGGLEBTN=no
19082 fi
19083 if test "$wxUSE_UNIVERSAL" = "yes"; then
19084 echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2
19085 wxUSE_TOGGLEBTN=no
19086 fi
19087
19088 if test "$wxUSE_TOGGLEBTN" = "yes"; then
19089 cat >> confdefs.h <<\EOF
19090#define wxUSE_TOGGLEBTN 1
19091EOF
19092
19093 USES_CONTROLS=1
19094 fi
19095fi
19096
19097if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
19098 cat >> confdefs.h <<\EOF
19099#define wxUSE_TOOLBAR_SIMPLE 1
19100EOF
19101
19102 wxUSE_TOOLBAR="yes"
19103 USES_CONTROLS=1
19104fi
19105
19106if test "$wxUSE_TOOLBAR" = "yes"; then
19107 cat >> confdefs.h <<\EOF
19108#define wxUSE_TOOLBAR 1
19109EOF
19110
19111 USES_CONTROLS=1
19112
19113 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
19114 wxUSE_TOOLBAR_NATIVE="yes"
19115 fi
19116
19117 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
19118 cat >> confdefs.h <<\EOF
19119#define wxUSE_TOOLBAR_NATIVE 1
19120EOF
19121
19122 USES_CONTROLS=1
19123 fi
19124
19125 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
19126fi
19127
19128if test "$wxUSE_TOOLTIPS" = "yes"; then
19129 if test "$wxUSE_MOTIF" = 1; then
19130 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
19131 else
19132 if test "$wxUSE_WINE" = 1; then
19133 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
19134 else
19135 if test "$wxUSE_UNIVERSAL" = "yes"; then
19136 echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2
19137 else
19138 cat >> confdefs.h <<\EOF
19139#define wxUSE_TOOLTIPS 1
19140EOF
19141
19142 fi
19143 fi
19144 fi
19145fi
19146
19147if test "$wxUSE_TREECTRL" = "yes"; then
19148 if test "$wxUSE_IMAGLIST" = "yes"; then
19149 cat >> confdefs.h <<\EOF
19150#define wxUSE_TREECTRL 1
19151EOF
19152
19153 USES_CONTROLS=1
19154 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
19155 else
19156 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
19157 fi
19158fi
19159
19160if test "$wxUSE_POPUPWIN" = "yes"; then
19161 if test "$wxUSE_MAC" = 1; then
19162 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
19163 else
19164 if test "$wxUSE_MOTIF" = 1; then
19165 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
19166 else
19167 cat >> confdefs.h <<\EOF
19168#define wxUSE_POPUPWIN 1
19169EOF
19170
19171
19172 USES_CONTROLS=1
19173 fi
19174 fi
19175fi
19176
19177if test "$wxUSE_TIPWINDOW" = "yes"; then
19178 cat >> confdefs.h <<\EOF
19179#define wxUSE_TIPWINDOW 1
19180EOF
19181
19182fi
19183
19184if test "$USES_CONTROLS" = 1; then
19185 cat >> confdefs.h <<\EOF
19186#define wxUSE_CONTROLS 1
19187EOF
19188
19189fi
19190
19191
19192if test "$wxUSE_TREELAYOUT" = "yes"; then
19193 cat >> confdefs.h <<\EOF
19194#define wxUSE_TREELAYOUT 1
19195EOF
19196
19197 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
19198fi
19199
19200if test "$wxUSE_DRAGIMAGE" = "yes"; then
19201 cat >> confdefs.h <<\EOF
19202#define wxUSE_DRAGIMAGE 1
19203EOF
19204
19205 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
19206fi
19207
19208if test "$wxUSE_MENUS" = "yes"; then
19209 cat >> confdefs.h <<\EOF
19210#define wxUSE_MENUS 1
19211EOF
19212
19213 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
19214fi
19215
19216if test "$wxUSE_METAFILE" = "yes"; then
19217 cat >> confdefs.h <<\EOF
19218#define wxUSE_METAFILE 1
19219EOF
19220
19221fi
19222
19223if test "$wxUSE_MIMETYPE" = "yes"; then
19224 cat >> confdefs.h <<\EOF
19225#define wxUSE_MIMETYPE 1
19226EOF
19227
19228fi
19229
19230if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
19231 cat >> confdefs.h <<\EOF
19232#define wxUSE_SYSTEM_OPTIONS 1
19233EOF
19234
19235fi
19236
19237if test "$wxUSE_PROTOCOL" = "yes"; then
19238 if test "$wxUSE_SOCKETS" != "yes"; then
19239 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
19240 wxUSE_PROTOCOL=no
19241 fi
19242
19243 if test "$wxUSE_PROTOCOL" = "yes"; then
19244 cat >> confdefs.h <<\EOF
19245#define wxUSE_PROTOCOL 1
19246EOF
19247
19248
19249 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
19250 cat >> confdefs.h <<\EOF
19251#define wxUSE_PROTOCOL_HTTP 1
19252EOF
19253
19254 fi
19255 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
19256 cat >> confdefs.h <<\EOF
19257#define wxUSE_PROTOCOL_FTP 1
19258EOF
19259
19260 fi
19261 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
19262 cat >> confdefs.h <<\EOF
19263#define wxUSE_PROTOCOL_FILE 1
19264EOF
19265
19266 fi
19267 fi
19268fi
19269
19270if test "$wxUSE_URL" = "yes"; then
19271 if test "$wxUSE_PROTOCOL" != "yes"; then
19272 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
19273 wxUSE_URL=no
19274 fi
19275 if test "$wxUSE_URL" = "yes"; then
19276 cat >> confdefs.h <<\EOF
19277#define wxUSE_URL 1
19278EOF
19279
19280 fi
19281fi
19282
19283if test "$wxUSE_MINIFRAME" = "yes"; then
19284 cat >> confdefs.h <<\EOF
19285#define wxUSE_MINIFRAME 1
19286EOF
19287
19288 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
19289fi
19290
19291if test "$wxUSE_HTML" = "yes"; then
19292 cat >> confdefs.h <<\EOF
19293#define wxUSE_HTML 1
19294EOF
19295
19296 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
19297fi
19298
19299if test "$wxUSE_VALIDATORS" = "yes"; then
19300 cat >> confdefs.h <<\EOF
19301#define wxUSE_VALIDATORS 1
19302EOF
19303
19304 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
19305fi
19306
19307if test "$wxUSE_PALETTE" = "yes" ; then
19308 cat >> confdefs.h <<\EOF
19309#define wxUSE_PALETTE 1
19310EOF
19311
19312fi
19313
19314if test "$wxUSE_IMAGE" = "yes" ; then
19315 cat >> confdefs.h <<\EOF
19316#define wxUSE_IMAGE 1
19317EOF
19318
19319fi
19320
19321if test "$wxUSE_GIF" = "yes" ; then
19322 cat >> confdefs.h <<\EOF
19323#define wxUSE_GIF 1
19324EOF
19325
19326fi
19327
19328if test "$wxUSE_PCX" = "yes" ; then
19329 cat >> confdefs.h <<\EOF
19330#define wxUSE_PCX 1
19331EOF
19332
19333fi
19334
19335if test "$wxUSE_PNM" = "yes" ; then
19336 cat >> confdefs.h <<\EOF
19337#define wxUSE_PNM 1
19338EOF
19339
19340fi
19341
19342if test "$wxUSE_XPM" = "yes" ; then
19343 cat >> confdefs.h <<\EOF
19344#define wxUSE_XPM 1
19345EOF
19346
19347fi
19348
19349if test "$wxUSE_ICO_CUR" = "yes" ; then
19350 cat >> confdefs.h <<\EOF
19351#define wxUSE_ICO_CUR 1
19352EOF
19353
19354fi
19355
19356if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
19357 LIBS=" -lunicows $LIBS"
19358fi
19359
19360
19361if test "$wxUSE_CHOICEDLG" = "yes"; then
19362 cat >> confdefs.h <<\EOF
19363#define wxUSE_CHOICEDLG 1
19364EOF
19365
19366fi
19367
19368if test "$wxUSE_COLOURDLG" = "yes"; then
19369 cat >> confdefs.h <<\EOF
19370#define wxUSE_COLOURDLG 1
19371EOF
19372
19373fi
19374
19375if test "$wxUSE_FILEDLG" = "yes"; then
19376 cat >> confdefs.h <<\EOF
19377#define wxUSE_FILEDLG 1
19378EOF
19379
19380fi
19381
19382if test "$wxUSE_FINDREPLDLG" = "yes"; then
19383 cat >> confdefs.h <<\EOF
19384#define wxUSE_FINDREPLDLG 1
19385EOF
19386
19387fi
19388
19389if test "$wxUSE_FONTDLG" = "yes"; then
19390 cat >> confdefs.h <<\EOF
19391#define wxUSE_FONTDLG 1
19392EOF
19393
19394fi
19395
19396if test "$wxUSE_DIRDLG" = "yes"; then
19397 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19398 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
19399 else
19400 if test "$wxUSE_TREECTRL" != "yes"; then
19401 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
19402 else
19403 cat >> confdefs.h <<\EOF
19404#define wxUSE_DIRDLG 1
19405EOF
19406
19407 fi
19408 fi
19409fi
19410
19411if test "$wxUSE_MSGDLG" = "yes"; then
19412 cat >> confdefs.h <<\EOF
19413#define wxUSE_MSGDLG 1
19414EOF
19415
19416fi
19417
19418if test "$wxUSE_NUMBERDLG" = "yes"; then
19419 cat >> confdefs.h <<\EOF
19420#define wxUSE_NUMBERDLG 1
19421EOF
19422
19423fi
19424
19425if test "$wxUSE_PROGRESSDLG" = "yes"; then
19426 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19427 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
19428 else
19429 cat >> confdefs.h <<\EOF
19430#define wxUSE_PROGRESSDLG 1
19431EOF
19432
19433 fi
19434fi
19435
19436if test "$wxUSE_SPLASH" = "yes"; then
19437 cat >> confdefs.h <<\EOF
19438#define wxUSE_SPLASH 1
19439EOF
19440
19441fi
19442
19443if test "$wxUSE_STARTUP_TIPS" = "yes"; then
19444 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19445 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
19446 else
19447 cat >> confdefs.h <<\EOF
19448#define wxUSE_STARTUP_TIPS 1
19449EOF
19450
19451 fi
19452fi
19453
19454if test "$wxUSE_TEXTDLG" = "yes"; then
19455 cat >> confdefs.h <<\EOF
19456#define wxUSE_TEXTDLG 1
19457EOF
19458
19459fi
19460
19461if test "$wxUSE_WIZARDDLG" = "yes"; then
19462 cat >> confdefs.h <<\EOF
19463#define wxUSE_WIZARDDLG 1
19464EOF
19465
19466 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
19467fi
19468
19469
19470if test "$cross_compiling" = "yes"; then
19471 OSINFO="\"$host\""
19472else
19473 OSINFO=`uname -s -r -m`
19474 OSINFO="\"$OSINFO\""
19475fi
19476
19477cat >> confdefs.h <<EOF
19478#define WXWIN_OS_DESCRIPTION $OSINFO
19479EOF
19480
19481
19482
19483if test "x$prefix" != "xNONE"; then
19484 wxPREFIX=$prefix
19485else
19486 wxPREFIX=$ac_default_prefix
19487fi
19488
19489cat >> confdefs.h <<EOF
19490#define wxINSTALL_PREFIX "$wxPREFIX"
19491EOF
19492
19493
19494
19495
19496
19497if test "$wxUSE_MAC" = 1 ; then
19498 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
19499fi
19500
19501
19502LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS"
19503
19504if test "$wxUSE_GUI" = "yes"; then
19505
19506 LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS"
19507
19508
19509 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
19510 drawing dynamic erase event exec font image \
19511 minimal richedit rotate widgets"
19512
19513 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
19514else
19515 SAMPLES_SUBDIRS="console"
19516fi
19517
19518
19519INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
19520$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
19521$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
19522
19523if test "$wxUSE_GTK" = 1; then
19524 WXCONFIG_INCLUDE=
19525else
19526 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
19527fi
19528
19529if test "$GXX" = yes ; then
19530 CXXWARNINGS="-Wall"
19531
19532 if test "$wxUSE_NO_DEPS" = "no" ; then
19533 CFLAGS="-MMD $CFLAGS"
19534 CXXFLAGS="-MMD $CXXFLAGS"
19535 fi
19536fi
19537
19538EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
19539
19540CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
19541CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
19542
19543LDFLAGS="$LDFLAGS$PROFILE"
19544
19545SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
19632echo "configure:19633: checking whether ${MAKE-make} sets \${MAKE}" >&5
19633set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
19634if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
19635 echo $ac_n "(cached) $ac_c" 1>&6
19636else
19637 cat > conftestmake <<\EOF
19638all:
19639 @echo 'ac_maketemp="${MAKE}"'
19640EOF
19641# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19642eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
19643if test -n "$ac_maketemp"; then
19644 eval ac_cv_prog_make_${ac_make}_set=yes
19645else
19646 eval ac_cv_prog_make_${ac_make}_set=no
19647fi
19648rm -f conftestmake
19649fi
19650if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19651 echo "$ac_t""yes" 1>&6
19652 SET_MAKE=
19653else
19654 echo "$ac_t""no" 1>&6
19655 SET_MAKE="MAKE=${MAKE-make}"
19656fi
19657
19658
19659if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
19660 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
19661fi
19662
19663
19664
19665if test "$wxUSE_GUI" = "yes"; then
19666 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
19667 wx_cv_path_ifs=$PATH_IFS
19668 wx_cv_program_ext=$PROGRAM_EXT
19669 wx_cv_target_library=$WX_TARGET_LIBRARY
19670 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
19671 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
19672 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
19673 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
19674 subdirs="demos samples utils contrib"
19675
19676fi
19677
19678trap '' 1 2 15
19679cat > confcache <<\EOF
19680# This file is a shell script that caches the results of configure
19681# tests run on this system so they can be shared between configure
19682# scripts and configure runs. It is not useful on other systems.
19683# If it contains results you don't want to keep, you may remove or edit it.
19684#
19685# By default, configure uses ./config.cache as the cache file,
19686# creating it if it does not exist already. You can give configure
19687# the --cache-file=FILE option to use a different cache file; that is
19688# what configure does when it calls configure scripts in
19689# subdirectories, so they share the cache.
19690# Giving --cache-file=/dev/null disables caching, for debugging configure.
19691# config.status only pays attention to the cache file if you give it the
19692# --recheck option to rerun configure.
19693#
19694EOF
19695# The following way of writing the cache mishandles newlines in values,
19696# but we know of no workaround that is simple, portable, and efficient.
19697# So, don't put newlines in cache variables' values.
19698# Ultrix sh set writes to stderr and can't be redirected directly,
19699# and sets the high bit in the cache file unless we assign to the vars.
19700(set) 2>&1 |
19701 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19702 *ac_space=\ *)
19703 # `set' does not quote correctly, so add quotes (double-quote substitution
19704 # turns \\\\ into \\, and sed turns \\ into \).
19705 sed -n \
19706 -e "s/'/'\\\\''/g" \
19707 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19708 ;;
19709 *)
19710 # `set' quotes correctly as required by POSIX, so do not add quotes.
19711 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
19712 ;;
19713 esac >> confcache
19714if cmp -s $cache_file confcache; then
19715 :
19716else
19717 if test -w $cache_file; then
19718 echo "updating cache $cache_file"
19719 cat confcache > $cache_file
19720 else
19721 echo "not updating unwritable cache $cache_file"
19722 fi
19723fi
19724rm -f confcache
19725
19726trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
19727
19728test "x$prefix" = xNONE && prefix=$ac_default_prefix
19729# Let make expand exec_prefix.
19730test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19731
19732# Any assignment to VPATH causes Sun make to only execute
19733# the first set of double-colon rules, so remove it if not needed.
19734# If there is a colon in the path, we need to keep it.
19735if test "x$srcdir" = x.; then
19736 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
19737fi
19738
19739trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
19740
19741DEFS=-DHAVE_CONFIG_H
19742
19743# Without the "./", some shells look in PATH for config.status.
19744: ${CONFIG_STATUS=./config.status}
19745
19746echo creating $CONFIG_STATUS
19747rm -f $CONFIG_STATUS
19748cat > $CONFIG_STATUS <<EOF
19749#! /bin/sh
19750# Generated automatically by configure.
19751# Run this file to recreate the current configuration.
19752# This directory was configured as follows,
19753# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19754#
19755# $0 $ac_configure_args
19756#
19757# Compiler output produced by configure, useful for debugging
19758# configure, is in ./config.log if it exists.
19759
19760ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
19761for ac_option
19762do
19763 case "\$ac_option" in
19764 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19765 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
19766 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
19767 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
19768 echo "$CONFIG_STATUS generated by autoconf version 2.13"
19769 exit 0 ;;
19770 -help | --help | --hel | --he | --h)
19771 echo "\$ac_cs_usage"; exit 0 ;;
19772 *) echo "\$ac_cs_usage"; exit 1 ;;
19773 esac
19774done
19775
19776ac_given_srcdir=$srcdir
19777ac_given_INSTALL="$INSTALL"
19778
19779trap 'rm -fr `echo "
19780 wx-config
19781 src/make.env
19782 src/makeprog.env
19783 src/makelib.env
19784 Makefile
19785 locale/Makefile
19786 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
19787EOF
19788cat >> $CONFIG_STATUS <<EOF
19789
19790# Protect against being on the right side of a sed subst in config.status.
19791sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
19792 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
19793$ac_vpsub
19794$extrasub
19795s%@SHELL@%$SHELL%g
19796s%@CFLAGS@%$CFLAGS%g
19797s%@CPPFLAGS@%$CPPFLAGS%g
19798s%@CXXFLAGS@%$CXXFLAGS%g
19799s%@FFLAGS@%$FFLAGS%g
19800s%@DEFS@%$DEFS%g
19801s%@LDFLAGS@%$LDFLAGS%g
19802s%@LIBS@%$LIBS%g
19803s%@exec_prefix@%$exec_prefix%g
19804s%@prefix@%$prefix%g
19805s%@program_transform_name@%$program_transform_name%g
19806s%@bindir@%$bindir%g
19807s%@sbindir@%$sbindir%g
19808s%@libexecdir@%$libexecdir%g
19809s%@datadir@%$datadir%g
19810s%@sysconfdir@%$sysconfdir%g
19811s%@sharedstatedir@%$sharedstatedir%g
19812s%@localstatedir@%$localstatedir%g
19813s%@libdir@%$libdir%g
19814s%@includedir@%$includedir%g
19815s%@oldincludedir@%$oldincludedir%g
19816s%@infodir@%$infodir%g
19817s%@mandir@%$mandir%g
19818s%@host@%$host%g
19819s%@host_alias@%$host_alias%g
19820s%@host_cpu@%$host_cpu%g
19821s%@host_vendor@%$host_vendor%g
19822s%@host_os@%$host_os%g
19823s%@target@%$target%g
19824s%@target_alias@%$target_alias%g
19825s%@target_cpu@%$target_cpu%g
19826s%@target_vendor@%$target_vendor%g
19827s%@target_os@%$target_os%g
19828s%@build@%$build%g
19829s%@build_alias@%$build_alias%g
19830s%@build_cpu@%$build_cpu%g
19831s%@build_vendor@%$build_vendor%g
19832s%@build_os@%$build_os%g
19833s%@CC@%$CC%g
19834s%@CPP@%$CPP%g
19835s%@CXX@%$CXX%g
19836s%@RANLIB@%$RANLIB%g
19837s%@AR@%$AR%g
19838s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
19839s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
19840s%@INSTALL_DATA@%$INSTALL_DATA%g
19841s%@STRIP@%$STRIP%g
19842s%@YACC@%$YACC%g
19843s%@LEX@%$LEX%g
19844s%@LEXLIB@%$LEXLIB%g
19845s%@LN_S@%$LN_S%g
19846s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
19847s%@GTK_CFLAGS@%$GTK_CFLAGS%g
19848s%@GTK_LIBS@%$GTK_LIBS%g
19849s%@GTK_CONFIG@%$GTK_CONFIG%g
19850s%@X_CFLAGS@%$X_CFLAGS%g
19851s%@X_PRE_LIBS@%$X_PRE_LIBS%g
19852s%@X_LIBS@%$X_LIBS%g
19853s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
19854s%@RESCOMP@%$RESCOMP%g
19855s%@DEREZ@%$DEREZ%g
19856s%@CXXCPP@%$CXXCPP%g
19857s%@LEX_STEM@%$LEX_STEM%g
19858s%@PATH_IFS@%$PATH_IFS%g
19859s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
19860s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
19861s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
19862s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
19863s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
19864s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
19865s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
19866s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
19867s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
19868s%@PROGRAM_EXT@%$PROGRAM_EXT%g
19869s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
19870s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
19871s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
19872s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
19873s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
19874s%@WX_ALL@%$WX_ALL%g
19875s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
19876s%@SHARED_LD@%$SHARED_LD%g
19877s%@PIC_FLAG@%$PIC_FLAG%g
19878s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
19879s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
19880s%@SONAME_FLAGS@%$SONAME_FLAGS%g
19881s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
19882s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
19883s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
19884s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
19885s%@USE_GUI@%$USE_GUI%g
19886s%@AFMINSTALL@%$AFMINSTALL%g
19887s%@TOOLKIT@%$TOOLKIT%g
19888s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
19889s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
19890s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
19891s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
19892s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
19893s%@cross_compiling@%$cross_compiling%g
19894s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
19895s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
19896s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
19897s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
19898s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
19899s%@ALL_OBJECTS@%$ALL_OBJECTS%g
19900s%@GUIDIST@%$GUIDIST%g
19901s%@PORT_FILES@%$PORT_FILES%g
19902s%@DISTDIR@%$DISTDIR%g
19903s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
19904s%@LDFLAGS_GL@%$LDFLAGS_GL%g
19905s%@OPENGL_LIBS@%$OPENGL_LIBS%g
19906s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
19907s%@EXTRADEFS@%$EXTRADEFS%g
19908s%@RESFLAGS@%$RESFLAGS%g
19909s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
19910s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
19911s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
19912s%@LIBWXMACRES@%$LIBWXMACRES%g
19913s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
19914s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
19915s%@DLLTOOL@%$DLLTOOL%g
19916s%@AS@%$AS%g
19917s%@NM@%$NM%g
19918s%@LD@%$LD%g
19919s%@MAKEINFO@%$MAKEINFO%g
19920s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
19921s%@SET_MAKE@%$SET_MAKE%g
19922s%@subdirs@%$subdirs%g
19923
19924CEOF
19925EOF
19926
19927cat >> $CONFIG_STATUS <<\EOF
19928
19929# Split the substitutions into bite-sized pieces for seds with
19930# small command number limits, like on Digital OSF/1 and HP-UX.
19931ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
19932ac_file=1 # Number of current file.
19933ac_beg=1 # First line for current file.
19934ac_end=$ac_max_sed_cmds # Line after last line for current file.
19935ac_more_lines=:
19936ac_sed_cmds=""
19937while $ac_more_lines; do
19938 if test $ac_beg -gt 1; then
19939 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
19940 else
19941 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
19942 fi
19943 if test ! -s conftest.s$ac_file; then
19944 ac_more_lines=false
19945 rm -f conftest.s$ac_file
19946 else
19947 if test -z "$ac_sed_cmds"; then
19948 ac_sed_cmds="sed -f conftest.s$ac_file"
19949 else
19950 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
19951 fi
19952 ac_file=`expr $ac_file + 1`
19953 ac_beg=$ac_end
19954 ac_end=`expr $ac_end + $ac_max_sed_cmds`
19955 fi
19956done
19957if test -z "$ac_sed_cmds"; then
19958 ac_sed_cmds=cat
19959fi
19960EOF
19961
19962cat >> $CONFIG_STATUS <<EOF
19963
19964CONFIG_FILES=\${CONFIG_FILES-"wx-config
19965 src/make.env
19966 src/makeprog.env
19967 src/makelib.env
19968 Makefile
19969 locale/Makefile
19970 "}
19971EOF
19972cat >> $CONFIG_STATUS <<\EOF
19973for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
19974 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19975 case "$ac_file" in
19976 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19977 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19978 *) ac_file_in="${ac_file}.in" ;;
19979 esac
19980
19981 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
19982
19983 # Remove last slash and all that follows it. Not all systems have dirname.
19984 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
19985 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19986 # The file is in a subdirectory.
19987 test ! -d "$ac_dir" && mkdir "$ac_dir"
19988 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
19989 # A "../" for each directory in $ac_dir_suffix.
19990 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
19991 else
19992 ac_dir_suffix= ac_dots=
19993 fi
19994
19995 case "$ac_given_srcdir" in
19996 .) srcdir=.
19997 if test -z "$ac_dots"; then top_srcdir=.
19998 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
19999 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
20000 *) # Relative path.
20001 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
20002 top_srcdir="$ac_dots$ac_given_srcdir" ;;
20003 esac
20004
20005 case "$ac_given_INSTALL" in
20006 [/$]*) INSTALL="$ac_given_INSTALL" ;;
20007 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
20008 esac
20009
20010 echo creating "$ac_file"
20011 rm -f "$ac_file"
20012 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
20013 case "$ac_file" in
20014 *Makefile*) ac_comsub="1i\\
20015# $configure_input" ;;
20016 *) ac_comsub= ;;
20017 esac
20018
20019 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20020 sed -e "$ac_comsub
20021s%@configure_input@%$configure_input%g
20022s%@srcdir@%$srcdir%g
20023s%@top_srcdir@%$top_srcdir%g
20024s%@INSTALL@%$INSTALL%g
20025" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
20026fi; done
20027rm -f conftest.s*
20028
20029# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20030# NAME is the cpp macro being defined and VALUE is the value it is being given.
20031#
20032# ac_d sets the value in "#define NAME VALUE" lines.
20033ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20034ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
20035ac_dC='\3'
20036ac_dD='%g'
20037# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
20038ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20039ac_uB='\([ ]\)%\1#\2define\3'
20040ac_uC=' '
20041ac_uD='\4%g'
20042# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20043ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20044ac_eB='$%\1#\2define\3'
20045ac_eC=' '
20046ac_eD='%g'
20047
20048if test "${CONFIG_HEADERS+set}" != set; then
20049EOF
20050cat >> $CONFIG_STATUS <<EOF
20051 CONFIG_HEADERS="setup.h:setup.h.in"
20052EOF
20053cat >> $CONFIG_STATUS <<\EOF
20054fi
20055for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
20056 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20057 case "$ac_file" in
20058 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20059 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20060 *) ac_file_in="${ac_file}.in" ;;
20061 esac
20062
20063 echo creating $ac_file
20064
20065 rm -f conftest.frag conftest.in conftest.out
20066 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20067 cat $ac_file_inputs > conftest.in
20068
20069EOF
20070
20071# Transform confdefs.h into a sed script conftest.vals that substitutes
20072# the proper values into config.h.in to produce config.h. And first:
20073# Protect against being on the right side of a sed subst in config.status.
20074# Protect against being in an unquoted here document in config.status.
20075rm -f conftest.vals
20076cat > conftest.hdr <<\EOF
20077s/[\\&%]/\\&/g
20078s%[\\$`]%\\&%g
20079s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
20080s%ac_d%ac_u%gp
20081s%ac_u%ac_e%gp
20082EOF
20083sed -n -f conftest.hdr confdefs.h > conftest.vals
20084rm -f conftest.hdr
20085
20086# This sed command replaces #undef with comments. This is necessary, for
20087# example, in the case of _POSIX_SOURCE, which is predefined and required
20088# on some systems where configure will not decide to define it.
20089cat >> conftest.vals <<\EOF
20090s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
20091EOF
20092
20093# Break up conftest.vals because some shells have a limit on
20094# the size of here documents, and old seds have small limits too.
20095
20096rm -f conftest.tail
20097while :
20098do
20099 ac_lines=`grep -c . conftest.vals`
20100 # grep -c gives empty output for an empty file on some AIX systems.
20101 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
20102 # Write a limited-size here document to conftest.frag.
20103 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
20104 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
20105 echo 'CEOF
20106 sed -f conftest.frag conftest.in > conftest.out
20107 rm -f conftest.in
20108 mv conftest.out conftest.in
20109' >> $CONFIG_STATUS
20110 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
20111 rm -f conftest.vals
20112 mv conftest.tail conftest.vals
20113done
20114rm -f conftest.vals
20115
20116cat >> $CONFIG_STATUS <<\EOF
20117 rm -f conftest.frag conftest.h
20118 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
20119 cat conftest.in >> conftest.h
20120 rm -f conftest.in
20121 if cmp -s $ac_file conftest.h 2>/dev/null; then
20122 echo "$ac_file is unchanged"
20123 rm -f conftest.h
20124 else
20125 # Remove last slash and all that follows it. Not all systems have dirname.
20126 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20127 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20128 # The file is in a subdirectory.
20129 test ! -d "$ac_dir" && mkdir "$ac_dir"
20130 fi
20131 rm -f $ac_file
20132 mv conftest.h $ac_file
20133 fi
20134fi; done
20135
20136EOF
20137cat >> $CONFIG_STATUS <<EOF
20138
20139 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
20140 LN_S="${LN_S}"
20141
20142
20143EOF
20144cat >> $CONFIG_STATUS <<\EOF
20145
20146 if test ! -h wx-config; then
20147 chmod +x wx-config
20148 mv wx-config wx${TOOLCHAIN_NAME}-config
20149 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
20150 fi
20151
20152 if test ! -d lib; then
20153 mkdir lib
20154 fi
20155 if test ! -d lib/wx; then
20156 mkdir lib/wx
20157 fi
20158 if test ! -d lib/wx/include; then
20159 mkdir lib/wx/include
20160 fi
20161 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
20162 mkdir lib/wx/include/${TOOLCHAIN_NAME}
20163 fi
20164 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
20165 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
20166 fi
20167 if test -f setup.h; then
20168 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
20169 fi
20170
20171exit 0
20172EOF
20173chmod +x $CONFIG_STATUS
20174rm -fr confdefs* $ac_clean_files
20175test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
20176
20177if test "$no_recursion" != yes; then
20178
20179 # Remove --cache-file and --srcdir arguments so they do not pile up.
20180 ac_sub_configure_args=
20181 ac_prev=
20182 for ac_arg in $ac_configure_args; do
20183 if test -n "$ac_prev"; then
20184 ac_prev=
20185 continue
20186 fi
20187 case "$ac_arg" in
20188 -cache-file | --cache-file | --cache-fil | --cache-fi \
20189 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20190 ac_prev=cache_file ;;
20191 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20192 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
20193 ;;
20194 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20195 ac_prev=srcdir ;;
20196 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20197 ;;
20198 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
20199 esac
20200 done
20201
20202 for ac_config_dir in demos samples utils contrib; do
20203
20204 # Do not complain, so a configure script can configure whichever
20205 # parts of a large source tree are present.
20206 if test ! -d $srcdir/$ac_config_dir; then
20207 continue
20208 fi
20209
20210 echo configuring in $ac_config_dir
20211
20212 case "$srcdir" in
20213 .) ;;
20214 *)
20215 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
20216 else
20217 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
20218 fi
20219 ;;
20220 esac
20221
20222 ac_popdir=`pwd`
20223 cd $ac_config_dir
20224
20225 # A "../" for each directory in /$ac_config_dir.
20226 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
20227
20228 case "$srcdir" in
20229 .) # No --srcdir option. We are building in place.
20230 ac_sub_srcdir=$srcdir ;;
20231 /*) # Absolute path.
20232 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
20233 *) # Relative path.
20234 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
20235 esac
20236
20237 # Check for guested configure; otherwise get Cygnus style configure.
20238 if test -f $ac_sub_srcdir/configure; then
20239 ac_sub_configure=$ac_sub_srcdir/configure
20240 elif test -f $ac_sub_srcdir/configure.in; then
20241 ac_sub_configure=$ac_configure
20242 else
20243 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
20244 ac_sub_configure=
20245 fi
20246
20247 # The recursion is here.
20248 if test -n "$ac_sub_configure"; then
20249
20250 # Make the cache file name correct relative to the subdirectory.
20251 case "$cache_file" in
20252 /*) ac_sub_cache_file=$cache_file ;;
20253 *) # Relative path.
20254 ac_sub_cache_file="$ac_dots$cache_file" ;;
20255 esac
20256 case "$ac_given_INSTALL" in
20257 [/$]*) INSTALL="$ac_given_INSTALL" ;;
20258 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
20259 esac
20260
20261 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
20262 # The eval makes quoting arguments work.
20263 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
20264 then :
20265 else
20266 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
20267 fi
20268 fi
20269
20270 cd $ac_popdir
20271 done
20272fi
20273
20274