]> git.saurik.com Git - wxWidgets.git/blame_incremental - configure
empty description doesn't look good
[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
60
61
62
63
64
65# Configure paths for GTK+
66# Owen Taylor 1997-2001
67
68
69
70# Configure paths for GTK+
71# Owen Taylor 97-11-3
72
73
74
75
76
77
78
79
80# Guess values for system-dependent variables and create Makefiles.
81# Generated automatically using autoconf version 2.13
82# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
83#
84# This configure script is free software; the Free Software Foundation
85# gives unlimited permission to copy, distribute and modify it.
86
87# Defaults:
88ac_help=
89ac_default_prefix=/usr/local
90# Any additions from configure.in:
91ac_help="$ac_help
92 --enable-gui use GUI classes"
93ac_help="$ac_help
94 --enable-universal use wxWindows GUI controls instead of native ones"
95ac_help="$ac_help
96 --with-gtk use GTK+"
97ac_help="$ac_help
98 --with-motif use Motif/Lesstif"
99ac_help="$ac_help
100 --with-mac use Mac OS X"
101ac_help="$ac_help
102 --with-cocoa use Cocoa"
103ac_help="$ac_help
104 --with-wine use Wine"
105ac_help="$ac_help
106 --with-msw use MS-Windows"
107ac_help="$ac_help
108 --with-pm use OS/2 Presentation Manager"
109ac_help="$ac_help
110 --with-mgl use SciTech MGL"
111ac_help="$ac_help
112 --with-microwin use MicroWindows"
113ac_help="$ac_help
114 --with-x11 use X11"
115ac_help="$ac_help
116 --enable-nanox use NanoX"
117ac_help="$ac_help
118 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
119ac_help="$ac_help
120 --with-libpng use libpng (PNG image format)"
121ac_help="$ac_help
122 --with-libjpeg use libjpeg (JPEG file format)"
123ac_help="$ac_help
124 --with-libtiff use libtiff (TIFF file format)"
125ac_help="$ac_help
126 --with-opengl use OpenGL (or Mesa)"
127ac_help="$ac_help
128 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
129ac_help="$ac_help
130 --with-regex enable support for wxRegEx class"
131ac_help="$ac_help
132 --with-zlib use zlib for LZW compression"
133ac_help="$ac_help
134 --with-odbc use the IODBC and wxODBC classes"
135ac_help="$ac_help
136 --enable-shared create shared library code"
137ac_help="$ac_help
138 --enable-soname set the DT_SONAME field in ELF shared libraries"
139ac_help="$ac_help
140 --enable-optimise create optimised code"
141ac_help="$ac_help
142 --enable-debug same as debug_flag and debug_info"
143ac_help="$ac_help
144 --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)"
145ac_help="$ac_help
146 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
147ac_help="$ac_help
148 --enable-debug_info create code with debugging information"
149ac_help="$ac_help
150 --enable-debug_gdb create code with extra GDB debugging information"
151ac_help="$ac_help
152 --enable-debug_cntxt use wxDebugContext"
153ac_help="$ac_help
154 --enable-mem_tracing create code with memory tracing"
155ac_help="$ac_help
156 --enable-profile create code with profiling information"
157ac_help="$ac_help
158 --enable-no_rtti create code without RTTI information"
159ac_help="$ac_help
160 --enable-no_exceptions create code without C++ exceptions handling"
161ac_help="$ac_help
162 --enable-permissive compile code disregarding strict ANSI"
163ac_help="$ac_help
164 --enable-no_deps create code without dependency information"
165ac_help="$ac_help
166 --enable-compat20 enable wxWindows 2.0 compatibility"
167ac_help="$ac_help
168 --enable-compat22 enable wxWindows 2.2 compatibility"
169ac_help="$ac_help
170 --disable-compat24 disable wxWindows 2.4 compatibility"
171ac_help="$ac_help
172 --enable-rpath=DIR output the rpath flag from wx-config"
173ac_help="$ac_help
174 --enable-intl use internationalization system"
175ac_help="$ac_help
176 --enable-config use wxConfig (and derived) classes"
177ac_help="$ac_help
178 --enable-protocols use wxProtocol and derived classes"
179ac_help="$ac_help
180 --enable-ftp use wxFTP (requires wxProtocol"
181ac_help="$ac_help
182 --enable-http use wxHTTP (requires wxProtocol"
183ac_help="$ac_help
184 --enable-fileproto use wxFileProto class (requires wxProtocol"
185ac_help="$ac_help
186 --enable-sockets use socket/network classes"
187ac_help="$ac_help
188 --enable-ole use OLE classes"
189ac_help="$ac_help
190 --enable-dataobj use data object classes"
191ac_help="$ac_help
192 --enable-ipc use interprocess communication (wxSocket etc.)"
193ac_help="$ac_help
194 --enable-cmdline use wxCmdLineParser class"
195ac_help="$ac_help
196 --enable-datetime use wxDateTime class"
197ac_help="$ac_help
198 --enable-stopwatch use wxStopWatch class"
199ac_help="$ac_help
200 --enable-dialupman use dialup network classes"
201ac_help="$ac_help
202 --enable-apple_ieee use the Apple IEEE codec"
203ac_help="$ac_help
204 --enable-timer use wxTimer class"
205ac_help="$ac_help
206 --enable-wave use wxWave class"
207ac_help="$ac_help
208 --enable-fraction use wxFraction class"
209ac_help="$ac_help
210 --enable-dynlib use wxLibrary class for DLL loading"
211ac_help="$ac_help
212 --enable-dynamicloader use (new) wxDynamicLibrary class"
213ac_help="$ac_help
214 --enable-longlong use wxLongLong class"
215ac_help="$ac_help
216 --enable-geometry use geometry class"
217ac_help="$ac_help
218 --enable-log use logging system"
219ac_help="$ac_help
220 --enable-streams use wxStream etc classes"
221ac_help="$ac_help
222 --enable-file use wxFile classes"
223ac_help="$ac_help
224 --enable-ffile use wxFFile classes"
225ac_help="$ac_help
226 --enable-textbuf use wxTextBuffer class"
227ac_help="$ac_help
228 --enable-textfile use wxTextFile class"
229ac_help="$ac_help
230 --enable-fontmap use font encodings conversion classes"
231ac_help="$ac_help
232 --enable-unicode compile wxString with Unicode support"
233ac_help="$ac_help
234 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
235ac_help="$ac_help
236 --enable-wxprintfv use wxWindows implementation of vprintf()"
237ac_help="$ac_help
238 --enable-std_iostreams use standard C++ stream classes"
239ac_help="$ac_help
240 --enable-filesystem use virtual file systems classes"
241ac_help="$ac_help
242 --enable-fs_inet use virtual HTTP/FTP filesystems"
243ac_help="$ac_help
244 --enable-fs_zip use virtual ZIP filesystems"
245ac_help="$ac_help
246 --enable-zipstream use wxZipInputStream"
247ac_help="$ac_help
248 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
249ac_help="$ac_help
250 --enable-snglinst use wxSingleInstanceChecker class"
251ac_help="$ac_help
252 --enable-mimetype use wxMimeTypesManager"
253ac_help="$ac_help
254 --enable-sysoptions use wxSystemOptions"
255ac_help="$ac_help
256 --enable-url use wxURL class"
257ac_help="$ac_help
258 --enable-protocol use wxProtocol class"
259ac_help="$ac_help
260 --enable-protocol-http HTTP support in wxProtocol"
261ac_help="$ac_help
262 --enable-protocol-ftp FTP support in wxProtocol"
263ac_help="$ac_help
264 --enable-protocol-file FILE support in wxProtocol"
265ac_help="$ac_help
266 --enable-threads use threads"
267ac_help="$ac_help
268 --enable-docview use document view architecture"
269ac_help="$ac_help
270 --enable-help use help subsystem"
271ac_help="$ac_help
272 --enable-mshtmlhelp use MS HTML Help (win32)"
273ac_help="$ac_help
274 --enable-html use wxHTML sub-library"
275ac_help="$ac_help
276 --enable-htmlhelp use wxHTML-based help"
277ac_help="$ac_help
278 --enable-constraints use layout-constraints system"
279ac_help="$ac_help
280 --enable-printarch use printing architecture"
281ac_help="$ac_help
282 --enable-mdi use multiple document interface architecture"
283ac_help="$ac_help
284 --enable-loggui use standard GUI logger"
285ac_help="$ac_help
286 --enable-logwin use wxLogWindow"
287ac_help="$ac_help
288 --enable-logdialog use wxLogDialog"
289ac_help="$ac_help
290 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
291ac_help="$ac_help
292 --enable-prologio not available; see contrib"
293ac_help="$ac_help
294 --enable-resources not available; see contrib"
295ac_help="$ac_help
296 --enable-clipboard use wxClipboard class"
297ac_help="$ac_help
298 --enable-dnd use Drag'n'Drop classes"
299ac_help="$ac_help
300 --enable-metafile use win32 metafiles"
301ac_help="$ac_help
302 --enable-controls use all usual controls"
303ac_help="$ac_help
304 --enable-accel use accelerators"
305ac_help="$ac_help
306 --enable-button use wxButton class"
307ac_help="$ac_help
308 --enable-bmpbutton use wxBitmapButton class"
309ac_help="$ac_help
310 --enable-calendar use wxCalendarCtrl class"
311ac_help="$ac_help
312 --enable-caret use wxCaret class"
313ac_help="$ac_help
314 --enable-checkbox use wxCheckBox class"
315ac_help="$ac_help
316 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
317ac_help="$ac_help
318 --enable-choice use wxChoice class"
319ac_help="$ac_help
320 --enable-combobox use wxComboBox class"
321ac_help="$ac_help
322 --enable-display use wxDisplay class"
323ac_help="$ac_help
324 --enable-gauge use wxGauge class"
325ac_help="$ac_help
326 --enable-grid use wxGrid class"
327ac_help="$ac_help
328 --enable-imaglist use wxImageList class"
329ac_help="$ac_help
330 --enable-listbox use wxListBox class"
331ac_help="$ac_help
332 --enable-listctrl use wxListCtrl class"
333ac_help="$ac_help
334 --enable-notebook use wxNotebook class"
335ac_help="$ac_help
336 --enable-radiobox use wxRadioBox class"
337ac_help="$ac_help
338 --enable-radiobtn use wxRadioButton class"
339ac_help="$ac_help
340 --enable-sash use wxSashWindow class"
341ac_help="$ac_help
342 --enable-scrollbar use wxScrollBar class and scrollable windows"
343ac_help="$ac_help
344 --enable-slider use wxSlider class"
345ac_help="$ac_help
346 --enable-spinbtn use wxSpinButton class"
347ac_help="$ac_help
348 --enable-spinctrl use wxSpinCtrl class"
349ac_help="$ac_help
350 --enable-splitter use wxSplitterWindow class"
351ac_help="$ac_help
352 --enable-statbmp use wxStaticBitmap class"
353ac_help="$ac_help
354 --enable-statbox use wxStaticBox class"
355ac_help="$ac_help
356 --enable-statline use wxStaticLine class"
357ac_help="$ac_help
358 --enable-stattext use wxStaticText class"
359ac_help="$ac_help
360 --enable-statusbar use wxStatusBar class"
361ac_help="$ac_help
362 --enable-tabdialog use wxTabControl class"
363ac_help="$ac_help
364 --enable-textctrl use wxTextCtrl class"
365ac_help="$ac_help
366 --enable-togglebtn use wxToggleButton class"
367ac_help="$ac_help
368 --enable-toolbar use wxToolBar class"
369ac_help="$ac_help
370 --enable-tbarnative use native wxToolBar class"
371ac_help="$ac_help
372 --enable-tbarsmpl use wxToolBarSimple class"
373ac_help="$ac_help
374 --enable-treectrl use wxTreeCtrl class"
375ac_help="$ac_help
376 --enable-tipwindow use wxTipWindow class"
377ac_help="$ac_help
378 --enable-popupwin use wxPopUpWindow class"
379ac_help="$ac_help
380 --enable-commondlg use all common dialogs"
381ac_help="$ac_help
382 --enable-choicedlg use wxChoiceDialog"
383ac_help="$ac_help
384 --enable-coldlg use wxColourDialog"
385ac_help="$ac_help
386 --enable-filedlg use wxFileDialog"
387ac_help="$ac_help
388 --enable-finddlg use wxFindReplaceDialog"
389ac_help="$ac_help
390 --enable-fontdlg use wxFontDialog"
391ac_help="$ac_help
392 --enable-dirdlg use wxDirDialog"
393ac_help="$ac_help
394 --enable-msgdlg use wxMessageDialog"
395ac_help="$ac_help
396 --enable-numberdlg use wxNumberEntryDialog"
397ac_help="$ac_help
398 --enable-splash use wxSplashScreen"
399ac_help="$ac_help
400 --enable-textdlg use wxTextDialog"
401ac_help="$ac_help
402 --enable-tipdlg use startup tips"
403ac_help="$ac_help
404 --enable-progressdlg use wxProgressDialog"
405ac_help="$ac_help
406 --enable-wizarddlg use wxWizard"
407ac_help="$ac_help
408 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
409ac_help="$ac_help
410 --enable-miniframe use wxMiniFrame class"
411ac_help="$ac_help
412 --enable-tooltips use wxToolTip class"
413ac_help="$ac_help
414 --enable-splines use spline drawing code"
415ac_help="$ac_help
416 --enable-validators use wxValidator and derived classes"
417ac_help="$ac_help
418 --enable-busyinfo use wxBusyInfo"
419ac_help="$ac_help
420 --enable-joystick use wxJoystick (Linux only)"
421ac_help="$ac_help
422 --enable-metafiles use wxMetaFile (Windows only)"
423ac_help="$ac_help
424 --enable-dragimage use wxDragImage"
425ac_help="$ac_help
426 --enable-accessibility enable accessibility support"
427ac_help="$ac_help
428 --enable-palette use wxPalette class"
429ac_help="$ac_help
430 --enable-image use wxImage class"
431ac_help="$ac_help
432 --enable-gif use gif images (GIF file format)"
433ac_help="$ac_help
434 --enable-pcx use pcx images (PCX file format)"
435ac_help="$ac_help
436 --enable-iff use iff images (IFF file format)"
437ac_help="$ac_help
438 --enable-pnm use pnm images (PNM file format)"
439ac_help="$ac_help
440 --enable-xpm use xpm images (XPM file format)"
441ac_help="$ac_help
442 --enable-icocur use Windows ICO and CUR formats"
443ac_help="$ac_help
444 --disable-largefile omit support for large files"
445ac_help="$ac_help
446 --disable-gtktest do not try to compile and run a test GTK+ program"
447ac_help="$ac_help
448 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
449ac_help="$ac_help
450 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
451ac_help="$ac_help
452 --disable-gtktest Do not try to compile and run a test GTK program"
453ac_help="$ac_help
454 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
455ac_help="$ac_help
456 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
457ac_help="$ac_help
458 --disable-gtktest Do not try to compile and run a test GTK program"
459ac_help="$ac_help
460 --with-x use the X Window System"
461ac_help="$ac_help
462 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
463
464# Initialize some variables set by options.
465# The variables have the same names as the options, with
466# dashes changed to underlines.
467build=NONE
468cache_file=./config.cache
469exec_prefix=NONE
470host=NONE
471no_create=
472nonopt=NONE
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
481target=NONE
482verbose=
483x_includes=NONE
484x_libraries=NONE
485bindir='${exec_prefix}/bin'
486sbindir='${exec_prefix}/sbin'
487libexecdir='${exec_prefix}/libexec'
488datadir='${prefix}/share'
489sysconfdir='${prefix}/etc'
490sharedstatedir='${prefix}/com'
491localstatedir='${prefix}/var'
492libdir='${exec_prefix}/lib'
493includedir='${prefix}/include'
494oldincludedir='/usr/include'
495infodir='${prefix}/info'
496mandir='${prefix}/man'
497
498# Initialize some other variables.
499subdirs=
500MFLAGS= MAKEFLAGS=
501SHELL=${CONFIG_SHELL-/bin/sh}
502# Maximum number of lines to put in a shell here document.
503ac_max_here_lines=12
504
505ac_prev=
506for ac_option
507do
508
509 # If the previous option needs an argument, assign it.
510 if test -n "$ac_prev"; then
511 eval "$ac_prev=\$ac_option"
512 ac_prev=
513 continue
514 fi
515
516 case "$ac_option" in
517 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
518 *) ac_optarg= ;;
519 esac
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
523 case "$ac_option" in
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir="$ac_optarg" ;;
529
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build="$ac_optarg" ;;
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file="$ac_optarg" ;;
541
542 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
543 ac_prev=datadir ;;
544 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
545 | --da=*)
546 datadir="$ac_optarg" ;;
547
548 -disable-* | --disable-*)
549 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
550 # Reject names that are not valid shell variable names.
551 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
552 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
553 fi
554 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
555 eval "enable_${ac_feature}=no" ;;
556
557 -enable-* | --enable-*)
558 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
559 # Reject names that are not valid shell variable names.
560 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
561 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
562 fi
563 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
564 case "$ac_option" in
565 *=*) ;;
566 *) ac_optarg=yes ;;
567 esac
568 eval "enable_${ac_feature}='$ac_optarg'" ;;
569
570 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572 | --exec | --exe | --ex)
573 ac_prev=exec_prefix ;;
574 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576 | --exec=* | --exe=* | --ex=*)
577 exec_prefix="$ac_optarg" ;;
578
579 -gas | --gas | --ga | --g)
580 # Obsolete; use --with-gas.
581 with_gas=yes ;;
582
583 -help | --help | --hel | --he)
584 # Omit some internal or obsolete options to make the list less imposing.
585 # This message is too long to be a string in the A/UX 3.1 sh.
586 cat << EOF
587Usage: configure [options] [host]
588Options: [defaults in brackets after descriptions]
589Configuration:
590 --cache-file=FILE cache test results in FILE
591 --help print this message
592 --no-create do not create output files
593 --quiet, --silent do not print \`checking...' messages
594 --version print the version of autoconf that created configure
595Directory and file names:
596 --prefix=PREFIX install architecture-independent files in PREFIX
597 [$ac_default_prefix]
598 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
599 [same as prefix]
600 --bindir=DIR user executables in DIR [EPREFIX/bin]
601 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
602 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
603 --datadir=DIR read-only architecture-independent data in DIR
604 [PREFIX/share]
605 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
606 --sharedstatedir=DIR modifiable architecture-independent data in DIR
607 [PREFIX/com]
608 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
609 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
610 --includedir=DIR C header files in DIR [PREFIX/include]
611 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
612 --infodir=DIR info documentation in DIR [PREFIX/info]
613 --mandir=DIR man documentation in DIR [PREFIX/man]
614 --srcdir=DIR find the sources in DIR [configure dir or ..]
615 --program-prefix=PREFIX prepend PREFIX to installed program names
616 --program-suffix=SUFFIX append SUFFIX to installed program names
617 --program-transform-name=PROGRAM
618 run sed PROGRAM on installed program names
619EOF
620 cat << EOF
621Host type:
622 --build=BUILD configure for building on BUILD [BUILD=HOST]
623 --host=HOST configure for HOST [guessed]
624 --target=TARGET configure for TARGET [TARGET=HOST]
625Features and packages:
626 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
627 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
628 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
629 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
630 --x-includes=DIR X include files are in DIR
631 --x-libraries=DIR X library files are in DIR
632EOF
633 if test -n "$ac_help"; then
634 echo "--enable and --with options recognized:$ac_help"
635 fi
636 exit 0 ;;
637
638 -host | --host | --hos | --ho)
639 ac_prev=host ;;
640 -host=* | --host=* | --hos=* | --ho=*)
641 host="$ac_optarg" ;;
642
643 -includedir | --includedir | --includedi | --included | --include \
644 | --includ | --inclu | --incl | --inc)
645 ac_prev=includedir ;;
646 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
647 | --includ=* | --inclu=* | --incl=* | --inc=*)
648 includedir="$ac_optarg" ;;
649
650 -infodir | --infodir | --infodi | --infod | --info | --inf)
651 ac_prev=infodir ;;
652 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
653 infodir="$ac_optarg" ;;
654
655 -libdir | --libdir | --libdi | --libd)
656 ac_prev=libdir ;;
657 -libdir=* | --libdir=* | --libdi=* | --libd=*)
658 libdir="$ac_optarg" ;;
659
660 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
661 | --libexe | --libex | --libe)
662 ac_prev=libexecdir ;;
663 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
664 | --libexe=* | --libex=* | --libe=*)
665 libexecdir="$ac_optarg" ;;
666
667 -localstatedir | --localstatedir | --localstatedi | --localstated \
668 | --localstate | --localstat | --localsta | --localst \
669 | --locals | --local | --loca | --loc | --lo)
670 ac_prev=localstatedir ;;
671 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
672 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
673 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
674 localstatedir="$ac_optarg" ;;
675
676 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
677 ac_prev=mandir ;;
678 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
679 mandir="$ac_optarg" ;;
680
681 -nfp | --nfp | --nf)
682 # Obsolete; use --without-fp.
683 with_fp=no ;;
684
685 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
686 | --no-cr | --no-c)
687 no_create=yes ;;
688
689 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
690 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
691 no_recursion=yes ;;
692
693 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
694 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
695 | --oldin | --oldi | --old | --ol | --o)
696 ac_prev=oldincludedir ;;
697 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
698 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
699 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
700 oldincludedir="$ac_optarg" ;;
701
702 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
703 ac_prev=prefix ;;
704 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
705 prefix="$ac_optarg" ;;
706
707 -program-prefix | --program-prefix | --program-prefi | --program-pref \
708 | --program-pre | --program-pr | --program-p)
709 ac_prev=program_prefix ;;
710 -program-prefix=* | --program-prefix=* | --program-prefi=* \
711 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
712 program_prefix="$ac_optarg" ;;
713
714 -program-suffix | --program-suffix | --program-suffi | --program-suff \
715 | --program-suf | --program-su | --program-s)
716 ac_prev=program_suffix ;;
717 -program-suffix=* | --program-suffix=* | --program-suffi=* \
718 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
719 program_suffix="$ac_optarg" ;;
720
721 -program-transform-name | --program-transform-name \
722 | --program-transform-nam | --program-transform-na \
723 | --program-transform-n | --program-transform- \
724 | --program-transform | --program-transfor \
725 | --program-transfo | --program-transf \
726 | --program-trans | --program-tran \
727 | --progr-tra | --program-tr | --program-t)
728 ac_prev=program_transform_name ;;
729 -program-transform-name=* | --program-transform-name=* \
730 | --program-transform-nam=* | --program-transform-na=* \
731 | --program-transform-n=* | --program-transform-=* \
732 | --program-transform=* | --program-transfor=* \
733 | --program-transfo=* | --program-transf=* \
734 | --program-trans=* | --program-tran=* \
735 | --progr-tra=* | --program-tr=* | --program-t=*)
736 program_transform_name="$ac_optarg" ;;
737
738 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
739 | -silent | --silent | --silen | --sile | --sil)
740 silent=yes ;;
741
742 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
743 ac_prev=sbindir ;;
744 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
745 | --sbi=* | --sb=*)
746 sbindir="$ac_optarg" ;;
747
748 -sharedstatedir | --sharedstatedir | --sharedstatedi \
749 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
750 | --sharedst | --shareds | --shared | --share | --shar \
751 | --sha | --sh)
752 ac_prev=sharedstatedir ;;
753 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
754 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
755 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
756 | --sha=* | --sh=*)
757 sharedstatedir="$ac_optarg" ;;
758
759 -site | --site | --sit)
760 ac_prev=site ;;
761 -site=* | --site=* | --sit=*)
762 site="$ac_optarg" ;;
763
764 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
765 ac_prev=srcdir ;;
766 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
767 srcdir="$ac_optarg" ;;
768
769 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
770 | --syscon | --sysco | --sysc | --sys | --sy)
771 ac_prev=sysconfdir ;;
772 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
773 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
774 sysconfdir="$ac_optarg" ;;
775
776 -target | --target | --targe | --targ | --tar | --ta | --t)
777 ac_prev=target ;;
778 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
779 target="$ac_optarg" ;;
780
781 -v | -verbose | --verbose | --verbos | --verbo | --verb)
782 verbose=yes ;;
783
784 -version | --version | --versio | --versi | --vers)
785 echo "configure generated by autoconf version 2.13"
786 exit 0 ;;
787
788 -with-* | --with-*)
789 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
790 # Reject names that are not valid shell variable names.
791 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
792 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
793 fi
794 ac_package=`echo $ac_package| sed 's/-/_/g'`
795 case "$ac_option" in
796 *=*) ;;
797 *) ac_optarg=yes ;;
798 esac
799 eval "with_${ac_package}='$ac_optarg'" ;;
800
801 -without-* | --without-*)
802 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
803 # Reject names that are not valid shell variable names.
804 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
805 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
806 fi
807 ac_package=`echo $ac_package| sed 's/-/_/g'`
808 eval "with_${ac_package}=no" ;;
809
810 --x)
811 # Obsolete; use --with-x.
812 with_x=yes ;;
813
814 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
815 | --x-incl | --x-inc | --x-in | --x-i)
816 ac_prev=x_includes ;;
817 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
818 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
819 x_includes="$ac_optarg" ;;
820
821 -x-libraries | --x-libraries | --x-librarie | --x-librari \
822 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
823 ac_prev=x_libraries ;;
824 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
825 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
826 x_libraries="$ac_optarg" ;;
827
828 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
829 ;;
830
831 *)
832 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
833 echo "configure: warning: $ac_option: invalid host type" 1>&2
834 fi
835 if test "x$nonopt" != xNONE; then
836 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
837 fi
838 nonopt="$ac_option"
839 ;;
840
841 esac
842done
843
844if test -n "$ac_prev"; then
845 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
846fi
847
848trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
849
850# File descriptor usage:
851# 0 standard input
852# 1 file creation
853# 2 errors and warnings
854# 3 some systems may open it to /dev/tty
855# 4 used on the Kubota Titan
856# 6 checking for... messages and results
857# 5 compiler messages saved in config.log
858if test "$silent" = yes; then
859 exec 6>/dev/null
860else
861 exec 6>&1
862fi
863exec 5>./config.log
864
865echo "\
866This file contains any messages produced by compilers while
867running configure, to aid debugging if configure makes a mistake.
868" 1>&5
869
870# Strip out --no-create and --no-recursion so they do not pile up.
871# Also quote any args containing shell metacharacters.
872ac_configure_args=
873for ac_arg
874do
875 case "$ac_arg" in
876 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
877 | --no-cr | --no-c) ;;
878 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
879 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
880 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
881 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
882 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
883 esac
884done
885
886# NLS nuisances.
887# Only set these to C if already set. These must not be set unconditionally
888# because not all systems understand e.g. LANG=C (notably SCO).
889# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
890# Non-C LC_CTYPE values break the ctype check.
891if test "${LANG+set}" = set; then LANG=C; export LANG; fi
892if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
893if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
894if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
895
896# confdefs.h avoids OS command line length limits that DEFS can exceed.
897rm -rf conftest* confdefs.h
898# AIX cpp loses on an empty file, so make sure it contains at least a newline.
899echo > confdefs.h
900
901# A filename unique to this package, relative to the directory that
902# configure is in, which we can look for to find out if srcdir is correct.
903ac_unique_file=wx-config.in
904
905# Find the source files, if location was not specified.
906if test -z "$srcdir"; then
907 ac_srcdir_defaulted=yes
908 # Try the directory containing this script, then its parent.
909 ac_prog=$0
910 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
911 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
912 srcdir=$ac_confdir
913 if test ! -r $srcdir/$ac_unique_file; then
914 srcdir=..
915 fi
916else
917 ac_srcdir_defaulted=no
918fi
919if test ! -r $srcdir/$ac_unique_file; then
920 if test "$ac_srcdir_defaulted" = yes; then
921 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
922 else
923 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
924 fi
925fi
926srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
927
928# Prefer explicitly selected file to automatically selected ones.
929if test -z "$CONFIG_SITE"; then
930 if test "x$prefix" != xNONE; then
931 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
932 else
933 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
934 fi
935fi
936for ac_site_file in $CONFIG_SITE; do
937 if test -r "$ac_site_file"; then
938 echo "loading site script $ac_site_file"
939 . "$ac_site_file"
940 fi
941done
942
943if test -r "$cache_file"; then
944 echo "loading cache $cache_file"
945 . $cache_file
946else
947 echo "creating cache $cache_file"
948 > $cache_file
949fi
950
951ac_ext=c
952# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
953ac_cpp='$CPP $CPPFLAGS'
954ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
955ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
956cross_compiling=$ac_cv_prog_cc_cross
957
958ac_exeext=
959ac_objext=o
960if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
961 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
962 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
963 ac_n= ac_c='
964' ac_t=' '
965 else
966 ac_n=-n ac_c= ac_t=
967 fi
968else
969 ac_n= ac_c='\c' ac_t=
970fi
971
972
973
974ac_aux_dir=
975for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
976 if 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 elif test -f $ac_dir/install.sh; then
981 ac_aux_dir=$ac_dir
982 ac_install_sh="$ac_aux_dir/install.sh -c"
983 break
984 fi
985done
986if test -z "$ac_aux_dir"; then
987 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
988fi
989ac_config_guess=$ac_aux_dir/config.guess
990ac_config_sub=$ac_aux_dir/config.sub
991ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
992
993
994# Do some error checking and defaulting for the host and target type.
995# The inputs are:
996# configure --host=HOST --target=TARGET --build=BUILD NONOPT
997#
998# The rules are:
999# 1. You are not allowed to specify --host, --target, and nonopt at the
1000# same time.
1001# 2. Host defaults to nonopt.
1002# 3. If nonopt is not specified, then host defaults to the current host,
1003# as determined by config.guess.
1004# 4. Target and build default to nonopt.
1005# 5. If nonopt is not specified, then target and build default to host.
1006
1007# The aliases save the names the user supplied, while $host etc.
1008# will get canonicalized.
1009case $host---$target---$nonopt in
1010NONE---*---* | *---NONE---* | *---*---NONE) ;;
1011*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1012esac
1013
1014
1015# Make sure we can run config.sub.
1016if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1017else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1018fi
1019
1020echo $ac_n "checking host system type""... $ac_c" 1>&6
1021echo "configure:1022: checking host system type" >&5
1022
1023host_alias=$host
1024case "$host_alias" in
1025NONE)
1026 case $nonopt in
1027 NONE)
1028 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1029 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1030 fi ;;
1031 *) host_alias=$nonopt ;;
1032 esac ;;
1033esac
1034
1035host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1036host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1037host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1038host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1039echo "$ac_t""$host" 1>&6
1040
1041echo $ac_n "checking target system type""... $ac_c" 1>&6
1042echo "configure:1043: checking target system type" >&5
1043
1044target_alias=$target
1045case "$target_alias" in
1046NONE)
1047 case $nonopt in
1048 NONE) target_alias=$host_alias ;;
1049 *) target_alias=$nonopt ;;
1050 esac ;;
1051esac
1052
1053target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1054target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1055target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1056target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1057echo "$ac_t""$target" 1>&6
1058
1059echo $ac_n "checking build system type""... $ac_c" 1>&6
1060echo "configure:1061: checking build system type" >&5
1061
1062build_alias=$build
1063case "$build_alias" in
1064NONE)
1065 case $nonopt in
1066 NONE) build_alias=$host_alias ;;
1067 *) build_alias=$nonopt ;;
1068 esac ;;
1069esac
1070
1071build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1072build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1073build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1074build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1075echo "$ac_t""$build" 1>&6
1076
1077test "$host_alias" != "$target_alias" &&
1078 test "$program_prefix$program_suffix$program_transform_name" = \
1079 NONENONEs,x,x, &&
1080 program_prefix=${target_alias}-
1081
1082
1083
1084WX_MAJOR_VERSION_NUMBER=2
1085WX_MINOR_VERSION_NUMBER=5
1086WX_RELEASE_NUMBER=0
1087
1088WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1089WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1090
1091WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1092
1093WX_CURRENT=0
1094WX_REVISION=0
1095WX_AGE=0
1096
1097
1098
1099USE_UNIX=1
1100USE_WIN32=0
1101USE_DOS=0
1102USE_BEOS=0
1103USE_MAC=0
1104
1105USE_AIX=
1106USE_BSD=
1107USE_DARWIN=
1108USE_FREEBSD=
1109USE_HPUX=
1110USE_LINUX=
1111USE_NETBSD=
1112USE_OPENBSD=
1113USE_OSF=
1114USE_SGI=
1115USE_SOLARIS=
1116USE_SUN=
1117USE_SUNOS=
1118USE_SVR4=
1119USE_SYSV=
1120USE_VMS=
1121USE_ULTRIX=
1122USE_UNIXWARE=
1123
1124USE_ALPHA=
1125
1126NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1127
1128ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1129
1130DEFAULT_wxUSE_COCOA=0
1131DEFAULT_wxUSE_GTK=0
1132DEFAULT_wxUSE_MAC=0
1133DEFAULT_wxUSE_MGL=0
1134DEFAULT_wxUSE_MICROWIN=0
1135DEFAULT_wxUSE_MOTIF=0
1136DEFAULT_wxUSE_MSW=0
1137DEFAULT_wxUSE_PM=0
1138DEFAULT_wxUSE_X11=0
1139
1140DEFAULT_DEFAULT_wxUSE_COCOA=0
1141DEFAULT_DEFAULT_wxUSE_GTK=0
1142DEFAULT_DEFAULT_wxUSE_MAC=0
1143DEFAULT_DEFAULT_wxUSE_MGL=0
1144DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1145DEFAULT_DEFAULT_wxUSE_MOTIF=0
1146DEFAULT_DEFAULT_wxUSE_MSW=0
1147DEFAULT_DEFAULT_wxUSE_PM=0
1148DEFAULT_DEFAULT_wxUSE_X11=0
1149
1150PROGRAM_EXT=
1151SO_SUFFIX=so
1152
1153case "${host}" in
1154 *-hp-hpux* )
1155 USE_HPUX=1
1156 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1157 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1158 SO_SUFFIX=sl
1159 cat >> confdefs.h <<\EOF
1160#define __HPUX__ 1
1161EOF
1162
1163 ;;
1164 *-*-linux* )
1165 USE_LINUX=1
1166 cat >> confdefs.h <<\EOF
1167#define __LINUX__ 1
1168EOF
1169
1170 TMP=`uname -m`
1171 if test "x$TMP" = "xalpha"; then
1172 USE_ALPHA=1
1173 cat >> confdefs.h <<\EOF
1174#define __ALPHA__ 1
1175EOF
1176
1177 fi
1178 DEFAULT_DEFAULT_wxUSE_GTK=1
1179 ;;
1180 *-*-irix5* | *-*-irix6* )
1181 USE_SGI=1
1182 USE_SVR4=1
1183 cat >> confdefs.h <<\EOF
1184#define __SGI__ 1
1185EOF
1186
1187 cat >> confdefs.h <<\EOF
1188#define __SVR4__ 1
1189EOF
1190
1191 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1192 ;;
1193 *-*-solaris2* )
1194 USE_SUN=1
1195 USE_SOLARIS=1
1196 USE_SVR4=1
1197 cat >> confdefs.h <<\EOF
1198#define __SUN__ 1
1199EOF
1200
1201 cat >> confdefs.h <<\EOF
1202#define __SOLARIS__ 1
1203EOF
1204
1205 cat >> confdefs.h <<\EOF
1206#define __SVR4__ 1
1207EOF
1208
1209 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1210 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1211 ;;
1212 *-*-sunos4* )
1213 USE_SUN=1
1214 USE_SUNOS=1
1215 USE_BSD=1
1216 cat >> confdefs.h <<\EOF
1217#define __SUN__ 1
1218EOF
1219
1220 cat >> confdefs.h <<\EOF
1221#define __SUNOS__ 1
1222EOF
1223
1224 cat >> confdefs.h <<\EOF
1225#define __BSD__ 1
1226EOF
1227
1228 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1229 ;;
1230 *-*-freebsd*)
1231 USE_BSD=1
1232 USE_FREEBSD=1
1233 cat >> confdefs.h <<\EOF
1234#define __FREEBSD__ 1
1235EOF
1236
1237 cat >> confdefs.h <<\EOF
1238#define __BSD__ 1
1239EOF
1240
1241 DEFAULT_DEFAULT_wxUSE_GTK=1
1242 ;;
1243 *-*-openbsd*)
1244 USE_BSD=1
1245 USE_OPENBSD=1
1246 cat >> confdefs.h <<\EOF
1247#define __OPENBSD__ 1
1248EOF
1249
1250 cat >> confdefs.h <<\EOF
1251#define __BSD__ 1
1252EOF
1253
1254 DEFAULT_DEFAULT_wxUSE_GTK=1
1255 ;;
1256 *-*-netbsd*)
1257 USE_BSD=1
1258 USE_NETBSD=1
1259 cat >> confdefs.h <<\EOF
1260#define __NETBSD__ 1
1261EOF
1262
1263 cat >> confdefs.h <<\EOF
1264#define __BSD__ 1
1265EOF
1266
1267 DEFAULT_DEFAULT_wxUSE_GTK=1
1268 ;;
1269 *-*-osf* )
1270 USE_ALPHA=1
1271 USE_OSF=1
1272 cat >> confdefs.h <<\EOF
1273#define __ALPHA__ 1
1274EOF
1275
1276 cat >> confdefs.h <<\EOF
1277#define __OSF__ 1
1278EOF
1279
1280 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1281 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1282 ;;
1283 *-*-dgux5* )
1284 USE_ALPHA=1
1285 USE_SVR4=1
1286 cat >> confdefs.h <<\EOF
1287#define __ALPHA__ 1
1288EOF
1289
1290 cat >> confdefs.h <<\EOF
1291#define __SVR4__ 1
1292EOF
1293
1294 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1295 ;;
1296 *-*-sysv5* )
1297 USE_SYSV=1
1298 USE_SVR4=1
1299 cat >> confdefs.h <<\EOF
1300#define __SYSV__ 1
1301EOF
1302
1303 cat >> confdefs.h <<\EOF
1304#define __SVR4__ 1
1305EOF
1306
1307 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1308 ;;
1309 *-*-aix* )
1310 USE_AIX=1
1311 USE_SYSV=1
1312 USE_SVR4=1
1313 SO_SUFFIX=a
1314 cat >> confdefs.h <<\EOF
1315#define __AIX__ 1
1316EOF
1317
1318 cat >> confdefs.h <<\EOF
1319#define __SYSV__ 1
1320EOF
1321
1322 cat >> confdefs.h <<\EOF
1323#define __SVR4__ 1
1324EOF
1325
1326 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1327 ;;
1328
1329 *-*-*UnixWare*)
1330 USE_SYSV=1
1331 USE_SVR4=1
1332 USE_UNIXWARE=1
1333 cat >> confdefs.h <<\EOF
1334#define __UNIXWARE__ 1
1335EOF
1336
1337 ;;
1338
1339 *-*-cygwin* | *-*-mingw32* )
1340 SO_SUFFIX=dll
1341 PROGRAM_EXT=".exe"
1342 RESCOMP=windres
1343 DEFAULT_DEFAULT_wxUSE_MSW=1
1344 ;;
1345
1346 *-pc-msdosdjgpp )
1347 USE_UNIX=0
1348 USE_DOS=1
1349 cat >> confdefs.h <<\EOF
1350#define __DOS__ 1
1351EOF
1352
1353 PROGRAM_EXT=".exe"
1354 DEFAULT_DEFAULT_wxUSE_MGL=1
1355 LIBS="$LIBS -lstdc++"
1356 ;;
1357
1358 *-pc-os2_emx | *-pc-os2-emx )
1359 cat >> confdefs.h <<\EOF
1360#define __EMX__ 1
1361EOF
1362
1363 PROGRAM_EXT=".exe"
1364 DEFAULT_DEFAULT_wxUSE_PM=1
1365 ;;
1366
1367 powerpc-*-darwin* )
1368 USE_BSD=1
1369 USE_DARWIN=1
1370 SO_SUFFIX=dylib
1371 cat >> confdefs.h <<\EOF
1372#define __BSD__ 1
1373EOF
1374
1375 cat >> confdefs.h <<\EOF
1376#define __DARWIN__ 1
1377EOF
1378
1379 cat >> confdefs.h <<\EOF
1380#define __POWERPC__ 1
1381EOF
1382
1383 cat >> confdefs.h <<\EOF
1384#define TARGET_CARBON 1
1385EOF
1386
1387 DEFAULT_DEFAULT_wxUSE_MAC=1
1388 ;;
1389
1390 *-*-beos* )
1391 USE_BEOS=1
1392 cat >> confdefs.h <<\EOF
1393#define __BEOS__ 1
1394EOF
1395
1396 ;;
1397
1398 *)
1399 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1400esac
1401
1402
1403
1404
1405 wx_arg_cache_file="configarg.cache"
1406 echo "loading argument cache $wx_arg_cache_file"
1407 rm -f ${wx_arg_cache_file}.tmp
1408 touch ${wx_arg_cache_file}.tmp
1409 touch ${wx_arg_cache_file}
1410
1411
1412DEBUG_CONFIGURE=0
1413if test $DEBUG_CONFIGURE = 1; then
1414 DEFAULT_wxUSE_UNIVERSAL=no
1415
1416 DEFAULT_wxUSE_NANOX=no
1417
1418 DEFAULT_wxUSE_THREADS=yes
1419
1420 DEFAULT_wxUSE_SHARED=yes
1421 DEFAULT_wxUSE_SONAME=no
1422 DEFAULT_wxUSE_OPTIMISE=no
1423 DEFAULT_wxUSE_PROFILE=no
1424 DEFAULT_wxUSE_NO_DEPS=no
1425 DEFAULT_wxUSE_NO_RTTI=no
1426 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1427 DEFAULT_wxUSE_PERMISSIVE=no
1428 DEFAULT_wxUSE_DEBUG_FLAG=yes
1429 DEFAULT_wxUSE_DEBUG_INFO=yes
1430 DEFAULT_wxUSE_DEBUG_GDB=yes
1431 DEFAULT_wxUSE_MEM_TRACING=no
1432 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1433 DEFAULT_wxUSE_DMALLOC=no
1434 DEFAULT_wxUSE_PRECOMP=no
1435 DEFAULT_wxUSE_APPLE_IEEE=no
1436
1437 DEFAULT_wxUSE_LOG=yes
1438 DEFAULT_wxUSE_LOGWINDOW=no
1439 DEFAULT_wxUSE_LOGGUI=no
1440 DEFAULT_wxUSE_LOGDIALOG=no
1441
1442 DEFAULT_wxUSE_GUI=yes
1443 DEFAULT_wxUSE_CONTROLS=no
1444
1445 DEFAULT_wxUSE_REGEX=no
1446 DEFAULT_wxUSE_ZLIB=no
1447 DEFAULT_wxUSE_LIBPNG=no
1448 DEFAULT_wxUSE_LIBJPEG=no
1449 DEFAULT_wxUSE_LIBTIFF=no
1450 DEFAULT_wxUSE_ODBC=no
1451 DEFAULT_wxUSE_OPENGL=no
1452
1453 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1454 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1455 DEFAULT_wxUSE_STD_IOSTREAM=no
1456 DEFAULT_wxUSE_CMDLINE_PARSER=no
1457 DEFAULT_wxUSE_DATETIME=no
1458 DEFAULT_wxUSE_TIMER=no
1459 DEFAULT_wxUSE_STOPWATCH=no
1460 DEFAULT_wxUSE_FILE=no
1461 DEFAULT_wxUSE_FFILE=no
1462 DEFAULT_wxUSE_TEXTBUFFER=no
1463 DEFAULT_wxUSE_TEXTFILE=no
1464 DEFAULT_wxUSE_WAVE=no
1465 DEFAULT_wxUSE_INTL=no
1466 DEFAULT_wxUSE_CONFIG=no
1467 DEFAULT_wxUSE_FONTMAP=no
1468 DEFAULT_wxUSE_STREAMS=no
1469 DEFAULT_wxUSE_SOCKETS=no
1470 DEFAULT_wxUSE_OLE=no
1471 DEFAULT_wxUSE_DATAOBJ=no
1472 DEFAULT_wxUSE_DIALUP_MANAGER=no
1473 DEFAULT_wxUSE_JOYSTICK=no
1474 DEFAULT_wxUSE_DYNLIB_CLASS=no
1475 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1476 DEFAULT_wxUSE_LONGLONG=no
1477 DEFAULT_wxUSE_GEOMETRY=no
1478
1479 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1480 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1481 DEFAULT_wxUSE_POSTSCRIPT=no
1482
1483 DEFAULT_wxUSE_CLIPBOARD=no
1484 DEFAULT_wxUSE_TOOLTIPS=no
1485 DEFAULT_wxUSE_DRAG_AND_DROP=no
1486 DEFAULT_wxUSE_DRAGIMAGE=no
1487 DEFAULT_wxUSE_SPLINES=no
1488
1489 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1490 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1491 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1492
1493 DEFAULT_wxUSE_RESOURCES=no
1494 DEFAULT_wxUSE_CONSTRAINTS=no
1495 DEFAULT_wxUSE_IPC=no
1496 DEFAULT_wxUSE_HELP=no
1497 DEFAULT_wxUSE_MS_HTML_HELP=no
1498 DEFAULT_wxUSE_WXHTML_HELP=no
1499 DEFAULT_wxUSE_TREELAYOUT=no
1500 DEFAULT_wxUSE_METAFILE=no
1501 DEFAULT_wxUSE_MIMETYPE=no
1502 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1503 DEFAULT_wxUSE_PROTOCOL=no
1504 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1505 DEFAULT_wxUSE_PROTOCOL_FTP=no
1506 DEFAULT_wxUSE_PROTOCOL_FILE=no
1507 DEFAULT_wxUSE_URL=no
1508
1509 DEFAULT_wxUSE_COMMONDLGS=no
1510 DEFAULT_wxUSE_CHOICEDLG=no
1511 DEFAULT_wxUSE_COLOURDLG=no
1512 DEFAULT_wxUSE_DIRDLG=no
1513 DEFAULT_wxUSE_FILEDLG=no
1514 DEFAULT_wxUSE_FINDREPLDLG=no
1515 DEFAULT_wxUSE_FONTDLG=no
1516 DEFAULT_wxUSE_MSGDLG=no
1517 DEFAULT_wxUSE_NUMBERDLG=no
1518 DEFAULT_wxUSE_TEXTDLG=no
1519 DEFAULT_wxUSE_SPLASH=no
1520 DEFAULT_wxUSE_STARTUP_TIPS=no
1521 DEFAULT_wxUSE_PROGRESSDLG=no
1522 DEFAULT_wxUSE_WIZARDDLG=no
1523
1524 DEFAULT_wxUSE_MENUS=no
1525 DEFAULT_wxUSE_MINIFRAME=no
1526 DEFAULT_wxUSE_HTML=no
1527 DEFAULT_wxUSE_FILESYSTEM=no
1528 DEFAULT_wxUSE_FS_INET=no
1529 DEFAULT_wxUSE_FS_ZIP=no
1530 DEFAULT_wxUSE_BUSYINFO=no
1531 DEFAULT_wxUSE_ZIPSTREAM=no
1532 DEFAULT_wxUSE_VALIDATORS=no
1533
1534 DEFAULT_wxUSE_ACCEL=no
1535 DEFAULT_wxUSE_BUTTON=no
1536 DEFAULT_wxUSE_BMPBUTTON=no
1537 DEFAULT_wxUSE_CALCTRL=no
1538 DEFAULT_wxUSE_CARET=no
1539 DEFAULT_wxUSE_CHECKBOX=no
1540 DEFAULT_wxUSE_CHECKLST=no
1541 DEFAULT_wxUSE_CHOICE=no
1542 DEFAULT_wxUSE_COMBOBOX=no
1543 DEFAULT_wxUSE_DISPLAY=no
1544 DEFAULT_wxUSE_GAUGE=no
1545 DEFAULT_wxUSE_GRID=no
1546 DEFAULT_wxUSE_IMAGLIST=no
1547 DEFAULT_wxUSE_LISTBOX=no
1548 DEFAULT_wxUSE_LISTCTRL=no
1549 DEFAULT_wxUSE_NOTEBOOK=no
1550 DEFAULT_wxUSE_RADIOBOX=no
1551 DEFAULT_wxUSE_RADIOBTN=no
1552 DEFAULT_wxUSE_SASH=no
1553 DEFAULT_wxUSE_SCROLLBAR=no
1554 DEFAULT_wxUSE_SLIDER=no
1555 DEFAULT_wxUSE_SPINBTN=no
1556 DEFAULT_wxUSE_SPINCTRL=no
1557 DEFAULT_wxUSE_SPLITTER=no
1558 DEFAULT_wxUSE_STATBMP=no
1559 DEFAULT_wxUSE_STATBOX=no
1560 DEFAULT_wxUSE_STATLINE=no
1561 DEFAULT_wxUSE_STATTEXT=no
1562 DEFAULT_wxUSE_STATUSBAR=yes
1563 DEFAULT_wxUSE_TABDIALOG=no
1564 DEFAULT_wxUSE_TEXTCTRL=no
1565 DEFAULT_wxUSE_TOGGLEBTN=no
1566 DEFAULT_wxUSE_TOOLBAR=no
1567 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1568 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1569 DEFAULT_wxUSE_TREECTRL=no
1570 DEFAULT_wxUSE_POPUPWIN=no
1571 DEFAULT_wxUSE_TIPWINDOW=no
1572
1573 DEFAULT_wxUSE_UNICODE=no
1574 DEFAULT_wxUSE_UNICODE_MSLU=no
1575 DEFAULT_wxUSE_WCSRTOMBS=no
1576
1577 DEFAULT_wxUSE_PALETTE=no
1578 DEFAULT_wxUSE_IMAGE=no
1579 DEFAULT_wxUSE_GIF=no
1580 DEFAULT_wxUSE_PCX=no
1581 DEFAULT_wxUSE_PNM=no
1582 DEFAULT_wxUSE_IFF=no
1583 DEFAULT_wxUSE_XPM=no
1584 DEFAULT_wxUSE_ICO_CUR=no
1585 DEFAULT_wxUSE_ACCESSIBILITY=no
1586else
1587 DEFAULT_wxUSE_UNIVERSAL=no
1588
1589 DEFAULT_wxUSE_NANOX=no
1590
1591 DEFAULT_wxUSE_THREADS=yes
1592
1593 DEFAULT_wxUSE_SHARED=yes
1594 DEFAULT_wxUSE_SONAME=no
1595 DEFAULT_wxUSE_OPTIMISE=yes
1596 DEFAULT_wxUSE_PROFILE=no
1597 DEFAULT_wxUSE_NO_DEPS=no
1598 DEFAULT_wxUSE_NO_RTTI=no
1599 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1600 DEFAULT_wxUSE_PERMISSIVE=no
1601 DEFAULT_wxUSE_DEBUG_FLAG=no
1602 DEFAULT_wxUSE_DEBUG_INFO=no
1603 DEFAULT_wxUSE_DEBUG_GDB=no
1604 DEFAULT_wxUSE_MEM_TRACING=no
1605 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1606 DEFAULT_wxUSE_DMALLOC=no
1607 DEFAULT_wxUSE_PRECOMP=no
1608 DEFAULT_wxUSE_APPLE_IEEE=yes
1609
1610 DEFAULT_wxUSE_LOG=yes
1611 DEFAULT_wxUSE_LOGWINDOW=yes
1612 DEFAULT_wxUSE_LOGGUI=yes
1613 DEFAULT_wxUSE_LOGDIALOG=yes
1614
1615 DEFAULT_wxUSE_GUI=yes
1616
1617 DEFAULT_wxUSE_REGEX=yes
1618 DEFAULT_wxUSE_ZLIB=yes
1619 DEFAULT_wxUSE_LIBPNG=yes
1620 DEFAULT_wxUSE_LIBJPEG=yes
1621 DEFAULT_wxUSE_LIBTIFF=yes
1622 DEFAULT_wxUSE_ODBC=no
1623 DEFAULT_wxUSE_OPENGL=no
1624
1625 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1626 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1627 DEFAULT_wxUSE_STD_IOSTREAM=no
1628 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1629 DEFAULT_wxUSE_DATETIME=yes
1630 DEFAULT_wxUSE_TIMER=yes
1631 DEFAULT_wxUSE_STOPWATCH=yes
1632 DEFAULT_wxUSE_FILE=yes
1633 DEFAULT_wxUSE_FFILE=yes
1634 DEFAULT_wxUSE_TEXTBUFFER=yes
1635 DEFAULT_wxUSE_TEXTFILE=yes
1636 DEFAULT_wxUSE_WAVE=no
1637 DEFAULT_wxUSE_INTL=yes
1638 DEFAULT_wxUSE_CONFIG=yes
1639 DEFAULT_wxUSE_FONTMAP=yes
1640 DEFAULT_wxUSE_STREAMS=yes
1641 DEFAULT_wxUSE_SOCKETS=yes
1642 DEFAULT_wxUSE_OLE=yes
1643 DEFAULT_wxUSE_DATAOBJ=yes
1644 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1645 DEFAULT_wxUSE_JOYSTICK=yes
1646 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1647 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1648 DEFAULT_wxUSE_LONGLONG=yes
1649 DEFAULT_wxUSE_GEOMETRY=yes
1650
1651 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1652 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1653 DEFAULT_wxUSE_POSTSCRIPT=yes
1654
1655 DEFAULT_wxUSE_CLIPBOARD=yes
1656 DEFAULT_wxUSE_TOOLTIPS=yes
1657 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1658 DEFAULT_wxUSE_DRAGIMAGE=yes
1659 DEFAULT_wxUSE_SPLINES=yes
1660
1661 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1662 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1663 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1664
1665 DEFAULT_wxUSE_RESOURCES=no
1666 DEFAULT_wxUSE_CONSTRAINTS=yes
1667 DEFAULT_wxUSE_IPC=yes
1668 DEFAULT_wxUSE_HELP=yes
1669 DEFAULT_wxUSE_MS_HTML_HELP=yes
1670 DEFAULT_wxUSE_WXHTML_HELP=yes
1671 DEFAULT_wxUSE_TREELAYOUT=yes
1672 DEFAULT_wxUSE_METAFILE=yes
1673 DEFAULT_wxUSE_MIMETYPE=yes
1674 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1675 DEFAULT_wxUSE_PROTOCOL=yes
1676 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1677 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1678 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1679 DEFAULT_wxUSE_URL=yes
1680
1681 DEFAULT_wxUSE_COMMONDLGS=yes
1682 DEFAULT_wxUSE_CHOICEDLG=yes
1683 DEFAULT_wxUSE_COLOURDLG=yes
1684 DEFAULT_wxUSE_DIRDLG=yes
1685 DEFAULT_wxUSE_FILEDLG=yes
1686 DEFAULT_wxUSE_FINDREPLDLG=yes
1687 DEFAULT_wxUSE_FONTDLG=yes
1688 DEFAULT_wxUSE_MSGDLG=yes
1689 DEFAULT_wxUSE_NUMBERDLG=yes
1690 DEFAULT_wxUSE_TEXTDLG=yes
1691 DEFAULT_wxUSE_SPLASH=yes
1692 DEFAULT_wxUSE_STARTUP_TIPS=yes
1693 DEFAULT_wxUSE_PROGRESSDLG=yes
1694 DEFAULT_wxUSE_WIZARDDLG=yes
1695
1696 DEFAULT_wxUSE_MENUS=yes
1697 DEFAULT_wxUSE_MINIFRAME=yes
1698 DEFAULT_wxUSE_HTML=yes
1699 DEFAULT_wxUSE_FILESYSTEM=yes
1700 DEFAULT_wxUSE_FS_INET=yes
1701 DEFAULT_wxUSE_FS_ZIP=yes
1702 DEFAULT_wxUSE_BUSYINFO=yes
1703 DEFAULT_wxUSE_ZIPSTREAM=yes
1704 DEFAULT_wxUSE_VALIDATORS=yes
1705
1706 DEFAULT_wxUSE_ACCEL=yes
1707 DEFAULT_wxUSE_BUTTON=yes
1708 DEFAULT_wxUSE_BMPBUTTON=yes
1709 DEFAULT_wxUSE_CALCTRL=yes
1710 DEFAULT_wxUSE_CARET=yes
1711 DEFAULT_wxUSE_CHECKBOX=yes
1712 DEFAULT_wxUSE_CHECKLST=yes
1713 DEFAULT_wxUSE_CHOICE=yes
1714 DEFAULT_wxUSE_COMBOBOX=yes
1715 DEFAULT_wxUSE_DISPLAY=no
1716 DEFAULT_wxUSE_GAUGE=yes
1717 DEFAULT_wxUSE_GRID=yes
1718 DEFAULT_wxUSE_IMAGLIST=yes
1719 DEFAULT_wxUSE_LISTBOX=yes
1720 DEFAULT_wxUSE_LISTCTRL=yes
1721 DEFAULT_wxUSE_NOTEBOOK=yes
1722 DEFAULT_wxUSE_RADIOBOX=yes
1723 DEFAULT_wxUSE_RADIOBTN=yes
1724 DEFAULT_wxUSE_SASH=yes
1725 DEFAULT_wxUSE_SCROLLBAR=yes
1726 DEFAULT_wxUSE_SLIDER=yes
1727 DEFAULT_wxUSE_SPINBTN=yes
1728 DEFAULT_wxUSE_SPINCTRL=yes
1729 DEFAULT_wxUSE_SPLITTER=yes
1730 DEFAULT_wxUSE_STATBMP=yes
1731 DEFAULT_wxUSE_STATBOX=yes
1732 DEFAULT_wxUSE_STATLINE=yes
1733 DEFAULT_wxUSE_STATTEXT=yes
1734 DEFAULT_wxUSE_STATUSBAR=yes
1735 DEFAULT_wxUSE_TABDIALOG=no
1736 DEFAULT_wxUSE_TEXTCTRL=yes
1737 DEFAULT_wxUSE_TOGGLEBTN=yes
1738 DEFAULT_wxUSE_TOOLBAR=yes
1739 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1740 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1741 DEFAULT_wxUSE_TREECTRL=yes
1742 DEFAULT_wxUSE_POPUPWIN=yes
1743 DEFAULT_wxUSE_TIPWINDOW=yes
1744
1745 DEFAULT_wxUSE_UNICODE=no
1746 DEFAULT_wxUSE_UNICODE_MSLU=yes
1747 DEFAULT_wxUSE_WCSRTOMBS=no
1748
1749 DEFAULT_wxUSE_PALETTE=yes
1750 DEFAULT_wxUSE_IMAGE=yes
1751 DEFAULT_wxUSE_GIF=yes
1752 DEFAULT_wxUSE_PCX=yes
1753 DEFAULT_wxUSE_IFF=no
1754 DEFAULT_wxUSE_PNM=yes
1755 DEFAULT_wxUSE_XPM=yes
1756 DEFAULT_wxUSE_ICO_CUR=yes
1757 DEFAULT_wxUSE_ACCESSIBILITY=no
1758fi
1759
1760
1761
1762for toolkit in `echo $ALL_TOOLKITS`; do
1763 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1764 if test "x$LINE" != "x" ; then
1765 has_toolkit_in_cache=1
1766 eval "DEFAULT_$LINE"
1767 eval "CACHE_$toolkit=1"
1768 fi
1769done
1770
1771
1772
1773 enablestring=
1774 echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
1775echo "configure:1776: checking for --${enablestring:-enable}-gui" >&5
1776 no_cache=0
1777 # Check whether --enable-gui or --disable-gui was given.
1778if test "${enable_gui+set}" = set; then
1779 enableval="$enable_gui"
1780
1781 if test "$enableval" = yes; then
1782 ac_cv_use_gui='wxUSE_GUI=yes'
1783 else
1784 ac_cv_use_gui='wxUSE_GUI=no'
1785 fi
1786
1787else
1788
1789 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1790 if test "x$LINE" != x ; then
1791 eval "DEFAULT_$LINE"
1792 else
1793 no_cache=1
1794 fi
1795
1796 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1797
1798fi
1799
1800
1801 eval "$ac_cv_use_gui"
1802 if test "$no_cache" != 1; then
1803 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1804 fi
1805
1806 if test "$wxUSE_GUI" = yes; then
1807 echo "$ac_t""yes" 1>&6
1808 else
1809 echo "$ac_t""no" 1>&6
1810 fi
1811
1812
1813if test "$wxUSE_GUI" = "yes"; then
1814
1815
1816 enablestring=
1817 echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
1818echo "configure:1819: checking for --${enablestring:-enable}-universal" >&5
1819 no_cache=0
1820 # Check whether --enable-universal or --disable-universal was given.
1821if test "${enable_universal+set}" = set; then
1822 enableval="$enable_universal"
1823
1824 if test "$enableval" = yes; then
1825 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1826 else
1827 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1828 fi
1829
1830else
1831
1832 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1833 if test "x$LINE" != x ; then
1834 eval "DEFAULT_$LINE"
1835 else
1836 no_cache=1
1837 fi
1838
1839 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1840
1841fi
1842
1843
1844 eval "$ac_cv_use_universal"
1845 if test "$no_cache" != 1; then
1846 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1847 fi
1848
1849 if test "$wxUSE_UNIVERSAL" = yes; then
1850 echo "$ac_t""yes" 1>&6
1851 else
1852 echo "$ac_t""no" 1>&6
1853 fi
1854
1855# Check whether --with-gtk or --without-gtk was given.
1856if test "${with_gtk+set}" = set; then
1857 withval="$with_gtk"
1858 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1859fi
1860
1861# Check whether --with-motif or --without-motif was given.
1862if test "${with_motif+set}" = set; then
1863 withval="$with_motif"
1864 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1865fi
1866
1867# Check whether --with-mac or --without-mac was given.
1868if test "${with_mac+set}" = set; then
1869 withval="$with_mac"
1870 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1871fi
1872
1873# Check whether --with-cocoa or --without-cocoa was given.
1874if test "${with_cocoa+set}" = set; then
1875 withval="$with_cocoa"
1876 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
1877fi
1878
1879# Check whether --with-wine or --without-wine was given.
1880if test "${with_wine+set}" = set; then
1881 withval="$with_wine"
1882 wxUSE_WINE="$withval" CACHE_WINE=1
1883fi
1884
1885# Check whether --with-msw or --without-msw was given.
1886if test "${with_msw+set}" = set; then
1887 withval="$with_msw"
1888 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1889fi
1890
1891# Check whether --with-pm or --without-pm was given.
1892if test "${with_pm+set}" = set; then
1893 withval="$with_pm"
1894 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1895fi
1896
1897# Check whether --with-mgl or --without-mgl was given.
1898if test "${with_mgl+set}" = set; then
1899 withval="$with_mgl"
1900 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1901fi
1902
1903# Check whether --with-microwin or --without-microwin was given.
1904if test "${with_microwin+set}" = set; then
1905 withval="$with_microwin"
1906 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1907fi
1908
1909# Check whether --with-x11 or --without-x11 was given.
1910if test "${with_x11+set}" = set; then
1911 withval="$with_x11"
1912 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1913fi
1914
1915
1916 enablestring=
1917 echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
1918echo "configure:1919: checking for --${enablestring:-enable}-nanox" >&5
1919 no_cache=0
1920 # Check whether --enable-nanox or --disable-nanox was given.
1921if test "${enable_nanox+set}" = set; then
1922 enableval="$enable_nanox"
1923
1924 if test "$enableval" = yes; then
1925 ac_cv_use_nanox='wxUSE_NANOX=yes'
1926 else
1927 ac_cv_use_nanox='wxUSE_NANOX=no'
1928 fi
1929
1930else
1931
1932 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1933 if test "x$LINE" != x ; then
1934 eval "DEFAULT_$LINE"
1935 else
1936 no_cache=1
1937 fi
1938
1939 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1940
1941fi
1942
1943
1944 eval "$ac_cv_use_nanox"
1945 if test "$no_cache" != 1; then
1946 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1947 fi
1948
1949 if test "$wxUSE_NANOX" = yes; then
1950 echo "$ac_t""yes" 1>&6
1951 else
1952 echo "$ac_t""no" 1>&6
1953 fi
1954
1955
1956
1957 enablestring=
1958 echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
1959echo "configure:1960: checking for --${enablestring:-enable}-gtk2" >&5
1960 no_cache=0
1961 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1962if test "${enable_gtk2+set}" = set; then
1963 enableval="$enable_gtk2"
1964
1965 if test "$enableval" = yes; then
1966 ac_cv_use_gtk2='wxUSE_GTK2=yes'
1967 else
1968 ac_cv_use_gtk2='wxUSE_GTK2=no'
1969 fi
1970
1971else
1972
1973 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1974 if test "x$LINE" != x ; then
1975 eval "DEFAULT_$LINE"
1976 else
1977 no_cache=1
1978 fi
1979
1980 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
1981
1982fi
1983
1984
1985 eval "$ac_cv_use_gtk2"
1986 if test "$no_cache" != 1; then
1987 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1988 fi
1989
1990 if test "$wxUSE_GTK2" = yes; then
1991 echo "$ac_t""yes" 1>&6
1992 else
1993 echo "$ac_t""no" 1>&6
1994 fi
1995
1996
1997
1998 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1999echo "configure:2000: checking for --with-libpng" >&5
2000 no_cache=0
2001 # Check whether --with-libpng or --without-libpng was given.
2002if test "${with_libpng+set}" = set; then
2003 withval="$with_libpng"
2004
2005 if test "$withval" = yes; then
2006 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2007 elif test "$withval" = no; then
2008 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2009 elif test "$withval" = sys; then
2010 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2011 elif test "$withval" = builtin; then
2012 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2013 else
2014 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2015 fi
2016
2017else
2018
2019 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2020 if test "x$LINE" != x ; then
2021 eval "DEFAULT_$LINE"
2022 else
2023 no_cache=1
2024 fi
2025
2026 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2027
2028fi
2029
2030
2031 eval "$ac_cv_use_libpng"
2032 if test "$no_cache" != 1; then
2033 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2034 fi
2035
2036 if test "$wxUSE_LIBPNG" = yes; then
2037 echo "$ac_t""yes" 1>&6
2038 elif test "$wxUSE_LIBPNG" = no; then
2039 echo "$ac_t""no" 1>&6
2040 elif test "$wxUSE_LIBPNG" = sys; then
2041 echo "$ac_t""system version" 1>&6
2042 elif test "$wxUSE_LIBPNG" = builtin; then
2043 echo "$ac_t""builtin version" 1>&6
2044 else
2045 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2046 fi
2047
2048
2049 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2050echo "configure:2051: checking for --with-libjpeg" >&5
2051 no_cache=0
2052 # Check whether --with-libjpeg or --without-libjpeg was given.
2053if test "${with_libjpeg+set}" = set; then
2054 withval="$with_libjpeg"
2055
2056 if test "$withval" = yes; then
2057 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2058 elif test "$withval" = no; then
2059 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2060 elif test "$withval" = sys; then
2061 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2062 elif test "$withval" = builtin; then
2063 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2064 else
2065 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2066 fi
2067
2068else
2069
2070 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2071 if test "x$LINE" != x ; then
2072 eval "DEFAULT_$LINE"
2073 else
2074 no_cache=1
2075 fi
2076
2077 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2078
2079fi
2080
2081
2082 eval "$ac_cv_use_libjpeg"
2083 if test "$no_cache" != 1; then
2084 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2085 fi
2086
2087 if test "$wxUSE_LIBJPEG" = yes; then
2088 echo "$ac_t""yes" 1>&6
2089 elif test "$wxUSE_LIBJPEG" = no; then
2090 echo "$ac_t""no" 1>&6
2091 elif test "$wxUSE_LIBJPEG" = sys; then
2092 echo "$ac_t""system version" 1>&6
2093 elif test "$wxUSE_LIBJPEG" = builtin; then
2094 echo "$ac_t""builtin version" 1>&6
2095 else
2096 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2097 fi
2098
2099
2100 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2101echo "configure:2102: checking for --with-libtiff" >&5
2102 no_cache=0
2103 # Check whether --with-libtiff or --without-libtiff was given.
2104if test "${with_libtiff+set}" = set; then
2105 withval="$with_libtiff"
2106
2107 if test "$withval" = yes; then
2108 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2109 elif test "$withval" = no; then
2110 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2111 elif test "$withval" = sys; then
2112 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2113 elif test "$withval" = builtin; then
2114 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2115 else
2116 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2117 fi
2118
2119else
2120
2121 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2122 if test "x$LINE" != x ; then
2123 eval "DEFAULT_$LINE"
2124 else
2125 no_cache=1
2126 fi
2127
2128 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2129
2130fi
2131
2132
2133 eval "$ac_cv_use_libtiff"
2134 if test "$no_cache" != 1; then
2135 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2136 fi
2137
2138 if test "$wxUSE_LIBTIFF" = yes; then
2139 echo "$ac_t""yes" 1>&6
2140 elif test "$wxUSE_LIBTIFF" = no; then
2141 echo "$ac_t""no" 1>&6
2142 elif test "$wxUSE_LIBTIFF" = sys; then
2143 echo "$ac_t""system version" 1>&6
2144 elif test "$wxUSE_LIBTIFF" = builtin; then
2145 echo "$ac_t""builtin version" 1>&6
2146 else
2147 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2148 fi
2149
2150
2151 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2152echo "configure:2153: checking for --with-opengl" >&5
2153 no_cache=0
2154 # Check whether --with-opengl or --without-opengl was given.
2155if test "${with_opengl+set}" = set; then
2156 withval="$with_opengl"
2157
2158 if test "$withval" = yes; then
2159 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2160 else
2161 ac_cv_use_opengl='wxUSE_OPENGL=no'
2162 fi
2163
2164else
2165
2166 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2167 if test "x$LINE" != x ; then
2168 eval "DEFAULT_$LINE"
2169 else
2170 no_cache=1
2171 fi
2172
2173 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2174
2175fi
2176
2177
2178 eval "$ac_cv_use_opengl"
2179 if test "$no_cache" != 1; then
2180 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2181 fi
2182
2183 if test "$wxUSE_OPENGL" = yes; then
2184 echo "$ac_t""yes" 1>&6
2185 else
2186 echo "$ac_t""no" 1>&6
2187 fi
2188
2189
2190fi
2191
2192
2193 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2194echo "configure:2195: checking for --with-dmalloc" >&5
2195 no_cache=0
2196 # Check whether --with-dmalloc or --without-dmalloc was given.
2197if test "${with_dmalloc+set}" = set; then
2198 withval="$with_dmalloc"
2199
2200 if test "$withval" = yes; then
2201 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2202 else
2203 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2204 fi
2205
2206else
2207
2208 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2209 if test "x$LINE" != x ; then
2210 eval "DEFAULT_$LINE"
2211 else
2212 no_cache=1
2213 fi
2214
2215 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2216
2217fi
2218
2219
2220 eval "$ac_cv_use_dmalloc"
2221 if test "$no_cache" != 1; then
2222 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2223 fi
2224
2225 if test "$wxUSE_DMALLOC" = yes; then
2226 echo "$ac_t""yes" 1>&6
2227 else
2228 echo "$ac_t""no" 1>&6
2229 fi
2230
2231
2232 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2233echo "configure:2234: checking for --with-regex" >&5
2234 no_cache=0
2235 # Check whether --with-regex or --without-regex was given.
2236if test "${with_regex+set}" = set; then
2237 withval="$with_regex"
2238
2239 if test "$withval" = yes; then
2240 ac_cv_use_regex='wxUSE_REGEX=yes'
2241 elif test "$withval" = no; then
2242 ac_cv_use_regex='wxUSE_REGEX=no'
2243 elif test "$withval" = sys; then
2244 ac_cv_use_regex='wxUSE_REGEX=sys'
2245 elif test "$withval" = builtin; then
2246 ac_cv_use_regex='wxUSE_REGEX=builtin'
2247 else
2248 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2249 fi
2250
2251else
2252
2253 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2254 if test "x$LINE" != x ; then
2255 eval "DEFAULT_$LINE"
2256 else
2257 no_cache=1
2258 fi
2259
2260 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2261
2262fi
2263
2264
2265 eval "$ac_cv_use_regex"
2266 if test "$no_cache" != 1; then
2267 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2268 fi
2269
2270 if test "$wxUSE_REGEX" = yes; then
2271 echo "$ac_t""yes" 1>&6
2272 elif test "$wxUSE_REGEX" = no; then
2273 echo "$ac_t""no" 1>&6
2274 elif test "$wxUSE_REGEX" = sys; then
2275 echo "$ac_t""system version" 1>&6
2276 elif test "$wxUSE_REGEX" = builtin; then
2277 echo "$ac_t""builtin version" 1>&6
2278 else
2279 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2280 fi
2281
2282
2283 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2284echo "configure:2285: checking for --with-zlib" >&5
2285 no_cache=0
2286 # Check whether --with-zlib or --without-zlib was given.
2287if test "${with_zlib+set}" = set; then
2288 withval="$with_zlib"
2289
2290 if test "$withval" = yes; then
2291 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2292 elif test "$withval" = no; then
2293 ac_cv_use_zlib='wxUSE_ZLIB=no'
2294 elif test "$withval" = sys; then
2295 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2296 elif test "$withval" = builtin; then
2297 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2298 else
2299 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2300 fi
2301
2302else
2303
2304 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2305 if test "x$LINE" != x ; then
2306 eval "DEFAULT_$LINE"
2307 else
2308 no_cache=1
2309 fi
2310
2311 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2312
2313fi
2314
2315
2316 eval "$ac_cv_use_zlib"
2317 if test "$no_cache" != 1; then
2318 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2319 fi
2320
2321 if test "$wxUSE_ZLIB" = yes; then
2322 echo "$ac_t""yes" 1>&6
2323 elif test "$wxUSE_ZLIB" = no; then
2324 echo "$ac_t""no" 1>&6
2325 elif test "$wxUSE_ZLIB" = sys; then
2326 echo "$ac_t""system version" 1>&6
2327 elif test "$wxUSE_ZLIB" = builtin; then
2328 echo "$ac_t""builtin version" 1>&6
2329 else
2330 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2331 fi
2332
2333
2334 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2335echo "configure:2336: checking for --with-odbc" >&5
2336 no_cache=0
2337 # Check whether --with-odbc or --without-odbc was given.
2338if test "${with_odbc+set}" = set; then
2339 withval="$with_odbc"
2340
2341 if test "$withval" = yes; then
2342 ac_cv_use_odbc='wxUSE_ODBC=yes'
2343 elif test "$withval" = no; then
2344 ac_cv_use_odbc='wxUSE_ODBC=no'
2345 elif test "$withval" = sys; then
2346 ac_cv_use_odbc='wxUSE_ODBC=sys'
2347 elif test "$withval" = builtin; then
2348 ac_cv_use_odbc='wxUSE_ODBC=builtin'
2349 else
2350 { echo "configure: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2351 fi
2352
2353else
2354
2355 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2356 if test "x$LINE" != x ; then
2357 eval "DEFAULT_$LINE"
2358 else
2359 no_cache=1
2360 fi
2361
2362 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2363
2364fi
2365
2366
2367 eval "$ac_cv_use_odbc"
2368 if test "$no_cache" != 1; then
2369 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2370 fi
2371
2372 if test "$wxUSE_ODBC" = yes; then
2373 echo "$ac_t""yes" 1>&6
2374 elif test "$wxUSE_ODBC" = no; then
2375 echo "$ac_t""no" 1>&6
2376 elif test "$wxUSE_ODBC" = sys; then
2377 echo "$ac_t""system version" 1>&6
2378 elif test "$wxUSE_ODBC" = builtin; then
2379 echo "$ac_t""builtin version" 1>&6
2380 else
2381 { echo "configure: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2382 fi
2383
2384
2385
2386
2387 enablestring=
2388 echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
2389echo "configure:2390: checking for --${enablestring:-enable}-shared" >&5
2390 no_cache=0
2391 # Check whether --enable-shared or --disable-shared was given.
2392if test "${enable_shared+set}" = set; then
2393 enableval="$enable_shared"
2394
2395 if test "$enableval" = yes; then
2396 ac_cv_use_shared='wxUSE_SHARED=yes'
2397 else
2398 ac_cv_use_shared='wxUSE_SHARED=no'
2399 fi
2400
2401else
2402
2403 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2404 if test "x$LINE" != x ; then
2405 eval "DEFAULT_$LINE"
2406 else
2407 no_cache=1
2408 fi
2409
2410 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2411
2412fi
2413
2414
2415 eval "$ac_cv_use_shared"
2416 if test "$no_cache" != 1; then
2417 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2418 fi
2419
2420 if test "$wxUSE_SHARED" = yes; then
2421 echo "$ac_t""yes" 1>&6
2422 else
2423 echo "$ac_t""no" 1>&6
2424 fi
2425
2426
2427 enablestring=
2428 echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
2429echo "configure:2430: checking for --${enablestring:-enable}-soname" >&5
2430 no_cache=0
2431 # Check whether --enable-soname or --disable-soname was given.
2432if test "${enable_soname+set}" = set; then
2433 enableval="$enable_soname"
2434
2435 if test "$enableval" = yes; then
2436 ac_cv_use_soname='wxUSE_SONAME=yes'
2437 else
2438 ac_cv_use_soname='wxUSE_SONAME=no'
2439 fi
2440
2441else
2442
2443 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2444 if test "x$LINE" != x ; then
2445 eval "DEFAULT_$LINE"
2446 else
2447 no_cache=1
2448 fi
2449
2450 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2451
2452fi
2453
2454
2455 eval "$ac_cv_use_soname"
2456 if test "$no_cache" != 1; then
2457 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2458 fi
2459
2460 if test "$wxUSE_SONAME" = yes; then
2461 echo "$ac_t""yes" 1>&6
2462 else
2463 echo "$ac_t""no" 1>&6
2464 fi
2465
2466
2467 enablestring=
2468 echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
2469echo "configure:2470: checking for --${enablestring:-enable}-optimise" >&5
2470 no_cache=0
2471 # Check whether --enable-optimise or --disable-optimise was given.
2472if test "${enable_optimise+set}" = set; then
2473 enableval="$enable_optimise"
2474
2475 if test "$enableval" = yes; then
2476 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2477 else
2478 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2479 fi
2480
2481else
2482
2483 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2484 if test "x$LINE" != x ; then
2485 eval "DEFAULT_$LINE"
2486 else
2487 no_cache=1
2488 fi
2489
2490 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2491
2492fi
2493
2494
2495 eval "$ac_cv_use_optimise"
2496 if test "$no_cache" != 1; then
2497 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2498 fi
2499
2500 if test "$wxUSE_OPTIMISE" = yes; then
2501 echo "$ac_t""yes" 1>&6
2502 else
2503 echo "$ac_t""no" 1>&6
2504 fi
2505
2506
2507 enablestring=
2508 echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
2509echo "configure:2510: checking for --${enablestring:-enable}-debug" >&5
2510 no_cache=0
2511 # Check whether --enable-debug or --disable-debug was given.
2512if test "${enable_debug+set}" = set; then
2513 enableval="$enable_debug"
2514
2515 if test "$enableval" = yes; then
2516 ac_cv_use_debug='wxUSE_DEBUG=yes'
2517 else
2518 ac_cv_use_debug='wxUSE_DEBUG=no'
2519 fi
2520
2521else
2522
2523 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2524 if test "x$LINE" != x ; then
2525 eval "DEFAULT_$LINE"
2526 else
2527 no_cache=1
2528 fi
2529
2530 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2531
2532fi
2533
2534
2535 eval "$ac_cv_use_debug"
2536 if test "$no_cache" != 1; then
2537 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2538 fi
2539
2540 if test "$wxUSE_DEBUG" = yes; then
2541 echo "$ac_t""yes" 1>&6
2542 else
2543 echo "$ac_t""no" 1>&6
2544 fi
2545
2546
2547
2548 enablestring=
2549 echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
2550echo "configure:2551: checking for --${enablestring:-enable}-precomp" >&5
2551 no_cache=0
2552 # Check whether --enable-precomp or --disable-precomp was given.
2553if test "${enable_precomp+set}" = set; then
2554 enableval="$enable_precomp"
2555
2556 if test "$enableval" = yes; then
2557 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2558 else
2559 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2560 fi
2561
2562else
2563
2564 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2565 if test "x$LINE" != x ; then
2566 eval "DEFAULT_$LINE"
2567 else
2568 no_cache=1
2569 fi
2570
2571 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2572
2573fi
2574
2575
2576 eval "$ac_cv_use_precomp"
2577 if test "$no_cache" != 1; then
2578 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2579 fi
2580
2581 if test "$wxUSE_PRECOMP" = yes; then
2582 echo "$ac_t""yes" 1>&6
2583 else
2584 echo "$ac_t""no" 1>&6
2585 fi
2586
2587
2588if test "$wxUSE_DEBUG" = "yes"; then
2589 DEFAULT_wxUSE_DEBUG_FLAG=yes
2590 DEFAULT_wxUSE_DEBUG_INFO=yes
2591elif test "$wxUSE_DEBUG" = "no"; then
2592 DEFAULT_wxUSE_DEBUG_FLAG=no
2593 DEFAULT_wxUSE_DEBUG_INFO=no
2594fi
2595
2596
2597 enablestring=
2598 echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
2599echo "configure:2600: checking for --${enablestring:-enable}-debug_flag" >&5
2600 no_cache=0
2601 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2602if test "${enable_debug_flag+set}" = set; then
2603 enableval="$enable_debug_flag"
2604
2605 if test "$enableval" = yes; then
2606 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2607 else
2608 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2609 fi
2610
2611else
2612
2613 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2614 if test "x$LINE" != x ; then
2615 eval "DEFAULT_$LINE"
2616 else
2617 no_cache=1
2618 fi
2619
2620 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2621
2622fi
2623
2624
2625 eval "$ac_cv_use_debug_flag"
2626 if test "$no_cache" != 1; then
2627 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2628 fi
2629
2630 if test "$wxUSE_DEBUG_FLAG" = yes; then
2631 echo "$ac_t""yes" 1>&6
2632 else
2633 echo "$ac_t""no" 1>&6
2634 fi
2635
2636
2637 enablestring=
2638 echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
2639echo "configure:2640: checking for --${enablestring:-enable}-debug_info" >&5
2640 no_cache=0
2641 # Check whether --enable-debug_info or --disable-debug_info was given.
2642if test "${enable_debug_info+set}" = set; then
2643 enableval="$enable_debug_info"
2644
2645 if test "$enableval" = yes; then
2646 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2647 else
2648 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2649 fi
2650
2651else
2652
2653 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2654 if test "x$LINE" != x ; then
2655 eval "DEFAULT_$LINE"
2656 else
2657 no_cache=1
2658 fi
2659
2660 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2661
2662fi
2663
2664
2665 eval "$ac_cv_use_debug_info"
2666 if test "$no_cache" != 1; then
2667 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2668 fi
2669
2670 if test "$wxUSE_DEBUG_INFO" = yes; then
2671 echo "$ac_t""yes" 1>&6
2672 else
2673 echo "$ac_t""no" 1>&6
2674 fi
2675
2676
2677 enablestring=
2678 echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
2679echo "configure:2680: checking for --${enablestring:-enable}-debug_gdb" >&5
2680 no_cache=0
2681 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2682if test "${enable_debug_gdb+set}" = set; then
2683 enableval="$enable_debug_gdb"
2684
2685 if test "$enableval" = yes; then
2686 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2687 else
2688 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2689 fi
2690
2691else
2692
2693 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2694 if test "x$LINE" != x ; then
2695 eval "DEFAULT_$LINE"
2696 else
2697 no_cache=1
2698 fi
2699
2700 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2701
2702fi
2703
2704
2705 eval "$ac_cv_use_debug_gdb"
2706 if test "$no_cache" != 1; then
2707 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2708 fi
2709
2710 if test "$wxUSE_DEBUG_GDB" = yes; then
2711 echo "$ac_t""yes" 1>&6
2712 else
2713 echo "$ac_t""no" 1>&6
2714 fi
2715
2716
2717 enablestring=
2718 echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
2719echo "configure:2720: checking for --${enablestring:-enable}-debug_cntxt" >&5
2720 no_cache=0
2721 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2722if test "${enable_debug_cntxt+set}" = set; then
2723 enableval="$enable_debug_cntxt"
2724
2725 if test "$enableval" = yes; then
2726 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2727 else
2728 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2729 fi
2730
2731else
2732
2733 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2734 if test "x$LINE" != x ; then
2735 eval "DEFAULT_$LINE"
2736 else
2737 no_cache=1
2738 fi
2739
2740 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2741
2742fi
2743
2744
2745 eval "$ac_cv_use_debug_cntxt"
2746 if test "$no_cache" != 1; then
2747 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2748 fi
2749
2750 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2751 echo "$ac_t""yes" 1>&6
2752 else
2753 echo "$ac_t""no" 1>&6
2754 fi
2755
2756
2757 enablestring=
2758 echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
2759echo "configure:2760: checking for --${enablestring:-enable}-mem_tracing" >&5
2760 no_cache=0
2761 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2762if test "${enable_mem_tracing+set}" = set; then
2763 enableval="$enable_mem_tracing"
2764
2765 if test "$enableval" = yes; then
2766 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2767 else
2768 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2769 fi
2770
2771else
2772
2773 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2774 if test "x$LINE" != x ; then
2775 eval "DEFAULT_$LINE"
2776 else
2777 no_cache=1
2778 fi
2779
2780 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2781
2782fi
2783
2784
2785 eval "$ac_cv_use_mem_tracing"
2786 if test "$no_cache" != 1; then
2787 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2788 fi
2789
2790 if test "$wxUSE_MEM_TRACING" = yes; then
2791 echo "$ac_t""yes" 1>&6
2792 else
2793 echo "$ac_t""no" 1>&6
2794 fi
2795
2796
2797 enablestring=
2798 echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
2799echo "configure:2800: checking for --${enablestring:-enable}-profile" >&5
2800 no_cache=0
2801 # Check whether --enable-profile or --disable-profile was given.
2802if test "${enable_profile+set}" = set; then
2803 enableval="$enable_profile"
2804
2805 if test "$enableval" = yes; then
2806 ac_cv_use_profile='wxUSE_PROFILE=yes'
2807 else
2808 ac_cv_use_profile='wxUSE_PROFILE=no'
2809 fi
2810
2811else
2812
2813 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2814 if test "x$LINE" != x ; then
2815 eval "DEFAULT_$LINE"
2816 else
2817 no_cache=1
2818 fi
2819
2820 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2821
2822fi
2823
2824
2825 eval "$ac_cv_use_profile"
2826 if test "$no_cache" != 1; then
2827 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2828 fi
2829
2830 if test "$wxUSE_PROFILE" = yes; then
2831 echo "$ac_t""yes" 1>&6
2832 else
2833 echo "$ac_t""no" 1>&6
2834 fi
2835
2836
2837 enablestring=
2838 echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
2839echo "configure:2840: checking for --${enablestring:-enable}-no_rtti" >&5
2840 no_cache=0
2841 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2842if test "${enable_no_rtti+set}" = set; then
2843 enableval="$enable_no_rtti"
2844
2845 if test "$enableval" = yes; then
2846 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2847 else
2848 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2849 fi
2850
2851else
2852
2853 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2854 if test "x$LINE" != x ; then
2855 eval "DEFAULT_$LINE"
2856 else
2857 no_cache=1
2858 fi
2859
2860 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2861
2862fi
2863
2864
2865 eval "$ac_cv_use_no_rtti"
2866 if test "$no_cache" != 1; then
2867 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2868 fi
2869
2870 if test "$wxUSE_NO_RTTI" = yes; then
2871 echo "$ac_t""yes" 1>&6
2872 else
2873 echo "$ac_t""no" 1>&6
2874 fi
2875
2876
2877 enablestring=
2878 echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
2879echo "configure:2880: checking for --${enablestring:-enable}-no_exceptions" >&5
2880 no_cache=0
2881 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2882if test "${enable_no_exceptions+set}" = set; then
2883 enableval="$enable_no_exceptions"
2884
2885 if test "$enableval" = yes; then
2886 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2887 else
2888 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2889 fi
2890
2891else
2892
2893 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2894 if test "x$LINE" != x ; then
2895 eval "DEFAULT_$LINE"
2896 else
2897 no_cache=1
2898 fi
2899
2900 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2901
2902fi
2903
2904
2905 eval "$ac_cv_use_no_exceptions"
2906 if test "$no_cache" != 1; then
2907 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2908 fi
2909
2910 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2911 echo "$ac_t""yes" 1>&6
2912 else
2913 echo "$ac_t""no" 1>&6
2914 fi
2915
2916
2917 enablestring=
2918 echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
2919echo "configure:2920: checking for --${enablestring:-enable}-permissive" >&5
2920 no_cache=0
2921 # Check whether --enable-permissive or --disable-permissive was given.
2922if test "${enable_permissive+set}" = set; then
2923 enableval="$enable_permissive"
2924
2925 if test "$enableval" = yes; then
2926 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2927 else
2928 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2929 fi
2930
2931else
2932
2933 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2934 if test "x$LINE" != x ; then
2935 eval "DEFAULT_$LINE"
2936 else
2937 no_cache=1
2938 fi
2939
2940 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2941
2942fi
2943
2944
2945 eval "$ac_cv_use_permissive"
2946 if test "$no_cache" != 1; then
2947 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2948 fi
2949
2950 if test "$wxUSE_PERMISSIVE" = yes; then
2951 echo "$ac_t""yes" 1>&6
2952 else
2953 echo "$ac_t""no" 1>&6
2954 fi
2955
2956
2957 enablestring=
2958 echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
2959echo "configure:2960: checking for --${enablestring:-enable}-no_deps" >&5
2960 no_cache=0
2961 # Check whether --enable-no_deps or --disable-no_deps was given.
2962if test "${enable_no_deps+set}" = set; then
2963 enableval="$enable_no_deps"
2964
2965 if test "$enableval" = yes; then
2966 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2967 else
2968 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2969 fi
2970
2971else
2972
2973 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2974 if test "x$LINE" != x ; then
2975 eval "DEFAULT_$LINE"
2976 else
2977 no_cache=1
2978 fi
2979
2980 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2981
2982fi
2983
2984
2985 eval "$ac_cv_use_no_deps"
2986 if test "$no_cache" != 1; then
2987 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2988 fi
2989
2990 if test "$wxUSE_NO_DEPS" = yes; then
2991 echo "$ac_t""yes" 1>&6
2992 else
2993 echo "$ac_t""no" 1>&6
2994 fi
2995
2996
2997
2998 enablestring=
2999 echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
3000echo "configure:3001: checking for --${enablestring:-enable}-compat20" >&5
3001 no_cache=0
3002 # Check whether --enable-compat20 or --disable-compat20 was given.
3003if test "${enable_compat20+set}" = set; then
3004 enableval="$enable_compat20"
3005
3006 if test "$enableval" = yes; then
3007 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
3008 else
3009 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3010 fi
3011
3012else
3013
3014 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3015 if test "x$LINE" != x ; then
3016 eval "DEFAULT_$LINE"
3017 else
3018 no_cache=1
3019 fi
3020
3021 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
3022
3023fi
3024
3025
3026 eval "$ac_cv_use_compat20"
3027 if test "$no_cache" != 1; then
3028 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3029 fi
3030
3031 if test "$WXWIN_COMPATIBILITY_2" = yes; then
3032 echo "$ac_t""yes" 1>&6
3033 else
3034 echo "$ac_t""no" 1>&6
3035 fi
3036
3037
3038 enablestring=
3039 echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
3040echo "configure:3041: checking for --${enablestring:-enable}-compat22" >&5
3041 no_cache=0
3042 # Check whether --enable-compat22 or --disable-compat22 was given.
3043if test "${enable_compat22+set}" = set; then
3044 enableval="$enable_compat22"
3045
3046 if test "$enableval" = yes; then
3047 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3048 else
3049 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3050 fi
3051
3052else
3053
3054 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3055 if test "x$LINE" != x ; then
3056 eval "DEFAULT_$LINE"
3057 else
3058 no_cache=1
3059 fi
3060
3061 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3062
3063fi
3064
3065
3066 eval "$ac_cv_use_compat22"
3067 if test "$no_cache" != 1; then
3068 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3069 fi
3070
3071 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3072 echo "$ac_t""yes" 1>&6
3073 else
3074 echo "$ac_t""no" 1>&6
3075 fi
3076
3077
3078 enablestring=disable
3079 echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6
3080echo "configure:3081: checking for --${enablestring:-enable}-compat24" >&5
3081 no_cache=0
3082 # Check whether --enable-compat24 or --disable-compat24 was given.
3083if test "${enable_compat24+set}" = set; then
3084 enableval="$enable_compat24"
3085
3086 if test "$enableval" = yes; then
3087 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3088 else
3089 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3090 fi
3091
3092else
3093
3094 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3095 if test "x$LINE" != x ; then
3096 eval "DEFAULT_$LINE"
3097 else
3098 no_cache=1
3099 fi
3100
3101 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3102
3103fi
3104
3105
3106 eval "$ac_cv_use_compat24"
3107 if test "$no_cache" != 1; then
3108 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3109 fi
3110
3111 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3112 echo "$ac_t""yes" 1>&6
3113 else
3114 echo "$ac_t""no" 1>&6
3115 fi
3116
3117
3118# Check whether --enable-rpath or --disable-rpath was given.
3119if test "${enable_rpath+set}" = set; then
3120 enableval="$enable_rpath"
3121 wxRPATH_DIR="$enableval"
3122fi
3123
3124
3125if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3126 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3127fi
3128
3129
3130
3131
3132 enablestring=
3133 echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
3134echo "configure:3135: checking for --${enablestring:-enable}-intl" >&5
3135 no_cache=0
3136 # Check whether --enable-intl or --disable-intl was given.
3137if test "${enable_intl+set}" = set; then
3138 enableval="$enable_intl"
3139
3140 if test "$enableval" = yes; then
3141 ac_cv_use_intl='wxUSE_INTL=yes'
3142 else
3143 ac_cv_use_intl='wxUSE_INTL=no'
3144 fi
3145
3146else
3147
3148 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3149 if test "x$LINE" != x ; then
3150 eval "DEFAULT_$LINE"
3151 else
3152 no_cache=1
3153 fi
3154
3155 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3156
3157fi
3158
3159
3160 eval "$ac_cv_use_intl"
3161 if test "$no_cache" != 1; then
3162 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3163 fi
3164
3165 if test "$wxUSE_INTL" = yes; then
3166 echo "$ac_t""yes" 1>&6
3167 else
3168 echo "$ac_t""no" 1>&6
3169 fi
3170
3171
3172 enablestring=
3173 echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
3174echo "configure:3175: checking for --${enablestring:-enable}-config" >&5
3175 no_cache=0
3176 # Check whether --enable-config or --disable-config was given.
3177if test "${enable_config+set}" = set; then
3178 enableval="$enable_config"
3179
3180 if test "$enableval" = yes; then
3181 ac_cv_use_config='wxUSE_CONFIG=yes'
3182 else
3183 ac_cv_use_config='wxUSE_CONFIG=no'
3184 fi
3185
3186else
3187
3188 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3189 if test "x$LINE" != x ; then
3190 eval "DEFAULT_$LINE"
3191 else
3192 no_cache=1
3193 fi
3194
3195 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3196
3197fi
3198
3199
3200 eval "$ac_cv_use_config"
3201 if test "$no_cache" != 1; then
3202 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3203 fi
3204
3205 if test "$wxUSE_CONFIG" = yes; then
3206 echo "$ac_t""yes" 1>&6
3207 else
3208 echo "$ac_t""no" 1>&6
3209 fi
3210
3211
3212
3213 enablestring=
3214 echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
3215echo "configure:3216: checking for --${enablestring:-enable}-protocols" >&5
3216 no_cache=0
3217 # Check whether --enable-protocols or --disable-protocols was given.
3218if test "${enable_protocols+set}" = set; then
3219 enableval="$enable_protocols"
3220
3221 if test "$enableval" = yes; then
3222 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3223 else
3224 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3225 fi
3226
3227else
3228
3229 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3230 if test "x$LINE" != x ; then
3231 eval "DEFAULT_$LINE"
3232 else
3233 no_cache=1
3234 fi
3235
3236 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3237
3238fi
3239
3240
3241 eval "$ac_cv_use_protocols"
3242 if test "$no_cache" != 1; then
3243 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3244 fi
3245
3246 if test "$wxUSE_PROTOCOL" = yes; then
3247 echo "$ac_t""yes" 1>&6
3248 else
3249 echo "$ac_t""no" 1>&6
3250 fi
3251
3252
3253 enablestring=
3254 echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
3255echo "configure:3256: checking for --${enablestring:-enable}-ftp" >&5
3256 no_cache=0
3257 # Check whether --enable-ftp or --disable-ftp was given.
3258if test "${enable_ftp+set}" = set; then
3259 enableval="$enable_ftp"
3260
3261 if test "$enableval" = yes; then
3262 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3263 else
3264 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3265 fi
3266
3267else
3268
3269 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3270 if test "x$LINE" != x ; then
3271 eval "DEFAULT_$LINE"
3272 else
3273 no_cache=1
3274 fi
3275
3276 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3277
3278fi
3279
3280
3281 eval "$ac_cv_use_ftp"
3282 if test "$no_cache" != 1; then
3283 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3284 fi
3285
3286 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3287 echo "$ac_t""yes" 1>&6
3288 else
3289 echo "$ac_t""no" 1>&6
3290 fi
3291
3292
3293 enablestring=
3294 echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
3295echo "configure:3296: checking for --${enablestring:-enable}-http" >&5
3296 no_cache=0
3297 # Check whether --enable-http or --disable-http was given.
3298if test "${enable_http+set}" = set; then
3299 enableval="$enable_http"
3300
3301 if test "$enableval" = yes; then
3302 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3303 else
3304 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3305 fi
3306
3307else
3308
3309 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3310 if test "x$LINE" != x ; then
3311 eval "DEFAULT_$LINE"
3312 else
3313 no_cache=1
3314 fi
3315
3316 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3317
3318fi
3319
3320
3321 eval "$ac_cv_use_http"
3322 if test "$no_cache" != 1; then
3323 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3324 fi
3325
3326 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3327 echo "$ac_t""yes" 1>&6
3328 else
3329 echo "$ac_t""no" 1>&6
3330 fi
3331
3332
3333 enablestring=
3334 echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
3335echo "configure:3336: checking for --${enablestring:-enable}-fileproto" >&5
3336 no_cache=0
3337 # Check whether --enable-fileproto or --disable-fileproto was given.
3338if test "${enable_fileproto+set}" = set; then
3339 enableval="$enable_fileproto"
3340
3341 if test "$enableval" = yes; then
3342 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3343 else
3344 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3345 fi
3346
3347else
3348
3349 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3350 if test "x$LINE" != x ; then
3351 eval "DEFAULT_$LINE"
3352 else
3353 no_cache=1
3354 fi
3355
3356 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3357
3358fi
3359
3360
3361 eval "$ac_cv_use_fileproto"
3362 if test "$no_cache" != 1; then
3363 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3364 fi
3365
3366 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3367 echo "$ac_t""yes" 1>&6
3368 else
3369 echo "$ac_t""no" 1>&6
3370 fi
3371
3372
3373 enablestring=
3374 echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
3375echo "configure:3376: checking for --${enablestring:-enable}-sockets" >&5
3376 no_cache=0
3377 # Check whether --enable-sockets or --disable-sockets was given.
3378if test "${enable_sockets+set}" = set; then
3379 enableval="$enable_sockets"
3380
3381 if test "$enableval" = yes; then
3382 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3383 else
3384 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3385 fi
3386
3387else
3388
3389 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3390 if test "x$LINE" != x ; then
3391 eval "DEFAULT_$LINE"
3392 else
3393 no_cache=1
3394 fi
3395
3396 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3397
3398fi
3399
3400
3401 eval "$ac_cv_use_sockets"
3402 if test "$no_cache" != 1; then
3403 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3404 fi
3405
3406 if test "$wxUSE_SOCKETS" = yes; then
3407 echo "$ac_t""yes" 1>&6
3408 else
3409 echo "$ac_t""no" 1>&6
3410 fi
3411
3412
3413 enablestring=
3414 echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
3415echo "configure:3416: checking for --${enablestring:-enable}-ole" >&5
3416 no_cache=0
3417 # Check whether --enable-ole or --disable-ole was given.
3418if test "${enable_ole+set}" = set; then
3419 enableval="$enable_ole"
3420
3421 if test "$enableval" = yes; then
3422 ac_cv_use_ole='wxUSE_OLE=yes'
3423 else
3424 ac_cv_use_ole='wxUSE_OLE=no'
3425 fi
3426
3427else
3428
3429 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3430 if test "x$LINE" != x ; then
3431 eval "DEFAULT_$LINE"
3432 else
3433 no_cache=1
3434 fi
3435
3436 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3437
3438fi
3439
3440
3441 eval "$ac_cv_use_ole"
3442 if test "$no_cache" != 1; then
3443 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3444 fi
3445
3446 if test "$wxUSE_OLE" = yes; then
3447 echo "$ac_t""yes" 1>&6
3448 else
3449 echo "$ac_t""no" 1>&6
3450 fi
3451
3452
3453 enablestring=
3454 echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
3455echo "configure:3456: checking for --${enablestring:-enable}-dataobj" >&5
3456 no_cache=0
3457 # Check whether --enable-dataobj or --disable-dataobj was given.
3458if test "${enable_dataobj+set}" = set; then
3459 enableval="$enable_dataobj"
3460
3461 if test "$enableval" = yes; then
3462 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3463 else
3464 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3465 fi
3466
3467else
3468
3469 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3470 if test "x$LINE" != x ; then
3471 eval "DEFAULT_$LINE"
3472 else
3473 no_cache=1
3474 fi
3475
3476 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3477
3478fi
3479
3480
3481 eval "$ac_cv_use_dataobj"
3482 if test "$no_cache" != 1; then
3483 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3484 fi
3485
3486 if test "$wxUSE_DATAOBJ" = yes; then
3487 echo "$ac_t""yes" 1>&6
3488 else
3489 echo "$ac_t""no" 1>&6
3490 fi
3491
3492
3493
3494 enablestring=
3495 echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
3496echo "configure:3497: checking for --${enablestring:-enable}-ipc" >&5
3497 no_cache=0
3498 # Check whether --enable-ipc or --disable-ipc was given.
3499if test "${enable_ipc+set}" = set; then
3500 enableval="$enable_ipc"
3501
3502 if test "$enableval" = yes; then
3503 ac_cv_use_ipc='wxUSE_IPC=yes'
3504 else
3505 ac_cv_use_ipc='wxUSE_IPC=no'
3506 fi
3507
3508else
3509
3510 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3511 if test "x$LINE" != x ; then
3512 eval "DEFAULT_$LINE"
3513 else
3514 no_cache=1
3515 fi
3516
3517 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3518
3519fi
3520
3521
3522 eval "$ac_cv_use_ipc"
3523 if test "$no_cache" != 1; then
3524 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3525 fi
3526
3527 if test "$wxUSE_IPC" = yes; then
3528 echo "$ac_t""yes" 1>&6
3529 else
3530 echo "$ac_t""no" 1>&6
3531 fi
3532
3533
3534
3535 enablestring=
3536 echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
3537echo "configure:3538: checking for --${enablestring:-enable}-cmdline" >&5
3538 no_cache=0
3539 # Check whether --enable-cmdline or --disable-cmdline was given.
3540if test "${enable_cmdline+set}" = set; then
3541 enableval="$enable_cmdline"
3542
3543 if test "$enableval" = yes; then
3544 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3545 else
3546 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3547 fi
3548
3549else
3550
3551 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3552 if test "x$LINE" != x ; then
3553 eval "DEFAULT_$LINE"
3554 else
3555 no_cache=1
3556 fi
3557
3558 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3559
3560fi
3561
3562
3563 eval "$ac_cv_use_cmdline"
3564 if test "$no_cache" != 1; then
3565 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3566 fi
3567
3568 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3569 echo "$ac_t""yes" 1>&6
3570 else
3571 echo "$ac_t""no" 1>&6
3572 fi
3573
3574
3575 enablestring=
3576 echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
3577echo "configure:3578: checking for --${enablestring:-enable}-datetime" >&5
3578 no_cache=0
3579 # Check whether --enable-datetime or --disable-datetime was given.
3580if test "${enable_datetime+set}" = set; then
3581 enableval="$enable_datetime"
3582
3583 if test "$enableval" = yes; then
3584 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3585 else
3586 ac_cv_use_datetime='wxUSE_DATETIME=no'
3587 fi
3588
3589else
3590
3591 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3592 if test "x$LINE" != x ; then
3593 eval "DEFAULT_$LINE"
3594 else
3595 no_cache=1
3596 fi
3597
3598 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3599
3600fi
3601
3602
3603 eval "$ac_cv_use_datetime"
3604 if test "$no_cache" != 1; then
3605 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3606 fi
3607
3608 if test "$wxUSE_DATETIME" = yes; then
3609 echo "$ac_t""yes" 1>&6
3610 else
3611 echo "$ac_t""no" 1>&6
3612 fi
3613
3614
3615 enablestring=
3616 echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
3617echo "configure:3618: checking for --${enablestring:-enable}-stopwatch" >&5
3618 no_cache=0
3619 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3620if test "${enable_stopwatch+set}" = set; then
3621 enableval="$enable_stopwatch"
3622
3623 if test "$enableval" = yes; then
3624 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3625 else
3626 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3627 fi
3628
3629else
3630
3631 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3632 if test "x$LINE" != x ; then
3633 eval "DEFAULT_$LINE"
3634 else
3635 no_cache=1
3636 fi
3637
3638 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3639
3640fi
3641
3642
3643 eval "$ac_cv_use_stopwatch"
3644 if test "$no_cache" != 1; then
3645 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3646 fi
3647
3648 if test "$wxUSE_STOPWATCH" = yes; then
3649 echo "$ac_t""yes" 1>&6
3650 else
3651 echo "$ac_t""no" 1>&6
3652 fi
3653
3654
3655 enablestring=
3656 echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
3657echo "configure:3658: checking for --${enablestring:-enable}-dialupman" >&5
3658 no_cache=0
3659 # Check whether --enable-dialupman or --disable-dialupman was given.
3660if test "${enable_dialupman+set}" = set; then
3661 enableval="$enable_dialupman"
3662
3663 if test "$enableval" = yes; then
3664 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3665 else
3666 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3667 fi
3668
3669else
3670
3671 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3672 if test "x$LINE" != x ; then
3673 eval "DEFAULT_$LINE"
3674 else
3675 no_cache=1
3676 fi
3677
3678 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3679
3680fi
3681
3682
3683 eval "$ac_cv_use_dialupman"
3684 if test "$no_cache" != 1; then
3685 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3686 fi
3687
3688 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3689 echo "$ac_t""yes" 1>&6
3690 else
3691 echo "$ac_t""no" 1>&6
3692 fi
3693
3694
3695 enablestring=
3696 echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
3697echo "configure:3698: checking for --${enablestring:-enable}-apple_ieee" >&5
3698 no_cache=0
3699 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3700if test "${enable_apple_ieee+set}" = set; then
3701 enableval="$enable_apple_ieee"
3702
3703 if test "$enableval" = yes; then
3704 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3705 else
3706 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3707 fi
3708
3709else
3710
3711 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3712 if test "x$LINE" != x ; then
3713 eval "DEFAULT_$LINE"
3714 else
3715 no_cache=1
3716 fi
3717
3718 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3719
3720fi
3721
3722
3723 eval "$ac_cv_use_apple_ieee"
3724 if test "$no_cache" != 1; then
3725 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3726 fi
3727
3728 if test "$wxUSE_APPLE_IEEE" = yes; then
3729 echo "$ac_t""yes" 1>&6
3730 else
3731 echo "$ac_t""no" 1>&6
3732 fi
3733
3734
3735 enablestring=
3736 echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
3737echo "configure:3738: checking for --${enablestring:-enable}-timer" >&5
3738 no_cache=0
3739 # Check whether --enable-timer or --disable-timer was given.
3740if test "${enable_timer+set}" = set; then
3741 enableval="$enable_timer"
3742
3743 if test "$enableval" = yes; then
3744 ac_cv_use_timer='wxUSE_TIMER=yes'
3745 else
3746 ac_cv_use_timer='wxUSE_TIMER=no'
3747 fi
3748
3749else
3750
3751 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3752 if test "x$LINE" != x ; then
3753 eval "DEFAULT_$LINE"
3754 else
3755 no_cache=1
3756 fi
3757
3758 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3759
3760fi
3761
3762
3763 eval "$ac_cv_use_timer"
3764 if test "$no_cache" != 1; then
3765 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3766 fi
3767
3768 if test "$wxUSE_TIMER" = yes; then
3769 echo "$ac_t""yes" 1>&6
3770 else
3771 echo "$ac_t""no" 1>&6
3772 fi
3773
3774
3775 enablestring=
3776 echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
3777echo "configure:3778: checking for --${enablestring:-enable}-wave" >&5
3778 no_cache=0
3779 # Check whether --enable-wave or --disable-wave was given.
3780if test "${enable_wave+set}" = set; then
3781 enableval="$enable_wave"
3782
3783 if test "$enableval" = yes; then
3784 ac_cv_use_wave='wxUSE_WAVE=yes'
3785 else
3786 ac_cv_use_wave='wxUSE_WAVE=no'
3787 fi
3788
3789else
3790
3791 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3792 if test "x$LINE" != x ; then
3793 eval "DEFAULT_$LINE"
3794 else
3795 no_cache=1
3796 fi
3797
3798 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3799
3800fi
3801
3802
3803 eval "$ac_cv_use_wave"
3804 if test "$no_cache" != 1; then
3805 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3806 fi
3807
3808 if test "$wxUSE_WAVE" = yes; then
3809 echo "$ac_t""yes" 1>&6
3810 else
3811 echo "$ac_t""no" 1>&6
3812 fi
3813
3814
3815 enablestring=
3816 echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
3817echo "configure:3818: checking for --${enablestring:-enable}-fraction" >&5
3818 no_cache=0
3819 # Check whether --enable-fraction or --disable-fraction was given.
3820if test "${enable_fraction+set}" = set; then
3821 enableval="$enable_fraction"
3822
3823 if test "$enableval" = yes; then
3824 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3825 else
3826 ac_cv_use_fraction='wxUSE_FRACTION=no'
3827 fi
3828
3829else
3830
3831 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3832 if test "x$LINE" != x ; then
3833 eval "DEFAULT_$LINE"
3834 else
3835 no_cache=1
3836 fi
3837
3838 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3839
3840fi
3841
3842
3843 eval "$ac_cv_use_fraction"
3844 if test "$no_cache" != 1; then
3845 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3846 fi
3847
3848 if test "$wxUSE_FRACTION" = yes; then
3849 echo "$ac_t""yes" 1>&6
3850 else
3851 echo "$ac_t""no" 1>&6
3852 fi
3853
3854
3855 enablestring=
3856 echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
3857echo "configure:3858: checking for --${enablestring:-enable}-dynlib" >&5
3858 no_cache=0
3859 # Check whether --enable-dynlib or --disable-dynlib was given.
3860if test "${enable_dynlib+set}" = set; then
3861 enableval="$enable_dynlib"
3862
3863 if test "$enableval" = yes; then
3864 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3865 else
3866 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3867 fi
3868
3869else
3870
3871 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3872 if test "x$LINE" != x ; then
3873 eval "DEFAULT_$LINE"
3874 else
3875 no_cache=1
3876 fi
3877
3878 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3879
3880fi
3881
3882
3883 eval "$ac_cv_use_dynlib"
3884 if test "$no_cache" != 1; then
3885 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3886 fi
3887
3888 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3889 echo "$ac_t""yes" 1>&6
3890 else
3891 echo "$ac_t""no" 1>&6
3892 fi
3893
3894
3895 enablestring=
3896 echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
3897echo "configure:3898: checking for --${enablestring:-enable}-dynamicloader" >&5
3898 no_cache=0
3899 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3900if test "${enable_dynamicloader+set}" = set; then
3901 enableval="$enable_dynamicloader"
3902
3903 if test "$enableval" = yes; then
3904 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3905 else
3906 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3907 fi
3908
3909else
3910
3911 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3912 if test "x$LINE" != x ; then
3913 eval "DEFAULT_$LINE"
3914 else
3915 no_cache=1
3916 fi
3917
3918 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3919
3920fi
3921
3922
3923 eval "$ac_cv_use_dynamicloader"
3924 if test "$no_cache" != 1; then
3925 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3926 fi
3927
3928 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3929 echo "$ac_t""yes" 1>&6
3930 else
3931 echo "$ac_t""no" 1>&6
3932 fi
3933
3934
3935 enablestring=
3936 echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
3937echo "configure:3938: checking for --${enablestring:-enable}-longlong" >&5
3938 no_cache=0
3939 # Check whether --enable-longlong or --disable-longlong was given.
3940if test "${enable_longlong+set}" = set; then
3941 enableval="$enable_longlong"
3942
3943 if test "$enableval" = yes; then
3944 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3945 else
3946 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3947 fi
3948
3949else
3950
3951 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3952 if test "x$LINE" != x ; then
3953 eval "DEFAULT_$LINE"
3954 else
3955 no_cache=1
3956 fi
3957
3958 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3959
3960fi
3961
3962
3963 eval "$ac_cv_use_longlong"
3964 if test "$no_cache" != 1; then
3965 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3966 fi
3967
3968 if test "$wxUSE_LONGLONG" = yes; then
3969 echo "$ac_t""yes" 1>&6
3970 else
3971 echo "$ac_t""no" 1>&6
3972 fi
3973
3974
3975 enablestring=
3976 echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
3977echo "configure:3978: checking for --${enablestring:-enable}-geometry" >&5
3978 no_cache=0
3979 # Check whether --enable-geometry or --disable-geometry was given.
3980if test "${enable_geometry+set}" = set; then
3981 enableval="$enable_geometry"
3982
3983 if test "$enableval" = yes; then
3984 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3985 else
3986 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3987 fi
3988
3989else
3990
3991 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3992 if test "x$LINE" != x ; then
3993 eval "DEFAULT_$LINE"
3994 else
3995 no_cache=1
3996 fi
3997
3998 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3999
4000fi
4001
4002
4003 eval "$ac_cv_use_geometry"
4004 if test "$no_cache" != 1; then
4005 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4006 fi
4007
4008 if test "$wxUSE_GEOMETRY" = yes; then
4009 echo "$ac_t""yes" 1>&6
4010 else
4011 echo "$ac_t""no" 1>&6
4012 fi
4013
4014
4015 enablestring=
4016 echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
4017echo "configure:4018: checking for --${enablestring:-enable}-log" >&5
4018 no_cache=0
4019 # Check whether --enable-log or --disable-log was given.
4020if test "${enable_log+set}" = set; then
4021 enableval="$enable_log"
4022
4023 if test "$enableval" = yes; then
4024 ac_cv_use_log='wxUSE_LOG=yes'
4025 else
4026 ac_cv_use_log='wxUSE_LOG=no'
4027 fi
4028
4029else
4030
4031 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4032 if test "x$LINE" != x ; then
4033 eval "DEFAULT_$LINE"
4034 else
4035 no_cache=1
4036 fi
4037
4038 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4039
4040fi
4041
4042
4043 eval "$ac_cv_use_log"
4044 if test "$no_cache" != 1; then
4045 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4046 fi
4047
4048 if test "$wxUSE_LOG" = yes; then
4049 echo "$ac_t""yes" 1>&6
4050 else
4051 echo "$ac_t""no" 1>&6
4052 fi
4053
4054
4055 enablestring=
4056 echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
4057echo "configure:4058: checking for --${enablestring:-enable}-streams" >&5
4058 no_cache=0
4059 # Check whether --enable-streams or --disable-streams was given.
4060if test "${enable_streams+set}" = set; then
4061 enableval="$enable_streams"
4062
4063 if test "$enableval" = yes; then
4064 ac_cv_use_streams='wxUSE_STREAMS=yes'
4065 else
4066 ac_cv_use_streams='wxUSE_STREAMS=no'
4067 fi
4068
4069else
4070
4071 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4072 if test "x$LINE" != x ; then
4073 eval "DEFAULT_$LINE"
4074 else
4075 no_cache=1
4076 fi
4077
4078 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
4079
4080fi
4081
4082
4083 eval "$ac_cv_use_streams"
4084 if test "$no_cache" != 1; then
4085 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4086 fi
4087
4088 if test "$wxUSE_STREAMS" = yes; then
4089 echo "$ac_t""yes" 1>&6
4090 else
4091 echo "$ac_t""no" 1>&6
4092 fi
4093
4094
4095 enablestring=
4096 echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
4097echo "configure:4098: checking for --${enablestring:-enable}-file" >&5
4098 no_cache=0
4099 # Check whether --enable-file or --disable-file was given.
4100if test "${enable_file+set}" = set; then
4101 enableval="$enable_file"
4102
4103 if test "$enableval" = yes; then
4104 ac_cv_use_file='wxUSE_FILE=yes'
4105 else
4106 ac_cv_use_file='wxUSE_FILE=no'
4107 fi
4108
4109else
4110
4111 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4112 if test "x$LINE" != x ; then
4113 eval "DEFAULT_$LINE"
4114 else
4115 no_cache=1
4116 fi
4117
4118 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4119
4120fi
4121
4122
4123 eval "$ac_cv_use_file"
4124 if test "$no_cache" != 1; then
4125 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4126 fi
4127
4128 if test "$wxUSE_FILE" = yes; then
4129 echo "$ac_t""yes" 1>&6
4130 else
4131 echo "$ac_t""no" 1>&6
4132 fi
4133
4134
4135 enablestring=
4136 echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
4137echo "configure:4138: checking for --${enablestring:-enable}-ffile" >&5
4138 no_cache=0
4139 # Check whether --enable-ffile or --disable-ffile was given.
4140if test "${enable_ffile+set}" = set; then
4141 enableval="$enable_ffile"
4142
4143 if test "$enableval" = yes; then
4144 ac_cv_use_ffile='wxUSE_FFILE=yes'
4145 else
4146 ac_cv_use_ffile='wxUSE_FFILE=no'
4147 fi
4148
4149else
4150
4151 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4152 if test "x$LINE" != x ; then
4153 eval "DEFAULT_$LINE"
4154 else
4155 no_cache=1
4156 fi
4157
4158 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4159
4160fi
4161
4162
4163 eval "$ac_cv_use_ffile"
4164 if test "$no_cache" != 1; then
4165 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4166 fi
4167
4168 if test "$wxUSE_FFILE" = yes; then
4169 echo "$ac_t""yes" 1>&6
4170 else
4171 echo "$ac_t""no" 1>&6
4172 fi
4173
4174
4175 enablestring=
4176 echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
4177echo "configure:4178: checking for --${enablestring:-enable}-textbuf" >&5
4178 no_cache=0
4179 # Check whether --enable-textbuf or --disable-textbuf was given.
4180if test "${enable_textbuf+set}" = set; then
4181 enableval="$enable_textbuf"
4182
4183 if test "$enableval" = yes; then
4184 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4185 else
4186 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4187 fi
4188
4189else
4190
4191 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4192 if test "x$LINE" != x ; then
4193 eval "DEFAULT_$LINE"
4194 else
4195 no_cache=1
4196 fi
4197
4198 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4199
4200fi
4201
4202
4203 eval "$ac_cv_use_textbuf"
4204 if test "$no_cache" != 1; then
4205 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4206 fi
4207
4208 if test "$wxUSE_TEXTBUFFER" = yes; then
4209 echo "$ac_t""yes" 1>&6
4210 else
4211 echo "$ac_t""no" 1>&6
4212 fi
4213
4214
4215 enablestring=
4216 echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
4217echo "configure:4218: checking for --${enablestring:-enable}-textfile" >&5
4218 no_cache=0
4219 # Check whether --enable-textfile or --disable-textfile was given.
4220if test "${enable_textfile+set}" = set; then
4221 enableval="$enable_textfile"
4222
4223 if test "$enableval" = yes; then
4224 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4225 else
4226 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4227 fi
4228
4229else
4230
4231 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4232 if test "x$LINE" != x ; then
4233 eval "DEFAULT_$LINE"
4234 else
4235 no_cache=1
4236 fi
4237
4238 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4239
4240fi
4241
4242
4243 eval "$ac_cv_use_textfile"
4244 if test "$no_cache" != 1; then
4245 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4246 fi
4247
4248 if test "$wxUSE_TEXTFILE" = yes; then
4249 echo "$ac_t""yes" 1>&6
4250 else
4251 echo "$ac_t""no" 1>&6
4252 fi
4253
4254
4255 enablestring=
4256 echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
4257echo "configure:4258: checking for --${enablestring:-enable}-fontmap" >&5
4258 no_cache=0
4259 # Check whether --enable-fontmap or --disable-fontmap was given.
4260if test "${enable_fontmap+set}" = set; then
4261 enableval="$enable_fontmap"
4262
4263 if test "$enableval" = yes; then
4264 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4265 else
4266 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4267 fi
4268
4269else
4270
4271 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4272 if test "x$LINE" != x ; then
4273 eval "DEFAULT_$LINE"
4274 else
4275 no_cache=1
4276 fi
4277
4278 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4279
4280fi
4281
4282
4283 eval "$ac_cv_use_fontmap"
4284 if test "$no_cache" != 1; then
4285 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4286 fi
4287
4288 if test "$wxUSE_FONTMAP" = yes; then
4289 echo "$ac_t""yes" 1>&6
4290 else
4291 echo "$ac_t""no" 1>&6
4292 fi
4293
4294
4295 enablestring=
4296 echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
4297echo "configure:4298: checking for --${enablestring:-enable}-unicode" >&5
4298 no_cache=0
4299 # Check whether --enable-unicode or --disable-unicode was given.
4300if test "${enable_unicode+set}" = set; then
4301 enableval="$enable_unicode"
4302
4303 if test "$enableval" = yes; then
4304 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4305 else
4306 ac_cv_use_unicode='wxUSE_UNICODE=no'
4307 fi
4308
4309else
4310
4311 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4312 if test "x$LINE" != x ; then
4313 eval "DEFAULT_$LINE"
4314 else
4315 no_cache=1
4316 fi
4317
4318 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4319
4320fi
4321
4322
4323 eval "$ac_cv_use_unicode"
4324 if test "$no_cache" != 1; then
4325 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4326 fi
4327
4328 if test "$wxUSE_UNICODE" = yes; then
4329 echo "$ac_t""yes" 1>&6
4330 else
4331 echo "$ac_t""no" 1>&6
4332 fi
4333
4334
4335 enablestring=
4336 echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
4337echo "configure:4338: checking for --${enablestring:-enable}-mslu" >&5
4338 no_cache=0
4339 # Check whether --enable-mslu or --disable-mslu was given.
4340if test "${enable_mslu+set}" = set; then
4341 enableval="$enable_mslu"
4342
4343 if test "$enableval" = yes; then
4344 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4345 else
4346 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4347 fi
4348
4349else
4350
4351 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4352 if test "x$LINE" != x ; then
4353 eval "DEFAULT_$LINE"
4354 else
4355 no_cache=1
4356 fi
4357
4358 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4359
4360fi
4361
4362
4363 eval "$ac_cv_use_mslu"
4364 if test "$no_cache" != 1; then
4365 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4366 fi
4367
4368 if test "$wxUSE_UNICODE_MSLU" = yes; then
4369 echo "$ac_t""yes" 1>&6
4370 else
4371 echo "$ac_t""no" 1>&6
4372 fi
4373
4374
4375 enablestring=
4376 echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
4377echo "configure:4378: checking for --${enablestring:-enable}-wxprintfv" >&5
4378 no_cache=0
4379 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4380if test "${enable_wxprintfv+set}" = set; then
4381 enableval="$enable_wxprintfv"
4382
4383 if test "$enableval" = yes; then
4384 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4385 else
4386 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4387 fi
4388
4389else
4390
4391 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4392 if test "x$LINE" != x ; then
4393 eval "DEFAULT_$LINE"
4394 else
4395 no_cache=1
4396 fi
4397
4398 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4399
4400fi
4401
4402
4403 eval "$ac_cv_use_wxprintfv"
4404 if test "$no_cache" != 1; then
4405 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4406 fi
4407
4408 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4409 echo "$ac_t""yes" 1>&6
4410 else
4411 echo "$ac_t""no" 1>&6
4412 fi
4413
4414
4415 enablestring=
4416 echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
4417echo "configure:4418: checking for --${enablestring:-enable}-std_iostreams" >&5
4418 no_cache=0
4419 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4420if test "${enable_std_iostreams+set}" = set; then
4421 enableval="$enable_std_iostreams"
4422
4423 if test "$enableval" = yes; then
4424 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4425 else
4426 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4427 fi
4428
4429else
4430
4431 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4432 if test "x$LINE" != x ; then
4433 eval "DEFAULT_$LINE"
4434 else
4435 no_cache=1
4436 fi
4437
4438 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4439
4440fi
4441
4442
4443 eval "$ac_cv_use_std_iostreams"
4444 if test "$no_cache" != 1; then
4445 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4446 fi
4447
4448 if test "$wxUSE_STD_IOSTREAM" = yes; then
4449 echo "$ac_t""yes" 1>&6
4450 else
4451 echo "$ac_t""no" 1>&6
4452 fi
4453
4454
4455 enablestring=
4456 echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
4457echo "configure:4458: checking for --${enablestring:-enable}-filesystem" >&5
4458 no_cache=0
4459 # Check whether --enable-filesystem or --disable-filesystem was given.
4460if test "${enable_filesystem+set}" = set; then
4461 enableval="$enable_filesystem"
4462
4463 if test "$enableval" = yes; then
4464 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4465 else
4466 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4467 fi
4468
4469else
4470
4471 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4472 if test "x$LINE" != x ; then
4473 eval "DEFAULT_$LINE"
4474 else
4475 no_cache=1
4476 fi
4477
4478 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4479
4480fi
4481
4482
4483 eval "$ac_cv_use_filesystem"
4484 if test "$no_cache" != 1; then
4485 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4486 fi
4487
4488 if test "$wxUSE_FILESYSTEM" = yes; then
4489 echo "$ac_t""yes" 1>&6
4490 else
4491 echo "$ac_t""no" 1>&6
4492 fi
4493
4494
4495 enablestring=
4496 echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
4497echo "configure:4498: checking for --${enablestring:-enable}-fs_inet" >&5
4498 no_cache=0
4499 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4500if test "${enable_fs_inet+set}" = set; then
4501 enableval="$enable_fs_inet"
4502
4503 if test "$enableval" = yes; then
4504 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4505 else
4506 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4507 fi
4508
4509else
4510
4511 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4512 if test "x$LINE" != x ; then
4513 eval "DEFAULT_$LINE"
4514 else
4515 no_cache=1
4516 fi
4517
4518 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4519
4520fi
4521
4522
4523 eval "$ac_cv_use_fs_inet"
4524 if test "$no_cache" != 1; then
4525 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4526 fi
4527
4528 if test "$wxUSE_FS_INET" = yes; then
4529 echo "$ac_t""yes" 1>&6
4530 else
4531 echo "$ac_t""no" 1>&6
4532 fi
4533
4534
4535 enablestring=
4536 echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
4537echo "configure:4538: checking for --${enablestring:-enable}-fs_zip" >&5
4538 no_cache=0
4539 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4540if test "${enable_fs_zip+set}" = set; then
4541 enableval="$enable_fs_zip"
4542
4543 if test "$enableval" = yes; then
4544 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4545 else
4546 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4547 fi
4548
4549else
4550
4551 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4552 if test "x$LINE" != x ; then
4553 eval "DEFAULT_$LINE"
4554 else
4555 no_cache=1
4556 fi
4557
4558 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4559
4560fi
4561
4562
4563 eval "$ac_cv_use_fs_zip"
4564 if test "$no_cache" != 1; then
4565 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4566 fi
4567
4568 if test "$wxUSE_FS_ZIP" = yes; then
4569 echo "$ac_t""yes" 1>&6
4570 else
4571 echo "$ac_t""no" 1>&6
4572 fi
4573
4574
4575 enablestring=
4576 echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
4577echo "configure:4578: checking for --${enablestring:-enable}-zipstream" >&5
4578 no_cache=0
4579 # Check whether --enable-zipstream or --disable-zipstream was given.
4580if test "${enable_zipstream+set}" = set; then
4581 enableval="$enable_zipstream"
4582
4583 if test "$enableval" = yes; then
4584 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4585 else
4586 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4587 fi
4588
4589else
4590
4591 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4592 if test "x$LINE" != x ; then
4593 eval "DEFAULT_$LINE"
4594 else
4595 no_cache=1
4596 fi
4597
4598 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4599
4600fi
4601
4602
4603 eval "$ac_cv_use_zipstream"
4604 if test "$no_cache" != 1; then
4605 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4606 fi
4607
4608 if test "$wxUSE_ZIPSTREAM" = yes; then
4609 echo "$ac_t""yes" 1>&6
4610 else
4611 echo "$ac_t""no" 1>&6
4612 fi
4613
4614
4615
4616 enablestring=
4617 echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
4618echo "configure:4619: checking for --${enablestring:-enable}-catch_segvs" >&5
4619 no_cache=0
4620 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4621if test "${enable_catch_segvs+set}" = set; then
4622 enableval="$enable_catch_segvs"
4623
4624 if test "$enableval" = yes; then
4625 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4626 else
4627 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4628 fi
4629
4630else
4631
4632 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4633 if test "x$LINE" != x ; then
4634 eval "DEFAULT_$LINE"
4635 else
4636 no_cache=1
4637 fi
4638
4639 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4640
4641fi
4642
4643
4644 eval "$ac_cv_use_catch_segvs"
4645 if test "$no_cache" != 1; then
4646 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4647 fi
4648
4649 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4650 echo "$ac_t""yes" 1>&6
4651 else
4652 echo "$ac_t""no" 1>&6
4653 fi
4654
4655
4656 enablestring=
4657 echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
4658echo "configure:4659: checking for --${enablestring:-enable}-snglinst" >&5
4659 no_cache=0
4660 # Check whether --enable-snglinst or --disable-snglinst was given.
4661if test "${enable_snglinst+set}" = set; then
4662 enableval="$enable_snglinst"
4663
4664 if test "$enableval" = yes; then
4665 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4666 else
4667 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4668 fi
4669
4670else
4671
4672 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4673 if test "x$LINE" != x ; then
4674 eval "DEFAULT_$LINE"
4675 else
4676 no_cache=1
4677 fi
4678
4679 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4680
4681fi
4682
4683
4684 eval "$ac_cv_use_snglinst"
4685 if test "$no_cache" != 1; then
4686 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4687 fi
4688
4689 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4690 echo "$ac_t""yes" 1>&6
4691 else
4692 echo "$ac_t""no" 1>&6
4693 fi
4694
4695
4696
4697 enablestring=
4698 echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
4699echo "configure:4700: checking for --${enablestring:-enable}-mimetype" >&5
4700 no_cache=0
4701 # Check whether --enable-mimetype or --disable-mimetype was given.
4702if test "${enable_mimetype+set}" = set; then
4703 enableval="$enable_mimetype"
4704
4705 if test "$enableval" = yes; then
4706 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4707 else
4708 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4709 fi
4710
4711else
4712
4713 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4714 if test "x$LINE" != x ; then
4715 eval "DEFAULT_$LINE"
4716 else
4717 no_cache=1
4718 fi
4719
4720 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4721
4722fi
4723
4724
4725 eval "$ac_cv_use_mimetype"
4726 if test "$no_cache" != 1; then
4727 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4728 fi
4729
4730 if test "$wxUSE_MIMETYPE" = yes; then
4731 echo "$ac_t""yes" 1>&6
4732 else
4733 echo "$ac_t""no" 1>&6
4734 fi
4735
4736
4737 enablestring=
4738 echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
4739echo "configure:4740: checking for --${enablestring:-enable}-system_options" >&5
4740 no_cache=0
4741 # Check whether --enable-system_options or --disable-system_options was given.
4742if test "${enable_system_options+set}" = set; then
4743 enableval="$enable_system_options"
4744
4745 if test "$enableval" = yes; then
4746 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4747 else
4748 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4749 fi
4750
4751else
4752
4753 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4754 if test "x$LINE" != x ; then
4755 eval "DEFAULT_$LINE"
4756 else
4757 no_cache=1
4758 fi
4759
4760 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4761
4762fi
4763
4764
4765 eval "$ac_cv_use_system_options"
4766 if test "$no_cache" != 1; then
4767 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4768 fi
4769
4770 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4771 echo "$ac_t""yes" 1>&6
4772 else
4773 echo "$ac_t""no" 1>&6
4774 fi
4775
4776
4777
4778 enablestring=
4779 echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
4780echo "configure:4781: checking for --${enablestring:-enable}-url" >&5
4781 no_cache=0
4782 # Check whether --enable-url or --disable-url was given.
4783if test "${enable_url+set}" = set; then
4784 enableval="$enable_url"
4785
4786 if test "$enableval" = yes; then
4787 ac_cv_use_url='wxUSE_URL=yes'
4788 else
4789 ac_cv_use_url='wxUSE_URL=no'
4790 fi
4791
4792else
4793
4794 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4795 if test "x$LINE" != x ; then
4796 eval "DEFAULT_$LINE"
4797 else
4798 no_cache=1
4799 fi
4800
4801 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4802
4803fi
4804
4805
4806 eval "$ac_cv_use_url"
4807 if test "$no_cache" != 1; then
4808 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4809 fi
4810
4811 if test "$wxUSE_URL" = yes; then
4812 echo "$ac_t""yes" 1>&6
4813 else
4814 echo "$ac_t""no" 1>&6
4815 fi
4816
4817
4818 enablestring=
4819 echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
4820echo "configure:4821: checking for --${enablestring:-enable}-protocol" >&5
4821 no_cache=0
4822 # Check whether --enable-protocol or --disable-protocol was given.
4823if test "${enable_protocol+set}" = set; then
4824 enableval="$enable_protocol"
4825
4826 if test "$enableval" = yes; then
4827 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4828 else
4829 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4830 fi
4831
4832else
4833
4834 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4835 if test "x$LINE" != x ; then
4836 eval "DEFAULT_$LINE"
4837 else
4838 no_cache=1
4839 fi
4840
4841 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4842
4843fi
4844
4845
4846 eval "$ac_cv_use_protocol"
4847 if test "$no_cache" != 1; then
4848 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4849 fi
4850
4851 if test "$wxUSE_PROTOCOL" = yes; then
4852 echo "$ac_t""yes" 1>&6
4853 else
4854 echo "$ac_t""no" 1>&6
4855 fi
4856
4857
4858 enablestring=
4859 echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
4860echo "configure:4861: checking for --${enablestring:-enable}-protocol_http" >&5
4861 no_cache=0
4862 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4863if test "${enable_protocol_http+set}" = set; then
4864 enableval="$enable_protocol_http"
4865
4866 if test "$enableval" = yes; then
4867 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4868 else
4869 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4870 fi
4871
4872else
4873
4874 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4875 if test "x$LINE" != x ; then
4876 eval "DEFAULT_$LINE"
4877 else
4878 no_cache=1
4879 fi
4880
4881 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4882
4883fi
4884
4885
4886 eval "$ac_cv_use_protocol_http"
4887 if test "$no_cache" != 1; then
4888 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4889 fi
4890
4891 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4892 echo "$ac_t""yes" 1>&6
4893 else
4894 echo "$ac_t""no" 1>&6
4895 fi
4896
4897
4898 enablestring=
4899 echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
4900echo "configure:4901: checking for --${enablestring:-enable}-protocol_ftp" >&5
4901 no_cache=0
4902 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4903if test "${enable_protocol_ftp+set}" = set; then
4904 enableval="$enable_protocol_ftp"
4905
4906 if test "$enableval" = yes; then
4907 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4908 else
4909 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4910 fi
4911
4912else
4913
4914 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4915 if test "x$LINE" != x ; then
4916 eval "DEFAULT_$LINE"
4917 else
4918 no_cache=1
4919 fi
4920
4921 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4922
4923fi
4924
4925
4926 eval "$ac_cv_use_protocol_ftp"
4927 if test "$no_cache" != 1; then
4928 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4929 fi
4930
4931 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4932 echo "$ac_t""yes" 1>&6
4933 else
4934 echo "$ac_t""no" 1>&6
4935 fi
4936
4937
4938 enablestring=
4939 echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
4940echo "configure:4941: checking for --${enablestring:-enable}-protocol_file" >&5
4941 no_cache=0
4942 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4943if test "${enable_protocol_file+set}" = set; then
4944 enableval="$enable_protocol_file"
4945
4946 if test "$enableval" = yes; then
4947 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4948 else
4949 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4950 fi
4951
4952else
4953
4954 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4955 if test "x$LINE" != x ; then
4956 eval "DEFAULT_$LINE"
4957 else
4958 no_cache=1
4959 fi
4960
4961 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4962
4963fi
4964
4965
4966 eval "$ac_cv_use_protocol_file"
4967 if test "$no_cache" != 1; then
4968 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4969 fi
4970
4971 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4972 echo "$ac_t""yes" 1>&6
4973 else
4974 echo "$ac_t""no" 1>&6
4975 fi
4976
4977
4978
4979
4980
4981 enablestring=
4982 echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
4983echo "configure:4984: checking for --${enablestring:-enable}-threads" >&5
4984 no_cache=0
4985 # Check whether --enable-threads or --disable-threads was given.
4986if test "${enable_threads+set}" = set; then
4987 enableval="$enable_threads"
4988
4989 if test "$enableval" = yes; then
4990 ac_cv_use_threads='wxUSE_THREADS=yes'
4991 else
4992 ac_cv_use_threads='wxUSE_THREADS=no'
4993 fi
4994
4995else
4996
4997 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4998 if test "x$LINE" != x ; then
4999 eval "DEFAULT_$LINE"
5000 else
5001 no_cache=1
5002 fi
5003
5004 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5005
5006fi
5007
5008
5009 eval "$ac_cv_use_threads"
5010 if test "$no_cache" != 1; then
5011 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5012 fi
5013
5014 if test "$wxUSE_THREADS" = yes; then
5015 echo "$ac_t""yes" 1>&6
5016 else
5017 echo "$ac_t""no" 1>&6
5018 fi
5019
5020
5021if test "$wxUSE_GUI" = "yes"; then
5022
5023
5024
5025 enablestring=
5026 echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
5027echo "configure:5028: checking for --${enablestring:-enable}-docview" >&5
5028 no_cache=0
5029 # Check whether --enable-docview or --disable-docview was given.
5030if test "${enable_docview+set}" = set; then
5031 enableval="$enable_docview"
5032
5033 if test "$enableval" = yes; then
5034 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5035 else
5036 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5037 fi
5038
5039else
5040
5041 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5042 if test "x$LINE" != x ; then
5043 eval "DEFAULT_$LINE"
5044 else
5045 no_cache=1
5046 fi
5047
5048 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5049
5050fi
5051
5052
5053 eval "$ac_cv_use_docview"
5054 if test "$no_cache" != 1; then
5055 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5056 fi
5057
5058 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5059 echo "$ac_t""yes" 1>&6
5060 else
5061 echo "$ac_t""no" 1>&6
5062 fi
5063
5064
5065 enablestring=
5066 echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
5067echo "configure:5068: checking for --${enablestring:-enable}-help" >&5
5068 no_cache=0
5069 # Check whether --enable-help or --disable-help was given.
5070if test "${enable_help+set}" = set; then
5071 enableval="$enable_help"
5072
5073 if test "$enableval" = yes; then
5074 ac_cv_use_help='wxUSE_HELP=yes'
5075 else
5076 ac_cv_use_help='wxUSE_HELP=no'
5077 fi
5078
5079else
5080
5081 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5082 if test "x$LINE" != x ; then
5083 eval "DEFAULT_$LINE"
5084 else
5085 no_cache=1
5086 fi
5087
5088 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5089
5090fi
5091
5092
5093 eval "$ac_cv_use_help"
5094 if test "$no_cache" != 1; then
5095 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5096 fi
5097
5098 if test "$wxUSE_HELP" = yes; then
5099 echo "$ac_t""yes" 1>&6
5100 else
5101 echo "$ac_t""no" 1>&6
5102 fi
5103
5104
5105 enablestring=
5106 echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
5107echo "configure:5108: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5108 no_cache=0
5109 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5110if test "${enable_mshtmlhelp+set}" = set; then
5111 enableval="$enable_mshtmlhelp"
5112
5113 if test "$enableval" = yes; then
5114 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5115 else
5116 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5117 fi
5118
5119else
5120
5121 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5122 if test "x$LINE" != x ; then
5123 eval "DEFAULT_$LINE"
5124 else
5125 no_cache=1
5126 fi
5127
5128 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
5129
5130fi
5131
5132
5133 eval "$ac_cv_use_mshtmlhelp"
5134 if test "$no_cache" != 1; then
5135 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5136 fi
5137
5138 if test "$wxUSE_MS_HTML_HELP" = yes; then
5139 echo "$ac_t""yes" 1>&6
5140 else
5141 echo "$ac_t""no" 1>&6
5142 fi
5143
5144
5145 enablestring=
5146 echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
5147echo "configure:5148: checking for --${enablestring:-enable}-html" >&5
5148 no_cache=0
5149 # Check whether --enable-html or --disable-html was given.
5150if test "${enable_html+set}" = set; then
5151 enableval="$enable_html"
5152
5153 if test "$enableval" = yes; then
5154 ac_cv_use_html='wxUSE_HTML=yes'
5155 else
5156 ac_cv_use_html='wxUSE_HTML=no'
5157 fi
5158
5159else
5160
5161 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5162 if test "x$LINE" != x ; then
5163 eval "DEFAULT_$LINE"
5164 else
5165 no_cache=1
5166 fi
5167
5168 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5169
5170fi
5171
5172
5173 eval "$ac_cv_use_html"
5174 if test "$no_cache" != 1; then
5175 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5176 fi
5177
5178 if test "$wxUSE_HTML" = yes; then
5179 echo "$ac_t""yes" 1>&6
5180 else
5181 echo "$ac_t""no" 1>&6
5182 fi
5183
5184
5185 enablestring=
5186 echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
5187echo "configure:5188: checking for --${enablestring:-enable}-htmlhelp" >&5
5188 no_cache=0
5189 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5190if test "${enable_htmlhelp+set}" = set; then
5191 enableval="$enable_htmlhelp"
5192
5193 if test "$enableval" = yes; then
5194 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5195 else
5196 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5197 fi
5198
5199else
5200
5201 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5202 if test "x$LINE" != x ; then
5203 eval "DEFAULT_$LINE"
5204 else
5205 no_cache=1
5206 fi
5207
5208 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5209
5210fi
5211
5212
5213 eval "$ac_cv_use_htmlhelp"
5214 if test "$no_cache" != 1; then
5215 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5216 fi
5217
5218 if test "$wxUSE_WXHTML_HELP" = yes; then
5219 echo "$ac_t""yes" 1>&6
5220 else
5221 echo "$ac_t""no" 1>&6
5222 fi
5223
5224
5225 enablestring=
5226 echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
5227echo "configure:5228: checking for --${enablestring:-enable}-constraints" >&5
5228 no_cache=0
5229 # Check whether --enable-constraints or --disable-constraints was given.
5230if test "${enable_constraints+set}" = set; then
5231 enableval="$enable_constraints"
5232
5233 if test "$enableval" = yes; then
5234 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5235 else
5236 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5237 fi
5238
5239else
5240
5241 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5242 if test "x$LINE" != x ; then
5243 eval "DEFAULT_$LINE"
5244 else
5245 no_cache=1
5246 fi
5247
5248 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5249
5250fi
5251
5252
5253 eval "$ac_cv_use_constraints"
5254 if test "$no_cache" != 1; then
5255 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5256 fi
5257
5258 if test "$wxUSE_CONSTRAINTS" = yes; then
5259 echo "$ac_t""yes" 1>&6
5260 else
5261 echo "$ac_t""no" 1>&6
5262 fi
5263
5264
5265 enablestring=
5266 echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
5267echo "configure:5268: checking for --${enablestring:-enable}-printarch" >&5
5268 no_cache=0
5269 # Check whether --enable-printarch or --disable-printarch was given.
5270if test "${enable_printarch+set}" = set; then
5271 enableval="$enable_printarch"
5272
5273 if test "$enableval" = yes; then
5274 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5275 else
5276 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5277 fi
5278
5279else
5280
5281 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5282 if test "x$LINE" != x ; then
5283 eval "DEFAULT_$LINE"
5284 else
5285 no_cache=1
5286 fi
5287
5288 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5289
5290fi
5291
5292
5293 eval "$ac_cv_use_printarch"
5294 if test "$no_cache" != 1; then
5295 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5296 fi
5297
5298 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5299 echo "$ac_t""yes" 1>&6
5300 else
5301 echo "$ac_t""no" 1>&6
5302 fi
5303
5304
5305 enablestring=
5306 echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
5307echo "configure:5308: checking for --${enablestring:-enable}-mdi" >&5
5308 no_cache=0
5309 # Check whether --enable-mdi or --disable-mdi was given.
5310if test "${enable_mdi+set}" = set; then
5311 enableval="$enable_mdi"
5312
5313 if test "$enableval" = yes; then
5314 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5315 else
5316 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5317 fi
5318
5319else
5320
5321 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5322 if test "x$LINE" != x ; then
5323 eval "DEFAULT_$LINE"
5324 else
5325 no_cache=1
5326 fi
5327
5328 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5329
5330fi
5331
5332
5333 eval "$ac_cv_use_mdi"
5334 if test "$no_cache" != 1; then
5335 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5336 fi
5337
5338 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5339 echo "$ac_t""yes" 1>&6
5340 else
5341 echo "$ac_t""no" 1>&6
5342 fi
5343
5344
5345 enablestring=
5346 echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
5347echo "configure:5348: checking for --${enablestring:-enable}-loggui" >&5
5348 no_cache=0
5349 # Check whether --enable-loggui or --disable-loggui was given.
5350if test "${enable_loggui+set}" = set; then
5351 enableval="$enable_loggui"
5352
5353 if test "$enableval" = yes; then
5354 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5355 else
5356 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5357 fi
5358
5359else
5360
5361 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5362 if test "x$LINE" != x ; then
5363 eval "DEFAULT_$LINE"
5364 else
5365 no_cache=1
5366 fi
5367
5368 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5369
5370fi
5371
5372
5373 eval "$ac_cv_use_loggui"
5374 if test "$no_cache" != 1; then
5375 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5376 fi
5377
5378 if test "$wxUSE_LOGGUI" = yes; then
5379 echo "$ac_t""yes" 1>&6
5380 else
5381 echo "$ac_t""no" 1>&6
5382 fi
5383
5384
5385 enablestring=
5386 echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
5387echo "configure:5388: checking for --${enablestring:-enable}-logwin" >&5
5388 no_cache=0
5389 # Check whether --enable-logwin or --disable-logwin was given.
5390if test "${enable_logwin+set}" = set; then
5391 enableval="$enable_logwin"
5392
5393 if test "$enableval" = yes; then
5394 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5395 else
5396 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5397 fi
5398
5399else
5400
5401 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5402 if test "x$LINE" != x ; then
5403 eval "DEFAULT_$LINE"
5404 else
5405 no_cache=1
5406 fi
5407
5408 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5409
5410fi
5411
5412
5413 eval "$ac_cv_use_logwin"
5414 if test "$no_cache" != 1; then
5415 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5416 fi
5417
5418 if test "$wxUSE_LOGWINDOW" = yes; then
5419 echo "$ac_t""yes" 1>&6
5420 else
5421 echo "$ac_t""no" 1>&6
5422 fi
5423
5424
5425 enablestring=
5426 echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
5427echo "configure:5428: checking for --${enablestring:-enable}-logdialog" >&5
5428 no_cache=0
5429 # Check whether --enable-logdialog or --disable-logdialog was given.
5430if test "${enable_logdialog+set}" = set; then
5431 enableval="$enable_logdialog"
5432
5433 if test "$enableval" = yes; then
5434 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5435 else
5436 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5437 fi
5438
5439else
5440
5441 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5442 if test "x$LINE" != x ; then
5443 eval "DEFAULT_$LINE"
5444 else
5445 no_cache=1
5446 fi
5447
5448 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5449
5450fi
5451
5452
5453 eval "$ac_cv_use_logdialog"
5454 if test "$no_cache" != 1; then
5455 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5456 fi
5457
5458 if test "$wxUSE_LOGDIALOG" = yes; then
5459 echo "$ac_t""yes" 1>&6
5460 else
5461 echo "$ac_t""no" 1>&6
5462 fi
5463
5464
5465
5466 enablestring=
5467 echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
5468echo "configure:5469: checking for --${enablestring:-enable}-postscript" >&5
5469 no_cache=0
5470 # Check whether --enable-postscript or --disable-postscript was given.
5471if test "${enable_postscript+set}" = set; then
5472 enableval="$enable_postscript"
5473
5474 if test "$enableval" = yes; then
5475 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5476 else
5477 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5478 fi
5479
5480else
5481
5482 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5483 if test "x$LINE" != x ; then
5484 eval "DEFAULT_$LINE"
5485 else
5486 no_cache=1
5487 fi
5488
5489 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5490
5491fi
5492
5493
5494 eval "$ac_cv_use_postscript"
5495 if test "$no_cache" != 1; then
5496 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5497 fi
5498
5499 if test "$wxUSE_POSTSCRIPT" = yes; then
5500 echo "$ac_t""yes" 1>&6
5501 else
5502 echo "$ac_t""no" 1>&6
5503 fi
5504
5505
5506
5507
5508
5509 enablestring=
5510 echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6
5511echo "configure:5512: checking for --${enablestring:-enable}-prologio" >&5
5512 no_cache=0
5513 # Check whether --enable-prologio or --disable-prologio was given.
5514if test "${enable_prologio+set}" = set; then
5515 enableval="$enable_prologio"
5516
5517 if test "$enableval" = yes; then
5518 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5519 else
5520 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5521 fi
5522
5523else
5524
5525 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5526 if test "x$LINE" != x ; then
5527 eval "DEFAULT_$LINE"
5528 else
5529 no_cache=1
5530 fi
5531
5532 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5533
5534fi
5535
5536
5537 eval "$ac_cv_use_prologio"
5538 if test "$no_cache" != 1; then
5539 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5540 fi
5541
5542 if test "$wxUSE_PROLOGIO" = yes; then
5543 echo "$ac_t""yes" 1>&6
5544 else
5545 echo "$ac_t""no" 1>&6
5546 fi
5547
5548
5549 enablestring=
5550 echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
5551echo "configure:5552: checking for --${enablestring:-enable}-resources" >&5
5552 no_cache=0
5553 # Check whether --enable-resources or --disable-resources was given.
5554if test "${enable_resources+set}" = set; then
5555 enableval="$enable_resources"
5556
5557 if test "$enableval" = yes; then
5558 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5559 else
5560 ac_cv_use_resources='wxUSE_RESOURCES=no'
5561 fi
5562
5563else
5564
5565 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5566 if test "x$LINE" != x ; then
5567 eval "DEFAULT_$LINE"
5568 else
5569 no_cache=1
5570 fi
5571
5572 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5573
5574fi
5575
5576
5577 eval "$ac_cv_use_resources"
5578 if test "$no_cache" != 1; then
5579 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5580 fi
5581
5582 if test "$wxUSE_RESOURCES" = yes; then
5583 echo "$ac_t""yes" 1>&6
5584 else
5585 echo "$ac_t""no" 1>&6
5586 fi
5587
5588
5589
5590
5591 enablestring=
5592 echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
5593echo "configure:5594: checking for --${enablestring:-enable}-clipboard" >&5
5594 no_cache=0
5595 # Check whether --enable-clipboard or --disable-clipboard was given.
5596if test "${enable_clipboard+set}" = set; then
5597 enableval="$enable_clipboard"
5598
5599 if test "$enableval" = yes; then
5600 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5601 else
5602 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5603 fi
5604
5605else
5606
5607 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5608 if test "x$LINE" != x ; then
5609 eval "DEFAULT_$LINE"
5610 else
5611 no_cache=1
5612 fi
5613
5614 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5615
5616fi
5617
5618
5619 eval "$ac_cv_use_clipboard"
5620 if test "$no_cache" != 1; then
5621 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5622 fi
5623
5624 if test "$wxUSE_CLIPBOARD" = yes; then
5625 echo "$ac_t""yes" 1>&6
5626 else
5627 echo "$ac_t""no" 1>&6
5628 fi
5629
5630
5631 enablestring=
5632 echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
5633echo "configure:5634: checking for --${enablestring:-enable}-dnd" >&5
5634 no_cache=0
5635 # Check whether --enable-dnd or --disable-dnd was given.
5636if test "${enable_dnd+set}" = set; then
5637 enableval="$enable_dnd"
5638
5639 if test "$enableval" = yes; then
5640 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5641 else
5642 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5643 fi
5644
5645else
5646
5647 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5648 if test "x$LINE" != x ; then
5649 eval "DEFAULT_$LINE"
5650 else
5651 no_cache=1
5652 fi
5653
5654 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5655
5656fi
5657
5658
5659 eval "$ac_cv_use_dnd"
5660 if test "$no_cache" != 1; then
5661 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5662 fi
5663
5664 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5665 echo "$ac_t""yes" 1>&6
5666 else
5667 echo "$ac_t""no" 1>&6
5668 fi
5669
5670
5671 enablestring=
5672 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
5673echo "configure:5674: checking for --${enablestring:-enable}-metafile" >&5
5674 no_cache=0
5675 # Check whether --enable-metafile or --disable-metafile was given.
5676if test "${enable_metafile+set}" = set; then
5677 enableval="$enable_metafile"
5678
5679 if test "$enableval" = yes; then
5680 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5681 else
5682 ac_cv_use_metafile='wxUSE_METAFILE=no'
5683 fi
5684
5685else
5686
5687 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5688 if test "x$LINE" != x ; then
5689 eval "DEFAULT_$LINE"
5690 else
5691 no_cache=1
5692 fi
5693
5694 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5695
5696fi
5697
5698
5699 eval "$ac_cv_use_metafile"
5700 if test "$no_cache" != 1; then
5701 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5702 fi
5703
5704 if test "$wxUSE_METAFILE" = yes; then
5705 echo "$ac_t""yes" 1>&6
5706 else
5707 echo "$ac_t""no" 1>&6
5708 fi
5709
5710
5711
5712
5713
5714 enablestring=
5715 echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
5716echo "configure:5717: checking for --${enablestring:-enable}-controls" >&5
5717 no_cache=0
5718 # Check whether --enable-controls or --disable-controls was given.
5719if test "${enable_controls+set}" = set; then
5720 enableval="$enable_controls"
5721
5722 if test "$enableval" = yes; then
5723 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5724 else
5725 ac_cv_use_controls='wxUSE_CONTROLS=no'
5726 fi
5727
5728else
5729
5730 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5731 if test "x$LINE" != x ; then
5732 eval "DEFAULT_$LINE"
5733 else
5734 no_cache=1
5735 fi
5736
5737 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5738
5739fi
5740
5741
5742 eval "$ac_cv_use_controls"
5743 if test "$no_cache" != 1; then
5744 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5745 fi
5746
5747 if test "$wxUSE_CONTROLS" = yes; then
5748 echo "$ac_t""yes" 1>&6
5749 else
5750 echo "$ac_t""no" 1>&6
5751 fi
5752
5753
5754if test "$wxUSE_CONTROLS" = "yes"; then
5755 DEFAULT_wxUSE_ACCEL=yes
5756 DEFAULT_wxUSE_BMPBUTTON=yes
5757 DEFAULT_wxUSE_BUTTON=yes
5758 DEFAULT_wxUSE_CALCTRL=no
5759 DEFAULT_wxUSE_CARET=yes
5760 DEFAULT_wxUSE_COMBOBOX=yes
5761 DEFAULT_wxUSE_CHECKBOX=yes
5762 DEFAULT_wxUSE_CHECKLISTBOX=yes
5763 DEFAULT_wxUSE_CHOICE=yes
5764 DEFAULT_wxUSE_GAUGE=yes
5765 DEFAULT_wxUSE_GRID=yes
5766 DEFAULT_wxUSE_IMAGLIST=yes
5767 DEFAULT_wxUSE_LISTBOX=yes
5768 DEFAULT_wxUSE_LISTCTRL=yes
5769 DEFAULT_wxUSE_NOTEBOOK=yes
5770 DEFAULT_wxUSE_RADIOBOX=yes
5771 DEFAULT_wxUSE_RADIOBTN=yes
5772 DEFAULT_wxUSE_SASH=yes
5773 DEFAULT_wxUSE_SCROLLBAR=yes
5774 DEFAULT_wxUSE_SLIDER=yes
5775 DEFAULT_wxUSE_SPINBTN=yes
5776 DEFAULT_wxUSE_SPINCTRL=yes
5777 DEFAULT_wxUSE_SPLITTER=yes
5778 DEFAULT_wxUSE_STATBMP=yes
5779 DEFAULT_wxUSE_STATBOX=yes
5780 DEFAULT_wxUSE_STATLINE=yes
5781 DEFAULT_wxUSE_STATUSBAR=yes
5782 DEFAULT_wxUSE_TAB_DIALOG=yes
5783 DEFAULT_wxUSE_TOGGLEBTN=yes
5784 DEFAULT_wxUSE_TOOLBAR=yes
5785 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5786 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5787 DEFAULT_wxUSE_TOOLTIPS=yes
5788 DEFAULT_wxUSE_TREECTRL=yes
5789 DEFAULT_wxUSE_POPUPWIN=yes
5790 DEFAULT_wxUSE_TIPWINDOW=yes
5791elif test "$wxUSE_CONTROLS" = "no"; then
5792 DEFAULT_wxUSE_ACCEL=no
5793 DEFAULT_wxUSE_BMPBUTTON=no
5794 DEFAULT_wxUSE_BUTTON=no
5795 DEFAULT_wxUSE_CALCTRL=no
5796 DEFAULT_wxUSE_CARET=no
5797 DEFAULT_wxUSE_COMBOBOX=no
5798 DEFAULT_wxUSE_CHECKBOX=no
5799 DEFAULT_wxUSE_CHECKLISTBOX=no
5800 DEFAULT_wxUSE_CHOICE=no
5801 DEFAULT_wxUSE_GAUGE=no
5802 DEFAULT_wxUSE_GRID=no
5803 DEFAULT_wxUSE_IMAGLIST=no
5804 DEFAULT_wxUSE_LISTBOX=no
5805 DEFAULT_wxUSE_LISTCTRL=no
5806 DEFAULT_wxUSE_NOTEBOOK=no
5807 DEFAULT_wxUSE_RADIOBOX=no
5808 DEFAULT_wxUSE_RADIOBTN=no
5809 DEFAULT_wxUSE_SASH=no
5810 DEFAULT_wxUSE_SCROLLBAR=no
5811 DEFAULT_wxUSE_SLIDER=no
5812 DEFAULT_wxUSE_SPINBTN=no
5813 DEFAULT_wxUSE_SPINCTRL=no
5814 DEFAULT_wxUSE_SPLITTER=no
5815 DEFAULT_wxUSE_STATBMP=no
5816 DEFAULT_wxUSE_STATBOX=no
5817 DEFAULT_wxUSE_STATLINE=no
5818 DEFAULT_wxUSE_STATUSBAR=no
5819 DEFAULT_wxUSE_TAB_DIALOG=no
5820 DEFAULT_wxUSE_TOGGLEBTN=no
5821 DEFAULT_wxUSE_TOOLBAR=no
5822 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5823 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5824 DEFAULT_wxUSE_TOOLTIPS=no
5825 DEFAULT_wxUSE_TREECTRL=no
5826 DEFAULT_wxUSE_POPUPWIN=no
5827 DEFAULT_wxUSE_TIPWINDOW=no
5828fi
5829
5830## FIXME: This is a blatant hack
5831if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
5832 wxUSE_PRINTING_ARCHITECTURE=no
5833 wxUSE_HELP=no
5834 wxUSE_CLIPBOARD=no
5835 wxUSE_DRAG_AND_DROP=no
5836 wxUSE_DATAOBJ=no
5837 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5838 DEFAULT_wxUSE_GAUGE=no
5839 DEFAULT_wxUSE_SCROLLBAR=no
5840 DEFAULT_wxUSE_SLIDER=no
5841 DEFAULT_wxUSE_COMBOBOX=no
5842 DEFAULT_wxUSE_CALCTRL=no
5843 DEFAULT_wxUSE_SPINBTN=no
5844 DEFAULT_wxUSE_SPINCTRL=no
5845 DEFAULT_wxUSE_TOOLTIPS=no
5846 DEFAULT_wxUSE_COLOURDLG=no
5847 DEFAULT_wxUSE_DRAGIMAGE=no
5848 DEFAULT_wxUSE_FINDREPLDLG=no
5849 DEFAULT_wxUSE_FONTDLG=no
5850 DEFAULT_wxUSE_GRID=no
5851 DEFAULT_wxUSE_NUMBERDLG=no
5852 DEFAULT_wxUSE_PROGRESSDLG=no
5853 DEFAULT_wxUSE_SASH=no
5854 DEFAULT_wxUSE_SPLITTER=no
5855 DEFAULT_wxUSE_WIZARDDLG=no
5856 DEFAULT_wxUSE_SPLITTER=no
5857 DEFAULT_wxUSE_STARTUP_TIPS=no
5858fi
5859
5860
5861 enablestring=
5862 echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
5863echo "configure:5864: checking for --${enablestring:-enable}-accel" >&5
5864 no_cache=0
5865 # Check whether --enable-accel or --disable-accel was given.
5866if test "${enable_accel+set}" = set; then
5867 enableval="$enable_accel"
5868
5869 if test "$enableval" = yes; then
5870 ac_cv_use_accel='wxUSE_ACCEL=yes'
5871 else
5872 ac_cv_use_accel='wxUSE_ACCEL=no'
5873 fi
5874
5875else
5876
5877 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5878 if test "x$LINE" != x ; then
5879 eval "DEFAULT_$LINE"
5880 else
5881 no_cache=1
5882 fi
5883
5884 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5885
5886fi
5887
5888
5889 eval "$ac_cv_use_accel"
5890 if test "$no_cache" != 1; then
5891 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5892 fi
5893
5894 if test "$wxUSE_ACCEL" = yes; then
5895 echo "$ac_t""yes" 1>&6
5896 else
5897 echo "$ac_t""no" 1>&6
5898 fi
5899
5900
5901 enablestring=
5902 echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
5903echo "configure:5904: checking for --${enablestring:-enable}-button" >&5
5904 no_cache=0
5905 # Check whether --enable-button or --disable-button was given.
5906if test "${enable_button+set}" = set; then
5907 enableval="$enable_button"
5908
5909 if test "$enableval" = yes; then
5910 ac_cv_use_button='wxUSE_BUTTON=yes'
5911 else
5912 ac_cv_use_button='wxUSE_BUTTON=no'
5913 fi
5914
5915else
5916
5917 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5918 if test "x$LINE" != x ; then
5919 eval "DEFAULT_$LINE"
5920 else
5921 no_cache=1
5922 fi
5923
5924 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5925
5926fi
5927
5928
5929 eval "$ac_cv_use_button"
5930 if test "$no_cache" != 1; then
5931 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5932 fi
5933
5934 if test "$wxUSE_BUTTON" = yes; then
5935 echo "$ac_t""yes" 1>&6
5936 else
5937 echo "$ac_t""no" 1>&6
5938 fi
5939
5940
5941 enablestring=
5942 echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
5943echo "configure:5944: checking for --${enablestring:-enable}-bmpbutton" >&5
5944 no_cache=0
5945 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5946if test "${enable_bmpbutton+set}" = set; then
5947 enableval="$enable_bmpbutton"
5948
5949 if test "$enableval" = yes; then
5950 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5951 else
5952 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5953 fi
5954
5955else
5956
5957 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5958 if test "x$LINE" != x ; then
5959 eval "DEFAULT_$LINE"
5960 else
5961 no_cache=1
5962 fi
5963
5964 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5965
5966fi
5967
5968
5969 eval "$ac_cv_use_bmpbutton"
5970 if test "$no_cache" != 1; then
5971 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5972 fi
5973
5974 if test "$wxUSE_BMPBUTTON" = yes; then
5975 echo "$ac_t""yes" 1>&6
5976 else
5977 echo "$ac_t""no" 1>&6
5978 fi
5979
5980
5981 enablestring=
5982 echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
5983echo "configure:5984: checking for --${enablestring:-enable}-calendar" >&5
5984 no_cache=0
5985 # Check whether --enable-calendar or --disable-calendar was given.
5986if test "${enable_calendar+set}" = set; then
5987 enableval="$enable_calendar"
5988
5989 if test "$enableval" = yes; then
5990 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5991 else
5992 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5993 fi
5994
5995else
5996
5997 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5998 if test "x$LINE" != x ; then
5999 eval "DEFAULT_$LINE"
6000 else
6001 no_cache=1
6002 fi
6003
6004 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
6005
6006fi
6007
6008
6009 eval "$ac_cv_use_calendar"
6010 if test "$no_cache" != 1; then
6011 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6012 fi
6013
6014 if test "$wxUSE_CALCTRL" = yes; then
6015 echo "$ac_t""yes" 1>&6
6016 else
6017 echo "$ac_t""no" 1>&6
6018 fi
6019
6020
6021 enablestring=
6022 echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
6023echo "configure:6024: checking for --${enablestring:-enable}-caret" >&5
6024 no_cache=0
6025 # Check whether --enable-caret or --disable-caret was given.
6026if test "${enable_caret+set}" = set; then
6027 enableval="$enable_caret"
6028
6029 if test "$enableval" = yes; then
6030 ac_cv_use_caret='wxUSE_CARET=yes'
6031 else
6032 ac_cv_use_caret='wxUSE_CARET=no'
6033 fi
6034
6035else
6036
6037 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6038 if test "x$LINE" != x ; then
6039 eval "DEFAULT_$LINE"
6040 else
6041 no_cache=1
6042 fi
6043
6044 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6045
6046fi
6047
6048
6049 eval "$ac_cv_use_caret"
6050 if test "$no_cache" != 1; then
6051 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6052 fi
6053
6054 if test "$wxUSE_CARET" = yes; then
6055 echo "$ac_t""yes" 1>&6
6056 else
6057 echo "$ac_t""no" 1>&6
6058 fi
6059
6060
6061 enablestring=
6062 echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
6063echo "configure:6064: checking for --${enablestring:-enable}-checkbox" >&5
6064 no_cache=0
6065 # Check whether --enable-checkbox or --disable-checkbox was given.
6066if test "${enable_checkbox+set}" = set; then
6067 enableval="$enable_checkbox"
6068
6069 if test "$enableval" = yes; then
6070 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6071 else
6072 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6073 fi
6074
6075else
6076
6077 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6078 if test "x$LINE" != x ; then
6079 eval "DEFAULT_$LINE"
6080 else
6081 no_cache=1
6082 fi
6083
6084 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6085
6086fi
6087
6088
6089 eval "$ac_cv_use_checkbox"
6090 if test "$no_cache" != 1; then
6091 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6092 fi
6093
6094 if test "$wxUSE_CHECKBOX" = yes; then
6095 echo "$ac_t""yes" 1>&6
6096 else
6097 echo "$ac_t""no" 1>&6
6098 fi
6099
6100
6101 enablestring=
6102 echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
6103echo "configure:6104: checking for --${enablestring:-enable}-checklst" >&5
6104 no_cache=0
6105 # Check whether --enable-checklst or --disable-checklst was given.
6106if test "${enable_checklst+set}" = set; then
6107 enableval="$enable_checklst"
6108
6109 if test "$enableval" = yes; then
6110 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6111 else
6112 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6113 fi
6114
6115else
6116
6117 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6118 if test "x$LINE" != x ; then
6119 eval "DEFAULT_$LINE"
6120 else
6121 no_cache=1
6122 fi
6123
6124 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6125
6126fi
6127
6128
6129 eval "$ac_cv_use_checklst"
6130 if test "$no_cache" != 1; then
6131 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6132 fi
6133
6134 if test "$wxUSE_CHECKLST" = yes; then
6135 echo "$ac_t""yes" 1>&6
6136 else
6137 echo "$ac_t""no" 1>&6
6138 fi
6139
6140
6141 enablestring=
6142 echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
6143echo "configure:6144: checking for --${enablestring:-enable}-choice" >&5
6144 no_cache=0
6145 # Check whether --enable-choice or --disable-choice was given.
6146if test "${enable_choice+set}" = set; then
6147 enableval="$enable_choice"
6148
6149 if test "$enableval" = yes; then
6150 ac_cv_use_choice='wxUSE_CHOICE=yes'
6151 else
6152 ac_cv_use_choice='wxUSE_CHOICE=no'
6153 fi
6154
6155else
6156
6157 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6158 if test "x$LINE" != x ; then
6159 eval "DEFAULT_$LINE"
6160 else
6161 no_cache=1
6162 fi
6163
6164 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6165
6166fi
6167
6168
6169 eval "$ac_cv_use_choice"
6170 if test "$no_cache" != 1; then
6171 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6172 fi
6173
6174 if test "$wxUSE_CHOICE" = yes; then
6175 echo "$ac_t""yes" 1>&6
6176 else
6177 echo "$ac_t""no" 1>&6
6178 fi
6179
6180
6181 enablestring=
6182 echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
6183echo "configure:6184: checking for --${enablestring:-enable}-combobox" >&5
6184 no_cache=0
6185 # Check whether --enable-combobox or --disable-combobox was given.
6186if test "${enable_combobox+set}" = set; then
6187 enableval="$enable_combobox"
6188
6189 if test "$enableval" = yes; then
6190 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6191 else
6192 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6193 fi
6194
6195else
6196
6197 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6198 if test "x$LINE" != x ; then
6199 eval "DEFAULT_$LINE"
6200 else
6201 no_cache=1
6202 fi
6203
6204 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6205
6206fi
6207
6208
6209 eval "$ac_cv_use_combobox"
6210 if test "$no_cache" != 1; then
6211 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6212 fi
6213
6214 if test "$wxUSE_COMBOBOX" = yes; then
6215 echo "$ac_t""yes" 1>&6
6216 else
6217 echo "$ac_t""no" 1>&6
6218 fi
6219
6220
6221 enablestring=
6222 echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6
6223echo "configure:6224: checking for --${enablestring:-enable}-display" >&5
6224 no_cache=0
6225 # Check whether --enable-display or --disable-display was given.
6226if test "${enable_display+set}" = set; then
6227 enableval="$enable_display"
6228
6229 if test "$enableval" = yes; then
6230 ac_cv_use_display='wxUSE_DISPLAY=yes'
6231 else
6232 ac_cv_use_display='wxUSE_DISPLAY=no'
6233 fi
6234
6235else
6236
6237 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6238 if test "x$LINE" != x ; then
6239 eval "DEFAULT_$LINE"
6240 else
6241 no_cache=1
6242 fi
6243
6244 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
6245
6246fi
6247
6248
6249 eval "$ac_cv_use_display"
6250 if test "$no_cache" != 1; then
6251 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6252 fi
6253
6254 if test "$wxUSE_DISPLAY" = yes; then
6255 echo "$ac_t""yes" 1>&6
6256 else
6257 echo "$ac_t""no" 1>&6
6258 fi
6259
6260
6261 enablestring=
6262 echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
6263echo "configure:6264: checking for --${enablestring:-enable}-gauge" >&5
6264 no_cache=0
6265 # Check whether --enable-gauge or --disable-gauge was given.
6266if test "${enable_gauge+set}" = set; then
6267 enableval="$enable_gauge"
6268
6269 if test "$enableval" = yes; then
6270 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6271 else
6272 ac_cv_use_gauge='wxUSE_GAUGE=no'
6273 fi
6274
6275else
6276
6277 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6278 if test "x$LINE" != x ; then
6279 eval "DEFAULT_$LINE"
6280 else
6281 no_cache=1
6282 fi
6283
6284 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6285
6286fi
6287
6288
6289 eval "$ac_cv_use_gauge"
6290 if test "$no_cache" != 1; then
6291 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6292 fi
6293
6294 if test "$wxUSE_GAUGE" = yes; then
6295 echo "$ac_t""yes" 1>&6
6296 else
6297 echo "$ac_t""no" 1>&6
6298 fi
6299
6300
6301 enablestring=
6302 echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
6303echo "configure:6304: checking for --${enablestring:-enable}-grid" >&5
6304 no_cache=0
6305 # Check whether --enable-grid or --disable-grid was given.
6306if test "${enable_grid+set}" = set; then
6307 enableval="$enable_grid"
6308
6309 if test "$enableval" = yes; then
6310 ac_cv_use_grid='wxUSE_GRID=yes'
6311 else
6312 ac_cv_use_grid='wxUSE_GRID=no'
6313 fi
6314
6315else
6316
6317 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6318 if test "x$LINE" != x ; then
6319 eval "DEFAULT_$LINE"
6320 else
6321 no_cache=1
6322 fi
6323
6324 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6325
6326fi
6327
6328
6329 eval "$ac_cv_use_grid"
6330 if test "$no_cache" != 1; then
6331 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6332 fi
6333
6334 if test "$wxUSE_GRID" = yes; then
6335 echo "$ac_t""yes" 1>&6
6336 else
6337 echo "$ac_t""no" 1>&6
6338 fi
6339
6340
6341 enablestring=
6342 echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
6343echo "configure:6344: checking for --${enablestring:-enable}-imaglist" >&5
6344 no_cache=0
6345 # Check whether --enable-imaglist or --disable-imaglist was given.
6346if test "${enable_imaglist+set}" = set; then
6347 enableval="$enable_imaglist"
6348
6349 if test "$enableval" = yes; then
6350 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6351 else
6352 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6353 fi
6354
6355else
6356
6357 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6358 if test "x$LINE" != x ; then
6359 eval "DEFAULT_$LINE"
6360 else
6361 no_cache=1
6362 fi
6363
6364 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6365
6366fi
6367
6368
6369 eval "$ac_cv_use_imaglist"
6370 if test "$no_cache" != 1; then
6371 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6372 fi
6373
6374 if test "$wxUSE_IMAGLIST" = yes; then
6375 echo "$ac_t""yes" 1>&6
6376 else
6377 echo "$ac_t""no" 1>&6
6378 fi
6379
6380
6381 enablestring=
6382 echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
6383echo "configure:6384: checking for --${enablestring:-enable}-listbox" >&5
6384 no_cache=0
6385 # Check whether --enable-listbox or --disable-listbox was given.
6386if test "${enable_listbox+set}" = set; then
6387 enableval="$enable_listbox"
6388
6389 if test "$enableval" = yes; then
6390 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6391 else
6392 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6393 fi
6394
6395else
6396
6397 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6398 if test "x$LINE" != x ; then
6399 eval "DEFAULT_$LINE"
6400 else
6401 no_cache=1
6402 fi
6403
6404 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6405
6406fi
6407
6408
6409 eval "$ac_cv_use_listbox"
6410 if test "$no_cache" != 1; then
6411 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6412 fi
6413
6414 if test "$wxUSE_LISTBOX" = yes; then
6415 echo "$ac_t""yes" 1>&6
6416 else
6417 echo "$ac_t""no" 1>&6
6418 fi
6419
6420
6421 enablestring=
6422 echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
6423echo "configure:6424: checking for --${enablestring:-enable}-listctrl" >&5
6424 no_cache=0
6425 # Check whether --enable-listctrl or --disable-listctrl was given.
6426if test "${enable_listctrl+set}" = set; then
6427 enableval="$enable_listctrl"
6428
6429 if test "$enableval" = yes; then
6430 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6431 else
6432 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6433 fi
6434
6435else
6436
6437 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6438 if test "x$LINE" != x ; then
6439 eval "DEFAULT_$LINE"
6440 else
6441 no_cache=1
6442 fi
6443
6444 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6445
6446fi
6447
6448
6449 eval "$ac_cv_use_listctrl"
6450 if test "$no_cache" != 1; then
6451 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6452 fi
6453
6454 if test "$wxUSE_LISTCTRL" = yes; then
6455 echo "$ac_t""yes" 1>&6
6456 else
6457 echo "$ac_t""no" 1>&6
6458 fi
6459
6460
6461 enablestring=
6462 echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
6463echo "configure:6464: checking for --${enablestring:-enable}-notebook" >&5
6464 no_cache=0
6465 # Check whether --enable-notebook or --disable-notebook was given.
6466if test "${enable_notebook+set}" = set; then
6467 enableval="$enable_notebook"
6468
6469 if test "$enableval" = yes; then
6470 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6471 else
6472 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6473 fi
6474
6475else
6476
6477 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6478 if test "x$LINE" != x ; then
6479 eval "DEFAULT_$LINE"
6480 else
6481 no_cache=1
6482 fi
6483
6484 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6485
6486fi
6487
6488
6489 eval "$ac_cv_use_notebook"
6490 if test "$no_cache" != 1; then
6491 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6492 fi
6493
6494 if test "$wxUSE_NOTEBOOK" = yes; then
6495 echo "$ac_t""yes" 1>&6
6496 else
6497 echo "$ac_t""no" 1>&6
6498 fi
6499
6500
6501 enablestring=
6502 echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
6503echo "configure:6504: checking for --${enablestring:-enable}-radiobox" >&5
6504 no_cache=0
6505 # Check whether --enable-radiobox or --disable-radiobox was given.
6506if test "${enable_radiobox+set}" = set; then
6507 enableval="$enable_radiobox"
6508
6509 if test "$enableval" = yes; then
6510 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6511 else
6512 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6513 fi
6514
6515else
6516
6517 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6518 if test "x$LINE" != x ; then
6519 eval "DEFAULT_$LINE"
6520 else
6521 no_cache=1
6522 fi
6523
6524 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6525
6526fi
6527
6528
6529 eval "$ac_cv_use_radiobox"
6530 if test "$no_cache" != 1; then
6531 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6532 fi
6533
6534 if test "$wxUSE_RADIOBOX" = yes; then
6535 echo "$ac_t""yes" 1>&6
6536 else
6537 echo "$ac_t""no" 1>&6
6538 fi
6539
6540
6541 enablestring=
6542 echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
6543echo "configure:6544: checking for --${enablestring:-enable}-radiobtn" >&5
6544 no_cache=0
6545 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6546if test "${enable_radiobtn+set}" = set; then
6547 enableval="$enable_radiobtn"
6548
6549 if test "$enableval" = yes; then
6550 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6551 else
6552 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6553 fi
6554
6555else
6556
6557 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6558 if test "x$LINE" != x ; then
6559 eval "DEFAULT_$LINE"
6560 else
6561 no_cache=1
6562 fi
6563
6564 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6565
6566fi
6567
6568
6569 eval "$ac_cv_use_radiobtn"
6570 if test "$no_cache" != 1; then
6571 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6572 fi
6573
6574 if test "$wxUSE_RADIOBTN" = yes; then
6575 echo "$ac_t""yes" 1>&6
6576 else
6577 echo "$ac_t""no" 1>&6
6578 fi
6579
6580
6581 enablestring=
6582 echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
6583echo "configure:6584: checking for --${enablestring:-enable}-sash" >&5
6584 no_cache=0
6585 # Check whether --enable-sash or --disable-sash was given.
6586if test "${enable_sash+set}" = set; then
6587 enableval="$enable_sash"
6588
6589 if test "$enableval" = yes; then
6590 ac_cv_use_sash='wxUSE_SASH=yes'
6591 else
6592 ac_cv_use_sash='wxUSE_SASH=no'
6593 fi
6594
6595else
6596
6597 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6598 if test "x$LINE" != x ; then
6599 eval "DEFAULT_$LINE"
6600 else
6601 no_cache=1
6602 fi
6603
6604 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6605
6606fi
6607
6608
6609 eval "$ac_cv_use_sash"
6610 if test "$no_cache" != 1; then
6611 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6612 fi
6613
6614 if test "$wxUSE_SASH" = yes; then
6615 echo "$ac_t""yes" 1>&6
6616 else
6617 echo "$ac_t""no" 1>&6
6618 fi
6619
6620
6621 enablestring=
6622 echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
6623echo "configure:6624: checking for --${enablestring:-enable}-scrollbar" >&5
6624 no_cache=0
6625 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6626if test "${enable_scrollbar+set}" = set; then
6627 enableval="$enable_scrollbar"
6628
6629 if test "$enableval" = yes; then
6630 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6631 else
6632 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6633 fi
6634
6635else
6636
6637 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6638 if test "x$LINE" != x ; then
6639 eval "DEFAULT_$LINE"
6640 else
6641 no_cache=1
6642 fi
6643
6644 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6645
6646fi
6647
6648
6649 eval "$ac_cv_use_scrollbar"
6650 if test "$no_cache" != 1; then
6651 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6652 fi
6653
6654 if test "$wxUSE_SCROLLBAR" = yes; then
6655 echo "$ac_t""yes" 1>&6
6656 else
6657 echo "$ac_t""no" 1>&6
6658 fi
6659
6660
6661 enablestring=
6662 echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
6663echo "configure:6664: checking for --${enablestring:-enable}-slider" >&5
6664 no_cache=0
6665 # Check whether --enable-slider or --disable-slider was given.
6666if test "${enable_slider+set}" = set; then
6667 enableval="$enable_slider"
6668
6669 if test "$enableval" = yes; then
6670 ac_cv_use_slider='wxUSE_SLIDER=yes'
6671 else
6672 ac_cv_use_slider='wxUSE_SLIDER=no'
6673 fi
6674
6675else
6676
6677 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6678 if test "x$LINE" != x ; then
6679 eval "DEFAULT_$LINE"
6680 else
6681 no_cache=1
6682 fi
6683
6684 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6685
6686fi
6687
6688
6689 eval "$ac_cv_use_slider"
6690 if test "$no_cache" != 1; then
6691 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6692 fi
6693
6694 if test "$wxUSE_SLIDER" = yes; then
6695 echo "$ac_t""yes" 1>&6
6696 else
6697 echo "$ac_t""no" 1>&6
6698 fi
6699
6700
6701 enablestring=
6702 echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
6703echo "configure:6704: checking for --${enablestring:-enable}-spinbtn" >&5
6704 no_cache=0
6705 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6706if test "${enable_spinbtn+set}" = set; then
6707 enableval="$enable_spinbtn"
6708
6709 if test "$enableval" = yes; then
6710 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6711 else
6712 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6713 fi
6714
6715else
6716
6717 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6718 if test "x$LINE" != x ; then
6719 eval "DEFAULT_$LINE"
6720 else
6721 no_cache=1
6722 fi
6723
6724 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6725
6726fi
6727
6728
6729 eval "$ac_cv_use_spinbtn"
6730 if test "$no_cache" != 1; then
6731 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6732 fi
6733
6734 if test "$wxUSE_SPINBTN" = yes; then
6735 echo "$ac_t""yes" 1>&6
6736 else
6737 echo "$ac_t""no" 1>&6
6738 fi
6739
6740
6741 enablestring=
6742 echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
6743echo "configure:6744: checking for --${enablestring:-enable}-spinctrl" >&5
6744 no_cache=0
6745 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6746if test "${enable_spinctrl+set}" = set; then
6747 enableval="$enable_spinctrl"
6748
6749 if test "$enableval" = yes; then
6750 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6751 else
6752 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6753 fi
6754
6755else
6756
6757 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6758 if test "x$LINE" != x ; then
6759 eval "DEFAULT_$LINE"
6760 else
6761 no_cache=1
6762 fi
6763
6764 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6765
6766fi
6767
6768
6769 eval "$ac_cv_use_spinctrl"
6770 if test "$no_cache" != 1; then
6771 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6772 fi
6773
6774 if test "$wxUSE_SPINCTRL" = yes; then
6775 echo "$ac_t""yes" 1>&6
6776 else
6777 echo "$ac_t""no" 1>&6
6778 fi
6779
6780
6781 enablestring=
6782 echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
6783echo "configure:6784: checking for --${enablestring:-enable}-splitter" >&5
6784 no_cache=0
6785 # Check whether --enable-splitter or --disable-splitter was given.
6786if test "${enable_splitter+set}" = set; then
6787 enableval="$enable_splitter"
6788
6789 if test "$enableval" = yes; then
6790 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6791 else
6792 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6793 fi
6794
6795else
6796
6797 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6798 if test "x$LINE" != x ; then
6799 eval "DEFAULT_$LINE"
6800 else
6801 no_cache=1
6802 fi
6803
6804 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6805
6806fi
6807
6808
6809 eval "$ac_cv_use_splitter"
6810 if test "$no_cache" != 1; then
6811 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6812 fi
6813
6814 if test "$wxUSE_SPLITTER" = yes; then
6815 echo "$ac_t""yes" 1>&6
6816 else
6817 echo "$ac_t""no" 1>&6
6818 fi
6819
6820
6821 enablestring=
6822 echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
6823echo "configure:6824: checking for --${enablestring:-enable}-statbmp" >&5
6824 no_cache=0
6825 # Check whether --enable-statbmp or --disable-statbmp was given.
6826if test "${enable_statbmp+set}" = set; then
6827 enableval="$enable_statbmp"
6828
6829 if test "$enableval" = yes; then
6830 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6831 else
6832 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6833 fi
6834
6835else
6836
6837 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6838 if test "x$LINE" != x ; then
6839 eval "DEFAULT_$LINE"
6840 else
6841 no_cache=1
6842 fi
6843
6844 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6845
6846fi
6847
6848
6849 eval "$ac_cv_use_statbmp"
6850 if test "$no_cache" != 1; then
6851 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6852 fi
6853
6854 if test "$wxUSE_STATBMP" = yes; then
6855 echo "$ac_t""yes" 1>&6
6856 else
6857 echo "$ac_t""no" 1>&6
6858 fi
6859
6860
6861 enablestring=
6862 echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
6863echo "configure:6864: checking for --${enablestring:-enable}-statbox" >&5
6864 no_cache=0
6865 # Check whether --enable-statbox or --disable-statbox was given.
6866if test "${enable_statbox+set}" = set; then
6867 enableval="$enable_statbox"
6868
6869 if test "$enableval" = yes; then
6870 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6871 else
6872 ac_cv_use_statbox='wxUSE_STATBOX=no'
6873 fi
6874
6875else
6876
6877 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6878 if test "x$LINE" != x ; then
6879 eval "DEFAULT_$LINE"
6880 else
6881 no_cache=1
6882 fi
6883
6884 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6885
6886fi
6887
6888
6889 eval "$ac_cv_use_statbox"
6890 if test "$no_cache" != 1; then
6891 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6892 fi
6893
6894 if test "$wxUSE_STATBOX" = yes; then
6895 echo "$ac_t""yes" 1>&6
6896 else
6897 echo "$ac_t""no" 1>&6
6898 fi
6899
6900
6901 enablestring=
6902 echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
6903echo "configure:6904: checking for --${enablestring:-enable}-statline" >&5
6904 no_cache=0
6905 # Check whether --enable-statline or --disable-statline was given.
6906if test "${enable_statline+set}" = set; then
6907 enableval="$enable_statline"
6908
6909 if test "$enableval" = yes; then
6910 ac_cv_use_statline='wxUSE_STATLINE=yes'
6911 else
6912 ac_cv_use_statline='wxUSE_STATLINE=no'
6913 fi
6914
6915else
6916
6917 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6918 if test "x$LINE" != x ; then
6919 eval "DEFAULT_$LINE"
6920 else
6921 no_cache=1
6922 fi
6923
6924 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6925
6926fi
6927
6928
6929 eval "$ac_cv_use_statline"
6930 if test "$no_cache" != 1; then
6931 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6932 fi
6933
6934 if test "$wxUSE_STATLINE" = yes; then
6935 echo "$ac_t""yes" 1>&6
6936 else
6937 echo "$ac_t""no" 1>&6
6938 fi
6939
6940
6941 enablestring=
6942 echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
6943echo "configure:6944: checking for --${enablestring:-enable}-stattext" >&5
6944 no_cache=0
6945 # Check whether --enable-stattext or --disable-stattext was given.
6946if test "${enable_stattext+set}" = set; then
6947 enableval="$enable_stattext"
6948
6949 if test "$enableval" = yes; then
6950 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6951 else
6952 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6953 fi
6954
6955else
6956
6957 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6958 if test "x$LINE" != x ; then
6959 eval "DEFAULT_$LINE"
6960 else
6961 no_cache=1
6962 fi
6963
6964 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6965
6966fi
6967
6968
6969 eval "$ac_cv_use_stattext"
6970 if test "$no_cache" != 1; then
6971 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6972 fi
6973
6974 if test "$wxUSE_STATTEXT" = yes; then
6975 echo "$ac_t""yes" 1>&6
6976 else
6977 echo "$ac_t""no" 1>&6
6978 fi
6979
6980
6981 enablestring=
6982 echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
6983echo "configure:6984: checking for --${enablestring:-enable}-statusbar" >&5
6984 no_cache=0
6985 # Check whether --enable-statusbar or --disable-statusbar was given.
6986if test "${enable_statusbar+set}" = set; then
6987 enableval="$enable_statusbar"
6988
6989 if test "$enableval" = yes; then
6990 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6991 else
6992 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6993 fi
6994
6995else
6996
6997 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6998 if test "x$LINE" != x ; then
6999 eval "DEFAULT_$LINE"
7000 else
7001 no_cache=1
7002 fi
7003
7004 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
7005
7006fi
7007
7008
7009 eval "$ac_cv_use_statusbar"
7010 if test "$no_cache" != 1; then
7011 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7012 fi
7013
7014 if test "$wxUSE_STATUSBAR" = yes; then
7015 echo "$ac_t""yes" 1>&6
7016 else
7017 echo "$ac_t""no" 1>&6
7018 fi
7019
7020
7021 enablestring=
7022 echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
7023echo "configure:7024: checking for --${enablestring:-enable}-tabdialog" >&5
7024 no_cache=0
7025 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7026if test "${enable_tabdialog+set}" = set; then
7027 enableval="$enable_tabdialog"
7028
7029 if test "$enableval" = yes; then
7030 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7031 else
7032 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7033 fi
7034
7035else
7036
7037 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7038 if test "x$LINE" != x ; then
7039 eval "DEFAULT_$LINE"
7040 else
7041 no_cache=1
7042 fi
7043
7044 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
7045
7046fi
7047
7048
7049 eval "$ac_cv_use_tabdialog"
7050 if test "$no_cache" != 1; then
7051 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7052 fi
7053
7054 if test "$wxUSE_TABDIALOG" = yes; then
7055 echo "$ac_t""yes" 1>&6
7056 else
7057 echo "$ac_t""no" 1>&6
7058 fi
7059
7060
7061 enablestring=
7062 echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
7063echo "configure:7064: checking for --${enablestring:-enable}-textctrl" >&5
7064 no_cache=0
7065 # Check whether --enable-textctrl or --disable-textctrl was given.
7066if test "${enable_textctrl+set}" = set; then
7067 enableval="$enable_textctrl"
7068
7069 if test "$enableval" = yes; then
7070 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7071 else
7072 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7073 fi
7074
7075else
7076
7077 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7078 if test "x$LINE" != x ; then
7079 eval "DEFAULT_$LINE"
7080 else
7081 no_cache=1
7082 fi
7083
7084 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
7085
7086fi
7087
7088
7089 eval "$ac_cv_use_textctrl"
7090 if test "$no_cache" != 1; then
7091 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7092 fi
7093
7094 if test "$wxUSE_TEXTCTRL" = yes; then
7095 echo "$ac_t""yes" 1>&6
7096 else
7097 echo "$ac_t""no" 1>&6
7098 fi
7099
7100
7101 enablestring=
7102 echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
7103echo "configure:7104: checking for --${enablestring:-enable}-togglebtn" >&5
7104 no_cache=0
7105 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7106if test "${enable_togglebtn+set}" = set; then
7107 enableval="$enable_togglebtn"
7108
7109 if test "$enableval" = yes; then
7110 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7111 else
7112 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7113 fi
7114
7115else
7116
7117 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7118 if test "x$LINE" != x ; then
7119 eval "DEFAULT_$LINE"
7120 else
7121 no_cache=1
7122 fi
7123
7124 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7125
7126fi
7127
7128
7129 eval "$ac_cv_use_togglebtn"
7130 if test "$no_cache" != 1; then
7131 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7132 fi
7133
7134 if test "$wxUSE_TOGGLEBTN" = yes; then
7135 echo "$ac_t""yes" 1>&6
7136 else
7137 echo "$ac_t""no" 1>&6
7138 fi
7139
7140
7141 enablestring=
7142 echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
7143echo "configure:7144: checking for --${enablestring:-enable}-toolbar" >&5
7144 no_cache=0
7145 # Check whether --enable-toolbar or --disable-toolbar was given.
7146if test "${enable_toolbar+set}" = set; then
7147 enableval="$enable_toolbar"
7148
7149 if test "$enableval" = yes; then
7150 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7151 else
7152 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7153 fi
7154
7155else
7156
7157 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7158 if test "x$LINE" != x ; then
7159 eval "DEFAULT_$LINE"
7160 else
7161 no_cache=1
7162 fi
7163
7164 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7165
7166fi
7167
7168
7169 eval "$ac_cv_use_toolbar"
7170 if test "$no_cache" != 1; then
7171 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7172 fi
7173
7174 if test "$wxUSE_TOOLBAR" = yes; then
7175 echo "$ac_t""yes" 1>&6
7176 else
7177 echo "$ac_t""no" 1>&6
7178 fi
7179
7180
7181 enablestring=
7182 echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
7183echo "configure:7184: checking for --${enablestring:-enable}-tbarnative" >&5
7184 no_cache=0
7185 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7186if test "${enable_tbarnative+set}" = set; then
7187 enableval="$enable_tbarnative"
7188
7189 if test "$enableval" = yes; then
7190 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7191 else
7192 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7193 fi
7194
7195else
7196
7197 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7198 if test "x$LINE" != x ; then
7199 eval "DEFAULT_$LINE"
7200 else
7201 no_cache=1
7202 fi
7203
7204 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7205
7206fi
7207
7208
7209 eval "$ac_cv_use_tbarnative"
7210 if test "$no_cache" != 1; then
7211 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7212 fi
7213
7214 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7215 echo "$ac_t""yes" 1>&6
7216 else
7217 echo "$ac_t""no" 1>&6
7218 fi
7219
7220
7221 enablestring=
7222 echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
7223echo "configure:7224: checking for --${enablestring:-enable}-tbarsmpl" >&5
7224 no_cache=0
7225 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7226if test "${enable_tbarsmpl+set}" = set; then
7227 enableval="$enable_tbarsmpl"
7228
7229 if test "$enableval" = yes; then
7230 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7231 else
7232 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7233 fi
7234
7235else
7236
7237 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7238 if test "x$LINE" != x ; then
7239 eval "DEFAULT_$LINE"
7240 else
7241 no_cache=1
7242 fi
7243
7244 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7245
7246fi
7247
7248
7249 eval "$ac_cv_use_tbarsmpl"
7250 if test "$no_cache" != 1; then
7251 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7252 fi
7253
7254 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7255 echo "$ac_t""yes" 1>&6
7256 else
7257 echo "$ac_t""no" 1>&6
7258 fi
7259
7260
7261 enablestring=
7262 echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
7263echo "configure:7264: checking for --${enablestring:-enable}-treectrl" >&5
7264 no_cache=0
7265 # Check whether --enable-treectrl or --disable-treectrl was given.
7266if test "${enable_treectrl+set}" = set; then
7267 enableval="$enable_treectrl"
7268
7269 if test "$enableval" = yes; then
7270 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7271 else
7272 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7273 fi
7274
7275else
7276
7277 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7278 if test "x$LINE" != x ; then
7279 eval "DEFAULT_$LINE"
7280 else
7281 no_cache=1
7282 fi
7283
7284 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7285
7286fi
7287
7288
7289 eval "$ac_cv_use_treectrl"
7290 if test "$no_cache" != 1; then
7291 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7292 fi
7293
7294 if test "$wxUSE_TREECTRL" = yes; then
7295 echo "$ac_t""yes" 1>&6
7296 else
7297 echo "$ac_t""no" 1>&6
7298 fi
7299
7300
7301 enablestring=
7302 echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
7303echo "configure:7304: checking for --${enablestring:-enable}-tipwindow" >&5
7304 no_cache=0
7305 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7306if test "${enable_tipwindow+set}" = set; then
7307 enableval="$enable_tipwindow"
7308
7309 if test "$enableval" = yes; then
7310 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7311 else
7312 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7313 fi
7314
7315else
7316
7317 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7318 if test "x$LINE" != x ; then
7319 eval "DEFAULT_$LINE"
7320 else
7321 no_cache=1
7322 fi
7323
7324 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7325
7326fi
7327
7328
7329 eval "$ac_cv_use_tipwindow"
7330 if test "$no_cache" != 1; then
7331 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7332 fi
7333
7334 if test "$wxUSE_TIPWINDOW" = yes; then
7335 echo "$ac_t""yes" 1>&6
7336 else
7337 echo "$ac_t""no" 1>&6
7338 fi
7339
7340
7341 enablestring=
7342 echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
7343echo "configure:7344: checking for --${enablestring:-enable}-popupwin" >&5
7344 no_cache=0
7345 # Check whether --enable-popupwin or --disable-popupwin was given.
7346if test "${enable_popupwin+set}" = set; then
7347 enableval="$enable_popupwin"
7348
7349 if test "$enableval" = yes; then
7350 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7351 else
7352 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7353 fi
7354
7355else
7356
7357 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7358 if test "x$LINE" != x ; then
7359 eval "DEFAULT_$LINE"
7360 else
7361 no_cache=1
7362 fi
7363
7364 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7365
7366fi
7367
7368
7369 eval "$ac_cv_use_popupwin"
7370 if test "$no_cache" != 1; then
7371 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7372 fi
7373
7374 if test "$wxUSE_POPUPWIN" = yes; then
7375 echo "$ac_t""yes" 1>&6
7376 else
7377 echo "$ac_t""no" 1>&6
7378 fi
7379
7380
7381
7382
7383 enablestring=
7384 echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
7385echo "configure:7386: checking for --${enablestring:-enable}-commondlg" >&5
7386 no_cache=0
7387 # Check whether --enable-commondlg or --disable-commondlg was given.
7388if test "${enable_commondlg+set}" = set; then
7389 enableval="$enable_commondlg"
7390
7391 if test "$enableval" = yes; then
7392 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7393 else
7394 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7395 fi
7396
7397else
7398
7399 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7400 if test "x$LINE" != x ; then
7401 eval "DEFAULT_$LINE"
7402 else
7403 no_cache=1
7404 fi
7405
7406 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7407
7408fi
7409
7410
7411 eval "$ac_cv_use_commondlg"
7412 if test "$no_cache" != 1; then
7413 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7414 fi
7415
7416 if test "$wxUSE_COMMONDLGS" = yes; then
7417 echo "$ac_t""yes" 1>&6
7418 else
7419 echo "$ac_t""no" 1>&6
7420 fi
7421
7422
7423 enablestring=
7424 echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
7425echo "configure:7426: checking for --${enablestring:-enable}-choicedlg" >&5
7426 no_cache=0
7427 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7428if test "${enable_choicedlg+set}" = set; then
7429 enableval="$enable_choicedlg"
7430
7431 if test "$enableval" = yes; then
7432 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7433 else
7434 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7435 fi
7436
7437else
7438
7439 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7440 if test "x$LINE" != x ; then
7441 eval "DEFAULT_$LINE"
7442 else
7443 no_cache=1
7444 fi
7445
7446 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7447
7448fi
7449
7450
7451 eval "$ac_cv_use_choicedlg"
7452 if test "$no_cache" != 1; then
7453 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7454 fi
7455
7456 if test "$wxUSE_CHOICEDLG" = yes; then
7457 echo "$ac_t""yes" 1>&6
7458 else
7459 echo "$ac_t""no" 1>&6
7460 fi
7461
7462
7463 enablestring=
7464 echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
7465echo "configure:7466: checking for --${enablestring:-enable}-coldlg" >&5
7466 no_cache=0
7467 # Check whether --enable-coldlg or --disable-coldlg was given.
7468if test "${enable_coldlg+set}" = set; then
7469 enableval="$enable_coldlg"
7470
7471 if test "$enableval" = yes; then
7472 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7473 else
7474 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7475 fi
7476
7477else
7478
7479 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7480 if test "x$LINE" != x ; then
7481 eval "DEFAULT_$LINE"
7482 else
7483 no_cache=1
7484 fi
7485
7486 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7487
7488fi
7489
7490
7491 eval "$ac_cv_use_coldlg"
7492 if test "$no_cache" != 1; then
7493 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7494 fi
7495
7496 if test "$wxUSE_COLOURDLG" = yes; then
7497 echo "$ac_t""yes" 1>&6
7498 else
7499 echo "$ac_t""no" 1>&6
7500 fi
7501
7502
7503 enablestring=
7504 echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
7505echo "configure:7506: checking for --${enablestring:-enable}-filedlg" >&5
7506 no_cache=0
7507 # Check whether --enable-filedlg or --disable-filedlg was given.
7508if test "${enable_filedlg+set}" = set; then
7509 enableval="$enable_filedlg"
7510
7511 if test "$enableval" = yes; then
7512 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7513 else
7514 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7515 fi
7516
7517else
7518
7519 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7520 if test "x$LINE" != x ; then
7521 eval "DEFAULT_$LINE"
7522 else
7523 no_cache=1
7524 fi
7525
7526 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7527
7528fi
7529
7530
7531 eval "$ac_cv_use_filedlg"
7532 if test "$no_cache" != 1; then
7533 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7534 fi
7535
7536 if test "$wxUSE_FILEDLG" = yes; then
7537 echo "$ac_t""yes" 1>&6
7538 else
7539 echo "$ac_t""no" 1>&6
7540 fi
7541
7542
7543 enablestring=
7544 echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
7545echo "configure:7546: checking for --${enablestring:-enable}-finddlg" >&5
7546 no_cache=0
7547 # Check whether --enable-finddlg or --disable-finddlg was given.
7548if test "${enable_finddlg+set}" = set; then
7549 enableval="$enable_finddlg"
7550
7551 if test "$enableval" = yes; then
7552 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7553 else
7554 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7555 fi
7556
7557else
7558
7559 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7560 if test "x$LINE" != x ; then
7561 eval "DEFAULT_$LINE"
7562 else
7563 no_cache=1
7564 fi
7565
7566 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7567
7568fi
7569
7570
7571 eval "$ac_cv_use_finddlg"
7572 if test "$no_cache" != 1; then
7573 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7574 fi
7575
7576 if test "$wxUSE_FINDREPLDLG" = yes; then
7577 echo "$ac_t""yes" 1>&6
7578 else
7579 echo "$ac_t""no" 1>&6
7580 fi
7581
7582
7583 enablestring=
7584 echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
7585echo "configure:7586: checking for --${enablestring:-enable}-fontdlg" >&5
7586 no_cache=0
7587 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7588if test "${enable_fontdlg+set}" = set; then
7589 enableval="$enable_fontdlg"
7590
7591 if test "$enableval" = yes; then
7592 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7593 else
7594 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7595 fi
7596
7597else
7598
7599 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7600 if test "x$LINE" != x ; then
7601 eval "DEFAULT_$LINE"
7602 else
7603 no_cache=1
7604 fi
7605
7606 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7607
7608fi
7609
7610
7611 eval "$ac_cv_use_fontdlg"
7612 if test "$no_cache" != 1; then
7613 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7614 fi
7615
7616 if test "$wxUSE_FONTDLG" = yes; then
7617 echo "$ac_t""yes" 1>&6
7618 else
7619 echo "$ac_t""no" 1>&6
7620 fi
7621
7622
7623 enablestring=
7624 echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
7625echo "configure:7626: checking for --${enablestring:-enable}-dirdlg" >&5
7626 no_cache=0
7627 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7628if test "${enable_dirdlg+set}" = set; then
7629 enableval="$enable_dirdlg"
7630
7631 if test "$enableval" = yes; then
7632 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7633 else
7634 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7635 fi
7636
7637else
7638
7639 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7640 if test "x$LINE" != x ; then
7641 eval "DEFAULT_$LINE"
7642 else
7643 no_cache=1
7644 fi
7645
7646 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7647
7648fi
7649
7650
7651 eval "$ac_cv_use_dirdlg"
7652 if test "$no_cache" != 1; then
7653 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7654 fi
7655
7656 if test "$wxUSE_DIRDLG" = yes; then
7657 echo "$ac_t""yes" 1>&6
7658 else
7659 echo "$ac_t""no" 1>&6
7660 fi
7661
7662
7663 enablestring=
7664 echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
7665echo "configure:7666: checking for --${enablestring:-enable}-msgdlg" >&5
7666 no_cache=0
7667 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7668if test "${enable_msgdlg+set}" = set; then
7669 enableval="$enable_msgdlg"
7670
7671 if test "$enableval" = yes; then
7672 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7673 else
7674 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7675 fi
7676
7677else
7678
7679 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7680 if test "x$LINE" != x ; then
7681 eval "DEFAULT_$LINE"
7682 else
7683 no_cache=1
7684 fi
7685
7686 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7687
7688fi
7689
7690
7691 eval "$ac_cv_use_msgdlg"
7692 if test "$no_cache" != 1; then
7693 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7694 fi
7695
7696 if test "$wxUSE_MSGDLG" = yes; then
7697 echo "$ac_t""yes" 1>&6
7698 else
7699 echo "$ac_t""no" 1>&6
7700 fi
7701
7702
7703 enablestring=
7704 echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
7705echo "configure:7706: checking for --${enablestring:-enable}-numberdlg" >&5
7706 no_cache=0
7707 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7708if test "${enable_numberdlg+set}" = set; then
7709 enableval="$enable_numberdlg"
7710
7711 if test "$enableval" = yes; then
7712 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7713 else
7714 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7715 fi
7716
7717else
7718
7719 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7720 if test "x$LINE" != x ; then
7721 eval "DEFAULT_$LINE"
7722 else
7723 no_cache=1
7724 fi
7725
7726 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7727
7728fi
7729
7730
7731 eval "$ac_cv_use_numberdlg"
7732 if test "$no_cache" != 1; then
7733 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7734 fi
7735
7736 if test "$wxUSE_NUMBERDLG" = yes; then
7737 echo "$ac_t""yes" 1>&6
7738 else
7739 echo "$ac_t""no" 1>&6
7740 fi
7741
7742
7743 enablestring=
7744 echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
7745echo "configure:7746: checking for --${enablestring:-enable}-splash" >&5
7746 no_cache=0
7747 # Check whether --enable-splash or --disable-splash was given.
7748if test "${enable_splash+set}" = set; then
7749 enableval="$enable_splash"
7750
7751 if test "$enableval" = yes; then
7752 ac_cv_use_splash='wxUSE_SPLASH=yes'
7753 else
7754 ac_cv_use_splash='wxUSE_SPLASH=no'
7755 fi
7756
7757else
7758
7759 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7760 if test "x$LINE" != x ; then
7761 eval "DEFAULT_$LINE"
7762 else
7763 no_cache=1
7764 fi
7765
7766 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7767
7768fi
7769
7770
7771 eval "$ac_cv_use_splash"
7772 if test "$no_cache" != 1; then
7773 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7774 fi
7775
7776 if test "$wxUSE_SPLASH" = yes; then
7777 echo "$ac_t""yes" 1>&6
7778 else
7779 echo "$ac_t""no" 1>&6
7780 fi
7781
7782
7783 enablestring=
7784 echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
7785echo "configure:7786: checking for --${enablestring:-enable}-textdlg" >&5
7786 no_cache=0
7787 # Check whether --enable-textdlg or --disable-textdlg was given.
7788if test "${enable_textdlg+set}" = set; then
7789 enableval="$enable_textdlg"
7790
7791 if test "$enableval" = yes; then
7792 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7793 else
7794 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7795 fi
7796
7797else
7798
7799 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7800 if test "x$LINE" != x ; then
7801 eval "DEFAULT_$LINE"
7802 else
7803 no_cache=1
7804 fi
7805
7806 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7807
7808fi
7809
7810
7811 eval "$ac_cv_use_textdlg"
7812 if test "$no_cache" != 1; then
7813 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7814 fi
7815
7816 if test "$wxUSE_TEXTDLG" = yes; then
7817 echo "$ac_t""yes" 1>&6
7818 else
7819 echo "$ac_t""no" 1>&6
7820 fi
7821
7822
7823 enablestring=
7824 echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
7825echo "configure:7826: checking for --${enablestring:-enable}-tipdlg" >&5
7826 no_cache=0
7827 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7828if test "${enable_tipdlg+set}" = set; then
7829 enableval="$enable_tipdlg"
7830
7831 if test "$enableval" = yes; then
7832 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7833 else
7834 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7835 fi
7836
7837else
7838
7839 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7840 if test "x$LINE" != x ; then
7841 eval "DEFAULT_$LINE"
7842 else
7843 no_cache=1
7844 fi
7845
7846 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7847
7848fi
7849
7850
7851 eval "$ac_cv_use_tipdlg"
7852 if test "$no_cache" != 1; then
7853 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7854 fi
7855
7856 if test "$wxUSE_STARTUP_TIPS" = yes; then
7857 echo "$ac_t""yes" 1>&6
7858 else
7859 echo "$ac_t""no" 1>&6
7860 fi
7861
7862
7863 enablestring=
7864 echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
7865echo "configure:7866: checking for --${enablestring:-enable}-progressdlg" >&5
7866 no_cache=0
7867 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7868if test "${enable_progressdlg+set}" = set; then
7869 enableval="$enable_progressdlg"
7870
7871 if test "$enableval" = yes; then
7872 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7873 else
7874 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7875 fi
7876
7877else
7878
7879 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7880 if test "x$LINE" != x ; then
7881 eval "DEFAULT_$LINE"
7882 else
7883 no_cache=1
7884 fi
7885
7886 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7887
7888fi
7889
7890
7891 eval "$ac_cv_use_progressdlg"
7892 if test "$no_cache" != 1; then
7893 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7894 fi
7895
7896 if test "$wxUSE_PROGRESSDLG" = yes; then
7897 echo "$ac_t""yes" 1>&6
7898 else
7899 echo "$ac_t""no" 1>&6
7900 fi
7901
7902
7903 enablestring=
7904 echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
7905echo "configure:7906: checking for --${enablestring:-enable}-wizarddlg" >&5
7906 no_cache=0
7907 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7908if test "${enable_wizarddlg+set}" = set; then
7909 enableval="$enable_wizarddlg"
7910
7911 if test "$enableval" = yes; then
7912 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7913 else
7914 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7915 fi
7916
7917else
7918
7919 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7920 if test "x$LINE" != x ; then
7921 eval "DEFAULT_$LINE"
7922 else
7923 no_cache=1
7924 fi
7925
7926 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7927
7928fi
7929
7930
7931 eval "$ac_cv_use_wizarddlg"
7932 if test "$no_cache" != 1; then
7933 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7934 fi
7935
7936 if test "$wxUSE_WIZARDDLG" = yes; then
7937 echo "$ac_t""yes" 1>&6
7938 else
7939 echo "$ac_t""no" 1>&6
7940 fi
7941
7942
7943
7944
7945 enablestring=
7946 echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
7947echo "configure:7948: checking for --${enablestring:-enable}-menus" >&5
7948 no_cache=0
7949 # Check whether --enable-menus or --disable-menus was given.
7950if test "${enable_menus+set}" = set; then
7951 enableval="$enable_menus"
7952
7953 if test "$enableval" = yes; then
7954 ac_cv_use_menus='wxUSE_MENUS=yes'
7955 else
7956 ac_cv_use_menus='wxUSE_MENUS=no'
7957 fi
7958
7959else
7960
7961 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7962 if test "x$LINE" != x ; then
7963 eval "DEFAULT_$LINE"
7964 else
7965 no_cache=1
7966 fi
7967
7968 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7969
7970fi
7971
7972
7973 eval "$ac_cv_use_menus"
7974 if test "$no_cache" != 1; then
7975 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7976 fi
7977
7978 if test "$wxUSE_MENUS" = yes; then
7979 echo "$ac_t""yes" 1>&6
7980 else
7981 echo "$ac_t""no" 1>&6
7982 fi
7983
7984
7985 enablestring=
7986 echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
7987echo "configure:7988: checking for --${enablestring:-enable}-miniframe" >&5
7988 no_cache=0
7989 # Check whether --enable-miniframe or --disable-miniframe was given.
7990if test "${enable_miniframe+set}" = set; then
7991 enableval="$enable_miniframe"
7992
7993 if test "$enableval" = yes; then
7994 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7995 else
7996 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7997 fi
7998
7999else
8000
8001 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8002 if test "x$LINE" != x ; then
8003 eval "DEFAULT_$LINE"
8004 else
8005 no_cache=1
8006 fi
8007
8008 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
8009
8010fi
8011
8012
8013 eval "$ac_cv_use_miniframe"
8014 if test "$no_cache" != 1; then
8015 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8016 fi
8017
8018 if test "$wxUSE_MINIFRAME" = yes; then
8019 echo "$ac_t""yes" 1>&6
8020 else
8021 echo "$ac_t""no" 1>&6
8022 fi
8023
8024
8025 enablestring=
8026 echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
8027echo "configure:8028: checking for --${enablestring:-enable}-tooltips" >&5
8028 no_cache=0
8029 # Check whether --enable-tooltips or --disable-tooltips was given.
8030if test "${enable_tooltips+set}" = set; then
8031 enableval="$enable_tooltips"
8032
8033 if test "$enableval" = yes; then
8034 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8035 else
8036 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8037 fi
8038
8039else
8040
8041 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8042 if test "x$LINE" != x ; then
8043 eval "DEFAULT_$LINE"
8044 else
8045 no_cache=1
8046 fi
8047
8048 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
8049
8050fi
8051
8052
8053 eval "$ac_cv_use_tooltips"
8054 if test "$no_cache" != 1; then
8055 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8056 fi
8057
8058 if test "$wxUSE_TOOLTIPS" = yes; then
8059 echo "$ac_t""yes" 1>&6
8060 else
8061 echo "$ac_t""no" 1>&6
8062 fi
8063
8064
8065 enablestring=
8066 echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
8067echo "configure:8068: checking for --${enablestring:-enable}-splines" >&5
8068 no_cache=0
8069 # Check whether --enable-splines or --disable-splines was given.
8070if test "${enable_splines+set}" = set; then
8071 enableval="$enable_splines"
8072
8073 if test "$enableval" = yes; then
8074 ac_cv_use_splines='wxUSE_SPLINES=yes'
8075 else
8076 ac_cv_use_splines='wxUSE_SPLINES=no'
8077 fi
8078
8079else
8080
8081 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8082 if test "x$LINE" != x ; then
8083 eval "DEFAULT_$LINE"
8084 else
8085 no_cache=1
8086 fi
8087
8088 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
8089
8090fi
8091
8092
8093 eval "$ac_cv_use_splines"
8094 if test "$no_cache" != 1; then
8095 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8096 fi
8097
8098 if test "$wxUSE_SPLINES" = yes; then
8099 echo "$ac_t""yes" 1>&6
8100 else
8101 echo "$ac_t""no" 1>&6
8102 fi
8103
8104
8105 enablestring=
8106 echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
8107echo "configure:8108: checking for --${enablestring:-enable}-validators" >&5
8108 no_cache=0
8109 # Check whether --enable-validators or --disable-validators was given.
8110if test "${enable_validators+set}" = set; then
8111 enableval="$enable_validators"
8112
8113 if test "$enableval" = yes; then
8114 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8115 else
8116 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8117 fi
8118
8119else
8120
8121 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8122 if test "x$LINE" != x ; then
8123 eval "DEFAULT_$LINE"
8124 else
8125 no_cache=1
8126 fi
8127
8128 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
8129
8130fi
8131
8132
8133 eval "$ac_cv_use_validators"
8134 if test "$no_cache" != 1; then
8135 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8136 fi
8137
8138 if test "$wxUSE_VALIDATORS" = yes; then
8139 echo "$ac_t""yes" 1>&6
8140 else
8141 echo "$ac_t""no" 1>&6
8142 fi
8143
8144
8145 enablestring=
8146 echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
8147echo "configure:8148: checking for --${enablestring:-enable}-busyinfo" >&5
8148 no_cache=0
8149 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8150if test "${enable_busyinfo+set}" = set; then
8151 enableval="$enable_busyinfo"
8152
8153 if test "$enableval" = yes; then
8154 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8155 else
8156 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8157 fi
8158
8159else
8160
8161 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8162 if test "x$LINE" != x ; then
8163 eval "DEFAULT_$LINE"
8164 else
8165 no_cache=1
8166 fi
8167
8168 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8169
8170fi
8171
8172
8173 eval "$ac_cv_use_busyinfo"
8174 if test "$no_cache" != 1; then
8175 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8176 fi
8177
8178 if test "$wxUSE_BUSYINFO" = yes; then
8179 echo "$ac_t""yes" 1>&6
8180 else
8181 echo "$ac_t""no" 1>&6
8182 fi
8183
8184
8185 enablestring=
8186 echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
8187echo "configure:8188: checking for --${enablestring:-enable}-joystick" >&5
8188 no_cache=0
8189 # Check whether --enable-joystick or --disable-joystick was given.
8190if test "${enable_joystick+set}" = set; then
8191 enableval="$enable_joystick"
8192
8193 if test "$enableval" = yes; then
8194 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8195 else
8196 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8197 fi
8198
8199else
8200
8201 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8202 if test "x$LINE" != x ; then
8203 eval "DEFAULT_$LINE"
8204 else
8205 no_cache=1
8206 fi
8207
8208 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8209
8210fi
8211
8212
8213 eval "$ac_cv_use_joystick"
8214 if test "$no_cache" != 1; then
8215 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8216 fi
8217
8218 if test "$wxUSE_JOYSTICK" = yes; then
8219 echo "$ac_t""yes" 1>&6
8220 else
8221 echo "$ac_t""no" 1>&6
8222 fi
8223
8224
8225 enablestring=
8226 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
8227echo "configure:8228: checking for --${enablestring:-enable}-metafile" >&5
8228 no_cache=0
8229 # Check whether --enable-metafile or --disable-metafile was given.
8230if test "${enable_metafile+set}" = set; then
8231 enableval="$enable_metafile"
8232
8233 if test "$enableval" = yes; then
8234 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8235 else
8236 ac_cv_use_metafile='wxUSE_METAFILE=no'
8237 fi
8238
8239else
8240
8241 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8242 if test "x$LINE" != x ; then
8243 eval "DEFAULT_$LINE"
8244 else
8245 no_cache=1
8246 fi
8247
8248 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8249
8250fi
8251
8252
8253 eval "$ac_cv_use_metafile"
8254 if test "$no_cache" != 1; then
8255 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8256 fi
8257
8258 if test "$wxUSE_METAFILE" = yes; then
8259 echo "$ac_t""yes" 1>&6
8260 else
8261 echo "$ac_t""no" 1>&6
8262 fi
8263
8264
8265 enablestring=
8266 echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
8267echo "configure:8268: checking for --${enablestring:-enable}-dragimage" >&5
8268 no_cache=0
8269 # Check whether --enable-dragimage or --disable-dragimage was given.
8270if test "${enable_dragimage+set}" = set; then
8271 enableval="$enable_dragimage"
8272
8273 if test "$enableval" = yes; then
8274 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8275 else
8276 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8277 fi
8278
8279else
8280
8281 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8282 if test "x$LINE" != x ; then
8283 eval "DEFAULT_$LINE"
8284 else
8285 no_cache=1
8286 fi
8287
8288 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8289
8290fi
8291
8292
8293 eval "$ac_cv_use_dragimage"
8294 if test "$no_cache" != 1; then
8295 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8296 fi
8297
8298 if test "$wxUSE_DRAGIMAGE" = yes; then
8299 echo "$ac_t""yes" 1>&6
8300 else
8301 echo "$ac_t""no" 1>&6
8302 fi
8303
8304
8305 enablestring=
8306 echo $ac_n "checking for --${enablestring:-enable}-accessibility""... $ac_c" 1>&6
8307echo "configure:8308: checking for --${enablestring:-enable}-accessibility" >&5
8308 no_cache=0
8309 # Check whether --enable-accessibility or --disable-accessibility was given.
8310if test "${enable_accessibility+set}" = set; then
8311 enableval="$enable_accessibility"
8312
8313 if test "$enableval" = yes; then
8314 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
8315 else
8316 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
8317 fi
8318
8319else
8320
8321 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
8322 if test "x$LINE" != x ; then
8323 eval "DEFAULT_$LINE"
8324 else
8325 no_cache=1
8326 fi
8327
8328 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
8329
8330fi
8331
8332
8333 eval "$ac_cv_use_accessibility"
8334 if test "$no_cache" != 1; then
8335 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
8336 fi
8337
8338 if test "$wxUSE_ACCESSIBILITY" = yes; then
8339 echo "$ac_t""yes" 1>&6
8340 else
8341 echo "$ac_t""no" 1>&6
8342 fi
8343
8344
8345
8346
8347 enablestring=
8348 echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
8349echo "configure:8350: checking for --${enablestring:-enable}-palette" >&5
8350 no_cache=0
8351 # Check whether --enable-palette or --disable-palette was given.
8352if test "${enable_palette+set}" = set; then
8353 enableval="$enable_palette"
8354
8355 if test "$enableval" = yes; then
8356 ac_cv_use_palette='wxUSE_PALETTE=yes'
8357 else
8358 ac_cv_use_palette='wxUSE_PALETTE=no'
8359 fi
8360
8361else
8362
8363 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8364 if test "x$LINE" != x ; then
8365 eval "DEFAULT_$LINE"
8366 else
8367 no_cache=1
8368 fi
8369
8370 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8371
8372fi
8373
8374
8375 eval "$ac_cv_use_palette"
8376 if test "$no_cache" != 1; then
8377 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8378 fi
8379
8380 if test "$wxUSE_PALETTE" = yes; then
8381 echo "$ac_t""yes" 1>&6
8382 else
8383 echo "$ac_t""no" 1>&6
8384 fi
8385
8386
8387 enablestring=
8388 echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
8389echo "configure:8390: checking for --${enablestring:-enable}-image" >&5
8390 no_cache=0
8391 # Check whether --enable-image or --disable-image was given.
8392if test "${enable_image+set}" = set; then
8393 enableval="$enable_image"
8394
8395 if test "$enableval" = yes; then
8396 ac_cv_use_image='wxUSE_IMAGE=yes'
8397 else
8398 ac_cv_use_image='wxUSE_IMAGE=no'
8399 fi
8400
8401else
8402
8403 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8404 if test "x$LINE" != x ; then
8405 eval "DEFAULT_$LINE"
8406 else
8407 no_cache=1
8408 fi
8409
8410 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8411
8412fi
8413
8414
8415 eval "$ac_cv_use_image"
8416 if test "$no_cache" != 1; then
8417 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8418 fi
8419
8420 if test "$wxUSE_IMAGE" = yes; then
8421 echo "$ac_t""yes" 1>&6
8422 else
8423 echo "$ac_t""no" 1>&6
8424 fi
8425
8426
8427 enablestring=
8428 echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
8429echo "configure:8430: checking for --${enablestring:-enable}-gif" >&5
8430 no_cache=0
8431 # Check whether --enable-gif or --disable-gif was given.
8432if test "${enable_gif+set}" = set; then
8433 enableval="$enable_gif"
8434
8435 if test "$enableval" = yes; then
8436 ac_cv_use_gif='wxUSE_GIF=yes'
8437 else
8438 ac_cv_use_gif='wxUSE_GIF=no'
8439 fi
8440
8441else
8442
8443 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8444 if test "x$LINE" != x ; then
8445 eval "DEFAULT_$LINE"
8446 else
8447 no_cache=1
8448 fi
8449
8450 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8451
8452fi
8453
8454
8455 eval "$ac_cv_use_gif"
8456 if test "$no_cache" != 1; then
8457 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8458 fi
8459
8460 if test "$wxUSE_GIF" = yes; then
8461 echo "$ac_t""yes" 1>&6
8462 else
8463 echo "$ac_t""no" 1>&6
8464 fi
8465
8466
8467 enablestring=
8468 echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
8469echo "configure:8470: checking for --${enablestring:-enable}-pcx" >&5
8470 no_cache=0
8471 # Check whether --enable-pcx or --disable-pcx was given.
8472if test "${enable_pcx+set}" = set; then
8473 enableval="$enable_pcx"
8474
8475 if test "$enableval" = yes; then
8476 ac_cv_use_pcx='wxUSE_PCX=yes'
8477 else
8478 ac_cv_use_pcx='wxUSE_PCX=no'
8479 fi
8480
8481else
8482
8483 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8484 if test "x$LINE" != x ; then
8485 eval "DEFAULT_$LINE"
8486 else
8487 no_cache=1
8488 fi
8489
8490 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8491
8492fi
8493
8494
8495 eval "$ac_cv_use_pcx"
8496 if test "$no_cache" != 1; then
8497 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8498 fi
8499
8500 if test "$wxUSE_PCX" = yes; then
8501 echo "$ac_t""yes" 1>&6
8502 else
8503 echo "$ac_t""no" 1>&6
8504 fi
8505
8506
8507 enablestring=
8508 echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
8509echo "configure:8510: checking for --${enablestring:-enable}-iff" >&5
8510 no_cache=0
8511 # Check whether --enable-iff or --disable-iff was given.
8512if test "${enable_iff+set}" = set; then
8513 enableval="$enable_iff"
8514
8515 if test "$enableval" = yes; then
8516 ac_cv_use_iff='wxUSE_IFF=yes'
8517 else
8518 ac_cv_use_iff='wxUSE_IFF=no'
8519 fi
8520
8521else
8522
8523 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8524 if test "x$LINE" != x ; then
8525 eval "DEFAULT_$LINE"
8526 else
8527 no_cache=1
8528 fi
8529
8530 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8531
8532fi
8533
8534
8535 eval "$ac_cv_use_iff"
8536 if test "$no_cache" != 1; then
8537 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8538 fi
8539
8540 if test "$wxUSE_IFF" = yes; then
8541 echo "$ac_t""yes" 1>&6
8542 else
8543 echo "$ac_t""no" 1>&6
8544 fi
8545
8546
8547 enablestring=
8548 echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
8549echo "configure:8550: checking for --${enablestring:-enable}-pnm" >&5
8550 no_cache=0
8551 # Check whether --enable-pnm or --disable-pnm was given.
8552if test "${enable_pnm+set}" = set; then
8553 enableval="$enable_pnm"
8554
8555 if test "$enableval" = yes; then
8556 ac_cv_use_pnm='wxUSE_PNM=yes'
8557 else
8558 ac_cv_use_pnm='wxUSE_PNM=no'
8559 fi
8560
8561else
8562
8563 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8564 if test "x$LINE" != x ; then
8565 eval "DEFAULT_$LINE"
8566 else
8567 no_cache=1
8568 fi
8569
8570 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8571
8572fi
8573
8574
8575 eval "$ac_cv_use_pnm"
8576 if test "$no_cache" != 1; then
8577 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8578 fi
8579
8580 if test "$wxUSE_PNM" = yes; then
8581 echo "$ac_t""yes" 1>&6
8582 else
8583 echo "$ac_t""no" 1>&6
8584 fi
8585
8586
8587 enablestring=
8588 echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
8589echo "configure:8590: checking for --${enablestring:-enable}-xpm" >&5
8590 no_cache=0
8591 # Check whether --enable-xpm or --disable-xpm was given.
8592if test "${enable_xpm+set}" = set; then
8593 enableval="$enable_xpm"
8594
8595 if test "$enableval" = yes; then
8596 ac_cv_use_xpm='wxUSE_XPM=yes'
8597 else
8598 ac_cv_use_xpm='wxUSE_XPM=no'
8599 fi
8600
8601else
8602
8603 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8604 if test "x$LINE" != x ; then
8605 eval "DEFAULT_$LINE"
8606 else
8607 no_cache=1
8608 fi
8609
8610 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8611
8612fi
8613
8614
8615 eval "$ac_cv_use_xpm"
8616 if test "$no_cache" != 1; then
8617 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8618 fi
8619
8620 if test "$wxUSE_XPM" = yes; then
8621 echo "$ac_t""yes" 1>&6
8622 else
8623 echo "$ac_t""no" 1>&6
8624 fi
8625
8626
8627 enablestring=
8628 echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
8629echo "configure:8630: checking for --${enablestring:-enable}-ico_cur" >&5
8630 no_cache=0
8631 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8632if test "${enable_ico_cur+set}" = set; then
8633 enableval="$enable_ico_cur"
8634
8635 if test "$enableval" = yes; then
8636 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8637 else
8638 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8639 fi
8640
8641else
8642
8643 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8644 if test "x$LINE" != x ; then
8645 eval "DEFAULT_$LINE"
8646 else
8647 no_cache=1
8648 fi
8649
8650 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8651
8652fi
8653
8654
8655 eval "$ac_cv_use_ico_cur"
8656 if test "$no_cache" != 1; then
8657 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8658 fi
8659
8660 if test "$wxUSE_ICO_CUR" = yes; then
8661 echo "$ac_t""yes" 1>&6
8662 else
8663 echo "$ac_t""no" 1>&6
8664 fi
8665
8666
8667fi
8668
8669case "${host}" in
8670 *-pc-os2_emx | *-pc-os2-emx )
8671 PATH_IFS=';'
8672 LEX_STEM="lexyy"
8673 ;;
8674 *)
8675 PATH_IFS=':'
8676 LEX_STEM="lex.yy"
8677 ;;
8678esac
8679
8680
8681
8682 echo "saving argument cache $wx_arg_cache_file"
8683 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8684
8685
8686
8687echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8688echo "configure:8689: checking for toolkit" >&5
8689
8690# In Wine, we need to default to MSW, not GTK or MOTIF
8691if test "$wxUSE_WINE" = "yes"; then
8692 DEFAULT_DEFAULT_wxUSE_GTK=0
8693 DEFAULT_DEFAULT_wxUSE_MOTIF=0
8694 DEFAULT_DEFAULT_wxUSE_MSW=1
8695fi
8696
8697if test "$wxUSE_GUI" = "yes"; then
8698
8699 if test "$USE_BEOS" = 1; then
8700 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8701 fi
8702
8703 if test "$TOOLKIT_GIVEN" = 1; then
8704 for toolkit in `echo $ALL_TOOLKITS`; do
8705 var=wxUSE_$toolkit
8706 eval "value=\$${var}"
8707 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8708 done
8709 else
8710 for toolkit in `echo $ALL_TOOLKITS`; do
8711 if test "$has_toolkit_in_cache" != 1; then
8712 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8713 else
8714 var=DEFAULT_wxUSE_$toolkit
8715 fi
8716 eval "wxUSE_$toolkit=\$${var}"
8717 done
8718 fi
8719
8720 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
8721 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
8722 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
8723
8724 case "${host}" in
8725 *-pc-os2_emx | *-pc-os2-emx )
8726 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8727 esac
8728
8729 case "$NUM_TOOLKITS" in
8730 1)
8731 ;;
8732 0)
8733 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
8734 ;;
8735 *)
8736 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
8737 esac
8738
8739 for toolkit in `echo $ALL_TOOLKITS`; do
8740 var=wxUSE_$toolkit
8741 eval "value=\$${var}"
8742 if test "x$value" != x; then
8743 cache_var=CACHE_$toolkit
8744 eval "cache=\$${cache_var}"
8745 if test "$cache" = 1; then
8746 echo "$var=$value" >> ${wx_arg_cache_file}
8747 fi
8748 if test "$value" = 1; then
8749 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8750 echo "$ac_t""$toolkit_echo" 1>&6
8751 fi
8752 fi
8753 done
8754else
8755 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8756fi
8757
8758wants_win32=0
8759doesnt_want_win32=0
8760case "${host}" in
8761 *-*-cygwin*)
8762 if test "$wxUSE_MSW" = 1 ; then
8763 wants_win32=1
8764 else
8765 doesnt_want_win32=1
8766 fi
8767 ;;
8768 *-*-mingw*)
8769 wants_win32=1
8770 ;;
8771esac
8772
8773if test "$wxUSE_WINE" = "yes"; then
8774 wants_win32=1
8775 CC=winegcc
8776 CXX=wineg++
8777 RESCOMP=wrc
8778fi
8779
8780if test "$wants_win32" = 1 ; then
8781 USE_UNIX=0
8782 USE_WIN32=1
8783 cat >> confdefs.h <<\EOF
8784#define __WIN32__ 1
8785EOF
8786
8787 cat >> confdefs.h <<\EOF
8788#define __WIN95__ 1
8789EOF
8790
8791 cat >> confdefs.h <<\EOF
8792#define __WINDOWS__ 1
8793EOF
8794
8795 cat >> confdefs.h <<\EOF
8796#define __GNUWIN32__ 1
8797EOF
8798
8799 cat >> confdefs.h <<\EOF
8800#define STRICT 1
8801EOF
8802
8803 cat >> confdefs.h <<\EOF
8804#define WINVER 0x0400
8805EOF
8806
8807fi
8808if test "$doesnt_want_win32" = 1 ; then
8809 USE_UNIX=1
8810 USE_WIN32=0
8811fi
8812
8813if test "$USE_UNIX" = 1 ; then
8814 wxUSE_UNIX=yes
8815 cat >> confdefs.h <<\EOF
8816#define __UNIX__ 1
8817EOF
8818
8819fi
8820
8821
8822cat > confcache <<\EOF
8823# This file is a shell script that caches the results of configure
8824# tests run on this system so they can be shared between configure
8825# scripts and configure runs. It is not useful on other systems.
8826# If it contains results you don't want to keep, you may remove or edit it.
8827#
8828# By default, configure uses ./config.cache as the cache file,
8829# creating it if it does not exist already. You can give configure
8830# the --cache-file=FILE option to use a different cache file; that is
8831# what configure does when it calls configure scripts in
8832# subdirectories, so they share the cache.
8833# Giving --cache-file=/dev/null disables caching, for debugging configure.
8834# config.status only pays attention to the cache file if you give it the
8835# --recheck option to rerun configure.
8836#
8837EOF
8838# The following way of writing the cache mishandles newlines in values,
8839# but we know of no workaround that is simple, portable, and efficient.
8840# So, don't put newlines in cache variables' values.
8841# Ultrix sh set writes to stderr and can't be redirected directly,
8842# and sets the high bit in the cache file unless we assign to the vars.
8843(set) 2>&1 |
8844 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8845 *ac_space=\ *)
8846 # `set' does not quote correctly, so add quotes (double-quote substitution
8847 # turns \\\\ into \\, and sed turns \\ into \).
8848 sed -n \
8849 -e "s/'/'\\\\''/g" \
8850 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8851 ;;
8852 *)
8853 # `set' quotes correctly as required by POSIX, so do not add quotes.
8854 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8855 ;;
8856 esac >> confcache
8857if cmp -s $cache_file confcache; then
8858 :
8859else
8860 if test -w $cache_file; then
8861 echo "updating cache $cache_file"
8862 cat confcache > $cache_file
8863 else
8864 echo "not updating unwritable cache $cache_file"
8865 fi
8866fi
8867rm -f confcache
8868
8869
8870if test "$build" != "$host" ; then
8871 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8872 CC=$host_alias-gcc
8873 CXX=$host_alias-c++
8874 AR=$host_alias-ar
8875 RANLIB=$host_alias-ranlib
8876 DLLTOOL=$host_alias-dlltool
8877 RESCOMP=$host_alias-windres
8878 LD=$host_alias-ld
8879 NM=$host_alias-nm
8880 STRIP=$host_alias-strip
8881 else
8882 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8883 fi
8884fi
8885
8886CFLAGS=${CFLAGS:=}
8887# Extract the first word of "gcc", so it can be a program name with args.
8888set dummy gcc; ac_word=$2
8889echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8890echo "configure:8891: checking for $ac_word" >&5
8891if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8892 echo $ac_n "(cached) $ac_c" 1>&6
8893else
8894 if test -n "$CC"; then
8895 ac_cv_prog_CC="$CC" # Let the user override the test.
8896else
8897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8898 ac_dummy="$PATH"
8899 for ac_dir in $ac_dummy; do
8900 test -z "$ac_dir" && ac_dir=.
8901 if test -f $ac_dir/$ac_word; then
8902 ac_cv_prog_CC="gcc"
8903 break
8904 fi
8905 done
8906 IFS="$ac_save_ifs"
8907fi
8908fi
8909CC="$ac_cv_prog_CC"
8910if test -n "$CC"; then
8911 echo "$ac_t""$CC" 1>&6
8912else
8913 echo "$ac_t""no" 1>&6
8914fi
8915
8916if test -z "$CC"; then
8917 # Extract the first word of "cc", so it can be a program name with args.
8918set dummy cc; ac_word=$2
8919echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8920echo "configure:8921: checking for $ac_word" >&5
8921if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8922 echo $ac_n "(cached) $ac_c" 1>&6
8923else
8924 if test -n "$CC"; then
8925 ac_cv_prog_CC="$CC" # Let the user override the test.
8926else
8927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8928 ac_prog_rejected=no
8929 ac_dummy="$PATH"
8930 for ac_dir in $ac_dummy; do
8931 test -z "$ac_dir" && ac_dir=.
8932 if test -f $ac_dir/$ac_word; then
8933 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8934 ac_prog_rejected=yes
8935 continue
8936 fi
8937 ac_cv_prog_CC="cc"
8938 break
8939 fi
8940 done
8941 IFS="$ac_save_ifs"
8942if test $ac_prog_rejected = yes; then
8943 # We found a bogon in the path, so make sure we never use it.
8944 set dummy $ac_cv_prog_CC
8945 shift
8946 if test $# -gt 0; then
8947 # We chose a different compiler from the bogus one.
8948 # However, it has the same basename, so the bogon will be chosen
8949 # first if we set CC to just the basename; use the full file name.
8950 shift
8951 set dummy "$ac_dir/$ac_word" "$@"
8952 shift
8953 ac_cv_prog_CC="$@"
8954 fi
8955fi
8956fi
8957fi
8958CC="$ac_cv_prog_CC"
8959if test -n "$CC"; then
8960 echo "$ac_t""$CC" 1>&6
8961else
8962 echo "$ac_t""no" 1>&6
8963fi
8964
8965 if test -z "$CC"; then
8966 case "`uname -s`" in
8967 *win32* | *WIN32*)
8968 # Extract the first word of "cl", so it can be a program name with args.
8969set dummy cl; ac_word=$2
8970echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8971echo "configure:8972: checking for $ac_word" >&5
8972if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8973 echo $ac_n "(cached) $ac_c" 1>&6
8974else
8975 if test -n "$CC"; then
8976 ac_cv_prog_CC="$CC" # Let the user override the test.
8977else
8978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8979 ac_dummy="$PATH"
8980 for ac_dir in $ac_dummy; do
8981 test -z "$ac_dir" && ac_dir=.
8982 if test -f $ac_dir/$ac_word; then
8983 ac_cv_prog_CC="cl"
8984 break
8985 fi
8986 done
8987 IFS="$ac_save_ifs"
8988fi
8989fi
8990CC="$ac_cv_prog_CC"
8991if test -n "$CC"; then
8992 echo "$ac_t""$CC" 1>&6
8993else
8994 echo "$ac_t""no" 1>&6
8995fi
8996 ;;
8997 esac
8998 fi
8999 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
9000fi
9001
9002echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9003echo "configure:9004: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
9004
9005ac_ext=c
9006# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9007ac_cpp='$CPP $CPPFLAGS'
9008ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9009ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9010cross_compiling=$ac_cv_prog_cc_cross
9011
9012cat > conftest.$ac_ext << EOF
9013
9014#line 9015 "configure"
9015#include "confdefs.h"
9016
9017main(){return(0);}
9018EOF
9019if { (eval echo configure:9020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9020 ac_cv_prog_cc_works=yes
9021 # If we can't run a trivial program, we are probably using a cross compiler.
9022 if (./conftest; exit) 2>/dev/null; then
9023 ac_cv_prog_cc_cross=no
9024 else
9025 ac_cv_prog_cc_cross=yes
9026 fi
9027else
9028 echo "configure: failed program was:" >&5
9029 cat conftest.$ac_ext >&5
9030 ac_cv_prog_cc_works=no
9031fi
9032rm -fr conftest*
9033ac_ext=c
9034# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9035ac_cpp='$CPP $CPPFLAGS'
9036ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9037ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9038cross_compiling=$ac_cv_prog_cc_cross
9039
9040echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
9041if test $ac_cv_prog_cc_works = no; then
9042 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
9043fi
9044echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9045echo "configure:9046: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
9046echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
9047cross_compiling=$ac_cv_prog_cc_cross
9048
9049echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
9050echo "configure:9051: checking whether we are using GNU C" >&5
9051if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
9052 echo $ac_n "(cached) $ac_c" 1>&6
9053else
9054 cat > conftest.c <<EOF
9055#ifdef __GNUC__
9056 yes;
9057#endif
9058EOF
9059if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9060 ac_cv_prog_gcc=yes
9061else
9062 ac_cv_prog_gcc=no
9063fi
9064fi
9065
9066echo "$ac_t""$ac_cv_prog_gcc" 1>&6
9067
9068if test $ac_cv_prog_gcc = yes; then
9069 GCC=yes
9070else
9071 GCC=
9072fi
9073
9074ac_test_CFLAGS="${CFLAGS+set}"
9075ac_save_CFLAGS="$CFLAGS"
9076CFLAGS=
9077echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
9078echo "configure:9079: checking whether ${CC-cc} accepts -g" >&5
9079if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9080 echo $ac_n "(cached) $ac_c" 1>&6
9081else
9082 echo 'void f(){}' > conftest.c
9083if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
9084 ac_cv_prog_cc_g=yes
9085else
9086 ac_cv_prog_cc_g=no
9087fi
9088rm -f conftest*
9089
9090fi
9091
9092echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
9093if test "$ac_test_CFLAGS" = set; then
9094 CFLAGS="$ac_save_CFLAGS"
9095elif test $ac_cv_prog_cc_g = yes; then
9096 if test "$GCC" = yes; then
9097 CFLAGS="-g -O2"
9098 else
9099 CFLAGS="-g"
9100 fi
9101else
9102 if test "$GCC" = yes; then
9103 CFLAGS="-O2"
9104 else
9105 CFLAGS=
9106 fi
9107fi
9108
9109
9110echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
9111echo "configure:9112: checking how to run the C preprocessor" >&5
9112# On Suns, sometimes $CPP names a directory.
9113if test -n "$CPP" && test -d "$CPP"; then
9114 CPP=
9115fi
9116if test -z "$CPP"; then
9117if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9118 echo $ac_n "(cached) $ac_c" 1>&6
9119else
9120 # This must be in double quotes, not single quotes, because CPP may get
9121 # substituted into the Makefile and "${CC-cc}" will confuse make.
9122 CPP="${CC-cc} -E"
9123 # On the NeXT, cc -E runs the code through the compiler's parser,
9124 # not just through cpp.
9125 cat > conftest.$ac_ext <<EOF
9126#line 9127 "configure"
9127#include "confdefs.h"
9128#include <assert.h>
9129Syntax Error
9130EOF
9131ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9132{ (eval echo configure:9133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9133ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9134if test -z "$ac_err"; then
9135 :
9136else
9137 echo "$ac_err" >&5
9138 echo "configure: failed program was:" >&5
9139 cat conftest.$ac_ext >&5
9140 rm -rf conftest*
9141 CPP="${CC-cc} -E -traditional-cpp"
9142 cat > conftest.$ac_ext <<EOF
9143#line 9144 "configure"
9144#include "confdefs.h"
9145#include <assert.h>
9146Syntax Error
9147EOF
9148ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9149{ (eval echo configure:9150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9150ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9151if test -z "$ac_err"; then
9152 :
9153else
9154 echo "$ac_err" >&5
9155 echo "configure: failed program was:" >&5
9156 cat conftest.$ac_ext >&5
9157 rm -rf conftest*
9158 CPP="${CC-cc} -nologo -E"
9159 cat > conftest.$ac_ext <<EOF
9160#line 9161 "configure"
9161#include "confdefs.h"
9162#include <assert.h>
9163Syntax Error
9164EOF
9165ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9166{ (eval echo configure:9167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9167ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9168if test -z "$ac_err"; then
9169 :
9170else
9171 echo "$ac_err" >&5
9172 echo "configure: failed program was:" >&5
9173 cat conftest.$ac_ext >&5
9174 rm -rf conftest*
9175 CPP=/lib/cpp
9176fi
9177rm -f conftest*
9178fi
9179rm -f conftest*
9180fi
9181rm -f conftest*
9182 ac_cv_prog_CPP="$CPP"
9183fi
9184 CPP="$ac_cv_prog_CPP"
9185else
9186 ac_cv_prog_CPP="$CPP"
9187fi
9188echo "$ac_t""$CPP" 1>&6
9189
9190if test $ac_cv_prog_gcc = yes; then
9191 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
9192echo "configure:9193: checking whether ${CC-cc} needs -traditional" >&5
9193if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9194 echo $ac_n "(cached) $ac_c" 1>&6
9195else
9196 ac_pattern="Autoconf.*'x'"
9197 cat > conftest.$ac_ext <<EOF
9198#line 9199 "configure"
9199#include "confdefs.h"
9200#include <sgtty.h>
9201Autoconf TIOCGETP
9202EOF
9203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9204 egrep "$ac_pattern" >/dev/null 2>&1; then
9205 rm -rf conftest*
9206 ac_cv_prog_gcc_traditional=yes
9207else
9208 rm -rf conftest*
9209 ac_cv_prog_gcc_traditional=no
9210fi
9211rm -f conftest*
9212
9213
9214 if test $ac_cv_prog_gcc_traditional = no; then
9215 cat > conftest.$ac_ext <<EOF
9216#line 9217 "configure"
9217#include "confdefs.h"
9218#include <termio.h>
9219Autoconf TCGETA
9220EOF
9221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9222 egrep "$ac_pattern" >/dev/null 2>&1; then
9223 rm -rf conftest*
9224 ac_cv_prog_gcc_traditional=yes
9225fi
9226rm -f conftest*
9227
9228 fi
9229fi
9230
9231echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
9232 if test $ac_cv_prog_gcc_traditional = yes; then
9233 CC="$CC -traditional"
9234 fi
9235fi
9236
9237
9238
9239ac_ext=C
9240# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9241ac_cpp='$CXXCPP $CPPFLAGS'
9242ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9243ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9244cross_compiling=$ac_cv_prog_cxx_cross
9245
9246
9247CXXFLAGS=${CXXFLAGS:=}
9248for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9249do
9250# Extract the first word of "$ac_prog", so it can be a program name with args.
9251set dummy $ac_prog; ac_word=$2
9252echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9253echo "configure:9254: checking for $ac_word" >&5
9254if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9255 echo $ac_n "(cached) $ac_c" 1>&6
9256else
9257 if test -n "$CXX"; then
9258 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9259else
9260 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9261 ac_dummy="$PATH"
9262 for ac_dir in $ac_dummy; do
9263 test -z "$ac_dir" && ac_dir=.
9264 if test -f $ac_dir/$ac_word; then
9265 ac_cv_prog_CXX="$ac_prog"
9266 break
9267 fi
9268 done
9269 IFS="$ac_save_ifs"
9270fi
9271fi
9272CXX="$ac_cv_prog_CXX"
9273if test -n "$CXX"; then
9274 echo "$ac_t""$CXX" 1>&6
9275else
9276 echo "$ac_t""no" 1>&6
9277fi
9278
9279test -n "$CXX" && break
9280done
9281test -n "$CXX" || CXX="gcc"
9282
9283
9284echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9285echo "configure:9286: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9286
9287ac_ext=C
9288# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9289ac_cpp='$CXXCPP $CPPFLAGS'
9290ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9291ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9292cross_compiling=$ac_cv_prog_cxx_cross
9293
9294cat > conftest.$ac_ext << EOF
9295
9296#line 9297 "configure"
9297#include "confdefs.h"
9298
9299int main(){return(0);}
9300EOF
9301if { (eval echo configure:9302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9302 ac_cv_prog_cxx_works=yes
9303 # If we can't run a trivial program, we are probably using a cross compiler.
9304 if (./conftest; exit) 2>/dev/null; then
9305 ac_cv_prog_cxx_cross=no
9306 else
9307 ac_cv_prog_cxx_cross=yes
9308 fi
9309else
9310 echo "configure: failed program was:" >&5
9311 cat conftest.$ac_ext >&5
9312 ac_cv_prog_cxx_works=no
9313fi
9314rm -fr conftest*
9315ac_ext=C
9316# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9317ac_cpp='$CXXCPP $CPPFLAGS'
9318ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9319ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9320cross_compiling=$ac_cv_prog_cxx_cross
9321
9322echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9323if test $ac_cv_prog_cxx_works = no; then
9324 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9325fi
9326echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9327echo "configure:9328: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9328echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9329cross_compiling=$ac_cv_prog_cxx_cross
9330
9331echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9332echo "configure:9333: checking whether we are using GNU C++" >&5
9333if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9334 echo $ac_n "(cached) $ac_c" 1>&6
9335else
9336 cat > conftest.C <<EOF
9337#ifdef __GNUC__
9338 yes;
9339#endif
9340EOF
9341if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9342 ac_cv_prog_gxx=yes
9343else
9344 ac_cv_prog_gxx=no
9345fi
9346fi
9347
9348echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9349
9350if test $ac_cv_prog_gxx = yes; then
9351 GXX=yes
9352else
9353 GXX=
9354fi
9355
9356ac_test_CXXFLAGS="${CXXFLAGS+set}"
9357ac_save_CXXFLAGS="$CXXFLAGS"
9358CXXFLAGS=
9359echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9360echo "configure:9361: checking whether ${CXX-g++} accepts -g" >&5
9361if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9362 echo $ac_n "(cached) $ac_c" 1>&6
9363else
9364 echo 'void f(){}' > conftest.cc
9365if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9366 ac_cv_prog_cxx_g=yes
9367else
9368 ac_cv_prog_cxx_g=no
9369fi
9370rm -f conftest*
9371
9372fi
9373
9374echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9375if test "$ac_test_CXXFLAGS" = set; then
9376 CXXFLAGS="$ac_save_CXXFLAGS"
9377elif test $ac_cv_prog_cxx_g = yes; then
9378 if test "$GXX" = yes; then
9379 CXXFLAGS="-g -O2"
9380 else
9381 CXXFLAGS="-g"
9382 fi
9383else
9384 if test "$GXX" = yes; then
9385 CXXFLAGS="-O2"
9386 else
9387 CXXFLAGS=
9388 fi
9389fi
9390
9391
9392ac_ext=c
9393# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9394ac_cpp='$CPP $CPPFLAGS'
9395ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9396ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9397cross_compiling=$ac_cv_prog_cc_cross
9398
9399
9400# Extract the first word of "ranlib", so it can be a program name with args.
9401set dummy ranlib; ac_word=$2
9402echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9403echo "configure:9404: checking for $ac_word" >&5
9404if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9405 echo $ac_n "(cached) $ac_c" 1>&6
9406else
9407 if test -n "$RANLIB"; then
9408 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9409else
9410 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9411 ac_dummy="$PATH"
9412 for ac_dir in $ac_dummy; do
9413 test -z "$ac_dir" && ac_dir=.
9414 if test -f $ac_dir/$ac_word; then
9415 ac_cv_prog_RANLIB="ranlib"
9416 break
9417 fi
9418 done
9419 IFS="$ac_save_ifs"
9420 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9421fi
9422fi
9423RANLIB="$ac_cv_prog_RANLIB"
9424if test -n "$RANLIB"; then
9425 echo "$ac_t""$RANLIB" 1>&6
9426else
9427 echo "$ac_t""no" 1>&6
9428fi
9429
9430
9431# Extract the first word of "ar", so it can be a program name with args.
9432set dummy ar; ac_word=$2
9433echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9434echo "configure:9435: checking for $ac_word" >&5
9435if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9436 echo $ac_n "(cached) $ac_c" 1>&6
9437else
9438 if test -n "$AR"; then
9439 ac_cv_prog_AR="$AR" # Let the user override the test.
9440else
9441 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9442 ac_dummy="$PATH"
9443 for ac_dir in $ac_dummy; do
9444 test -z "$ac_dir" && ac_dir=.
9445 if test -f $ac_dir/$ac_word; then
9446 ac_cv_prog_AR="ar"
9447 break
9448 fi
9449 done
9450 IFS="$ac_save_ifs"
9451 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9452fi
9453fi
9454AR="$ac_cv_prog_AR"
9455if test -n "$AR"; then
9456 echo "$ac_t""$AR" 1>&6
9457else
9458 echo "$ac_t""no" 1>&6
9459fi
9460
9461
9462# Find a good install program. We prefer a C program (faster),
9463# so one script is as good as another. But avoid the broken or
9464# incompatible versions:
9465# SysV /etc/install, /usr/sbin/install
9466# SunOS /usr/etc/install
9467# IRIX /sbin/install
9468# AIX /bin/install
9469# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9470# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9471# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9472# ./install, which can be erroneously created by make from ./install.sh.
9473echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9474echo "configure:9475: checking for a BSD compatible install" >&5
9475if test -z "$INSTALL"; then
9476if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9477 echo $ac_n "(cached) $ac_c" 1>&6
9478else
9479 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9480 for ac_dir in $PATH; do
9481 # Account for people who put trailing slashes in PATH elements.
9482 case "$ac_dir/" in
9483 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9484 *)
9485 # OSF1 and SCO ODT 3.0 have their own names for install.
9486 # Don't use installbsd from OSF since it installs stuff as root
9487 # by default.
9488 for ac_prog in ginstall scoinst install; do
9489 if test -f $ac_dir/$ac_prog; then
9490 if test $ac_prog = install &&
9491 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9492 # AIX install. It has an incompatible calling convention.
9493 :
9494 else
9495 ac_cv_path_install="$ac_dir/$ac_prog -c"
9496 break 2
9497 fi
9498 fi
9499 done
9500 ;;
9501 esac
9502 done
9503 IFS="$ac_save_IFS"
9504
9505fi
9506 if test "${ac_cv_path_install+set}" = set; then
9507 INSTALL="$ac_cv_path_install"
9508 else
9509 # As a last resort, use the slow shell script. We don't cache a
9510 # path for INSTALL within a source directory, because that will
9511 # break other packages using the cache if that directory is
9512 # removed, or if the path is relative.
9513 INSTALL="$ac_install_sh"
9514 fi
9515fi
9516echo "$ac_t""$INSTALL" 1>&6
9517
9518# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9519# It thinks the first close brace ends the variable substitution.
9520test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9521
9522test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9523
9524test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9525
9526
9527case ${INSTALL} in
9528 /* ) # Absolute
9529 ;;
9530 ?:* ) # Drive letter, considered as absolute.
9531 ;;
9532 *)
9533 INSTALL=`pwd`/${INSTALL} ;;
9534esac
9535
9536case ${host} in
9537 *-hp-hpux* )
9538 INSTALL_DIR="mkdir"
9539 ;;
9540
9541 *) INSTALL_DIR="$INSTALL -d"
9542 ;;
9543esac
9544
9545
9546case "${host}" in
9547
9548 powerpc-*-darwin* )
9549 INSTALL_PROGRAM="cp -fp"
9550 INSTALL_DATA="cp -fp"
9551 ;;
9552 *)
9553 ;;
9554esac
9555
9556# Extract the first word of "strip", so it can be a program name with args.
9557set dummy strip; ac_word=$2
9558echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9559echo "configure:9560: checking for $ac_word" >&5
9560if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9561 echo $ac_n "(cached) $ac_c" 1>&6
9562else
9563 if test -n "$STRIP"; then
9564 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9565else
9566 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9567 ac_dummy="$PATH"
9568 for ac_dir in $ac_dummy; do
9569 test -z "$ac_dir" && ac_dir=.
9570 if test -f $ac_dir/$ac_word; then
9571 ac_cv_prog_STRIP="strip"
9572 break
9573 fi
9574 done
9575 IFS="$ac_save_ifs"
9576 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9577fi
9578fi
9579STRIP="$ac_cv_prog_STRIP"
9580if test -n "$STRIP"; then
9581 echo "$ac_t""$STRIP" 1>&6
9582else
9583 echo "$ac_t""no" 1>&6
9584fi
9585
9586
9587echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9588echo "configure:9589: checking if make is GNU make" >&5
9589if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9590 echo $ac_n "(cached) $ac_c" 1>&6
9591else
9592
9593 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9594 egrep -s GNU > /dev/null); then
9595 wx_cv_prog_makeisgnu="yes"
9596 else
9597 wx_cv_prog_makeisgnu="no"
9598 fi
9599
9600fi
9601
9602echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9603
9604if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9605 IF_GNU_MAKE=""
9606else
9607 IF_GNU_MAKE="#"
9608fi
9609
9610
9611
9612if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9613echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9614echo "configure:9615: checking if make supports VPATH" >&5
9615if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9616 echo $ac_n "(cached) $ac_c" 1>&6
9617else
9618
9619cat - << EOF > confMake
9620check : file
9621 cp \$? \$@
9622 cp \$? final_file
9623EOF
9624
9625if test ! -d sub ; then
9626 mkdir sub
9627fi
9628echo dummy > sub/file
9629${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9630RESULT=$?
9631rm -f sub/file check final_file confMake
9632rmdir sub
9633if test "$RESULT" = 0; then
9634 wx_cv_prog_makevpath="yes"
9635else
9636 wx_cv_prog_makevpath="no"
9637fi
9638
9639fi
9640
9641echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9642
9643if test "x$wx_cv_prog_makevpath" != "xyes"; then
9644{ echo "configure: error:
9645You need a make-utility that is able to use the variable
9646VPATH correctly.
9647If your version of make does not support VPATH correctly,
9648please install GNU-make (possibly as gmake), and start
9649configure with the following command:
9650export MAKE=gmake; ./configure for sh-type shells
9651setenv MAKE gmake; ./configure for csh-type shells
9652Also please do remember to use gmake in this case every time
9653you are trying to compile.
9654" 1>&2; exit 1; }
9655fi fi
9656for ac_prog in 'bison -y' byacc
9657do
9658# Extract the first word of "$ac_prog", so it can be a program name with args.
9659set dummy $ac_prog; ac_word=$2
9660echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9661echo "configure:9662: checking for $ac_word" >&5
9662if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9663 echo $ac_n "(cached) $ac_c" 1>&6
9664else
9665 if test -n "$YACC"; then
9666 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9667else
9668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9669 ac_dummy="$PATH"
9670 for ac_dir in $ac_dummy; do
9671 test -z "$ac_dir" && ac_dir=.
9672 if test -f $ac_dir/$ac_word; then
9673 ac_cv_prog_YACC="$ac_prog"
9674 break
9675 fi
9676 done
9677 IFS="$ac_save_ifs"
9678fi
9679fi
9680YACC="$ac_cv_prog_YACC"
9681if test -n "$YACC"; then
9682 echo "$ac_t""$YACC" 1>&6
9683else
9684 echo "$ac_t""no" 1>&6
9685fi
9686
9687test -n "$YACC" && break
9688done
9689test -n "$YACC" || YACC="yacc"
9690
9691
9692# Extract the first word of "flex", so it can be a program name with args.
9693set dummy flex; ac_word=$2
9694echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9695echo "configure:9696: checking for $ac_word" >&5
9696if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9697 echo $ac_n "(cached) $ac_c" 1>&6
9698else
9699 if test -n "$LEX"; then
9700 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9701else
9702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9703 ac_dummy="$PATH"
9704 for ac_dir in $ac_dummy; do
9705 test -z "$ac_dir" && ac_dir=.
9706 if test -f $ac_dir/$ac_word; then
9707 ac_cv_prog_LEX="flex"
9708 break
9709 fi
9710 done
9711 IFS="$ac_save_ifs"
9712 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9713fi
9714fi
9715LEX="$ac_cv_prog_LEX"
9716if test -n "$LEX"; then
9717 echo "$ac_t""$LEX" 1>&6
9718else
9719 echo "$ac_t""no" 1>&6
9720fi
9721
9722if test -z "$LEXLIB"
9723then
9724 case "$LEX" in
9725 flex*) ac_lib=fl ;;
9726 *) ac_lib=l ;;
9727 esac
9728 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9729echo "configure:9730: checking for yywrap in -l$ac_lib" >&5
9730ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9731if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9732 echo $ac_n "(cached) $ac_c" 1>&6
9733else
9734 ac_save_LIBS="$LIBS"
9735LIBS="-l$ac_lib $LIBS"
9736cat > conftest.$ac_ext <<EOF
9737#line 9738 "configure"
9738#include "confdefs.h"
9739/* Override any gcc2 internal prototype to avoid an error. */
9740/* We use char because int might match the return type of a gcc2
9741 builtin and then its argument prototype would still apply. */
9742char yywrap();
9743
9744int main() {
9745yywrap()
9746; return 0; }
9747EOF
9748if { (eval echo configure:9749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9749 rm -rf conftest*
9750 eval "ac_cv_lib_$ac_lib_var=yes"
9751else
9752 echo "configure: failed program was:" >&5
9753 cat conftest.$ac_ext >&5
9754 rm -rf conftest*
9755 eval "ac_cv_lib_$ac_lib_var=no"
9756fi
9757rm -f conftest*
9758LIBS="$ac_save_LIBS"
9759
9760fi
9761if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9762 echo "$ac_t""yes" 1>&6
9763 LEXLIB="-l$ac_lib"
9764else
9765 echo "$ac_t""no" 1>&6
9766fi
9767
9768fi
9769
9770
9771echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9772echo "configure:9773: checking whether ln -s works" >&5
9773if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9774 echo $ac_n "(cached) $ac_c" 1>&6
9775else
9776 rm -f conftestdata
9777if ln -s X conftestdata 2>/dev/null
9778then
9779 rm -f conftestdata
9780 ac_cv_prog_LN_S="ln -s"
9781else
9782 ac_cv_prog_LN_S=ln
9783fi
9784fi
9785LN_S="$ac_cv_prog_LN_S"
9786if test "$ac_cv_prog_LN_S" = "ln -s"; then
9787 echo "$ac_t""yes" 1>&6
9788else
9789 echo "$ac_t""no" 1>&6
9790fi
9791
9792
9793case "${host}" in
9794 *-pc-os2_emx | *-pc-os2-emx )
9795 LIBS="$LIBS -lstdcpp"
9796 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9797 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
9798echo "configure:9799: checking for drand48 in -lcExt" >&5
9799ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9800if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9801 echo $ac_n "(cached) $ac_c" 1>&6
9802else
9803 ac_save_LIBS="$LIBS"
9804LIBS="-lcExt $LIBS"
9805cat > conftest.$ac_ext <<EOF
9806#line 9807 "configure"
9807#include "confdefs.h"
9808/* Override any gcc2 internal prototype to avoid an error. */
9809/* We use char because int might match the return type of a gcc2
9810 builtin and then its argument prototype would still apply. */
9811char drand48();
9812
9813int main() {
9814drand48()
9815; return 0; }
9816EOF
9817if { (eval echo configure:9818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9818 rm -rf conftest*
9819 eval "ac_cv_lib_$ac_lib_var=yes"
9820else
9821 echo "configure: failed program was:" >&5
9822 cat conftest.$ac_ext >&5
9823 rm -rf conftest*
9824 eval "ac_cv_lib_$ac_lib_var=no"
9825fi
9826rm -f conftest*
9827LIBS="$ac_save_LIBS"
9828
9829fi
9830if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9831 echo "$ac_t""yes" 1>&6
9832 LIBS="$LIBS -lcExt"
9833else
9834 echo "$ac_t""no" 1>&6
9835fi
9836
9837 else
9838 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9839 fi
9840 ;;
9841esac
9842
9843
9844if test "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
9845 for ac_hdr in strings.h
9846do
9847ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9848echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9849echo "configure:9850: checking for $ac_hdr" >&5
9850if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9851 echo $ac_n "(cached) $ac_c" 1>&6
9852else
9853 cat > conftest.$ac_ext <<EOF
9854#line 9855 "configure"
9855#include "confdefs.h"
9856#include <$ac_hdr>
9857EOF
9858ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9859{ (eval echo configure:9860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9860ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9861if test -z "$ac_err"; then
9862 rm -rf conftest*
9863 eval "ac_cv_header_$ac_safe=yes"
9864else
9865 echo "$ac_err" >&5
9866 echo "configure: failed program was:" >&5
9867 cat conftest.$ac_ext >&5
9868 rm -rf conftest*
9869 eval "ac_cv_header_$ac_safe=no"
9870fi
9871rm -f conftest*
9872fi
9873if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9874 echo "$ac_t""yes" 1>&6
9875 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9876 cat >> confdefs.h <<EOF
9877#define $ac_tr_hdr 1
9878EOF
9879
9880else
9881 echo "$ac_t""no" 1>&6
9882fi
9883done
9884
9885fi
9886
9887for ac_hdr in stdlib.h
9888do
9889ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9890echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9891echo "configure:9892: checking for $ac_hdr" >&5
9892if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9893 echo $ac_n "(cached) $ac_c" 1>&6
9894else
9895 cat > conftest.$ac_ext <<EOF
9896#line 9897 "configure"
9897#include "confdefs.h"
9898#include <$ac_hdr>
9899EOF
9900ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9901{ (eval echo configure:9902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9902ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9903if test -z "$ac_err"; then
9904 rm -rf conftest*
9905 eval "ac_cv_header_$ac_safe=yes"
9906else
9907 echo "$ac_err" >&5
9908 echo "configure: failed program was:" >&5
9909 cat conftest.$ac_ext >&5
9910 rm -rf conftest*
9911 eval "ac_cv_header_$ac_safe=no"
9912fi
9913rm -f conftest*
9914fi
9915if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9916 echo "$ac_t""yes" 1>&6
9917 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9918 cat >> confdefs.h <<EOF
9919#define $ac_tr_hdr 1
9920EOF
9921
9922else
9923 echo "$ac_t""no" 1>&6
9924fi
9925done
9926
9927for ac_hdr in malloc.h
9928do
9929ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9930echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9931echo "configure:9932: checking for $ac_hdr" >&5
9932if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9933 echo $ac_n "(cached) $ac_c" 1>&6
9934else
9935 cat > conftest.$ac_ext <<EOF
9936#line 9937 "configure"
9937#include "confdefs.h"
9938#include <$ac_hdr>
9939EOF
9940ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9941{ (eval echo configure:9942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9942ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9943if test -z "$ac_err"; then
9944 rm -rf conftest*
9945 eval "ac_cv_header_$ac_safe=yes"
9946else
9947 echo "$ac_err" >&5
9948 echo "configure: failed program was:" >&5
9949 cat conftest.$ac_ext >&5
9950 rm -rf conftest*
9951 eval "ac_cv_header_$ac_safe=no"
9952fi
9953rm -f conftest*
9954fi
9955if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9956 echo "$ac_t""yes" 1>&6
9957 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9958 cat >> confdefs.h <<EOF
9959#define $ac_tr_hdr 1
9960EOF
9961
9962else
9963 echo "$ac_t""no" 1>&6
9964fi
9965done
9966
9967for ac_hdr in unistd.h
9968do
9969ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9970echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9971echo "configure:9972: checking for $ac_hdr" >&5
9972if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9973 echo $ac_n "(cached) $ac_c" 1>&6
9974else
9975 cat > conftest.$ac_ext <<EOF
9976#line 9977 "configure"
9977#include "confdefs.h"
9978#include <$ac_hdr>
9979EOF
9980ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9981{ (eval echo configure:9982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9982ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9983if test -z "$ac_err"; then
9984 rm -rf conftest*
9985 eval "ac_cv_header_$ac_safe=yes"
9986else
9987 echo "$ac_err" >&5
9988 echo "configure: failed program was:" >&5
9989 cat conftest.$ac_ext >&5
9990 rm -rf conftest*
9991 eval "ac_cv_header_$ac_safe=no"
9992fi
9993rm -f conftest*
9994fi
9995if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9996 echo "$ac_t""yes" 1>&6
9997 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9998 cat >> confdefs.h <<EOF
9999#define $ac_tr_hdr 1
10000EOF
10001
10002else
10003 echo "$ac_t""no" 1>&6
10004fi
10005done
10006
10007for ac_hdr in wchar.h
10008do
10009ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10010echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10011echo "configure:10012: checking for $ac_hdr" >&5
10012if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10013 echo $ac_n "(cached) $ac_c" 1>&6
10014else
10015 cat > conftest.$ac_ext <<EOF
10016#line 10017 "configure"
10017#include "confdefs.h"
10018#include <$ac_hdr>
10019EOF
10020ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10021{ (eval echo configure:10022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10022ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10023if test -z "$ac_err"; then
10024 rm -rf conftest*
10025 eval "ac_cv_header_$ac_safe=yes"
10026else
10027 echo "$ac_err" >&5
10028 echo "configure: failed program was:" >&5
10029 cat conftest.$ac_ext >&5
10030 rm -rf conftest*
10031 eval "ac_cv_header_$ac_safe=no"
10032fi
10033rm -f conftest*
10034fi
10035if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10036 echo "$ac_t""yes" 1>&6
10037 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10038 cat >> confdefs.h <<EOF
10039#define $ac_tr_hdr 1
10040EOF
10041
10042else
10043 echo "$ac_t""no" 1>&6
10044fi
10045done
10046
10047
10048if test "$ac_cv_header_wchar_h" != "yes"; then
10049 for ac_hdr in wcstr.h
10050do
10051ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10052echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10053echo "configure:10054: checking for $ac_hdr" >&5
10054if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10055 echo $ac_n "(cached) $ac_c" 1>&6
10056else
10057 cat > conftest.$ac_ext <<EOF
10058#line 10059 "configure"
10059#include "confdefs.h"
10060#include <$ac_hdr>
10061EOF
10062ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10063{ (eval echo configure:10064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10064ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10065if test -z "$ac_err"; then
10066 rm -rf conftest*
10067 eval "ac_cv_header_$ac_safe=yes"
10068else
10069 echo "$ac_err" >&5
10070 echo "configure: failed program was:" >&5
10071 cat conftest.$ac_ext >&5
10072 rm -rf conftest*
10073 eval "ac_cv_header_$ac_safe=no"
10074fi
10075rm -f conftest*
10076fi
10077if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10078 echo "$ac_t""yes" 1>&6
10079 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10080 cat >> confdefs.h <<EOF
10081#define $ac_tr_hdr 1
10082EOF
10083
10084else
10085 echo "$ac_t""no" 1>&6
10086fi
10087done
10088
10089fi
10090
10091for ac_hdr in fnmatch.h
10092do
10093ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10094echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10095echo "configure:10096: checking for $ac_hdr" >&5
10096if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10097 echo $ac_n "(cached) $ac_c" 1>&6
10098else
10099 cat > conftest.$ac_ext <<EOF
10100#line 10101 "configure"
10101#include "confdefs.h"
10102#include <$ac_hdr>
10103EOF
10104ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10105{ (eval echo configure:10106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10106ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10107if test -z "$ac_err"; then
10108 rm -rf conftest*
10109 eval "ac_cv_header_$ac_safe=yes"
10110else
10111 echo "$ac_err" >&5
10112 echo "configure: failed program was:" >&5
10113 cat conftest.$ac_ext >&5
10114 rm -rf conftest*
10115 eval "ac_cv_header_$ac_safe=no"
10116fi
10117rm -f conftest*
10118fi
10119if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10120 echo "$ac_t""yes" 1>&6
10121 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10122 cat >> confdefs.h <<EOF
10123#define $ac_tr_hdr 1
10124EOF
10125
10126else
10127 echo "$ac_t""no" 1>&6
10128fi
10129done
10130
10131
10132if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10133 for ac_func in fnmatch
10134do
10135echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10136echo "configure:10137: checking for $ac_func" >&5
10137if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10138 echo $ac_n "(cached) $ac_c" 1>&6
10139else
10140 cat > conftest.$ac_ext <<EOF
10141#line 10142 "configure"
10142#include "confdefs.h"
10143/* System header to define __stub macros and hopefully few prototypes,
10144 which can conflict with char $ac_func(); below. */
10145#include <assert.h>
10146/* Override any gcc2 internal prototype to avoid an error. */
10147/* We use char because int might match the return type of a gcc2
10148 builtin and then its argument prototype would still apply. */
10149char $ac_func();
10150
10151int main() {
10152
10153/* The GNU C library defines this for functions which it implements
10154 to always fail with ENOSYS. Some functions are actually named
10155 something starting with __ and the normal name is an alias. */
10156#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10157choke me
10158#else
10159$ac_func();
10160#endif
10161
10162; return 0; }
10163EOF
10164if { (eval echo configure:10165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10165 rm -rf conftest*
10166 eval "ac_cv_func_$ac_func=yes"
10167else
10168 echo "configure: failed program was:" >&5
10169 cat conftest.$ac_ext >&5
10170 rm -rf conftest*
10171 eval "ac_cv_func_$ac_func=no"
10172fi
10173rm -f conftest*
10174fi
10175
10176if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10177 echo "$ac_t""yes" 1>&6
10178 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10179 cat >> confdefs.h <<EOF
10180#define $ac_tr_func 1
10181EOF
10182
10183else
10184 echo "$ac_t""no" 1>&6
10185fi
10186done
10187
10188fi
10189
10190for ac_hdr in langinfo.h
10191do
10192ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10193echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10194echo "configure:10195: checking for $ac_hdr" >&5
10195if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10196 echo $ac_n "(cached) $ac_c" 1>&6
10197else
10198 cat > conftest.$ac_ext <<EOF
10199#line 10200 "configure"
10200#include "confdefs.h"
10201#include <$ac_hdr>
10202EOF
10203ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10204{ (eval echo configure:10205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10205ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10206if test -z "$ac_err"; then
10207 rm -rf conftest*
10208 eval "ac_cv_header_$ac_safe=yes"
10209else
10210 echo "$ac_err" >&5
10211 echo "configure: failed program was:" >&5
10212 cat conftest.$ac_ext >&5
10213 rm -rf conftest*
10214 eval "ac_cv_header_$ac_safe=no"
10215fi
10216rm -f conftest*
10217fi
10218if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10219 echo "$ac_t""yes" 1>&6
10220 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10221 cat >> confdefs.h <<EOF
10222#define $ac_tr_hdr 1
10223EOF
10224
10225else
10226 echo "$ac_t""no" 1>&6
10227fi
10228done
10229
10230
10231case "${host}" in
10232 *-pc-os2_emx | *-pc-os2-emx )
10233 if test $ac_cv_header_langinfo_h = "yes"; then
10234 LIBS="$LIBS -lintl"
10235 fi
10236 ;;
10237esac
10238
10239if test "$wxUSE_GUI" = "yes"; then
10240 if test "$wxUSE_UNIX" = "yes"; then
10241 for ac_hdr in X11/XKBlib.h
10242do
10243ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10244echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10245echo "configure:10246: checking for $ac_hdr" >&5
10246if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10247 echo $ac_n "(cached) $ac_c" 1>&6
10248else
10249 cat > conftest.$ac_ext <<EOF
10250#line 10251 "configure"
10251#include "confdefs.h"
10252#include <$ac_hdr>
10253EOF
10254ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10255{ (eval echo configure:10256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10256ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10257if test -z "$ac_err"; then
10258 rm -rf conftest*
10259 eval "ac_cv_header_$ac_safe=yes"
10260else
10261 echo "$ac_err" >&5
10262 echo "configure: failed program was:" >&5
10263 cat conftest.$ac_ext >&5
10264 rm -rf conftest*
10265 eval "ac_cv_header_$ac_safe=no"
10266fi
10267rm -f conftest*
10268fi
10269if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10270 echo "$ac_t""yes" 1>&6
10271 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10272 cat >> confdefs.h <<EOF
10273#define $ac_tr_hdr 1
10274EOF
10275
10276else
10277 echo "$ac_t""no" 1>&6
10278fi
10279done
10280
10281 fi
10282fi
10283
10284
10285echo $ac_n "checking for working const""... $ac_c" 1>&6
10286echo "configure:10287: checking for working const" >&5
10287if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10288 echo $ac_n "(cached) $ac_c" 1>&6
10289else
10290 cat > conftest.$ac_ext <<EOF
10291#line 10292 "configure"
10292#include "confdefs.h"
10293
10294int main() {
10295
10296/* Ultrix mips cc rejects this. */
10297typedef int charset[2]; const charset x;
10298/* SunOS 4.1.1 cc rejects this. */
10299char const *const *ccp;
10300char **p;
10301/* NEC SVR4.0.2 mips cc rejects this. */
10302struct point {int x, y;};
10303static struct point const zero = {0,0};
10304/* AIX XL C 1.02.0.0 rejects this.
10305 It does not let you subtract one const X* pointer from another in an arm
10306 of an if-expression whose if-part is not a constant expression */
10307const char *g = "string";
10308ccp = &g + (g ? g-g : 0);
10309/* HPUX 7.0 cc rejects these. */
10310++ccp;
10311p = (char**) ccp;
10312ccp = (char const *const *) p;
10313{ /* SCO 3.2v4 cc rejects this. */
10314 char *t;
10315 char const *s = 0 ? (char *) 0 : (char const *) 0;
10316
10317 *t++ = 0;
10318}
10319{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10320 int x[] = {25, 17};
10321 const int *foo = &x[0];
10322 ++foo;
10323}
10324{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10325 typedef const int *iptr;
10326 iptr p = 0;
10327 ++p;
10328}
10329{ /* AIX XL C 1.02.0.0 rejects this saying
10330 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10331 struct s { int j; const int *ap[3]; };
10332 struct s *b; b->j = 5;
10333}
10334{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10335 const int foo = 10;
10336}
10337
10338; return 0; }
10339EOF
10340if { (eval echo configure:10341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10341 rm -rf conftest*
10342 ac_cv_c_const=yes
10343else
10344 echo "configure: failed program was:" >&5
10345 cat conftest.$ac_ext >&5
10346 rm -rf conftest*
10347 ac_cv_c_const=no
10348fi
10349rm -f conftest*
10350fi
10351
10352echo "$ac_t""$ac_cv_c_const" 1>&6
10353if test $ac_cv_c_const = no; then
10354 cat >> confdefs.h <<\EOF
10355#define const
10356EOF
10357
10358fi
10359
10360echo $ac_n "checking for inline""... $ac_c" 1>&6
10361echo "configure:10362: checking for inline" >&5
10362if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10363 echo $ac_n "(cached) $ac_c" 1>&6
10364else
10365 ac_cv_c_inline=no
10366for ac_kw in inline __inline__ __inline; do
10367 cat > conftest.$ac_ext <<EOF
10368#line 10369 "configure"
10369#include "confdefs.h"
10370
10371int main() {
10372} $ac_kw foo() {
10373; return 0; }
10374EOF
10375if { (eval echo configure:10376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10376 rm -rf conftest*
10377 ac_cv_c_inline=$ac_kw; break
10378else
10379 echo "configure: failed program was:" >&5
10380 cat conftest.$ac_ext >&5
10381fi
10382rm -f conftest*
10383done
10384
10385fi
10386
10387echo "$ac_t""$ac_cv_c_inline" 1>&6
10388case "$ac_cv_c_inline" in
10389 inline | yes) ;;
10390 no) cat >> confdefs.h <<\EOF
10391#define inline
10392EOF
10393 ;;
10394 *) cat >> confdefs.h <<EOF
10395#define inline $ac_cv_c_inline
10396EOF
10397 ;;
10398esac
10399
10400
10401echo $ac_n "checking size of char""... $ac_c" 1>&6
10402echo "configure:10403: checking size of char" >&5
10403if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10404 echo $ac_n "(cached) $ac_c" 1>&6
10405else
10406 if test "$cross_compiling" = yes; then
10407 ac_cv_sizeof_char=1
10408else
10409 cat > conftest.$ac_ext <<EOF
10410#line 10411 "configure"
10411#include "confdefs.h"
10412#include <stdio.h>
10413main()
10414{
10415 FILE *f=fopen("conftestval", "w");
10416 if (!f) exit(1);
10417 fprintf(f, "%d\n", sizeof(char));
10418 exit(0);
10419}
10420EOF
10421if { (eval echo configure:10422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10422then
10423 ac_cv_sizeof_char=`cat conftestval`
10424else
10425 echo "configure: failed program was:" >&5
10426 cat conftest.$ac_ext >&5
10427 rm -fr conftest*
10428 ac_cv_sizeof_char=0
10429fi
10430rm -fr conftest*
10431fi
10432
10433fi
10434echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10435cat >> confdefs.h <<EOF
10436#define SIZEOF_CHAR $ac_cv_sizeof_char
10437EOF
10438
10439
10440echo $ac_n "checking size of short""... $ac_c" 1>&6
10441echo "configure:10442: checking size of short" >&5
10442if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10443 echo $ac_n "(cached) $ac_c" 1>&6
10444else
10445 if test "$cross_compiling" = yes; then
10446 ac_cv_sizeof_short=2
10447else
10448 cat > conftest.$ac_ext <<EOF
10449#line 10450 "configure"
10450#include "confdefs.h"
10451#include <stdio.h>
10452main()
10453{
10454 FILE *f=fopen("conftestval", "w");
10455 if (!f) exit(1);
10456 fprintf(f, "%d\n", sizeof(short));
10457 exit(0);
10458}
10459EOF
10460if { (eval echo configure:10461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10461then
10462 ac_cv_sizeof_short=`cat conftestval`
10463else
10464 echo "configure: failed program was:" >&5
10465 cat conftest.$ac_ext >&5
10466 rm -fr conftest*
10467 ac_cv_sizeof_short=0
10468fi
10469rm -fr conftest*
10470fi
10471
10472fi
10473echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10474cat >> confdefs.h <<EOF
10475#define SIZEOF_SHORT $ac_cv_sizeof_short
10476EOF
10477
10478
10479echo $ac_n "checking size of void *""... $ac_c" 1>&6
10480echo "configure:10481: checking size of void *" >&5
10481if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10482 echo $ac_n "(cached) $ac_c" 1>&6
10483else
10484 if test "$cross_compiling" = yes; then
10485 ac_cv_sizeof_void_p=4
10486else
10487 cat > conftest.$ac_ext <<EOF
10488#line 10489 "configure"
10489#include "confdefs.h"
10490#include <stdio.h>
10491main()
10492{
10493 FILE *f=fopen("conftestval", "w");
10494 if (!f) exit(1);
10495 fprintf(f, "%d\n", sizeof(void *));
10496 exit(0);
10497}
10498EOF
10499if { (eval echo configure:10500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10500then
10501 ac_cv_sizeof_void_p=`cat conftestval`
10502else
10503 echo "configure: failed program was:" >&5
10504 cat conftest.$ac_ext >&5
10505 rm -fr conftest*
10506 ac_cv_sizeof_void_p=0
10507fi
10508rm -fr conftest*
10509fi
10510
10511fi
10512echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10513cat >> confdefs.h <<EOF
10514#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10515EOF
10516
10517
10518echo $ac_n "checking size of int""... $ac_c" 1>&6
10519echo "configure:10520: checking size of int" >&5
10520if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10521 echo $ac_n "(cached) $ac_c" 1>&6
10522else
10523 if test "$cross_compiling" = yes; then
10524 ac_cv_sizeof_int=4
10525else
10526 cat > conftest.$ac_ext <<EOF
10527#line 10528 "configure"
10528#include "confdefs.h"
10529#include <stdio.h>
10530main()
10531{
10532 FILE *f=fopen("conftestval", "w");
10533 if (!f) exit(1);
10534 fprintf(f, "%d\n", sizeof(int));
10535 exit(0);
10536}
10537EOF
10538if { (eval echo configure:10539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10539then
10540 ac_cv_sizeof_int=`cat conftestval`
10541else
10542 echo "configure: failed program was:" >&5
10543 cat conftest.$ac_ext >&5
10544 rm -fr conftest*
10545 ac_cv_sizeof_int=0
10546fi
10547rm -fr conftest*
10548fi
10549
10550fi
10551echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10552cat >> confdefs.h <<EOF
10553#define SIZEOF_INT $ac_cv_sizeof_int
10554EOF
10555
10556
10557echo $ac_n "checking size of long""... $ac_c" 1>&6
10558echo "configure:10559: checking size of long" >&5
10559if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10560 echo $ac_n "(cached) $ac_c" 1>&6
10561else
10562 if test "$cross_compiling" = yes; then
10563 ac_cv_sizeof_long=4
10564else
10565 cat > conftest.$ac_ext <<EOF
10566#line 10567 "configure"
10567#include "confdefs.h"
10568#include <stdio.h>
10569main()
10570{
10571 FILE *f=fopen("conftestval", "w");
10572 if (!f) exit(1);
10573 fprintf(f, "%d\n", sizeof(long));
10574 exit(0);
10575}
10576EOF
10577if { (eval echo configure:10578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10578then
10579 ac_cv_sizeof_long=`cat conftestval`
10580else
10581 echo "configure: failed program was:" >&5
10582 cat conftest.$ac_ext >&5
10583 rm -fr conftest*
10584 ac_cv_sizeof_long=0
10585fi
10586rm -fr conftest*
10587fi
10588
10589fi
10590echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10591cat >> confdefs.h <<EOF
10592#define SIZEOF_LONG $ac_cv_sizeof_long
10593EOF
10594
10595
10596
10597case "${host}" in
10598 arm-*-linux* )
10599 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10600echo "configure:10601: checking size of long long" >&5
10601if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10602 echo $ac_n "(cached) $ac_c" 1>&6
10603else
10604 if test "$cross_compiling" = yes; then
10605 ac_cv_sizeof_long_long=8
10606else
10607 cat > conftest.$ac_ext <<EOF
10608#line 10609 "configure"
10609#include "confdefs.h"
10610#include <stdio.h>
10611main()
10612{
10613 FILE *f=fopen("conftestval", "w");
10614 if (!f) exit(1);
10615 fprintf(f, "%d\n", sizeof(long long));
10616 exit(0);
10617}
10618EOF
10619if { (eval echo configure:10620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10620then
10621 ac_cv_sizeof_long_long=`cat conftestval`
10622else
10623 echo "configure: failed program was:" >&5
10624 cat conftest.$ac_ext >&5
10625 rm -fr conftest*
10626 ac_cv_sizeof_long_long=0
10627fi
10628rm -fr conftest*
10629fi
10630
10631fi
10632echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10633cat >> confdefs.h <<EOF
10634#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10635EOF
10636
10637
10638 ;;
10639 *-hp-hpux* )
10640 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10641echo "configure:10642: checking size of long long" >&5
10642if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10643 echo $ac_n "(cached) $ac_c" 1>&6
10644else
10645 if test "$cross_compiling" = yes; then
10646 ac_cv_sizeof_long_long=0
10647else
10648 cat > conftest.$ac_ext <<EOF
10649#line 10650 "configure"
10650#include "confdefs.h"
10651#include <stdio.h>
10652main()
10653{
10654 FILE *f=fopen("conftestval", "w");
10655 if (!f) exit(1);
10656 fprintf(f, "%d\n", sizeof(long long));
10657 exit(0);
10658}
10659EOF
10660if { (eval echo configure:10661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10661then
10662 ac_cv_sizeof_long_long=`cat conftestval`
10663else
10664 echo "configure: failed program was:" >&5
10665 cat conftest.$ac_ext >&5
10666 rm -fr conftest*
10667 ac_cv_sizeof_long_long=0
10668fi
10669rm -fr conftest*
10670fi
10671
10672fi
10673echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10674cat >> confdefs.h <<EOF
10675#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10676EOF
10677
10678
10679 if test "$ac_cv_sizeof_long_long" != "0"; then
10680 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10681 fi
10682 ;;
10683 * )
10684 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10685echo "configure:10686: checking size of long long" >&5
10686if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10687 echo $ac_n "(cached) $ac_c" 1>&6
10688else
10689 if test "$cross_compiling" = yes; then
10690 ac_cv_sizeof_long_long=0
10691else
10692 cat > conftest.$ac_ext <<EOF
10693#line 10694 "configure"
10694#include "confdefs.h"
10695#include <stdio.h>
10696main()
10697{
10698 FILE *f=fopen("conftestval", "w");
10699 if (!f) exit(1);
10700 fprintf(f, "%d\n", sizeof(long long));
10701 exit(0);
10702}
10703EOF
10704if { (eval echo configure:10705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10705then
10706 ac_cv_sizeof_long_long=`cat conftestval`
10707else
10708 echo "configure: failed program was:" >&5
10709 cat conftest.$ac_ext >&5
10710 rm -fr conftest*
10711 ac_cv_sizeof_long_long=0
10712fi
10713rm -fr conftest*
10714fi
10715
10716fi
10717echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10718cat >> confdefs.h <<EOF
10719#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10720EOF
10721
10722
10723esac
10724
10725echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10726echo "configure:10727: checking size of wchar_t" >&5
10727if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10728 echo $ac_n "(cached) $ac_c" 1>&6
10729else
10730
10731 if test "$cross_compiling" = yes; then
10732
10733 case "${host}" in
10734 *-pc-msdosdjgpp )
10735 wx_cv_sizeof_wchar_t=0
10736 ;;
10737 * )
10738 wx_cv_sizeof_wchar_t=4
10739 ;;
10740 esac
10741
10742
10743else
10744 cat > conftest.$ac_ext <<EOF
10745#line 10746 "configure"
10746#include "confdefs.h"
10747
10748 /* DJGPP only has fake wchar_t: */
10749 #ifdef __DJGPP__
10750 # error "fake wchar_t"
10751 #endif
10752 #ifdef HAVE_WCHAR_H
10753 # ifdef __CYGWIN__
10754 # include <stddef.h>
10755 # endif
10756 # include <wchar.h>
10757 #endif
10758 #ifdef HAVE_STDLIB_H
10759 # include <stdlib.h>
10760 #endif
10761 #include <stdio.h>
10762 int main()
10763 {
10764 FILE *f=fopen("conftestval", "w");
10765 if (!f) exit(1);
10766 fprintf(f, "%i", sizeof(wchar_t));
10767 exit(0);
10768 }
10769
10770EOF
10771if { (eval echo configure:10772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10772then
10773 wx_cv_sizeof_wchar_t=`cat conftestval`
10774else
10775 echo "configure: failed program was:" >&5
10776 cat conftest.$ac_ext >&5
10777 rm -fr conftest*
10778 wx_cv_sizeof_wchar_t=0
10779fi
10780rm -fr conftest*
10781fi
10782
10783
10784fi
10785
10786echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10787
10788cat >> confdefs.h <<EOF
10789#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10790EOF
10791
10792
10793# Check whether --enable-largefile or --disable-largefile was given.
10794if test "${enable_largefile+set}" = set; then
10795 enableval="$enable_largefile"
10796 :
10797fi
10798
10799if test "$enable_largefile" != no; then
10800 wx_largefile=no
10801
10802 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10803echo "configure:10804: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10804if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10805 echo $ac_n "(cached) $ac_c" 1>&6
10806else
10807
10808 cat > conftest.$ac_ext <<EOF
10809#line 10810 "configure"
10810#include "confdefs.h"
10811#define _FILE_OFFSET_BITS 64
10812 #include <sys/types.h>
10813int main() {
10814typedef struct {
10815 unsigned int field: sizeof(off_t) == 8;
10816} wxlf;
10817
10818; return 0; }
10819EOF
10820if { (eval echo configure:10821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10821 rm -rf conftest*
10822 ac_cv_sys_file_offset_bits=64
10823else
10824 echo "configure: failed program was:" >&5
10825 cat conftest.$ac_ext >&5
10826 rm -rf conftest*
10827 ac_cv_sys_file_offset_bits=no
10828fi
10829rm -f conftest*
10830
10831
10832fi
10833
10834echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10835
10836 if test "$ac_cv_sys_file_offset_bits" != no; then
10837 wx_largefile=yes
10838 cat >> confdefs.h <<EOF
10839#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10840EOF
10841
10842 fi
10843
10844 if test "x$wx_largefile" != "xyes"; then
10845
10846 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10847echo "configure:10848: checking for _LARGE_FILES value needed for large files" >&5
10848if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10849 echo $ac_n "(cached) $ac_c" 1>&6
10850else
10851
10852 cat > conftest.$ac_ext <<EOF
10853#line 10854 "configure"
10854#include "confdefs.h"
10855#define _LARGE_FILES 1
10856 #include <sys/types.h>
10857int main() {
10858typedef struct {
10859 unsigned int field: sizeof(off_t) == 8;
10860} wxlf;
10861
10862; return 0; }
10863EOF
10864if { (eval echo configure:10865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10865 rm -rf conftest*
10866 ac_cv_sys_large_files=1
10867else
10868 echo "configure: failed program was:" >&5
10869 cat conftest.$ac_ext >&5
10870 rm -rf conftest*
10871 ac_cv_sys_large_files=no
10872fi
10873rm -f conftest*
10874
10875
10876fi
10877
10878echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10879
10880 if test "$ac_cv_sys_large_files" != no; then
10881 wx_largefile=yes
10882 cat >> confdefs.h <<EOF
10883#define _LARGE_FILES $ac_cv_sys_large_files
10884EOF
10885
10886 fi
10887
10888 fi
10889
10890 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10891echo "configure:10892: checking if large file support is available" >&5
10892 if test "x$wx_largefile" = "xyes"; then
10893 cat >> confdefs.h <<\EOF
10894#define HAVE_LARGEFILE_SUPPORT 1
10895EOF
10896
10897 fi
10898 echo "$ac_t""$wx_largefile" 1>&6
10899fi
10900
10901
10902if test "x$wx_largefile" = "xyes"; then
10903 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10904 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
10905 else
10906 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
10907 fi
10908 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
10909fi
10910
10911echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10912echo "configure:10913: checking whether byte ordering is bigendian" >&5
10913if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10914 echo $ac_n "(cached) $ac_c" 1>&6
10915else
10916 ac_cv_c_bigendian=unknown
10917# See if sys/param.h defines the BYTE_ORDER macro.
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 || !LITTLE_ENDIAN
10926 bogus endian macros
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 # It does; now see whether it defined to BIG_ENDIAN or not.
10933cat > conftest.$ac_ext <<EOF
10934#line 10935 "configure"
10935#include "confdefs.h"
10936#include <sys/types.h>
10937#include <sys/param.h>
10938int main() {
10939
10940#if BYTE_ORDER != BIG_ENDIAN
10941 not big endian
10942#endif
10943; return 0; }
10944EOF
10945if { (eval echo configure:10946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10946 rm -rf conftest*
10947 ac_cv_c_bigendian=yes
10948else
10949 echo "configure: failed program was:" >&5
10950 cat conftest.$ac_ext >&5
10951 rm -rf conftest*
10952 ac_cv_c_bigendian=no
10953fi
10954rm -f conftest*
10955else
10956 echo "configure: failed program was:" >&5
10957 cat conftest.$ac_ext >&5
10958fi
10959rm -f conftest*
10960if test $ac_cv_c_bigendian = unknown; then
10961if test "$cross_compiling" = yes; then
10962 ac_cv_c_bigendian=unknown
10963else
10964 cat > conftest.$ac_ext <<EOF
10965#line 10966 "configure"
10966#include "confdefs.h"
10967main () {
10968 /* Are we little or big endian? From Harbison&Steele. */
10969 union
10970 {
10971 long l;
10972 char c[sizeof (long)];
10973 } u;
10974 u.l = 1;
10975 exit (u.c[sizeof (long) - 1] == 1);
10976}
10977EOF
10978if { (eval echo configure:10979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10979then
10980 ac_cv_c_bigendian=no
10981else
10982 echo "configure: failed program was:" >&5
10983 cat conftest.$ac_ext >&5
10984 rm -fr conftest*
10985 ac_cv_c_bigendian=yes
10986fi
10987rm -fr conftest*
10988fi
10989
10990fi
10991fi
10992
10993echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10994if test $ac_cv_c_bigendian = unknown; then
10995 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
10996fi
10997if test $ac_cv_c_bigendian = yes; then
10998 cat >> confdefs.h <<\EOF
10999#define WORDS_BIGENDIAN 1
11000EOF
11001
11002fi
11003
11004
11005echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
11006echo "configure:11007: checking how to run the C++ preprocessor" >&5
11007if test -z "$CXXCPP"; then
11008if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
11009 echo $ac_n "(cached) $ac_c" 1>&6
11010else
11011 ac_ext=C
11012# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11013ac_cpp='$CXXCPP $CPPFLAGS'
11014ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11015ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11016cross_compiling=$ac_cv_prog_cxx_cross
11017 CXXCPP="${CXX-g++} -E"
11018 cat > conftest.$ac_ext <<EOF
11019#line 11020 "configure"
11020#include "confdefs.h"
11021#include <stdlib.h>
11022EOF
11023ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11024{ (eval echo configure:11025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11025ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11026if test -z "$ac_err"; then
11027 :
11028else
11029 echo "$ac_err" >&5
11030 echo "configure: failed program was:" >&5
11031 cat conftest.$ac_ext >&5
11032 rm -rf conftest*
11033 CXXCPP=/lib/cpp
11034fi
11035rm -f conftest*
11036 ac_cv_prog_CXXCPP="$CXXCPP"
11037ac_ext=C
11038# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11039ac_cpp='$CXXCPP $CPPFLAGS'
11040ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11041ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11042cross_compiling=$ac_cv_prog_cxx_cross
11043fi
11044fi
11045CXXCPP="$ac_cv_prog_CXXCPP"
11046echo "$ac_t""$CXXCPP" 1>&6
11047
11048
11049 if test "$cross_compiling" = "yes"; then
11050 cat >> confdefs.h <<\EOF
11051#define wxUSE_IOSTREAMH 1
11052EOF
11053
11054 else
11055
11056 ac_ext=C
11057# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11058ac_cpp='$CXXCPP $CPPFLAGS'
11059ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11060ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11061cross_compiling=$ac_cv_prog_cxx_cross
11062
11063
11064 for ac_hdr in iostream
11065do
11066ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11067echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11068echo "configure:11069: checking for $ac_hdr" >&5
11069if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11070 echo $ac_n "(cached) $ac_c" 1>&6
11071else
11072 cat > conftest.$ac_ext <<EOF
11073#line 11074 "configure"
11074#include "confdefs.h"
11075#include <$ac_hdr>
11076EOF
11077ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11078{ (eval echo configure:11079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11079ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11080if test -z "$ac_err"; then
11081 rm -rf conftest*
11082 eval "ac_cv_header_$ac_safe=yes"
11083else
11084 echo "$ac_err" >&5
11085 echo "configure: failed program was:" >&5
11086 cat conftest.$ac_ext >&5
11087 rm -rf conftest*
11088 eval "ac_cv_header_$ac_safe=no"
11089fi
11090rm -f conftest*
11091fi
11092if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11093 echo "$ac_t""yes" 1>&6
11094 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11095 cat >> confdefs.h <<EOF
11096#define $ac_tr_hdr 1
11097EOF
11098
11099else
11100 echo "$ac_t""no" 1>&6
11101fi
11102done
11103
11104
11105 if test "$ac_cv_header_iostream" = "yes" ; then
11106 :
11107 else
11108 cat >> confdefs.h <<\EOF
11109#define wxUSE_IOSTREAMH 1
11110EOF
11111
11112 fi
11113
11114 ac_ext=c
11115# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11116ac_cpp='$CPP $CPPFLAGS'
11117ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11118ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11119cross_compiling=$ac_cv_prog_cc_cross
11120
11121 fi
11122
11123
11124
11125 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
11126echo "configure:11127: checking if C++ compiler supports bool" >&5
11127if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11128 echo $ac_n "(cached) $ac_c" 1>&6
11129else
11130
11131
11132 ac_ext=C
11133# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11134ac_cpp='$CXXCPP $CPPFLAGS'
11135ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11136ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11137cross_compiling=$ac_cv_prog_cxx_cross
11138
11139
11140 cat > conftest.$ac_ext <<EOF
11141#line 11142 "configure"
11142#include "confdefs.h"
11143
11144
11145int main() {
11146
11147 bool b = true;
11148
11149 return 0;
11150
11151; return 0; }
11152EOF
11153if { (eval echo configure:11154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11154 rm -rf conftest*
11155
11156 wx_cv_cpp_bool=yes
11157
11158else
11159 echo "configure: failed program was:" >&5
11160 cat conftest.$ac_ext >&5
11161 rm -rf conftest*
11162
11163 wx_cv_cpp_bool=no
11164
11165
11166fi
11167rm -f conftest*
11168
11169 ac_ext=c
11170# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11171ac_cpp='$CPP $CPPFLAGS'
11172ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11173ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11174cross_compiling=$ac_cv_prog_cc_cross
11175
11176
11177fi
11178
11179echo "$ac_t""$wx_cv_cpp_bool" 1>&6
11180
11181 if test "$wx_cv_cpp_bool" = "yes"; then
11182 cat >> confdefs.h <<\EOF
11183#define HAVE_BOOL 1
11184EOF
11185
11186 fi
11187
11188
11189
11190 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
11191echo "configure:11192: checking if C++ compiler supports the explicit keyword" >&5
11192if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11193 echo $ac_n "(cached) $ac_c" 1>&6
11194else
11195
11196
11197 ac_ext=C
11198# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11199ac_cpp='$CXXCPP $CPPFLAGS'
11200ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11201ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11202cross_compiling=$ac_cv_prog_cxx_cross
11203
11204
11205 cat > conftest.$ac_ext <<EOF
11206#line 11207 "configure"
11207#include "confdefs.h"
11208
11209 class Foo { public: explicit Foo(int) {} };
11210
11211int main() {
11212
11213 return 0;
11214
11215; return 0; }
11216EOF
11217if { (eval echo configure:11218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11218 rm -rf conftest*
11219
11220 cat > conftest.$ac_ext <<EOF
11221#line 11222 "configure"
11222#include "confdefs.h"
11223
11224 class Foo { public: explicit Foo(int) {} };
11225 static void TakeFoo(const Foo& foo) { }
11226
11227int main() {
11228
11229 TakeFoo(17);
11230 return 0;
11231
11232; return 0; }
11233EOF
11234if { (eval echo configure:11235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11235 rm -rf conftest*
11236 wx_cv_explicit=no
11237else
11238 echo "configure: failed program was:" >&5
11239 cat conftest.$ac_ext >&5
11240 rm -rf conftest*
11241 wx_cv_explicit=yes
11242
11243fi
11244rm -f conftest*
11245
11246else
11247 echo "configure: failed program was:" >&5
11248 cat conftest.$ac_ext >&5
11249 rm -rf conftest*
11250 wx_cv_explicit=no
11251
11252fi
11253rm -f conftest*
11254
11255 ac_ext=c
11256# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11257ac_cpp='$CPP $CPPFLAGS'
11258ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11259ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11260cross_compiling=$ac_cv_prog_cc_cross
11261
11262
11263fi
11264
11265echo "$ac_t""$wx_cv_explicit" 1>&6
11266
11267 if test "$wx_cv_explicit" = "yes"; then
11268 cat >> confdefs.h <<\EOF
11269#define HAVE_EXPLICIT 1
11270EOF
11271
11272 fi
11273
11274
11275echo $ac_n "checking whether the compiler supports const_cast<>""... $ac_c" 1>&6
11276echo "configure:11277: checking whether the compiler supports const_cast<>" >&5
11277if eval "test \"`echo '$''{'ac_cv_cxx_const_cast'+set}'`\" = set"; then
11278 echo $ac_n "(cached) $ac_c" 1>&6
11279else
11280
11281 ac_ext=C
11282# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11283ac_cpp='$CXXCPP $CPPFLAGS'
11284ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11285ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11286cross_compiling=$ac_cv_prog_cxx_cross
11287
11288 cat > conftest.$ac_ext <<EOF
11289#line 11290 "configure"
11290#include "confdefs.h"
11291
11292int main() {
11293int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
11294; return 0; }
11295EOF
11296if { (eval echo configure:11297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11297 rm -rf conftest*
11298 ac_cv_cxx_const_cast=yes
11299else
11300 echo "configure: failed program was:" >&5
11301 cat conftest.$ac_ext >&5
11302 rm -rf conftest*
11303 ac_cv_cxx_const_cast=no
11304fi
11305rm -f conftest*
11306 ac_ext=c
11307# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11308ac_cpp='$CPP $CPPFLAGS'
11309ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11310ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11311cross_compiling=$ac_cv_prog_cc_cross
11312
11313
11314fi
11315
11316echo "$ac_t""$ac_cv_cxx_const_cast" 1>&6
11317if test "$ac_cv_cxx_const_cast" = yes; then
11318 cat >> confdefs.h <<\EOF
11319#define HAVE_CONST_CAST
11320EOF
11321
11322fi
11323
11324
11325
11326SEARCH_INCLUDE="\
11327 /usr/local/include \
11328 \
11329 /usr/Motif-1.2/include \
11330 /usr/Motif-2.1/include \
11331 \
11332 /usr/include/Motif1.2 \
11333 /opt/xpm/include/X11 \
11334 /opt/GBxpm/include/ \
11335 /opt/GBxpm/X11/include/ \
11336 \
11337 /usr/Motif1.2/include \
11338 /usr/dt/include \
11339 /usr/openwin/include \
11340 \
11341 /usr/include/Xm \
11342 \
11343 /usr/X11R6/include \
11344 /usr/X11R6.4/include \
11345 /usr/X11R5/include \
11346 /usr/X11R4/include \
11347 \
11348 /usr/include/X11R6 \
11349 /usr/include/X11R5 \
11350 /usr/include/X11R4 \
11351 \
11352 /usr/local/X11R6/include \
11353 /usr/local/X11R5/include \
11354 /usr/local/X11R4/include \
11355 \
11356 /usr/local/include/X11R6 \
11357 /usr/local/include/X11R5 \
11358 /usr/local/include/X11R4 \
11359 \
11360 /usr/X11/include \
11361 /usr/include/X11 \
11362 /usr/local/X11/include \
11363 /usr/local/include/X11 \
11364 \
11365 /usr/X386/include \
11366 /usr/x386/include \
11367 /usr/XFree86/include/X11 \
11368 \
11369 X:/XFree86/include \
11370 X:/XFree86/include/X11 \
11371 \
11372 /usr/include/gtk \
11373 /usr/local/include/gtk \
11374 /usr/include/glib \
11375 /usr/local/include/glib \
11376 \
11377 /usr/include/qt \
11378 /usr/local/include/qt \
11379 \
11380 /usr/include/windows \
11381 /usr/include/wine \
11382 /usr/local/include/wine \
11383 \
11384 /usr/unsupported/include \
11385 /usr/athena/include \
11386 /usr/local/x11r5/include \
11387 /usr/lpp/Xamples/include \
11388 \
11389 /usr/openwin/share/include"
11390
11391SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11392
11393
11394cat > confcache <<\EOF
11395# This file is a shell script that caches the results of configure
11396# tests run on this system so they can be shared between configure
11397# scripts and configure runs. It is not useful on other systems.
11398# If it contains results you don't want to keep, you may remove or edit it.
11399#
11400# By default, configure uses ./config.cache as the cache file,
11401# creating it if it does not exist already. You can give configure
11402# the --cache-file=FILE option to use a different cache file; that is
11403# what configure does when it calls configure scripts in
11404# subdirectories, so they share the cache.
11405# Giving --cache-file=/dev/null disables caching, for debugging configure.
11406# config.status only pays attention to the cache file if you give it the
11407# --recheck option to rerun configure.
11408#
11409EOF
11410# The following way of writing the cache mishandles newlines in values,
11411# but we know of no workaround that is simple, portable, and efficient.
11412# So, don't put newlines in cache variables' values.
11413# Ultrix sh set writes to stderr and can't be redirected directly,
11414# and sets the high bit in the cache file unless we assign to the vars.
11415(set) 2>&1 |
11416 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11417 *ac_space=\ *)
11418 # `set' does not quote correctly, so add quotes (double-quote substitution
11419 # turns \\\\ into \\, and sed turns \\ into \).
11420 sed -n \
11421 -e "s/'/'\\\\''/g" \
11422 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11423 ;;
11424 *)
11425 # `set' quotes correctly as required by POSIX, so do not add quotes.
11426 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11427 ;;
11428 esac >> confcache
11429if cmp -s $cache_file confcache; then
11430 :
11431else
11432 if test -w $cache_file; then
11433 echo "updating cache $cache_file"
11434 cat confcache > $cache_file
11435 else
11436 echo "not updating unwritable cache $cache_file"
11437 fi
11438fi
11439rm -f confcache
11440
11441
11442if test "$USE_LINUX" = 1; then
11443 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
11444echo "configure:11445: checking for glibc 2.1 or later" >&5
11445if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11446 echo $ac_n "(cached) $ac_c" 1>&6
11447else
11448
11449 cat > conftest.$ac_ext <<EOF
11450#line 11451 "configure"
11451#include "confdefs.h"
11452#include <features.h>
11453int main() {
11454
11455 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11456 #error not glibc2.1
11457 #endif
11458
11459; return 0; }
11460EOF
11461if { (eval echo configure:11462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11462 rm -rf conftest*
11463
11464 wx_cv_lib_glibc21=yes
11465
11466else
11467 echo "configure: failed program was:" >&5
11468 cat conftest.$ac_ext >&5
11469 rm -rf conftest*
11470
11471 wx_cv_lib_glibc21=no
11472
11473
11474fi
11475rm -f conftest*
11476
11477fi
11478
11479echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11480 if test "$wx_cv_lib_glibc21" = "yes"; then
11481 cat >> confdefs.h <<\EOF
11482#define wxHAVE_GLIBC2 1
11483EOF
11484
11485 fi
11486fi
11487
11488if test "x$wx_cv_lib_glibc21" = "xyes"; then
11489 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
11490 cat >> confdefs.h <<\EOF
11491#define _GNU_SOURCE 1
11492EOF
11493
11494 fi
11495fi
11496
11497
11498
11499REGEX_INCLUDE=
11500if test "$wxUSE_REGEX" != "no"; then
11501 cat >> confdefs.h <<\EOF
11502#define wxUSE_REGEX 1
11503EOF
11504
11505
11506 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11507 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11508echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11509echo "configure:11510: checking for regex.h" >&5
11510if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11511 echo $ac_n "(cached) $ac_c" 1>&6
11512else
11513 cat > conftest.$ac_ext <<EOF
11514#line 11515 "configure"
11515#include "confdefs.h"
11516#include <regex.h>
11517EOF
11518ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11519{ (eval echo configure:11520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11520ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11521if test -z "$ac_err"; then
11522 rm -rf conftest*
11523 eval "ac_cv_header_$ac_safe=yes"
11524else
11525 echo "$ac_err" >&5
11526 echo "configure: failed program was:" >&5
11527 cat conftest.$ac_ext >&5
11528 rm -rf conftest*
11529 eval "ac_cv_header_$ac_safe=no"
11530fi
11531rm -f conftest*
11532fi
11533if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11534 echo "$ac_t""yes" 1>&6
11535 for ac_func in regcomp
11536do
11537echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11538echo "configure:11539: checking for $ac_func" >&5
11539if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11540 echo $ac_n "(cached) $ac_c" 1>&6
11541else
11542 cat > conftest.$ac_ext <<EOF
11543#line 11544 "configure"
11544#include "confdefs.h"
11545/* System header to define __stub macros and hopefully few prototypes,
11546 which can conflict with char $ac_func(); below. */
11547#include <assert.h>
11548/* Override any gcc2 internal prototype to avoid an error. */
11549/* We use char because int might match the return type of a gcc2
11550 builtin and then its argument prototype would still apply. */
11551char $ac_func();
11552
11553int main() {
11554
11555/* The GNU C library defines this for functions which it implements
11556 to always fail with ENOSYS. Some functions are actually named
11557 something starting with __ and the normal name is an alias. */
11558#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11559choke me
11560#else
11561$ac_func();
11562#endif
11563
11564; return 0; }
11565EOF
11566if { (eval echo configure:11567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11567 rm -rf conftest*
11568 eval "ac_cv_func_$ac_func=yes"
11569else
11570 echo "configure: failed program was:" >&5
11571 cat conftest.$ac_ext >&5
11572 rm -rf conftest*
11573 eval "ac_cv_func_$ac_func=no"
11574fi
11575rm -f conftest*
11576fi
11577
11578if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11579 echo "$ac_t""yes" 1>&6
11580 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11581 cat >> confdefs.h <<EOF
11582#define $ac_tr_func 1
11583EOF
11584
11585else
11586 echo "$ac_t""no" 1>&6
11587fi
11588done
11589
11590else
11591 echo "$ac_t""no" 1>&6
11592fi
11593
11594
11595 if test "x$ac_cv_func_regcomp" != "xyes"; then
11596 if test "$wxUSE_REGEX" = "sys" ; then
11597 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11598 else
11599 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11600 wxUSE_REGEX=builtin
11601 fi
11602 else
11603 wxUSE_REGEX=sys
11604 fi
11605 fi
11606
11607 if test "$wxUSE_REGEX" = "builtin" ; then
11608 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11609 fi
11610fi
11611
11612
11613ZLIB_INCLUDE=
11614ZLIB_LINK=
11615if test "$wxUSE_ZLIB" != "no" ; then
11616 cat >> confdefs.h <<\EOF
11617#define wxUSE_ZLIB 1
11618EOF
11619
11620
11621 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11622 if test "$USE_DARWIN" = 1; then
11623 system_zlib_h_ok="yes"
11624 else
11625 echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
11626echo "configure:11627: checking for zlib.h >= 1.1.4" >&5
11627if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11628 echo $ac_n "(cached) $ac_c" 1>&6
11629else
11630 if test "$cross_compiling" = yes; then
11631 unset ac_cv_header_zlib_h
11632
11633else
11634 cat > conftest.$ac_ext <<EOF
11635#line 11636 "configure"
11636#include "confdefs.h"
11637
11638 #include <zlib.h>
11639 #include <stdio.h>
11640
11641 int main()
11642 {
11643 FILE *f=fopen("conftestval", "w");
11644 if (!f) exit(1);
11645 fprintf(f, "%s",
11646 ZLIB_VERSION[0] == '1' &&
11647 (ZLIB_VERSION[2] > '1' ||
11648 (ZLIB_VERSION[2] == '1' &&
11649 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11650 exit(0);
11651 }
11652
11653EOF
11654if { (eval echo configure:11655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11655then
11656 ac_cv_header_zlib_h=`cat conftestval`
11657else
11658 echo "configure: failed program was:" >&5
11659 cat conftest.$ac_ext >&5
11660 rm -fr conftest*
11661 ac_cv_header_zlib_h=no
11662fi
11663rm -fr conftest*
11664fi
11665
11666
11667fi
11668
11669echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
11670 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11671echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11672echo "configure:11673: checking for zlib.h" >&5
11673if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11674 echo $ac_n "(cached) $ac_c" 1>&6
11675else
11676 cat > conftest.$ac_ext <<EOF
11677#line 11678 "configure"
11678#include "confdefs.h"
11679#include <zlib.h>
11680EOF
11681ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11682{ (eval echo configure:11683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11683ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11684if test -z "$ac_err"; then
11685 rm -rf conftest*
11686 eval "ac_cv_header_$ac_safe=yes"
11687else
11688 echo "$ac_err" >&5
11689 echo "configure: failed program was:" >&5
11690 cat conftest.$ac_ext >&5
11691 rm -rf conftest*
11692 eval "ac_cv_header_$ac_safe=no"
11693fi
11694rm -f conftest*
11695fi
11696if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11697 echo "$ac_t""yes" 1>&6
11698 :
11699else
11700 echo "$ac_t""no" 1>&6
11701fi
11702
11703
11704 system_zlib_h_ok=$ac_cv_header_zlib_h
11705 fi
11706
11707 if test "$system_zlib_h_ok" = "yes"; then
11708 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11709echo "configure:11710: checking for deflate in -lz" >&5
11710ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11711if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11712 echo $ac_n "(cached) $ac_c" 1>&6
11713else
11714 ac_save_LIBS="$LIBS"
11715LIBS="-lz $LIBS"
11716cat > conftest.$ac_ext <<EOF
11717#line 11718 "configure"
11718#include "confdefs.h"
11719/* Override any gcc2 internal prototype to avoid an error. */
11720/* We use char because int might match the return type of a gcc2
11721 builtin and then its argument prototype would still apply. */
11722char deflate();
11723
11724int main() {
11725deflate()
11726; return 0; }
11727EOF
11728if { (eval echo configure:11729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11729 rm -rf conftest*
11730 eval "ac_cv_lib_$ac_lib_var=yes"
11731else
11732 echo "configure: failed program was:" >&5
11733 cat conftest.$ac_ext >&5
11734 rm -rf conftest*
11735 eval "ac_cv_lib_$ac_lib_var=no"
11736fi
11737rm -f conftest*
11738LIBS="$ac_save_LIBS"
11739
11740fi
11741if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11742 echo "$ac_t""yes" 1>&6
11743 ZLIB_LINK=" -lz"
11744else
11745 echo "$ac_t""no" 1>&6
11746fi
11747
11748 fi
11749
11750 if test "x$ZLIB_LINK" = "x" ; then
11751 if test "$wxUSE_ZLIB" = "sys" ; then
11752 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11753 else
11754 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
11755 wxUSE_ZLIB=builtin
11756 fi
11757 else
11758 wxUSE_ZLIB=sys
11759 fi
11760 fi
11761
11762 if test "$wxUSE_ZLIB" = "builtin" ; then
11763 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11764 fi
11765fi
11766
11767
11768PNG_INCLUDE=
11769PNG_LINK=
11770if test "$wxUSE_LIBPNG" != "no" ; then
11771 cat >> confdefs.h <<\EOF
11772#define wxUSE_LIBPNG 1
11773EOF
11774
11775
11776 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11777 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11778 wxUSE_LIBPNG=sys
11779 fi
11780
11781 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11782 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11783 wxUSE_LIBPNG=builtin
11784 fi
11785
11786 if test "$wxUSE_MGL" != 1 ; then
11787 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11788 echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
11789echo "configure:11790: checking for png.h > 0.90" >&5
11790if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11791 echo $ac_n "(cached) $ac_c" 1>&6
11792else
11793 if test "$cross_compiling" = yes; then
11794 unset ac_cv_header_png_h
11795
11796else
11797 cat > conftest.$ac_ext <<EOF
11798#line 11799 "configure"
11799#include "confdefs.h"
11800
11801 #include <png.h>
11802 #include <stdio.h>
11803
11804 int main()
11805 {
11806 FILE *f=fopen("conftestval", "w");
11807 if (!f) exit(1);
11808 fprintf(f, "%s",
11809 PNG_LIBPNG_VER > 90 ? "yes" : "no");
11810 exit(0);
11811 }
11812
11813EOF
11814if { (eval echo configure:11815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11815then
11816 ac_cv_header_png_h=`cat conftestval`
11817else
11818 echo "configure: failed program was:" >&5
11819 cat conftest.$ac_ext >&5
11820 rm -fr conftest*
11821 ac_cv_header_png_h=no
11822fi
11823rm -fr conftest*
11824fi
11825
11826
11827fi
11828
11829echo "$ac_t""$ac_cv_header_png_h" 1>&6
11830 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11831echo $ac_n "checking for png.h""... $ac_c" 1>&6
11832echo "configure:11833: checking for png.h" >&5
11833if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11834 echo $ac_n "(cached) $ac_c" 1>&6
11835else
11836 cat > conftest.$ac_ext <<EOF
11837#line 11838 "configure"
11838#include "confdefs.h"
11839#include <png.h>
11840EOF
11841ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11842{ (eval echo configure:11843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11843ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11844if test -z "$ac_err"; then
11845 rm -rf conftest*
11846 eval "ac_cv_header_$ac_safe=yes"
11847else
11848 echo "$ac_err" >&5
11849 echo "configure: failed program was:" >&5
11850 cat conftest.$ac_ext >&5
11851 rm -rf conftest*
11852 eval "ac_cv_header_$ac_safe=no"
11853fi
11854rm -f conftest*
11855fi
11856if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11857 echo "$ac_t""yes" 1>&6
11858 :
11859else
11860 echo "$ac_t""no" 1>&6
11861fi
11862
11863
11864 if test "$ac_cv_header_png_h" = "yes"; then
11865 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11866echo "configure:11867: checking for png_check_sig in -lpng" >&5
11867ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11868if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11869 echo $ac_n "(cached) $ac_c" 1>&6
11870else
11871 ac_save_LIBS="$LIBS"
11872LIBS="-lpng -lz -lm $LIBS"
11873cat > conftest.$ac_ext <<EOF
11874#line 11875 "configure"
11875#include "confdefs.h"
11876/* Override any gcc2 internal prototype to avoid an error. */
11877/* We use char because int might match the return type of a gcc2
11878 builtin and then its argument prototype would still apply. */
11879char png_check_sig();
11880
11881int main() {
11882png_check_sig()
11883; return 0; }
11884EOF
11885if { (eval echo configure:11886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11886 rm -rf conftest*
11887 eval "ac_cv_lib_$ac_lib_var=yes"
11888else
11889 echo "configure: failed program was:" >&5
11890 cat conftest.$ac_ext >&5
11891 rm -rf conftest*
11892 eval "ac_cv_lib_$ac_lib_var=no"
11893fi
11894rm -f conftest*
11895LIBS="$ac_save_LIBS"
11896
11897fi
11898if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11899 echo "$ac_t""yes" 1>&6
11900 PNG_LINK=" -lpng"
11901else
11902 echo "$ac_t""no" 1>&6
11903fi
11904
11905 fi
11906
11907 if test "x$PNG_LINK" = "x" ; then
11908 if test "$wxUSE_LIBPNG" = "sys" ; then
11909 { echo "configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11910 else
11911 echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
11912 wxUSE_LIBPNG=builtin
11913 fi
11914 else
11915 wxUSE_LIBPNG=sys
11916 fi
11917 fi
11918 fi
11919
11920 if test "$wxUSE_LIBPNG" = "builtin" ; then
11921 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11922 fi
11923
11924 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11925fi
11926
11927
11928JPEG_INCLUDE=
11929JPEG_LINK=
11930if test "$wxUSE_LIBJPEG" != "no" ; then
11931 cat >> confdefs.h <<\EOF
11932#define wxUSE_LIBJPEG 1
11933EOF
11934
11935
11936 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11937 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11938 wxUSE_LIBJPEG=sys
11939 fi
11940
11941 if test "$wxUSE_MGL" != 1 ; then
11942 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11943 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11944echo "configure:11945: checking for jpeglib.h" >&5
11945 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11946 echo $ac_n "(cached) $ac_c" 1>&6
11947else
11948 cat > conftest.$ac_ext <<EOF
11949#line 11950 "configure"
11950#include "confdefs.h"
11951
11952 #undef HAVE_STDLIB_H
11953 #include <stdio.h>
11954 #include <jpeglib.h>
11955
11956int main() {
11957
11958
11959; return 0; }
11960EOF
11961if { (eval echo configure:11962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11962 rm -rf conftest*
11963 ac_cv_header_jpeglib_h=yes
11964else
11965 echo "configure: failed program was:" >&5
11966 cat conftest.$ac_ext >&5
11967 rm -rf conftest*
11968 ac_cv_header_jpeglib_h=no
11969
11970fi
11971rm -f conftest*
11972
11973fi
11974
11975 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
11976
11977 if test "$ac_cv_header_jpeglib_h" = "yes"; then
11978 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11979echo "configure:11980: checking for jpeg_read_header in -ljpeg" >&5
11980ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11981if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11982 echo $ac_n "(cached) $ac_c" 1>&6
11983else
11984 ac_save_LIBS="$LIBS"
11985LIBS="-ljpeg $LIBS"
11986cat > conftest.$ac_ext <<EOF
11987#line 11988 "configure"
11988#include "confdefs.h"
11989/* Override any gcc2 internal prototype to avoid an error. */
11990/* We use char because int might match the return type of a gcc2
11991 builtin and then its argument prototype would still apply. */
11992char jpeg_read_header();
11993
11994int main() {
11995jpeg_read_header()
11996; return 0; }
11997EOF
11998if { (eval echo configure:11999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11999 rm -rf conftest*
12000 eval "ac_cv_lib_$ac_lib_var=yes"
12001else
12002 echo "configure: failed program was:" >&5
12003 cat conftest.$ac_ext >&5
12004 rm -rf conftest*
12005 eval "ac_cv_lib_$ac_lib_var=no"
12006fi
12007rm -f conftest*
12008LIBS="$ac_save_LIBS"
12009
12010fi
12011if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12012 echo "$ac_t""yes" 1>&6
12013 JPEG_LINK=" -ljpeg"
12014else
12015 echo "$ac_t""no" 1>&6
12016fi
12017
12018 fi
12019
12020 if test "x$JPEG_LINK" = "x" ; then
12021 if test "$wxUSE_LIBJPEG" = "sys" ; then
12022 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
12023 else
12024 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
12025 wxUSE_LIBJPEG=builtin
12026 fi
12027 else
12028 wxUSE_LIBJPEG=sys
12029 fi
12030 fi
12031 fi
12032
12033 if test "$wxUSE_LIBJPEG" = "builtin" ; then
12034 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
12035 fi
12036fi
12037
12038
12039TIFF_INCLUDE=
12040TIFF_LINK=
12041TIFF_PREREQ_LINKS=-lm
12042if test "$wxUSE_LIBTIFF" != "no" ; then
12043 cat >> confdefs.h <<\EOF
12044#define wxUSE_LIBTIFF 1
12045EOF
12046
12047
12048 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
12049 if test "$wxUSE_LIBJPEG" = "sys"; then
12050 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
12051 fi
12052 if test "$wxUSE_ZLIB" = "sys"; then
12053 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
12054 fi
12055 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12056echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
12057echo "configure:12058: checking for tiffio.h" >&5
12058if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12059 echo $ac_n "(cached) $ac_c" 1>&6
12060else
12061 cat > conftest.$ac_ext <<EOF
12062#line 12063 "configure"
12063#include "confdefs.h"
12064#include <tiffio.h>
12065EOF
12066ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12067{ (eval echo configure:12068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12068ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12069if test -z "$ac_err"; then
12070 rm -rf conftest*
12071 eval "ac_cv_header_$ac_safe=yes"
12072else
12073 echo "$ac_err" >&5
12074 echo "configure: failed program was:" >&5
12075 cat conftest.$ac_ext >&5
12076 rm -rf conftest*
12077 eval "ac_cv_header_$ac_safe=no"
12078fi
12079rm -f conftest*
12080fi
12081if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12082 echo "$ac_t""yes" 1>&6
12083 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
12084echo "configure:12085: checking for TIFFError in -ltiff" >&5
12085ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12086if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12087 echo $ac_n "(cached) $ac_c" 1>&6
12088else
12089 ac_save_LIBS="$LIBS"
12090LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
12091cat > conftest.$ac_ext <<EOF
12092#line 12093 "configure"
12093#include "confdefs.h"
12094/* Override any gcc2 internal prototype to avoid an error. */
12095/* We use char because int might match the return type of a gcc2
12096 builtin and then its argument prototype would still apply. */
12097char TIFFError();
12098
12099int main() {
12100TIFFError()
12101; return 0; }
12102EOF
12103if { (eval echo configure:12104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12104 rm -rf conftest*
12105 eval "ac_cv_lib_$ac_lib_var=yes"
12106else
12107 echo "configure: failed program was:" >&5
12108 cat conftest.$ac_ext >&5
12109 rm -rf conftest*
12110 eval "ac_cv_lib_$ac_lib_var=no"
12111fi
12112rm -f conftest*
12113LIBS="$ac_save_LIBS"
12114
12115fi
12116if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12117 echo "$ac_t""yes" 1>&6
12118 TIFF_LINK=" -ltiff"
12119else
12120 echo "$ac_t""no" 1>&6
12121fi
12122
12123
12124else
12125 echo "$ac_t""no" 1>&6
12126fi
12127
12128
12129 if test "x$TIFF_LINK" = "x" ; then
12130 if test "$wxUSE_LIBTIFF" = "sys" ; then
12131 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
12132 else
12133 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
12134 wxUSE_LIBTIFF=builtin
12135 fi
12136 else
12137 wxUSE_LIBTIFF=sys
12138 fi
12139 fi
12140
12141 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12142 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
12143 fi
12144fi
12145
12146
12147AFMINSTALL=
12148WIN32INSTALL=
12149
12150TOOLKIT=
12151TOOLKIT_INCLUDE=
12152WIDGET_SET=
12153
12154if test "$USE_WIN32" = 1 ; then
12155 for ac_hdr in w32api.h
12156do
12157ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12158echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12159echo "configure:12160: checking for $ac_hdr" >&5
12160if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12161 echo $ac_n "(cached) $ac_c" 1>&6
12162else
12163 cat > conftest.$ac_ext <<EOF
12164#line 12165 "configure"
12165#include "confdefs.h"
12166#include <$ac_hdr>
12167EOF
12168ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12169{ (eval echo configure:12170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12170ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12171if test -z "$ac_err"; then
12172 rm -rf conftest*
12173 eval "ac_cv_header_$ac_safe=yes"
12174else
12175 echo "$ac_err" >&5
12176 echo "configure: failed program was:" >&5
12177 cat conftest.$ac_ext >&5
12178 rm -rf conftest*
12179 eval "ac_cv_header_$ac_safe=no"
12180fi
12181rm -f conftest*
12182fi
12183if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12184 echo "$ac_t""yes" 1>&6
12185 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12186 cat >> confdefs.h <<EOF
12187#define $ac_tr_hdr 1
12188EOF
12189
12190else
12191 echo "$ac_t""no" 1>&6
12192fi
12193done
12194
12195 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12196echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12197echo "configure:12198: checking for windows.h" >&5
12198if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12199 echo $ac_n "(cached) $ac_c" 1>&6
12200else
12201 cat > conftest.$ac_ext <<EOF
12202#line 12203 "configure"
12203#include "confdefs.h"
12204#include <windows.h>
12205EOF
12206ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12207{ (eval echo configure:12208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12208ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12209if test -z "$ac_err"; then
12210 rm -rf conftest*
12211 eval "ac_cv_header_$ac_safe=yes"
12212else
12213 echo "$ac_err" >&5
12214 echo "configure: failed program was:" >&5
12215 cat conftest.$ac_ext >&5
12216 rm -rf conftest*
12217 eval "ac_cv_header_$ac_safe=no"
12218fi
12219rm -f conftest*
12220fi
12221if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12222 echo "$ac_t""yes" 1>&6
12223 :
12224else
12225 echo "$ac_t""no" 1>&6
12226
12227 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12228
12229fi
12230
12231
12232 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
12233echo "configure:12234: checking if w32api has good enough MSIE support" >&5
12234if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12235 echo $ac_n "(cached) $ac_c" 1>&6
12236else
12237
12238 cat > conftest.$ac_ext <<EOF
12239#line 12240 "configure"
12240#include "confdefs.h"
12241#include <w32api.h>
12242int main() {
12243
12244 #define wxCHECK_W32API_VERSION( major, minor ) \
12245 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12246 && ( ( __W32API_MAJOR_VERSION > (major) ) \
12247 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12248
12249 #if !wxCHECK_W32API_VERSION(1,1)
12250 #error You need w32api 1.1 or newer
12251 #endif
12252
12253; return 0; }
12254EOF
12255if { (eval echo configure:12256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12256 rm -rf conftest*
12257
12258 wx_cv_w32api_win32_ie=yes
12259
12260else
12261 echo "configure: failed program was:" >&5
12262 cat conftest.$ac_ext >&5
12263 rm -rf conftest*
12264
12265 wx_cv_w32api_win32_ie=no
12266
12267fi
12268rm -f conftest*
12269
12270fi
12271
12272echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
12273 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12274 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12275 fi
12276
12277 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12278
12279 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
12280 LIBS="$LIBS -loleacc"
12281 fi
12282
12283 case "${host}" in
12284 *-*-cygwin* )
12285 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12286 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
12287 esac
12288
12289 if test "$wxUSE_ODBC" = "sys" ; then
12290 wxUSE_ODBC = "yes"
12291 fi
12292 if test "$wxUSE_ODBC" = "yes" ; then
12293 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12294 cat >> confdefs.h <<\EOF
12295#define wxUSE_ODBC 1
12296EOF
12297
12298 fi
12299
12300 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12301 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
12302
12303 WIN32INSTALL=win32install
12304fi
12305
12306if test "$USE_DARWIN" = 1; then
12307 if test "$wxUSE_PRECOMP" = "yes"; then
12308 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12309 else
12310 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12311 fi
12312fi
12313
12314if test "$wxUSE_GUI" = "yes"; then
12315 USE_GUI=1
12316
12317 GUI_TK_LIBRARY=
12318
12319 WXGTK12=
12320 WXGTK127=
12321 WXGTK20=
12322
12323 if test "$wxUSE_MSW" = 1 ; then
12324 TOOLKIT=MSW
12325 GUIDIST=MSW_DIST
12326
12327 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
12328 fi
12329
12330 if test "$wxUSE_GTK" = 1; then
12331 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
12332echo "configure:12333: checking for GTK+ version" >&5
12333
12334 gtk_version_cached=1
12335 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12336 echo $ac_n "(cached) $ac_c" 1>&6
12337else
12338
12339 gtk_version_cached=0
12340 echo "$ac_t""" 1>&6
12341
12342 GTK_MODULES=
12343 if test "$wxUSE_THREADS" = "yes"; then
12344 GTK_MODULES=gthread
12345 fi
12346
12347 wx_cv_lib_gtk=
12348 if test "x$wxUSE_GTK2" = "xyes"; then
12349 # Check whether --enable-gtktest or --disable-gtktest was given.
12350if test "${enable_gtktest+set}" = set; then
12351 enableval="$enable_gtktest"
12352 :
12353else
12354 enable_gtktest=yes
12355fi
12356
12357
12358 pkg_config_args=gtk+-2.0
12359 for module in . $GTK_MODULES
12360 do
12361 case "$module" in
12362 gthread)
12363 pkg_config_args="$pkg_config_args gthread-2.0"
12364 ;;
12365 esac
12366 done
12367
12368 no_gtk=""
12369
12370 # Extract the first word of "pkg-config", so it can be a program name with args.
12371set dummy pkg-config; ac_word=$2
12372echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12373echo "configure:12374: checking for $ac_word" >&5
12374if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12375 echo $ac_n "(cached) $ac_c" 1>&6
12376else
12377 case "$PKG_CONFIG" in
12378 /*)
12379 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12380 ;;
12381 ?:/*)
12382 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12383 ;;
12384 *)
12385 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12386 ac_dummy="$PATH"
12387 for ac_dir in $ac_dummy; do
12388 test -z "$ac_dir" && ac_dir=.
12389 if test -f $ac_dir/$ac_word; then
12390 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12391 break
12392 fi
12393 done
12394 IFS="$ac_save_ifs"
12395 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12396 ;;
12397esac
12398fi
12399PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12400if test -n "$PKG_CONFIG"; then
12401 echo "$ac_t""$PKG_CONFIG" 1>&6
12402else
12403 echo "$ac_t""no" 1>&6
12404fi
12405
12406
12407 if test x$PKG_CONFIG != xno ; then
12408 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12409 :
12410 else
12411 echo *** pkg-config too old; version 0.7 or better required.
12412 no_gtk=yes
12413 PKG_CONFIG=no
12414 fi
12415 else
12416 no_gtk=yes
12417 fi
12418
12419 min_gtk_version=2.0.0
12420 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
12421echo "configure:12422: checking for GTK+ - version >= $min_gtk_version" >&5
12422
12423 if test x$PKG_CONFIG != xno ; then
12424 ## don't try to run the test against uninstalled libtool libs
12425 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12426 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12427 enable_gtktest=no
12428 fi
12429
12430 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12431 :
12432 else
12433 no_gtk=yes
12434 fi
12435 fi
12436
12437 if test x"$no_gtk" = x ; then
12438 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12439 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12440 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12441 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12442 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12443 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12444 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12445 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12446 if test "x$enable_gtktest" = "xyes" ; then
12447 ac_save_CFLAGS="$CFLAGS"
12448 ac_save_LIBS="$LIBS"
12449 CFLAGS="$CFLAGS $GTK_CFLAGS"
12450 LIBS="$GTK_LIBS $LIBS"
12451 rm -f conf.gtktest
12452 if test "$cross_compiling" = yes; then
12453 echo $ac_n "cross compiling; assumed OK... $ac_c"
12454else
12455 cat > conftest.$ac_ext <<EOF
12456#line 12457 "configure"
12457#include "confdefs.h"
12458
12459#include <gtk/gtk.h>
12460#include <stdio.h>
12461#include <stdlib.h>
12462
12463int
12464main ()
12465{
12466 int major, minor, micro;
12467 char *tmp_version;
12468
12469 system ("touch conf.gtktest");
12470
12471 /* HP/UX 9 (%@#!) writes to sscanf strings */
12472 tmp_version = g_strdup("$min_gtk_version");
12473 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12474 printf("%s, bad version string\n", "$min_gtk_version");
12475 exit(1);
12476 }
12477
12478 if ((gtk_major_version != $gtk_config_major_version) ||
12479 (gtk_minor_version != $gtk_config_minor_version) ||
12480 (gtk_micro_version != $gtk_config_micro_version))
12481 {
12482 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12483 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12484 gtk_major_version, gtk_minor_version, gtk_micro_version);
12485 printf ("*** was found! If pkg-config was correct, then it is best\n");
12486 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12487 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12488 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12489 printf("*** required on your system.\n");
12490 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12491 printf("*** to point to the correct configuration files\n");
12492 }
12493 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12494 (gtk_minor_version != GTK_MINOR_VERSION) ||
12495 (gtk_micro_version != GTK_MICRO_VERSION))
12496 {
12497 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12498 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12499 printf("*** library (version %d.%d.%d)\n",
12500 gtk_major_version, gtk_minor_version, gtk_micro_version);
12501 }
12502 else
12503 {
12504 if ((gtk_major_version > major) ||
12505 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12506 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12507 {
12508 return 0;
12509 }
12510 else
12511 {
12512 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12513 gtk_major_version, gtk_minor_version, gtk_micro_version);
12514 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12515 major, minor, micro);
12516 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12517 printf("***\n");
12518 printf("*** If you have already installed a sufficiently new version, this error\n");
12519 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12520 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12521 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12522 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12523 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12524 printf("*** so that the correct libraries are found at run-time))\n");
12525 }
12526 }
12527 return 1;
12528}
12529
12530EOF
12531if { (eval echo configure:12532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12532then
12533 :
12534else
12535 echo "configure: failed program was:" >&5
12536 cat conftest.$ac_ext >&5
12537 rm -fr conftest*
12538 no_gtk=yes
12539fi
12540rm -fr conftest*
12541fi
12542
12543 CFLAGS="$ac_save_CFLAGS"
12544 LIBS="$ac_save_LIBS"
12545 fi
12546 fi
12547 if test "x$no_gtk" = x ; then
12548 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12549 wx_cv_lib_gtk=2.0
12550 else
12551 echo "$ac_t""no" 1>&6
12552 if test "$PKG_CONFIG" = "no" ; then
12553 echo "*** A new enough version of pkg-config was not found."
12554 echo "*** See http://pkgconfig.sourceforge.net"
12555 else
12556 if test -f conf.gtktest ; then
12557 :
12558 else
12559 echo "*** Could not run GTK+ test program, checking why..."
12560 ac_save_CFLAGS="$CFLAGS"
12561 ac_save_LIBS="$LIBS"
12562 CFLAGS="$CFLAGS $GTK_CFLAGS"
12563 LIBS="$LIBS $GTK_LIBS"
12564 cat > conftest.$ac_ext <<EOF
12565#line 12566 "configure"
12566#include "confdefs.h"
12567
12568#include <gtk/gtk.h>
12569#include <stdio.h>
12570
12571int main() {
12572 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12573; return 0; }
12574EOF
12575if { (eval echo configure:12576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12576 rm -rf conftest*
12577 echo "*** The test program compiled, but did not run. This usually means"
12578 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12579 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12580 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12581 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12582 echo "*** is required on your system"
12583 echo "***"
12584 echo "*** If you have an old version installed, it is best to remove it, although"
12585 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12586else
12587 echo "configure: failed program was:" >&5
12588 cat conftest.$ac_ext >&5
12589 rm -rf conftest*
12590 echo "*** The test program failed to compile or link. See the file config.log for the"
12591 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12592fi
12593rm -f conftest*
12594 CFLAGS="$ac_save_CFLAGS"
12595 LIBS="$ac_save_LIBS"
12596 fi
12597 fi
12598 GTK_CFLAGS=""
12599 GTK_LIBS=""
12600 :
12601 fi
12602
12603
12604 rm -f conf.gtktest
12605
12606 else
12607 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12608if test "${with_gtk_prefix+set}" = set; then
12609 withval="$with_gtk_prefix"
12610 gtk_config_prefix="$withval"
12611else
12612 gtk_config_prefix=""
12613fi
12614
12615# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12616if test "${with_gtk_exec_prefix+set}" = set; then
12617 withval="$with_gtk_exec_prefix"
12618 gtk_config_exec_prefix="$withval"
12619else
12620 gtk_config_exec_prefix=""
12621fi
12622
12623# Check whether --enable-gtktest or --disable-gtktest was given.
12624if test "${enable_gtktest+set}" = set; then
12625 enableval="$enable_gtktest"
12626 :
12627else
12628 enable_gtktest=yes
12629fi
12630
12631
12632 for module in . $GTK_MODULES
12633 do
12634 case "$module" in
12635 gthread)
12636 gtk_config_args="$gtk_config_args gthread"
12637 ;;
12638 esac
12639 done
12640
12641 if test x$gtk_config_exec_prefix != x ; then
12642 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12643 if test x${GTK_CONFIG+set} != xset ; then
12644 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12645 fi
12646 fi
12647 if test x$gtk_config_prefix != x ; then
12648 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12649 if test x${GTK_CONFIG+set} != xset ; then
12650 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12651 fi
12652 fi
12653
12654 # Extract the first word of "gtk-config", so it can be a program name with args.
12655set dummy gtk-config; ac_word=$2
12656echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12657echo "configure:12658: checking for $ac_word" >&5
12658if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12659 echo $ac_n "(cached) $ac_c" 1>&6
12660else
12661 case "$GTK_CONFIG" in
12662 /*)
12663 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12664 ;;
12665 ?:/*)
12666 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12667 ;;
12668 *)
12669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12670 ac_dummy="$PATH"
12671 for ac_dir in $ac_dummy; do
12672 test -z "$ac_dir" && ac_dir=.
12673 if test -f $ac_dir/$ac_word; then
12674 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12675 break
12676 fi
12677 done
12678 IFS="$ac_save_ifs"
12679 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12680 ;;
12681esac
12682fi
12683GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12684if test -n "$GTK_CONFIG"; then
12685 echo "$ac_t""$GTK_CONFIG" 1>&6
12686else
12687 echo "$ac_t""no" 1>&6
12688fi
12689
12690 min_gtk_version=1.2.7
12691 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12692echo "configure:12693: checking for GTK - version >= $min_gtk_version" >&5
12693 no_gtk=""
12694 if test "$GTK_CONFIG" = "no" ; then
12695 no_gtk=yes
12696 else
12697 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12698 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12699 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12700 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12701 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12702 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12703 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12704 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12705 if test "x$enable_gtktest" = "xyes" ; then
12706 ac_save_CFLAGS="$CFLAGS"
12707 ac_save_LIBS="$LIBS"
12708 CFLAGS="$CFLAGS $GTK_CFLAGS"
12709 LIBS="$GTK_LIBS $LIBS"
12710 rm -f conf.gtktest
12711 if test "$cross_compiling" = yes; then
12712 echo $ac_n "cross compiling; assumed OK... $ac_c"
12713else
12714 cat > conftest.$ac_ext <<EOF
12715#line 12716 "configure"
12716#include "confdefs.h"
12717
12718#include <gtk/gtk.h>
12719#include <stdio.h>
12720#include <stdlib.h>
12721
12722int
12723main ()
12724{
12725 int major, minor, micro;
12726 char *tmp_version;
12727
12728 system ("touch conf.gtktest");
12729
12730 /* HP/UX 9 (%@#!) writes to sscanf strings */
12731 tmp_version = g_strdup("$min_gtk_version");
12732 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12733 printf("%s, bad version string\n", "$min_gtk_version");
12734 exit(1);
12735 }
12736
12737 if ((gtk_major_version != $gtk_config_major_version) ||
12738 (gtk_minor_version != $gtk_config_minor_version) ||
12739 (gtk_micro_version != $gtk_config_micro_version))
12740 {
12741 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12742 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12743 gtk_major_version, gtk_minor_version, gtk_micro_version);
12744 printf ("*** was found! If gtk-config was correct, then it is best\n");
12745 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12746 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12747 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12748 printf("*** required on your system.\n");
12749 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12750 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12751 printf("*** before re-running configure\n");
12752 }
12753#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12754 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12755 (gtk_minor_version != GTK_MINOR_VERSION) ||
12756 (gtk_micro_version != GTK_MICRO_VERSION))
12757 {
12758 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12759 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12760 printf("*** library (version %d.%d.%d)\n",
12761 gtk_major_version, gtk_minor_version, gtk_micro_version);
12762 }
12763#endif /* defined (GTK_MAJOR_VERSION) ... */
12764 else
12765 {
12766 if ((gtk_major_version > major) ||
12767 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12768 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12769 {
12770 return 0;
12771 }
12772 else
12773 {
12774 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12775 gtk_major_version, gtk_minor_version, gtk_micro_version);
12776 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12777 major, minor, micro);
12778 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12779 printf("***\n");
12780 printf("*** If you have already installed a sufficiently new version, this error\n");
12781 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12782 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12783 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12784 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12785 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12786 printf("*** so that the correct libraries are found at run-time))\n");
12787 }
12788 }
12789 return 1;
12790}
12791
12792EOF
12793if { (eval echo configure:12794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12794then
12795 :
12796else
12797 echo "configure: failed program was:" >&5
12798 cat conftest.$ac_ext >&5
12799 rm -fr conftest*
12800 no_gtk=yes
12801fi
12802rm -fr conftest*
12803fi
12804
12805 CFLAGS="$ac_save_CFLAGS"
12806 LIBS="$ac_save_LIBS"
12807 fi
12808 fi
12809 if test "x$no_gtk" = x ; then
12810 echo "$ac_t""yes" 1>&6
12811 wx_cv_lib_gtk=1.2.7
12812 else
12813 echo "$ac_t""no" 1>&6
12814 if test "$GTK_CONFIG" = "no" ; then
12815 echo "*** The gtk-config script installed by GTK could not be found"
12816 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12817 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12818 echo "*** full path to gtk-config."
12819 else
12820 if test -f conf.gtktest ; then
12821 :
12822 else
12823 echo "*** Could not run GTK test program, checking why..."
12824 CFLAGS="$CFLAGS $GTK_CFLAGS"
12825 LIBS="$LIBS $GTK_LIBS"
12826 cat > conftest.$ac_ext <<EOF
12827#line 12828 "configure"
12828#include "confdefs.h"
12829
12830#include <gtk/gtk.h>
12831#include <stdio.h>
12832
12833int main() {
12834 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12835; return 0; }
12836EOF
12837if { (eval echo configure:12838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12838 rm -rf conftest*
12839 echo "*** The test program compiled, but did not run. This usually means"
12840 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12841 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12842 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12843 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12844 echo "*** is required on your system"
12845 echo "***"
12846 echo "*** If you have an old version installed, it is best to remove it, although"
12847 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12848 echo "***"
12849 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12850 echo "*** came with the system with the command"
12851 echo "***"
12852 echo "*** rpm --erase --nodeps gtk gtk-devel"
12853else
12854 echo "configure: failed program was:" >&5
12855 cat conftest.$ac_ext >&5
12856 rm -rf conftest*
12857 echo "*** The test program failed to compile or link. See the file config.log for the"
12858 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12859 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12860 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12861fi
12862rm -f conftest*
12863 CFLAGS="$ac_save_CFLAGS"
12864 LIBS="$ac_save_LIBS"
12865 fi
12866 fi
12867 GTK_CFLAGS=""
12868 GTK_LIBS=""
12869 :
12870 fi
12871
12872
12873 rm -f conf.gtktest
12874
12875
12876 if test -z "$wx_cv_lib_gtk"; then
12877 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12878if test "${with_gtk_prefix+set}" = set; then
12879 withval="$with_gtk_prefix"
12880 gtk_config_prefix="$withval"
12881else
12882 gtk_config_prefix=""
12883fi
12884
12885# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12886if test "${with_gtk_exec_prefix+set}" = set; then
12887 withval="$with_gtk_exec_prefix"
12888 gtk_config_exec_prefix="$withval"
12889else
12890 gtk_config_exec_prefix=""
12891fi
12892
12893# Check whether --enable-gtktest or --disable-gtktest was given.
12894if test "${enable_gtktest+set}" = set; then
12895 enableval="$enable_gtktest"
12896 :
12897else
12898 enable_gtktest=yes
12899fi
12900
12901
12902 for module in . $GTK_MODULES
12903 do
12904 case "$module" in
12905 gthread)
12906 gtk_config_args="$gtk_config_args gthread"
12907 ;;
12908 esac
12909 done
12910
12911 if test x$gtk_config_exec_prefix != x ; then
12912 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12913 if test x${GTK_CONFIG+set} != xset ; then
12914 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12915 fi
12916 fi
12917 if test x$gtk_config_prefix != x ; then
12918 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12919 if test x${GTK_CONFIG+set} != xset ; then
12920 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12921 fi
12922 fi
12923
12924 # Extract the first word of "gtk-config", so it can be a program name with args.
12925set dummy gtk-config; ac_word=$2
12926echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12927echo "configure:12928: checking for $ac_word" >&5
12928if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12929 echo $ac_n "(cached) $ac_c" 1>&6
12930else
12931 case "$GTK_CONFIG" in
12932 /*)
12933 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12934 ;;
12935 ?:/*)
12936 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12937 ;;
12938 *)
12939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12940 ac_dummy="$PATH"
12941 for ac_dir in $ac_dummy; do
12942 test -z "$ac_dir" && ac_dir=.
12943 if test -f $ac_dir/$ac_word; then
12944 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12945 break
12946 fi
12947 done
12948 IFS="$ac_save_ifs"
12949 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12950 ;;
12951esac
12952fi
12953GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12954if test -n "$GTK_CONFIG"; then
12955 echo "$ac_t""$GTK_CONFIG" 1>&6
12956else
12957 echo "$ac_t""no" 1>&6
12958fi
12959
12960 min_gtk_version=1.2.3
12961 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12962echo "configure:12963: checking for GTK - version >= $min_gtk_version" >&5
12963 no_gtk=""
12964 if test "$GTK_CONFIG" = "no" ; then
12965 no_gtk=yes
12966 else
12967 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12968 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12969 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12970 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12971 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12972 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12973 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12974 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12975 if test "x$enable_gtktest" = "xyes" ; then
12976 ac_save_CFLAGS="$CFLAGS"
12977 ac_save_LIBS="$LIBS"
12978 CFLAGS="$CFLAGS $GTK_CFLAGS"
12979 LIBS="$GTK_LIBS $LIBS"
12980 rm -f conf.gtktest
12981 if test "$cross_compiling" = yes; then
12982 echo $ac_n "cross compiling; assumed OK... $ac_c"
12983else
12984 cat > conftest.$ac_ext <<EOF
12985#line 12986 "configure"
12986#include "confdefs.h"
12987
12988#include <gtk/gtk.h>
12989#include <stdio.h>
12990#include <stdlib.h>
12991
12992int
12993main ()
12994{
12995 int major, minor, micro;
12996 char *tmp_version;
12997
12998 system ("touch conf.gtktest");
12999
13000 /* HP/UX 9 (%@#!) writes to sscanf strings */
13001 tmp_version = g_strdup("$min_gtk_version");
13002 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13003 printf("%s, bad version string\n", "$min_gtk_version");
13004 exit(1);
13005 }
13006
13007 if ((gtk_major_version != $gtk_config_major_version) ||
13008 (gtk_minor_version != $gtk_config_minor_version) ||
13009 (gtk_micro_version != $gtk_config_micro_version))
13010 {
13011 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
13012 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
13013 gtk_major_version, gtk_minor_version, gtk_micro_version);
13014 printf ("*** was found! If gtk-config was correct, then it is best\n");
13015 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
13016 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13017 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13018 printf("*** required on your system.\n");
13019 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
13020 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
13021 printf("*** before re-running configure\n");
13022 }
13023#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
13024 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
13025 (gtk_minor_version != GTK_MINOR_VERSION) ||
13026 (gtk_micro_version != GTK_MICRO_VERSION))
13027 {
13028 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
13029 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
13030 printf("*** library (version %d.%d.%d)\n",
13031 gtk_major_version, gtk_minor_version, gtk_micro_version);
13032 }
13033#endif /* defined (GTK_MAJOR_VERSION) ... */
13034 else
13035 {
13036 if ((gtk_major_version > major) ||
13037 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
13038 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
13039 {
13040 return 0;
13041 }
13042 else
13043 {
13044 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
13045 gtk_major_version, gtk_minor_version, gtk_micro_version);
13046 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
13047 major, minor, micro);
13048 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
13049 printf("***\n");
13050 printf("*** If you have already installed a sufficiently new version, this error\n");
13051 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
13052 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13053 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
13054 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
13055 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13056 printf("*** so that the correct libraries are found at run-time))\n");
13057 }
13058 }
13059 return 1;
13060}
13061
13062EOF
13063if { (eval echo configure:13064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13064then
13065 :
13066else
13067 echo "configure: failed program was:" >&5
13068 cat conftest.$ac_ext >&5
13069 rm -fr conftest*
13070 no_gtk=yes
13071fi
13072rm -fr conftest*
13073fi
13074
13075 CFLAGS="$ac_save_CFLAGS"
13076 LIBS="$ac_save_LIBS"
13077 fi
13078 fi
13079 if test "x$no_gtk" = x ; then
13080 echo "$ac_t""yes" 1>&6
13081 wx_cv_lib_gtk=1.2.3
13082 else
13083 echo "$ac_t""no" 1>&6
13084 if test "$GTK_CONFIG" = "no" ; then
13085 echo "*** The gtk-config script installed by GTK could not be found"
13086 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13087 echo "*** your path, or set the GTK_CONFIG environment variable to the"
13088 echo "*** full path to gtk-config."
13089 else
13090 if test -f conf.gtktest ; then
13091 :
13092 else
13093 echo "*** Could not run GTK test program, checking why..."
13094 CFLAGS="$CFLAGS $GTK_CFLAGS"
13095 LIBS="$LIBS $GTK_LIBS"
13096 cat > conftest.$ac_ext <<EOF
13097#line 13098 "configure"
13098#include "confdefs.h"
13099
13100#include <gtk/gtk.h>
13101#include <stdio.h>
13102
13103int main() {
13104 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13105; return 0; }
13106EOF
13107if { (eval echo configure:13108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13108 rm -rf conftest*
13109 echo "*** The test program compiled, but did not run. This usually means"
13110 echo "*** that the run-time linker is not finding GTK or finding the wrong"
13111 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13112 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13113 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13114 echo "*** is required on your system"
13115 echo "***"
13116 echo "*** If you have an old version installed, it is best to remove it, although"
13117 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13118 echo "***"
13119 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13120 echo "*** came with the system with the command"
13121 echo "***"
13122 echo "*** rpm --erase --nodeps gtk gtk-devel"
13123else
13124 echo "configure: failed program was:" >&5
13125 cat conftest.$ac_ext >&5
13126 rm -rf conftest*
13127 echo "*** The test program failed to compile or link. See the file config.log for the"
13128 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13129 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
13130 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
13131fi
13132rm -f conftest*
13133 CFLAGS="$ac_save_CFLAGS"
13134 LIBS="$ac_save_LIBS"
13135 fi
13136 fi
13137 GTK_CFLAGS=""
13138 GTK_LIBS=""
13139 :
13140 fi
13141
13142
13143 rm -f conf.gtktest
13144
13145 fi
13146 fi
13147
13148 if test -z "$wx_cv_lib_gtk"; then
13149 wx_cv_lib_gtk=none
13150 else
13151 wx_cv_cflags_gtk=$GTK_CFLAGS
13152 wx_cv_libs_gtk=$GTK_LIBS
13153 fi
13154
13155
13156fi
13157
13158
13159 if test "$gtk_version_cached" = 1; then
13160 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
13161 fi
13162
13163 case "$wx_cv_lib_gtk" in
13164 2.0) WXGTK20=1
13165 TOOLKIT_VERSION=2
13166 ;;
13167 1.2.7) WXGTK127=1
13168 WXGTK12=1
13169 ;;
13170 1.2.3) WXGTK12=1
13171 ;;
13172 *) { echo "configure: error:
13173Please check that gtk-config is in path, the directory
13174where GTK+ libraries are installed (returned by
13175'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13176equivalent variable and GTK+ is version 1.2.3 or above.
13177 " 1>&2; exit 1; }
13178 ;;
13179 esac
13180
13181 if test "$WXGTK20" = 1; then
13182 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13183
13184 succeeded=no
13185
13186 if test -z "$PKG_CONFIG"; then
13187 # Extract the first word of "pkg-config", so it can be a program name with args.
13188set dummy pkg-config; ac_word=$2
13189echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13190echo "configure:13191: checking for $ac_word" >&5
13191if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13192 echo $ac_n "(cached) $ac_c" 1>&6
13193else
13194 case "$PKG_CONFIG" in
13195 /*)
13196 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13197 ;;
13198 ?:/*)
13199 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13200 ;;
13201 *)
13202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13203 ac_dummy="$PATH"
13204 for ac_dir in $ac_dummy; do
13205 test -z "$ac_dir" && ac_dir=.
13206 if test -f $ac_dir/$ac_word; then
13207 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13208 break
13209 fi
13210 done
13211 IFS="$ac_save_ifs"
13212 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13213 ;;
13214esac
13215fi
13216PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13217if test -n "$PKG_CONFIG"; then
13218 echo "$ac_t""$PKG_CONFIG" 1>&6
13219else
13220 echo "$ac_t""no" 1>&6
13221fi
13222
13223 fi
13224
13225 if test "$PKG_CONFIG" = "no" ; then
13226 echo "*** The pkg-config script could not be found. Make sure it is"
13227 echo "*** in your path, or set the PKG_CONFIG environment variable"
13228 echo "*** to the full path to pkg-config."
13229 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13230 else
13231 PKG_CONFIG_MIN_VERSION=0.9.0
13232 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13233 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
13234echo "configure:13235: checking for pangoft2" >&5
13235
13236 if $PKG_CONFIG --exists "pangoft2" ; then
13237 echo "$ac_t""yes" 1>&6
13238 succeeded=yes
13239
13240 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
13241echo "configure:13242: checking PANGOFT2_CFLAGS" >&5
13242 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
13243 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
13244
13245 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
13246echo "configure:13247: checking PANGOFT2_LIBS" >&5
13247 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
13248 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
13249 else
13250 PANGOFT2_CFLAGS=""
13251 PANGOFT2_LIBS=""
13252 ## If we have a custom action on failure, don't print errors, but
13253 ## do set a variable so people can do so.
13254 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
13255
13256 fi
13257
13258
13259
13260 else
13261 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13262 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13263 fi
13264 fi
13265
13266 if test $succeeded = yes; then
13267
13268 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13269 LIBS="$LIBS $PANGOFT2_LIBS"
13270
13271 else
13272
13273 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
13274 wxUSE_PRINTING_ARCHITECTURE="no"
13275
13276
13277 fi
13278
13279 fi
13280 else
13281 if test "$wxUSE_UNICODE" = "yes"; then
13282 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13283 wxUSE_UNICODE=no
13284 fi
13285 fi
13286
13287 if test "$USE_DARWIN" != 1; then
13288 for ac_func in poll
13289do
13290echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13291echo "configure:13292: checking for $ac_func" >&5
13292if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13293 echo $ac_n "(cached) $ac_c" 1>&6
13294else
13295 cat > conftest.$ac_ext <<EOF
13296#line 13297 "configure"
13297#include "confdefs.h"
13298/* System header to define __stub macros and hopefully few prototypes,
13299 which can conflict with char $ac_func(); below. */
13300#include <assert.h>
13301/* Override any gcc2 internal prototype to avoid an error. */
13302/* We use char because int might match the return type of a gcc2
13303 builtin and then its argument prototype would still apply. */
13304char $ac_func();
13305
13306int main() {
13307
13308/* The GNU C library defines this for functions which it implements
13309 to always fail with ENOSYS. Some functions are actually named
13310 something starting with __ and the normal name is an alias. */
13311#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13312choke me
13313#else
13314$ac_func();
13315#endif
13316
13317; return 0; }
13318EOF
13319if { (eval echo configure:13320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13320 rm -rf conftest*
13321 eval "ac_cv_func_$ac_func=yes"
13322else
13323 echo "configure: failed program was:" >&5
13324 cat conftest.$ac_ext >&5
13325 rm -rf conftest*
13326 eval "ac_cv_func_$ac_func=no"
13327fi
13328rm -f conftest*
13329fi
13330
13331if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13332 echo "$ac_t""yes" 1>&6
13333 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13334 cat >> confdefs.h <<EOF
13335#define $ac_tr_func 1
13336EOF
13337
13338else
13339 echo "$ac_t""no" 1>&6
13340fi
13341done
13342
13343 fi
13344
13345 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13346 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13347
13348 AFMINSTALL=afminstall
13349 TOOLKIT=GTK
13350 GUIDIST=GTK_DIST
13351
13352 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
13353echo "configure:13354: checking for gdk_im_open in -lgdk" >&5
13354ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13355if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13356 echo $ac_n "(cached) $ac_c" 1>&6
13357else
13358 ac_save_LIBS="$LIBS"
13359LIBS="-lgdk $LIBS"
13360cat > conftest.$ac_ext <<EOF
13361#line 13362 "configure"
13362#include "confdefs.h"
13363/* Override any gcc2 internal prototype to avoid an error. */
13364/* We use char because int might match the return type of a gcc2
13365 builtin and then its argument prototype would still apply. */
13366char gdk_im_open();
13367
13368int main() {
13369gdk_im_open()
13370; return 0; }
13371EOF
13372if { (eval echo configure:13373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13373 rm -rf conftest*
13374 eval "ac_cv_lib_$ac_lib_var=yes"
13375else
13376 echo "configure: failed program was:" >&5
13377 cat conftest.$ac_ext >&5
13378 rm -rf conftest*
13379 eval "ac_cv_lib_$ac_lib_var=no"
13380fi
13381rm -f conftest*
13382LIBS="$ac_save_LIBS"
13383
13384fi
13385if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13386 echo "$ac_t""yes" 1>&6
13387 cat >> confdefs.h <<\EOF
13388#define HAVE_XIM 1
13389EOF
13390
13391else
13392 echo "$ac_t""no" 1>&6
13393fi
13394
13395 fi
13396
13397 if test "$wxUSE_MGL" = 1; then
13398 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
13399echo "configure:13400: checking for SciTech MGL library" >&5
13400 if test "x$MGL_ROOT" = x ; then
13401 echo "$ac_t""not found" 1>&6
13402 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
13403 else
13404 echo "$ac_t""$MGL_ROOT" 1>&6
13405 fi
13406
13407 echo $ac_n "checking for libmgl location""... $ac_c" 1>&6
13408echo "configure:13409: checking for libmgl location" >&5
13409 case "${host}" in
13410 *-*-linux* )
13411 if test "x$wxUSE_SHARED" = xyes ; then
13412 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
13413 else
13414 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
13415 fi
13416 ;;
13417 *-pc-msdosdjgpp )
13418 mgl_os_candidates="dos32/dj2"
13419 ;;
13420 *)
13421 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
13422 esac
13423
13424 mgl_lib_type=""
13425 mgl_os=""
13426
13427 for mgl_os_i in $mgl_os_candidates ; do
13428 if test "x$mgl_os" = x ; then
13429 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13430 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
13431 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
13432 mgl_lib_type=debug
13433 mgl_os=$mgl_os_i
13434 fi
13435 fi
13436 if test "x$mgl_lib_type" = x ; then
13437 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
13438 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
13439 mgl_lib_type=release
13440 mgl_os=$mgl_os_i
13441 fi
13442 fi
13443 fi
13444 done
13445
13446 if test "x$mgl_os" = x ; then
13447 echo "$ac_t""not found" 1>&6
13448 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13449 fi
13450 echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6
13451
13452 wxUSE_UNIVERSAL="yes"
13453
13454 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13455 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13456
13457 AFMINSTALL=afminstall
13458 TOOLKIT=MGL
13459 GUIDIST=MGL_DIST
13460 fi
13461
13462 if test "$wxUSE_MICROWIN" = 1; then
13463 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
13464echo "configure:13465: checking for MicroWindows" >&5
13465 if test "x$MICROWINDOWS" = x ; then
13466 echo "$ac_t""not found" 1>&6
13467 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
13468 else
13469 echo "$ac_t""$MICROWINDOWS" 1>&6
13470 fi
13471
13472 if test -f $MICROWINDOWS/lib/libmwin.a; then
13473 echo "$ac_t""MicroWindows' libraries found." 1>&6
13474 else
13475 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
13476 fi
13477
13478 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13479 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13480
13481 wxUSE_UNIVERSAL="yes"
13482
13483 AFMINSTALL=afminstall
13484 TOOLKIT=MICROWIN
13485 GUIDIST=MICROWIN_DIST
13486
13487 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
13488 fi
13489
13490 if test "$wxUSE_X11" = 1; then
13491 # If we find X, set shell vars x_includes and x_libraries to the
13492# paths, otherwise set no_x=yes.
13493# Uses ac_ vars as temps to allow command line to override cache and checks.
13494# --without-x overrides everything else, but does not touch the cache.
13495echo $ac_n "checking for X""... $ac_c" 1>&6
13496echo "configure:13497: checking for X" >&5
13497
13498# Check whether --with-x or --without-x was given.
13499if test "${with_x+set}" = set; then
13500 withval="$with_x"
13501 :
13502fi
13503
13504# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13505if test "x$with_x" = xno; then
13506 # The user explicitly disabled X.
13507 have_x=disabled
13508else
13509 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13510 # Both variables are already set.
13511 have_x=yes
13512 else
13513if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13514 echo $ac_n "(cached) $ac_c" 1>&6
13515else
13516 # One or both of the vars are not set, and there is no cached value.
13517ac_x_includes=NO ac_x_libraries=NO
13518rm -fr conftestdir
13519if mkdir conftestdir; then
13520 cd conftestdir
13521 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
13522 cat > Imakefile <<'EOF'
13523acfindx:
13524 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
13525EOF
13526 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13527 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13528 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13529 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13530 for ac_extension in a so sl; do
13531 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
13532 test -f $ac_im_libdir/libX11.$ac_extension; then
13533 ac_im_usrlibdir=$ac_im_libdir; break
13534 fi
13535 done
13536 # Screen out bogus values from the imake configuration. They are
13537 # bogus both because they are the default anyway, and because
13538 # using them would break gcc on systems where it needs fixed includes.
13539 case "$ac_im_incroot" in
13540 /usr/include) ;;
13541 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
13542 esac
13543 case "$ac_im_usrlibdir" in
13544 /usr/lib | /lib) ;;
13545 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
13546 esac
13547 fi
13548 cd ..
13549 rm -fr conftestdir
13550fi
13551
13552if test "$ac_x_includes" = NO; then
13553 # Guess where to find include files, by looking for this one X11 .h file.
13554 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13555
13556 # First, try using that file with no special directory specified.
13557cat > conftest.$ac_ext <<EOF
13558#line 13559 "configure"
13559#include "confdefs.h"
13560#include <$x_direct_test_include>
13561EOF
13562ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13563{ (eval echo configure:13564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13564ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13565if test -z "$ac_err"; then
13566 rm -rf conftest*
13567 # We can compile using X headers with no special include directory.
13568ac_x_includes=
13569else
13570 echo "$ac_err" >&5
13571 echo "configure: failed program was:" >&5
13572 cat conftest.$ac_ext >&5
13573 rm -rf conftest*
13574 # Look for the header file in a standard set of common directories.
13575# Check X11 before X11Rn because it is often a symlink to the current release.
13576 for ac_dir in \
13577 /usr/X11/include \
13578 /usr/X11R6/include \
13579 /usr/X11R5/include \
13580 /usr/X11R4/include \
13581 \
13582 /usr/include/X11 \
13583 /usr/include/X11R6 \
13584 /usr/include/X11R5 \
13585 /usr/include/X11R4 \
13586 \
13587 /usr/local/X11/include \
13588 /usr/local/X11R6/include \
13589 /usr/local/X11R5/include \
13590 /usr/local/X11R4/include \
13591 \
13592 /usr/local/include/X11 \
13593 /usr/local/include/X11R6 \
13594 /usr/local/include/X11R5 \
13595 /usr/local/include/X11R4 \
13596 \
13597 /usr/X386/include \
13598 /usr/x386/include \
13599 /usr/XFree86/include/X11 \
13600 \
13601 /usr/include \
13602 /usr/local/include \
13603 /usr/unsupported/include \
13604 /usr/athena/include \
13605 /usr/local/x11r5/include \
13606 /usr/lpp/Xamples/include \
13607 \
13608 /usr/openwin/include \
13609 /usr/openwin/share/include \
13610 ; \
13611 do
13612 if test -r "$ac_dir/$x_direct_test_include"; then
13613 ac_x_includes=$ac_dir
13614 break
13615 fi
13616 done
13617fi
13618rm -f conftest*
13619fi # $ac_x_includes = NO
13620
13621if test "$ac_x_libraries" = NO; then
13622 # Check for the libraries.
13623
13624 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13625 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13626
13627 # See if we find them without any special options.
13628 # Don't add to $LIBS permanently.
13629 ac_save_LIBS="$LIBS"
13630 LIBS="-l$x_direct_test_library $LIBS"
13631cat > conftest.$ac_ext <<EOF
13632#line 13633 "configure"
13633#include "confdefs.h"
13634
13635int main() {
13636${x_direct_test_function}()
13637; return 0; }
13638EOF
13639if { (eval echo configure:13640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13640 rm -rf conftest*
13641 LIBS="$ac_save_LIBS"
13642# We can link X programs with no special library path.
13643ac_x_libraries=
13644else
13645 echo "configure: failed program was:" >&5
13646 cat conftest.$ac_ext >&5
13647 rm -rf conftest*
13648 LIBS="$ac_save_LIBS"
13649# First see if replacing the include by lib works.
13650# Check X11 before X11Rn because it is often a symlink to the current release.
13651for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13652 /usr/X11/lib \
13653 /usr/X11R6/lib \
13654 /usr/X11R5/lib \
13655 /usr/X11R4/lib \
13656 \
13657 /usr/lib/X11 \
13658 /usr/lib/X11R6 \
13659 /usr/lib/X11R5 \
13660 /usr/lib/X11R4 \
13661 \
13662 /usr/local/X11/lib \
13663 /usr/local/X11R6/lib \
13664 /usr/local/X11R5/lib \
13665 /usr/local/X11R4/lib \
13666 \
13667 /usr/local/lib/X11 \
13668 /usr/local/lib/X11R6 \
13669 /usr/local/lib/X11R5 \
13670 /usr/local/lib/X11R4 \
13671 \
13672 /usr/X386/lib \
13673 /usr/x386/lib \
13674 /usr/XFree86/lib/X11 \
13675 \
13676 /usr/lib \
13677 /usr/local/lib \
13678 /usr/unsupported/lib \
13679 /usr/athena/lib \
13680 /usr/local/x11r5/lib \
13681 /usr/lpp/Xamples/lib \
13682 /lib/usr/lib/X11 \
13683 \
13684 /usr/openwin/lib \
13685 /usr/openwin/share/lib \
13686 ; \
13687do
13688 for ac_extension in a so sl; do
13689 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
13690 ac_x_libraries=$ac_dir
13691 break 2
13692 fi
13693 done
13694done
13695fi
13696rm -f conftest*
13697fi # $ac_x_libraries = NO
13698
13699if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
13700 # Didn't find X anywhere. Cache the known absence of X.
13701 ac_cv_have_x="have_x=no"
13702else
13703 # Record where we found X for the cache.
13704 ac_cv_have_x="have_x=yes \
13705 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
13706fi
13707fi
13708 fi
13709 eval "$ac_cv_have_x"
13710fi # $with_x != no
13711
13712if test "$have_x" != yes; then
13713 echo "$ac_t""$have_x" 1>&6
13714 no_x=yes
13715else
13716 # If each of the values was on the command line, it overrides each guess.
13717 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13718 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13719 # Update the cache value to reflect the command line values.
13720 ac_cv_have_x="have_x=yes \
13721 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
13722 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
13723fi
13724
13725if test "$no_x" = yes; then
13726 # Not all programs may use this symbol, but it does not hurt to define it.
13727 cat >> confdefs.h <<\EOF
13728#define X_DISPLAY_MISSING 1
13729EOF
13730
13731 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13732else
13733 if test -n "$x_includes"; then
13734 X_CFLAGS="$X_CFLAGS -I$x_includes"
13735 fi
13736
13737 # It would also be nice to do this for all -L options, not just this one.
13738 if test -n "$x_libraries"; then
13739 X_LIBS="$X_LIBS -L$x_libraries"
13740 # For Solaris; some versions of Sun CC require a space after -R and
13741 # others require no space. Words are not sufficient . . . .
13742 case "`(uname -sr) 2>/dev/null`" in
13743 "SunOS 5"*)
13744 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13745echo "configure:13746: checking whether -R must be followed by a space" >&5
13746 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13747 cat > conftest.$ac_ext <<EOF
13748#line 13749 "configure"
13749#include "confdefs.h"
13750
13751int main() {
13752
13753; return 0; }
13754EOF
13755if { (eval echo configure:13756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13756 rm -rf conftest*
13757 ac_R_nospace=yes
13758else
13759 echo "configure: failed program was:" >&5
13760 cat conftest.$ac_ext >&5
13761 rm -rf conftest*
13762 ac_R_nospace=no
13763fi
13764rm -f conftest*
13765 if test $ac_R_nospace = yes; then
13766 echo "$ac_t""no" 1>&6
13767 X_LIBS="$X_LIBS -R$x_libraries"
13768 else
13769 LIBS="$ac_xsave_LIBS -R $x_libraries"
13770 cat > conftest.$ac_ext <<EOF
13771#line 13772 "configure"
13772#include "confdefs.h"
13773
13774int main() {
13775
13776; return 0; }
13777EOF
13778if { (eval echo configure:13779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13779 rm -rf conftest*
13780 ac_R_space=yes
13781else
13782 echo "configure: failed program was:" >&5
13783 cat conftest.$ac_ext >&5
13784 rm -rf conftest*
13785 ac_R_space=no
13786fi
13787rm -f conftest*
13788 if test $ac_R_space = yes; then
13789 echo "$ac_t""yes" 1>&6
13790 X_LIBS="$X_LIBS -R $x_libraries"
13791 else
13792 echo "$ac_t""neither works" 1>&6
13793 fi
13794 fi
13795 LIBS="$ac_xsave_LIBS"
13796 esac
13797 fi
13798
13799 # Check for system-dependent libraries X programs must link with.
13800 # Do this before checking for the system-independent R6 libraries
13801 # (-lICE), since we may need -lsocket or whatever for X linking.
13802
13803 if test "$ISC" = yes; then
13804 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13805 else
13806 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13807 # libraries were built with DECnet support. And karl@cs.umb.edu says
13808 # the Alpha needs dnet_stub (dnet does not exist).
13809 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13810echo "configure:13811: checking for dnet_ntoa in -ldnet" >&5
13811ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13812if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13813 echo $ac_n "(cached) $ac_c" 1>&6
13814else
13815 ac_save_LIBS="$LIBS"
13816LIBS="-ldnet $LIBS"
13817cat > conftest.$ac_ext <<EOF
13818#line 13819 "configure"
13819#include "confdefs.h"
13820/* Override any gcc2 internal prototype to avoid an error. */
13821/* We use char because int might match the return type of a gcc2
13822 builtin and then its argument prototype would still apply. */
13823char dnet_ntoa();
13824
13825int main() {
13826dnet_ntoa()
13827; return 0; }
13828EOF
13829if { (eval echo configure:13830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13830 rm -rf conftest*
13831 eval "ac_cv_lib_$ac_lib_var=yes"
13832else
13833 echo "configure: failed program was:" >&5
13834 cat conftest.$ac_ext >&5
13835 rm -rf conftest*
13836 eval "ac_cv_lib_$ac_lib_var=no"
13837fi
13838rm -f conftest*
13839LIBS="$ac_save_LIBS"
13840
13841fi
13842if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13843 echo "$ac_t""yes" 1>&6
13844 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13845else
13846 echo "$ac_t""no" 1>&6
13847fi
13848
13849 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13850 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13851echo "configure:13852: checking for dnet_ntoa in -ldnet_stub" >&5
13852ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13853if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13854 echo $ac_n "(cached) $ac_c" 1>&6
13855else
13856 ac_save_LIBS="$LIBS"
13857LIBS="-ldnet_stub $LIBS"
13858cat > conftest.$ac_ext <<EOF
13859#line 13860 "configure"
13860#include "confdefs.h"
13861/* Override any gcc2 internal prototype to avoid an error. */
13862/* We use char because int might match the return type of a gcc2
13863 builtin and then its argument prototype would still apply. */
13864char dnet_ntoa();
13865
13866int main() {
13867dnet_ntoa()
13868; return 0; }
13869EOF
13870if { (eval echo configure:13871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13871 rm -rf conftest*
13872 eval "ac_cv_lib_$ac_lib_var=yes"
13873else
13874 echo "configure: failed program was:" >&5
13875 cat conftest.$ac_ext >&5
13876 rm -rf conftest*
13877 eval "ac_cv_lib_$ac_lib_var=no"
13878fi
13879rm -f conftest*
13880LIBS="$ac_save_LIBS"
13881
13882fi
13883if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13884 echo "$ac_t""yes" 1>&6
13885 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13886else
13887 echo "$ac_t""no" 1>&6
13888fi
13889
13890 fi
13891
13892 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13893 # to get the SysV transport functions.
13894 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13895 # needs -lnsl.
13896 # The nsl library prevents programs from opening the X display
13897 # on Irix 5.2, according to dickey@clark.net.
13898 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13899echo "configure:13900: checking for gethostbyname" >&5
13900if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13901 echo $ac_n "(cached) $ac_c" 1>&6
13902else
13903 cat > conftest.$ac_ext <<EOF
13904#line 13905 "configure"
13905#include "confdefs.h"
13906/* System header to define __stub macros and hopefully few prototypes,
13907 which can conflict with char gethostbyname(); below. */
13908#include <assert.h>
13909/* Override any gcc2 internal prototype to avoid an error. */
13910/* We use char because int might match the return type of a gcc2
13911 builtin and then its argument prototype would still apply. */
13912char gethostbyname();
13913
13914int main() {
13915
13916/* The GNU C library defines this for functions which it implements
13917 to always fail with ENOSYS. Some functions are actually named
13918 something starting with __ and the normal name is an alias. */
13919#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13920choke me
13921#else
13922gethostbyname();
13923#endif
13924
13925; return 0; }
13926EOF
13927if { (eval echo configure:13928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13928 rm -rf conftest*
13929 eval "ac_cv_func_gethostbyname=yes"
13930else
13931 echo "configure: failed program was:" >&5
13932 cat conftest.$ac_ext >&5
13933 rm -rf conftest*
13934 eval "ac_cv_func_gethostbyname=no"
13935fi
13936rm -f conftest*
13937fi
13938
13939if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13940 echo "$ac_t""yes" 1>&6
13941 :
13942else
13943 echo "$ac_t""no" 1>&6
13944fi
13945
13946 if test $ac_cv_func_gethostbyname = no; then
13947 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13948echo "configure:13949: checking for gethostbyname in -lnsl" >&5
13949ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13950if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13951 echo $ac_n "(cached) $ac_c" 1>&6
13952else
13953 ac_save_LIBS="$LIBS"
13954LIBS="-lnsl $LIBS"
13955cat > conftest.$ac_ext <<EOF
13956#line 13957 "configure"
13957#include "confdefs.h"
13958/* Override any gcc2 internal prototype to avoid an error. */
13959/* We use char because int might match the return type of a gcc2
13960 builtin and then its argument prototype would still apply. */
13961char gethostbyname();
13962
13963int main() {
13964gethostbyname()
13965; return 0; }
13966EOF
13967if { (eval echo configure:13968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13968 rm -rf conftest*
13969 eval "ac_cv_lib_$ac_lib_var=yes"
13970else
13971 echo "configure: failed program was:" >&5
13972 cat conftest.$ac_ext >&5
13973 rm -rf conftest*
13974 eval "ac_cv_lib_$ac_lib_var=no"
13975fi
13976rm -f conftest*
13977LIBS="$ac_save_LIBS"
13978
13979fi
13980if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13981 echo "$ac_t""yes" 1>&6
13982 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13983else
13984 echo "$ac_t""no" 1>&6
13985fi
13986
13987 fi
13988
13989 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13990 # socket/setsockopt and other routines are undefined under SCO ODT
13991 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13992 # on later versions), says simon@lia.di.epfl.ch: it contains
13993 # gethostby* variants that don't use the nameserver (or something).
13994 # -lsocket must be given before -lnsl if both are needed.
13995 # We assume that if connect needs -lnsl, so does gethostbyname.
13996 echo $ac_n "checking for connect""... $ac_c" 1>&6
13997echo "configure:13998: checking for connect" >&5
13998if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13999 echo $ac_n "(cached) $ac_c" 1>&6
14000else
14001 cat > conftest.$ac_ext <<EOF
14002#line 14003 "configure"
14003#include "confdefs.h"
14004/* System header to define __stub macros and hopefully few prototypes,
14005 which can conflict with char connect(); below. */
14006#include <assert.h>
14007/* Override any gcc2 internal prototype to avoid an error. */
14008/* We use char because int might match the return type of a gcc2
14009 builtin and then its argument prototype would still apply. */
14010char connect();
14011
14012int main() {
14013
14014/* The GNU C library defines this for functions which it implements
14015 to always fail with ENOSYS. Some functions are actually named
14016 something starting with __ and the normal name is an alias. */
14017#if defined (__stub_connect) || defined (__stub___connect)
14018choke me
14019#else
14020connect();
14021#endif
14022
14023; return 0; }
14024EOF
14025if { (eval echo configure:14026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14026 rm -rf conftest*
14027 eval "ac_cv_func_connect=yes"
14028else
14029 echo "configure: failed program was:" >&5
14030 cat conftest.$ac_ext >&5
14031 rm -rf conftest*
14032 eval "ac_cv_func_connect=no"
14033fi
14034rm -f conftest*
14035fi
14036
14037if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14038 echo "$ac_t""yes" 1>&6
14039 :
14040else
14041 echo "$ac_t""no" 1>&6
14042fi
14043
14044 if test $ac_cv_func_connect = no; then
14045 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14046echo "configure:14047: checking for connect in -lsocket" >&5
14047ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14048if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14049 echo $ac_n "(cached) $ac_c" 1>&6
14050else
14051 ac_save_LIBS="$LIBS"
14052LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14053cat > conftest.$ac_ext <<EOF
14054#line 14055 "configure"
14055#include "confdefs.h"
14056/* Override any gcc2 internal prototype to avoid an error. */
14057/* We use char because int might match the return type of a gcc2
14058 builtin and then its argument prototype would still apply. */
14059char connect();
14060
14061int main() {
14062connect()
14063; return 0; }
14064EOF
14065if { (eval echo configure:14066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14066 rm -rf conftest*
14067 eval "ac_cv_lib_$ac_lib_var=yes"
14068else
14069 echo "configure: failed program was:" >&5
14070 cat conftest.$ac_ext >&5
14071 rm -rf conftest*
14072 eval "ac_cv_lib_$ac_lib_var=no"
14073fi
14074rm -f conftest*
14075LIBS="$ac_save_LIBS"
14076
14077fi
14078if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14079 echo "$ac_t""yes" 1>&6
14080 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14081else
14082 echo "$ac_t""no" 1>&6
14083fi
14084
14085 fi
14086
14087 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14088 echo $ac_n "checking for remove""... $ac_c" 1>&6
14089echo "configure:14090: checking for remove" >&5
14090if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14091 echo $ac_n "(cached) $ac_c" 1>&6
14092else
14093 cat > conftest.$ac_ext <<EOF
14094#line 14095 "configure"
14095#include "confdefs.h"
14096/* System header to define __stub macros and hopefully few prototypes,
14097 which can conflict with char remove(); below. */
14098#include <assert.h>
14099/* Override any gcc2 internal prototype to avoid an error. */
14100/* We use char because int might match the return type of a gcc2
14101 builtin and then its argument prototype would still apply. */
14102char remove();
14103
14104int main() {
14105
14106/* The GNU C library defines this for functions which it implements
14107 to always fail with ENOSYS. Some functions are actually named
14108 something starting with __ and the normal name is an alias. */
14109#if defined (__stub_remove) || defined (__stub___remove)
14110choke me
14111#else
14112remove();
14113#endif
14114
14115; return 0; }
14116EOF
14117if { (eval echo configure:14118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14118 rm -rf conftest*
14119 eval "ac_cv_func_remove=yes"
14120else
14121 echo "configure: failed program was:" >&5
14122 cat conftest.$ac_ext >&5
14123 rm -rf conftest*
14124 eval "ac_cv_func_remove=no"
14125fi
14126rm -f conftest*
14127fi
14128
14129if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14130 echo "$ac_t""yes" 1>&6
14131 :
14132else
14133 echo "$ac_t""no" 1>&6
14134fi
14135
14136 if test $ac_cv_func_remove = no; then
14137 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14138echo "configure:14139: checking for remove in -lposix" >&5
14139ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14140if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14141 echo $ac_n "(cached) $ac_c" 1>&6
14142else
14143 ac_save_LIBS="$LIBS"
14144LIBS="-lposix $LIBS"
14145cat > conftest.$ac_ext <<EOF
14146#line 14147 "configure"
14147#include "confdefs.h"
14148/* Override any gcc2 internal prototype to avoid an error. */
14149/* We use char because int might match the return type of a gcc2
14150 builtin and then its argument prototype would still apply. */
14151char remove();
14152
14153int main() {
14154remove()
14155; return 0; }
14156EOF
14157if { (eval echo configure:14158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14158 rm -rf conftest*
14159 eval "ac_cv_lib_$ac_lib_var=yes"
14160else
14161 echo "configure: failed program was:" >&5
14162 cat conftest.$ac_ext >&5
14163 rm -rf conftest*
14164 eval "ac_cv_lib_$ac_lib_var=no"
14165fi
14166rm -f conftest*
14167LIBS="$ac_save_LIBS"
14168
14169fi
14170if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14171 echo "$ac_t""yes" 1>&6
14172 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14173else
14174 echo "$ac_t""no" 1>&6
14175fi
14176
14177 fi
14178
14179 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14180 echo $ac_n "checking for shmat""... $ac_c" 1>&6
14181echo "configure:14182: checking for shmat" >&5
14182if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14183 echo $ac_n "(cached) $ac_c" 1>&6
14184else
14185 cat > conftest.$ac_ext <<EOF
14186#line 14187 "configure"
14187#include "confdefs.h"
14188/* System header to define __stub macros and hopefully few prototypes,
14189 which can conflict with char shmat(); below. */
14190#include <assert.h>
14191/* Override any gcc2 internal prototype to avoid an error. */
14192/* We use char because int might match the return type of a gcc2
14193 builtin and then its argument prototype would still apply. */
14194char shmat();
14195
14196int main() {
14197
14198/* The GNU C library defines this for functions which it implements
14199 to always fail with ENOSYS. Some functions are actually named
14200 something starting with __ and the normal name is an alias. */
14201#if defined (__stub_shmat) || defined (__stub___shmat)
14202choke me
14203#else
14204shmat();
14205#endif
14206
14207; return 0; }
14208EOF
14209if { (eval echo configure:14210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14210 rm -rf conftest*
14211 eval "ac_cv_func_shmat=yes"
14212else
14213 echo "configure: failed program was:" >&5
14214 cat conftest.$ac_ext >&5
14215 rm -rf conftest*
14216 eval "ac_cv_func_shmat=no"
14217fi
14218rm -f conftest*
14219fi
14220
14221if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14222 echo "$ac_t""yes" 1>&6
14223 :
14224else
14225 echo "$ac_t""no" 1>&6
14226fi
14227
14228 if test $ac_cv_func_shmat = no; then
14229 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14230echo "configure:14231: checking for shmat in -lipc" >&5
14231ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14232if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14233 echo $ac_n "(cached) $ac_c" 1>&6
14234else
14235 ac_save_LIBS="$LIBS"
14236LIBS="-lipc $LIBS"
14237cat > conftest.$ac_ext <<EOF
14238#line 14239 "configure"
14239#include "confdefs.h"
14240/* Override any gcc2 internal prototype to avoid an error. */
14241/* We use char because int might match the return type of a gcc2
14242 builtin and then its argument prototype would still apply. */
14243char shmat();
14244
14245int main() {
14246shmat()
14247; return 0; }
14248EOF
14249if { (eval echo configure:14250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14250 rm -rf conftest*
14251 eval "ac_cv_lib_$ac_lib_var=yes"
14252else
14253 echo "configure: failed program was:" >&5
14254 cat conftest.$ac_ext >&5
14255 rm -rf conftest*
14256 eval "ac_cv_lib_$ac_lib_var=no"
14257fi
14258rm -f conftest*
14259LIBS="$ac_save_LIBS"
14260
14261fi
14262if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14263 echo "$ac_t""yes" 1>&6
14264 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14265else
14266 echo "$ac_t""no" 1>&6
14267fi
14268
14269 fi
14270 fi
14271
14272 # Check for libraries that X11R6 Xt/Xaw programs need.
14273 ac_save_LDFLAGS="$LDFLAGS"
14274 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14275 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14276 # check for ICE first), but we must link in the order -lSM -lICE or
14277 # we get undefined symbols. So assume we have SM if we have ICE.
14278 # These have to be linked with before -lX11, unlike the other
14279 # libraries we check for below, so use a different variable.
14280 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14281 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14282echo "configure:14283: checking for IceConnectionNumber in -lICE" >&5
14283ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14284if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14285 echo $ac_n "(cached) $ac_c" 1>&6
14286else
14287 ac_save_LIBS="$LIBS"
14288LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14289cat > conftest.$ac_ext <<EOF
14290#line 14291 "configure"
14291#include "confdefs.h"
14292/* Override any gcc2 internal prototype to avoid an error. */
14293/* We use char because int might match the return type of a gcc2
14294 builtin and then its argument prototype would still apply. */
14295char IceConnectionNumber();
14296
14297int main() {
14298IceConnectionNumber()
14299; return 0; }
14300EOF
14301if { (eval echo configure:14302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14302 rm -rf conftest*
14303 eval "ac_cv_lib_$ac_lib_var=yes"
14304else
14305 echo "configure: failed program was:" >&5
14306 cat conftest.$ac_ext >&5
14307 rm -rf conftest*
14308 eval "ac_cv_lib_$ac_lib_var=no"
14309fi
14310rm -f conftest*
14311LIBS="$ac_save_LIBS"
14312
14313fi
14314if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14315 echo "$ac_t""yes" 1>&6
14316 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14317else
14318 echo "$ac_t""no" 1>&6
14319fi
14320
14321 LDFLAGS="$ac_save_LDFLAGS"
14322
14323fi
14324
14325
14326 if test "$no_x" = "yes"; then
14327 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14328 fi
14329
14330 GUI_TK_LIBRARY="$X_LIBS"
14331 TOOLKIT_INCLUDE="$X_CFLAGS"
14332 AFMINSTALL=afminstall
14333 COMPILED_X_PROGRAM=0
14334
14335 if test "$wxUSE_NANOX" = "yes"; then
14336 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
14337echo "configure:14338: checking for MicroWindows/NanoX distribution" >&5
14338 if test "x$MICROWIN" = x ; then
14339 echo "$ac_t""not found" 1>&6
14340 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
14341 else
14342 echo "$ac_t""$MICROWIN" 1>&6
14343 cat >> confdefs.h <<\EOF
14344#define wxUSE_NANOX 1
14345EOF
14346
14347 fi
14348 fi
14349
14350 xpm_link=
14351 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14352echo "configure:14353: checking for Xpm library" >&5
14353
14354ac_find_libraries=
14355for ac_dir in $SEARCH_LIB /usr/lib;
14356 do
14357 for ac_extension in a so sl dylib; do
14358 if test -f "$ac_dir/libXpm.$ac_extension"; then
14359 ac_find_libraries=$ac_dir
14360 break 2
14361 fi
14362 done
14363 done
14364
14365 if test "$ac_find_libraries" != "" ; then
14366
14367 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14368 result=$?
14369 if test $result = 0; then
14370 ac_path_to_link=""
14371 else
14372 ac_path_to_link=" -L$ac_find_libraries"
14373 fi
14374
14375 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14376 xpm_link=" -lXpm"
14377 cat >> confdefs.h <<\EOF
14378#define wxHAVE_LIB_XPM 1
14379EOF
14380
14381 echo "$ac_t""found at $ac_find_libraries" 1>&6
14382 else
14383 cat > conftest.$ac_ext <<EOF
14384#line 14385 "configure"
14385#include "confdefs.h"
14386
14387 #include <X11/xpm.h>
14388
14389int main() {
14390
14391 int version;
14392 version = XpmLibraryVersion();
14393
14394; return 0; }
14395EOF
14396if { (eval echo configure:14397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14397 rm -rf conftest*
14398
14399 xpm_link=" -lXpm"
14400 cat >> confdefs.h <<\EOF
14401#define wxHAVE_LIB_XPM 1
14402EOF
14403
14404 echo "$ac_t""found in default search path" 1>&6
14405 COMPILED_X_PROGRAM=0
14406
14407else
14408 echo "configure: failed program was:" >&5
14409 cat conftest.$ac_ext >&5
14410 rm -rf conftest*
14411
14412 echo "$ac_t""no" 1>&6
14413 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14414
14415
14416fi
14417rm -f conftest*
14418 fi
14419
14420 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
14421echo "configure:14422: checking for XShapeQueryExtension in -lXext" >&5
14422ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
14423if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14424 echo $ac_n "(cached) $ac_c" 1>&6
14425else
14426 ac_save_LIBS="$LIBS"
14427LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
14428cat > conftest.$ac_ext <<EOF
14429#line 14430 "configure"
14430#include "confdefs.h"
14431/* Override any gcc2 internal prototype to avoid an error. */
14432/* We use char because int might match the return type of a gcc2
14433 builtin and then its argument prototype would still apply. */
14434char XShapeQueryExtension();
14435
14436int main() {
14437XShapeQueryExtension()
14438; return 0; }
14439EOF
14440if { (eval echo configure:14441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14441 rm -rf conftest*
14442 eval "ac_cv_lib_$ac_lib_var=yes"
14443else
14444 echo "configure: failed program was:" >&5
14445 cat conftest.$ac_ext >&5
14446 rm -rf conftest*
14447 eval "ac_cv_lib_$ac_lib_var=no"
14448fi
14449rm -f conftest*
14450LIBS="$ac_save_LIBS"
14451
14452fi
14453if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14454 echo "$ac_t""yes" 1>&6
14455
14456 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
14457 wxHAVE_XEXT_LIB=1
14458
14459else
14460 echo "$ac_t""no" 1>&6
14461fi
14462
14463
14464 if test "$wxUSE_UNICODE" = "yes"; then
14465
14466 succeeded=no
14467
14468 if test -z "$PKG_CONFIG"; then
14469 # Extract the first word of "pkg-config", so it can be a program name with args.
14470set dummy pkg-config; ac_word=$2
14471echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14472echo "configure:14473: checking for $ac_word" >&5
14473if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14474 echo $ac_n "(cached) $ac_c" 1>&6
14475else
14476 case "$PKG_CONFIG" in
14477 /*)
14478 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14479 ;;
14480 ?:/*)
14481 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14482 ;;
14483 *)
14484 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14485 ac_dummy="$PATH"
14486 for ac_dir in $ac_dummy; do
14487 test -z "$ac_dir" && ac_dir=.
14488 if test -f $ac_dir/$ac_word; then
14489 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14490 break
14491 fi
14492 done
14493 IFS="$ac_save_ifs"
14494 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14495 ;;
14496esac
14497fi
14498PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14499if test -n "$PKG_CONFIG"; then
14500 echo "$ac_t""$PKG_CONFIG" 1>&6
14501else
14502 echo "$ac_t""no" 1>&6
14503fi
14504
14505 fi
14506
14507 if test "$PKG_CONFIG" = "no" ; then
14508 echo "*** The pkg-config script could not be found. Make sure it is"
14509 echo "*** in your path, or set the PKG_CONFIG environment variable"
14510 echo "*** to the full path to pkg-config."
14511 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14512 else
14513 PKG_CONFIG_MIN_VERSION=0.9.0
14514 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14515 echo $ac_n "checking for pangox""... $ac_c" 1>&6
14516echo "configure:14517: checking for pangox" >&5
14517
14518 if $PKG_CONFIG --exists "pangox" ; then
14519 echo "$ac_t""yes" 1>&6
14520 succeeded=yes
14521
14522 echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
14523echo "configure:14524: checking PANGOX_CFLAGS" >&5
14524 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14525 echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14526
14527 echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
14528echo "configure:14529: checking PANGOX_LIBS" >&5
14529 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14530 echo "$ac_t""$PANGOX_LIBS" 1>&6
14531 else
14532 PANGOX_CFLAGS=""
14533 PANGOX_LIBS=""
14534 ## If we have a custom action on failure, don't print errors, but
14535 ## do set a variable so people can do so.
14536 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14537
14538 fi
14539
14540
14541
14542 else
14543 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14544 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14545 fi
14546 fi
14547
14548 if test $succeeded = yes; then
14549
14550 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14551 LIBS="$LIBS $PANGOX_LIBS"
14552
14553 else
14554
14555 { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14556
14557
14558 fi
14559
14560
14561 succeeded=no
14562
14563 if test -z "$PKG_CONFIG"; then
14564 # Extract the first word of "pkg-config", so it can be a program name with args.
14565set dummy pkg-config; ac_word=$2
14566echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14567echo "configure:14568: checking for $ac_word" >&5
14568if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14569 echo $ac_n "(cached) $ac_c" 1>&6
14570else
14571 case "$PKG_CONFIG" in
14572 /*)
14573 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14574 ;;
14575 ?:/*)
14576 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14577 ;;
14578 *)
14579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14580 ac_dummy="$PATH"
14581 for ac_dir in $ac_dummy; do
14582 test -z "$ac_dir" && ac_dir=.
14583 if test -f $ac_dir/$ac_word; then
14584 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14585 break
14586 fi
14587 done
14588 IFS="$ac_save_ifs"
14589 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14590 ;;
14591esac
14592fi
14593PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14594if test -n "$PKG_CONFIG"; then
14595 echo "$ac_t""$PKG_CONFIG" 1>&6
14596else
14597 echo "$ac_t""no" 1>&6
14598fi
14599
14600 fi
14601
14602 if test "$PKG_CONFIG" = "no" ; then
14603 echo "*** The pkg-config script could not be found. Make sure it is"
14604 echo "*** in your path, or set the PKG_CONFIG environment variable"
14605 echo "*** to the full path to pkg-config."
14606 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14607 else
14608 PKG_CONFIG_MIN_VERSION=0.9.0
14609 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14610 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
14611echo "configure:14612: checking for pangoft2" >&5
14612
14613 if $PKG_CONFIG --exists "pangoft2" ; then
14614 echo "$ac_t""yes" 1>&6
14615 succeeded=yes
14616
14617 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
14618echo "configure:14619: checking PANGOFT2_CFLAGS" >&5
14619 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14620 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14621
14622 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
14623echo "configure:14624: checking PANGOFT2_LIBS" >&5
14624 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14625 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14626 else
14627 PANGOFT2_CFLAGS=""
14628 PANGOFT2_LIBS=""
14629 ## If we have a custom action on failure, don't print errors, but
14630 ## do set a variable so people can do so.
14631 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14632
14633 fi
14634
14635
14636
14637 else
14638 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14639 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14640 fi
14641 fi
14642
14643 if test $succeeded = yes; then
14644
14645 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14646 LIBS="$LIBS $PANGOFT2_LIBS"
14647
14648 else
14649
14650 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14651 wxUSE_PRINTING_ARCHITECTURE="no"
14652
14653
14654 fi
14655
14656
14657 succeeded=no
14658
14659 if test -z "$PKG_CONFIG"; then
14660 # Extract the first word of "pkg-config", so it can be a program name with args.
14661set dummy pkg-config; ac_word=$2
14662echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14663echo "configure:14664: checking for $ac_word" >&5
14664if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14665 echo $ac_n "(cached) $ac_c" 1>&6
14666else
14667 case "$PKG_CONFIG" in
14668 /*)
14669 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14670 ;;
14671 ?:/*)
14672 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14673 ;;
14674 *)
14675 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14676 ac_dummy="$PATH"
14677 for ac_dir in $ac_dummy; do
14678 test -z "$ac_dir" && ac_dir=.
14679 if test -f $ac_dir/$ac_word; then
14680 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14681 break
14682 fi
14683 done
14684 IFS="$ac_save_ifs"
14685 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14686 ;;
14687esac
14688fi
14689PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14690if test -n "$PKG_CONFIG"; then
14691 echo "$ac_t""$PKG_CONFIG" 1>&6
14692else
14693 echo "$ac_t""no" 1>&6
14694fi
14695
14696 fi
14697
14698 if test "$PKG_CONFIG" = "no" ; then
14699 echo "*** The pkg-config script could not be found. Make sure it is"
14700 echo "*** in your path, or set the PKG_CONFIG environment variable"
14701 echo "*** to the full path to pkg-config."
14702 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14703 else
14704 PKG_CONFIG_MIN_VERSION=0.9.0
14705 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14706 echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
14707echo "configure:14708: checking for pangoxft" >&5
14708
14709 if $PKG_CONFIG --exists "pangoxft" ; then
14710 echo "$ac_t""yes" 1>&6
14711 succeeded=yes
14712
14713 echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
14714echo "configure:14715: checking PANGOXFT_CFLAGS" >&5
14715 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14716 echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14717
14718 echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
14719echo "configure:14720: checking PANGOXFT_LIBS" >&5
14720 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14721 echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14722 else
14723 PANGOXFT_CFLAGS=""
14724 PANGOXFT_LIBS=""
14725 ## If we have a custom action on failure, don't print errors, but
14726 ## do set a variable so people can do so.
14727 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14728
14729 fi
14730
14731
14732
14733 else
14734 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14735 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14736 fi
14737 fi
14738
14739 if test $succeeded = yes; then
14740
14741 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14742 LIBS="$LIBS $PANGOXFT_LIBS"
14743
14744 else
14745
14746 echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14747
14748
14749 fi
14750
14751 fi
14752
14753 wxUSE_UNIVERSAL="yes"
14754
14755 if test "$wxUSE_NANOX" = "yes"; then
14756 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14757 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"
14758 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14759 else
14760 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14761 fi
14762
14763 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14764 TOOLKIT=X11
14765 GUIDIST=X11_DIST
14766 fi
14767
14768 if test "$wxUSE_MOTIF" = 1; then
14769 if test "$no_x" = yes; then
14770 # Not all programs may use this symbol, but it does not hurt to define it.
14771 cat >> confdefs.h <<\EOF
14772#define X_DISPLAY_MISSING 1
14773EOF
14774
14775 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14776else
14777 if test -n "$x_includes"; then
14778 X_CFLAGS="$X_CFLAGS -I$x_includes"
14779 fi
14780
14781 # It would also be nice to do this for all -L options, not just this one.
14782 if test -n "$x_libraries"; then
14783 X_LIBS="$X_LIBS -L$x_libraries"
14784 # For Solaris; some versions of Sun CC require a space after -R and
14785 # others require no space. Words are not sufficient . . . .
14786 case "`(uname -sr) 2>/dev/null`" in
14787 "SunOS 5"*)
14788 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
14789echo "configure:14790: checking whether -R must be followed by a space" >&5
14790 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14791 cat > conftest.$ac_ext <<EOF
14792#line 14793 "configure"
14793#include "confdefs.h"
14794
14795int main() {
14796
14797; return 0; }
14798EOF
14799if { (eval echo configure:14800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14800 rm -rf conftest*
14801 ac_R_nospace=yes
14802else
14803 echo "configure: failed program was:" >&5
14804 cat conftest.$ac_ext >&5
14805 rm -rf conftest*
14806 ac_R_nospace=no
14807fi
14808rm -f conftest*
14809 if test $ac_R_nospace = yes; then
14810 echo "$ac_t""no" 1>&6
14811 X_LIBS="$X_LIBS -R$x_libraries"
14812 else
14813 LIBS="$ac_xsave_LIBS -R $x_libraries"
14814 cat > conftest.$ac_ext <<EOF
14815#line 14816 "configure"
14816#include "confdefs.h"
14817
14818int main() {
14819
14820; return 0; }
14821EOF
14822if { (eval echo configure:14823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14823 rm -rf conftest*
14824 ac_R_space=yes
14825else
14826 echo "configure: failed program was:" >&5
14827 cat conftest.$ac_ext >&5
14828 rm -rf conftest*
14829 ac_R_space=no
14830fi
14831rm -f conftest*
14832 if test $ac_R_space = yes; then
14833 echo "$ac_t""yes" 1>&6
14834 X_LIBS="$X_LIBS -R $x_libraries"
14835 else
14836 echo "$ac_t""neither works" 1>&6
14837 fi
14838 fi
14839 LIBS="$ac_xsave_LIBS"
14840 esac
14841 fi
14842
14843 # Check for system-dependent libraries X programs must link with.
14844 # Do this before checking for the system-independent R6 libraries
14845 # (-lICE), since we may need -lsocket or whatever for X linking.
14846
14847 if test "$ISC" = yes; then
14848 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14849 else
14850 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14851 # libraries were built with DECnet support. And karl@cs.umb.edu says
14852 # the Alpha needs dnet_stub (dnet does not exist).
14853 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
14854echo "configure:14855: checking for dnet_ntoa in -ldnet" >&5
14855ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14856if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14857 echo $ac_n "(cached) $ac_c" 1>&6
14858else
14859 ac_save_LIBS="$LIBS"
14860LIBS="-ldnet $LIBS"
14861cat > conftest.$ac_ext <<EOF
14862#line 14863 "configure"
14863#include "confdefs.h"
14864/* Override any gcc2 internal prototype to avoid an error. */
14865/* We use char because int might match the return type of a gcc2
14866 builtin and then its argument prototype would still apply. */
14867char dnet_ntoa();
14868
14869int main() {
14870dnet_ntoa()
14871; return 0; }
14872EOF
14873if { (eval echo configure:14874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14874 rm -rf conftest*
14875 eval "ac_cv_lib_$ac_lib_var=yes"
14876else
14877 echo "configure: failed program was:" >&5
14878 cat conftest.$ac_ext >&5
14879 rm -rf conftest*
14880 eval "ac_cv_lib_$ac_lib_var=no"
14881fi
14882rm -f conftest*
14883LIBS="$ac_save_LIBS"
14884
14885fi
14886if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14887 echo "$ac_t""yes" 1>&6
14888 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14889else
14890 echo "$ac_t""no" 1>&6
14891fi
14892
14893 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14894 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
14895echo "configure:14896: checking for dnet_ntoa in -ldnet_stub" >&5
14896ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14897if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14898 echo $ac_n "(cached) $ac_c" 1>&6
14899else
14900 ac_save_LIBS="$LIBS"
14901LIBS="-ldnet_stub $LIBS"
14902cat > conftest.$ac_ext <<EOF
14903#line 14904 "configure"
14904#include "confdefs.h"
14905/* Override any gcc2 internal prototype to avoid an error. */
14906/* We use char because int might match the return type of a gcc2
14907 builtin and then its argument prototype would still apply. */
14908char dnet_ntoa();
14909
14910int main() {
14911dnet_ntoa()
14912; return 0; }
14913EOF
14914if { (eval echo configure:14915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14915 rm -rf conftest*
14916 eval "ac_cv_lib_$ac_lib_var=yes"
14917else
14918 echo "configure: failed program was:" >&5
14919 cat conftest.$ac_ext >&5
14920 rm -rf conftest*
14921 eval "ac_cv_lib_$ac_lib_var=no"
14922fi
14923rm -f conftest*
14924LIBS="$ac_save_LIBS"
14925
14926fi
14927if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14928 echo "$ac_t""yes" 1>&6
14929 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14930else
14931 echo "$ac_t""no" 1>&6
14932fi
14933
14934 fi
14935
14936 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14937 # to get the SysV transport functions.
14938 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
14939 # needs -lnsl.
14940 # The nsl library prevents programs from opening the X display
14941 # on Irix 5.2, according to dickey@clark.net.
14942 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
14943echo "configure:14944: checking for gethostbyname" >&5
14944if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14945 echo $ac_n "(cached) $ac_c" 1>&6
14946else
14947 cat > conftest.$ac_ext <<EOF
14948#line 14949 "configure"
14949#include "confdefs.h"
14950/* System header to define __stub macros and hopefully few prototypes,
14951 which can conflict with char gethostbyname(); below. */
14952#include <assert.h>
14953/* Override any gcc2 internal prototype to avoid an error. */
14954/* We use char because int might match the return type of a gcc2
14955 builtin and then its argument prototype would still apply. */
14956char gethostbyname();
14957
14958int main() {
14959
14960/* The GNU C library defines this for functions which it implements
14961 to always fail with ENOSYS. Some functions are actually named
14962 something starting with __ and the normal name is an alias. */
14963#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14964choke me
14965#else
14966gethostbyname();
14967#endif
14968
14969; return 0; }
14970EOF
14971if { (eval echo configure:14972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14972 rm -rf conftest*
14973 eval "ac_cv_func_gethostbyname=yes"
14974else
14975 echo "configure: failed program was:" >&5
14976 cat conftest.$ac_ext >&5
14977 rm -rf conftest*
14978 eval "ac_cv_func_gethostbyname=no"
14979fi
14980rm -f conftest*
14981fi
14982
14983if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14984 echo "$ac_t""yes" 1>&6
14985 :
14986else
14987 echo "$ac_t""no" 1>&6
14988fi
14989
14990 if test $ac_cv_func_gethostbyname = no; then
14991 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
14992echo "configure:14993: checking for gethostbyname in -lnsl" >&5
14993ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14994if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14995 echo $ac_n "(cached) $ac_c" 1>&6
14996else
14997 ac_save_LIBS="$LIBS"
14998LIBS="-lnsl $LIBS"
14999cat > conftest.$ac_ext <<EOF
15000#line 15001 "configure"
15001#include "confdefs.h"
15002/* Override any gcc2 internal prototype to avoid an error. */
15003/* We use char because int might match the return type of a gcc2
15004 builtin and then its argument prototype would still apply. */
15005char gethostbyname();
15006
15007int main() {
15008gethostbyname()
15009; return 0; }
15010EOF
15011if { (eval echo configure:15012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15012 rm -rf conftest*
15013 eval "ac_cv_lib_$ac_lib_var=yes"
15014else
15015 echo "configure: failed program was:" >&5
15016 cat conftest.$ac_ext >&5
15017 rm -rf conftest*
15018 eval "ac_cv_lib_$ac_lib_var=no"
15019fi
15020rm -f conftest*
15021LIBS="$ac_save_LIBS"
15022
15023fi
15024if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15025 echo "$ac_t""yes" 1>&6
15026 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
15027else
15028 echo "$ac_t""no" 1>&6
15029fi
15030
15031 fi
15032
15033 # lieder@skyler.mavd.honeywell.com says without -lsocket,
15034 # socket/setsockopt and other routines are undefined under SCO ODT
15035 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
15036 # on later versions), says simon@lia.di.epfl.ch: it contains
15037 # gethostby* variants that don't use the nameserver (or something).
15038 # -lsocket must be given before -lnsl if both are needed.
15039 # We assume that if connect needs -lnsl, so does gethostbyname.
15040 echo $ac_n "checking for connect""... $ac_c" 1>&6
15041echo "configure:15042: checking for connect" >&5
15042if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
15043 echo $ac_n "(cached) $ac_c" 1>&6
15044else
15045 cat > conftest.$ac_ext <<EOF
15046#line 15047 "configure"
15047#include "confdefs.h"
15048/* System header to define __stub macros and hopefully few prototypes,
15049 which can conflict with char connect(); below. */
15050#include <assert.h>
15051/* Override any gcc2 internal prototype to avoid an error. */
15052/* We use char because int might match the return type of a gcc2
15053 builtin and then its argument prototype would still apply. */
15054char connect();
15055
15056int main() {
15057
15058/* The GNU C library defines this for functions which it implements
15059 to always fail with ENOSYS. Some functions are actually named
15060 something starting with __ and the normal name is an alias. */
15061#if defined (__stub_connect) || defined (__stub___connect)
15062choke me
15063#else
15064connect();
15065#endif
15066
15067; return 0; }
15068EOF
15069if { (eval echo configure:15070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15070 rm -rf conftest*
15071 eval "ac_cv_func_connect=yes"
15072else
15073 echo "configure: failed program was:" >&5
15074 cat conftest.$ac_ext >&5
15075 rm -rf conftest*
15076 eval "ac_cv_func_connect=no"
15077fi
15078rm -f conftest*
15079fi
15080
15081if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
15082 echo "$ac_t""yes" 1>&6
15083 :
15084else
15085 echo "$ac_t""no" 1>&6
15086fi
15087
15088 if test $ac_cv_func_connect = no; then
15089 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
15090echo "configure:15091: checking for connect in -lsocket" >&5
15091ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
15092if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15093 echo $ac_n "(cached) $ac_c" 1>&6
15094else
15095 ac_save_LIBS="$LIBS"
15096LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
15097cat > conftest.$ac_ext <<EOF
15098#line 15099 "configure"
15099#include "confdefs.h"
15100/* Override any gcc2 internal prototype to avoid an error. */
15101/* We use char because int might match the return type of a gcc2
15102 builtin and then its argument prototype would still apply. */
15103char connect();
15104
15105int main() {
15106connect()
15107; return 0; }
15108EOF
15109if { (eval echo configure:15110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15110 rm -rf conftest*
15111 eval "ac_cv_lib_$ac_lib_var=yes"
15112else
15113 echo "configure: failed program was:" >&5
15114 cat conftest.$ac_ext >&5
15115 rm -rf conftest*
15116 eval "ac_cv_lib_$ac_lib_var=no"
15117fi
15118rm -f conftest*
15119LIBS="$ac_save_LIBS"
15120
15121fi
15122if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15123 echo "$ac_t""yes" 1>&6
15124 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
15125else
15126 echo "$ac_t""no" 1>&6
15127fi
15128
15129 fi
15130
15131 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15132 echo $ac_n "checking for remove""... $ac_c" 1>&6
15133echo "configure:15134: checking for remove" >&5
15134if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15135 echo $ac_n "(cached) $ac_c" 1>&6
15136else
15137 cat > conftest.$ac_ext <<EOF
15138#line 15139 "configure"
15139#include "confdefs.h"
15140/* System header to define __stub macros and hopefully few prototypes,
15141 which can conflict with char remove(); below. */
15142#include <assert.h>
15143/* Override any gcc2 internal prototype to avoid an error. */
15144/* We use char because int might match the return type of a gcc2
15145 builtin and then its argument prototype would still apply. */
15146char remove();
15147
15148int main() {
15149
15150/* The GNU C library defines this for functions which it implements
15151 to always fail with ENOSYS. Some functions are actually named
15152 something starting with __ and the normal name is an alias. */
15153#if defined (__stub_remove) || defined (__stub___remove)
15154choke me
15155#else
15156remove();
15157#endif
15158
15159; return 0; }
15160EOF
15161if { (eval echo configure:15162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15162 rm -rf conftest*
15163 eval "ac_cv_func_remove=yes"
15164else
15165 echo "configure: failed program was:" >&5
15166 cat conftest.$ac_ext >&5
15167 rm -rf conftest*
15168 eval "ac_cv_func_remove=no"
15169fi
15170rm -f conftest*
15171fi
15172
15173if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15174 echo "$ac_t""yes" 1>&6
15175 :
15176else
15177 echo "$ac_t""no" 1>&6
15178fi
15179
15180 if test $ac_cv_func_remove = no; then
15181 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
15182echo "configure:15183: checking for remove in -lposix" >&5
15183ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15184if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15185 echo $ac_n "(cached) $ac_c" 1>&6
15186else
15187 ac_save_LIBS="$LIBS"
15188LIBS="-lposix $LIBS"
15189cat > conftest.$ac_ext <<EOF
15190#line 15191 "configure"
15191#include "confdefs.h"
15192/* Override any gcc2 internal prototype to avoid an error. */
15193/* We use char because int might match the return type of a gcc2
15194 builtin and then its argument prototype would still apply. */
15195char remove();
15196
15197int main() {
15198remove()
15199; return 0; }
15200EOF
15201if { (eval echo configure:15202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15202 rm -rf conftest*
15203 eval "ac_cv_lib_$ac_lib_var=yes"
15204else
15205 echo "configure: failed program was:" >&5
15206 cat conftest.$ac_ext >&5
15207 rm -rf conftest*
15208 eval "ac_cv_lib_$ac_lib_var=no"
15209fi
15210rm -f conftest*
15211LIBS="$ac_save_LIBS"
15212
15213fi
15214if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15215 echo "$ac_t""yes" 1>&6
15216 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
15217else
15218 echo "$ac_t""no" 1>&6
15219fi
15220
15221 fi
15222
15223 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
15224 echo $ac_n "checking for shmat""... $ac_c" 1>&6
15225echo "configure:15226: checking for shmat" >&5
15226if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15227 echo $ac_n "(cached) $ac_c" 1>&6
15228else
15229 cat > conftest.$ac_ext <<EOF
15230#line 15231 "configure"
15231#include "confdefs.h"
15232/* System header to define __stub macros and hopefully few prototypes,
15233 which can conflict with char shmat(); below. */
15234#include <assert.h>
15235/* Override any gcc2 internal prototype to avoid an error. */
15236/* We use char because int might match the return type of a gcc2
15237 builtin and then its argument prototype would still apply. */
15238char shmat();
15239
15240int main() {
15241
15242/* The GNU C library defines this for functions which it implements
15243 to always fail with ENOSYS. Some functions are actually named
15244 something starting with __ and the normal name is an alias. */
15245#if defined (__stub_shmat) || defined (__stub___shmat)
15246choke me
15247#else
15248shmat();
15249#endif
15250
15251; return 0; }
15252EOF
15253if { (eval echo configure:15254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15254 rm -rf conftest*
15255 eval "ac_cv_func_shmat=yes"
15256else
15257 echo "configure: failed program was:" >&5
15258 cat conftest.$ac_ext >&5
15259 rm -rf conftest*
15260 eval "ac_cv_func_shmat=no"
15261fi
15262rm -f conftest*
15263fi
15264
15265if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15266 echo "$ac_t""yes" 1>&6
15267 :
15268else
15269 echo "$ac_t""no" 1>&6
15270fi
15271
15272 if test $ac_cv_func_shmat = no; then
15273 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
15274echo "configure:15275: checking for shmat in -lipc" >&5
15275ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15276if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15277 echo $ac_n "(cached) $ac_c" 1>&6
15278else
15279 ac_save_LIBS="$LIBS"
15280LIBS="-lipc $LIBS"
15281cat > conftest.$ac_ext <<EOF
15282#line 15283 "configure"
15283#include "confdefs.h"
15284/* Override any gcc2 internal prototype to avoid an error. */
15285/* We use char because int might match the return type of a gcc2
15286 builtin and then its argument prototype would still apply. */
15287char shmat();
15288
15289int main() {
15290shmat()
15291; return 0; }
15292EOF
15293if { (eval echo configure:15294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15294 rm -rf conftest*
15295 eval "ac_cv_lib_$ac_lib_var=yes"
15296else
15297 echo "configure: failed program was:" >&5
15298 cat conftest.$ac_ext >&5
15299 rm -rf conftest*
15300 eval "ac_cv_lib_$ac_lib_var=no"
15301fi
15302rm -f conftest*
15303LIBS="$ac_save_LIBS"
15304
15305fi
15306if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15307 echo "$ac_t""yes" 1>&6
15308 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
15309else
15310 echo "$ac_t""no" 1>&6
15311fi
15312
15313 fi
15314 fi
15315
15316 # Check for libraries that X11R6 Xt/Xaw programs need.
15317 ac_save_LDFLAGS="$LDFLAGS"
15318 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15319 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15320 # check for ICE first), but we must link in the order -lSM -lICE or
15321 # we get undefined symbols. So assume we have SM if we have ICE.
15322 # These have to be linked with before -lX11, unlike the other
15323 # libraries we check for below, so use a different variable.
15324 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15325 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
15326echo "configure:15327: checking for IceConnectionNumber in -lICE" >&5
15327ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15328if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15329 echo $ac_n "(cached) $ac_c" 1>&6
15330else
15331 ac_save_LIBS="$LIBS"
15332LIBS="-lICE $X_EXTRA_LIBS $LIBS"
15333cat > conftest.$ac_ext <<EOF
15334#line 15335 "configure"
15335#include "confdefs.h"
15336/* Override any gcc2 internal prototype to avoid an error. */
15337/* We use char because int might match the return type of a gcc2
15338 builtin and then its argument prototype would still apply. */
15339char IceConnectionNumber();
15340
15341int main() {
15342IceConnectionNumber()
15343; return 0; }
15344EOF
15345if { (eval echo configure:15346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15346 rm -rf conftest*
15347 eval "ac_cv_lib_$ac_lib_var=yes"
15348else
15349 echo "configure: failed program was:" >&5
15350 cat conftest.$ac_ext >&5
15351 rm -rf conftest*
15352 eval "ac_cv_lib_$ac_lib_var=no"
15353fi
15354rm -f conftest*
15355LIBS="$ac_save_LIBS"
15356
15357fi
15358if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15359 echo "$ac_t""yes" 1>&6
15360 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
15361else
15362 echo "$ac_t""no" 1>&6
15363fi
15364
15365 LDFLAGS="$ac_save_LDFLAGS"
15366
15367fi
15368
15369
15370 if test "$no_x" = "yes"; then
15371 { echo "configure: error: X11 not found" 1>&2; exit 1; }
15372 fi
15373
15374 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15375 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
15376 AFMINSTALL=afminstall
15377 COMPILED_X_PROGRAM=0
15378
15379 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
15380echo "configure:15381: checking for Motif/Lesstif headers" >&5
15381
15382ac_find_includes=
15383for ac_dir in $SEARCH_INCLUDE /usr/include;
15384 do
15385 if test -f "$ac_dir/Xm/Xm.h"; then
15386 ac_find_includes=$ac_dir
15387 break
15388 fi
15389 done
15390
15391 if test "$ac_find_includes" != "" ; then
15392 echo "$ac_t""found in $ac_find_includes" 1>&6
15393
15394 if test "x$ac_find_includes" = "x/usr/include"; then
15395 ac_path_to_include=""
15396 else
15397 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15398 result=$?
15399 if test $result = 0; then
15400 ac_path_to_include=""
15401 else
15402 ac_path_to_include=" -I$ac_find_includes"
15403 fi
15404 fi
15405
15406 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
15407 else
15408 cat > conftest.$ac_ext <<EOF
15409#line 15410 "configure"
15410#include "confdefs.h"
15411
15412 #include <Xm/Xm.h>
15413
15414int main() {
15415
15416 int version;
15417 version = xmUseVersion;
15418
15419; return 0; }
15420EOF
15421if { (eval echo configure:15422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15422 rm -rf conftest*
15423
15424 echo "$ac_t""found in default search path" 1>&6
15425 COMPILED_X_PROGRAM=1
15426
15427else
15428 echo "configure: failed program was:" >&5
15429 cat conftest.$ac_ext >&5
15430 rm -rf conftest*
15431
15432 echo "$ac_t""no" 1>&6
15433 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15434
15435
15436fi
15437rm -f conftest*
15438 fi
15439
15440 if test "$COMPILED_X_PROGRAM" = 0; then
15441 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
15442echo "configure:15443: checking for Motif/Lesstif library" >&5
15443
15444ac_find_libraries=
15445for ac_dir in $SEARCH_LIB /usr/lib;
15446 do
15447 for ac_extension in a so sl dylib; do
15448 if test -f "$ac_dir/libXm.$ac_extension"; then
15449 ac_find_libraries=$ac_dir
15450 break 2
15451 fi
15452 done
15453 done
15454
15455 if test "$ac_find_libraries" != "" ; then
15456 echo "$ac_t""found at $ac_find_libraries" 1>&6
15457
15458
15459 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15460 result=$?
15461 if test $result = 0; then
15462 ac_path_to_link=""
15463 else
15464 ac_path_to_link=" -L$ac_find_libraries"
15465 fi
15466
15467 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15468 else
15469 save_CFLAGS=$CFLAGS
15470 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15471
15472 cat > conftest.$ac_ext <<EOF
15473#line 15474 "configure"
15474#include "confdefs.h"
15475
15476 #include <Xm/Xm.h>
15477
15478int main() {
15479
15480 int version;
15481 version = xmUseVersion;
15482
15483; return 0; }
15484EOF
15485if { (eval echo configure:15486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15486 rm -rf conftest*
15487
15488 echo "$ac_t""found in default search path" 1>&6
15489 COMPILED_X_PROGRAM=1
15490
15491else
15492 echo "configure: failed program was:" >&5
15493 cat conftest.$ac_ext >&5
15494 rm -rf conftest*
15495
15496 echo "$ac_t""no" 1>&6
15497 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15498
15499
15500fi
15501rm -f conftest*
15502
15503 CFLAGS=$save_CFLAGS
15504 fi
15505 fi
15506
15507 xpm_link=
15508 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
15509echo "configure:15510: checking for Xpm library" >&5
15510
15511ac_find_libraries=
15512for ac_dir in $SEARCH_LIB /usr/lib;
15513 do
15514 for ac_extension in a so sl dylib; do
15515 if test -f "$ac_dir/libXpm.$ac_extension"; then
15516 ac_find_libraries=$ac_dir
15517 break 2
15518 fi
15519 done
15520 done
15521
15522 if test "$ac_find_libraries" != "" ; then
15523
15524 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15525 result=$?
15526 if test $result = 0; then
15527 ac_path_to_link=""
15528 else
15529 ac_path_to_link=" -L$ac_find_libraries"
15530 fi
15531
15532 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15533
15534 xpm_link=" -lXpm"
15535 cat >> confdefs.h <<\EOF
15536#define wxHAVE_LIB_XPM 1
15537EOF
15538
15539 echo "$ac_t""found at $ac_find_libraries" 1>&6
15540 else
15541 save_CFLAGS=$CFLAGS
15542 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15543
15544 cat > conftest.$ac_ext <<EOF
15545#line 15546 "configure"
15546#include "confdefs.h"
15547
15548 #include <X11/xpm.h>
15549
15550int main() {
15551
15552 int version;
15553 version = XpmLibraryVersion();
15554
15555; return 0; }
15556EOF
15557if { (eval echo configure:15558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15558 rm -rf conftest*
15559
15560 xpm_link=" -lXpm"
15561 cat >> confdefs.h <<\EOF
15562#define wxHAVE_LIB_XPM 1
15563EOF
15564
15565 echo "$ac_t""found in default search path" 1>&6
15566 COMPILED_X_PROGRAM=0
15567
15568else
15569 echo "configure: failed program was:" >&5
15570 cat conftest.$ac_ext >&5
15571 rm -rf conftest*
15572
15573 echo "$ac_t""no" 1>&6
15574 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15575
15576
15577fi
15578rm -f conftest*
15579
15580 CFLAGS=$save_CFLAGS
15581 fi
15582
15583 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
15584echo "configure:15585: checking if we need -lXp and/or -lSM -lICE" >&5
15585 libp_link=""
15586 libsm_ice_link=""
15587 libs_found=0
15588 for libp in "" " -lXp"; do
15589 if test "$libs_found" = "0"; then
15590 for libsm_ice in " -lSM -lICE"; do
15591 if test "$libs_found" = "0"; then
15592 save_LIBS="$LIBS"
15593 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
15594 save_CFLAGS=$CFLAGS
15595 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15596
15597 cat > conftest.$ac_ext <<EOF
15598#line 15599 "configure"
15599#include "confdefs.h"
15600
15601 #include <Xm/Xm.h>
15602 #include <Xm/List.h>
15603
15604int main() {
15605
15606 XmString string = NULL;
15607 Widget w = NULL;
15608 int position = 0;
15609 XmListAddItem(w, string, position);
15610
15611; return 0; }
15612EOF
15613if { (eval echo configure:15614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15614 rm -rf conftest*
15615
15616 libp_link="$libp"
15617 libsm_ice_link="$libsm_ice"
15618 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
15619 libs_found=1
15620
15621else
15622 echo "configure: failed program was:" >&5
15623 cat conftest.$ac_ext >&5
15624 rm -rf conftest*
15625
15626
15627fi
15628rm -f conftest*
15629
15630 LIBS="$save_LIBS"
15631 CFLAGS=$save_CFLAGS
15632 fi
15633 done
15634 fi
15635 done
15636
15637 if test "$libs_found" = "0"; then
15638 echo "$ac_t""can't find the right libraries" 1>&6
15639 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
15640 fi
15641
15642 save_CFLAGS=$CFLAGS
15643 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15644 echo $ac_n "checking for Motif 2""... $ac_c" 1>&6
15645echo "configure:15646: checking for Motif 2" >&5
15646 cat > conftest.$ac_ext <<EOF
15647#line 15648 "configure"
15648#include "confdefs.h"
15649
15650 #include <Xm/Xm.h>
15651
15652int main() {
15653
15654 #if XmVersion < 2000
15655 #error "Not Motif 2"
15656 #endif
15657
15658; return 0; }
15659EOF
15660if { (eval echo configure:15661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15661 rm -rf conftest*
15662
15663 cat >> confdefs.h <<\EOF
15664#define __WXMOTIF20__ 1
15665EOF
15666
15667 echo "$ac_t""found" 1>&6
15668
15669else
15670 echo "configure: failed program was:" >&5
15671 cat conftest.$ac_ext >&5
15672 rm -rf conftest*
15673
15674 cat >> confdefs.h <<\EOF
15675#define __WXMOTIF20__ 0
15676EOF
15677
15678 echo "$ac_t""not found" 1>&6
15679
15680fi
15681rm -f conftest*
15682 CFLAGS=$save_CFLAGS
15683
15684 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
15685 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
15686 TOOLKIT=MOTIF
15687 GUIDIST=MOTIF_DIST
15688 wxHAVE_XEXT_LIB=1
15689 fi
15690
15691 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
15692 test "$wxHAVE_XEXT_LIB" = 1; then
15693 save_CFLAGS="$CFLAGS"
15694 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15695
15696 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
15697echo "configure:15698: checking for X11/extensions/shape.h" >&5
15698 cat > conftest.$ac_ext <<EOF
15699#line 15700 "configure"
15700#include "confdefs.h"
15701
15702 #include <X11/Xlib.h>
15703 #include <X11/extensions/shape.h>
15704
15705int main() {
15706
15707 int dummy1, dummy2;
15708 XShapeQueryExtension((Display*)NULL,
15709 (int*)NULL, (int*)NULL);
15710
15711; return 0; }
15712EOF
15713if { (eval echo configure:15714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15714 rm -rf conftest*
15715
15716 cat >> confdefs.h <<\EOF
15717#define HAVE_XSHAPE 1
15718EOF
15719
15720 echo "$ac_t""found" 1>&6
15721
15722else
15723 echo "configure: failed program was:" >&5
15724 cat conftest.$ac_ext >&5
15725 rm -rf conftest*
15726
15727 echo "$ac_t""not found" 1>&6
15728
15729fi
15730rm -f conftest*
15731 CFLAGS="$save_CFLAGS"
15732 fi
15733
15734 if test "$wxUSE_MAC" = 1; then
15735 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
15736
15737 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
15738 TOOLKIT=MAC
15739 GUIDIST=MACX_DIST
15740 fi
15741
15742 if test "$wxUSE_COCOA" = 1; then
15743 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
15744 TOOLKIT=COCOA
15745 GUIDIST=COCOA_DIST
15746 fi
15747
15748 if test "$wxUSE_PM" = 1; then
15749 TOOLKIT=PM
15750 GUIDIST=GTK_DIST
15751 echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
15752 wxUSE_THREADS="no"
15753 fi
15754
15755 if test "$TOOLKIT" = "PM" ; then
15756 TOOLKIT_DIR="os2"
15757 else
15758 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15759 fi
15760
15761 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15762
15763 if test "$wxUSE_UNIVERSAL" = "yes"; then
15764 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15765
15766 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15767 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15768
15769 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15770 if test "$wxUSE_X11" = 1; then
15771 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15772 else
15773 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15774 fi
15775 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15776 WIDGET_SET=univ
15777 else
15778 ALL_OBJECTS="\$(GUIOBJS)"
15779 ALL_SOURCES="\$(ALL_SOURCES)"
15780 ALL_HEADERS="\$(ALL_HEADERS)"
15781 fi
15782
15783 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15784
15785 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15786 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15787 fi
15788
15789 if test "$wxUSE_HTML" = "yes"; then
15790 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15791 fi
15792
15793 if test "$wxUSE_LIBJPEG" = "builtin" ; then
15794 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15795 fi
15796 if test "$wxUSE_LIBTIFF" = "builtin" ; then
15797 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15798 fi
15799 if test "$wxUSE_LIBPNG" = "builtin" ; then
15800 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15801 fi
15802
15803 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15804 DISTDIR="wx\$(TOOLKIT)"
15805else
15806 USE_GUI=0
15807
15808 TOOLKIT_DIR="base"
15809
15810 if test "$USE_WIN32" = 1 ; then
15811 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15812 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15813
15814 TOOLKIT="MSW"
15815 else
15816 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15817 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15818 fi
15819
15820 ALL_SOURCES="\$(ALL_SOURCES)"
15821 ALL_HEADERS="\$(ALL_HEADERS)"
15822
15823 PORT_FILES="\${top_srcdir}/src/files.lst"
15824
15825 GUIDIST="BASE_DIST"
15826 DISTDIR="wxBase"
15827fi
15828
15829
15830
15831
15832IODBC_C_SRC=""
15833
15834
15835if test "$TOOLKIT" != "MSW" ; then
15836
15837 if test "$wxUSE_ODBC" != "no" ; then
15838 cat >> confdefs.h <<\EOF
15839#define wxUSE_ODBC 1
15840EOF
15841
15842 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
15843
15844 WXODBCFLAG="-D_IODBC_"
15845
15846
15847 if test "$wxUSE_ODBC" = "sys" ; then
15848
15849 ac_safe=`echo "sql.h" | sed 'y%./+-%__p_%'`
15850echo $ac_n "checking for sql.h""... $ac_c" 1>&6
15851echo "configure:15852: checking for sql.h" >&5
15852if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15853 echo $ac_n "(cached) $ac_c" 1>&6
15854else
15855 cat > conftest.$ac_ext <<EOF
15856#line 15857 "configure"
15857#include "confdefs.h"
15858#include <sql.h>
15859EOF
15860ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15861{ (eval echo configure:15862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15862ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15863if test -z "$ac_err"; then
15864 rm -rf conftest*
15865 eval "ac_cv_header_$ac_safe=yes"
15866else
15867 echo "$ac_err" >&5
15868 echo "configure: failed program was:" >&5
15869 cat conftest.$ac_ext >&5
15870 rm -rf conftest*
15871 eval "ac_cv_header_$ac_safe=no"
15872fi
15873rm -f conftest*
15874fi
15875if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15876 echo "$ac_t""yes" 1>&6
15877 :
15878else
15879 echo "$ac_t""no" 1>&6
15880fi
15881
15882
15883echo $ac_n "checking for library containing SQLAllocEnv""... $ac_c" 1>&6
15884echo "configure:15885: checking for library containing SQLAllocEnv" >&5
15885if eval "test \"`echo '$''{'ac_cv_search_SQLAllocEnv'+set}'`\" = set"; then
15886 echo $ac_n "(cached) $ac_c" 1>&6
15887else
15888 ac_func_search_save_LIBS="$LIBS"
15889ac_cv_search_SQLAllocEnv="no"
15890cat > conftest.$ac_ext <<EOF
15891#line 15892 "configure"
15892#include "confdefs.h"
15893/* Override any gcc2 internal prototype to avoid an error. */
15894/* We use char because int might match the return type of a gcc2
15895 builtin and then its argument prototype would still apply. */
15896char SQLAllocEnv();
15897
15898int main() {
15899SQLAllocEnv()
15900; return 0; }
15901EOF
15902if { (eval echo configure:15903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15903 rm -rf conftest*
15904 ac_cv_search_SQLAllocEnv="none required"
15905else
15906 echo "configure: failed program was:" >&5
15907 cat conftest.$ac_ext >&5
15908fi
15909rm -f conftest*
15910test "$ac_cv_search_SQLAllocEnv" = "no" && for i in iodbc unixodbc odbc ; do
15911LIBS="-l$i $ac_func_search_save_LIBS"
15912cat > conftest.$ac_ext <<EOF
15913#line 15914 "configure"
15914#include "confdefs.h"
15915/* Override any gcc2 internal prototype to avoid an error. */
15916/* We use char because int might match the return type of a gcc2
15917 builtin and then its argument prototype would still apply. */
15918char SQLAllocEnv();
15919
15920int main() {
15921SQLAllocEnv()
15922; return 0; }
15923EOF
15924if { (eval echo configure:15925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15925 rm -rf conftest*
15926 ac_cv_search_SQLAllocEnv="-l$i"
15927break
15928else
15929 echo "configure: failed program was:" >&5
15930 cat conftest.$ac_ext >&5
15931fi
15932rm -f conftest*
15933done
15934LIBS="$ac_func_search_save_LIBS"
15935fi
15936
15937echo "$ac_t""$ac_cv_search_SQLAllocEnv" 1>&6
15938if test "$ac_cv_search_SQLAllocEnv" != "no"; then
15939 test "$ac_cv_search_SQLAllocEnv" = "none required" || LIBS="$ac_cv_search_SQLAllocEnv $LIBS"
15940
15941else :
15942
15943 wxUSE_ODBC=builtin;
15944 echo "configure: warning: can't find system Odbc library falling back to builtin " 1>&2
15945
15946fi
15947 fi
15948 if test "$wxUSE_ODBC" != "sys" ; then
15949 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
15950 fi
15951
15952 fi
15953
15954fi
15955
15956if test "$wxUSE_REGEX" = "builtin" ; then
15957 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
15958fi
15959if test "$wxUSE_ZLIB" = "builtin" ; then
15960 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
15961fi
15962
15963
15964if test "$wxUSE_OPENGL" = "yes"; then
15965 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
15966 OPENGL_LIBS="-framework OpenGL -framework AGL"
15967 elif test "$wxUSE_MSW" = 1; then
15968 OPENGL_LIBS="-lopengl32 -lglu32"
15969 else
15970 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15971echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15972echo "configure:15973: checking for GL/gl.h" >&5
15973if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15974 echo $ac_n "(cached) $ac_c" 1>&6
15975else
15976 cat > conftest.$ac_ext <<EOF
15977#line 15978 "configure"
15978#include "confdefs.h"
15979#include <GL/gl.h>
15980EOF
15981ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15982{ (eval echo configure:15983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15983ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15984if test -z "$ac_err"; then
15985 rm -rf conftest*
15986 eval "ac_cv_header_$ac_safe=yes"
15987else
15988 echo "$ac_err" >&5
15989 echo "configure: failed program was:" >&5
15990 cat conftest.$ac_ext >&5
15991 rm -rf conftest*
15992 eval "ac_cv_header_$ac_safe=no"
15993fi
15994rm -f conftest*
15995fi
15996if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15997 echo "$ac_t""yes" 1>&6
15998
15999 found_gl=0
16000
16001 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
16002echo "configure:16003: checking for -lGL" >&5
16003
16004ac_find_libraries=
16005for ac_dir in $SEARCH_LIB /usr/lib;
16006 do
16007 for ac_extension in a so sl dylib; do
16008 if test -f "$ac_dir/libGL.$ac_extension"; then
16009 ac_find_libraries=$ac_dir
16010 break 2
16011 fi
16012 done
16013 done
16014
16015 if test "$ac_find_libraries" != "" ; then
16016
16017 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
16018 result=$?
16019 if test $result = 0; then
16020 ac_path_to_link=""
16021 else
16022 ac_path_to_link=" -L$ac_find_libraries"
16023 fi
16024
16025 if test "$ac_path_to_link" != " -L/usr/lib" ; then
16026 LDFLAGS_GL="$ac_path_to_link"
16027 fi
16028
16029
16030ac_find_libraries=
16031for ac_dir in $SEARCH_LIB /usr/lib;
16032 do
16033 for ac_extension in a so sl dylib; do
16034 if test -f "$ac_dir/libGLU.$ac_extension"; then
16035 ac_find_libraries=$ac_dir
16036 break 2
16037 fi
16038 done
16039 done
16040
16041 if test "$ac_find_libraries" != "" ; then
16042
16043 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
16044 result=$?
16045 if test $result = 0; then
16046 ac_path_to_link=""
16047 else
16048 ac_path_to_link=" -L$ac_find_libraries"
16049 fi
16050
16051 if test "$ac_path_to_link" != " -L/usr/lib" -a \
16052 "$ac_path_to_link" != "$LDFLAGS_GL"; then
16053 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
16054 fi
16055
16056 found_gl=1
16057 OPENGL_LIBS="-lGL -lGLU"
16058 echo "$ac_t""yes" 1>&6
16059 fi
16060 fi
16061
16062 if "$found_gl" != 1; then
16063 echo "$ac_t""no" 1>&6
16064 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
16065echo "configure:16066: checking for -lMesaGL" >&5
16066
16067ac_find_libraries=
16068for ac_dir in $SEARCH_LIB /usr/lib;
16069 do
16070 for ac_extension in a so sl dylib; do
16071 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
16072 ac_find_libraries=$ac_dir
16073 break 2
16074 fi
16075 done
16076 done
16077
16078 if test "$ac_find_libraries" != "" ; then
16079
16080 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
16081 result=$?
16082 if test $result = 0; then
16083 ac_path_to_link=""
16084 else
16085 ac_path_to_link=" -L$ac_find_libraries"
16086 fi
16087
16088 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
16089 OPENGL_LIBS="-lMesaGL -lMesaGLU"
16090 echo "$ac_t""yes" 1>&6
16091 else
16092 echo "$ac_t""no" 1>&6
16093 fi
16094 fi
16095
16096else
16097 echo "$ac_t""no" 1>&6
16098fi
16099
16100
16101 if test "x$OPENGL_LIBS" = "x"; then
16102 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
16103 fi
16104 fi
16105
16106 if test "$wxUSE_OPENGL" = "yes"; then
16107 cat >> confdefs.h <<\EOF
16108#define wxUSE_OPENGL 1
16109EOF
16110
16111 cat >> confdefs.h <<\EOF
16112#define wxUSE_GLCANVAS 1
16113EOF
16114
16115 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
16116 fi
16117fi
16118
16119if test -z "$TOOLKIT_VPATH" ; then
16120 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
16121fi
16122
16123if test -n "$TOOLKIT" ; then
16124 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
16125fi
16126
16127lib_unicode_suffix=
16128if test "$wxUSE_UNICODE" = "yes"; then
16129 lib_unicode_suffix=u
16130fi
16131
16132lib_debug_suffix=
16133if test "$wxUSE_DEBUG_FLAG" = "yes"; then
16134 lib_debug_suffix=d
16135fi
16136
16137WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
16138
16139TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
16140TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
16141
16142if test "$cross_compiling" = "yes"; then
16143 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
16144 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
16145fi
16146
16147WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
16148WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
16149WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
16150
16151WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
16152WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
16153
16154WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
16155WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16156WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
16157WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16158
16159case "${host}" in
16160 *-*-cygwin* | *-*-mingw32* )
16161
16162
16163
16164 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
16165 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
16166 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
16167 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
16168 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
16169 else
16170 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
16171 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16172 fi
16173 ;;
16174
16175 *-*-darwin* )
16176
16177 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16178 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16179
16180 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
16181 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16182 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
16183 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16184
16185 if test "$wxUSE_MAC" = 1; then
16186 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
16187 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
16188 fi
16189 ;;
16190esac
16191
16192WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
16193WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
16194
16195WXCONFIG_LIBS="-l${WX_LIBRARY}"
16196WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
16197
16198if test "$wxUSE_OPENGL" = "yes"; then
16199 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
16200 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
16201fi
16202
16203
16204
16205if test "$wxUSE_SHARED" = "yes"; then
16206 case "${host}" in
16207 *-pc-os2_emx | *-pc-os2-emx | \
16208 *-pc-msdosdjgpp )
16209 wxUSE_SHARED=no
16210 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
16211 ;;
16212 esac
16213fi
16214
16215if test "$wxUSE_SHARED" = "yes"; then
16216
16217 if test "$wxUSE_OPENGL" = "yes"; then
16218 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
16219 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
16220 else
16221 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16222 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
16223 fi
16224
16225 if test "$GCC" = "yes"; then
16226 PIC_FLAG="-fPIC"
16227 fi
16228
16229
16230
16231 found_versioning=no
16232
16233
16234 if test $found_versioning = no ; then
16235 echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
16236echo "configure:16237: checking if the linker accepts --version-script" >&5
16237if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
16238 echo $ac_n "(cached) $ac_c" 1>&6
16239else
16240
16241 echo "VER_1 { *; };" >conftest.sym
16242 echo "int main() { return 0; }" >conftest.cpp
16243
16244 if { ac_try='
16245 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
16246 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:16247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
16247 if test -s conftest.stderr ; then
16248 wx_cv_version_script=no
16249 else
16250 wx_cv_version_script=yes
16251 fi
16252 else
16253 wx_cv_version_script=no
16254 fi
16255 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
16256
16257fi
16258
16259echo "$ac_t""$wx_cv_version_script" 1>&6
16260 if test $wx_cv_version_script = yes ; then
16261 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
16262 fi
16263 fi
16264
16265
16266 SHARED_LD="${CXX} -shared -o"
16267
16268 case "${host}" in
16269 *-hp-hpux* )
16270 if test "$GCC" = "yes"; then
16271 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
16272 else
16273 LDFLAGS="$LDFLAGS -L/usr/lib"
16274
16275 SHARED_LD="${CXX} -b -o"
16276 PIC_FLAG="+Z"
16277 fi
16278
16279 if test "$wxUSE_OPENGL" = "yes"; then
16280 WX_ALL_INSTALLED="preinstall_gl"
16281 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
16282 else
16283 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16284 fi
16285 ;;
16286
16287 *-*-linux* )
16288 if test "$GCC" != "yes"; then
16289 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
16290echo "configure:16291: checking for Intel compiler" >&5
16291if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
16292 echo $ac_n "(cached) $ac_c" 1>&6
16293else
16294
16295 cat > conftest.$ac_ext <<EOF
16296#line 16297 "configure"
16297#include "confdefs.h"
16298
16299int main() {
16300
16301 #ifndef __INTEL_COMPILER
16302 #error Not icc
16303 #endif
16304
16305; return 0; }
16306EOF
16307if { (eval echo configure:16308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16308 rm -rf conftest*
16309 wx_cv_prog_icc=yes
16310else
16311 echo "configure: failed program was:" >&5
16312 cat conftest.$ac_ext >&5
16313 rm -rf conftest*
16314 wx_cv_prog_icc=no
16315
16316fi
16317rm -f conftest*
16318
16319fi
16320
16321echo "$ac_t""$wx_cv_prog_icc" 1>&6
16322 if test "$wx_cv_prog_icc" = "yes"; then
16323 PIC_FLAG="-KPIC"
16324 fi
16325 fi
16326
16327 if test "$wxUSE_SONAME" = "yes" ; then
16328 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16329 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16330 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16331 fi
16332 ;;
16333
16334 *-*-solaris2* )
16335 if test "$GCC" = yes ; then
16336 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
16337 else
16338 SHARED_LD="${CXX} -G -o"
16339 PIC_FLAG="-KPIC"
16340 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16341 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
16342 fi
16343 ;;
16344
16345 *-*-darwin* )
16346 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16347 CFLAGS="$CFLAGS -fno-common"
16348 CXXFLAGS="$CXXFLAGS -fno-common"
16349 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16350 PIC_FLAG="-dynamic -fPIC"
16351 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
16352 SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
16353 ;;
16354
16355 *-*-aix* )
16356 if test "$GCC" != "yes"; then
16357 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
16358set dummy makeC++SharedLib; ac_word=$2
16359echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16360echo "configure:16361: checking for $ac_word" >&5
16361if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16362 echo $ac_n "(cached) $ac_c" 1>&6
16363else
16364 if test -n "$AIX_CXX_LD"; then
16365 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16366else
16367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16368 ac_dummy="$PATH"
16369 for ac_dir in $ac_dummy; do
16370 test -z "$ac_dir" && ac_dir=.
16371 if test -f $ac_dir/$ac_word; then
16372 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16373 break
16374 fi
16375 done
16376 IFS="$ac_save_ifs"
16377 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16378fi
16379fi
16380AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
16381if test -n "$AIX_CXX_LD"; then
16382 echo "$ac_t""$AIX_CXX_LD" 1>&6
16383else
16384 echo "$ac_t""no" 1>&6
16385fi
16386
16387
16388 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16389 fi
16390 ;;
16391
16392 *-*-cygwin* | *-*-mingw32* )
16393 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16394
16395 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16396 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16397
16398 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16399
16400 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16401 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16402
16403 if test "$wxUSE_OPENGL" = "yes"; then
16404 LIBS="${LIBS} ${OPENGL_LIBS}"
16405 fi
16406 ;;
16407
16408 *-*-beos* )
16409 SHARED_LD="${LD} -shared -o"
16410 ;;
16411
16412 *-*-irix* )
16413 if test "$GCC" != "yes"; then
16414 PIC_FLAG="-KPIC"
16415 fi
16416 ;;
16417
16418 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16419 *-*-sunos4* | \
16420 *-*-osf* | \
16421 *-*-dgux5* | \
16422 *-*-sysv5* )
16423 ;;
16424
16425 *)
16426 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
16427 esac
16428
16429 if test "x$WX_TARGET_LIBRARY" = "x"; then
16430 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16431 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16432 fi
16433
16434 WX_TARGET_LIBRARY_TYPE="so"
16435 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
16436fi
16437
16438if test "$wxUSE_SHARED" = "no"; then
16439
16440 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16441 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16442 fi
16443
16444 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
16445 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16446 fi
16447
16448 if test "$wxUSE_OPENGL" = "yes"; then
16449 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16450 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16451 else
16452 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16453 fi
16454
16455 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16456 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16457
16458 WX_TARGET_LIBRARY_TYPE="a"
16459 INSTALL_LIBRARY='$(INSTALL_DATA)'
16460
16461 STATIC_FLAG="yes"
16462else
16463 STATIC_FLAG="no"
16464fi
16465
16466MACRESCOMP="@#"
16467MACSETFILE="@#"
16468MACRESWXCONFIG="#"
16469if test "$wxUSE_MAC" = 1; then
16470 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16471 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16472 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16473 # Extract the first word of "Rez", so it can be a program name with args.
16474set dummy Rez; ac_word=$2
16475echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16476echo "configure:16477: checking for $ac_word" >&5
16477if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16478 echo $ac_n "(cached) $ac_c" 1>&6
16479else
16480 if test -n "$RESCOMP"; then
16481 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16482else
16483 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16484 ac_dummy="$PATH"
16485 for ac_dir in $ac_dummy; do
16486 test -z "$ac_dir" && ac_dir=.
16487 if test -f $ac_dir/$ac_word; then
16488 ac_cv_prog_RESCOMP="Rez"
16489 break
16490 fi
16491 done
16492 IFS="$ac_save_ifs"
16493 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16494fi
16495fi
16496RESCOMP="$ac_cv_prog_RESCOMP"
16497if test -n "$RESCOMP"; then
16498 echo "$ac_t""$RESCOMP" 1>&6
16499else
16500 echo "$ac_t""no" 1>&6
16501fi
16502
16503 # Extract the first word of "DeRez", so it can be a program name with args.
16504set dummy DeRez; ac_word=$2
16505echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16506echo "configure:16507: checking for $ac_word" >&5
16507if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16508 echo $ac_n "(cached) $ac_c" 1>&6
16509else
16510 if test -n "$DEREZ"; then
16511 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16512else
16513 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16514 ac_dummy="$PATH"
16515 for ac_dir in $ac_dummy; do
16516 test -z "$ac_dir" && ac_dir=.
16517 if test -f $ac_dir/$ac_word; then
16518 ac_cv_prog_DEREZ="DeRez"
16519 break
16520 fi
16521 done
16522 IFS="$ac_save_ifs"
16523 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16524fi
16525fi
16526DEREZ="$ac_cv_prog_DEREZ"
16527if test -n "$DEREZ"; then
16528 echo "$ac_t""$DEREZ" 1>&6
16529else
16530 echo "$ac_t""no" 1>&6
16531fi
16532
16533 # Extract the first word of "SetFile", so it can be a program name with args.
16534set dummy SetFile; ac_word=$2
16535echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16536echo "configure:16537: checking for $ac_word" >&5
16537if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16538 echo $ac_n "(cached) $ac_c" 1>&6
16539else
16540 if test -n "$SETFILE"; then
16541 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16542else
16543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16544 ac_dummy="$PATH"
16545 for ac_dir in $ac_dummy; do
16546 test -z "$ac_dir" && ac_dir=.
16547 if test -f $ac_dir/$ac_word; then
16548 ac_cv_prog_SETFILE="SetFile"
16549 break
16550 fi
16551 done
16552 IFS="$ac_save_ifs"
16553 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16554fi
16555fi
16556SETFILE="$ac_cv_prog_SETFILE"
16557if test -n "$SETFILE"; then
16558 echo "$ac_t""$SETFILE" 1>&6
16559else
16560 echo "$ac_t""no" 1>&6
16561fi
16562
16563 MACOSX_BUNDLE="bundle"
16564 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
16565 MACSETFILE="\$(SETFILE)"
16566 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
16567elif test "$wxUSE_COCOA" = 1; then
16568 # Extract the first word of "Rez", so it can be a program name with args.
16569set dummy Rez; ac_word=$2
16570echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16571echo "configure:16572: checking for $ac_word" >&5
16572if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16573 echo $ac_n "(cached) $ac_c" 1>&6
16574else
16575 if test -n "$RESCOMP"; then
16576 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16577else
16578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16579 ac_dummy="$PATH"
16580 for ac_dir in $ac_dummy; do
16581 test -z "$ac_dir" && ac_dir=.
16582 if test -f $ac_dir/$ac_word; then
16583 ac_cv_prog_RESCOMP="Rez"
16584 break
16585 fi
16586 done
16587 IFS="$ac_save_ifs"
16588 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16589fi
16590fi
16591RESCOMP="$ac_cv_prog_RESCOMP"
16592if test -n "$RESCOMP"; then
16593 echo "$ac_t""$RESCOMP" 1>&6
16594else
16595 echo "$ac_t""no" 1>&6
16596fi
16597
16598 # Extract the first word of "DeRez", so it can be a program name with args.
16599set dummy DeRez; ac_word=$2
16600echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16601echo "configure:16602: checking for $ac_word" >&5
16602if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16603 echo $ac_n "(cached) $ac_c" 1>&6
16604else
16605 if test -n "$DEREZ"; then
16606 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16607else
16608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16609 ac_dummy="$PATH"
16610 for ac_dir in $ac_dummy; do
16611 test -z "$ac_dir" && ac_dir=.
16612 if test -f $ac_dir/$ac_word; then
16613 ac_cv_prog_DEREZ="DeRez"
16614 break
16615 fi
16616 done
16617 IFS="$ac_save_ifs"
16618 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16619fi
16620fi
16621DEREZ="$ac_cv_prog_DEREZ"
16622if test -n "$DEREZ"; then
16623 echo "$ac_t""$DEREZ" 1>&6
16624else
16625 echo "$ac_t""no" 1>&6
16626fi
16627
16628 # Extract the first word of "SetFile", so it can be a program name with args.
16629set dummy SetFile; ac_word=$2
16630echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16631echo "configure:16632: checking for $ac_word" >&5
16632if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16633 echo $ac_n "(cached) $ac_c" 1>&6
16634else
16635 if test -n "$SETFILE"; then
16636 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16637else
16638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16639 ac_dummy="$PATH"
16640 for ac_dir in $ac_dummy; do
16641 test -z "$ac_dir" && ac_dir=.
16642 if test -f $ac_dir/$ac_word; then
16643 ac_cv_prog_SETFILE="SetFile"
16644 break
16645 fi
16646 done
16647 IFS="$ac_save_ifs"
16648 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16649fi
16650fi
16651SETFILE="$ac_cv_prog_SETFILE"
16652if test -n "$SETFILE"; then
16653 echo "$ac_t""$SETFILE" 1>&6
16654else
16655 echo "$ac_t""no" 1>&6
16656fi
16657
16658 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
16659 MACSETFILE="\$(SETFILE)"
16660 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
16661else
16662 if test "$wxUSE_PM" = 1; then
16663 MACRESCOMP="emxbind -ep"
16664 fi
16665fi
16666
16667
16668echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
16669echo "configure:16670: checking for ANSI C header files" >&5
16670if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16671 echo $ac_n "(cached) $ac_c" 1>&6
16672else
16673 cat > conftest.$ac_ext <<EOF
16674#line 16675 "configure"
16675#include "confdefs.h"
16676#include <stdlib.h>
16677#include <stdarg.h>
16678#include <string.h>
16679#include <float.h>
16680EOF
16681ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16682{ (eval echo configure:16683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16683ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16684if test -z "$ac_err"; then
16685 rm -rf conftest*
16686 ac_cv_header_stdc=yes
16687else
16688 echo "$ac_err" >&5
16689 echo "configure: failed program was:" >&5
16690 cat conftest.$ac_ext >&5
16691 rm -rf conftest*
16692 ac_cv_header_stdc=no
16693fi
16694rm -f conftest*
16695
16696if test $ac_cv_header_stdc = yes; then
16697 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16698cat > conftest.$ac_ext <<EOF
16699#line 16700 "configure"
16700#include "confdefs.h"
16701#include <string.h>
16702EOF
16703if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16704 egrep "memchr" >/dev/null 2>&1; then
16705 :
16706else
16707 rm -rf conftest*
16708 ac_cv_header_stdc=no
16709fi
16710rm -f conftest*
16711
16712fi
16713
16714if test $ac_cv_header_stdc = yes; then
16715 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16716cat > conftest.$ac_ext <<EOF
16717#line 16718 "configure"
16718#include "confdefs.h"
16719#include <stdlib.h>
16720EOF
16721if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16722 egrep "free" >/dev/null 2>&1; then
16723 :
16724else
16725 rm -rf conftest*
16726 ac_cv_header_stdc=no
16727fi
16728rm -f conftest*
16729
16730fi
16731
16732if test $ac_cv_header_stdc = yes; then
16733 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16734if test "$cross_compiling" = yes; then
16735 :
16736else
16737 cat > conftest.$ac_ext <<EOF
16738#line 16739 "configure"
16739#include "confdefs.h"
16740#include <ctype.h>
16741#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16742#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16743#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16744int main () { int i; for (i = 0; i < 256; i++)
16745if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16746exit (0); }
16747
16748EOF
16749if { (eval echo configure:16750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16750then
16751 :
16752else
16753 echo "configure: failed program was:" >&5
16754 cat conftest.$ac_ext >&5
16755 rm -fr conftest*
16756 ac_cv_header_stdc=no
16757fi
16758rm -fr conftest*
16759fi
16760
16761fi
16762fi
16763
16764echo "$ac_t""$ac_cv_header_stdc" 1>&6
16765if test $ac_cv_header_stdc = yes; then
16766 cat >> confdefs.h <<\EOF
16767#define STDC_HEADERS 1
16768EOF
16769
16770fi
16771
16772echo $ac_n "checking for mode_t""... $ac_c" 1>&6
16773echo "configure:16774: checking for mode_t" >&5
16774if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16775 echo $ac_n "(cached) $ac_c" 1>&6
16776else
16777 cat > conftest.$ac_ext <<EOF
16778#line 16779 "configure"
16779#include "confdefs.h"
16780#include <sys/types.h>
16781#if STDC_HEADERS
16782#include <stdlib.h>
16783#include <stddef.h>
16784#endif
16785EOF
16786if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16787 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16788 rm -rf conftest*
16789 ac_cv_type_mode_t=yes
16790else
16791 rm -rf conftest*
16792 ac_cv_type_mode_t=no
16793fi
16794rm -f conftest*
16795
16796fi
16797echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16798if test $ac_cv_type_mode_t = no; then
16799 cat >> confdefs.h <<\EOF
16800#define mode_t int
16801EOF
16802
16803fi
16804
16805echo $ac_n "checking for off_t""... $ac_c" 1>&6
16806echo "configure:16807: checking for off_t" >&5
16807if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16808 echo $ac_n "(cached) $ac_c" 1>&6
16809else
16810 cat > conftest.$ac_ext <<EOF
16811#line 16812 "configure"
16812#include "confdefs.h"
16813#include <sys/types.h>
16814#if STDC_HEADERS
16815#include <stdlib.h>
16816#include <stddef.h>
16817#endif
16818EOF
16819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16820 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16821 rm -rf conftest*
16822 ac_cv_type_off_t=yes
16823else
16824 rm -rf conftest*
16825 ac_cv_type_off_t=no
16826fi
16827rm -f conftest*
16828
16829fi
16830echo "$ac_t""$ac_cv_type_off_t" 1>&6
16831if test $ac_cv_type_off_t = no; then
16832 cat >> confdefs.h <<\EOF
16833#define off_t long
16834EOF
16835
16836fi
16837
16838echo $ac_n "checking for pid_t""... $ac_c" 1>&6
16839echo "configure:16840: checking for pid_t" >&5
16840if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16841 echo $ac_n "(cached) $ac_c" 1>&6
16842else
16843 cat > conftest.$ac_ext <<EOF
16844#line 16845 "configure"
16845#include "confdefs.h"
16846#include <sys/types.h>
16847#if STDC_HEADERS
16848#include <stdlib.h>
16849#include <stddef.h>
16850#endif
16851EOF
16852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16853 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16854 rm -rf conftest*
16855 ac_cv_type_pid_t=yes
16856else
16857 rm -rf conftest*
16858 ac_cv_type_pid_t=no
16859fi
16860rm -f conftest*
16861
16862fi
16863echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16864if test $ac_cv_type_pid_t = no; then
16865 cat >> confdefs.h <<\EOF
16866#define pid_t int
16867EOF
16868
16869fi
16870
16871echo $ac_n "checking for size_t""... $ac_c" 1>&6
16872echo "configure:16873: checking for size_t" >&5
16873if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16874 echo $ac_n "(cached) $ac_c" 1>&6
16875else
16876 cat > conftest.$ac_ext <<EOF
16877#line 16878 "configure"
16878#include "confdefs.h"
16879#include <sys/types.h>
16880#if STDC_HEADERS
16881#include <stdlib.h>
16882#include <stddef.h>
16883#endif
16884EOF
16885if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16886 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16887 rm -rf conftest*
16888 ac_cv_type_size_t=yes
16889else
16890 rm -rf conftest*
16891 ac_cv_type_size_t=no
16892fi
16893rm -f conftest*
16894
16895fi
16896echo "$ac_t""$ac_cv_type_size_t" 1>&6
16897if test $ac_cv_type_size_t = no; then
16898 cat >> confdefs.h <<\EOF
16899#define size_t unsigned
16900EOF
16901
16902fi
16903
16904echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
16905echo "configure:16906: checking for uid_t in sys/types.h" >&5
16906if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16907 echo $ac_n "(cached) $ac_c" 1>&6
16908else
16909 cat > conftest.$ac_ext <<EOF
16910#line 16911 "configure"
16911#include "confdefs.h"
16912#include <sys/types.h>
16913EOF
16914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16915 egrep "uid_t" >/dev/null 2>&1; then
16916 rm -rf conftest*
16917 ac_cv_type_uid_t=yes
16918else
16919 rm -rf conftest*
16920 ac_cv_type_uid_t=no
16921fi
16922rm -f conftest*
16923
16924fi
16925
16926echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16927if test $ac_cv_type_uid_t = no; then
16928 cat >> confdefs.h <<\EOF
16929#define uid_t int
16930EOF
16931
16932 cat >> confdefs.h <<\EOF
16933#define gid_t int
16934EOF
16935
16936fi
16937
16938
16939
16940ac_ext=C
16941# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16942ac_cpp='$CXXCPP $CPPFLAGS'
16943ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16944ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16945cross_compiling=$ac_cv_prog_cxx_cross
16946
16947echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
16948echo "configure:16949: checking if size_t is unsigned int" >&5
16949if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16950 echo $ac_n "(cached) $ac_c" 1>&6
16951else
16952
16953 cat > conftest.$ac_ext <<EOF
16954#line 16955 "configure"
16955#include "confdefs.h"
16956#include <stddef.h>
16957int main() {
16958
16959 return 0; }
16960
16961 struct Foo { void foo(size_t); void foo(unsigned int); };
16962
16963 int bar() {
16964
16965; return 0; }
16966EOF
16967if { (eval echo configure:16968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16968 rm -rf conftest*
16969 wx_cv_size_t_is_uint=no
16970else
16971 echo "configure: failed program was:" >&5
16972 cat conftest.$ac_ext >&5
16973 rm -rf conftest*
16974 wx_cv_size_t_is_uint=yes
16975
16976fi
16977rm -f conftest*
16978
16979
16980fi
16981
16982echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
16983
16984if test "$wx_cv_size_t_is_uint" = "yes"; then
16985 cat >> confdefs.h <<\EOF
16986#define wxSIZE_T_IS_UINT 1
16987EOF
16988
16989else
16990 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
16991echo "configure:16992: checking if size_t is unsigned long" >&5
16992if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16993 echo $ac_n "(cached) $ac_c" 1>&6
16994else
16995 cat > conftest.$ac_ext <<EOF
16996#line 16997 "configure"
16997#include "confdefs.h"
16998#include <stddef.h>
16999int main() {
17000
17001 return 0; }
17002
17003 struct Foo { void foo(size_t); void foo(unsigned long); };
17004
17005 int bar() {
17006
17007; return 0; }
17008EOF
17009if { (eval echo configure:17010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17010 rm -rf conftest*
17011 wx_cv_size_t_is_ulong=no
17012else
17013 echo "configure: failed program was:" >&5
17014 cat conftest.$ac_ext >&5
17015 rm -rf conftest*
17016 wx_cv_size_t_is_ulong=yes
17017
17018fi
17019rm -f conftest*
17020
17021fi
17022
17023echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
17024
17025 if test "$wx_cv_size_t_is_ulong" = "yes"; then
17026 cat >> confdefs.h <<\EOF
17027#define wxSIZE_T_IS_ULONG 1
17028EOF
17029
17030 fi
17031fi
17032
17033ac_ext=c
17034# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17035ac_cpp='$CPP $CPPFLAGS'
17036ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17037ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17038cross_compiling=$ac_cv_prog_cc_cross
17039
17040
17041
17042echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
17043echo "configure:17044: checking for pw_gecos in struct passwd" >&5
17044if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
17045 echo $ac_n "(cached) $ac_c" 1>&6
17046else
17047
17048 cat > conftest.$ac_ext <<EOF
17049#line 17050 "configure"
17050#include "confdefs.h"
17051#include <pwd.h>
17052int main() {
17053
17054 char *p;
17055 struct passwd *pw;
17056 p = pw->pw_gecos;
17057
17058; return 0; }
17059EOF
17060if { (eval echo configure:17061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17061 rm -rf conftest*
17062
17063 wx_cv_struct_pw_gecos=yes
17064
17065else
17066 echo "configure: failed program was:" >&5
17067 cat conftest.$ac_ext >&5
17068 rm -rf conftest*
17069
17070 wx_cv_struct_pw_gecos=no
17071
17072
17073fi
17074rm -f conftest*
17075
17076
17077fi
17078
17079echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
17080
17081if test "$wx_cv_struct_pw_gecos" = "yes"; then
17082 cat >> confdefs.h <<\EOF
17083#define HAVE_PW_GECOS 1
17084EOF
17085
17086fi
17087
17088
17089if test "$wx_cv_sizeof_wchar_t" != "0"; then
17090 cat >> confdefs.h <<\EOF
17091#define wxUSE_WCHAR_T 1
17092EOF
17093
17094
17095 WCSLEN_FOUND=0
17096 WCHAR_LINK=
17097 for ac_func in wcslen
17098do
17099echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17100echo "configure:17101: checking for $ac_func" >&5
17101if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17102 echo $ac_n "(cached) $ac_c" 1>&6
17103else
17104 cat > conftest.$ac_ext <<EOF
17105#line 17106 "configure"
17106#include "confdefs.h"
17107/* System header to define __stub macros and hopefully few prototypes,
17108 which can conflict with char $ac_func(); below. */
17109#include <assert.h>
17110/* Override any gcc2 internal prototype to avoid an error. */
17111/* We use char because int might match the return type of a gcc2
17112 builtin and then its argument prototype would still apply. */
17113char $ac_func();
17114
17115int main() {
17116
17117/* The GNU C library defines this for functions which it implements
17118 to always fail with ENOSYS. Some functions are actually named
17119 something starting with __ and the normal name is an alias. */
17120#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17121choke me
17122#else
17123$ac_func();
17124#endif
17125
17126; return 0; }
17127EOF
17128if { (eval echo configure:17129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17129 rm -rf conftest*
17130 eval "ac_cv_func_$ac_func=yes"
17131else
17132 echo "configure: failed program was:" >&5
17133 cat conftest.$ac_ext >&5
17134 rm -rf conftest*
17135 eval "ac_cv_func_$ac_func=no"
17136fi
17137rm -f conftest*
17138fi
17139
17140if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17141 echo "$ac_t""yes" 1>&6
17142 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17143 cat >> confdefs.h <<EOF
17144#define $ac_tr_func 1
17145EOF
17146 WCSLEN_FOUND=1
17147else
17148 echo "$ac_t""no" 1>&6
17149fi
17150done
17151
17152
17153 if test "$WCSLEN_FOUND" = 0; then
17154 if test "$TOOLKIT" = "MSW"; then
17155 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
17156echo "configure:17157: checking for wcslen in -lmsvcrt" >&5
17157ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
17158if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17159 echo $ac_n "(cached) $ac_c" 1>&6
17160else
17161 ac_save_LIBS="$LIBS"
17162LIBS="-lmsvcrt $LIBS"
17163cat > conftest.$ac_ext <<EOF
17164#line 17165 "configure"
17165#include "confdefs.h"
17166/* Override any gcc2 internal prototype to avoid an error. */
17167/* We use char because int might match the return type of a gcc2
17168 builtin and then its argument prototype would still apply. */
17169char wcslen();
17170
17171int main() {
17172wcslen()
17173; return 0; }
17174EOF
17175if { (eval echo configure:17176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17176 rm -rf conftest*
17177 eval "ac_cv_lib_$ac_lib_var=yes"
17178else
17179 echo "configure: failed program was:" >&5
17180 cat conftest.$ac_ext >&5
17181 rm -rf conftest*
17182 eval "ac_cv_lib_$ac_lib_var=no"
17183fi
17184rm -f conftest*
17185LIBS="$ac_save_LIBS"
17186
17187fi
17188if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17189 echo "$ac_t""yes" 1>&6
17190 WCHAR_OK=1
17191else
17192 echo "$ac_t""no" 1>&6
17193fi
17194
17195 else
17196 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
17197echo "configure:17198: checking for wcslen in -lw" >&5
17198ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
17199if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17200 echo $ac_n "(cached) $ac_c" 1>&6
17201else
17202 ac_save_LIBS="$LIBS"
17203LIBS="-lw $LIBS"
17204cat > conftest.$ac_ext <<EOF
17205#line 17206 "configure"
17206#include "confdefs.h"
17207/* Override any gcc2 internal prototype to avoid an error. */
17208/* We use char because int might match the return type of a gcc2
17209 builtin and then its argument prototype would still apply. */
17210char wcslen();
17211
17212int main() {
17213wcslen()
17214; return 0; }
17215EOF
17216if { (eval echo configure:17217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17217 rm -rf conftest*
17218 eval "ac_cv_lib_$ac_lib_var=yes"
17219else
17220 echo "configure: failed program was:" >&5
17221 cat conftest.$ac_ext >&5
17222 rm -rf conftest*
17223 eval "ac_cv_lib_$ac_lib_var=no"
17224fi
17225rm -f conftest*
17226LIBS="$ac_save_LIBS"
17227
17228fi
17229if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17230 echo "$ac_t""yes" 1>&6
17231
17232 WCHAR_LINK=" -lw"
17233 WCSLEN_FOUND=1
17234
17235else
17236 echo "$ac_t""no" 1>&6
17237fi
17238
17239 fi
17240 fi
17241
17242 if test "$WCSLEN_FOUND" = 1; then
17243 cat >> confdefs.h <<\EOF
17244#define HAVE_WCSLEN 1
17245EOF
17246
17247 fi
17248
17249 for ac_func in wcsrtombs
17250do
17251echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17252echo "configure:17253: checking for $ac_func" >&5
17253if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17254 echo $ac_n "(cached) $ac_c" 1>&6
17255else
17256 cat > conftest.$ac_ext <<EOF
17257#line 17258 "configure"
17258#include "confdefs.h"
17259/* System header to define __stub macros and hopefully few prototypes,
17260 which can conflict with char $ac_func(); below. */
17261#include <assert.h>
17262/* Override any gcc2 internal prototype to avoid an error. */
17263/* We use char because int might match the return type of a gcc2
17264 builtin and then its argument prototype would still apply. */
17265char $ac_func();
17266
17267int main() {
17268
17269/* The GNU C library defines this for functions which it implements
17270 to always fail with ENOSYS. Some functions are actually named
17271 something starting with __ and the normal name is an alias. */
17272#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17273choke me
17274#else
17275$ac_func();
17276#endif
17277
17278; return 0; }
17279EOF
17280if { (eval echo configure:17281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17281 rm -rf conftest*
17282 eval "ac_cv_func_$ac_func=yes"
17283else
17284 echo "configure: failed program was:" >&5
17285 cat conftest.$ac_ext >&5
17286 rm -rf conftest*
17287 eval "ac_cv_func_$ac_func=no"
17288fi
17289rm -f conftest*
17290fi
17291
17292if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17293 echo "$ac_t""yes" 1>&6
17294 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17295 cat >> confdefs.h <<EOF
17296#define $ac_tr_func 1
17297EOF
17298
17299else
17300 echo "$ac_t""no" 1>&6
17301fi
17302done
17303
17304else
17305 echo "configure: warning: Wide character support is unavailable" 1>&2
17306fi
17307
17308
17309ac_ext=C
17310# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17311ac_cpp='$CXXCPP $CPPFLAGS'
17312ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17313ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17314cross_compiling=$ac_cv_prog_cxx_cross
17315
17316
17317for ac_func in vsnprintf
17318do
17319echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17320echo "configure:17321: checking for $ac_func" >&5
17321if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17322 echo $ac_n "(cached) $ac_c" 1>&6
17323else
17324 cat > conftest.$ac_ext <<EOF
17325#line 17326 "configure"
17326#include "confdefs.h"
17327/* System header to define __stub macros and hopefully few prototypes,
17328 which can conflict with char $ac_func(); below. */
17329#include <assert.h>
17330/* Override any gcc2 internal prototype to avoid an error. */
17331#ifdef __cplusplus
17332extern "C"
17333#endif
17334/* We use char because int might match the return type of a gcc2
17335 builtin and then its argument prototype would still apply. */
17336char $ac_func();
17337
17338int main() {
17339
17340/* The GNU C library defines this for functions which it implements
17341 to always fail with ENOSYS. Some functions are actually named
17342 something starting with __ and the normal name is an alias. */
17343#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17344choke me
17345#else
17346$ac_func();
17347#endif
17348
17349; return 0; }
17350EOF
17351if { (eval echo configure:17352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17352 rm -rf conftest*
17353 eval "ac_cv_func_$ac_func=yes"
17354else
17355 echo "configure: failed program was:" >&5
17356 cat conftest.$ac_ext >&5
17357 rm -rf conftest*
17358 eval "ac_cv_func_$ac_func=no"
17359fi
17360rm -f conftest*
17361fi
17362
17363if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17364 echo "$ac_t""yes" 1>&6
17365 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17366 cat >> confdefs.h <<EOF
17367#define $ac_tr_func 1
17368EOF
17369
17370else
17371 echo "$ac_t""no" 1>&6
17372fi
17373done
17374
17375
17376if test "$ac_cv_func_vsnprintf" = "yes"; then
17377 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
17378echo "configure:17379: checking for vsnprintf declaration" >&5
17379if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then
17380 echo $ac_n "(cached) $ac_c" 1>&6
17381else
17382
17383 cat > conftest.$ac_ext <<EOF
17384#line 17385 "configure"
17385#include "confdefs.h"
17386
17387 #include <stdio.h>
17388 #include <stdarg.h>
17389
17390int main() {
17391
17392 char *buf;
17393 va_list ap;
17394 vsnprintf(buf, 10u, "%s", ap);
17395
17396; return 0; }
17397EOF
17398if { (eval echo configure:17399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17399 rm -rf conftest*
17400 wx_cv_func_vsnprintf_decl=yes
17401else
17402 echo "configure: failed program was:" >&5
17403 cat conftest.$ac_ext >&5
17404 rm -rf conftest*
17405 wx_cv_func_vsnprintf_decl=no
17406
17407fi
17408rm -f conftest*
17409
17410
17411fi
17412
17413echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6
17414
17415 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
17416 cat >> confdefs.h <<\EOF
17417#define HAVE_VSNPRINTF_DECL 1
17418EOF
17419
17420 fi
17421fi
17422
17423if test "$wxUSE_UNICODE" = yes; then
17424 for ac_func in fputwc wprintf vswprintf
17425do
17426echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17427echo "configure:17428: checking for $ac_func" >&5
17428if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17429 echo $ac_n "(cached) $ac_c" 1>&6
17430else
17431 cat > conftest.$ac_ext <<EOF
17432#line 17433 "configure"
17433#include "confdefs.h"
17434/* System header to define __stub macros and hopefully few prototypes,
17435 which can conflict with char $ac_func(); below. */
17436#include <assert.h>
17437/* Override any gcc2 internal prototype to avoid an error. */
17438#ifdef __cplusplus
17439extern "C"
17440#endif
17441/* We use char because int might match the return type of a gcc2
17442 builtin and then its argument prototype would still apply. */
17443char $ac_func();
17444
17445int main() {
17446
17447/* The GNU C library defines this for functions which it implements
17448 to always fail with ENOSYS. Some functions are actually named
17449 something starting with __ and the normal name is an alias. */
17450#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17451choke me
17452#else
17453$ac_func();
17454#endif
17455
17456; return 0; }
17457EOF
17458if { (eval echo configure:17459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17459 rm -rf conftest*
17460 eval "ac_cv_func_$ac_func=yes"
17461else
17462 echo "configure: failed program was:" >&5
17463 cat conftest.$ac_ext >&5
17464 rm -rf conftest*
17465 eval "ac_cv_func_$ac_func=no"
17466fi
17467rm -f conftest*
17468fi
17469
17470if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17471 echo "$ac_t""yes" 1>&6
17472 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17473 cat >> confdefs.h <<EOF
17474#define $ac_tr_func 1
17475EOF
17476
17477else
17478 echo "$ac_t""no" 1>&6
17479fi
17480done
17481
17482
17483 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
17484echo "configure:17485: checking for _vsnwprintf" >&5
17485 cat > conftest.$ac_ext <<EOF
17486#line 17487 "configure"
17487#include "confdefs.h"
17488#include <wchar.h>
17489int main() {
17490&_vsnwprintf;
17491; return 0; }
17492EOF
17493if { (eval echo configure:17494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17494 rm -rf conftest*
17495 echo "$ac_t""yes" 1>&6
17496 cat >> confdefs.h <<\EOF
17497#define HAVE__VSNWPRINTF 1
17498EOF
17499
17500else
17501 echo "configure: failed program was:" >&5
17502 cat conftest.$ac_ext >&5
17503 rm -rf conftest*
17504 echo "$ac_t""no" 1>&6
17505fi
17506rm -f conftest*;
17507fi
17508
17509ac_ext=c
17510# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17511ac_cpp='$CPP $CPPFLAGS'
17512ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17513ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17514cross_compiling=$ac_cv_prog_cc_cross
17515
17516
17517
17518
17519if test "$TOOLKIT" != "MSW"; then
17520
17521
17522
17523ac_ext=C
17524# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17525ac_cpp='$CXXCPP $CPPFLAGS'
17526ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17527ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17528cross_compiling=$ac_cv_prog_cxx_cross
17529
17530
17531
17532 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
17533if test "${with_libiconv_prefix+set}" = set; then
17534 withval="$with_libiconv_prefix"
17535
17536 for dir in `echo "$withval" | tr : ' '`; do
17537 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17538 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17539 done
17540
17541fi
17542
17543
17544 echo $ac_n "checking for iconv""... $ac_c" 1>&6
17545echo "configure:17546: checking for iconv" >&5
17546if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17547 echo $ac_n "(cached) $ac_c" 1>&6
17548else
17549
17550 am_cv_func_iconv="no, consider installing GNU libiconv"
17551 am_cv_lib_iconv=no
17552 cat > conftest.$ac_ext <<EOF
17553#line 17554 "configure"
17554#include "confdefs.h"
17555#include <stdlib.h>
17556#include <iconv.h>
17557int main() {
17558iconv_t cd = iconv_open("","");
17559 iconv(cd,NULL,NULL,NULL,NULL);
17560 iconv_close(cd);
17561; return 0; }
17562EOF
17563if { (eval echo configure:17564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17564 rm -rf conftest*
17565 am_cv_func_iconv=yes
17566else
17567 echo "configure: failed program was:" >&5
17568 cat conftest.$ac_ext >&5
17569fi
17570rm -f conftest*
17571 if test "$am_cv_func_iconv" != yes; then
17572 am_save_LIBS="$LIBS"
17573 LIBS="$LIBS -liconv"
17574 cat > conftest.$ac_ext <<EOF
17575#line 17576 "configure"
17576#include "confdefs.h"
17577#include <stdlib.h>
17578#include <iconv.h>
17579int main() {
17580iconv_t cd = iconv_open("","");
17581 iconv(cd,NULL,NULL,NULL,NULL);
17582 iconv_close(cd);
17583; return 0; }
17584EOF
17585if { (eval echo configure:17586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17586 rm -rf conftest*
17587 am_cv_lib_iconv=yes
17588 am_cv_func_iconv=yes
17589else
17590 echo "configure: failed program was:" >&5
17591 cat conftest.$ac_ext >&5
17592fi
17593rm -f conftest*
17594 LIBS="$am_save_LIBS"
17595 fi
17596
17597fi
17598
17599echo "$ac_t""$am_cv_func_iconv" 1>&6
17600 if test "$am_cv_func_iconv" = yes; then
17601 cat >> confdefs.h <<\EOF
17602#define HAVE_ICONV 1
17603EOF
17604
17605 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
17606echo "configure:17607: checking if iconv needs const" >&5
17607if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17608 echo $ac_n "(cached) $ac_c" 1>&6
17609else
17610 cat > conftest.$ac_ext <<EOF
17611#line 17612 "configure"
17612#include "confdefs.h"
17613
17614#include <stdlib.h>
17615#include <iconv.h>
17616extern
17617#ifdef __cplusplus
17618"C"
17619#endif
17620#if defined(__STDC__) || defined(__cplusplus)
17621size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17622#else
17623size_t iconv();
17624#endif
17625
17626int main() {
17627
17628; return 0; }
17629EOF
17630if { (eval echo configure:17631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17631 rm -rf conftest*
17632 wx_cv_func_iconv_const="no"
17633else
17634 echo "configure: failed program was:" >&5
17635 cat conftest.$ac_ext >&5
17636 rm -rf conftest*
17637 wx_cv_func_iconv_const="yes"
17638
17639fi
17640rm -f conftest*
17641
17642fi
17643
17644echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
17645
17646 iconv_const=
17647 if test "x$wx_cv_func_iconv_const" = "xyes"; then
17648 iconv_const="const"
17649 fi
17650
17651 cat >> confdefs.h <<EOF
17652#define ICONV_CONST $iconv_const
17653EOF
17654
17655 fi
17656 LIBICONV=
17657 if test "$am_cv_lib_iconv" = yes; then
17658 LIBICONV="-liconv"
17659 fi
17660
17661
17662LIBS="$LIBICONV $LIBS"
17663ac_ext=c
17664# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17665ac_cpp='$CPP $CPPFLAGS'
17666ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17667ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17668cross_compiling=$ac_cv_prog_cc_cross
17669
17670
17671if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
17672 for ac_func in sigaction
17673do
17674echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17675echo "configure:17676: checking for $ac_func" >&5
17676if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17677 echo $ac_n "(cached) $ac_c" 1>&6
17678else
17679 cat > conftest.$ac_ext <<EOF
17680#line 17681 "configure"
17681#include "confdefs.h"
17682/* System header to define __stub macros and hopefully few prototypes,
17683 which can conflict with char $ac_func(); below. */
17684#include <assert.h>
17685/* Override any gcc2 internal prototype to avoid an error. */
17686/* We use char because int might match the return type of a gcc2
17687 builtin and then its argument prototype would still apply. */
17688char $ac_func();
17689
17690int main() {
17691
17692/* The GNU C library defines this for functions which it implements
17693 to always fail with ENOSYS. Some functions are actually named
17694 something starting with __ and the normal name is an alias. */
17695#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17696choke me
17697#else
17698$ac_func();
17699#endif
17700
17701; return 0; }
17702EOF
17703if { (eval echo configure:17704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17704 rm -rf conftest*
17705 eval "ac_cv_func_$ac_func=yes"
17706else
17707 echo "configure: failed program was:" >&5
17708 cat conftest.$ac_ext >&5
17709 rm -rf conftest*
17710 eval "ac_cv_func_$ac_func=no"
17711fi
17712rm -f conftest*
17713fi
17714
17715if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17716 echo "$ac_t""yes" 1>&6
17717 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17718 cat >> confdefs.h <<EOF
17719#define $ac_tr_func 1
17720EOF
17721
17722else
17723 echo "$ac_t""no" 1>&6
17724fi
17725done
17726
17727
17728 if test "$ac_cv_func_sigaction" = "no"; then
17729 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
17730 wxUSE_ON_FATAL_EXCEPTION=no
17731 fi
17732
17733 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
17734
17735 ac_ext=C
17736# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17737ac_cpp='$CXXCPP $CPPFLAGS'
17738ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17739ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17740cross_compiling=$ac_cv_prog_cxx_cross
17741
17742
17743 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
17744echo "configure:17745: checking for sa_handler type" >&5
17745if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17746 echo $ac_n "(cached) $ac_c" 1>&6
17747else
17748
17749 cat > conftest.$ac_ext <<EOF
17750#line 17751 "configure"
17751#include "confdefs.h"
17752#include <signal.h>
17753int main() {
17754
17755 extern void testSigHandler(int);
17756
17757 struct sigaction sa;
17758 sa.sa_handler = testSigHandler;
17759
17760; return 0; }
17761EOF
17762if { (eval echo configure:17763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17763 rm -rf conftest*
17764
17765 wx_cv_type_sa_handler=int
17766
17767else
17768 echo "configure: failed program was:" >&5
17769 cat conftest.$ac_ext >&5
17770 rm -rf conftest*
17771
17772 wx_cv_type_sa_handler=void
17773
17774fi
17775rm -f conftest*
17776
17777fi
17778
17779echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
17780
17781 ac_ext=c
17782# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17783ac_cpp='$CPP $CPPFLAGS'
17784ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17785ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17786cross_compiling=$ac_cv_prog_cc_cross
17787
17788
17789 cat >> confdefs.h <<EOF
17790#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
17791EOF
17792
17793 fi
17794fi
17795
17796for ac_func in mkstemp mktemp
17797do
17798echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17799echo "configure:17800: checking for $ac_func" >&5
17800if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17801 echo $ac_n "(cached) $ac_c" 1>&6
17802else
17803 cat > conftest.$ac_ext <<EOF
17804#line 17805 "configure"
17805#include "confdefs.h"
17806/* System header to define __stub macros and hopefully few prototypes,
17807 which can conflict with char $ac_func(); below. */
17808#include <assert.h>
17809/* Override any gcc2 internal prototype to avoid an error. */
17810/* We use char because int might match the return type of a gcc2
17811 builtin and then its argument prototype would still apply. */
17812char $ac_func();
17813
17814int main() {
17815
17816/* The GNU C library defines this for functions which it implements
17817 to always fail with ENOSYS. Some functions are actually named
17818 something starting with __ and the normal name is an alias. */
17819#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17820choke me
17821#else
17822$ac_func();
17823#endif
17824
17825; return 0; }
17826EOF
17827if { (eval echo configure:17828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17828 rm -rf conftest*
17829 eval "ac_cv_func_$ac_func=yes"
17830else
17831 echo "configure: failed program was:" >&5
17832 cat conftest.$ac_ext >&5
17833 rm -rf conftest*
17834 eval "ac_cv_func_$ac_func=no"
17835fi
17836rm -f conftest*
17837fi
17838
17839if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17840 echo "$ac_t""yes" 1>&6
17841 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17842 cat >> confdefs.h <<EOF
17843#define $ac_tr_func 1
17844EOF
17845 break
17846else
17847 echo "$ac_t""no" 1>&6
17848fi
17849done
17850
17851
17852echo $ac_n "checking for statfs""... $ac_c" 1>&6
17853echo "configure:17854: checking for statfs" >&5
17854if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17855 echo $ac_n "(cached) $ac_c" 1>&6
17856else
17857 cat > conftest.$ac_ext <<EOF
17858#line 17859 "configure"
17859#include "confdefs.h"
17860
17861 #if defined(__BSD__)
17862 #include <sys/param.h>
17863 #include <sys/mount.h>
17864 #else
17865 #include <sys/vfs.h>
17866 #endif
17867
17868int main() {
17869
17870 long l;
17871 struct statfs fs;
17872 statfs("/", &fs);
17873 l = fs.f_bsize;
17874 l += fs.f_blocks;
17875 l += fs.f_bavail;
17876
17877; return 0; }
17878EOF
17879if { (eval echo configure:17880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17880 rm -rf conftest*
17881
17882 wx_cv_func_statfs=yes
17883
17884else
17885 echo "configure: failed program was:" >&5
17886 cat conftest.$ac_ext >&5
17887 rm -rf conftest*
17888
17889 wx_cv_func_statfs=no
17890
17891
17892fi
17893rm -f conftest*
17894
17895fi
17896
17897echo "$ac_t""$wx_cv_func_statfs" 1>&6
17898
17899if test "$wx_cv_func_statfs" = "yes"; then
17900 wx_cv_type_statvfs_t="struct statfs"
17901 cat >> confdefs.h <<\EOF
17902#define HAVE_STATFS 1
17903EOF
17904
17905else
17906 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
17907echo "configure:17908: checking for statvfs" >&5
17908if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17909 echo $ac_n "(cached) $ac_c" 1>&6
17910else
17911 cat > conftest.$ac_ext <<EOF
17912#line 17913 "configure"
17913#include "confdefs.h"
17914
17915 #include <stddef.h>
17916 #include <sys/statvfs.h>
17917
17918int main() {
17919
17920 statvfs("/", NULL);
17921
17922; return 0; }
17923EOF
17924if { (eval echo configure:17925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17925 rm -rf conftest*
17926 wx_cv_func_statvfs=yes
17927else
17928 echo "configure: failed program was:" >&5
17929 cat conftest.$ac_ext >&5
17930 rm -rf conftest*
17931 wx_cv_func_statvfs=no
17932
17933fi
17934rm -f conftest*
17935
17936fi
17937
17938echo "$ac_t""$wx_cv_func_statvfs" 1>&6
17939
17940 if test "$wx_cv_func_statvfs" = "yes"; then
17941
17942 ac_ext=C
17943# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17944ac_cpp='$CXXCPP $CPPFLAGS'
17945ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17946ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17947cross_compiling=$ac_cv_prog_cxx_cross
17948
17949
17950 echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
17951echo "configure:17952: checking for statvfs argument type" >&5
17952if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
17953 echo $ac_n "(cached) $ac_c" 1>&6
17954else
17955 cat > conftest.$ac_ext <<EOF
17956#line 17957 "configure"
17957#include "confdefs.h"
17958
17959 #include <sys/statvfs.h>
17960
17961int main() {
17962
17963 long l;
17964 statvfs_t fs;
17965 statvfs("/", &fs);
17966 l = fs.f_bsize;
17967 l += fs.f_blocks;
17968 l += fs.f_bavail;
17969
17970; return 0; }
17971EOF
17972if { (eval echo configure:17973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17973 rm -rf conftest*
17974 wx_cv_type_statvfs_t=statvfs_t
17975else
17976 echo "configure: failed program was:" >&5
17977 cat conftest.$ac_ext >&5
17978 rm -rf conftest*
17979
17980 cat > conftest.$ac_ext <<EOF
17981#line 17982 "configure"
17982#include "confdefs.h"
17983
17984 #include <sys/statvfs.h>
17985
17986int main() {
17987
17988 long l;
17989 struct statvfs fs;
17990 statvfs("/", &fs);
17991 l = fs.f_bsize;
17992 l += fs.f_blocks;
17993 l += fs.f_bavail;
17994
17995; return 0; }
17996EOF
17997if { (eval echo configure:17998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17998 rm -rf conftest*
17999 wx_cv_type_statvfs_t="struct statvfs"
18000else
18001 echo "configure: failed program was:" >&5
18002 cat conftest.$ac_ext >&5
18003 rm -rf conftest*
18004 wx_cv_type_statvfs_t="unknown"
18005
18006fi
18007rm -f conftest*
18008
18009
18010fi
18011rm -f conftest*
18012
18013fi
18014
18015echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
18016
18017 ac_ext=c
18018# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18019ac_cpp='$CPP $CPPFLAGS'
18020ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18021ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18022cross_compiling=$ac_cv_prog_cc_cross
18023
18024
18025 if test "$wx_cv_type_statvfs_t" != "unknown"; then
18026 cat >> confdefs.h <<\EOF
18027#define HAVE_STATVFS 1
18028EOF
18029
18030 fi
18031 else
18032 wx_cv_type_statvfs_t="unknown"
18033 fi
18034fi
18035
18036if test "$wx_cv_type_statvfs_t" != "unknown"; then
18037 cat >> confdefs.h <<EOF
18038#define WX_STATFS_T $wx_cv_type_statvfs_t
18039EOF
18040
18041else
18042 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
18043fi
18044
18045if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
18046 for ac_func in fcntl flock
18047do
18048echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18049echo "configure:18050: checking for $ac_func" >&5
18050if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18051 echo $ac_n "(cached) $ac_c" 1>&6
18052else
18053 cat > conftest.$ac_ext <<EOF
18054#line 18055 "configure"
18055#include "confdefs.h"
18056/* System header to define __stub macros and hopefully few prototypes,
18057 which can conflict with char $ac_func(); below. */
18058#include <assert.h>
18059/* Override any gcc2 internal prototype to avoid an error. */
18060/* We use char because int might match the return type of a gcc2
18061 builtin and then its argument prototype would still apply. */
18062char $ac_func();
18063
18064int main() {
18065
18066/* The GNU C library defines this for functions which it implements
18067 to always fail with ENOSYS. Some functions are actually named
18068 something starting with __ and the normal name is an alias. */
18069#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18070choke me
18071#else
18072$ac_func();
18073#endif
18074
18075; return 0; }
18076EOF
18077if { (eval echo configure:18078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18078 rm -rf conftest*
18079 eval "ac_cv_func_$ac_func=yes"
18080else
18081 echo "configure: failed program was:" >&5
18082 cat conftest.$ac_ext >&5
18083 rm -rf conftest*
18084 eval "ac_cv_func_$ac_func=no"
18085fi
18086rm -f conftest*
18087fi
18088
18089if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18090 echo "$ac_t""yes" 1>&6
18091 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18092 cat >> confdefs.h <<EOF
18093#define $ac_tr_func 1
18094EOF
18095 break
18096else
18097 echo "$ac_t""no" 1>&6
18098fi
18099done
18100
18101
18102 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
18103 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
18104 wxUSE_SNGLINST_CHECKER=no
18105 fi
18106fi
18107
18108for ac_func in timegm
18109do
18110echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18111echo "configure:18112: checking for $ac_func" >&5
18112if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18113 echo $ac_n "(cached) $ac_c" 1>&6
18114else
18115 cat > conftest.$ac_ext <<EOF
18116#line 18117 "configure"
18117#include "confdefs.h"
18118/* System header to define __stub macros and hopefully few prototypes,
18119 which can conflict with char $ac_func(); below. */
18120#include <assert.h>
18121/* Override any gcc2 internal prototype to avoid an error. */
18122/* We use char because int might match the return type of a gcc2
18123 builtin and then its argument prototype would still apply. */
18124char $ac_func();
18125
18126int main() {
18127
18128/* The GNU C library defines this for functions which it implements
18129 to always fail with ENOSYS. Some functions are actually named
18130 something starting with __ and the normal name is an alias. */
18131#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18132choke me
18133#else
18134$ac_func();
18135#endif
18136
18137; return 0; }
18138EOF
18139if { (eval echo configure:18140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18140 rm -rf conftest*
18141 eval "ac_cv_func_$ac_func=yes"
18142else
18143 echo "configure: failed program was:" >&5
18144 cat conftest.$ac_ext >&5
18145 rm -rf conftest*
18146 eval "ac_cv_func_$ac_func=no"
18147fi
18148rm -f conftest*
18149fi
18150
18151if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18152 echo "$ac_t""yes" 1>&6
18153 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18154 cat >> confdefs.h <<EOF
18155#define $ac_tr_func 1
18156EOF
18157
18158else
18159 echo "$ac_t""no" 1>&6
18160fi
18161done
18162
18163
18164for ac_func in putenv setenv
18165do
18166echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18167echo "configure:18168: checking for $ac_func" >&5
18168if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18169 echo $ac_n "(cached) $ac_c" 1>&6
18170else
18171 cat > conftest.$ac_ext <<EOF
18172#line 18173 "configure"
18173#include "confdefs.h"
18174/* System header to define __stub macros and hopefully few prototypes,
18175 which can conflict with char $ac_func(); below. */
18176#include <assert.h>
18177/* Override any gcc2 internal prototype to avoid an error. */
18178/* We use char because int might match the return type of a gcc2
18179 builtin and then its argument prototype would still apply. */
18180char $ac_func();
18181
18182int main() {
18183
18184/* The GNU C library defines this for functions which it implements
18185 to always fail with ENOSYS. Some functions are actually named
18186 something starting with __ and the normal name is an alias. */
18187#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18188choke me
18189#else
18190$ac_func();
18191#endif
18192
18193; return 0; }
18194EOF
18195if { (eval echo configure:18196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18196 rm -rf conftest*
18197 eval "ac_cv_func_$ac_func=yes"
18198else
18199 echo "configure: failed program was:" >&5
18200 cat conftest.$ac_ext >&5
18201 rm -rf conftest*
18202 eval "ac_cv_func_$ac_func=no"
18203fi
18204rm -f conftest*
18205fi
18206
18207if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18208 echo "$ac_t""yes" 1>&6
18209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18210 cat >> confdefs.h <<EOF
18211#define $ac_tr_func 1
18212EOF
18213 break
18214else
18215 echo "$ac_t""no" 1>&6
18216fi
18217done
18218
18219
18220HAVE_SOME_SLEEP_FUNC=0
18221if test "$USE_BEOS" = 1; then
18222 cat >> confdefs.h <<\EOF
18223#define HAVE_SLEEP 1
18224EOF
18225
18226 HAVE_SOME_SLEEP_FUNC=1
18227fi
18228
18229if test "$USE_DARWIN" = 1; then
18230 cat >> confdefs.h <<\EOF
18231#define HAVE_USLEEP 1
18232EOF
18233
18234 HAVE_SOME_SLEEP_FUNC=1
18235fi
18236
18237if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
18238 POSIX4_LINK=
18239 for ac_func in nanosleep
18240do
18241echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18242echo "configure:18243: checking for $ac_func" >&5
18243if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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,
18250 which can conflict with char $ac_func(); below. */
18251#include <assert.h>
18252/* Override any gcc2 internal prototype to avoid an error. */
18253/* We use char because int might match the return type of a gcc2
18254 builtin and then its argument prototype would still apply. */
18255char $ac_func();
18256
18257int main() {
18258
18259/* The GNU C library defines this for functions which it implements
18260 to always fail with ENOSYS. Some functions are actually named
18261 something starting with __ and the normal name is an alias. */
18262#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18263choke me
18264#else
18265$ac_func();
18266#endif
18267
18268; return 0; }
18269EOF
18270if { (eval echo configure:18271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18271 rm -rf conftest*
18272 eval "ac_cv_func_$ac_func=yes"
18273else
18274 echo "configure: failed program was:" >&5
18275 cat conftest.$ac_ext >&5
18276 rm -rf conftest*
18277 eval "ac_cv_func_$ac_func=no"
18278fi
18279rm -f conftest*
18280fi
18281
18282if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18283 echo "$ac_t""yes" 1>&6
18284 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18285 cat >> confdefs.h <<EOF
18286#define $ac_tr_func 1
18287EOF
18288 cat >> confdefs.h <<\EOF
18289#define HAVE_NANOSLEEP 1
18290EOF
18291
18292else
18293 echo "$ac_t""no" 1>&6
18294echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
18295echo "configure:18296: checking for nanosleep in -lposix4" >&5
18296ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
18297if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18298 echo $ac_n "(cached) $ac_c" 1>&6
18299else
18300 ac_save_LIBS="$LIBS"
18301LIBS="-lposix4 $LIBS"
18302cat > conftest.$ac_ext <<EOF
18303#line 18304 "configure"
18304#include "confdefs.h"
18305/* Override any gcc2 internal prototype to avoid an error. */
18306/* We use char because int might match the return type of a gcc2
18307 builtin and then its argument prototype would still apply. */
18308char nanosleep();
18309
18310int main() {
18311nanosleep()
18312; return 0; }
18313EOF
18314if { (eval echo configure:18315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18315 rm -rf conftest*
18316 eval "ac_cv_lib_$ac_lib_var=yes"
18317else
18318 echo "configure: failed program was:" >&5
18319 cat conftest.$ac_ext >&5
18320 rm -rf conftest*
18321 eval "ac_cv_lib_$ac_lib_var=no"
18322fi
18323rm -f conftest*
18324LIBS="$ac_save_LIBS"
18325
18326fi
18327if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18328 echo "$ac_t""yes" 1>&6
18329
18330 cat >> confdefs.h <<\EOF
18331#define HAVE_NANOSLEEP 1
18332EOF
18333
18334 POSIX4_LINK=" -lposix4"
18335
18336else
18337 echo "$ac_t""no" 1>&6
18338
18339 for ac_func in usleep
18340do
18341echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18342echo "configure:18343: checking for $ac_func" >&5
18343if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18344 echo $ac_n "(cached) $ac_c" 1>&6
18345else
18346 cat > conftest.$ac_ext <<EOF
18347#line 18348 "configure"
18348#include "confdefs.h"
18349/* System header to define __stub macros and hopefully few prototypes,
18350 which can conflict with char $ac_func(); below. */
18351#include <assert.h>
18352/* Override any gcc2 internal prototype to avoid an error. */
18353/* We use char because int might match the return type of a gcc2
18354 builtin and then its argument prototype would still apply. */
18355char $ac_func();
18356
18357int main() {
18358
18359/* The GNU C library defines this for functions which it implements
18360 to always fail with ENOSYS. Some functions are actually named
18361 something starting with __ and the normal name is an alias. */
18362#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18363choke me
18364#else
18365$ac_func();
18366#endif
18367
18368; return 0; }
18369EOF
18370if { (eval echo configure:18371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18371 rm -rf conftest*
18372 eval "ac_cv_func_$ac_func=yes"
18373else
18374 echo "configure: failed program was:" >&5
18375 cat conftest.$ac_ext >&5
18376 rm -rf conftest*
18377 eval "ac_cv_func_$ac_func=no"
18378fi
18379rm -f conftest*
18380fi
18381
18382if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18383 echo "$ac_t""yes" 1>&6
18384 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18385 cat >> confdefs.h <<EOF
18386#define $ac_tr_func 1
18387EOF
18388 cat >> confdefs.h <<\EOF
18389#define HAVE_USLEEP 1
18390EOF
18391
18392else
18393 echo "$ac_t""no" 1>&6
18394echo "configure: warning: wxSleep() function will not work" 1>&2
18395
18396fi
18397done
18398
18399
18400
18401fi
18402
18403
18404
18405fi
18406done
18407
18408fi
18409
18410for ac_func in uname gethostname
18411do
18412echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18413echo "configure:18414: checking for $ac_func" >&5
18414if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18415 echo $ac_n "(cached) $ac_c" 1>&6
18416else
18417 cat > conftest.$ac_ext <<EOF
18418#line 18419 "configure"
18419#include "confdefs.h"
18420/* System header to define __stub macros and hopefully few prototypes,
18421 which can conflict with char $ac_func(); below. */
18422#include <assert.h>
18423/* Override any gcc2 internal prototype to avoid an error. */
18424/* We use char because int might match the return type of a gcc2
18425 builtin and then its argument prototype would still apply. */
18426char $ac_func();
18427
18428int main() {
18429
18430/* The GNU C library defines this for functions which it implements
18431 to always fail with ENOSYS. Some functions are actually named
18432 something starting with __ and the normal name is an alias. */
18433#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18434choke me
18435#else
18436$ac_func();
18437#endif
18438
18439; return 0; }
18440EOF
18441if { (eval echo configure:18442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18442 rm -rf conftest*
18443 eval "ac_cv_func_$ac_func=yes"
18444else
18445 echo "configure: failed program was:" >&5
18446 cat conftest.$ac_ext >&5
18447 rm -rf conftest*
18448 eval "ac_cv_func_$ac_func=no"
18449fi
18450rm -f conftest*
18451fi
18452
18453if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18454 echo "$ac_t""yes" 1>&6
18455 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18456 cat >> confdefs.h <<EOF
18457#define $ac_tr_func 1
18458EOF
18459 break
18460else
18461 echo "$ac_t""no" 1>&6
18462fi
18463done
18464
18465
18466
18467ac_ext=C
18468# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18469ac_cpp='$CXXCPP $CPPFLAGS'
18470ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18471ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18472cross_compiling=$ac_cv_prog_cxx_cross
18473
18474
18475for ac_func in strtok_r
18476do
18477echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18478echo "configure:18479: checking for $ac_func" >&5
18479if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18480 echo $ac_n "(cached) $ac_c" 1>&6
18481else
18482 cat > conftest.$ac_ext <<EOF
18483#line 18484 "configure"
18484#include "confdefs.h"
18485/* System header to define __stub macros and hopefully few prototypes,
18486 which can conflict with char $ac_func(); below. */
18487#include <assert.h>
18488/* Override any gcc2 internal prototype to avoid an error. */
18489#ifdef __cplusplus
18490extern "C"
18491#endif
18492/* We use char because int might match the return type of a gcc2
18493 builtin and then its argument prototype would still apply. */
18494char $ac_func();
18495
18496int main() {
18497
18498/* The GNU C library defines this for functions which it implements
18499 to always fail with ENOSYS. Some functions are actually named
18500 something starting with __ and the normal name is an alias. */
18501#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18502choke me
18503#else
18504$ac_func();
18505#endif
18506
18507; return 0; }
18508EOF
18509if { (eval echo configure:18510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18510 rm -rf conftest*
18511 eval "ac_cv_func_$ac_func=yes"
18512else
18513 echo "configure: failed program was:" >&5
18514 cat conftest.$ac_ext >&5
18515 rm -rf conftest*
18516 eval "ac_cv_func_$ac_func=no"
18517fi
18518rm -f conftest*
18519fi
18520
18521if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18522 echo "$ac_t""yes" 1>&6
18523 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18524 cat >> confdefs.h <<EOF
18525#define $ac_tr_func 1
18526EOF
18527
18528else
18529 echo "$ac_t""no" 1>&6
18530fi
18531done
18532
18533
18534ac_ext=c
18535# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18536ac_cpp='$CPP $CPPFLAGS'
18537ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18538ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18539cross_compiling=$ac_cv_prog_cc_cross
18540
18541
18542INET_LINK=
18543for ac_func in inet_addr
18544do
18545echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18546echo "configure:18547: checking for $ac_func" >&5
18547if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18548 echo $ac_n "(cached) $ac_c" 1>&6
18549else
18550 cat > conftest.$ac_ext <<EOF
18551#line 18552 "configure"
18552#include "confdefs.h"
18553/* System header to define __stub macros and hopefully few prototypes,
18554 which can conflict with char $ac_func(); below. */
18555#include <assert.h>
18556/* Override any gcc2 internal prototype to avoid an error. */
18557/* We use char because int might match the return type of a gcc2
18558 builtin and then its argument prototype would still apply. */
18559char $ac_func();
18560
18561int main() {
18562
18563/* The GNU C library defines this for functions which it implements
18564 to always fail with ENOSYS. Some functions are actually named
18565 something starting with __ and the normal name is an alias. */
18566#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18567choke me
18568#else
18569$ac_func();
18570#endif
18571
18572; return 0; }
18573EOF
18574if { (eval echo configure:18575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18575 rm -rf conftest*
18576 eval "ac_cv_func_$ac_func=yes"
18577else
18578 echo "configure: failed program was:" >&5
18579 cat conftest.$ac_ext >&5
18580 rm -rf conftest*
18581 eval "ac_cv_func_$ac_func=no"
18582fi
18583rm -f conftest*
18584fi
18585
18586if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18587 echo "$ac_t""yes" 1>&6
18588 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18589 cat >> confdefs.h <<EOF
18590#define $ac_tr_func 1
18591EOF
18592 cat >> confdefs.h <<\EOF
18593#define HAVE_INET_ADDR 1
18594EOF
18595
18596else
18597 echo "$ac_t""no" 1>&6
18598echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
18599echo "configure:18600: checking for inet_addr in -lnsl" >&5
18600ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18601if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18602 echo $ac_n "(cached) $ac_c" 1>&6
18603else
18604 ac_save_LIBS="$LIBS"
18605LIBS="-lnsl $LIBS"
18606cat > conftest.$ac_ext <<EOF
18607#line 18608 "configure"
18608#include "confdefs.h"
18609/* Override any gcc2 internal prototype to avoid an error. */
18610/* We use char because int might match the return type of a gcc2
18611 builtin and then its argument prototype would still apply. */
18612char inet_addr();
18613
18614int main() {
18615inet_addr()
18616; return 0; }
18617EOF
18618if { (eval echo configure:18619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18619 rm -rf conftest*
18620 eval "ac_cv_lib_$ac_lib_var=yes"
18621else
18622 echo "configure: failed program was:" >&5
18623 cat conftest.$ac_ext >&5
18624 rm -rf conftest*
18625 eval "ac_cv_lib_$ac_lib_var=no"
18626fi
18627rm -f conftest*
18628LIBS="$ac_save_LIBS"
18629
18630fi
18631if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18632 echo "$ac_t""yes" 1>&6
18633 INET_LINK="nsl"
18634else
18635 echo "$ac_t""no" 1>&6
18636echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
18637echo "configure:18638: checking for inet_addr in -lresolv" >&5
18638ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18639if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18640 echo $ac_n "(cached) $ac_c" 1>&6
18641else
18642 ac_save_LIBS="$LIBS"
18643LIBS="-lresolv $LIBS"
18644cat > conftest.$ac_ext <<EOF
18645#line 18646 "configure"
18646#include "confdefs.h"
18647/* Override any gcc2 internal prototype to avoid an error. */
18648/* We use char because int might match the return type of a gcc2
18649 builtin and then its argument prototype would still apply. */
18650char inet_addr();
18651
18652int main() {
18653inet_addr()
18654; return 0; }
18655EOF
18656if { (eval echo configure:18657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18657 rm -rf conftest*
18658 eval "ac_cv_lib_$ac_lib_var=yes"
18659else
18660 echo "configure: failed program was:" >&5
18661 cat conftest.$ac_ext >&5
18662 rm -rf conftest*
18663 eval "ac_cv_lib_$ac_lib_var=no"
18664fi
18665rm -f conftest*
18666LIBS="$ac_save_LIBS"
18667
18668fi
18669if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18670 echo "$ac_t""yes" 1>&6
18671 INET_LINK="resolv"
18672else
18673 echo "$ac_t""no" 1>&6
18674echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
18675echo "configure:18676: checking for inet_addr in -lsocket" >&5
18676ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18677if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18678 echo $ac_n "(cached) $ac_c" 1>&6
18679else
18680 ac_save_LIBS="$LIBS"
18681LIBS="-lsocket $LIBS"
18682cat > conftest.$ac_ext <<EOF
18683#line 18684 "configure"
18684#include "confdefs.h"
18685/* Override any gcc2 internal prototype to avoid an error. */
18686/* We use char because int might match the return type of a gcc2
18687 builtin and then its argument prototype would still apply. */
18688char inet_addr();
18689
18690int main() {
18691inet_addr()
18692; return 0; }
18693EOF
18694if { (eval echo configure:18695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18695 rm -rf conftest*
18696 eval "ac_cv_lib_$ac_lib_var=yes"
18697else
18698 echo "configure: failed program was:" >&5
18699 cat conftest.$ac_ext >&5
18700 rm -rf conftest*
18701 eval "ac_cv_lib_$ac_lib_var=no"
18702fi
18703rm -f conftest*
18704LIBS="$ac_save_LIBS"
18705
18706fi
18707if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18708 echo "$ac_t""yes" 1>&6
18709 INET_LINK="socket"
18710
18711else
18712 echo "$ac_t""no" 1>&6
18713fi
18714
18715
18716fi
18717
18718
18719fi
18720
18721
18722
18723fi
18724done
18725
18726
18727for ac_func in inet_aton
18728do
18729echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18730echo "configure:18731: checking for $ac_func" >&5
18731if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18732 echo $ac_n "(cached) $ac_c" 1>&6
18733else
18734 cat > conftest.$ac_ext <<EOF
18735#line 18736 "configure"
18736#include "confdefs.h"
18737/* System header to define __stub macros and hopefully few prototypes,
18738 which can conflict with char $ac_func(); below. */
18739#include <assert.h>
18740/* Override any gcc2 internal prototype to avoid an error. */
18741/* We use char because int might match the return type of a gcc2
18742 builtin and then its argument prototype would still apply. */
18743char $ac_func();
18744
18745int main() {
18746
18747/* The GNU C library defines this for functions which it implements
18748 to always fail with ENOSYS. Some functions are actually named
18749 something starting with __ and the normal name is an alias. */
18750#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18751choke me
18752#else
18753$ac_func();
18754#endif
18755
18756; return 0; }
18757EOF
18758if { (eval echo configure:18759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18759 rm -rf conftest*
18760 eval "ac_cv_func_$ac_func=yes"
18761else
18762 echo "configure: failed program was:" >&5
18763 cat conftest.$ac_ext >&5
18764 rm -rf conftest*
18765 eval "ac_cv_func_$ac_func=no"
18766fi
18767rm -f conftest*
18768fi
18769
18770if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18771 echo "$ac_t""yes" 1>&6
18772 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18773 cat >> confdefs.h <<EOF
18774#define $ac_tr_func 1
18775EOF
18776 cat >> confdefs.h <<\EOF
18777#define HAVE_INET_ATON 1
18778EOF
18779
18780else
18781 echo "$ac_t""no" 1>&6
18782 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
18783echo "configure:18784: checking for inet_aton in -l$INET_LINK" >&5
18784ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18785if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18786 echo $ac_n "(cached) $ac_c" 1>&6
18787else
18788 ac_save_LIBS="$LIBS"
18789LIBS="-l$INET_LINK $LIBS"
18790cat > conftest.$ac_ext <<EOF
18791#line 18792 "configure"
18792#include "confdefs.h"
18793/* Override any gcc2 internal prototype to avoid an error. */
18794/* We use char because int might match the return type of a gcc2
18795 builtin and then its argument prototype would still apply. */
18796char inet_aton();
18797
18798int main() {
18799inet_aton()
18800; return 0; }
18801EOF
18802if { (eval echo configure:18803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18803 rm -rf conftest*
18804 eval "ac_cv_lib_$ac_lib_var=yes"
18805else
18806 echo "configure: failed program was:" >&5
18807 cat conftest.$ac_ext >&5
18808 rm -rf conftest*
18809 eval "ac_cv_lib_$ac_lib_var=no"
18810fi
18811rm -f conftest*
18812LIBS="$ac_save_LIBS"
18813
18814fi
18815if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18816 echo "$ac_t""yes" 1>&6
18817 cat >> confdefs.h <<\EOF
18818#define HAVE_INET_ATON 1
18819EOF
18820
18821else
18822 echo "$ac_t""no" 1>&6
18823fi
18824
18825
18826fi
18827done
18828
18829
18830if test "x$INET_LINK" != "x"; then
18831 cat >> confdefs.h <<\EOF
18832#define HAVE_INET_ADDR 1
18833EOF
18834
18835 INET_LINK=" -l$INET_LINK"
18836fi
18837
18838fi
18839
18840
18841cat > confcache <<\EOF
18842# This file is a shell script that caches the results of configure
18843# tests run on this system so they can be shared between configure
18844# scripts and configure runs. It is not useful on other systems.
18845# If it contains results you don't want to keep, you may remove or edit it.
18846#
18847# By default, configure uses ./config.cache as the cache file,
18848# creating it if it does not exist already. You can give configure
18849# the --cache-file=FILE option to use a different cache file; that is
18850# what configure does when it calls configure scripts in
18851# subdirectories, so they share the cache.
18852# Giving --cache-file=/dev/null disables caching, for debugging configure.
18853# config.status only pays attention to the cache file if you give it the
18854# --recheck option to rerun configure.
18855#
18856EOF
18857# The following way of writing the cache mishandles newlines in values,
18858# but we know of no workaround that is simple, portable, and efficient.
18859# So, don't put newlines in cache variables' values.
18860# Ultrix sh set writes to stderr and can't be redirected directly,
18861# and sets the high bit in the cache file unless we assign to the vars.
18862(set) 2>&1 |
18863 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18864 *ac_space=\ *)
18865 # `set' does not quote correctly, so add quotes (double-quote substitution
18866 # turns \\\\ into \\, and sed turns \\ into \).
18867 sed -n \
18868 -e "s/'/'\\\\''/g" \
18869 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18870 ;;
18871 *)
18872 # `set' quotes correctly as required by POSIX, so do not add quotes.
18873 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18874 ;;
18875 esac >> confcache
18876if cmp -s $cache_file confcache; then
18877 :
18878else
18879 if test -w $cache_file; then
18880 echo "updating cache $cache_file"
18881 cat confcache > $cache_file
18882 else
18883 echo "not updating unwritable cache $cache_file"
18884 fi
18885fi
18886rm -f confcache
18887
18888
18889
18890CPP_MT_FLAG=
18891if test "$TOOLKIT" != "MSW"; then
18892
18893
18894 THREADS_LINK=
18895 THREADS_CFLAGS=
18896
18897 if test "$wxUSE_THREADS" = "yes" ; then
18898 if test "$USE_BEOS" = 1; then
18899 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
18900 wxUSE_THREADS="no"
18901 fi
18902 fi
18903
18904 if test "$wxUSE_THREADS" = "yes" ; then
18905
18906
18907 THREAD_OPTS="-pthread"
18908 case "${host}" in
18909 *-*-solaris2* | *-*-sunos4* )
18910 if test "x$GCC" = "xyes"; then
18911 THREAD_OPTS="-pthreads $THREAD_OPTS"
18912 else
18913 THREAD_OPTS="-mt $THREAD_OPTS"
18914 fi
18915 ;;
18916 *-*-freebsd*)
18917 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18918 ;;
18919 *-*-darwin* | *-*-cygwin* )
18920 THREAD_OPTS=""
18921 ;;
18922 *-*-aix*)
18923 THREAD_OPTS="pthreads"
18924 ;;
18925 *-hp-hpux* )
18926 if test "x$GCC" != "xyes"; then
18927 THREAD_OPTS=""
18928 fi
18929 ;;
18930
18931 *-*-irix* )
18932 if test "x$GCC" = "xyes"; then
18933 THREAD_OPTS=""
18934 fi
18935 ;;
18936
18937 *-*-*UnixWare*)
18938 if test "x$GCC" != "xyes"; then
18939 THREAD_OPTS="-Ethread"
18940 fi
18941 ;;
18942 esac
18943
18944 THREAD_OPTS="$THREAD_OPTS pthread none"
18945
18946 THREADS_OK=no
18947 for flag in $THREAD_OPTS; do
18948 case $flag in
18949 none)
18950 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
18951echo "configure:18952: checking whether pthreads work without any flags" >&5
18952 ;;
18953
18954 -*)
18955 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
18956echo "configure:18957: checking whether pthreads work with $flag" >&5
18957 THREADS_CFLAGS="$flag"
18958 ;;
18959
18960 *)
18961 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
18962echo "configure:18963: checking for the pthreads library -l$flag" >&5
18963 THREADS_LINK="-l$flag"
18964 ;;
18965 esac
18966
18967 save_LIBS="$LIBS"
18968 save_CFLAGS="$CFLAGS"
18969 LIBS="$THREADS_LINK $LIBS"
18970 CFLAGS="$THREADS_CFLAGS $CFLAGS"
18971
18972 cat > conftest.$ac_ext <<EOF
18973#line 18974 "configure"
18974#include "confdefs.h"
18975#include <pthread.h>
18976int main() {
18977pthread_create(0,0,0,0);
18978; return 0; }
18979EOF
18980if { (eval echo configure:18981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18981 rm -rf conftest*
18982 THREADS_OK=yes
18983else
18984 echo "configure: failed program was:" >&5
18985 cat conftest.$ac_ext >&5
18986fi
18987rm -f conftest*
18988
18989 LIBS="$save_LIBS"
18990 CFLAGS="$save_CFLAGS"
18991
18992 echo "$ac_t""$THREADS_OK" 1>&6
18993 if test "x$THREADS_OK" = "xyes"; then
18994 break;
18995 fi
18996
18997 THREADS_LINK=""
18998 THREADS_CFLAGS=""
18999 done
19000
19001 if test "x$THREADS_OK" != "xyes"; then
19002 wxUSE_THREADS=no
19003 echo "configure: warning: No thread support on this system... disabled" 1>&2
19004 else
19005 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
19006 LIBS="$THREADS_LINK $LIBS"
19007
19008 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
19009echo "configure:19010: checking if more special flags are required for pthreads" >&5
19010 flag=no
19011 case "${host}" in
19012 *-aix*)
19013 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
19014 flag="-D_THREAD_SAFE"
19015 ;;
19016 *-freebsd*)
19017 flag="-D_THREAD_SAFE"
19018 ;;
19019 *-hp-hpux* )
19020 flag="-D_REENTRANT"
19021 if test "x$GCC" != "xyes"; then
19022 flag="$flag -D_RWSTD_MULTI_THREAD"
19023 fi
19024 ;;
19025 *solaris* | alpha*-osf*)
19026 flag="-D_REENTRANT"
19027 ;;
19028 esac
19029 echo "$ac_t""${flag}" 1>&6
19030 if test "x$flag" != xno; then
19031 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
19032 fi
19033
19034 if test "x$THREADS_CFLAGS" != "x"; then
19035 CFLAGS="$CFLAGS $THREADS_CFLAGS"
19036 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
19037 fi
19038 fi
19039 fi
19040
19041 if test "$wxUSE_THREADS" = "yes" ; then
19042 for ac_func in thr_setconcurrency
19043do
19044echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19045echo "configure:19046: checking for $ac_func" >&5
19046if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19047 echo $ac_n "(cached) $ac_c" 1>&6
19048else
19049 cat > conftest.$ac_ext <<EOF
19050#line 19051 "configure"
19051#include "confdefs.h"
19052/* System header to define __stub macros and hopefully few prototypes,
19053 which can conflict with char $ac_func(); below. */
19054#include <assert.h>
19055/* Override any gcc2 internal prototype to avoid an error. */
19056/* We use char because int might match the return type of a gcc2
19057 builtin and then its argument prototype would still apply. */
19058char $ac_func();
19059
19060int main() {
19061
19062/* The GNU C library defines this for functions which it implements
19063 to always fail with ENOSYS. Some functions are actually named
19064 something starting with __ and the normal name is an alias. */
19065#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19066choke me
19067#else
19068$ac_func();
19069#endif
19070
19071; return 0; }
19072EOF
19073if { (eval echo configure:19074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19074 rm -rf conftest*
19075 eval "ac_cv_func_$ac_func=yes"
19076else
19077 echo "configure: failed program was:" >&5
19078 cat conftest.$ac_ext >&5
19079 rm -rf conftest*
19080 eval "ac_cv_func_$ac_func=no"
19081fi
19082rm -f conftest*
19083fi
19084
19085if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19086 echo "$ac_t""yes" 1>&6
19087 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19088 cat >> confdefs.h <<EOF
19089#define $ac_tr_func 1
19090EOF
19091
19092else
19093 echo "$ac_t""no" 1>&6
19094fi
19095done
19096
19097
19098 for ac_hdr in sched.h
19099do
19100ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19101echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19102echo "configure:19103: checking for $ac_hdr" >&5
19103if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19104 echo $ac_n "(cached) $ac_c" 1>&6
19105else
19106 cat > conftest.$ac_ext <<EOF
19107#line 19108 "configure"
19108#include "confdefs.h"
19109#include <$ac_hdr>
19110EOF
19111ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19112{ (eval echo configure:19113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19113ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19114if test -z "$ac_err"; then
19115 rm -rf conftest*
19116 eval "ac_cv_header_$ac_safe=yes"
19117else
19118 echo "$ac_err" >&5
19119 echo "configure: failed program was:" >&5
19120 cat conftest.$ac_ext >&5
19121 rm -rf conftest*
19122 eval "ac_cv_header_$ac_safe=no"
19123fi
19124rm -f conftest*
19125fi
19126if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19127 echo "$ac_t""yes" 1>&6
19128 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19129 cat >> confdefs.h <<EOF
19130#define $ac_tr_hdr 1
19131EOF
19132
19133else
19134 echo "$ac_t""no" 1>&6
19135fi
19136done
19137
19138 if test "$ac_cv_header_sched_h" = "yes"; then
19139 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
19140echo "configure:19141: checking for sched_yield" >&5
19141if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
19142 echo $ac_n "(cached) $ac_c" 1>&6
19143else
19144 cat > conftest.$ac_ext <<EOF
19145#line 19146 "configure"
19146#include "confdefs.h"
19147/* System header to define __stub macros and hopefully few prototypes,
19148 which can conflict with char sched_yield(); below. */
19149#include <assert.h>
19150/* Override any gcc2 internal prototype to avoid an error. */
19151/* We use char because int might match the return type of a gcc2
19152 builtin and then its argument prototype would still apply. */
19153char sched_yield();
19154
19155int main() {
19156
19157/* The GNU C library defines this for functions which it implements
19158 to always fail with ENOSYS. Some functions are actually named
19159 something starting with __ and the normal name is an alias. */
19160#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
19161choke me
19162#else
19163sched_yield();
19164#endif
19165
19166; return 0; }
19167EOF
19168if { (eval echo configure:19169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19169 rm -rf conftest*
19170 eval "ac_cv_func_sched_yield=yes"
19171else
19172 echo "configure: failed program was:" >&5
19173 cat conftest.$ac_ext >&5
19174 rm -rf conftest*
19175 eval "ac_cv_func_sched_yield=no"
19176fi
19177rm -f conftest*
19178fi
19179
19180if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
19181 echo "$ac_t""yes" 1>&6
19182 cat >> confdefs.h <<\EOF
19183#define HAVE_SCHED_YIELD 1
19184EOF
19185
19186else
19187 echo "$ac_t""no" 1>&6
19188
19189 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
19190echo "configure:19191: checking for sched_yield in -lposix4" >&5
19191ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
19192if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19193 echo $ac_n "(cached) $ac_c" 1>&6
19194else
19195 ac_save_LIBS="$LIBS"
19196LIBS="-lposix4 $LIBS"
19197cat > conftest.$ac_ext <<EOF
19198#line 19199 "configure"
19199#include "confdefs.h"
19200/* Override any gcc2 internal prototype to avoid an error. */
19201/* We use char because int might match the return type of a gcc2
19202 builtin and then its argument prototype would still apply. */
19203char sched_yield();
19204
19205int main() {
19206sched_yield()
19207; return 0; }
19208EOF
19209if { (eval echo configure:19210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19210 rm -rf conftest*
19211 eval "ac_cv_lib_$ac_lib_var=yes"
19212else
19213 echo "configure: failed program was:" >&5
19214 cat conftest.$ac_ext >&5
19215 rm -rf conftest*
19216 eval "ac_cv_lib_$ac_lib_var=no"
19217fi
19218rm -f conftest*
19219LIBS="$ac_save_LIBS"
19220
19221fi
19222if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19223 echo "$ac_t""yes" 1>&6
19224 cat >> confdefs.h <<\EOF
19225#define HAVE_SCHED_YIELD 1
19226EOF
19227 POSIX4_LINK=" -lposix4"
19228else
19229 echo "$ac_t""no" 1>&6
19230echo "configure: warning: wxThread::Yield will not work properly" 1>&2
19231
19232fi
19233
19234
19235
19236fi
19237
19238 fi
19239
19240 HAVE_PRIOR_FUNCS=0
19241 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
19242echo "configure:19243: checking for pthread_attr_getschedpolicy" >&5
19243if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
19244 echo $ac_n "(cached) $ac_c" 1>&6
19245else
19246 cat > conftest.$ac_ext <<EOF
19247#line 19248 "configure"
19248#include "confdefs.h"
19249/* System header to define __stub macros and hopefully few prototypes,
19250 which can conflict with char pthread_attr_getschedpolicy(); below. */
19251#include <assert.h>
19252/* Override any gcc2 internal prototype to avoid an error. */
19253/* We use char because int might match the return type of a gcc2
19254 builtin and then its argument prototype would still apply. */
19255char pthread_attr_getschedpolicy();
19256
19257int main() {
19258
19259/* The GNU C library defines this for functions which it implements
19260 to always fail with ENOSYS. Some functions are actually named
19261 something starting with __ and the normal name is an alias. */
19262#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
19263choke me
19264#else
19265pthread_attr_getschedpolicy();
19266#endif
19267
19268; return 0; }
19269EOF
19270if { (eval echo configure:19271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19271 rm -rf conftest*
19272 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
19273else
19274 echo "configure: failed program was:" >&5
19275 cat conftest.$ac_ext >&5
19276 rm -rf conftest*
19277 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
19278fi
19279rm -f conftest*
19280fi
19281
19282if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
19283 echo "$ac_t""yes" 1>&6
19284 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
19285echo "configure:19286: checking for pthread_attr_setschedparam" >&5
19286if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
19287 echo $ac_n "(cached) $ac_c" 1>&6
19288else
19289 cat > conftest.$ac_ext <<EOF
19290#line 19291 "configure"
19291#include "confdefs.h"
19292/* System header to define __stub macros and hopefully few prototypes,
19293 which can conflict with char pthread_attr_setschedparam(); below. */
19294#include <assert.h>
19295/* Override any gcc2 internal prototype to avoid an error. */
19296/* We use char because int might match the return type of a gcc2
19297 builtin and then its argument prototype would still apply. */
19298char pthread_attr_setschedparam();
19299
19300int main() {
19301
19302/* The GNU C library defines this for functions which it implements
19303 to always fail with ENOSYS. Some functions are actually named
19304 something starting with __ and the normal name is an alias. */
19305#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
19306choke me
19307#else
19308pthread_attr_setschedparam();
19309#endif
19310
19311; return 0; }
19312EOF
19313if { (eval echo configure:19314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19314 rm -rf conftest*
19315 eval "ac_cv_func_pthread_attr_setschedparam=yes"
19316else
19317 echo "configure: failed program was:" >&5
19318 cat conftest.$ac_ext >&5
19319 rm -rf conftest*
19320 eval "ac_cv_func_pthread_attr_setschedparam=no"
19321fi
19322rm -f conftest*
19323fi
19324
19325if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
19326 echo "$ac_t""yes" 1>&6
19327 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
19328echo "configure:19329: checking for sched_get_priority_max" >&5
19329if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
19330 echo $ac_n "(cached) $ac_c" 1>&6
19331else
19332 cat > conftest.$ac_ext <<EOF
19333#line 19334 "configure"
19334#include "confdefs.h"
19335/* System header to define __stub macros and hopefully few prototypes,
19336 which can conflict with char sched_get_priority_max(); below. */
19337#include <assert.h>
19338/* Override any gcc2 internal prototype to avoid an error. */
19339/* We use char because int might match the return type of a gcc2
19340 builtin and then its argument prototype would still apply. */
19341char sched_get_priority_max();
19342
19343int main() {
19344
19345/* The GNU C library defines this for functions which it implements
19346 to always fail with ENOSYS. Some functions are actually named
19347 something starting with __ and the normal name is an alias. */
19348#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
19349choke me
19350#else
19351sched_get_priority_max();
19352#endif
19353
19354; return 0; }
19355EOF
19356if { (eval echo configure:19357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19357 rm -rf conftest*
19358 eval "ac_cv_func_sched_get_priority_max=yes"
19359else
19360 echo "configure: failed program was:" >&5
19361 cat conftest.$ac_ext >&5
19362 rm -rf conftest*
19363 eval "ac_cv_func_sched_get_priority_max=no"
19364fi
19365rm -f conftest*
19366fi
19367
19368if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
19369 echo "$ac_t""yes" 1>&6
19370 HAVE_PRIOR_FUNCS=1
19371else
19372 echo "$ac_t""no" 1>&6
19373echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
19374echo "configure:19375: checking for sched_get_priority_max in -lposix4" >&5
19375ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
19376if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19377 echo $ac_n "(cached) $ac_c" 1>&6
19378else
19379 ac_save_LIBS="$LIBS"
19380LIBS="-lposix4 $LIBS"
19381cat > conftest.$ac_ext <<EOF
19382#line 19383 "configure"
19383#include "confdefs.h"
19384/* Override any gcc2 internal prototype to avoid an error. */
19385/* We use char because int might match the return type of a gcc2
19386 builtin and then its argument prototype would still apply. */
19387char sched_get_priority_max();
19388
19389int main() {
19390sched_get_priority_max()
19391; return 0; }
19392EOF
19393if { (eval echo configure:19394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19394 rm -rf conftest*
19395 eval "ac_cv_lib_$ac_lib_var=yes"
19396else
19397 echo "configure: failed program was:" >&5
19398 cat conftest.$ac_ext >&5
19399 rm -rf conftest*
19400 eval "ac_cv_lib_$ac_lib_var=no"
19401fi
19402rm -f conftest*
19403LIBS="$ac_save_LIBS"
19404
19405fi
19406if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19407 echo "$ac_t""yes" 1>&6
19408
19409 HAVE_PRIOR_FUNCS=1
19410 POSIX4_LINK=" -lposix4"
19411
19412else
19413 echo "$ac_t""no" 1>&6
19414fi
19415
19416
19417fi
19418
19419
19420else
19421 echo "$ac_t""no" 1>&6
19422fi
19423
19424
19425else
19426 echo "$ac_t""no" 1>&6
19427fi
19428
19429
19430 if test "$HAVE_PRIOR_FUNCS" = 1; then
19431 cat >> confdefs.h <<\EOF
19432#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
19433EOF
19434
19435 else
19436 echo "configure: warning: Setting thread priority will not work" 1>&2
19437 fi
19438
19439 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
19440echo "configure:19441: checking for pthread_cancel" >&5
19441if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
19442 echo $ac_n "(cached) $ac_c" 1>&6
19443else
19444 cat > conftest.$ac_ext <<EOF
19445#line 19446 "configure"
19446#include "confdefs.h"
19447/* System header to define __stub macros and hopefully few prototypes,
19448 which can conflict with char pthread_cancel(); below. */
19449#include <assert.h>
19450/* Override any gcc2 internal prototype to avoid an error. */
19451/* We use char because int might match the return type of a gcc2
19452 builtin and then its argument prototype would still apply. */
19453char pthread_cancel();
19454
19455int main() {
19456
19457/* The GNU C library defines this for functions which it implements
19458 to always fail with ENOSYS. Some functions are actually named
19459 something starting with __ and the normal name is an alias. */
19460#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
19461choke me
19462#else
19463pthread_cancel();
19464#endif
19465
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_func_pthread_cancel=yes"
19471else
19472 echo "configure: failed program was:" >&5
19473 cat conftest.$ac_ext >&5
19474 rm -rf conftest*
19475 eval "ac_cv_func_pthread_cancel=no"
19476fi
19477rm -f conftest*
19478fi
19479
19480if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
19481 echo "$ac_t""yes" 1>&6
19482 cat >> confdefs.h <<\EOF
19483#define HAVE_PTHREAD_CANCEL 1
19484EOF
19485
19486else
19487 echo "$ac_t""no" 1>&6
19488echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
19489fi
19490
19491
19492 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
19493echo "configure:19494: checking for pthread_cleanup_push/pop" >&5
19494if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
19495 echo $ac_n "(cached) $ac_c" 1>&6
19496else
19497
19498 cat > conftest.$ac_ext <<EOF
19499#line 19500 "configure"
19500#include "confdefs.h"
19501#include <pthread.h>
19502int main() {
19503
19504 pthread_cleanup_push(NULL, NULL);
19505 pthread_cleanup_pop(0);
19506
19507; return 0; }
19508EOF
19509if { (eval echo configure:19510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19510 rm -rf conftest*
19511
19512 wx_cv_func_pthread_cleanup_push=yes
19513
19514else
19515 echo "configure: failed program was:" >&5
19516 cat conftest.$ac_ext >&5
19517 rm -rf conftest*
19518
19519 wx_cv_func_pthread_cleanup_push=no
19520
19521fi
19522rm -f conftest*
19523
19524fi
19525
19526echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
19527
19528 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
19529 cat >> confdefs.h <<\EOF
19530#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
19531EOF
19532
19533 fi
19534
19535
19536 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
19537echo "configure:19538: checking for pthread_mutexattr_t" >&5
19538if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
19539 echo $ac_n "(cached) $ac_c" 1>&6
19540else
19541
19542 cat > conftest.$ac_ext <<EOF
19543#line 19544 "configure"
19544#include "confdefs.h"
19545#include <pthread.h>
19546int main() {
19547
19548 pthread_mutexattr_t attr;
19549 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
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
19556 wx_cv_type_pthread_mutexattr_t=yes
19557
19558else
19559 echo "configure: failed program was:" >&5
19560 cat conftest.$ac_ext >&5
19561 rm -rf conftest*
19562
19563 wx_cv_type_pthread_mutexattr_t=no
19564
19565
19566fi
19567rm -f conftest*
19568
19569fi
19570
19571echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
19572
19573 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
19574 cat >> confdefs.h <<\EOF
19575#define HAVE_PTHREAD_MUTEXATTR_T 1
19576EOF
19577
19578 else
19579 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
19580echo "configure:19581: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
19581if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19582 echo $ac_n "(cached) $ac_c" 1>&6
19583else
19584
19585 cat > conftest.$ac_ext <<EOF
19586#line 19587 "configure"
19587#include "confdefs.h"
19588#include <pthread.h>
19589int main() {
19590
19591 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
19592
19593; return 0; }
19594EOF
19595if { (eval echo configure:19596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19596 rm -rf conftest*
19597
19598 wx_cv_type_pthread_rec_mutex_init=yes
19599
19600else
19601 echo "configure: failed program was:" >&5
19602 cat conftest.$ac_ext >&5
19603 rm -rf conftest*
19604
19605 wx_cv_type_pthread_rec_mutex_init=no
19606
19607
19608fi
19609rm -f conftest*
19610
19611fi
19612
19613echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
19614 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
19615 cat >> confdefs.h <<\EOF
19616#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
19617EOF
19618
19619 else
19620 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
19621 fi
19622 fi
19623 fi
19624
19625else
19626 if test "$wxUSE_THREADS" = "yes" ; then
19627 case "${host}" in
19628 *-*-mingw32* )
19629 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
19630echo "configure:19631: checking if compiler supports -mthreads" >&5
19631if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19632 echo $ac_n "(cached) $ac_c" 1>&6
19633else
19634
19635 CFLAGS_OLD="$CFLAGS"
19636 CFLAGS="$CFLAGS -mthreads"
19637 cat > conftest.$ac_ext <<EOF
19638#line 19639 "configure"
19639#include "confdefs.h"
19640
19641int main() {
19642
19643; return 0; }
19644EOF
19645if { (eval echo configure:19646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19646 rm -rf conftest*
19647 wx_cv_cflags_mthread=yes
19648else
19649 echo "configure: failed program was:" >&5
19650 cat conftest.$ac_ext >&5
19651 rm -rf conftest*
19652 wx_cv_cflags_mthread=no
19653
19654fi
19655rm -f conftest*
19656
19657
19658fi
19659
19660echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19661
19662 if test "$wx_cv_cflags_mthread" = "yes"; then
19663 CXXFLAGS="$CXXFLAGS -mthreads"
19664 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19665 LDFLAGS="$LDFLAGS -mthreads"
19666 else
19667 CFLAGS="$CFLAGS_OLD"
19668 fi
19669 ;;
19670 esac
19671 fi
19672fi
19673
19674if test "$wxUSE_THREADS" = "yes"; then
19675 cat >> confdefs.h <<\EOF
19676#define wxUSE_THREADS 1
19677EOF
19678
19679
19680 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
19681else
19682 if test "$ac_cv_func_strtok_r" = "yes"; then
19683 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
19684echo "configure:19685: checking if -D_REENTRANT is needed" >&5
19685 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19686 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
19687 echo "$ac_t""yes" 1>&6
19688 else
19689 echo "$ac_t""no" 1>&6
19690 fi
19691 fi
19692fi
19693
19694if test "$WXGTK20" = 1 ; then
19695 cat >> confdefs.h <<EOF
19696#define __WXGTK20__ $WXGTK20
19697EOF
19698
19699 WXGTK12=1
19700fi
19701
19702if test "$WXGTK12" = 1 ; then
19703 cat >> confdefs.h <<EOF
19704#define __WXGTK12__ $WXGTK12
19705EOF
19706
19707fi
19708
19709if test "$WXGTK127" = 1 ; then
19710 cat >> confdefs.h <<EOF
19711#define __WXGTK127__ $WXGTK127
19712EOF
19713
19714fi
19715
19716WXDEBUG=
19717
19718if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19719 WXDEBUG="-g"
19720 wxUSE_OPTIMISE=no
19721fi
19722
19723if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19724 wxUSE_DEBUG_INFO=yes
19725 WXDEBUG="-ggdb"
19726fi
19727
19728if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
19729 cat >> confdefs.h <<\EOF
19730#define WXDEBUG 1
19731EOF
19732
19733 WXDEBUG_DEFINE="-D__WXDEBUG__"
19734else
19735 if test "$wxUSE_GTK" = 1 ; then
19736 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19737 fi
19738fi
19739
19740if test "$wxUSE_MEM_TRACING" = "yes" ; then
19741 cat >> confdefs.h <<\EOF
19742#define wxUSE_MEMORY_TRACING 1
19743EOF
19744
19745 cat >> confdefs.h <<\EOF
19746#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
19747EOF
19748
19749 cat >> confdefs.h <<\EOF
19750#define wxUSE_DEBUG_NEW_ALWAYS 1
19751EOF
19752
19753 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19754fi
19755
19756if test "$wxUSE_DMALLOC" = "yes" ; then
19757 DMALLOC_LIBS="-ldmalloc"
19758fi
19759
19760PROFILE=
19761if test "$wxUSE_PROFILE" = "yes" ; then
19762 PROFILE=" -pg"
19763fi
19764
19765CODE_GEN_FLAGS=
19766CODE_GEN_FLAGS_CXX=
19767if test "$GCC" = "yes" ; then
19768 if test "$wxUSE_NO_RTTI" = "yes" ; then
19769 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
19770 fi
19771 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19772 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19773 fi
19774 if test "$wxUSE_PERMISSIVE" = "yes" ; then
19775 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19776 fi
19777 if test "$USE_WIN32" = 1 ; then
19778 # I'm not even really sure what this was ever added to solve,
19779 # but someone added it for mingw native builds, so I guess
19780 # they had a reason, right??
19781 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19782 fi
19783
19784 case "${host}" in
19785 powerpc*-*-aix* )
19786 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19787 ;;
19788 *-hppa* )
19789 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19790 ;;
19791 esac
19792fi
19793
19794OPTIMISE=
19795if test "$wxUSE_OPTIMISE" = "no" ; then
19796 if test "$GCC" = yes ; then
19797 OPTIMISE="-O0"
19798 fi
19799else
19800 if test "$GCC" = yes ; then
19801 OPTIMISE="-O2"
19802
19803 case "${host}" in
19804 i586-*-*|i686-*-* )
19805 OPTIMISE="${OPTIMISE} "
19806 ;;
19807 esac
19808 else
19809 OPTIMISE="-O"
19810 fi
19811fi
19812
19813
19814if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
19815 cat >> confdefs.h <<\EOF
19816#define WXWIN_COMPATIBILITY_2 1
19817EOF
19818
19819
19820 WXWIN_COMPATIBILITY_2_2="yes"
19821fi
19822
19823if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
19824 cat >> confdefs.h <<\EOF
19825#define WXWIN_COMPATIBILITY_2_2 1
19826EOF
19827
19828
19829 WXWIN_COMPATIBILITY_2_4="yes"
19830fi
19831
19832if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
19833 cat >> confdefs.h <<\EOF
19834#define WXWIN_COMPATIBILITY_2_4 1
19835EOF
19836
19837fi
19838
19839
19840if test "$wxUSE_GUI" = "yes"; then
19841 cat >> confdefs.h <<\EOF
19842#define wxUSE_GUI 1
19843EOF
19844
19845
19846 else
19847 cat >> confdefs.h <<\EOF
19848#define wxUSE_NOGUI 1
19849EOF
19850
19851fi
19852
19853
19854if test "$wxUSE_UNIX" = "yes"; then
19855 cat >> confdefs.h <<\EOF
19856#define wxUSE_UNIX 1
19857EOF
19858
19859fi
19860
19861
19862if test "$wxUSE_APPLE_IEEE" = "yes"; then
19863 cat >> confdefs.h <<\EOF
19864#define wxUSE_APPLE_IEEE 1
19865EOF
19866
19867fi
19868
19869if test "$wxUSE_TIMER" = "yes"; then
19870 cat >> confdefs.h <<\EOF
19871#define wxUSE_TIMER 1
19872EOF
19873
19874fi
19875
19876if test "$wxUSE_WAVE" = "yes"; then
19877 cat >> confdefs.h <<\EOF
19878#define wxUSE_WAVE 1
19879EOF
19880
19881fi
19882
19883if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
19884 cat >> confdefs.h <<\EOF
19885#define wxUSE_CMDLINE_PARSER 1
19886EOF
19887
19888fi
19889
19890if test "$wxUSE_STOPWATCH" = "yes"; then
19891 cat >> confdefs.h <<\EOF
19892#define wxUSE_STOPWATCH 1
19893EOF
19894
19895fi
19896
19897if test "$wxUSE_DATETIME" = "yes"; then
19898 cat >> confdefs.h <<\EOF
19899#define wxUSE_DATETIME 1
19900EOF
19901
19902fi
19903
19904if test "$wxUSE_FILE" = "yes"; then
19905 cat >> confdefs.h <<\EOF
19906#define wxUSE_FILE 1
19907EOF
19908
19909fi
19910
19911if test "$wxUSE_FFILE" = "yes"; then
19912 cat >> confdefs.h <<\EOF
19913#define wxUSE_FFILE 1
19914EOF
19915
19916fi
19917
19918if test "$wxUSE_FILESYSTEM" = "yes"; then
19919 cat >> confdefs.h <<\EOF
19920#define wxUSE_FILESYSTEM 1
19921EOF
19922
19923fi
19924
19925if test "$wxUSE_FS_INET" = "yes"; then
19926 cat >> confdefs.h <<\EOF
19927#define wxUSE_FS_INET 1
19928EOF
19929
19930fi
19931
19932if test "$wxUSE_FS_ZIP" = "yes"; then
19933 cat >> confdefs.h <<\EOF
19934#define wxUSE_FS_ZIP 1
19935EOF
19936
19937fi
19938
19939if test "$wxUSE_ZIPSTREAM" = "yes"; then
19940 cat >> confdefs.h <<\EOF
19941#define wxUSE_ZIPSTREAM 1
19942EOF
19943
19944fi
19945
19946if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
19947 cat >> confdefs.h <<\EOF
19948#define wxUSE_ON_FATAL_EXCEPTION 1
19949EOF
19950
19951fi
19952
19953if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
19954 cat >> confdefs.h <<\EOF
19955#define wxUSE_SNGLINST_CHECKER 1
19956EOF
19957
19958fi
19959
19960if test "$wxUSE_BUSYINFO" = "yes"; then
19961 cat >> confdefs.h <<\EOF
19962#define wxUSE_BUSYINFO 1
19963EOF
19964
19965fi
19966
19967if test "$wxUSE_STD_IOSTREAM" = "yes"; then
19968 cat >> confdefs.h <<\EOF
19969#define wxUSE_STD_IOSTREAM 1
19970EOF
19971
19972fi
19973
19974if test "$wxUSE_TEXTBUFFER" = "yes"; then
19975 cat >> confdefs.h <<\EOF
19976#define wxUSE_TEXTBUFFER 1
19977EOF
19978
19979fi
19980
19981if test "$wxUSE_TEXTFILE" = "yes"; then
19982 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
19983 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
19984 else
19985 cat >> confdefs.h <<\EOF
19986#define wxUSE_TEXTFILE 1
19987EOF
19988
19989 fi
19990fi
19991
19992if test "$wxUSE_CONFIG" = "yes" ; then
19993 if test "$wxUSE_TEXTFILE" != "yes"; then
19994 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
19995 else
19996 cat >> confdefs.h <<\EOF
19997#define wxUSE_CONFIG 1
19998EOF
19999
20000 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
20001 fi
20002fi
20003
20004if test "$wxUSE_INTL" = "yes" ; then
20005 if test "$wxUSE_FILE" != "yes"; then
20006 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
20007 else
20008 cat >> confdefs.h <<\EOF
20009#define wxUSE_INTL 1
20010EOF
20011
20012 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
20013 GUIDIST="$GUIDIST INTL_DIST"
20014 fi
20015fi
20016
20017if test "$wxUSE_LOG" = "yes"; then
20018 cat >> confdefs.h <<\EOF
20019#define wxUSE_LOG 1
20020EOF
20021
20022
20023 if test "$wxUSE_LOGGUI" = "yes"; then
20024 cat >> confdefs.h <<\EOF
20025#define wxUSE_LOGGUI 1
20026EOF
20027
20028 fi
20029
20030 if test "$wxUSE_LOGWINDOW" = "yes"; then
20031 cat >> confdefs.h <<\EOF
20032#define wxUSE_LOGWINDOW 1
20033EOF
20034
20035 fi
20036
20037 if test "$wxUSE_LOGDIALOG" = "yes"; then
20038 cat >> confdefs.h <<\EOF
20039#define wxUSE_LOG_DIALOG 1
20040EOF
20041
20042 fi
20043fi
20044
20045if test "$wxUSE_LONGLONG" = "yes"; then
20046 cat >> confdefs.h <<\EOF
20047#define wxUSE_LONGLONG 1
20048EOF
20049
20050fi
20051
20052if test "$wxUSE_GEOMETRY" = "yes"; then
20053 cat >> confdefs.h <<\EOF
20054#define wxUSE_GEOMETRY 1
20055EOF
20056
20057fi
20058
20059if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
20060 cat >> confdefs.h <<\EOF
20061#define wxUSE_DIALUP_MANAGER 1
20062EOF
20063
20064 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
20065fi
20066
20067if test "$wxUSE_STREAMS" = "yes" ; then
20068 cat >> confdefs.h <<\EOF
20069#define wxUSE_STREAMS 1
20070EOF
20071
20072fi
20073
20074
20075if test "$wxUSE_DATETIME" = "yes"; then
20076 for ac_func in strptime
20077do
20078echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20079echo "configure:20080: checking for $ac_func" >&5
20080if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20081 echo $ac_n "(cached) $ac_c" 1>&6
20082else
20083 cat > conftest.$ac_ext <<EOF
20084#line 20085 "configure"
20085#include "confdefs.h"
20086/* System header to define __stub macros and hopefully few prototypes,
20087 which can conflict with char $ac_func(); below. */
20088#include <assert.h>
20089/* Override any gcc2 internal prototype to avoid an error. */
20090/* We use char because int might match the return type of a gcc2
20091 builtin and then its argument prototype would still apply. */
20092char $ac_func();
20093
20094int main() {
20095
20096/* The GNU C library defines this for functions which it implements
20097 to always fail with ENOSYS. Some functions are actually named
20098 something starting with __ and the normal name is an alias. */
20099#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20100choke me
20101#else
20102$ac_func();
20103#endif
20104
20105; return 0; }
20106EOF
20107if { (eval echo configure:20108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20108 rm -rf conftest*
20109 eval "ac_cv_func_$ac_func=yes"
20110else
20111 echo "configure: failed program was:" >&5
20112 cat conftest.$ac_ext >&5
20113 rm -rf conftest*
20114 eval "ac_cv_func_$ac_func=no"
20115fi
20116rm -f conftest*
20117fi
20118
20119if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20120 echo "$ac_t""yes" 1>&6
20121 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20122 cat >> confdefs.h <<EOF
20123#define $ac_tr_func 1
20124EOF
20125
20126else
20127 echo "$ac_t""no" 1>&6
20128fi
20129done
20130
20131
20132 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
20133echo "configure:20134: checking for timezone variable in <time.h>" >&5
20134if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
20135 echo $ac_n "(cached) $ac_c" 1>&6
20136else
20137
20138 cat > conftest.$ac_ext <<EOF
20139#line 20140 "configure"
20140#include "confdefs.h"
20141
20142 #include <time.h>
20143
20144int main() {
20145
20146 int tz;
20147 tz = timezone;
20148
20149; return 0; }
20150EOF
20151if { (eval echo configure:20152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20152 rm -rf conftest*
20153
20154 wx_cv_var_timezone=timezone
20155
20156else
20157 echo "configure: failed program was:" >&5
20158 cat conftest.$ac_ext >&5
20159 rm -rf conftest*
20160
20161 cat > conftest.$ac_ext <<EOF
20162#line 20163 "configure"
20163#include "confdefs.h"
20164
20165 #include <time.h>
20166
20167int main() {
20168
20169 int tz;
20170 tz = _timezone;
20171
20172; return 0; }
20173EOF
20174if { (eval echo configure:20175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20175 rm -rf conftest*
20176
20177 wx_cv_var_timezone=_timezone
20178
20179else
20180 echo "configure: failed program was:" >&5
20181 cat conftest.$ac_ext >&5
20182 rm -rf conftest*
20183
20184 cat > conftest.$ac_ext <<EOF
20185#line 20186 "configure"
20186#include "confdefs.h"
20187
20188 #include <time.h>
20189
20190int main() {
20191
20192 int tz;
20193 tz = __timezone;
20194
20195; return 0; }
20196EOF
20197if { (eval echo configure:20198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20198 rm -rf conftest*
20199
20200 wx_cv_var_timezone=__timezone
20201
20202else
20203 echo "configure: failed program was:" >&5
20204 cat conftest.$ac_ext >&5
20205 rm -rf conftest*
20206
20207 if test "$USE_DOS" = 0 ; then
20208 echo "configure: warning: no timezone variable" 1>&2
20209 fi
20210
20211
20212fi
20213rm -f conftest*
20214
20215
20216fi
20217rm -f conftest*
20218
20219
20220fi
20221rm -f conftest*
20222
20223
20224fi
20225
20226echo "$ac_t""$wx_cv_var_timezone" 1>&6
20227
20228 if test "x$wx_cv_var_timezone" != x ; then
20229 cat >> confdefs.h <<EOF
20230#define WX_TIMEZONE $wx_cv_var_timezone
20231EOF
20232
20233 fi
20234
20235 for ac_func in localtime
20236do
20237echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20238echo "configure:20239: checking for $ac_func" >&5
20239if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20240 echo $ac_n "(cached) $ac_c" 1>&6
20241else
20242 cat > conftest.$ac_ext <<EOF
20243#line 20244 "configure"
20244#include "confdefs.h"
20245/* System header to define __stub macros and hopefully few prototypes,
20246 which can conflict with char $ac_func(); below. */
20247#include <assert.h>
20248/* Override any gcc2 internal prototype to avoid an error. */
20249/* We use char because int might match the return type of a gcc2
20250 builtin and then its argument prototype would still apply. */
20251char $ac_func();
20252
20253int main() {
20254
20255/* The GNU C library defines this for functions which it implements
20256 to always fail with ENOSYS. Some functions are actually named
20257 something starting with __ and the normal name is an alias. */
20258#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20259choke me
20260#else
20261$ac_func();
20262#endif
20263
20264; return 0; }
20265EOF
20266if { (eval echo configure:20267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20267 rm -rf conftest*
20268 eval "ac_cv_func_$ac_func=yes"
20269else
20270 echo "configure: failed program was:" >&5
20271 cat conftest.$ac_ext >&5
20272 rm -rf conftest*
20273 eval "ac_cv_func_$ac_func=no"
20274fi
20275rm -f conftest*
20276fi
20277
20278if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20279 echo "$ac_t""yes" 1>&6
20280 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20281 cat >> confdefs.h <<EOF
20282#define $ac_tr_func 1
20283EOF
20284
20285else
20286 echo "$ac_t""no" 1>&6
20287fi
20288done
20289
20290
20291 if test "$ac_cv_func_localtime" = "yes"; then
20292 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
20293echo "configure:20294: checking for tm_gmtoff in struct tm" >&5
20294if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
20295 echo $ac_n "(cached) $ac_c" 1>&6
20296else
20297
20298 cat > conftest.$ac_ext <<EOF
20299#line 20300 "configure"
20300#include "confdefs.h"
20301
20302 #include <time.h>
20303
20304int main() {
20305
20306 struct tm tm;
20307 tm.tm_gmtoff++;
20308
20309; return 0; }
20310EOF
20311if { (eval echo configure:20312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20312 rm -rf conftest*
20313
20314 wx_cv_struct_tm_has_gmtoff=yes
20315
20316else
20317 echo "configure: failed program was:" >&5
20318 cat conftest.$ac_ext >&5
20319 rm -rf conftest*
20320 wx_cv_struct_tm_has_gmtoff=no
20321
20322fi
20323rm -f conftest*
20324
20325fi
20326
20327echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
20328 fi
20329
20330 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
20331 cat >> confdefs.h <<\EOF
20332#define WX_GMTOFF_IN_TM 1
20333EOF
20334
20335 fi
20336
20337 for ac_func in gettimeofday ftime
20338do
20339echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20340echo "configure:20341: checking for $ac_func" >&5
20341if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20342 echo $ac_n "(cached) $ac_c" 1>&6
20343else
20344 cat > conftest.$ac_ext <<EOF
20345#line 20346 "configure"
20346#include "confdefs.h"
20347/* System header to define __stub macros and hopefully few prototypes,
20348 which can conflict with char $ac_func(); below. */
20349#include <assert.h>
20350/* Override any gcc2 internal prototype to avoid an error. */
20351/* We use char because int might match the return type of a gcc2
20352 builtin and then its argument prototype would still apply. */
20353char $ac_func();
20354
20355int main() {
20356
20357/* The GNU C library defines this for functions which it implements
20358 to always fail with ENOSYS. Some functions are actually named
20359 something starting with __ and the normal name is an alias. */
20360#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20361choke me
20362#else
20363$ac_func();
20364#endif
20365
20366; return 0; }
20367EOF
20368if { (eval echo configure:20369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20369 rm -rf conftest*
20370 eval "ac_cv_func_$ac_func=yes"
20371else
20372 echo "configure: failed program was:" >&5
20373 cat conftest.$ac_ext >&5
20374 rm -rf conftest*
20375 eval "ac_cv_func_$ac_func=no"
20376fi
20377rm -f conftest*
20378fi
20379
20380if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20381 echo "$ac_t""yes" 1>&6
20382 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20383 cat >> confdefs.h <<EOF
20384#define $ac_tr_func 1
20385EOF
20386 break
20387else
20388 echo "$ac_t""no" 1>&6
20389fi
20390done
20391
20392
20393 if test "$ac_cv_func_gettimeofday" = "yes"; then
20394 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
20395echo "configure:20396: checking whether gettimeofday takes two arguments" >&5
20396if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
20397 echo $ac_n "(cached) $ac_c" 1>&6
20398else
20399
20400
20401 ac_ext=C
20402# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20403ac_cpp='$CXXCPP $CPPFLAGS'
20404ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20405ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20406cross_compiling=$ac_cv_prog_cxx_cross
20407
20408
20409 cat > conftest.$ac_ext <<EOF
20410#line 20411 "configure"
20411#include "confdefs.h"
20412
20413 #include <sys/time.h>
20414 #include <unistd.h>
20415
20416int main() {
20417
20418 struct timeval tv;
20419 gettimeofday(&tv, NULL);
20420
20421; return 0; }
20422EOF
20423if { (eval echo configure:20424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20424 rm -rf conftest*
20425 wx_cv_func_gettimeofday_has_2_args=yes
20426else
20427 echo "configure: failed program was:" >&5
20428 cat conftest.$ac_ext >&5
20429 rm -rf conftest*
20430 cat > conftest.$ac_ext <<EOF
20431#line 20432 "configure"
20432#include "confdefs.h"
20433
20434 #include <sys/time.h>
20435 #include <unistd.h>
20436
20437int main() {
20438
20439 struct timeval tv;
20440 gettimeofday(&tv);
20441
20442; return 0; }
20443EOF
20444if { (eval echo configure:20445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20445 rm -rf conftest*
20446 wx_cv_func_gettimeofday_has_2_args=no
20447else
20448 echo "configure: failed program was:" >&5
20449 cat conftest.$ac_ext >&5
20450 rm -rf conftest*
20451
20452 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
20453 wx_cv_func_gettimeofday_has_2_args=unknown
20454
20455
20456fi
20457rm -f conftest*
20458
20459fi
20460rm -f conftest*
20461 ac_ext=c
20462# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20463ac_cpp='$CPP $CPPFLAGS'
20464ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20465ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20466cross_compiling=$ac_cv_prog_cc_cross
20467
20468
20469fi
20470
20471echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
20472
20473 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
20474 cat >> confdefs.h <<\EOF
20475#define WX_GETTIMEOFDAY_NO_TZ 1
20476EOF
20477
20478 fi
20479 fi
20480
20481 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
20482fi
20483
20484
20485if test "$wxUSE_SOCKETS" = "yes"; then
20486 if test "$wxUSE_MGL" = "1"; then
20487 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
20488 wxUSE_SOCKETS="no"
20489 fi
20490fi
20491
20492if test "$wxUSE_SOCKETS" = "yes"; then
20493 if test "$TOOLKIT" != "MSW"; then
20494 echo $ac_n "checking for socket""... $ac_c" 1>&6
20495echo "configure:20496: checking for socket" >&5
20496if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
20497 echo $ac_n "(cached) $ac_c" 1>&6
20498else
20499 cat > conftest.$ac_ext <<EOF
20500#line 20501 "configure"
20501#include "confdefs.h"
20502/* System header to define __stub macros and hopefully few prototypes,
20503 which can conflict with char socket(); below. */
20504#include <assert.h>
20505/* Override any gcc2 internal prototype to avoid an error. */
20506/* We use char because int might match the return type of a gcc2
20507 builtin and then its argument prototype would still apply. */
20508char socket();
20509
20510int main() {
20511
20512/* The GNU C library defines this for functions which it implements
20513 to always fail with ENOSYS. Some functions are actually named
20514 something starting with __ and the normal name is an alias. */
20515#if defined (__stub_socket) || defined (__stub___socket)
20516choke me
20517#else
20518socket();
20519#endif
20520
20521; return 0; }
20522EOF
20523if { (eval echo configure:20524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20524 rm -rf conftest*
20525 eval "ac_cv_func_socket=yes"
20526else
20527 echo "configure: failed program was:" >&5
20528 cat conftest.$ac_ext >&5
20529 rm -rf conftest*
20530 eval "ac_cv_func_socket=no"
20531fi
20532rm -f conftest*
20533fi
20534
20535if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
20536 echo "$ac_t""yes" 1>&6
20537 :
20538else
20539 echo "$ac_t""no" 1>&6
20540echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
20541echo "configure:20542: checking for socket in -lsocket" >&5
20542ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
20543if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20544 echo $ac_n "(cached) $ac_c" 1>&6
20545else
20546 ac_save_LIBS="$LIBS"
20547LIBS="-lsocket $LIBS"
20548cat > conftest.$ac_ext <<EOF
20549#line 20550 "configure"
20550#include "confdefs.h"
20551/* Override any gcc2 internal prototype to avoid an error. */
20552/* We use char because int might match the return type of a gcc2
20553 builtin and then its argument prototype would still apply. */
20554char socket();
20555
20556int main() {
20557socket()
20558; return 0; }
20559EOF
20560if { (eval echo configure:20561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20561 rm -rf conftest*
20562 eval "ac_cv_lib_$ac_lib_var=yes"
20563else
20564 echo "configure: failed program was:" >&5
20565 cat conftest.$ac_ext >&5
20566 rm -rf conftest*
20567 eval "ac_cv_lib_$ac_lib_var=no"
20568fi
20569rm -f conftest*
20570LIBS="$ac_save_LIBS"
20571
20572fi
20573if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20574 echo "$ac_t""yes" 1>&6
20575 if test "$INET_LINK" != " -lsocket"; then
20576 INET_LINK="$INET_LINK -lsocket"
20577 fi
20578else
20579 echo "$ac_t""no" 1>&6
20580
20581 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
20582 wxUSE_SOCKETS=no
20583
20584
20585fi
20586
20587
20588fi
20589
20590 fi
20591fi
20592
20593if test "$wxUSE_SOCKETS" = "yes" ; then
20594 if test "$TOOLKIT" != "MSW"; then
20595 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
20596echo "configure:20597: checking what is the type of the third argument of getsockname" >&5
20597if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20598 echo $ac_n "(cached) $ac_c" 1>&6
20599else
20600
20601 cat > conftest.$ac_ext <<EOF
20602#line 20603 "configure"
20603#include "confdefs.h"
20604
20605 #include <sys/types.h>
20606 #include <sys/socket.h>
20607
20608int main() {
20609
20610 socklen_t len;
20611 getsockname(0, 0, &len);
20612
20613; return 0; }
20614EOF
20615if { (eval echo configure:20616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20616 rm -rf conftest*
20617 wx_cv_type_getsockname3=socklen_t
20618else
20619 echo "configure: failed program was:" >&5
20620 cat conftest.$ac_ext >&5
20621 rm -rf conftest*
20622
20623 CFLAGS_OLD="$CFLAGS"
20624 if test "$GCC" = yes ; then
20625 CFLAGS="$CFLAGS -Werror"
20626 fi
20627
20628 cat > conftest.$ac_ext <<EOF
20629#line 20630 "configure"
20630#include "confdefs.h"
20631
20632 #include <sys/types.h>
20633 #include <sys/socket.h>
20634
20635int main() {
20636
20637 size_t len;
20638 getsockname(0, 0, &len);
20639
20640; return 0; }
20641EOF
20642if { (eval echo configure:20643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20643 rm -rf conftest*
20644 wx_cv_type_getsockname3=size_t
20645else
20646 echo "configure: failed program was:" >&5
20647 cat conftest.$ac_ext >&5
20648 rm -rf conftest*
20649 cat > conftest.$ac_ext <<EOF
20650#line 20651 "configure"
20651#include "confdefs.h"
20652
20653 #include <sys/types.h>
20654 #include <sys/socket.h>
20655
20656int main() {
20657
20658 int len;
20659 getsockname(0, 0, &len);
20660
20661; return 0; }
20662EOF
20663if { (eval echo configure:20664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20664 rm -rf conftest*
20665 wx_cv_type_getsockname3=int
20666else
20667 echo "configure: failed program was:" >&5
20668 cat conftest.$ac_ext >&5
20669 rm -rf conftest*
20670 wx_cv_type_getsockname3=unknown
20671
20672fi
20673rm -f conftest*
20674
20675fi
20676rm -f conftest*
20677
20678 CFLAGS="$CFLAGS_OLD"
20679
20680
20681fi
20682rm -f conftest*
20683
20684fi
20685
20686echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
20687
20688 if test "$wx_cv_type_getsockname3" = "unknown"; then
20689 wxUSE_SOCKETS=no
20690 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
20691 else
20692 cat >> confdefs.h <<EOF
20693#define SOCKLEN_T $wx_cv_type_getsockname3
20694EOF
20695
20696 fi
20697 fi
20698fi
20699
20700if test "$wxUSE_SOCKETS" = "yes" ; then
20701 cat >> confdefs.h <<\EOF
20702#define wxUSE_SOCKETS 1
20703EOF
20704
20705 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
20706fi
20707
20708
20709if test "$wxUSE_GUI" = "yes"; then
20710
20711 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
20712 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
20713 wxUSE_JOYSTICK=no
20714 fi
20715 if test "$TOOLKIT" = "MOTIF"; then
20716 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
20717 wxUSE_JOYSTICK=no
20718 fi
20719 if test "$TOOLKIT" = "X11"; then
20720 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
20721 wxUSE_JOYSTICK=no
20722 fi
20723
20724 if test "$TOOLKIT" != "MSW"; then
20725 if test "$wxUSE_JOYSTICK" = "yes"; then
20726 for ac_hdr in linux/joystick.h
20727do
20728ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20729echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20730echo "configure:20731: checking for $ac_hdr" >&5
20731if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20732 echo $ac_n "(cached) $ac_c" 1>&6
20733else
20734 cat > conftest.$ac_ext <<EOF
20735#line 20736 "configure"
20736#include "confdefs.h"
20737#include <$ac_hdr>
20738EOF
20739ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20740{ (eval echo configure:20741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20741ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20742if test -z "$ac_err"; then
20743 rm -rf conftest*
20744 eval "ac_cv_header_$ac_safe=yes"
20745else
20746 echo "$ac_err" >&5
20747 echo "configure: failed program was:" >&5
20748 cat conftest.$ac_ext >&5
20749 rm -rf conftest*
20750 eval "ac_cv_header_$ac_safe=no"
20751fi
20752rm -f conftest*
20753fi
20754if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20755 echo "$ac_t""yes" 1>&6
20756 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20757 cat >> confdefs.h <<EOF
20758#define $ac_tr_hdr 1
20759EOF
20760
20761else
20762 echo "$ac_t""no" 1>&6
20763fi
20764done
20765
20766 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20767 wxUSE_JOYSTICK=no
20768 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
20769 fi
20770 fi
20771 fi
20772
20773 if test "$wxUSE_JOYSTICK" = "yes"; then
20774 cat >> confdefs.h <<\EOF
20775#define wxUSE_JOYSTICK 1
20776EOF
20777
20778 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20779 fi
20780fi
20781
20782
20783if test "$TOOLKIT" != "MSW"; then
20784
20785 HAVE_DL_FUNCS=0
20786 HAVE_SHL_FUNCS=0
20787 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20788 if test "$USE_DARWIN" = 1; then
20789 HAVE_DL_FUNCS=1
20790 else
20791 for ac_func in dlopen
20792do
20793echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20794echo "configure:20795: checking for $ac_func" >&5
20795if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20796 echo $ac_n "(cached) $ac_c" 1>&6
20797else
20798 cat > conftest.$ac_ext <<EOF
20799#line 20800 "configure"
20800#include "confdefs.h"
20801/* System header to define __stub macros and hopefully few prototypes,
20802 which can conflict with char $ac_func(); below. */
20803#include <assert.h>
20804/* Override any gcc2 internal prototype to avoid an error. */
20805/* We use char because int might match the return type of a gcc2
20806 builtin and then its argument prototype would still apply. */
20807char $ac_func();
20808
20809int main() {
20810
20811/* The GNU C library defines this for functions which it implements
20812 to always fail with ENOSYS. Some functions are actually named
20813 something starting with __ and the normal name is an alias. */
20814#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20815choke me
20816#else
20817$ac_func();
20818#endif
20819
20820; return 0; }
20821EOF
20822if { (eval echo configure:20823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20823 rm -rf conftest*
20824 eval "ac_cv_func_$ac_func=yes"
20825else
20826 echo "configure: failed program was:" >&5
20827 cat conftest.$ac_ext >&5
20828 rm -rf conftest*
20829 eval "ac_cv_func_$ac_func=no"
20830fi
20831rm -f conftest*
20832fi
20833
20834if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20835 echo "$ac_t""yes" 1>&6
20836 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20837 cat >> confdefs.h <<EOF
20838#define $ac_tr_func 1
20839EOF
20840
20841 cat >> confdefs.h <<\EOF
20842#define HAVE_DLOPEN 1
20843EOF
20844
20845 HAVE_DL_FUNCS=1
20846
20847else
20848 echo "$ac_t""no" 1>&6
20849echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
20850echo "configure:20851: checking for dlopen in -ldl" >&5
20851ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20852if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20853 echo $ac_n "(cached) $ac_c" 1>&6
20854else
20855 ac_save_LIBS="$LIBS"
20856LIBS="-ldl $LIBS"
20857cat > conftest.$ac_ext <<EOF
20858#line 20859 "configure"
20859#include "confdefs.h"
20860/* Override any gcc2 internal prototype to avoid an error. */
20861/* We use char because int might match the return type of a gcc2
20862 builtin and then its argument prototype would still apply. */
20863char dlopen();
20864
20865int main() {
20866dlopen()
20867; return 0; }
20868EOF
20869if { (eval echo configure:20870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20870 rm -rf conftest*
20871 eval "ac_cv_lib_$ac_lib_var=yes"
20872else
20873 echo "configure: failed program was:" >&5
20874 cat conftest.$ac_ext >&5
20875 rm -rf conftest*
20876 eval "ac_cv_lib_$ac_lib_var=no"
20877fi
20878rm -f conftest*
20879LIBS="$ac_save_LIBS"
20880
20881fi
20882if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20883 echo "$ac_t""yes" 1>&6
20884
20885 cat >> confdefs.h <<\EOF
20886#define HAVE_DLOPEN 1
20887EOF
20888
20889 HAVE_DL_FUNCS=1
20890 DL_LINK=" -ldl$DL_LINK"
20891
20892else
20893 echo "$ac_t""no" 1>&6
20894
20895 for ac_func in shl_load
20896do
20897echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20898echo "configure:20899: checking for $ac_func" >&5
20899if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20900 echo $ac_n "(cached) $ac_c" 1>&6
20901else
20902 cat > conftest.$ac_ext <<EOF
20903#line 20904 "configure"
20904#include "confdefs.h"
20905/* System header to define __stub macros and hopefully few prototypes,
20906 which can conflict with char $ac_func(); below. */
20907#include <assert.h>
20908/* Override any gcc2 internal prototype to avoid an error. */
20909/* We use char because int might match the return type of a gcc2
20910 builtin and then its argument prototype would still apply. */
20911char $ac_func();
20912
20913int main() {
20914
20915/* The GNU C library defines this for functions which it implements
20916 to always fail with ENOSYS. Some functions are actually named
20917 something starting with __ and the normal name is an alias. */
20918#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20919choke me
20920#else
20921$ac_func();
20922#endif
20923
20924; return 0; }
20925EOF
20926if { (eval echo configure:20927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20927 rm -rf conftest*
20928 eval "ac_cv_func_$ac_func=yes"
20929else
20930 echo "configure: failed program was:" >&5
20931 cat conftest.$ac_ext >&5
20932 rm -rf conftest*
20933 eval "ac_cv_func_$ac_func=no"
20934fi
20935rm -f conftest*
20936fi
20937
20938if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20939 echo "$ac_t""yes" 1>&6
20940 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20941 cat >> confdefs.h <<EOF
20942#define $ac_tr_func 1
20943EOF
20944
20945 cat >> confdefs.h <<\EOF
20946#define HAVE_SHL_LOAD 1
20947EOF
20948
20949 HAVE_SHL_FUNCS=1
20950
20951else
20952 echo "$ac_t""no" 1>&6
20953echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
20954echo "configure:20955: checking for dld in -lshl_load" >&5
20955ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20956if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20957 echo $ac_n "(cached) $ac_c" 1>&6
20958else
20959 ac_save_LIBS="$LIBS"
20960LIBS="-lshl_load $LIBS"
20961cat > conftest.$ac_ext <<EOF
20962#line 20963 "configure"
20963#include "confdefs.h"
20964/* Override any gcc2 internal prototype to avoid an error. */
20965/* We use char because int might match the return type of a gcc2
20966 builtin and then its argument prototype would still apply. */
20967char dld();
20968
20969int main() {
20970dld()
20971; return 0; }
20972EOF
20973if { (eval echo configure:20974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20974 rm -rf conftest*
20975 eval "ac_cv_lib_$ac_lib_var=yes"
20976else
20977 echo "configure: failed program was:" >&5
20978 cat conftest.$ac_ext >&5
20979 rm -rf conftest*
20980 eval "ac_cv_lib_$ac_lib_var=no"
20981fi
20982rm -f conftest*
20983LIBS="$ac_save_LIBS"
20984
20985fi
20986if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20987 echo "$ac_t""yes" 1>&6
20988
20989 HAVE_SHL_FUNCS=1
20990 DL_LINK=" -ldld$DL_LINK"
20991
20992else
20993 echo "$ac_t""no" 1>&6
20994fi
20995
20996
20997fi
20998done
20999
21000
21001fi
21002
21003
21004fi
21005done
21006
21007
21008 if test "$HAVE_DL_FUNCS" = 1; then
21009 for ac_func in dlerror
21010do
21011echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21012echo "configure:21013: checking for $ac_func" >&5
21013if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21014 echo $ac_n "(cached) $ac_c" 1>&6
21015else
21016 cat > conftest.$ac_ext <<EOF
21017#line 21018 "configure"
21018#include "confdefs.h"
21019/* System header to define __stub macros and hopefully few prototypes,
21020 which can conflict with char $ac_func(); below. */
21021#include <assert.h>
21022/* Override any gcc2 internal prototype to avoid an error. */
21023/* We use char because int might match the return type of a gcc2
21024 builtin and then its argument prototype would still apply. */
21025char $ac_func();
21026
21027int main() {
21028
21029/* The GNU C library defines this for functions which it implements
21030 to always fail with ENOSYS. Some functions are actually named
21031 something starting with __ and the normal name is an alias. */
21032#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21033choke me
21034#else
21035$ac_func();
21036#endif
21037
21038; return 0; }
21039EOF
21040if { (eval echo configure:21041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21041 rm -rf conftest*
21042 eval "ac_cv_func_$ac_func=yes"
21043else
21044 echo "configure: failed program was:" >&5
21045 cat conftest.$ac_ext >&5
21046 rm -rf conftest*
21047 eval "ac_cv_func_$ac_func=no"
21048fi
21049rm -f conftest*
21050fi
21051
21052if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21053 echo "$ac_t""yes" 1>&6
21054 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21055 cat >> confdefs.h <<EOF
21056#define $ac_tr_func 1
21057EOF
21058 cat >> confdefs.h <<\EOF
21059#define HAVE_DLERROR 1
21060EOF
21061
21062else
21063 echo "$ac_t""no" 1>&6
21064echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
21065echo "configure:21066: checking for dlerror in -ldl" >&5
21066ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
21067if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21068 echo $ac_n "(cached) $ac_c" 1>&6
21069else
21070 ac_save_LIBS="$LIBS"
21071LIBS="-ldl $LIBS"
21072cat > conftest.$ac_ext <<EOF
21073#line 21074 "configure"
21074#include "confdefs.h"
21075/* Override any gcc2 internal prototype to avoid an error. */
21076/* We use char because int might match the return type of a gcc2
21077 builtin and then its argument prototype would still apply. */
21078char dlerror();
21079
21080int main() {
21081dlerror()
21082; return 0; }
21083EOF
21084if { (eval echo configure:21085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21085 rm -rf conftest*
21086 eval "ac_cv_lib_$ac_lib_var=yes"
21087else
21088 echo "configure: failed program was:" >&5
21089 cat conftest.$ac_ext >&5
21090 rm -rf conftest*
21091 eval "ac_cv_lib_$ac_lib_var=no"
21092fi
21093rm -f conftest*
21094LIBS="$ac_save_LIBS"
21095
21096fi
21097if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21098 echo "$ac_t""yes" 1>&6
21099 cat >> confdefs.h <<\EOF
21100#define HAVE_DLERROR 1
21101EOF
21102
21103else
21104 echo "$ac_t""no" 1>&6
21105fi
21106
21107fi
21108done
21109
21110 fi
21111 fi
21112
21113 if test "$HAVE_DL_FUNCS" = 0; then
21114 if test "$HAVE_SHL_FUNCS" = 0; then
21115 if test "$USE_UNIX" = 1; then
21116 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
21117 wxUSE_DYNAMIC_LOADER=no
21118 wxUSE_DYNLIB_CLASS=no
21119 else
21120 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
21121 fi
21122 fi
21123 fi
21124 fi
21125fi
21126
21127if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
21128 cat >> confdefs.h <<\EOF
21129#define wxUSE_DYNAMIC_LOADER 1
21130EOF
21131
21132elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
21133 cat >> confdefs.h <<\EOF
21134#define wxUSE_DYNLIB_CLASS 1
21135EOF
21136
21137fi
21138
21139
21140if test "$wxUSE_FONTMAP" = "yes" ; then
21141 cat >> confdefs.h <<\EOF
21142#define wxUSE_FONTMAP 1
21143EOF
21144
21145fi
21146
21147if test "$wxUSE_UNICODE" = "yes" ; then
21148 cat >> confdefs.h <<\EOF
21149#define wxUSE_UNICODE 1
21150EOF
21151
21152
21153 if test "$wxUSE_MSW" != 1; then
21154 wxUSE_UNICODE_MSLU=no
21155 fi
21156
21157 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
21158 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
21159echo "configure:21160: checking for main in -lunicows" >&5
21160ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
21161if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
21162 echo $ac_n "(cached) $ac_c" 1>&6
21163else
21164 ac_save_LIBS="$LIBS"
21165LIBS="-lunicows $LIBS"
21166cat > conftest.$ac_ext <<EOF
21167#line 21168 "configure"
21168#include "confdefs.h"
21169
21170int main() {
21171main()
21172; return 0; }
21173EOF
21174if { (eval echo configure:21175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21175 rm -rf conftest*
21176 eval "ac_cv_lib_$ac_lib_var=yes"
21177else
21178 echo "configure: failed program was:" >&5
21179 cat conftest.$ac_ext >&5
21180 rm -rf conftest*
21181 eval "ac_cv_lib_$ac_lib_var=no"
21182fi
21183rm -f conftest*
21184LIBS="$ac_save_LIBS"
21185
21186fi
21187if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21188 echo "$ac_t""yes" 1>&6
21189
21190 cat >> confdefs.h <<\EOF
21191#define wxUSE_UNICODE_MSLU 1
21192EOF
21193
21194
21195else
21196 echo "$ac_t""no" 1>&6
21197
21198 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
21199 Applications will only run on Windows NT/2000/XP!" 1>&2
21200 wxUSE_UNICODE_MSLU=no
21201
21202fi
21203
21204 fi
21205fi
21206
21207if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
21208 cat >> confdefs.h <<\EOF
21209#define wxUSE_EXPERIMENTAL_PRINTF 1
21210EOF
21211
21212fi
21213
21214
21215if test "$wxUSE_POSTSCRIPT" = "yes" ; then
21216 cat >> confdefs.h <<\EOF
21217#define wxUSE_POSTSCRIPT 1
21218EOF
21219
21220fi
21221
21222cat >> confdefs.h <<\EOF
21223#define wxUSE_AFM_FOR_POSTSCRIPT 1
21224EOF
21225
21226
21227cat >> confdefs.h <<\EOF
21228#define wxUSE_NORMALIZED_PS_FONTS 1
21229EOF
21230
21231
21232
21233if test "$wxUSE_CONSTRAINTS" = "yes"; then
21234 cat >> confdefs.h <<\EOF
21235#define wxUSE_CONSTRAINTS 1
21236EOF
21237
21238 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
21239fi
21240
21241if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21242
21243
21244 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21245 cat >> confdefs.h <<\EOF
21246#define wxUSE_MDI_ARCHITECTURE 1
21247EOF
21248
21249 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
21250 fi
21251fi
21252
21253if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
21254 cat >> confdefs.h <<\EOF
21255#define wxUSE_DOC_VIEW_ARCHITECTURE 1
21256EOF
21257
21258 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
21259 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21260 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
21261 fi
21262fi
21263
21264if test "$wxUSE_HELP" = "yes"; then
21265 cat >> confdefs.h <<\EOF
21266#define wxUSE_HELP 1
21267EOF
21268
21269 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
21270
21271 if test "$wxUSE_MSW" = 1; then
21272 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
21273 cat >> confdefs.h <<\EOF
21274#define wxUSE_MS_HTML_HELP 1
21275EOF
21276
21277 fi
21278 fi
21279
21280 if test "$wxUSE_WXHTML_HELP" = "yes"; then
21281 if test "$wxUSE_HTML" = "yes"; then
21282 cat >> confdefs.h <<\EOF
21283#define wxUSE_WXHTML_HELP 1
21284EOF
21285
21286 else
21287 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
21288 wxUSE_WXHTML_HELP=no
21289 fi
21290 fi
21291fi
21292
21293if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
21294 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21295 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
21296 else
21297 cat >> confdefs.h <<\EOF
21298#define wxUSE_PRINTING_ARCHITECTURE 1
21299EOF
21300
21301 fi
21302 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
21303fi
21304
21305if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
21306 { echo "configure: error: wxExpr and old-style resources are now available in contrib only" 1>&2; exit 1; }
21307fi
21308
21309
21310if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
21311 -o "$wxUSE_CLIPBOARD" = "yes" \
21312 -o "$wxUSE_OLE" = "yes" \
21313 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
21314 for ac_hdr in ole2.h
21315do
21316ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21317echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21318echo "configure:21319: checking for $ac_hdr" >&5
21319if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21320 echo $ac_n "(cached) $ac_c" 1>&6
21321else
21322 cat > conftest.$ac_ext <<EOF
21323#line 21324 "configure"
21324#include "confdefs.h"
21325#include <$ac_hdr>
21326EOF
21327ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21328{ (eval echo configure:21329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21329ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21330if test -z "$ac_err"; then
21331 rm -rf conftest*
21332 eval "ac_cv_header_$ac_safe=yes"
21333else
21334 echo "$ac_err" >&5
21335 echo "configure: failed program was:" >&5
21336 cat conftest.$ac_ext >&5
21337 rm -rf conftest*
21338 eval "ac_cv_header_$ac_safe=no"
21339fi
21340rm -f conftest*
21341fi
21342if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21343 echo "$ac_t""yes" 1>&6
21344 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21345 cat >> confdefs.h <<EOF
21346#define $ac_tr_hdr 1
21347EOF
21348
21349else
21350 echo "$ac_t""no" 1>&6
21351fi
21352done
21353
21354
21355 if test "$ac_cv_header_ole2_h" = "yes" ; then
21356 if test "$GCC" = yes ; then
21357
21358 ac_ext=C
21359# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21360ac_cpp='$CXXCPP $CPPFLAGS'
21361ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21362ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21363cross_compiling=$ac_cv_prog_cxx_cross
21364
21365
21366 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
21367echo "configure:21368: checking if g++ requires -fvtable-thunks" >&5
21368 cat > conftest.$ac_ext <<EOF
21369#line 21370 "configure"
21370#include "confdefs.h"
21371#include <windows.h>
21372 #include <ole2.h>
21373int main() {
21374
21375; return 0; }
21376EOF
21377if { (eval echo configure:21378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21378 rm -rf conftest*
21379 echo "$ac_t""no" 1>&6
21380else
21381 echo "configure: failed program was:" >&5
21382 cat conftest.$ac_ext >&5
21383 rm -rf conftest*
21384 echo "$ac_t""yes" 1>&6
21385 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
21386fi
21387rm -f conftest*
21388 ac_ext=c
21389# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21390ac_cpp='$CPP $CPPFLAGS'
21391ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21392ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21393cross_compiling=$ac_cv_prog_cc_cross
21394
21395 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
21396 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
21397 cat >> confdefs.h <<\EOF
21398#define wxUSE_OLE 1
21399EOF
21400
21401
21402 fi
21403
21404 cat >> confdefs.h <<\EOF
21405#define wxUSE_DATAOBJ 1
21406EOF
21407
21408 else
21409 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
21410
21411 wxUSE_CLIPBOARD=no
21412 wxUSE_DRAG_AND_DROP=no
21413 wxUSE_DATAOBJ=no
21414 wxUSE_OLE=no
21415 fi
21416
21417 if test "$wxUSE_METAFILE" = "yes"; then
21418 cat >> confdefs.h <<\EOF
21419#define wxUSE_METAFILE 1
21420EOF
21421
21422
21423 cat >> confdefs.h <<\EOF
21424#define wxUSE_ENH_METAFILE 1
21425EOF
21426
21427 fi
21428fi
21429
21430if test "$wxUSE_IPC" = "yes"; then
21431 if test "$wxUSE_SOCKETS" != "yes"; then
21432 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
21433 fi
21434
21435 cat >> confdefs.h <<\EOF
21436#define wxUSE_IPC 1
21437EOF
21438
21439fi
21440
21441if test "$wxUSE_CLIPBOARD" = "yes"; then
21442 if test "$wxUSE_MGL" = 1; then
21443 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
21444 wxUSE_CLIPBOARD=no
21445 fi
21446
21447 if test "$wxUSE_CLIPBOARD" = "yes"; then
21448 cat >> confdefs.h <<\EOF
21449#define wxUSE_CLIPBOARD 1
21450EOF
21451
21452
21453 cat >> confdefs.h <<\EOF
21454#define wxUSE_DATAOBJ 1
21455EOF
21456
21457 fi
21458fi
21459
21460if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
21461 if test "$wxUSE_GTK" = 1; then
21462 if test "$WXGTK12" != 1; then
21463 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
21464 wxUSE_DRAG_AND_DROP=no
21465 fi
21466 fi
21467
21468 if test "$wxUSE_MOTIF" = 1; then
21469 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
21470 wxUSE_DRAG_AND_DROP=no
21471 fi
21472
21473 if test "$wxUSE_X11" = 1; then
21474 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
21475 wxUSE_DRAG_AND_DROP=no
21476 fi
21477
21478 if test "$wxUSE_MGL" = 1; then
21479 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
21480 wxUSE_DRAG_AND_DROP=no
21481 fi
21482
21483 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
21484 cat >> confdefs.h <<\EOF
21485#define wxUSE_DRAG_AND_DROP 1
21486EOF
21487
21488 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21489 fi
21490
21491fi
21492
21493if test "$wxUSE_SPLINES" = "yes" ; then
21494 cat >> confdefs.h <<\EOF
21495#define wxUSE_SPLINES 1
21496EOF
21497
21498fi
21499
21500
21501USES_CONTROLS=0
21502if test "$wxUSE_CONTROLS" = "yes"; then
21503 USES_CONTROLS=1
21504fi
21505
21506if test "$wxUSE_ACCEL" = "yes"; then
21507 cat >> confdefs.h <<\EOF
21508#define wxUSE_ACCEL 1
21509EOF
21510
21511 USES_CONTROLS=1
21512fi
21513
21514if test "$wxUSE_BUTTON" = "yes"; then
21515 cat >> confdefs.h <<\EOF
21516#define wxUSE_BUTTON 1
21517EOF
21518
21519 USES_CONTROLS=1
21520fi
21521
21522if test "$wxUSE_BMPBUTTON" = "yes"; then
21523 cat >> confdefs.h <<\EOF
21524#define wxUSE_BMPBUTTON 1
21525EOF
21526
21527 USES_CONTROLS=1
21528fi
21529
21530if test "$wxUSE_CALCTRL" = "yes"; then
21531 cat >> confdefs.h <<\EOF
21532#define wxUSE_CALENDARCTRL 1
21533EOF
21534
21535 USES_CONTROLS=1
21536 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
21537fi
21538
21539if test "$wxUSE_CARET" = "yes"; then
21540 cat >> confdefs.h <<\EOF
21541#define wxUSE_CARET 1
21542EOF
21543
21544 USES_CONTROLS=1
21545 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21546fi
21547
21548if test "$wxUSE_COMBOBOX" = "yes"; then
21549 cat >> confdefs.h <<\EOF
21550#define wxUSE_COMBOBOX 1
21551EOF
21552
21553 USES_CONTROLS=1
21554fi
21555
21556if test "$wxUSE_CHOICE" = "yes"; then
21557 cat >> confdefs.h <<\EOF
21558#define wxUSE_CHOICE 1
21559EOF
21560
21561 USES_CONTROLS=1
21562fi
21563
21564if test "$wxUSE_CHECKBOX" = "yes"; then
21565 cat >> confdefs.h <<\EOF
21566#define wxUSE_CHECKBOX 1
21567EOF
21568
21569 USES_CONTROLS=1
21570fi
21571
21572if test "$wxUSE_CHECKLST" = "yes"; then
21573 cat >> confdefs.h <<\EOF
21574#define wxUSE_CHECKLISTBOX 1
21575EOF
21576
21577 USES_CONTROLS=1
21578 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21579fi
21580
21581if test "$wxUSE_DISPLAY" = "yes"; then
21582 cat >> confdefs.h <<\EOF
21583#define wxUSE_DISPLAY 1
21584EOF
21585
21586 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
21587fi
21588
21589if test "$wxUSE_GAUGE" = "yes"; then
21590 cat >> confdefs.h <<\EOF
21591#define wxUSE_GAUGE 1
21592EOF
21593
21594 USES_CONTROLS=1
21595fi
21596
21597if test "$wxUSE_GRID" = "yes"; then
21598 cat >> confdefs.h <<\EOF
21599#define wxUSE_GRID 1
21600EOF
21601
21602 USES_CONTROLS=1
21603 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
21604fi
21605
21606if test "$wxUSE_IMAGLIST" = "yes"; then
21607 cat >> confdefs.h <<\EOF
21608#define wxUSE_IMAGLIST 1
21609EOF
21610
21611fi
21612
21613if test "$wxUSE_LISTBOX" = "yes"; then
21614 cat >> confdefs.h <<\EOF
21615#define wxUSE_LISTBOX 1
21616EOF
21617
21618 USES_CONTROLS=1
21619fi
21620
21621if test "$wxUSE_LISTCTRL" = "yes"; then
21622 if test "$wxUSE_IMAGLIST" = "yes"; then
21623 cat >> confdefs.h <<\EOF
21624#define wxUSE_LISTCTRL 1
21625EOF
21626
21627 USES_CONTROLS=1
21628 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21629 else
21630 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
21631 fi
21632fi
21633
21634if test "$wxUSE_NOTEBOOK" = "yes"; then
21635 cat >> confdefs.h <<\EOF
21636#define wxUSE_NOTEBOOK 1
21637EOF
21638
21639 USES_CONTROLS=1
21640 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21641fi
21642
21643
21644if test "$wxUSE_RADIOBOX" = "yes"; then
21645 cat >> confdefs.h <<\EOF
21646#define wxUSE_RADIOBOX 1
21647EOF
21648
21649 USES_CONTROLS=1
21650fi
21651
21652if test "$wxUSE_RADIOBTN" = "yes"; then
21653 cat >> confdefs.h <<\EOF
21654#define wxUSE_RADIOBTN 1
21655EOF
21656
21657 USES_CONTROLS=1
21658fi
21659
21660if test "$wxUSE_SASH" = "yes"; then
21661 cat >> confdefs.h <<\EOF
21662#define wxUSE_SASH 1
21663EOF
21664
21665 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21666fi
21667
21668if test "$wxUSE_SCROLLBAR" = "yes"; then
21669 cat >> confdefs.h <<\EOF
21670#define wxUSE_SCROLLBAR 1
21671EOF
21672
21673 USES_CONTROLS=1
21674 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
21675fi
21676
21677if test "$wxUSE_SLIDER" = "yes"; then
21678 cat >> confdefs.h <<\EOF
21679#define wxUSE_SLIDER 1
21680EOF
21681
21682 USES_CONTROLS=1
21683fi
21684
21685if test "$wxUSE_SPINBTN" = "yes"; then
21686 cat >> confdefs.h <<\EOF
21687#define wxUSE_SPINBTN 1
21688EOF
21689
21690 USES_CONTROLS=1
21691fi
21692
21693if test "$wxUSE_SPINCTRL" = "yes"; then
21694 cat >> confdefs.h <<\EOF
21695#define wxUSE_SPINCTRL 1
21696EOF
21697
21698 USES_CONTROLS=1
21699fi
21700
21701if test "$wxUSE_SPLITTER" = "yes"; then
21702 cat >> confdefs.h <<\EOF
21703#define wxUSE_SPLITTER 1
21704EOF
21705
21706 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21707fi
21708
21709if test "$wxUSE_STATBMP" = "yes"; then
21710 cat >> confdefs.h <<\EOF
21711#define wxUSE_STATBMP 1
21712EOF
21713
21714 USES_CONTROLS=1
21715fi
21716
21717if test "$wxUSE_STATBOX" = "yes"; then
21718 cat >> confdefs.h <<\EOF
21719#define wxUSE_STATBOX 1
21720EOF
21721
21722 USES_CONTROLS=1
21723fi
21724
21725if test "$wxUSE_STATTEXT" = "yes"; then
21726 cat >> confdefs.h <<\EOF
21727#define wxUSE_STATTEXT 1
21728EOF
21729
21730 USES_CONTROLS=1
21731fi
21732
21733if test "$wxUSE_STATLINE" = "yes"; then
21734 cat >> confdefs.h <<\EOF
21735#define wxUSE_STATLINE 1
21736EOF
21737
21738 USES_CONTROLS=1
21739fi
21740
21741if test "$wxUSE_STATUSBAR" = "yes"; then
21742 cat >> confdefs.h <<\EOF
21743#define wxUSE_STATUSBAR 1
21744EOF
21745
21746 USES_CONTROLS=1
21747
21748 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
21749fi
21750
21751if test "$wxUSE_TABDIALOG" = "yes"; then
21752 cat >> confdefs.h <<\EOF
21753#define wxUSE_TAB_DIALOG 1
21754EOF
21755
21756 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21757fi
21758
21759if test "$wxUSE_TEXTCTRL" = "yes"; then
21760 cat >> confdefs.h <<\EOF
21761#define wxUSE_TEXTCTRL 1
21762EOF
21763
21764 USES_CONTROLS=1
21765 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21766fi
21767
21768if test "$wxUSE_TOGGLEBTN" = "yes"; then
21769 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21770 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
21771 wxUSE_TOGGLEBTN=no
21772 fi
21773 if test "$wxUSE_UNIVERSAL" = "yes"; then
21774 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
21775 wxUSE_TOGGLEBTN=no
21776 fi
21777
21778 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21779 cat >> confdefs.h <<\EOF
21780#define wxUSE_TOGGLEBTN 1
21781EOF
21782
21783 USES_CONTROLS=1
21784 fi
21785fi
21786
21787if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
21788 cat >> confdefs.h <<\EOF
21789#define wxUSE_TOOLBAR_SIMPLE 1
21790EOF
21791
21792 wxUSE_TOOLBAR="yes"
21793 USES_CONTROLS=1
21794fi
21795
21796if test "$wxUSE_TOOLBAR" = "yes"; then
21797 cat >> confdefs.h <<\EOF
21798#define wxUSE_TOOLBAR 1
21799EOF
21800
21801 USES_CONTROLS=1
21802
21803 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21804 wxUSE_TOOLBAR_NATIVE="yes"
21805 fi
21806
21807 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
21808 cat >> confdefs.h <<\EOF
21809#define wxUSE_TOOLBAR_NATIVE 1
21810EOF
21811
21812 USES_CONTROLS=1
21813 fi
21814
21815 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
21816fi
21817
21818if test "$wxUSE_TOOLTIPS" = "yes"; then
21819 if test "$wxUSE_MOTIF" = 1; then
21820 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
21821 else
21822 if test "$wxUSE_UNIVERSAL" = "yes"; then
21823 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
21824 else
21825 cat >> confdefs.h <<\EOF
21826#define wxUSE_TOOLTIPS 1
21827EOF
21828
21829 fi
21830 fi
21831fi
21832
21833if test "$wxUSE_TREECTRL" = "yes"; then
21834 if test "$wxUSE_IMAGLIST" = "yes"; then
21835 cat >> confdefs.h <<\EOF
21836#define wxUSE_TREECTRL 1
21837EOF
21838
21839 USES_CONTROLS=1
21840 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21841 else
21842 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
21843 fi
21844fi
21845
21846if test "$wxUSE_POPUPWIN" = "yes"; then
21847 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21848 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
21849 else
21850 if test "$wxUSE_MOTIF" = 1; then
21851 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
21852 else
21853 if test "$wxUSE_PM" = 1; then
21854 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
21855 else
21856 cat >> confdefs.h <<\EOF
21857#define wxUSE_POPUPWIN 1
21858EOF
21859
21860
21861 USES_CONTROLS=1
21862 fi
21863 fi
21864 fi
21865fi
21866
21867if test "$wxUSE_TIPWINDOW" = "yes"; then
21868 if test "$wxUSE_PM" = 1; then
21869 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
21870 else
21871 cat >> confdefs.h <<\EOF
21872#define wxUSE_TIPWINDOW 1
21873EOF
21874
21875 fi
21876fi
21877
21878if test "$USES_CONTROLS" = 1; then
21879 cat >> confdefs.h <<\EOF
21880#define wxUSE_CONTROLS 1
21881EOF
21882
21883fi
21884
21885
21886
21887if test "$wxUSE_DRAGIMAGE" = "yes"; then
21888 cat >> confdefs.h <<\EOF
21889#define wxUSE_DRAGIMAGE 1
21890EOF
21891
21892 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21893fi
21894
21895if test "$wxUSE_ACCESSIBILITY" = "yes"; then
21896 cat >> confdefs.h <<\EOF
21897#define wxUSE_ACCESSIBILITY 1
21898EOF
21899
21900 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
21901fi
21902
21903if test "$wxUSE_MENUS" = "yes"; then
21904 cat >> confdefs.h <<\EOF
21905#define wxUSE_MENUS 1
21906EOF
21907
21908 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
21909fi
21910
21911if test "$wxUSE_METAFILE" = "yes"; then
21912 cat >> confdefs.h <<\EOF
21913#define wxUSE_METAFILE 1
21914EOF
21915
21916fi
21917
21918if test "$wxUSE_MIMETYPE" = "yes"; then
21919 cat >> confdefs.h <<\EOF
21920#define wxUSE_MIMETYPE 1
21921EOF
21922
21923fi
21924
21925if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
21926 cat >> confdefs.h <<\EOF
21927#define wxUSE_SYSTEM_OPTIONS 1
21928EOF
21929
21930if test "$TOOLKIT" = "MSW"; then
21931 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21932fi
21933
21934fi
21935
21936if test "$wxUSE_PROTOCOL" = "yes"; then
21937 if test "$wxUSE_SOCKETS" != "yes"; then
21938 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
21939 wxUSE_PROTOCOL=no
21940 fi
21941
21942 if test "$wxUSE_PROTOCOL" = "yes"; then
21943 cat >> confdefs.h <<\EOF
21944#define wxUSE_PROTOCOL 1
21945EOF
21946
21947
21948 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
21949 cat >> confdefs.h <<\EOF
21950#define wxUSE_PROTOCOL_HTTP 1
21951EOF
21952
21953 fi
21954 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
21955 cat >> confdefs.h <<\EOF
21956#define wxUSE_PROTOCOL_FTP 1
21957EOF
21958
21959 fi
21960 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
21961 cat >> confdefs.h <<\EOF
21962#define wxUSE_PROTOCOL_FILE 1
21963EOF
21964
21965 fi
21966 fi
21967fi
21968
21969if test "$wxUSE_URL" = "yes"; then
21970 if test "$wxUSE_PROTOCOL" != "yes"; then
21971 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
21972 wxUSE_URL=no
21973 fi
21974 if test "$wxUSE_URL" = "yes"; then
21975 cat >> confdefs.h <<\EOF
21976#define wxUSE_URL 1
21977EOF
21978
21979 fi
21980fi
21981
21982if test "$wxUSE_MINIFRAME" = "yes"; then
21983 cat >> confdefs.h <<\EOF
21984#define wxUSE_MINIFRAME 1
21985EOF
21986
21987 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
21988fi
21989
21990if test "$wxUSE_HTML" = "yes"; then
21991 cat >> confdefs.h <<\EOF
21992#define wxUSE_HTML 1
21993EOF
21994
21995 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
21996fi
21997
21998if test "$wxUSE_VALIDATORS" = "yes"; then
21999 cat >> confdefs.h <<\EOF
22000#define wxUSE_VALIDATORS 1
22001EOF
22002
22003 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
22004fi
22005
22006if test "$wxUSE_PALETTE" = "yes" ; then
22007 cat >> confdefs.h <<\EOF
22008#define wxUSE_PALETTE 1
22009EOF
22010
22011fi
22012
22013if test "$wxUSE_IMAGE" = "yes" ; then
22014 cat >> confdefs.h <<\EOF
22015#define wxUSE_IMAGE 1
22016EOF
22017
22018fi
22019
22020if test "$wxUSE_GIF" = "yes" ; then
22021 cat >> confdefs.h <<\EOF
22022#define wxUSE_GIF 1
22023EOF
22024
22025fi
22026
22027if test "$wxUSE_PCX" = "yes" ; then
22028 cat >> confdefs.h <<\EOF
22029#define wxUSE_PCX 1
22030EOF
22031
22032fi
22033
22034if test "$wxUSE_IFF" = "yes" ; then
22035 cat >> confdefs.h <<\EOF
22036#define wxUSE_IFF 1
22037EOF
22038
22039fi
22040
22041if test "$wxUSE_PNM" = "yes" ; then
22042 cat >> confdefs.h <<\EOF
22043#define wxUSE_PNM 1
22044EOF
22045
22046fi
22047
22048if test "$wxUSE_XPM" = "yes" ; then
22049 cat >> confdefs.h <<\EOF
22050#define wxUSE_XPM 1
22051EOF
22052
22053fi
22054
22055if test "$wxUSE_ICO_CUR" = "yes" ; then
22056 cat >> confdefs.h <<\EOF
22057#define wxUSE_ICO_CUR 1
22058EOF
22059
22060fi
22061
22062if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
22063 LIBS=" -lunicows $LIBS"
22064fi
22065
22066
22067if test "$wxUSE_CHOICEDLG" = "yes"; then
22068 cat >> confdefs.h <<\EOF
22069#define wxUSE_CHOICEDLG 1
22070EOF
22071
22072fi
22073
22074if test "$wxUSE_COLOURDLG" = "yes"; then
22075 cat >> confdefs.h <<\EOF
22076#define wxUSE_COLOURDLG 1
22077EOF
22078
22079fi
22080
22081if test "$wxUSE_FILEDLG" = "yes"; then
22082 cat >> confdefs.h <<\EOF
22083#define wxUSE_FILEDLG 1
22084EOF
22085
22086fi
22087
22088if test "$wxUSE_FINDREPLDLG" = "yes"; then
22089 cat >> confdefs.h <<\EOF
22090#define wxUSE_FINDREPLDLG 1
22091EOF
22092
22093fi
22094
22095if test "$wxUSE_FONTDLG" = "yes"; then
22096 cat >> confdefs.h <<\EOF
22097#define wxUSE_FONTDLG 1
22098EOF
22099
22100fi
22101
22102if test "$wxUSE_DIRDLG" = "yes"; then
22103 if test "$wxUSE_TREECTRL" != "yes"; then
22104 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
22105 else
22106 cat >> confdefs.h <<\EOF
22107#define wxUSE_DIRDLG 1
22108EOF
22109
22110 fi
22111fi
22112
22113if test "$wxUSE_MSGDLG" = "yes"; then
22114 cat >> confdefs.h <<\EOF
22115#define wxUSE_MSGDLG 1
22116EOF
22117
22118fi
22119
22120if test "$wxUSE_NUMBERDLG" = "yes"; then
22121 cat >> confdefs.h <<\EOF
22122#define wxUSE_NUMBERDLG 1
22123EOF
22124
22125fi
22126
22127if test "$wxUSE_PROGRESSDLG" = "yes"; then
22128 if test "$wxUSE_CONSTRAINTS" != "yes"; then
22129 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
22130 else
22131 cat >> confdefs.h <<\EOF
22132#define wxUSE_PROGRESSDLG 1
22133EOF
22134
22135 fi
22136fi
22137
22138if test "$wxUSE_SPLASH" = "yes"; then
22139 cat >> confdefs.h <<\EOF
22140#define wxUSE_SPLASH 1
22141EOF
22142
22143fi
22144
22145if test "$wxUSE_STARTUP_TIPS" = "yes"; then
22146 if test "$wxUSE_CONSTRAINTS" != "yes"; then
22147 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
22148 else
22149 cat >> confdefs.h <<\EOF
22150#define wxUSE_STARTUP_TIPS 1
22151EOF
22152
22153 fi
22154fi
22155
22156if test "$wxUSE_TEXTDLG" = "yes"; then
22157 cat >> confdefs.h <<\EOF
22158#define wxUSE_TEXTDLG 1
22159EOF
22160
22161fi
22162
22163if test "$wxUSE_WIZARDDLG" = "yes"; then
22164 cat >> confdefs.h <<\EOF
22165#define wxUSE_WIZARDDLG 1
22166EOF
22167
22168 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
22169fi
22170
22171
22172if test "$cross_compiling" = "yes"; then
22173 OSINFO="\"$host\""
22174else
22175 OSINFO=`uname -s -r -m`
22176 OSINFO="\"$OSINFO\""
22177fi
22178
22179cat >> confdefs.h <<EOF
22180#define WXWIN_OS_DESCRIPTION $OSINFO
22181EOF
22182
22183
22184
22185if test "x$prefix" != "xNONE"; then
22186 wxPREFIX=$prefix
22187else
22188 wxPREFIX=$ac_default_prefix
22189fi
22190
22191cat >> confdefs.h <<EOF
22192#define wxINSTALL_PREFIX "$wxPREFIX"
22193EOF
22194
22195
22196top_builddir=`pwd`
22197
22198
22199
22200
22201if test "$wxUSE_MAC" = 1 ; then
22202 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
22203fi
22204if test "$wxUSE_COCOA" = 1 ; then
22205 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
22206fi
22207
22208
22209LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
22210
22211have_cos=0
22212have_floor=0
22213for ac_func in cos
22214do
22215echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22216echo "configure:22217: checking for $ac_func" >&5
22217if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22218 echo $ac_n "(cached) $ac_c" 1>&6
22219else
22220 cat > conftest.$ac_ext <<EOF
22221#line 22222 "configure"
22222#include "confdefs.h"
22223/* System header to define __stub macros and hopefully few prototypes,
22224 which can conflict with char $ac_func(); below. */
22225#include <assert.h>
22226/* Override any gcc2 internal prototype to avoid an error. */
22227/* We use char because int might match the return type of a gcc2
22228 builtin and then its argument prototype would still apply. */
22229char $ac_func();
22230
22231int main() {
22232
22233/* The GNU C library defines this for functions which it implements
22234 to always fail with ENOSYS. Some functions are actually named
22235 something starting with __ and the normal name is an alias. */
22236#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22237choke me
22238#else
22239$ac_func();
22240#endif
22241
22242; return 0; }
22243EOF
22244if { (eval echo configure:22245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22245 rm -rf conftest*
22246 eval "ac_cv_func_$ac_func=yes"
22247else
22248 echo "configure: failed program was:" >&5
22249 cat conftest.$ac_ext >&5
22250 rm -rf conftest*
22251 eval "ac_cv_func_$ac_func=no"
22252fi
22253rm -f conftest*
22254fi
22255
22256if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22257 echo "$ac_t""yes" 1>&6
22258 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22259 cat >> confdefs.h <<EOF
22260#define $ac_tr_func 1
22261EOF
22262 have_cos=1
22263else
22264 echo "$ac_t""no" 1>&6
22265fi
22266done
22267
22268for ac_func in floor
22269do
22270echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22271echo "configure:22272: checking for $ac_func" >&5
22272if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22273 echo $ac_n "(cached) $ac_c" 1>&6
22274else
22275 cat > conftest.$ac_ext <<EOF
22276#line 22277 "configure"
22277#include "confdefs.h"
22278/* System header to define __stub macros and hopefully few prototypes,
22279 which can conflict with char $ac_func(); below. */
22280#include <assert.h>
22281/* Override any gcc2 internal prototype to avoid an error. */
22282/* We use char because int might match the return type of a gcc2
22283 builtin and then its argument prototype would still apply. */
22284char $ac_func();
22285
22286int main() {
22287
22288/* The GNU C library defines this for functions which it implements
22289 to always fail with ENOSYS. Some functions are actually named
22290 something starting with __ and the normal name is an alias. */
22291#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22292choke me
22293#else
22294$ac_func();
22295#endif
22296
22297; return 0; }
22298EOF
22299if { (eval echo configure:22300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22300 rm -rf conftest*
22301 eval "ac_cv_func_$ac_func=yes"
22302else
22303 echo "configure: failed program was:" >&5
22304 cat conftest.$ac_ext >&5
22305 rm -rf conftest*
22306 eval "ac_cv_func_$ac_func=no"
22307fi
22308rm -f conftest*
22309fi
22310
22311if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22312 echo "$ac_t""yes" 1>&6
22313 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22314 cat >> confdefs.h <<EOF
22315#define $ac_tr_func 1
22316EOF
22317 have_floor=1
22318else
22319 echo "$ac_t""no" 1>&6
22320fi
22321done
22322
22323echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
22324echo "configure:22325: checking if floating point functions link without -lm" >&5
22325if test "$have_cos" = 1 -a "$have_floor" = 1; then
22326 echo "$ac_t""yes" 1>&6
22327else
22328 echo "$ac_t""no" 1>&6
22329 LIBS="$LIBS -lm"
22330 # use different functions to avoid configure caching
22331 have_sin=0
22332 have_ceil=0
22333 for ac_func in sin
22334do
22335echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22336echo "configure:22337: checking for $ac_func" >&5
22337if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22338 echo $ac_n "(cached) $ac_c" 1>&6
22339else
22340 cat > conftest.$ac_ext <<EOF
22341#line 22342 "configure"
22342#include "confdefs.h"
22343/* System header to define __stub macros and hopefully few prototypes,
22344 which can conflict with char $ac_func(); below. */
22345#include <assert.h>
22346/* Override any gcc2 internal prototype to avoid an error. */
22347/* We use char because int might match the return type of a gcc2
22348 builtin and then its argument prototype would still apply. */
22349char $ac_func();
22350
22351int main() {
22352
22353/* The GNU C library defines this for functions which it implements
22354 to always fail with ENOSYS. Some functions are actually named
22355 something starting with __ and the normal name is an alias. */
22356#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22357choke me
22358#else
22359$ac_func();
22360#endif
22361
22362; return 0; }
22363EOF
22364if { (eval echo configure:22365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22365 rm -rf conftest*
22366 eval "ac_cv_func_$ac_func=yes"
22367else
22368 echo "configure: failed program was:" >&5
22369 cat conftest.$ac_ext >&5
22370 rm -rf conftest*
22371 eval "ac_cv_func_$ac_func=no"
22372fi
22373rm -f conftest*
22374fi
22375
22376if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22377 echo "$ac_t""yes" 1>&6
22378 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22379 cat >> confdefs.h <<EOF
22380#define $ac_tr_func 1
22381EOF
22382 have_sin=1
22383else
22384 echo "$ac_t""no" 1>&6
22385fi
22386done
22387
22388 for ac_func in ceil
22389do
22390echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22391echo "configure:22392: checking for $ac_func" >&5
22392if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22393 echo $ac_n "(cached) $ac_c" 1>&6
22394else
22395 cat > conftest.$ac_ext <<EOF
22396#line 22397 "configure"
22397#include "confdefs.h"
22398/* System header to define __stub macros and hopefully few prototypes,
22399 which can conflict with char $ac_func(); below. */
22400#include <assert.h>
22401/* Override any gcc2 internal prototype to avoid an error. */
22402/* We use char because int might match the return type of a gcc2
22403 builtin and then its argument prototype would still apply. */
22404char $ac_func();
22405
22406int main() {
22407
22408/* The GNU C library defines this for functions which it implements
22409 to always fail with ENOSYS. Some functions are actually named
22410 something starting with __ and the normal name is an alias. */
22411#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22412choke me
22413#else
22414$ac_func();
22415#endif
22416
22417; return 0; }
22418EOF
22419if { (eval echo configure:22420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22420 rm -rf conftest*
22421 eval "ac_cv_func_$ac_func=yes"
22422else
22423 echo "configure: failed program was:" >&5
22424 cat conftest.$ac_ext >&5
22425 rm -rf conftest*
22426 eval "ac_cv_func_$ac_func=no"
22427fi
22428rm -f conftest*
22429fi
22430
22431if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22432 echo "$ac_t""yes" 1>&6
22433 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22434 cat >> confdefs.h <<EOF
22435#define $ac_tr_func 1
22436EOF
22437 have_ceil=1
22438else
22439 echo "$ac_t""no" 1>&6
22440fi
22441done
22442
22443 echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
22444echo "configure:22445: checking if floating point functions link with -lm" >&5
22445 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
22446 echo "$ac_t""yes" 1>&6
22447 else
22448 echo "$ac_t""no" 1>&6
22449 # not sure we should warn the user, crash, etc.
22450 fi
22451fi
22452
22453if test "$wxUSE_GUI" = "yes"; then
22454
22455 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
22456
22457
22458 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
22459 drawing dynamic erase event exec font image \
22460 minimal propsize rotate shaped widgets"
22461
22462 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
22463else
22464 SAMPLES_SUBDIRS="console"
22465fi
22466
22467
22468INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22469-I\${top_srcdir}/include \
22470$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22471$TOOLKIT_INCLUDE"
22472
22473if test "$wxUSE_GTK" = 1; then
22474 WXCONFIG_INCLUDE=
22475else
22476 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22477fi
22478
22479if test "$GXX" = yes ; then
22480 CXXWARNINGS="-Wall"
22481
22482 if test "$wxUSE_NO_DEPS" = "no" ; then
22483 CFLAGS="-MMD $CFLAGS"
22484 CXXFLAGS="-MMD $CXXFLAGS"
22485 fi
22486fi
22487
22488EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
22489
22490CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
22491CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
22492CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
22493LIBS=`echo $LIBS | sed 's/ \+/ /g'`
22494
22495LDFLAGS="$LDFLAGS $PROFILE"
22496
22497SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
22498
22499
22500
22501
22502
22503
22504
22505
22506
22507
22508
22509
22510
22511
22512
22513
22514
22515
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534
22535
22536
22537
22538
22539
22540
22541
22542
22543
22544
22545
22546
22547
22548
22549
22550
22551
22552
22553
22554
22555
22556
22557
22558
22559
22560
22561
22562
22563
22564
22565
22566
22567
22568
22569
22570
22571
22572
22573
22574
22575
22576
22577
22578
22579
22580
22581
22582
22583
22584
22585
22586
22587
22588
22589
22590
22591
22592
22593
22594
22595
22596
22597
22598
22599echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
22600echo "configure:22601: checking whether ${MAKE-make} sets \${MAKE}" >&5
22601set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22602if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22603 echo $ac_n "(cached) $ac_c" 1>&6
22604else
22605 cat > conftestmake <<\EOF
22606all:
22607 @echo 'ac_maketemp="${MAKE}"'
22608EOF
22609# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22610eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
22611if test -n "$ac_maketemp"; then
22612 eval ac_cv_prog_make_${ac_make}_set=yes
22613else
22614 eval ac_cv_prog_make_${ac_make}_set=no
22615fi
22616rm -f conftestmake
22617fi
22618if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
22619 echo "$ac_t""yes" 1>&6
22620 SET_MAKE=
22621else
22622 echo "$ac_t""no" 1>&6
22623 SET_MAKE="MAKE=${MAKE-make}"
22624fi
22625
22626
22627if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22628 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
22629fi
22630
22631
22632
22633wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22634wx_cv_if_gnu_make=$IF_GNU_MAKE
22635wx_cv_path_ifs=$PATH_IFS
22636wx_cv_program_ext=$PROGRAM_EXT
22637wx_cv_target_library=$WX_TARGET_LIBRARY
22638wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22639wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
22640wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22641wx_cv_release=${WX_RELEASE}
22642wx_cv_current=${WX_CURRENT}
22643wx_cv_revision=${WX_REVISION}
22644wx_cv_age=${WX_AGE}
22645wx_cv_use_gui=${USE_GUI}
22646wx_cv_use_resources=${wxUSE_RESOURCES}
22647export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22648 wx_cv_path_ifs wx_cv_program_ext \
22649 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
22650 wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
22651 wx_cv_use_gui wx_cv_use_resources
22652
22653subdirs="demos samples utils contrib"
22654
22655
22656trap '' 1 2 15
22657cat > confcache <<\EOF
22658# This file is a shell script that caches the results of configure
22659# tests run on this system so they can be shared between configure
22660# scripts and configure runs. It is not useful on other systems.
22661# If it contains results you don't want to keep, you may remove or edit it.
22662#
22663# By default, configure uses ./config.cache as the cache file,
22664# creating it if it does not exist already. You can give configure
22665# the --cache-file=FILE option to use a different cache file; that is
22666# what configure does when it calls configure scripts in
22667# subdirectories, so they share the cache.
22668# Giving --cache-file=/dev/null disables caching, for debugging configure.
22669# config.status only pays attention to the cache file if you give it the
22670# --recheck option to rerun configure.
22671#
22672EOF
22673# The following way of writing the cache mishandles newlines in values,
22674# but we know of no workaround that is simple, portable, and efficient.
22675# So, don't put newlines in cache variables' values.
22676# Ultrix sh set writes to stderr and can't be redirected directly,
22677# and sets the high bit in the cache file unless we assign to the vars.
22678(set) 2>&1 |
22679 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22680 *ac_space=\ *)
22681 # `set' does not quote correctly, so add quotes (double-quote substitution
22682 # turns \\\\ into \\, and sed turns \\ into \).
22683 sed -n \
22684 -e "s/'/'\\\\''/g" \
22685 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22686 ;;
22687 *)
22688 # `set' quotes correctly as required by POSIX, so do not add quotes.
22689 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22690 ;;
22691 esac >> confcache
22692if cmp -s $cache_file confcache; then
22693 :
22694else
22695 if test -w $cache_file; then
22696 echo "updating cache $cache_file"
22697 cat confcache > $cache_file
22698 else
22699 echo "not updating unwritable cache $cache_file"
22700 fi
22701fi
22702rm -f confcache
22703
22704trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22705
22706test "x$prefix" = xNONE && prefix=$ac_default_prefix
22707# Let make expand exec_prefix.
22708test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22709
22710# Any assignment to VPATH causes Sun make to only execute
22711# the first set of double-colon rules, so remove it if not needed.
22712# If there is a colon in the path, we need to keep it.
22713if test "x$srcdir" = x.; then
22714 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22715fi
22716
22717trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22718
22719DEFS=-DHAVE_CONFIG_H
22720
22721# Without the "./", some shells look in PATH for config.status.
22722: ${CONFIG_STATUS=./config.status}
22723
22724echo creating $CONFIG_STATUS
22725rm -f $CONFIG_STATUS
22726cat > $CONFIG_STATUS <<EOF
22727#! /bin/sh
22728# Generated automatically by configure.
22729# Run this file to recreate the current configuration.
22730# This directory was configured as follows,
22731# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22732#
22733# $0 $ac_configure_args
22734#
22735# Compiler output produced by configure, useful for debugging
22736# configure, is in ./config.log if it exists.
22737
22738ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22739for ac_option
22740do
22741 case "\$ac_option" in
22742 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22743 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22744 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22745 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22746 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22747 exit 0 ;;
22748 -help | --help | --hel | --he | --h)
22749 echo "\$ac_cs_usage"; exit 0 ;;
22750 *) echo "\$ac_cs_usage"; exit 1 ;;
22751 esac
22752done
22753
22754ac_given_srcdir=$srcdir
22755ac_given_INSTALL="$INSTALL"
22756
22757trap 'rm -fr `echo "
22758 wx-config
22759 version-script
22760 src/make.env
22761 src/makeprog.env
22762 src/makelib.env
22763 Makefile
22764 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22765EOF
22766cat >> $CONFIG_STATUS <<EOF
22767
22768# Protect against being on the right side of a sed subst in config.status.
22769sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22770 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22771$ac_vpsub
22772$extrasub
22773s%@SHELL@%$SHELL%g
22774s%@CFLAGS@%$CFLAGS%g
22775s%@CPPFLAGS@%$CPPFLAGS%g
22776s%@CXXFLAGS@%$CXXFLAGS%g
22777s%@FFLAGS@%$FFLAGS%g
22778s%@DEFS@%$DEFS%g
22779s%@LDFLAGS@%$LDFLAGS%g
22780s%@LIBS@%$LIBS%g
22781s%@exec_prefix@%$exec_prefix%g
22782s%@prefix@%$prefix%g
22783s%@program_transform_name@%$program_transform_name%g
22784s%@bindir@%$bindir%g
22785s%@sbindir@%$sbindir%g
22786s%@libexecdir@%$libexecdir%g
22787s%@datadir@%$datadir%g
22788s%@sysconfdir@%$sysconfdir%g
22789s%@sharedstatedir@%$sharedstatedir%g
22790s%@localstatedir@%$localstatedir%g
22791s%@libdir@%$libdir%g
22792s%@includedir@%$includedir%g
22793s%@oldincludedir@%$oldincludedir%g
22794s%@infodir@%$infodir%g
22795s%@mandir@%$mandir%g
22796s%@host@%$host%g
22797s%@host_alias@%$host_alias%g
22798s%@host_cpu@%$host_cpu%g
22799s%@host_vendor@%$host_vendor%g
22800s%@host_os@%$host_os%g
22801s%@target@%$target%g
22802s%@target_alias@%$target_alias%g
22803s%@target_cpu@%$target_cpu%g
22804s%@target_vendor@%$target_vendor%g
22805s%@target_os@%$target_os%g
22806s%@build@%$build%g
22807s%@build_alias@%$build_alias%g
22808s%@build_cpu@%$build_cpu%g
22809s%@build_vendor@%$build_vendor%g
22810s%@build_os@%$build_os%g
22811s%@CC@%$CC%g
22812s%@CPP@%$CPP%g
22813s%@CXX@%$CXX%g
22814s%@RANLIB@%$RANLIB%g
22815s%@AR@%$AR%g
22816s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22817s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22818s%@INSTALL_DATA@%$INSTALL_DATA%g
22819s%@STRIP@%$STRIP%g
22820s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22821s%@YACC@%$YACC%g
22822s%@LEX@%$LEX%g
22823s%@LEXLIB@%$LEXLIB%g
22824s%@LN_S@%$LN_S%g
22825s%@CXXCPP@%$CXXCPP%g
22826s%@PKG_CONFIG@%$PKG_CONFIG%g
22827s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22828s%@GTK_LIBS@%$GTK_LIBS%g
22829s%@GTK_CONFIG@%$GTK_CONFIG%g
22830s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22831s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22832s%@X_CFLAGS@%$X_CFLAGS%g
22833s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22834s%@X_LIBS@%$X_LIBS%g
22835s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
22836s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22837s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22838s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22839s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
22840s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22841s%@RESCOMP@%$RESCOMP%g
22842s%@DEREZ@%$DEREZ%g
22843s%@SETFILE@%$SETFILE%g
22844s%@LIBICONV@%$LIBICONV%g
22845s%@LEX_STEM@%$LEX_STEM%g
22846s%@PATH_IFS@%$PATH_IFS%g
22847s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22848s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22849s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22850s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22851s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
22852s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
22853s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22854s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22855s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22856s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22857s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22858s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22859s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22860s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22861s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22862s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22863s%@WX_ALL@%$WX_ALL%g
22864s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22865s%@SHARED_LD@%$SHARED_LD%g
22866s%@PIC_FLAG@%$PIC_FLAG%g
22867s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22868s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22869s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22870s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22871s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22872s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
22873s%@STATIC_FLAG@%$STATIC_FLAG%g
22874s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22875s%@USE_GUI@%$USE_GUI%g
22876s%@AFMINSTALL@%$AFMINSTALL%g
22877s%@WIN32INSTALL@%$WIN32INSTALL%g
22878s%@TOOLKIT@%$TOOLKIT%g
22879s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22880s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22881s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22882s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22883s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
22884s%@top_builddir@%$top_builddir%g
22885s%@cross_compiling@%$cross_compiling%g
22886s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22887s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22888s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22889s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22890s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22891s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
22892s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
22893s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22894s%@ALL_HEADERS@%$ALL_HEADERS%g
22895s%@ALL_SOURCES@%$ALL_SOURCES%g
22896s%@GUIDIST@%$GUIDIST%g
22897s%@PORT_FILES@%$PORT_FILES%g
22898s%@DISTDIR@%$DISTDIR%g
22899s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22900s%@LDFLAGS_GL@%$LDFLAGS_GL%g
22901s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
22902s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22903s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22904s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22905s%@EXTRADEFS@%$EXTRADEFS%g
22906s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
22907s%@RESFLAGS@%$RESFLAGS%g
22908s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22909s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22910s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22911s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22912s%@LIBWXMACRES@%$LIBWXMACRES%g
22913s%@MACRESCOMP@%$MACRESCOMP%g
22914s%@MACSETFILE@%$MACSETFILE%g
22915s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g
22916s%@GCC@%$GCC%g
22917s%@DLLTOOL@%$DLLTOOL%g
22918s%@AS@%$AS%g
22919s%@NM@%$NM%g
22920s%@LD@%$LD%g
22921s%@MAKEINFO@%$MAKEINFO%g
22922s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
22923s%@INSTALL_DIR@%$INSTALL_DIR%g
22924s%@SET_MAKE@%$SET_MAKE%g
22925s%@subdirs@%$subdirs%g
22926
22927CEOF
22928EOF
22929
22930cat >> $CONFIG_STATUS <<\EOF
22931
22932# Split the substitutions into bite-sized pieces for seds with
22933# small command number limits, like on Digital OSF/1 and HP-UX.
22934ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22935ac_file=1 # Number of current file.
22936ac_beg=1 # First line for current file.
22937ac_end=$ac_max_sed_cmds # Line after last line for current file.
22938ac_more_lines=:
22939ac_sed_cmds=""
22940while $ac_more_lines; do
22941 if test $ac_beg -gt 1; then
22942 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22943 else
22944 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22945 fi
22946 if test ! -s conftest.s$ac_file; then
22947 ac_more_lines=false
22948 rm -f conftest.s$ac_file
22949 else
22950 if test -z "$ac_sed_cmds"; then
22951 ac_sed_cmds="sed -f conftest.s$ac_file"
22952 else
22953 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22954 fi
22955 ac_file=`expr $ac_file + 1`
22956 ac_beg=$ac_end
22957 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22958 fi
22959done
22960if test -z "$ac_sed_cmds"; then
22961 ac_sed_cmds=cat
22962fi
22963EOF
22964
22965cat >> $CONFIG_STATUS <<EOF
22966
22967CONFIG_FILES=\${CONFIG_FILES-"wx-config
22968 version-script
22969 src/make.env
22970 src/makeprog.env
22971 src/makelib.env
22972 Makefile
22973 "}
22974EOF
22975cat >> $CONFIG_STATUS <<\EOF
22976for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22977 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22978 case "$ac_file" in
22979 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22980 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22981 *) ac_file_in="${ac_file}.in" ;;
22982 esac
22983
22984 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22985
22986 # Remove last slash and all that follows it. Not all systems have dirname.
22987 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22988 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22989 # The file is in a subdirectory.
22990 test ! -d "$ac_dir" && mkdir "$ac_dir"
22991 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22992 # A "../" for each directory in $ac_dir_suffix.
22993 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22994 else
22995 ac_dir_suffix= ac_dots=
22996 fi
22997
22998 case "$ac_given_srcdir" in
22999 .) srcdir=.
23000 if test -z "$ac_dots"; then top_srcdir=.
23001 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
23002 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
23003 *) # Relative path.
23004 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
23005 top_srcdir="$ac_dots$ac_given_srcdir" ;;
23006 esac
23007
23008 case "$ac_given_INSTALL" in
23009 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23010 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23011 esac
23012
23013 echo creating "$ac_file"
23014 rm -f "$ac_file"
23015 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
23016 case "$ac_file" in
23017 *Makefile*) ac_comsub="1i\\
23018# $configure_input" ;;
23019 *) ac_comsub= ;;
23020 esac
23021
23022 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23023 sed -e "$ac_comsub
23024s%@configure_input@%$configure_input%g
23025s%@srcdir@%$srcdir%g
23026s%@top_srcdir@%$top_srcdir%g
23027s%@INSTALL@%$INSTALL%g
23028" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
23029fi; done
23030rm -f conftest.s*
23031
23032# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23033# NAME is the cpp macro being defined and VALUE is the value it is being given.
23034#
23035# ac_d sets the value in "#define NAME VALUE" lines.
23036ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23037ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
23038ac_dC='\3'
23039ac_dD='%g'
23040# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23041ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23042ac_uB='\([ ]\)%\1#\2define\3'
23043ac_uC=' '
23044ac_uD='\4%g'
23045# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23046ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23047ac_eB='$%\1#\2define\3'
23048ac_eC=' '
23049ac_eD='%g'
23050
23051if test "${CONFIG_HEADERS+set}" != set; then
23052EOF
23053cat >> $CONFIG_STATUS <<EOF
23054 CONFIG_HEADERS="setup.h:setup.h.in"
23055EOF
23056cat >> $CONFIG_STATUS <<\EOF
23057fi
23058for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
23059 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23060 case "$ac_file" in
23061 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23062 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23063 *) ac_file_in="${ac_file}.in" ;;
23064 esac
23065
23066 echo creating $ac_file
23067
23068 rm -f conftest.frag conftest.in conftest.out
23069 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23070 cat $ac_file_inputs > conftest.in
23071
23072EOF
23073
23074# Transform confdefs.h into a sed script conftest.vals that substitutes
23075# the proper values into config.h.in to produce config.h. And first:
23076# Protect against being on the right side of a sed subst in config.status.
23077# Protect against being in an unquoted here document in config.status.
23078rm -f conftest.vals
23079cat > conftest.hdr <<\EOF
23080s/[\\&%]/\\&/g
23081s%[\\$`]%\\&%g
23082s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
23083s%ac_d%ac_u%gp
23084s%ac_u%ac_e%gp
23085EOF
23086sed -n -f conftest.hdr confdefs.h > conftest.vals
23087rm -f conftest.hdr
23088
23089# This sed command replaces #undef with comments. This is necessary, for
23090# example, in the case of _POSIX_SOURCE, which is predefined and required
23091# on some systems where configure will not decide to define it.
23092cat >> conftest.vals <<\EOF
23093s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
23094EOF
23095
23096# Break up conftest.vals because some shells have a limit on
23097# the size of here documents, and old seds have small limits too.
23098
23099rm -f conftest.tail
23100while :
23101do
23102 ac_lines=`grep -c . conftest.vals`
23103 # grep -c gives empty output for an empty file on some AIX systems.
23104 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
23105 # Write a limited-size here document to conftest.frag.
23106 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
23107 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
23108 echo 'CEOF
23109 sed -f conftest.frag conftest.in > conftest.out
23110 rm -f conftest.in
23111 mv conftest.out conftest.in
23112' >> $CONFIG_STATUS
23113 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23114 rm -f conftest.vals
23115 mv conftest.tail conftest.vals
23116done
23117rm -f conftest.vals
23118
23119cat >> $CONFIG_STATUS <<\EOF
23120 rm -f conftest.frag conftest.h
23121 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
23122 cat conftest.in >> conftest.h
23123 rm -f conftest.in
23124 if cmp -s $ac_file conftest.h 2>/dev/null; then
23125 echo "$ac_file is unchanged"
23126 rm -f conftest.h
23127 else
23128 # Remove last slash and all that follows it. Not all systems have dirname.
23129 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23130 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23131 # The file is in a subdirectory.
23132 test ! -d "$ac_dir" && mkdir "$ac_dir"
23133 fi
23134 rm -f $ac_file
23135 mv conftest.h $ac_file
23136 fi
23137fi; done
23138
23139EOF
23140cat >> $CONFIG_STATUS <<EOF
23141
23142 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
23143 LN_S="${LN_S}"
23144
23145
23146EOF
23147cat >> $CONFIG_STATUS <<\EOF
23148
23149 if test ! -h wx-config; then
23150 chmod +x wx-config
23151 mv wx-config wx${TOOLCHAIN_NAME}-config
23152 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
23153 fi
23154
23155 if test ! -d lib; then
23156 mkdir lib
23157 fi
23158 if test ! -d lib/wx; then
23159 mkdir lib/wx
23160 fi
23161 if test ! -d lib/wx/include; then
23162 mkdir lib/wx/include
23163 fi
23164 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
23165 mkdir lib/wx/include/${TOOLCHAIN_NAME}
23166 fi
23167 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
23168 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
23169 fi
23170 if test -f setup.h; then
23171 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
23172 fi
23173
23174exit 0
23175EOF
23176chmod +x $CONFIG_STATUS
23177rm -fr confdefs* $ac_clean_files
23178test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
23179
23180if test "$no_recursion" != yes; then
23181
23182 # Remove --cache-file and --srcdir arguments so they do not pile up.
23183 ac_sub_configure_args=
23184 ac_prev=
23185 for ac_arg in $ac_configure_args; do
23186 if test -n "$ac_prev"; then
23187 ac_prev=
23188 continue
23189 fi
23190 case "$ac_arg" in
23191 -cache-file | --cache-file | --cache-fil | --cache-fi \
23192 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23193 ac_prev=cache_file ;;
23194 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23195 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
23196 ;;
23197 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23198 ac_prev=srcdir ;;
23199 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23200 ;;
23201 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23202 esac
23203 done
23204
23205 for ac_config_dir in demos samples utils contrib; do
23206
23207 # Do not complain, so a configure script can configure whichever
23208 # parts of a large source tree are present.
23209 if test ! -d $srcdir/$ac_config_dir; then
23210 continue
23211 fi
23212
23213 echo configuring in $ac_config_dir
23214
23215 case "$srcdir" in
23216 .) ;;
23217 *)
23218 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
23219 else
23220 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
23221 fi
23222 ;;
23223 esac
23224
23225 ac_popdir=`pwd`
23226 cd $ac_config_dir
23227
23228 # A "../" for each directory in /$ac_config_dir.
23229 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
23230
23231 case "$srcdir" in
23232 .) # No --srcdir option. We are building in place.
23233 ac_sub_srcdir=$srcdir ;;
23234 /*) # Absolute path.
23235 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
23236 *) # Relative path.
23237 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
23238 esac
23239
23240 # Check for guested configure; otherwise get Cygnus style configure.
23241 if test -f $ac_sub_srcdir/configure; then
23242 ac_sub_configure=$ac_sub_srcdir/configure
23243 elif test -f $ac_sub_srcdir/configure.in; then
23244 ac_sub_configure=$ac_configure
23245 else
23246 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
23247 ac_sub_configure=
23248 fi
23249
23250 # The recursion is here.
23251 if test -n "$ac_sub_configure"; then
23252
23253 # Make the cache file name correct relative to the subdirectory.
23254 case "$cache_file" in
23255 /*) ac_sub_cache_file=$cache_file ;;
23256 *) # Relative path.
23257 ac_sub_cache_file="$ac_dots$cache_file" ;;
23258 esac
23259 case "$ac_given_INSTALL" in
23260 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23261 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23262 esac
23263
23264 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
23265 # The eval makes quoting arguments work.
23266 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
23267 then :
23268 else
23269 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
23270 fi
23271 fi
23272
23273 cd $ac_popdir
23274 done
23275fi
23276
23277
23278echo
23279echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
23280echo ""
23281echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
23282
23283echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
23284echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
23285echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
23286
23287echo " What level of wxWindows compatibility should be enabled?"
23288echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
23289echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
23290echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
23291
23292echo " Which libraries should wxWindows use?"
23293echo " jpeg ${wxUSE_LIBJPEG-none}"
23294echo " png ${wxUSE_LIBPNG-none}"
23295echo " regex ${wxUSE_REGEX}"
23296echo " tiff ${wxUSE_LIBTIFF-none}"
23297echo " zlib ${wxUSE_ZLIB}"
23298echo " odbc ${wxUSE_ODBC}"
23299
23300echo ""
23301