]> git.saurik.com Git - wxWidgets.git/blame_incremental - configure
added missing wxSTD for cout/endl
[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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59# Configure paths for GTK+
60# Owen Taylor 1997-2001
61
62
63
64
65
66
67
68
69# Configure paths for GTK+
70# Owen Taylor 97-11-3
71
72
73
74# Guess values for system-dependent variables and create Makefiles.
75# Generated automatically using autoconf version 2.13
76# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
77#
78# This configure script is free software; the Free Software Foundation
79# gives unlimited permission to copy, distribute and modify it.
80
81# Defaults:
82ac_help=
83ac_default_prefix=/usr/local
84# Any additions from configure.in:
85ac_help="$ac_help
86 --enable-gui use GUI classes"
87ac_help="$ac_help
88 --enable-universal use wxWindows GUI controls instead of native ones"
89ac_help="$ac_help
90 --with-gtk use GTK+"
91ac_help="$ac_help
92 --with-motif use Motif/Lesstif"
93ac_help="$ac_help
94 --with-mac use Mac OS X"
95ac_help="$ac_help
96 --with-wine use WINE"
97ac_help="$ac_help
98 --with-msw use MS-Windows"
99ac_help="$ac_help
100 --with-pm use OS/2 Presentation Manager"
101ac_help="$ac_help
102 --with-mgl use SciTech MGL"
103ac_help="$ac_help
104 --with-microwin use MicroWindows"
105ac_help="$ac_help
106 --with-x11 use X11"
107ac_help="$ac_help
108 --enable-nanox use NanoX"
109ac_help="$ac_help
110 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
111ac_help="$ac_help
112 --with-libpng use libpng (PNG image format)"
113ac_help="$ac_help
114 --with-libjpeg use libjpeg (JPEG file format)"
115ac_help="$ac_help
116 --with-libtiff use libtiff (TIFF file format)"
117ac_help="$ac_help
118 --with-opengl use OpenGL (or Mesa)"
119ac_help="$ac_help
120 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
121ac_help="$ac_help
122 --with-regex enable support for wxRegEx class"
123ac_help="$ac_help
124 --with-zlib use zlib for LZW compression"
125ac_help="$ac_help
126 --with-odbc use the IODBC and wxODBC classes"
127ac_help="$ac_help
128 --enable-shared create shared library code"
129ac_help="$ac_help
130 --enable-soname set the DT_SONAME field in ELF shared libraries"
131ac_help="$ac_help
132 --enable-optimise create optimised code"
133ac_help="$ac_help
134 --enable-debug same as debug_flag and debug_info"
135ac_help="$ac_help
136 --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)"
137ac_help="$ac_help
138 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
139ac_help="$ac_help
140 --enable-debug_info create code with debugging information"
141ac_help="$ac_help
142 --enable-debug_gdb create code with extra GDB debugging information"
143ac_help="$ac_help
144 --enable-debug_cntxt use wxDebugContext"
145ac_help="$ac_help
146 --enable-mem_tracing create code with memory tracing"
147ac_help="$ac_help
148 --enable-profile create code with profiling information"
149ac_help="$ac_help
150 --enable-no_rtti create code without RTTI information"
151ac_help="$ac_help
152 --enable-no_exceptions create code without C++ exceptions handling"
153ac_help="$ac_help
154 --enable-permissive compile code disregarding strict ANSI"
155ac_help="$ac_help
156 --enable-no_deps create code without dependency information"
157ac_help="$ac_help
158 --enable-compat20 enable wxWindows 2.0 compatibility"
159ac_help="$ac_help
160 --disable-compat22 disable wxWindows 2.2 compatibility"
161ac_help="$ac_help
162 --enable-rpath=DIR output the rpath flag from wx-config"
163ac_help="$ac_help
164 --enable-intl use internationalization system"
165ac_help="$ac_help
166 --enable-config use wxConfig (and derived) classes"
167ac_help="$ac_help
168 --enable-protocols use wxProtocol and derived classes"
169ac_help="$ac_help
170 --enable-ftp use wxFTP (requires wxProtocol"
171ac_help="$ac_help
172 --enable-http use wxHTTP (requires wxProtocol"
173ac_help="$ac_help
174 --enable-fileproto use wxFileProto class (requires wxProtocol"
175ac_help="$ac_help
176 --enable-sockets use socket/network classes"
177ac_help="$ac_help
178 --enable-ole use OLE classes"
179ac_help="$ac_help
180 --enable-dataobj use data object classes"
181ac_help="$ac_help
182 --enable-ipc use interprocess communication (wxSocket etc.)"
183ac_help="$ac_help
184 --enable-cmdline use wxCmdLineParser class"
185ac_help="$ac_help
186 --enable-datetime use wxDateTime class"
187ac_help="$ac_help
188 --enable-timedate use obsolete wxDate/wxTime classes"
189ac_help="$ac_help
190 --enable-stopwatch use wxStopWatch class"
191ac_help="$ac_help
192 --enable-dialupman use dialup network classes"
193ac_help="$ac_help
194 --enable-apple_ieee use the Apple IEEE codec"
195ac_help="$ac_help
196 --enable-timer use wxTimer class"
197ac_help="$ac_help
198 --enable-wave use wxWave class"
199ac_help="$ac_help
200 --enable-fraction use wxFraction class"
201ac_help="$ac_help
202 --enable-dynlib use wxLibrary class for DLL loading"
203ac_help="$ac_help
204 --enable-dynamicloader use (new) wxDynamicLibrary class"
205ac_help="$ac_help
206 --enable-longlong use wxLongLong class"
207ac_help="$ac_help
208 --enable-geometry use geometry class"
209ac_help="$ac_help
210 --enable-log use logging system"
211ac_help="$ac_help
212 --enable-streams use wxStream etc classes"
213ac_help="$ac_help
214 --enable-file use wxFile classes"
215ac_help="$ac_help
216 --enable-ffile use wxFFile classes"
217ac_help="$ac_help
218 --enable-textbuf use wxTextBuffer class"
219ac_help="$ac_help
220 --enable-textfile use wxTextFile class"
221ac_help="$ac_help
222 --enable-fontmap use font encodings conversion classes"
223ac_help="$ac_help
224 --enable-unicode compile wxString with Unicode support"
225ac_help="$ac_help
226 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
227ac_help="$ac_help
228 --enable-wxprintfv use wxWindows implementation of vprintf()"
229ac_help="$ac_help
230 --enable-std_iostreams use standard C++ stream classes"
231ac_help="$ac_help
232 --enable-filesystem use virtual file systems classes"
233ac_help="$ac_help
234 --enable-fs_inet use virtual HTTP/FTP filesystems"
235ac_help="$ac_help
236 --enable-fs_zip use virtual ZIP filesystems"
237ac_help="$ac_help
238 --enable-zipstream use wxZipInputStream"
239ac_help="$ac_help
240 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
241ac_help="$ac_help
242 --enable-snglinst use wxSingleInstanceChecker class"
243ac_help="$ac_help
244 --enable-mimetype use wxMimeTypesManager"
245ac_help="$ac_help
246 --enable-sysoptions use wxSystemOptions"
247ac_help="$ac_help
248 --enable-url use wxURL class"
249ac_help="$ac_help
250 --enable-protocol use wxProtocol class"
251ac_help="$ac_help
252 --enable-protocol-http HTTP support in wxProtocol"
253ac_help="$ac_help
254 --enable-protocol-ftp FTP support in wxProtocol"
255ac_help="$ac_help
256 --enable-protocol-file FILE support in wxProtocol"
257ac_help="$ac_help
258 --enable-threads use threads"
259ac_help="$ac_help
260 --enable-docview use document view architecture"
261ac_help="$ac_help
262 --enable-help use help subsystem"
263ac_help="$ac_help
264 --enable-mshtmlhelp use MS HTML Help (win32)"
265ac_help="$ac_help
266 --enable-html use wxHTML sub-library"
267ac_help="$ac_help
268 --enable-htmlhelp use wxHTML-based help"
269ac_help="$ac_help
270 --enable-constraints use layout-constraints system"
271ac_help="$ac_help
272 --enable-printarch use printing architecture"
273ac_help="$ac_help
274 --enable-mdi use multiple document interface architecture"
275ac_help="$ac_help
276 --enable-loggui use standard GUI logger"
277ac_help="$ac_help
278 --enable-logwin use wxLogWindow"
279ac_help="$ac_help
280 --enable-logdialog use wxLogDialog"
281ac_help="$ac_help
282 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
283ac_help="$ac_help
284 --enable-prologio use Prolog IO library"
285ac_help="$ac_help
286 --enable-resources use wxWindows resources"
287ac_help="$ac_help
288 --enable-xresources use X resources for save (default for gtk+)"
289ac_help="$ac_help
290 --enable-clipboard use wxClipboard classes"
291ac_help="$ac_help
292 --enable-dnd use Drag'n'Drop classes"
293ac_help="$ac_help
294 --enable-metafile use win32 metafiles"
295ac_help="$ac_help
296 --enable-treelayout use wxTreeLayout classes"
297ac_help="$ac_help
298 --enable-controls use all usual controls"
299ac_help="$ac_help
300 --enable-accel use accelerators"
301ac_help="$ac_help
302 --enable-button use wxButton class"
303ac_help="$ac_help
304 --enable-bmpbutton use wxBitmapButton class"
305ac_help="$ac_help
306 --enable-calendar use wxCalendarCtrl class"
307ac_help="$ac_help
308 --enable-caret use wxCaret class"
309ac_help="$ac_help
310 --enable-checkbox use wxCheckBox class"
311ac_help="$ac_help
312 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
313ac_help="$ac_help
314 --enable-choice use wxChoice class"
315ac_help="$ac_help
316 --enable-combobox use wxComboBox classes"
317ac_help="$ac_help
318 --enable-gauge use wxGauge class"
319ac_help="$ac_help
320 --enable-grid use wxGrid class"
321ac_help="$ac_help
322 --enable-newgrid use new wxGrid class"
323ac_help="$ac_help
324 --enable-imaglist use wxImageList class"
325ac_help="$ac_help
326 --enable-listbox use wxListBox class"
327ac_help="$ac_help
328 --enable-listctrl use wxListCtrl class"
329ac_help="$ac_help
330 --enable-notebook use wxNotebook class"
331ac_help="$ac_help
332 --enable-propsheet use wxPropertySheet class"
333ac_help="$ac_help
334 --enable-radiobox use wxRadioBox class"
335ac_help="$ac_help
336 --enable-radiobtn use wxRadioButton class"
337ac_help="$ac_help
338 --enable-sash use wxSashWindow class"
339ac_help="$ac_help
340 --enable-scrollbar use wxScrollBar class and scrollable windows"
341ac_help="$ac_help
342 --enable-slider use wxSlider class"
343ac_help="$ac_help
344 --enable-spinbtn use wxSpinButton class"
345ac_help="$ac_help
346 --enable-spinctrl use wxSpinCtrl class"
347ac_help="$ac_help
348 --enable-splitter use wxSplitterWindow class"
349ac_help="$ac_help
350 --enable-statbmp use wxStaticBitmap class"
351ac_help="$ac_help
352 --enable-statbox use wxStaticBox class"
353ac_help="$ac_help
354 --enable-statline use wxStaticLine class"
355ac_help="$ac_help
356 --enable-stattext use wxStaticText class"
357ac_help="$ac_help
358 --enable-statusbar use wxStatusBar class"
359ac_help="$ac_help
360 --enable-tabdialog use wxTabControl class"
361ac_help="$ac_help
362 --enable-textctrl use wxTextCtrl class"
363ac_help="$ac_help
364 --enable-togglebtn use wxToggleButton class"
365ac_help="$ac_help
366 --enable-toolbar use wxToolBar class"
367ac_help="$ac_help
368 --enable-tbarnative use native wxToolBar class"
369ac_help="$ac_help
370 --enable-tbarsmpl use wxToolBarSimple class"
371ac_help="$ac_help
372 --enable-treectrl use wxTreeCtrl class"
373ac_help="$ac_help
374 --enable-tipwindow use wxTipWindow class"
375ac_help="$ac_help
376 --enable-popupwin use wxPopUpWindow class"
377ac_help="$ac_help
378 --enable-commondlg use all common dialogs"
379ac_help="$ac_help
380 --enable-choicedlg use wxChoiceDialog"
381ac_help="$ac_help
382 --enable-coldlg use wxColourDialog"
383ac_help="$ac_help
384 --enable-filedlg use wxFileDialog"
385ac_help="$ac_help
386 --enable-finddlg use wxFindReplaceDialog"
387ac_help="$ac_help
388 --enable-fontdlg use wxFontDialog"
389ac_help="$ac_help
390 --enable-dirdlg use wxDirDialog"
391ac_help="$ac_help
392 --enable-msgdlg use wxMessageDialog"
393ac_help="$ac_help
394 --enable-numberdlg use wxNumberEntryDialog"
395ac_help="$ac_help
396 --enable-splash use wxSplashScreen"
397ac_help="$ac_help
398 --enable-textdlg use wxTextDialog"
399ac_help="$ac_help
400 --enable-tipdlg use startup tips"
401ac_help="$ac_help
402 --enable-progressdlg use wxProgressDialog"
403ac_help="$ac_help
404 --enable-wizarddlg use wxWizard"
405ac_help="$ac_help
406 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
407ac_help="$ac_help
408 --enable-miniframe use wxMiniFrame class"
409ac_help="$ac_help
410 --enable-tooltips use wxToolTip class"
411ac_help="$ac_help
412 --enable-splines use spline drawing code"
413ac_help="$ac_help
414 --enable-validators use wxValidator and derived classes"
415ac_help="$ac_help
416 --enable-busyinfo use wxBusyInfo"
417ac_help="$ac_help
418 --enable-joystick use wxJoystick (Linux only)"
419ac_help="$ac_help
420 --enable-metafiles use wxMetaFile (Windows only)"
421ac_help="$ac_help
422 --enable-dragimage use wxDragImage"
423ac_help="$ac_help
424 --enable-palette use wxPalette class"
425ac_help="$ac_help
426 --enable-image use wxImage class"
427ac_help="$ac_help
428 --enable-gif use gif images (GIF file format)"
429ac_help="$ac_help
430 --enable-pcx use pcx images (PCX file format)"
431ac_help="$ac_help
432 --enable-iff use iff images (IFF file format)"
433ac_help="$ac_help
434 --enable-pnm use pnm images (PNM file format)"
435ac_help="$ac_help
436 --enable-xpm use xpm images (XPM file format)"
437ac_help="$ac_help
438 --enable-icocur use Windows ICO and CUR formats"
439ac_help="$ac_help
440 --disable-largefile omit support for large files"
441ac_help="$ac_help
442 --disable-gtktest do not try to compile and run a test GTK+ program"
443ac_help="$ac_help
444 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
445ac_help="$ac_help
446 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
447ac_help="$ac_help
448 --disable-gtktest Do not try to compile and run a test GTK program"
449ac_help="$ac_help
450 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
451ac_help="$ac_help
452 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
453ac_help="$ac_help
454 --disable-gtktest Do not try to compile and run a test GTK program"
455ac_help="$ac_help
456 --with-x use the X Window System"
457ac_help="$ac_help
458 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
459
460# Initialize some variables set by options.
461# The variables have the same names as the options, with
462# dashes changed to underlines.
463build=NONE
464cache_file=./config.cache
465exec_prefix=NONE
466host=NONE
467no_create=
468nonopt=NONE
469no_recursion=
470prefix=NONE
471program_prefix=NONE
472program_suffix=NONE
473program_transform_name=s,x,x,
474silent=
475site=
476srcdir=
477target=NONE
478verbose=
479x_includes=NONE
480x_libraries=NONE
481bindir='${exec_prefix}/bin'
482sbindir='${exec_prefix}/sbin'
483libexecdir='${exec_prefix}/libexec'
484datadir='${prefix}/share'
485sysconfdir='${prefix}/etc'
486sharedstatedir='${prefix}/com'
487localstatedir='${prefix}/var'
488libdir='${exec_prefix}/lib'
489includedir='${prefix}/include'
490oldincludedir='/usr/include'
491infodir='${prefix}/info'
492mandir='${prefix}/man'
493
494# Initialize some other variables.
495subdirs=
496MFLAGS= MAKEFLAGS=
497SHELL=${CONFIG_SHELL-/bin/sh}
498# Maximum number of lines to put in a shell here document.
499ac_max_here_lines=12
500
501ac_prev=
502for ac_option
503do
504
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
510 fi
511
512 case "$ac_option" in
513 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
514 *) ac_optarg= ;;
515 esac
516
517 # Accept the important Cygnus configure options, so we can diagnose typos.
518
519 case "$ac_option" in
520
521 -bindir | --bindir | --bindi | --bind | --bin | --bi)
522 ac_prev=bindir ;;
523 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
524 bindir="$ac_optarg" ;;
525
526 -build | --build | --buil | --bui | --bu)
527 ac_prev=build ;;
528 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
529 build="$ac_optarg" ;;
530
531 -cache-file | --cache-file | --cache-fil | --cache-fi \
532 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
533 ac_prev=cache_file ;;
534 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
535 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
536 cache_file="$ac_optarg" ;;
537
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
542 datadir="$ac_optarg" ;;
543
544 -disable-* | --disable-*)
545 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
546 # Reject names that are not valid shell variable names.
547 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
548 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
549 fi
550 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
551 eval "enable_${ac_feature}=no" ;;
552
553 -enable-* | --enable-*)
554 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
555 # Reject names that are not valid shell variable names.
556 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
557 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
558 fi
559 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
560 case "$ac_option" in
561 *=*) ;;
562 *) ac_optarg=yes ;;
563 esac
564 eval "enable_${ac_feature}='$ac_optarg'" ;;
565
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
573 exec_prefix="$ac_optarg" ;;
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
579 -help | --help | --hel | --he)
580 # Omit some internal or obsolete options to make the list less imposing.
581 # This message is too long to be a string in the A/UX 3.1 sh.
582 cat << EOF
583Usage: configure [options] [host]
584Options: [defaults in brackets after descriptions]
585Configuration:
586 --cache-file=FILE cache test results in FILE
587 --help print this message
588 --no-create do not create output files
589 --quiet, --silent do not print \`checking...' messages
590 --version print the version of autoconf that created configure
591Directory and file names:
592 --prefix=PREFIX install architecture-independent files in PREFIX
593 [$ac_default_prefix]
594 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
595 [same as prefix]
596 --bindir=DIR user executables in DIR [EPREFIX/bin]
597 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
598 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
599 --datadir=DIR read-only architecture-independent data in DIR
600 [PREFIX/share]
601 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
602 --sharedstatedir=DIR modifiable architecture-independent data in DIR
603 [PREFIX/com]
604 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
605 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
606 --includedir=DIR C header files in DIR [PREFIX/include]
607 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
608 --infodir=DIR info documentation in DIR [PREFIX/info]
609 --mandir=DIR man documentation in DIR [PREFIX/man]
610 --srcdir=DIR find the sources in DIR [configure dir or ..]
611 --program-prefix=PREFIX prepend PREFIX to installed program names
612 --program-suffix=SUFFIX append SUFFIX to installed program names
613 --program-transform-name=PROGRAM
614 run sed PROGRAM on installed program names
615EOF
616 cat << EOF
617Host type:
618 --build=BUILD configure for building on BUILD [BUILD=HOST]
619 --host=HOST configure for HOST [guessed]
620 --target=TARGET configure for TARGET [TARGET=HOST]
621Features and packages:
622 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
623 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
624 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
625 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
626 --x-includes=DIR X include files are in DIR
627 --x-libraries=DIR X library files are in DIR
628EOF
629 if test -n "$ac_help"; then
630 echo "--enable and --with options recognized:$ac_help"
631 fi
632 exit 0 ;;
633
634 -host | --host | --hos | --ho)
635 ac_prev=host ;;
636 -host=* | --host=* | --hos=* | --ho=*)
637 host="$ac_optarg" ;;
638
639 -includedir | --includedir | --includedi | --included | --include \
640 | --includ | --inclu | --incl | --inc)
641 ac_prev=includedir ;;
642 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
643 | --includ=* | --inclu=* | --incl=* | --inc=*)
644 includedir="$ac_optarg" ;;
645
646 -infodir | --infodir | --infodi | --infod | --info | --inf)
647 ac_prev=infodir ;;
648 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
649 infodir="$ac_optarg" ;;
650
651 -libdir | --libdir | --libdi | --libd)
652 ac_prev=libdir ;;
653 -libdir=* | --libdir=* | --libdi=* | --libd=*)
654 libdir="$ac_optarg" ;;
655
656 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
657 | --libexe | --libex | --libe)
658 ac_prev=libexecdir ;;
659 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
660 | --libexe=* | --libex=* | --libe=*)
661 libexecdir="$ac_optarg" ;;
662
663 -localstatedir | --localstatedir | --localstatedi | --localstated \
664 | --localstate | --localstat | --localsta | --localst \
665 | --locals | --local | --loca | --loc | --lo)
666 ac_prev=localstatedir ;;
667 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
668 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
669 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
670 localstatedir="$ac_optarg" ;;
671
672 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
673 ac_prev=mandir ;;
674 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
675 mandir="$ac_optarg" ;;
676
677 -nfp | --nfp | --nf)
678 # Obsolete; use --without-fp.
679 with_fp=no ;;
680
681 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
682 | --no-cr | --no-c)
683 no_create=yes ;;
684
685 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
686 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
687 no_recursion=yes ;;
688
689 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
690 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
691 | --oldin | --oldi | --old | --ol | --o)
692 ac_prev=oldincludedir ;;
693 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
694 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
695 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
696 oldincludedir="$ac_optarg" ;;
697
698 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
699 ac_prev=prefix ;;
700 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
701 prefix="$ac_optarg" ;;
702
703 -program-prefix | --program-prefix | --program-prefi | --program-pref \
704 | --program-pre | --program-pr | --program-p)
705 ac_prev=program_prefix ;;
706 -program-prefix=* | --program-prefix=* | --program-prefi=* \
707 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
708 program_prefix="$ac_optarg" ;;
709
710 -program-suffix | --program-suffix | --program-suffi | --program-suff \
711 | --program-suf | --program-su | --program-s)
712 ac_prev=program_suffix ;;
713 -program-suffix=* | --program-suffix=* | --program-suffi=* \
714 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
715 program_suffix="$ac_optarg" ;;
716
717 -program-transform-name | --program-transform-name \
718 | --program-transform-nam | --program-transform-na \
719 | --program-transform-n | --program-transform- \
720 | --program-transform | --program-transfor \
721 | --program-transfo | --program-transf \
722 | --program-trans | --program-tran \
723 | --progr-tra | --program-tr | --program-t)
724 ac_prev=program_transform_name ;;
725 -program-transform-name=* | --program-transform-name=* \
726 | --program-transform-nam=* | --program-transform-na=* \
727 | --program-transform-n=* | --program-transform-=* \
728 | --program-transform=* | --program-transfor=* \
729 | --program-transfo=* | --program-transf=* \
730 | --program-trans=* | --program-tran=* \
731 | --progr-tra=* | --program-tr=* | --program-t=*)
732 program_transform_name="$ac_optarg" ;;
733
734 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
735 | -silent | --silent | --silen | --sile | --sil)
736 silent=yes ;;
737
738 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
739 ac_prev=sbindir ;;
740 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
741 | --sbi=* | --sb=*)
742 sbindir="$ac_optarg" ;;
743
744 -sharedstatedir | --sharedstatedir | --sharedstatedi \
745 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
746 | --sharedst | --shareds | --shared | --share | --shar \
747 | --sha | --sh)
748 ac_prev=sharedstatedir ;;
749 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
750 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
751 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
752 | --sha=* | --sh=*)
753 sharedstatedir="$ac_optarg" ;;
754
755 -site | --site | --sit)
756 ac_prev=site ;;
757 -site=* | --site=* | --sit=*)
758 site="$ac_optarg" ;;
759
760 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
761 ac_prev=srcdir ;;
762 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
763 srcdir="$ac_optarg" ;;
764
765 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
766 | --syscon | --sysco | --sysc | --sys | --sy)
767 ac_prev=sysconfdir ;;
768 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
769 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
770 sysconfdir="$ac_optarg" ;;
771
772 -target | --target | --targe | --targ | --tar | --ta | --t)
773 ac_prev=target ;;
774 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
775 target="$ac_optarg" ;;
776
777 -v | -verbose | --verbose | --verbos | --verbo | --verb)
778 verbose=yes ;;
779
780 -version | --version | --versio | --versi | --vers)
781 echo "configure generated by autoconf version 2.13"
782 exit 0 ;;
783
784 -with-* | --with-*)
785 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
786 # Reject names that are not valid shell variable names.
787 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
788 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
789 fi
790 ac_package=`echo $ac_package| sed 's/-/_/g'`
791 case "$ac_option" in
792 *=*) ;;
793 *) ac_optarg=yes ;;
794 esac
795 eval "with_${ac_package}='$ac_optarg'" ;;
796
797 -without-* | --without-*)
798 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
799 # Reject names that are not valid shell variable names.
800 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
801 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
802 fi
803 ac_package=`echo $ac_package| sed 's/-/_/g'`
804 eval "with_${ac_package}=no" ;;
805
806 --x)
807 # Obsolete; use --with-x.
808 with_x=yes ;;
809
810 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
811 | --x-incl | --x-inc | --x-in | --x-i)
812 ac_prev=x_includes ;;
813 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
814 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
815 x_includes="$ac_optarg" ;;
816
817 -x-libraries | --x-libraries | --x-librarie | --x-librari \
818 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
819 ac_prev=x_libraries ;;
820 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
821 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
822 x_libraries="$ac_optarg" ;;
823
824 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
825 ;;
826
827 *)
828 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
829 echo "configure: warning: $ac_option: invalid host type" 1>&2
830 fi
831 if test "x$nonopt" != xNONE; then
832 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
833 fi
834 nonopt="$ac_option"
835 ;;
836
837 esac
838done
839
840if test -n "$ac_prev"; then
841 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
842fi
843
844trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
845
846# File descriptor usage:
847# 0 standard input
848# 1 file creation
849# 2 errors and warnings
850# 3 some systems may open it to /dev/tty
851# 4 used on the Kubota Titan
852# 6 checking for... messages and results
853# 5 compiler messages saved in config.log
854if test "$silent" = yes; then
855 exec 6>/dev/null
856else
857 exec 6>&1
858fi
859exec 5>./config.log
860
861echo "\
862This file contains any messages produced by compilers while
863running configure, to aid debugging if configure makes a mistake.
864" 1>&5
865
866# Strip out --no-create and --no-recursion so they do not pile up.
867# Also quote any args containing shell metacharacters.
868ac_configure_args=
869for ac_arg
870do
871 case "$ac_arg" in
872 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
873 | --no-cr | --no-c) ;;
874 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
875 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
876 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
877 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
878 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
879 esac
880done
881
882# NLS nuisances.
883# Only set these to C if already set. These must not be set unconditionally
884# because not all systems understand e.g. LANG=C (notably SCO).
885# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
886# Non-C LC_CTYPE values break the ctype check.
887if test "${LANG+set}" = set; then LANG=C; export LANG; fi
888if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
889if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
890if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
891
892# confdefs.h avoids OS command line length limits that DEFS can exceed.
893rm -rf conftest* confdefs.h
894# AIX cpp loses on an empty file, so make sure it contains at least a newline.
895echo > confdefs.h
896
897# A filename unique to this package, relative to the directory that
898# configure is in, which we can look for to find out if srcdir is correct.
899ac_unique_file=wx-config.in
900
901# Find the source files, if location was not specified.
902if test -z "$srcdir"; then
903 ac_srcdir_defaulted=yes
904 # Try the directory containing this script, then its parent.
905 ac_prog=$0
906 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
907 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
908 srcdir=$ac_confdir
909 if test ! -r $srcdir/$ac_unique_file; then
910 srcdir=..
911 fi
912else
913 ac_srcdir_defaulted=no
914fi
915if test ! -r $srcdir/$ac_unique_file; then
916 if test "$ac_srcdir_defaulted" = yes; then
917 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
918 else
919 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
920 fi
921fi
922srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
923
924# Prefer explicitly selected file to automatically selected ones.
925if test -z "$CONFIG_SITE"; then
926 if test "x$prefix" != xNONE; then
927 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
928 else
929 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
930 fi
931fi
932for ac_site_file in $CONFIG_SITE; do
933 if test -r "$ac_site_file"; then
934 echo "loading site script $ac_site_file"
935 . "$ac_site_file"
936 fi
937done
938
939if test -r "$cache_file"; then
940 echo "loading cache $cache_file"
941 . $cache_file
942else
943 echo "creating cache $cache_file"
944 > $cache_file
945fi
946
947ac_ext=c
948# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
949ac_cpp='$CPP $CPPFLAGS'
950ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
951ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
952cross_compiling=$ac_cv_prog_cc_cross
953
954ac_exeext=
955ac_objext=o
956if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
957 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
958 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
959 ac_n= ac_c='
960' ac_t=' '
961 else
962 ac_n=-n ac_c= ac_t=
963 fi
964else
965 ac_n= ac_c='\c' ac_t=
966fi
967
968
969
970ac_aux_dir=
971for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
972 if test -f $ac_dir/install-sh; then
973 ac_aux_dir=$ac_dir
974 ac_install_sh="$ac_aux_dir/install-sh -c"
975 break
976 elif test -f $ac_dir/install.sh; then
977 ac_aux_dir=$ac_dir
978 ac_install_sh="$ac_aux_dir/install.sh -c"
979 break
980 fi
981done
982if test -z "$ac_aux_dir"; then
983 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
984fi
985ac_config_guess=$ac_aux_dir/config.guess
986ac_config_sub=$ac_aux_dir/config.sub
987ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
988
989
990# Do some error checking and defaulting for the host and target type.
991# The inputs are:
992# configure --host=HOST --target=TARGET --build=BUILD NONOPT
993#
994# The rules are:
995# 1. You are not allowed to specify --host, --target, and nonopt at the
996# same time.
997# 2. Host defaults to nonopt.
998# 3. If nonopt is not specified, then host defaults to the current host,
999# as determined by config.guess.
1000# 4. Target and build default to nonopt.
1001# 5. If nonopt is not specified, then target and build default to host.
1002
1003# The aliases save the names the user supplied, while $host etc.
1004# will get canonicalized.
1005case $host---$target---$nonopt in
1006NONE---*---* | *---NONE---* | *---*---NONE) ;;
1007*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1008esac
1009
1010
1011# Make sure we can run config.sub.
1012if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1013else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1014fi
1015
1016echo $ac_n "checking host system type""... $ac_c" 1>&6
1017echo "configure:1018: checking host system type" >&5
1018
1019host_alias=$host
1020case "$host_alias" in
1021NONE)
1022 case $nonopt in
1023 NONE)
1024 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1025 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1026 fi ;;
1027 *) host_alias=$nonopt ;;
1028 esac ;;
1029esac
1030
1031host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1032host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1033host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1034host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1035echo "$ac_t""$host" 1>&6
1036
1037echo $ac_n "checking target system type""... $ac_c" 1>&6
1038echo "configure:1039: checking target system type" >&5
1039
1040target_alias=$target
1041case "$target_alias" in
1042NONE)
1043 case $nonopt in
1044 NONE) target_alias=$host_alias ;;
1045 *) target_alias=$nonopt ;;
1046 esac ;;
1047esac
1048
1049target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1050target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1051target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1052target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1053echo "$ac_t""$target" 1>&6
1054
1055echo $ac_n "checking build system type""... $ac_c" 1>&6
1056echo "configure:1057: checking build system type" >&5
1057
1058build_alias=$build
1059case "$build_alias" in
1060NONE)
1061 case $nonopt in
1062 NONE) build_alias=$host_alias ;;
1063 *) build_alias=$nonopt ;;
1064 esac ;;
1065esac
1066
1067build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1068build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1069build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1070build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1071echo "$ac_t""$build" 1>&6
1072
1073test "$host_alias" != "$target_alias" &&
1074 test "$program_prefix$program_suffix$program_transform_name" = \
1075 NONENONEs,x,x, &&
1076 program_prefix=${target_alias}-
1077
1078
1079
1080WX_MAJOR_VERSION_NUMBER=2
1081WX_MINOR_VERSION_NUMBER=3
1082WX_RELEASE_NUMBER=3
1083
1084WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1085WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1086
1087WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1088
1089WX_CURRENT=2
1090WX_REVISION=0
1091WX_AGE=0
1092
1093
1094
1095USE_UNIX=1
1096USE_WIN32=0
1097USE_DOS=0
1098USE_BEOS=0
1099USE_MAC=0
1100
1101USE_LINUX=
1102USE_SGI=
1103USE_HPUX=
1104USE_SYSV=
1105USE_SVR4=
1106USE_AIX=
1107USE_SUN=
1108USE_SOLARIS=
1109USE_SUNOS=
1110USE_ALPHA=
1111USE_OSF=
1112USE_BSD=
1113USE_DARWIN=
1114USE_FREEBSD=
1115USE_OPENBSD=
1116USE_NETBSD=
1117USE_VMS=
1118USE_ULTRIX=
1119USE_DATA_GENERAL=
1120
1121NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1122
1123ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
1124
1125DEFAULT_wxUSE_GTK=0
1126DEFAULT_wxUSE_MAC=0
1127DEFAULT_wxUSE_MGL=0
1128DEFAULT_wxUSE_MICROWIN=0
1129DEFAULT_wxUSE_MOTIF=0
1130DEFAULT_wxUSE_MSW=0
1131DEFAULT_wxUSE_PM=0
1132DEFAULT_wxUSE_WINE=0
1133DEFAULT_wxUSE_X11=0
1134
1135DEFAULT_DEFAULT_wxUSE_GTK=0
1136DEFAULT_DEFAULT_wxUSE_MAC=0
1137DEFAULT_DEFAULT_wxUSE_MGL=0
1138DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1139DEFAULT_DEFAULT_wxUSE_MOTIF=0
1140DEFAULT_DEFAULT_wxUSE_MSW=0
1141DEFAULT_DEFAULT_wxUSE_PM=0
1142DEFAULT_DEFAULT_wxUSE_WINE=0
1143DEFAULT_DEFAULT_wxUSE_X11=0
1144
1145PROGRAM_EXT=
1146SO_SUFFIX=so
1147
1148case "${host}" in
1149 *-hp-hpux* )
1150 USE_HPUX=1
1151 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1152 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1153 SO_SUFFIX=sl
1154 cat >> confdefs.h <<\EOF
1155#define __HPUX__ 1
1156EOF
1157
1158 ;;
1159 *-*-linux* )
1160 USE_LINUX=1
1161 cat >> confdefs.h <<\EOF
1162#define __LINUX__ 1
1163EOF
1164
1165 TMP=`uname -m`
1166 if test "x$TMP" = "xalpha"; then
1167 USE_ALPHA=1
1168 cat >> confdefs.h <<\EOF
1169#define __ALPHA__ 1
1170EOF
1171
1172 fi
1173 DEFAULT_DEFAULT_wxUSE_GTK=1
1174 ;;
1175 *-*-irix5* | *-*-irix6* )
1176 USE_SGI=1
1177 USE_SVR4=1
1178 cat >> confdefs.h <<\EOF
1179#define __SGI__ 1
1180EOF
1181
1182 cat >> confdefs.h <<\EOF
1183#define __SVR4__ 1
1184EOF
1185
1186 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1187 ;;
1188 *-*-solaris2* )
1189 USE_SUN=1
1190 USE_SOLARIS=1
1191 USE_SVR4=1
1192 cat >> confdefs.h <<\EOF
1193#define __SUN__ 1
1194EOF
1195
1196 cat >> confdefs.h <<\EOF
1197#define __SOLARIS__ 1
1198EOF
1199
1200 cat >> confdefs.h <<\EOF
1201#define __SVR4__ 1
1202EOF
1203
1204 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1205 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1206 ;;
1207 *-*-sunos4* )
1208 USE_SUN=1
1209 USE_SUNOS=1
1210 USE_BSD=1
1211 cat >> confdefs.h <<\EOF
1212#define __SUN__ 1
1213EOF
1214
1215 cat >> confdefs.h <<\EOF
1216#define __SUNOS__ 1
1217EOF
1218
1219 cat >> confdefs.h <<\EOF
1220#define __BSD__ 1
1221EOF
1222
1223 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1224 ;;
1225 *-*-freebsd*)
1226 USE_BSD=1
1227 USE_FREEBSD=1
1228 cat >> confdefs.h <<\EOF
1229#define __FREEBSD__ 1
1230EOF
1231
1232 cat >> confdefs.h <<\EOF
1233#define __BSD__ 1
1234EOF
1235
1236 DEFAULT_DEFAULT_wxUSE_GTK=1
1237 ;;
1238 *-*-openbsd*)
1239 USE_BSD=1
1240 USE_OPENBSD=1
1241 cat >> confdefs.h <<\EOF
1242#define __FREEBSD__ 1
1243EOF
1244
1245 cat >> confdefs.h <<\EOF
1246#define __OPENBSD__ 1
1247EOF
1248
1249 DEFAULT_DEFAULT_wxUSE_GTK=1
1250 ;;
1251 *-*-netbsd*)
1252 USE_BSD=1
1253 USE_NETBSD=1
1254 cat >> confdefs.h <<\EOF
1255#define __FREEBSD__ 1
1256EOF
1257
1258 cat >> confdefs.h <<\EOF
1259#define __NETBSD__ 1
1260EOF
1261
1262 DEFAULT_DEFAULT_wxUSE_GTK=1
1263 ;;
1264 *-*-osf* )
1265 USE_ALPHA=1
1266 USE_OSF=1
1267 cat >> confdefs.h <<\EOF
1268#define __ALPHA__ 1
1269EOF
1270
1271 cat >> confdefs.h <<\EOF
1272#define __OSF__ 1
1273EOF
1274
1275 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1276 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1277 ;;
1278 *-*-dgux5* )
1279 USE_ALPHA=1
1280 USE_SVR4=1
1281 cat >> confdefs.h <<\EOF
1282#define __ALPHA__ 1
1283EOF
1284
1285 cat >> confdefs.h <<\EOF
1286#define __SVR4__ 1
1287EOF
1288
1289 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1290 ;;
1291 *-*-sysv5* )
1292 USE_SYSV=1
1293 USE_SVR4=1
1294 cat >> confdefs.h <<\EOF
1295#define __SYSV__ 1
1296EOF
1297
1298 cat >> confdefs.h <<\EOF
1299#define __SVR4__ 1
1300EOF
1301
1302 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1303 ;;
1304 *-*-aix* )
1305 USE_AIX=1
1306 USE_SYSV=1
1307 USE_SVR4=1
1308 SO_SUFFIX=a
1309 cat >> confdefs.h <<\EOF
1310#define __AIX__ 1
1311EOF
1312
1313 cat >> confdefs.h <<\EOF
1314#define __SYSV__ 1
1315EOF
1316
1317 cat >> confdefs.h <<\EOF
1318#define __SVR4__ 1
1319EOF
1320
1321 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1322 ;;
1323
1324 *-*-cygwin* | *-*-mingw32* )
1325 SO_SUFFIX=dll
1326 PROGRAM_EXT=".exe"
1327 RESCOMP=windres
1328 DEFAULT_DEFAULT_wxUSE_MSW=1
1329 ;;
1330
1331 *-pc-msdosdjgpp )
1332 USE_UNIX=0
1333 USE_DOS=1
1334 cat >> confdefs.h <<\EOF
1335#define __DOS__ 1
1336EOF
1337
1338 PROGRAM_EXT=".exe"
1339 DEFAULT_DEFAULT_wxUSE_MGL=1
1340 LIBS="$LIBS -lstdc++"
1341 ;;
1342
1343 *-pc-os2_emx | *-pc-os2-emx )
1344 cat >> confdefs.h <<\EOF
1345#define __EMX__ 1
1346EOF
1347
1348 PROGRAM_EXT=".exe"
1349 DEFAULT_DEFAULT_wxUSE_PM=1
1350 ;;
1351
1352 powerpc-*-darwin* )
1353 USE_BSD=1
1354 USE_DARWIN=1
1355 SO_SUFFIX=dylib
1356 cat >> confdefs.h <<\EOF
1357#define __BSD__ 1
1358EOF
1359
1360 cat >> confdefs.h <<\EOF
1361#define __DARWIN__ 1
1362EOF
1363
1364 cat >> confdefs.h <<\EOF
1365#define __POWERPC__ 1
1366EOF
1367
1368 DEFAULT_DEFAULT_wxUSE_MAC=1
1369 ;;
1370
1371 *-*-beos* )
1372 USE_BEOS=1
1373 cat >> confdefs.h <<\EOF
1374#define __BEOS__ 1
1375EOF
1376
1377 ;;
1378
1379 *)
1380 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1381esac
1382
1383
1384
1385
1386 wx_arg_cache_file="configarg.cache"
1387 echo "loading argument cache $wx_arg_cache_file"
1388 rm -f ${wx_arg_cache_file}.tmp
1389 touch ${wx_arg_cache_file}.tmp
1390 touch ${wx_arg_cache_file}
1391
1392
1393DEBUG_CONFIGURE=0
1394if test $DEBUG_CONFIGURE = 1; then
1395 DEFAULT_wxUSE_UNIVERSAL=no
1396
1397 DEFAULT_wxUSE_NANOX=no
1398
1399 DEFAULT_wxUSE_THREADS=yes
1400
1401 DEFAULT_wxUSE_SHARED=yes
1402 DEFAULT_wxUSE_SONAME=no
1403 DEFAULT_wxUSE_OPTIMISE=no
1404 DEFAULT_wxUSE_PROFILE=no
1405 DEFAULT_wxUSE_NO_DEPS=no
1406 DEFAULT_wxUSE_NO_RTTI=no
1407 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1408 DEFAULT_wxUSE_PERMISSIVE=no
1409 DEFAULT_wxUSE_DEBUG_FLAG=yes
1410 DEFAULT_wxUSE_DEBUG_INFO=yes
1411 DEFAULT_wxUSE_DEBUG_GDB=yes
1412 DEFAULT_wxUSE_MEM_TRACING=no
1413 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1414 DEFAULT_wxUSE_DMALLOC=no
1415 DEFAULT_wxUSE_PRECOMP=no
1416 DEFAULT_wxUSE_APPLE_IEEE=no
1417
1418 DEFAULT_wxUSE_LOG=yes
1419 DEFAULT_wxUSE_LOGWINDOW=no
1420 DEFAULT_wxUSE_LOGGUI=no
1421 DEFAULT_wxUSE_LOGDIALOG=no
1422
1423 DEFAULT_wxUSE_GUI=yes
1424 DEFAULT_wxUSE_CONTROLS=no
1425
1426 DEFAULT_wxUSE_REGEX=no
1427 DEFAULT_wxUSE_ZLIB=no
1428 DEFAULT_wxUSE_LIBPNG=no
1429 DEFAULT_wxUSE_LIBJPEG=no
1430 DEFAULT_wxUSE_LIBTIFF=no
1431 DEFAULT_wxUSE_ODBC=no
1432 DEFAULT_wxUSE_OPENGL=no
1433
1434 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1435 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1436 DEFAULT_wxUSE_STD_IOSTREAM=no
1437 DEFAULT_wxUSE_CMDLINE_PARSER=no
1438 DEFAULT_wxUSE_DATETIME=no
1439 DEFAULT_wxUSE_TIMEDATE=no
1440 DEFAULT_wxUSE_TIMER=no
1441 DEFAULT_wxUSE_STOPWATCH=no
1442 DEFAULT_wxUSE_FILE=no
1443 DEFAULT_wxUSE_FFILE=no
1444 DEFAULT_wxUSE_TEXTBUFFER=no
1445 DEFAULT_wxUSE_TEXTFILE=no
1446 DEFAULT_wxUSE_WAVE=no
1447 DEFAULT_wxUSE_INTL=no
1448 DEFAULT_wxUSE_CONFIG=no
1449 DEFAULT_wxUSE_FONTMAP=no
1450 DEFAULT_wxUSE_STREAMS=no
1451 DEFAULT_wxUSE_SOCKETS=no
1452 DEFAULT_wxUSE_OLE=no
1453 DEFAULT_wxUSE_DATAOBJ=no
1454 DEFAULT_wxUSE_DIALUP_MANAGER=no
1455 DEFAULT_wxUSE_JOYSTICK=no
1456 DEFAULT_wxUSE_DYNLIB_CLASS=no
1457 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1458 DEFAULT_wxUSE_LONGLONG=no
1459 DEFAULT_wxUSE_GEOMETRY=no
1460
1461 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1462 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1463 DEFAULT_wxUSE_POSTSCRIPT=no
1464
1465 DEFAULT_wxUSE_X_RESOURCES=no
1466 DEFAULT_wxUSE_CLIPBOARD=no
1467 DEFAULT_wxUSE_TOOLTIPS=no
1468 DEFAULT_wxUSE_DRAG_AND_DROP=no
1469 DEFAULT_wxUSE_DRAGIMAGE=no
1470 DEFAULT_wxUSE_SPLINES=no
1471
1472 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1473 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1474 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1475
1476 DEFAULT_wxUSE_PROLOGIO=no
1477 DEFAULT_wxUSE_RESOURCES=no
1478 DEFAULT_wxUSE_CONSTRAINTS=no
1479 DEFAULT_wxUSE_IPC=no
1480 DEFAULT_wxUSE_HELP=no
1481 DEFAULT_wxUSE_MS_HTML_HELP=no
1482 DEFAULT_wxUSE_WXHTML_HELP=no
1483 DEFAULT_wxUSE_TREELAYOUT=no
1484 DEFAULT_wxUSE_METAFILE=no
1485 DEFAULT_wxUSE_MIMETYPE=no
1486 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1487 DEFAULT_wxUSE_PROTOCOL=no
1488 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1489 DEFAULT_wxUSE_PROTOCOL_FTP=no
1490 DEFAULT_wxUSE_PROTOCOL_FILE=no
1491 DEFAULT_wxUSE_URL=no
1492
1493 DEFAULT_wxUSE_COMMONDLGS=no
1494 DEFAULT_wxUSE_CHOICEDLG=no
1495 DEFAULT_wxUSE_COLOURDLG=no
1496 DEFAULT_wxUSE_DIRDLG=no
1497 DEFAULT_wxUSE_FILEDLG=no
1498 DEFAULT_wxUSE_FINDREPLDLG=no
1499 DEFAULT_wxUSE_FONTDLG=no
1500 DEFAULT_wxUSE_MSGDLG=no
1501 DEFAULT_wxUSE_NUMBERDLG=no
1502 DEFAULT_wxUSE_TEXTDLG=no
1503 DEFAULT_wxUSE_SPLASH=no
1504 DEFAULT_wxUSE_STARTUP_TIPS=no
1505 DEFAULT_wxUSE_PROGRESSDLG=no
1506 DEFAULT_wxUSE_WIZARDDLG=no
1507
1508 DEFAULT_wxUSE_MENUS=no
1509 DEFAULT_wxUSE_MINIFRAME=no
1510 DEFAULT_wxUSE_HTML=no
1511 DEFAULT_wxUSE_FILESYSTEM=no
1512 DEFAULT_wxUSE_FS_INET=no
1513 DEFAULT_wxUSE_FS_ZIP=no
1514 DEFAULT_wxUSE_BUSYINFO=no
1515 DEFAULT_wxUSE_ZIPSTREAM=no
1516 DEFAULT_wxUSE_VALIDATORS=no
1517
1518 DEFAULT_wxUSE_ACCEL=no
1519 DEFAULT_wxUSE_BUTTON=no
1520 DEFAULT_wxUSE_BMPBUTTON=no
1521 DEFAULT_wxUSE_CALCTRL=no
1522 DEFAULT_wxUSE_CARET=no
1523 DEFAULT_wxUSE_CHECKBOX=no
1524 DEFAULT_wxUSE_CHECKLST=no
1525 DEFAULT_wxUSE_CHOICE=no
1526 DEFAULT_wxUSE_COMBOBOX=no
1527 DEFAULT_wxUSE_GAUGE=no
1528 DEFAULT_wxUSE_GRID=no
1529 DEFAULT_wxUSE_NEW_GRID=no
1530 DEFAULT_wxUSE_IMAGLIST=no
1531 DEFAULT_wxUSE_LISTBOX=no
1532 DEFAULT_wxUSE_LISTCTRL=no
1533 DEFAULT_wxUSE_NOTEBOOK=no
1534 DEFAULT_wxUSE_PROPSHEET=no
1535 DEFAULT_wxUSE_RADIOBOX=no
1536 DEFAULT_wxUSE_RADIOBTN=no
1537 DEFAULT_wxUSE_SASH=no
1538 DEFAULT_wxUSE_SCROLLBAR=no
1539 DEFAULT_wxUSE_SLIDER=no
1540 DEFAULT_wxUSE_SPINBTN=no
1541 DEFAULT_wxUSE_SPINCTRL=no
1542 DEFAULT_wxUSE_SPLITTER=no
1543 DEFAULT_wxUSE_STATBMP=no
1544 DEFAULT_wxUSE_STATBOX=no
1545 DEFAULT_wxUSE_STATLINE=no
1546 DEFAULT_wxUSE_STATTEXT=no
1547 DEFAULT_wxUSE_STATUSBAR=yes
1548 DEFAULT_wxUSE_TABDIALOG=no
1549 DEFAULT_wxUSE_TEXTCTRL=no
1550 DEFAULT_wxUSE_TOGGLEBTN=no
1551 DEFAULT_wxUSE_TOOLBAR=no
1552 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1553 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1554 DEFAULT_wxUSE_TREECTRL=no
1555 DEFAULT_wxUSE_POPUPWIN=no
1556 DEFAULT_wxUSE_TIPWINDOW=no
1557
1558 DEFAULT_wxUSE_UNICODE=no
1559 DEFAULT_wxUSE_UNICODE_MSLU=no
1560 DEFAULT_wxUSE_WCSRTOMBS=no
1561
1562 DEFAULT_wxUSE_PALETTE=no
1563 DEFAULT_wxUSE_IMAGE=no
1564 DEFAULT_wxUSE_GIF=no
1565 DEFAULT_wxUSE_PCX=no
1566 DEFAULT_wxUSE_PNM=no
1567 DEFAULT_wxUSE_IFF=no
1568 DEFAULT_wxUSE_XPM=no
1569 DEFAULT_wxUSE_ICO_CUR=no
1570else
1571 DEFAULT_wxUSE_UNIVERSAL=no
1572
1573 DEFAULT_wxUSE_NANOX=no
1574
1575 DEFAULT_wxUSE_THREADS=yes
1576
1577 DEFAULT_wxUSE_SHARED=yes
1578 DEFAULT_wxUSE_SONAME=no
1579 DEFAULT_wxUSE_OPTIMISE=yes
1580 DEFAULT_wxUSE_PROFILE=no
1581 DEFAULT_wxUSE_NO_DEPS=no
1582 DEFAULT_wxUSE_NO_RTTI=no
1583 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1584 DEFAULT_wxUSE_PERMISSIVE=no
1585 DEFAULT_wxUSE_DEBUG_FLAG=no
1586 DEFAULT_wxUSE_DEBUG_INFO=no
1587 DEFAULT_wxUSE_DEBUG_GDB=no
1588 DEFAULT_wxUSE_MEM_TRACING=no
1589 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1590 DEFAULT_wxUSE_DMALLOC=no
1591 DEFAULT_wxUSE_PRECOMP=no
1592 DEFAULT_wxUSE_APPLE_IEEE=yes
1593
1594 DEFAULT_wxUSE_LOG=yes
1595 DEFAULT_wxUSE_LOGWINDOW=yes
1596 DEFAULT_wxUSE_LOGGUI=yes
1597 DEFAULT_wxUSE_LOGDIALOG=yes
1598
1599 DEFAULT_wxUSE_GUI=yes
1600
1601 DEFAULT_wxUSE_REGEX=yes
1602 DEFAULT_wxUSE_ZLIB=yes
1603 DEFAULT_wxUSE_LIBPNG=yes
1604 DEFAULT_wxUSE_LIBJPEG=yes
1605 DEFAULT_wxUSE_LIBTIFF=yes
1606 DEFAULT_wxUSE_ODBC=no
1607 DEFAULT_wxUSE_OPENGL=no
1608
1609 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1610 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1611 DEFAULT_wxUSE_STD_IOSTREAM=no
1612 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1613 DEFAULT_wxUSE_DATETIME=yes
1614 DEFAULT_wxUSE_TIMEDATE=no
1615 DEFAULT_wxUSE_TIMER=yes
1616 DEFAULT_wxUSE_STOPWATCH=yes
1617 DEFAULT_wxUSE_FILE=yes
1618 DEFAULT_wxUSE_FFILE=yes
1619 DEFAULT_wxUSE_TEXTBUFFER=yes
1620 DEFAULT_wxUSE_TEXTFILE=yes
1621 DEFAULT_wxUSE_WAVE=no
1622 DEFAULT_wxUSE_INTL=yes
1623 DEFAULT_wxUSE_CONFIG=yes
1624 DEFAULT_wxUSE_FONTMAP=yes
1625 DEFAULT_wxUSE_STREAMS=yes
1626 DEFAULT_wxUSE_SOCKETS=yes
1627 DEFAULT_wxUSE_OLE=yes
1628 DEFAULT_wxUSE_DATAOBJ=yes
1629 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1630 DEFAULT_wxUSE_JOYSTICK=yes
1631 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1632 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1633 DEFAULT_wxUSE_LONGLONG=yes
1634 DEFAULT_wxUSE_GEOMETRY=yes
1635
1636 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1637 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1638 DEFAULT_wxUSE_POSTSCRIPT=yes
1639
1640 DEFAULT_wxUSE_X_RESOURCES=no
1641 DEFAULT_wxUSE_CLIPBOARD=yes
1642 DEFAULT_wxUSE_TOOLTIPS=yes
1643 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1644 DEFAULT_wxUSE_DRAGIMAGE=yes
1645 DEFAULT_wxUSE_SPLINES=yes
1646
1647 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1648 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1649 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1650
1651 DEFAULT_wxUSE_PROLOGIO=yes
1652 DEFAULT_wxUSE_RESOURCES=yes
1653 DEFAULT_wxUSE_CONSTRAINTS=yes
1654 DEFAULT_wxUSE_IPC=yes
1655 DEFAULT_wxUSE_HELP=yes
1656 DEFAULT_wxUSE_MS_HTML_HELP=yes
1657 DEFAULT_wxUSE_WXHTML_HELP=yes
1658 DEFAULT_wxUSE_TREELAYOUT=yes
1659 DEFAULT_wxUSE_METAFILE=yes
1660 DEFAULT_wxUSE_MIMETYPE=yes
1661 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1662 DEFAULT_wxUSE_PROTOCOL=yes
1663 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1664 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1665 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1666 DEFAULT_wxUSE_URL=yes
1667
1668 DEFAULT_wxUSE_COMMONDLGS=yes
1669 DEFAULT_wxUSE_CHOICEDLG=yes
1670 DEFAULT_wxUSE_COLOURDLG=yes
1671 DEFAULT_wxUSE_DIRDLG=yes
1672 DEFAULT_wxUSE_FILEDLG=yes
1673 DEFAULT_wxUSE_FINDREPLDLG=yes
1674 DEFAULT_wxUSE_FONTDLG=yes
1675 DEFAULT_wxUSE_MSGDLG=yes
1676 DEFAULT_wxUSE_NUMBERDLG=yes
1677 DEFAULT_wxUSE_TEXTDLG=yes
1678 DEFAULT_wxUSE_SPLASH=yes
1679 DEFAULT_wxUSE_STARTUP_TIPS=yes
1680 DEFAULT_wxUSE_PROGRESSDLG=yes
1681 DEFAULT_wxUSE_WIZARDDLG=yes
1682
1683 DEFAULT_wxUSE_MENUS=yes
1684 DEFAULT_wxUSE_MINIFRAME=yes
1685 DEFAULT_wxUSE_HTML=yes
1686 DEFAULT_wxUSE_FILESYSTEM=yes
1687 DEFAULT_wxUSE_FS_INET=yes
1688 DEFAULT_wxUSE_FS_ZIP=yes
1689 DEFAULT_wxUSE_BUSYINFO=yes
1690 DEFAULT_wxUSE_ZIPSTREAM=yes
1691 DEFAULT_wxUSE_VALIDATORS=yes
1692
1693 DEFAULT_wxUSE_ACCEL=yes
1694 DEFAULT_wxUSE_BUTTON=yes
1695 DEFAULT_wxUSE_BMPBUTTON=yes
1696 DEFAULT_wxUSE_CALCTRL=yes
1697 DEFAULT_wxUSE_CARET=yes
1698 DEFAULT_wxUSE_CHECKBOX=yes
1699 DEFAULT_wxUSE_CHECKLST=yes
1700 DEFAULT_wxUSE_CHOICE=yes
1701 DEFAULT_wxUSE_COMBOBOX=yes
1702 DEFAULT_wxUSE_GAUGE=yes
1703 DEFAULT_wxUSE_GRID=yes
1704 DEFAULT_wxUSE_NEW_GRID=yes
1705 DEFAULT_wxUSE_IMAGLIST=yes
1706 DEFAULT_wxUSE_LISTBOX=yes
1707 DEFAULT_wxUSE_LISTCTRL=yes
1708 DEFAULT_wxUSE_NOTEBOOK=yes
1709 DEFAULT_wxUSE_PROPSHEET=yes
1710 DEFAULT_wxUSE_RADIOBOX=yes
1711 DEFAULT_wxUSE_RADIOBTN=yes
1712 DEFAULT_wxUSE_SASH=yes
1713 DEFAULT_wxUSE_SCROLLBAR=yes
1714 DEFAULT_wxUSE_SLIDER=yes
1715 DEFAULT_wxUSE_SPINBTN=yes
1716 DEFAULT_wxUSE_SPINCTRL=yes
1717 DEFAULT_wxUSE_SPLITTER=yes
1718 DEFAULT_wxUSE_STATBMP=yes
1719 DEFAULT_wxUSE_STATBOX=yes
1720 DEFAULT_wxUSE_STATLINE=yes
1721 DEFAULT_wxUSE_STATTEXT=yes
1722 DEFAULT_wxUSE_STATUSBAR=yes
1723 DEFAULT_wxUSE_TABDIALOG=no
1724 DEFAULT_wxUSE_TEXTCTRL=yes
1725 DEFAULT_wxUSE_TOGGLEBTN=yes
1726 DEFAULT_wxUSE_TOOLBAR=yes
1727 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1728 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1729 DEFAULT_wxUSE_TREECTRL=yes
1730 DEFAULT_wxUSE_POPUPWIN=yes
1731 DEFAULT_wxUSE_TIPWINDOW=yes
1732
1733 DEFAULT_wxUSE_UNICODE=no
1734 DEFAULT_wxUSE_UNICODE_MSLU=yes
1735 DEFAULT_wxUSE_WCSRTOMBS=no
1736
1737 DEFAULT_wxUSE_PALETTE=yes
1738 DEFAULT_wxUSE_IMAGE=yes
1739 DEFAULT_wxUSE_GIF=yes
1740 DEFAULT_wxUSE_PCX=yes
1741 DEFAULT_wxUSE_IFF=no
1742 DEFAULT_wxUSE_PNM=yes
1743 DEFAULT_wxUSE_XPM=yes
1744 DEFAULT_wxUSE_ICO_CUR=yes
1745fi
1746
1747
1748
1749for toolkit in `echo $ALL_TOOLKITS`; do
1750 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1751 if test "x$LINE" != "x" ; then
1752 has_toolkit_in_cache=1
1753 eval "DEFAULT_$LINE"
1754 eval "CACHE_$toolkit=1"
1755 fi
1756done
1757
1758
1759
1760 enablestring=
1761 echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
1762echo "configure:1763: checking for --${enablestring:-enable}-gui" >&5
1763 no_cache=0
1764 # Check whether --enable-gui or --disable-gui was given.
1765if test "${enable_gui+set}" = set; then
1766 enableval="$enable_gui"
1767
1768 if test "$enableval" = yes; then
1769 ac_cv_use_gui='wxUSE_GUI=yes'
1770 else
1771 ac_cv_use_gui='wxUSE_GUI=no'
1772 fi
1773
1774else
1775
1776 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1777 if test "x$LINE" != x ; then
1778 eval "DEFAULT_$LINE"
1779 else
1780 no_cache=1
1781 fi
1782
1783 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1784
1785fi
1786
1787
1788 eval "$ac_cv_use_gui"
1789 if test "$no_cache" != 1; then
1790 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1791 fi
1792
1793 if test "$wxUSE_GUI" = yes; then
1794 echo "$ac_t""yes" 1>&6
1795 else
1796 echo "$ac_t""no" 1>&6
1797 fi
1798
1799
1800if test "$wxUSE_GUI" = "yes"; then
1801
1802
1803 enablestring=
1804 echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
1805echo "configure:1806: checking for --${enablestring:-enable}-universal" >&5
1806 no_cache=0
1807 # Check whether --enable-universal or --disable-universal was given.
1808if test "${enable_universal+set}" = set; then
1809 enableval="$enable_universal"
1810
1811 if test "$enableval" = yes; then
1812 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1813 else
1814 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1815 fi
1816
1817else
1818
1819 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1820 if test "x$LINE" != x ; then
1821 eval "DEFAULT_$LINE"
1822 else
1823 no_cache=1
1824 fi
1825
1826 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1827
1828fi
1829
1830
1831 eval "$ac_cv_use_universal"
1832 if test "$no_cache" != 1; then
1833 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1834 fi
1835
1836 if test "$wxUSE_UNIVERSAL" = yes; then
1837 echo "$ac_t""yes" 1>&6
1838 else
1839 echo "$ac_t""no" 1>&6
1840 fi
1841
1842# Check whether --with-gtk or --without-gtk was given.
1843if test "${with_gtk+set}" = set; then
1844 withval="$with_gtk"
1845 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1846fi
1847
1848# Check whether --with-motif or --without-motif was given.
1849if test "${with_motif+set}" = set; then
1850 withval="$with_motif"
1851 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1852fi
1853
1854# Check whether --with-mac or --without-mac was given.
1855if test "${with_mac+set}" = set; then
1856 withval="$with_mac"
1857 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1858fi
1859
1860# Check whether --with-wine or --without-wine was given.
1861if test "${with_wine+set}" = set; then
1862 withval="$with_wine"
1863 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1864fi
1865
1866# Check whether --with-msw or --without-msw was given.
1867if test "${with_msw+set}" = set; then
1868 withval="$with_msw"
1869 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1870fi
1871
1872# Check whether --with-pm or --without-pm was given.
1873if test "${with_pm+set}" = set; then
1874 withval="$with_pm"
1875 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1876fi
1877
1878# Check whether --with-mgl or --without-mgl was given.
1879if test "${with_mgl+set}" = set; then
1880 withval="$with_mgl"
1881 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1882fi
1883
1884# Check whether --with-microwin or --without-microwin was given.
1885if test "${with_microwin+set}" = set; then
1886 withval="$with_microwin"
1887 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1888fi
1889
1890# Check whether --with-x11 or --without-x11 was given.
1891if test "${with_x11+set}" = set; then
1892 withval="$with_x11"
1893 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1894fi
1895
1896
1897 enablestring=
1898 echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
1899echo "configure:1900: checking for --${enablestring:-enable}-nanox" >&5
1900 no_cache=0
1901 # Check whether --enable-nanox or --disable-nanox was given.
1902if test "${enable_nanox+set}" = set; then
1903 enableval="$enable_nanox"
1904
1905 if test "$enableval" = yes; then
1906 ac_cv_use_nanox='wxUSE_NANOX=yes'
1907 else
1908 ac_cv_use_nanox='wxUSE_NANOX=no'
1909 fi
1910
1911else
1912
1913 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1914 if test "x$LINE" != x ; then
1915 eval "DEFAULT_$LINE"
1916 else
1917 no_cache=1
1918 fi
1919
1920 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1921
1922fi
1923
1924
1925 eval "$ac_cv_use_nanox"
1926 if test "$no_cache" != 1; then
1927 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1928 fi
1929
1930 if test "$wxUSE_NANOX" = yes; then
1931 echo "$ac_t""yes" 1>&6
1932 else
1933 echo "$ac_t""no" 1>&6
1934 fi
1935
1936
1937
1938 enablestring=
1939 echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
1940echo "configure:1941: checking for --${enablestring:-enable}-gtk2" >&5
1941 no_cache=0
1942 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1943if test "${enable_gtk2+set}" = set; then
1944 enableval="$enable_gtk2"
1945
1946 if test "$enableval" = yes; then
1947 ac_cv_use_gtk2='wxUSE_GTK2=yes'
1948 else
1949 ac_cv_use_gtk2='wxUSE_GTK2=no'
1950 fi
1951
1952else
1953
1954 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1955 if test "x$LINE" != x ; then
1956 eval "DEFAULT_$LINE"
1957 else
1958 no_cache=1
1959 fi
1960
1961 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
1962
1963fi
1964
1965
1966 eval "$ac_cv_use_gtk2"
1967 if test "$no_cache" != 1; then
1968 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1969 fi
1970
1971 if test "$wxUSE_GTK2" = yes; then
1972 echo "$ac_t""yes" 1>&6
1973 else
1974 echo "$ac_t""no" 1>&6
1975 fi
1976
1977
1978
1979 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1980echo "configure:1981: checking for --with-libpng" >&5
1981 no_cache=0
1982 # Check whether --with-libpng or --without-libpng was given.
1983if test "${with_libpng+set}" = set; then
1984 withval="$with_libpng"
1985
1986 if test "$withval" = yes; then
1987 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1988 elif test "$withval" = no; then
1989 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1990 elif test "$withval" = sys; then
1991 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1992 elif test "$withval" = builtin; then
1993 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1994 else
1995 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1996 fi
1997
1998else
1999
2000 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2001 if test "x$LINE" != x ; then
2002 eval "DEFAULT_$LINE"
2003 else
2004 no_cache=1
2005 fi
2006
2007 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2008
2009fi
2010
2011
2012 eval "$ac_cv_use_libpng"
2013 if test "$no_cache" != 1; then
2014 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2015 fi
2016
2017 if test "$wxUSE_LIBPNG" = yes; then
2018 echo "$ac_t""yes" 1>&6
2019 elif test "$wxUSE_LIBPNG" = no; then
2020 echo "$ac_t""no" 1>&6
2021 elif test "$wxUSE_LIBPNG" = sys; then
2022 echo "$ac_t""system version" 1>&6
2023 elif test "$wxUSE_LIBPNG" = builtin; then
2024 echo "$ac_t""builtin version" 1>&6
2025 else
2026 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2027 fi
2028
2029
2030 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2031echo "configure:2032: checking for --with-libjpeg" >&5
2032 no_cache=0
2033 # Check whether --with-libjpeg or --without-libjpeg was given.
2034if test "${with_libjpeg+set}" = set; then
2035 withval="$with_libjpeg"
2036
2037 if test "$withval" = yes; then
2038 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2039 elif test "$withval" = no; then
2040 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2041 elif test "$withval" = sys; then
2042 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2043 elif test "$withval" = builtin; then
2044 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2045 else
2046 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2047 fi
2048
2049else
2050
2051 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2052 if test "x$LINE" != x ; then
2053 eval "DEFAULT_$LINE"
2054 else
2055 no_cache=1
2056 fi
2057
2058 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2059
2060fi
2061
2062
2063 eval "$ac_cv_use_libjpeg"
2064 if test "$no_cache" != 1; then
2065 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2066 fi
2067
2068 if test "$wxUSE_LIBJPEG" = yes; then
2069 echo "$ac_t""yes" 1>&6
2070 elif test "$wxUSE_LIBJPEG" = no; then
2071 echo "$ac_t""no" 1>&6
2072 elif test "$wxUSE_LIBJPEG" = sys; then
2073 echo "$ac_t""system version" 1>&6
2074 elif test "$wxUSE_LIBJPEG" = builtin; then
2075 echo "$ac_t""builtin version" 1>&6
2076 else
2077 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2078 fi
2079
2080
2081 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2082echo "configure:2083: checking for --with-libtiff" >&5
2083 no_cache=0
2084 # Check whether --with-libtiff or --without-libtiff was given.
2085if test "${with_libtiff+set}" = set; then
2086 withval="$with_libtiff"
2087
2088 if test "$withval" = yes; then
2089 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2090 elif test "$withval" = no; then
2091 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2092 elif test "$withval" = sys; then
2093 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2094 elif test "$withval" = builtin; then
2095 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2096 else
2097 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2098 fi
2099
2100else
2101
2102 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2103 if test "x$LINE" != x ; then
2104 eval "DEFAULT_$LINE"
2105 else
2106 no_cache=1
2107 fi
2108
2109 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2110
2111fi
2112
2113
2114 eval "$ac_cv_use_libtiff"
2115 if test "$no_cache" != 1; then
2116 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2117 fi
2118
2119 if test "$wxUSE_LIBTIFF" = yes; then
2120 echo "$ac_t""yes" 1>&6
2121 elif test "$wxUSE_LIBTIFF" = no; then
2122 echo "$ac_t""no" 1>&6
2123 elif test "$wxUSE_LIBTIFF" = sys; then
2124 echo "$ac_t""system version" 1>&6
2125 elif test "$wxUSE_LIBTIFF" = builtin; then
2126 echo "$ac_t""builtin version" 1>&6
2127 else
2128 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2129 fi
2130
2131
2132 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2133echo "configure:2134: checking for --with-opengl" >&5
2134 no_cache=0
2135 # Check whether --with-opengl or --without-opengl was given.
2136if test "${with_opengl+set}" = set; then
2137 withval="$with_opengl"
2138
2139 if test "$withval" = yes; then
2140 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2141 else
2142 ac_cv_use_opengl='wxUSE_OPENGL=no'
2143 fi
2144
2145else
2146
2147 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2148 if test "x$LINE" != x ; then
2149 eval "DEFAULT_$LINE"
2150 else
2151 no_cache=1
2152 fi
2153
2154 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2155
2156fi
2157
2158
2159 eval "$ac_cv_use_opengl"
2160 if test "$no_cache" != 1; then
2161 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2162 fi
2163
2164 if test "$wxUSE_OPENGL" = yes; then
2165 echo "$ac_t""yes" 1>&6
2166 else
2167 echo "$ac_t""no" 1>&6
2168 fi
2169
2170
2171fi
2172
2173
2174 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2175echo "configure:2176: checking for --with-dmalloc" >&5
2176 no_cache=0
2177 # Check whether --with-dmalloc or --without-dmalloc was given.
2178if test "${with_dmalloc+set}" = set; then
2179 withval="$with_dmalloc"
2180
2181 if test "$withval" = yes; then
2182 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2183 else
2184 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2185 fi
2186
2187else
2188
2189 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2190 if test "x$LINE" != x ; then
2191 eval "DEFAULT_$LINE"
2192 else
2193 no_cache=1
2194 fi
2195
2196 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2197
2198fi
2199
2200
2201 eval "$ac_cv_use_dmalloc"
2202 if test "$no_cache" != 1; then
2203 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2204 fi
2205
2206 if test "$wxUSE_DMALLOC" = yes; then
2207 echo "$ac_t""yes" 1>&6
2208 else
2209 echo "$ac_t""no" 1>&6
2210 fi
2211
2212
2213 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2214echo "configure:2215: checking for --with-regex" >&5
2215 no_cache=0
2216 # Check whether --with-regex or --without-regex was given.
2217if test "${with_regex+set}" = set; then
2218 withval="$with_regex"
2219
2220 if test "$withval" = yes; then
2221 ac_cv_use_regex='wxUSE_REGEX=yes'
2222 elif test "$withval" = no; then
2223 ac_cv_use_regex='wxUSE_REGEX=no'
2224 elif test "$withval" = sys; then
2225 ac_cv_use_regex='wxUSE_REGEX=sys'
2226 elif test "$withval" = builtin; then
2227 ac_cv_use_regex='wxUSE_REGEX=builtin'
2228 else
2229 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2230 fi
2231
2232else
2233
2234 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2235 if test "x$LINE" != x ; then
2236 eval "DEFAULT_$LINE"
2237 else
2238 no_cache=1
2239 fi
2240
2241 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2242
2243fi
2244
2245
2246 eval "$ac_cv_use_regex"
2247 if test "$no_cache" != 1; then
2248 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2249 fi
2250
2251 if test "$wxUSE_REGEX" = yes; then
2252 echo "$ac_t""yes" 1>&6
2253 elif test "$wxUSE_REGEX" = no; then
2254 echo "$ac_t""no" 1>&6
2255 elif test "$wxUSE_REGEX" = sys; then
2256 echo "$ac_t""system version" 1>&6
2257 elif test "$wxUSE_REGEX" = builtin; then
2258 echo "$ac_t""builtin version" 1>&6
2259 else
2260 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2261 fi
2262
2263
2264 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2265echo "configure:2266: checking for --with-zlib" >&5
2266 no_cache=0
2267 # Check whether --with-zlib or --without-zlib was given.
2268if test "${with_zlib+set}" = set; then
2269 withval="$with_zlib"
2270
2271 if test "$withval" = yes; then
2272 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2273 elif test "$withval" = no; then
2274 ac_cv_use_zlib='wxUSE_ZLIB=no'
2275 elif test "$withval" = sys; then
2276 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2277 elif test "$withval" = builtin; then
2278 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2279 else
2280 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2281 fi
2282
2283else
2284
2285 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2286 if test "x$LINE" != x ; then
2287 eval "DEFAULT_$LINE"
2288 else
2289 no_cache=1
2290 fi
2291
2292 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2293
2294fi
2295
2296
2297 eval "$ac_cv_use_zlib"
2298 if test "$no_cache" != 1; then
2299 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2300 fi
2301
2302 if test "$wxUSE_ZLIB" = yes; then
2303 echo "$ac_t""yes" 1>&6
2304 elif test "$wxUSE_ZLIB" = no; then
2305 echo "$ac_t""no" 1>&6
2306 elif test "$wxUSE_ZLIB" = sys; then
2307 echo "$ac_t""system version" 1>&6
2308 elif test "$wxUSE_ZLIB" = builtin; then
2309 echo "$ac_t""builtin version" 1>&6
2310 else
2311 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2312 fi
2313
2314
2315 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2316echo "configure:2317: checking for --with-odbc" >&5
2317 no_cache=0
2318 # Check whether --with-odbc or --without-odbc was given.
2319if test "${with_odbc+set}" = set; then
2320 withval="$with_odbc"
2321
2322 if test "$withval" = yes; then
2323 ac_cv_use_odbc='wxUSE_ODBC=yes'
2324 else
2325 ac_cv_use_odbc='wxUSE_ODBC=no'
2326 fi
2327
2328else
2329
2330 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2331 if test "x$LINE" != x ; then
2332 eval "DEFAULT_$LINE"
2333 else
2334 no_cache=1
2335 fi
2336
2337 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2338
2339fi
2340
2341
2342 eval "$ac_cv_use_odbc"
2343 if test "$no_cache" != 1; then
2344 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2345 fi
2346
2347 if test "$wxUSE_ODBC" = yes; then
2348 echo "$ac_t""yes" 1>&6
2349 else
2350 echo "$ac_t""no" 1>&6
2351 fi
2352
2353
2354
2355
2356 enablestring=
2357 echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
2358echo "configure:2359: checking for --${enablestring:-enable}-shared" >&5
2359 no_cache=0
2360 # Check whether --enable-shared or --disable-shared was given.
2361if test "${enable_shared+set}" = set; then
2362 enableval="$enable_shared"
2363
2364 if test "$enableval" = yes; then
2365 ac_cv_use_shared='wxUSE_SHARED=yes'
2366 else
2367 ac_cv_use_shared='wxUSE_SHARED=no'
2368 fi
2369
2370else
2371
2372 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2373 if test "x$LINE" != x ; then
2374 eval "DEFAULT_$LINE"
2375 else
2376 no_cache=1
2377 fi
2378
2379 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2380
2381fi
2382
2383
2384 eval "$ac_cv_use_shared"
2385 if test "$no_cache" != 1; then
2386 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2387 fi
2388
2389 if test "$wxUSE_SHARED" = yes; then
2390 echo "$ac_t""yes" 1>&6
2391 else
2392 echo "$ac_t""no" 1>&6
2393 fi
2394
2395
2396 enablestring=
2397 echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
2398echo "configure:2399: checking for --${enablestring:-enable}-soname" >&5
2399 no_cache=0
2400 # Check whether --enable-soname or --disable-soname was given.
2401if test "${enable_soname+set}" = set; then
2402 enableval="$enable_soname"
2403
2404 if test "$enableval" = yes; then
2405 ac_cv_use_soname='wxUSE_SONAME=yes'
2406 else
2407 ac_cv_use_soname='wxUSE_SONAME=no'
2408 fi
2409
2410else
2411
2412 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2413 if test "x$LINE" != x ; then
2414 eval "DEFAULT_$LINE"
2415 else
2416 no_cache=1
2417 fi
2418
2419 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2420
2421fi
2422
2423
2424 eval "$ac_cv_use_soname"
2425 if test "$no_cache" != 1; then
2426 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2427 fi
2428
2429 if test "$wxUSE_SONAME" = yes; then
2430 echo "$ac_t""yes" 1>&6
2431 else
2432 echo "$ac_t""no" 1>&6
2433 fi
2434
2435
2436 enablestring=
2437 echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
2438echo "configure:2439: checking for --${enablestring:-enable}-optimise" >&5
2439 no_cache=0
2440 # Check whether --enable-optimise or --disable-optimise was given.
2441if test "${enable_optimise+set}" = set; then
2442 enableval="$enable_optimise"
2443
2444 if test "$enableval" = yes; then
2445 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2446 else
2447 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2448 fi
2449
2450else
2451
2452 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2453 if test "x$LINE" != x ; then
2454 eval "DEFAULT_$LINE"
2455 else
2456 no_cache=1
2457 fi
2458
2459 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2460
2461fi
2462
2463
2464 eval "$ac_cv_use_optimise"
2465 if test "$no_cache" != 1; then
2466 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2467 fi
2468
2469 if test "$wxUSE_OPTIMISE" = yes; then
2470 echo "$ac_t""yes" 1>&6
2471 else
2472 echo "$ac_t""no" 1>&6
2473 fi
2474
2475
2476 enablestring=
2477 echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
2478echo "configure:2479: checking for --${enablestring:-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 enablestring=
2518 echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
2519echo "configure:2520: checking for --${enablestring:-enable}-precomp" >&5
2520 no_cache=0
2521 # Check whether --enable-precomp or --disable-precomp was given.
2522if test "${enable_precomp+set}" = set; then
2523 enableval="$enable_precomp"
2524
2525 if test "$enableval" = yes; then
2526 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2527 else
2528 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2529 fi
2530
2531else
2532
2533 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2534 if test "x$LINE" != x ; then
2535 eval "DEFAULT_$LINE"
2536 else
2537 no_cache=1
2538 fi
2539
2540 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2541
2542fi
2543
2544
2545 eval "$ac_cv_use_precomp"
2546 if test "$no_cache" != 1; then
2547 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2548 fi
2549
2550 if test "$wxUSE_PRECOMP" = yes; then
2551 echo "$ac_t""yes" 1>&6
2552 else
2553 echo "$ac_t""no" 1>&6
2554 fi
2555
2556
2557if test "$wxUSE_DEBUG" = "yes"; then
2558 DEFAULT_wxUSE_DEBUG_FLAG=yes
2559 DEFAULT_wxUSE_DEBUG_INFO=yes
2560elif test "$wxUSE_DEBUG" = "no"; then
2561 DEFAULT_wxUSE_DEBUG_FLAG=no
2562 DEFAULT_wxUSE_DEBUG_INFO=no
2563fi
2564
2565
2566 enablestring=
2567 echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
2568echo "configure:2569: checking for --${enablestring:-enable}-debug_flag" >&5
2569 no_cache=0
2570 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2571if test "${enable_debug_flag+set}" = set; then
2572 enableval="$enable_debug_flag"
2573
2574 if test "$enableval" = yes; then
2575 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2576 else
2577 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2578 fi
2579
2580else
2581
2582 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2583 if test "x$LINE" != x ; then
2584 eval "DEFAULT_$LINE"
2585 else
2586 no_cache=1
2587 fi
2588
2589 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2590
2591fi
2592
2593
2594 eval "$ac_cv_use_debug_flag"
2595 if test "$no_cache" != 1; then
2596 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2597 fi
2598
2599 if test "$wxUSE_DEBUG_FLAG" = yes; then
2600 echo "$ac_t""yes" 1>&6
2601 else
2602 echo "$ac_t""no" 1>&6
2603 fi
2604
2605
2606 enablestring=
2607 echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
2608echo "configure:2609: checking for --${enablestring:-enable}-debug_info" >&5
2609 no_cache=0
2610 # Check whether --enable-debug_info or --disable-debug_info was given.
2611if test "${enable_debug_info+set}" = set; then
2612 enableval="$enable_debug_info"
2613
2614 if test "$enableval" = yes; then
2615 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2616 else
2617 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2618 fi
2619
2620else
2621
2622 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2623 if test "x$LINE" != x ; then
2624 eval "DEFAULT_$LINE"
2625 else
2626 no_cache=1
2627 fi
2628
2629 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2630
2631fi
2632
2633
2634 eval "$ac_cv_use_debug_info"
2635 if test "$no_cache" != 1; then
2636 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2637 fi
2638
2639 if test "$wxUSE_DEBUG_INFO" = yes; then
2640 echo "$ac_t""yes" 1>&6
2641 else
2642 echo "$ac_t""no" 1>&6
2643 fi
2644
2645
2646 enablestring=
2647 echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
2648echo "configure:2649: checking for --${enablestring:-enable}-debug_gdb" >&5
2649 no_cache=0
2650 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2651if test "${enable_debug_gdb+set}" = set; then
2652 enableval="$enable_debug_gdb"
2653
2654 if test "$enableval" = yes; then
2655 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2656 else
2657 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2658 fi
2659
2660else
2661
2662 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2663 if test "x$LINE" != x ; then
2664 eval "DEFAULT_$LINE"
2665 else
2666 no_cache=1
2667 fi
2668
2669 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2670
2671fi
2672
2673
2674 eval "$ac_cv_use_debug_gdb"
2675 if test "$no_cache" != 1; then
2676 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2677 fi
2678
2679 if test "$wxUSE_DEBUG_GDB" = yes; then
2680 echo "$ac_t""yes" 1>&6
2681 else
2682 echo "$ac_t""no" 1>&6
2683 fi
2684
2685
2686 enablestring=
2687 echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
2688echo "configure:2689: checking for --${enablestring:-enable}-debug_cntxt" >&5
2689 no_cache=0
2690 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2691if test "${enable_debug_cntxt+set}" = set; then
2692 enableval="$enable_debug_cntxt"
2693
2694 if test "$enableval" = yes; then
2695 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2696 else
2697 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2698 fi
2699
2700else
2701
2702 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2703 if test "x$LINE" != x ; then
2704 eval "DEFAULT_$LINE"
2705 else
2706 no_cache=1
2707 fi
2708
2709 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2710
2711fi
2712
2713
2714 eval "$ac_cv_use_debug_cntxt"
2715 if test "$no_cache" != 1; then
2716 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2717 fi
2718
2719 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2720 echo "$ac_t""yes" 1>&6
2721 else
2722 echo "$ac_t""no" 1>&6
2723 fi
2724
2725
2726 enablestring=
2727 echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
2728echo "configure:2729: checking for --${enablestring:-enable}-mem_tracing" >&5
2729 no_cache=0
2730 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2731if test "${enable_mem_tracing+set}" = set; then
2732 enableval="$enable_mem_tracing"
2733
2734 if test "$enableval" = yes; then
2735 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2736 else
2737 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2738 fi
2739
2740else
2741
2742 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2743 if test "x$LINE" != x ; then
2744 eval "DEFAULT_$LINE"
2745 else
2746 no_cache=1
2747 fi
2748
2749 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2750
2751fi
2752
2753
2754 eval "$ac_cv_use_mem_tracing"
2755 if test "$no_cache" != 1; then
2756 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2757 fi
2758
2759 if test "$wxUSE_MEM_TRACING" = yes; then
2760 echo "$ac_t""yes" 1>&6
2761 else
2762 echo "$ac_t""no" 1>&6
2763 fi
2764
2765
2766 enablestring=
2767 echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
2768echo "configure:2769: checking for --${enablestring:-enable}-profile" >&5
2769 no_cache=0
2770 # Check whether --enable-profile or --disable-profile was given.
2771if test "${enable_profile+set}" = set; then
2772 enableval="$enable_profile"
2773
2774 if test "$enableval" = yes; then
2775 ac_cv_use_profile='wxUSE_PROFILE=yes'
2776 else
2777 ac_cv_use_profile='wxUSE_PROFILE=no'
2778 fi
2779
2780else
2781
2782 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2783 if test "x$LINE" != x ; then
2784 eval "DEFAULT_$LINE"
2785 else
2786 no_cache=1
2787 fi
2788
2789 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2790
2791fi
2792
2793
2794 eval "$ac_cv_use_profile"
2795 if test "$no_cache" != 1; then
2796 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2797 fi
2798
2799 if test "$wxUSE_PROFILE" = yes; then
2800 echo "$ac_t""yes" 1>&6
2801 else
2802 echo "$ac_t""no" 1>&6
2803 fi
2804
2805
2806 enablestring=
2807 echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
2808echo "configure:2809: checking for --${enablestring:-enable}-no_rtti" >&5
2809 no_cache=0
2810 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2811if test "${enable_no_rtti+set}" = set; then
2812 enableval="$enable_no_rtti"
2813
2814 if test "$enableval" = yes; then
2815 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2816 else
2817 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2818 fi
2819
2820else
2821
2822 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2823 if test "x$LINE" != x ; then
2824 eval "DEFAULT_$LINE"
2825 else
2826 no_cache=1
2827 fi
2828
2829 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2830
2831fi
2832
2833
2834 eval "$ac_cv_use_no_rtti"
2835 if test "$no_cache" != 1; then
2836 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2837 fi
2838
2839 if test "$wxUSE_NO_RTTI" = yes; then
2840 echo "$ac_t""yes" 1>&6
2841 else
2842 echo "$ac_t""no" 1>&6
2843 fi
2844
2845
2846 enablestring=
2847 echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
2848echo "configure:2849: checking for --${enablestring:-enable}-no_exceptions" >&5
2849 no_cache=0
2850 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2851if test "${enable_no_exceptions+set}" = set; then
2852 enableval="$enable_no_exceptions"
2853
2854 if test "$enableval" = yes; then
2855 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2856 else
2857 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2858 fi
2859
2860else
2861
2862 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2863 if test "x$LINE" != x ; then
2864 eval "DEFAULT_$LINE"
2865 else
2866 no_cache=1
2867 fi
2868
2869 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2870
2871fi
2872
2873
2874 eval "$ac_cv_use_no_exceptions"
2875 if test "$no_cache" != 1; then
2876 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2877 fi
2878
2879 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2880 echo "$ac_t""yes" 1>&6
2881 else
2882 echo "$ac_t""no" 1>&6
2883 fi
2884
2885
2886 enablestring=
2887 echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
2888echo "configure:2889: checking for --${enablestring:-enable}-permissive" >&5
2889 no_cache=0
2890 # Check whether --enable-permissive or --disable-permissive was given.
2891if test "${enable_permissive+set}" = set; then
2892 enableval="$enable_permissive"
2893
2894 if test "$enableval" = yes; then
2895 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2896 else
2897 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2898 fi
2899
2900else
2901
2902 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2903 if test "x$LINE" != x ; then
2904 eval "DEFAULT_$LINE"
2905 else
2906 no_cache=1
2907 fi
2908
2909 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2910
2911fi
2912
2913
2914 eval "$ac_cv_use_permissive"
2915 if test "$no_cache" != 1; then
2916 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2917 fi
2918
2919 if test "$wxUSE_PERMISSIVE" = yes; then
2920 echo "$ac_t""yes" 1>&6
2921 else
2922 echo "$ac_t""no" 1>&6
2923 fi
2924
2925
2926 enablestring=
2927 echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
2928echo "configure:2929: checking for --${enablestring:-enable}-no_deps" >&5
2929 no_cache=0
2930 # Check whether --enable-no_deps or --disable-no_deps was given.
2931if test "${enable_no_deps+set}" = set; then
2932 enableval="$enable_no_deps"
2933
2934 if test "$enableval" = yes; then
2935 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2936 else
2937 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2938 fi
2939
2940else
2941
2942 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2943 if test "x$LINE" != x ; then
2944 eval "DEFAULT_$LINE"
2945 else
2946 no_cache=1
2947 fi
2948
2949 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2950
2951fi
2952
2953
2954 eval "$ac_cv_use_no_deps"
2955 if test "$no_cache" != 1; then
2956 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2957 fi
2958
2959 if test "$wxUSE_NO_DEPS" = yes; then
2960 echo "$ac_t""yes" 1>&6
2961 else
2962 echo "$ac_t""no" 1>&6
2963 fi
2964
2965
2966
2967 enablestring=
2968 echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
2969echo "configure:2970: checking for --${enablestring:-enable}-compat20" >&5
2970 no_cache=0
2971 # Check whether --enable-compat20 or --disable-compat20 was given.
2972if test "${enable_compat20+set}" = set; then
2973 enableval="$enable_compat20"
2974
2975 if test "$enableval" = yes; then
2976 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2977 else
2978 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2979 fi
2980
2981else
2982
2983 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2984 if test "x$LINE" != x ; then
2985 eval "DEFAULT_$LINE"
2986 else
2987 no_cache=1
2988 fi
2989
2990 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2991
2992fi
2993
2994
2995 eval "$ac_cv_use_compat20"
2996 if test "$no_cache" != 1; then
2997 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2998 fi
2999
3000 if test "$WXWIN_COMPATIBILITY_2" = yes; then
3001 echo "$ac_t""yes" 1>&6
3002 else
3003 echo "$ac_t""no" 1>&6
3004 fi
3005
3006
3007 enablestring=disable
3008 echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
3009echo "configure:3010: checking for --${enablestring:-enable}-compat22" >&5
3010 no_cache=0
3011 # Check whether --enable-compat22 or --disable-compat22 was given.
3012if test "${enable_compat22+set}" = set; then
3013 enableval="$enable_compat22"
3014
3015 if test "$enableval" = yes; then
3016 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3017 else
3018 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3019 fi
3020
3021else
3022
3023 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3024 if test "x$LINE" != x ; then
3025 eval "DEFAULT_$LINE"
3026 else
3027 no_cache=1
3028 fi
3029
3030 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3031
3032fi
3033
3034
3035 eval "$ac_cv_use_compat22"
3036 if test "$no_cache" != 1; then
3037 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3038 fi
3039
3040 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3041 echo "$ac_t""yes" 1>&6
3042 else
3043 echo "$ac_t""no" 1>&6
3044 fi
3045
3046
3047# Check whether --enable-rpath or --disable-rpath was given.
3048if test "${enable_rpath+set}" = set; then
3049 enableval="$enable_rpath"
3050 wxRPATH_DIR="$enableval"
3051fi
3052
3053
3054if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3055 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3056fi
3057
3058
3059
3060
3061 enablestring=
3062 echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
3063echo "configure:3064: checking for --${enablestring:-enable}-intl" >&5
3064 no_cache=0
3065 # Check whether --enable-intl or --disable-intl was given.
3066if test "${enable_intl+set}" = set; then
3067 enableval="$enable_intl"
3068
3069 if test "$enableval" = yes; then
3070 ac_cv_use_intl='wxUSE_INTL=yes'
3071 else
3072 ac_cv_use_intl='wxUSE_INTL=no'
3073 fi
3074
3075else
3076
3077 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3078 if test "x$LINE" != x ; then
3079 eval "DEFAULT_$LINE"
3080 else
3081 no_cache=1
3082 fi
3083
3084 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3085
3086fi
3087
3088
3089 eval "$ac_cv_use_intl"
3090 if test "$no_cache" != 1; then
3091 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3092 fi
3093
3094 if test "$wxUSE_INTL" = yes; then
3095 echo "$ac_t""yes" 1>&6
3096 else
3097 echo "$ac_t""no" 1>&6
3098 fi
3099
3100
3101 enablestring=
3102 echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
3103echo "configure:3104: checking for --${enablestring:-enable}-config" >&5
3104 no_cache=0
3105 # Check whether --enable-config or --disable-config was given.
3106if test "${enable_config+set}" = set; then
3107 enableval="$enable_config"
3108
3109 if test "$enableval" = yes; then
3110 ac_cv_use_config='wxUSE_CONFIG=yes'
3111 else
3112 ac_cv_use_config='wxUSE_CONFIG=no'
3113 fi
3114
3115else
3116
3117 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3118 if test "x$LINE" != x ; then
3119 eval "DEFAULT_$LINE"
3120 else
3121 no_cache=1
3122 fi
3123
3124 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3125
3126fi
3127
3128
3129 eval "$ac_cv_use_config"
3130 if test "$no_cache" != 1; then
3131 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3132 fi
3133
3134 if test "$wxUSE_CONFIG" = yes; then
3135 echo "$ac_t""yes" 1>&6
3136 else
3137 echo "$ac_t""no" 1>&6
3138 fi
3139
3140
3141
3142 enablestring=
3143 echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
3144echo "configure:3145: checking for --${enablestring:-enable}-protocols" >&5
3145 no_cache=0
3146 # Check whether --enable-protocols or --disable-protocols was given.
3147if test "${enable_protocols+set}" = set; then
3148 enableval="$enable_protocols"
3149
3150 if test "$enableval" = yes; then
3151 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3152 else
3153 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3154 fi
3155
3156else
3157
3158 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3159 if test "x$LINE" != x ; then
3160 eval "DEFAULT_$LINE"
3161 else
3162 no_cache=1
3163 fi
3164
3165 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3166
3167fi
3168
3169
3170 eval "$ac_cv_use_protocols"
3171 if test "$no_cache" != 1; then
3172 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3173 fi
3174
3175 if test "$wxUSE_PROTOCOL" = yes; then
3176 echo "$ac_t""yes" 1>&6
3177 else
3178 echo "$ac_t""no" 1>&6
3179 fi
3180
3181
3182 enablestring=
3183 echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
3184echo "configure:3185: checking for --${enablestring:-enable}-ftp" >&5
3185 no_cache=0
3186 # Check whether --enable-ftp or --disable-ftp was given.
3187if test "${enable_ftp+set}" = set; then
3188 enableval="$enable_ftp"
3189
3190 if test "$enableval" = yes; then
3191 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3192 else
3193 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3194 fi
3195
3196else
3197
3198 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3199 if test "x$LINE" != x ; then
3200 eval "DEFAULT_$LINE"
3201 else
3202 no_cache=1
3203 fi
3204
3205 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3206
3207fi
3208
3209
3210 eval "$ac_cv_use_ftp"
3211 if test "$no_cache" != 1; then
3212 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3213 fi
3214
3215 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3216 echo "$ac_t""yes" 1>&6
3217 else
3218 echo "$ac_t""no" 1>&6
3219 fi
3220
3221
3222 enablestring=
3223 echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
3224echo "configure:3225: checking for --${enablestring:-enable}-http" >&5
3225 no_cache=0
3226 # Check whether --enable-http or --disable-http was given.
3227if test "${enable_http+set}" = set; then
3228 enableval="$enable_http"
3229
3230 if test "$enableval" = yes; then
3231 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3232 else
3233 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3234 fi
3235
3236else
3237
3238 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3239 if test "x$LINE" != x ; then
3240 eval "DEFAULT_$LINE"
3241 else
3242 no_cache=1
3243 fi
3244
3245 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3246
3247fi
3248
3249
3250 eval "$ac_cv_use_http"
3251 if test "$no_cache" != 1; then
3252 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3253 fi
3254
3255 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3256 echo "$ac_t""yes" 1>&6
3257 else
3258 echo "$ac_t""no" 1>&6
3259 fi
3260
3261
3262 enablestring=
3263 echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
3264echo "configure:3265: checking for --${enablestring:-enable}-fileproto" >&5
3265 no_cache=0
3266 # Check whether --enable-fileproto or --disable-fileproto was given.
3267if test "${enable_fileproto+set}" = set; then
3268 enableval="$enable_fileproto"
3269
3270 if test "$enableval" = yes; then
3271 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3272 else
3273 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3274 fi
3275
3276else
3277
3278 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3279 if test "x$LINE" != x ; then
3280 eval "DEFAULT_$LINE"
3281 else
3282 no_cache=1
3283 fi
3284
3285 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3286
3287fi
3288
3289
3290 eval "$ac_cv_use_fileproto"
3291 if test "$no_cache" != 1; then
3292 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3293 fi
3294
3295 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3296 echo "$ac_t""yes" 1>&6
3297 else
3298 echo "$ac_t""no" 1>&6
3299 fi
3300
3301
3302 enablestring=
3303 echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
3304echo "configure:3305: checking for --${enablestring:-enable}-sockets" >&5
3305 no_cache=0
3306 # Check whether --enable-sockets or --disable-sockets was given.
3307if test "${enable_sockets+set}" = set; then
3308 enableval="$enable_sockets"
3309
3310 if test "$enableval" = yes; then
3311 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3312 else
3313 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3314 fi
3315
3316else
3317
3318 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3319 if test "x$LINE" != x ; then
3320 eval "DEFAULT_$LINE"
3321 else
3322 no_cache=1
3323 fi
3324
3325 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3326
3327fi
3328
3329
3330 eval "$ac_cv_use_sockets"
3331 if test "$no_cache" != 1; then
3332 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3333 fi
3334
3335 if test "$wxUSE_SOCKETS" = yes; then
3336 echo "$ac_t""yes" 1>&6
3337 else
3338 echo "$ac_t""no" 1>&6
3339 fi
3340
3341
3342 enablestring=
3343 echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
3344echo "configure:3345: checking for --${enablestring:-enable}-ole" >&5
3345 no_cache=0
3346 # Check whether --enable-ole or --disable-ole was given.
3347if test "${enable_ole+set}" = set; then
3348 enableval="$enable_ole"
3349
3350 if test "$enableval" = yes; then
3351 ac_cv_use_ole='wxUSE_OLE=yes'
3352 else
3353 ac_cv_use_ole='wxUSE_OLE=no'
3354 fi
3355
3356else
3357
3358 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3359 if test "x$LINE" != x ; then
3360 eval "DEFAULT_$LINE"
3361 else
3362 no_cache=1
3363 fi
3364
3365 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3366
3367fi
3368
3369
3370 eval "$ac_cv_use_ole"
3371 if test "$no_cache" != 1; then
3372 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3373 fi
3374
3375 if test "$wxUSE_OLE" = yes; then
3376 echo "$ac_t""yes" 1>&6
3377 else
3378 echo "$ac_t""no" 1>&6
3379 fi
3380
3381
3382 enablestring=
3383 echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
3384echo "configure:3385: checking for --${enablestring:-enable}-dataobj" >&5
3385 no_cache=0
3386 # Check whether --enable-dataobj or --disable-dataobj was given.
3387if test "${enable_dataobj+set}" = set; then
3388 enableval="$enable_dataobj"
3389
3390 if test "$enableval" = yes; then
3391 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3392 else
3393 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3394 fi
3395
3396else
3397
3398 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3399 if test "x$LINE" != x ; then
3400 eval "DEFAULT_$LINE"
3401 else
3402 no_cache=1
3403 fi
3404
3405 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3406
3407fi
3408
3409
3410 eval "$ac_cv_use_dataobj"
3411 if test "$no_cache" != 1; then
3412 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3413 fi
3414
3415 if test "$wxUSE_DATAOBJ" = yes; then
3416 echo "$ac_t""yes" 1>&6
3417 else
3418 echo "$ac_t""no" 1>&6
3419 fi
3420
3421
3422
3423 enablestring=
3424 echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
3425echo "configure:3426: checking for --${enablestring:-enable}-ipc" >&5
3426 no_cache=0
3427 # Check whether --enable-ipc or --disable-ipc was given.
3428if test "${enable_ipc+set}" = set; then
3429 enableval="$enable_ipc"
3430
3431 if test "$enableval" = yes; then
3432 ac_cv_use_ipc='wxUSE_IPC=yes'
3433 else
3434 ac_cv_use_ipc='wxUSE_IPC=no'
3435 fi
3436
3437else
3438
3439 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3440 if test "x$LINE" != x ; then
3441 eval "DEFAULT_$LINE"
3442 else
3443 no_cache=1
3444 fi
3445
3446 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3447
3448fi
3449
3450
3451 eval "$ac_cv_use_ipc"
3452 if test "$no_cache" != 1; then
3453 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3454 fi
3455
3456 if test "$wxUSE_IPC" = yes; then
3457 echo "$ac_t""yes" 1>&6
3458 else
3459 echo "$ac_t""no" 1>&6
3460 fi
3461
3462
3463
3464 enablestring=
3465 echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
3466echo "configure:3467: checking for --${enablestring:-enable}-cmdline" >&5
3467 no_cache=0
3468 # Check whether --enable-cmdline or --disable-cmdline was given.
3469if test "${enable_cmdline+set}" = set; then
3470 enableval="$enable_cmdline"
3471
3472 if test "$enableval" = yes; then
3473 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3474 else
3475 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3476 fi
3477
3478else
3479
3480 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3481 if test "x$LINE" != x ; then
3482 eval "DEFAULT_$LINE"
3483 else
3484 no_cache=1
3485 fi
3486
3487 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3488
3489fi
3490
3491
3492 eval "$ac_cv_use_cmdline"
3493 if test "$no_cache" != 1; then
3494 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3495 fi
3496
3497 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3498 echo "$ac_t""yes" 1>&6
3499 else
3500 echo "$ac_t""no" 1>&6
3501 fi
3502
3503
3504 enablestring=
3505 echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
3506echo "configure:3507: checking for --${enablestring:-enable}-datetime" >&5
3507 no_cache=0
3508 # Check whether --enable-datetime or --disable-datetime was given.
3509if test "${enable_datetime+set}" = set; then
3510 enableval="$enable_datetime"
3511
3512 if test "$enableval" = yes; then
3513 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3514 else
3515 ac_cv_use_datetime='wxUSE_DATETIME=no'
3516 fi
3517
3518else
3519
3520 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3521 if test "x$LINE" != x ; then
3522 eval "DEFAULT_$LINE"
3523 else
3524 no_cache=1
3525 fi
3526
3527 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3528
3529fi
3530
3531
3532 eval "$ac_cv_use_datetime"
3533 if test "$no_cache" != 1; then
3534 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3535 fi
3536
3537 if test "$wxUSE_DATETIME" = yes; then
3538 echo "$ac_t""yes" 1>&6
3539 else
3540 echo "$ac_t""no" 1>&6
3541 fi
3542
3543
3544 enablestring=
3545 echo $ac_n "checking for --${enablestring:-enable}-timedate""... $ac_c" 1>&6
3546echo "configure:3547: checking for --${enablestring:-enable}-timedate" >&5
3547 no_cache=0
3548 # Check whether --enable-timedate or --disable-timedate was given.
3549if test "${enable_timedate+set}" = set; then
3550 enableval="$enable_timedate"
3551
3552 if test "$enableval" = yes; then
3553 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3554 else
3555 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3556 fi
3557
3558else
3559
3560 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3561 if test "x$LINE" != x ; then
3562 eval "DEFAULT_$LINE"
3563 else
3564 no_cache=1
3565 fi
3566
3567 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3568
3569fi
3570
3571
3572 eval "$ac_cv_use_timedate"
3573 if test "$no_cache" != 1; then
3574 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3575 fi
3576
3577 if test "$wxUSE_TIMEDATE" = yes; then
3578 echo "$ac_t""yes" 1>&6
3579 else
3580 echo "$ac_t""no" 1>&6
3581 fi
3582
3583
3584 enablestring=
3585 echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
3586echo "configure:3587: checking for --${enablestring:-enable}-stopwatch" >&5
3587 no_cache=0
3588 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3589if test "${enable_stopwatch+set}" = set; then
3590 enableval="$enable_stopwatch"
3591
3592 if test "$enableval" = yes; then
3593 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3594 else
3595 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3596 fi
3597
3598else
3599
3600 LINE=`grep "wxUSE_STOPWATCH" ${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_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3608
3609fi
3610
3611
3612 eval "$ac_cv_use_stopwatch"
3613 if test "$no_cache" != 1; then
3614 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3615 fi
3616
3617 if test "$wxUSE_STOPWATCH" = yes; then
3618 echo "$ac_t""yes" 1>&6
3619 else
3620 echo "$ac_t""no" 1>&6
3621 fi
3622
3623
3624 enablestring=
3625 echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
3626echo "configure:3627: checking for --${enablestring:-enable}-dialupman" >&5
3627 no_cache=0
3628 # Check whether --enable-dialupman or --disable-dialupman was given.
3629if test "${enable_dialupman+set}" = set; then
3630 enableval="$enable_dialupman"
3631
3632 if test "$enableval" = yes; then
3633 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3634 else
3635 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3636 fi
3637
3638else
3639
3640 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3641 if test "x$LINE" != x ; then
3642 eval "DEFAULT_$LINE"
3643 else
3644 no_cache=1
3645 fi
3646
3647 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3648
3649fi
3650
3651
3652 eval "$ac_cv_use_dialupman"
3653 if test "$no_cache" != 1; then
3654 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3655 fi
3656
3657 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3658 echo "$ac_t""yes" 1>&6
3659 else
3660 echo "$ac_t""no" 1>&6
3661 fi
3662
3663
3664 enablestring=
3665 echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
3666echo "configure:3667: checking for --${enablestring:-enable}-apple_ieee" >&5
3667 no_cache=0
3668 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3669if test "${enable_apple_ieee+set}" = set; then
3670 enableval="$enable_apple_ieee"
3671
3672 if test "$enableval" = yes; then
3673 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3674 else
3675 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3676 fi
3677
3678else
3679
3680 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3681 if test "x$LINE" != x ; then
3682 eval "DEFAULT_$LINE"
3683 else
3684 no_cache=1
3685 fi
3686
3687 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3688
3689fi
3690
3691
3692 eval "$ac_cv_use_apple_ieee"
3693 if test "$no_cache" != 1; then
3694 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3695 fi
3696
3697 if test "$wxUSE_APPLE_IEEE" = yes; then
3698 echo "$ac_t""yes" 1>&6
3699 else
3700 echo "$ac_t""no" 1>&6
3701 fi
3702
3703
3704 enablestring=
3705 echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
3706echo "configure:3707: checking for --${enablestring:-enable}-timer" >&5
3707 no_cache=0
3708 # Check whether --enable-timer or --disable-timer was given.
3709if test "${enable_timer+set}" = set; then
3710 enableval="$enable_timer"
3711
3712 if test "$enableval" = yes; then
3713 ac_cv_use_timer='wxUSE_TIMER=yes'
3714 else
3715 ac_cv_use_timer='wxUSE_TIMER=no'
3716 fi
3717
3718else
3719
3720 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3721 if test "x$LINE" != x ; then
3722 eval "DEFAULT_$LINE"
3723 else
3724 no_cache=1
3725 fi
3726
3727 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3728
3729fi
3730
3731
3732 eval "$ac_cv_use_timer"
3733 if test "$no_cache" != 1; then
3734 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3735 fi
3736
3737 if test "$wxUSE_TIMER" = yes; then
3738 echo "$ac_t""yes" 1>&6
3739 else
3740 echo "$ac_t""no" 1>&6
3741 fi
3742
3743
3744 enablestring=
3745 echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
3746echo "configure:3747: checking for --${enablestring:-enable}-wave" >&5
3747 no_cache=0
3748 # Check whether --enable-wave or --disable-wave was given.
3749if test "${enable_wave+set}" = set; then
3750 enableval="$enable_wave"
3751
3752 if test "$enableval" = yes; then
3753 ac_cv_use_wave='wxUSE_WAVE=yes'
3754 else
3755 ac_cv_use_wave='wxUSE_WAVE=no'
3756 fi
3757
3758else
3759
3760 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3761 if test "x$LINE" != x ; then
3762 eval "DEFAULT_$LINE"
3763 else
3764 no_cache=1
3765 fi
3766
3767 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3768
3769fi
3770
3771
3772 eval "$ac_cv_use_wave"
3773 if test "$no_cache" != 1; then
3774 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3775 fi
3776
3777 if test "$wxUSE_WAVE" = yes; then
3778 echo "$ac_t""yes" 1>&6
3779 else
3780 echo "$ac_t""no" 1>&6
3781 fi
3782
3783
3784 enablestring=
3785 echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
3786echo "configure:3787: checking for --${enablestring:-enable}-fraction" >&5
3787 no_cache=0
3788 # Check whether --enable-fraction or --disable-fraction was given.
3789if test "${enable_fraction+set}" = set; then
3790 enableval="$enable_fraction"
3791
3792 if test "$enableval" = yes; then
3793 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3794 else
3795 ac_cv_use_fraction='wxUSE_FRACTION=no'
3796 fi
3797
3798else
3799
3800 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3801 if test "x$LINE" != x ; then
3802 eval "DEFAULT_$LINE"
3803 else
3804 no_cache=1
3805 fi
3806
3807 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3808
3809fi
3810
3811
3812 eval "$ac_cv_use_fraction"
3813 if test "$no_cache" != 1; then
3814 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3815 fi
3816
3817 if test "$wxUSE_FRACTION" = yes; then
3818 echo "$ac_t""yes" 1>&6
3819 else
3820 echo "$ac_t""no" 1>&6
3821 fi
3822
3823
3824 enablestring=
3825 echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
3826echo "configure:3827: checking for --${enablestring:-enable}-dynlib" >&5
3827 no_cache=0
3828 # Check whether --enable-dynlib or --disable-dynlib was given.
3829if test "${enable_dynlib+set}" = set; then
3830 enableval="$enable_dynlib"
3831
3832 if test "$enableval" = yes; then
3833 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3834 else
3835 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3836 fi
3837
3838else
3839
3840 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3841 if test "x$LINE" != x ; then
3842 eval "DEFAULT_$LINE"
3843 else
3844 no_cache=1
3845 fi
3846
3847 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3848
3849fi
3850
3851
3852 eval "$ac_cv_use_dynlib"
3853 if test "$no_cache" != 1; then
3854 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3855 fi
3856
3857 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3858 echo "$ac_t""yes" 1>&6
3859 else
3860 echo "$ac_t""no" 1>&6
3861 fi
3862
3863
3864 enablestring=
3865 echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
3866echo "configure:3867: checking for --${enablestring:-enable}-dynamicloader" >&5
3867 no_cache=0
3868 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3869if test "${enable_dynamicloader+set}" = set; then
3870 enableval="$enable_dynamicloader"
3871
3872 if test "$enableval" = yes; then
3873 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3874 else
3875 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3876 fi
3877
3878else
3879
3880 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3881 if test "x$LINE" != x ; then
3882 eval "DEFAULT_$LINE"
3883 else
3884 no_cache=1
3885 fi
3886
3887 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3888
3889fi
3890
3891
3892 eval "$ac_cv_use_dynamicloader"
3893 if test "$no_cache" != 1; then
3894 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3895 fi
3896
3897 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3898 echo "$ac_t""yes" 1>&6
3899 else
3900 echo "$ac_t""no" 1>&6
3901 fi
3902
3903
3904 enablestring=
3905 echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
3906echo "configure:3907: checking for --${enablestring:-enable}-longlong" >&5
3907 no_cache=0
3908 # Check whether --enable-longlong or --disable-longlong was given.
3909if test "${enable_longlong+set}" = set; then
3910 enableval="$enable_longlong"
3911
3912 if test "$enableval" = yes; then
3913 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3914 else
3915 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3916 fi
3917
3918else
3919
3920 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3921 if test "x$LINE" != x ; then
3922 eval "DEFAULT_$LINE"
3923 else
3924 no_cache=1
3925 fi
3926
3927 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3928
3929fi
3930
3931
3932 eval "$ac_cv_use_longlong"
3933 if test "$no_cache" != 1; then
3934 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3935 fi
3936
3937 if test "$wxUSE_LONGLONG" = yes; then
3938 echo "$ac_t""yes" 1>&6
3939 else
3940 echo "$ac_t""no" 1>&6
3941 fi
3942
3943
3944 enablestring=
3945 echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
3946echo "configure:3947: checking for --${enablestring:-enable}-geometry" >&5
3947 no_cache=0
3948 # Check whether --enable-geometry or --disable-geometry was given.
3949if test "${enable_geometry+set}" = set; then
3950 enableval="$enable_geometry"
3951
3952 if test "$enableval" = yes; then
3953 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3954 else
3955 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3956 fi
3957
3958else
3959
3960 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3961 if test "x$LINE" != x ; then
3962 eval "DEFAULT_$LINE"
3963 else
3964 no_cache=1
3965 fi
3966
3967 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3968
3969fi
3970
3971
3972 eval "$ac_cv_use_geometry"
3973 if test "$no_cache" != 1; then
3974 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3975 fi
3976
3977 if test "$wxUSE_GEOMETRY" = yes; then
3978 echo "$ac_t""yes" 1>&6
3979 else
3980 echo "$ac_t""no" 1>&6
3981 fi
3982
3983
3984 enablestring=
3985 echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
3986echo "configure:3987: checking for --${enablestring:-enable}-log" >&5
3987 no_cache=0
3988 # Check whether --enable-log or --disable-log was given.
3989if test "${enable_log+set}" = set; then
3990 enableval="$enable_log"
3991
3992 if test "$enableval" = yes; then
3993 ac_cv_use_log='wxUSE_LOG=yes'
3994 else
3995 ac_cv_use_log='wxUSE_LOG=no'
3996 fi
3997
3998else
3999
4000 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4001 if test "x$LINE" != x ; then
4002 eval "DEFAULT_$LINE"
4003 else
4004 no_cache=1
4005 fi
4006
4007 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4008
4009fi
4010
4011
4012 eval "$ac_cv_use_log"
4013 if test "$no_cache" != 1; then
4014 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4015 fi
4016
4017 if test "$wxUSE_LOG" = yes; then
4018 echo "$ac_t""yes" 1>&6
4019 else
4020 echo "$ac_t""no" 1>&6
4021 fi
4022
4023
4024 enablestring=
4025 echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
4026echo "configure:4027: checking for --${enablestring:-enable}-streams" >&5
4027 no_cache=0
4028 # Check whether --enable-streams or --disable-streams was given.
4029if test "${enable_streams+set}" = set; then
4030 enableval="$enable_streams"
4031
4032 if test "$enableval" = yes; then
4033 ac_cv_use_streams='wxUSE_STREAMS=yes'
4034 else
4035 ac_cv_use_streams='wxUSE_STREAMS=no'
4036 fi
4037
4038else
4039
4040 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4041 if test "x$LINE" != x ; then
4042 eval "DEFAULT_$LINE"
4043 else
4044 no_cache=1
4045 fi
4046
4047 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
4048
4049fi
4050
4051
4052 eval "$ac_cv_use_streams"
4053 if test "$no_cache" != 1; then
4054 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4055 fi
4056
4057 if test "$wxUSE_STREAMS" = yes; then
4058 echo "$ac_t""yes" 1>&6
4059 else
4060 echo "$ac_t""no" 1>&6
4061 fi
4062
4063
4064 enablestring=
4065 echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
4066echo "configure:4067: checking for --${enablestring:-enable}-file" >&5
4067 no_cache=0
4068 # Check whether --enable-file or --disable-file was given.
4069if test "${enable_file+set}" = set; then
4070 enableval="$enable_file"
4071
4072 if test "$enableval" = yes; then
4073 ac_cv_use_file='wxUSE_FILE=yes'
4074 else
4075 ac_cv_use_file='wxUSE_FILE=no'
4076 fi
4077
4078else
4079
4080 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4081 if test "x$LINE" != x ; then
4082 eval "DEFAULT_$LINE"
4083 else
4084 no_cache=1
4085 fi
4086
4087 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4088
4089fi
4090
4091
4092 eval "$ac_cv_use_file"
4093 if test "$no_cache" != 1; then
4094 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4095 fi
4096
4097 if test "$wxUSE_FILE" = yes; then
4098 echo "$ac_t""yes" 1>&6
4099 else
4100 echo "$ac_t""no" 1>&6
4101 fi
4102
4103
4104 enablestring=
4105 echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
4106echo "configure:4107: checking for --${enablestring:-enable}-ffile" >&5
4107 no_cache=0
4108 # Check whether --enable-ffile or --disable-ffile was given.
4109if test "${enable_ffile+set}" = set; then
4110 enableval="$enable_ffile"
4111
4112 if test "$enableval" = yes; then
4113 ac_cv_use_ffile='wxUSE_FFILE=yes'
4114 else
4115 ac_cv_use_ffile='wxUSE_FFILE=no'
4116 fi
4117
4118else
4119
4120 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4121 if test "x$LINE" != x ; then
4122 eval "DEFAULT_$LINE"
4123 else
4124 no_cache=1
4125 fi
4126
4127 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4128
4129fi
4130
4131
4132 eval "$ac_cv_use_ffile"
4133 if test "$no_cache" != 1; then
4134 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4135 fi
4136
4137 if test "$wxUSE_FFILE" = yes; then
4138 echo "$ac_t""yes" 1>&6
4139 else
4140 echo "$ac_t""no" 1>&6
4141 fi
4142
4143
4144 enablestring=
4145 echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
4146echo "configure:4147: checking for --${enablestring:-enable}-textbuf" >&5
4147 no_cache=0
4148 # Check whether --enable-textbuf or --disable-textbuf was given.
4149if test "${enable_textbuf+set}" = set; then
4150 enableval="$enable_textbuf"
4151
4152 if test "$enableval" = yes; then
4153 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4154 else
4155 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4156 fi
4157
4158else
4159
4160 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4161 if test "x$LINE" != x ; then
4162 eval "DEFAULT_$LINE"
4163 else
4164 no_cache=1
4165 fi
4166
4167 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4168
4169fi
4170
4171
4172 eval "$ac_cv_use_textbuf"
4173 if test "$no_cache" != 1; then
4174 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4175 fi
4176
4177 if test "$wxUSE_TEXTBUFFER" = yes; then
4178 echo "$ac_t""yes" 1>&6
4179 else
4180 echo "$ac_t""no" 1>&6
4181 fi
4182
4183
4184 enablestring=
4185 echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
4186echo "configure:4187: checking for --${enablestring:-enable}-textfile" >&5
4187 no_cache=0
4188 # Check whether --enable-textfile or --disable-textfile was given.
4189if test "${enable_textfile+set}" = set; then
4190 enableval="$enable_textfile"
4191
4192 if test "$enableval" = yes; then
4193 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4194 else
4195 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4196 fi
4197
4198else
4199
4200 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4201 if test "x$LINE" != x ; then
4202 eval "DEFAULT_$LINE"
4203 else
4204 no_cache=1
4205 fi
4206
4207 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4208
4209fi
4210
4211
4212 eval "$ac_cv_use_textfile"
4213 if test "$no_cache" != 1; then
4214 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4215 fi
4216
4217 if test "$wxUSE_TEXTFILE" = yes; then
4218 echo "$ac_t""yes" 1>&6
4219 else
4220 echo "$ac_t""no" 1>&6
4221 fi
4222
4223
4224 enablestring=
4225 echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
4226echo "configure:4227: checking for --${enablestring:-enable}-fontmap" >&5
4227 no_cache=0
4228 # Check whether --enable-fontmap or --disable-fontmap was given.
4229if test "${enable_fontmap+set}" = set; then
4230 enableval="$enable_fontmap"
4231
4232 if test "$enableval" = yes; then
4233 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4234 else
4235 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4236 fi
4237
4238else
4239
4240 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4241 if test "x$LINE" != x ; then
4242 eval "DEFAULT_$LINE"
4243 else
4244 no_cache=1
4245 fi
4246
4247 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4248
4249fi
4250
4251
4252 eval "$ac_cv_use_fontmap"
4253 if test "$no_cache" != 1; then
4254 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4255 fi
4256
4257 if test "$wxUSE_FONTMAP" = yes; then
4258 echo "$ac_t""yes" 1>&6
4259 else
4260 echo "$ac_t""no" 1>&6
4261 fi
4262
4263
4264 enablestring=
4265 echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
4266echo "configure:4267: checking for --${enablestring:-enable}-unicode" >&5
4267 no_cache=0
4268 # Check whether --enable-unicode or --disable-unicode was given.
4269if test "${enable_unicode+set}" = set; then
4270 enableval="$enable_unicode"
4271
4272 if test "$enableval" = yes; then
4273 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4274 else
4275 ac_cv_use_unicode='wxUSE_UNICODE=no'
4276 fi
4277
4278else
4279
4280 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4281 if test "x$LINE" != x ; then
4282 eval "DEFAULT_$LINE"
4283 else
4284 no_cache=1
4285 fi
4286
4287 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4288
4289fi
4290
4291
4292 eval "$ac_cv_use_unicode"
4293 if test "$no_cache" != 1; then
4294 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4295 fi
4296
4297 if test "$wxUSE_UNICODE" = yes; then
4298 echo "$ac_t""yes" 1>&6
4299 else
4300 echo "$ac_t""no" 1>&6
4301 fi
4302
4303
4304 enablestring=
4305 echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
4306echo "configure:4307: checking for --${enablestring:-enable}-mslu" >&5
4307 no_cache=0
4308 # Check whether --enable-mslu or --disable-mslu was given.
4309if test "${enable_mslu+set}" = set; then
4310 enableval="$enable_mslu"
4311
4312 if test "$enableval" = yes; then
4313 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4314 else
4315 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4316 fi
4317
4318else
4319
4320 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4321 if test "x$LINE" != x ; then
4322 eval "DEFAULT_$LINE"
4323 else
4324 no_cache=1
4325 fi
4326
4327 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4328
4329fi
4330
4331
4332 eval "$ac_cv_use_mslu"
4333 if test "$no_cache" != 1; then
4334 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4335 fi
4336
4337 if test "$wxUSE_UNICODE_MSLU" = yes; then
4338 echo "$ac_t""yes" 1>&6
4339 else
4340 echo "$ac_t""no" 1>&6
4341 fi
4342
4343
4344 enablestring=
4345 echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
4346echo "configure:4347: checking for --${enablestring:-enable}-wxprintfv" >&5
4347 no_cache=0
4348 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4349if test "${enable_wxprintfv+set}" = set; then
4350 enableval="$enable_wxprintfv"
4351
4352 if test "$enableval" = yes; then
4353 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4354 else
4355 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4356 fi
4357
4358else
4359
4360 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4361 if test "x$LINE" != x ; then
4362 eval "DEFAULT_$LINE"
4363 else
4364 no_cache=1
4365 fi
4366
4367 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4368
4369fi
4370
4371
4372 eval "$ac_cv_use_wxprintfv"
4373 if test "$no_cache" != 1; then
4374 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4375 fi
4376
4377 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4378 echo "$ac_t""yes" 1>&6
4379 else
4380 echo "$ac_t""no" 1>&6
4381 fi
4382
4383
4384 enablestring=
4385 echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
4386echo "configure:4387: checking for --${enablestring:-enable}-std_iostreams" >&5
4387 no_cache=0
4388 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4389if test "${enable_std_iostreams+set}" = set; then
4390 enableval="$enable_std_iostreams"
4391
4392 if test "$enableval" = yes; then
4393 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4394 else
4395 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4396 fi
4397
4398else
4399
4400 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4401 if test "x$LINE" != x ; then
4402 eval "DEFAULT_$LINE"
4403 else
4404 no_cache=1
4405 fi
4406
4407 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4408
4409fi
4410
4411
4412 eval "$ac_cv_use_std_iostreams"
4413 if test "$no_cache" != 1; then
4414 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4415 fi
4416
4417 if test "$wxUSE_STD_IOSTREAM" = yes; then
4418 echo "$ac_t""yes" 1>&6
4419 else
4420 echo "$ac_t""no" 1>&6
4421 fi
4422
4423
4424 enablestring=
4425 echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
4426echo "configure:4427: checking for --${enablestring:-enable}-filesystem" >&5
4427 no_cache=0
4428 # Check whether --enable-filesystem or --disable-filesystem was given.
4429if test "${enable_filesystem+set}" = set; then
4430 enableval="$enable_filesystem"
4431
4432 if test "$enableval" = yes; then
4433 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4434 else
4435 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4436 fi
4437
4438else
4439
4440 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4441 if test "x$LINE" != x ; then
4442 eval "DEFAULT_$LINE"
4443 else
4444 no_cache=1
4445 fi
4446
4447 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4448
4449fi
4450
4451
4452 eval "$ac_cv_use_filesystem"
4453 if test "$no_cache" != 1; then
4454 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4455 fi
4456
4457 if test "$wxUSE_FILESYSTEM" = yes; then
4458 echo "$ac_t""yes" 1>&6
4459 else
4460 echo "$ac_t""no" 1>&6
4461 fi
4462
4463
4464 enablestring=
4465 echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
4466echo "configure:4467: checking for --${enablestring:-enable}-fs_inet" >&5
4467 no_cache=0
4468 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4469if test "${enable_fs_inet+set}" = set; then
4470 enableval="$enable_fs_inet"
4471
4472 if test "$enableval" = yes; then
4473 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4474 else
4475 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4476 fi
4477
4478else
4479
4480 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4481 if test "x$LINE" != x ; then
4482 eval "DEFAULT_$LINE"
4483 else
4484 no_cache=1
4485 fi
4486
4487 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4488
4489fi
4490
4491
4492 eval "$ac_cv_use_fs_inet"
4493 if test "$no_cache" != 1; then
4494 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4495 fi
4496
4497 if test "$wxUSE_FS_INET" = yes; then
4498 echo "$ac_t""yes" 1>&6
4499 else
4500 echo "$ac_t""no" 1>&6
4501 fi
4502
4503
4504 enablestring=
4505 echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
4506echo "configure:4507: checking for --${enablestring:-enable}-fs_zip" >&5
4507 no_cache=0
4508 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4509if test "${enable_fs_zip+set}" = set; then
4510 enableval="$enable_fs_zip"
4511
4512 if test "$enableval" = yes; then
4513 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4514 else
4515 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4516 fi
4517
4518else
4519
4520 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4521 if test "x$LINE" != x ; then
4522 eval "DEFAULT_$LINE"
4523 else
4524 no_cache=1
4525 fi
4526
4527 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4528
4529fi
4530
4531
4532 eval "$ac_cv_use_fs_zip"
4533 if test "$no_cache" != 1; then
4534 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4535 fi
4536
4537 if test "$wxUSE_FS_ZIP" = yes; then
4538 echo "$ac_t""yes" 1>&6
4539 else
4540 echo "$ac_t""no" 1>&6
4541 fi
4542
4543
4544 enablestring=
4545 echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
4546echo "configure:4547: checking for --${enablestring:-enable}-zipstream" >&5
4547 no_cache=0
4548 # Check whether --enable-zipstream or --disable-zipstream was given.
4549if test "${enable_zipstream+set}" = set; then
4550 enableval="$enable_zipstream"
4551
4552 if test "$enableval" = yes; then
4553 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4554 else
4555 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4556 fi
4557
4558else
4559
4560 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4561 if test "x$LINE" != x ; then
4562 eval "DEFAULT_$LINE"
4563 else
4564 no_cache=1
4565 fi
4566
4567 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4568
4569fi
4570
4571
4572 eval "$ac_cv_use_zipstream"
4573 if test "$no_cache" != 1; then
4574 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4575 fi
4576
4577 if test "$wxUSE_ZIPSTREAM" = yes; then
4578 echo "$ac_t""yes" 1>&6
4579 else
4580 echo "$ac_t""no" 1>&6
4581 fi
4582
4583
4584
4585 enablestring=
4586 echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
4587echo "configure:4588: checking for --${enablestring:-enable}-catch_segvs" >&5
4588 no_cache=0
4589 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4590if test "${enable_catch_segvs+set}" = set; then
4591 enableval="$enable_catch_segvs"
4592
4593 if test "$enableval" = yes; then
4594 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4595 else
4596 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4597 fi
4598
4599else
4600
4601 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4602 if test "x$LINE" != x ; then
4603 eval "DEFAULT_$LINE"
4604 else
4605 no_cache=1
4606 fi
4607
4608 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4609
4610fi
4611
4612
4613 eval "$ac_cv_use_catch_segvs"
4614 if test "$no_cache" != 1; then
4615 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4616 fi
4617
4618 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4619 echo "$ac_t""yes" 1>&6
4620 else
4621 echo "$ac_t""no" 1>&6
4622 fi
4623
4624
4625 enablestring=
4626 echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
4627echo "configure:4628: checking for --${enablestring:-enable}-snglinst" >&5
4628 no_cache=0
4629 # Check whether --enable-snglinst or --disable-snglinst was given.
4630if test "${enable_snglinst+set}" = set; then
4631 enableval="$enable_snglinst"
4632
4633 if test "$enableval" = yes; then
4634 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4635 else
4636 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4637 fi
4638
4639else
4640
4641 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4642 if test "x$LINE" != x ; then
4643 eval "DEFAULT_$LINE"
4644 else
4645 no_cache=1
4646 fi
4647
4648 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4649
4650fi
4651
4652
4653 eval "$ac_cv_use_snglinst"
4654 if test "$no_cache" != 1; then
4655 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4656 fi
4657
4658 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4659 echo "$ac_t""yes" 1>&6
4660 else
4661 echo "$ac_t""no" 1>&6
4662 fi
4663
4664
4665
4666 enablestring=
4667 echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
4668echo "configure:4669: checking for --${enablestring:-enable}-mimetype" >&5
4669 no_cache=0
4670 # Check whether --enable-mimetype or --disable-mimetype was given.
4671if test "${enable_mimetype+set}" = set; then
4672 enableval="$enable_mimetype"
4673
4674 if test "$enableval" = yes; then
4675 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4676 else
4677 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4678 fi
4679
4680else
4681
4682 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4683 if test "x$LINE" != x ; then
4684 eval "DEFAULT_$LINE"
4685 else
4686 no_cache=1
4687 fi
4688
4689 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4690
4691fi
4692
4693
4694 eval "$ac_cv_use_mimetype"
4695 if test "$no_cache" != 1; then
4696 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4697 fi
4698
4699 if test "$wxUSE_MIMETYPE" = yes; then
4700 echo "$ac_t""yes" 1>&6
4701 else
4702 echo "$ac_t""no" 1>&6
4703 fi
4704
4705
4706 enablestring=
4707 echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
4708echo "configure:4709: checking for --${enablestring:-enable}-system_options" >&5
4709 no_cache=0
4710 # Check whether --enable-system_options or --disable-system_options was given.
4711if test "${enable_system_options+set}" = set; then
4712 enableval="$enable_system_options"
4713
4714 if test "$enableval" = yes; then
4715 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4716 else
4717 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4718 fi
4719
4720else
4721
4722 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4723 if test "x$LINE" != x ; then
4724 eval "DEFAULT_$LINE"
4725 else
4726 no_cache=1
4727 fi
4728
4729 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4730
4731fi
4732
4733
4734 eval "$ac_cv_use_system_options"
4735 if test "$no_cache" != 1; then
4736 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4737 fi
4738
4739 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4740 echo "$ac_t""yes" 1>&6
4741 else
4742 echo "$ac_t""no" 1>&6
4743 fi
4744
4745
4746
4747 enablestring=
4748 echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
4749echo "configure:4750: checking for --${enablestring:-enable}-url" >&5
4750 no_cache=0
4751 # Check whether --enable-url or --disable-url was given.
4752if test "${enable_url+set}" = set; then
4753 enableval="$enable_url"
4754
4755 if test "$enableval" = yes; then
4756 ac_cv_use_url='wxUSE_URL=yes'
4757 else
4758 ac_cv_use_url='wxUSE_URL=no'
4759 fi
4760
4761else
4762
4763 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4764 if test "x$LINE" != x ; then
4765 eval "DEFAULT_$LINE"
4766 else
4767 no_cache=1
4768 fi
4769
4770 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4771
4772fi
4773
4774
4775 eval "$ac_cv_use_url"
4776 if test "$no_cache" != 1; then
4777 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4778 fi
4779
4780 if test "$wxUSE_URL" = yes; then
4781 echo "$ac_t""yes" 1>&6
4782 else
4783 echo "$ac_t""no" 1>&6
4784 fi
4785
4786
4787 enablestring=
4788 echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
4789echo "configure:4790: checking for --${enablestring:-enable}-protocol" >&5
4790 no_cache=0
4791 # Check whether --enable-protocol or --disable-protocol was given.
4792if test "${enable_protocol+set}" = set; then
4793 enableval="$enable_protocol"
4794
4795 if test "$enableval" = yes; then
4796 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4797 else
4798 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4799 fi
4800
4801else
4802
4803 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4804 if test "x$LINE" != x ; then
4805 eval "DEFAULT_$LINE"
4806 else
4807 no_cache=1
4808 fi
4809
4810 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4811
4812fi
4813
4814
4815 eval "$ac_cv_use_protocol"
4816 if test "$no_cache" != 1; then
4817 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4818 fi
4819
4820 if test "$wxUSE_PROTOCOL" = yes; then
4821 echo "$ac_t""yes" 1>&6
4822 else
4823 echo "$ac_t""no" 1>&6
4824 fi
4825
4826
4827 enablestring=
4828 echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
4829echo "configure:4830: checking for --${enablestring:-enable}-protocol_http" >&5
4830 no_cache=0
4831 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4832if test "${enable_protocol_http+set}" = set; then
4833 enableval="$enable_protocol_http"
4834
4835 if test "$enableval" = yes; then
4836 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4837 else
4838 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4839 fi
4840
4841else
4842
4843 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4844 if test "x$LINE" != x ; then
4845 eval "DEFAULT_$LINE"
4846 else
4847 no_cache=1
4848 fi
4849
4850 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4851
4852fi
4853
4854
4855 eval "$ac_cv_use_protocol_http"
4856 if test "$no_cache" != 1; then
4857 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4858 fi
4859
4860 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4861 echo "$ac_t""yes" 1>&6
4862 else
4863 echo "$ac_t""no" 1>&6
4864 fi
4865
4866
4867 enablestring=
4868 echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
4869echo "configure:4870: checking for --${enablestring:-enable}-protocol_ftp" >&5
4870 no_cache=0
4871 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4872if test "${enable_protocol_ftp+set}" = set; then
4873 enableval="$enable_protocol_ftp"
4874
4875 if test "$enableval" = yes; then
4876 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4877 else
4878 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4879 fi
4880
4881else
4882
4883 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4884 if test "x$LINE" != x ; then
4885 eval "DEFAULT_$LINE"
4886 else
4887 no_cache=1
4888 fi
4889
4890 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4891
4892fi
4893
4894
4895 eval "$ac_cv_use_protocol_ftp"
4896 if test "$no_cache" != 1; then
4897 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4898 fi
4899
4900 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4901 echo "$ac_t""yes" 1>&6
4902 else
4903 echo "$ac_t""no" 1>&6
4904 fi
4905
4906
4907 enablestring=
4908 echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
4909echo "configure:4910: checking for --${enablestring:-enable}-protocol_file" >&5
4910 no_cache=0
4911 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4912if test "${enable_protocol_file+set}" = set; then
4913 enableval="$enable_protocol_file"
4914
4915 if test "$enableval" = yes; then
4916 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4917 else
4918 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4919 fi
4920
4921else
4922
4923 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4924 if test "x$LINE" != x ; then
4925 eval "DEFAULT_$LINE"
4926 else
4927 no_cache=1
4928 fi
4929
4930 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4931
4932fi
4933
4934
4935 eval "$ac_cv_use_protocol_file"
4936 if test "$no_cache" != 1; then
4937 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4938 fi
4939
4940 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4941 echo "$ac_t""yes" 1>&6
4942 else
4943 echo "$ac_t""no" 1>&6
4944 fi
4945
4946
4947
4948
4949
4950 enablestring=
4951 echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
4952echo "configure:4953: checking for --${enablestring:-enable}-threads" >&5
4953 no_cache=0
4954 # Check whether --enable-threads or --disable-threads was given.
4955if test "${enable_threads+set}" = set; then
4956 enableval="$enable_threads"
4957
4958 if test "$enableval" = yes; then
4959 ac_cv_use_threads='wxUSE_THREADS=yes'
4960 else
4961 ac_cv_use_threads='wxUSE_THREADS=no'
4962 fi
4963
4964else
4965
4966 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4967 if test "x$LINE" != x ; then
4968 eval "DEFAULT_$LINE"
4969 else
4970 no_cache=1
4971 fi
4972
4973 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4974
4975fi
4976
4977
4978 eval "$ac_cv_use_threads"
4979 if test "$no_cache" != 1; then
4980 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4981 fi
4982
4983 if test "$wxUSE_THREADS" = yes; then
4984 echo "$ac_t""yes" 1>&6
4985 else
4986 echo "$ac_t""no" 1>&6
4987 fi
4988
4989
4990if test "$wxUSE_GUI" = "yes"; then
4991
4992
4993
4994 enablestring=
4995 echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
4996echo "configure:4997: checking for --${enablestring:-enable}-docview" >&5
4997 no_cache=0
4998 # Check whether --enable-docview or --disable-docview was given.
4999if test "${enable_docview+set}" = set; then
5000 enableval="$enable_docview"
5001
5002 if test "$enableval" = yes; then
5003 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5004 else
5005 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5006 fi
5007
5008else
5009
5010 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5011 if test "x$LINE" != x ; then
5012 eval "DEFAULT_$LINE"
5013 else
5014 no_cache=1
5015 fi
5016
5017 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5018
5019fi
5020
5021
5022 eval "$ac_cv_use_docview"
5023 if test "$no_cache" != 1; then
5024 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5025 fi
5026
5027 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5028 echo "$ac_t""yes" 1>&6
5029 else
5030 echo "$ac_t""no" 1>&6
5031 fi
5032
5033
5034 enablestring=
5035 echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
5036echo "configure:5037: checking for --${enablestring:-enable}-help" >&5
5037 no_cache=0
5038 # Check whether --enable-help or --disable-help was given.
5039if test "${enable_help+set}" = set; then
5040 enableval="$enable_help"
5041
5042 if test "$enableval" = yes; then
5043 ac_cv_use_help='wxUSE_HELP=yes'
5044 else
5045 ac_cv_use_help='wxUSE_HELP=no'
5046 fi
5047
5048else
5049
5050 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5051 if test "x$LINE" != x ; then
5052 eval "DEFAULT_$LINE"
5053 else
5054 no_cache=1
5055 fi
5056
5057 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5058
5059fi
5060
5061
5062 eval "$ac_cv_use_help"
5063 if test "$no_cache" != 1; then
5064 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5065 fi
5066
5067 if test "$wxUSE_HELP" = yes; then
5068 echo "$ac_t""yes" 1>&6
5069 else
5070 echo "$ac_t""no" 1>&6
5071 fi
5072
5073
5074 enablestring=
5075 echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
5076echo "configure:5077: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5077 no_cache=0
5078 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5079if test "${enable_mshtmlhelp+set}" = set; then
5080 enableval="$enable_mshtmlhelp"
5081
5082 if test "$enableval" = yes; then
5083 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5084 else
5085 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5086 fi
5087
5088else
5089
5090 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5091 if test "x$LINE" != x ; then
5092 eval "DEFAULT_$LINE"
5093 else
5094 no_cache=1
5095 fi
5096
5097 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
5098
5099fi
5100
5101
5102 eval "$ac_cv_use_mshtmlhelp"
5103 if test "$no_cache" != 1; then
5104 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5105 fi
5106
5107 if test "$wxUSE_MS_HTML_HELP" = yes; then
5108 echo "$ac_t""yes" 1>&6
5109 else
5110 echo "$ac_t""no" 1>&6
5111 fi
5112
5113
5114 enablestring=
5115 echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
5116echo "configure:5117: checking for --${enablestring:-enable}-html" >&5
5117 no_cache=0
5118 # Check whether --enable-html or --disable-html was given.
5119if test "${enable_html+set}" = set; then
5120 enableval="$enable_html"
5121
5122 if test "$enableval" = yes; then
5123 ac_cv_use_html='wxUSE_HTML=yes'
5124 else
5125 ac_cv_use_html='wxUSE_HTML=no'
5126 fi
5127
5128else
5129
5130 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5131 if test "x$LINE" != x ; then
5132 eval "DEFAULT_$LINE"
5133 else
5134 no_cache=1
5135 fi
5136
5137 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5138
5139fi
5140
5141
5142 eval "$ac_cv_use_html"
5143 if test "$no_cache" != 1; then
5144 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5145 fi
5146
5147 if test "$wxUSE_HTML" = yes; then
5148 echo "$ac_t""yes" 1>&6
5149 else
5150 echo "$ac_t""no" 1>&6
5151 fi
5152
5153
5154 enablestring=
5155 echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
5156echo "configure:5157: checking for --${enablestring:-enable}-htmlhelp" >&5
5157 no_cache=0
5158 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5159if test "${enable_htmlhelp+set}" = set; then
5160 enableval="$enable_htmlhelp"
5161
5162 if test "$enableval" = yes; then
5163 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5164 else
5165 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5166 fi
5167
5168else
5169
5170 LINE=`grep "wxUSE_WXHTML_HELP" ${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_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5178
5179fi
5180
5181
5182 eval "$ac_cv_use_htmlhelp"
5183 if test "$no_cache" != 1; then
5184 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5185 fi
5186
5187 if test "$wxUSE_WXHTML_HELP" = yes; then
5188 echo "$ac_t""yes" 1>&6
5189 else
5190 echo "$ac_t""no" 1>&6
5191 fi
5192
5193
5194 enablestring=
5195 echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
5196echo "configure:5197: checking for --${enablestring:-enable}-constraints" >&5
5197 no_cache=0
5198 # Check whether --enable-constraints or --disable-constraints was given.
5199if test "${enable_constraints+set}" = set; then
5200 enableval="$enable_constraints"
5201
5202 if test "$enableval" = yes; then
5203 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5204 else
5205 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5206 fi
5207
5208else
5209
5210 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5211 if test "x$LINE" != x ; then
5212 eval "DEFAULT_$LINE"
5213 else
5214 no_cache=1
5215 fi
5216
5217 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5218
5219fi
5220
5221
5222 eval "$ac_cv_use_constraints"
5223 if test "$no_cache" != 1; then
5224 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5225 fi
5226
5227 if test "$wxUSE_CONSTRAINTS" = yes; then
5228 echo "$ac_t""yes" 1>&6
5229 else
5230 echo "$ac_t""no" 1>&6
5231 fi
5232
5233
5234 enablestring=
5235 echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
5236echo "configure:5237: checking for --${enablestring:-enable}-printarch" >&5
5237 no_cache=0
5238 # Check whether --enable-printarch or --disable-printarch was given.
5239if test "${enable_printarch+set}" = set; then
5240 enableval="$enable_printarch"
5241
5242 if test "$enableval" = yes; then
5243 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5244 else
5245 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5246 fi
5247
5248else
5249
5250 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5251 if test "x$LINE" != x ; then
5252 eval "DEFAULT_$LINE"
5253 else
5254 no_cache=1
5255 fi
5256
5257 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5258
5259fi
5260
5261
5262 eval "$ac_cv_use_printarch"
5263 if test "$no_cache" != 1; then
5264 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5265 fi
5266
5267 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5268 echo "$ac_t""yes" 1>&6
5269 else
5270 echo "$ac_t""no" 1>&6
5271 fi
5272
5273
5274 enablestring=
5275 echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
5276echo "configure:5277: checking for --${enablestring:-enable}-mdi" >&5
5277 no_cache=0
5278 # Check whether --enable-mdi or --disable-mdi was given.
5279if test "${enable_mdi+set}" = set; then
5280 enableval="$enable_mdi"
5281
5282 if test "$enableval" = yes; then
5283 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5284 else
5285 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5286 fi
5287
5288else
5289
5290 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5291 if test "x$LINE" != x ; then
5292 eval "DEFAULT_$LINE"
5293 else
5294 no_cache=1
5295 fi
5296
5297 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5298
5299fi
5300
5301
5302 eval "$ac_cv_use_mdi"
5303 if test "$no_cache" != 1; then
5304 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5305 fi
5306
5307 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5308 echo "$ac_t""yes" 1>&6
5309 else
5310 echo "$ac_t""no" 1>&6
5311 fi
5312
5313
5314 enablestring=
5315 echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
5316echo "configure:5317: checking for --${enablestring:-enable}-loggui" >&5
5317 no_cache=0
5318 # Check whether --enable-loggui or --disable-loggui was given.
5319if test "${enable_loggui+set}" = set; then
5320 enableval="$enable_loggui"
5321
5322 if test "$enableval" = yes; then
5323 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5324 else
5325 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5326 fi
5327
5328else
5329
5330 LINE=`grep "wxUSE_LOGGUI" ${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_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5338
5339fi
5340
5341
5342 eval "$ac_cv_use_loggui"
5343 if test "$no_cache" != 1; then
5344 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5345 fi
5346
5347 if test "$wxUSE_LOGGUI" = yes; then
5348 echo "$ac_t""yes" 1>&6
5349 else
5350 echo "$ac_t""no" 1>&6
5351 fi
5352
5353
5354 enablestring=
5355 echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
5356echo "configure:5357: checking for --${enablestring:-enable}-logwin" >&5
5357 no_cache=0
5358 # Check whether --enable-logwin or --disable-logwin was given.
5359if test "${enable_logwin+set}" = set; then
5360 enableval="$enable_logwin"
5361
5362 if test "$enableval" = yes; then
5363 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5364 else
5365 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5366 fi
5367
5368else
5369
5370 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5371 if test "x$LINE" != x ; then
5372 eval "DEFAULT_$LINE"
5373 else
5374 no_cache=1
5375 fi
5376
5377 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5378
5379fi
5380
5381
5382 eval "$ac_cv_use_logwin"
5383 if test "$no_cache" != 1; then
5384 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5385 fi
5386
5387 if test "$wxUSE_LOGWINDOW" = yes; then
5388 echo "$ac_t""yes" 1>&6
5389 else
5390 echo "$ac_t""no" 1>&6
5391 fi
5392
5393
5394 enablestring=
5395 echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
5396echo "configure:5397: checking for --${enablestring:-enable}-logdialog" >&5
5397 no_cache=0
5398 # Check whether --enable-logdialog or --disable-logdialog was given.
5399if test "${enable_logdialog+set}" = set; then
5400 enableval="$enable_logdialog"
5401
5402 if test "$enableval" = yes; then
5403 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5404 else
5405 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5406 fi
5407
5408else
5409
5410 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5411 if test "x$LINE" != x ; then
5412 eval "DEFAULT_$LINE"
5413 else
5414 no_cache=1
5415 fi
5416
5417 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5418
5419fi
5420
5421
5422 eval "$ac_cv_use_logdialog"
5423 if test "$no_cache" != 1; then
5424 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5425 fi
5426
5427 if test "$wxUSE_LOGDIALOG" = yes; then
5428 echo "$ac_t""yes" 1>&6
5429 else
5430 echo "$ac_t""no" 1>&6
5431 fi
5432
5433
5434
5435 enablestring=
5436 echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
5437echo "configure:5438: checking for --${enablestring:-enable}-postscript" >&5
5438 no_cache=0
5439 # Check whether --enable-postscript or --disable-postscript was given.
5440if test "${enable_postscript+set}" = set; then
5441 enableval="$enable_postscript"
5442
5443 if test "$enableval" = yes; then
5444 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5445 else
5446 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5447 fi
5448
5449else
5450
5451 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5452 if test "x$LINE" != x ; then
5453 eval "DEFAULT_$LINE"
5454 else
5455 no_cache=1
5456 fi
5457
5458 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5459
5460fi
5461
5462
5463 eval "$ac_cv_use_postscript"
5464 if test "$no_cache" != 1; then
5465 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5466 fi
5467
5468 if test "$wxUSE_POSTSCRIPT" = yes; then
5469 echo "$ac_t""yes" 1>&6
5470 else
5471 echo "$ac_t""no" 1>&6
5472 fi
5473
5474
5475
5476
5477
5478 enablestring=
5479 echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6
5480echo "configure:5481: checking for --${enablestring:-enable}-prologio" >&5
5481 no_cache=0
5482 # Check whether --enable-prologio or --disable-prologio was given.
5483if test "${enable_prologio+set}" = set; then
5484 enableval="$enable_prologio"
5485
5486 if test "$enableval" = yes; then
5487 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5488 else
5489 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5490 fi
5491
5492else
5493
5494 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5495 if test "x$LINE" != x ; then
5496 eval "DEFAULT_$LINE"
5497 else
5498 no_cache=1
5499 fi
5500
5501 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5502
5503fi
5504
5505
5506 eval "$ac_cv_use_prologio"
5507 if test "$no_cache" != 1; then
5508 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5509 fi
5510
5511 if test "$wxUSE_PROLOGIO" = yes; then
5512 echo "$ac_t""yes" 1>&6
5513 else
5514 echo "$ac_t""no" 1>&6
5515 fi
5516
5517
5518 enablestring=
5519 echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
5520echo "configure:5521: checking for --${enablestring:-enable}-resources" >&5
5521 no_cache=0
5522 # Check whether --enable-resources or --disable-resources was given.
5523if test "${enable_resources+set}" = set; then
5524 enableval="$enable_resources"
5525
5526 if test "$enableval" = yes; then
5527 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5528 else
5529 ac_cv_use_resources='wxUSE_RESOURCES=no'
5530 fi
5531
5532else
5533
5534 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5535 if test "x$LINE" != x ; then
5536 eval "DEFAULT_$LINE"
5537 else
5538 no_cache=1
5539 fi
5540
5541 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5542
5543fi
5544
5545
5546 eval "$ac_cv_use_resources"
5547 if test "$no_cache" != 1; then
5548 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5549 fi
5550
5551 if test "$wxUSE_RESOURCES" = yes; then
5552 echo "$ac_t""yes" 1>&6
5553 else
5554 echo "$ac_t""no" 1>&6
5555 fi
5556
5557
5558
5559 enablestring=
5560 echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6
5561echo "configure:5562: checking for --${enablestring:-enable}-xresources" >&5
5562 no_cache=0
5563 # Check whether --enable-xresources or --disable-xresources was given.
5564if test "${enable_xresources+set}" = set; then
5565 enableval="$enable_xresources"
5566
5567 if test "$enableval" = yes; then
5568 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5569 else
5570 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5571 fi
5572
5573else
5574
5575 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5576 if test "x$LINE" != x ; then
5577 eval "DEFAULT_$LINE"
5578 else
5579 no_cache=1
5580 fi
5581
5582 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5583
5584fi
5585
5586
5587 eval "$ac_cv_use_xresources"
5588 if test "$no_cache" != 1; then
5589 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5590 fi
5591
5592 if test "$wxUSE_X_RESOURCES" = yes; then
5593 echo "$ac_t""yes" 1>&6
5594 else
5595 echo "$ac_t""no" 1>&6
5596 fi
5597
5598
5599
5600
5601 enablestring=
5602 echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
5603echo "configure:5604: checking for --${enablestring:-enable}-clipboard" >&5
5604 no_cache=0
5605 # Check whether --enable-clipboard or --disable-clipboard was given.
5606if test "${enable_clipboard+set}" = set; then
5607 enableval="$enable_clipboard"
5608
5609 if test "$enableval" = yes; then
5610 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5611 else
5612 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5613 fi
5614
5615else
5616
5617 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5618 if test "x$LINE" != x ; then
5619 eval "DEFAULT_$LINE"
5620 else
5621 no_cache=1
5622 fi
5623
5624 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5625
5626fi
5627
5628
5629 eval "$ac_cv_use_clipboard"
5630 if test "$no_cache" != 1; then
5631 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5632 fi
5633
5634 if test "$wxUSE_CLIPBOARD" = yes; then
5635 echo "$ac_t""yes" 1>&6
5636 else
5637 echo "$ac_t""no" 1>&6
5638 fi
5639
5640
5641 enablestring=
5642 echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
5643echo "configure:5644: checking for --${enablestring:-enable}-dnd" >&5
5644 no_cache=0
5645 # Check whether --enable-dnd or --disable-dnd was given.
5646if test "${enable_dnd+set}" = set; then
5647 enableval="$enable_dnd"
5648
5649 if test "$enableval" = yes; then
5650 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5651 else
5652 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5653 fi
5654
5655else
5656
5657 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5658 if test "x$LINE" != x ; then
5659 eval "DEFAULT_$LINE"
5660 else
5661 no_cache=1
5662 fi
5663
5664 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5665
5666fi
5667
5668
5669 eval "$ac_cv_use_dnd"
5670 if test "$no_cache" != 1; then
5671 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5672 fi
5673
5674 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5675 echo "$ac_t""yes" 1>&6
5676 else
5677 echo "$ac_t""no" 1>&6
5678 fi
5679
5680
5681 enablestring=
5682 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
5683echo "configure:5684: checking for --${enablestring:-enable}-metafile" >&5
5684 no_cache=0
5685 # Check whether --enable-metafile or --disable-metafile was given.
5686if test "${enable_metafile+set}" = set; then
5687 enableval="$enable_metafile"
5688
5689 if test "$enableval" = yes; then
5690 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5691 else
5692 ac_cv_use_metafile='wxUSE_METAFILE=no'
5693 fi
5694
5695else
5696
5697 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5698 if test "x$LINE" != x ; then
5699 eval "DEFAULT_$LINE"
5700 else
5701 no_cache=1
5702 fi
5703
5704 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5705
5706fi
5707
5708
5709 eval "$ac_cv_use_metafile"
5710 if test "$no_cache" != 1; then
5711 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5712 fi
5713
5714 if test "$wxUSE_METAFILE" = yes; then
5715 echo "$ac_t""yes" 1>&6
5716 else
5717 echo "$ac_t""no" 1>&6
5718 fi
5719
5720
5721
5722 enablestring=
5723 echo $ac_n "checking for --${enablestring:-enable}-treelayout""... $ac_c" 1>&6
5724echo "configure:5725: checking for --${enablestring:-enable}-treelayout" >&5
5725 no_cache=0
5726 # Check whether --enable-treelayout or --disable-treelayout was given.
5727if test "${enable_treelayout+set}" = set; then
5728 enableval="$enable_treelayout"
5729
5730 if test "$enableval" = yes; then
5731 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5732 else
5733 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5734 fi
5735
5736else
5737
5738 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5739 if test "x$LINE" != x ; then
5740 eval "DEFAULT_$LINE"
5741 else
5742 no_cache=1
5743 fi
5744
5745 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5746
5747fi
5748
5749
5750 eval "$ac_cv_use_treelayout"
5751 if test "$no_cache" != 1; then
5752 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5753 fi
5754
5755 if test "$wxUSE_TREELAYOUT" = yes; then
5756 echo "$ac_t""yes" 1>&6
5757 else
5758 echo "$ac_t""no" 1>&6
5759 fi
5760
5761
5762
5763
5764 enablestring=
5765 echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
5766echo "configure:5767: checking for --${enablestring:-enable}-controls" >&5
5767 no_cache=0
5768 # Check whether --enable-controls or --disable-controls was given.
5769if test "${enable_controls+set}" = set; then
5770 enableval="$enable_controls"
5771
5772 if test "$enableval" = yes; then
5773 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5774 else
5775 ac_cv_use_controls='wxUSE_CONTROLS=no'
5776 fi
5777
5778else
5779
5780 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5781 if test "x$LINE" != x ; then
5782 eval "DEFAULT_$LINE"
5783 else
5784 no_cache=1
5785 fi
5786
5787 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5788
5789fi
5790
5791
5792 eval "$ac_cv_use_controls"
5793 if test "$no_cache" != 1; then
5794 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5795 fi
5796
5797 if test "$wxUSE_CONTROLS" = yes; then
5798 echo "$ac_t""yes" 1>&6
5799 else
5800 echo "$ac_t""no" 1>&6
5801 fi
5802
5803
5804if test "$wxUSE_CONTROLS" = "yes"; then
5805 DEFAULT_wxUSE_ACCEL=yes
5806 DEFAULT_wxUSE_BMPBUTTON=yes
5807 DEFAULT_wxUSE_BUTTON=yes
5808 DEFAULT_wxUSE_CALCTRL=no
5809 DEFAULT_wxUSE_CARET=yes
5810 DEFAULT_wxUSE_COMBOBOX=yes
5811 DEFAULT_wxUSE_CHECKBOX=yes
5812 DEFAULT_wxUSE_CHECKLISTBOX=yes
5813 DEFAULT_wxUSE_CHOICE=yes
5814 DEFAULT_wxUSE_GAUGE=yes
5815 DEFAULT_wxUSE_GRID=yes
5816 DEFAULT_wxUSE_NEW_GRID=yes
5817 DEFAULT_wxUSE_IMAGLIST=yes
5818 DEFAULT_wxUSE_LISTBOX=yes
5819 DEFAULT_wxUSE_LISTCTRL=yes
5820 DEFAULT_wxUSE_NOTEBOOK=yes
5821 DEFAULT_wxUSE_PROPSHEET=yes
5822 DEFAULT_wxUSE_RADIOBOX=yes
5823 DEFAULT_wxUSE_RADIOBTN=yes
5824 DEFAULT_wxUSE_SASH=yes
5825 DEFAULT_wxUSE_SCROLLBAR=yes
5826 DEFAULT_wxUSE_SLIDER=yes
5827 DEFAULT_wxUSE_SPINBTN=yes
5828 DEFAULT_wxUSE_SPINCTRL=yes
5829 DEFAULT_wxUSE_SPLITTER=yes
5830 DEFAULT_wxUSE_STATBMP=yes
5831 DEFAULT_wxUSE_STATBOX=yes
5832 DEFAULT_wxUSE_STATLINE=yes
5833 DEFAULT_wxUSE_STATUSBAR=yes
5834 DEFAULT_wxUSE_TAB_DIALOG=yes
5835 DEFAULT_wxUSE_TOGGLEBTN=yes
5836 DEFAULT_wxUSE_TOOLBAR=yes
5837 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5838 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5839 DEFAULT_wxUSE_TOOLTIPS=yes
5840 DEFAULT_wxUSE_TREECTRL=yes
5841 DEFAULT_wxUSE_POPUPWIN=yes
5842 DEFAULT_wxUSE_TIPWINDOW=yes
5843elif test "$wxUSE_CONTROLS" = "no"; then
5844 DEFAULT_wxUSE_ACCEL=no
5845 DEFAULT_wxUSE_BMPBUTTON=no
5846 DEFAULT_wxUSE_BUTTON=no
5847 DEFAULT_wxUSE_CALCTRL=no
5848 DEFAULT_wxUSE_CARET=no
5849 DEFAULT_wxUSE_COMBOBOX=no
5850 DEFAULT_wxUSE_CHECKBOX=no
5851 DEFAULT_wxUSE_CHECKLISTBOX=no
5852 DEFAULT_wxUSE_CHOICE=no
5853 DEFAULT_wxUSE_GAUGE=no
5854 DEFAULT_wxUSE_GRID=no
5855 DEFAULT_wxUSE_NEW_GRID=no
5856 DEFAULT_wxUSE_IMAGLIST=no
5857 DEFAULT_wxUSE_LISTBOX=no
5858 DEFAULT_wxUSE_LISTCTRL=no
5859 DEFAULT_wxUSE_NOTEBOOK=no
5860 DEFAULT_wxUSE_PROPSHEET=no
5861 DEFAULT_wxUSE_RADIOBOX=no
5862 DEFAULT_wxUSE_RADIOBTN=no
5863 DEFAULT_wxUSE_SASH=no
5864 DEFAULT_wxUSE_SCROLLBAR=no
5865 DEFAULT_wxUSE_SLIDER=no
5866 DEFAULT_wxUSE_SPINBTN=no
5867 DEFAULT_wxUSE_SPINCTRL=no
5868 DEFAULT_wxUSE_SPLITTER=no
5869 DEFAULT_wxUSE_STATBMP=no
5870 DEFAULT_wxUSE_STATBOX=no
5871 DEFAULT_wxUSE_STATLINE=no
5872 DEFAULT_wxUSE_STATUSBAR=no
5873 DEFAULT_wxUSE_TAB_DIALOG=no
5874 DEFAULT_wxUSE_TOGGLEBTN=no
5875 DEFAULT_wxUSE_TOOLBAR=no
5876 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5877 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5878 DEFAULT_wxUSE_TOOLTIPS=no
5879 DEFAULT_wxUSE_TREECTRL=no
5880 DEFAULT_wxUSE_POPUPWIN=no
5881 DEFAULT_wxUSE_TIPWINDOW=no
5882fi
5883
5884
5885 enablestring=
5886 echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
5887echo "configure:5888: checking for --${enablestring:-enable}-accel" >&5
5888 no_cache=0
5889 # Check whether --enable-accel or --disable-accel was given.
5890if test "${enable_accel+set}" = set; then
5891 enableval="$enable_accel"
5892
5893 if test "$enableval" = yes; then
5894 ac_cv_use_accel='wxUSE_ACCEL=yes'
5895 else
5896 ac_cv_use_accel='wxUSE_ACCEL=no'
5897 fi
5898
5899else
5900
5901 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5902 if test "x$LINE" != x ; then
5903 eval "DEFAULT_$LINE"
5904 else
5905 no_cache=1
5906 fi
5907
5908 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5909
5910fi
5911
5912
5913 eval "$ac_cv_use_accel"
5914 if test "$no_cache" != 1; then
5915 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5916 fi
5917
5918 if test "$wxUSE_ACCEL" = yes; then
5919 echo "$ac_t""yes" 1>&6
5920 else
5921 echo "$ac_t""no" 1>&6
5922 fi
5923
5924
5925 enablestring=
5926 echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
5927echo "configure:5928: checking for --${enablestring:-enable}-button" >&5
5928 no_cache=0
5929 # Check whether --enable-button or --disable-button was given.
5930if test "${enable_button+set}" = set; then
5931 enableval="$enable_button"
5932
5933 if test "$enableval" = yes; then
5934 ac_cv_use_button='wxUSE_BUTTON=yes'
5935 else
5936 ac_cv_use_button='wxUSE_BUTTON=no'
5937 fi
5938
5939else
5940
5941 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5942 if test "x$LINE" != x ; then
5943 eval "DEFAULT_$LINE"
5944 else
5945 no_cache=1
5946 fi
5947
5948 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5949
5950fi
5951
5952
5953 eval "$ac_cv_use_button"
5954 if test "$no_cache" != 1; then
5955 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5956 fi
5957
5958 if test "$wxUSE_BUTTON" = yes; then
5959 echo "$ac_t""yes" 1>&6
5960 else
5961 echo "$ac_t""no" 1>&6
5962 fi
5963
5964
5965 enablestring=
5966 echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
5967echo "configure:5968: checking for --${enablestring:-enable}-bmpbutton" >&5
5968 no_cache=0
5969 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5970if test "${enable_bmpbutton+set}" = set; then
5971 enableval="$enable_bmpbutton"
5972
5973 if test "$enableval" = yes; then
5974 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5975 else
5976 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5977 fi
5978
5979else
5980
5981 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5982 if test "x$LINE" != x ; then
5983 eval "DEFAULT_$LINE"
5984 else
5985 no_cache=1
5986 fi
5987
5988 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5989
5990fi
5991
5992
5993 eval "$ac_cv_use_bmpbutton"
5994 if test "$no_cache" != 1; then
5995 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5996 fi
5997
5998 if test "$wxUSE_BMPBUTTON" = yes; then
5999 echo "$ac_t""yes" 1>&6
6000 else
6001 echo "$ac_t""no" 1>&6
6002 fi
6003
6004
6005 enablestring=
6006 echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
6007echo "configure:6008: checking for --${enablestring:-enable}-calendar" >&5
6008 no_cache=0
6009 # Check whether --enable-calendar or --disable-calendar was given.
6010if test "${enable_calendar+set}" = set; then
6011 enableval="$enable_calendar"
6012
6013 if test "$enableval" = yes; then
6014 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6015 else
6016 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6017 fi
6018
6019else
6020
6021 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6022 if test "x$LINE" != x ; then
6023 eval "DEFAULT_$LINE"
6024 else
6025 no_cache=1
6026 fi
6027
6028 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
6029
6030fi
6031
6032
6033 eval "$ac_cv_use_calendar"
6034 if test "$no_cache" != 1; then
6035 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6036 fi
6037
6038 if test "$wxUSE_CALCTRL" = yes; then
6039 echo "$ac_t""yes" 1>&6
6040 else
6041 echo "$ac_t""no" 1>&6
6042 fi
6043
6044
6045 enablestring=
6046 echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
6047echo "configure:6048: checking for --${enablestring:-enable}-caret" >&5
6048 no_cache=0
6049 # Check whether --enable-caret or --disable-caret was given.
6050if test "${enable_caret+set}" = set; then
6051 enableval="$enable_caret"
6052
6053 if test "$enableval" = yes; then
6054 ac_cv_use_caret='wxUSE_CARET=yes'
6055 else
6056 ac_cv_use_caret='wxUSE_CARET=no'
6057 fi
6058
6059else
6060
6061 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6062 if test "x$LINE" != x ; then
6063 eval "DEFAULT_$LINE"
6064 else
6065 no_cache=1
6066 fi
6067
6068 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6069
6070fi
6071
6072
6073 eval "$ac_cv_use_caret"
6074 if test "$no_cache" != 1; then
6075 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6076 fi
6077
6078 if test "$wxUSE_CARET" = yes; then
6079 echo "$ac_t""yes" 1>&6
6080 else
6081 echo "$ac_t""no" 1>&6
6082 fi
6083
6084
6085 enablestring=
6086 echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
6087echo "configure:6088: checking for --${enablestring:-enable}-checkbox" >&5
6088 no_cache=0
6089 # Check whether --enable-checkbox or --disable-checkbox was given.
6090if test "${enable_checkbox+set}" = set; then
6091 enableval="$enable_checkbox"
6092
6093 if test "$enableval" = yes; then
6094 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6095 else
6096 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6097 fi
6098
6099else
6100
6101 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6102 if test "x$LINE" != x ; then
6103 eval "DEFAULT_$LINE"
6104 else
6105 no_cache=1
6106 fi
6107
6108 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6109
6110fi
6111
6112
6113 eval "$ac_cv_use_checkbox"
6114 if test "$no_cache" != 1; then
6115 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6116 fi
6117
6118 if test "$wxUSE_CHECKBOX" = yes; then
6119 echo "$ac_t""yes" 1>&6
6120 else
6121 echo "$ac_t""no" 1>&6
6122 fi
6123
6124
6125 enablestring=
6126 echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
6127echo "configure:6128: checking for --${enablestring:-enable}-checklst" >&5
6128 no_cache=0
6129 # Check whether --enable-checklst or --disable-checklst was given.
6130if test "${enable_checklst+set}" = set; then
6131 enableval="$enable_checklst"
6132
6133 if test "$enableval" = yes; then
6134 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6135 else
6136 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6137 fi
6138
6139else
6140
6141 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6142 if test "x$LINE" != x ; then
6143 eval "DEFAULT_$LINE"
6144 else
6145 no_cache=1
6146 fi
6147
6148 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6149
6150fi
6151
6152
6153 eval "$ac_cv_use_checklst"
6154 if test "$no_cache" != 1; then
6155 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6156 fi
6157
6158 if test "$wxUSE_CHECKLST" = yes; then
6159 echo "$ac_t""yes" 1>&6
6160 else
6161 echo "$ac_t""no" 1>&6
6162 fi
6163
6164
6165 enablestring=
6166 echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
6167echo "configure:6168: checking for --${enablestring:-enable}-choice" >&5
6168 no_cache=0
6169 # Check whether --enable-choice or --disable-choice was given.
6170if test "${enable_choice+set}" = set; then
6171 enableval="$enable_choice"
6172
6173 if test "$enableval" = yes; then
6174 ac_cv_use_choice='wxUSE_CHOICE=yes'
6175 else
6176 ac_cv_use_choice='wxUSE_CHOICE=no'
6177 fi
6178
6179else
6180
6181 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6182 if test "x$LINE" != x ; then
6183 eval "DEFAULT_$LINE"
6184 else
6185 no_cache=1
6186 fi
6187
6188 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6189
6190fi
6191
6192
6193 eval "$ac_cv_use_choice"
6194 if test "$no_cache" != 1; then
6195 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6196 fi
6197
6198 if test "$wxUSE_CHOICE" = yes; then
6199 echo "$ac_t""yes" 1>&6
6200 else
6201 echo "$ac_t""no" 1>&6
6202 fi
6203
6204
6205 enablestring=
6206 echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
6207echo "configure:6208: checking for --${enablestring:-enable}-combobox" >&5
6208 no_cache=0
6209 # Check whether --enable-combobox or --disable-combobox was given.
6210if test "${enable_combobox+set}" = set; then
6211 enableval="$enable_combobox"
6212
6213 if test "$enableval" = yes; then
6214 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6215 else
6216 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6217 fi
6218
6219else
6220
6221 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6222 if test "x$LINE" != x ; then
6223 eval "DEFAULT_$LINE"
6224 else
6225 no_cache=1
6226 fi
6227
6228 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6229
6230fi
6231
6232
6233 eval "$ac_cv_use_combobox"
6234 if test "$no_cache" != 1; then
6235 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6236 fi
6237
6238 if test "$wxUSE_COMBOBOX" = yes; then
6239 echo "$ac_t""yes" 1>&6
6240 else
6241 echo "$ac_t""no" 1>&6
6242 fi
6243
6244
6245 enablestring=
6246 echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
6247echo "configure:6248: checking for --${enablestring:-enable}-gauge" >&5
6248 no_cache=0
6249 # Check whether --enable-gauge or --disable-gauge was given.
6250if test "${enable_gauge+set}" = set; then
6251 enableval="$enable_gauge"
6252
6253 if test "$enableval" = yes; then
6254 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6255 else
6256 ac_cv_use_gauge='wxUSE_GAUGE=no'
6257 fi
6258
6259else
6260
6261 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6262 if test "x$LINE" != x ; then
6263 eval "DEFAULT_$LINE"
6264 else
6265 no_cache=1
6266 fi
6267
6268 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6269
6270fi
6271
6272
6273 eval "$ac_cv_use_gauge"
6274 if test "$no_cache" != 1; then
6275 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6276 fi
6277
6278 if test "$wxUSE_GAUGE" = yes; then
6279 echo "$ac_t""yes" 1>&6
6280 else
6281 echo "$ac_t""no" 1>&6
6282 fi
6283
6284
6285 enablestring=
6286 echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
6287echo "configure:6288: checking for --${enablestring:-enable}-grid" >&5
6288 no_cache=0
6289 # Check whether --enable-grid or --disable-grid was given.
6290if test "${enable_grid+set}" = set; then
6291 enableval="$enable_grid"
6292
6293 if test "$enableval" = yes; then
6294 ac_cv_use_grid='wxUSE_GRID=yes'
6295 else
6296 ac_cv_use_grid='wxUSE_GRID=no'
6297 fi
6298
6299else
6300
6301 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6302 if test "x$LINE" != x ; then
6303 eval "DEFAULT_$LINE"
6304 else
6305 no_cache=1
6306 fi
6307
6308 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6309
6310fi
6311
6312
6313 eval "$ac_cv_use_grid"
6314 if test "$no_cache" != 1; then
6315 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6316 fi
6317
6318 if test "$wxUSE_GRID" = yes; then
6319 echo "$ac_t""yes" 1>&6
6320 else
6321 echo "$ac_t""no" 1>&6
6322 fi
6323
6324
6325 enablestring=
6326 echo $ac_n "checking for --${enablestring:-enable}-newgrid""... $ac_c" 1>&6
6327echo "configure:6328: checking for --${enablestring:-enable}-newgrid" >&5
6328 no_cache=0
6329 # Check whether --enable-newgrid or --disable-newgrid was given.
6330if test "${enable_newgrid+set}" = set; then
6331 enableval="$enable_newgrid"
6332
6333 if test "$enableval" = yes; then
6334 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6335 else
6336 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6337 fi
6338
6339else
6340
6341 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6342 if test "x$LINE" != x ; then
6343 eval "DEFAULT_$LINE"
6344 else
6345 no_cache=1
6346 fi
6347
6348 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6349
6350fi
6351
6352
6353 eval "$ac_cv_use_newgrid"
6354 if test "$no_cache" != 1; then
6355 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6356 fi
6357
6358 if test "$wxUSE_NEW_GRID" = yes; then
6359 echo "$ac_t""yes" 1>&6
6360 else
6361 echo "$ac_t""no" 1>&6
6362 fi
6363
6364
6365 enablestring=
6366 echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
6367echo "configure:6368: checking for --${enablestring:-enable}-imaglist" >&5
6368 no_cache=0
6369 # Check whether --enable-imaglist or --disable-imaglist was given.
6370if test "${enable_imaglist+set}" = set; then
6371 enableval="$enable_imaglist"
6372
6373 if test "$enableval" = yes; then
6374 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6375 else
6376 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6377 fi
6378
6379else
6380
6381 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6382 if test "x$LINE" != x ; then
6383 eval "DEFAULT_$LINE"
6384 else
6385 no_cache=1
6386 fi
6387
6388 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6389
6390fi
6391
6392
6393 eval "$ac_cv_use_imaglist"
6394 if test "$no_cache" != 1; then
6395 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6396 fi
6397
6398 if test "$wxUSE_IMAGLIST" = yes; then
6399 echo "$ac_t""yes" 1>&6
6400 else
6401 echo "$ac_t""no" 1>&6
6402 fi
6403
6404
6405 enablestring=
6406 echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
6407echo "configure:6408: checking for --${enablestring:-enable}-listbox" >&5
6408 no_cache=0
6409 # Check whether --enable-listbox or --disable-listbox was given.
6410if test "${enable_listbox+set}" = set; then
6411 enableval="$enable_listbox"
6412
6413 if test "$enableval" = yes; then
6414 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6415 else
6416 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6417 fi
6418
6419else
6420
6421 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6422 if test "x$LINE" != x ; then
6423 eval "DEFAULT_$LINE"
6424 else
6425 no_cache=1
6426 fi
6427
6428 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6429
6430fi
6431
6432
6433 eval "$ac_cv_use_listbox"
6434 if test "$no_cache" != 1; then
6435 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6436 fi
6437
6438 if test "$wxUSE_LISTBOX" = yes; then
6439 echo "$ac_t""yes" 1>&6
6440 else
6441 echo "$ac_t""no" 1>&6
6442 fi
6443
6444
6445 enablestring=
6446 echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
6447echo "configure:6448: checking for --${enablestring:-enable}-listctrl" >&5
6448 no_cache=0
6449 # Check whether --enable-listctrl or --disable-listctrl was given.
6450if test "${enable_listctrl+set}" = set; then
6451 enableval="$enable_listctrl"
6452
6453 if test "$enableval" = yes; then
6454 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6455 else
6456 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6457 fi
6458
6459else
6460
6461 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6462 if test "x$LINE" != x ; then
6463 eval "DEFAULT_$LINE"
6464 else
6465 no_cache=1
6466 fi
6467
6468 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6469
6470fi
6471
6472
6473 eval "$ac_cv_use_listctrl"
6474 if test "$no_cache" != 1; then
6475 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6476 fi
6477
6478 if test "$wxUSE_LISTCTRL" = yes; then
6479 echo "$ac_t""yes" 1>&6
6480 else
6481 echo "$ac_t""no" 1>&6
6482 fi
6483
6484
6485 enablestring=
6486 echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
6487echo "configure:6488: checking for --${enablestring:-enable}-notebook" >&5
6488 no_cache=0
6489 # Check whether --enable-notebook or --disable-notebook was given.
6490if test "${enable_notebook+set}" = set; then
6491 enableval="$enable_notebook"
6492
6493 if test "$enableval" = yes; then
6494 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6495 else
6496 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6497 fi
6498
6499else
6500
6501 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6502 if test "x$LINE" != x ; then
6503 eval "DEFAULT_$LINE"
6504 else
6505 no_cache=1
6506 fi
6507
6508 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6509
6510fi
6511
6512
6513 eval "$ac_cv_use_notebook"
6514 if test "$no_cache" != 1; then
6515 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6516 fi
6517
6518 if test "$wxUSE_NOTEBOOK" = yes; then
6519 echo "$ac_t""yes" 1>&6
6520 else
6521 echo "$ac_t""no" 1>&6
6522 fi
6523
6524
6525 enablestring=
6526 echo $ac_n "checking for --${enablestring:-enable}-propsheet""... $ac_c" 1>&6
6527echo "configure:6528: checking for --${enablestring:-enable}-propsheet" >&5
6528 no_cache=0
6529 # Check whether --enable-propsheet or --disable-propsheet was given.
6530if test "${enable_propsheet+set}" = set; then
6531 enableval="$enable_propsheet"
6532
6533 if test "$enableval" = yes; then
6534 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6535 else
6536 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6537 fi
6538
6539else
6540
6541 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6542 if test "x$LINE" != x ; then
6543 eval "DEFAULT_$LINE"
6544 else
6545 no_cache=1
6546 fi
6547
6548 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6549
6550fi
6551
6552
6553 eval "$ac_cv_use_propsheet"
6554 if test "$no_cache" != 1; then
6555 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6556 fi
6557
6558 if test "$wxUSE_PROPSHEET" = yes; then
6559 echo "$ac_t""yes" 1>&6
6560 else
6561 echo "$ac_t""no" 1>&6
6562 fi
6563
6564
6565 enablestring=
6566 echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
6567echo "configure:6568: checking for --${enablestring:-enable}-radiobox" >&5
6568 no_cache=0
6569 # Check whether --enable-radiobox or --disable-radiobox was given.
6570if test "${enable_radiobox+set}" = set; then
6571 enableval="$enable_radiobox"
6572
6573 if test "$enableval" = yes; then
6574 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6575 else
6576 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6577 fi
6578
6579else
6580
6581 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6582 if test "x$LINE" != x ; then
6583 eval "DEFAULT_$LINE"
6584 else
6585 no_cache=1
6586 fi
6587
6588 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6589
6590fi
6591
6592
6593 eval "$ac_cv_use_radiobox"
6594 if test "$no_cache" != 1; then
6595 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6596 fi
6597
6598 if test "$wxUSE_RADIOBOX" = yes; then
6599 echo "$ac_t""yes" 1>&6
6600 else
6601 echo "$ac_t""no" 1>&6
6602 fi
6603
6604
6605 enablestring=
6606 echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
6607echo "configure:6608: checking for --${enablestring:-enable}-radiobtn" >&5
6608 no_cache=0
6609 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6610if test "${enable_radiobtn+set}" = set; then
6611 enableval="$enable_radiobtn"
6612
6613 if test "$enableval" = yes; then
6614 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6615 else
6616 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6617 fi
6618
6619else
6620
6621 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6622 if test "x$LINE" != x ; then
6623 eval "DEFAULT_$LINE"
6624 else
6625 no_cache=1
6626 fi
6627
6628 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6629
6630fi
6631
6632
6633 eval "$ac_cv_use_radiobtn"
6634 if test "$no_cache" != 1; then
6635 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6636 fi
6637
6638 if test "$wxUSE_RADIOBTN" = yes; then
6639 echo "$ac_t""yes" 1>&6
6640 else
6641 echo "$ac_t""no" 1>&6
6642 fi
6643
6644
6645 enablestring=
6646 echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
6647echo "configure:6648: checking for --${enablestring:-enable}-sash" >&5
6648 no_cache=0
6649 # Check whether --enable-sash or --disable-sash was given.
6650if test "${enable_sash+set}" = set; then
6651 enableval="$enable_sash"
6652
6653 if test "$enableval" = yes; then
6654 ac_cv_use_sash='wxUSE_SASH=yes'
6655 else
6656 ac_cv_use_sash='wxUSE_SASH=no'
6657 fi
6658
6659else
6660
6661 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6662 if test "x$LINE" != x ; then
6663 eval "DEFAULT_$LINE"
6664 else
6665 no_cache=1
6666 fi
6667
6668 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6669
6670fi
6671
6672
6673 eval "$ac_cv_use_sash"
6674 if test "$no_cache" != 1; then
6675 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6676 fi
6677
6678 if test "$wxUSE_SASH" = yes; then
6679 echo "$ac_t""yes" 1>&6
6680 else
6681 echo "$ac_t""no" 1>&6
6682 fi
6683
6684
6685 enablestring=
6686 echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
6687echo "configure:6688: checking for --${enablestring:-enable}-scrollbar" >&5
6688 no_cache=0
6689 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6690if test "${enable_scrollbar+set}" = set; then
6691 enableval="$enable_scrollbar"
6692
6693 if test "$enableval" = yes; then
6694 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6695 else
6696 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6697 fi
6698
6699else
6700
6701 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6702 if test "x$LINE" != x ; then
6703 eval "DEFAULT_$LINE"
6704 else
6705 no_cache=1
6706 fi
6707
6708 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6709
6710fi
6711
6712
6713 eval "$ac_cv_use_scrollbar"
6714 if test "$no_cache" != 1; then
6715 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6716 fi
6717
6718 if test "$wxUSE_SCROLLBAR" = yes; then
6719 echo "$ac_t""yes" 1>&6
6720 else
6721 echo "$ac_t""no" 1>&6
6722 fi
6723
6724
6725 enablestring=
6726 echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
6727echo "configure:6728: checking for --${enablestring:-enable}-slider" >&5
6728 no_cache=0
6729 # Check whether --enable-slider or --disable-slider was given.
6730if test "${enable_slider+set}" = set; then
6731 enableval="$enable_slider"
6732
6733 if test "$enableval" = yes; then
6734 ac_cv_use_slider='wxUSE_SLIDER=yes'
6735 else
6736 ac_cv_use_slider='wxUSE_SLIDER=no'
6737 fi
6738
6739else
6740
6741 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6742 if test "x$LINE" != x ; then
6743 eval "DEFAULT_$LINE"
6744 else
6745 no_cache=1
6746 fi
6747
6748 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6749
6750fi
6751
6752
6753 eval "$ac_cv_use_slider"
6754 if test "$no_cache" != 1; then
6755 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6756 fi
6757
6758 if test "$wxUSE_SLIDER" = yes; then
6759 echo "$ac_t""yes" 1>&6
6760 else
6761 echo "$ac_t""no" 1>&6
6762 fi
6763
6764
6765 enablestring=
6766 echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
6767echo "configure:6768: checking for --${enablestring:-enable}-spinbtn" >&5
6768 no_cache=0
6769 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6770if test "${enable_spinbtn+set}" = set; then
6771 enableval="$enable_spinbtn"
6772
6773 if test "$enableval" = yes; then
6774 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6775 else
6776 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6777 fi
6778
6779else
6780
6781 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6782 if test "x$LINE" != x ; then
6783 eval "DEFAULT_$LINE"
6784 else
6785 no_cache=1
6786 fi
6787
6788 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6789
6790fi
6791
6792
6793 eval "$ac_cv_use_spinbtn"
6794 if test "$no_cache" != 1; then
6795 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6796 fi
6797
6798 if test "$wxUSE_SPINBTN" = yes; then
6799 echo "$ac_t""yes" 1>&6
6800 else
6801 echo "$ac_t""no" 1>&6
6802 fi
6803
6804
6805 enablestring=
6806 echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
6807echo "configure:6808: checking for --${enablestring:-enable}-spinctrl" >&5
6808 no_cache=0
6809 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6810if test "${enable_spinctrl+set}" = set; then
6811 enableval="$enable_spinctrl"
6812
6813 if test "$enableval" = yes; then
6814 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6815 else
6816 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6817 fi
6818
6819else
6820
6821 LINE=`grep "wxUSE_SPINCTRL" ${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_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6829
6830fi
6831
6832
6833 eval "$ac_cv_use_spinctrl"
6834 if test "$no_cache" != 1; then
6835 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6836 fi
6837
6838 if test "$wxUSE_SPINCTRL" = yes; then
6839 echo "$ac_t""yes" 1>&6
6840 else
6841 echo "$ac_t""no" 1>&6
6842 fi
6843
6844
6845 enablestring=
6846 echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
6847echo "configure:6848: checking for --${enablestring:-enable}-splitter" >&5
6848 no_cache=0
6849 # Check whether --enable-splitter or --disable-splitter was given.
6850if test "${enable_splitter+set}" = set; then
6851 enableval="$enable_splitter"
6852
6853 if test "$enableval" = yes; then
6854 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6855 else
6856 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6857 fi
6858
6859else
6860
6861 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6862 if test "x$LINE" != x ; then
6863 eval "DEFAULT_$LINE"
6864 else
6865 no_cache=1
6866 fi
6867
6868 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6869
6870fi
6871
6872
6873 eval "$ac_cv_use_splitter"
6874 if test "$no_cache" != 1; then
6875 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6876 fi
6877
6878 if test "$wxUSE_SPLITTER" = yes; then
6879 echo "$ac_t""yes" 1>&6
6880 else
6881 echo "$ac_t""no" 1>&6
6882 fi
6883
6884
6885 enablestring=
6886 echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
6887echo "configure:6888: checking for --${enablestring:-enable}-statbmp" >&5
6888 no_cache=0
6889 # Check whether --enable-statbmp or --disable-statbmp was given.
6890if test "${enable_statbmp+set}" = set; then
6891 enableval="$enable_statbmp"
6892
6893 if test "$enableval" = yes; then
6894 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6895 else
6896 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6897 fi
6898
6899else
6900
6901 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6902 if test "x$LINE" != x ; then
6903 eval "DEFAULT_$LINE"
6904 else
6905 no_cache=1
6906 fi
6907
6908 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6909
6910fi
6911
6912
6913 eval "$ac_cv_use_statbmp"
6914 if test "$no_cache" != 1; then
6915 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6916 fi
6917
6918 if test "$wxUSE_STATBMP" = yes; then
6919 echo "$ac_t""yes" 1>&6
6920 else
6921 echo "$ac_t""no" 1>&6
6922 fi
6923
6924
6925 enablestring=
6926 echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
6927echo "configure:6928: checking for --${enablestring:-enable}-statbox" >&5
6928 no_cache=0
6929 # Check whether --enable-statbox or --disable-statbox was given.
6930if test "${enable_statbox+set}" = set; then
6931 enableval="$enable_statbox"
6932
6933 if test "$enableval" = yes; then
6934 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6935 else
6936 ac_cv_use_statbox='wxUSE_STATBOX=no'
6937 fi
6938
6939else
6940
6941 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6942 if test "x$LINE" != x ; then
6943 eval "DEFAULT_$LINE"
6944 else
6945 no_cache=1
6946 fi
6947
6948 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6949
6950fi
6951
6952
6953 eval "$ac_cv_use_statbox"
6954 if test "$no_cache" != 1; then
6955 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6956 fi
6957
6958 if test "$wxUSE_STATBOX" = yes; then
6959 echo "$ac_t""yes" 1>&6
6960 else
6961 echo "$ac_t""no" 1>&6
6962 fi
6963
6964
6965 enablestring=
6966 echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
6967echo "configure:6968: checking for --${enablestring:-enable}-statline" >&5
6968 no_cache=0
6969 # Check whether --enable-statline or --disable-statline was given.
6970if test "${enable_statline+set}" = set; then
6971 enableval="$enable_statline"
6972
6973 if test "$enableval" = yes; then
6974 ac_cv_use_statline='wxUSE_STATLINE=yes'
6975 else
6976 ac_cv_use_statline='wxUSE_STATLINE=no'
6977 fi
6978
6979else
6980
6981 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6982 if test "x$LINE" != x ; then
6983 eval "DEFAULT_$LINE"
6984 else
6985 no_cache=1
6986 fi
6987
6988 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6989
6990fi
6991
6992
6993 eval "$ac_cv_use_statline"
6994 if test "$no_cache" != 1; then
6995 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6996 fi
6997
6998 if test "$wxUSE_STATLINE" = yes; then
6999 echo "$ac_t""yes" 1>&6
7000 else
7001 echo "$ac_t""no" 1>&6
7002 fi
7003
7004
7005 enablestring=
7006 echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
7007echo "configure:7008: checking for --${enablestring:-enable}-stattext" >&5
7008 no_cache=0
7009 # Check whether --enable-stattext or --disable-stattext was given.
7010if test "${enable_stattext+set}" = set; then
7011 enableval="$enable_stattext"
7012
7013 if test "$enableval" = yes; then
7014 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7015 else
7016 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7017 fi
7018
7019else
7020
7021 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7022 if test "x$LINE" != x ; then
7023 eval "DEFAULT_$LINE"
7024 else
7025 no_cache=1
7026 fi
7027
7028 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
7029
7030fi
7031
7032
7033 eval "$ac_cv_use_stattext"
7034 if test "$no_cache" != 1; then
7035 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7036 fi
7037
7038 if test "$wxUSE_STATTEXT" = yes; then
7039 echo "$ac_t""yes" 1>&6
7040 else
7041 echo "$ac_t""no" 1>&6
7042 fi
7043
7044
7045 enablestring=
7046 echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
7047echo "configure:7048: checking for --${enablestring:-enable}-statusbar" >&5
7048 no_cache=0
7049 # Check whether --enable-statusbar or --disable-statusbar was given.
7050if test "${enable_statusbar+set}" = set; then
7051 enableval="$enable_statusbar"
7052
7053 if test "$enableval" = yes; then
7054 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7055 else
7056 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7057 fi
7058
7059else
7060
7061 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7062 if test "x$LINE" != x ; then
7063 eval "DEFAULT_$LINE"
7064 else
7065 no_cache=1
7066 fi
7067
7068 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
7069
7070fi
7071
7072
7073 eval "$ac_cv_use_statusbar"
7074 if test "$no_cache" != 1; then
7075 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7076 fi
7077
7078 if test "$wxUSE_STATUSBAR" = yes; then
7079 echo "$ac_t""yes" 1>&6
7080 else
7081 echo "$ac_t""no" 1>&6
7082 fi
7083
7084
7085 enablestring=
7086 echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
7087echo "configure:7088: checking for --${enablestring:-enable}-tabdialog" >&5
7088 no_cache=0
7089 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7090if test "${enable_tabdialog+set}" = set; then
7091 enableval="$enable_tabdialog"
7092
7093 if test "$enableval" = yes; then
7094 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7095 else
7096 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7097 fi
7098
7099else
7100
7101 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7102 if test "x$LINE" != x ; then
7103 eval "DEFAULT_$LINE"
7104 else
7105 no_cache=1
7106 fi
7107
7108 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
7109
7110fi
7111
7112
7113 eval "$ac_cv_use_tabdialog"
7114 if test "$no_cache" != 1; then
7115 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7116 fi
7117
7118 if test "$wxUSE_TABDIALOG" = yes; then
7119 echo "$ac_t""yes" 1>&6
7120 else
7121 echo "$ac_t""no" 1>&6
7122 fi
7123
7124
7125 enablestring=
7126 echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
7127echo "configure:7128: checking for --${enablestring:-enable}-textctrl" >&5
7128 no_cache=0
7129 # Check whether --enable-textctrl or --disable-textctrl was given.
7130if test "${enable_textctrl+set}" = set; then
7131 enableval="$enable_textctrl"
7132
7133 if test "$enableval" = yes; then
7134 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7135 else
7136 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7137 fi
7138
7139else
7140
7141 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7142 if test "x$LINE" != x ; then
7143 eval "DEFAULT_$LINE"
7144 else
7145 no_cache=1
7146 fi
7147
7148 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
7149
7150fi
7151
7152
7153 eval "$ac_cv_use_textctrl"
7154 if test "$no_cache" != 1; then
7155 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7156 fi
7157
7158 if test "$wxUSE_TEXTCTRL" = yes; then
7159 echo "$ac_t""yes" 1>&6
7160 else
7161 echo "$ac_t""no" 1>&6
7162 fi
7163
7164
7165 enablestring=
7166 echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
7167echo "configure:7168: checking for --${enablestring:-enable}-togglebtn" >&5
7168 no_cache=0
7169 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7170if test "${enable_togglebtn+set}" = set; then
7171 enableval="$enable_togglebtn"
7172
7173 if test "$enableval" = yes; then
7174 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7175 else
7176 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7177 fi
7178
7179else
7180
7181 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7182 if test "x$LINE" != x ; then
7183 eval "DEFAULT_$LINE"
7184 else
7185 no_cache=1
7186 fi
7187
7188 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7189
7190fi
7191
7192
7193 eval "$ac_cv_use_togglebtn"
7194 if test "$no_cache" != 1; then
7195 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7196 fi
7197
7198 if test "$wxUSE_TOGGLEBTN" = yes; then
7199 echo "$ac_t""yes" 1>&6
7200 else
7201 echo "$ac_t""no" 1>&6
7202 fi
7203
7204
7205 enablestring=
7206 echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
7207echo "configure:7208: checking for --${enablestring:-enable}-toolbar" >&5
7208 no_cache=0
7209 # Check whether --enable-toolbar or --disable-toolbar was given.
7210if test "${enable_toolbar+set}" = set; then
7211 enableval="$enable_toolbar"
7212
7213 if test "$enableval" = yes; then
7214 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7215 else
7216 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7217 fi
7218
7219else
7220
7221 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7222 if test "x$LINE" != x ; then
7223 eval "DEFAULT_$LINE"
7224 else
7225 no_cache=1
7226 fi
7227
7228 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7229
7230fi
7231
7232
7233 eval "$ac_cv_use_toolbar"
7234 if test "$no_cache" != 1; then
7235 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7236 fi
7237
7238 if test "$wxUSE_TOOLBAR" = yes; then
7239 echo "$ac_t""yes" 1>&6
7240 else
7241 echo "$ac_t""no" 1>&6
7242 fi
7243
7244
7245 enablestring=
7246 echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
7247echo "configure:7248: checking for --${enablestring:-enable}-tbarnative" >&5
7248 no_cache=0
7249 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7250if test "${enable_tbarnative+set}" = set; then
7251 enableval="$enable_tbarnative"
7252
7253 if test "$enableval" = yes; then
7254 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7255 else
7256 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7257 fi
7258
7259else
7260
7261 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7262 if test "x$LINE" != x ; then
7263 eval "DEFAULT_$LINE"
7264 else
7265 no_cache=1
7266 fi
7267
7268 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7269
7270fi
7271
7272
7273 eval "$ac_cv_use_tbarnative"
7274 if test "$no_cache" != 1; then
7275 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7276 fi
7277
7278 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7279 echo "$ac_t""yes" 1>&6
7280 else
7281 echo "$ac_t""no" 1>&6
7282 fi
7283
7284
7285 enablestring=
7286 echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
7287echo "configure:7288: checking for --${enablestring:-enable}-tbarsmpl" >&5
7288 no_cache=0
7289 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7290if test "${enable_tbarsmpl+set}" = set; then
7291 enableval="$enable_tbarsmpl"
7292
7293 if test "$enableval" = yes; then
7294 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7295 else
7296 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7297 fi
7298
7299else
7300
7301 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7302 if test "x$LINE" != x ; then
7303 eval "DEFAULT_$LINE"
7304 else
7305 no_cache=1
7306 fi
7307
7308 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7309
7310fi
7311
7312
7313 eval "$ac_cv_use_tbarsmpl"
7314 if test "$no_cache" != 1; then
7315 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7316 fi
7317
7318 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7319 echo "$ac_t""yes" 1>&6
7320 else
7321 echo "$ac_t""no" 1>&6
7322 fi
7323
7324
7325 enablestring=
7326 echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
7327echo "configure:7328: checking for --${enablestring:-enable}-treectrl" >&5
7328 no_cache=0
7329 # Check whether --enable-treectrl or --disable-treectrl was given.
7330if test "${enable_treectrl+set}" = set; then
7331 enableval="$enable_treectrl"
7332
7333 if test "$enableval" = yes; then
7334 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7335 else
7336 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7337 fi
7338
7339else
7340
7341 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7342 if test "x$LINE" != x ; then
7343 eval "DEFAULT_$LINE"
7344 else
7345 no_cache=1
7346 fi
7347
7348 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7349
7350fi
7351
7352
7353 eval "$ac_cv_use_treectrl"
7354 if test "$no_cache" != 1; then
7355 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7356 fi
7357
7358 if test "$wxUSE_TREECTRL" = yes; then
7359 echo "$ac_t""yes" 1>&6
7360 else
7361 echo "$ac_t""no" 1>&6
7362 fi
7363
7364
7365 enablestring=
7366 echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
7367echo "configure:7368: checking for --${enablestring:-enable}-tipwindow" >&5
7368 no_cache=0
7369 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7370if test "${enable_tipwindow+set}" = set; then
7371 enableval="$enable_tipwindow"
7372
7373 if test "$enableval" = yes; then
7374 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7375 else
7376 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7377 fi
7378
7379else
7380
7381 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7382 if test "x$LINE" != x ; then
7383 eval "DEFAULT_$LINE"
7384 else
7385 no_cache=1
7386 fi
7387
7388 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7389
7390fi
7391
7392
7393 eval "$ac_cv_use_tipwindow"
7394 if test "$no_cache" != 1; then
7395 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7396 fi
7397
7398 if test "$wxUSE_TIPWINDOW" = yes; then
7399 echo "$ac_t""yes" 1>&6
7400 else
7401 echo "$ac_t""no" 1>&6
7402 fi
7403
7404
7405 enablestring=
7406 echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
7407echo "configure:7408: checking for --${enablestring:-enable}-popupwin" >&5
7408 no_cache=0
7409 # Check whether --enable-popupwin or --disable-popupwin was given.
7410if test "${enable_popupwin+set}" = set; then
7411 enableval="$enable_popupwin"
7412
7413 if test "$enableval" = yes; then
7414 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7415 else
7416 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7417 fi
7418
7419else
7420
7421 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7422 if test "x$LINE" != x ; then
7423 eval "DEFAULT_$LINE"
7424 else
7425 no_cache=1
7426 fi
7427
7428 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7429
7430fi
7431
7432
7433 eval "$ac_cv_use_popupwin"
7434 if test "$no_cache" != 1; then
7435 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7436 fi
7437
7438 if test "$wxUSE_POPUPWIN" = yes; then
7439 echo "$ac_t""yes" 1>&6
7440 else
7441 echo "$ac_t""no" 1>&6
7442 fi
7443
7444
7445
7446
7447 enablestring=
7448 echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
7449echo "configure:7450: checking for --${enablestring:-enable}-commondlg" >&5
7450 no_cache=0
7451 # Check whether --enable-commondlg or --disable-commondlg was given.
7452if test "${enable_commondlg+set}" = set; then
7453 enableval="$enable_commondlg"
7454
7455 if test "$enableval" = yes; then
7456 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7457 else
7458 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7459 fi
7460
7461else
7462
7463 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7464 if test "x$LINE" != x ; then
7465 eval "DEFAULT_$LINE"
7466 else
7467 no_cache=1
7468 fi
7469
7470 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7471
7472fi
7473
7474
7475 eval "$ac_cv_use_commondlg"
7476 if test "$no_cache" != 1; then
7477 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7478 fi
7479
7480 if test "$wxUSE_COMMONDLGS" = yes; then
7481 echo "$ac_t""yes" 1>&6
7482 else
7483 echo "$ac_t""no" 1>&6
7484 fi
7485
7486
7487 enablestring=
7488 echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
7489echo "configure:7490: checking for --${enablestring:-enable}-choicedlg" >&5
7490 no_cache=0
7491 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7492if test "${enable_choicedlg+set}" = set; then
7493 enableval="$enable_choicedlg"
7494
7495 if test "$enableval" = yes; then
7496 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7497 else
7498 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7499 fi
7500
7501else
7502
7503 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7504 if test "x$LINE" != x ; then
7505 eval "DEFAULT_$LINE"
7506 else
7507 no_cache=1
7508 fi
7509
7510 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7511
7512fi
7513
7514
7515 eval "$ac_cv_use_choicedlg"
7516 if test "$no_cache" != 1; then
7517 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7518 fi
7519
7520 if test "$wxUSE_CHOICEDLG" = yes; then
7521 echo "$ac_t""yes" 1>&6
7522 else
7523 echo "$ac_t""no" 1>&6
7524 fi
7525
7526
7527 enablestring=
7528 echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
7529echo "configure:7530: checking for --${enablestring:-enable}-coldlg" >&5
7530 no_cache=0
7531 # Check whether --enable-coldlg or --disable-coldlg was given.
7532if test "${enable_coldlg+set}" = set; then
7533 enableval="$enable_coldlg"
7534
7535 if test "$enableval" = yes; then
7536 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7537 else
7538 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7539 fi
7540
7541else
7542
7543 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7544 if test "x$LINE" != x ; then
7545 eval "DEFAULT_$LINE"
7546 else
7547 no_cache=1
7548 fi
7549
7550 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7551
7552fi
7553
7554
7555 eval "$ac_cv_use_coldlg"
7556 if test "$no_cache" != 1; then
7557 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7558 fi
7559
7560 if test "$wxUSE_COLOURDLG" = yes; then
7561 echo "$ac_t""yes" 1>&6
7562 else
7563 echo "$ac_t""no" 1>&6
7564 fi
7565
7566
7567 enablestring=
7568 echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
7569echo "configure:7570: checking for --${enablestring:-enable}-filedlg" >&5
7570 no_cache=0
7571 # Check whether --enable-filedlg or --disable-filedlg was given.
7572if test "${enable_filedlg+set}" = set; then
7573 enableval="$enable_filedlg"
7574
7575 if test "$enableval" = yes; then
7576 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7577 else
7578 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7579 fi
7580
7581else
7582
7583 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7584 if test "x$LINE" != x ; then
7585 eval "DEFAULT_$LINE"
7586 else
7587 no_cache=1
7588 fi
7589
7590 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7591
7592fi
7593
7594
7595 eval "$ac_cv_use_filedlg"
7596 if test "$no_cache" != 1; then
7597 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7598 fi
7599
7600 if test "$wxUSE_FILEDLG" = yes; then
7601 echo "$ac_t""yes" 1>&6
7602 else
7603 echo "$ac_t""no" 1>&6
7604 fi
7605
7606
7607 enablestring=
7608 echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
7609echo "configure:7610: checking for --${enablestring:-enable}-finddlg" >&5
7610 no_cache=0
7611 # Check whether --enable-finddlg or --disable-finddlg was given.
7612if test "${enable_finddlg+set}" = set; then
7613 enableval="$enable_finddlg"
7614
7615 if test "$enableval" = yes; then
7616 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7617 else
7618 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7619 fi
7620
7621else
7622
7623 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7624 if test "x$LINE" != x ; then
7625 eval "DEFAULT_$LINE"
7626 else
7627 no_cache=1
7628 fi
7629
7630 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7631
7632fi
7633
7634
7635 eval "$ac_cv_use_finddlg"
7636 if test "$no_cache" != 1; then
7637 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7638 fi
7639
7640 if test "$wxUSE_FINDREPLDLG" = yes; then
7641 echo "$ac_t""yes" 1>&6
7642 else
7643 echo "$ac_t""no" 1>&6
7644 fi
7645
7646
7647 enablestring=
7648 echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
7649echo "configure:7650: checking for --${enablestring:-enable}-fontdlg" >&5
7650 no_cache=0
7651 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7652if test "${enable_fontdlg+set}" = set; then
7653 enableval="$enable_fontdlg"
7654
7655 if test "$enableval" = yes; then
7656 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7657 else
7658 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7659 fi
7660
7661else
7662
7663 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7664 if test "x$LINE" != x ; then
7665 eval "DEFAULT_$LINE"
7666 else
7667 no_cache=1
7668 fi
7669
7670 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7671
7672fi
7673
7674
7675 eval "$ac_cv_use_fontdlg"
7676 if test "$no_cache" != 1; then
7677 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7678 fi
7679
7680 if test "$wxUSE_FONTDLG" = yes; then
7681 echo "$ac_t""yes" 1>&6
7682 else
7683 echo "$ac_t""no" 1>&6
7684 fi
7685
7686
7687 enablestring=
7688 echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
7689echo "configure:7690: checking for --${enablestring:-enable}-dirdlg" >&5
7690 no_cache=0
7691 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7692if test "${enable_dirdlg+set}" = set; then
7693 enableval="$enable_dirdlg"
7694
7695 if test "$enableval" = yes; then
7696 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7697 else
7698 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7699 fi
7700
7701else
7702
7703 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7704 if test "x$LINE" != x ; then
7705 eval "DEFAULT_$LINE"
7706 else
7707 no_cache=1
7708 fi
7709
7710 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7711
7712fi
7713
7714
7715 eval "$ac_cv_use_dirdlg"
7716 if test "$no_cache" != 1; then
7717 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7718 fi
7719
7720 if test "$wxUSE_DIRDLG" = yes; then
7721 echo "$ac_t""yes" 1>&6
7722 else
7723 echo "$ac_t""no" 1>&6
7724 fi
7725
7726
7727 enablestring=
7728 echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
7729echo "configure:7730: checking for --${enablestring:-enable}-msgdlg" >&5
7730 no_cache=0
7731 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7732if test "${enable_msgdlg+set}" = set; then
7733 enableval="$enable_msgdlg"
7734
7735 if test "$enableval" = yes; then
7736 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7737 else
7738 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7739 fi
7740
7741else
7742
7743 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7744 if test "x$LINE" != x ; then
7745 eval "DEFAULT_$LINE"
7746 else
7747 no_cache=1
7748 fi
7749
7750 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7751
7752fi
7753
7754
7755 eval "$ac_cv_use_msgdlg"
7756 if test "$no_cache" != 1; then
7757 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7758 fi
7759
7760 if test "$wxUSE_MSGDLG" = yes; then
7761 echo "$ac_t""yes" 1>&6
7762 else
7763 echo "$ac_t""no" 1>&6
7764 fi
7765
7766
7767 enablestring=
7768 echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
7769echo "configure:7770: checking for --${enablestring:-enable}-numberdlg" >&5
7770 no_cache=0
7771 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7772if test "${enable_numberdlg+set}" = set; then
7773 enableval="$enable_numberdlg"
7774
7775 if test "$enableval" = yes; then
7776 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7777 else
7778 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7779 fi
7780
7781else
7782
7783 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7784 if test "x$LINE" != x ; then
7785 eval "DEFAULT_$LINE"
7786 else
7787 no_cache=1
7788 fi
7789
7790 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7791
7792fi
7793
7794
7795 eval "$ac_cv_use_numberdlg"
7796 if test "$no_cache" != 1; then
7797 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7798 fi
7799
7800 if test "$wxUSE_NUMBERDLG" = yes; then
7801 echo "$ac_t""yes" 1>&6
7802 else
7803 echo "$ac_t""no" 1>&6
7804 fi
7805
7806
7807 enablestring=
7808 echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
7809echo "configure:7810: checking for --${enablestring:-enable}-splash" >&5
7810 no_cache=0
7811 # Check whether --enable-splash or --disable-splash was given.
7812if test "${enable_splash+set}" = set; then
7813 enableval="$enable_splash"
7814
7815 if test "$enableval" = yes; then
7816 ac_cv_use_splash='wxUSE_SPLASH=yes'
7817 else
7818 ac_cv_use_splash='wxUSE_SPLASH=no'
7819 fi
7820
7821else
7822
7823 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7824 if test "x$LINE" != x ; then
7825 eval "DEFAULT_$LINE"
7826 else
7827 no_cache=1
7828 fi
7829
7830 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7831
7832fi
7833
7834
7835 eval "$ac_cv_use_splash"
7836 if test "$no_cache" != 1; then
7837 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7838 fi
7839
7840 if test "$wxUSE_SPLASH" = yes; then
7841 echo "$ac_t""yes" 1>&6
7842 else
7843 echo "$ac_t""no" 1>&6
7844 fi
7845
7846
7847 enablestring=
7848 echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
7849echo "configure:7850: checking for --${enablestring:-enable}-textdlg" >&5
7850 no_cache=0
7851 # Check whether --enable-textdlg or --disable-textdlg was given.
7852if test "${enable_textdlg+set}" = set; then
7853 enableval="$enable_textdlg"
7854
7855 if test "$enableval" = yes; then
7856 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7857 else
7858 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7859 fi
7860
7861else
7862
7863 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7864 if test "x$LINE" != x ; then
7865 eval "DEFAULT_$LINE"
7866 else
7867 no_cache=1
7868 fi
7869
7870 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7871
7872fi
7873
7874
7875 eval "$ac_cv_use_textdlg"
7876 if test "$no_cache" != 1; then
7877 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7878 fi
7879
7880 if test "$wxUSE_TEXTDLG" = yes; then
7881 echo "$ac_t""yes" 1>&6
7882 else
7883 echo "$ac_t""no" 1>&6
7884 fi
7885
7886
7887 enablestring=
7888 echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
7889echo "configure:7890: checking for --${enablestring:-enable}-tipdlg" >&5
7890 no_cache=0
7891 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7892if test "${enable_tipdlg+set}" = set; then
7893 enableval="$enable_tipdlg"
7894
7895 if test "$enableval" = yes; then
7896 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7897 else
7898 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7899 fi
7900
7901else
7902
7903 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7904 if test "x$LINE" != x ; then
7905 eval "DEFAULT_$LINE"
7906 else
7907 no_cache=1
7908 fi
7909
7910 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7911
7912fi
7913
7914
7915 eval "$ac_cv_use_tipdlg"
7916 if test "$no_cache" != 1; then
7917 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7918 fi
7919
7920 if test "$wxUSE_STARTUP_TIPS" = yes; then
7921 echo "$ac_t""yes" 1>&6
7922 else
7923 echo "$ac_t""no" 1>&6
7924 fi
7925
7926
7927 enablestring=
7928 echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
7929echo "configure:7930: checking for --${enablestring:-enable}-progressdlg" >&5
7930 no_cache=0
7931 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7932if test "${enable_progressdlg+set}" = set; then
7933 enableval="$enable_progressdlg"
7934
7935 if test "$enableval" = yes; then
7936 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7937 else
7938 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7939 fi
7940
7941else
7942
7943 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7944 if test "x$LINE" != x ; then
7945 eval "DEFAULT_$LINE"
7946 else
7947 no_cache=1
7948 fi
7949
7950 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7951
7952fi
7953
7954
7955 eval "$ac_cv_use_progressdlg"
7956 if test "$no_cache" != 1; then
7957 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7958 fi
7959
7960 if test "$wxUSE_PROGRESSDLG" = yes; then
7961 echo "$ac_t""yes" 1>&6
7962 else
7963 echo "$ac_t""no" 1>&6
7964 fi
7965
7966
7967 enablestring=
7968 echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
7969echo "configure:7970: checking for --${enablestring:-enable}-wizarddlg" >&5
7970 no_cache=0
7971 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7972if test "${enable_wizarddlg+set}" = set; then
7973 enableval="$enable_wizarddlg"
7974
7975 if test "$enableval" = yes; then
7976 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7977 else
7978 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7979 fi
7980
7981else
7982
7983 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7984 if test "x$LINE" != x ; then
7985 eval "DEFAULT_$LINE"
7986 else
7987 no_cache=1
7988 fi
7989
7990 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7991
7992fi
7993
7994
7995 eval "$ac_cv_use_wizarddlg"
7996 if test "$no_cache" != 1; then
7997 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7998 fi
7999
8000 if test "$wxUSE_WIZARDDLG" = yes; then
8001 echo "$ac_t""yes" 1>&6
8002 else
8003 echo "$ac_t""no" 1>&6
8004 fi
8005
8006
8007
8008
8009 enablestring=
8010 echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
8011echo "configure:8012: checking for --${enablestring:-enable}-menus" >&5
8012 no_cache=0
8013 # Check whether --enable-menus or --disable-menus was given.
8014if test "${enable_menus+set}" = set; then
8015 enableval="$enable_menus"
8016
8017 if test "$enableval" = yes; then
8018 ac_cv_use_menus='wxUSE_MENUS=yes'
8019 else
8020 ac_cv_use_menus='wxUSE_MENUS=no'
8021 fi
8022
8023else
8024
8025 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8026 if test "x$LINE" != x ; then
8027 eval "DEFAULT_$LINE"
8028 else
8029 no_cache=1
8030 fi
8031
8032 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
8033
8034fi
8035
8036
8037 eval "$ac_cv_use_menus"
8038 if test "$no_cache" != 1; then
8039 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8040 fi
8041
8042 if test "$wxUSE_MENUS" = yes; then
8043 echo "$ac_t""yes" 1>&6
8044 else
8045 echo "$ac_t""no" 1>&6
8046 fi
8047
8048
8049 enablestring=
8050 echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
8051echo "configure:8052: checking for --${enablestring:-enable}-miniframe" >&5
8052 no_cache=0
8053 # Check whether --enable-miniframe or --disable-miniframe was given.
8054if test "${enable_miniframe+set}" = set; then
8055 enableval="$enable_miniframe"
8056
8057 if test "$enableval" = yes; then
8058 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8059 else
8060 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8061 fi
8062
8063else
8064
8065 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8066 if test "x$LINE" != x ; then
8067 eval "DEFAULT_$LINE"
8068 else
8069 no_cache=1
8070 fi
8071
8072 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
8073
8074fi
8075
8076
8077 eval "$ac_cv_use_miniframe"
8078 if test "$no_cache" != 1; then
8079 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8080 fi
8081
8082 if test "$wxUSE_MINIFRAME" = yes; then
8083 echo "$ac_t""yes" 1>&6
8084 else
8085 echo "$ac_t""no" 1>&6
8086 fi
8087
8088
8089 enablestring=
8090 echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
8091echo "configure:8092: checking for --${enablestring:-enable}-tooltips" >&5
8092 no_cache=0
8093 # Check whether --enable-tooltips or --disable-tooltips was given.
8094if test "${enable_tooltips+set}" = set; then
8095 enableval="$enable_tooltips"
8096
8097 if test "$enableval" = yes; then
8098 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8099 else
8100 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8101 fi
8102
8103else
8104
8105 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8106 if test "x$LINE" != x ; then
8107 eval "DEFAULT_$LINE"
8108 else
8109 no_cache=1
8110 fi
8111
8112 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
8113
8114fi
8115
8116
8117 eval "$ac_cv_use_tooltips"
8118 if test "$no_cache" != 1; then
8119 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8120 fi
8121
8122 if test "$wxUSE_TOOLTIPS" = yes; then
8123 echo "$ac_t""yes" 1>&6
8124 else
8125 echo "$ac_t""no" 1>&6
8126 fi
8127
8128
8129 enablestring=
8130 echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
8131echo "configure:8132: checking for --${enablestring:-enable}-splines" >&5
8132 no_cache=0
8133 # Check whether --enable-splines or --disable-splines was given.
8134if test "${enable_splines+set}" = set; then
8135 enableval="$enable_splines"
8136
8137 if test "$enableval" = yes; then
8138 ac_cv_use_splines='wxUSE_SPLINES=yes'
8139 else
8140 ac_cv_use_splines='wxUSE_SPLINES=no'
8141 fi
8142
8143else
8144
8145 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8146 if test "x$LINE" != x ; then
8147 eval "DEFAULT_$LINE"
8148 else
8149 no_cache=1
8150 fi
8151
8152 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
8153
8154fi
8155
8156
8157 eval "$ac_cv_use_splines"
8158 if test "$no_cache" != 1; then
8159 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8160 fi
8161
8162 if test "$wxUSE_SPLINES" = yes; then
8163 echo "$ac_t""yes" 1>&6
8164 else
8165 echo "$ac_t""no" 1>&6
8166 fi
8167
8168
8169 enablestring=
8170 echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
8171echo "configure:8172: checking for --${enablestring:-enable}-validators" >&5
8172 no_cache=0
8173 # Check whether --enable-validators or --disable-validators was given.
8174if test "${enable_validators+set}" = set; then
8175 enableval="$enable_validators"
8176
8177 if test "$enableval" = yes; then
8178 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8179 else
8180 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8181 fi
8182
8183else
8184
8185 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8186 if test "x$LINE" != x ; then
8187 eval "DEFAULT_$LINE"
8188 else
8189 no_cache=1
8190 fi
8191
8192 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
8193
8194fi
8195
8196
8197 eval "$ac_cv_use_validators"
8198 if test "$no_cache" != 1; then
8199 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8200 fi
8201
8202 if test "$wxUSE_VALIDATORS" = yes; then
8203 echo "$ac_t""yes" 1>&6
8204 else
8205 echo "$ac_t""no" 1>&6
8206 fi
8207
8208
8209 enablestring=
8210 echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
8211echo "configure:8212: checking for --${enablestring:-enable}-busyinfo" >&5
8212 no_cache=0
8213 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8214if test "${enable_busyinfo+set}" = set; then
8215 enableval="$enable_busyinfo"
8216
8217 if test "$enableval" = yes; then
8218 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8219 else
8220 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8221 fi
8222
8223else
8224
8225 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8226 if test "x$LINE" != x ; then
8227 eval "DEFAULT_$LINE"
8228 else
8229 no_cache=1
8230 fi
8231
8232 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8233
8234fi
8235
8236
8237 eval "$ac_cv_use_busyinfo"
8238 if test "$no_cache" != 1; then
8239 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8240 fi
8241
8242 if test "$wxUSE_BUSYINFO" = yes; then
8243 echo "$ac_t""yes" 1>&6
8244 else
8245 echo "$ac_t""no" 1>&6
8246 fi
8247
8248
8249 enablestring=
8250 echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
8251echo "configure:8252: checking for --${enablestring:-enable}-joystick" >&5
8252 no_cache=0
8253 # Check whether --enable-joystick or --disable-joystick was given.
8254if test "${enable_joystick+set}" = set; then
8255 enableval="$enable_joystick"
8256
8257 if test "$enableval" = yes; then
8258 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8259 else
8260 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8261 fi
8262
8263else
8264
8265 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8266 if test "x$LINE" != x ; then
8267 eval "DEFAULT_$LINE"
8268 else
8269 no_cache=1
8270 fi
8271
8272 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8273
8274fi
8275
8276
8277 eval "$ac_cv_use_joystick"
8278 if test "$no_cache" != 1; then
8279 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8280 fi
8281
8282 if test "$wxUSE_JOYSTICK" = yes; then
8283 echo "$ac_t""yes" 1>&6
8284 else
8285 echo "$ac_t""no" 1>&6
8286 fi
8287
8288
8289 enablestring=
8290 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
8291echo "configure:8292: checking for --${enablestring:-enable}-metafile" >&5
8292 no_cache=0
8293 # Check whether --enable-metafile or --disable-metafile was given.
8294if test "${enable_metafile+set}" = set; then
8295 enableval="$enable_metafile"
8296
8297 if test "$enableval" = yes; then
8298 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8299 else
8300 ac_cv_use_metafile='wxUSE_METAFILE=no'
8301 fi
8302
8303else
8304
8305 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8306 if test "x$LINE" != x ; then
8307 eval "DEFAULT_$LINE"
8308 else
8309 no_cache=1
8310 fi
8311
8312 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8313
8314fi
8315
8316
8317 eval "$ac_cv_use_metafile"
8318 if test "$no_cache" != 1; then
8319 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8320 fi
8321
8322 if test "$wxUSE_METAFILE" = yes; then
8323 echo "$ac_t""yes" 1>&6
8324 else
8325 echo "$ac_t""no" 1>&6
8326 fi
8327
8328
8329 enablestring=
8330 echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
8331echo "configure:8332: checking for --${enablestring:-enable}-dragimage" >&5
8332 no_cache=0
8333 # Check whether --enable-dragimage or --disable-dragimage was given.
8334if test "${enable_dragimage+set}" = set; then
8335 enableval="$enable_dragimage"
8336
8337 if test "$enableval" = yes; then
8338 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8339 else
8340 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8341 fi
8342
8343else
8344
8345 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8346 if test "x$LINE" != x ; then
8347 eval "DEFAULT_$LINE"
8348 else
8349 no_cache=1
8350 fi
8351
8352 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8353
8354fi
8355
8356
8357 eval "$ac_cv_use_dragimage"
8358 if test "$no_cache" != 1; then
8359 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8360 fi
8361
8362 if test "$wxUSE_DRAGIMAGE" = yes; then
8363 echo "$ac_t""yes" 1>&6
8364 else
8365 echo "$ac_t""no" 1>&6
8366 fi
8367
8368
8369
8370
8371 enablestring=
8372 echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
8373echo "configure:8374: checking for --${enablestring:-enable}-palette" >&5
8374 no_cache=0
8375 # Check whether --enable-palette or --disable-palette was given.
8376if test "${enable_palette+set}" = set; then
8377 enableval="$enable_palette"
8378
8379 if test "$enableval" = yes; then
8380 ac_cv_use_palette='wxUSE_PALETTE=yes'
8381 else
8382 ac_cv_use_palette='wxUSE_PALETTE=no'
8383 fi
8384
8385else
8386
8387 LINE=`grep "wxUSE_PALETTE" ${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_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8395
8396fi
8397
8398
8399 eval "$ac_cv_use_palette"
8400 if test "$no_cache" != 1; then
8401 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8402 fi
8403
8404 if test "$wxUSE_PALETTE" = yes; then
8405 echo "$ac_t""yes" 1>&6
8406 else
8407 echo "$ac_t""no" 1>&6
8408 fi
8409
8410
8411 enablestring=
8412 echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
8413echo "configure:8414: checking for --${enablestring:-enable}-image" >&5
8414 no_cache=0
8415 # Check whether --enable-image or --disable-image was given.
8416if test "${enable_image+set}" = set; then
8417 enableval="$enable_image"
8418
8419 if test "$enableval" = yes; then
8420 ac_cv_use_image='wxUSE_IMAGE=yes'
8421 else
8422 ac_cv_use_image='wxUSE_IMAGE=no'
8423 fi
8424
8425else
8426
8427 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8428 if test "x$LINE" != x ; then
8429 eval "DEFAULT_$LINE"
8430 else
8431 no_cache=1
8432 fi
8433
8434 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8435
8436fi
8437
8438
8439 eval "$ac_cv_use_image"
8440 if test "$no_cache" != 1; then
8441 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8442 fi
8443
8444 if test "$wxUSE_IMAGE" = yes; then
8445 echo "$ac_t""yes" 1>&6
8446 else
8447 echo "$ac_t""no" 1>&6
8448 fi
8449
8450
8451 enablestring=
8452 echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
8453echo "configure:8454: checking for --${enablestring:-enable}-gif" >&5
8454 no_cache=0
8455 # Check whether --enable-gif or --disable-gif was given.
8456if test "${enable_gif+set}" = set; then
8457 enableval="$enable_gif"
8458
8459 if test "$enableval" = yes; then
8460 ac_cv_use_gif='wxUSE_GIF=yes'
8461 else
8462 ac_cv_use_gif='wxUSE_GIF=no'
8463 fi
8464
8465else
8466
8467 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8468 if test "x$LINE" != x ; then
8469 eval "DEFAULT_$LINE"
8470 else
8471 no_cache=1
8472 fi
8473
8474 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8475
8476fi
8477
8478
8479 eval "$ac_cv_use_gif"
8480 if test "$no_cache" != 1; then
8481 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8482 fi
8483
8484 if test "$wxUSE_GIF" = yes; then
8485 echo "$ac_t""yes" 1>&6
8486 else
8487 echo "$ac_t""no" 1>&6
8488 fi
8489
8490
8491 enablestring=
8492 echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
8493echo "configure:8494: checking for --${enablestring:-enable}-pcx" >&5
8494 no_cache=0
8495 # Check whether --enable-pcx or --disable-pcx was given.
8496if test "${enable_pcx+set}" = set; then
8497 enableval="$enable_pcx"
8498
8499 if test "$enableval" = yes; then
8500 ac_cv_use_pcx='wxUSE_PCX=yes'
8501 else
8502 ac_cv_use_pcx='wxUSE_PCX=no'
8503 fi
8504
8505else
8506
8507 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8508 if test "x$LINE" != x ; then
8509 eval "DEFAULT_$LINE"
8510 else
8511 no_cache=1
8512 fi
8513
8514 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8515
8516fi
8517
8518
8519 eval "$ac_cv_use_pcx"
8520 if test "$no_cache" != 1; then
8521 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8522 fi
8523
8524 if test "$wxUSE_PCX" = yes; then
8525 echo "$ac_t""yes" 1>&6
8526 else
8527 echo "$ac_t""no" 1>&6
8528 fi
8529
8530
8531 enablestring=
8532 echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
8533echo "configure:8534: checking for --${enablestring:-enable}-iff" >&5
8534 no_cache=0
8535 # Check whether --enable-iff or --disable-iff was given.
8536if test "${enable_iff+set}" = set; then
8537 enableval="$enable_iff"
8538
8539 if test "$enableval" = yes; then
8540 ac_cv_use_iff='wxUSE_IFF=yes'
8541 else
8542 ac_cv_use_iff='wxUSE_IFF=no'
8543 fi
8544
8545else
8546
8547 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8548 if test "x$LINE" != x ; then
8549 eval "DEFAULT_$LINE"
8550 else
8551 no_cache=1
8552 fi
8553
8554 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8555
8556fi
8557
8558
8559 eval "$ac_cv_use_iff"
8560 if test "$no_cache" != 1; then
8561 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8562 fi
8563
8564 if test "$wxUSE_IFF" = yes; then
8565 echo "$ac_t""yes" 1>&6
8566 else
8567 echo "$ac_t""no" 1>&6
8568 fi
8569
8570
8571 enablestring=
8572 echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
8573echo "configure:8574: checking for --${enablestring:-enable}-pnm" >&5
8574 no_cache=0
8575 # Check whether --enable-pnm or --disable-pnm was given.
8576if test "${enable_pnm+set}" = set; then
8577 enableval="$enable_pnm"
8578
8579 if test "$enableval" = yes; then
8580 ac_cv_use_pnm='wxUSE_PNM=yes'
8581 else
8582 ac_cv_use_pnm='wxUSE_PNM=no'
8583 fi
8584
8585else
8586
8587 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8588 if test "x$LINE" != x ; then
8589 eval "DEFAULT_$LINE"
8590 else
8591 no_cache=1
8592 fi
8593
8594 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8595
8596fi
8597
8598
8599 eval "$ac_cv_use_pnm"
8600 if test "$no_cache" != 1; then
8601 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8602 fi
8603
8604 if test "$wxUSE_PNM" = yes; then
8605 echo "$ac_t""yes" 1>&6
8606 else
8607 echo "$ac_t""no" 1>&6
8608 fi
8609
8610
8611 enablestring=
8612 echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
8613echo "configure:8614: checking for --${enablestring:-enable}-xpm" >&5
8614 no_cache=0
8615 # Check whether --enable-xpm or --disable-xpm was given.
8616if test "${enable_xpm+set}" = set; then
8617 enableval="$enable_xpm"
8618
8619 if test "$enableval" = yes; then
8620 ac_cv_use_xpm='wxUSE_XPM=yes'
8621 else
8622 ac_cv_use_xpm='wxUSE_XPM=no'
8623 fi
8624
8625else
8626
8627 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8628 if test "x$LINE" != x ; then
8629 eval "DEFAULT_$LINE"
8630 else
8631 no_cache=1
8632 fi
8633
8634 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8635
8636fi
8637
8638
8639 eval "$ac_cv_use_xpm"
8640 if test "$no_cache" != 1; then
8641 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8642 fi
8643
8644 if test "$wxUSE_XPM" = yes; then
8645 echo "$ac_t""yes" 1>&6
8646 else
8647 echo "$ac_t""no" 1>&6
8648 fi
8649
8650
8651 enablestring=
8652 echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
8653echo "configure:8654: checking for --${enablestring:-enable}-ico_cur" >&5
8654 no_cache=0
8655 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8656if test "${enable_ico_cur+set}" = set; then
8657 enableval="$enable_ico_cur"
8658
8659 if test "$enableval" = yes; then
8660 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8661 else
8662 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8663 fi
8664
8665else
8666
8667 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8668 if test "x$LINE" != x ; then
8669 eval "DEFAULT_$LINE"
8670 else
8671 no_cache=1
8672 fi
8673
8674 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8675
8676fi
8677
8678
8679 eval "$ac_cv_use_ico_cur"
8680 if test "$no_cache" != 1; then
8681 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8682 fi
8683
8684 if test "$wxUSE_ICO_CUR" = yes; then
8685 echo "$ac_t""yes" 1>&6
8686 else
8687 echo "$ac_t""no" 1>&6
8688 fi
8689
8690
8691fi
8692
8693case "${host}" in
8694 *-pc-os2_emx | *-pc-os2-emx )
8695 PATH_IFS=';'
8696 LEX_STEM="lexyy"
8697 ;;
8698 *)
8699 PATH_IFS=':'
8700 LEX_STEM="lex.yy"
8701 ;;
8702esac
8703
8704
8705
8706 echo "saving argument cache $wx_arg_cache_file"
8707 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8708
8709
8710
8711echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8712echo "configure:8713: checking for toolkit" >&5
8713
8714if test "$wxUSE_GUI" = "yes"; then
8715
8716 if test "$USE_BEOS" = 1; then
8717 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8718 fi
8719
8720 if test "$TOOLKIT_GIVEN" = 1; then
8721 for toolkit in `echo $ALL_TOOLKITS`; do
8722 var=wxUSE_$toolkit
8723 eval "value=\$${var}"
8724 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8725 done
8726 else
8727 for toolkit in `echo $ALL_TOOLKITS`; do
8728 if test "$has_toolkit_in_cache" != 1; then
8729 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8730 else
8731 var=DEFAULT_wxUSE_$toolkit
8732 fi
8733 eval "wxUSE_$toolkit=\$${var}"
8734 done
8735 fi
8736
8737 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
8738 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
8739
8740 case "${host}" in
8741 *-pc-os2_emx | *-pc-os2-emx )
8742 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8743 esac
8744
8745 case "$NUM_TOOLKITS" in
8746 1)
8747 ;;
8748 0)
8749 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
8750 ;;
8751 *)
8752 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
8753 esac
8754
8755 for toolkit in `echo $ALL_TOOLKITS`; do
8756 var=wxUSE_$toolkit
8757 eval "value=\$${var}"
8758 if test "x$value" != x; then
8759 cache_var=CACHE_$toolkit
8760 eval "cache=\$${cache_var}"
8761 if test "$cache" = 1; then
8762 echo "$var=$value" >> ${wx_arg_cache_file}
8763 fi
8764 if test "$value" = 1; then
8765 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8766 echo "$ac_t""$toolkit_echo" 1>&6
8767 fi
8768 fi
8769 done
8770else
8771 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8772fi
8773
8774case "${host}" in
8775 *-pc-os2_emx | *-pc-os2-emx )
8776 LIBS="$LIBS -lstdcpp"
8777 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
8778 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
8779echo "configure:8780: checking for drand48 in -lcExt" >&5
8780ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
8781if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8782 echo $ac_n "(cached) $ac_c" 1>&6
8783else
8784 ac_save_LIBS="$LIBS"
8785LIBS="-lcExt $LIBS"
8786cat > conftest.$ac_ext <<EOF
8787#line 8788 "configure"
8788#include "confdefs.h"
8789/* Override any gcc2 internal prototype to avoid an error. */
8790/* We use char because int might match the return type of a gcc2
8791 builtin and then its argument prototype would still apply. */
8792char drand48();
8793
8794int main() {
8795drand48()
8796; return 0; }
8797EOF
8798if { (eval echo configure:8799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8799 rm -rf conftest*
8800 eval "ac_cv_lib_$ac_lib_var=yes"
8801else
8802 echo "configure: failed program was:" >&5
8803 cat conftest.$ac_ext >&5
8804 rm -rf conftest*
8805 eval "ac_cv_lib_$ac_lib_var=no"
8806fi
8807rm -f conftest*
8808LIBS="$ac_save_LIBS"
8809
8810fi
8811if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8812 echo "$ac_t""yes" 1>&6
8813 LIBS="$LIBS -lcExt"
8814else
8815 echo "$ac_t""no" 1>&6
8816fi
8817
8818 else
8819 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
8820 fi
8821 ;;
8822esac
8823
8824wants_win32=0
8825doesnt_want_win32=0
8826case "${host}" in
8827 *-*-cygwin*)
8828 if test "$wxUSE_MSW" = 1 ; then
8829 wants_win32=1
8830 else
8831 doesnt_want_win32=1
8832 fi
8833 ;;
8834 *-*-mingw*)
8835 wants_win32=1
8836 ;;
8837esac
8838
8839if test "$wants_win32" = 1 ; then
8840 USE_UNIX=0
8841 USE_WIN32=1
8842 cat >> confdefs.h <<\EOF
8843#define __WIN32__ 1
8844EOF
8845
8846 cat >> confdefs.h <<\EOF
8847#define __WIN95__ 1
8848EOF
8849
8850 cat >> confdefs.h <<\EOF
8851#define __WINDOWS__ 1
8852EOF
8853
8854 cat >> confdefs.h <<\EOF
8855#define __GNUWIN32__ 1
8856EOF
8857
8858 cat >> confdefs.h <<\EOF
8859#define STRICT 1
8860EOF
8861
8862 cat >> confdefs.h <<\EOF
8863#define WINVER 0x0400
8864EOF
8865
8866fi
8867if test "$doesnt_want_win32" = 1 ; then
8868 USE_UNIX=1
8869 USE_WIN32=0
8870fi
8871
8872if test "$USE_UNIX" = 1 ; then
8873 wxUSE_UNIX=yes
8874 cat >> confdefs.h <<\EOF
8875#define __UNIX__ 1
8876EOF
8877
8878fi
8879
8880
8881cat > confcache <<\EOF
8882# This file is a shell script that caches the results of configure
8883# tests run on this system so they can be shared between configure
8884# scripts and configure runs. It is not useful on other systems.
8885# If it contains results you don't want to keep, you may remove or edit it.
8886#
8887# By default, configure uses ./config.cache as the cache file,
8888# creating it if it does not exist already. You can give configure
8889# the --cache-file=FILE option to use a different cache file; that is
8890# what configure does when it calls configure scripts in
8891# subdirectories, so they share the cache.
8892# Giving --cache-file=/dev/null disables caching, for debugging configure.
8893# config.status only pays attention to the cache file if you give it the
8894# --recheck option to rerun configure.
8895#
8896EOF
8897# The following way of writing the cache mishandles newlines in values,
8898# but we know of no workaround that is simple, portable, and efficient.
8899# So, don't put newlines in cache variables' values.
8900# Ultrix sh set writes to stderr and can't be redirected directly,
8901# and sets the high bit in the cache file unless we assign to the vars.
8902(set) 2>&1 |
8903 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8904 *ac_space=\ *)
8905 # `set' does not quote correctly, so add quotes (double-quote substitution
8906 # turns \\\\ into \\, and sed turns \\ into \).
8907 sed -n \
8908 -e "s/'/'\\\\''/g" \
8909 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8910 ;;
8911 *)
8912 # `set' quotes correctly as required by POSIX, so do not add quotes.
8913 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8914 ;;
8915 esac >> confcache
8916if cmp -s $cache_file confcache; then
8917 :
8918else
8919 if test -w $cache_file; then
8920 echo "updating cache $cache_file"
8921 cat confcache > $cache_file
8922 else
8923 echo "not updating unwritable cache $cache_file"
8924 fi
8925fi
8926rm -f confcache
8927
8928
8929if test "$build" != "$host" ; then
8930 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8931 CC=$host_alias-gcc
8932 CXX=$host_alias-c++
8933 AR=$host_alias-ar
8934 RANLIB=$host_alias-ranlib
8935 DLLTOOL=$host_alias-dlltool
8936 RESCOMP=$host_alias-windres
8937 LD=$host_alias-ld
8938 NM=$host_alias-nm
8939 STRIP=$host_alias-strip
8940 else
8941 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8942 fi
8943fi
8944
8945CFLAGS=${CFLAGS:=}
8946# Extract the first word of "gcc", so it can be a program name with args.
8947set dummy gcc; ac_word=$2
8948echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8949echo "configure:8950: checking for $ac_word" >&5
8950if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8951 echo $ac_n "(cached) $ac_c" 1>&6
8952else
8953 if test -n "$CC"; then
8954 ac_cv_prog_CC="$CC" # Let the user override the test.
8955else
8956 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8957 ac_dummy="$PATH"
8958 for ac_dir in $ac_dummy; do
8959 test -z "$ac_dir" && ac_dir=.
8960 if test -f $ac_dir/$ac_word; then
8961 ac_cv_prog_CC="gcc"
8962 break
8963 fi
8964 done
8965 IFS="$ac_save_ifs"
8966fi
8967fi
8968CC="$ac_cv_prog_CC"
8969if test -n "$CC"; then
8970 echo "$ac_t""$CC" 1>&6
8971else
8972 echo "$ac_t""no" 1>&6
8973fi
8974
8975if test -z "$CC"; then
8976 # Extract the first word of "cc", so it can be a program name with args.
8977set dummy cc; ac_word=$2
8978echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8979echo "configure:8980: checking for $ac_word" >&5
8980if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8981 echo $ac_n "(cached) $ac_c" 1>&6
8982else
8983 if test -n "$CC"; then
8984 ac_cv_prog_CC="$CC" # Let the user override the test.
8985else
8986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8987 ac_prog_rejected=no
8988 ac_dummy="$PATH"
8989 for ac_dir in $ac_dummy; do
8990 test -z "$ac_dir" && ac_dir=.
8991 if test -f $ac_dir/$ac_word; then
8992 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8993 ac_prog_rejected=yes
8994 continue
8995 fi
8996 ac_cv_prog_CC="cc"
8997 break
8998 fi
8999 done
9000 IFS="$ac_save_ifs"
9001if test $ac_prog_rejected = yes; then
9002 # We found a bogon in the path, so make sure we never use it.
9003 set dummy $ac_cv_prog_CC
9004 shift
9005 if test $# -gt 0; then
9006 # We chose a different compiler from the bogus one.
9007 # However, it has the same basename, so the bogon will be chosen
9008 # first if we set CC to just the basename; use the full file name.
9009 shift
9010 set dummy "$ac_dir/$ac_word" "$@"
9011 shift
9012 ac_cv_prog_CC="$@"
9013 fi
9014fi
9015fi
9016fi
9017CC="$ac_cv_prog_CC"
9018if test -n "$CC"; then
9019 echo "$ac_t""$CC" 1>&6
9020else
9021 echo "$ac_t""no" 1>&6
9022fi
9023
9024 if test -z "$CC"; then
9025 case "`uname -s`" in
9026 *win32* | *WIN32*)
9027 # Extract the first word of "cl", so it can be a program name with args.
9028set dummy cl; ac_word=$2
9029echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9030echo "configure:9031: checking for $ac_word" >&5
9031if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
9032 echo $ac_n "(cached) $ac_c" 1>&6
9033else
9034 if test -n "$CC"; then
9035 ac_cv_prog_CC="$CC" # Let the user override the test.
9036else
9037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9038 ac_dummy="$PATH"
9039 for ac_dir in $ac_dummy; do
9040 test -z "$ac_dir" && ac_dir=.
9041 if test -f $ac_dir/$ac_word; then
9042 ac_cv_prog_CC="cl"
9043 break
9044 fi
9045 done
9046 IFS="$ac_save_ifs"
9047fi
9048fi
9049CC="$ac_cv_prog_CC"
9050if test -n "$CC"; then
9051 echo "$ac_t""$CC" 1>&6
9052else
9053 echo "$ac_t""no" 1>&6
9054fi
9055 ;;
9056 esac
9057 fi
9058 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
9059fi
9060
9061echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9062echo "configure:9063: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
9063
9064ac_ext=c
9065# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9066ac_cpp='$CPP $CPPFLAGS'
9067ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9068ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9069cross_compiling=$ac_cv_prog_cc_cross
9070
9071cat > conftest.$ac_ext << EOF
9072
9073#line 9074 "configure"
9074#include "confdefs.h"
9075
9076main(){return(0);}
9077EOF
9078if { (eval echo configure:9079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9079 ac_cv_prog_cc_works=yes
9080 # If we can't run a trivial program, we are probably using a cross compiler.
9081 if (./conftest; exit) 2>/dev/null; then
9082 ac_cv_prog_cc_cross=no
9083 else
9084 ac_cv_prog_cc_cross=yes
9085 fi
9086else
9087 echo "configure: failed program was:" >&5
9088 cat conftest.$ac_ext >&5
9089 ac_cv_prog_cc_works=no
9090fi
9091rm -fr conftest*
9092ac_ext=c
9093# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9094ac_cpp='$CPP $CPPFLAGS'
9095ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9096ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9097cross_compiling=$ac_cv_prog_cc_cross
9098
9099echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
9100if test $ac_cv_prog_cc_works = no; then
9101 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
9102fi
9103echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9104echo "configure:9105: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
9105echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
9106cross_compiling=$ac_cv_prog_cc_cross
9107
9108echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
9109echo "configure:9110: checking whether we are using GNU C" >&5
9110if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
9111 echo $ac_n "(cached) $ac_c" 1>&6
9112else
9113 cat > conftest.c <<EOF
9114#ifdef __GNUC__
9115 yes;
9116#endif
9117EOF
9118if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9119 ac_cv_prog_gcc=yes
9120else
9121 ac_cv_prog_gcc=no
9122fi
9123fi
9124
9125echo "$ac_t""$ac_cv_prog_gcc" 1>&6
9126
9127if test $ac_cv_prog_gcc = yes; then
9128 GCC=yes
9129else
9130 GCC=
9131fi
9132
9133ac_test_CFLAGS="${CFLAGS+set}"
9134ac_save_CFLAGS="$CFLAGS"
9135CFLAGS=
9136echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
9137echo "configure:9138: checking whether ${CC-cc} accepts -g" >&5
9138if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9139 echo $ac_n "(cached) $ac_c" 1>&6
9140else
9141 echo 'void f(){}' > conftest.c
9142if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
9143 ac_cv_prog_cc_g=yes
9144else
9145 ac_cv_prog_cc_g=no
9146fi
9147rm -f conftest*
9148
9149fi
9150
9151echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
9152if test "$ac_test_CFLAGS" = set; then
9153 CFLAGS="$ac_save_CFLAGS"
9154elif test $ac_cv_prog_cc_g = yes; then
9155 if test "$GCC" = yes; then
9156 CFLAGS="-g -O2"
9157 else
9158 CFLAGS="-g"
9159 fi
9160else
9161 if test "$GCC" = yes; then
9162 CFLAGS="-O2"
9163 else
9164 CFLAGS=
9165 fi
9166fi
9167
9168
9169echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
9170echo "configure:9171: checking how to run the C preprocessor" >&5
9171# On Suns, sometimes $CPP names a directory.
9172if test -n "$CPP" && test -d "$CPP"; then
9173 CPP=
9174fi
9175if test -z "$CPP"; then
9176if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9177 echo $ac_n "(cached) $ac_c" 1>&6
9178else
9179 # This must be in double quotes, not single quotes, because CPP may get
9180 # substituted into the Makefile and "${CC-cc}" will confuse make.
9181 CPP="${CC-cc} -E"
9182 # On the NeXT, cc -E runs the code through the compiler's parser,
9183 # not just through cpp.
9184 cat > conftest.$ac_ext <<EOF
9185#line 9186 "configure"
9186#include "confdefs.h"
9187#include <assert.h>
9188Syntax Error
9189EOF
9190ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9191{ (eval echo configure:9192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9192ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9193if test -z "$ac_err"; then
9194 :
9195else
9196 echo "$ac_err" >&5
9197 echo "configure: failed program was:" >&5
9198 cat conftest.$ac_ext >&5
9199 rm -rf conftest*
9200 CPP="${CC-cc} -E -traditional-cpp"
9201 cat > conftest.$ac_ext <<EOF
9202#line 9203 "configure"
9203#include "confdefs.h"
9204#include <assert.h>
9205Syntax Error
9206EOF
9207ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9208{ (eval echo configure:9209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9209ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9210if test -z "$ac_err"; then
9211 :
9212else
9213 echo "$ac_err" >&5
9214 echo "configure: failed program was:" >&5
9215 cat conftest.$ac_ext >&5
9216 rm -rf conftest*
9217 CPP="${CC-cc} -nologo -E"
9218 cat > conftest.$ac_ext <<EOF
9219#line 9220 "configure"
9220#include "confdefs.h"
9221#include <assert.h>
9222Syntax Error
9223EOF
9224ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9225{ (eval echo configure:9226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9226ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9227if test -z "$ac_err"; then
9228 :
9229else
9230 echo "$ac_err" >&5
9231 echo "configure: failed program was:" >&5
9232 cat conftest.$ac_ext >&5
9233 rm -rf conftest*
9234 CPP=/lib/cpp
9235fi
9236rm -f conftest*
9237fi
9238rm -f conftest*
9239fi
9240rm -f conftest*
9241 ac_cv_prog_CPP="$CPP"
9242fi
9243 CPP="$ac_cv_prog_CPP"
9244else
9245 ac_cv_prog_CPP="$CPP"
9246fi
9247echo "$ac_t""$CPP" 1>&6
9248
9249if test $ac_cv_prog_gcc = yes; then
9250 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
9251echo "configure:9252: checking whether ${CC-cc} needs -traditional" >&5
9252if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9253 echo $ac_n "(cached) $ac_c" 1>&6
9254else
9255 ac_pattern="Autoconf.*'x'"
9256 cat > conftest.$ac_ext <<EOF
9257#line 9258 "configure"
9258#include "confdefs.h"
9259#include <sgtty.h>
9260Autoconf TIOCGETP
9261EOF
9262if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9263 egrep "$ac_pattern" >/dev/null 2>&1; then
9264 rm -rf conftest*
9265 ac_cv_prog_gcc_traditional=yes
9266else
9267 rm -rf conftest*
9268 ac_cv_prog_gcc_traditional=no
9269fi
9270rm -f conftest*
9271
9272
9273 if test $ac_cv_prog_gcc_traditional = no; then
9274 cat > conftest.$ac_ext <<EOF
9275#line 9276 "configure"
9276#include "confdefs.h"
9277#include <termio.h>
9278Autoconf TCGETA
9279EOF
9280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9281 egrep "$ac_pattern" >/dev/null 2>&1; then
9282 rm -rf conftest*
9283 ac_cv_prog_gcc_traditional=yes
9284fi
9285rm -f conftest*
9286
9287 fi
9288fi
9289
9290echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
9291 if test $ac_cv_prog_gcc_traditional = yes; then
9292 CC="$CC -traditional"
9293 fi
9294fi
9295
9296
9297
9298ac_ext=C
9299# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9300ac_cpp='$CXXCPP $CPPFLAGS'
9301ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9302ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9303cross_compiling=$ac_cv_prog_cxx_cross
9304
9305
9306CXXFLAGS=${CXXFLAGS:=}
9307for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9308do
9309# Extract the first word of "$ac_prog", so it can be a program name with args.
9310set dummy $ac_prog; ac_word=$2
9311echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9312echo "configure:9313: checking for $ac_word" >&5
9313if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9314 echo $ac_n "(cached) $ac_c" 1>&6
9315else
9316 if test -n "$CXX"; then
9317 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9318else
9319 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9320 ac_dummy="$PATH"
9321 for ac_dir in $ac_dummy; do
9322 test -z "$ac_dir" && ac_dir=.
9323 if test -f $ac_dir/$ac_word; then
9324 ac_cv_prog_CXX="$ac_prog"
9325 break
9326 fi
9327 done
9328 IFS="$ac_save_ifs"
9329fi
9330fi
9331CXX="$ac_cv_prog_CXX"
9332if test -n "$CXX"; then
9333 echo "$ac_t""$CXX" 1>&6
9334else
9335 echo "$ac_t""no" 1>&6
9336fi
9337
9338test -n "$CXX" && break
9339done
9340test -n "$CXX" || CXX="gcc"
9341
9342
9343echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9344echo "configure:9345: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9345
9346ac_ext=C
9347# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9348ac_cpp='$CXXCPP $CPPFLAGS'
9349ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9350ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9351cross_compiling=$ac_cv_prog_cxx_cross
9352
9353cat > conftest.$ac_ext << EOF
9354
9355#line 9356 "configure"
9356#include "confdefs.h"
9357
9358int main(){return(0);}
9359EOF
9360if { (eval echo configure:9361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9361 ac_cv_prog_cxx_works=yes
9362 # If we can't run a trivial program, we are probably using a cross compiler.
9363 if (./conftest; exit) 2>/dev/null; then
9364 ac_cv_prog_cxx_cross=no
9365 else
9366 ac_cv_prog_cxx_cross=yes
9367 fi
9368else
9369 echo "configure: failed program was:" >&5
9370 cat conftest.$ac_ext >&5
9371 ac_cv_prog_cxx_works=no
9372fi
9373rm -fr conftest*
9374ac_ext=C
9375# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9376ac_cpp='$CXXCPP $CPPFLAGS'
9377ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9378ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9379cross_compiling=$ac_cv_prog_cxx_cross
9380
9381echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9382if test $ac_cv_prog_cxx_works = no; then
9383 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9384fi
9385echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9386echo "configure:9387: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9387echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9388cross_compiling=$ac_cv_prog_cxx_cross
9389
9390echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9391echo "configure:9392: checking whether we are using GNU C++" >&5
9392if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9393 echo $ac_n "(cached) $ac_c" 1>&6
9394else
9395 cat > conftest.C <<EOF
9396#ifdef __GNUC__
9397 yes;
9398#endif
9399EOF
9400if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9401 ac_cv_prog_gxx=yes
9402else
9403 ac_cv_prog_gxx=no
9404fi
9405fi
9406
9407echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9408
9409if test $ac_cv_prog_gxx = yes; then
9410 GXX=yes
9411else
9412 GXX=
9413fi
9414
9415ac_test_CXXFLAGS="${CXXFLAGS+set}"
9416ac_save_CXXFLAGS="$CXXFLAGS"
9417CXXFLAGS=
9418echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9419echo "configure:9420: checking whether ${CXX-g++} accepts -g" >&5
9420if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9421 echo $ac_n "(cached) $ac_c" 1>&6
9422else
9423 echo 'void f(){}' > conftest.cc
9424if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9425 ac_cv_prog_cxx_g=yes
9426else
9427 ac_cv_prog_cxx_g=no
9428fi
9429rm -f conftest*
9430
9431fi
9432
9433echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9434if test "$ac_test_CXXFLAGS" = set; then
9435 CXXFLAGS="$ac_save_CXXFLAGS"
9436elif test $ac_cv_prog_cxx_g = yes; then
9437 if test "$GXX" = yes; then
9438 CXXFLAGS="-g -O2"
9439 else
9440 CXXFLAGS="-g"
9441 fi
9442else
9443 if test "$GXX" = yes; then
9444 CXXFLAGS="-O2"
9445 else
9446 CXXFLAGS=
9447 fi
9448fi
9449
9450
9451ac_ext=c
9452# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9453ac_cpp='$CPP $CPPFLAGS'
9454ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9455ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9456cross_compiling=$ac_cv_prog_cc_cross
9457
9458
9459# Extract the first word of "ranlib", so it can be a program name with args.
9460set dummy ranlib; ac_word=$2
9461echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9462echo "configure:9463: checking for $ac_word" >&5
9463if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9464 echo $ac_n "(cached) $ac_c" 1>&6
9465else
9466 if test -n "$RANLIB"; then
9467 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9468else
9469 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9470 ac_dummy="$PATH"
9471 for ac_dir in $ac_dummy; do
9472 test -z "$ac_dir" && ac_dir=.
9473 if test -f $ac_dir/$ac_word; then
9474 ac_cv_prog_RANLIB="ranlib"
9475 break
9476 fi
9477 done
9478 IFS="$ac_save_ifs"
9479 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9480fi
9481fi
9482RANLIB="$ac_cv_prog_RANLIB"
9483if test -n "$RANLIB"; then
9484 echo "$ac_t""$RANLIB" 1>&6
9485else
9486 echo "$ac_t""no" 1>&6
9487fi
9488
9489
9490# Extract the first word of "ar", so it can be a program name with args.
9491set dummy ar; ac_word=$2
9492echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9493echo "configure:9494: checking for $ac_word" >&5
9494if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9495 echo $ac_n "(cached) $ac_c" 1>&6
9496else
9497 if test -n "$AR"; then
9498 ac_cv_prog_AR="$AR" # Let the user override the test.
9499else
9500 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9501 ac_dummy="$PATH"
9502 for ac_dir in $ac_dummy; do
9503 test -z "$ac_dir" && ac_dir=.
9504 if test -f $ac_dir/$ac_word; then
9505 ac_cv_prog_AR="ar"
9506 break
9507 fi
9508 done
9509 IFS="$ac_save_ifs"
9510 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9511fi
9512fi
9513AR="$ac_cv_prog_AR"
9514if test -n "$AR"; then
9515 echo "$ac_t""$AR" 1>&6
9516else
9517 echo "$ac_t""no" 1>&6
9518fi
9519
9520
9521# Find a good install program. We prefer a C program (faster),
9522# so one script is as good as another. But avoid the broken or
9523# incompatible versions:
9524# SysV /etc/install, /usr/sbin/install
9525# SunOS /usr/etc/install
9526# IRIX /sbin/install
9527# AIX /bin/install
9528# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9529# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9530# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9531# ./install, which can be erroneously created by make from ./install.sh.
9532echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9533echo "configure:9534: checking for a BSD compatible install" >&5
9534if test -z "$INSTALL"; then
9535if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9536 echo $ac_n "(cached) $ac_c" 1>&6
9537else
9538 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9539 for ac_dir in $PATH; do
9540 # Account for people who put trailing slashes in PATH elements.
9541 case "$ac_dir/" in
9542 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9543 *)
9544 # OSF1 and SCO ODT 3.0 have their own names for install.
9545 # Don't use installbsd from OSF since it installs stuff as root
9546 # by default.
9547 for ac_prog in ginstall scoinst install; do
9548 if test -f $ac_dir/$ac_prog; then
9549 if test $ac_prog = install &&
9550 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9551 # AIX install. It has an incompatible calling convention.
9552 :
9553 else
9554 ac_cv_path_install="$ac_dir/$ac_prog -c"
9555 break 2
9556 fi
9557 fi
9558 done
9559 ;;
9560 esac
9561 done
9562 IFS="$ac_save_IFS"
9563
9564fi
9565 if test "${ac_cv_path_install+set}" = set; then
9566 INSTALL="$ac_cv_path_install"
9567 else
9568 # As a last resort, use the slow shell script. We don't cache a
9569 # path for INSTALL within a source directory, because that will
9570 # break other packages using the cache if that directory is
9571 # removed, or if the path is relative.
9572 INSTALL="$ac_install_sh"
9573 fi
9574fi
9575echo "$ac_t""$INSTALL" 1>&6
9576
9577# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9578# It thinks the first close brace ends the variable substitution.
9579test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9580
9581test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9582
9583test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9584
9585
9586case ${INSTALL} in
9587 /* ) # Absolute
9588 ;;
9589 *)
9590 INSTALL=`pwd`/${INSTALL} ;;
9591esac
9592
9593
9594case "${host}" in
9595
9596 powerpc-*-darwin* )
9597 INSTALL_PROGRAM="cp -fp"
9598 INSTALL_DATA="cp -fp"
9599 ;;
9600 *)
9601 ;;
9602esac
9603
9604# Extract the first word of "strip", so it can be a program name with args.
9605set dummy strip; ac_word=$2
9606echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9607echo "configure:9608: checking for $ac_word" >&5
9608if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9609 echo $ac_n "(cached) $ac_c" 1>&6
9610else
9611 if test -n "$STRIP"; then
9612 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9613else
9614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9615 ac_dummy="$PATH"
9616 for ac_dir in $ac_dummy; do
9617 test -z "$ac_dir" && ac_dir=.
9618 if test -f $ac_dir/$ac_word; then
9619 ac_cv_prog_STRIP="strip"
9620 break
9621 fi
9622 done
9623 IFS="$ac_save_ifs"
9624 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9625fi
9626fi
9627STRIP="$ac_cv_prog_STRIP"
9628if test -n "$STRIP"; then
9629 echo "$ac_t""$STRIP" 1>&6
9630else
9631 echo "$ac_t""no" 1>&6
9632fi
9633
9634
9635echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9636echo "configure:9637: checking if make is GNU make" >&5
9637if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9638 echo $ac_n "(cached) $ac_c" 1>&6
9639else
9640
9641 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9642 egrep -s GNU > /dev/null); then
9643 wx_cv_prog_makeisgnu="yes"
9644 else
9645 wx_cv_prog_makeisgnu="no"
9646 fi
9647
9648fi
9649
9650echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9651
9652if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9653 IF_GNU_MAKE=""
9654else
9655 IF_GNU_MAKE="#"
9656fi
9657
9658
9659
9660if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9661echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9662echo "configure:9663: checking if make supports VPATH" >&5
9663if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9664 echo $ac_n "(cached) $ac_c" 1>&6
9665else
9666
9667cat - << EOF > confMake
9668check : file
9669 cp \$? \$@
9670 cp \$? final_file
9671EOF
9672
9673if test ! -d sub ; then
9674 mkdir sub
9675fi
9676echo dummy > sub/file
9677${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9678RESULT=$?
9679rm -f sub/file check final_file confMake
9680rmdir sub
9681if test "$RESULT" = 0; then
9682 wx_cv_prog_makevpath="yes"
9683else
9684 wx_cv_prog_makevpath="no"
9685fi
9686
9687fi
9688
9689echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9690
9691if test "x$wx_cv_prog_makevpath" != "xyes"; then
9692{ echo "configure: error:
9693You need a make-utility that is able to use the variable
9694VPATH correctly.
9695If your version of make does not support VPATH correctly,
9696please install GNU-make (possibly as gmake), and start
9697configure with the following command:
9698export MAKE=gmake; ./configure for sh-type shells
9699setenv MAKE gmake; ./configure for csh-type shells
9700Also please do remember to use gmake in this case every time
9701you are trying to compile.
9702" 1>&2; exit 1; }
9703fi fi
9704for ac_prog in 'bison -y' byacc
9705do
9706# Extract the first word of "$ac_prog", so it can be a program name with args.
9707set dummy $ac_prog; ac_word=$2
9708echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9709echo "configure:9710: checking for $ac_word" >&5
9710if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9711 echo $ac_n "(cached) $ac_c" 1>&6
9712else
9713 if test -n "$YACC"; then
9714 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9715else
9716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9717 ac_dummy="$PATH"
9718 for ac_dir in $ac_dummy; do
9719 test -z "$ac_dir" && ac_dir=.
9720 if test -f $ac_dir/$ac_word; then
9721 ac_cv_prog_YACC="$ac_prog"
9722 break
9723 fi
9724 done
9725 IFS="$ac_save_ifs"
9726fi
9727fi
9728YACC="$ac_cv_prog_YACC"
9729if test -n "$YACC"; then
9730 echo "$ac_t""$YACC" 1>&6
9731else
9732 echo "$ac_t""no" 1>&6
9733fi
9734
9735test -n "$YACC" && break
9736done
9737test -n "$YACC" || YACC="yacc"
9738
9739
9740# Extract the first word of "flex", so it can be a program name with args.
9741set dummy flex; ac_word=$2
9742echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9743echo "configure:9744: checking for $ac_word" >&5
9744if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9745 echo $ac_n "(cached) $ac_c" 1>&6
9746else
9747 if test -n "$LEX"; then
9748 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9749else
9750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9751 ac_dummy="$PATH"
9752 for ac_dir in $ac_dummy; do
9753 test -z "$ac_dir" && ac_dir=.
9754 if test -f $ac_dir/$ac_word; then
9755 ac_cv_prog_LEX="flex"
9756 break
9757 fi
9758 done
9759 IFS="$ac_save_ifs"
9760 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9761fi
9762fi
9763LEX="$ac_cv_prog_LEX"
9764if test -n "$LEX"; then
9765 echo "$ac_t""$LEX" 1>&6
9766else
9767 echo "$ac_t""no" 1>&6
9768fi
9769
9770if test -z "$LEXLIB"
9771then
9772 case "$LEX" in
9773 flex*) ac_lib=fl ;;
9774 *) ac_lib=l ;;
9775 esac
9776 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9777echo "configure:9778: checking for yywrap in -l$ac_lib" >&5
9778ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9779if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9780 echo $ac_n "(cached) $ac_c" 1>&6
9781else
9782 ac_save_LIBS="$LIBS"
9783LIBS="-l$ac_lib $LIBS"
9784cat > conftest.$ac_ext <<EOF
9785#line 9786 "configure"
9786#include "confdefs.h"
9787/* Override any gcc2 internal prototype to avoid an error. */
9788/* We use char because int might match the return type of a gcc2
9789 builtin and then its argument prototype would still apply. */
9790char yywrap();
9791
9792int main() {
9793yywrap()
9794; return 0; }
9795EOF
9796if { (eval echo configure:9797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9797 rm -rf conftest*
9798 eval "ac_cv_lib_$ac_lib_var=yes"
9799else
9800 echo "configure: failed program was:" >&5
9801 cat conftest.$ac_ext >&5
9802 rm -rf conftest*
9803 eval "ac_cv_lib_$ac_lib_var=no"
9804fi
9805rm -f conftest*
9806LIBS="$ac_save_LIBS"
9807
9808fi
9809if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9810 echo "$ac_t""yes" 1>&6
9811 LEXLIB="-l$ac_lib"
9812else
9813 echo "$ac_t""no" 1>&6
9814fi
9815
9816fi
9817
9818
9819echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9820echo "configure:9821: checking whether ln -s works" >&5
9821if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9822 echo $ac_n "(cached) $ac_c" 1>&6
9823else
9824 rm -f conftestdata
9825if ln -s X conftestdata 2>/dev/null
9826then
9827 rm -f conftestdata
9828 ac_cv_prog_LN_S="ln -s"
9829else
9830 ac_cv_prog_LN_S=ln
9831fi
9832fi
9833LN_S="$ac_cv_prog_LN_S"
9834if test "$ac_cv_prog_LN_S" = "ln -s"; then
9835 echo "$ac_t""yes" 1>&6
9836else
9837 echo "$ac_t""no" 1>&6
9838fi
9839
9840
9841
9842if test "$wxUSE_MAC" != 1; then
9843 for ac_hdr in strings.h
9844do
9845ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9846echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9847echo "configure:9848: checking for $ac_hdr" >&5
9848if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9849 echo $ac_n "(cached) $ac_c" 1>&6
9850else
9851 cat > conftest.$ac_ext <<EOF
9852#line 9853 "configure"
9853#include "confdefs.h"
9854#include <$ac_hdr>
9855EOF
9856ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9857{ (eval echo configure:9858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9858ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9859if test -z "$ac_err"; then
9860 rm -rf conftest*
9861 eval "ac_cv_header_$ac_safe=yes"
9862else
9863 echo "$ac_err" >&5
9864 echo "configure: failed program was:" >&5
9865 cat conftest.$ac_ext >&5
9866 rm -rf conftest*
9867 eval "ac_cv_header_$ac_safe=no"
9868fi
9869rm -f conftest*
9870fi
9871if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9872 echo "$ac_t""yes" 1>&6
9873 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9874 cat >> confdefs.h <<EOF
9875#define $ac_tr_hdr 1
9876EOF
9877
9878else
9879 echo "$ac_t""no" 1>&6
9880fi
9881done
9882
9883fi
9884
9885for ac_hdr in stdlib.h
9886do
9887ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9888echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9889echo "configure:9890: checking for $ac_hdr" >&5
9890if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9891 echo $ac_n "(cached) $ac_c" 1>&6
9892else
9893 cat > conftest.$ac_ext <<EOF
9894#line 9895 "configure"
9895#include "confdefs.h"
9896#include <$ac_hdr>
9897EOF
9898ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9899{ (eval echo configure:9900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9900ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9901if test -z "$ac_err"; then
9902 rm -rf conftest*
9903 eval "ac_cv_header_$ac_safe=yes"
9904else
9905 echo "$ac_err" >&5
9906 echo "configure: failed program was:" >&5
9907 cat conftest.$ac_ext >&5
9908 rm -rf conftest*
9909 eval "ac_cv_header_$ac_safe=no"
9910fi
9911rm -f conftest*
9912fi
9913if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9914 echo "$ac_t""yes" 1>&6
9915 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9916 cat >> confdefs.h <<EOF
9917#define $ac_tr_hdr 1
9918EOF
9919
9920else
9921 echo "$ac_t""no" 1>&6
9922fi
9923done
9924
9925for ac_hdr in malloc.h
9926do
9927ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9928echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9929echo "configure:9930: checking for $ac_hdr" >&5
9930if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9931 echo $ac_n "(cached) $ac_c" 1>&6
9932else
9933 cat > conftest.$ac_ext <<EOF
9934#line 9935 "configure"
9935#include "confdefs.h"
9936#include <$ac_hdr>
9937EOF
9938ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9939{ (eval echo configure:9940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9940ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9941if test -z "$ac_err"; then
9942 rm -rf conftest*
9943 eval "ac_cv_header_$ac_safe=yes"
9944else
9945 echo "$ac_err" >&5
9946 echo "configure: failed program was:" >&5
9947 cat conftest.$ac_ext >&5
9948 rm -rf conftest*
9949 eval "ac_cv_header_$ac_safe=no"
9950fi
9951rm -f conftest*
9952fi
9953if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9954 echo "$ac_t""yes" 1>&6
9955 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9956 cat >> confdefs.h <<EOF
9957#define $ac_tr_hdr 1
9958EOF
9959
9960else
9961 echo "$ac_t""no" 1>&6
9962fi
9963done
9964
9965for ac_hdr in unistd.h
9966do
9967ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9968echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9969echo "configure:9970: checking for $ac_hdr" >&5
9970if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9971 echo $ac_n "(cached) $ac_c" 1>&6
9972else
9973 cat > conftest.$ac_ext <<EOF
9974#line 9975 "configure"
9975#include "confdefs.h"
9976#include <$ac_hdr>
9977EOF
9978ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9979{ (eval echo configure:9980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9980ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9981if test -z "$ac_err"; then
9982 rm -rf conftest*
9983 eval "ac_cv_header_$ac_safe=yes"
9984else
9985 echo "$ac_err" >&5
9986 echo "configure: failed program was:" >&5
9987 cat conftest.$ac_ext >&5
9988 rm -rf conftest*
9989 eval "ac_cv_header_$ac_safe=no"
9990fi
9991rm -f conftest*
9992fi
9993if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9994 echo "$ac_t""yes" 1>&6
9995 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9996 cat >> confdefs.h <<EOF
9997#define $ac_tr_hdr 1
9998EOF
9999
10000else
10001 echo "$ac_t""no" 1>&6
10002fi
10003done
10004
10005for ac_hdr in wchar.h
10006do
10007ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10008echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10009echo "configure:10010: checking for $ac_hdr" >&5
10010if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10011 echo $ac_n "(cached) $ac_c" 1>&6
10012else
10013 cat > conftest.$ac_ext <<EOF
10014#line 10015 "configure"
10015#include "confdefs.h"
10016#include <$ac_hdr>
10017EOF
10018ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10019{ (eval echo configure:10020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10020ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10021if test -z "$ac_err"; then
10022 rm -rf conftest*
10023 eval "ac_cv_header_$ac_safe=yes"
10024else
10025 echo "$ac_err" >&5
10026 echo "configure: failed program was:" >&5
10027 cat conftest.$ac_ext >&5
10028 rm -rf conftest*
10029 eval "ac_cv_header_$ac_safe=no"
10030fi
10031rm -f conftest*
10032fi
10033if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10034 echo "$ac_t""yes" 1>&6
10035 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10036 cat >> confdefs.h <<EOF
10037#define $ac_tr_hdr 1
10038EOF
10039
10040else
10041 echo "$ac_t""no" 1>&6
10042fi
10043done
10044
10045
10046if test "$ac_cv_header_wchar_h" != "yes"; then
10047 for ac_hdr in wcstr.h
10048do
10049ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10050echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10051echo "configure:10052: checking for $ac_hdr" >&5
10052if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10053 echo $ac_n "(cached) $ac_c" 1>&6
10054else
10055 cat > conftest.$ac_ext <<EOF
10056#line 10057 "configure"
10057#include "confdefs.h"
10058#include <$ac_hdr>
10059EOF
10060ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10061{ (eval echo configure:10062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10062ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10063if test -z "$ac_err"; then
10064 rm -rf conftest*
10065 eval "ac_cv_header_$ac_safe=yes"
10066else
10067 echo "$ac_err" >&5
10068 echo "configure: failed program was:" >&5
10069 cat conftest.$ac_ext >&5
10070 rm -rf conftest*
10071 eval "ac_cv_header_$ac_safe=no"
10072fi
10073rm -f conftest*
10074fi
10075if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10076 echo "$ac_t""yes" 1>&6
10077 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10078 cat >> confdefs.h <<EOF
10079#define $ac_tr_hdr 1
10080EOF
10081
10082else
10083 echo "$ac_t""no" 1>&6
10084fi
10085done
10086
10087fi
10088
10089for ac_hdr in fnmatch.h
10090do
10091ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10092echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10093echo "configure:10094: checking for $ac_hdr" >&5
10094if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10095 echo $ac_n "(cached) $ac_c" 1>&6
10096else
10097 cat > conftest.$ac_ext <<EOF
10098#line 10099 "configure"
10099#include "confdefs.h"
10100#include <$ac_hdr>
10101EOF
10102ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10103{ (eval echo configure:10104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10104ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10105if test -z "$ac_err"; then
10106 rm -rf conftest*
10107 eval "ac_cv_header_$ac_safe=yes"
10108else
10109 echo "$ac_err" >&5
10110 echo "configure: failed program was:" >&5
10111 cat conftest.$ac_ext >&5
10112 rm -rf conftest*
10113 eval "ac_cv_header_$ac_safe=no"
10114fi
10115rm -f conftest*
10116fi
10117if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10118 echo "$ac_t""yes" 1>&6
10119 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10120 cat >> confdefs.h <<EOF
10121#define $ac_tr_hdr 1
10122EOF
10123
10124else
10125 echo "$ac_t""no" 1>&6
10126fi
10127done
10128
10129
10130if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10131 for ac_func in fnmatch
10132do
10133echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10134echo "configure:10135: checking for $ac_func" >&5
10135if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10136 echo $ac_n "(cached) $ac_c" 1>&6
10137else
10138 cat > conftest.$ac_ext <<EOF
10139#line 10140 "configure"
10140#include "confdefs.h"
10141/* System header to define __stub macros and hopefully few prototypes,
10142 which can conflict with char $ac_func(); below. */
10143#include <assert.h>
10144/* Override any gcc2 internal prototype to avoid an error. */
10145/* We use char because int might match the return type of a gcc2
10146 builtin and then its argument prototype would still apply. */
10147char $ac_func();
10148
10149int main() {
10150
10151/* The GNU C library defines this for functions which it implements
10152 to always fail with ENOSYS. Some functions are actually named
10153 something starting with __ and the normal name is an alias. */
10154#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10155choke me
10156#else
10157$ac_func();
10158#endif
10159
10160; return 0; }
10161EOF
10162if { (eval echo configure:10163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10163 rm -rf conftest*
10164 eval "ac_cv_func_$ac_func=yes"
10165else
10166 echo "configure: failed program was:" >&5
10167 cat conftest.$ac_ext >&5
10168 rm -rf conftest*
10169 eval "ac_cv_func_$ac_func=no"
10170fi
10171rm -f conftest*
10172fi
10173
10174if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10175 echo "$ac_t""yes" 1>&6
10176 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10177 cat >> confdefs.h <<EOF
10178#define $ac_tr_func 1
10179EOF
10180
10181else
10182 echo "$ac_t""no" 1>&6
10183fi
10184done
10185
10186fi
10187
10188for ac_hdr in langinfo.h
10189do
10190ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10191echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10192echo "configure:10193: checking for $ac_hdr" >&5
10193if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10194 echo $ac_n "(cached) $ac_c" 1>&6
10195else
10196 cat > conftest.$ac_ext <<EOF
10197#line 10198 "configure"
10198#include "confdefs.h"
10199#include <$ac_hdr>
10200EOF
10201ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10202{ (eval echo configure:10203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10203ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10204if test -z "$ac_err"; then
10205 rm -rf conftest*
10206 eval "ac_cv_header_$ac_safe=yes"
10207else
10208 echo "$ac_err" >&5
10209 echo "configure: failed program was:" >&5
10210 cat conftest.$ac_ext >&5
10211 rm -rf conftest*
10212 eval "ac_cv_header_$ac_safe=no"
10213fi
10214rm -f conftest*
10215fi
10216if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10217 echo "$ac_t""yes" 1>&6
10218 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10219 cat >> confdefs.h <<EOF
10220#define $ac_tr_hdr 1
10221EOF
10222
10223else
10224 echo "$ac_t""no" 1>&6
10225fi
10226done
10227
10228
10229if test "$wxUSE_GUI" = "yes"; then
10230 if test "$wxUSE_UNIX" = "yes"; then
10231 for ac_hdr in X11/XKBlib.h
10232do
10233ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10234echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10235echo "configure:10236: checking for $ac_hdr" >&5
10236if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10237 echo $ac_n "(cached) $ac_c" 1>&6
10238else
10239 cat > conftest.$ac_ext <<EOF
10240#line 10241 "configure"
10241#include "confdefs.h"
10242#include <$ac_hdr>
10243EOF
10244ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10245{ (eval echo configure:10246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10246ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10247if test -z "$ac_err"; then
10248 rm -rf conftest*
10249 eval "ac_cv_header_$ac_safe=yes"
10250else
10251 echo "$ac_err" >&5
10252 echo "configure: failed program was:" >&5
10253 cat conftest.$ac_ext >&5
10254 rm -rf conftest*
10255 eval "ac_cv_header_$ac_safe=no"
10256fi
10257rm -f conftest*
10258fi
10259if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10260 echo "$ac_t""yes" 1>&6
10261 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10262 cat >> confdefs.h <<EOF
10263#define $ac_tr_hdr 1
10264EOF
10265
10266else
10267 echo "$ac_t""no" 1>&6
10268fi
10269done
10270
10271 fi
10272fi
10273
10274
10275echo $ac_n "checking for working const""... $ac_c" 1>&6
10276echo "configure:10277: checking for working const" >&5
10277if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10278 echo $ac_n "(cached) $ac_c" 1>&6
10279else
10280 cat > conftest.$ac_ext <<EOF
10281#line 10282 "configure"
10282#include "confdefs.h"
10283
10284int main() {
10285
10286/* Ultrix mips cc rejects this. */
10287typedef int charset[2]; const charset x;
10288/* SunOS 4.1.1 cc rejects this. */
10289char const *const *ccp;
10290char **p;
10291/* NEC SVR4.0.2 mips cc rejects this. */
10292struct point {int x, y;};
10293static struct point const zero = {0,0};
10294/* AIX XL C 1.02.0.0 rejects this.
10295 It does not let you subtract one const X* pointer from another in an arm
10296 of an if-expression whose if-part is not a constant expression */
10297const char *g = "string";
10298ccp = &g + (g ? g-g : 0);
10299/* HPUX 7.0 cc rejects these. */
10300++ccp;
10301p = (char**) ccp;
10302ccp = (char const *const *) p;
10303{ /* SCO 3.2v4 cc rejects this. */
10304 char *t;
10305 char const *s = 0 ? (char *) 0 : (char const *) 0;
10306
10307 *t++ = 0;
10308}
10309{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10310 int x[] = {25, 17};
10311 const int *foo = &x[0];
10312 ++foo;
10313}
10314{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10315 typedef const int *iptr;
10316 iptr p = 0;
10317 ++p;
10318}
10319{ /* AIX XL C 1.02.0.0 rejects this saying
10320 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10321 struct s { int j; const int *ap[3]; };
10322 struct s *b; b->j = 5;
10323}
10324{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10325 const int foo = 10;
10326}
10327
10328; return 0; }
10329EOF
10330if { (eval echo configure:10331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10331 rm -rf conftest*
10332 ac_cv_c_const=yes
10333else
10334 echo "configure: failed program was:" >&5
10335 cat conftest.$ac_ext >&5
10336 rm -rf conftest*
10337 ac_cv_c_const=no
10338fi
10339rm -f conftest*
10340fi
10341
10342echo "$ac_t""$ac_cv_c_const" 1>&6
10343if test $ac_cv_c_const = no; then
10344 cat >> confdefs.h <<\EOF
10345#define const
10346EOF
10347
10348fi
10349
10350echo $ac_n "checking for inline""... $ac_c" 1>&6
10351echo "configure:10352: checking for inline" >&5
10352if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10353 echo $ac_n "(cached) $ac_c" 1>&6
10354else
10355 ac_cv_c_inline=no
10356for ac_kw in inline __inline__ __inline; do
10357 cat > conftest.$ac_ext <<EOF
10358#line 10359 "configure"
10359#include "confdefs.h"
10360
10361int main() {
10362} $ac_kw foo() {
10363; return 0; }
10364EOF
10365if { (eval echo configure:10366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10366 rm -rf conftest*
10367 ac_cv_c_inline=$ac_kw; break
10368else
10369 echo "configure: failed program was:" >&5
10370 cat conftest.$ac_ext >&5
10371fi
10372rm -f conftest*
10373done
10374
10375fi
10376
10377echo "$ac_t""$ac_cv_c_inline" 1>&6
10378case "$ac_cv_c_inline" in
10379 inline | yes) ;;
10380 no) cat >> confdefs.h <<\EOF
10381#define inline
10382EOF
10383 ;;
10384 *) cat >> confdefs.h <<EOF
10385#define inline $ac_cv_c_inline
10386EOF
10387 ;;
10388esac
10389
10390
10391echo $ac_n "checking size of char""... $ac_c" 1>&6
10392echo "configure:10393: checking size of char" >&5
10393if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10394 echo $ac_n "(cached) $ac_c" 1>&6
10395else
10396 if test "$cross_compiling" = yes; then
10397 ac_cv_sizeof_char=1
10398else
10399 cat > conftest.$ac_ext <<EOF
10400#line 10401 "configure"
10401#include "confdefs.h"
10402#include <stdio.h>
10403#include <sys/types.h>
10404main()
10405{
10406 FILE *f=fopen("conftestval", "w");
10407 if (!f) exit(1);
10408 fprintf(f, "%d\n", sizeof(char));
10409 exit(0);
10410}
10411EOF
10412if { (eval echo configure:10413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10413then
10414 ac_cv_sizeof_char=`cat conftestval`
10415else
10416 echo "configure: failed program was:" >&5
10417 cat conftest.$ac_ext >&5
10418 rm -fr conftest*
10419 ac_cv_sizeof_char=0
10420fi
10421rm -fr conftest*
10422fi
10423
10424fi
10425echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10426cat >> confdefs.h <<EOF
10427#define SIZEOF_CHAR $ac_cv_sizeof_char
10428EOF
10429
10430
10431echo $ac_n "checking size of short""... $ac_c" 1>&6
10432echo "configure:10433: checking size of short" >&5
10433if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10434 echo $ac_n "(cached) $ac_c" 1>&6
10435else
10436 if test "$cross_compiling" = yes; then
10437 ac_cv_sizeof_short=2
10438else
10439 cat > conftest.$ac_ext <<EOF
10440#line 10441 "configure"
10441#include "confdefs.h"
10442#include <stdio.h>
10443#include <sys/types.h>
10444main()
10445{
10446 FILE *f=fopen("conftestval", "w");
10447 if (!f) exit(1);
10448 fprintf(f, "%d\n", sizeof(short));
10449 exit(0);
10450}
10451EOF
10452if { (eval echo configure:10453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10453then
10454 ac_cv_sizeof_short=`cat conftestval`
10455else
10456 echo "configure: failed program was:" >&5
10457 cat conftest.$ac_ext >&5
10458 rm -fr conftest*
10459 ac_cv_sizeof_short=0
10460fi
10461rm -fr conftest*
10462fi
10463
10464fi
10465echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10466cat >> confdefs.h <<EOF
10467#define SIZEOF_SHORT $ac_cv_sizeof_short
10468EOF
10469
10470
10471echo $ac_n "checking size of void *""... $ac_c" 1>&6
10472echo "configure:10473: checking size of void *" >&5
10473if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10474 echo $ac_n "(cached) $ac_c" 1>&6
10475else
10476 if test "$cross_compiling" = yes; then
10477 ac_cv_sizeof_void_p=4
10478else
10479 cat > conftest.$ac_ext <<EOF
10480#line 10481 "configure"
10481#include "confdefs.h"
10482#include <stdio.h>
10483#include <sys/types.h>
10484main()
10485{
10486 FILE *f=fopen("conftestval", "w");
10487 if (!f) exit(1);
10488 fprintf(f, "%d\n", sizeof(void *));
10489 exit(0);
10490}
10491EOF
10492if { (eval echo configure:10493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10493then
10494 ac_cv_sizeof_void_p=`cat conftestval`
10495else
10496 echo "configure: failed program was:" >&5
10497 cat conftest.$ac_ext >&5
10498 rm -fr conftest*
10499 ac_cv_sizeof_void_p=0
10500fi
10501rm -fr conftest*
10502fi
10503
10504fi
10505echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10506cat >> confdefs.h <<EOF
10507#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10508EOF
10509
10510
10511echo $ac_n "checking size of int""... $ac_c" 1>&6
10512echo "configure:10513: checking size of int" >&5
10513if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10514 echo $ac_n "(cached) $ac_c" 1>&6
10515else
10516 if test "$cross_compiling" = yes; then
10517 ac_cv_sizeof_int=4
10518else
10519 cat > conftest.$ac_ext <<EOF
10520#line 10521 "configure"
10521#include "confdefs.h"
10522#include <stdio.h>
10523#include <sys/types.h>
10524main()
10525{
10526 FILE *f=fopen("conftestval", "w");
10527 if (!f) exit(1);
10528 fprintf(f, "%d\n", sizeof(int));
10529 exit(0);
10530}
10531EOF
10532if { (eval echo configure:10533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10533then
10534 ac_cv_sizeof_int=`cat conftestval`
10535else
10536 echo "configure: failed program was:" >&5
10537 cat conftest.$ac_ext >&5
10538 rm -fr conftest*
10539 ac_cv_sizeof_int=0
10540fi
10541rm -fr conftest*
10542fi
10543
10544fi
10545echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10546cat >> confdefs.h <<EOF
10547#define SIZEOF_INT $ac_cv_sizeof_int
10548EOF
10549
10550
10551echo $ac_n "checking size of long""... $ac_c" 1>&6
10552echo "configure:10553: checking size of long" >&5
10553if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10554 echo $ac_n "(cached) $ac_c" 1>&6
10555else
10556 if test "$cross_compiling" = yes; then
10557 ac_cv_sizeof_long=4
10558else
10559 cat > conftest.$ac_ext <<EOF
10560#line 10561 "configure"
10561#include "confdefs.h"
10562#include <stdio.h>
10563#include <sys/types.h>
10564main()
10565{
10566 FILE *f=fopen("conftestval", "w");
10567 if (!f) exit(1);
10568 fprintf(f, "%d\n", sizeof(long));
10569 exit(0);
10570}
10571EOF
10572if { (eval echo configure:10573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10573then
10574 ac_cv_sizeof_long=`cat conftestval`
10575else
10576 echo "configure: failed program was:" >&5
10577 cat conftest.$ac_ext >&5
10578 rm -fr conftest*
10579 ac_cv_sizeof_long=0
10580fi
10581rm -fr conftest*
10582fi
10583
10584fi
10585echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10586cat >> confdefs.h <<EOF
10587#define SIZEOF_LONG $ac_cv_sizeof_long
10588EOF
10589
10590
10591
10592case "${host}" in
10593 arm-*-linux* )
10594 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10595echo "configure:10596: checking size of long long" >&5
10596if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10597 echo $ac_n "(cached) $ac_c" 1>&6
10598else
10599 if test "$cross_compiling" = yes; then
10600 ac_cv_sizeof_long_long=8
10601else
10602 cat > conftest.$ac_ext <<EOF
10603#line 10604 "configure"
10604#include "confdefs.h"
10605#include <stdio.h>
10606#include <sys/types.h>
10607main()
10608{
10609 FILE *f=fopen("conftestval", "w");
10610 if (!f) exit(1);
10611 fprintf(f, "%d\n", sizeof(long long));
10612 exit(0);
10613}
10614EOF
10615if { (eval echo configure:10616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10616then
10617 ac_cv_sizeof_long_long=`cat conftestval`
10618else
10619 echo "configure: failed program was:" >&5
10620 cat conftest.$ac_ext >&5
10621 rm -fr conftest*
10622 ac_cv_sizeof_long_long=0
10623fi
10624rm -fr conftest*
10625fi
10626
10627fi
10628echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10629cat >> confdefs.h <<EOF
10630#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10631EOF
10632
10633
10634 ;;
10635 *-hp-hpux* )
10636 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10637echo "configure:10638: checking size of long long" >&5
10638if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10639 echo $ac_n "(cached) $ac_c" 1>&6
10640else
10641 if test "$cross_compiling" = yes; then
10642 ac_cv_sizeof_long_long=0
10643else
10644 cat > conftest.$ac_ext <<EOF
10645#line 10646 "configure"
10646#include "confdefs.h"
10647#include <stdio.h>
10648#include <sys/types.h>
10649main()
10650{
10651 FILE *f=fopen("conftestval", "w");
10652 if (!f) exit(1);
10653 fprintf(f, "%d\n", sizeof(long long));
10654 exit(0);
10655}
10656EOF
10657if { (eval echo configure:10658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10658then
10659 ac_cv_sizeof_long_long=`cat conftestval`
10660else
10661 echo "configure: failed program was:" >&5
10662 cat conftest.$ac_ext >&5
10663 rm -fr conftest*
10664 ac_cv_sizeof_long_long=0
10665fi
10666rm -fr conftest*
10667fi
10668
10669fi
10670echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10671cat >> confdefs.h <<EOF
10672#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10673EOF
10674
10675
10676 if test "$ac_cv_sizeof_long_long" != "0"; then
10677 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10678 fi
10679 ;;
10680 * )
10681 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10682echo "configure:10683: checking size of long long" >&5
10683if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10684 echo $ac_n "(cached) $ac_c" 1>&6
10685else
10686 if test "$cross_compiling" = yes; then
10687 ac_cv_sizeof_long_long=0
10688else
10689 cat > conftest.$ac_ext <<EOF
10690#line 10691 "configure"
10691#include "confdefs.h"
10692#include <stdio.h>
10693#include <sys/types.h>
10694main()
10695{
10696 FILE *f=fopen("conftestval", "w");
10697 if (!f) exit(1);
10698 fprintf(f, "%d\n", sizeof(long long));
10699 exit(0);
10700}
10701EOF
10702if { (eval echo configure:10703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10703then
10704 ac_cv_sizeof_long_long=`cat conftestval`
10705else
10706 echo "configure: failed program was:" >&5
10707 cat conftest.$ac_ext >&5
10708 rm -fr conftest*
10709 ac_cv_sizeof_long_long=0
10710fi
10711rm -fr conftest*
10712fi
10713
10714fi
10715echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10716cat >> confdefs.h <<EOF
10717#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10718EOF
10719
10720
10721esac
10722
10723echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10724echo "configure:10725: checking size of wchar_t" >&5
10725if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10726 echo $ac_n "(cached) $ac_c" 1>&6
10727else
10728
10729 if test "$cross_compiling" = yes; then
10730 wx_cv_sizeof_wchar_t=4
10731
10732else
10733 cat > conftest.$ac_ext <<EOF
10734#line 10735 "configure"
10735#include "confdefs.h"
10736
10737 #ifdef HAVE_WCHAR_H
10738 # ifdef __CYGWIN__
10739 # include <stddef.h>
10740 # endif
10741 # include <wchar.h>
10742 #endif
10743 #ifdef HAVE_STDLIB_H
10744 # include <stdlib.h>
10745 #endif
10746 #include <stdio.h>
10747 int main()
10748 {
10749 FILE *f=fopen("conftestval", "w");
10750 if (!f) exit(1);
10751 fprintf(f, "%i", sizeof(wchar_t));
10752 exit(0);
10753 }
10754
10755EOF
10756if { (eval echo configure:10757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10757then
10758 wx_cv_sizeof_wchar_t=`cat conftestval`
10759else
10760 echo "configure: failed program was:" >&5
10761 cat conftest.$ac_ext >&5
10762 rm -fr conftest*
10763 wx_cv_sizeof_wchar_t=0
10764fi
10765rm -fr conftest*
10766fi
10767
10768
10769fi
10770
10771echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10772
10773cat >> confdefs.h <<EOF
10774#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10775EOF
10776
10777
10778# Check whether --enable-largefile or --disable-largefile was given.
10779if test "${enable_largefile+set}" = set; then
10780 enableval="$enable_largefile"
10781 :
10782fi
10783
10784if test "$enable_largefile" != no; then
10785 wx_largefile=no
10786
10787 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10788echo "configure:10789: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10789if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10790 echo $ac_n "(cached) $ac_c" 1>&6
10791else
10792
10793 cat > conftest.$ac_ext <<EOF
10794#line 10795 "configure"
10795#include "confdefs.h"
10796#define _FILE_OFFSET_BITS 64
10797 #include <sys/types.h>
10798int main() {
10799typedef struct {
10800 unsigned int field: sizeof(off_t) == 8;
10801} wxlf;
10802
10803; return 0; }
10804EOF
10805if { (eval echo configure:10806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10806 rm -rf conftest*
10807 ac_cv_sys_file_offset_bits=64
10808else
10809 echo "configure: failed program was:" >&5
10810 cat conftest.$ac_ext >&5
10811 rm -rf conftest*
10812 ac_cv_sys_file_offset_bits=no
10813fi
10814rm -f conftest*
10815
10816
10817fi
10818
10819echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10820
10821 if test "$ac_cv_sys_file_offset_bits" != no; then
10822 wx_largefile=yes
10823 cat >> confdefs.h <<EOF
10824#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10825EOF
10826
10827 fi
10828
10829 if test "x$wx_largefile" != "xyes"; then
10830
10831 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10832echo "configure:10833: checking for _LARGE_FILES value needed for large files" >&5
10833if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10834 echo $ac_n "(cached) $ac_c" 1>&6
10835else
10836
10837 cat > conftest.$ac_ext <<EOF
10838#line 10839 "configure"
10839#include "confdefs.h"
10840#define _LARGE_FILES 1
10841 #include <sys/types.h>
10842int main() {
10843typedef struct {
10844 unsigned int field: sizeof(off_t) == 8;
10845} wxlf;
10846
10847; return 0; }
10848EOF
10849if { (eval echo configure:10850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10850 rm -rf conftest*
10851 ac_cv_sys_large_files=1
10852else
10853 echo "configure: failed program was:" >&5
10854 cat conftest.$ac_ext >&5
10855 rm -rf conftest*
10856 ac_cv_sys_large_files=no
10857fi
10858rm -f conftest*
10859
10860
10861fi
10862
10863echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10864
10865 if test "$ac_cv_sys_large_files" != no; then
10866 wx_largefile=yes
10867 cat >> confdefs.h <<EOF
10868#define _LARGE_FILES $ac_cv_sys_large_files
10869EOF
10870
10871 fi
10872
10873 fi
10874
10875 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10876echo "configure:10877: checking if large file support is available" >&5
10877 if test "x$wx_largefile" = "xyes"; then
10878 cat >> confdefs.h <<\EOF
10879#define HAVE_LARGEFILE_SUPPORT 1
10880EOF
10881
10882 fi
10883 echo "$ac_t""$wx_largefile" 1>&6
10884fi
10885
10886
10887if test "x$wx_largefile" = "xyes"; then
10888 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10889 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
10890 else
10891 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
10892 fi
10893 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
10894fi
10895
10896echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10897echo "configure:10898: checking whether byte ordering is bigendian" >&5
10898if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10899 echo $ac_n "(cached) $ac_c" 1>&6
10900else
10901 ac_cv_c_bigendian=unknown
10902# See if sys/param.h defines the BYTE_ORDER macro.
10903cat > conftest.$ac_ext <<EOF
10904#line 10905 "configure"
10905#include "confdefs.h"
10906#include <sys/types.h>
10907#include <sys/param.h>
10908int main() {
10909
10910#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10911 bogus endian macros
10912#endif
10913; return 0; }
10914EOF
10915if { (eval echo configure:10916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10916 rm -rf conftest*
10917 # It does; now see whether it defined to BIG_ENDIAN or not.
10918cat > conftest.$ac_ext <<EOF
10919#line 10920 "configure"
10920#include "confdefs.h"
10921#include <sys/types.h>
10922#include <sys/param.h>
10923int main() {
10924
10925#if BYTE_ORDER != BIG_ENDIAN
10926 not big endian
10927#endif
10928; return 0; }
10929EOF
10930if { (eval echo configure:10931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10931 rm -rf conftest*
10932 ac_cv_c_bigendian=yes
10933else
10934 echo "configure: failed program was:" >&5
10935 cat conftest.$ac_ext >&5
10936 rm -rf conftest*
10937 ac_cv_c_bigendian=no
10938fi
10939rm -f conftest*
10940else
10941 echo "configure: failed program was:" >&5
10942 cat conftest.$ac_ext >&5
10943fi
10944rm -f conftest*
10945if test $ac_cv_c_bigendian = unknown; then
10946if test "$cross_compiling" = yes; then
10947 ac_cv_c_bigendian=unknown
10948else
10949 cat > conftest.$ac_ext <<EOF
10950#line 10951 "configure"
10951#include "confdefs.h"
10952main () {
10953 /* Are we little or big endian? From Harbison&Steele. */
10954 union
10955 {
10956 long l;
10957 char c[sizeof (long)];
10958 } u;
10959 u.l = 1;
10960 exit (u.c[sizeof (long) - 1] == 1);
10961}
10962EOF
10963if { (eval echo configure:10964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10964then
10965 ac_cv_c_bigendian=no
10966else
10967 echo "configure: failed program was:" >&5
10968 cat conftest.$ac_ext >&5
10969 rm -fr conftest*
10970 ac_cv_c_bigendian=yes
10971fi
10972rm -fr conftest*
10973fi
10974
10975fi
10976fi
10977
10978echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10979if test $ac_cv_c_bigendian = unknown; then
10980 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
10981fi
10982if test $ac_cv_c_bigendian = yes; then
10983 cat >> confdefs.h <<\EOF
10984#define WORDS_BIGENDIAN 1
10985EOF
10986
10987fi
10988
10989
10990echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
10991echo "configure:10992: checking how to run the C++ preprocessor" >&5
10992if test -z "$CXXCPP"; then
10993if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
10994 echo $ac_n "(cached) $ac_c" 1>&6
10995else
10996 ac_ext=C
10997# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10998ac_cpp='$CXXCPP $CPPFLAGS'
10999ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11000ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11001cross_compiling=$ac_cv_prog_cxx_cross
11002 CXXCPP="${CXX-g++} -E"
11003 cat > conftest.$ac_ext <<EOF
11004#line 11005 "configure"
11005#include "confdefs.h"
11006#include <stdlib.h>
11007EOF
11008ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11009{ (eval echo configure:11010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11010ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11011if test -z "$ac_err"; then
11012 :
11013else
11014 echo "$ac_err" >&5
11015 echo "configure: failed program was:" >&5
11016 cat conftest.$ac_ext >&5
11017 rm -rf conftest*
11018 CXXCPP=/lib/cpp
11019fi
11020rm -f conftest*
11021 ac_cv_prog_CXXCPP="$CXXCPP"
11022ac_ext=C
11023# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11024ac_cpp='$CXXCPP $CPPFLAGS'
11025ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11026ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11027cross_compiling=$ac_cv_prog_cxx_cross
11028fi
11029fi
11030CXXCPP="$ac_cv_prog_CXXCPP"
11031echo "$ac_t""$CXXCPP" 1>&6
11032
11033
11034 if test "$cross_compiling" = "yes"; then
11035 cat >> confdefs.h <<\EOF
11036#define wxUSE_IOSTREAMH 1
11037EOF
11038
11039 else
11040
11041 ac_ext=C
11042# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11043ac_cpp='$CXXCPP $CPPFLAGS'
11044ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11045ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11046cross_compiling=$ac_cv_prog_cxx_cross
11047
11048
11049 for ac_hdr in iostream
11050do
11051ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11052echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11053echo "configure:11054: checking for $ac_hdr" >&5
11054if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11055 echo $ac_n "(cached) $ac_c" 1>&6
11056else
11057 cat > conftest.$ac_ext <<EOF
11058#line 11059 "configure"
11059#include "confdefs.h"
11060#include <$ac_hdr>
11061EOF
11062ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11063{ (eval echo configure:11064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11064ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11065if test -z "$ac_err"; then
11066 rm -rf conftest*
11067 eval "ac_cv_header_$ac_safe=yes"
11068else
11069 echo "$ac_err" >&5
11070 echo "configure: failed program was:" >&5
11071 cat conftest.$ac_ext >&5
11072 rm -rf conftest*
11073 eval "ac_cv_header_$ac_safe=no"
11074fi
11075rm -f conftest*
11076fi
11077if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11078 echo "$ac_t""yes" 1>&6
11079 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11080 cat >> confdefs.h <<EOF
11081#define $ac_tr_hdr 1
11082EOF
11083
11084else
11085 echo "$ac_t""no" 1>&6
11086fi
11087done
11088
11089
11090 if test "$ac_cv_header_iostream" = "yes" ; then
11091 :
11092 else
11093 cat >> confdefs.h <<\EOF
11094#define wxUSE_IOSTREAMH 1
11095EOF
11096
11097 fi
11098
11099 ac_ext=c
11100# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11101ac_cpp='$CPP $CPPFLAGS'
11102ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11103ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11104cross_compiling=$ac_cv_prog_cc_cross
11105
11106 fi
11107
11108
11109
11110 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
11111echo "configure:11112: checking if C++ compiler supports bool" >&5
11112if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11113 echo $ac_n "(cached) $ac_c" 1>&6
11114else
11115
11116
11117 ac_ext=C
11118# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11119ac_cpp='$CXXCPP $CPPFLAGS'
11120ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11121ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11122cross_compiling=$ac_cv_prog_cxx_cross
11123
11124
11125 cat > conftest.$ac_ext <<EOF
11126#line 11127 "configure"
11127#include "confdefs.h"
11128
11129
11130int main() {
11131
11132 bool b = true;
11133
11134 return 0;
11135
11136; return 0; }
11137EOF
11138if { (eval echo configure:11139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11139 rm -rf conftest*
11140
11141 wx_cv_cpp_bool=yes
11142
11143else
11144 echo "configure: failed program was:" >&5
11145 cat conftest.$ac_ext >&5
11146 rm -rf conftest*
11147
11148 wx_cv_cpp_bool=no
11149
11150
11151fi
11152rm -f conftest*
11153
11154 ac_ext=c
11155# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11156ac_cpp='$CPP $CPPFLAGS'
11157ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11158ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11159cross_compiling=$ac_cv_prog_cc_cross
11160
11161
11162fi
11163
11164echo "$ac_t""$wx_cv_cpp_bool" 1>&6
11165
11166 if test "$wx_cv_cpp_bool" = "yes"; then
11167 cat >> confdefs.h <<\EOF
11168#define HAVE_BOOL 1
11169EOF
11170
11171 fi
11172
11173
11174
11175 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
11176echo "configure:11177: checking if C++ compiler supports the explicit keyword" >&5
11177if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11178 echo $ac_n "(cached) $ac_c" 1>&6
11179else
11180
11181
11182 ac_ext=C
11183# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11184ac_cpp='$CXXCPP $CPPFLAGS'
11185ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11186ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11187cross_compiling=$ac_cv_prog_cxx_cross
11188
11189
11190 cat > conftest.$ac_ext <<EOF
11191#line 11192 "configure"
11192#include "confdefs.h"
11193
11194 class Foo { public: explicit Foo(int) {} };
11195
11196int main() {
11197
11198 return 0;
11199
11200; return 0; }
11201EOF
11202if { (eval echo configure:11203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11203 rm -rf conftest*
11204
11205 cat > conftest.$ac_ext <<EOF
11206#line 11207 "configure"
11207#include "confdefs.h"
11208
11209 class Foo { public: explicit Foo(int) {} };
11210 static void TakeFoo(const Foo& foo) { }
11211
11212int main() {
11213
11214 TakeFoo(17);
11215 return 0;
11216
11217; return 0; }
11218EOF
11219if { (eval echo configure:11220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11220 rm -rf conftest*
11221 wx_cv_explicit=no
11222else
11223 echo "configure: failed program was:" >&5
11224 cat conftest.$ac_ext >&5
11225 rm -rf conftest*
11226 wx_cv_explicit=yes
11227
11228fi
11229rm -f conftest*
11230
11231else
11232 echo "configure: failed program was:" >&5
11233 cat conftest.$ac_ext >&5
11234 rm -rf conftest*
11235 wx_cv_explicit=no
11236
11237fi
11238rm -f conftest*
11239
11240 ac_ext=c
11241# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11242ac_cpp='$CPP $CPPFLAGS'
11243ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11244ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11245cross_compiling=$ac_cv_prog_cc_cross
11246
11247
11248fi
11249
11250echo "$ac_t""$wx_cv_explicit" 1>&6
11251
11252 if test "$wx_cv_explicit" = "yes"; then
11253 cat >> confdefs.h <<\EOF
11254#define HAVE_EXPLICIT 1
11255EOF
11256
11257 fi
11258
11259
11260
11261SEARCH_INCLUDE="\
11262 /usr/local/include \
11263 \
11264 /usr/Motif-1.2/include \
11265 /usr/Motif-2.1/include \
11266 \
11267 /usr/include/Motif1.2 \
11268 /opt/xpm/include/X11 \
11269 /opt/GBxpm/include/ \
11270 /opt/GBxpm/X11/include/ \
11271 \
11272 /usr/Motif1.2/include \
11273 /usr/dt/include \
11274 /usr/openwin/include \
11275 \
11276 /usr/include/Xm \
11277 \
11278 /usr/X11R6/include \
11279 /usr/X11R6.4/include \
11280 /usr/X11R5/include \
11281 /usr/X11R4/include \
11282 \
11283 /usr/include/X11R6 \
11284 /usr/include/X11R5 \
11285 /usr/include/X11R4 \
11286 \
11287 /usr/local/X11R6/include \
11288 /usr/local/X11R5/include \
11289 /usr/local/X11R4/include \
11290 \
11291 /usr/local/include/X11R6 \
11292 /usr/local/include/X11R5 \
11293 /usr/local/include/X11R4 \
11294 \
11295 /usr/X11/include \
11296 /usr/include/X11 \
11297 /usr/local/X11/include \
11298 /usr/local/include/X11 \
11299 \
11300 /usr/X386/include \
11301 /usr/x386/include \
11302 /usr/XFree86/include/X11 \
11303 \
11304 X:/XFree86/include \
11305 X:/XFree86/include/X11 \
11306 \
11307 /usr/include/gtk \
11308 /usr/local/include/gtk \
11309 /usr/include/glib \
11310 /usr/local/include/glib \
11311 \
11312 /usr/include/qt \
11313 /usr/local/include/qt \
11314 \
11315 /usr/include/windows \
11316 /usr/include/wine \
11317 /usr/local/include/wine \
11318 \
11319 /usr/unsupported/include \
11320 /usr/athena/include \
11321 /usr/local/x11r5/include \
11322 /usr/lpp/Xamples/include \
11323 \
11324 /usr/openwin/share/include \
11325 /usr/include"
11326
11327SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11328
11329
11330cat > confcache <<\EOF
11331# This file is a shell script that caches the results of configure
11332# tests run on this system so they can be shared between configure
11333# scripts and configure runs. It is not useful on other systems.
11334# If it contains results you don't want to keep, you may remove or edit it.
11335#
11336# By default, configure uses ./config.cache as the cache file,
11337# creating it if it does not exist already. You can give configure
11338# the --cache-file=FILE option to use a different cache file; that is
11339# what configure does when it calls configure scripts in
11340# subdirectories, so they share the cache.
11341# Giving --cache-file=/dev/null disables caching, for debugging configure.
11342# config.status only pays attention to the cache file if you give it the
11343# --recheck option to rerun configure.
11344#
11345EOF
11346# The following way of writing the cache mishandles newlines in values,
11347# but we know of no workaround that is simple, portable, and efficient.
11348# So, don't put newlines in cache variables' values.
11349# Ultrix sh set writes to stderr and can't be redirected directly,
11350# and sets the high bit in the cache file unless we assign to the vars.
11351(set) 2>&1 |
11352 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11353 *ac_space=\ *)
11354 # `set' does not quote correctly, so add quotes (double-quote substitution
11355 # turns \\\\ into \\, and sed turns \\ into \).
11356 sed -n \
11357 -e "s/'/'\\\\''/g" \
11358 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11359 ;;
11360 *)
11361 # `set' quotes correctly as required by POSIX, so do not add quotes.
11362 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11363 ;;
11364 esac >> confcache
11365if cmp -s $cache_file confcache; then
11366 :
11367else
11368 if test -w $cache_file; then
11369 echo "updating cache $cache_file"
11370 cat confcache > $cache_file
11371 else
11372 echo "not updating unwritable cache $cache_file"
11373 fi
11374fi
11375rm -f confcache
11376
11377
11378if test "$USE_LINUX" = 1; then
11379 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
11380echo "configure:11381: checking for glibc 2.1 or later" >&5
11381if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11382 echo $ac_n "(cached) $ac_c" 1>&6
11383else
11384
11385 cat > conftest.$ac_ext <<EOF
11386#line 11387 "configure"
11387#include "confdefs.h"
11388#include <features.h>
11389int main() {
11390
11391 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11392 #error not glibc2.1
11393 #endif
11394
11395; return 0; }
11396EOF
11397if { (eval echo configure:11398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11398 rm -rf conftest*
11399
11400 wx_cv_lib_glibc21=yes
11401
11402else
11403 echo "configure: failed program was:" >&5
11404 cat conftest.$ac_ext >&5
11405 rm -rf conftest*
11406
11407 wx_cv_lib_glibc21=no
11408
11409
11410fi
11411rm -f conftest*
11412
11413fi
11414
11415echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11416 if test "$wx_cv_lib_glibc21" = "yes"; then
11417 cat >> confdefs.h <<\EOF
11418#define wxHAVE_GLIBC2 1
11419EOF
11420
11421 fi
11422fi
11423
11424if test "x$wx_cv_lib_glibc21" = "xyes"; then
11425 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
11426 cat >> confdefs.h <<\EOF
11427#define _GNU_SOURCE 1
11428EOF
11429
11430 fi
11431fi
11432
11433
11434
11435REGEX_INCLUDE=
11436if test "$wxUSE_REGEX" != "no"; then
11437 cat >> confdefs.h <<\EOF
11438#define wxUSE_REGEX 1
11439EOF
11440
11441
11442 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11443 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11444echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11445echo "configure:11446: checking for regex.h" >&5
11446if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11447 echo $ac_n "(cached) $ac_c" 1>&6
11448else
11449 cat > conftest.$ac_ext <<EOF
11450#line 11451 "configure"
11451#include "confdefs.h"
11452#include <regex.h>
11453EOF
11454ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11455{ (eval echo configure:11456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11456ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11457if test -z "$ac_err"; then
11458 rm -rf conftest*
11459 eval "ac_cv_header_$ac_safe=yes"
11460else
11461 echo "$ac_err" >&5
11462 echo "configure: failed program was:" >&5
11463 cat conftest.$ac_ext >&5
11464 rm -rf conftest*
11465 eval "ac_cv_header_$ac_safe=no"
11466fi
11467rm -f conftest*
11468fi
11469if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11470 echo "$ac_t""yes" 1>&6
11471 for ac_func in regcomp
11472do
11473echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11474echo "configure:11475: checking for $ac_func" >&5
11475if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11476 echo $ac_n "(cached) $ac_c" 1>&6
11477else
11478 cat > conftest.$ac_ext <<EOF
11479#line 11480 "configure"
11480#include "confdefs.h"
11481/* System header to define __stub macros and hopefully few prototypes,
11482 which can conflict with char $ac_func(); below. */
11483#include <assert.h>
11484/* Override any gcc2 internal prototype to avoid an error. */
11485/* We use char because int might match the return type of a gcc2
11486 builtin and then its argument prototype would still apply. */
11487char $ac_func();
11488
11489int main() {
11490
11491/* The GNU C library defines this for functions which it implements
11492 to always fail with ENOSYS. Some functions are actually named
11493 something starting with __ and the normal name is an alias. */
11494#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11495choke me
11496#else
11497$ac_func();
11498#endif
11499
11500; return 0; }
11501EOF
11502if { (eval echo configure:11503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11503 rm -rf conftest*
11504 eval "ac_cv_func_$ac_func=yes"
11505else
11506 echo "configure: failed program was:" >&5
11507 cat conftest.$ac_ext >&5
11508 rm -rf conftest*
11509 eval "ac_cv_func_$ac_func=no"
11510fi
11511rm -f conftest*
11512fi
11513
11514if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11515 echo "$ac_t""yes" 1>&6
11516 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11517 cat >> confdefs.h <<EOF
11518#define $ac_tr_func 1
11519EOF
11520
11521else
11522 echo "$ac_t""no" 1>&6
11523fi
11524done
11525
11526else
11527 echo "$ac_t""no" 1>&6
11528fi
11529
11530
11531 if test "x$ac_cv_func_regcomp" != "xyes"; then
11532 if test "$wxUSE_REGEX" = "sys" ; then
11533 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11534 else
11535 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11536 wxUSE_REGEX=builtin
11537 fi
11538 else
11539 wxUSE_REGEX=sys
11540 fi
11541 fi
11542
11543 if test "$wxUSE_REGEX" = "builtin" ; then
11544 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11545 fi
11546fi
11547
11548
11549ZLIB_INCLUDE=
11550ZLIB_LINK=
11551if test "$wxUSE_ZLIB" != "no" ; then
11552 cat >> confdefs.h <<\EOF
11553#define wxUSE_ZLIB 1
11554EOF
11555
11556
11557 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11558 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11559echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11560echo "configure:11561: checking for zlib.h" >&5
11561if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11562 echo $ac_n "(cached) $ac_c" 1>&6
11563else
11564 cat > conftest.$ac_ext <<EOF
11565#line 11566 "configure"
11566#include "confdefs.h"
11567#include <zlib.h>
11568EOF
11569ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11570{ (eval echo configure:11571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11571ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11572if test -z "$ac_err"; then
11573 rm -rf conftest*
11574 eval "ac_cv_header_$ac_safe=yes"
11575else
11576 echo "$ac_err" >&5
11577 echo "configure: failed program was:" >&5
11578 cat conftest.$ac_ext >&5
11579 rm -rf conftest*
11580 eval "ac_cv_header_$ac_safe=no"
11581fi
11582rm -f conftest*
11583fi
11584if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11585 echo "$ac_t""yes" 1>&6
11586 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11587echo "configure:11588: checking for deflate in -lz" >&5
11588ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11589if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11590 echo $ac_n "(cached) $ac_c" 1>&6
11591else
11592 ac_save_LIBS="$LIBS"
11593LIBS="-lz $LIBS"
11594cat > conftest.$ac_ext <<EOF
11595#line 11596 "configure"
11596#include "confdefs.h"
11597/* Override any gcc2 internal prototype to avoid an error. */
11598/* We use char because int might match the return type of a gcc2
11599 builtin and then its argument prototype would still apply. */
11600char deflate();
11601
11602int main() {
11603deflate()
11604; return 0; }
11605EOF
11606if { (eval echo configure:11607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11607 rm -rf conftest*
11608 eval "ac_cv_lib_$ac_lib_var=yes"
11609else
11610 echo "configure: failed program was:" >&5
11611 cat conftest.$ac_ext >&5
11612 rm -rf conftest*
11613 eval "ac_cv_lib_$ac_lib_var=no"
11614fi
11615rm -f conftest*
11616LIBS="$ac_save_LIBS"
11617
11618fi
11619if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11620 echo "$ac_t""yes" 1>&6
11621 ZLIB_LINK=" -lz"
11622else
11623 echo "$ac_t""no" 1>&6
11624fi
11625
11626else
11627 echo "$ac_t""no" 1>&6
11628fi
11629
11630
11631 if test "x$ZLIB_LINK" = "x" ; then
11632 if test "$wxUSE_ZLIB" = "sys" ; then
11633 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11634 else
11635 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
11636 wxUSE_ZLIB=builtin
11637 fi
11638 else
11639 wxUSE_ZLIB=sys
11640 fi
11641 fi
11642
11643 if test "$wxUSE_ZLIB" = "builtin" ; then
11644 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11645 fi
11646fi
11647
11648
11649PNG_INCLUDE=
11650PNG_LINK=
11651if test "$wxUSE_LIBPNG" != "no" ; then
11652 cat >> confdefs.h <<\EOF
11653#define wxUSE_LIBPNG 1
11654EOF
11655
11656
11657 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11658 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11659 wxUSE_LIBPNG=sys
11660 fi
11661
11662 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11663 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11664 wxUSE_LIBPNG=builtin
11665 fi
11666
11667 if test "$wxUSE_MGL" != 1 ; then
11668 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11669 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11670echo $ac_n "checking for png.h""... $ac_c" 1>&6
11671echo "configure:11672: checking for png.h" >&5
11672if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11673 echo $ac_n "(cached) $ac_c" 1>&6
11674else
11675 cat > conftest.$ac_ext <<EOF
11676#line 11677 "configure"
11677#include "confdefs.h"
11678#include <png.h>
11679EOF
11680ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11681{ (eval echo configure:11682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11682ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11683if test -z "$ac_err"; then
11684 rm -rf conftest*
11685 eval "ac_cv_header_$ac_safe=yes"
11686else
11687 echo "$ac_err" >&5
11688 echo "configure: failed program was:" >&5
11689 cat conftest.$ac_ext >&5
11690 rm -rf conftest*
11691 eval "ac_cv_header_$ac_safe=no"
11692fi
11693rm -f conftest*
11694fi
11695if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11696 echo "$ac_t""yes" 1>&6
11697 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11698echo "configure:11699: checking for png_check_sig in -lpng" >&5
11699ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11700if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11701 echo $ac_n "(cached) $ac_c" 1>&6
11702else
11703 ac_save_LIBS="$LIBS"
11704LIBS="-lpng -lz -lm $LIBS"
11705cat > conftest.$ac_ext <<EOF
11706#line 11707 "configure"
11707#include "confdefs.h"
11708/* Override any gcc2 internal prototype to avoid an error. */
11709/* We use char because int might match the return type of a gcc2
11710 builtin and then its argument prototype would still apply. */
11711char png_check_sig();
11712
11713int main() {
11714png_check_sig()
11715; return 0; }
11716EOF
11717if { (eval echo configure:11718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11718 rm -rf conftest*
11719 eval "ac_cv_lib_$ac_lib_var=yes"
11720else
11721 echo "configure: failed program was:" >&5
11722 cat conftest.$ac_ext >&5
11723 rm -rf conftest*
11724 eval "ac_cv_lib_$ac_lib_var=no"
11725fi
11726rm -f conftest*
11727LIBS="$ac_save_LIBS"
11728
11729fi
11730if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11731 echo "$ac_t""yes" 1>&6
11732 PNG_LINK=" -lpng"
11733else
11734 echo "$ac_t""no" 1>&6
11735fi
11736
11737
11738else
11739 echo "$ac_t""no" 1>&6
11740fi
11741
11742
11743 if test "x$PNG_LINK" = "x" ; then
11744 if test "$wxUSE_LIBPNG" = "sys" ; then
11745 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11746 else
11747 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
11748 wxUSE_LIBPNG=builtin
11749 fi
11750 else
11751 wxUSE_LIBPNG=yes
11752 fi
11753 fi
11754 fi
11755
11756 if test "$wxUSE_LIBPNG" = "builtin" ; then
11757 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11758 fi
11759
11760 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11761fi
11762
11763
11764JPEG_INCLUDE=
11765JPEG_LINK=
11766if test "$wxUSE_LIBJPEG" != "no" ; then
11767 cat >> confdefs.h <<\EOF
11768#define wxUSE_LIBJPEG 1
11769EOF
11770
11771
11772 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11773 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11774 wxUSE_LIBJPEG=sys
11775 fi
11776
11777 if test "$wxUSE_MGL" != 1 ; then
11778 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11779 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11780echo "configure:11781: checking for jpeglib.h" >&5
11781 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11782 echo $ac_n "(cached) $ac_c" 1>&6
11783else
11784 cat > conftest.$ac_ext <<EOF
11785#line 11786 "configure"
11786#include "confdefs.h"
11787
11788 #undef HAVE_STDLIB_H
11789 #include <stdio.h>
11790 #include <jpeglib.h>
11791
11792int main() {
11793
11794
11795; return 0; }
11796EOF
11797if { (eval echo configure:11798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11798 rm -rf conftest*
11799 ac_cv_header_jpeglib_h=yes
11800else
11801 echo "configure: failed program was:" >&5
11802 cat conftest.$ac_ext >&5
11803 rm -rf conftest*
11804 ac_cv_header_jpeglib_h=no
11805
11806fi
11807rm -f conftest*
11808
11809fi
11810
11811 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
11812
11813 if test "$ac_cv_header_jpeglib_h" = "yes"; then
11814 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11815echo "configure:11816: checking for jpeg_read_header in -ljpeg" >&5
11816ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11817if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11818 echo $ac_n "(cached) $ac_c" 1>&6
11819else
11820 ac_save_LIBS="$LIBS"
11821LIBS="-ljpeg $LIBS"
11822cat > conftest.$ac_ext <<EOF
11823#line 11824 "configure"
11824#include "confdefs.h"
11825/* Override any gcc2 internal prototype to avoid an error. */
11826/* We use char because int might match the return type of a gcc2
11827 builtin and then its argument prototype would still apply. */
11828char jpeg_read_header();
11829
11830int main() {
11831jpeg_read_header()
11832; return 0; }
11833EOF
11834if { (eval echo configure:11835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11835 rm -rf conftest*
11836 eval "ac_cv_lib_$ac_lib_var=yes"
11837else
11838 echo "configure: failed program was:" >&5
11839 cat conftest.$ac_ext >&5
11840 rm -rf conftest*
11841 eval "ac_cv_lib_$ac_lib_var=no"
11842fi
11843rm -f conftest*
11844LIBS="$ac_save_LIBS"
11845
11846fi
11847if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11848 echo "$ac_t""yes" 1>&6
11849 JPEG_LINK=" -ljpeg"
11850else
11851 echo "$ac_t""no" 1>&6
11852fi
11853
11854 fi
11855
11856 if test "x$JPEG_LINK" = "x" ; then
11857 if test "$wxUSE_LIBJPEG" = "sys" ; then
11858 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
11859 else
11860 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
11861 wxUSE_LIBJPEG=builtin
11862 fi
11863 else
11864 wxUSE_LIBJPEG=sys
11865 fi
11866 fi
11867 fi
11868
11869 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11870 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11871 fi
11872fi
11873
11874
11875TIFF_INCLUDE=
11876TIFF_LINK=
11877if test "$wxUSE_LIBTIFF" != "no" ; then
11878 cat >> confdefs.h <<\EOF
11879#define wxUSE_LIBTIFF 1
11880EOF
11881
11882
11883 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
11884 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
11885echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
11886echo "configure:11887: checking for tiffio.h" >&5
11887if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11888 echo $ac_n "(cached) $ac_c" 1>&6
11889else
11890 cat > conftest.$ac_ext <<EOF
11891#line 11892 "configure"
11892#include "confdefs.h"
11893#include <tiffio.h>
11894EOF
11895ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11896{ (eval echo configure:11897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11897ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11898if test -z "$ac_err"; then
11899 rm -rf conftest*
11900 eval "ac_cv_header_$ac_safe=yes"
11901else
11902 echo "$ac_err" >&5
11903 echo "configure: failed program was:" >&5
11904 cat conftest.$ac_ext >&5
11905 rm -rf conftest*
11906 eval "ac_cv_header_$ac_safe=no"
11907fi
11908rm -f conftest*
11909fi
11910if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11911 echo "$ac_t""yes" 1>&6
11912 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
11913echo "configure:11914: checking for TIFFError in -ltiff" >&5
11914ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
11915if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11916 echo $ac_n "(cached) $ac_c" 1>&6
11917else
11918 ac_save_LIBS="$LIBS"
11919LIBS="-ltiff -lm $LIBS"
11920cat > conftest.$ac_ext <<EOF
11921#line 11922 "configure"
11922#include "confdefs.h"
11923/* Override any gcc2 internal prototype to avoid an error. */
11924/* We use char because int might match the return type of a gcc2
11925 builtin and then its argument prototype would still apply. */
11926char TIFFError();
11927
11928int main() {
11929TIFFError()
11930; return 0; }
11931EOF
11932if { (eval echo configure:11933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11933 rm -rf conftest*
11934 eval "ac_cv_lib_$ac_lib_var=yes"
11935else
11936 echo "configure: failed program was:" >&5
11937 cat conftest.$ac_ext >&5
11938 rm -rf conftest*
11939 eval "ac_cv_lib_$ac_lib_var=no"
11940fi
11941rm -f conftest*
11942LIBS="$ac_save_LIBS"
11943
11944fi
11945if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11946 echo "$ac_t""yes" 1>&6
11947 TIFF_LINK=" -ltiff"
11948else
11949 echo "$ac_t""no" 1>&6
11950fi
11951
11952
11953else
11954 echo "$ac_t""no" 1>&6
11955fi
11956
11957
11958 if test "x$TIFF_LINK" = "x" ; then
11959 if test "$wxUSE_LIBTIFF" = "sys" ; then
11960 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
11961 else
11962 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
11963 wxUSE_LIBTIFF=builtin
11964 fi
11965 else
11966 wxUSE_LIBTIFF=sys
11967 fi
11968 fi
11969
11970 if test "$wxUSE_LIBTIFF" = "builtin" ; then
11971 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11972 fi
11973fi
11974
11975
11976AFMINSTALL=
11977
11978TOOLKIT=
11979TOOLKIT_INCLUDE=
11980WIDGET_SET=
11981
11982if test "$USE_WIN32" = 1 ; then
11983 for ac_hdr in w32api.h
11984do
11985ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11986echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11987echo "configure:11988: checking for $ac_hdr" >&5
11988if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11989 echo $ac_n "(cached) $ac_c" 1>&6
11990else
11991 cat > conftest.$ac_ext <<EOF
11992#line 11993 "configure"
11993#include "confdefs.h"
11994#include <$ac_hdr>
11995EOF
11996ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11997{ (eval echo configure:11998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11998ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11999if test -z "$ac_err"; then
12000 rm -rf conftest*
12001 eval "ac_cv_header_$ac_safe=yes"
12002else
12003 echo "$ac_err" >&5
12004 echo "configure: failed program was:" >&5
12005 cat conftest.$ac_ext >&5
12006 rm -rf conftest*
12007 eval "ac_cv_header_$ac_safe=no"
12008fi
12009rm -f conftest*
12010fi
12011if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12012 echo "$ac_t""yes" 1>&6
12013 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12014 cat >> confdefs.h <<EOF
12015#define $ac_tr_hdr 1
12016EOF
12017
12018else
12019 echo "$ac_t""no" 1>&6
12020fi
12021done
12022
12023 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12024echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12025echo "configure:12026: checking for windows.h" >&5
12026if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12027 echo $ac_n "(cached) $ac_c" 1>&6
12028else
12029 cat > conftest.$ac_ext <<EOF
12030#line 12031 "configure"
12031#include "confdefs.h"
12032#include <windows.h>
12033EOF
12034ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12035{ (eval echo configure:12036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12036ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12037if test -z "$ac_err"; then
12038 rm -rf conftest*
12039 eval "ac_cv_header_$ac_safe=yes"
12040else
12041 echo "$ac_err" >&5
12042 echo "configure: failed program was:" >&5
12043 cat conftest.$ac_ext >&5
12044 rm -rf conftest*
12045 eval "ac_cv_header_$ac_safe=no"
12046fi
12047rm -f conftest*
12048fi
12049if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12050 echo "$ac_t""yes" 1>&6
12051 :
12052else
12053 echo "$ac_t""no" 1>&6
12054
12055 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12056
12057fi
12058
12059
12060 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
12061echo "configure:12062: checking if w32api has good enough MSIE support" >&5
12062if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12063 echo $ac_n "(cached) $ac_c" 1>&6
12064else
12065
12066 cat > conftest.$ac_ext <<EOF
12067#line 12068 "configure"
12068#include "confdefs.h"
12069#include <w32api.h>
12070int main() {
12071
12072 #define wxCHECK_W32API_VERSION( major, minor ) \
12073 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12074 && ( ( __W32API_MAJOR_VERSION > (major) ) \
12075 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12076
12077 #if !wxCHECK_W32API_VERSION(1,1)
12078 #error You need w32api 1.1 or newer
12079 #endif
12080
12081; return 0; }
12082EOF
12083if { (eval echo configure:12084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12084 rm -rf conftest*
12085
12086 wx_cv_w32api_win32_ie=yes
12087
12088else
12089 echo "configure: failed program was:" >&5
12090 cat conftest.$ac_ext >&5
12091 rm -rf conftest*
12092
12093 wx_cv_w32api_win32_ie=no
12094
12095fi
12096rm -f conftest*
12097
12098fi
12099
12100echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
12101 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12102 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12103 fi
12104
12105 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12106
12107 case "${host}" in
12108 *-*-cygwin* )
12109 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12110 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
12111 esac
12112
12113 if test "$wxUSE_ODBC" = "yes" ; then
12114 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12115 fi
12116
12117 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12118 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
12119fi
12120
12121if test "$USE_DARWIN" = 1; then
12122 if test "$wxUSE_PRECOMP" = "yes"; then
12123 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12124 else
12125 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12126 fi
12127fi
12128
12129if test "$wxUSE_GUI" = "yes"; then
12130 USE_GUI=1
12131
12132 GUI_TK_LIBRARY=
12133
12134 WXGTK12=
12135 WXGTK127=
12136 WXGTK20=
12137
12138 if test "$wxUSE_MSW" = 1 ; then
12139 TOOLKIT=MSW
12140 GUIDIST=MSW_DIST
12141
12142 case "${host}" in
12143 *-*-mingw32* )
12144 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
12145 esac
12146 fi
12147
12148 if test "$wxUSE_GTK" = 1; then
12149 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
12150echo "configure:12151: checking for GTK+ version" >&5
12151
12152 gtk_version_cached=1
12153 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12154 echo $ac_n "(cached) $ac_c" 1>&6
12155else
12156
12157 gtk_version_cached=0
12158 echo "$ac_t""" 1>&6
12159
12160 GTK_MODULES=
12161 if test "$wxUSE_THREADS" = "yes"; then
12162 GTK_MODULES=gthread
12163 fi
12164
12165 wx_cv_lib_gtk=
12166 if test "x$wxUSE_GTK2" = "xyes"; then
12167 # Check whether --enable-gtktest or --disable-gtktest was given.
12168if test "${enable_gtktest+set}" = set; then
12169 enableval="$enable_gtktest"
12170 :
12171else
12172 enable_gtktest=yes
12173fi
12174
12175
12176 pkg_config_args=gtk+-2.0
12177 for module in . $GTK_MODULES
12178 do
12179 case "$module" in
12180 gthread)
12181 pkg_config_args="$pkg_config_args gthread-2.0"
12182 ;;
12183 esac
12184 done
12185
12186 no_gtk=""
12187
12188 # Extract the first word of "pkg-config", so it can be a program name with args.
12189set dummy pkg-config; ac_word=$2
12190echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12191echo "configure:12192: checking for $ac_word" >&5
12192if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12193 echo $ac_n "(cached) $ac_c" 1>&6
12194else
12195 case "$PKG_CONFIG" in
12196 /*)
12197 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12198 ;;
12199 ?:/*)
12200 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12201 ;;
12202 *)
12203 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12204 ac_dummy="$PATH"
12205 for ac_dir in $ac_dummy; do
12206 test -z "$ac_dir" && ac_dir=.
12207 if test -f $ac_dir/$ac_word; then
12208 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12209 break
12210 fi
12211 done
12212 IFS="$ac_save_ifs"
12213 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12214 ;;
12215esac
12216fi
12217PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12218if test -n "$PKG_CONFIG"; then
12219 echo "$ac_t""$PKG_CONFIG" 1>&6
12220else
12221 echo "$ac_t""no" 1>&6
12222fi
12223
12224
12225 if test x$PKG_CONFIG != xno ; then
12226 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12227 :
12228 else
12229 echo *** pkg-config too old; version 0.7 or better required.
12230 no_gtk=yes
12231 PKG_CONFIG=no
12232 fi
12233 else
12234 no_gtk=yes
12235 fi
12236
12237 min_gtk_version=2.0.0
12238 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
12239echo "configure:12240: checking for GTK+ - version >= $min_gtk_version" >&5
12240
12241 if test x$PKG_CONFIG != xno ; then
12242 ## don't try to run the test against uninstalled libtool libs
12243 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12244 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12245 enable_gtktest=no
12246 fi
12247
12248 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12249 :
12250 else
12251 no_gtk=yes
12252 fi
12253 fi
12254
12255 if test x"$no_gtk" = x ; then
12256 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12257 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12258 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12259 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12260 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12261 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12262 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12263 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12264 if test "x$enable_gtktest" = "xyes" ; then
12265 ac_save_CFLAGS="$CFLAGS"
12266 ac_save_LIBS="$LIBS"
12267 CFLAGS="$CFLAGS $GTK_CFLAGS"
12268 LIBS="$GTK_LIBS $LIBS"
12269 rm -f conf.gtktest
12270 if test "$cross_compiling" = yes; then
12271 echo $ac_n "cross compiling; assumed OK... $ac_c"
12272else
12273 cat > conftest.$ac_ext <<EOF
12274#line 12275 "configure"
12275#include "confdefs.h"
12276
12277#include <gtk/gtk.h>
12278#include <stdio.h>
12279#include <stdlib.h>
12280
12281int
12282main ()
12283{
12284 int major, minor, micro;
12285 char *tmp_version;
12286
12287 system ("touch conf.gtktest");
12288
12289 /* HP/UX 9 (%@#!) writes to sscanf strings */
12290 tmp_version = g_strdup("$min_gtk_version");
12291 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12292 printf("%s, bad version string\n", "$min_gtk_version");
12293 exit(1);
12294 }
12295
12296 if ((gtk_major_version != $gtk_config_major_version) ||
12297 (gtk_minor_version != $gtk_config_minor_version) ||
12298 (gtk_micro_version != $gtk_config_micro_version))
12299 {
12300 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12301 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12302 gtk_major_version, gtk_minor_version, gtk_micro_version);
12303 printf ("*** was found! If pkg-config was correct, then it is best\n");
12304 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12305 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12306 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12307 printf("*** required on your system.\n");
12308 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12309 printf("*** to point to the correct configuration files\n");
12310 }
12311 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12312 (gtk_minor_version != GTK_MINOR_VERSION) ||
12313 (gtk_micro_version != GTK_MICRO_VERSION))
12314 {
12315 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12316 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12317 printf("*** library (version %d.%d.%d)\n",
12318 gtk_major_version, gtk_minor_version, gtk_micro_version);
12319 }
12320 else
12321 {
12322 if ((gtk_major_version > major) ||
12323 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12324 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12325 {
12326 return 0;
12327 }
12328 else
12329 {
12330 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12331 gtk_major_version, gtk_minor_version, gtk_micro_version);
12332 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12333 major, minor, micro);
12334 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12335 printf("***\n");
12336 printf("*** If you have already installed a sufficiently new version, this error\n");
12337 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12338 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12339 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12340 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12341 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12342 printf("*** so that the correct libraries are found at run-time))\n");
12343 }
12344 }
12345 return 1;
12346}
12347
12348EOF
12349if { (eval echo configure:12350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12350then
12351 :
12352else
12353 echo "configure: failed program was:" >&5
12354 cat conftest.$ac_ext >&5
12355 rm -fr conftest*
12356 no_gtk=yes
12357fi
12358rm -fr conftest*
12359fi
12360
12361 CFLAGS="$ac_save_CFLAGS"
12362 LIBS="$ac_save_LIBS"
12363 fi
12364 fi
12365 if test "x$no_gtk" = x ; then
12366 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12367 wx_cv_lib_gtk=2.0
12368 else
12369 echo "$ac_t""no" 1>&6
12370 if test "$PKG_CONFIG" = "no" ; then
12371 echo "*** A new enough version of pkg-config was not found."
12372 echo "*** See http://pkgconfig.sourceforge.net"
12373 else
12374 if test -f conf.gtktest ; then
12375 :
12376 else
12377 echo "*** Could not run GTK+ test program, checking why..."
12378 ac_save_CFLAGS="$CFLAGS"
12379 ac_save_LIBS="$LIBS"
12380 CFLAGS="$CFLAGS $GTK_CFLAGS"
12381 LIBS="$LIBS $GTK_LIBS"
12382 cat > conftest.$ac_ext <<EOF
12383#line 12384 "configure"
12384#include "confdefs.h"
12385
12386#include <gtk/gtk.h>
12387#include <stdio.h>
12388
12389int main() {
12390 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12391; return 0; }
12392EOF
12393if { (eval echo configure:12394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12394 rm -rf conftest*
12395 echo "*** The test program compiled, but did not run. This usually means"
12396 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12397 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12398 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12399 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12400 echo "*** is required on your system"
12401 echo "***"
12402 echo "*** If you have an old version installed, it is best to remove it, although"
12403 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12404else
12405 echo "configure: failed program was:" >&5
12406 cat conftest.$ac_ext >&5
12407 rm -rf conftest*
12408 echo "*** The test program failed to compile or link. See the file config.log for the"
12409 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12410fi
12411rm -f conftest*
12412 CFLAGS="$ac_save_CFLAGS"
12413 LIBS="$ac_save_LIBS"
12414 fi
12415 fi
12416 GTK_CFLAGS=""
12417 GTK_LIBS=""
12418 :
12419 fi
12420
12421
12422 rm -f conf.gtktest
12423
12424 fi
12425
12426 if test -z "$wx_cv_lib_gtk"; then
12427 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12428if test "${with_gtk_prefix+set}" = set; then
12429 withval="$with_gtk_prefix"
12430 gtk_config_prefix="$withval"
12431else
12432 gtk_config_prefix=""
12433fi
12434
12435# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12436if test "${with_gtk_exec_prefix+set}" = set; then
12437 withval="$with_gtk_exec_prefix"
12438 gtk_config_exec_prefix="$withval"
12439else
12440 gtk_config_exec_prefix=""
12441fi
12442
12443# Check whether --enable-gtktest or --disable-gtktest was given.
12444if test "${enable_gtktest+set}" = set; then
12445 enableval="$enable_gtktest"
12446 :
12447else
12448 enable_gtktest=yes
12449fi
12450
12451
12452 for module in . $GTK_MODULES
12453 do
12454 case "$module" in
12455 gthread)
12456 gtk_config_args="$gtk_config_args gthread"
12457 ;;
12458 esac
12459 done
12460
12461 if test x$gtk_config_exec_prefix != x ; then
12462 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12463 if test x${GTK_CONFIG+set} != xset ; then
12464 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12465 fi
12466 fi
12467 if test x$gtk_config_prefix != x ; then
12468 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12469 if test x${GTK_CONFIG+set} != xset ; then
12470 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12471 fi
12472 fi
12473
12474 # Extract the first word of "gtk-config", so it can be a program name with args.
12475set dummy gtk-config; ac_word=$2
12476echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12477echo "configure:12478: checking for $ac_word" >&5
12478if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12479 echo $ac_n "(cached) $ac_c" 1>&6
12480else
12481 case "$GTK_CONFIG" in
12482 /*)
12483 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12484 ;;
12485 ?:/*)
12486 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12487 ;;
12488 *)
12489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12490 ac_dummy="$PATH"
12491 for ac_dir in $ac_dummy; do
12492 test -z "$ac_dir" && ac_dir=.
12493 if test -f $ac_dir/$ac_word; then
12494 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12495 break
12496 fi
12497 done
12498 IFS="$ac_save_ifs"
12499 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12500 ;;
12501esac
12502fi
12503GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12504if test -n "$GTK_CONFIG"; then
12505 echo "$ac_t""$GTK_CONFIG" 1>&6
12506else
12507 echo "$ac_t""no" 1>&6
12508fi
12509
12510 min_gtk_version=1.2.7
12511 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12512echo "configure:12513: checking for GTK - version >= $min_gtk_version" >&5
12513 no_gtk=""
12514 if test "$GTK_CONFIG" = "no" ; then
12515 no_gtk=yes
12516 else
12517 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12518 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12519 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12520 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12521 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12522 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12523 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12524 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12525 if test "x$enable_gtktest" = "xyes" ; then
12526 ac_save_CFLAGS="$CFLAGS"
12527 ac_save_LIBS="$LIBS"
12528 CFLAGS="$CFLAGS $GTK_CFLAGS"
12529 LIBS="$GTK_LIBS $LIBS"
12530 rm -f conf.gtktest
12531 if test "$cross_compiling" = yes; then
12532 echo $ac_n "cross compiling; assumed OK... $ac_c"
12533else
12534 cat > conftest.$ac_ext <<EOF
12535#line 12536 "configure"
12536#include "confdefs.h"
12537
12538#include <gtk/gtk.h>
12539#include <stdio.h>
12540#include <stdlib.h>
12541
12542int
12543main ()
12544{
12545 int major, minor, micro;
12546 char *tmp_version;
12547
12548 system ("touch conf.gtktest");
12549
12550 /* HP/UX 9 (%@#!) writes to sscanf strings */
12551 tmp_version = g_strdup("$min_gtk_version");
12552 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12553 printf("%s, bad version string\n", "$min_gtk_version");
12554 exit(1);
12555 }
12556
12557 if ((gtk_major_version != $gtk_config_major_version) ||
12558 (gtk_minor_version != $gtk_config_minor_version) ||
12559 (gtk_micro_version != $gtk_config_micro_version))
12560 {
12561 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12562 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12563 gtk_major_version, gtk_minor_version, gtk_micro_version);
12564 printf ("*** was found! If gtk-config was correct, then it is best\n");
12565 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12566 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12567 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12568 printf("*** required on your system.\n");
12569 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12570 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12571 printf("*** before re-running configure\n");
12572 }
12573#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12574 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12575 (gtk_minor_version != GTK_MINOR_VERSION) ||
12576 (gtk_micro_version != GTK_MICRO_VERSION))
12577 {
12578 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12579 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12580 printf("*** library (version %d.%d.%d)\n",
12581 gtk_major_version, gtk_minor_version, gtk_micro_version);
12582 }
12583#endif /* defined (GTK_MAJOR_VERSION) ... */
12584 else
12585 {
12586 if ((gtk_major_version > major) ||
12587 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12588 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12589 {
12590 return 0;
12591 }
12592 else
12593 {
12594 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12595 gtk_major_version, gtk_minor_version, gtk_micro_version);
12596 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12597 major, minor, micro);
12598 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12599 printf("***\n");
12600 printf("*** If you have already installed a sufficiently new version, this error\n");
12601 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12602 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12603 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12604 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12605 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12606 printf("*** so that the correct libraries are found at run-time))\n");
12607 }
12608 }
12609 return 1;
12610}
12611
12612EOF
12613if { (eval echo configure:12614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12614then
12615 :
12616else
12617 echo "configure: failed program was:" >&5
12618 cat conftest.$ac_ext >&5
12619 rm -fr conftest*
12620 no_gtk=yes
12621fi
12622rm -fr conftest*
12623fi
12624
12625 CFLAGS="$ac_save_CFLAGS"
12626 LIBS="$ac_save_LIBS"
12627 fi
12628 fi
12629 if test "x$no_gtk" = x ; then
12630 echo "$ac_t""yes" 1>&6
12631 wx_cv_lib_gtk=1.2.7
12632 else
12633 echo "$ac_t""no" 1>&6
12634 if test "$GTK_CONFIG" = "no" ; then
12635 echo "*** The gtk-config script installed by GTK could not be found"
12636 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12637 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12638 echo "*** full path to gtk-config."
12639 else
12640 if test -f conf.gtktest ; then
12641 :
12642 else
12643 echo "*** Could not run GTK test program, checking why..."
12644 CFLAGS="$CFLAGS $GTK_CFLAGS"
12645 LIBS="$LIBS $GTK_LIBS"
12646 cat > conftest.$ac_ext <<EOF
12647#line 12648 "configure"
12648#include "confdefs.h"
12649
12650#include <gtk/gtk.h>
12651#include <stdio.h>
12652
12653int main() {
12654 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12655; return 0; }
12656EOF
12657if { (eval echo configure:12658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12658 rm -rf conftest*
12659 echo "*** The test program compiled, but did not run. This usually means"
12660 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12661 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12662 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12663 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12664 echo "*** is required on your system"
12665 echo "***"
12666 echo "*** If you have an old version installed, it is best to remove it, although"
12667 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12668 echo "***"
12669 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12670 echo "*** came with the system with the command"
12671 echo "***"
12672 echo "*** rpm --erase --nodeps gtk gtk-devel"
12673else
12674 echo "configure: failed program was:" >&5
12675 cat conftest.$ac_ext >&5
12676 rm -rf conftest*
12677 echo "*** The test program failed to compile or link. See the file config.log for the"
12678 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12679 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12680 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12681fi
12682rm -f conftest*
12683 CFLAGS="$ac_save_CFLAGS"
12684 LIBS="$ac_save_LIBS"
12685 fi
12686 fi
12687 GTK_CFLAGS=""
12688 GTK_LIBS=""
12689 :
12690 fi
12691
12692
12693 rm -f conf.gtktest
12694
12695 fi
12696
12697 if test -z "$wx_cv_lib_gtk"; then
12698 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12699if test "${with_gtk_prefix+set}" = set; then
12700 withval="$with_gtk_prefix"
12701 gtk_config_prefix="$withval"
12702else
12703 gtk_config_prefix=""
12704fi
12705
12706# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12707if test "${with_gtk_exec_prefix+set}" = set; then
12708 withval="$with_gtk_exec_prefix"
12709 gtk_config_exec_prefix="$withval"
12710else
12711 gtk_config_exec_prefix=""
12712fi
12713
12714# Check whether --enable-gtktest or --disable-gtktest was given.
12715if test "${enable_gtktest+set}" = set; then
12716 enableval="$enable_gtktest"
12717 :
12718else
12719 enable_gtktest=yes
12720fi
12721
12722
12723 for module in . $GTK_MODULES
12724 do
12725 case "$module" in
12726 gthread)
12727 gtk_config_args="$gtk_config_args gthread"
12728 ;;
12729 esac
12730 done
12731
12732 if test x$gtk_config_exec_prefix != x ; then
12733 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12734 if test x${GTK_CONFIG+set} != xset ; then
12735 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12736 fi
12737 fi
12738 if test x$gtk_config_prefix != x ; then
12739 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12740 if test x${GTK_CONFIG+set} != xset ; then
12741 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12742 fi
12743 fi
12744
12745 # Extract the first word of "gtk-config", so it can be a program name with args.
12746set dummy gtk-config; ac_word=$2
12747echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12748echo "configure:12749: checking for $ac_word" >&5
12749if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12750 echo $ac_n "(cached) $ac_c" 1>&6
12751else
12752 case "$GTK_CONFIG" in
12753 /*)
12754 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12755 ;;
12756 ?:/*)
12757 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12758 ;;
12759 *)
12760 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12761 ac_dummy="$PATH"
12762 for ac_dir in $ac_dummy; do
12763 test -z "$ac_dir" && ac_dir=.
12764 if test -f $ac_dir/$ac_word; then
12765 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12766 break
12767 fi
12768 done
12769 IFS="$ac_save_ifs"
12770 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12771 ;;
12772esac
12773fi
12774GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12775if test -n "$GTK_CONFIG"; then
12776 echo "$ac_t""$GTK_CONFIG" 1>&6
12777else
12778 echo "$ac_t""no" 1>&6
12779fi
12780
12781 min_gtk_version=1.2.3
12782 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12783echo "configure:12784: checking for GTK - version >= $min_gtk_version" >&5
12784 no_gtk=""
12785 if test "$GTK_CONFIG" = "no" ; then
12786 no_gtk=yes
12787 else
12788 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12789 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12790 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12791 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12792 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12793 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12794 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12795 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12796 if test "x$enable_gtktest" = "xyes" ; then
12797 ac_save_CFLAGS="$CFLAGS"
12798 ac_save_LIBS="$LIBS"
12799 CFLAGS="$CFLAGS $GTK_CFLAGS"
12800 LIBS="$GTK_LIBS $LIBS"
12801 rm -f conf.gtktest
12802 if test "$cross_compiling" = yes; then
12803 echo $ac_n "cross compiling; assumed OK... $ac_c"
12804else
12805 cat > conftest.$ac_ext <<EOF
12806#line 12807 "configure"
12807#include "confdefs.h"
12808
12809#include <gtk/gtk.h>
12810#include <stdio.h>
12811#include <stdlib.h>
12812
12813int
12814main ()
12815{
12816 int major, minor, micro;
12817 char *tmp_version;
12818
12819 system ("touch conf.gtktest");
12820
12821 /* HP/UX 9 (%@#!) writes to sscanf strings */
12822 tmp_version = g_strdup("$min_gtk_version");
12823 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12824 printf("%s, bad version string\n", "$min_gtk_version");
12825 exit(1);
12826 }
12827
12828 if ((gtk_major_version != $gtk_config_major_version) ||
12829 (gtk_minor_version != $gtk_config_minor_version) ||
12830 (gtk_micro_version != $gtk_config_micro_version))
12831 {
12832 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12833 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12834 gtk_major_version, gtk_minor_version, gtk_micro_version);
12835 printf ("*** was found! If gtk-config was correct, then it is best\n");
12836 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12837 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12838 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12839 printf("*** required on your system.\n");
12840 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12841 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12842 printf("*** before re-running configure\n");
12843 }
12844#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12845 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12846 (gtk_minor_version != GTK_MINOR_VERSION) ||
12847 (gtk_micro_version != GTK_MICRO_VERSION))
12848 {
12849 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12850 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12851 printf("*** library (version %d.%d.%d)\n",
12852 gtk_major_version, gtk_minor_version, gtk_micro_version);
12853 }
12854#endif /* defined (GTK_MAJOR_VERSION) ... */
12855 else
12856 {
12857 if ((gtk_major_version > major) ||
12858 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12859 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12860 {
12861 return 0;
12862 }
12863 else
12864 {
12865 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12866 gtk_major_version, gtk_minor_version, gtk_micro_version);
12867 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12868 major, minor, micro);
12869 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12870 printf("***\n");
12871 printf("*** If you have already installed a sufficiently new version, this error\n");
12872 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12873 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12874 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12875 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12876 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12877 printf("*** so that the correct libraries are found at run-time))\n");
12878 }
12879 }
12880 return 1;
12881}
12882
12883EOF
12884if { (eval echo configure:12885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12885then
12886 :
12887else
12888 echo "configure: failed program was:" >&5
12889 cat conftest.$ac_ext >&5
12890 rm -fr conftest*
12891 no_gtk=yes
12892fi
12893rm -fr conftest*
12894fi
12895
12896 CFLAGS="$ac_save_CFLAGS"
12897 LIBS="$ac_save_LIBS"
12898 fi
12899 fi
12900 if test "x$no_gtk" = x ; then
12901 echo "$ac_t""yes" 1>&6
12902 wx_cv_lib_gtk=1.2.3
12903 else
12904 echo "$ac_t""no" 1>&6
12905 if test "$GTK_CONFIG" = "no" ; then
12906 echo "*** The gtk-config script installed by GTK could not be found"
12907 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12908 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12909 echo "*** full path to gtk-config."
12910 else
12911 if test -f conf.gtktest ; then
12912 :
12913 else
12914 echo "*** Could not run GTK test program, checking why..."
12915 CFLAGS="$CFLAGS $GTK_CFLAGS"
12916 LIBS="$LIBS $GTK_LIBS"
12917 cat > conftest.$ac_ext <<EOF
12918#line 12919 "configure"
12919#include "confdefs.h"
12920
12921#include <gtk/gtk.h>
12922#include <stdio.h>
12923
12924int main() {
12925 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12926; return 0; }
12927EOF
12928if { (eval echo configure:12929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12929 rm -rf conftest*
12930 echo "*** The test program compiled, but did not run. This usually means"
12931 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12932 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12933 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12934 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12935 echo "*** is required on your system"
12936 echo "***"
12937 echo "*** If you have an old version installed, it is best to remove it, although"
12938 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12939 echo "***"
12940 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12941 echo "*** came with the system with the command"
12942 echo "***"
12943 echo "*** rpm --erase --nodeps gtk gtk-devel"
12944else
12945 echo "configure: failed program was:" >&5
12946 cat conftest.$ac_ext >&5
12947 rm -rf conftest*
12948 echo "*** The test program failed to compile or link. See the file config.log for the"
12949 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12950 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12951 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12952fi
12953rm -f conftest*
12954 CFLAGS="$ac_save_CFLAGS"
12955 LIBS="$ac_save_LIBS"
12956 fi
12957 fi
12958 GTK_CFLAGS=""
12959 GTK_LIBS=""
12960 :
12961 fi
12962
12963
12964 rm -f conf.gtktest
12965
12966 fi
12967
12968 if test -z "$wx_cv_lib_gtk"; then
12969 wx_cv_lib_gtk=none
12970 else
12971 wx_cv_cflags_gtk=$GTK_CFLAGS
12972 wx_cv_libs_gtk=$GTK_LIBS
12973 fi
12974
12975
12976fi
12977
12978
12979 if test "$gtk_version_cached" = 1; then
12980 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
12981 fi
12982
12983 case "$wx_cv_lib_gtk" in
12984 2.0) WXGTK20=1
12985 ;;
12986 1.2.7) WXGTK127=1
12987 WXGTK12=1
12988 ;;
12989 1.2.3) WXGTK12=1
12990 ;;
12991 *) { echo "configure: error:
12992Please check that gtk-config is in path, the directory
12993where GTK+ libraries are installed (returned by
12994'gtk-config --libs' command) is in LD_LIBRARY_PATH or
12995equivalent variable and GTK+ is version 1.2.3 or above.
12996 " 1>&2; exit 1; }
12997 ;;
12998 esac
12999
13000 if test "$WXGTK20" = 1; then
13001 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13002
13003 succeeded=no
13004
13005 if test -z "$PKG_CONFIG"; then
13006 # Extract the first word of "pkg-config", so it can be a program name with args.
13007set dummy pkg-config; ac_word=$2
13008echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13009echo "configure:13010: checking for $ac_word" >&5
13010if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13011 echo $ac_n "(cached) $ac_c" 1>&6
13012else
13013 case "$PKG_CONFIG" in
13014 /*)
13015 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13016 ;;
13017 ?:/*)
13018 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13019 ;;
13020 *)
13021 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13022 ac_dummy="$PATH"
13023 for ac_dir in $ac_dummy; do
13024 test -z "$ac_dir" && ac_dir=.
13025 if test -f $ac_dir/$ac_word; then
13026 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13027 break
13028 fi
13029 done
13030 IFS="$ac_save_ifs"
13031 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13032 ;;
13033esac
13034fi
13035PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13036if test -n "$PKG_CONFIG"; then
13037 echo "$ac_t""$PKG_CONFIG" 1>&6
13038else
13039 echo "$ac_t""no" 1>&6
13040fi
13041
13042 fi
13043
13044 if test "$PKG_CONFIG" = "no" ; then
13045 echo "*** The pkg-config script could not be found. Make sure it is"
13046 echo "*** in your path, or set the PKG_CONFIG environment variable"
13047 echo "*** to the full path to pkg-config."
13048 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13049 else
13050 PKG_CONFIG_MIN_VERSION=0.9.0
13051 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13052 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
13053echo "configure:13054: checking for pangoft2" >&5
13054
13055 if $PKG_CONFIG --exists "pangoft2" ; then
13056 echo "$ac_t""yes" 1>&6
13057 succeeded=yes
13058
13059 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
13060echo "configure:13061: checking PANGOFT2_CFLAGS" >&5
13061 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
13062 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
13063
13064 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
13065echo "configure:13066: checking PANGOFT2_LIBS" >&5
13066 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
13067 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
13068 else
13069 PANGOFT2_CFLAGS=""
13070 PANGOFT2_LIBS=""
13071 ## If we have a custom action on failure, don't print errors, but
13072 ## do set a variable so people can do so.
13073 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
13074
13075 fi
13076
13077
13078
13079 else
13080 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13081 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13082 fi
13083 fi
13084
13085 if test $succeeded = yes; then
13086
13087 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13088 LIBS="$LIBS $PANGOFT2_LIBS"
13089
13090 else
13091
13092 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
13093 wxUSE_PRINTING_ARCHITECTURE="no"
13094
13095
13096 fi
13097
13098 fi
13099 fi
13100
13101 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13102 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13103
13104 AFMINSTALL=afminstall
13105 TOOLKIT=GTK
13106 GUIDIST=GTK_DIST
13107
13108 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
13109echo "configure:13110: checking for gdk_im_open in -lgdk" >&5
13110ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13111if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13112 echo $ac_n "(cached) $ac_c" 1>&6
13113else
13114 ac_save_LIBS="$LIBS"
13115LIBS="-lgdk $LIBS"
13116cat > conftest.$ac_ext <<EOF
13117#line 13118 "configure"
13118#include "confdefs.h"
13119/* Override any gcc2 internal prototype to avoid an error. */
13120/* We use char because int might match the return type of a gcc2
13121 builtin and then its argument prototype would still apply. */
13122char gdk_im_open();
13123
13124int main() {
13125gdk_im_open()
13126; return 0; }
13127EOF
13128if { (eval echo configure:13129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13129 rm -rf conftest*
13130 eval "ac_cv_lib_$ac_lib_var=yes"
13131else
13132 echo "configure: failed program was:" >&5
13133 cat conftest.$ac_ext >&5
13134 rm -rf conftest*
13135 eval "ac_cv_lib_$ac_lib_var=no"
13136fi
13137rm -f conftest*
13138LIBS="$ac_save_LIBS"
13139
13140fi
13141if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13142 echo "$ac_t""yes" 1>&6
13143 cat >> confdefs.h <<\EOF
13144#define HAVE_XIM 1
13145EOF
13146
13147else
13148 echo "$ac_t""no" 1>&6
13149fi
13150
13151 fi
13152
13153 if test "$wxUSE_MGL" = 1; then
13154 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
13155echo "configure:13156: checking for SciTech MGL library" >&5
13156 if test "x$MGL_ROOT" = x ; then
13157 echo "$ac_t""not found" 1>&6
13158 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
13159 else
13160 echo "$ac_t""$MGL_ROOT" 1>&6
13161 fi
13162
13163 case "${host}" in
13164 *-*-linux* )
13165 mgl_os=linux/gcc/glibc
13166 ;;
13167 *-pc-msdosdjgpp )
13168 mgl_os=dos32/dj2
13169 ;;
13170 *)
13171 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
13172 esac
13173
13174 mgl_lib_type=""
13175
13176 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13177 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
13178 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
13179 mgl_lib_type=debug
13180 fi
13181 fi
13182 if test "x$mgl_lib_type" = x ; then
13183 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
13184 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
13185 mgl_lib_type=release
13186 else
13187 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13188 fi
13189 fi
13190
13191 wxUSE_UNIVERSAL="yes"
13192
13193 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13194 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13195
13196 AFMINSTALL=afminstall
13197 TOOLKIT=MGL
13198 GUIDIST=MGL_DIST
13199 fi
13200
13201 if test "$wxUSE_MICROWIN" = 1; then
13202 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
13203echo "configure:13204: checking for MicroWindows" >&5
13204 if test "x$MICROWINDOWS" = x ; then
13205 echo "$ac_t""not found" 1>&6
13206 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
13207 else
13208 echo "$ac_t""$MICROWINDOWS" 1>&6
13209 fi
13210
13211 if test -f $MICROWINDOWS/lib/libmwin.a; then
13212 echo "$ac_t""MicroWindows' libraries found." 1>&6
13213 else
13214 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
13215 fi
13216
13217 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13218 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13219
13220 wxUSE_UNIVERSAL="yes"
13221
13222 AFMINSTALL=afminstall
13223 TOOLKIT=MICROWIN
13224 GUIDIST=MICROWIN_DIST
13225
13226 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
13227 fi
13228
13229 if test "$wxUSE_X11" = 1; then
13230 # If we find X, set shell vars x_includes and x_libraries to the
13231# paths, otherwise set no_x=yes.
13232# Uses ac_ vars as temps to allow command line to override cache and checks.
13233# --without-x overrides everything else, but does not touch the cache.
13234echo $ac_n "checking for X""... $ac_c" 1>&6
13235echo "configure:13236: checking for X" >&5
13236
13237# Check whether --with-x or --without-x was given.
13238if test "${with_x+set}" = set; then
13239 withval="$with_x"
13240 :
13241fi
13242
13243# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13244if test "x$with_x" = xno; then
13245 # The user explicitly disabled X.
13246 have_x=disabled
13247else
13248 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13249 # Both variables are already set.
13250 have_x=yes
13251 else
13252if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13253 echo $ac_n "(cached) $ac_c" 1>&6
13254else
13255 # One or both of the vars are not set, and there is no cached value.
13256ac_x_includes=NO ac_x_libraries=NO
13257rm -fr conftestdir
13258if mkdir conftestdir; then
13259 cd conftestdir
13260 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
13261 cat > Imakefile <<'EOF'
13262acfindx:
13263 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
13264EOF
13265 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13266 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13267 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13268 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13269 for ac_extension in a so sl; do
13270 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
13271 test -f $ac_im_libdir/libX11.$ac_extension; then
13272 ac_im_usrlibdir=$ac_im_libdir; break
13273 fi
13274 done
13275 # Screen out bogus values from the imake configuration. They are
13276 # bogus both because they are the default anyway, and because
13277 # using them would break gcc on systems where it needs fixed includes.
13278 case "$ac_im_incroot" in
13279 /usr/include) ;;
13280 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
13281 esac
13282 case "$ac_im_usrlibdir" in
13283 /usr/lib | /lib) ;;
13284 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
13285 esac
13286 fi
13287 cd ..
13288 rm -fr conftestdir
13289fi
13290
13291if test "$ac_x_includes" = NO; then
13292 # Guess where to find include files, by looking for this one X11 .h file.
13293 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13294
13295 # First, try using that file with no special directory specified.
13296cat > conftest.$ac_ext <<EOF
13297#line 13298 "configure"
13298#include "confdefs.h"
13299#include <$x_direct_test_include>
13300EOF
13301ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13302{ (eval echo configure:13303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13303ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13304if test -z "$ac_err"; then
13305 rm -rf conftest*
13306 # We can compile using X headers with no special include directory.
13307ac_x_includes=
13308else
13309 echo "$ac_err" >&5
13310 echo "configure: failed program was:" >&5
13311 cat conftest.$ac_ext >&5
13312 rm -rf conftest*
13313 # Look for the header file in a standard set of common directories.
13314# Check X11 before X11Rn because it is often a symlink to the current release.
13315 for ac_dir in \
13316 /usr/X11/include \
13317 /usr/X11R6/include \
13318 /usr/X11R5/include \
13319 /usr/X11R4/include \
13320 \
13321 /usr/include/X11 \
13322 /usr/include/X11R6 \
13323 /usr/include/X11R5 \
13324 /usr/include/X11R4 \
13325 \
13326 /usr/local/X11/include \
13327 /usr/local/X11R6/include \
13328 /usr/local/X11R5/include \
13329 /usr/local/X11R4/include \
13330 \
13331 /usr/local/include/X11 \
13332 /usr/local/include/X11R6 \
13333 /usr/local/include/X11R5 \
13334 /usr/local/include/X11R4 \
13335 \
13336 /usr/X386/include \
13337 /usr/x386/include \
13338 /usr/XFree86/include/X11 \
13339 \
13340 /usr/include \
13341 /usr/local/include \
13342 /usr/unsupported/include \
13343 /usr/athena/include \
13344 /usr/local/x11r5/include \
13345 /usr/lpp/Xamples/include \
13346 \
13347 /usr/openwin/include \
13348 /usr/openwin/share/include \
13349 ; \
13350 do
13351 if test -r "$ac_dir/$x_direct_test_include"; then
13352 ac_x_includes=$ac_dir
13353 break
13354 fi
13355 done
13356fi
13357rm -f conftest*
13358fi # $ac_x_includes = NO
13359
13360if test "$ac_x_libraries" = NO; then
13361 # Check for the libraries.
13362
13363 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13364 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13365
13366 # See if we find them without any special options.
13367 # Don't add to $LIBS permanently.
13368 ac_save_LIBS="$LIBS"
13369 LIBS="-l$x_direct_test_library $LIBS"
13370cat > conftest.$ac_ext <<EOF
13371#line 13372 "configure"
13372#include "confdefs.h"
13373
13374int main() {
13375${x_direct_test_function}()
13376; return 0; }
13377EOF
13378if { (eval echo configure:13379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13379 rm -rf conftest*
13380 LIBS="$ac_save_LIBS"
13381# We can link X programs with no special library path.
13382ac_x_libraries=
13383else
13384 echo "configure: failed program was:" >&5
13385 cat conftest.$ac_ext >&5
13386 rm -rf conftest*
13387 LIBS="$ac_save_LIBS"
13388# First see if replacing the include by lib works.
13389# Check X11 before X11Rn because it is often a symlink to the current release.
13390for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13391 /usr/X11/lib \
13392 /usr/X11R6/lib \
13393 /usr/X11R5/lib \
13394 /usr/X11R4/lib \
13395 \
13396 /usr/lib/X11 \
13397 /usr/lib/X11R6 \
13398 /usr/lib/X11R5 \
13399 /usr/lib/X11R4 \
13400 \
13401 /usr/local/X11/lib \
13402 /usr/local/X11R6/lib \
13403 /usr/local/X11R5/lib \
13404 /usr/local/X11R4/lib \
13405 \
13406 /usr/local/lib/X11 \
13407 /usr/local/lib/X11R6 \
13408 /usr/local/lib/X11R5 \
13409 /usr/local/lib/X11R4 \
13410 \
13411 /usr/X386/lib \
13412 /usr/x386/lib \
13413 /usr/XFree86/lib/X11 \
13414 \
13415 /usr/lib \
13416 /usr/local/lib \
13417 /usr/unsupported/lib \
13418 /usr/athena/lib \
13419 /usr/local/x11r5/lib \
13420 /usr/lpp/Xamples/lib \
13421 /lib/usr/lib/X11 \
13422 \
13423 /usr/openwin/lib \
13424 /usr/openwin/share/lib \
13425 ; \
13426do
13427 for ac_extension in a so sl; do
13428 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
13429 ac_x_libraries=$ac_dir
13430 break 2
13431 fi
13432 done
13433done
13434fi
13435rm -f conftest*
13436fi # $ac_x_libraries = NO
13437
13438if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
13439 # Didn't find X anywhere. Cache the known absence of X.
13440 ac_cv_have_x="have_x=no"
13441else
13442 # Record where we found X for the cache.
13443 ac_cv_have_x="have_x=yes \
13444 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
13445fi
13446fi
13447 fi
13448 eval "$ac_cv_have_x"
13449fi # $with_x != no
13450
13451if test "$have_x" != yes; then
13452 echo "$ac_t""$have_x" 1>&6
13453 no_x=yes
13454else
13455 # If each of the values was on the command line, it overrides each guess.
13456 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13457 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13458 # Update the cache value to reflect the command line values.
13459 ac_cv_have_x="have_x=yes \
13460 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
13461 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
13462fi
13463
13464if test "$no_x" = yes; then
13465 # Not all programs may use this symbol, but it does not hurt to define it.
13466 cat >> confdefs.h <<\EOF
13467#define X_DISPLAY_MISSING 1
13468EOF
13469
13470 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13471else
13472 if test -n "$x_includes"; then
13473 X_CFLAGS="$X_CFLAGS -I$x_includes"
13474 fi
13475
13476 # It would also be nice to do this for all -L options, not just this one.
13477 if test -n "$x_libraries"; then
13478 X_LIBS="$X_LIBS -L$x_libraries"
13479 # For Solaris; some versions of Sun CC require a space after -R and
13480 # others require no space. Words are not sufficient . . . .
13481 case "`(uname -sr) 2>/dev/null`" in
13482 "SunOS 5"*)
13483 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13484echo "configure:13485: checking whether -R must be followed by a space" >&5
13485 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13486 cat > conftest.$ac_ext <<EOF
13487#line 13488 "configure"
13488#include "confdefs.h"
13489
13490int main() {
13491
13492; return 0; }
13493EOF
13494if { (eval echo configure:13495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13495 rm -rf conftest*
13496 ac_R_nospace=yes
13497else
13498 echo "configure: failed program was:" >&5
13499 cat conftest.$ac_ext >&5
13500 rm -rf conftest*
13501 ac_R_nospace=no
13502fi
13503rm -f conftest*
13504 if test $ac_R_nospace = yes; then
13505 echo "$ac_t""no" 1>&6
13506 X_LIBS="$X_LIBS -R$x_libraries"
13507 else
13508 LIBS="$ac_xsave_LIBS -R $x_libraries"
13509 cat > conftest.$ac_ext <<EOF
13510#line 13511 "configure"
13511#include "confdefs.h"
13512
13513int main() {
13514
13515; return 0; }
13516EOF
13517if { (eval echo configure:13518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13518 rm -rf conftest*
13519 ac_R_space=yes
13520else
13521 echo "configure: failed program was:" >&5
13522 cat conftest.$ac_ext >&5
13523 rm -rf conftest*
13524 ac_R_space=no
13525fi
13526rm -f conftest*
13527 if test $ac_R_space = yes; then
13528 echo "$ac_t""yes" 1>&6
13529 X_LIBS="$X_LIBS -R $x_libraries"
13530 else
13531 echo "$ac_t""neither works" 1>&6
13532 fi
13533 fi
13534 LIBS="$ac_xsave_LIBS"
13535 esac
13536 fi
13537
13538 # Check for system-dependent libraries X programs must link with.
13539 # Do this before checking for the system-independent R6 libraries
13540 # (-lICE), since we may need -lsocket or whatever for X linking.
13541
13542 if test "$ISC" = yes; then
13543 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13544 else
13545 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13546 # libraries were built with DECnet support. And karl@cs.umb.edu says
13547 # the Alpha needs dnet_stub (dnet does not exist).
13548 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13549echo "configure:13550: checking for dnet_ntoa in -ldnet" >&5
13550ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13551if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13552 echo $ac_n "(cached) $ac_c" 1>&6
13553else
13554 ac_save_LIBS="$LIBS"
13555LIBS="-ldnet $LIBS"
13556cat > conftest.$ac_ext <<EOF
13557#line 13558 "configure"
13558#include "confdefs.h"
13559/* Override any gcc2 internal prototype to avoid an error. */
13560/* We use char because int might match the return type of a gcc2
13561 builtin and then its argument prototype would still apply. */
13562char dnet_ntoa();
13563
13564int main() {
13565dnet_ntoa()
13566; return 0; }
13567EOF
13568if { (eval echo configure:13569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13569 rm -rf conftest*
13570 eval "ac_cv_lib_$ac_lib_var=yes"
13571else
13572 echo "configure: failed program was:" >&5
13573 cat conftest.$ac_ext >&5
13574 rm -rf conftest*
13575 eval "ac_cv_lib_$ac_lib_var=no"
13576fi
13577rm -f conftest*
13578LIBS="$ac_save_LIBS"
13579
13580fi
13581if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13582 echo "$ac_t""yes" 1>&6
13583 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13584else
13585 echo "$ac_t""no" 1>&6
13586fi
13587
13588 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13589 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13590echo "configure:13591: checking for dnet_ntoa in -ldnet_stub" >&5
13591ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13592if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13593 echo $ac_n "(cached) $ac_c" 1>&6
13594else
13595 ac_save_LIBS="$LIBS"
13596LIBS="-ldnet_stub $LIBS"
13597cat > conftest.$ac_ext <<EOF
13598#line 13599 "configure"
13599#include "confdefs.h"
13600/* Override any gcc2 internal prototype to avoid an error. */
13601/* We use char because int might match the return type of a gcc2
13602 builtin and then its argument prototype would still apply. */
13603char dnet_ntoa();
13604
13605int main() {
13606dnet_ntoa()
13607; return 0; }
13608EOF
13609if { (eval echo configure:13610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13610 rm -rf conftest*
13611 eval "ac_cv_lib_$ac_lib_var=yes"
13612else
13613 echo "configure: failed program was:" >&5
13614 cat conftest.$ac_ext >&5
13615 rm -rf conftest*
13616 eval "ac_cv_lib_$ac_lib_var=no"
13617fi
13618rm -f conftest*
13619LIBS="$ac_save_LIBS"
13620
13621fi
13622if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13623 echo "$ac_t""yes" 1>&6
13624 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13625else
13626 echo "$ac_t""no" 1>&6
13627fi
13628
13629 fi
13630
13631 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13632 # to get the SysV transport functions.
13633 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13634 # needs -lnsl.
13635 # The nsl library prevents programs from opening the X display
13636 # on Irix 5.2, according to dickey@clark.net.
13637 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13638echo "configure:13639: checking for gethostbyname" >&5
13639if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13640 echo $ac_n "(cached) $ac_c" 1>&6
13641else
13642 cat > conftest.$ac_ext <<EOF
13643#line 13644 "configure"
13644#include "confdefs.h"
13645/* System header to define __stub macros and hopefully few prototypes,
13646 which can conflict with char gethostbyname(); below. */
13647#include <assert.h>
13648/* Override any gcc2 internal prototype to avoid an error. */
13649/* We use char because int might match the return type of a gcc2
13650 builtin and then its argument prototype would still apply. */
13651char gethostbyname();
13652
13653int main() {
13654
13655/* The GNU C library defines this for functions which it implements
13656 to always fail with ENOSYS. Some functions are actually named
13657 something starting with __ and the normal name is an alias. */
13658#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13659choke me
13660#else
13661gethostbyname();
13662#endif
13663
13664; return 0; }
13665EOF
13666if { (eval echo configure:13667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13667 rm -rf conftest*
13668 eval "ac_cv_func_gethostbyname=yes"
13669else
13670 echo "configure: failed program was:" >&5
13671 cat conftest.$ac_ext >&5
13672 rm -rf conftest*
13673 eval "ac_cv_func_gethostbyname=no"
13674fi
13675rm -f conftest*
13676fi
13677
13678if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13679 echo "$ac_t""yes" 1>&6
13680 :
13681else
13682 echo "$ac_t""no" 1>&6
13683fi
13684
13685 if test $ac_cv_func_gethostbyname = no; then
13686 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13687echo "configure:13688: checking for gethostbyname in -lnsl" >&5
13688ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13689if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13690 echo $ac_n "(cached) $ac_c" 1>&6
13691else
13692 ac_save_LIBS="$LIBS"
13693LIBS="-lnsl $LIBS"
13694cat > conftest.$ac_ext <<EOF
13695#line 13696 "configure"
13696#include "confdefs.h"
13697/* Override any gcc2 internal prototype to avoid an error. */
13698/* We use char because int might match the return type of a gcc2
13699 builtin and then its argument prototype would still apply. */
13700char gethostbyname();
13701
13702int main() {
13703gethostbyname()
13704; return 0; }
13705EOF
13706if { (eval echo configure:13707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13707 rm -rf conftest*
13708 eval "ac_cv_lib_$ac_lib_var=yes"
13709else
13710 echo "configure: failed program was:" >&5
13711 cat conftest.$ac_ext >&5
13712 rm -rf conftest*
13713 eval "ac_cv_lib_$ac_lib_var=no"
13714fi
13715rm -f conftest*
13716LIBS="$ac_save_LIBS"
13717
13718fi
13719if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13720 echo "$ac_t""yes" 1>&6
13721 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13722else
13723 echo "$ac_t""no" 1>&6
13724fi
13725
13726 fi
13727
13728 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13729 # socket/setsockopt and other routines are undefined under SCO ODT
13730 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13731 # on later versions), says simon@lia.di.epfl.ch: it contains
13732 # gethostby* variants that don't use the nameserver (or something).
13733 # -lsocket must be given before -lnsl if both are needed.
13734 # We assume that if connect needs -lnsl, so does gethostbyname.
13735 echo $ac_n "checking for connect""... $ac_c" 1>&6
13736echo "configure:13737: checking for connect" >&5
13737if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13738 echo $ac_n "(cached) $ac_c" 1>&6
13739else
13740 cat > conftest.$ac_ext <<EOF
13741#line 13742 "configure"
13742#include "confdefs.h"
13743/* System header to define __stub macros and hopefully few prototypes,
13744 which can conflict with char connect(); below. */
13745#include <assert.h>
13746/* Override any gcc2 internal prototype to avoid an error. */
13747/* We use char because int might match the return type of a gcc2
13748 builtin and then its argument prototype would still apply. */
13749char connect();
13750
13751int main() {
13752
13753/* The GNU C library defines this for functions which it implements
13754 to always fail with ENOSYS. Some functions are actually named
13755 something starting with __ and the normal name is an alias. */
13756#if defined (__stub_connect) || defined (__stub___connect)
13757choke me
13758#else
13759connect();
13760#endif
13761
13762; return 0; }
13763EOF
13764if { (eval echo configure:13765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13765 rm -rf conftest*
13766 eval "ac_cv_func_connect=yes"
13767else
13768 echo "configure: failed program was:" >&5
13769 cat conftest.$ac_ext >&5
13770 rm -rf conftest*
13771 eval "ac_cv_func_connect=no"
13772fi
13773rm -f conftest*
13774fi
13775
13776if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13777 echo "$ac_t""yes" 1>&6
13778 :
13779else
13780 echo "$ac_t""no" 1>&6
13781fi
13782
13783 if test $ac_cv_func_connect = no; then
13784 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
13785echo "configure:13786: checking for connect in -lsocket" >&5
13786ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13787if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13788 echo $ac_n "(cached) $ac_c" 1>&6
13789else
13790 ac_save_LIBS="$LIBS"
13791LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13792cat > conftest.$ac_ext <<EOF
13793#line 13794 "configure"
13794#include "confdefs.h"
13795/* Override any gcc2 internal prototype to avoid an error. */
13796/* We use char because int might match the return type of a gcc2
13797 builtin and then its argument prototype would still apply. */
13798char connect();
13799
13800int main() {
13801connect()
13802; return 0; }
13803EOF
13804if { (eval echo configure:13805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13805 rm -rf conftest*
13806 eval "ac_cv_lib_$ac_lib_var=yes"
13807else
13808 echo "configure: failed program was:" >&5
13809 cat conftest.$ac_ext >&5
13810 rm -rf conftest*
13811 eval "ac_cv_lib_$ac_lib_var=no"
13812fi
13813rm -f conftest*
13814LIBS="$ac_save_LIBS"
13815
13816fi
13817if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13818 echo "$ac_t""yes" 1>&6
13819 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13820else
13821 echo "$ac_t""no" 1>&6
13822fi
13823
13824 fi
13825
13826 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
13827 echo $ac_n "checking for remove""... $ac_c" 1>&6
13828echo "configure:13829: checking for remove" >&5
13829if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
13830 echo $ac_n "(cached) $ac_c" 1>&6
13831else
13832 cat > conftest.$ac_ext <<EOF
13833#line 13834 "configure"
13834#include "confdefs.h"
13835/* System header to define __stub macros and hopefully few prototypes,
13836 which can conflict with char remove(); below. */
13837#include <assert.h>
13838/* Override any gcc2 internal prototype to avoid an error. */
13839/* We use char because int might match the return type of a gcc2
13840 builtin and then its argument prototype would still apply. */
13841char remove();
13842
13843int main() {
13844
13845/* The GNU C library defines this for functions which it implements
13846 to always fail with ENOSYS. Some functions are actually named
13847 something starting with __ and the normal name is an alias. */
13848#if defined (__stub_remove) || defined (__stub___remove)
13849choke me
13850#else
13851remove();
13852#endif
13853
13854; return 0; }
13855EOF
13856if { (eval echo configure:13857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13857 rm -rf conftest*
13858 eval "ac_cv_func_remove=yes"
13859else
13860 echo "configure: failed program was:" >&5
13861 cat conftest.$ac_ext >&5
13862 rm -rf conftest*
13863 eval "ac_cv_func_remove=no"
13864fi
13865rm -f conftest*
13866fi
13867
13868if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
13869 echo "$ac_t""yes" 1>&6
13870 :
13871else
13872 echo "$ac_t""no" 1>&6
13873fi
13874
13875 if test $ac_cv_func_remove = no; then
13876 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
13877echo "configure:13878: checking for remove in -lposix" >&5
13878ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
13879if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13880 echo $ac_n "(cached) $ac_c" 1>&6
13881else
13882 ac_save_LIBS="$LIBS"
13883LIBS="-lposix $LIBS"
13884cat > conftest.$ac_ext <<EOF
13885#line 13886 "configure"
13886#include "confdefs.h"
13887/* Override any gcc2 internal prototype to avoid an error. */
13888/* We use char because int might match the return type of a gcc2
13889 builtin and then its argument prototype would still apply. */
13890char remove();
13891
13892int main() {
13893remove()
13894; return 0; }
13895EOF
13896if { (eval echo configure:13897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13897 rm -rf conftest*
13898 eval "ac_cv_lib_$ac_lib_var=yes"
13899else
13900 echo "configure: failed program was:" >&5
13901 cat conftest.$ac_ext >&5
13902 rm -rf conftest*
13903 eval "ac_cv_lib_$ac_lib_var=no"
13904fi
13905rm -f conftest*
13906LIBS="$ac_save_LIBS"
13907
13908fi
13909if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13910 echo "$ac_t""yes" 1>&6
13911 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13912else
13913 echo "$ac_t""no" 1>&6
13914fi
13915
13916 fi
13917
13918 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13919 echo $ac_n "checking for shmat""... $ac_c" 1>&6
13920echo "configure:13921: checking for shmat" >&5
13921if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
13922 echo $ac_n "(cached) $ac_c" 1>&6
13923else
13924 cat > conftest.$ac_ext <<EOF
13925#line 13926 "configure"
13926#include "confdefs.h"
13927/* System header to define __stub macros and hopefully few prototypes,
13928 which can conflict with char shmat(); below. */
13929#include <assert.h>
13930/* Override any gcc2 internal prototype to avoid an error. */
13931/* We use char because int might match the return type of a gcc2
13932 builtin and then its argument prototype would still apply. */
13933char shmat();
13934
13935int main() {
13936
13937/* The GNU C library defines this for functions which it implements
13938 to always fail with ENOSYS. Some functions are actually named
13939 something starting with __ and the normal name is an alias. */
13940#if defined (__stub_shmat) || defined (__stub___shmat)
13941choke me
13942#else
13943shmat();
13944#endif
13945
13946; return 0; }
13947EOF
13948if { (eval echo configure:13949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13949 rm -rf conftest*
13950 eval "ac_cv_func_shmat=yes"
13951else
13952 echo "configure: failed program was:" >&5
13953 cat conftest.$ac_ext >&5
13954 rm -rf conftest*
13955 eval "ac_cv_func_shmat=no"
13956fi
13957rm -f conftest*
13958fi
13959
13960if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
13961 echo "$ac_t""yes" 1>&6
13962 :
13963else
13964 echo "$ac_t""no" 1>&6
13965fi
13966
13967 if test $ac_cv_func_shmat = no; then
13968 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
13969echo "configure:13970: checking for shmat in -lipc" >&5
13970ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
13971if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13972 echo $ac_n "(cached) $ac_c" 1>&6
13973else
13974 ac_save_LIBS="$LIBS"
13975LIBS="-lipc $LIBS"
13976cat > conftest.$ac_ext <<EOF
13977#line 13978 "configure"
13978#include "confdefs.h"
13979/* Override any gcc2 internal prototype to avoid an error. */
13980/* We use char because int might match the return type of a gcc2
13981 builtin and then its argument prototype would still apply. */
13982char shmat();
13983
13984int main() {
13985shmat()
13986; return 0; }
13987EOF
13988if { (eval echo configure:13989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13989 rm -rf conftest*
13990 eval "ac_cv_lib_$ac_lib_var=yes"
13991else
13992 echo "configure: failed program was:" >&5
13993 cat conftest.$ac_ext >&5
13994 rm -rf conftest*
13995 eval "ac_cv_lib_$ac_lib_var=no"
13996fi
13997rm -f conftest*
13998LIBS="$ac_save_LIBS"
13999
14000fi
14001if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14002 echo "$ac_t""yes" 1>&6
14003 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14004else
14005 echo "$ac_t""no" 1>&6
14006fi
14007
14008 fi
14009 fi
14010
14011 # Check for libraries that X11R6 Xt/Xaw programs need.
14012 ac_save_LDFLAGS="$LDFLAGS"
14013 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14014 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14015 # check for ICE first), but we must link in the order -lSM -lICE or
14016 # we get undefined symbols. So assume we have SM if we have ICE.
14017 # These have to be linked with before -lX11, unlike the other
14018 # libraries we check for below, so use a different variable.
14019 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14020 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14021echo "configure:14022: checking for IceConnectionNumber in -lICE" >&5
14022ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14023if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14024 echo $ac_n "(cached) $ac_c" 1>&6
14025else
14026 ac_save_LIBS="$LIBS"
14027LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14028cat > conftest.$ac_ext <<EOF
14029#line 14030 "configure"
14030#include "confdefs.h"
14031/* Override any gcc2 internal prototype to avoid an error. */
14032/* We use char because int might match the return type of a gcc2
14033 builtin and then its argument prototype would still apply. */
14034char IceConnectionNumber();
14035
14036int main() {
14037IceConnectionNumber()
14038; return 0; }
14039EOF
14040if { (eval echo configure:14041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14041 rm -rf conftest*
14042 eval "ac_cv_lib_$ac_lib_var=yes"
14043else
14044 echo "configure: failed program was:" >&5
14045 cat conftest.$ac_ext >&5
14046 rm -rf conftest*
14047 eval "ac_cv_lib_$ac_lib_var=no"
14048fi
14049rm -f conftest*
14050LIBS="$ac_save_LIBS"
14051
14052fi
14053if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14054 echo "$ac_t""yes" 1>&6
14055 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14056else
14057 echo "$ac_t""no" 1>&6
14058fi
14059
14060 LDFLAGS="$ac_save_LDFLAGS"
14061
14062fi
14063
14064
14065 if test "$no_x" = "yes"; then
14066 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14067 fi
14068
14069 GUI_TK_LIBRARY="$X_LIBS"
14070 TOOLKIT_INCLUDE="$X_CFLAGS"
14071 AFMINSTALL=afminstall
14072 COMPILED_X_PROGRAM=0
14073
14074 if test "$wxUSE_NANOX" = "yes"; then
14075 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
14076echo "configure:14077: checking for MicroWindows/NanoX distribution" >&5
14077 if test "x$MICROWIN" = x ; then
14078 echo "$ac_t""not found" 1>&6
14079 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
14080 else
14081 echo "$ac_t""$MICROWIN" 1>&6
14082 cat >> confdefs.h <<\EOF
14083#define wxUSE_NANOX 1
14084EOF
14085
14086 fi
14087 fi
14088
14089 xpm_link=
14090 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14091echo "configure:14092: checking for Xpm library" >&5
14092
14093ac_find_libraries=
14094for ac_dir in $SEARCH_LIB;
14095 do
14096 for ac_extension in a so sl dylib; do
14097 if test -f "$ac_dir/libXpm.$ac_extension"; then
14098 ac_find_libraries=$ac_dir
14099 break 2
14100 fi
14101 done
14102 done
14103
14104 if test "$ac_find_libraries" != "" ; then
14105
14106 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14107 result=$?
14108 if test $result = 0; then
14109 ac_path_to_link=""
14110 else
14111 ac_path_to_link=" -L$ac_find_libraries"
14112 fi
14113
14114 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14115 xpm_link=" -lXpm"
14116 cat >> confdefs.h <<\EOF
14117#define wxHAVE_LIB_XPM 1
14118EOF
14119
14120 echo "$ac_t""found at $ac_find_libraries" 1>&6
14121 else
14122 cat > conftest.$ac_ext <<EOF
14123#line 14124 "configure"
14124#include "confdefs.h"
14125
14126 #include <X11/xpm.h>
14127
14128int main() {
14129
14130 int version;
14131 version = XpmLibraryVersion();
14132
14133; return 0; }
14134EOF
14135if { (eval echo configure:14136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14136 rm -rf conftest*
14137
14138 xpm_link=" -lXpm"
14139 cat >> confdefs.h <<\EOF
14140#define wxHAVE_LIB_XPM 1
14141EOF
14142
14143 echo "$ac_t""found in default search path" 1>&6
14144 COMPILED_X_PROGRAM=0
14145
14146else
14147 echo "configure: failed program was:" >&5
14148 cat conftest.$ac_ext >&5
14149 rm -rf conftest*
14150
14151 echo "$ac_t""no" 1>&6
14152 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14153
14154
14155fi
14156rm -f conftest*
14157 fi
14158
14159 wxUSE_UNIVERSAL="yes"
14160
14161 if test "$wxUSE_NANOX" = "yes"; then
14162 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14163 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1"
14164 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14165 else
14166 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14167 fi
14168
14169 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14170 TOOLKIT=X11
14171 GUIDIST=X11_DIST
14172 fi
14173
14174 if test "$wxUSE_WINE" = 1; then
14175 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
14176echo $ac_n "checking for windows.h""... $ac_c" 1>&6
14177echo "configure:14178: checking for windows.h" >&5
14178if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14179 echo $ac_n "(cached) $ac_c" 1>&6
14180else
14181 cat > conftest.$ac_ext <<EOF
14182#line 14183 "configure"
14183#include "confdefs.h"
14184#include <windows.h>
14185EOF
14186ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14187{ (eval echo configure:14188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14188ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14189if test -z "$ac_err"; then
14190 rm -rf conftest*
14191 eval "ac_cv_header_$ac_safe=yes"
14192else
14193 echo "$ac_err" >&5
14194 echo "configure: failed program was:" >&5
14195 cat conftest.$ac_ext >&5
14196 rm -rf conftest*
14197 eval "ac_cv_header_$ac_safe=no"
14198fi
14199rm -f conftest*
14200fi
14201if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14202 echo "$ac_t""yes" 1>&6
14203 :
14204else
14205 echo "$ac_t""no" 1>&6
14206
14207 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
14208
14209fi
14210
14211
14212 xpm_link=
14213 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14214echo "configure:14215: checking for Xpm library" >&5
14215
14216ac_find_libraries=
14217for ac_dir in $SEARCH_LIB;
14218 do
14219 for ac_extension in a so sl dylib; do
14220 if test -f "$ac_dir/libXpm.$ac_extension"; then
14221 ac_find_libraries=$ac_dir
14222 break 2
14223 fi
14224 done
14225 done
14226
14227 if test "$ac_find_libraries" != "" ; then
14228 GUI_TK_LIBRARY="-L$ac_find_libraries"
14229 xpm_link=" -lXpm"
14230 cat >> confdefs.h <<\EOF
14231#define wxHAVE_LIB_XPM 1
14232EOF
14233
14234 echo "$ac_t""found at $ac_find_libraries" 1>&6
14235 else
14236 echo "$ac_t""no" 1>&6
14237 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14238 fi
14239
14240 mesa_link=
14241 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
14242echo "configure:14243: checking for Mesa library" >&5
14243
14244ac_find_libraries=
14245for ac_dir in $SEARCH_LIB;
14246 do
14247 for ac_extension in a so sl dylib; do
14248 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
14249 ac_find_libraries=$ac_dir
14250 break 2
14251 fi
14252 done
14253 done
14254
14255 if test "$ac_find_libraries" != "" ; then
14256 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
14257 mesa_link=" -lMesaGL"
14258 echo "$ac_t""found at $ac_find_libraries" 1>&6
14259 else
14260 mesa_link=""
14261 echo "$ac_t""no" 1>&6
14262 echo "configure: warning: library will be compiled without Mesa support" 1>&2
14263 fi
14264
14265 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
14266 TOOLKIT=MSW
14267 GUIDIST=MSW_DIST
14268 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
14269 fi
14270
14271 if test "$wxUSE_MOTIF" = 1; then
14272 if test "$no_x" = yes; then
14273 # Not all programs may use this symbol, but it does not hurt to define it.
14274 cat >> confdefs.h <<\EOF
14275#define X_DISPLAY_MISSING 1
14276EOF
14277
14278 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14279else
14280 if test -n "$x_includes"; then
14281 X_CFLAGS="$X_CFLAGS -I$x_includes"
14282 fi
14283
14284 # It would also be nice to do this for all -L options, not just this one.
14285 if test -n "$x_libraries"; then
14286 X_LIBS="$X_LIBS -L$x_libraries"
14287 # For Solaris; some versions of Sun CC require a space after -R and
14288 # others require no space. Words are not sufficient . . . .
14289 case "`(uname -sr) 2>/dev/null`" in
14290 "SunOS 5"*)
14291 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
14292echo "configure:14293: checking whether -R must be followed by a space" >&5
14293 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14294 cat > conftest.$ac_ext <<EOF
14295#line 14296 "configure"
14296#include "confdefs.h"
14297
14298int main() {
14299
14300; return 0; }
14301EOF
14302if { (eval echo configure:14303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14303 rm -rf conftest*
14304 ac_R_nospace=yes
14305else
14306 echo "configure: failed program was:" >&5
14307 cat conftest.$ac_ext >&5
14308 rm -rf conftest*
14309 ac_R_nospace=no
14310fi
14311rm -f conftest*
14312 if test $ac_R_nospace = yes; then
14313 echo "$ac_t""no" 1>&6
14314 X_LIBS="$X_LIBS -R$x_libraries"
14315 else
14316 LIBS="$ac_xsave_LIBS -R $x_libraries"
14317 cat > conftest.$ac_ext <<EOF
14318#line 14319 "configure"
14319#include "confdefs.h"
14320
14321int main() {
14322
14323; return 0; }
14324EOF
14325if { (eval echo configure:14326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14326 rm -rf conftest*
14327 ac_R_space=yes
14328else
14329 echo "configure: failed program was:" >&5
14330 cat conftest.$ac_ext >&5
14331 rm -rf conftest*
14332 ac_R_space=no
14333fi
14334rm -f conftest*
14335 if test $ac_R_space = yes; then
14336 echo "$ac_t""yes" 1>&6
14337 X_LIBS="$X_LIBS -R $x_libraries"
14338 else
14339 echo "$ac_t""neither works" 1>&6
14340 fi
14341 fi
14342 LIBS="$ac_xsave_LIBS"
14343 esac
14344 fi
14345
14346 # Check for system-dependent libraries X programs must link with.
14347 # Do this before checking for the system-independent R6 libraries
14348 # (-lICE), since we may need -lsocket or whatever for X linking.
14349
14350 if test "$ISC" = yes; then
14351 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14352 else
14353 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14354 # libraries were built with DECnet support. And karl@cs.umb.edu says
14355 # the Alpha needs dnet_stub (dnet does not exist).
14356 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
14357echo "configure:14358: checking for dnet_ntoa in -ldnet" >&5
14358ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14359if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14360 echo $ac_n "(cached) $ac_c" 1>&6
14361else
14362 ac_save_LIBS="$LIBS"
14363LIBS="-ldnet $LIBS"
14364cat > conftest.$ac_ext <<EOF
14365#line 14366 "configure"
14366#include "confdefs.h"
14367/* Override any gcc2 internal prototype to avoid an error. */
14368/* We use char because int might match the return type of a gcc2
14369 builtin and then its argument prototype would still apply. */
14370char dnet_ntoa();
14371
14372int main() {
14373dnet_ntoa()
14374; return 0; }
14375EOF
14376if { (eval echo configure:14377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14377 rm -rf conftest*
14378 eval "ac_cv_lib_$ac_lib_var=yes"
14379else
14380 echo "configure: failed program was:" >&5
14381 cat conftest.$ac_ext >&5
14382 rm -rf conftest*
14383 eval "ac_cv_lib_$ac_lib_var=no"
14384fi
14385rm -f conftest*
14386LIBS="$ac_save_LIBS"
14387
14388fi
14389if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14390 echo "$ac_t""yes" 1>&6
14391 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14392else
14393 echo "$ac_t""no" 1>&6
14394fi
14395
14396 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14397 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
14398echo "configure:14399: checking for dnet_ntoa in -ldnet_stub" >&5
14399ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14400if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14401 echo $ac_n "(cached) $ac_c" 1>&6
14402else
14403 ac_save_LIBS="$LIBS"
14404LIBS="-ldnet_stub $LIBS"
14405cat > conftest.$ac_ext <<EOF
14406#line 14407 "configure"
14407#include "confdefs.h"
14408/* Override any gcc2 internal prototype to avoid an error. */
14409/* We use char because int might match the return type of a gcc2
14410 builtin and then its argument prototype would still apply. */
14411char dnet_ntoa();
14412
14413int main() {
14414dnet_ntoa()
14415; return 0; }
14416EOF
14417if { (eval echo configure:14418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14418 rm -rf conftest*
14419 eval "ac_cv_lib_$ac_lib_var=yes"
14420else
14421 echo "configure: failed program was:" >&5
14422 cat conftest.$ac_ext >&5
14423 rm -rf conftest*
14424 eval "ac_cv_lib_$ac_lib_var=no"
14425fi
14426rm -f conftest*
14427LIBS="$ac_save_LIBS"
14428
14429fi
14430if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14431 echo "$ac_t""yes" 1>&6
14432 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14433else
14434 echo "$ac_t""no" 1>&6
14435fi
14436
14437 fi
14438
14439 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14440 # to get the SysV transport functions.
14441 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
14442 # needs -lnsl.
14443 # The nsl library prevents programs from opening the X display
14444 # on Irix 5.2, according to dickey@clark.net.
14445 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
14446echo "configure:14447: checking for gethostbyname" >&5
14447if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14448 echo $ac_n "(cached) $ac_c" 1>&6
14449else
14450 cat > conftest.$ac_ext <<EOF
14451#line 14452 "configure"
14452#include "confdefs.h"
14453/* System header to define __stub macros and hopefully few prototypes,
14454 which can conflict with char gethostbyname(); below. */
14455#include <assert.h>
14456/* Override any gcc2 internal prototype to avoid an error. */
14457/* We use char because int might match the return type of a gcc2
14458 builtin and then its argument prototype would still apply. */
14459char gethostbyname();
14460
14461int main() {
14462
14463/* The GNU C library defines this for functions which it implements
14464 to always fail with ENOSYS. Some functions are actually named
14465 something starting with __ and the normal name is an alias. */
14466#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14467choke me
14468#else
14469gethostbyname();
14470#endif
14471
14472; return 0; }
14473EOF
14474if { (eval echo configure:14475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14475 rm -rf conftest*
14476 eval "ac_cv_func_gethostbyname=yes"
14477else
14478 echo "configure: failed program was:" >&5
14479 cat conftest.$ac_ext >&5
14480 rm -rf conftest*
14481 eval "ac_cv_func_gethostbyname=no"
14482fi
14483rm -f conftest*
14484fi
14485
14486if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14487 echo "$ac_t""yes" 1>&6
14488 :
14489else
14490 echo "$ac_t""no" 1>&6
14491fi
14492
14493 if test $ac_cv_func_gethostbyname = no; then
14494 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
14495echo "configure:14496: checking for gethostbyname in -lnsl" >&5
14496ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14497if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14498 echo $ac_n "(cached) $ac_c" 1>&6
14499else
14500 ac_save_LIBS="$LIBS"
14501LIBS="-lnsl $LIBS"
14502cat > conftest.$ac_ext <<EOF
14503#line 14504 "configure"
14504#include "confdefs.h"
14505/* Override any gcc2 internal prototype to avoid an error. */
14506/* We use char because int might match the return type of a gcc2
14507 builtin and then its argument prototype would still apply. */
14508char gethostbyname();
14509
14510int main() {
14511gethostbyname()
14512; return 0; }
14513EOF
14514if { (eval echo configure:14515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14515 rm -rf conftest*
14516 eval "ac_cv_lib_$ac_lib_var=yes"
14517else
14518 echo "configure: failed program was:" >&5
14519 cat conftest.$ac_ext >&5
14520 rm -rf conftest*
14521 eval "ac_cv_lib_$ac_lib_var=no"
14522fi
14523rm -f conftest*
14524LIBS="$ac_save_LIBS"
14525
14526fi
14527if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14528 echo "$ac_t""yes" 1>&6
14529 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14530else
14531 echo "$ac_t""no" 1>&6
14532fi
14533
14534 fi
14535
14536 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14537 # socket/setsockopt and other routines are undefined under SCO ODT
14538 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14539 # on later versions), says simon@lia.di.epfl.ch: it contains
14540 # gethostby* variants that don't use the nameserver (or something).
14541 # -lsocket must be given before -lnsl if both are needed.
14542 # We assume that if connect needs -lnsl, so does gethostbyname.
14543 echo $ac_n "checking for connect""... $ac_c" 1>&6
14544echo "configure:14545: checking for connect" >&5
14545if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14546 echo $ac_n "(cached) $ac_c" 1>&6
14547else
14548 cat > conftest.$ac_ext <<EOF
14549#line 14550 "configure"
14550#include "confdefs.h"
14551/* System header to define __stub macros and hopefully few prototypes,
14552 which can conflict with char connect(); below. */
14553#include <assert.h>
14554/* Override any gcc2 internal prototype to avoid an error. */
14555/* We use char because int might match the return type of a gcc2
14556 builtin and then its argument prototype would still apply. */
14557char connect();
14558
14559int main() {
14560
14561/* The GNU C library defines this for functions which it implements
14562 to always fail with ENOSYS. Some functions are actually named
14563 something starting with __ and the normal name is an alias. */
14564#if defined (__stub_connect) || defined (__stub___connect)
14565choke me
14566#else
14567connect();
14568#endif
14569
14570; return 0; }
14571EOF
14572if { (eval echo configure:14573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14573 rm -rf conftest*
14574 eval "ac_cv_func_connect=yes"
14575else
14576 echo "configure: failed program was:" >&5
14577 cat conftest.$ac_ext >&5
14578 rm -rf conftest*
14579 eval "ac_cv_func_connect=no"
14580fi
14581rm -f conftest*
14582fi
14583
14584if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14585 echo "$ac_t""yes" 1>&6
14586 :
14587else
14588 echo "$ac_t""no" 1>&6
14589fi
14590
14591 if test $ac_cv_func_connect = no; then
14592 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14593echo "configure:14594: checking for connect in -lsocket" >&5
14594ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14595if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14596 echo $ac_n "(cached) $ac_c" 1>&6
14597else
14598 ac_save_LIBS="$LIBS"
14599LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14600cat > conftest.$ac_ext <<EOF
14601#line 14602 "configure"
14602#include "confdefs.h"
14603/* Override any gcc2 internal prototype to avoid an error. */
14604/* We use char because int might match the return type of a gcc2
14605 builtin and then its argument prototype would still apply. */
14606char connect();
14607
14608int main() {
14609connect()
14610; return 0; }
14611EOF
14612if { (eval echo configure:14613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14613 rm -rf conftest*
14614 eval "ac_cv_lib_$ac_lib_var=yes"
14615else
14616 echo "configure: failed program was:" >&5
14617 cat conftest.$ac_ext >&5
14618 rm -rf conftest*
14619 eval "ac_cv_lib_$ac_lib_var=no"
14620fi
14621rm -f conftest*
14622LIBS="$ac_save_LIBS"
14623
14624fi
14625if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14626 echo "$ac_t""yes" 1>&6
14627 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14628else
14629 echo "$ac_t""no" 1>&6
14630fi
14631
14632 fi
14633
14634 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14635 echo $ac_n "checking for remove""... $ac_c" 1>&6
14636echo "configure:14637: checking for remove" >&5
14637if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14638 echo $ac_n "(cached) $ac_c" 1>&6
14639else
14640 cat > conftest.$ac_ext <<EOF
14641#line 14642 "configure"
14642#include "confdefs.h"
14643/* System header to define __stub macros and hopefully few prototypes,
14644 which can conflict with char remove(); below. */
14645#include <assert.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 remove();
14650
14651int main() {
14652
14653/* The GNU C library defines this for functions which it implements
14654 to always fail with ENOSYS. Some functions are actually named
14655 something starting with __ and the normal name is an alias. */
14656#if defined (__stub_remove) || defined (__stub___remove)
14657choke me
14658#else
14659remove();
14660#endif
14661
14662; return 0; }
14663EOF
14664if { (eval echo configure:14665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14665 rm -rf conftest*
14666 eval "ac_cv_func_remove=yes"
14667else
14668 echo "configure: failed program was:" >&5
14669 cat conftest.$ac_ext >&5
14670 rm -rf conftest*
14671 eval "ac_cv_func_remove=no"
14672fi
14673rm -f conftest*
14674fi
14675
14676if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14677 echo "$ac_t""yes" 1>&6
14678 :
14679else
14680 echo "$ac_t""no" 1>&6
14681fi
14682
14683 if test $ac_cv_func_remove = no; then
14684 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14685echo "configure:14686: checking for remove in -lposix" >&5
14686ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14687if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14688 echo $ac_n "(cached) $ac_c" 1>&6
14689else
14690 ac_save_LIBS="$LIBS"
14691LIBS="-lposix $LIBS"
14692cat > conftest.$ac_ext <<EOF
14693#line 14694 "configure"
14694#include "confdefs.h"
14695/* Override any gcc2 internal prototype to avoid an error. */
14696/* We use char because int might match the return type of a gcc2
14697 builtin and then its argument prototype would still apply. */
14698char remove();
14699
14700int main() {
14701remove()
14702; return 0; }
14703EOF
14704if { (eval echo configure:14705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14705 rm -rf conftest*
14706 eval "ac_cv_lib_$ac_lib_var=yes"
14707else
14708 echo "configure: failed program was:" >&5
14709 cat conftest.$ac_ext >&5
14710 rm -rf conftest*
14711 eval "ac_cv_lib_$ac_lib_var=no"
14712fi
14713rm -f conftest*
14714LIBS="$ac_save_LIBS"
14715
14716fi
14717if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14718 echo "$ac_t""yes" 1>&6
14719 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14720else
14721 echo "$ac_t""no" 1>&6
14722fi
14723
14724 fi
14725
14726 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14727 echo $ac_n "checking for shmat""... $ac_c" 1>&6
14728echo "configure:14729: checking for shmat" >&5
14729if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14730 echo $ac_n "(cached) $ac_c" 1>&6
14731else
14732 cat > conftest.$ac_ext <<EOF
14733#line 14734 "configure"
14734#include "confdefs.h"
14735/* System header to define __stub macros and hopefully few prototypes,
14736 which can conflict with char shmat(); below. */
14737#include <assert.h>
14738/* Override any gcc2 internal prototype to avoid an error. */
14739/* We use char because int might match the return type of a gcc2
14740 builtin and then its argument prototype would still apply. */
14741char shmat();
14742
14743int main() {
14744
14745/* The GNU C library defines this for functions which it implements
14746 to always fail with ENOSYS. Some functions are actually named
14747 something starting with __ and the normal name is an alias. */
14748#if defined (__stub_shmat) || defined (__stub___shmat)
14749choke me
14750#else
14751shmat();
14752#endif
14753
14754; return 0; }
14755EOF
14756if { (eval echo configure:14757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14757 rm -rf conftest*
14758 eval "ac_cv_func_shmat=yes"
14759else
14760 echo "configure: failed program was:" >&5
14761 cat conftest.$ac_ext >&5
14762 rm -rf conftest*
14763 eval "ac_cv_func_shmat=no"
14764fi
14765rm -f conftest*
14766fi
14767
14768if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14769 echo "$ac_t""yes" 1>&6
14770 :
14771else
14772 echo "$ac_t""no" 1>&6
14773fi
14774
14775 if test $ac_cv_func_shmat = no; then
14776 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14777echo "configure:14778: checking for shmat in -lipc" >&5
14778ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14779if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14780 echo $ac_n "(cached) $ac_c" 1>&6
14781else
14782 ac_save_LIBS="$LIBS"
14783LIBS="-lipc $LIBS"
14784cat > conftest.$ac_ext <<EOF
14785#line 14786 "configure"
14786#include "confdefs.h"
14787/* Override any gcc2 internal prototype to avoid an error. */
14788/* We use char because int might match the return type of a gcc2
14789 builtin and then its argument prototype would still apply. */
14790char shmat();
14791
14792int main() {
14793shmat()
14794; return 0; }
14795EOF
14796if { (eval echo configure:14797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14797 rm -rf conftest*
14798 eval "ac_cv_lib_$ac_lib_var=yes"
14799else
14800 echo "configure: failed program was:" >&5
14801 cat conftest.$ac_ext >&5
14802 rm -rf conftest*
14803 eval "ac_cv_lib_$ac_lib_var=no"
14804fi
14805rm -f conftest*
14806LIBS="$ac_save_LIBS"
14807
14808fi
14809if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14810 echo "$ac_t""yes" 1>&6
14811 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14812else
14813 echo "$ac_t""no" 1>&6
14814fi
14815
14816 fi
14817 fi
14818
14819 # Check for libraries that X11R6 Xt/Xaw programs need.
14820 ac_save_LDFLAGS="$LDFLAGS"
14821 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14822 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14823 # check for ICE first), but we must link in the order -lSM -lICE or
14824 # we get undefined symbols. So assume we have SM if we have ICE.
14825 # These have to be linked with before -lX11, unlike the other
14826 # libraries we check for below, so use a different variable.
14827 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14828 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14829echo "configure:14830: checking for IceConnectionNumber in -lICE" >&5
14830ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14831if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14832 echo $ac_n "(cached) $ac_c" 1>&6
14833else
14834 ac_save_LIBS="$LIBS"
14835LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14836cat > conftest.$ac_ext <<EOF
14837#line 14838 "configure"
14838#include "confdefs.h"
14839/* Override any gcc2 internal prototype to avoid an error. */
14840/* We use char because int might match the return type of a gcc2
14841 builtin and then its argument prototype would still apply. */
14842char IceConnectionNumber();
14843
14844int main() {
14845IceConnectionNumber()
14846; return 0; }
14847EOF
14848if { (eval echo configure:14849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14849 rm -rf conftest*
14850 eval "ac_cv_lib_$ac_lib_var=yes"
14851else
14852 echo "configure: failed program was:" >&5
14853 cat conftest.$ac_ext >&5
14854 rm -rf conftest*
14855 eval "ac_cv_lib_$ac_lib_var=no"
14856fi
14857rm -f conftest*
14858LIBS="$ac_save_LIBS"
14859
14860fi
14861if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14862 echo "$ac_t""yes" 1>&6
14863 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14864else
14865 echo "$ac_t""no" 1>&6
14866fi
14867
14868 LDFLAGS="$ac_save_LDFLAGS"
14869
14870fi
14871
14872
14873 if test "$no_x" = "yes"; then
14874 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14875 fi
14876
14877 GUI_TK_LIBRARY="$X_LIBS"
14878 TOOLKIT_INCLUDE="$X_CFLAGS"
14879 AFMINSTALL=afminstall
14880 COMPILED_X_PROGRAM=0
14881
14882 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
14883echo "configure:14884: checking for Motif/Lesstif headers" >&5
14884
14885ac_find_includes=
14886for ac_dir in $SEARCH_INCLUDE;
14887 do
14888 if test -f "$ac_dir/Xm/Xm.h"; then
14889 ac_find_includes=$ac_dir
14890 break
14891 fi
14892 done
14893
14894 if test "$ac_find_includes" != "" ; then
14895 echo "$ac_t""found in $ac_find_includes" 1>&6
14896
14897 ac_path_to_include=$ac_find_includes
14898 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
14899 result=$?
14900 if test $result = 0; then
14901 ac_path_to_include=""
14902 else
14903 ac_path_to_include=" -I$ac_find_includes"
14904 fi
14905
14906 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
14907 else
14908 cat > conftest.$ac_ext <<EOF
14909#line 14910 "configure"
14910#include "confdefs.h"
14911
14912 #include <Xm/Xm.h>
14913
14914int main() {
14915
14916 int version;
14917 version = xmUseVersion;
14918
14919; return 0; }
14920EOF
14921if { (eval echo configure:14922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14922 rm -rf conftest*
14923
14924 echo "$ac_t""found in default search path" 1>&6
14925 COMPILED_X_PROGRAM=1
14926
14927else
14928 echo "configure: failed program was:" >&5
14929 cat conftest.$ac_ext >&5
14930 rm -rf conftest*
14931
14932 echo "$ac_t""no" 1>&6
14933 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
14934
14935
14936fi
14937rm -f conftest*
14938 fi
14939
14940 if test "$COMPILED_X_PROGRAM" = 0; then
14941 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
14942echo "configure:14943: checking for Motif/Lesstif library" >&5
14943
14944ac_find_libraries=
14945for ac_dir in $SEARCH_LIB;
14946 do
14947 for ac_extension in a so sl dylib; do
14948 if test -f "$ac_dir/libXm.$ac_extension"; then
14949 ac_find_libraries=$ac_dir
14950 break 2
14951 fi
14952 done
14953 done
14954
14955 if test "$ac_find_libraries" != "" ; then
14956 echo "$ac_t""found at $ac_find_libraries" 1>&6
14957
14958
14959 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14960 result=$?
14961 if test $result = 0; then
14962 ac_path_to_link=""
14963 else
14964 ac_path_to_link=" -L$ac_find_libraries"
14965 fi
14966
14967 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14968 else
14969 save_CFLAGS=$CFLAGS
14970 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
14971
14972 cat > conftest.$ac_ext <<EOF
14973#line 14974 "configure"
14974#include "confdefs.h"
14975
14976 #include <Xm/Xm.h>
14977
14978int main() {
14979
14980 int version;
14981 version = xmUseVersion;
14982
14983; return 0; }
14984EOF
14985if { (eval echo configure:14986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14986 rm -rf conftest*
14987
14988 echo "$ac_t""found in default search path" 1>&6
14989 COMPILED_X_PROGRAM=1
14990
14991else
14992 echo "configure: failed program was:" >&5
14993 cat conftest.$ac_ext >&5
14994 rm -rf conftest*
14995
14996 echo "$ac_t""no" 1>&6
14997 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
14998
14999
15000fi
15001rm -f conftest*
15002
15003 CFLAGS=$save_CFLAGS
15004 fi
15005 fi
15006
15007 xpm_link=
15008 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
15009echo "configure:15010: checking for Xpm library" >&5
15010
15011ac_find_libraries=
15012for ac_dir in $SEARCH_LIB;
15013 do
15014 for ac_extension in a so sl dylib; do
15015 if test -f "$ac_dir/libXpm.$ac_extension"; then
15016 ac_find_libraries=$ac_dir
15017 break 2
15018 fi
15019 done
15020 done
15021
15022 if test "$ac_find_libraries" != "" ; then
15023
15024 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15025 result=$?
15026 if test $result = 0; then
15027 ac_path_to_link=""
15028 else
15029 ac_path_to_link=" -L$ac_find_libraries"
15030 fi
15031
15032 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15033
15034 xpm_link=" -lXpm"
15035 cat >> confdefs.h <<\EOF
15036#define wxHAVE_LIB_XPM 1
15037EOF
15038
15039 echo "$ac_t""found at $ac_find_libraries" 1>&6
15040 else
15041 save_CFLAGS=$CFLAGS
15042 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15043
15044 cat > conftest.$ac_ext <<EOF
15045#line 15046 "configure"
15046#include "confdefs.h"
15047
15048 #include <X11/xpm.h>
15049
15050int main() {
15051
15052 int version;
15053 version = XpmLibraryVersion();
15054
15055; return 0; }
15056EOF
15057if { (eval echo configure:15058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15058 rm -rf conftest*
15059
15060 xpm_link=" -lXpm"
15061 cat >> confdefs.h <<\EOF
15062#define wxHAVE_LIB_XPM 1
15063EOF
15064
15065 echo "$ac_t""found in default search path" 1>&6
15066 COMPILED_X_PROGRAM=0
15067
15068else
15069 echo "configure: failed program was:" >&5
15070 cat conftest.$ac_ext >&5
15071 rm -rf conftest*
15072
15073 echo "$ac_t""no" 1>&6
15074 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15075
15076
15077fi
15078rm -f conftest*
15079
15080 CFLAGS=$save_CFLAGS
15081 fi
15082
15083 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
15084echo "configure:15085: checking if we need -lXp and/or -lSM -lICE" >&5
15085 libp_link=""
15086 libsm_ice_link=""
15087 libs_found=0
15088 for libp in "" " -lXp"; do
15089 if test "$libs_found" = "0"; then
15090 for libsm_ice in " -lSM -lICE"; do
15091 if test "$libs_found" = "0"; then
15092 save_LIBS="$LIBS"
15093 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
15094 save_CFLAGS=$CFLAGS
15095 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15096
15097 cat > conftest.$ac_ext <<EOF
15098#line 15099 "configure"
15099#include "confdefs.h"
15100
15101 #include <Xm/Xm.h>
15102 #include <Xm/List.h>
15103
15104int main() {
15105
15106 XmString string = NULL;
15107 Widget w = NULL;
15108 int position = 0;
15109 XmListAddItem(w, string, position);
15110
15111; return 0; }
15112EOF
15113if { (eval echo configure:15114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15114 rm -rf conftest*
15115
15116 libp_link="$libp"
15117 libsm_ice_link="$libsm_ice"
15118 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
15119 libs_found=1
15120
15121else
15122 echo "configure: failed program was:" >&5
15123 cat conftest.$ac_ext >&5
15124 rm -rf conftest*
15125
15126
15127fi
15128rm -f conftest*
15129
15130 LIBS="$save_LIBS"
15131 CFLAGS=$save_CFLAGS
15132 fi
15133 done
15134 fi
15135 done
15136
15137 if test "$libs_found" = "0"; then
15138 echo "$ac_t""can't find the right libraries" 1>&6
15139 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
15140 fi
15141
15142 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
15143 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
15144 TOOLKIT=MOTIF
15145 GUIDIST=MOTIF_DIST
15146 fi
15147
15148 if test "$wxUSE_MAC" = 1; then
15149 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefile -I/Developer/Headers/FlatCarbon"
15150
15151 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
15152 TOOLKIT=MAC
15153 GUIDIST=MACX_DIST
15154 fi
15155
15156 if test "$wxUSE_PM" = 1; then
15157 TOOLKIT=PM
15158 GUIDIST=GTK_DIST
15159 fi
15160
15161 if test "$TOOLKIT" = "PM" ; then
15162 TOOLKIT_DIR="os2"
15163 else
15164 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15165 fi
15166
15167 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15168
15169 if test "$wxUSE_UNIVERSAL" = "yes"; then
15170 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15171
15172 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15173 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15174
15175 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15176 if test "$wxUSE_X11" = 1; then
15177 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15178 else
15179 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15180 fi
15181 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15182 WIDGET_SET=univ
15183 else
15184 ALL_OBJECTS="\$(GUIOBJS)"
15185 ALL_SOURCES="\$(ALL_SOURCES)"
15186 ALL_HEADERS="\$(ALL_HEADERS)"
15187 fi
15188
15189 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15190
15191 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15192 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15193 fi
15194
15195 if test "$wxUSE_HTML" = "yes"; then
15196 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15197 fi
15198
15199 if test "$wxUSE_LIBJPEG" = "builtin" ; then
15200 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15201 fi
15202 if test "$wxUSE_LIBTIFF" = "builtin" ; then
15203 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15204 fi
15205 if test "$wxUSE_LIBPNG" = "builtin" ; then
15206 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15207 fi
15208
15209 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15210 DISTDIR="wx\$(TOOLKIT)"
15211else
15212 USE_GUI=0
15213
15214 TOOLKIT_DIR="base"
15215
15216 if test "$USE_WIN32" = 1 ; then
15217 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15218 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15219
15220 TOOLKIT="MSW"
15221 else
15222 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15223 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15224 fi
15225
15226 ALL_SOURCES="\$(ALL_SOURCES)"
15227 ALL_HEADERS="\$(ALL_HEADERS)"
15228
15229 PORT_FILES="\${top_srcdir}/src/files.lst"
15230
15231 GUIDIST="BASE_DIST"
15232 DISTDIR="wxBase"
15233fi
15234
15235
15236if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
15237 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
15238fi
15239
15240if test "$wxUSE_REGEX" = "builtin" ; then
15241 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
15242fi
15243if test "$wxUSE_ZLIB" = "builtin" ; then
15244 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
15245fi
15246
15247
15248if test "$wxUSE_OPENGL" = "yes"; then
15249 if test "$wxUSE_MAC" = 1; then
15250 OPENGL_LIBS="-framework OpenGL -framework AGL"
15251 elif test "$wxUSE_MSW" = 1; then
15252 OPENGL_LIBS="-lopengl32 -lglu32"
15253 else
15254 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15255echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15256echo "configure:15257: checking for GL/gl.h" >&5
15257if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15258 echo $ac_n "(cached) $ac_c" 1>&6
15259else
15260 cat > conftest.$ac_ext <<EOF
15261#line 15262 "configure"
15262#include "confdefs.h"
15263#include <GL/gl.h>
15264EOF
15265ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15266{ (eval echo configure:15267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15267ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15268if test -z "$ac_err"; then
15269 rm -rf conftest*
15270 eval "ac_cv_header_$ac_safe=yes"
15271else
15272 echo "$ac_err" >&5
15273 echo "configure: failed program was:" >&5
15274 cat conftest.$ac_ext >&5
15275 rm -rf conftest*
15276 eval "ac_cv_header_$ac_safe=no"
15277fi
15278rm -f conftest*
15279fi
15280if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15281 echo "$ac_t""yes" 1>&6
15282
15283 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
15284echo "configure:15285: checking for -lGL" >&5
15285
15286ac_find_libraries=
15287for ac_dir in $SEARCH_LIB;
15288 do
15289 for ac_extension in a so sl dylib; do
15290 if test -f "$ac_dir/libGL.$ac_extension"; then
15291 ac_find_libraries=$ac_dir
15292 break 2
15293 fi
15294 done
15295 done
15296
15297 if test "$ac_find_libraries" != "" ; then
15298
15299 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15300 result=$?
15301 if test $result = 0; then
15302 ac_path_to_link=""
15303 else
15304 ac_path_to_link=" -L$ac_find_libraries"
15305 fi
15306
15307 if test "$ac_path_to_link" = " -L/usr/lib" ; then
15308 LDFLAGS_GL="$LDFLAGS"
15309 else
15310 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15311 fi
15312 OPENGL_LIBS="-lGL -lGLU"
15313 echo "$ac_t""yes" 1>&6
15314 else
15315 echo "$ac_t""no" 1>&6
15316 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
15317echo "configure:15318: checking for -lMesaGL" >&5
15318
15319ac_find_libraries=
15320for ac_dir in $SEARCH_LIB;
15321 do
15322 for ac_extension in a so sl dylib; do
15323 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
15324 ac_find_libraries=$ac_dir
15325 break 2
15326 fi
15327 done
15328 done
15329
15330 if test "$ac_find_libraries" != "" ; then
15331
15332 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15333 result=$?
15334 if test $result = 0; then
15335 ac_path_to_link=""
15336 else
15337 ac_path_to_link=" -L$ac_find_libraries"
15338 fi
15339
15340 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15341 OPENGL_LIBS="-lMesaGL -lMesaGLU"
15342 echo "$ac_t""yes" 1>&6
15343 else
15344 echo "$ac_t""no" 1>&6
15345 fi
15346 fi
15347
15348else
15349 echo "$ac_t""no" 1>&6
15350fi
15351
15352
15353 if test "x$OPENGL_LIBS" = "x"; then
15354 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
15355 fi
15356 fi
15357
15358 if test "$wxUSE_OPENGL" = "yes"; then
15359 cat >> confdefs.h <<\EOF
15360#define wxUSE_OPENGL 1
15361EOF
15362
15363 cat >> confdefs.h <<\EOF
15364#define wxUSE_GLCANVAS 1
15365EOF
15366
15367 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15368 fi
15369fi
15370
15371if test -z "$TOOLKIT_VPATH" ; then
15372 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
15373fi
15374
15375if test -n "$TOOLKIT" ; then
15376 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
15377fi
15378
15379lib_unicode_suffix=
15380if test "$wxUSE_UNICODE" = "yes"; then
15381 lib_unicode_suffix=u
15382fi
15383
15384lib_debug_suffix=
15385if test "$wxUSE_DEBUG_FLAG" = "yes"; then
15386 lib_debug_suffix=d
15387fi
15388
15389TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
15390TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
15391
15392if test "$cross_compiling" = "yes"; then
15393 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
15394 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
15395fi
15396
15397WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
15398WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
15399
15400WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15401WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15402
15403WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
15404WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15405WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
15406WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15407
15408case "${host}" in
15409 *-*-cygwin* | *-*-mingw32* )
15410
15411
15412
15413 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
15414 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15415 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15416 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
15417 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
15418 else
15419 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
15420 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15421 fi
15422 ;;
15423
15424 *-*-darwin* )
15425 if test "$wxUSE_MAC" = 1; then
15426 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
15427 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
15428 fi
15429 ;;
15430esac
15431
15432WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
15433WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
15434
15435WXCONFIG_LIBS="-l${WX_LIBRARY}"
15436WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
15437
15438if test "$wxUSE_OPENGL" = "yes"; then
15439 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
15440 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
15441fi
15442
15443
15444
15445if test "$wxUSE_SHARED" = "yes"; then
15446 case "${host}" in
15447 *-pc-os2_emx | *-pc-os2-emx | \
15448 *-pc-msdosdjgpp )
15449 wxUSE_SHARED=no
15450 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
15451 ;;
15452 esac
15453fi
15454
15455if test "$wxUSE_SHARED" = "yes"; then
15456
15457 if test "$wxUSE_OPENGL" = "yes"; then
15458 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
15459 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
15460 else
15461 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
15462 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
15463 fi
15464
15465 if test "$GCC" = "yes"; then
15466 PIC_FLAG="-fPIC"
15467 fi
15468
15469 SHARED_LD="${CXX} -shared -o"
15470
15471 case "${host}" in
15472 *-hp-hpux* )
15473 if test "$GCC" = "yes"; then
15474 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
15475 else
15476 LDFLAGS="$LDFLAGS -L/usr/lib"
15477
15478 SHARED_LD="${CXX} -b -o"
15479 PIC_FLAG="+Z"
15480 fi
15481
15482 if test "$wxUSE_OPENGL" = "yes"; then
15483 WX_ALL_INSTALLED="preinstall_gl"
15484 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15485 else
15486 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15487 fi
15488 ;;
15489
15490 *-*-linux* )
15491 if test "$GCC" != "yes"; then
15492 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
15493echo "configure:15494: checking for Intel compiler" >&5
15494if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
15495 echo $ac_n "(cached) $ac_c" 1>&6
15496else
15497
15498 cat > conftest.$ac_ext <<EOF
15499#line 15500 "configure"
15500#include "confdefs.h"
15501
15502int main() {
15503
15504 #ifndef __INTEL_COMPILER
15505 #error Not icc
15506 #endif
15507
15508; return 0; }
15509EOF
15510if { (eval echo configure:15511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15511 rm -rf conftest*
15512 wx_cv_prog_icc=yes
15513else
15514 echo "configure: failed program was:" >&5
15515 cat conftest.$ac_ext >&5
15516 rm -rf conftest*
15517 wx_cv_prog_icc=no
15518
15519fi
15520rm -f conftest*
15521
15522fi
15523
15524echo "$ac_t""$wx_cv_prog_icc" 1>&6
15525 if test "$wx_cv_prog_icc" = "yes"; then
15526 PIC_FLAG="-KPIC"
15527 fi
15528 fi
15529
15530 if test "$wxUSE_SONAME" = "yes" ; then
15531 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
15532 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
15533 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
15534 fi
15535 ;;
15536
15537 *-*-solaris2* )
15538 if test "$GCC" = yes ; then
15539 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
15540 else
15541 SHARED_LD="${CXX} -G -o"
15542 PIC_FLAG="-KPIC"
15543 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
15544 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
15545 fi
15546 ;;
15547
15548 *-*-darwin* )
15549 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
15550 CFLAGS="$CFLAGS -fno-common"
15551 CXXFLAGS="$CXXFLAGS -fno-common"
15552 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
15553 PIC_FLAG="-dynamic -fPIC"
15554 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
15555 SONAME_FLAGS_GL=${SONAME_FLAGS}
15556 ;;
15557
15558 *-*-aix* )
15559 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
15560set dummy makeC++SharedLib; ac_word=$2
15561echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15562echo "configure:15563: checking for $ac_word" >&5
15563if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
15564 echo $ac_n "(cached) $ac_c" 1>&6
15565else
15566 if test -n "$AIX_CXX_LD"; then
15567 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
15568else
15569 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15570 ac_dummy="$PATH"
15571 for ac_dir in $ac_dummy; do
15572 test -z "$ac_dir" && ac_dir=.
15573 if test -f $ac_dir/$ac_word; then
15574 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
15575 break
15576 fi
15577 done
15578 IFS="$ac_save_ifs"
15579 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
15580fi
15581fi
15582AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
15583if test -n "$AIX_CXX_LD"; then
15584 echo "$ac_t""$AIX_CXX_LD" 1>&6
15585else
15586 echo "$ac_t""no" 1>&6
15587fi
15588
15589
15590 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
15591 ;;
15592
15593 *-*-cygwin* | *-*-mingw32* )
15594
15595 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
15596
15597 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
15598 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
15599
15600 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
15601
15602 if test "$wxUSE_OPENGL" = "yes"; then
15603 WX_ALL_INSTALLED="preinstall_gl"
15604 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15605 else
15606 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15607 fi
15608 ;;
15609
15610 *-*-beos* )
15611 SHARED_LD="${LD} -shared -o"
15612 ;;
15613
15614 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
15615 *-*-sunos4* | \
15616 *-*-irix5* | *-*-irix6* | \
15617 *-*-osf* | \
15618 *-*-dgux5* | \
15619 *-*-sysv5* )
15620 ;;
15621
15622 *)
15623 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
15624 esac
15625
15626 if test "x$WX_TARGET_LIBRARY" = "x"; then
15627 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
15628 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
15629 fi
15630
15631 WX_TARGET_LIBRARY_TYPE="so"
15632 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
15633fi
15634
15635if test "$wxUSE_SHARED" = "no"; then
15636
15637 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
15638 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15639 fi
15640
15641 if test "$wxUSE_MAC" = 1; then
15642 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15643 fi
15644
15645 if test "$wxUSE_OPENGL" = "yes"; then
15646 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
15647 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
15648 else
15649 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
15650 fi
15651
15652 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
15653 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
15654
15655 WX_TARGET_LIBRARY_TYPE="a"
15656 INSTALL_LIBRARY='$(INSTALL_DATA)'
15657
15658 STATIC_FLAG="yes"
15659else
15660 STATIC_FLAG="no"
15661fi
15662
15663if test "$wxUSE_MAC" = 1; then
15664 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
15665 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
15666 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
15667 # Extract the first word of "Rez", so it can be a program name with args.
15668set dummy Rez; ac_word=$2
15669echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15670echo "configure:15671: checking for $ac_word" >&5
15671if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
15672 echo $ac_n "(cached) $ac_c" 1>&6
15673else
15674 if test -n "$RESCOMP"; then
15675 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
15676else
15677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15678 ac_dummy="$PATH"
15679 for ac_dir in $ac_dummy; do
15680 test -z "$ac_dir" && ac_dir=.
15681 if test -f $ac_dir/$ac_word; then
15682 ac_cv_prog_RESCOMP="Rez"
15683 break
15684 fi
15685 done
15686 IFS="$ac_save_ifs"
15687 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
15688fi
15689fi
15690RESCOMP="$ac_cv_prog_RESCOMP"
15691if test -n "$RESCOMP"; then
15692 echo "$ac_t""$RESCOMP" 1>&6
15693else
15694 echo "$ac_t""no" 1>&6
15695fi
15696
15697 # Extract the first word of "DeRez", so it can be a program name with args.
15698set dummy DeRez; ac_word=$2
15699echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15700echo "configure:15701: checking for $ac_word" >&5
15701if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
15702 echo $ac_n "(cached) $ac_c" 1>&6
15703else
15704 if test -n "$DEREZ"; then
15705 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
15706else
15707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15708 ac_dummy="$PATH"
15709 for ac_dir in $ac_dummy; do
15710 test -z "$ac_dir" && ac_dir=.
15711 if test -f $ac_dir/$ac_word; then
15712 ac_cv_prog_DEREZ="DeRez"
15713 break
15714 fi
15715 done
15716 IFS="$ac_save_ifs"
15717 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
15718fi
15719fi
15720DEREZ="$ac_cv_prog_DEREZ"
15721if test -n "$DEREZ"; then
15722 echo "$ac_t""$DEREZ" 1>&6
15723else
15724 echo "$ac_t""no" 1>&6
15725fi
15726
15727 MACOSX_BUNDLE="bundle"
15728 if test "$wxUSE_SHARED" = "yes"; then
15729 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)"
15730 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o"
15731 else
15732 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
15733 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
15734 fi
15735else
15736 if test "$wxUSE_PM" = 1; then
15737 LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
15738 fi
15739fi
15740
15741
15742echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
15743echo "configure:15744: checking for ANSI C header files" >&5
15744if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
15745 echo $ac_n "(cached) $ac_c" 1>&6
15746else
15747 cat > conftest.$ac_ext <<EOF
15748#line 15749 "configure"
15749#include "confdefs.h"
15750#include <stdlib.h>
15751#include <stdarg.h>
15752#include <string.h>
15753#include <float.h>
15754EOF
15755ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15756{ (eval echo configure:15757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15757ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15758if test -z "$ac_err"; then
15759 rm -rf conftest*
15760 ac_cv_header_stdc=yes
15761else
15762 echo "$ac_err" >&5
15763 echo "configure: failed program was:" >&5
15764 cat conftest.$ac_ext >&5
15765 rm -rf conftest*
15766 ac_cv_header_stdc=no
15767fi
15768rm -f conftest*
15769
15770if test $ac_cv_header_stdc = yes; then
15771 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15772cat > conftest.$ac_ext <<EOF
15773#line 15774 "configure"
15774#include "confdefs.h"
15775#include <string.h>
15776EOF
15777if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15778 egrep "memchr" >/dev/null 2>&1; then
15779 :
15780else
15781 rm -rf conftest*
15782 ac_cv_header_stdc=no
15783fi
15784rm -f conftest*
15785
15786fi
15787
15788if test $ac_cv_header_stdc = yes; then
15789 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15790cat > conftest.$ac_ext <<EOF
15791#line 15792 "configure"
15792#include "confdefs.h"
15793#include <stdlib.h>
15794EOF
15795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15796 egrep "free" >/dev/null 2>&1; then
15797 :
15798else
15799 rm -rf conftest*
15800 ac_cv_header_stdc=no
15801fi
15802rm -f conftest*
15803
15804fi
15805
15806if test $ac_cv_header_stdc = yes; then
15807 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15808if test "$cross_compiling" = yes; then
15809 :
15810else
15811 cat > conftest.$ac_ext <<EOF
15812#line 15813 "configure"
15813#include "confdefs.h"
15814#include <ctype.h>
15815#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15816#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15817#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15818int main () { int i; for (i = 0; i < 256; i++)
15819if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15820exit (0); }
15821
15822EOF
15823if { (eval echo configure:15824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15824then
15825 :
15826else
15827 echo "configure: failed program was:" >&5
15828 cat conftest.$ac_ext >&5
15829 rm -fr conftest*
15830 ac_cv_header_stdc=no
15831fi
15832rm -fr conftest*
15833fi
15834
15835fi
15836fi
15837
15838echo "$ac_t""$ac_cv_header_stdc" 1>&6
15839if test $ac_cv_header_stdc = yes; then
15840 cat >> confdefs.h <<\EOF
15841#define STDC_HEADERS 1
15842EOF
15843
15844fi
15845
15846echo $ac_n "checking for mode_t""... $ac_c" 1>&6
15847echo "configure:15848: checking for mode_t" >&5
15848if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
15849 echo $ac_n "(cached) $ac_c" 1>&6
15850else
15851 cat > conftest.$ac_ext <<EOF
15852#line 15853 "configure"
15853#include "confdefs.h"
15854#include <sys/types.h>
15855#if STDC_HEADERS
15856#include <stdlib.h>
15857#include <stddef.h>
15858#endif
15859EOF
15860if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15861 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15862 rm -rf conftest*
15863 ac_cv_type_mode_t=yes
15864else
15865 rm -rf conftest*
15866 ac_cv_type_mode_t=no
15867fi
15868rm -f conftest*
15869
15870fi
15871echo "$ac_t""$ac_cv_type_mode_t" 1>&6
15872if test $ac_cv_type_mode_t = no; then
15873 cat >> confdefs.h <<\EOF
15874#define mode_t int
15875EOF
15876
15877fi
15878
15879echo $ac_n "checking for off_t""... $ac_c" 1>&6
15880echo "configure:15881: checking for off_t" >&5
15881if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
15882 echo $ac_n "(cached) $ac_c" 1>&6
15883else
15884 cat > conftest.$ac_ext <<EOF
15885#line 15886 "configure"
15886#include "confdefs.h"
15887#include <sys/types.h>
15888#if STDC_HEADERS
15889#include <stdlib.h>
15890#include <stddef.h>
15891#endif
15892EOF
15893if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15894 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15895 rm -rf conftest*
15896 ac_cv_type_off_t=yes
15897else
15898 rm -rf conftest*
15899 ac_cv_type_off_t=no
15900fi
15901rm -f conftest*
15902
15903fi
15904echo "$ac_t""$ac_cv_type_off_t" 1>&6
15905if test $ac_cv_type_off_t = no; then
15906 cat >> confdefs.h <<\EOF
15907#define off_t long
15908EOF
15909
15910fi
15911
15912echo $ac_n "checking for pid_t""... $ac_c" 1>&6
15913echo "configure:15914: checking for pid_t" >&5
15914if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
15915 echo $ac_n "(cached) $ac_c" 1>&6
15916else
15917 cat > conftest.$ac_ext <<EOF
15918#line 15919 "configure"
15919#include "confdefs.h"
15920#include <sys/types.h>
15921#if STDC_HEADERS
15922#include <stdlib.h>
15923#include <stddef.h>
15924#endif
15925EOF
15926if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15927 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15928 rm -rf conftest*
15929 ac_cv_type_pid_t=yes
15930else
15931 rm -rf conftest*
15932 ac_cv_type_pid_t=no
15933fi
15934rm -f conftest*
15935
15936fi
15937echo "$ac_t""$ac_cv_type_pid_t" 1>&6
15938if test $ac_cv_type_pid_t = no; then
15939 cat >> confdefs.h <<\EOF
15940#define pid_t int
15941EOF
15942
15943fi
15944
15945echo $ac_n "checking for size_t""... $ac_c" 1>&6
15946echo "configure:15947: checking for size_t" >&5
15947if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
15948 echo $ac_n "(cached) $ac_c" 1>&6
15949else
15950 cat > conftest.$ac_ext <<EOF
15951#line 15952 "configure"
15952#include "confdefs.h"
15953#include <sys/types.h>
15954#if STDC_HEADERS
15955#include <stdlib.h>
15956#include <stddef.h>
15957#endif
15958EOF
15959if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15960 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15961 rm -rf conftest*
15962 ac_cv_type_size_t=yes
15963else
15964 rm -rf conftest*
15965 ac_cv_type_size_t=no
15966fi
15967rm -f conftest*
15968
15969fi
15970echo "$ac_t""$ac_cv_type_size_t" 1>&6
15971if test $ac_cv_type_size_t = no; then
15972 cat >> confdefs.h <<\EOF
15973#define size_t unsigned
15974EOF
15975
15976fi
15977
15978echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
15979echo "configure:15980: checking for uid_t in sys/types.h" >&5
15980if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
15981 echo $ac_n "(cached) $ac_c" 1>&6
15982else
15983 cat > conftest.$ac_ext <<EOF
15984#line 15985 "configure"
15985#include "confdefs.h"
15986#include <sys/types.h>
15987EOF
15988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15989 egrep "uid_t" >/dev/null 2>&1; then
15990 rm -rf conftest*
15991 ac_cv_type_uid_t=yes
15992else
15993 rm -rf conftest*
15994 ac_cv_type_uid_t=no
15995fi
15996rm -f conftest*
15997
15998fi
15999
16000echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16001if test $ac_cv_type_uid_t = no; then
16002 cat >> confdefs.h <<\EOF
16003#define uid_t int
16004EOF
16005
16006 cat >> confdefs.h <<\EOF
16007#define gid_t int
16008EOF
16009
16010fi
16011
16012
16013
16014ac_ext=C
16015# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16016ac_cpp='$CXXCPP $CPPFLAGS'
16017ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16018ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16019cross_compiling=$ac_cv_prog_cxx_cross
16020
16021echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
16022echo "configure:16023: checking if size_t is unsigned int" >&5
16023if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16024 echo $ac_n "(cached) $ac_c" 1>&6
16025else
16026 cat > conftest.$ac_ext <<EOF
16027#line 16028 "configure"
16028#include "confdefs.h"
16029#include <stddef.h>
16030int main() {
16031
16032 return 0; }
16033
16034 struct Foo { void foo(size_t); void foo(unsigned int); };
16035
16036 int bar() {
16037
16038; return 0; }
16039EOF
16040if { (eval echo configure:16041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16041 rm -rf conftest*
16042 wx_cv_size_t_is_uint=no
16043else
16044 echo "configure: failed program was:" >&5
16045 cat conftest.$ac_ext >&5
16046 rm -rf conftest*
16047 wx_cv_size_t_is_uint=yes
16048
16049fi
16050rm -f conftest*
16051
16052fi
16053
16054echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
16055
16056if test "$wx_cv_size_t_is_uint" = "yes"; then
16057 cat >> confdefs.h <<\EOF
16058#define wxSIZE_T_IS_UINT 1
16059EOF
16060
16061else
16062 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
16063echo "configure:16064: checking if size_t is unsigned long" >&5
16064if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16065 echo $ac_n "(cached) $ac_c" 1>&6
16066else
16067 cat > conftest.$ac_ext <<EOF
16068#line 16069 "configure"
16069#include "confdefs.h"
16070#include <stddef.h>
16071int main() {
16072
16073 return 0; }
16074
16075 struct Foo { void foo(size_t); void foo(unsigned long); };
16076
16077 int bar() {
16078
16079; return 0; }
16080EOF
16081if { (eval echo configure:16082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16082 rm -rf conftest*
16083 wx_cv_size_t_is_ulong=no
16084else
16085 echo "configure: failed program was:" >&5
16086 cat conftest.$ac_ext >&5
16087 rm -rf conftest*
16088 wx_cv_size_t_is_ulong=yes
16089
16090fi
16091rm -f conftest*
16092
16093fi
16094
16095echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
16096
16097 if test "$wx_cv_size_t_is_ulong" = "yes"; then
16098 cat >> confdefs.h <<\EOF
16099#define wxSIZE_T_IS_ULONG 1
16100EOF
16101
16102 fi
16103fi
16104
16105ac_ext=c
16106# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16107ac_cpp='$CPP $CPPFLAGS'
16108ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16109ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16110cross_compiling=$ac_cv_prog_cc_cross
16111
16112
16113
16114echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
16115echo "configure:16116: checking for pw_gecos in struct passwd" >&5
16116if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
16117 echo $ac_n "(cached) $ac_c" 1>&6
16118else
16119
16120 cat > conftest.$ac_ext <<EOF
16121#line 16122 "configure"
16122#include "confdefs.h"
16123#include <pwd.h>
16124int main() {
16125
16126 char *p;
16127 struct passwd *pw;
16128 p = pw->pw_gecos;
16129
16130; return 0; }
16131EOF
16132if { (eval echo configure:16133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16133 rm -rf conftest*
16134
16135 wx_cv_struct_pw_gecos=yes
16136
16137else
16138 echo "configure: failed program was:" >&5
16139 cat conftest.$ac_ext >&5
16140 rm -rf conftest*
16141
16142 wx_cv_struct_pw_gecos=no
16143
16144
16145fi
16146rm -f conftest*
16147
16148
16149fi
16150
16151echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
16152
16153if test "$wx_cv_struct_pw_gecos" = "yes"; then
16154 cat >> confdefs.h <<\EOF
16155#define HAVE_PW_GECOS 1
16156EOF
16157
16158fi
16159
16160
16161if test "$wx_cv_sizeof_wchar_t" != "0"; then
16162 cat >> confdefs.h <<\EOF
16163#define wxUSE_WCHAR_T 1
16164EOF
16165
16166
16167 WCSLEN_FOUND=0
16168 WCHAR_LINK=
16169 for ac_func in wcslen
16170do
16171echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16172echo "configure:16173: checking for $ac_func" >&5
16173if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16174 echo $ac_n "(cached) $ac_c" 1>&6
16175else
16176 cat > conftest.$ac_ext <<EOF
16177#line 16178 "configure"
16178#include "confdefs.h"
16179/* System header to define __stub macros and hopefully few prototypes,
16180 which can conflict with char $ac_func(); below. */
16181#include <assert.h>
16182/* Override any gcc2 internal prototype to avoid an error. */
16183/* We use char because int might match the return type of a gcc2
16184 builtin and then its argument prototype would still apply. */
16185char $ac_func();
16186
16187int main() {
16188
16189/* The GNU C library defines this for functions which it implements
16190 to always fail with ENOSYS. Some functions are actually named
16191 something starting with __ and the normal name is an alias. */
16192#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16193choke me
16194#else
16195$ac_func();
16196#endif
16197
16198; return 0; }
16199EOF
16200if { (eval echo configure:16201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16201 rm -rf conftest*
16202 eval "ac_cv_func_$ac_func=yes"
16203else
16204 echo "configure: failed program was:" >&5
16205 cat conftest.$ac_ext >&5
16206 rm -rf conftest*
16207 eval "ac_cv_func_$ac_func=no"
16208fi
16209rm -f conftest*
16210fi
16211
16212if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16213 echo "$ac_t""yes" 1>&6
16214 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16215 cat >> confdefs.h <<EOF
16216#define $ac_tr_func 1
16217EOF
16218 WCSLEN_FOUND=1
16219else
16220 echo "$ac_t""no" 1>&6
16221fi
16222done
16223
16224
16225 if test "$WCSLEN_FOUND" = 0; then
16226 if test "$TOOLKIT" = "MSW"; then
16227 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
16228echo "configure:16229: checking for wcslen in -lmsvcrt" >&5
16229ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
16230if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16231 echo $ac_n "(cached) $ac_c" 1>&6
16232else
16233 ac_save_LIBS="$LIBS"
16234LIBS="-lmsvcrt $LIBS"
16235cat > conftest.$ac_ext <<EOF
16236#line 16237 "configure"
16237#include "confdefs.h"
16238/* Override any gcc2 internal prototype to avoid an error. */
16239/* We use char because int might match the return type of a gcc2
16240 builtin and then its argument prototype would still apply. */
16241char wcslen();
16242
16243int main() {
16244wcslen()
16245; return 0; }
16246EOF
16247if { (eval echo configure:16248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16248 rm -rf conftest*
16249 eval "ac_cv_lib_$ac_lib_var=yes"
16250else
16251 echo "configure: failed program was:" >&5
16252 cat conftest.$ac_ext >&5
16253 rm -rf conftest*
16254 eval "ac_cv_lib_$ac_lib_var=no"
16255fi
16256rm -f conftest*
16257LIBS="$ac_save_LIBS"
16258
16259fi
16260if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16261 echo "$ac_t""yes" 1>&6
16262 WCHAR_OK=1
16263else
16264 echo "$ac_t""no" 1>&6
16265fi
16266
16267 else
16268 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
16269echo "configure:16270: checking for wcslen in -lw" >&5
16270ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
16271if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16272 echo $ac_n "(cached) $ac_c" 1>&6
16273else
16274 ac_save_LIBS="$LIBS"
16275LIBS="-lw $LIBS"
16276cat > conftest.$ac_ext <<EOF
16277#line 16278 "configure"
16278#include "confdefs.h"
16279/* Override any gcc2 internal prototype to avoid an error. */
16280/* We use char because int might match the return type of a gcc2
16281 builtin and then its argument prototype would still apply. */
16282char wcslen();
16283
16284int main() {
16285wcslen()
16286; return 0; }
16287EOF
16288if { (eval echo configure:16289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16289 rm -rf conftest*
16290 eval "ac_cv_lib_$ac_lib_var=yes"
16291else
16292 echo "configure: failed program was:" >&5
16293 cat conftest.$ac_ext >&5
16294 rm -rf conftest*
16295 eval "ac_cv_lib_$ac_lib_var=no"
16296fi
16297rm -f conftest*
16298LIBS="$ac_save_LIBS"
16299
16300fi
16301if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16302 echo "$ac_t""yes" 1>&6
16303
16304 WCHAR_LINK=" -lw"
16305 WCSLEN_FOUND=1
16306
16307else
16308 echo "$ac_t""no" 1>&6
16309fi
16310
16311 fi
16312 fi
16313
16314 if test "$WCSLEN_FOUND" = 1; then
16315 cat >> confdefs.h <<\EOF
16316#define HAVE_WCSLEN 1
16317EOF
16318
16319 fi
16320
16321 for ac_func in wcsrtombs
16322do
16323echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16324echo "configure:16325: checking for $ac_func" >&5
16325if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16326 echo $ac_n "(cached) $ac_c" 1>&6
16327else
16328 cat > conftest.$ac_ext <<EOF
16329#line 16330 "configure"
16330#include "confdefs.h"
16331/* System header to define __stub macros and hopefully few prototypes,
16332 which can conflict with char $ac_func(); below. */
16333#include <assert.h>
16334/* Override any gcc2 internal prototype to avoid an error. */
16335/* We use char because int might match the return type of a gcc2
16336 builtin and then its argument prototype would still apply. */
16337char $ac_func();
16338
16339int main() {
16340
16341/* The GNU C library defines this for functions which it implements
16342 to always fail with ENOSYS. Some functions are actually named
16343 something starting with __ and the normal name is an alias. */
16344#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16345choke me
16346#else
16347$ac_func();
16348#endif
16349
16350; return 0; }
16351EOF
16352if { (eval echo configure:16353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16353 rm -rf conftest*
16354 eval "ac_cv_func_$ac_func=yes"
16355else
16356 echo "configure: failed program was:" >&5
16357 cat conftest.$ac_ext >&5
16358 rm -rf conftest*
16359 eval "ac_cv_func_$ac_func=no"
16360fi
16361rm -f conftest*
16362fi
16363
16364if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16365 echo "$ac_t""yes" 1>&6
16366 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16367 cat >> confdefs.h <<EOF
16368#define $ac_tr_func 1
16369EOF
16370
16371else
16372 echo "$ac_t""no" 1>&6
16373fi
16374done
16375
16376else
16377 echo "configure: warning: Wide character support is unavailable" 1>&2
16378fi
16379
16380
16381ac_ext=C
16382# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16383ac_cpp='$CXXCPP $CPPFLAGS'
16384ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16385ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16386cross_compiling=$ac_cv_prog_cxx_cross
16387
16388
16389for ac_func in vsnprintf
16390do
16391echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16392echo "configure:16393: checking for $ac_func" >&5
16393if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16394 echo $ac_n "(cached) $ac_c" 1>&6
16395else
16396 cat > conftest.$ac_ext <<EOF
16397#line 16398 "configure"
16398#include "confdefs.h"
16399/* System header to define __stub macros and hopefully few prototypes,
16400 which can conflict with char $ac_func(); below. */
16401#include <assert.h>
16402/* Override any gcc2 internal prototype to avoid an error. */
16403#ifdef __cplusplus
16404extern "C"
16405#endif
16406/* We use char because int might match the return type of a gcc2
16407 builtin and then its argument prototype would still apply. */
16408char $ac_func();
16409
16410int main() {
16411
16412/* The GNU C library defines this for functions which it implements
16413 to always fail with ENOSYS. Some functions are actually named
16414 something starting with __ and the normal name is an alias. */
16415#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16416choke me
16417#else
16418$ac_func();
16419#endif
16420
16421; return 0; }
16422EOF
16423if { (eval echo configure:16424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16424 rm -rf conftest*
16425 eval "ac_cv_func_$ac_func=yes"
16426else
16427 echo "configure: failed program was:" >&5
16428 cat conftest.$ac_ext >&5
16429 rm -rf conftest*
16430 eval "ac_cv_func_$ac_func=no"
16431fi
16432rm -f conftest*
16433fi
16434
16435if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16436 echo "$ac_t""yes" 1>&6
16437 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16438 cat >> confdefs.h <<EOF
16439#define $ac_tr_func 1
16440EOF
16441
16442else
16443 echo "$ac_t""no" 1>&6
16444fi
16445done
16446
16447
16448if test "$wxUSE_UNICODE" = yes; then
16449 for ac_func in fputwc wprintf vswprintf
16450do
16451echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16452echo "configure:16453: checking for $ac_func" >&5
16453if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16454 echo $ac_n "(cached) $ac_c" 1>&6
16455else
16456 cat > conftest.$ac_ext <<EOF
16457#line 16458 "configure"
16458#include "confdefs.h"
16459/* System header to define __stub macros and hopefully few prototypes,
16460 which can conflict with char $ac_func(); below. */
16461#include <assert.h>
16462/* Override any gcc2 internal prototype to avoid an error. */
16463#ifdef __cplusplus
16464extern "C"
16465#endif
16466/* We use char because int might match the return type of a gcc2
16467 builtin and then its argument prototype would still apply. */
16468char $ac_func();
16469
16470int main() {
16471
16472/* The GNU C library defines this for functions which it implements
16473 to always fail with ENOSYS. Some functions are actually named
16474 something starting with __ and the normal name is an alias. */
16475#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16476choke me
16477#else
16478$ac_func();
16479#endif
16480
16481; return 0; }
16482EOF
16483if { (eval echo configure:16484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16484 rm -rf conftest*
16485 eval "ac_cv_func_$ac_func=yes"
16486else
16487 echo "configure: failed program was:" >&5
16488 cat conftest.$ac_ext >&5
16489 rm -rf conftest*
16490 eval "ac_cv_func_$ac_func=no"
16491fi
16492rm -f conftest*
16493fi
16494
16495if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16496 echo "$ac_t""yes" 1>&6
16497 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16498 cat >> confdefs.h <<EOF
16499#define $ac_tr_func 1
16500EOF
16501
16502else
16503 echo "$ac_t""no" 1>&6
16504fi
16505done
16506
16507 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
16508echo "configure:16509: checking for _vsnwprintf" >&5
16509 cat > conftest.$ac_ext <<EOF
16510#line 16511 "configure"
16511#include "confdefs.h"
16512#include <wchar.h>
16513int main() {
16514&_vsnwprintf;
16515; return 0; }
16516EOF
16517if { (eval echo configure:16518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16518 rm -rf conftest*
16519 echo "$ac_t""yes" 1>&6
16520 cat >> confdefs.h <<\EOF
16521#define HAVE__VSNWPRINTF 1
16522EOF
16523
16524else
16525 echo "configure: failed program was:" >&5
16526 cat conftest.$ac_ext >&5
16527 rm -rf conftest*
16528 echo "$ac_t""no" 1>&6
16529fi
16530rm -f conftest*;
16531fi
16532
16533ac_ext=c
16534# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16535ac_cpp='$CPP $CPPFLAGS'
16536ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16537ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16538cross_compiling=$ac_cv_prog_cc_cross
16539
16540
16541
16542
16543if test "$TOOLKIT" != "MSW"; then
16544
16545
16546
16547ac_ext=C
16548# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16549ac_cpp='$CXXCPP $CPPFLAGS'
16550ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16551ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16552cross_compiling=$ac_cv_prog_cxx_cross
16553
16554
16555
16556 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16557if test "${with_libiconv_prefix+set}" = set; then
16558 withval="$with_libiconv_prefix"
16559
16560 for dir in `echo "$withval" | tr : ' '`; do
16561 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
16562 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
16563 done
16564
16565fi
16566
16567
16568 echo $ac_n "checking for iconv""... $ac_c" 1>&6
16569echo "configure:16570: checking for iconv" >&5
16570if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
16571 echo $ac_n "(cached) $ac_c" 1>&6
16572else
16573
16574 am_cv_func_iconv="no, consider installing GNU libiconv"
16575 am_cv_lib_iconv=no
16576 cat > conftest.$ac_ext <<EOF
16577#line 16578 "configure"
16578#include "confdefs.h"
16579#include <stdlib.h>
16580#include <iconv.h>
16581int main() {
16582iconv_t cd = iconv_open("","");
16583 iconv(cd,NULL,NULL,NULL,NULL);
16584 iconv_close(cd);
16585; return 0; }
16586EOF
16587if { (eval echo configure:16588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16588 rm -rf conftest*
16589 am_cv_func_iconv=yes
16590else
16591 echo "configure: failed program was:" >&5
16592 cat conftest.$ac_ext >&5
16593fi
16594rm -f conftest*
16595 if test "$am_cv_func_iconv" != yes; then
16596 am_save_LIBS="$LIBS"
16597 LIBS="$LIBS -liconv"
16598 cat > conftest.$ac_ext <<EOF
16599#line 16600 "configure"
16600#include "confdefs.h"
16601#include <stdlib.h>
16602#include <iconv.h>
16603int main() {
16604iconv_t cd = iconv_open("","");
16605 iconv(cd,NULL,NULL,NULL,NULL);
16606 iconv_close(cd);
16607; return 0; }
16608EOF
16609if { (eval echo configure:16610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16610 rm -rf conftest*
16611 am_cv_lib_iconv=yes
16612 am_cv_func_iconv=yes
16613else
16614 echo "configure: failed program was:" >&5
16615 cat conftest.$ac_ext >&5
16616fi
16617rm -f conftest*
16618 LIBS="$am_save_LIBS"
16619 fi
16620
16621fi
16622
16623echo "$ac_t""$am_cv_func_iconv" 1>&6
16624 if test "$am_cv_func_iconv" = yes; then
16625 cat >> confdefs.h <<\EOF
16626#define HAVE_ICONV 1
16627EOF
16628
16629 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
16630echo "configure:16631: checking if iconv needs const" >&5
16631if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
16632 echo $ac_n "(cached) $ac_c" 1>&6
16633else
16634 cat > conftest.$ac_ext <<EOF
16635#line 16636 "configure"
16636#include "confdefs.h"
16637
16638#include <stdlib.h>
16639#include <iconv.h>
16640extern
16641#ifdef __cplusplus
16642"C"
16643#endif
16644#if defined(__STDC__) || defined(__cplusplus)
16645size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16646#else
16647size_t iconv();
16648#endif
16649
16650int main() {
16651
16652; return 0; }
16653EOF
16654if { (eval echo configure:16655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16655 rm -rf conftest*
16656 wx_cv_func_iconv_const="no"
16657else
16658 echo "configure: failed program was:" >&5
16659 cat conftest.$ac_ext >&5
16660 rm -rf conftest*
16661 wx_cv_func_iconv_const="yes"
16662
16663fi
16664rm -f conftest*
16665
16666fi
16667
16668echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
16669
16670 iconv_const=
16671 if test "x$wx_cv_func_iconv_const" = "xyes"; then
16672 iconv_const="const"
16673 fi
16674
16675 cat >> confdefs.h <<EOF
16676#define ICONV_CONST $iconv_const
16677EOF
16678
16679 fi
16680 LIBICONV=
16681 if test "$am_cv_lib_iconv" = yes; then
16682 LIBICONV="-liconv"
16683 fi
16684
16685
16686LIBS="$LIBICONV $LIBS"
16687ac_ext=c
16688# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16689ac_cpp='$CPP $CPPFLAGS'
16690ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16691ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16692cross_compiling=$ac_cv_prog_cc_cross
16693
16694
16695if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
16696 for ac_func in sigaction
16697do
16698echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16699echo "configure:16700: checking for $ac_func" >&5
16700if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16701 echo $ac_n "(cached) $ac_c" 1>&6
16702else
16703 cat > conftest.$ac_ext <<EOF
16704#line 16705 "configure"
16705#include "confdefs.h"
16706/* System header to define __stub macros and hopefully few prototypes,
16707 which can conflict with char $ac_func(); below. */
16708#include <assert.h>
16709/* Override any gcc2 internal prototype to avoid an error. */
16710/* We use char because int might match the return type of a gcc2
16711 builtin and then its argument prototype would still apply. */
16712char $ac_func();
16713
16714int main() {
16715
16716/* The GNU C library defines this for functions which it implements
16717 to always fail with ENOSYS. Some functions are actually named
16718 something starting with __ and the normal name is an alias. */
16719#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16720choke me
16721#else
16722$ac_func();
16723#endif
16724
16725; return 0; }
16726EOF
16727if { (eval echo configure:16728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16728 rm -rf conftest*
16729 eval "ac_cv_func_$ac_func=yes"
16730else
16731 echo "configure: failed program was:" >&5
16732 cat conftest.$ac_ext >&5
16733 rm -rf conftest*
16734 eval "ac_cv_func_$ac_func=no"
16735fi
16736rm -f conftest*
16737fi
16738
16739if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16740 echo "$ac_t""yes" 1>&6
16741 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16742 cat >> confdefs.h <<EOF
16743#define $ac_tr_func 1
16744EOF
16745
16746else
16747 echo "$ac_t""no" 1>&6
16748fi
16749done
16750
16751
16752 if test "$ac_cv_func_sigaction" = "no"; then
16753 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
16754 wxUSE_ON_FATAL_EXCEPTION=no
16755 fi
16756
16757 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16758
16759 ac_ext=C
16760# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16761ac_cpp='$CXXCPP $CPPFLAGS'
16762ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16763ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16764cross_compiling=$ac_cv_prog_cxx_cross
16765
16766
16767 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
16768echo "configure:16769: checking for sa_handler type" >&5
16769if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
16770 echo $ac_n "(cached) $ac_c" 1>&6
16771else
16772
16773 cat > conftest.$ac_ext <<EOF
16774#line 16775 "configure"
16775#include "confdefs.h"
16776#include <signal.h>
16777int main() {
16778
16779 extern void testSigHandler(int);
16780
16781 struct sigaction sa;
16782 sa.sa_handler = testSigHandler;
16783
16784; return 0; }
16785EOF
16786if { (eval echo configure:16787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16787 rm -rf conftest*
16788
16789 wx_cv_type_sa_handler=int
16790
16791else
16792 echo "configure: failed program was:" >&5
16793 cat conftest.$ac_ext >&5
16794 rm -rf conftest*
16795
16796 wx_cv_type_sa_handler=void
16797
16798fi
16799rm -f conftest*
16800
16801fi
16802
16803echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
16804
16805 ac_ext=c
16806# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16807ac_cpp='$CPP $CPPFLAGS'
16808ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16809ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16810cross_compiling=$ac_cv_prog_cc_cross
16811
16812
16813 cat >> confdefs.h <<EOF
16814#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
16815EOF
16816
16817 fi
16818fi
16819
16820for ac_func in mkstemp mktemp
16821do
16822echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16823echo "configure:16824: checking for $ac_func" >&5
16824if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16825 echo $ac_n "(cached) $ac_c" 1>&6
16826else
16827 cat > conftest.$ac_ext <<EOF
16828#line 16829 "configure"
16829#include "confdefs.h"
16830/* System header to define __stub macros and hopefully few prototypes,
16831 which can conflict with char $ac_func(); below. */
16832#include <assert.h>
16833/* Override any gcc2 internal prototype to avoid an error. */
16834/* We use char because int might match the return type of a gcc2
16835 builtin and then its argument prototype would still apply. */
16836char $ac_func();
16837
16838int main() {
16839
16840/* The GNU C library defines this for functions which it implements
16841 to always fail with ENOSYS. Some functions are actually named
16842 something starting with __ and the normal name is an alias. */
16843#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16844choke me
16845#else
16846$ac_func();
16847#endif
16848
16849; return 0; }
16850EOF
16851if { (eval echo configure:16852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16852 rm -rf conftest*
16853 eval "ac_cv_func_$ac_func=yes"
16854else
16855 echo "configure: failed program was:" >&5
16856 cat conftest.$ac_ext >&5
16857 rm -rf conftest*
16858 eval "ac_cv_func_$ac_func=no"
16859fi
16860rm -f conftest*
16861fi
16862
16863if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16864 echo "$ac_t""yes" 1>&6
16865 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16866 cat >> confdefs.h <<EOF
16867#define $ac_tr_func 1
16868EOF
16869 break
16870else
16871 echo "$ac_t""no" 1>&6
16872fi
16873done
16874
16875
16876echo $ac_n "checking for statfs""... $ac_c" 1>&6
16877echo "configure:16878: checking for statfs" >&5
16878if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16879 echo $ac_n "(cached) $ac_c" 1>&6
16880else
16881 cat > conftest.$ac_ext <<EOF
16882#line 16883 "configure"
16883#include "confdefs.h"
16884
16885 #if defined(__BSD__)
16886 #include <sys/param.h>
16887 #include <sys/mount.h>
16888 #else
16889 #include <sys/vfs.h>
16890 #endif
16891
16892int main() {
16893
16894 long l;
16895 struct statfs fs;
16896 statfs("/", &fs);
16897 l = fs.f_bsize;
16898 l += fs.f_blocks;
16899 l += fs.f_bavail;
16900
16901; return 0; }
16902EOF
16903if { (eval echo configure:16904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16904 rm -rf conftest*
16905
16906 wx_cv_func_statfs=yes
16907
16908else
16909 echo "configure: failed program was:" >&5
16910 cat conftest.$ac_ext >&5
16911 rm -rf conftest*
16912
16913 wx_cv_func_statfs=no
16914
16915
16916fi
16917rm -f conftest*
16918
16919fi
16920
16921echo "$ac_t""$wx_cv_func_statfs" 1>&6
16922
16923if test "$wx_cv_func_statfs" = "yes"; then
16924 cat >> confdefs.h <<\EOF
16925#define HAVE_STATFS 1
16926EOF
16927
16928else
16929 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
16930echo "configure:16931: checking for statvfs" >&5
16931if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
16932 echo $ac_n "(cached) $ac_c" 1>&6
16933else
16934 cat > conftest.$ac_ext <<EOF
16935#line 16936 "configure"
16936#include "confdefs.h"
16937
16938 #include <sys/statvfs.h>
16939
16940int main() {
16941
16942 long l;
16943 struct statvfs fs;
16944 statvfs("/", &fs);
16945 l = fs.f_bsize;
16946 l += fs.f_blocks;
16947 l += fs.f_bavail;
16948
16949; return 0; }
16950EOF
16951if { (eval echo configure:16952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16952 rm -rf conftest*
16953
16954 wx_cv_func_statvfs=yes
16955
16956else
16957 echo "configure: failed program was:" >&5
16958 cat conftest.$ac_ext >&5
16959 rm -rf conftest*
16960
16961 wx_cv_func_statvfs=no
16962
16963
16964fi
16965rm -f conftest*
16966
16967fi
16968
16969echo "$ac_t""$wx_cv_func_statvfs" 1>&6
16970
16971 if test "$wx_cv_func_statvfs" = "yes"; then
16972 cat >> confdefs.h <<\EOF
16973#define HAVE_STATVFS 1
16974EOF
16975
16976 else
16977 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16978 fi
16979fi
16980
16981if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16982 for ac_func in fcntl flock
16983do
16984echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16985echo "configure:16986: checking for $ac_func" >&5
16986if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16987 echo $ac_n "(cached) $ac_c" 1>&6
16988else
16989 cat > conftest.$ac_ext <<EOF
16990#line 16991 "configure"
16991#include "confdefs.h"
16992/* System header to define __stub macros and hopefully few prototypes,
16993 which can conflict with char $ac_func(); below. */
16994#include <assert.h>
16995/* Override any gcc2 internal prototype to avoid an error. */
16996/* We use char because int might match the return type of a gcc2
16997 builtin and then its argument prototype would still apply. */
16998char $ac_func();
16999
17000int main() {
17001
17002/* The GNU C library defines this for functions which it implements
17003 to always fail with ENOSYS. Some functions are actually named
17004 something starting with __ and the normal name is an alias. */
17005#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17006choke me
17007#else
17008$ac_func();
17009#endif
17010
17011; return 0; }
17012EOF
17013if { (eval echo configure:17014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17014 rm -rf conftest*
17015 eval "ac_cv_func_$ac_func=yes"
17016else
17017 echo "configure: failed program was:" >&5
17018 cat conftest.$ac_ext >&5
17019 rm -rf conftest*
17020 eval "ac_cv_func_$ac_func=no"
17021fi
17022rm -f conftest*
17023fi
17024
17025if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17026 echo "$ac_t""yes" 1>&6
17027 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17028 cat >> confdefs.h <<EOF
17029#define $ac_tr_func 1
17030EOF
17031 break
17032else
17033 echo "$ac_t""no" 1>&6
17034fi
17035done
17036
17037
17038 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
17039 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
17040 wxUSE_SNGLINST_CHECKER=no
17041 fi
17042fi
17043
17044for ac_func in timegm
17045do
17046echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17047echo "configure:17048: checking for $ac_func" >&5
17048if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17049 echo $ac_n "(cached) $ac_c" 1>&6
17050else
17051 cat > conftest.$ac_ext <<EOF
17052#line 17053 "configure"
17053#include "confdefs.h"
17054/* System header to define __stub macros and hopefully few prototypes,
17055 which can conflict with char $ac_func(); below. */
17056#include <assert.h>
17057/* Override any gcc2 internal prototype to avoid an error. */
17058/* We use char because int might match the return type of a gcc2
17059 builtin and then its argument prototype would still apply. */
17060char $ac_func();
17061
17062int main() {
17063
17064/* The GNU C library defines this for functions which it implements
17065 to always fail with ENOSYS. Some functions are actually named
17066 something starting with __ and the normal name is an alias. */
17067#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17068choke me
17069#else
17070$ac_func();
17071#endif
17072
17073; return 0; }
17074EOF
17075if { (eval echo configure:17076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17076 rm -rf conftest*
17077 eval "ac_cv_func_$ac_func=yes"
17078else
17079 echo "configure: failed program was:" >&5
17080 cat conftest.$ac_ext >&5
17081 rm -rf conftest*
17082 eval "ac_cv_func_$ac_func=no"
17083fi
17084rm -f conftest*
17085fi
17086
17087if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17088 echo "$ac_t""yes" 1>&6
17089 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17090 cat >> confdefs.h <<EOF
17091#define $ac_tr_func 1
17092EOF
17093
17094else
17095 echo "$ac_t""no" 1>&6
17096fi
17097done
17098
17099
17100for ac_func in putenv setenv
17101do
17102echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17103echo "configure:17104: checking for $ac_func" >&5
17104if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17105 echo $ac_n "(cached) $ac_c" 1>&6
17106else
17107 cat > conftest.$ac_ext <<EOF
17108#line 17109 "configure"
17109#include "confdefs.h"
17110/* System header to define __stub macros and hopefully few prototypes,
17111 which can conflict with char $ac_func(); below. */
17112#include <assert.h>
17113/* Override any gcc2 internal prototype to avoid an error. */
17114/* We use char because int might match the return type of a gcc2
17115 builtin and then its argument prototype would still apply. */
17116char $ac_func();
17117
17118int main() {
17119
17120/* The GNU C library defines this for functions which it implements
17121 to always fail with ENOSYS. Some functions are actually named
17122 something starting with __ and the normal name is an alias. */
17123#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17124choke me
17125#else
17126$ac_func();
17127#endif
17128
17129; return 0; }
17130EOF
17131if { (eval echo configure:17132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17132 rm -rf conftest*
17133 eval "ac_cv_func_$ac_func=yes"
17134else
17135 echo "configure: failed program was:" >&5
17136 cat conftest.$ac_ext >&5
17137 rm -rf conftest*
17138 eval "ac_cv_func_$ac_func=no"
17139fi
17140rm -f conftest*
17141fi
17142
17143if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17144 echo "$ac_t""yes" 1>&6
17145 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17146 cat >> confdefs.h <<EOF
17147#define $ac_tr_func 1
17148EOF
17149 break
17150else
17151 echo "$ac_t""no" 1>&6
17152fi
17153done
17154
17155
17156HAVE_SOME_SLEEP_FUNC=0
17157if test "$USE_BEOS" = 1; then
17158 cat >> confdefs.h <<\EOF
17159#define HAVE_SLEEP 1
17160EOF
17161
17162 HAVE_SOME_SLEEP_FUNC=1
17163fi
17164
17165if test "$USE_DARWIN" = 1; then
17166 cat >> confdefs.h <<\EOF
17167#define HAVE_USLEEP 1
17168EOF
17169
17170 HAVE_SOME_SLEEP_FUNC=1
17171fi
17172
17173if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
17174 POSIX4_LINK=
17175 for ac_func in nanosleep
17176do
17177echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17178echo "configure:17179: checking for $ac_func" >&5
17179if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17180 echo $ac_n "(cached) $ac_c" 1>&6
17181else
17182 cat > conftest.$ac_ext <<EOF
17183#line 17184 "configure"
17184#include "confdefs.h"
17185/* System header to define __stub macros and hopefully few prototypes,
17186 which can conflict with char $ac_func(); below. */
17187#include <assert.h>
17188/* Override any gcc2 internal prototype to avoid an error. */
17189/* We use char because int might match the return type of a gcc2
17190 builtin and then its argument prototype would still apply. */
17191char $ac_func();
17192
17193int main() {
17194
17195/* The GNU C library defines this for functions which it implements
17196 to always fail with ENOSYS. Some functions are actually named
17197 something starting with __ and the normal name is an alias. */
17198#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17199choke me
17200#else
17201$ac_func();
17202#endif
17203
17204; return 0; }
17205EOF
17206if { (eval echo configure:17207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17207 rm -rf conftest*
17208 eval "ac_cv_func_$ac_func=yes"
17209else
17210 echo "configure: failed program was:" >&5
17211 cat conftest.$ac_ext >&5
17212 rm -rf conftest*
17213 eval "ac_cv_func_$ac_func=no"
17214fi
17215rm -f conftest*
17216fi
17217
17218if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17219 echo "$ac_t""yes" 1>&6
17220 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17221 cat >> confdefs.h <<EOF
17222#define $ac_tr_func 1
17223EOF
17224 cat >> confdefs.h <<\EOF
17225#define HAVE_NANOSLEEP 1
17226EOF
17227
17228else
17229 echo "$ac_t""no" 1>&6
17230echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
17231echo "configure:17232: checking for nanosleep in -lposix4" >&5
17232ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
17233if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17234 echo $ac_n "(cached) $ac_c" 1>&6
17235else
17236 ac_save_LIBS="$LIBS"
17237LIBS="-lposix4 $LIBS"
17238cat > conftest.$ac_ext <<EOF
17239#line 17240 "configure"
17240#include "confdefs.h"
17241/* Override any gcc2 internal prototype to avoid an error. */
17242/* We use char because int might match the return type of a gcc2
17243 builtin and then its argument prototype would still apply. */
17244char nanosleep();
17245
17246int main() {
17247nanosleep()
17248; return 0; }
17249EOF
17250if { (eval echo configure:17251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17251 rm -rf conftest*
17252 eval "ac_cv_lib_$ac_lib_var=yes"
17253else
17254 echo "configure: failed program was:" >&5
17255 cat conftest.$ac_ext >&5
17256 rm -rf conftest*
17257 eval "ac_cv_lib_$ac_lib_var=no"
17258fi
17259rm -f conftest*
17260LIBS="$ac_save_LIBS"
17261
17262fi
17263if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17264 echo "$ac_t""yes" 1>&6
17265
17266 cat >> confdefs.h <<\EOF
17267#define HAVE_NANOSLEEP 1
17268EOF
17269
17270 POSIX4_LINK=" -lposix4"
17271
17272else
17273 echo "$ac_t""no" 1>&6
17274
17275 for ac_func in usleep
17276do
17277echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17278echo "configure:17279: checking for $ac_func" >&5
17279if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17280 echo $ac_n "(cached) $ac_c" 1>&6
17281else
17282 cat > conftest.$ac_ext <<EOF
17283#line 17284 "configure"
17284#include "confdefs.h"
17285/* System header to define __stub macros and hopefully few prototypes,
17286 which can conflict with char $ac_func(); below. */
17287#include <assert.h>
17288/* Override any gcc2 internal prototype to avoid an error. */
17289/* We use char because int might match the return type of a gcc2
17290 builtin and then its argument prototype would still apply. */
17291char $ac_func();
17292
17293int main() {
17294
17295/* The GNU C library defines this for functions which it implements
17296 to always fail with ENOSYS. Some functions are actually named
17297 something starting with __ and the normal name is an alias. */
17298#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17299choke me
17300#else
17301$ac_func();
17302#endif
17303
17304; return 0; }
17305EOF
17306if { (eval echo configure:17307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17307 rm -rf conftest*
17308 eval "ac_cv_func_$ac_func=yes"
17309else
17310 echo "configure: failed program was:" >&5
17311 cat conftest.$ac_ext >&5
17312 rm -rf conftest*
17313 eval "ac_cv_func_$ac_func=no"
17314fi
17315rm -f conftest*
17316fi
17317
17318if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17319 echo "$ac_t""yes" 1>&6
17320 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17321 cat >> confdefs.h <<EOF
17322#define $ac_tr_func 1
17323EOF
17324 cat >> confdefs.h <<\EOF
17325#define HAVE_USLEEP 1
17326EOF
17327
17328else
17329 echo "$ac_t""no" 1>&6
17330echo "configure: warning: wxSleep() function will not work" 1>&2
17331
17332fi
17333done
17334
17335
17336
17337fi
17338
17339
17340
17341fi
17342done
17343
17344fi
17345
17346for ac_func in uname gethostname
17347do
17348echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17349echo "configure:17350: checking for $ac_func" >&5
17350if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17351 echo $ac_n "(cached) $ac_c" 1>&6
17352else
17353 cat > conftest.$ac_ext <<EOF
17354#line 17355 "configure"
17355#include "confdefs.h"
17356/* System header to define __stub macros and hopefully few prototypes,
17357 which can conflict with char $ac_func(); below. */
17358#include <assert.h>
17359/* Override any gcc2 internal prototype to avoid an error. */
17360/* We use char because int might match the return type of a gcc2
17361 builtin and then its argument prototype would still apply. */
17362char $ac_func();
17363
17364int main() {
17365
17366/* The GNU C library defines this for functions which it implements
17367 to always fail with ENOSYS. Some functions are actually named
17368 something starting with __ and the normal name is an alias. */
17369#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17370choke me
17371#else
17372$ac_func();
17373#endif
17374
17375; return 0; }
17376EOF
17377if { (eval echo configure:17378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17378 rm -rf conftest*
17379 eval "ac_cv_func_$ac_func=yes"
17380else
17381 echo "configure: failed program was:" >&5
17382 cat conftest.$ac_ext >&5
17383 rm -rf conftest*
17384 eval "ac_cv_func_$ac_func=no"
17385fi
17386rm -f conftest*
17387fi
17388
17389if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17390 echo "$ac_t""yes" 1>&6
17391 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17392 cat >> confdefs.h <<EOF
17393#define $ac_tr_func 1
17394EOF
17395 break
17396else
17397 echo "$ac_t""no" 1>&6
17398fi
17399done
17400
17401
17402
17403ac_ext=C
17404# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17405ac_cpp='$CXXCPP $CPPFLAGS'
17406ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17407ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17408cross_compiling=$ac_cv_prog_cxx_cross
17409
17410
17411for ac_func in strtok_r
17412do
17413echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17414echo "configure:17415: checking for $ac_func" >&5
17415if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17416 echo $ac_n "(cached) $ac_c" 1>&6
17417else
17418 cat > conftest.$ac_ext <<EOF
17419#line 17420 "configure"
17420#include "confdefs.h"
17421/* System header to define __stub macros and hopefully few prototypes,
17422 which can conflict with char $ac_func(); below. */
17423#include <assert.h>
17424/* Override any gcc2 internal prototype to avoid an error. */
17425#ifdef __cplusplus
17426extern "C"
17427#endif
17428/* We use char because int might match the return type of a gcc2
17429 builtin and then its argument prototype would still apply. */
17430char $ac_func();
17431
17432int main() {
17433
17434/* The GNU C library defines this for functions which it implements
17435 to always fail with ENOSYS. Some functions are actually named
17436 something starting with __ and the normal name is an alias. */
17437#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17438choke me
17439#else
17440$ac_func();
17441#endif
17442
17443; return 0; }
17444EOF
17445if { (eval echo configure:17446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17446 rm -rf conftest*
17447 eval "ac_cv_func_$ac_func=yes"
17448else
17449 echo "configure: failed program was:" >&5
17450 cat conftest.$ac_ext >&5
17451 rm -rf conftest*
17452 eval "ac_cv_func_$ac_func=no"
17453fi
17454rm -f conftest*
17455fi
17456
17457if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17458 echo "$ac_t""yes" 1>&6
17459 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17460 cat >> confdefs.h <<EOF
17461#define $ac_tr_func 1
17462EOF
17463
17464else
17465 echo "$ac_t""no" 1>&6
17466fi
17467done
17468
17469
17470ac_ext=c
17471# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17472ac_cpp='$CPP $CPPFLAGS'
17473ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17474ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17475cross_compiling=$ac_cv_prog_cc_cross
17476
17477
17478INET_LINK=
17479for ac_func in inet_addr
17480do
17481echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17482echo "configure:17483: checking for $ac_func" >&5
17483if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17484 echo $ac_n "(cached) $ac_c" 1>&6
17485else
17486 cat > conftest.$ac_ext <<EOF
17487#line 17488 "configure"
17488#include "confdefs.h"
17489/* System header to define __stub macros and hopefully few prototypes,
17490 which can conflict with char $ac_func(); below. */
17491#include <assert.h>
17492/* Override any gcc2 internal prototype to avoid an error. */
17493/* We use char because int might match the return type of a gcc2
17494 builtin and then its argument prototype would still apply. */
17495char $ac_func();
17496
17497int main() {
17498
17499/* The GNU C library defines this for functions which it implements
17500 to always fail with ENOSYS. Some functions are actually named
17501 something starting with __ and the normal name is an alias. */
17502#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17503choke me
17504#else
17505$ac_func();
17506#endif
17507
17508; return 0; }
17509EOF
17510if { (eval echo configure:17511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17511 rm -rf conftest*
17512 eval "ac_cv_func_$ac_func=yes"
17513else
17514 echo "configure: failed program was:" >&5
17515 cat conftest.$ac_ext >&5
17516 rm -rf conftest*
17517 eval "ac_cv_func_$ac_func=no"
17518fi
17519rm -f conftest*
17520fi
17521
17522if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17523 echo "$ac_t""yes" 1>&6
17524 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17525 cat >> confdefs.h <<EOF
17526#define $ac_tr_func 1
17527EOF
17528 cat >> confdefs.h <<\EOF
17529#define HAVE_INET_ADDR 1
17530EOF
17531
17532else
17533 echo "$ac_t""no" 1>&6
17534echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
17535echo "configure:17536: checking for inet_addr in -lnsl" >&5
17536ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
17537if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17538 echo $ac_n "(cached) $ac_c" 1>&6
17539else
17540 ac_save_LIBS="$LIBS"
17541LIBS="-lnsl $LIBS"
17542cat > conftest.$ac_ext <<EOF
17543#line 17544 "configure"
17544#include "confdefs.h"
17545/* Override any gcc2 internal prototype to avoid an error. */
17546/* We use char because int might match the return type of a gcc2
17547 builtin and then its argument prototype would still apply. */
17548char inet_addr();
17549
17550int main() {
17551inet_addr()
17552; return 0; }
17553EOF
17554if { (eval echo configure:17555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17555 rm -rf conftest*
17556 eval "ac_cv_lib_$ac_lib_var=yes"
17557else
17558 echo "configure: failed program was:" >&5
17559 cat conftest.$ac_ext >&5
17560 rm -rf conftest*
17561 eval "ac_cv_lib_$ac_lib_var=no"
17562fi
17563rm -f conftest*
17564LIBS="$ac_save_LIBS"
17565
17566fi
17567if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17568 echo "$ac_t""yes" 1>&6
17569 INET_LINK="nsl"
17570else
17571 echo "$ac_t""no" 1>&6
17572echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
17573echo "configure:17574: checking for inet_addr in -lresolv" >&5
17574ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
17575if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17576 echo $ac_n "(cached) $ac_c" 1>&6
17577else
17578 ac_save_LIBS="$LIBS"
17579LIBS="-lresolv $LIBS"
17580cat > conftest.$ac_ext <<EOF
17581#line 17582 "configure"
17582#include "confdefs.h"
17583/* Override any gcc2 internal prototype to avoid an error. */
17584/* We use char because int might match the return type of a gcc2
17585 builtin and then its argument prototype would still apply. */
17586char inet_addr();
17587
17588int main() {
17589inet_addr()
17590; return 0; }
17591EOF
17592if { (eval echo configure:17593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17593 rm -rf conftest*
17594 eval "ac_cv_lib_$ac_lib_var=yes"
17595else
17596 echo "configure: failed program was:" >&5
17597 cat conftest.$ac_ext >&5
17598 rm -rf conftest*
17599 eval "ac_cv_lib_$ac_lib_var=no"
17600fi
17601rm -f conftest*
17602LIBS="$ac_save_LIBS"
17603
17604fi
17605if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17606 echo "$ac_t""yes" 1>&6
17607 INET_LINK="resolv"
17608else
17609 echo "$ac_t""no" 1>&6
17610echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
17611echo "configure:17612: checking for inet_addr in -lsocket" >&5
17612ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
17613if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17614 echo $ac_n "(cached) $ac_c" 1>&6
17615else
17616 ac_save_LIBS="$LIBS"
17617LIBS="-lsocket $LIBS"
17618cat > conftest.$ac_ext <<EOF
17619#line 17620 "configure"
17620#include "confdefs.h"
17621/* Override any gcc2 internal prototype to avoid an error. */
17622/* We use char because int might match the return type of a gcc2
17623 builtin and then its argument prototype would still apply. */
17624char inet_addr();
17625
17626int main() {
17627inet_addr()
17628; return 0; }
17629EOF
17630if { (eval echo configure:17631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17631 rm -rf conftest*
17632 eval "ac_cv_lib_$ac_lib_var=yes"
17633else
17634 echo "configure: failed program was:" >&5
17635 cat conftest.$ac_ext >&5
17636 rm -rf conftest*
17637 eval "ac_cv_lib_$ac_lib_var=no"
17638fi
17639rm -f conftest*
17640LIBS="$ac_save_LIBS"
17641
17642fi
17643if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17644 echo "$ac_t""yes" 1>&6
17645 INET_LINK="socket"
17646
17647else
17648 echo "$ac_t""no" 1>&6
17649fi
17650
17651
17652fi
17653
17654
17655fi
17656
17657
17658
17659fi
17660done
17661
17662
17663for ac_func in inet_aton
17664do
17665echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17666echo "configure:17667: checking for $ac_func" >&5
17667if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17668 echo $ac_n "(cached) $ac_c" 1>&6
17669else
17670 cat > conftest.$ac_ext <<EOF
17671#line 17672 "configure"
17672#include "confdefs.h"
17673/* System header to define __stub macros and hopefully few prototypes,
17674 which can conflict with char $ac_func(); below. */
17675#include <assert.h>
17676/* Override any gcc2 internal prototype to avoid an error. */
17677/* We use char because int might match the return type of a gcc2
17678 builtin and then its argument prototype would still apply. */
17679char $ac_func();
17680
17681int main() {
17682
17683/* The GNU C library defines this for functions which it implements
17684 to always fail with ENOSYS. Some functions are actually named
17685 something starting with __ and the normal name is an alias. */
17686#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17687choke me
17688#else
17689$ac_func();
17690#endif
17691
17692; return 0; }
17693EOF
17694if { (eval echo configure:17695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17695 rm -rf conftest*
17696 eval "ac_cv_func_$ac_func=yes"
17697else
17698 echo "configure: failed program was:" >&5
17699 cat conftest.$ac_ext >&5
17700 rm -rf conftest*
17701 eval "ac_cv_func_$ac_func=no"
17702fi
17703rm -f conftest*
17704fi
17705
17706if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17707 echo "$ac_t""yes" 1>&6
17708 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17709 cat >> confdefs.h <<EOF
17710#define $ac_tr_func 1
17711EOF
17712 cat >> confdefs.h <<\EOF
17713#define HAVE_INET_ATON 1
17714EOF
17715
17716else
17717 echo "$ac_t""no" 1>&6
17718 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
17719echo "configure:17720: checking for inet_aton in -l$INET_LINK" >&5
17720ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
17721if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17722 echo $ac_n "(cached) $ac_c" 1>&6
17723else
17724 ac_save_LIBS="$LIBS"
17725LIBS="-l$INET_LINK $LIBS"
17726cat > conftest.$ac_ext <<EOF
17727#line 17728 "configure"
17728#include "confdefs.h"
17729/* Override any gcc2 internal prototype to avoid an error. */
17730/* We use char because int might match the return type of a gcc2
17731 builtin and then its argument prototype would still apply. */
17732char inet_aton();
17733
17734int main() {
17735inet_aton()
17736; return 0; }
17737EOF
17738if { (eval echo configure:17739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17739 rm -rf conftest*
17740 eval "ac_cv_lib_$ac_lib_var=yes"
17741else
17742 echo "configure: failed program was:" >&5
17743 cat conftest.$ac_ext >&5
17744 rm -rf conftest*
17745 eval "ac_cv_lib_$ac_lib_var=no"
17746fi
17747rm -f conftest*
17748LIBS="$ac_save_LIBS"
17749
17750fi
17751if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17752 echo "$ac_t""yes" 1>&6
17753 cat >> confdefs.h <<\EOF
17754#define HAVE_INET_ATON 1
17755EOF
17756
17757else
17758 echo "$ac_t""no" 1>&6
17759fi
17760
17761
17762fi
17763done
17764
17765
17766if test "x$INET_LINK" != "x"; then
17767 cat >> confdefs.h <<\EOF
17768#define HAVE_INET_ADDR 1
17769EOF
17770
17771 INET_LINK=" -l$INET_LINK"
17772fi
17773
17774fi
17775
17776
17777cat > confcache <<\EOF
17778# This file is a shell script that caches the results of configure
17779# tests run on this system so they can be shared between configure
17780# scripts and configure runs. It is not useful on other systems.
17781# If it contains results you don't want to keep, you may remove or edit it.
17782#
17783# By default, configure uses ./config.cache as the cache file,
17784# creating it if it does not exist already. You can give configure
17785# the --cache-file=FILE option to use a different cache file; that is
17786# what configure does when it calls configure scripts in
17787# subdirectories, so they share the cache.
17788# Giving --cache-file=/dev/null disables caching, for debugging configure.
17789# config.status only pays attention to the cache file if you give it the
17790# --recheck option to rerun configure.
17791#
17792EOF
17793# The following way of writing the cache mishandles newlines in values,
17794# but we know of no workaround that is simple, portable, and efficient.
17795# So, don't put newlines in cache variables' values.
17796# Ultrix sh set writes to stderr and can't be redirected directly,
17797# and sets the high bit in the cache file unless we assign to the vars.
17798(set) 2>&1 |
17799 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17800 *ac_space=\ *)
17801 # `set' does not quote correctly, so add quotes (double-quote substitution
17802 # turns \\\\ into \\, and sed turns \\ into \).
17803 sed -n \
17804 -e "s/'/'\\\\''/g" \
17805 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17806 ;;
17807 *)
17808 # `set' quotes correctly as required by POSIX, so do not add quotes.
17809 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17810 ;;
17811 esac >> confcache
17812if cmp -s $cache_file confcache; then
17813 :
17814else
17815 if test -w $cache_file; then
17816 echo "updating cache $cache_file"
17817 cat confcache > $cache_file
17818 else
17819 echo "not updating unwritable cache $cache_file"
17820 fi
17821fi
17822rm -f confcache
17823
17824
17825
17826CPP_MT_FLAG=
17827if test "$TOOLKIT" != "MSW"; then
17828
17829
17830 THREADS_LINK=
17831 THREADS_CFLAGS=
17832
17833 if test "$wxUSE_THREADS" = "yes" ; then
17834 if test "$wxUSE_WINE" = 1 ; then
17835 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
17836 wxUSE_THREADS="no"
17837 elif test "$USE_BEOS" = 1; then
17838 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
17839 wxUSE_THREADS="no"
17840 fi
17841 fi
17842
17843 if test "$wxUSE_THREADS" = "yes" ; then
17844
17845
17846 THREAD_OPTS="-pthread"
17847 case "${host}" in
17848 *-*-solaris2* | *-*-sunos4* )
17849 if test "x$GCC" = "xyes"; then
17850 THREAD_OPTS="-pthreads $THREAD_OPTS"
17851 else
17852 THREAD_OPTS="-mt $THREAD_OPTS"
17853 fi
17854 ;;
17855 *-*-freebsd*)
17856 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
17857 ;;
17858 *-*-darwin* | *-*-cygwin* )
17859 THREAD_OPTS=""
17860 ;;
17861 *-*-aix*)
17862 THREAD_OPTS="pthreads"
17863 ;;
17864 esac
17865
17866 THREAD_OPTS="$THREAD_OPTS pthread none"
17867
17868 THREADS_OK=no
17869 for flag in $THREAD_OPTS; do
17870 case $flag in
17871 none)
17872 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
17873echo "configure:17874: checking whether pthreads work without any flags" >&5
17874 ;;
17875
17876 -*)
17877 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
17878echo "configure:17879: checking whether pthreads work with $flag" >&5
17879 THREADS_CFLAGS="$flag"
17880 ;;
17881
17882 *)
17883 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
17884echo "configure:17885: checking for the pthreads library -l$flag" >&5
17885 THREADS_LINK="-l$flag"
17886 ;;
17887 esac
17888
17889 save_LIBS="$LIBS"
17890 save_CFLAGS="$CFLAGS"
17891 LIBS="$THREADS_LINK $LIBS"
17892 CFLAGS="$THREADS_CFLAGS $CFLAGS"
17893
17894 cat > conftest.$ac_ext <<EOF
17895#line 17896 "configure"
17896#include "confdefs.h"
17897#include <pthread.h>
17898int main() {
17899pthread_create(0,0,0,0);
17900; return 0; }
17901EOF
17902if { (eval echo configure:17903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17903 rm -rf conftest*
17904 THREADS_OK=yes
17905else
17906 echo "configure: failed program was:" >&5
17907 cat conftest.$ac_ext >&5
17908fi
17909rm -f conftest*
17910
17911 LIBS="$save_LIBS"
17912 CFLAGS="$save_CFLAGS"
17913
17914 echo "$ac_t""$THREADS_OK" 1>&6
17915 if test "x$THREADS_OK" = "xyes"; then
17916 break;
17917 fi
17918
17919 THREADS_LINK=""
17920 THREADS_CFLAGS=""
17921 done
17922
17923 if test "x$THREADS_OK" != "xyes"; then
17924 wxUSE_THREADS=no
17925 echo "configure: warning: No thread support on this system... disabled" 1>&2
17926 else
17927 LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS"
17928
17929 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
17930echo "configure:17931: checking if more special flags are required for pthreads" >&5
17931 flag=no
17932 case "${host}" in
17933 *-aix* | *-freebsd*)
17934 flag="-D_THREAD_SAFE"
17935 ;;
17936 *-hp-hpux* )
17937 flag="-D_REENTRANT"
17938 ;;
17939 *solaris* | alpha*-osf*)
17940 flag="-D_REENTRANT"
17941 ;;
17942 esac
17943 echo "$ac_t""${flag}" 1>&6
17944 if test "x$flag" != xno; then
17945 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
17946 fi
17947
17948 if test "x$THREADS_CFLAGS" != "x"; then
17949 CFLAGS="$CFLAGS $THREADS_CFLAGS"
17950 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
17951 fi
17952 fi
17953 fi
17954
17955 if test "$wxUSE_THREADS" = "yes" ; then
17956 for ac_func in thr_setconcurrency
17957do
17958echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17959echo "configure:17960: checking for $ac_func" >&5
17960if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17961 echo $ac_n "(cached) $ac_c" 1>&6
17962else
17963 cat > conftest.$ac_ext <<EOF
17964#line 17965 "configure"
17965#include "confdefs.h"
17966/* System header to define __stub macros and hopefully few prototypes,
17967 which can conflict with char $ac_func(); below. */
17968#include <assert.h>
17969/* Override any gcc2 internal prototype to avoid an error. */
17970/* We use char because int might match the return type of a gcc2
17971 builtin and then its argument prototype would still apply. */
17972char $ac_func();
17973
17974int main() {
17975
17976/* The GNU C library defines this for functions which it implements
17977 to always fail with ENOSYS. Some functions are actually named
17978 something starting with __ and the normal name is an alias. */
17979#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17980choke me
17981#else
17982$ac_func();
17983#endif
17984
17985; return 0; }
17986EOF
17987if { (eval echo configure:17988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17988 rm -rf conftest*
17989 eval "ac_cv_func_$ac_func=yes"
17990else
17991 echo "configure: failed program was:" >&5
17992 cat conftest.$ac_ext >&5
17993 rm -rf conftest*
17994 eval "ac_cv_func_$ac_func=no"
17995fi
17996rm -f conftest*
17997fi
17998
17999if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18000 echo "$ac_t""yes" 1>&6
18001 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18002 cat >> confdefs.h <<EOF
18003#define $ac_tr_func 1
18004EOF
18005
18006else
18007 echo "$ac_t""no" 1>&6
18008fi
18009done
18010
18011
18012 for ac_hdr in sched.h
18013do
18014ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18015echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18016echo "configure:18017: checking for $ac_hdr" >&5
18017if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18018 echo $ac_n "(cached) $ac_c" 1>&6
18019else
18020 cat > conftest.$ac_ext <<EOF
18021#line 18022 "configure"
18022#include "confdefs.h"
18023#include <$ac_hdr>
18024EOF
18025ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18026{ (eval echo configure:18027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18027ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18028if test -z "$ac_err"; then
18029 rm -rf conftest*
18030 eval "ac_cv_header_$ac_safe=yes"
18031else
18032 echo "$ac_err" >&5
18033 echo "configure: failed program was:" >&5
18034 cat conftest.$ac_ext >&5
18035 rm -rf conftest*
18036 eval "ac_cv_header_$ac_safe=no"
18037fi
18038rm -f conftest*
18039fi
18040if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18041 echo "$ac_t""yes" 1>&6
18042 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18043 cat >> confdefs.h <<EOF
18044#define $ac_tr_hdr 1
18045EOF
18046
18047else
18048 echo "$ac_t""no" 1>&6
18049fi
18050done
18051
18052 if test "$ac_cv_header_sched_h" = "yes"; then
18053 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
18054echo "configure:18055: checking for sched_yield" >&5
18055if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
18056 echo $ac_n "(cached) $ac_c" 1>&6
18057else
18058 cat > conftest.$ac_ext <<EOF
18059#line 18060 "configure"
18060#include "confdefs.h"
18061/* System header to define __stub macros and hopefully few prototypes,
18062 which can conflict with char sched_yield(); below. */
18063#include <assert.h>
18064/* Override any gcc2 internal prototype to avoid an error. */
18065/* We use char because int might match the return type of a gcc2
18066 builtin and then its argument prototype would still apply. */
18067char sched_yield();
18068
18069int main() {
18070
18071/* The GNU C library defines this for functions which it implements
18072 to always fail with ENOSYS. Some functions are actually named
18073 something starting with __ and the normal name is an alias. */
18074#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
18075choke me
18076#else
18077sched_yield();
18078#endif
18079
18080; return 0; }
18081EOF
18082if { (eval echo configure:18083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18083 rm -rf conftest*
18084 eval "ac_cv_func_sched_yield=yes"
18085else
18086 echo "configure: failed program was:" >&5
18087 cat conftest.$ac_ext >&5
18088 rm -rf conftest*
18089 eval "ac_cv_func_sched_yield=no"
18090fi
18091rm -f conftest*
18092fi
18093
18094if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
18095 echo "$ac_t""yes" 1>&6
18096 cat >> confdefs.h <<\EOF
18097#define HAVE_SCHED_YIELD 1
18098EOF
18099
18100else
18101 echo "$ac_t""no" 1>&6
18102
18103 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
18104echo "configure:18105: checking for sched_yield in -lposix4" >&5
18105ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
18106if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18107 echo $ac_n "(cached) $ac_c" 1>&6
18108else
18109 ac_save_LIBS="$LIBS"
18110LIBS="-lposix4 $LIBS"
18111cat > conftest.$ac_ext <<EOF
18112#line 18113 "configure"
18113#include "confdefs.h"
18114/* Override any gcc2 internal prototype to avoid an error. */
18115/* We use char because int might match the return type of a gcc2
18116 builtin and then its argument prototype would still apply. */
18117char sched_yield();
18118
18119int main() {
18120sched_yield()
18121; return 0; }
18122EOF
18123if { (eval echo configure:18124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18124 rm -rf conftest*
18125 eval "ac_cv_lib_$ac_lib_var=yes"
18126else
18127 echo "configure: failed program was:" >&5
18128 cat conftest.$ac_ext >&5
18129 rm -rf conftest*
18130 eval "ac_cv_lib_$ac_lib_var=no"
18131fi
18132rm -f conftest*
18133LIBS="$ac_save_LIBS"
18134
18135fi
18136if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18137 echo "$ac_t""yes" 1>&6
18138 cat >> confdefs.h <<\EOF
18139#define HAVE_SCHED_YIELD 1
18140EOF
18141 POSIX4_LINK=" -lposix4"
18142else
18143 echo "$ac_t""no" 1>&6
18144echo "configure: warning: wxThread::Yield will not work properly" 1>&2
18145
18146fi
18147
18148
18149
18150fi
18151
18152 fi
18153
18154 HAVE_PRIOR_FUNCS=0
18155 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
18156echo "configure:18157: checking for pthread_attr_getschedpolicy" >&5
18157if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
18158 echo $ac_n "(cached) $ac_c" 1>&6
18159else
18160 cat > conftest.$ac_ext <<EOF
18161#line 18162 "configure"
18162#include "confdefs.h"
18163/* System header to define __stub macros and hopefully few prototypes,
18164 which can conflict with char pthread_attr_getschedpolicy(); below. */
18165#include <assert.h>
18166/* Override any gcc2 internal prototype to avoid an error. */
18167/* We use char because int might match the return type of a gcc2
18168 builtin and then its argument prototype would still apply. */
18169char pthread_attr_getschedpolicy();
18170
18171int main() {
18172
18173/* The GNU C library defines this for functions which it implements
18174 to always fail with ENOSYS. Some functions are actually named
18175 something starting with __ and the normal name is an alias. */
18176#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
18177choke me
18178#else
18179pthread_attr_getschedpolicy();
18180#endif
18181
18182; return 0; }
18183EOF
18184if { (eval echo configure:18185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18185 rm -rf conftest*
18186 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
18187else
18188 echo "configure: failed program was:" >&5
18189 cat conftest.$ac_ext >&5
18190 rm -rf conftest*
18191 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
18192fi
18193rm -f conftest*
18194fi
18195
18196if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
18197 echo "$ac_t""yes" 1>&6
18198 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
18199echo "configure:18200: checking for pthread_attr_setschedparam" >&5
18200if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
18201 echo $ac_n "(cached) $ac_c" 1>&6
18202else
18203 cat > conftest.$ac_ext <<EOF
18204#line 18205 "configure"
18205#include "confdefs.h"
18206/* System header to define __stub macros and hopefully few prototypes,
18207 which can conflict with char pthread_attr_setschedparam(); below. */
18208#include <assert.h>
18209/* Override any gcc2 internal prototype to avoid an error. */
18210/* We use char because int might match the return type of a gcc2
18211 builtin and then its argument prototype would still apply. */
18212char pthread_attr_setschedparam();
18213
18214int main() {
18215
18216/* The GNU C library defines this for functions which it implements
18217 to always fail with ENOSYS. Some functions are actually named
18218 something starting with __ and the normal name is an alias. */
18219#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
18220choke me
18221#else
18222pthread_attr_setschedparam();
18223#endif
18224
18225; return 0; }
18226EOF
18227if { (eval echo configure:18228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18228 rm -rf conftest*
18229 eval "ac_cv_func_pthread_attr_setschedparam=yes"
18230else
18231 echo "configure: failed program was:" >&5
18232 cat conftest.$ac_ext >&5
18233 rm -rf conftest*
18234 eval "ac_cv_func_pthread_attr_setschedparam=no"
18235fi
18236rm -f conftest*
18237fi
18238
18239if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
18240 echo "$ac_t""yes" 1>&6
18241 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
18242echo "configure:18243: checking for sched_get_priority_max" >&5
18243if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
18244 echo $ac_n "(cached) $ac_c" 1>&6
18245else
18246 cat > conftest.$ac_ext <<EOF
18247#line 18248 "configure"
18248#include "confdefs.h"
18249/* System header to define __stub macros and hopefully few prototypes
18250else
18251 echo "$ac_t""no" 1>&6
18252which can conflict with char sched_get_priority_max(); below. */
18253#include <assert.h>
18254/* Override any gcc2 internal prototype to avoid an error. */
18255/* We use char because int might match the return type of a gcc2
18256 builtin and then its argument prototype would still apply. */
18257char sched_get_priority_max();
18258
18259int main() {
18260
18261/* The GNU C library defines this for functions which it implements
18262 to always fail with ENOSYS. Some functions are actually named
18263 something starting with __ and the normal name is an alias. */
18264#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
18265choke me
18266#else
18267sched_get_priority_max();
18268#endif
18269
18270; return 0; }
18271EOF
18272if { (eval echo configure:18273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18273 rm -rf conftest*
18274 eval "ac_cv_func_sched_get_priority_max=yes"
18275else
18276 echo "configure: failed program was:" >&5
18277 cat conftest.$ac_ext >&5
18278 rm -rf conftest*
18279 eval "ac_cv_func_sched_get_priority_max=no"
18280fi
18281rm -f conftest*
18282fi
18283
18284if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
18285 echo "$ac_t""yes" 1>&6
18286 HAVE_PRIOR_FUNCS=1
18287else
18288 echo "$ac_t""no" 1>&6
18289echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
18290echo "configure:18291: checking for sched_get_priority_max in -lposix4" >&5
18291ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
18292if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18293 echo $ac_n "(cached) $ac_c" 1>&6
18294else
18295 ac_save_LIBS="$LIBS"
18296LIBS="-lposix4 $LIBS"
18297cat > conftest.$ac_ext <<EOF
18298#line 18299 "configure"
18299#include "confdefs.h"
18300/* Override any gcc2 internal prototype to avoid an error. */
18301/* We use char because int might match the return type of a gcc2
18302 builtin and then its argument prototype would still apply. */
18303char sched_get_priority_max();
18304
18305int main() {
18306sched_get_priority_max()
18307; return 0; }
18308EOF
18309if { (eval echo configure:18310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18310 rm -rf conftest*
18311 eval "ac_cv_lib_$ac_lib_var=yes"
18312else
18313 echo "configure: failed program was:" >&5
18314 cat conftest.$ac_ext >&5
18315 rm -rf conftest*
18316 eval "ac_cv_lib_$ac_lib_var=no"
18317fi
18318rm -f conftest*
18319LIBS="$ac_save_LIBS"
18320
18321fi
18322if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18323 echo "$ac_t""yes" 1>&6
18324
18325 HAVE_PRIOR_FUNCS=1
18326 POSIX4_LINK=" -lposix4"
18327
18328else
18329 echo "$ac_t""no" 1>&6
18330fi
18331
18332
18333fi
18334
18335
18336else
18337 echo "$ac_t""no" 1>&6
18338fi
18339
18340
18341fi
18342
18343
18344 if test "$HAVE_PRIOR_FUNCS" = 1; then
18345 cat >> confdefs.h <<\EOF
18346#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
18347EOF
18348
18349 else
18350 echo "configure: warning: Setting thread priority will not work" 1>&2
18351 fi
18352
18353 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
18354echo "configure:18355: checking for pthread_cancel" >&5
18355if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
18356 echo $ac_n "(cached) $ac_c" 1>&6
18357else
18358 cat > conftest.$ac_ext <<EOF
18359#line 18360 "configure"
18360#include "confdefs.h"
18361/* System header to define __stub macros and hopefully few prototypes,
18362 which can conflict with char pthread_cancel(); below. */
18363#include <assert.h>
18364/* Override any gcc2 internal prototype to avoid an error. */
18365/* We use char because int might match the return type of a gcc2
18366 builtin and then its argument prototype would still apply. */
18367char pthread_cancel();
18368
18369int main() {
18370
18371/* The GNU C library defines this for functions which it implements
18372 to always fail with ENOSYS. Some functions are actually named
18373 something starting with __ and the normal name is an alias. */
18374#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
18375choke me
18376#else
18377pthread_cancel();
18378#endif
18379
18380; return 0; }
18381EOF
18382if { (eval echo configure:18383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18383 rm -rf conftest*
18384 eval "ac_cv_func_pthread_cancel=yes"
18385else
18386 echo "configure: failed program was:" >&5
18387 cat conftest.$ac_ext >&5
18388 rm -rf conftest*
18389 eval "ac_cv_func_pthread_cancel=no"
18390fi
18391rm -f conftest*
18392fi
18393
18394if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
18395 echo "$ac_t""yes" 1>&6
18396 cat >> confdefs.h <<\EOF
18397#define HAVE_PTHREAD_CANCEL 1
18398EOF
18399
18400else
18401 echo "$ac_t""no" 1>&6
18402echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
18403fi
18404
18405
18406 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
18407echo "configure:18408: checking for pthread_cleanup_push/pop" >&5
18408if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
18409 echo $ac_n "(cached) $ac_c" 1>&6
18410else
18411
18412 cat > conftest.$ac_ext <<EOF
18413#line 18414 "configure"
18414#include "confdefs.h"
18415#include <pthread.h>
18416int main() {
18417
18418 pthread_cleanup_push(NULL, NULL);
18419 pthread_cleanup_pop(0);
18420
18421; return 0; }
18422EOF
18423if { (eval echo configure:18424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18424 rm -rf conftest*
18425
18426 wx_cv_func_pthread_cleanup_push=yes
18427
18428else
18429 echo "configure: failed program was:" >&5
18430 cat conftest.$ac_ext >&5
18431 rm -rf conftest*
18432
18433 wx_cv_func_pthread_cleanup_push=no
18434
18435fi
18436rm -f conftest*
18437
18438fi
18439
18440echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
18441
18442 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
18443 cat >> confdefs.h <<\EOF
18444#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
18445EOF
18446
18447 fi
18448
18449
18450 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
18451echo "configure:18452: checking for pthread_mutexattr_t" >&5
18452if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
18453 echo $ac_n "(cached) $ac_c" 1>&6
18454else
18455
18456 cat > conftest.$ac_ext <<EOF
18457#line 18458 "configure"
18458#include "confdefs.h"
18459#include <pthread.h>
18460int main() {
18461
18462 pthread_mutexattr_t attr;
18463 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
18464
18465; return 0; }
18466EOF
18467if { (eval echo configure:18468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18468 rm -rf conftest*
18469
18470 wx_cv_type_pthread_mutexattr_t=yes
18471
18472else
18473 echo "configure: failed program was:" >&5
18474 cat conftest.$ac_ext >&5
18475 rm -rf conftest*
18476
18477 wx_cv_type_pthread_mutexattr_t=no
18478
18479
18480fi
18481rm -f conftest*
18482
18483fi
18484
18485echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
18486
18487 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
18488 cat >> confdefs.h <<\EOF
18489#define HAVE_PTHREAD_MUTEXATTR_T 1
18490EOF
18491
18492 else
18493 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
18494echo "configure:18495: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
18495if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
18496 echo $ac_n "(cached) $ac_c" 1>&6
18497else
18498
18499 cat > conftest.$ac_ext <<EOF
18500#line 18501 "configure"
18501#include "confdefs.h"
18502#include <pthread.h>
18503int main() {
18504
18505 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
18506
18507; return 0; }
18508EOF
18509if { (eval echo configure:18510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18510 rm -rf conftest*
18511
18512 wx_cv_type_pthread_rec_mutex_init=yes
18513
18514else
18515 echo "configure: failed program was:" >&5
18516 cat conftest.$ac_ext >&5
18517 rm -rf conftest*
18518
18519 wx_cv_type_pthread_rec_mutex_init=no
18520
18521
18522fi
18523rm -f conftest*
18524
18525fi
18526
18527echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
18528 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
18529 cat >> confdefs.h <<\EOF
18530#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
18531EOF
18532
18533 else
18534 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
18535 fi
18536 fi
18537 fi
18538
18539else
18540 if test "$wxUSE_THREADS" = "yes" ; then
18541 case "${host}" in
18542 *-*-mingw32* )
18543 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
18544echo "configure:18545: checking if compiler supports -mthreads" >&5
18545if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
18546 echo $ac_n "(cached) $ac_c" 1>&6
18547else
18548
18549 CFLAGS_OLD="$CFLAGS"
18550 CFLAGS="$CFLAGS -mthreads"
18551 cat > conftest.$ac_ext <<EOF
18552#line 18553 "configure"
18553#include "confdefs.h"
18554
18555int main() {
18556
18557; return 0; }
18558EOF
18559if { (eval echo configure:18560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18560 rm -rf conftest*
18561 wx_cv_cflags_mthread=yes
18562else
18563 echo "configure: failed program was:" >&5
18564 cat conftest.$ac_ext >&5
18565 rm -rf conftest*
18566 wx_cv_cflags_mthread=no
18567
18568fi
18569rm -f conftest*
18570
18571
18572fi
18573
18574echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
18575
18576 if test "$wx_cv_cflags_mthread" = "yes"; then
18577 CXXFLAGS="$CXXFLAGS -mthreads"
18578 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
18579 LDFLAGS="$LDFLAGS -mthreads"
18580 else
18581 CFLAGS="$CFLAGS_OLD"
18582 fi
18583 ;;
18584 esac
18585 fi
18586fi
18587
18588if test "$wxUSE_THREADS" = "yes"; then
18589 cat >> confdefs.h <<\EOF
18590#define wxUSE_THREADS 1
18591EOF
18592
18593
18594 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
18595else
18596 if test "$ac_cv_func_strtok_r" = "yes"; then
18597 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
18598echo "configure:18599: checking if -D_REENTRANT is needed" >&5
18599 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
18600 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
18601 echo "$ac_t""yes" 1>&6
18602 else
18603 echo "$ac_t""no" 1>&6
18604 fi
18605 fi
18606fi
18607
18608if test "$WXGTK20" = 1 ; then
18609 cat >> confdefs.h <<EOF
18610#define __WXGTK20__ $WXGTK20
18611EOF
18612
18613 WXGTK12=1
18614fi
18615
18616if test "$WXGTK12" = 1 ; then
18617 cat >> confdefs.h <<EOF
18618#define __WXGTK12__ $WXGTK12
18619EOF
18620
18621fi
18622
18623if test "$WXGTK127" = 1 ; then
18624 cat >> confdefs.h <<EOF
18625#define __WXGTK127__ $WXGTK127
18626EOF
18627
18628fi
18629
18630WXDEBUG=
18631
18632if test "$wxUSE_DEBUG_INFO" = "yes" ; then
18633 WXDEBUG="-g"
18634 wxUSE_OPTIMISE=no
18635fi
18636
18637if test "$wxUSE_DEBUG_GDB" = "yes" ; then
18638 wxUSE_DEBUG_INFO=yes
18639 WXDEBUG="-ggdb"
18640fi
18641
18642if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
18643 cat >> confdefs.h <<\EOF
18644#define WXDEBUG 1
18645EOF
18646
18647 WXDEBUG_DEFINE="-D__WXDEBUG__"
18648else
18649 if test "$wxUSE_GTK" = 1 ; then
18650 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
18651 fi
18652fi
18653
18654if test "$wxUSE_MEM_TRACING" = "yes" ; then
18655 cat >> confdefs.h <<\EOF
18656#define wxUSE_MEMORY_TRACING 1
18657EOF
18658
18659 cat >> confdefs.h <<\EOF
18660#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
18661EOF
18662
18663 cat >> confdefs.h <<\EOF
18664#define wxUSE_DEBUG_NEW_ALWAYS 1
18665EOF
18666
18667 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
18668fi
18669
18670if test "$wxUSE_DMALLOC" = "yes" ; then
18671 DMALLOC_LIBS="-ldmalloc"
18672fi
18673
18674PROFILE=
18675if test "$wxUSE_PROFILE" = "yes" ; then
18676 PROFILE=" -pg"
18677fi
18678
18679CODE_GEN_FLAGS=
18680CODE_GEN_FLAGS_CXX=
18681if test "$GCC" = "yes" ; then
18682 if test "$wxUSE_NO_RTTI" = "yes" ; then
18683 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
18684 fi
18685 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
18686 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
18687 fi
18688 if test "$wxUSE_PERMISSIVE" = "yes" ; then
18689 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
18690 fi
18691 if test "$USE_WIN32" = 1 ; then
18692 # I'm not even really sure what this was ever added to solve,
18693 # but someone added it for mingw native builds, so I guess
18694 # they had a reason, right??
18695 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
18696 fi
18697
18698 case "${host}" in
18699 powerpc*-*-aix* )
18700 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
18701 ;;
18702 esac
18703fi
18704
18705if test "$wxUSE_OPTIMISE" = "no" ; then
18706 OPTIMISE=
18707else
18708 if test "$GCC" = yes ; then
18709 OPTIMISE="-O2"
18710 case "${host}" in
18711 i586-*-*|i686-*-* )
18712 OPTIMISE="${OPTIMISE} "
18713 ;;
18714 esac
18715 else
18716 OPTIMISE="-O"
18717 fi
18718fi
18719
18720if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
18721 cat >> confdefs.h <<\EOF
18722#define WXWIN_COMPATIBILITY_2 1
18723EOF
18724
18725
18726 WXWIN_COMPATIBILITY_2_2="yes"
18727fi
18728
18729if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
18730 cat >> confdefs.h <<\EOF
18731#define WXWIN_COMPATIBILITY_2_2 1
18732EOF
18733
18734fi
18735
18736
18737if test "$wxUSE_GUI" = "yes"; then
18738 cat >> confdefs.h <<\EOF
18739#define wxUSE_GUI 1
18740EOF
18741
18742
18743 else
18744 cat >> confdefs.h <<\EOF
18745#define wxUSE_NOGUI 1
18746EOF
18747
18748fi
18749
18750
18751if test "$wxUSE_UNIX" = "yes"; then
18752 cat >> confdefs.h <<\EOF
18753#define wxUSE_UNIX 1
18754EOF
18755
18756fi
18757
18758
18759if test "$wxUSE_APPLE_IEEE" = "yes"; then
18760 cat >> confdefs.h <<\EOF
18761#define wxUSE_APPLE_IEEE 1
18762EOF
18763
18764fi
18765
18766if test "$wxUSE_TIMER" = "yes"; then
18767 cat >> confdefs.h <<\EOF
18768#define wxUSE_TIMER 1
18769EOF
18770
18771fi
18772
18773if test "$wxUSE_WAVE" = "yes"; then
18774 cat >> confdefs.h <<\EOF
18775#define wxUSE_WAVE 1
18776EOF
18777
18778fi
18779
18780if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
18781 cat >> confdefs.h <<\EOF
18782#define wxUSE_CMDLINE_PARSER 1
18783EOF
18784
18785fi
18786
18787if test "$wxUSE_STOPWATCH" = "yes"; then
18788 cat >> confdefs.h <<\EOF
18789#define wxUSE_STOPWATCH 1
18790EOF
18791
18792fi
18793
18794if test "$wxUSE_DATETIME" = "yes"; then
18795 cat >> confdefs.h <<\EOF
18796#define wxUSE_DATETIME 1
18797EOF
18798
18799fi
18800
18801if test "$wxUSE_TIMEDATE" = "yes"; then
18802 cat >> confdefs.h <<\EOF
18803#define wxUSE_TIMEDATE 1
18804EOF
18805
18806fi
18807
18808if test "$wxUSE_FILE" = "yes"; then
18809 cat >> confdefs.h <<\EOF
18810#define wxUSE_FILE 1
18811EOF
18812
18813fi
18814
18815if test "$wxUSE_FFILE" = "yes"; then
18816 cat >> confdefs.h <<\EOF
18817#define wxUSE_FFILE 1
18818EOF
18819
18820fi
18821
18822if test "$wxUSE_FILESYSTEM" = "yes"; then
18823 cat >> confdefs.h <<\EOF
18824#define wxUSE_FILESYSTEM 1
18825EOF
18826
18827fi
18828
18829if test "$wxUSE_FS_INET" = "yes"; then
18830 cat >> confdefs.h <<\EOF
18831#define wxUSE_FS_INET 1
18832EOF
18833
18834fi
18835
18836if test "$wxUSE_FS_ZIP" = "yes"; then
18837 cat >> confdefs.h <<\EOF
18838#define wxUSE_FS_ZIP 1
18839EOF
18840
18841fi
18842
18843if test "$wxUSE_ZIPSTREAM" = "yes"; then
18844 cat >> confdefs.h <<\EOF
18845#define wxUSE_ZIPSTREAM 1
18846EOF
18847
18848fi
18849
18850if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18851 cat >> confdefs.h <<\EOF
18852#define wxUSE_ON_FATAL_EXCEPTION 1
18853EOF
18854
18855fi
18856
18857if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
18858 cat >> confdefs.h <<\EOF
18859#define wxUSE_SNGLINST_CHECKER 1
18860EOF
18861
18862fi
18863
18864if test "$wxUSE_BUSYINFO" = "yes"; then
18865 cat >> confdefs.h <<\EOF
18866#define wxUSE_BUSYINFO 1
18867EOF
18868
18869fi
18870
18871if test "$wxUSE_STD_IOSTREAM" = "yes"; then
18872 cat >> confdefs.h <<\EOF
18873#define wxUSE_STD_IOSTREAM 1
18874EOF
18875
18876fi
18877
18878if test "$wxUSE_TEXTBUFFER" = "yes"; then
18879 cat >> confdefs.h <<\EOF
18880#define wxUSE_TEXTBUFFER 1
18881EOF
18882
18883fi
18884
18885if test "$wxUSE_TEXTFILE" = "yes"; then
18886 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
18887 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
18888 else
18889 cat >> confdefs.h <<\EOF
18890#define wxUSE_TEXTFILE 1
18891EOF
18892
18893 fi
18894fi
18895
18896if test "$wxUSE_CONFIG" = "yes" ; then
18897 if test "$wxUSE_TEXTFILE" != "yes"; then
18898 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
18899 else
18900 cat >> confdefs.h <<\EOF
18901#define wxUSE_CONFIG 1
18902EOF
18903
18904 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18905 fi
18906fi
18907
18908if test "$wxUSE_INTL" = "yes" ; then
18909 if test "$wxUSE_FILE" != "yes"; then
18910 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
18911 else
18912 cat >> confdefs.h <<\EOF
18913#define wxUSE_INTL 1
18914EOF
18915
18916 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
18917 GUIDIST="$GUIDIST INTL_DIST"
18918 fi
18919fi
18920
18921if test "$wxUSE_LOG" = "yes"; then
18922 cat >> confdefs.h <<\EOF
18923#define wxUSE_LOG 1
18924EOF
18925
18926
18927 if test "$wxUSE_LOGGUI" = "yes"; then
18928 cat >> confdefs.h <<\EOF
18929#define wxUSE_LOGGUI 1
18930EOF
18931
18932 fi
18933
18934 if test "$wxUSE_LOGWINDOW" = "yes"; then
18935 cat >> confdefs.h <<\EOF
18936#define wxUSE_LOGWINDOW 1
18937EOF
18938
18939 fi
18940
18941 if test "$wxUSE_LOGDIALOG" = "yes"; then
18942 cat >> confdefs.h <<\EOF
18943#define wxUSE_LOG_DIALOG 1
18944EOF
18945
18946 fi
18947fi
18948
18949if test "$wxUSE_LONGLONG" = "yes"; then
18950 cat >> confdefs.h <<\EOF
18951#define wxUSE_LONGLONG 1
18952EOF
18953
18954fi
18955
18956if test "$wxUSE_GEOMETRY" = "yes"; then
18957 cat >> confdefs.h <<\EOF
18958#define wxUSE_GEOMETRY 1
18959EOF
18960
18961fi
18962
18963if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
18964 cat >> confdefs.h <<\EOF
18965#define wxUSE_DIALUP_MANAGER 1
18966EOF
18967
18968 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
18969fi
18970
18971if test "$wxUSE_STREAMS" = "yes" ; then
18972 cat >> confdefs.h <<\EOF
18973#define wxUSE_STREAMS 1
18974EOF
18975
18976fi
18977
18978
18979if test "$wxUSE_DATETIME" = "yes"; then
18980 for ac_func in strptime
18981do
18982echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18983echo "configure:18984: checking for $ac_func" >&5
18984if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18985 echo $ac_n "(cached) $ac_c" 1>&6
18986else
18987 cat > conftest.$ac_ext <<EOF
18988#line 18989 "configure"
18989#include "confdefs.h"
18990/* System header to define __stub macros and hopefully few prototypes,
18991 which can conflict with char $ac_func(); below. */
18992#include <assert.h>
18993/* Override any gcc2 internal prototype to avoid an error. */
18994/* We use char because int might match the return type of a gcc2
18995 builtin and then its argument prototype would still apply. */
18996char $ac_func();
18997
18998int main() {
18999
19000/* The GNU C library defines this for functions which it implements
19001 to always fail with ENOSYS. Some functions are actually named
19002 something starting with __ and the normal name is an alias. */
19003#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19004choke me
19005#else
19006$ac_func();
19007#endif
19008
19009; return 0; }
19010EOF
19011if { (eval echo configure:19012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19012 rm -rf conftest*
19013 eval "ac_cv_func_$ac_func=yes"
19014else
19015 echo "configure: failed program was:" >&5
19016 cat conftest.$ac_ext >&5
19017 rm -rf conftest*
19018 eval "ac_cv_func_$ac_func=no"
19019fi
19020rm -f conftest*
19021fi
19022
19023if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19024 echo "$ac_t""yes" 1>&6
19025 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19026 cat >> confdefs.h <<EOF
19027#define $ac_tr_func 1
19028EOF
19029
19030else
19031 echo "$ac_t""no" 1>&6
19032fi
19033done
19034
19035
19036 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
19037echo "configure:19038: checking for timezone variable in <time.h>" >&5
19038if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
19039 echo $ac_n "(cached) $ac_c" 1>&6
19040else
19041
19042 cat > conftest.$ac_ext <<EOF
19043#line 19044 "configure"
19044#include "confdefs.h"
19045
19046 #include <time.h>
19047
19048int main() {
19049
19050 int tz;
19051 tz = timezone;
19052
19053; return 0; }
19054EOF
19055if { (eval echo configure:19056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19056 rm -rf conftest*
19057
19058 wx_cv_var_timezone=timezone
19059
19060else
19061 echo "configure: failed program was:" >&5
19062 cat conftest.$ac_ext >&5
19063 rm -rf conftest*
19064
19065 cat > conftest.$ac_ext <<EOF
19066#line 19067 "configure"
19067#include "confdefs.h"
19068
19069 #include <time.h>
19070
19071int main() {
19072
19073 int tz;
19074 tz = _timezone;
19075
19076; return 0; }
19077EOF
19078if { (eval echo configure:19079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19079 rm -rf conftest*
19080
19081 wx_cv_var_timezone=_timezone
19082
19083else
19084 echo "configure: failed program was:" >&5
19085 cat conftest.$ac_ext >&5
19086 rm -rf conftest*
19087
19088 cat > conftest.$ac_ext <<EOF
19089#line 19090 "configure"
19090#include "confdefs.h"
19091
19092 #include <time.h>
19093
19094int main() {
19095
19096 int tz;
19097 tz = __timezone;
19098
19099; return 0; }
19100EOF
19101if { (eval echo configure:19102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19102 rm -rf conftest*
19103
19104 wx_cv_var_timezone=__timezone
19105
19106else
19107 echo "configure: failed program was:" >&5
19108 cat conftest.$ac_ext >&5
19109 rm -rf conftest*
19110
19111 if test "$USE_DOS" = 0 ; then
19112 echo "configure: warning: no timezone variable" 1>&2
19113 fi
19114
19115
19116fi
19117rm -f conftest*
19118
19119
19120fi
19121rm -f conftest*
19122
19123
19124fi
19125rm -f conftest*
19126
19127
19128fi
19129
19130echo "$ac_t""$wx_cv_var_timezone" 1>&6
19131
19132 if test "x$wx_cv_var_timezone" != x ; then
19133 cat >> confdefs.h <<EOF
19134#define WX_TIMEZONE $wx_cv_var_timezone
19135EOF
19136
19137 fi
19138
19139 for ac_func in localtime
19140do
19141echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19142echo "configure:19143: checking for $ac_func" >&5
19143if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19144 echo $ac_n "(cached) $ac_c" 1>&6
19145else
19146 cat > conftest.$ac_ext <<EOF
19147#line 19148 "configure"
19148#include "confdefs.h"
19149/* System header to define __stub macros and hopefully few prototypes,
19150 which can conflict with char $ac_func(); below. */
19151#include <assert.h>
19152/* Override any gcc2 internal prototype to avoid an error. */
19153/* We use char because int might match the return type of a gcc2
19154 builtin and then its argument prototype would still apply. */
19155char $ac_func();
19156
19157int main() {
19158
19159/* The GNU C library defines this for functions which it implements
19160 to always fail with ENOSYS. Some functions are actually named
19161 something starting with __ and the normal name is an alias. */
19162#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19163choke me
19164#else
19165$ac_func();
19166#endif
19167
19168; return 0; }
19169EOF
19170if { (eval echo configure:19171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19171 rm -rf conftest*
19172 eval "ac_cv_func_$ac_func=yes"
19173else
19174 echo "configure: failed program was:" >&5
19175 cat conftest.$ac_ext >&5
19176 rm -rf conftest*
19177 eval "ac_cv_func_$ac_func=no"
19178fi
19179rm -f conftest*
19180fi
19181
19182if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19183 echo "$ac_t""yes" 1>&6
19184 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19185 cat >> confdefs.h <<EOF
19186#define $ac_tr_func 1
19187EOF
19188
19189else
19190 echo "$ac_t""no" 1>&6
19191fi
19192done
19193
19194
19195 if test "$ac_cv_func_localtime" = "yes"; then
19196 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
19197echo "configure:19198: checking for tm_gmtoff in struct tm" >&5
19198if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
19199 echo $ac_n "(cached) $ac_c" 1>&6
19200else
19201
19202 cat > conftest.$ac_ext <<EOF
19203#line 19204 "configure"
19204#include "confdefs.h"
19205
19206 #include <time.h>
19207
19208int main() {
19209
19210 struct tm tm;
19211 tm.tm_gmtoff++;
19212
19213; return 0; }
19214EOF
19215if { (eval echo configure:19216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19216 rm -rf conftest*
19217
19218 wx_cv_struct_tm_has_gmtoff=yes
19219
19220else
19221 echo "configure: failed program was:" >&5
19222 cat conftest.$ac_ext >&5
19223 rm -rf conftest*
19224 wx_cv_struct_tm_has_gmtoff=no
19225
19226fi
19227rm -f conftest*
19228
19229fi
19230
19231echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
19232 fi
19233
19234 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
19235 cat >> confdefs.h <<\EOF
19236#define WX_GMTOFF_IN_TM 1
19237EOF
19238
19239 fi
19240
19241 for ac_func in gettimeofday ftime
19242do
19243echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19244echo "configure:19245: checking for $ac_func" >&5
19245if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19246 echo $ac_n "(cached) $ac_c" 1>&6
19247else
19248 cat > conftest.$ac_ext <<EOF
19249#line 19250 "configure"
19250#include "confdefs.h"
19251/* System header to define __stub macros and hopefully few prototypes,
19252 which can conflict with char $ac_func(); below. */
19253#include <assert.h>
19254/* Override any gcc2 internal prototype to avoid an error. */
19255/* We use char because int might match the return type of a gcc2
19256 builtin and then its argument prototype would still apply. */
19257char $ac_func();
19258
19259int main() {
19260
19261/* The GNU C library defines this for functions which it implements
19262 to always fail with ENOSYS. Some functions are actually named
19263 something starting with __ and the normal name is an alias. */
19264#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19265choke me
19266#else
19267$ac_func();
19268#endif
19269
19270; return 0; }
19271EOF
19272if { (eval echo configure:19273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19273 rm -rf conftest*
19274 eval "ac_cv_func_$ac_func=yes"
19275else
19276 echo "configure: failed program was:" >&5
19277 cat conftest.$ac_ext >&5
19278 rm -rf conftest*
19279 eval "ac_cv_func_$ac_func=no"
19280fi
19281rm -f conftest*
19282fi
19283
19284if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19285 echo "$ac_t""yes" 1>&6
19286 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19287 cat >> confdefs.h <<EOF
19288#define $ac_tr_func 1
19289EOF
19290 break
19291else
19292 echo "$ac_t""no" 1>&6
19293fi
19294done
19295
19296
19297 if test "$ac_cv_func_gettimeofday" = "yes"; then
19298 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
19299echo "configure:19300: checking whether gettimeofday takes two arguments" >&5
19300if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
19301 echo $ac_n "(cached) $ac_c" 1>&6
19302else
19303
19304
19305 ac_ext=C
19306# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19307ac_cpp='$CXXCPP $CPPFLAGS'
19308ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19309ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19310cross_compiling=$ac_cv_prog_cxx_cross
19311
19312
19313 cat > conftest.$ac_ext <<EOF
19314#line 19315 "configure"
19315#include "confdefs.h"
19316
19317 #include <sys/time.h>
19318 #include <unistd.h>
19319
19320int main() {
19321
19322 struct timeval tv;
19323 gettimeofday(&tv, NULL);
19324
19325; return 0; }
19326EOF
19327if { (eval echo configure:19328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19328 rm -rf conftest*
19329 wx_cv_func_gettimeofday_has_2_args=yes
19330else
19331 echo "configure: failed program was:" >&5
19332 cat conftest.$ac_ext >&5
19333 rm -rf conftest*
19334 cat > conftest.$ac_ext <<EOF
19335#line 19336 "configure"
19336#include "confdefs.h"
19337
19338 #include <sys/time.h>
19339 #include <unistd.h>
19340
19341int main() {
19342
19343 struct timeval tv;
19344 gettimeofday(&tv);
19345
19346; return 0; }
19347EOF
19348if { (eval echo configure:19349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19349 rm -rf conftest*
19350 wx_cv_func_gettimeofday_has_2_args=no
19351else
19352 echo "configure: failed program was:" >&5
19353 cat conftest.$ac_ext >&5
19354 rm -rf conftest*
19355
19356 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
19357 wx_cv_func_gettimeofday_has_2_args=unknown
19358
19359
19360fi
19361rm -f conftest*
19362
19363fi
19364rm -f conftest*
19365 ac_ext=c
19366# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19367ac_cpp='$CPP $CPPFLAGS'
19368ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19369ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19370cross_compiling=$ac_cv_prog_cc_cross
19371
19372
19373fi
19374
19375echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
19376
19377 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
19378 cat >> confdefs.h <<\EOF
19379#define WX_GETTIMEOFDAY_NO_TZ 1
19380EOF
19381
19382 fi
19383 fi
19384
19385 cat >> confdefs.h <<\EOF
19386#define wxUSE_TIMEDATE 1
19387EOF
19388
19389 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
19390fi
19391
19392
19393if test "$wxUSE_SOCKETS" = "yes"; then
19394 if test "$wxUSE_MGL" = "1"; then
19395 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
19396 wxUSE_SOCKETS="no"
19397 fi
19398fi
19399
19400if test "$wxUSE_SOCKETS" = "yes"; then
19401 if test "$TOOLKIT" != "MSW"; then
19402 echo $ac_n "checking for socket""... $ac_c" 1>&6
19403echo "configure:19404: checking for socket" >&5
19404if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
19405 echo $ac_n "(cached) $ac_c" 1>&6
19406else
19407 cat > conftest.$ac_ext <<EOF
19408#line 19409 "configure"
19409#include "confdefs.h"
19410/* System header to define __stub macros and hopefully few prototypes,
19411 which can conflict with char socket(); below. */
19412#include <assert.h>
19413/* Override any gcc2 internal prototype to avoid an error. */
19414/* We use char because int might match the return type of a gcc2
19415 builtin and then its argument prototype would still apply. */
19416char socket();
19417
19418int main() {
19419
19420/* The GNU C library defines this for functions which it implements
19421 to always fail with ENOSYS. Some functions are actually named
19422 something starting with __ and the normal name is an alias. */
19423#if defined (__stub_socket) || defined (__stub___socket)
19424choke me
19425#else
19426socket();
19427#endif
19428
19429; return 0; }
19430EOF
19431if { (eval echo configure:19432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19432 rm -rf conftest*
19433 eval "ac_cv_func_socket=yes"
19434else
19435 echo "configure: failed program was:" >&5
19436 cat conftest.$ac_ext >&5
19437 rm -rf conftest*
19438 eval "ac_cv_func_socket=no"
19439fi
19440rm -f conftest*
19441fi
19442
19443if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
19444 echo "$ac_t""yes" 1>&6
19445 :
19446else
19447 echo "$ac_t""no" 1>&6
19448echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
19449echo "configure:19450: checking for socket in -lsocket" >&5
19450ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
19451if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19452 echo $ac_n "(cached) $ac_c" 1>&6
19453else
19454 ac_save_LIBS="$LIBS"
19455LIBS="-lsocket $LIBS"
19456cat > conftest.$ac_ext <<EOF
19457#line 19458 "configure"
19458#include "confdefs.h"
19459/* Override any gcc2 internal prototype to avoid an error. */
19460/* We use char because int might match the return type of a gcc2
19461 builtin and then its argument prototype would still apply. */
19462char socket();
19463
19464int main() {
19465socket()
19466; return 0; }
19467EOF
19468if { (eval echo configure:19469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19469 rm -rf conftest*
19470 eval "ac_cv_lib_$ac_lib_var=yes"
19471else
19472 echo "configure: failed program was:" >&5
19473 cat conftest.$ac_ext >&5
19474 rm -rf conftest*
19475 eval "ac_cv_lib_$ac_lib_var=no"
19476fi
19477rm -f conftest*
19478LIBS="$ac_save_LIBS"
19479
19480fi
19481if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19482 echo "$ac_t""yes" 1>&6
19483 if test "$INET_LINK" != " -lsocket"; then
19484 INET_LINK="$INET_LINK -lsocket"
19485 fi
19486else
19487 echo "$ac_t""no" 1>&6
19488
19489 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
19490 wxUSE_SOCKETS=no
19491
19492
19493fi
19494
19495
19496fi
19497
19498 fi
19499fi
19500
19501if test "$wxUSE_SOCKETS" = "yes" ; then
19502 if test "$TOOLKIT" != "MSW"; then
19503 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
19504echo "configure:19505: checking what is the type of the third argument of getsockname" >&5
19505if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
19506 echo $ac_n "(cached) $ac_c" 1>&6
19507else
19508
19509
19510 ac_ext=C
19511# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19512ac_cpp='$CXXCPP $CPPFLAGS'
19513ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19514ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19515cross_compiling=$ac_cv_prog_cxx_cross
19516
19517
19518 cat > conftest.$ac_ext <<EOF
19519#line 19520 "configure"
19520#include "confdefs.h"
19521
19522 #include <sys/types.h>
19523 #include <sys/socket.h>
19524
19525int main() {
19526
19527 socklen_t len;
19528 getsockname(0, 0, &len);
19529
19530; return 0; }
19531EOF
19532if { (eval echo configure:19533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19533 rm -rf conftest*
19534 wx_cv_type_getsockname3=socklen_t
19535else
19536 echo "configure: failed program was:" >&5
19537 cat conftest.$ac_ext >&5
19538 rm -rf conftest*
19539 cat > conftest.$ac_ext <<EOF
19540#line 19541 "configure"
19541#include "confdefs.h"
19542
19543 #include <sys/types.h>
19544 #include <sys/socket.h>
19545
19546int main() {
19547
19548 size_t len;
19549 getsockname(0, 0, &len);
19550
19551; return 0; }
19552EOF
19553if { (eval echo configure:19554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19554 rm -rf conftest*
19555 wx_cv_type_getsockname3=size_t
19556else
19557 echo "configure: failed program was:" >&5
19558 cat conftest.$ac_ext >&5
19559 rm -rf conftest*
19560 cat > conftest.$ac_ext <<EOF
19561#line 19562 "configure"
19562#include "confdefs.h"
19563
19564 #include <sys/types.h>
19565 #include <sys/socket.h>
19566
19567int main() {
19568
19569 int len;
19570 getsockname(0, 0, &len);
19571
19572; return 0; }
19573EOF
19574if { (eval echo configure:19575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19575 rm -rf conftest*
19576 wx_cv_type_getsockname3=int
19577else
19578 echo "configure: failed program was:" >&5
19579 cat conftest.$ac_ext >&5
19580 rm -rf conftest*
19581 wx_cv_type_getsockname3=unknown
19582
19583fi
19584rm -f conftest*
19585
19586fi
19587rm -f conftest*
19588
19589fi
19590rm -f conftest*
19591
19592 ac_ext=c
19593# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19594ac_cpp='$CPP $CPPFLAGS'
19595ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19596ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19597cross_compiling=$ac_cv_prog_cc_cross
19598
19599
19600fi
19601
19602echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
19603
19604 if test "$wx_cv_type_getsockname3" = "unknown"; then
19605 wxUSE_SOCKETS=no
19606 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
19607 else
19608 cat >> confdefs.h <<EOF
19609#define SOCKLEN_T $wx_cv_type_getsockname3
19610EOF
19611
19612 fi
19613 fi
19614fi
19615
19616if test "$wxUSE_SOCKETS" = "yes" ; then
19617 cat >> confdefs.h <<\EOF
19618#define wxUSE_SOCKETS 1
19619EOF
19620
19621 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
19622fi
19623
19624
19625if test "$wxUSE_GUI" = "yes"; then
19626
19627 if test "$TOOLKIT" = "MAC"; then
19628 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
19629 wxUSE_JOYSTICK=no
19630 fi
19631 if test "$TOOLKIT" = "MOTIF"; then
19632 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
19633 wxUSE_JOYSTICK=no
19634 fi
19635 if test "$TOOLKIT" = "X11"; then
19636 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
19637 wxUSE_JOYSTICK=no
19638 fi
19639
19640 if test "$TOOLKIT" != "MSW"; then
19641 if test "$wxUSE_JOYSTICK" = "yes"; then
19642 for ac_hdr in linux/joystick.h
19643do
19644ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19645echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19646echo "configure:19647: checking for $ac_hdr" >&5
19647if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19648 echo $ac_n "(cached) $ac_c" 1>&6
19649else
19650 cat > conftest.$ac_ext <<EOF
19651#line 19652 "configure"
19652#include "confdefs.h"
19653#include <$ac_hdr>
19654EOF
19655ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19656{ (eval echo configure:19657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19657ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19658if test -z "$ac_err"; then
19659 rm -rf conftest*
19660 eval "ac_cv_header_$ac_safe=yes"
19661else
19662 echo "$ac_err" >&5
19663 echo "configure: failed program was:" >&5
19664 cat conftest.$ac_ext >&5
19665 rm -rf conftest*
19666 eval "ac_cv_header_$ac_safe=no"
19667fi
19668rm -f conftest*
19669fi
19670if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19671 echo "$ac_t""yes" 1>&6
19672 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19673 cat >> confdefs.h <<EOF
19674#define $ac_tr_hdr 1
19675EOF
19676
19677else
19678 echo "$ac_t""no" 1>&6
19679fi
19680done
19681
19682 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
19683 wxUSE_JOYSTICK=no
19684 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
19685 fi
19686 fi
19687 fi
19688
19689 if test "$wxUSE_JOYSTICK" = "yes"; then
19690 cat >> confdefs.h <<\EOF
19691#define wxUSE_JOYSTICK 1
19692EOF
19693
19694 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
19695 fi
19696fi
19697
19698
19699if test "$TOOLKIT" != "MSW"; then
19700
19701 HAVE_DL_FUNCS=0
19702 HAVE_SHL_FUNCS=0
19703 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19704 if test "$USE_DARWIN" = 1; then
19705 HAVE_DL_FUNCS=1
19706 else
19707 for ac_func in dlopen
19708do
19709echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19710echo "configure:19711: checking for $ac_func" >&5
19711if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19712 echo $ac_n "(cached) $ac_c" 1>&6
19713else
19714 cat > conftest.$ac_ext <<EOF
19715#line 19716 "configure"
19716#include "confdefs.h"
19717/* System header to define __stub macros and hopefully few prototypes,
19718 which can conflict with char $ac_func(); below. */
19719#include <assert.h>
19720/* Override any gcc2 internal prototype to avoid an error. */
19721/* We use char because int might match the return type of a gcc2
19722 builtin and then its argument prototype would still apply. */
19723char $ac_func();
19724
19725int main() {
19726
19727/* The GNU C library defines this for functions which it implements
19728 to always fail with ENOSYS. Some functions are actually named
19729 something starting with __ and the normal name is an alias. */
19730#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19731choke me
19732#else
19733$ac_func();
19734#endif
19735
19736; return 0; }
19737EOF
19738if { (eval echo configure:19739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19739 rm -rf conftest*
19740 eval "ac_cv_func_$ac_func=yes"
19741else
19742 echo "configure: failed program was:" >&5
19743 cat conftest.$ac_ext >&5
19744 rm -rf conftest*
19745 eval "ac_cv_func_$ac_func=no"
19746fi
19747rm -f conftest*
19748fi
19749
19750if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19751 echo "$ac_t""yes" 1>&6
19752 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19753 cat >> confdefs.h <<EOF
19754#define $ac_tr_func 1
19755EOF
19756
19757 cat >> confdefs.h <<\EOF
19758#define HAVE_DLOPEN 1
19759EOF
19760
19761 HAVE_DL_FUNCS=1
19762
19763else
19764 echo "$ac_t""no" 1>&6
19765echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
19766echo "configure:19767: checking for dlopen in -ldl" >&5
19767ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
19768if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19769 echo $ac_n "(cached) $ac_c" 1>&6
19770else
19771 ac_save_LIBS="$LIBS"
19772LIBS="-ldl $LIBS"
19773cat > conftest.$ac_ext <<EOF
19774#line 19775 "configure"
19775#include "confdefs.h"
19776/* Override any gcc2 internal prototype to avoid an error. */
19777/* We use char because int might match the return type of a gcc2
19778 builtin and then its argument prototype would still apply. */
19779char dlopen();
19780
19781int main() {
19782dlopen()
19783; return 0; }
19784EOF
19785if { (eval echo configure:19786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19786 rm -rf conftest*
19787 eval "ac_cv_lib_$ac_lib_var=yes"
19788else
19789 echo "configure: failed program was:" >&5
19790 cat conftest.$ac_ext >&5
19791 rm -rf conftest*
19792 eval "ac_cv_lib_$ac_lib_var=no"
19793fi
19794rm -f conftest*
19795LIBS="$ac_save_LIBS"
19796
19797fi
19798if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19799 echo "$ac_t""yes" 1>&6
19800
19801 cat >> confdefs.h <<\EOF
19802#define HAVE_DLOPEN 1
19803EOF
19804
19805 HAVE_DL_FUNCS=1
19806 DL_LINK=" -ldl$DL_LINK"
19807
19808else
19809 echo "$ac_t""no" 1>&6
19810
19811 for ac_func in shl_load
19812do
19813echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19814echo "configure:19815: checking for $ac_func" >&5
19815if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19816 echo $ac_n "(cached) $ac_c" 1>&6
19817else
19818 cat > conftest.$ac_ext <<EOF
19819#line 19820 "configure"
19820#include "confdefs.h"
19821/* System header to define __stub macros and hopefully few prototypes,
19822 which can conflict with char $ac_func(); below. */
19823#include <assert.h>
19824/* Override any gcc2 internal prototype to avoid an error. */
19825/* We use char because int might match the return type of a gcc2
19826 builtin and then its argument prototype would still apply. */
19827char $ac_func();
19828
19829int main() {
19830
19831/* The GNU C library defines this for functions which it implements
19832 to always fail with ENOSYS. Some functions are actually named
19833 something starting with __ and the normal name is an alias. */
19834#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19835choke me
19836#else
19837$ac_func();
19838#endif
19839
19840; return 0; }
19841EOF
19842if { (eval echo configure:19843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19843 rm -rf conftest*
19844 eval "ac_cv_func_$ac_func=yes"
19845else
19846 echo "configure: failed program was:" >&5
19847 cat conftest.$ac_ext >&5
19848 rm -rf conftest*
19849 eval "ac_cv_func_$ac_func=no"
19850fi
19851rm -f conftest*
19852fi
19853
19854if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19855 echo "$ac_t""yes" 1>&6
19856 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19857 cat >> confdefs.h <<EOF
19858#define $ac_tr_func 1
19859EOF
19860
19861 cat >> confdefs.h <<\EOF
19862#define HAVE_SHL_LOAD 1
19863EOF
19864
19865 HAVE_SHL_FUNCS=1
19866
19867else
19868 echo "$ac_t""no" 1>&6
19869echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
19870echo "configure:19871: checking for dld in -lshl_load" >&5
19871ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
19872if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19873 echo $ac_n "(cached) $ac_c" 1>&6
19874else
19875 ac_save_LIBS="$LIBS"
19876LIBS="-lshl_load $LIBS"
19877cat > conftest.$ac_ext <<EOF
19878#line 19879 "configure"
19879#include "confdefs.h"
19880/* Override any gcc2 internal prototype to avoid an error. */
19881/* We use char because int might match the return type of a gcc2
19882 builtin and then its argument prototype would still apply. */
19883char dld();
19884
19885int main() {
19886dld()
19887; return 0; }
19888EOF
19889if { (eval echo configure:19890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19890 rm -rf conftest*
19891 eval "ac_cv_lib_$ac_lib_var=yes"
19892else
19893 echo "configure: failed program was:" >&5
19894 cat conftest.$ac_ext >&5
19895 rm -rf conftest*
19896 eval "ac_cv_lib_$ac_lib_var=no"
19897fi
19898rm -f conftest*
19899LIBS="$ac_save_LIBS"
19900
19901fi
19902if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19903 echo "$ac_t""yes" 1>&6
19904
19905 HAVE_SHL_FUNCS=1
19906 DL_LINK=" -ldld$DL_LINK"
19907
19908else
19909 echo "$ac_t""no" 1>&6
19910fi
19911
19912
19913fi
19914done
19915
19916
19917fi
19918
19919
19920fi
19921done
19922
19923
19924 if test "$HAVE_DL_FUNCS" = 1; then
19925 for ac_func in dlerror
19926do
19927echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19928echo "configure:19929: checking for $ac_func" >&5
19929if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19930 echo $ac_n "(cached) $ac_c" 1>&6
19931else
19932 cat > conftest.$ac_ext <<EOF
19933#line 19934 "configure"
19934#include "confdefs.h"
19935/* System header to define __stub macros and hopefully few prototypes,
19936 which can conflict with char $ac_func(); below. */
19937#include <assert.h>
19938/* Override any gcc2 internal prototype to avoid an error. */
19939/* We use char because int might match the return type of a gcc2
19940 builtin and then its argument prototype would still apply. */
19941char $ac_func();
19942
19943int main() {
19944
19945/* The GNU C library defines this for functions which it implements
19946 to always fail with ENOSYS. Some functions are actually named
19947 something starting with __ and the normal name is an alias. */
19948#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19949choke me
19950#else
19951$ac_func();
19952#endif
19953
19954; return 0; }
19955EOF
19956if { (eval echo configure:19957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19957 rm -rf conftest*
19958 eval "ac_cv_func_$ac_func=yes"
19959else
19960 echo "configure: failed program was:" >&5
19961 cat conftest.$ac_ext >&5
19962 rm -rf conftest*
19963 eval "ac_cv_func_$ac_func=no"
19964fi
19965rm -f conftest*
19966fi
19967
19968if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19969 echo "$ac_t""yes" 1>&6
19970 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19971 cat >> confdefs.h <<EOF
19972#define $ac_tr_func 1
19973EOF
19974 cat >> confdefs.h <<\EOF
19975#define HAVE_DLERROR 1
19976EOF
19977
19978else
19979 echo "$ac_t""no" 1>&6
19980echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
19981echo "configure:19982: checking for dlerror in -ldl" >&5
19982ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19983if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19984 echo $ac_n "(cached) $ac_c" 1>&6
19985else
19986 ac_save_LIBS="$LIBS"
19987LIBS="-ldl $LIBS"
19988cat > conftest.$ac_ext <<EOF
19989#line 19990 "configure"
19990#include "confdefs.h"
19991/* Override any gcc2 internal prototype to avoid an error. */
19992/* We use char because int might match the return type of a gcc2
19993 builtin and then its argument prototype would still apply. */
19994char dlerror();
19995
19996int main() {
19997dlerror()
19998; return 0; }
19999EOF
20000if { (eval echo configure:20001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20001 rm -rf conftest*
20002 eval "ac_cv_lib_$ac_lib_var=yes"
20003else
20004 echo "configure: failed program was:" >&5
20005 cat conftest.$ac_ext >&5
20006 rm -rf conftest*
20007 eval "ac_cv_lib_$ac_lib_var=no"
20008fi
20009rm -f conftest*
20010LIBS="$ac_save_LIBS"
20011
20012fi
20013if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20014 echo "$ac_t""yes" 1>&6
20015 cat >> confdefs.h <<\EOF
20016#define HAVE_DLERROR 1
20017EOF
20018
20019else
20020 echo "$ac_t""no" 1>&6
20021fi
20022
20023fi
20024done
20025
20026 fi
20027 fi
20028
20029 if test "$HAVE_DL_FUNCS" = 0; then
20030 if test "$HAVE_SHL_FUNCS" = 0; then
20031 if test "$USE_UNIX" = 1; then
20032 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
20033 wxUSE_DYNAMIC_LOADER=no
20034 wxUSE_DYNLIB_CLASS=no
20035 else
20036 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
20037 fi
20038 fi
20039 fi
20040 fi
20041fi
20042
20043if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
20044 cat >> confdefs.h <<\EOF
20045#define wxUSE_DYNAMIC_LOADER 1
20046EOF
20047
20048elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20049 cat >> confdefs.h <<\EOF
20050#define wxUSE_DYNLIB_CLASS 1
20051EOF
20052
20053fi
20054
20055
20056if test "$wxUSE_FONTMAP" = "yes" ; then
20057 cat >> confdefs.h <<\EOF
20058#define wxUSE_FONTMAP 1
20059EOF
20060
20061fi
20062
20063if test "$wxUSE_UNICODE" = "yes" ; then
20064 cat >> confdefs.h <<\EOF
20065#define wxUSE_UNICODE 1
20066EOF
20067
20068
20069 if test "$wxUSE_MSW" != 1; then
20070 wxUSE_UNICODE_MSLU=no
20071 fi
20072
20073 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
20074 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
20075echo "configure:20076: checking for main in -lunicows" >&5
20076ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
20077if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20078 echo $ac_n "(cached) $ac_c" 1>&6
20079else
20080 ac_save_LIBS="$LIBS"
20081LIBS="-lunicows $LIBS"
20082cat > conftest.$ac_ext <<EOF
20083#line 20084 "configure"
20084#include "confdefs.h"
20085
20086int main() {
20087main()
20088; return 0; }
20089EOF
20090if { (eval echo configure:20091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20091 rm -rf conftest*
20092 eval "ac_cv_lib_$ac_lib_var=yes"
20093else
20094 echo "configure: failed program was:" >&5
20095 cat conftest.$ac_ext >&5
20096 rm -rf conftest*
20097 eval "ac_cv_lib_$ac_lib_var=no"
20098fi
20099rm -f conftest*
20100LIBS="$ac_save_LIBS"
20101
20102fi
20103if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20104 echo "$ac_t""yes" 1>&6
20105
20106 cat >> confdefs.h <<\EOF
20107#define wxUSE_UNICODE_MSLU 1
20108EOF
20109
20110
20111else
20112 echo "$ac_t""no" 1>&6
20113
20114 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
20115 Applications will only run on Windows NT/2000/XP!" 1>&2
20116 wxUSE_UNICODE_MSLU=no
20117
20118fi
20119
20120 fi
20121fi
20122
20123if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
20124 cat >> confdefs.h <<\EOF
20125#define wxUSE_EXPERIMENTAL_PRINTF 1
20126EOF
20127
20128fi
20129
20130
20131
20132IODBC_C_SRC=""
20133if test "$wxUSE_ODBC" = "yes" ; then
20134 cat >> confdefs.h <<\EOF
20135#define wxUSE_ODBC 1
20136EOF
20137
20138 WXODBCFLAG="-D_IODBC_"
20139 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
20140fi
20141
20142
20143if test "$wxUSE_POSTSCRIPT" = "yes" ; then
20144 cat >> confdefs.h <<\EOF
20145#define wxUSE_POSTSCRIPT 1
20146EOF
20147
20148fi
20149
20150cat >> confdefs.h <<\EOF
20151#define wxUSE_AFM_FOR_POSTSCRIPT 1
20152EOF
20153
20154
20155cat >> confdefs.h <<\EOF
20156#define wxUSE_NORMALIZED_PS_FONTS 1
20157EOF
20158
20159
20160
20161if test "$wxUSE_CONSTRAINTS" = "yes"; then
20162 cat >> confdefs.h <<\EOF
20163#define wxUSE_CONSTRAINTS 1
20164EOF
20165
20166 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
20167fi
20168
20169if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20170
20171
20172 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20173 cat >> confdefs.h <<\EOF
20174#define wxUSE_MDI_ARCHITECTURE 1
20175EOF
20176
20177 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
20178 fi
20179fi
20180
20181if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
20182 cat >> confdefs.h <<\EOF
20183#define wxUSE_DOC_VIEW_ARCHITECTURE 1
20184EOF
20185
20186 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
20187 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20188 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
20189 fi
20190fi
20191
20192if test "$wxUSE_HELP" = "yes"; then
20193 cat >> confdefs.h <<\EOF
20194#define wxUSE_HELP 1
20195EOF
20196
20197 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
20198
20199 if test "$wxUSE_MSW" = 1; then
20200 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
20201 cat >> confdefs.h <<\EOF
20202#define wxUSE_MS_HTML_HELP 1
20203EOF
20204
20205 fi
20206 fi
20207
20208 if test "$wxUSE_WXHTML_HELP" = "yes"; then
20209 if test "$wxUSE_HTML" = "yes"; then
20210 cat >> confdefs.h <<\EOF
20211#define wxUSE_WXHTML_HELP 1
20212EOF
20213
20214 else
20215 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
20216 wxUSE_WXHTML_HELP=no
20217 fi
20218 fi
20219fi
20220
20221if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
20222 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20223 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
20224 else
20225 cat >> confdefs.h <<\EOF
20226#define wxUSE_PRINTING_ARCHITECTURE 1
20227EOF
20228
20229 fi
20230 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
20231fi
20232
20233if test "$wxUSE_PROLOGIO" = "yes" ; then
20234 cat >> confdefs.h <<\EOF
20235#define wxUSE_PROLOGIO 1
20236EOF
20237
20238fi
20239
20240if test "$wxUSE_RESOURCES" = "yes" ; then
20241 if test "$wxUSE_NANOX" = "yes"; then
20242 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
20243 else
20244 cat >> confdefs.h <<\EOF
20245#define wxUSE_RESOURCES 1
20246EOF
20247
20248 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
20249 fi
20250fi
20251
20252if test "$wxUSE_X_RESOURCES" = "yes"; then
20253 cat >> confdefs.h <<\EOF
20254#define wxUSE_X_RESOURCES 1
20255EOF
20256
20257fi
20258
20259
20260if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
20261 -o "$wxUSE_CLIPBOARD" = "yes" \
20262 -o "$wxUSE_OLE" = "yes" \
20263 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
20264 for ac_hdr in ole2.h
20265do
20266ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20267echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20268echo "configure:20269: checking for $ac_hdr" >&5
20269if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20270 echo $ac_n "(cached) $ac_c" 1>&6
20271else
20272 cat > conftest.$ac_ext <<EOF
20273#line 20274 "configure"
20274#include "confdefs.h"
20275#include <$ac_hdr>
20276EOF
20277ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20278{ (eval echo configure:20279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20279ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20280if test -z "$ac_err"; then
20281 rm -rf conftest*
20282 eval "ac_cv_header_$ac_safe=yes"
20283else
20284 echo "$ac_err" >&5
20285 echo "configure: failed program was:" >&5
20286 cat conftest.$ac_ext >&5
20287 rm -rf conftest*
20288 eval "ac_cv_header_$ac_safe=no"
20289fi
20290rm -f conftest*
20291fi
20292if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20293 echo "$ac_t""yes" 1>&6
20294 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20295 cat >> confdefs.h <<EOF
20296#define $ac_tr_hdr 1
20297EOF
20298
20299else
20300 echo "$ac_t""no" 1>&6
20301fi
20302done
20303
20304
20305 if test "$ac_cv_header_ole2_h" = "yes" ; then
20306 if test "$GCC" = yes ; then
20307
20308 ac_ext=C
20309# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20310ac_cpp='$CXXCPP $CPPFLAGS'
20311ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20312ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20313cross_compiling=$ac_cv_prog_cxx_cross
20314
20315
20316 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
20317echo "configure:20318: checking if g++ requires -fvtable-thunks" >&5
20318 cat > conftest.$ac_ext <<EOF
20319#line 20320 "configure"
20320#include "confdefs.h"
20321#include <windows.h>
20322 #include <ole2.h>
20323int main() {
20324
20325; return 0; }
20326EOF
20327if { (eval echo configure:20328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20328 rm -rf conftest*
20329 echo "$ac_t""no" 1>&6
20330else
20331 echo "configure: failed program was:" >&5
20332 cat conftest.$ac_ext >&5
20333 rm -rf conftest*
20334 echo "$ac_t""yes" 1>&6
20335 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
20336fi
20337rm -f conftest*
20338 ac_ext=c
20339# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20340ac_cpp='$CPP $CPPFLAGS'
20341ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20342ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20343cross_compiling=$ac_cv_prog_cc_cross
20344
20345 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
20346 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
20347 cat >> confdefs.h <<\EOF
20348#define wxUSE_OLE 1
20349EOF
20350
20351
20352 fi
20353
20354 cat >> confdefs.h <<\EOF
20355#define wxUSE_DATAOBJ 1
20356EOF
20357
20358 else
20359 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
20360
20361 wxUSE_CLIPBOARD=no
20362 wxUSE_DRAG_AND_DROP=no
20363 wxUSE_DATAOBJ=no
20364 wxUSE_OLE=no
20365 fi
20366
20367 if test "$wxUSE_METAFILE" = "yes"; then
20368 cat >> confdefs.h <<\EOF
20369#define wxUSE_METAFILE 1
20370EOF
20371
20372
20373 cat >> confdefs.h <<\EOF
20374#define wxUSE_ENH_METAFILE 1
20375EOF
20376
20377 fi
20378fi
20379
20380if test "$wxUSE_WINE" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
20381 -o "$wxUSE_CLIPBOARD" = "yes" \
20382 -o "$wxUSE_OLE" = "yes" \
20383 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
20384 for ac_hdr in ole2.h
20385do
20386ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20387echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20388echo "configure:20389: checking for $ac_hdr" >&5
20389if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20390 echo $ac_n "(cached) $ac_c" 1>&6
20391else
20392 cat > conftest.$ac_ext <<EOF
20393#line 20394 "configure"
20394#include "confdefs.h"
20395#include <$ac_hdr>
20396EOF
20397ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20398{ (eval echo configure:20399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20399ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20400if test -z "$ac_err"; then
20401 rm -rf conftest*
20402 eval "ac_cv_header_$ac_safe=yes"
20403else
20404 echo "$ac_err" >&5
20405 echo "configure: failed program was:" >&5
20406 cat conftest.$ac_ext >&5
20407 rm -rf conftest*
20408 eval "ac_cv_header_$ac_safe=no"
20409fi
20410rm -f conftest*
20411fi
20412if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20413 echo "$ac_t""yes" 1>&6
20414 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20415 cat >> confdefs.h <<EOF
20416#define $ac_tr_hdr 1
20417EOF
20418
20419else
20420 echo "$ac_t""no" 1>&6
20421fi
20422done
20423
20424
20425 if test "$ac_cv_header_ole2_h" = "yes" ; then
20426 if test "$GCC" = yes ; then
20427
20428 ac_ext=C
20429# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20430ac_cpp='$CXXCPP $CPPFLAGS'
20431ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20432ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20433cross_compiling=$ac_cv_prog_cxx_cross
20434
20435
20436 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
20437echo "configure:20438: checking if g++ requires -fvtable-thunks" >&5
20438 cat > conftest.$ac_ext <<EOF
20439#line 20440 "configure"
20440#include "confdefs.h"
20441#include <windows.h>
20442 #include <ole2.h>
20443int main() {
20444
20445; return 0; }
20446EOF
20447if { (eval echo configure:20448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20448 rm -rf conftest*
20449 echo "$ac_t""no" 1>&6
20450else
20451 echo "configure: failed program was:" >&5
20452 cat conftest.$ac_ext >&5
20453 rm -rf conftest*
20454 echo "$ac_t""yes" 1>&6
20455 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
20456fi
20457rm -f conftest*
20458 ac_ext=c
20459# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20460ac_cpp='$CPP $CPPFLAGS'
20461ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20462ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20463cross_compiling=$ac_cv_prog_cc_cross
20464
20465 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
20466 LIBS=" -lwine_uuid$LIBS"
20467 cat >> confdefs.h <<\EOF
20468#define wxUSE_OLE 1
20469EOF
20470
20471
20472 fi
20473
20474 cat >> confdefs.h <<\EOF
20475#define wxUSE_DATAOBJ 1
20476EOF
20477
20478 else
20479 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
20480
20481 wxUSE_CLIPBOARD=no
20482 wxUSE_DRAG_AND_DROP=no
20483 wxUSE_DATAOBJ=no
20484 wxUSE_OLE=no
20485 fi
20486
20487 if test "$wxUSE_METAFILE" = "yes"; then
20488 cat >> confdefs.h <<\EOF
20489#define wxUSE_METAFILE 1
20490EOF
20491
20492
20493 cat >> confdefs.h <<\EOF
20494#define wxUSE_ENH_METAFILE 1
20495EOF
20496
20497 fi
20498fi
20499
20500if test "$wxUSE_IPC" = "yes"; then
20501 if test "$wxUSE_SOCKETS" != "yes"; then
20502 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
20503 fi
20504
20505 cat >> confdefs.h <<\EOF
20506#define wxUSE_IPC 1
20507EOF
20508
20509fi
20510
20511if test "$wxUSE_CLIPBOARD" = "yes"; then
20512 if test "$wxUSE_MGL" = 1; then
20513 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
20514 wxUSE_CLIPBOARD=no
20515 fi
20516
20517 if test "$wxUSE_CLIPBOARD" = "yes"; then
20518 cat >> confdefs.h <<\EOF
20519#define wxUSE_CLIPBOARD 1
20520EOF
20521
20522
20523 cat >> confdefs.h <<\EOF
20524#define wxUSE_DATAOBJ 1
20525EOF
20526
20527 fi
20528fi
20529
20530if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
20531 if test "$wxUSE_GTK" = 1; then
20532 if test "$WXGTK12" != 1; then
20533 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
20534 wxUSE_DRAG_AND_DROP=no
20535 fi
20536 fi
20537
20538 if test "$wxUSE_MOTIF" = 1; then
20539 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
20540 wxUSE_DRAG_AND_DROP=no
20541 fi
20542
20543 if test "$wxUSE_X11" = 1; then
20544 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
20545 wxUSE_DRAG_AND_DROP=no
20546 fi
20547
20548 if test "$wxUSE_MGL" = 1; then
20549 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
20550 wxUSE_DRAG_AND_DROP=no
20551 fi
20552
20553 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
20554 cat >> confdefs.h <<\EOF
20555#define wxUSE_DRAG_AND_DROP 1
20556EOF
20557
20558 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
20559 fi
20560
20561fi
20562
20563if test "$wxUSE_SPLINES" = "yes" ; then
20564 cat >> confdefs.h <<\EOF
20565#define wxUSE_SPLINES 1
20566EOF
20567
20568fi
20569
20570
20571USES_CONTROLS=0
20572if test "$wxUSE_CONTROLS" = "yes"; then
20573 USES_CONTROLS=1
20574fi
20575
20576if test "$wxUSE_ACCEL" = "yes"; then
20577 cat >> confdefs.h <<\EOF
20578#define wxUSE_ACCEL 1
20579EOF
20580
20581 USES_CONTROLS=1
20582fi
20583
20584if test "$wxUSE_BUTTON" = "yes"; then
20585 cat >> confdefs.h <<\EOF
20586#define wxUSE_BUTTON 1
20587EOF
20588
20589 USES_CONTROLS=1
20590fi
20591
20592if test "$wxUSE_BMPBUTTON" = "yes"; then
20593 cat >> confdefs.h <<\EOF
20594#define wxUSE_BMPBUTTON 1
20595EOF
20596
20597 USES_CONTROLS=1
20598fi
20599
20600if test "$wxUSE_CALCTRL" = "yes"; then
20601 cat >> confdefs.h <<\EOF
20602#define wxUSE_CALENDARCTRL 1
20603EOF
20604
20605 USES_CONTROLS=1
20606 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
20607fi
20608
20609if test "$wxUSE_CARET" = "yes"; then
20610 cat >> confdefs.h <<\EOF
20611#define wxUSE_CARET 1
20612EOF
20613
20614 USES_CONTROLS=1
20615 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
20616fi
20617
20618if test "$wxUSE_COMBOBOX" = "yes"; then
20619 cat >> confdefs.h <<\EOF
20620#define wxUSE_COMBOBOX 1
20621EOF
20622
20623 USES_CONTROLS=1
20624fi
20625
20626if test "$wxUSE_CHOICE" = "yes"; then
20627 cat >> confdefs.h <<\EOF
20628#define wxUSE_CHOICE 1
20629EOF
20630
20631 USES_CONTROLS=1
20632fi
20633
20634if test "$wxUSE_CHECKBOX" = "yes"; then
20635 cat >> confdefs.h <<\EOF
20636#define wxUSE_CHECKBOX 1
20637EOF
20638
20639 USES_CONTROLS=1
20640fi
20641
20642if test "$wxUSE_CHECKLST" = "yes"; then
20643 cat >> confdefs.h <<\EOF
20644#define wxUSE_CHECKLISTBOX 1
20645EOF
20646
20647 USES_CONTROLS=1
20648 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
20649fi
20650
20651if test "$wxUSE_GAUGE" = "yes"; then
20652 cat >> confdefs.h <<\EOF
20653#define wxUSE_GAUGE 1
20654EOF
20655
20656 USES_CONTROLS=1
20657fi
20658
20659if test "$wxUSE_NEW_GRID" = "yes"; then
20660 wxUSE_GRID="yes"
20661 cat >> confdefs.h <<\EOF
20662#define wxUSE_NEW_GRID 1
20663EOF
20664
20665 USES_CONTROLS=1
20666 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
20667fi
20668
20669if test "$wxUSE_GRID" = "yes"; then
20670 cat >> confdefs.h <<\EOF
20671#define wxUSE_GRID 1
20672EOF
20673
20674 USES_CONTROLS=1
20675 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
20676fi
20677
20678if test "$wxUSE_IMAGLIST" = "yes"; then
20679 cat >> confdefs.h <<\EOF
20680#define wxUSE_IMAGLIST 1
20681EOF
20682
20683fi
20684
20685if test "$wxUSE_LISTBOX" = "yes"; then
20686 cat >> confdefs.h <<\EOF
20687#define wxUSE_LISTBOX 1
20688EOF
20689
20690 USES_CONTROLS=1
20691fi
20692
20693if test "$wxUSE_LISTCTRL" = "yes"; then
20694 if test "$wxUSE_IMAGLIST" = "yes"; then
20695 cat >> confdefs.h <<\EOF
20696#define wxUSE_LISTCTRL 1
20697EOF
20698
20699 USES_CONTROLS=1
20700 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
20701 else
20702 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
20703 fi
20704fi
20705
20706if test "$wxUSE_NOTEBOOK" = "yes"; then
20707 cat >> confdefs.h <<\EOF
20708#define wxUSE_NOTEBOOK 1
20709EOF
20710
20711 USES_CONTROLS=1
20712 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
20713fi
20714
20715if test "$wxUSE_PROPSHEET" = "yes"; then
20716 cat >> confdefs.h <<\EOF
20717#define wxUSE_PROPSHEET 1
20718EOF
20719
20720 USES_CONTROLS=1
20721 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
20722fi
20723
20724if test "$wxUSE_RADIOBOX" = "yes"; then
20725 cat >> confdefs.h <<\EOF
20726#define wxUSE_RADIOBOX 1
20727EOF
20728
20729 USES_CONTROLS=1
20730fi
20731
20732if test "$wxUSE_RADIOBTN" = "yes"; then
20733 cat >> confdefs.h <<\EOF
20734#define wxUSE_RADIOBTN 1
20735EOF
20736
20737 USES_CONTROLS=1
20738fi
20739
20740if test "$wxUSE_SASH" = "yes"; then
20741 cat >> confdefs.h <<\EOF
20742#define wxUSE_SASH 1
20743EOF
20744
20745 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
20746fi
20747
20748if test "$wxUSE_SCROLLBAR" = "yes"; then
20749 cat >> confdefs.h <<\EOF
20750#define wxUSE_SCROLLBAR 1
20751EOF
20752
20753 USES_CONTROLS=1
20754 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
20755fi
20756
20757if test "$wxUSE_SLIDER" = "yes"; then
20758 cat >> confdefs.h <<\EOF
20759#define wxUSE_SLIDER 1
20760EOF
20761
20762 USES_CONTROLS=1
20763fi
20764
20765if test "$wxUSE_SPINBTN" = "yes"; then
20766 cat >> confdefs.h <<\EOF
20767#define wxUSE_SPINBTN 1
20768EOF
20769
20770 USES_CONTROLS=1
20771fi
20772
20773if test "$wxUSE_SPINCTRL" = "yes"; then
20774 cat >> confdefs.h <<\EOF
20775#define wxUSE_SPINCTRL 1
20776EOF
20777
20778 USES_CONTROLS=1
20779fi
20780
20781if test "$wxUSE_SPLITTER" = "yes"; then
20782 cat >> confdefs.h <<\EOF
20783#define wxUSE_SPLITTER 1
20784EOF
20785
20786 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
20787fi
20788
20789if test "$wxUSE_STATBMP" = "yes"; then
20790 cat >> confdefs.h <<\EOF
20791#define wxUSE_STATBMP 1
20792EOF
20793
20794 USES_CONTROLS=1
20795fi
20796
20797if test "$wxUSE_STATBOX" = "yes"; then
20798 cat >> confdefs.h <<\EOF
20799#define wxUSE_STATBOX 1
20800EOF
20801
20802 USES_CONTROLS=1
20803fi
20804
20805if test "$wxUSE_STATTEXT" = "yes"; then
20806 cat >> confdefs.h <<\EOF
20807#define wxUSE_STATTEXT 1
20808EOF
20809
20810 USES_CONTROLS=1
20811fi
20812
20813if test "$wxUSE_STATLINE" = "yes"; then
20814 if test "$wxUSE_WINE" = 1 ; then
20815 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
20816 else
20817 cat >> confdefs.h <<\EOF
20818#define wxUSE_STATLINE 1
20819EOF
20820
20821 USES_CONTROLS=1
20822 fi
20823fi
20824
20825if test "$wxUSE_STATUSBAR" = "yes"; then
20826 cat >> confdefs.h <<\EOF
20827#define wxUSE_STATUSBAR 1
20828EOF
20829
20830 USES_CONTROLS=1
20831
20832 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
20833fi
20834
20835if test "$wxUSE_TABDIALOG" = "yes"; then
20836 cat >> confdefs.h <<\EOF
20837#define wxUSE_TAB_DIALOG 1
20838EOF
20839
20840 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
20841fi
20842
20843if test "$wxUSE_TEXTCTRL" = "yes"; then
20844 cat >> confdefs.h <<\EOF
20845#define wxUSE_TEXTCTRL 1
20846EOF
20847
20848 USES_CONTROLS=1
20849 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
20850fi
20851
20852if test "$wxUSE_TOGGLEBTN" = "yes"; then
20853 if test "$wxUSE_MAC" = 1; then
20854 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
20855 wxUSE_TOGGLEBTN=no
20856 fi
20857 if test "$wxUSE_UNIVERSAL" = "yes"; then
20858 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
20859 wxUSE_TOGGLEBTN=no
20860 fi
20861
20862 if test "$wxUSE_TOGGLEBTN" = "yes"; then
20863 cat >> confdefs.h <<\EOF
20864#define wxUSE_TOGGLEBTN 1
20865EOF
20866
20867 USES_CONTROLS=1
20868 fi
20869fi
20870
20871if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
20872 cat >> confdefs.h <<\EOF
20873#define wxUSE_TOOLBAR_SIMPLE 1
20874EOF
20875
20876 wxUSE_TOOLBAR="yes"
20877 USES_CONTROLS=1
20878fi
20879
20880if test "$wxUSE_TOOLBAR" = "yes"; then
20881 cat >> confdefs.h <<\EOF
20882#define wxUSE_TOOLBAR 1
20883EOF
20884
20885 USES_CONTROLS=1
20886
20887 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
20888 wxUSE_TOOLBAR_NATIVE="yes"
20889 fi
20890
20891 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
20892 cat >> confdefs.h <<\EOF
20893#define wxUSE_TOOLBAR_NATIVE 1
20894EOF
20895
20896 USES_CONTROLS=1
20897 fi
20898
20899 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
20900fi
20901
20902if test "$wxUSE_TOOLTIPS" = "yes"; then
20903 if test "$wxUSE_MOTIF" = 1; then
20904 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
20905 else
20906 if test "$wxUSE_WINE" = 1; then
20907 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
20908 else
20909 if test "$wxUSE_UNIVERSAL" = "yes"; then
20910 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
20911 else
20912 cat >> confdefs.h <<\EOF
20913#define wxUSE_TOOLTIPS 1
20914EOF
20915
20916 fi
20917 fi
20918 fi
20919fi
20920
20921if test "$wxUSE_TREECTRL" = "yes"; then
20922 if test "$wxUSE_IMAGLIST" = "yes"; then
20923 cat >> confdefs.h <<\EOF
20924#define wxUSE_TREECTRL 1
20925EOF
20926
20927 USES_CONTROLS=1
20928 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
20929 else
20930 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
20931 fi
20932fi
20933
20934if test "$wxUSE_POPUPWIN" = "yes"; then
20935 if test "$wxUSE_MAC" = 1; then
20936 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
20937 else
20938 if test "$wxUSE_MOTIF" = 1; then
20939 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
20940 else
20941 if test "$wxUSE_PM" = 1; then
20942 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
20943 else
20944 cat >> confdefs.h <<\EOF
20945#define wxUSE_POPUPWIN 1
20946EOF
20947
20948
20949 USES_CONTROLS=1
20950 fi
20951 fi
20952 fi
20953fi
20954
20955if test "$wxUSE_TIPWINDOW" = "yes"; then
20956 if test "$wxUSE_PM" = 1; then
20957 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
20958 else
20959 cat >> confdefs.h <<\EOF
20960#define wxUSE_TIPWINDOW 1
20961EOF
20962
20963 fi
20964fi
20965
20966if test "$USES_CONTROLS" = 1; then
20967 cat >> confdefs.h <<\EOF
20968#define wxUSE_CONTROLS 1
20969EOF
20970
20971fi
20972
20973
20974if test "$wxUSE_TREELAYOUT" = "yes"; then
20975 cat >> confdefs.h <<\EOF
20976#define wxUSE_TREELAYOUT 1
20977EOF
20978
20979 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
20980fi
20981
20982if test "$wxUSE_DRAGIMAGE" = "yes"; then
20983 cat >> confdefs.h <<\EOF
20984#define wxUSE_DRAGIMAGE 1
20985EOF
20986
20987 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
20988fi
20989
20990if test "$wxUSE_MENUS" = "yes"; then
20991 cat >> confdefs.h <<\EOF
20992#define wxUSE_MENUS 1
20993EOF
20994
20995 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
20996fi
20997
20998if test "$wxUSE_METAFILE" = "yes"; then
20999 cat >> confdefs.h <<\EOF
21000#define wxUSE_METAFILE 1
21001EOF
21002
21003fi
21004
21005if test "$wxUSE_MIMETYPE" = "yes"; then
21006 cat >> confdefs.h <<\EOF
21007#define wxUSE_MIMETYPE 1
21008EOF
21009
21010fi
21011
21012if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
21013 cat >> confdefs.h <<\EOF
21014#define wxUSE_SYSTEM_OPTIONS 1
21015EOF
21016
21017if test "$TOOLKIT" = "MSW"; then
21018 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21019fi
21020
21021fi
21022
21023if test "$wxUSE_PROTOCOL" = "yes"; then
21024 if test "$wxUSE_SOCKETS" != "yes"; then
21025 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
21026 wxUSE_PROTOCOL=no
21027 fi
21028
21029 if test "$wxUSE_PROTOCOL" = "yes"; then
21030 cat >> confdefs.h <<\EOF
21031#define wxUSE_PROTOCOL 1
21032EOF
21033
21034
21035 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
21036 cat >> confdefs.h <<\EOF
21037#define wxUSE_PROTOCOL_HTTP 1
21038EOF
21039
21040 fi
21041 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
21042 cat >> confdefs.h <<\EOF
21043#define wxUSE_PROTOCOL_FTP 1
21044EOF
21045
21046 fi
21047 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
21048 cat >> confdefs.h <<\EOF
21049#define wxUSE_PROTOCOL_FILE 1
21050EOF
21051
21052 fi
21053 fi
21054fi
21055
21056if test "$wxUSE_URL" = "yes"; then
21057 if test "$wxUSE_PROTOCOL" != "yes"; then
21058 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
21059 wxUSE_URL=no
21060 fi
21061 if test "$wxUSE_URL" = "yes"; then
21062 cat >> confdefs.h <<\EOF
21063#define wxUSE_URL 1
21064EOF
21065
21066 fi
21067fi
21068
21069if test "$wxUSE_MINIFRAME" = "yes"; then
21070 cat >> confdefs.h <<\EOF
21071#define wxUSE_MINIFRAME 1
21072EOF
21073
21074 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
21075fi
21076
21077if test "$wxUSE_HTML" = "yes"; then
21078 cat >> confdefs.h <<\EOF
21079#define wxUSE_HTML 1
21080EOF
21081
21082 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
21083fi
21084
21085if test "$wxUSE_VALIDATORS" = "yes"; then
21086 cat >> confdefs.h <<\EOF
21087#define wxUSE_VALIDATORS 1
21088EOF
21089
21090 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
21091fi
21092
21093if test "$wxUSE_PALETTE" = "yes" ; then
21094 cat >> confdefs.h <<\EOF
21095#define wxUSE_PALETTE 1
21096EOF
21097
21098fi
21099
21100if test "$wxUSE_IMAGE" = "yes" ; then
21101 cat >> confdefs.h <<\EOF
21102#define wxUSE_IMAGE 1
21103EOF
21104
21105fi
21106
21107if test "$wxUSE_GIF" = "yes" ; then
21108 cat >> confdefs.h <<\EOF
21109#define wxUSE_GIF 1
21110EOF
21111
21112fi
21113
21114if test "$wxUSE_PCX" = "yes" ; then
21115 cat >> confdefs.h <<\EOF
21116#define wxUSE_PCX 1
21117EOF
21118
21119fi
21120
21121if test "$wxUSE_IFF" = "yes" ; then
21122 cat >> confdefs.h <<\EOF
21123#define wxUSE_IFF 1
21124EOF
21125
21126fi
21127
21128if test "$wxUSE_PNM" = "yes" ; then
21129 cat >> confdefs.h <<\EOF
21130#define wxUSE_PNM 1
21131EOF
21132
21133fi
21134
21135if test "$wxUSE_XPM" = "yes" ; then
21136 cat >> confdefs.h <<\EOF
21137#define wxUSE_XPM 1
21138EOF
21139
21140fi
21141
21142if test "$wxUSE_ICO_CUR" = "yes" ; then
21143 cat >> confdefs.h <<\EOF
21144#define wxUSE_ICO_CUR 1
21145EOF
21146
21147fi
21148
21149if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
21150 LIBS=" -lunicows $LIBS"
21151fi
21152
21153
21154if test "$wxUSE_CHOICEDLG" = "yes"; then
21155 cat >> confdefs.h <<\EOF
21156#define wxUSE_CHOICEDLG 1
21157EOF
21158
21159fi
21160
21161if test "$wxUSE_COLOURDLG" = "yes"; then
21162 cat >> confdefs.h <<\EOF
21163#define wxUSE_COLOURDLG 1
21164EOF
21165
21166fi
21167
21168if test "$wxUSE_FILEDLG" = "yes"; then
21169 cat >> confdefs.h <<\EOF
21170#define wxUSE_FILEDLG 1
21171EOF
21172
21173fi
21174
21175if test "$wxUSE_FINDREPLDLG" = "yes"; then
21176 cat >> confdefs.h <<\EOF
21177#define wxUSE_FINDREPLDLG 1
21178EOF
21179
21180fi
21181
21182if test "$wxUSE_FONTDLG" = "yes"; then
21183 cat >> confdefs.h <<\EOF
21184#define wxUSE_FONTDLG 1
21185EOF
21186
21187fi
21188
21189if test "$wxUSE_DIRDLG" = "yes"; then
21190 if test "$wxUSE_TREECTRL" != "yes"; then
21191 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
21192 else
21193 cat >> confdefs.h <<\EOF
21194#define wxUSE_DIRDLG 1
21195EOF
21196
21197 fi
21198fi
21199
21200if test "$wxUSE_MSGDLG" = "yes"; then
21201 cat >> confdefs.h <<\EOF
21202#define wxUSE_MSGDLG 1
21203EOF
21204
21205fi
21206
21207if test "$wxUSE_NUMBERDLG" = "yes"; then
21208 cat >> confdefs.h <<\EOF
21209#define wxUSE_NUMBERDLG 1
21210EOF
21211
21212fi
21213
21214if test "$wxUSE_PROGRESSDLG" = "yes"; then
21215 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21216 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
21217 else
21218 cat >> confdefs.h <<\EOF
21219#define wxUSE_PROGRESSDLG 1
21220EOF
21221
21222 fi
21223fi
21224
21225if test "$wxUSE_SPLASH" = "yes"; then
21226 cat >> confdefs.h <<\EOF
21227#define wxUSE_SPLASH 1
21228EOF
21229
21230fi
21231
21232if test "$wxUSE_STARTUP_TIPS" = "yes"; then
21233 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21234 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
21235 else
21236 cat >> confdefs.h <<\EOF
21237#define wxUSE_STARTUP_TIPS 1
21238EOF
21239
21240 fi
21241fi
21242
21243if test "$wxUSE_TEXTDLG" = "yes"; then
21244 cat >> confdefs.h <<\EOF
21245#define wxUSE_TEXTDLG 1
21246EOF
21247
21248fi
21249
21250if test "$wxUSE_WIZARDDLG" = "yes"; then
21251 cat >> confdefs.h <<\EOF
21252#define wxUSE_WIZARDDLG 1
21253EOF
21254
21255 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
21256fi
21257
21258
21259if test "$cross_compiling" = "yes"; then
21260 OSINFO="\"$host\""
21261else
21262 OSINFO=`uname -s -r -m`
21263 OSINFO="\"$OSINFO\""
21264fi
21265
21266cat >> confdefs.h <<EOF
21267#define WXWIN_OS_DESCRIPTION $OSINFO
21268EOF
21269
21270
21271
21272if test "x$prefix" != "xNONE"; then
21273 wxPREFIX=$prefix
21274else
21275 wxPREFIX=$ac_default_prefix
21276fi
21277
21278cat >> confdefs.h <<EOF
21279#define wxINSTALL_PREFIX "$wxPREFIX"
21280EOF
21281
21282
21283
21284
21285
21286if test "$wxUSE_MAC" = 1 ; then
21287 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
21288fi
21289
21290
21291LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS"
21292
21293if test "$wxUSE_GUI" = "yes"; then
21294
21295 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
21296
21297
21298 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
21299 drawing dynamic erase event exec font image \
21300 minimal propsize rotate widgets"
21301
21302 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
21303else
21304 SAMPLES_SUBDIRS="console"
21305fi
21306
21307
21308INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
21309-I\${top_srcdir}/include \
21310$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
21311$TOOLKIT_INCLUDE"
21312
21313if test "$wxUSE_GTK" = 1; then
21314 WXCONFIG_INCLUDE=
21315else
21316 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
21317fi
21318
21319if test "$GXX" = yes ; then
21320 CXXWARNINGS="-Wall"
21321
21322 if test "$wxUSE_NO_DEPS" = "no" ; then
21323 CFLAGS="-MMD $CFLAGS"
21324 CXXFLAGS="-MMD $CXXFLAGS"
21325 fi
21326fi
21327
21328EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
21329
21330CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
21331CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
21332CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
21333LIBS=`echo $LIBS | sed 's/ \+/ /g'`
21334
21335LDFLAGS="$LDFLAGS $PROFILE"
21336
21337SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400
21401
21402
21403
21404
21405
21406
21407
21408
21409
21410
21411
21412
21413
21414
21415
21416
21417
21418
21419
21420
21421
21422
21423
21424
21425
21426
21427
21428
21429
21430
21431echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
21432echo "configure:21433: checking whether ${MAKE-make} sets \${MAKE}" >&5
21433set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
21434if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
21435 echo $ac_n "(cached) $ac_c" 1>&6
21436else
21437 cat > conftestmake <<\EOF
21438all:
21439 @echo 'ac_maketemp="${MAKE}"'
21440EOF
21441# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21442eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
21443if test -n "$ac_maketemp"; then
21444 eval ac_cv_prog_make_${ac_make}_set=yes
21445else
21446 eval ac_cv_prog_make_${ac_make}_set=no
21447fi
21448rm -f conftestmake
21449fi
21450if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
21451 echo "$ac_t""yes" 1>&6
21452 SET_MAKE=
21453else
21454 echo "$ac_t""no" 1>&6
21455 SET_MAKE="MAKE=${MAKE-make}"
21456fi
21457
21458
21459if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
21460 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
21461fi
21462
21463
21464
21465wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
21466wx_cv_if_gnu_make=$IF_GNU_MAKE
21467wx_cv_path_ifs=$PATH_IFS
21468wx_cv_program_ext=$PROGRAM_EXT
21469wx_cv_target_library=$WX_TARGET_LIBRARY
21470wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
21471wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
21472export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
21473 wx_cv_path_ifs wx_cv_program_ext \
21474 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
21475
21476subdirs="demos samples utils contrib"
21477
21478
21479trap '' 1 2 15
21480cat > confcache <<\EOF
21481# This file is a shell script that caches the results of configure
21482# tests run on this system so they can be shared between configure
21483# scripts and configure runs. It is not useful on other systems.
21484# If it contains results you don't want to keep, you may remove or edit it.
21485#
21486# By default, configure uses ./config.cache as the cache file,
21487# creating it if it does not exist already. You can give configure
21488# the --cache-file=FILE option to use a different cache file; that is
21489# what configure does when it calls configure scripts in
21490# subdirectories, so they share the cache.
21491# Giving --cache-file=/dev/null disables caching, for debugging configure.
21492# config.status only pays attention to the cache file if you give it the
21493# --recheck option to rerun configure.
21494#
21495EOF
21496# The following way of writing the cache mishandles newlines in values,
21497# but we know of no workaround that is simple, portable, and efficient.
21498# So, don't put newlines in cache variables' values.
21499# Ultrix sh set writes to stderr and can't be redirected directly,
21500# and sets the high bit in the cache file unless we assign to the vars.
21501(set) 2>&1 |
21502 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21503 *ac_space=\ *)
21504 # `set' does not quote correctly, so add quotes (double-quote substitution
21505 # turns \\\\ into \\, and sed turns \\ into \).
21506 sed -n \
21507 -e "s/'/'\\\\''/g" \
21508 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
21509 ;;
21510 *)
21511 # `set' quotes correctly as required by POSIX, so do not add quotes.
21512 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
21513 ;;
21514 esac >> confcache
21515if cmp -s $cache_file confcache; then
21516 :
21517else
21518 if test -w $cache_file; then
21519 echo "updating cache $cache_file"
21520 cat confcache > $cache_file
21521 else
21522 echo "not updating unwritable cache $cache_file"
21523 fi
21524fi
21525rm -f confcache
21526
21527trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
21528
21529test "x$prefix" = xNONE && prefix=$ac_default_prefix
21530# Let make expand exec_prefix.
21531test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21532
21533# Any assignment to VPATH causes Sun make to only execute
21534# the first set of double-colon rules, so remove it if not needed.
21535# If there is a colon in the path, we need to keep it.
21536if test "x$srcdir" = x.; then
21537 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
21538fi
21539
21540trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
21541
21542DEFS=-DHAVE_CONFIG_H
21543
21544# Without the "./", some shells look in PATH for config.status.
21545: ${CONFIG_STATUS=./config.status}
21546
21547echo creating $CONFIG_STATUS
21548rm -f $CONFIG_STATUS
21549cat > $CONFIG_STATUS <<EOF
21550#! /bin/sh
21551# Generated automatically by configure.
21552# Run this file to recreate the current configuration.
21553# This directory was configured as follows,
21554# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21555#
21556# $0 $ac_configure_args
21557#
21558# Compiler output produced by configure, useful for debugging
21559# configure, is in ./config.log if it exists.
21560
21561ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
21562for ac_option
21563do
21564 case "\$ac_option" in
21565 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21566 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
21567 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
21568 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
21569 echo "$CONFIG_STATUS generated by autoconf version 2.13"
21570 exit 0 ;;
21571 -help | --help | --hel | --he | --h)
21572 echo "\$ac_cs_usage"; exit 0 ;;
21573 *) echo "\$ac_cs_usage"; exit 1 ;;
21574 esac
21575done
21576
21577ac_given_srcdir=$srcdir
21578ac_given_INSTALL="$INSTALL"
21579
21580trap 'rm -fr `echo "
21581 wx-config
21582 src/make.env
21583 src/makeprog.env
21584 src/makelib.env
21585 Makefile
21586 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
21587EOF
21588cat >> $CONFIG_STATUS <<EOF
21589
21590# Protect against being on the right side of a sed subst in config.status.
21591sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
21592 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
21593$ac_vpsub
21594$extrasub
21595s%@SHELL@%$SHELL%g
21596s%@CFLAGS@%$CFLAGS%g
21597s%@CPPFLAGS@%$CPPFLAGS%g
21598s%@CXXFLAGS@%$CXXFLAGS%g
21599s%@FFLAGS@%$FFLAGS%g
21600s%@DEFS@%$DEFS%g
21601s%@LDFLAGS@%$LDFLAGS%g
21602s%@LIBS@%$LIBS%g
21603s%@exec_prefix@%$exec_prefix%g
21604s%@prefix@%$prefix%g
21605s%@program_transform_name@%$program_transform_name%g
21606s%@bindir@%$bindir%g
21607s%@sbindir@%$sbindir%g
21608s%@libexecdir@%$libexecdir%g
21609s%@datadir@%$datadir%g
21610s%@sysconfdir@%$sysconfdir%g
21611s%@sharedstatedir@%$sharedstatedir%g
21612s%@localstatedir@%$localstatedir%g
21613s%@libdir@%$libdir%g
21614s%@includedir@%$includedir%g
21615s%@oldincludedir@%$oldincludedir%g
21616s%@infodir@%$infodir%g
21617s%@mandir@%$mandir%g
21618s%@host@%$host%g
21619s%@host_alias@%$host_alias%g
21620s%@host_cpu@%$host_cpu%g
21621s%@host_vendor@%$host_vendor%g
21622s%@host_os@%$host_os%g
21623s%@target@%$target%g
21624s%@target_alias@%$target_alias%g
21625s%@target_cpu@%$target_cpu%g
21626s%@target_vendor@%$target_vendor%g
21627s%@target_os@%$target_os%g
21628s%@build@%$build%g
21629s%@build_alias@%$build_alias%g
21630s%@build_cpu@%$build_cpu%g
21631s%@build_vendor@%$build_vendor%g
21632s%@build_os@%$build_os%g
21633s%@CC@%$CC%g
21634s%@CPP@%$CPP%g
21635s%@CXX@%$CXX%g
21636s%@RANLIB@%$RANLIB%g
21637s%@AR@%$AR%g
21638s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
21639s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
21640s%@INSTALL_DATA@%$INSTALL_DATA%g
21641s%@STRIP@%$STRIP%g
21642s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
21643s%@YACC@%$YACC%g
21644s%@LEX@%$LEX%g
21645s%@LEXLIB@%$LEXLIB%g
21646s%@LN_S@%$LN_S%g
21647s%@CXXCPP@%$CXXCPP%g
21648s%@PKG_CONFIG@%$PKG_CONFIG%g
21649s%@GTK_CFLAGS@%$GTK_CFLAGS%g
21650s%@GTK_LIBS@%$GTK_LIBS%g
21651s%@GTK_CONFIG@%$GTK_CONFIG%g
21652s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
21653s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
21654s%@X_CFLAGS@%$X_CFLAGS%g
21655s%@X_PRE_LIBS@%$X_PRE_LIBS%g
21656s%@X_LIBS@%$X_LIBS%g
21657s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
21658s%@AIX_CXX_LD@%$AIX_CXX_LD%g
21659s%@RESCOMP@%$RESCOMP%g
21660s%@DEREZ@%$DEREZ%g
21661s%@LIBICONV@%$LIBICONV%g
21662s%@LEX_STEM@%$LEX_STEM%g
21663s%@PATH_IFS@%$PATH_IFS%g
21664s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
21665s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
21666s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
21667s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
21668s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
21669s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
21670s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
21671s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
21672s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
21673s%@PROGRAM_EXT@%$PROGRAM_EXT%g
21674s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
21675s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
21676s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
21677s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
21678s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
21679s%@WX_ALL@%$WX_ALL%g
21680s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
21681s%@SHARED_LD@%$SHARED_LD%g
21682s%@PIC_FLAG@%$PIC_FLAG%g
21683s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
21684s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
21685s%@SONAME_FLAGS@%$SONAME_FLAGS%g
21686s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
21687s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
21688s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
21689s%@STATIC_FLAG@%$STATIC_FLAG%g
21690s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
21691s%@USE_GUI@%$USE_GUI%g
21692s%@AFMINSTALL@%$AFMINSTALL%g
21693s%@TOOLKIT@%$TOOLKIT%g
21694s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
21695s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
21696s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
21697s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
21698s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
21699s%@cross_compiling@%$cross_compiling%g
21700s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
21701s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
21702s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
21703s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
21704s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
21705s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
21706s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
21707s%@ALL_OBJECTS@%$ALL_OBJECTS%g
21708s%@ALL_HEADERS@%$ALL_HEADERS%g
21709s%@ALL_SOURCES@%$ALL_SOURCES%g
21710s%@GUIDIST@%$GUIDIST%g
21711s%@PORT_FILES@%$PORT_FILES%g
21712s%@DISTDIR@%$DISTDIR%g
21713s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
21714s%@LDFLAGS_GL@%$LDFLAGS_GL%g
21715s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
21716s%@OPENGL_LIBS@%$OPENGL_LIBS%g
21717s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
21718s%@EXTRADEFS@%$EXTRADEFS%g
21719s%@RESFLAGS@%$RESFLAGS%g
21720s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
21721s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
21722s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
21723s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
21724s%@LIBWXMACRES@%$LIBWXMACRES%g
21725s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
21726s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
21727s%@DLLTOOL@%$DLLTOOL%g
21728s%@AS@%$AS%g
21729s%@NM@%$NM%g
21730s%@LD@%$LD%g
21731s%@MAKEINFO@%$MAKEINFO%g
21732s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
21733s%@SET_MAKE@%$SET_MAKE%g
21734s%@subdirs@%$subdirs%g
21735
21736CEOF
21737EOF
21738
21739cat >> $CONFIG_STATUS <<\EOF
21740
21741# Split the substitutions into bite-sized pieces for seds with
21742# small command number limits, like on Digital OSF/1 and HP-UX.
21743ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
21744ac_file=1 # Number of current file.
21745ac_beg=1 # First line for current file.
21746ac_end=$ac_max_sed_cmds # Line after last line for current file.
21747ac_more_lines=:
21748ac_sed_cmds=""
21749while $ac_more_lines; do
21750 if test $ac_beg -gt 1; then
21751 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
21752 else
21753 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
21754 fi
21755 if test ! -s conftest.s$ac_file; then
21756 ac_more_lines=false
21757 rm -f conftest.s$ac_file
21758 else
21759 if test -z "$ac_sed_cmds"; then
21760 ac_sed_cmds="sed -f conftest.s$ac_file"
21761 else
21762 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
21763 fi
21764 ac_file=`expr $ac_file + 1`
21765 ac_beg=$ac_end
21766 ac_end=`expr $ac_end + $ac_max_sed_cmds`
21767 fi
21768done
21769if test -z "$ac_sed_cmds"; then
21770 ac_sed_cmds=cat
21771fi
21772EOF
21773
21774cat >> $CONFIG_STATUS <<EOF
21775
21776CONFIG_FILES=\${CONFIG_FILES-"wx-config
21777 src/make.env
21778 src/makeprog.env
21779 src/makelib.env
21780 Makefile
21781 "}
21782EOF
21783cat >> $CONFIG_STATUS <<\EOF
21784for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
21785 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21786 case "$ac_file" in
21787 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21788 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21789 *) ac_file_in="${ac_file}.in" ;;
21790 esac
21791
21792 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
21793
21794 # Remove last slash and all that follows it. Not all systems have dirname.
21795 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21796 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21797 # The file is in a subdirectory.
21798 test ! -d "$ac_dir" && mkdir "$ac_dir"
21799 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
21800 # A "../" for each directory in $ac_dir_suffix.
21801 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
21802 else
21803 ac_dir_suffix= ac_dots=
21804 fi
21805
21806 case "$ac_given_srcdir" in
21807 .) srcdir=.
21808 if test -z "$ac_dots"; then top_srcdir=.
21809 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
21810 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
21811 *) # Relative path.
21812 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
21813 top_srcdir="$ac_dots$ac_given_srcdir" ;;
21814 esac
21815
21816 case "$ac_given_INSTALL" in
21817 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21818 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21819 esac
21820
21821 echo creating "$ac_file"
21822 rm -f "$ac_file"
21823 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
21824 case "$ac_file" in
21825 *Makefile*) ac_comsub="1i\\
21826# $configure_input" ;;
21827 *) ac_comsub= ;;
21828 esac
21829
21830 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21831 sed -e "$ac_comsub
21832s%@configure_input@%$configure_input%g
21833s%@srcdir@%$srcdir%g
21834s%@top_srcdir@%$top_srcdir%g
21835s%@INSTALL@%$INSTALL%g
21836" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
21837fi; done
21838rm -f conftest.s*
21839
21840# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21841# NAME is the cpp macro being defined and VALUE is the value it is being given.
21842#
21843# ac_d sets the value in "#define NAME VALUE" lines.
21844ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21845ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
21846ac_dC='\3'
21847ac_dD='%g'
21848# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21849ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21850ac_uB='\([ ]\)%\1#\2define\3'
21851ac_uC=' '
21852ac_uD='\4%g'
21853# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21854ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21855ac_eB='$%\1#\2define\3'
21856ac_eC=' '
21857ac_eD='%g'
21858
21859if test "${CONFIG_HEADERS+set}" != set; then
21860EOF
21861cat >> $CONFIG_STATUS <<EOF
21862 CONFIG_HEADERS="setup.h:setup.h.in"
21863EOF
21864cat >> $CONFIG_STATUS <<\EOF
21865fi
21866for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
21867 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21868 case "$ac_file" in
21869 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21870 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21871 *) ac_file_in="${ac_file}.in" ;;
21872 esac
21873
21874 echo creating $ac_file
21875
21876 rm -f conftest.frag conftest.in conftest.out
21877 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21878 cat $ac_file_inputs > conftest.in
21879
21880EOF
21881
21882# Transform confdefs.h into a sed script conftest.vals that substitutes
21883# the proper values into config.h.in to produce config.h. And first:
21884# Protect against being on the right side of a sed subst in config.status.
21885# Protect against being in an unquoted here document in config.status.
21886rm -f conftest.vals
21887cat > conftest.hdr <<\EOF
21888s/[\\&%]/\\&/g
21889s%[\\$`]%\\&%g
21890s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21891s%ac_d%ac_u%gp
21892s%ac_u%ac_e%gp
21893EOF
21894sed -n -f conftest.hdr confdefs.h > conftest.vals
21895rm -f conftest.hdr
21896
21897# This sed command replaces #undef with comments. This is necessary, for
21898# example, in the case of _POSIX_SOURCE, which is predefined and required
21899# on some systems where configure will not decide to define it.
21900cat >> conftest.vals <<\EOF
21901s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
21902EOF
21903
21904# Break up conftest.vals because some shells have a limit on
21905# the size of here documents, and old seds have small limits too.
21906
21907rm -f conftest.tail
21908while :
21909do
21910 ac_lines=`grep -c . conftest.vals`
21911 # grep -c gives empty output for an empty file on some AIX systems.
21912 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21913 # Write a limited-size here document to conftest.frag.
21914 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21915 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
21916 echo 'CEOF
21917 sed -f conftest.frag conftest.in > conftest.out
21918 rm -f conftest.in
21919 mv conftest.out conftest.in
21920' >> $CONFIG_STATUS
21921 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21922 rm -f conftest.vals
21923 mv conftest.tail conftest.vals
21924done
21925rm -f conftest.vals
21926
21927cat >> $CONFIG_STATUS <<\EOF
21928 rm -f conftest.frag conftest.h
21929 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
21930 cat conftest.in >> conftest.h
21931 rm -f conftest.in
21932 if cmp -s $ac_file conftest.h 2>/dev/null; then
21933 echo "$ac_file is unchanged"
21934 rm -f conftest.h
21935 else
21936 # Remove last slash and all that follows it. Not all systems have dirname.
21937 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21938 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21939 # The file is in a subdirectory.
21940 test ! -d "$ac_dir" && mkdir "$ac_dir"
21941 fi
21942 rm -f $ac_file
21943 mv conftest.h $ac_file
21944 fi
21945fi; done
21946
21947EOF
21948cat >> $CONFIG_STATUS <<EOF
21949
21950 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
21951 LN_S="${LN_S}"
21952
21953
21954EOF
21955cat >> $CONFIG_STATUS <<\EOF
21956
21957 if test ! -h wx-config; then
21958 chmod +x wx-config
21959 mv wx-config wx${TOOLCHAIN_NAME}-config
21960 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
21961 fi
21962
21963 if test ! -d lib; then
21964 mkdir lib
21965 fi
21966 if test ! -d lib/wx; then
21967 mkdir lib/wx
21968 fi
21969 if test ! -d lib/wx/include; then
21970 mkdir lib/wx/include
21971 fi
21972 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
21973 mkdir lib/wx/include/${TOOLCHAIN_NAME}
21974 fi
21975 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
21976 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
21977 fi
21978 if test -f setup.h; then
21979 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
21980 fi
21981
21982exit 0
21983EOF
21984chmod +x $CONFIG_STATUS
21985rm -fr confdefs* $ac_clean_files
21986test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
21987
21988if test "$no_recursion" != yes; then
21989
21990 # Remove --cache-file and --srcdir arguments so they do not pile up.
21991 ac_sub_configure_args=
21992 ac_prev=
21993 for ac_arg in $ac_configure_args; do
21994 if test -n "$ac_prev"; then
21995 ac_prev=
21996 continue
21997 fi
21998 case "$ac_arg" in
21999 -cache-file | --cache-file | --cache-fil | --cache-fi \
22000 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22001 ac_prev=cache_file ;;
22002 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22003 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
22004 ;;
22005 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22006 ac_prev=srcdir ;;
22007 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22008 ;;
22009 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
22010 esac
22011 done
22012
22013 for ac_config_dir in demos samples utils contrib; do
22014
22015 # Do not complain, so a configure script can configure whichever
22016 # parts of a large source tree are present.
22017 if test ! -d $srcdir/$ac_config_dir; then
22018 continue
22019 fi
22020
22021 echo configuring in $ac_config_dir
22022
22023 case "$srcdir" in
22024 .) ;;
22025 *)
22026 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
22027 else
22028 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
22029 fi
22030 ;;
22031 esac
22032
22033 ac_popdir=`pwd`
22034 cd $ac_config_dir
22035
22036 # A "../" for each directory in /$ac_config_dir.
22037 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
22038
22039 case "$srcdir" in
22040 .) # No --srcdir option. We are building in place.
22041 ac_sub_srcdir=$srcdir ;;
22042 /*) # Absolute path.
22043 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
22044 *) # Relative path.
22045 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
22046 esac
22047
22048 # Check for guested configure; otherwise get Cygnus style configure.
22049 if test -f $ac_sub_srcdir/configure; then
22050 ac_sub_configure=$ac_sub_srcdir/configure
22051 elif test -f $ac_sub_srcdir/configure.in; then
22052 ac_sub_configure=$ac_configure
22053 else
22054 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
22055 ac_sub_configure=
22056 fi
22057
22058 # The recursion is here.
22059 if test -n "$ac_sub_configure"; then
22060
22061 # Make the cache file name correct relative to the subdirectory.
22062 case "$cache_file" in
22063 /*) ac_sub_cache_file=$cache_file ;;
22064 *) # Relative path.
22065 ac_sub_cache_file="$ac_dots$cache_file" ;;
22066 esac
22067 case "$ac_given_INSTALL" in
22068 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22069 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22070 esac
22071
22072 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
22073 # The eval makes quoting arguments work.
22074 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
22075 then :
22076 else
22077 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
22078 fi
22079 fi
22080
22081 cd $ac_popdir
22082 done
22083fi
22084
22085