]> git.saurik.com Git - wxWidgets.git/blame_incremental - configure
Rationalised style handling in tree control
[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-resources use wxWindows resources"
293ac_help="$ac_help
294 --enable-xresources use X resources for save (default for gtk+)"
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-palette use wxPalette class"
427ac_help="$ac_help
428 --enable-image use wxImage class"
429ac_help="$ac_help
430 --enable-gif use gif images (GIF file format)"
431ac_help="$ac_help
432 --enable-pcx use pcx images (PCX file format)"
433ac_help="$ac_help
434 --enable-iff use iff images (IFF file format)"
435ac_help="$ac_help
436 --enable-pnm use pnm images (PNM file format)"
437ac_help="$ac_help
438 --enable-xpm use xpm images (XPM file format)"
439ac_help="$ac_help
440 --enable-icocur use Windows ICO and CUR formats"
441ac_help="$ac_help
442 --disable-largefile omit support for large files"
443ac_help="$ac_help
444 --disable-gtktest do not try to compile and run a test GTK+ program"
445ac_help="$ac_help
446 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
447ac_help="$ac_help
448 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
449ac_help="$ac_help
450 --disable-gtktest Do not try to compile and run a test GTK program"
451ac_help="$ac_help
452 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
453ac_help="$ac_help
454 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
455ac_help="$ac_help
456 --disable-gtktest Do not try to compile and run a test GTK program"
457ac_help="$ac_help
458 --with-x use the X Window System"
459ac_help="$ac_help
460 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
461
462# Initialize some variables set by options.
463# The variables have the same names as the options, with
464# dashes changed to underlines.
465build=NONE
466cache_file=./config.cache
467exec_prefix=NONE
468host=NONE
469no_create=
470nonopt=NONE
471no_recursion=
472prefix=NONE
473program_prefix=NONE
474program_suffix=NONE
475program_transform_name=s,x,x,
476silent=
477site=
478srcdir=
479target=NONE
480verbose=
481x_includes=NONE
482x_libraries=NONE
483bindir='${exec_prefix}/bin'
484sbindir='${exec_prefix}/sbin'
485libexecdir='${exec_prefix}/libexec'
486datadir='${prefix}/share'
487sysconfdir='${prefix}/etc'
488sharedstatedir='${prefix}/com'
489localstatedir='${prefix}/var'
490libdir='${exec_prefix}/lib'
491includedir='${prefix}/include'
492oldincludedir='/usr/include'
493infodir='${prefix}/info'
494mandir='${prefix}/man'
495
496# Initialize some other variables.
497subdirs=
498MFLAGS= MAKEFLAGS=
499SHELL=${CONFIG_SHELL-/bin/sh}
500# Maximum number of lines to put in a shell here document.
501ac_max_here_lines=12
502
503ac_prev=
504for ac_option
505do
506
507 # If the previous option needs an argument, assign it.
508 if test -n "$ac_prev"; then
509 eval "$ac_prev=\$ac_option"
510 ac_prev=
511 continue
512 fi
513
514 case "$ac_option" in
515 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
516 *) ac_optarg= ;;
517 esac
518
519 # Accept the important Cygnus configure options, so we can diagnose typos.
520
521 case "$ac_option" in
522
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 ac_prev=bindir ;;
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526 bindir="$ac_optarg" ;;
527
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build="$ac_optarg" ;;
532
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file="$ac_optarg" ;;
539
540 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
541 ac_prev=datadir ;;
542 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
543 | --da=*)
544 datadir="$ac_optarg" ;;
545
546 -disable-* | --disable-*)
547 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
548 # Reject names that are not valid shell variable names.
549 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
550 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
551 fi
552 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
553 eval "enable_${ac_feature}=no" ;;
554
555 -enable-* | --enable-*)
556 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
557 # Reject names that are not valid shell variable names.
558 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
559 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
560 fi
561 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
562 case "$ac_option" in
563 *=*) ;;
564 *) ac_optarg=yes ;;
565 esac
566 eval "enable_${ac_feature}='$ac_optarg'" ;;
567
568 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
569 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
570 | --exec | --exe | --ex)
571 ac_prev=exec_prefix ;;
572 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
573 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
574 | --exec=* | --exe=* | --ex=*)
575 exec_prefix="$ac_optarg" ;;
576
577 -gas | --gas | --ga | --g)
578 # Obsolete; use --with-gas.
579 with_gas=yes ;;
580
581 -help | --help | --hel | --he)
582 # Omit some internal or obsolete options to make the list less imposing.
583 # This message is too long to be a string in the A/UX 3.1 sh.
584 cat << EOF
585Usage: configure [options] [host]
586Options: [defaults in brackets after descriptions]
587Configuration:
588 --cache-file=FILE cache test results in FILE
589 --help print this message
590 --no-create do not create output files
591 --quiet, --silent do not print \`checking...' messages
592 --version print the version of autoconf that created configure
593Directory and file names:
594 --prefix=PREFIX install architecture-independent files in PREFIX
595 [$ac_default_prefix]
596 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
597 [same as prefix]
598 --bindir=DIR user executables in DIR [EPREFIX/bin]
599 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
600 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
601 --datadir=DIR read-only architecture-independent data in DIR
602 [PREFIX/share]
603 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
604 --sharedstatedir=DIR modifiable architecture-independent data in DIR
605 [PREFIX/com]
606 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
607 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
608 --includedir=DIR C header files in DIR [PREFIX/include]
609 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
610 --infodir=DIR info documentation in DIR [PREFIX/info]
611 --mandir=DIR man documentation in DIR [PREFIX/man]
612 --srcdir=DIR find the sources in DIR [configure dir or ..]
613 --program-prefix=PREFIX prepend PREFIX to installed program names
614 --program-suffix=SUFFIX append SUFFIX to installed program names
615 --program-transform-name=PROGRAM
616 run sed PROGRAM on installed program names
617EOF
618 cat << EOF
619Host type:
620 --build=BUILD configure for building on BUILD [BUILD=HOST]
621 --host=HOST configure for HOST [guessed]
622 --target=TARGET configure for TARGET [TARGET=HOST]
623Features and packages:
624 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
625 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
626 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
627 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
628 --x-includes=DIR X include files are in DIR
629 --x-libraries=DIR X library files are in DIR
630EOF
631 if test -n "$ac_help"; then
632 echo "--enable and --with options recognized:$ac_help"
633 fi
634 exit 0 ;;
635
636 -host | --host | --hos | --ho)
637 ac_prev=host ;;
638 -host=* | --host=* | --hos=* | --ho=*)
639 host="$ac_optarg" ;;
640
641 -includedir | --includedir | --includedi | --included | --include \
642 | --includ | --inclu | --incl | --inc)
643 ac_prev=includedir ;;
644 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
645 | --includ=* | --inclu=* | --incl=* | --inc=*)
646 includedir="$ac_optarg" ;;
647
648 -infodir | --infodir | --infodi | --infod | --info | --inf)
649 ac_prev=infodir ;;
650 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
651 infodir="$ac_optarg" ;;
652
653 -libdir | --libdir | --libdi | --libd)
654 ac_prev=libdir ;;
655 -libdir=* | --libdir=* | --libdi=* | --libd=*)
656 libdir="$ac_optarg" ;;
657
658 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
659 | --libexe | --libex | --libe)
660 ac_prev=libexecdir ;;
661 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
662 | --libexe=* | --libex=* | --libe=*)
663 libexecdir="$ac_optarg" ;;
664
665 -localstatedir | --localstatedir | --localstatedi | --localstated \
666 | --localstate | --localstat | --localsta | --localst \
667 | --locals | --local | --loca | --loc | --lo)
668 ac_prev=localstatedir ;;
669 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
670 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
671 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
672 localstatedir="$ac_optarg" ;;
673
674 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
675 ac_prev=mandir ;;
676 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
677 mandir="$ac_optarg" ;;
678
679 -nfp | --nfp | --nf)
680 # Obsolete; use --without-fp.
681 with_fp=no ;;
682
683 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
684 | --no-cr | --no-c)
685 no_create=yes ;;
686
687 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
688 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
689 no_recursion=yes ;;
690
691 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
692 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
693 | --oldin | --oldi | --old | --ol | --o)
694 ac_prev=oldincludedir ;;
695 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
696 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
697 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698 oldincludedir="$ac_optarg" ;;
699
700 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
701 ac_prev=prefix ;;
702 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
703 prefix="$ac_optarg" ;;
704
705 -program-prefix | --program-prefix | --program-prefi | --program-pref \
706 | --program-pre | --program-pr | --program-p)
707 ac_prev=program_prefix ;;
708 -program-prefix=* | --program-prefix=* | --program-prefi=* \
709 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
710 program_prefix="$ac_optarg" ;;
711
712 -program-suffix | --program-suffix | --program-suffi | --program-suff \
713 | --program-suf | --program-su | --program-s)
714 ac_prev=program_suffix ;;
715 -program-suffix=* | --program-suffix=* | --program-suffi=* \
716 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
717 program_suffix="$ac_optarg" ;;
718
719 -program-transform-name | --program-transform-name \
720 | --program-transform-nam | --program-transform-na \
721 | --program-transform-n | --program-transform- \
722 | --program-transform | --program-transfor \
723 | --program-transfo | --program-transf \
724 | --program-trans | --program-tran \
725 | --progr-tra | --program-tr | --program-t)
726 ac_prev=program_transform_name ;;
727 -program-transform-name=* | --program-transform-name=* \
728 | --program-transform-nam=* | --program-transform-na=* \
729 | --program-transform-n=* | --program-transform-=* \
730 | --program-transform=* | --program-transfor=* \
731 | --program-transfo=* | --program-transf=* \
732 | --program-trans=* | --program-tran=* \
733 | --progr-tra=* | --program-tr=* | --program-t=*)
734 program_transform_name="$ac_optarg" ;;
735
736 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
737 | -silent | --silent | --silen | --sile | --sil)
738 silent=yes ;;
739
740 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
741 ac_prev=sbindir ;;
742 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
743 | --sbi=* | --sb=*)
744 sbindir="$ac_optarg" ;;
745
746 -sharedstatedir | --sharedstatedir | --sharedstatedi \
747 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
748 | --sharedst | --shareds | --shared | --share | --shar \
749 | --sha | --sh)
750 ac_prev=sharedstatedir ;;
751 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
752 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
753 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
754 | --sha=* | --sh=*)
755 sharedstatedir="$ac_optarg" ;;
756
757 -site | --site | --sit)
758 ac_prev=site ;;
759 -site=* | --site=* | --sit=*)
760 site="$ac_optarg" ;;
761
762 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
763 ac_prev=srcdir ;;
764 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
765 srcdir="$ac_optarg" ;;
766
767 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
768 | --syscon | --sysco | --sysc | --sys | --sy)
769 ac_prev=sysconfdir ;;
770 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
771 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
772 sysconfdir="$ac_optarg" ;;
773
774 -target | --target | --targe | --targ | --tar | --ta | --t)
775 ac_prev=target ;;
776 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
777 target="$ac_optarg" ;;
778
779 -v | -verbose | --verbose | --verbos | --verbo | --verb)
780 verbose=yes ;;
781
782 -version | --version | --versio | --versi | --vers)
783 echo "configure generated by autoconf version 2.13"
784 exit 0 ;;
785
786 -with-* | --with-*)
787 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
788 # Reject names that are not valid shell variable names.
789 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
790 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
791 fi
792 ac_package=`echo $ac_package| sed 's/-/_/g'`
793 case "$ac_option" in
794 *=*) ;;
795 *) ac_optarg=yes ;;
796 esac
797 eval "with_${ac_package}='$ac_optarg'" ;;
798
799 -without-* | --without-*)
800 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
801 # Reject names that are not valid shell variable names.
802 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
803 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
804 fi
805 ac_package=`echo $ac_package| sed 's/-/_/g'`
806 eval "with_${ac_package}=no" ;;
807
808 --x)
809 # Obsolete; use --with-x.
810 with_x=yes ;;
811
812 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
813 | --x-incl | --x-inc | --x-in | --x-i)
814 ac_prev=x_includes ;;
815 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
816 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
817 x_includes="$ac_optarg" ;;
818
819 -x-libraries | --x-libraries | --x-librarie | --x-librari \
820 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
821 ac_prev=x_libraries ;;
822 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
823 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
824 x_libraries="$ac_optarg" ;;
825
826 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
827 ;;
828
829 *)
830 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
831 echo "configure: warning: $ac_option: invalid host type" 1>&2
832 fi
833 if test "x$nonopt" != xNONE; then
834 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
835 fi
836 nonopt="$ac_option"
837 ;;
838
839 esac
840done
841
842if test -n "$ac_prev"; then
843 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
844fi
845
846trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
847
848# File descriptor usage:
849# 0 standard input
850# 1 file creation
851# 2 errors and warnings
852# 3 some systems may open it to /dev/tty
853# 4 used on the Kubota Titan
854# 6 checking for... messages and results
855# 5 compiler messages saved in config.log
856if test "$silent" = yes; then
857 exec 6>/dev/null
858else
859 exec 6>&1
860fi
861exec 5>./config.log
862
863echo "\
864This file contains any messages produced by compilers while
865running configure, to aid debugging if configure makes a mistake.
866" 1>&5
867
868# Strip out --no-create and --no-recursion so they do not pile up.
869# Also quote any args containing shell metacharacters.
870ac_configure_args=
871for ac_arg
872do
873 case "$ac_arg" in
874 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
875 | --no-cr | --no-c) ;;
876 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
877 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
878 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
879 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
880 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
881 esac
882done
883
884# NLS nuisances.
885# Only set these to C if already set. These must not be set unconditionally
886# because not all systems understand e.g. LANG=C (notably SCO).
887# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
888# Non-C LC_CTYPE values break the ctype check.
889if test "${LANG+set}" = set; then LANG=C; export LANG; fi
890if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
891if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
892if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
893
894# confdefs.h avoids OS command line length limits that DEFS can exceed.
895rm -rf conftest* confdefs.h
896# AIX cpp loses on an empty file, so make sure it contains at least a newline.
897echo > confdefs.h
898
899# A filename unique to this package, relative to the directory that
900# configure is in, which we can look for to find out if srcdir is correct.
901ac_unique_file=wx-config.in
902
903# Find the source files, if location was not specified.
904if test -z "$srcdir"; then
905 ac_srcdir_defaulted=yes
906 # Try the directory containing this script, then its parent.
907 ac_prog=$0
908 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
909 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
910 srcdir=$ac_confdir
911 if test ! -r $srcdir/$ac_unique_file; then
912 srcdir=..
913 fi
914else
915 ac_srcdir_defaulted=no
916fi
917if test ! -r $srcdir/$ac_unique_file; then
918 if test "$ac_srcdir_defaulted" = yes; then
919 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
920 else
921 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
922 fi
923fi
924srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
925
926# Prefer explicitly selected file to automatically selected ones.
927if test -z "$CONFIG_SITE"; then
928 if test "x$prefix" != xNONE; then
929 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
930 else
931 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
932 fi
933fi
934for ac_site_file in $CONFIG_SITE; do
935 if test -r "$ac_site_file"; then
936 echo "loading site script $ac_site_file"
937 . "$ac_site_file"
938 fi
939done
940
941if test -r "$cache_file"; then
942 echo "loading cache $cache_file"
943 . $cache_file
944else
945 echo "creating cache $cache_file"
946 > $cache_file
947fi
948
949ac_ext=c
950# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
951ac_cpp='$CPP $CPPFLAGS'
952ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
953ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
954cross_compiling=$ac_cv_prog_cc_cross
955
956ac_exeext=
957ac_objext=o
958if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
959 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
960 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
961 ac_n= ac_c='
962' ac_t=' '
963 else
964 ac_n=-n ac_c= ac_t=
965 fi
966else
967 ac_n= ac_c='\c' ac_t=
968fi
969
970
971
972ac_aux_dir=
973for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
974 if test -f $ac_dir/install-sh; then
975 ac_aux_dir=$ac_dir
976 ac_install_sh="$ac_aux_dir/install-sh -c"
977 break
978 elif test -f $ac_dir/install.sh; then
979 ac_aux_dir=$ac_dir
980 ac_install_sh="$ac_aux_dir/install.sh -c"
981 break
982 fi
983done
984if test -z "$ac_aux_dir"; then
985 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
986fi
987ac_config_guess=$ac_aux_dir/config.guess
988ac_config_sub=$ac_aux_dir/config.sub
989ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
990
991
992# Do some error checking and defaulting for the host and target type.
993# The inputs are:
994# configure --host=HOST --target=TARGET --build=BUILD NONOPT
995#
996# The rules are:
997# 1. You are not allowed to specify --host, --target, and nonopt at the
998# same time.
999# 2. Host defaults to nonopt.
1000# 3. If nonopt is not specified, then host defaults to the current host,
1001# as determined by config.guess.
1002# 4. Target and build default to nonopt.
1003# 5. If nonopt is not specified, then target and build default to host.
1004
1005# The aliases save the names the user supplied, while $host etc.
1006# will get canonicalized.
1007case $host---$target---$nonopt in
1008NONE---*---* | *---NONE---* | *---*---NONE) ;;
1009*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1010esac
1011
1012
1013# Make sure we can run config.sub.
1014if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1015else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1016fi
1017
1018echo $ac_n "checking host system type""... $ac_c" 1>&6
1019echo "configure:1020: checking host system type" >&5
1020
1021host_alias=$host
1022case "$host_alias" in
1023NONE)
1024 case $nonopt in
1025 NONE)
1026 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1027 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1028 fi ;;
1029 *) host_alias=$nonopt ;;
1030 esac ;;
1031esac
1032
1033host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1034host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1035host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1036host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1037echo "$ac_t""$host" 1>&6
1038
1039echo $ac_n "checking target system type""... $ac_c" 1>&6
1040echo "configure:1041: checking target system type" >&5
1041
1042target_alias=$target
1043case "$target_alias" in
1044NONE)
1045 case $nonopt in
1046 NONE) target_alias=$host_alias ;;
1047 *) target_alias=$nonopt ;;
1048 esac ;;
1049esac
1050
1051target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1052target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1053target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1054target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1055echo "$ac_t""$target" 1>&6
1056
1057echo $ac_n "checking build system type""... $ac_c" 1>&6
1058echo "configure:1059: checking build system type" >&5
1059
1060build_alias=$build
1061case "$build_alias" in
1062NONE)
1063 case $nonopt in
1064 NONE) build_alias=$host_alias ;;
1065 *) build_alias=$nonopt ;;
1066 esac ;;
1067esac
1068
1069build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1070build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1071build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1072build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1073echo "$ac_t""$build" 1>&6
1074
1075test "$host_alias" != "$target_alias" &&
1076 test "$program_prefix$program_suffix$program_transform_name" = \
1077 NONENONEs,x,x, &&
1078 program_prefix=${target_alias}-
1079
1080
1081
1082WX_MAJOR_VERSION_NUMBER=2
1083WX_MINOR_VERSION_NUMBER=5
1084WX_RELEASE_NUMBER=0
1085
1086WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1087WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1088
1089WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1090
1091WX_CURRENT=0
1092WX_REVISION=0
1093WX_AGE=0
1094
1095
1096
1097USE_UNIX=1
1098USE_WIN32=0
1099USE_DOS=0
1100USE_BEOS=0
1101USE_MAC=0
1102
1103USE_AIX=
1104USE_BSD=
1105USE_DARWIN=
1106USE_FREEBSD=
1107USE_HPUX=
1108USE_LINUX=
1109USE_NETBSD=
1110USE_OPENBSD=
1111USE_OSF=
1112USE_SGI=
1113USE_SOLARIS=
1114USE_SUN=
1115USE_SUNOS=
1116USE_SVR4=
1117USE_SYSV=
1118USE_VMS=
1119USE_ULTRIX=
1120USE_UNIXWARE=
1121
1122USE_ALPHA=
1123
1124NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1125
1126ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1127
1128DEFAULT_wxUSE_COCOA=0
1129DEFAULT_wxUSE_GTK=0
1130DEFAULT_wxUSE_MAC=0
1131DEFAULT_wxUSE_MGL=0
1132DEFAULT_wxUSE_MICROWIN=0
1133DEFAULT_wxUSE_MOTIF=0
1134DEFAULT_wxUSE_MSW=0
1135DEFAULT_wxUSE_PM=0
1136DEFAULT_wxUSE_X11=0
1137
1138DEFAULT_DEFAULT_wxUSE_COCOA=0
1139DEFAULT_DEFAULT_wxUSE_GTK=0
1140DEFAULT_DEFAULT_wxUSE_MAC=0
1141DEFAULT_DEFAULT_wxUSE_MGL=0
1142DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1143DEFAULT_DEFAULT_wxUSE_MOTIF=0
1144DEFAULT_DEFAULT_wxUSE_MSW=0
1145DEFAULT_DEFAULT_wxUSE_PM=0
1146DEFAULT_DEFAULT_wxUSE_X11=0
1147
1148PROGRAM_EXT=
1149SO_SUFFIX=so
1150
1151case "${host}" in
1152 *-hp-hpux* )
1153 USE_HPUX=1
1154 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1155 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1156 SO_SUFFIX=sl
1157 cat >> confdefs.h <<\EOF
1158#define __HPUX__ 1
1159EOF
1160
1161 ;;
1162 *-*-linux* )
1163 USE_LINUX=1
1164 cat >> confdefs.h <<\EOF
1165#define __LINUX__ 1
1166EOF
1167
1168 TMP=`uname -m`
1169 if test "x$TMP" = "xalpha"; then
1170 USE_ALPHA=1
1171 cat >> confdefs.h <<\EOF
1172#define __ALPHA__ 1
1173EOF
1174
1175 fi
1176 DEFAULT_DEFAULT_wxUSE_GTK=1
1177 ;;
1178 *-*-irix5* | *-*-irix6* )
1179 USE_SGI=1
1180 USE_SVR4=1
1181 cat >> confdefs.h <<\EOF
1182#define __SGI__ 1
1183EOF
1184
1185 cat >> confdefs.h <<\EOF
1186#define __SVR4__ 1
1187EOF
1188
1189 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1190 ;;
1191 *-*-solaris2* )
1192 USE_SUN=1
1193 USE_SOLARIS=1
1194 USE_SVR4=1
1195 cat >> confdefs.h <<\EOF
1196#define __SUN__ 1
1197EOF
1198
1199 cat >> confdefs.h <<\EOF
1200#define __SOLARIS__ 1
1201EOF
1202
1203 cat >> confdefs.h <<\EOF
1204#define __SVR4__ 1
1205EOF
1206
1207 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1208 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1209 ;;
1210 *-*-sunos4* )
1211 USE_SUN=1
1212 USE_SUNOS=1
1213 USE_BSD=1
1214 cat >> confdefs.h <<\EOF
1215#define __SUN__ 1
1216EOF
1217
1218 cat >> confdefs.h <<\EOF
1219#define __SUNOS__ 1
1220EOF
1221
1222 cat >> confdefs.h <<\EOF
1223#define __BSD__ 1
1224EOF
1225
1226 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1227 ;;
1228 *-*-freebsd*)
1229 USE_BSD=1
1230 USE_FREEBSD=1
1231 cat >> confdefs.h <<\EOF
1232#define __FREEBSD__ 1
1233EOF
1234
1235 cat >> confdefs.h <<\EOF
1236#define __BSD__ 1
1237EOF
1238
1239 DEFAULT_DEFAULT_wxUSE_GTK=1
1240 ;;
1241 *-*-openbsd*)
1242 USE_BSD=1
1243 USE_OPENBSD=1
1244 cat >> confdefs.h <<\EOF
1245#define __OPENBSD__ 1
1246EOF
1247
1248 cat >> confdefs.h <<\EOF
1249#define __BSD__ 1
1250EOF
1251
1252 DEFAULT_DEFAULT_wxUSE_GTK=1
1253 ;;
1254 *-*-netbsd*)
1255 USE_BSD=1
1256 USE_NETBSD=1
1257 cat >> confdefs.h <<\EOF
1258#define __NETBSD__ 1
1259EOF
1260
1261 cat >> confdefs.h <<\EOF
1262#define __BSD__ 1
1263EOF
1264
1265 DEFAULT_DEFAULT_wxUSE_GTK=1
1266 ;;
1267 *-*-osf* )
1268 USE_ALPHA=1
1269 USE_OSF=1
1270 cat >> confdefs.h <<\EOF
1271#define __ALPHA__ 1
1272EOF
1273
1274 cat >> confdefs.h <<\EOF
1275#define __OSF__ 1
1276EOF
1277
1278 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1279 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1280 ;;
1281 *-*-dgux5* )
1282 USE_ALPHA=1
1283 USE_SVR4=1
1284 cat >> confdefs.h <<\EOF
1285#define __ALPHA__ 1
1286EOF
1287
1288 cat >> confdefs.h <<\EOF
1289#define __SVR4__ 1
1290EOF
1291
1292 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1293 ;;
1294 *-*-sysv5* )
1295 USE_SYSV=1
1296 USE_SVR4=1
1297 cat >> confdefs.h <<\EOF
1298#define __SYSV__ 1
1299EOF
1300
1301 cat >> confdefs.h <<\EOF
1302#define __SVR4__ 1
1303EOF
1304
1305 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1306 ;;
1307 *-*-aix* )
1308 USE_AIX=1
1309 USE_SYSV=1
1310 USE_SVR4=1
1311 SO_SUFFIX=a
1312 cat >> confdefs.h <<\EOF
1313#define __AIX__ 1
1314EOF
1315
1316 cat >> confdefs.h <<\EOF
1317#define __SYSV__ 1
1318EOF
1319
1320 cat >> confdefs.h <<\EOF
1321#define __SVR4__ 1
1322EOF
1323
1324 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1325 ;;
1326
1327 *-*-*UnixWare*)
1328 USE_SYSV=1
1329 USE_SVR4=1
1330 USE_UNIXWARE=1
1331 cat >> confdefs.h <<\EOF
1332#define __UNIXWARE__ 1
1333EOF
1334
1335 ;;
1336
1337 *-*-cygwin* | *-*-mingw32* )
1338 SO_SUFFIX=dll
1339 PROGRAM_EXT=".exe"
1340 RESCOMP=windres
1341 DEFAULT_DEFAULT_wxUSE_MSW=1
1342 ;;
1343
1344 *-pc-msdosdjgpp )
1345 USE_UNIX=0
1346 USE_DOS=1
1347 cat >> confdefs.h <<\EOF
1348#define __DOS__ 1
1349EOF
1350
1351 PROGRAM_EXT=".exe"
1352 DEFAULT_DEFAULT_wxUSE_MGL=1
1353 LIBS="$LIBS -lstdc++"
1354 ;;
1355
1356 *-pc-os2_emx | *-pc-os2-emx )
1357 cat >> confdefs.h <<\EOF
1358#define __EMX__ 1
1359EOF
1360
1361 PROGRAM_EXT=".exe"
1362 DEFAULT_DEFAULT_wxUSE_PM=1
1363 ;;
1364
1365 powerpc-*-darwin* )
1366 USE_BSD=1
1367 USE_DARWIN=1
1368 SO_SUFFIX=dylib
1369 cat >> confdefs.h <<\EOF
1370#define __BSD__ 1
1371EOF
1372
1373 cat >> confdefs.h <<\EOF
1374#define __DARWIN__ 1
1375EOF
1376
1377 cat >> confdefs.h <<\EOF
1378#define __POWERPC__ 1
1379EOF
1380
1381 cat >> confdefs.h <<\EOF
1382#define TARGET_CARBON 1
1383EOF
1384
1385 DEFAULT_DEFAULT_wxUSE_MAC=1
1386 ;;
1387
1388 *-*-beos* )
1389 USE_BEOS=1
1390 cat >> confdefs.h <<\EOF
1391#define __BEOS__ 1
1392EOF
1393
1394 ;;
1395
1396 *)
1397 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1398esac
1399
1400
1401
1402
1403 wx_arg_cache_file="configarg.cache"
1404 echo "loading argument cache $wx_arg_cache_file"
1405 rm -f ${wx_arg_cache_file}.tmp
1406 touch ${wx_arg_cache_file}.tmp
1407 touch ${wx_arg_cache_file}
1408
1409
1410DEBUG_CONFIGURE=0
1411if test $DEBUG_CONFIGURE = 1; then
1412 DEFAULT_wxUSE_UNIVERSAL=no
1413
1414 DEFAULT_wxUSE_NANOX=no
1415
1416 DEFAULT_wxUSE_THREADS=yes
1417
1418 DEFAULT_wxUSE_SHARED=yes
1419 DEFAULT_wxUSE_SONAME=no
1420 DEFAULT_wxUSE_OPTIMISE=no
1421 DEFAULT_wxUSE_PROFILE=no
1422 DEFAULT_wxUSE_NO_DEPS=no
1423 DEFAULT_wxUSE_NO_RTTI=no
1424 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1425 DEFAULT_wxUSE_PERMISSIVE=no
1426 DEFAULT_wxUSE_DEBUG_FLAG=yes
1427 DEFAULT_wxUSE_DEBUG_INFO=yes
1428 DEFAULT_wxUSE_DEBUG_GDB=yes
1429 DEFAULT_wxUSE_MEM_TRACING=no
1430 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1431 DEFAULT_wxUSE_DMALLOC=no
1432 DEFAULT_wxUSE_PRECOMP=no
1433 DEFAULT_wxUSE_APPLE_IEEE=no
1434
1435 DEFAULT_wxUSE_LOG=yes
1436 DEFAULT_wxUSE_LOGWINDOW=no
1437 DEFAULT_wxUSE_LOGGUI=no
1438 DEFAULT_wxUSE_LOGDIALOG=no
1439
1440 DEFAULT_wxUSE_GUI=yes
1441 DEFAULT_wxUSE_CONTROLS=no
1442
1443 DEFAULT_wxUSE_REGEX=no
1444 DEFAULT_wxUSE_ZLIB=no
1445 DEFAULT_wxUSE_LIBPNG=no
1446 DEFAULT_wxUSE_LIBJPEG=no
1447 DEFAULT_wxUSE_LIBTIFF=no
1448 DEFAULT_wxUSE_ODBC=no
1449 DEFAULT_wxUSE_OPENGL=no
1450
1451 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1452 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1453 DEFAULT_wxUSE_STD_IOSTREAM=no
1454 DEFAULT_wxUSE_CMDLINE_PARSER=no
1455 DEFAULT_wxUSE_DATETIME=no
1456 DEFAULT_wxUSE_TIMER=no
1457 DEFAULT_wxUSE_STOPWATCH=no
1458 DEFAULT_wxUSE_FILE=no
1459 DEFAULT_wxUSE_FFILE=no
1460 DEFAULT_wxUSE_TEXTBUFFER=no
1461 DEFAULT_wxUSE_TEXTFILE=no
1462 DEFAULT_wxUSE_WAVE=no
1463 DEFAULT_wxUSE_INTL=no
1464 DEFAULT_wxUSE_CONFIG=no
1465 DEFAULT_wxUSE_FONTMAP=no
1466 DEFAULT_wxUSE_STREAMS=no
1467 DEFAULT_wxUSE_SOCKETS=no
1468 DEFAULT_wxUSE_OLE=no
1469 DEFAULT_wxUSE_DATAOBJ=no
1470 DEFAULT_wxUSE_DIALUP_MANAGER=no
1471 DEFAULT_wxUSE_JOYSTICK=no
1472 DEFAULT_wxUSE_DYNLIB_CLASS=no
1473 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1474 DEFAULT_wxUSE_LONGLONG=no
1475 DEFAULT_wxUSE_GEOMETRY=no
1476
1477 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1478 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1479 DEFAULT_wxUSE_POSTSCRIPT=no
1480
1481 DEFAULT_wxUSE_X_RESOURCES=no
1482 DEFAULT_wxUSE_CLIPBOARD=no
1483 DEFAULT_wxUSE_TOOLTIPS=no
1484 DEFAULT_wxUSE_DRAG_AND_DROP=no
1485 DEFAULT_wxUSE_DRAGIMAGE=no
1486 DEFAULT_wxUSE_SPLINES=no
1487
1488 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1489 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1490 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1491
1492 DEFAULT_wxUSE_RESOURCES=no
1493 DEFAULT_wxUSE_CONSTRAINTS=no
1494 DEFAULT_wxUSE_IPC=no
1495 DEFAULT_wxUSE_HELP=no
1496 DEFAULT_wxUSE_MS_HTML_HELP=no
1497 DEFAULT_wxUSE_WXHTML_HELP=no
1498 DEFAULT_wxUSE_TREELAYOUT=no
1499 DEFAULT_wxUSE_METAFILE=no
1500 DEFAULT_wxUSE_MIMETYPE=no
1501 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1502 DEFAULT_wxUSE_PROTOCOL=no
1503 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1504 DEFAULT_wxUSE_PROTOCOL_FTP=no
1505 DEFAULT_wxUSE_PROTOCOL_FILE=no
1506 DEFAULT_wxUSE_URL=no
1507
1508 DEFAULT_wxUSE_COMMONDLGS=no
1509 DEFAULT_wxUSE_CHOICEDLG=no
1510 DEFAULT_wxUSE_COLOURDLG=no
1511 DEFAULT_wxUSE_DIRDLG=no
1512 DEFAULT_wxUSE_FILEDLG=no
1513 DEFAULT_wxUSE_FINDREPLDLG=no
1514 DEFAULT_wxUSE_FONTDLG=no
1515 DEFAULT_wxUSE_MSGDLG=no
1516 DEFAULT_wxUSE_NUMBERDLG=no
1517 DEFAULT_wxUSE_TEXTDLG=no
1518 DEFAULT_wxUSE_SPLASH=no
1519 DEFAULT_wxUSE_STARTUP_TIPS=no
1520 DEFAULT_wxUSE_PROGRESSDLG=no
1521 DEFAULT_wxUSE_WIZARDDLG=no
1522
1523 DEFAULT_wxUSE_MENUS=no
1524 DEFAULT_wxUSE_MINIFRAME=no
1525 DEFAULT_wxUSE_HTML=no
1526 DEFAULT_wxUSE_FILESYSTEM=no
1527 DEFAULT_wxUSE_FS_INET=no
1528 DEFAULT_wxUSE_FS_ZIP=no
1529 DEFAULT_wxUSE_BUSYINFO=no
1530 DEFAULT_wxUSE_ZIPSTREAM=no
1531 DEFAULT_wxUSE_VALIDATORS=no
1532
1533 DEFAULT_wxUSE_ACCEL=no
1534 DEFAULT_wxUSE_BUTTON=no
1535 DEFAULT_wxUSE_BMPBUTTON=no
1536 DEFAULT_wxUSE_CALCTRL=no
1537 DEFAULT_wxUSE_CARET=no
1538 DEFAULT_wxUSE_CHECKBOX=no
1539 DEFAULT_wxUSE_CHECKLST=no
1540 DEFAULT_wxUSE_CHOICE=no
1541 DEFAULT_wxUSE_COMBOBOX=no
1542 DEFAULT_wxUSE_DISPLAY=no
1543 DEFAULT_wxUSE_GAUGE=no
1544 DEFAULT_wxUSE_GRID=no
1545 DEFAULT_wxUSE_IMAGLIST=no
1546 DEFAULT_wxUSE_LISTBOX=no
1547 DEFAULT_wxUSE_LISTCTRL=no
1548 DEFAULT_wxUSE_NOTEBOOK=no
1549 DEFAULT_wxUSE_RADIOBOX=no
1550 DEFAULT_wxUSE_RADIOBTN=no
1551 DEFAULT_wxUSE_SASH=no
1552 DEFAULT_wxUSE_SCROLLBAR=no
1553 DEFAULT_wxUSE_SLIDER=no
1554 DEFAULT_wxUSE_SPINBTN=no
1555 DEFAULT_wxUSE_SPINCTRL=no
1556 DEFAULT_wxUSE_SPLITTER=no
1557 DEFAULT_wxUSE_STATBMP=no
1558 DEFAULT_wxUSE_STATBOX=no
1559 DEFAULT_wxUSE_STATLINE=no
1560 DEFAULT_wxUSE_STATTEXT=no
1561 DEFAULT_wxUSE_STATUSBAR=yes
1562 DEFAULT_wxUSE_TABDIALOG=no
1563 DEFAULT_wxUSE_TEXTCTRL=no
1564 DEFAULT_wxUSE_TOGGLEBTN=no
1565 DEFAULT_wxUSE_TOOLBAR=no
1566 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1567 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1568 DEFAULT_wxUSE_TREECTRL=no
1569 DEFAULT_wxUSE_POPUPWIN=no
1570 DEFAULT_wxUSE_TIPWINDOW=no
1571
1572 DEFAULT_wxUSE_UNICODE=no
1573 DEFAULT_wxUSE_UNICODE_MSLU=no
1574 DEFAULT_wxUSE_WCSRTOMBS=no
1575
1576 DEFAULT_wxUSE_PALETTE=no
1577 DEFAULT_wxUSE_IMAGE=no
1578 DEFAULT_wxUSE_GIF=no
1579 DEFAULT_wxUSE_PCX=no
1580 DEFAULT_wxUSE_PNM=no
1581 DEFAULT_wxUSE_IFF=no
1582 DEFAULT_wxUSE_XPM=no
1583 DEFAULT_wxUSE_ICO_CUR=no
1584else
1585 DEFAULT_wxUSE_UNIVERSAL=no
1586
1587 DEFAULT_wxUSE_NANOX=no
1588
1589 DEFAULT_wxUSE_THREADS=yes
1590
1591 DEFAULT_wxUSE_SHARED=yes
1592 DEFAULT_wxUSE_SONAME=no
1593 DEFAULT_wxUSE_OPTIMISE=yes
1594 DEFAULT_wxUSE_PROFILE=no
1595 DEFAULT_wxUSE_NO_DEPS=no
1596 DEFAULT_wxUSE_NO_RTTI=no
1597 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1598 DEFAULT_wxUSE_PERMISSIVE=no
1599 DEFAULT_wxUSE_DEBUG_FLAG=no
1600 DEFAULT_wxUSE_DEBUG_INFO=no
1601 DEFAULT_wxUSE_DEBUG_GDB=no
1602 DEFAULT_wxUSE_MEM_TRACING=no
1603 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1604 DEFAULT_wxUSE_DMALLOC=no
1605 DEFAULT_wxUSE_PRECOMP=no
1606 DEFAULT_wxUSE_APPLE_IEEE=yes
1607
1608 DEFAULT_wxUSE_LOG=yes
1609 DEFAULT_wxUSE_LOGWINDOW=yes
1610 DEFAULT_wxUSE_LOGGUI=yes
1611 DEFAULT_wxUSE_LOGDIALOG=yes
1612
1613 DEFAULT_wxUSE_GUI=yes
1614
1615 DEFAULT_wxUSE_REGEX=yes
1616 DEFAULT_wxUSE_ZLIB=yes
1617 DEFAULT_wxUSE_LIBPNG=yes
1618 DEFAULT_wxUSE_LIBJPEG=yes
1619 DEFAULT_wxUSE_LIBTIFF=yes
1620 DEFAULT_wxUSE_ODBC=no
1621 DEFAULT_wxUSE_OPENGL=no
1622
1623 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1624 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1625 DEFAULT_wxUSE_STD_IOSTREAM=no
1626 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1627 DEFAULT_wxUSE_DATETIME=yes
1628 DEFAULT_wxUSE_TIMER=yes
1629 DEFAULT_wxUSE_STOPWATCH=yes
1630 DEFAULT_wxUSE_FILE=yes
1631 DEFAULT_wxUSE_FFILE=yes
1632 DEFAULT_wxUSE_TEXTBUFFER=yes
1633 DEFAULT_wxUSE_TEXTFILE=yes
1634 DEFAULT_wxUSE_WAVE=no
1635 DEFAULT_wxUSE_INTL=yes
1636 DEFAULT_wxUSE_CONFIG=yes
1637 DEFAULT_wxUSE_FONTMAP=yes
1638 DEFAULT_wxUSE_STREAMS=yes
1639 DEFAULT_wxUSE_SOCKETS=yes
1640 DEFAULT_wxUSE_OLE=yes
1641 DEFAULT_wxUSE_DATAOBJ=yes
1642 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1643 DEFAULT_wxUSE_JOYSTICK=yes
1644 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1645 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1646 DEFAULT_wxUSE_LONGLONG=yes
1647 DEFAULT_wxUSE_GEOMETRY=yes
1648
1649 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1650 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1651 DEFAULT_wxUSE_POSTSCRIPT=yes
1652
1653 DEFAULT_wxUSE_X_RESOURCES=no
1654 DEFAULT_wxUSE_CLIPBOARD=yes
1655 DEFAULT_wxUSE_TOOLTIPS=yes
1656 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1657 DEFAULT_wxUSE_DRAGIMAGE=yes
1658 DEFAULT_wxUSE_SPLINES=yes
1659
1660 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1661 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1662 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1663
1664 DEFAULT_wxUSE_RESOURCES=no
1665 DEFAULT_wxUSE_CONSTRAINTS=yes
1666 DEFAULT_wxUSE_IPC=yes
1667 DEFAULT_wxUSE_HELP=yes
1668 DEFAULT_wxUSE_MS_HTML_HELP=yes
1669 DEFAULT_wxUSE_WXHTML_HELP=yes
1670 DEFAULT_wxUSE_TREELAYOUT=yes
1671 DEFAULT_wxUSE_METAFILE=yes
1672 DEFAULT_wxUSE_MIMETYPE=yes
1673 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1674 DEFAULT_wxUSE_PROTOCOL=yes
1675 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1676 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1677 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1678 DEFAULT_wxUSE_URL=yes
1679
1680 DEFAULT_wxUSE_COMMONDLGS=yes
1681 DEFAULT_wxUSE_CHOICEDLG=yes
1682 DEFAULT_wxUSE_COLOURDLG=yes
1683 DEFAULT_wxUSE_DIRDLG=yes
1684 DEFAULT_wxUSE_FILEDLG=yes
1685 DEFAULT_wxUSE_FINDREPLDLG=yes
1686 DEFAULT_wxUSE_FONTDLG=yes
1687 DEFAULT_wxUSE_MSGDLG=yes
1688 DEFAULT_wxUSE_NUMBERDLG=yes
1689 DEFAULT_wxUSE_TEXTDLG=yes
1690 DEFAULT_wxUSE_SPLASH=yes
1691 DEFAULT_wxUSE_STARTUP_TIPS=yes
1692 DEFAULT_wxUSE_PROGRESSDLG=yes
1693 DEFAULT_wxUSE_WIZARDDLG=yes
1694
1695 DEFAULT_wxUSE_MENUS=yes
1696 DEFAULT_wxUSE_MINIFRAME=yes
1697 DEFAULT_wxUSE_HTML=yes
1698 DEFAULT_wxUSE_FILESYSTEM=yes
1699 DEFAULT_wxUSE_FS_INET=yes
1700 DEFAULT_wxUSE_FS_ZIP=yes
1701 DEFAULT_wxUSE_BUSYINFO=yes
1702 DEFAULT_wxUSE_ZIPSTREAM=yes
1703 DEFAULT_wxUSE_VALIDATORS=yes
1704
1705 DEFAULT_wxUSE_ACCEL=yes
1706 DEFAULT_wxUSE_BUTTON=yes
1707 DEFAULT_wxUSE_BMPBUTTON=yes
1708 DEFAULT_wxUSE_CALCTRL=yes
1709 DEFAULT_wxUSE_CARET=yes
1710 DEFAULT_wxUSE_CHECKBOX=yes
1711 DEFAULT_wxUSE_CHECKLST=yes
1712 DEFAULT_wxUSE_CHOICE=yes
1713 DEFAULT_wxUSE_COMBOBOX=yes
1714 DEFAULT_wxUSE_DISPLAY=no
1715 DEFAULT_wxUSE_GAUGE=yes
1716 DEFAULT_wxUSE_GRID=yes
1717 DEFAULT_wxUSE_IMAGLIST=yes
1718 DEFAULT_wxUSE_LISTBOX=yes
1719 DEFAULT_wxUSE_LISTCTRL=yes
1720 DEFAULT_wxUSE_NOTEBOOK=yes
1721 DEFAULT_wxUSE_RADIOBOX=yes
1722 DEFAULT_wxUSE_RADIOBTN=yes
1723 DEFAULT_wxUSE_SASH=yes
1724 DEFAULT_wxUSE_SCROLLBAR=yes
1725 DEFAULT_wxUSE_SLIDER=yes
1726 DEFAULT_wxUSE_SPINBTN=yes
1727 DEFAULT_wxUSE_SPINCTRL=yes
1728 DEFAULT_wxUSE_SPLITTER=yes
1729 DEFAULT_wxUSE_STATBMP=yes
1730 DEFAULT_wxUSE_STATBOX=yes
1731 DEFAULT_wxUSE_STATLINE=yes
1732 DEFAULT_wxUSE_STATTEXT=yes
1733 DEFAULT_wxUSE_STATUSBAR=yes
1734 DEFAULT_wxUSE_TABDIALOG=no
1735 DEFAULT_wxUSE_TEXTCTRL=yes
1736 DEFAULT_wxUSE_TOGGLEBTN=yes
1737 DEFAULT_wxUSE_TOOLBAR=yes
1738 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1739 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1740 DEFAULT_wxUSE_TREECTRL=yes
1741 DEFAULT_wxUSE_POPUPWIN=yes
1742 DEFAULT_wxUSE_TIPWINDOW=yes
1743
1744 DEFAULT_wxUSE_UNICODE=no
1745 DEFAULT_wxUSE_UNICODE_MSLU=yes
1746 DEFAULT_wxUSE_WCSRTOMBS=no
1747
1748 DEFAULT_wxUSE_PALETTE=yes
1749 DEFAULT_wxUSE_IMAGE=yes
1750 DEFAULT_wxUSE_GIF=yes
1751 DEFAULT_wxUSE_PCX=yes
1752 DEFAULT_wxUSE_IFF=no
1753 DEFAULT_wxUSE_PNM=yes
1754 DEFAULT_wxUSE_XPM=yes
1755 DEFAULT_wxUSE_ICO_CUR=yes
1756fi
1757
1758
1759
1760for toolkit in `echo $ALL_TOOLKITS`; do
1761 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1762 if test "x$LINE" != "x" ; then
1763 has_toolkit_in_cache=1
1764 eval "DEFAULT_$LINE"
1765 eval "CACHE_$toolkit=1"
1766 fi
1767done
1768
1769
1770
1771 enablestring=
1772 echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
1773echo "configure:1774: checking for --${enablestring:-enable}-gui" >&5
1774 no_cache=0
1775 # Check whether --enable-gui or --disable-gui was given.
1776if test "${enable_gui+set}" = set; then
1777 enableval="$enable_gui"
1778
1779 if test "$enableval" = yes; then
1780 ac_cv_use_gui='wxUSE_GUI=yes'
1781 else
1782 ac_cv_use_gui='wxUSE_GUI=no'
1783 fi
1784
1785else
1786
1787 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1788 if test "x$LINE" != x ; then
1789 eval "DEFAULT_$LINE"
1790 else
1791 no_cache=1
1792 fi
1793
1794 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1795
1796fi
1797
1798
1799 eval "$ac_cv_use_gui"
1800 if test "$no_cache" != 1; then
1801 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1802 fi
1803
1804 if test "$wxUSE_GUI" = yes; then
1805 echo "$ac_t""yes" 1>&6
1806 else
1807 echo "$ac_t""no" 1>&6
1808 fi
1809
1810
1811if test "$wxUSE_GUI" = "yes"; then
1812
1813
1814 enablestring=
1815 echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
1816echo "configure:1817: checking for --${enablestring:-enable}-universal" >&5
1817 no_cache=0
1818 # Check whether --enable-universal or --disable-universal was given.
1819if test "${enable_universal+set}" = set; then
1820 enableval="$enable_universal"
1821
1822 if test "$enableval" = yes; then
1823 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1824 else
1825 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1826 fi
1827
1828else
1829
1830 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1831 if test "x$LINE" != x ; then
1832 eval "DEFAULT_$LINE"
1833 else
1834 no_cache=1
1835 fi
1836
1837 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1838
1839fi
1840
1841
1842 eval "$ac_cv_use_universal"
1843 if test "$no_cache" != 1; then
1844 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1845 fi
1846
1847 if test "$wxUSE_UNIVERSAL" = yes; then
1848 echo "$ac_t""yes" 1>&6
1849 else
1850 echo "$ac_t""no" 1>&6
1851 fi
1852
1853# Check whether --with-gtk or --without-gtk was given.
1854if test "${with_gtk+set}" = set; then
1855 withval="$with_gtk"
1856 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1857fi
1858
1859# Check whether --with-motif or --without-motif was given.
1860if test "${with_motif+set}" = set; then
1861 withval="$with_motif"
1862 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1863fi
1864
1865# Check whether --with-mac or --without-mac was given.
1866if test "${with_mac+set}" = set; then
1867 withval="$with_mac"
1868 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1869fi
1870
1871# Check whether --with-cocoa or --without-cocoa was given.
1872if test "${with_cocoa+set}" = set; then
1873 withval="$with_cocoa"
1874 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
1875fi
1876
1877# Check whether --with-wine or --without-wine was given.
1878if test "${with_wine+set}" = set; then
1879 withval="$with_wine"
1880 wxUSE_WINE="$withval" CACHE_WINE=1
1881fi
1882
1883# Check whether --with-msw or --without-msw was given.
1884if test "${with_msw+set}" = set; then
1885 withval="$with_msw"
1886 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1887fi
1888
1889# Check whether --with-pm or --without-pm was given.
1890if test "${with_pm+set}" = set; then
1891 withval="$with_pm"
1892 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1893fi
1894
1895# Check whether --with-mgl or --without-mgl was given.
1896if test "${with_mgl+set}" = set; then
1897 withval="$with_mgl"
1898 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1899fi
1900
1901# Check whether --with-microwin or --without-microwin was given.
1902if test "${with_microwin+set}" = set; then
1903 withval="$with_microwin"
1904 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1905fi
1906
1907# Check whether --with-x11 or --without-x11 was given.
1908if test "${with_x11+set}" = set; then
1909 withval="$with_x11"
1910 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1911fi
1912
1913
1914 enablestring=
1915 echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
1916echo "configure:1917: checking for --${enablestring:-enable}-nanox" >&5
1917 no_cache=0
1918 # Check whether --enable-nanox or --disable-nanox was given.
1919if test "${enable_nanox+set}" = set; then
1920 enableval="$enable_nanox"
1921
1922 if test "$enableval" = yes; then
1923 ac_cv_use_nanox='wxUSE_NANOX=yes'
1924 else
1925 ac_cv_use_nanox='wxUSE_NANOX=no'
1926 fi
1927
1928else
1929
1930 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1931 if test "x$LINE" != x ; then
1932 eval "DEFAULT_$LINE"
1933 else
1934 no_cache=1
1935 fi
1936
1937 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1938
1939fi
1940
1941
1942 eval "$ac_cv_use_nanox"
1943 if test "$no_cache" != 1; then
1944 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1945 fi
1946
1947 if test "$wxUSE_NANOX" = yes; then
1948 echo "$ac_t""yes" 1>&6
1949 else
1950 echo "$ac_t""no" 1>&6
1951 fi
1952
1953
1954
1955 enablestring=
1956 echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
1957echo "configure:1958: checking for --${enablestring:-enable}-gtk2" >&5
1958 no_cache=0
1959 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1960if test "${enable_gtk2+set}" = set; then
1961 enableval="$enable_gtk2"
1962
1963 if test "$enableval" = yes; then
1964 ac_cv_use_gtk2='wxUSE_GTK2=yes'
1965 else
1966 ac_cv_use_gtk2='wxUSE_GTK2=no'
1967 fi
1968
1969else
1970
1971 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1972 if test "x$LINE" != x ; then
1973 eval "DEFAULT_$LINE"
1974 else
1975 no_cache=1
1976 fi
1977
1978 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
1979
1980fi
1981
1982
1983 eval "$ac_cv_use_gtk2"
1984 if test "$no_cache" != 1; then
1985 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1986 fi
1987
1988 if test "$wxUSE_GTK2" = yes; then
1989 echo "$ac_t""yes" 1>&6
1990 else
1991 echo "$ac_t""no" 1>&6
1992 fi
1993
1994
1995
1996 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1997echo "configure:1998: checking for --with-libpng" >&5
1998 no_cache=0
1999 # Check whether --with-libpng or --without-libpng was given.
2000if test "${with_libpng+set}" = set; then
2001 withval="$with_libpng"
2002
2003 if test "$withval" = yes; then
2004 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2005 elif test "$withval" = no; then
2006 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2007 elif test "$withval" = sys; then
2008 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2009 elif test "$withval" = builtin; then
2010 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2011 else
2012 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2013 fi
2014
2015else
2016
2017 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2018 if test "x$LINE" != x ; then
2019 eval "DEFAULT_$LINE"
2020 else
2021 no_cache=1
2022 fi
2023
2024 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2025
2026fi
2027
2028
2029 eval "$ac_cv_use_libpng"
2030 if test "$no_cache" != 1; then
2031 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2032 fi
2033
2034 if test "$wxUSE_LIBPNG" = yes; then
2035 echo "$ac_t""yes" 1>&6
2036 elif test "$wxUSE_LIBPNG" = no; then
2037 echo "$ac_t""no" 1>&6
2038 elif test "$wxUSE_LIBPNG" = sys; then
2039 echo "$ac_t""system version" 1>&6
2040 elif test "$wxUSE_LIBPNG" = builtin; then
2041 echo "$ac_t""builtin version" 1>&6
2042 else
2043 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2044 fi
2045
2046
2047 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2048echo "configure:2049: checking for --with-libjpeg" >&5
2049 no_cache=0
2050 # Check whether --with-libjpeg or --without-libjpeg was given.
2051if test "${with_libjpeg+set}" = set; then
2052 withval="$with_libjpeg"
2053
2054 if test "$withval" = yes; then
2055 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2056 elif test "$withval" = no; then
2057 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2058 elif test "$withval" = sys; then
2059 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2060 elif test "$withval" = builtin; then
2061 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2062 else
2063 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2064 fi
2065
2066else
2067
2068 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2069 if test "x$LINE" != x ; then
2070 eval "DEFAULT_$LINE"
2071 else
2072 no_cache=1
2073 fi
2074
2075 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2076
2077fi
2078
2079
2080 eval "$ac_cv_use_libjpeg"
2081 if test "$no_cache" != 1; then
2082 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2083 fi
2084
2085 if test "$wxUSE_LIBJPEG" = yes; then
2086 echo "$ac_t""yes" 1>&6
2087 elif test "$wxUSE_LIBJPEG" = no; then
2088 echo "$ac_t""no" 1>&6
2089 elif test "$wxUSE_LIBJPEG" = sys; then
2090 echo "$ac_t""system version" 1>&6
2091 elif test "$wxUSE_LIBJPEG" = builtin; then
2092 echo "$ac_t""builtin version" 1>&6
2093 else
2094 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2095 fi
2096
2097
2098 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2099echo "configure:2100: checking for --with-libtiff" >&5
2100 no_cache=0
2101 # Check whether --with-libtiff or --without-libtiff was given.
2102if test "${with_libtiff+set}" = set; then
2103 withval="$with_libtiff"
2104
2105 if test "$withval" = yes; then
2106 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2107 elif test "$withval" = no; then
2108 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2109 elif test "$withval" = sys; then
2110 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2111 elif test "$withval" = builtin; then
2112 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2113 else
2114 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2115 fi
2116
2117else
2118
2119 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2120 if test "x$LINE" != x ; then
2121 eval "DEFAULT_$LINE"
2122 else
2123 no_cache=1
2124 fi
2125
2126 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2127
2128fi
2129
2130
2131 eval "$ac_cv_use_libtiff"
2132 if test "$no_cache" != 1; then
2133 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2134 fi
2135
2136 if test "$wxUSE_LIBTIFF" = yes; then
2137 echo "$ac_t""yes" 1>&6
2138 elif test "$wxUSE_LIBTIFF" = no; then
2139 echo "$ac_t""no" 1>&6
2140 elif test "$wxUSE_LIBTIFF" = sys; then
2141 echo "$ac_t""system version" 1>&6
2142 elif test "$wxUSE_LIBTIFF" = builtin; then
2143 echo "$ac_t""builtin version" 1>&6
2144 else
2145 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2146 fi
2147
2148
2149 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2150echo "configure:2151: checking for --with-opengl" >&5
2151 no_cache=0
2152 # Check whether --with-opengl or --without-opengl was given.
2153if test "${with_opengl+set}" = set; then
2154 withval="$with_opengl"
2155
2156 if test "$withval" = yes; then
2157 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2158 else
2159 ac_cv_use_opengl='wxUSE_OPENGL=no'
2160 fi
2161
2162else
2163
2164 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2165 if test "x$LINE" != x ; then
2166 eval "DEFAULT_$LINE"
2167 else
2168 no_cache=1
2169 fi
2170
2171 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2172
2173fi
2174
2175
2176 eval "$ac_cv_use_opengl"
2177 if test "$no_cache" != 1; then
2178 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2179 fi
2180
2181 if test "$wxUSE_OPENGL" = yes; then
2182 echo "$ac_t""yes" 1>&6
2183 else
2184 echo "$ac_t""no" 1>&6
2185 fi
2186
2187
2188fi
2189
2190
2191 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2192echo "configure:2193: checking for --with-dmalloc" >&5
2193 no_cache=0
2194 # Check whether --with-dmalloc or --without-dmalloc was given.
2195if test "${with_dmalloc+set}" = set; then
2196 withval="$with_dmalloc"
2197
2198 if test "$withval" = yes; then
2199 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2200 else
2201 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2202 fi
2203
2204else
2205
2206 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2207 if test "x$LINE" != x ; then
2208 eval "DEFAULT_$LINE"
2209 else
2210 no_cache=1
2211 fi
2212
2213 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2214
2215fi
2216
2217
2218 eval "$ac_cv_use_dmalloc"
2219 if test "$no_cache" != 1; then
2220 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2221 fi
2222
2223 if test "$wxUSE_DMALLOC" = yes; then
2224 echo "$ac_t""yes" 1>&6
2225 else
2226 echo "$ac_t""no" 1>&6
2227 fi
2228
2229
2230 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2231echo "configure:2232: checking for --with-regex" >&5
2232 no_cache=0
2233 # Check whether --with-regex or --without-regex was given.
2234if test "${with_regex+set}" = set; then
2235 withval="$with_regex"
2236
2237 if test "$withval" = yes; then
2238 ac_cv_use_regex='wxUSE_REGEX=yes'
2239 elif test "$withval" = no; then
2240 ac_cv_use_regex='wxUSE_REGEX=no'
2241 elif test "$withval" = sys; then
2242 ac_cv_use_regex='wxUSE_REGEX=sys'
2243 elif test "$withval" = builtin; then
2244 ac_cv_use_regex='wxUSE_REGEX=builtin'
2245 else
2246 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2247 fi
2248
2249else
2250
2251 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2252 if test "x$LINE" != x ; then
2253 eval "DEFAULT_$LINE"
2254 else
2255 no_cache=1
2256 fi
2257
2258 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2259
2260fi
2261
2262
2263 eval "$ac_cv_use_regex"
2264 if test "$no_cache" != 1; then
2265 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2266 fi
2267
2268 if test "$wxUSE_REGEX" = yes; then
2269 echo "$ac_t""yes" 1>&6
2270 elif test "$wxUSE_REGEX" = no; then
2271 echo "$ac_t""no" 1>&6
2272 elif test "$wxUSE_REGEX" = sys; then
2273 echo "$ac_t""system version" 1>&6
2274 elif test "$wxUSE_REGEX" = builtin; then
2275 echo "$ac_t""builtin version" 1>&6
2276 else
2277 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2278 fi
2279
2280
2281 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2282echo "configure:2283: checking for --with-zlib" >&5
2283 no_cache=0
2284 # Check whether --with-zlib or --without-zlib was given.
2285if test "${with_zlib+set}" = set; then
2286 withval="$with_zlib"
2287
2288 if test "$withval" = yes; then
2289 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2290 elif test "$withval" = no; then
2291 ac_cv_use_zlib='wxUSE_ZLIB=no'
2292 elif test "$withval" = sys; then
2293 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2294 elif test "$withval" = builtin; then
2295 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2296 else
2297 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2298 fi
2299
2300else
2301
2302 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2303 if test "x$LINE" != x ; then
2304 eval "DEFAULT_$LINE"
2305 else
2306 no_cache=1
2307 fi
2308
2309 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2310
2311fi
2312
2313
2314 eval "$ac_cv_use_zlib"
2315 if test "$no_cache" != 1; then
2316 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2317 fi
2318
2319 if test "$wxUSE_ZLIB" = yes; then
2320 echo "$ac_t""yes" 1>&6
2321 elif test "$wxUSE_ZLIB" = no; then
2322 echo "$ac_t""no" 1>&6
2323 elif test "$wxUSE_ZLIB" = sys; then
2324 echo "$ac_t""system version" 1>&6
2325 elif test "$wxUSE_ZLIB" = builtin; then
2326 echo "$ac_t""builtin version" 1>&6
2327 else
2328 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2329 fi
2330
2331
2332 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2333echo "configure:2334: checking for --with-odbc" >&5
2334 no_cache=0
2335 # Check whether --with-odbc or --without-odbc was given.
2336if test "${with_odbc+set}" = set; then
2337 withval="$with_odbc"
2338
2339 if test "$withval" = yes; then
2340 ac_cv_use_odbc='wxUSE_ODBC=yes'
2341 else
2342 ac_cv_use_odbc='wxUSE_ODBC=no'
2343 fi
2344
2345else
2346
2347 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2348 if test "x$LINE" != x ; then
2349 eval "DEFAULT_$LINE"
2350 else
2351 no_cache=1
2352 fi
2353
2354 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2355
2356fi
2357
2358
2359 eval "$ac_cv_use_odbc"
2360 if test "$no_cache" != 1; then
2361 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2362 fi
2363
2364 if test "$wxUSE_ODBC" = yes; then
2365 echo "$ac_t""yes" 1>&6
2366 else
2367 echo "$ac_t""no" 1>&6
2368 fi
2369
2370
2371
2372
2373 enablestring=
2374 echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
2375echo "configure:2376: checking for --${enablestring:-enable}-shared" >&5
2376 no_cache=0
2377 # Check whether --enable-shared or --disable-shared was given.
2378if test "${enable_shared+set}" = set; then
2379 enableval="$enable_shared"
2380
2381 if test "$enableval" = yes; then
2382 ac_cv_use_shared='wxUSE_SHARED=yes'
2383 else
2384 ac_cv_use_shared='wxUSE_SHARED=no'
2385 fi
2386
2387else
2388
2389 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2390 if test "x$LINE" != x ; then
2391 eval "DEFAULT_$LINE"
2392 else
2393 no_cache=1
2394 fi
2395
2396 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2397
2398fi
2399
2400
2401 eval "$ac_cv_use_shared"
2402 if test "$no_cache" != 1; then
2403 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2404 fi
2405
2406 if test "$wxUSE_SHARED" = yes; then
2407 echo "$ac_t""yes" 1>&6
2408 else
2409 echo "$ac_t""no" 1>&6
2410 fi
2411
2412
2413 enablestring=
2414 echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
2415echo "configure:2416: checking for --${enablestring:-enable}-soname" >&5
2416 no_cache=0
2417 # Check whether --enable-soname or --disable-soname was given.
2418if test "${enable_soname+set}" = set; then
2419 enableval="$enable_soname"
2420
2421 if test "$enableval" = yes; then
2422 ac_cv_use_soname='wxUSE_SONAME=yes'
2423 else
2424 ac_cv_use_soname='wxUSE_SONAME=no'
2425 fi
2426
2427else
2428
2429 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2430 if test "x$LINE" != x ; then
2431 eval "DEFAULT_$LINE"
2432 else
2433 no_cache=1
2434 fi
2435
2436 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2437
2438fi
2439
2440
2441 eval "$ac_cv_use_soname"
2442 if test "$no_cache" != 1; then
2443 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2444 fi
2445
2446 if test "$wxUSE_SONAME" = yes; then
2447 echo "$ac_t""yes" 1>&6
2448 else
2449 echo "$ac_t""no" 1>&6
2450 fi
2451
2452
2453 enablestring=
2454 echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
2455echo "configure:2456: checking for --${enablestring:-enable}-optimise" >&5
2456 no_cache=0
2457 # Check whether --enable-optimise or --disable-optimise was given.
2458if test "${enable_optimise+set}" = set; then
2459 enableval="$enable_optimise"
2460
2461 if test "$enableval" = yes; then
2462 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2463 else
2464 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2465 fi
2466
2467else
2468
2469 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2470 if test "x$LINE" != x ; then
2471 eval "DEFAULT_$LINE"
2472 else
2473 no_cache=1
2474 fi
2475
2476 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2477
2478fi
2479
2480
2481 eval "$ac_cv_use_optimise"
2482 if test "$no_cache" != 1; then
2483 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2484 fi
2485
2486 if test "$wxUSE_OPTIMISE" = yes; then
2487 echo "$ac_t""yes" 1>&6
2488 else
2489 echo "$ac_t""no" 1>&6
2490 fi
2491
2492
2493 enablestring=
2494 echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
2495echo "configure:2496: checking for --${enablestring:-enable}-debug" >&5
2496 no_cache=0
2497 # Check whether --enable-debug or --disable-debug was given.
2498if test "${enable_debug+set}" = set; then
2499 enableval="$enable_debug"
2500
2501 if test "$enableval" = yes; then
2502 ac_cv_use_debug='wxUSE_DEBUG=yes'
2503 else
2504 ac_cv_use_debug='wxUSE_DEBUG=no'
2505 fi
2506
2507else
2508
2509 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2510 if test "x$LINE" != x ; then
2511 eval "DEFAULT_$LINE"
2512 else
2513 no_cache=1
2514 fi
2515
2516 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2517
2518fi
2519
2520
2521 eval "$ac_cv_use_debug"
2522 if test "$no_cache" != 1; then
2523 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2524 fi
2525
2526 if test "$wxUSE_DEBUG" = yes; then
2527 echo "$ac_t""yes" 1>&6
2528 else
2529 echo "$ac_t""no" 1>&6
2530 fi
2531
2532
2533
2534 enablestring=
2535 echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
2536echo "configure:2537: checking for --${enablestring:-enable}-precomp" >&5
2537 no_cache=0
2538 # Check whether --enable-precomp or --disable-precomp was given.
2539if test "${enable_precomp+set}" = set; then
2540 enableval="$enable_precomp"
2541
2542 if test "$enableval" = yes; then
2543 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2544 else
2545 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2546 fi
2547
2548else
2549
2550 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2551 if test "x$LINE" != x ; then
2552 eval "DEFAULT_$LINE"
2553 else
2554 no_cache=1
2555 fi
2556
2557 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2558
2559fi
2560
2561
2562 eval "$ac_cv_use_precomp"
2563 if test "$no_cache" != 1; then
2564 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2565 fi
2566
2567 if test "$wxUSE_PRECOMP" = yes; then
2568 echo "$ac_t""yes" 1>&6
2569 else
2570 echo "$ac_t""no" 1>&6
2571 fi
2572
2573
2574if test "$wxUSE_DEBUG" = "yes"; then
2575 DEFAULT_wxUSE_DEBUG_FLAG=yes
2576 DEFAULT_wxUSE_DEBUG_INFO=yes
2577elif test "$wxUSE_DEBUG" = "no"; then
2578 DEFAULT_wxUSE_DEBUG_FLAG=no
2579 DEFAULT_wxUSE_DEBUG_INFO=no
2580fi
2581
2582
2583 enablestring=
2584 echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
2585echo "configure:2586: checking for --${enablestring:-enable}-debug_flag" >&5
2586 no_cache=0
2587 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2588if test "${enable_debug_flag+set}" = set; then
2589 enableval="$enable_debug_flag"
2590
2591 if test "$enableval" = yes; then
2592 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2593 else
2594 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2595 fi
2596
2597else
2598
2599 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2600 if test "x$LINE" != x ; then
2601 eval "DEFAULT_$LINE"
2602 else
2603 no_cache=1
2604 fi
2605
2606 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2607
2608fi
2609
2610
2611 eval "$ac_cv_use_debug_flag"
2612 if test "$no_cache" != 1; then
2613 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2614 fi
2615
2616 if test "$wxUSE_DEBUG_FLAG" = yes; then
2617 echo "$ac_t""yes" 1>&6
2618 else
2619 echo "$ac_t""no" 1>&6
2620 fi
2621
2622
2623 enablestring=
2624 echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
2625echo "configure:2626: checking for --${enablestring:-enable}-debug_info" >&5
2626 no_cache=0
2627 # Check whether --enable-debug_info or --disable-debug_info was given.
2628if test "${enable_debug_info+set}" = set; then
2629 enableval="$enable_debug_info"
2630
2631 if test "$enableval" = yes; then
2632 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2633 else
2634 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2635 fi
2636
2637else
2638
2639 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2640 if test "x$LINE" != x ; then
2641 eval "DEFAULT_$LINE"
2642 else
2643 no_cache=1
2644 fi
2645
2646 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2647
2648fi
2649
2650
2651 eval "$ac_cv_use_debug_info"
2652 if test "$no_cache" != 1; then
2653 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2654 fi
2655
2656 if test "$wxUSE_DEBUG_INFO" = yes; then
2657 echo "$ac_t""yes" 1>&6
2658 else
2659 echo "$ac_t""no" 1>&6
2660 fi
2661
2662
2663 enablestring=
2664 echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
2665echo "configure:2666: checking for --${enablestring:-enable}-debug_gdb" >&5
2666 no_cache=0
2667 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2668if test "${enable_debug_gdb+set}" = set; then
2669 enableval="$enable_debug_gdb"
2670
2671 if test "$enableval" = yes; then
2672 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2673 else
2674 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2675 fi
2676
2677else
2678
2679 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2680 if test "x$LINE" != x ; then
2681 eval "DEFAULT_$LINE"
2682 else
2683 no_cache=1
2684 fi
2685
2686 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2687
2688fi
2689
2690
2691 eval "$ac_cv_use_debug_gdb"
2692 if test "$no_cache" != 1; then
2693 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2694 fi
2695
2696 if test "$wxUSE_DEBUG_GDB" = yes; then
2697 echo "$ac_t""yes" 1>&6
2698 else
2699 echo "$ac_t""no" 1>&6
2700 fi
2701
2702
2703 enablestring=
2704 echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
2705echo "configure:2706: checking for --${enablestring:-enable}-debug_cntxt" >&5
2706 no_cache=0
2707 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2708if test "${enable_debug_cntxt+set}" = set; then
2709 enableval="$enable_debug_cntxt"
2710
2711 if test "$enableval" = yes; then
2712 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2713 else
2714 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2715 fi
2716
2717else
2718
2719 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2720 if test "x$LINE" != x ; then
2721 eval "DEFAULT_$LINE"
2722 else
2723 no_cache=1
2724 fi
2725
2726 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2727
2728fi
2729
2730
2731 eval "$ac_cv_use_debug_cntxt"
2732 if test "$no_cache" != 1; then
2733 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2734 fi
2735
2736 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2737 echo "$ac_t""yes" 1>&6
2738 else
2739 echo "$ac_t""no" 1>&6
2740 fi
2741
2742
2743 enablestring=
2744 echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
2745echo "configure:2746: checking for --${enablestring:-enable}-mem_tracing" >&5
2746 no_cache=0
2747 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2748if test "${enable_mem_tracing+set}" = set; then
2749 enableval="$enable_mem_tracing"
2750
2751 if test "$enableval" = yes; then
2752 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2753 else
2754 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2755 fi
2756
2757else
2758
2759 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2760 if test "x$LINE" != x ; then
2761 eval "DEFAULT_$LINE"
2762 else
2763 no_cache=1
2764 fi
2765
2766 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2767
2768fi
2769
2770
2771 eval "$ac_cv_use_mem_tracing"
2772 if test "$no_cache" != 1; then
2773 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2774 fi
2775
2776 if test "$wxUSE_MEM_TRACING" = yes; then
2777 echo "$ac_t""yes" 1>&6
2778 else
2779 echo "$ac_t""no" 1>&6
2780 fi
2781
2782
2783 enablestring=
2784 echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
2785echo "configure:2786: checking for --${enablestring:-enable}-profile" >&5
2786 no_cache=0
2787 # Check whether --enable-profile or --disable-profile was given.
2788if test "${enable_profile+set}" = set; then
2789 enableval="$enable_profile"
2790
2791 if test "$enableval" = yes; then
2792 ac_cv_use_profile='wxUSE_PROFILE=yes'
2793 else
2794 ac_cv_use_profile='wxUSE_PROFILE=no'
2795 fi
2796
2797else
2798
2799 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2800 if test "x$LINE" != x ; then
2801 eval "DEFAULT_$LINE"
2802 else
2803 no_cache=1
2804 fi
2805
2806 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2807
2808fi
2809
2810
2811 eval "$ac_cv_use_profile"
2812 if test "$no_cache" != 1; then
2813 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2814 fi
2815
2816 if test "$wxUSE_PROFILE" = yes; then
2817 echo "$ac_t""yes" 1>&6
2818 else
2819 echo "$ac_t""no" 1>&6
2820 fi
2821
2822
2823 enablestring=
2824 echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
2825echo "configure:2826: checking for --${enablestring:-enable}-no_rtti" >&5
2826 no_cache=0
2827 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2828if test "${enable_no_rtti+set}" = set; then
2829 enableval="$enable_no_rtti"
2830
2831 if test "$enableval" = yes; then
2832 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2833 else
2834 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2835 fi
2836
2837else
2838
2839 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2840 if test "x$LINE" != x ; then
2841 eval "DEFAULT_$LINE"
2842 else
2843 no_cache=1
2844 fi
2845
2846 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2847
2848fi
2849
2850
2851 eval "$ac_cv_use_no_rtti"
2852 if test "$no_cache" != 1; then
2853 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2854 fi
2855
2856 if test "$wxUSE_NO_RTTI" = yes; then
2857 echo "$ac_t""yes" 1>&6
2858 else
2859 echo "$ac_t""no" 1>&6
2860 fi
2861
2862
2863 enablestring=
2864 echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
2865echo "configure:2866: checking for --${enablestring:-enable}-no_exceptions" >&5
2866 no_cache=0
2867 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2868if test "${enable_no_exceptions+set}" = set; then
2869 enableval="$enable_no_exceptions"
2870
2871 if test "$enableval" = yes; then
2872 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2873 else
2874 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2875 fi
2876
2877else
2878
2879 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2880 if test "x$LINE" != x ; then
2881 eval "DEFAULT_$LINE"
2882 else
2883 no_cache=1
2884 fi
2885
2886 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2887
2888fi
2889
2890
2891 eval "$ac_cv_use_no_exceptions"
2892 if test "$no_cache" != 1; then
2893 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2894 fi
2895
2896 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2897 echo "$ac_t""yes" 1>&6
2898 else
2899 echo "$ac_t""no" 1>&6
2900 fi
2901
2902
2903 enablestring=
2904 echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
2905echo "configure:2906: checking for --${enablestring:-enable}-permissive" >&5
2906 no_cache=0
2907 # Check whether --enable-permissive or --disable-permissive was given.
2908if test "${enable_permissive+set}" = set; then
2909 enableval="$enable_permissive"
2910
2911 if test "$enableval" = yes; then
2912 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2913 else
2914 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2915 fi
2916
2917else
2918
2919 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2920 if test "x$LINE" != x ; then
2921 eval "DEFAULT_$LINE"
2922 else
2923 no_cache=1
2924 fi
2925
2926 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2927
2928fi
2929
2930
2931 eval "$ac_cv_use_permissive"
2932 if test "$no_cache" != 1; then
2933 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2934 fi
2935
2936 if test "$wxUSE_PERMISSIVE" = yes; then
2937 echo "$ac_t""yes" 1>&6
2938 else
2939 echo "$ac_t""no" 1>&6
2940 fi
2941
2942
2943 enablestring=
2944 echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
2945echo "configure:2946: checking for --${enablestring:-enable}-no_deps" >&5
2946 no_cache=0
2947 # Check whether --enable-no_deps or --disable-no_deps was given.
2948if test "${enable_no_deps+set}" = set; then
2949 enableval="$enable_no_deps"
2950
2951 if test "$enableval" = yes; then
2952 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2953 else
2954 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2955 fi
2956
2957else
2958
2959 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2960 if test "x$LINE" != x ; then
2961 eval "DEFAULT_$LINE"
2962 else
2963 no_cache=1
2964 fi
2965
2966 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2967
2968fi
2969
2970
2971 eval "$ac_cv_use_no_deps"
2972 if test "$no_cache" != 1; then
2973 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2974 fi
2975
2976 if test "$wxUSE_NO_DEPS" = yes; then
2977 echo "$ac_t""yes" 1>&6
2978 else
2979 echo "$ac_t""no" 1>&6
2980 fi
2981
2982
2983
2984 enablestring=
2985 echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
2986echo "configure:2987: checking for --${enablestring:-enable}-compat20" >&5
2987 no_cache=0
2988 # Check whether --enable-compat20 or --disable-compat20 was given.
2989if test "${enable_compat20+set}" = set; then
2990 enableval="$enable_compat20"
2991
2992 if test "$enableval" = yes; then
2993 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2994 else
2995 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2996 fi
2997
2998else
2999
3000 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3001 if test "x$LINE" != x ; then
3002 eval "DEFAULT_$LINE"
3003 else
3004 no_cache=1
3005 fi
3006
3007 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
3008
3009fi
3010
3011
3012 eval "$ac_cv_use_compat20"
3013 if test "$no_cache" != 1; then
3014 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3015 fi
3016
3017 if test "$WXWIN_COMPATIBILITY_2" = yes; then
3018 echo "$ac_t""yes" 1>&6
3019 else
3020 echo "$ac_t""no" 1>&6
3021 fi
3022
3023
3024 enablestring=
3025 echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
3026echo "configure:3027: checking for --${enablestring:-enable}-compat22" >&5
3027 no_cache=0
3028 # Check whether --enable-compat22 or --disable-compat22 was given.
3029if test "${enable_compat22+set}" = set; then
3030 enableval="$enable_compat22"
3031
3032 if test "$enableval" = yes; then
3033 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3034 else
3035 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3036 fi
3037
3038else
3039
3040 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3041 if test "x$LINE" != x ; then
3042 eval "DEFAULT_$LINE"
3043 else
3044 no_cache=1
3045 fi
3046
3047 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3048
3049fi
3050
3051
3052 eval "$ac_cv_use_compat22"
3053 if test "$no_cache" != 1; then
3054 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3055 fi
3056
3057 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3058 echo "$ac_t""yes" 1>&6
3059 else
3060 echo "$ac_t""no" 1>&6
3061 fi
3062
3063
3064 enablestring=disable
3065 echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6
3066echo "configure:3067: checking for --${enablestring:-enable}-compat24" >&5
3067 no_cache=0
3068 # Check whether --enable-compat24 or --disable-compat24 was given.
3069if test "${enable_compat24+set}" = set; then
3070 enableval="$enable_compat24"
3071
3072 if test "$enableval" = yes; then
3073 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3074 else
3075 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3076 fi
3077
3078else
3079
3080 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3081 if test "x$LINE" != x ; then
3082 eval "DEFAULT_$LINE"
3083 else
3084 no_cache=1
3085 fi
3086
3087 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3088
3089fi
3090
3091
3092 eval "$ac_cv_use_compat24"
3093 if test "$no_cache" != 1; then
3094 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3095 fi
3096
3097 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3098 echo "$ac_t""yes" 1>&6
3099 else
3100 echo "$ac_t""no" 1>&6
3101 fi
3102
3103
3104# Check whether --enable-rpath or --disable-rpath was given.
3105if test "${enable_rpath+set}" = set; then
3106 enableval="$enable_rpath"
3107 wxRPATH_DIR="$enableval"
3108fi
3109
3110
3111if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3112 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3113fi
3114
3115
3116
3117
3118 enablestring=
3119 echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
3120echo "configure:3121: checking for --${enablestring:-enable}-intl" >&5
3121 no_cache=0
3122 # Check whether --enable-intl or --disable-intl was given.
3123if test "${enable_intl+set}" = set; then
3124 enableval="$enable_intl"
3125
3126 if test "$enableval" = yes; then
3127 ac_cv_use_intl='wxUSE_INTL=yes'
3128 else
3129 ac_cv_use_intl='wxUSE_INTL=no'
3130 fi
3131
3132else
3133
3134 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3135 if test "x$LINE" != x ; then
3136 eval "DEFAULT_$LINE"
3137 else
3138 no_cache=1
3139 fi
3140
3141 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3142
3143fi
3144
3145
3146 eval "$ac_cv_use_intl"
3147 if test "$no_cache" != 1; then
3148 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3149 fi
3150
3151 if test "$wxUSE_INTL" = yes; then
3152 echo "$ac_t""yes" 1>&6
3153 else
3154 echo "$ac_t""no" 1>&6
3155 fi
3156
3157
3158 enablestring=
3159 echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
3160echo "configure:3161: checking for --${enablestring:-enable}-config" >&5
3161 no_cache=0
3162 # Check whether --enable-config or --disable-config was given.
3163if test "${enable_config+set}" = set; then
3164 enableval="$enable_config"
3165
3166 if test "$enableval" = yes; then
3167 ac_cv_use_config='wxUSE_CONFIG=yes'
3168 else
3169 ac_cv_use_config='wxUSE_CONFIG=no'
3170 fi
3171
3172else
3173
3174 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3175 if test "x$LINE" != x ; then
3176 eval "DEFAULT_$LINE"
3177 else
3178 no_cache=1
3179 fi
3180
3181 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3182
3183fi
3184
3185
3186 eval "$ac_cv_use_config"
3187 if test "$no_cache" != 1; then
3188 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3189 fi
3190
3191 if test "$wxUSE_CONFIG" = yes; then
3192 echo "$ac_t""yes" 1>&6
3193 else
3194 echo "$ac_t""no" 1>&6
3195 fi
3196
3197
3198
3199 enablestring=
3200 echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
3201echo "configure:3202: checking for --${enablestring:-enable}-protocols" >&5
3202 no_cache=0
3203 # Check whether --enable-protocols or --disable-protocols was given.
3204if test "${enable_protocols+set}" = set; then
3205 enableval="$enable_protocols"
3206
3207 if test "$enableval" = yes; then
3208 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3209 else
3210 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3211 fi
3212
3213else
3214
3215 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3216 if test "x$LINE" != x ; then
3217 eval "DEFAULT_$LINE"
3218 else
3219 no_cache=1
3220 fi
3221
3222 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3223
3224fi
3225
3226
3227 eval "$ac_cv_use_protocols"
3228 if test "$no_cache" != 1; then
3229 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3230 fi
3231
3232 if test "$wxUSE_PROTOCOL" = yes; then
3233 echo "$ac_t""yes" 1>&6
3234 else
3235 echo "$ac_t""no" 1>&6
3236 fi
3237
3238
3239 enablestring=
3240 echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
3241echo "configure:3242: checking for --${enablestring:-enable}-ftp" >&5
3242 no_cache=0
3243 # Check whether --enable-ftp or --disable-ftp was given.
3244if test "${enable_ftp+set}" = set; then
3245 enableval="$enable_ftp"
3246
3247 if test "$enableval" = yes; then
3248 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3249 else
3250 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3251 fi
3252
3253else
3254
3255 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3256 if test "x$LINE" != x ; then
3257 eval "DEFAULT_$LINE"
3258 else
3259 no_cache=1
3260 fi
3261
3262 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3263
3264fi
3265
3266
3267 eval "$ac_cv_use_ftp"
3268 if test "$no_cache" != 1; then
3269 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3270 fi
3271
3272 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3273 echo "$ac_t""yes" 1>&6
3274 else
3275 echo "$ac_t""no" 1>&6
3276 fi
3277
3278
3279 enablestring=
3280 echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
3281echo "configure:3282: checking for --${enablestring:-enable}-http" >&5
3282 no_cache=0
3283 # Check whether --enable-http or --disable-http was given.
3284if test "${enable_http+set}" = set; then
3285 enableval="$enable_http"
3286
3287 if test "$enableval" = yes; then
3288 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3289 else
3290 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3291 fi
3292
3293else
3294
3295 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3296 if test "x$LINE" != x ; then
3297 eval "DEFAULT_$LINE"
3298 else
3299 no_cache=1
3300 fi
3301
3302 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3303
3304fi
3305
3306
3307 eval "$ac_cv_use_http"
3308 if test "$no_cache" != 1; then
3309 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3310 fi
3311
3312 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3313 echo "$ac_t""yes" 1>&6
3314 else
3315 echo "$ac_t""no" 1>&6
3316 fi
3317
3318
3319 enablestring=
3320 echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
3321echo "configure:3322: checking for --${enablestring:-enable}-fileproto" >&5
3322 no_cache=0
3323 # Check whether --enable-fileproto or --disable-fileproto was given.
3324if test "${enable_fileproto+set}" = set; then
3325 enableval="$enable_fileproto"
3326
3327 if test "$enableval" = yes; then
3328 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3329 else
3330 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3331 fi
3332
3333else
3334
3335 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3336 if test "x$LINE" != x ; then
3337 eval "DEFAULT_$LINE"
3338 else
3339 no_cache=1
3340 fi
3341
3342 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3343
3344fi
3345
3346
3347 eval "$ac_cv_use_fileproto"
3348 if test "$no_cache" != 1; then
3349 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3350 fi
3351
3352 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3353 echo "$ac_t""yes" 1>&6
3354 else
3355 echo "$ac_t""no" 1>&6
3356 fi
3357
3358
3359 enablestring=
3360 echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
3361echo "configure:3362: checking for --${enablestring:-enable}-sockets" >&5
3362 no_cache=0
3363 # Check whether --enable-sockets or --disable-sockets was given.
3364if test "${enable_sockets+set}" = set; then
3365 enableval="$enable_sockets"
3366
3367 if test "$enableval" = yes; then
3368 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3369 else
3370 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3371 fi
3372
3373else
3374
3375 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3376 if test "x$LINE" != x ; then
3377 eval "DEFAULT_$LINE"
3378 else
3379 no_cache=1
3380 fi
3381
3382 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3383
3384fi
3385
3386
3387 eval "$ac_cv_use_sockets"
3388 if test "$no_cache" != 1; then
3389 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3390 fi
3391
3392 if test "$wxUSE_SOCKETS" = yes; then
3393 echo "$ac_t""yes" 1>&6
3394 else
3395 echo "$ac_t""no" 1>&6
3396 fi
3397
3398
3399 enablestring=
3400 echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
3401echo "configure:3402: checking for --${enablestring:-enable}-ole" >&5
3402 no_cache=0
3403 # Check whether --enable-ole or --disable-ole was given.
3404if test "${enable_ole+set}" = set; then
3405 enableval="$enable_ole"
3406
3407 if test "$enableval" = yes; then
3408 ac_cv_use_ole='wxUSE_OLE=yes'
3409 else
3410 ac_cv_use_ole='wxUSE_OLE=no'
3411 fi
3412
3413else
3414
3415 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3416 if test "x$LINE" != x ; then
3417 eval "DEFAULT_$LINE"
3418 else
3419 no_cache=1
3420 fi
3421
3422 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3423
3424fi
3425
3426
3427 eval "$ac_cv_use_ole"
3428 if test "$no_cache" != 1; then
3429 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3430 fi
3431
3432 if test "$wxUSE_OLE" = yes; then
3433 echo "$ac_t""yes" 1>&6
3434 else
3435 echo "$ac_t""no" 1>&6
3436 fi
3437
3438
3439 enablestring=
3440 echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
3441echo "configure:3442: checking for --${enablestring:-enable}-dataobj" >&5
3442 no_cache=0
3443 # Check whether --enable-dataobj or --disable-dataobj was given.
3444if test "${enable_dataobj+set}" = set; then
3445 enableval="$enable_dataobj"
3446
3447 if test "$enableval" = yes; then
3448 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3449 else
3450 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3451 fi
3452
3453else
3454
3455 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3456 if test "x$LINE" != x ; then
3457 eval "DEFAULT_$LINE"
3458 else
3459 no_cache=1
3460 fi
3461
3462 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3463
3464fi
3465
3466
3467 eval "$ac_cv_use_dataobj"
3468 if test "$no_cache" != 1; then
3469 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3470 fi
3471
3472 if test "$wxUSE_DATAOBJ" = yes; then
3473 echo "$ac_t""yes" 1>&6
3474 else
3475 echo "$ac_t""no" 1>&6
3476 fi
3477
3478
3479
3480 enablestring=
3481 echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
3482echo "configure:3483: checking for --${enablestring:-enable}-ipc" >&5
3483 no_cache=0
3484 # Check whether --enable-ipc or --disable-ipc was given.
3485if test "${enable_ipc+set}" = set; then
3486 enableval="$enable_ipc"
3487
3488 if test "$enableval" = yes; then
3489 ac_cv_use_ipc='wxUSE_IPC=yes'
3490 else
3491 ac_cv_use_ipc='wxUSE_IPC=no'
3492 fi
3493
3494else
3495
3496 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3497 if test "x$LINE" != x ; then
3498 eval "DEFAULT_$LINE"
3499 else
3500 no_cache=1
3501 fi
3502
3503 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3504
3505fi
3506
3507
3508 eval "$ac_cv_use_ipc"
3509 if test "$no_cache" != 1; then
3510 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3511 fi
3512
3513 if test "$wxUSE_IPC" = yes; then
3514 echo "$ac_t""yes" 1>&6
3515 else
3516 echo "$ac_t""no" 1>&6
3517 fi
3518
3519
3520
3521 enablestring=
3522 echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
3523echo "configure:3524: checking for --${enablestring:-enable}-cmdline" >&5
3524 no_cache=0
3525 # Check whether --enable-cmdline or --disable-cmdline was given.
3526if test "${enable_cmdline+set}" = set; then
3527 enableval="$enable_cmdline"
3528
3529 if test "$enableval" = yes; then
3530 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3531 else
3532 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3533 fi
3534
3535else
3536
3537 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3538 if test "x$LINE" != x ; then
3539 eval "DEFAULT_$LINE"
3540 else
3541 no_cache=1
3542 fi
3543
3544 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3545
3546fi
3547
3548
3549 eval "$ac_cv_use_cmdline"
3550 if test "$no_cache" != 1; then
3551 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3552 fi
3553
3554 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3555 echo "$ac_t""yes" 1>&6
3556 else
3557 echo "$ac_t""no" 1>&6
3558 fi
3559
3560
3561 enablestring=
3562 echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
3563echo "configure:3564: checking for --${enablestring:-enable}-datetime" >&5
3564 no_cache=0
3565 # Check whether --enable-datetime or --disable-datetime was given.
3566if test "${enable_datetime+set}" = set; then
3567 enableval="$enable_datetime"
3568
3569 if test "$enableval" = yes; then
3570 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3571 else
3572 ac_cv_use_datetime='wxUSE_DATETIME=no'
3573 fi
3574
3575else
3576
3577 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3578 if test "x$LINE" != x ; then
3579 eval "DEFAULT_$LINE"
3580 else
3581 no_cache=1
3582 fi
3583
3584 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3585
3586fi
3587
3588
3589 eval "$ac_cv_use_datetime"
3590 if test "$no_cache" != 1; then
3591 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3592 fi
3593
3594 if test "$wxUSE_DATETIME" = yes; then
3595 echo "$ac_t""yes" 1>&6
3596 else
3597 echo "$ac_t""no" 1>&6
3598 fi
3599
3600
3601 enablestring=
3602 echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
3603echo "configure:3604: checking for --${enablestring:-enable}-stopwatch" >&5
3604 no_cache=0
3605 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3606if test "${enable_stopwatch+set}" = set; then
3607 enableval="$enable_stopwatch"
3608
3609 if test "$enableval" = yes; then
3610 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3611 else
3612 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3613 fi
3614
3615else
3616
3617 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3618 if test "x$LINE" != x ; then
3619 eval "DEFAULT_$LINE"
3620 else
3621 no_cache=1
3622 fi
3623
3624 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3625
3626fi
3627
3628
3629 eval "$ac_cv_use_stopwatch"
3630 if test "$no_cache" != 1; then
3631 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3632 fi
3633
3634 if test "$wxUSE_STOPWATCH" = yes; then
3635 echo "$ac_t""yes" 1>&6
3636 else
3637 echo "$ac_t""no" 1>&6
3638 fi
3639
3640
3641 enablestring=
3642 echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
3643echo "configure:3644: checking for --${enablestring:-enable}-dialupman" >&5
3644 no_cache=0
3645 # Check whether --enable-dialupman or --disable-dialupman was given.
3646if test "${enable_dialupman+set}" = set; then
3647 enableval="$enable_dialupman"
3648
3649 if test "$enableval" = yes; then
3650 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3651 else
3652 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3653 fi
3654
3655else
3656
3657 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3658 if test "x$LINE" != x ; then
3659 eval "DEFAULT_$LINE"
3660 else
3661 no_cache=1
3662 fi
3663
3664 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3665
3666fi
3667
3668
3669 eval "$ac_cv_use_dialupman"
3670 if test "$no_cache" != 1; then
3671 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3672 fi
3673
3674 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3675 echo "$ac_t""yes" 1>&6
3676 else
3677 echo "$ac_t""no" 1>&6
3678 fi
3679
3680
3681 enablestring=
3682 echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
3683echo "configure:3684: checking for --${enablestring:-enable}-apple_ieee" >&5
3684 no_cache=0
3685 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3686if test "${enable_apple_ieee+set}" = set; then
3687 enableval="$enable_apple_ieee"
3688
3689 if test "$enableval" = yes; then
3690 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3691 else
3692 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3693 fi
3694
3695else
3696
3697 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3698 if test "x$LINE" != x ; then
3699 eval "DEFAULT_$LINE"
3700 else
3701 no_cache=1
3702 fi
3703
3704 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3705
3706fi
3707
3708
3709 eval "$ac_cv_use_apple_ieee"
3710 if test "$no_cache" != 1; then
3711 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3712 fi
3713
3714 if test "$wxUSE_APPLE_IEEE" = yes; then
3715 echo "$ac_t""yes" 1>&6
3716 else
3717 echo "$ac_t""no" 1>&6
3718 fi
3719
3720
3721 enablestring=
3722 echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
3723echo "configure:3724: checking for --${enablestring:-enable}-timer" >&5
3724 no_cache=0
3725 # Check whether --enable-timer or --disable-timer was given.
3726if test "${enable_timer+set}" = set; then
3727 enableval="$enable_timer"
3728
3729 if test "$enableval" = yes; then
3730 ac_cv_use_timer='wxUSE_TIMER=yes'
3731 else
3732 ac_cv_use_timer='wxUSE_TIMER=no'
3733 fi
3734
3735else
3736
3737 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3738 if test "x$LINE" != x ; then
3739 eval "DEFAULT_$LINE"
3740 else
3741 no_cache=1
3742 fi
3743
3744 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3745
3746fi
3747
3748
3749 eval "$ac_cv_use_timer"
3750 if test "$no_cache" != 1; then
3751 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3752 fi
3753
3754 if test "$wxUSE_TIMER" = yes; then
3755 echo "$ac_t""yes" 1>&6
3756 else
3757 echo "$ac_t""no" 1>&6
3758 fi
3759
3760
3761 enablestring=
3762 echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
3763echo "configure:3764: checking for --${enablestring:-enable}-wave" >&5
3764 no_cache=0
3765 # Check whether --enable-wave or --disable-wave was given.
3766if test "${enable_wave+set}" = set; then
3767 enableval="$enable_wave"
3768
3769 if test "$enableval" = yes; then
3770 ac_cv_use_wave='wxUSE_WAVE=yes'
3771 else
3772 ac_cv_use_wave='wxUSE_WAVE=no'
3773 fi
3774
3775else
3776
3777 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3778 if test "x$LINE" != x ; then
3779 eval "DEFAULT_$LINE"
3780 else
3781 no_cache=1
3782 fi
3783
3784 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3785
3786fi
3787
3788
3789 eval "$ac_cv_use_wave"
3790 if test "$no_cache" != 1; then
3791 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3792 fi
3793
3794 if test "$wxUSE_WAVE" = yes; then
3795 echo "$ac_t""yes" 1>&6
3796 else
3797 echo "$ac_t""no" 1>&6
3798 fi
3799
3800
3801 enablestring=
3802 echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
3803echo "configure:3804: checking for --${enablestring:-enable}-fraction" >&5
3804 no_cache=0
3805 # Check whether --enable-fraction or --disable-fraction was given.
3806if test "${enable_fraction+set}" = set; then
3807 enableval="$enable_fraction"
3808
3809 if test "$enableval" = yes; then
3810 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3811 else
3812 ac_cv_use_fraction='wxUSE_FRACTION=no'
3813 fi
3814
3815else
3816
3817 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3818 if test "x$LINE" != x ; then
3819 eval "DEFAULT_$LINE"
3820 else
3821 no_cache=1
3822 fi
3823
3824 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3825
3826fi
3827
3828
3829 eval "$ac_cv_use_fraction"
3830 if test "$no_cache" != 1; then
3831 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3832 fi
3833
3834 if test "$wxUSE_FRACTION" = yes; then
3835 echo "$ac_t""yes" 1>&6
3836 else
3837 echo "$ac_t""no" 1>&6
3838 fi
3839
3840
3841 enablestring=
3842 echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
3843echo "configure:3844: checking for --${enablestring:-enable}-dynlib" >&5
3844 no_cache=0
3845 # Check whether --enable-dynlib or --disable-dynlib was given.
3846if test "${enable_dynlib+set}" = set; then
3847 enableval="$enable_dynlib"
3848
3849 if test "$enableval" = yes; then
3850 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3851 else
3852 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3853 fi
3854
3855else
3856
3857 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3858 if test "x$LINE" != x ; then
3859 eval "DEFAULT_$LINE"
3860 else
3861 no_cache=1
3862 fi
3863
3864 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3865
3866fi
3867
3868
3869 eval "$ac_cv_use_dynlib"
3870 if test "$no_cache" != 1; then
3871 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3872 fi
3873
3874 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3875 echo "$ac_t""yes" 1>&6
3876 else
3877 echo "$ac_t""no" 1>&6
3878 fi
3879
3880
3881 enablestring=
3882 echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
3883echo "configure:3884: checking for --${enablestring:-enable}-dynamicloader" >&5
3884 no_cache=0
3885 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3886if test "${enable_dynamicloader+set}" = set; then
3887 enableval="$enable_dynamicloader"
3888
3889 if test "$enableval" = yes; then
3890 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3891 else
3892 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3893 fi
3894
3895else
3896
3897 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3898 if test "x$LINE" != x ; then
3899 eval "DEFAULT_$LINE"
3900 else
3901 no_cache=1
3902 fi
3903
3904 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3905
3906fi
3907
3908
3909 eval "$ac_cv_use_dynamicloader"
3910 if test "$no_cache" != 1; then
3911 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3912 fi
3913
3914 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3915 echo "$ac_t""yes" 1>&6
3916 else
3917 echo "$ac_t""no" 1>&6
3918 fi
3919
3920
3921 enablestring=
3922 echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
3923echo "configure:3924: checking for --${enablestring:-enable}-longlong" >&5
3924 no_cache=0
3925 # Check whether --enable-longlong or --disable-longlong was given.
3926if test "${enable_longlong+set}" = set; then
3927 enableval="$enable_longlong"
3928
3929 if test "$enableval" = yes; then
3930 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3931 else
3932 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3933 fi
3934
3935else
3936
3937 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3938 if test "x$LINE" != x ; then
3939 eval "DEFAULT_$LINE"
3940 else
3941 no_cache=1
3942 fi
3943
3944 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3945
3946fi
3947
3948
3949 eval "$ac_cv_use_longlong"
3950 if test "$no_cache" != 1; then
3951 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3952 fi
3953
3954 if test "$wxUSE_LONGLONG" = yes; then
3955 echo "$ac_t""yes" 1>&6
3956 else
3957 echo "$ac_t""no" 1>&6
3958 fi
3959
3960
3961 enablestring=
3962 echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
3963echo "configure:3964: checking for --${enablestring:-enable}-geometry" >&5
3964 no_cache=0
3965 # Check whether --enable-geometry or --disable-geometry was given.
3966if test "${enable_geometry+set}" = set; then
3967 enableval="$enable_geometry"
3968
3969 if test "$enableval" = yes; then
3970 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3971 else
3972 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3973 fi
3974
3975else
3976
3977 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3978 if test "x$LINE" != x ; then
3979 eval "DEFAULT_$LINE"
3980 else
3981 no_cache=1
3982 fi
3983
3984 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3985
3986fi
3987
3988
3989 eval "$ac_cv_use_geometry"
3990 if test "$no_cache" != 1; then
3991 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3992 fi
3993
3994 if test "$wxUSE_GEOMETRY" = yes; then
3995 echo "$ac_t""yes" 1>&6
3996 else
3997 echo "$ac_t""no" 1>&6
3998 fi
3999
4000
4001 enablestring=
4002 echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
4003echo "configure:4004: checking for --${enablestring:-enable}-log" >&5
4004 no_cache=0
4005 # Check whether --enable-log or --disable-log was given.
4006if test "${enable_log+set}" = set; then
4007 enableval="$enable_log"
4008
4009 if test "$enableval" = yes; then
4010 ac_cv_use_log='wxUSE_LOG=yes'
4011 else
4012 ac_cv_use_log='wxUSE_LOG=no'
4013 fi
4014
4015else
4016
4017 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4018 if test "x$LINE" != x ; then
4019 eval "DEFAULT_$LINE"
4020 else
4021 no_cache=1
4022 fi
4023
4024 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4025
4026fi
4027
4028
4029 eval "$ac_cv_use_log"
4030 if test "$no_cache" != 1; then
4031 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4032 fi
4033
4034 if test "$wxUSE_LOG" = yes; then
4035 echo "$ac_t""yes" 1>&6
4036 else
4037 echo "$ac_t""no" 1>&6
4038 fi
4039
4040
4041 enablestring=
4042 echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
4043echo "configure:4044: checking for --${enablestring:-enable}-streams" >&5
4044 no_cache=0
4045 # Check whether --enable-streams or --disable-streams was given.
4046if test "${enable_streams+set}" = set; then
4047 enableval="$enable_streams"
4048
4049 if test "$enableval" = yes; then
4050 ac_cv_use_streams='wxUSE_STREAMS=yes'
4051 else
4052 ac_cv_use_streams='wxUSE_STREAMS=no'
4053 fi
4054
4055else
4056
4057 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4058 if test "x$LINE" != x ; then
4059 eval "DEFAULT_$LINE"
4060 else
4061 no_cache=1
4062 fi
4063
4064 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
4065
4066fi
4067
4068
4069 eval "$ac_cv_use_streams"
4070 if test "$no_cache" != 1; then
4071 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4072 fi
4073
4074 if test "$wxUSE_STREAMS" = yes; then
4075 echo "$ac_t""yes" 1>&6
4076 else
4077 echo "$ac_t""no" 1>&6
4078 fi
4079
4080
4081 enablestring=
4082 echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
4083echo "configure:4084: checking for --${enablestring:-enable}-file" >&5
4084 no_cache=0
4085 # Check whether --enable-file or --disable-file was given.
4086if test "${enable_file+set}" = set; then
4087 enableval="$enable_file"
4088
4089 if test "$enableval" = yes; then
4090 ac_cv_use_file='wxUSE_FILE=yes'
4091 else
4092 ac_cv_use_file='wxUSE_FILE=no'
4093 fi
4094
4095else
4096
4097 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4098 if test "x$LINE" != x ; then
4099 eval "DEFAULT_$LINE"
4100 else
4101 no_cache=1
4102 fi
4103
4104 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4105
4106fi
4107
4108
4109 eval "$ac_cv_use_file"
4110 if test "$no_cache" != 1; then
4111 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4112 fi
4113
4114 if test "$wxUSE_FILE" = yes; then
4115 echo "$ac_t""yes" 1>&6
4116 else
4117 echo "$ac_t""no" 1>&6
4118 fi
4119
4120
4121 enablestring=
4122 echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
4123echo "configure:4124: checking for --${enablestring:-enable}-ffile" >&5
4124 no_cache=0
4125 # Check whether --enable-ffile or --disable-ffile was given.
4126if test "${enable_ffile+set}" = set; then
4127 enableval="$enable_ffile"
4128
4129 if test "$enableval" = yes; then
4130 ac_cv_use_ffile='wxUSE_FFILE=yes'
4131 else
4132 ac_cv_use_ffile='wxUSE_FFILE=no'
4133 fi
4134
4135else
4136
4137 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4138 if test "x$LINE" != x ; then
4139 eval "DEFAULT_$LINE"
4140 else
4141 no_cache=1
4142 fi
4143
4144 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4145
4146fi
4147
4148
4149 eval "$ac_cv_use_ffile"
4150 if test "$no_cache" != 1; then
4151 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4152 fi
4153
4154 if test "$wxUSE_FFILE" = yes; then
4155 echo "$ac_t""yes" 1>&6
4156 else
4157 echo "$ac_t""no" 1>&6
4158 fi
4159
4160
4161 enablestring=
4162 echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
4163echo "configure:4164: checking for --${enablestring:-enable}-textbuf" >&5
4164 no_cache=0
4165 # Check whether --enable-textbuf or --disable-textbuf was given.
4166if test "${enable_textbuf+set}" = set; then
4167 enableval="$enable_textbuf"
4168
4169 if test "$enableval" = yes; then
4170 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4171 else
4172 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4173 fi
4174
4175else
4176
4177 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4178 if test "x$LINE" != x ; then
4179 eval "DEFAULT_$LINE"
4180 else
4181 no_cache=1
4182 fi
4183
4184 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4185
4186fi
4187
4188
4189 eval "$ac_cv_use_textbuf"
4190 if test "$no_cache" != 1; then
4191 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4192 fi
4193
4194 if test "$wxUSE_TEXTBUFFER" = yes; then
4195 echo "$ac_t""yes" 1>&6
4196 else
4197 echo "$ac_t""no" 1>&6
4198 fi
4199
4200
4201 enablestring=
4202 echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
4203echo "configure:4204: checking for --${enablestring:-enable}-textfile" >&5
4204 no_cache=0
4205 # Check whether --enable-textfile or --disable-textfile was given.
4206if test "${enable_textfile+set}" = set; then
4207 enableval="$enable_textfile"
4208
4209 if test "$enableval" = yes; then
4210 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4211 else
4212 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4213 fi
4214
4215else
4216
4217 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4218 if test "x$LINE" != x ; then
4219 eval "DEFAULT_$LINE"
4220 else
4221 no_cache=1
4222 fi
4223
4224 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4225
4226fi
4227
4228
4229 eval "$ac_cv_use_textfile"
4230 if test "$no_cache" != 1; then
4231 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4232 fi
4233
4234 if test "$wxUSE_TEXTFILE" = yes; then
4235 echo "$ac_t""yes" 1>&6
4236 else
4237 echo "$ac_t""no" 1>&6
4238 fi
4239
4240
4241 enablestring=
4242 echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
4243echo "configure:4244: checking for --${enablestring:-enable}-fontmap" >&5
4244 no_cache=0
4245 # Check whether --enable-fontmap or --disable-fontmap was given.
4246if test "${enable_fontmap+set}" = set; then
4247 enableval="$enable_fontmap"
4248
4249 if test "$enableval" = yes; then
4250 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4251 else
4252 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4253 fi
4254
4255else
4256
4257 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4258 if test "x$LINE" != x ; then
4259 eval "DEFAULT_$LINE"
4260 else
4261 no_cache=1
4262 fi
4263
4264 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4265
4266fi
4267
4268
4269 eval "$ac_cv_use_fontmap"
4270 if test "$no_cache" != 1; then
4271 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4272 fi
4273
4274 if test "$wxUSE_FONTMAP" = yes; then
4275 echo "$ac_t""yes" 1>&6
4276 else
4277 echo "$ac_t""no" 1>&6
4278 fi
4279
4280
4281 enablestring=
4282 echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
4283echo "configure:4284: checking for --${enablestring:-enable}-unicode" >&5
4284 no_cache=0
4285 # Check whether --enable-unicode or --disable-unicode was given.
4286if test "${enable_unicode+set}" = set; then
4287 enableval="$enable_unicode"
4288
4289 if test "$enableval" = yes; then
4290 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4291 else
4292 ac_cv_use_unicode='wxUSE_UNICODE=no'
4293 fi
4294
4295else
4296
4297 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4298 if test "x$LINE" != x ; then
4299 eval "DEFAULT_$LINE"
4300 else
4301 no_cache=1
4302 fi
4303
4304 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4305
4306fi
4307
4308
4309 eval "$ac_cv_use_unicode"
4310 if test "$no_cache" != 1; then
4311 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4312 fi
4313
4314 if test "$wxUSE_UNICODE" = yes; then
4315 echo "$ac_t""yes" 1>&6
4316 else
4317 echo "$ac_t""no" 1>&6
4318 fi
4319
4320
4321 enablestring=
4322 echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
4323echo "configure:4324: checking for --${enablestring:-enable}-mslu" >&5
4324 no_cache=0
4325 # Check whether --enable-mslu or --disable-mslu was given.
4326if test "${enable_mslu+set}" = set; then
4327 enableval="$enable_mslu"
4328
4329 if test "$enableval" = yes; then
4330 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4331 else
4332 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4333 fi
4334
4335else
4336
4337 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4338 if test "x$LINE" != x ; then
4339 eval "DEFAULT_$LINE"
4340 else
4341 no_cache=1
4342 fi
4343
4344 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4345
4346fi
4347
4348
4349 eval "$ac_cv_use_mslu"
4350 if test "$no_cache" != 1; then
4351 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4352 fi
4353
4354 if test "$wxUSE_UNICODE_MSLU" = yes; then
4355 echo "$ac_t""yes" 1>&6
4356 else
4357 echo "$ac_t""no" 1>&6
4358 fi
4359
4360
4361 enablestring=
4362 echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
4363echo "configure:4364: checking for --${enablestring:-enable}-wxprintfv" >&5
4364 no_cache=0
4365 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4366if test "${enable_wxprintfv+set}" = set; then
4367 enableval="$enable_wxprintfv"
4368
4369 if test "$enableval" = yes; then
4370 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4371 else
4372 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4373 fi
4374
4375else
4376
4377 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4378 if test "x$LINE" != x ; then
4379 eval "DEFAULT_$LINE"
4380 else
4381 no_cache=1
4382 fi
4383
4384 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4385
4386fi
4387
4388
4389 eval "$ac_cv_use_wxprintfv"
4390 if test "$no_cache" != 1; then
4391 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4392 fi
4393
4394 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4395 echo "$ac_t""yes" 1>&6
4396 else
4397 echo "$ac_t""no" 1>&6
4398 fi
4399
4400
4401 enablestring=
4402 echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
4403echo "configure:4404: checking for --${enablestring:-enable}-std_iostreams" >&5
4404 no_cache=0
4405 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4406if test "${enable_std_iostreams+set}" = set; then
4407 enableval="$enable_std_iostreams"
4408
4409 if test "$enableval" = yes; then
4410 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4411 else
4412 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4413 fi
4414
4415else
4416
4417 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4418 if test "x$LINE" != x ; then
4419 eval "DEFAULT_$LINE"
4420 else
4421 no_cache=1
4422 fi
4423
4424 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4425
4426fi
4427
4428
4429 eval "$ac_cv_use_std_iostreams"
4430 if test "$no_cache" != 1; then
4431 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4432 fi
4433
4434 if test "$wxUSE_STD_IOSTREAM" = yes; then
4435 echo "$ac_t""yes" 1>&6
4436 else
4437 echo "$ac_t""no" 1>&6
4438 fi
4439
4440
4441 enablestring=
4442 echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
4443echo "configure:4444: checking for --${enablestring:-enable}-filesystem" >&5
4444 no_cache=0
4445 # Check whether --enable-filesystem or --disable-filesystem was given.
4446if test "${enable_filesystem+set}" = set; then
4447 enableval="$enable_filesystem"
4448
4449 if test "$enableval" = yes; then
4450 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4451 else
4452 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4453 fi
4454
4455else
4456
4457 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4458 if test "x$LINE" != x ; then
4459 eval "DEFAULT_$LINE"
4460 else
4461 no_cache=1
4462 fi
4463
4464 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4465
4466fi
4467
4468
4469 eval "$ac_cv_use_filesystem"
4470 if test "$no_cache" != 1; then
4471 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4472 fi
4473
4474 if test "$wxUSE_FILESYSTEM" = yes; then
4475 echo "$ac_t""yes" 1>&6
4476 else
4477 echo "$ac_t""no" 1>&6
4478 fi
4479
4480
4481 enablestring=
4482 echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
4483echo "configure:4484: checking for --${enablestring:-enable}-fs_inet" >&5
4484 no_cache=0
4485 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4486if test "${enable_fs_inet+set}" = set; then
4487 enableval="$enable_fs_inet"
4488
4489 if test "$enableval" = yes; then
4490 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4491 else
4492 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4493 fi
4494
4495else
4496
4497 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4498 if test "x$LINE" != x ; then
4499 eval "DEFAULT_$LINE"
4500 else
4501 no_cache=1
4502 fi
4503
4504 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4505
4506fi
4507
4508
4509 eval "$ac_cv_use_fs_inet"
4510 if test "$no_cache" != 1; then
4511 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4512 fi
4513
4514 if test "$wxUSE_FS_INET" = yes; then
4515 echo "$ac_t""yes" 1>&6
4516 else
4517 echo "$ac_t""no" 1>&6
4518 fi
4519
4520
4521 enablestring=
4522 echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
4523echo "configure:4524: checking for --${enablestring:-enable}-fs_zip" >&5
4524 no_cache=0
4525 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4526if test "${enable_fs_zip+set}" = set; then
4527 enableval="$enable_fs_zip"
4528
4529 if test "$enableval" = yes; then
4530 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4531 else
4532 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4533 fi
4534
4535else
4536
4537 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4538 if test "x$LINE" != x ; then
4539 eval "DEFAULT_$LINE"
4540 else
4541 no_cache=1
4542 fi
4543
4544 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4545
4546fi
4547
4548
4549 eval "$ac_cv_use_fs_zip"
4550 if test "$no_cache" != 1; then
4551 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4552 fi
4553
4554 if test "$wxUSE_FS_ZIP" = yes; then
4555 echo "$ac_t""yes" 1>&6
4556 else
4557 echo "$ac_t""no" 1>&6
4558 fi
4559
4560
4561 enablestring=
4562 echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
4563echo "configure:4564: checking for --${enablestring:-enable}-zipstream" >&5
4564 no_cache=0
4565 # Check whether --enable-zipstream or --disable-zipstream was given.
4566if test "${enable_zipstream+set}" = set; then
4567 enableval="$enable_zipstream"
4568
4569 if test "$enableval" = yes; then
4570 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4571 else
4572 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4573 fi
4574
4575else
4576
4577 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4578 if test "x$LINE" != x ; then
4579 eval "DEFAULT_$LINE"
4580 else
4581 no_cache=1
4582 fi
4583
4584 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4585
4586fi
4587
4588
4589 eval "$ac_cv_use_zipstream"
4590 if test "$no_cache" != 1; then
4591 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4592 fi
4593
4594 if test "$wxUSE_ZIPSTREAM" = yes; then
4595 echo "$ac_t""yes" 1>&6
4596 else
4597 echo "$ac_t""no" 1>&6
4598 fi
4599
4600
4601
4602 enablestring=
4603 echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
4604echo "configure:4605: checking for --${enablestring:-enable}-catch_segvs" >&5
4605 no_cache=0
4606 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4607if test "${enable_catch_segvs+set}" = set; then
4608 enableval="$enable_catch_segvs"
4609
4610 if test "$enableval" = yes; then
4611 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4612 else
4613 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4614 fi
4615
4616else
4617
4618 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4619 if test "x$LINE" != x ; then
4620 eval "DEFAULT_$LINE"
4621 else
4622 no_cache=1
4623 fi
4624
4625 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4626
4627fi
4628
4629
4630 eval "$ac_cv_use_catch_segvs"
4631 if test "$no_cache" != 1; then
4632 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4633 fi
4634
4635 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4636 echo "$ac_t""yes" 1>&6
4637 else
4638 echo "$ac_t""no" 1>&6
4639 fi
4640
4641
4642 enablestring=
4643 echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
4644echo "configure:4645: checking for --${enablestring:-enable}-snglinst" >&5
4645 no_cache=0
4646 # Check whether --enable-snglinst or --disable-snglinst was given.
4647if test "${enable_snglinst+set}" = set; then
4648 enableval="$enable_snglinst"
4649
4650 if test "$enableval" = yes; then
4651 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4652 else
4653 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4654 fi
4655
4656else
4657
4658 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4659 if test "x$LINE" != x ; then
4660 eval "DEFAULT_$LINE"
4661 else
4662 no_cache=1
4663 fi
4664
4665 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4666
4667fi
4668
4669
4670 eval "$ac_cv_use_snglinst"
4671 if test "$no_cache" != 1; then
4672 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4673 fi
4674
4675 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4676 echo "$ac_t""yes" 1>&6
4677 else
4678 echo "$ac_t""no" 1>&6
4679 fi
4680
4681
4682
4683 enablestring=
4684 echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
4685echo "configure:4686: checking for --${enablestring:-enable}-mimetype" >&5
4686 no_cache=0
4687 # Check whether --enable-mimetype or --disable-mimetype was given.
4688if test "${enable_mimetype+set}" = set; then
4689 enableval="$enable_mimetype"
4690
4691 if test "$enableval" = yes; then
4692 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4693 else
4694 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4695 fi
4696
4697else
4698
4699 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4700 if test "x$LINE" != x ; then
4701 eval "DEFAULT_$LINE"
4702 else
4703 no_cache=1
4704 fi
4705
4706 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4707
4708fi
4709
4710
4711 eval "$ac_cv_use_mimetype"
4712 if test "$no_cache" != 1; then
4713 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4714 fi
4715
4716 if test "$wxUSE_MIMETYPE" = yes; then
4717 echo "$ac_t""yes" 1>&6
4718 else
4719 echo "$ac_t""no" 1>&6
4720 fi
4721
4722
4723 enablestring=
4724 echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
4725echo "configure:4726: checking for --${enablestring:-enable}-system_options" >&5
4726 no_cache=0
4727 # Check whether --enable-system_options or --disable-system_options was given.
4728if test "${enable_system_options+set}" = set; then
4729 enableval="$enable_system_options"
4730
4731 if test "$enableval" = yes; then
4732 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4733 else
4734 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4735 fi
4736
4737else
4738
4739 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4740 if test "x$LINE" != x ; then
4741 eval "DEFAULT_$LINE"
4742 else
4743 no_cache=1
4744 fi
4745
4746 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4747
4748fi
4749
4750
4751 eval "$ac_cv_use_system_options"
4752 if test "$no_cache" != 1; then
4753 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4754 fi
4755
4756 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4757 echo "$ac_t""yes" 1>&6
4758 else
4759 echo "$ac_t""no" 1>&6
4760 fi
4761
4762
4763
4764 enablestring=
4765 echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
4766echo "configure:4767: checking for --${enablestring:-enable}-url" >&5
4767 no_cache=0
4768 # Check whether --enable-url or --disable-url was given.
4769if test "${enable_url+set}" = set; then
4770 enableval="$enable_url"
4771
4772 if test "$enableval" = yes; then
4773 ac_cv_use_url='wxUSE_URL=yes'
4774 else
4775 ac_cv_use_url='wxUSE_URL=no'
4776 fi
4777
4778else
4779
4780 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4781 if test "x$LINE" != x ; then
4782 eval "DEFAULT_$LINE"
4783 else
4784 no_cache=1
4785 fi
4786
4787 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4788
4789fi
4790
4791
4792 eval "$ac_cv_use_url"
4793 if test "$no_cache" != 1; then
4794 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4795 fi
4796
4797 if test "$wxUSE_URL" = yes; then
4798 echo "$ac_t""yes" 1>&6
4799 else
4800 echo "$ac_t""no" 1>&6
4801 fi
4802
4803
4804 enablestring=
4805 echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
4806echo "configure:4807: checking for --${enablestring:-enable}-protocol" >&5
4807 no_cache=0
4808 # Check whether --enable-protocol or --disable-protocol was given.
4809if test "${enable_protocol+set}" = set; then
4810 enableval="$enable_protocol"
4811
4812 if test "$enableval" = yes; then
4813 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4814 else
4815 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4816 fi
4817
4818else
4819
4820 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4821 if test "x$LINE" != x ; then
4822 eval "DEFAULT_$LINE"
4823 else
4824 no_cache=1
4825 fi
4826
4827 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4828
4829fi
4830
4831
4832 eval "$ac_cv_use_protocol"
4833 if test "$no_cache" != 1; then
4834 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4835 fi
4836
4837 if test "$wxUSE_PROTOCOL" = yes; then
4838 echo "$ac_t""yes" 1>&6
4839 else
4840 echo "$ac_t""no" 1>&6
4841 fi
4842
4843
4844 enablestring=
4845 echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
4846echo "configure:4847: checking for --${enablestring:-enable}-protocol_http" >&5
4847 no_cache=0
4848 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4849if test "${enable_protocol_http+set}" = set; then
4850 enableval="$enable_protocol_http"
4851
4852 if test "$enableval" = yes; then
4853 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4854 else
4855 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4856 fi
4857
4858else
4859
4860 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4861 if test "x$LINE" != x ; then
4862 eval "DEFAULT_$LINE"
4863 else
4864 no_cache=1
4865 fi
4866
4867 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4868
4869fi
4870
4871
4872 eval "$ac_cv_use_protocol_http"
4873 if test "$no_cache" != 1; then
4874 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4875 fi
4876
4877 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4878 echo "$ac_t""yes" 1>&6
4879 else
4880 echo "$ac_t""no" 1>&6
4881 fi
4882
4883
4884 enablestring=
4885 echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
4886echo "configure:4887: checking for --${enablestring:-enable}-protocol_ftp" >&5
4887 no_cache=0
4888 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4889if test "${enable_protocol_ftp+set}" = set; then
4890 enableval="$enable_protocol_ftp"
4891
4892 if test "$enableval" = yes; then
4893 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4894 else
4895 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4896 fi
4897
4898else
4899
4900 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4901 if test "x$LINE" != x ; then
4902 eval "DEFAULT_$LINE"
4903 else
4904 no_cache=1
4905 fi
4906
4907 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4908
4909fi
4910
4911
4912 eval "$ac_cv_use_protocol_ftp"
4913 if test "$no_cache" != 1; then
4914 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4915 fi
4916
4917 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4918 echo "$ac_t""yes" 1>&6
4919 else
4920 echo "$ac_t""no" 1>&6
4921 fi
4922
4923
4924 enablestring=
4925 echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
4926echo "configure:4927: checking for --${enablestring:-enable}-protocol_file" >&5
4927 no_cache=0
4928 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4929if test "${enable_protocol_file+set}" = set; then
4930 enableval="$enable_protocol_file"
4931
4932 if test "$enableval" = yes; then
4933 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4934 else
4935 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4936 fi
4937
4938else
4939
4940 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4941 if test "x$LINE" != x ; then
4942 eval "DEFAULT_$LINE"
4943 else
4944 no_cache=1
4945 fi
4946
4947 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4948
4949fi
4950
4951
4952 eval "$ac_cv_use_protocol_file"
4953 if test "$no_cache" != 1; then
4954 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4955 fi
4956
4957 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4958 echo "$ac_t""yes" 1>&6
4959 else
4960 echo "$ac_t""no" 1>&6
4961 fi
4962
4963
4964
4965
4966
4967 enablestring=
4968 echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
4969echo "configure:4970: checking for --${enablestring:-enable}-threads" >&5
4970 no_cache=0
4971 # Check whether --enable-threads or --disable-threads was given.
4972if test "${enable_threads+set}" = set; then
4973 enableval="$enable_threads"
4974
4975 if test "$enableval" = yes; then
4976 ac_cv_use_threads='wxUSE_THREADS=yes'
4977 else
4978 ac_cv_use_threads='wxUSE_THREADS=no'
4979 fi
4980
4981else
4982
4983 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4984 if test "x$LINE" != x ; then
4985 eval "DEFAULT_$LINE"
4986 else
4987 no_cache=1
4988 fi
4989
4990 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4991
4992fi
4993
4994
4995 eval "$ac_cv_use_threads"
4996 if test "$no_cache" != 1; then
4997 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4998 fi
4999
5000 if test "$wxUSE_THREADS" = yes; then
5001 echo "$ac_t""yes" 1>&6
5002 else
5003 echo "$ac_t""no" 1>&6
5004 fi
5005
5006
5007if test "$wxUSE_GUI" = "yes"; then
5008
5009
5010
5011 enablestring=
5012 echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
5013echo "configure:5014: checking for --${enablestring:-enable}-docview" >&5
5014 no_cache=0
5015 # Check whether --enable-docview or --disable-docview was given.
5016if test "${enable_docview+set}" = set; then
5017 enableval="$enable_docview"
5018
5019 if test "$enableval" = yes; then
5020 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5021 else
5022 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5023 fi
5024
5025else
5026
5027 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5028 if test "x$LINE" != x ; then
5029 eval "DEFAULT_$LINE"
5030 else
5031 no_cache=1
5032 fi
5033
5034 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5035
5036fi
5037
5038
5039 eval "$ac_cv_use_docview"
5040 if test "$no_cache" != 1; then
5041 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5042 fi
5043
5044 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5045 echo "$ac_t""yes" 1>&6
5046 else
5047 echo "$ac_t""no" 1>&6
5048 fi
5049
5050
5051 enablestring=
5052 echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
5053echo "configure:5054: checking for --${enablestring:-enable}-help" >&5
5054 no_cache=0
5055 # Check whether --enable-help or --disable-help was given.
5056if test "${enable_help+set}" = set; then
5057 enableval="$enable_help"
5058
5059 if test "$enableval" = yes; then
5060 ac_cv_use_help='wxUSE_HELP=yes'
5061 else
5062 ac_cv_use_help='wxUSE_HELP=no'
5063 fi
5064
5065else
5066
5067 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5068 if test "x$LINE" != x ; then
5069 eval "DEFAULT_$LINE"
5070 else
5071 no_cache=1
5072 fi
5073
5074 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5075
5076fi
5077
5078
5079 eval "$ac_cv_use_help"
5080 if test "$no_cache" != 1; then
5081 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5082 fi
5083
5084 if test "$wxUSE_HELP" = yes; then
5085 echo "$ac_t""yes" 1>&6
5086 else
5087 echo "$ac_t""no" 1>&6
5088 fi
5089
5090
5091 enablestring=
5092 echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
5093echo "configure:5094: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5094 no_cache=0
5095 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5096if test "${enable_mshtmlhelp+set}" = set; then
5097 enableval="$enable_mshtmlhelp"
5098
5099 if test "$enableval" = yes; then
5100 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5101 else
5102 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5103 fi
5104
5105else
5106
5107 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5108 if test "x$LINE" != x ; then
5109 eval "DEFAULT_$LINE"
5110 else
5111 no_cache=1
5112 fi
5113
5114 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
5115
5116fi
5117
5118
5119 eval "$ac_cv_use_mshtmlhelp"
5120 if test "$no_cache" != 1; then
5121 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5122 fi
5123
5124 if test "$wxUSE_MS_HTML_HELP" = yes; then
5125 echo "$ac_t""yes" 1>&6
5126 else
5127 echo "$ac_t""no" 1>&6
5128 fi
5129
5130
5131 enablestring=
5132 echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
5133echo "configure:5134: checking for --${enablestring:-enable}-html" >&5
5134 no_cache=0
5135 # Check whether --enable-html or --disable-html was given.
5136if test "${enable_html+set}" = set; then
5137 enableval="$enable_html"
5138
5139 if test "$enableval" = yes; then
5140 ac_cv_use_html='wxUSE_HTML=yes'
5141 else
5142 ac_cv_use_html='wxUSE_HTML=no'
5143 fi
5144
5145else
5146
5147 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5148 if test "x$LINE" != x ; then
5149 eval "DEFAULT_$LINE"
5150 else
5151 no_cache=1
5152 fi
5153
5154 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5155
5156fi
5157
5158
5159 eval "$ac_cv_use_html"
5160 if test "$no_cache" != 1; then
5161 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5162 fi
5163
5164 if test "$wxUSE_HTML" = yes; then
5165 echo "$ac_t""yes" 1>&6
5166 else
5167 echo "$ac_t""no" 1>&6
5168 fi
5169
5170
5171 enablestring=
5172 echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
5173echo "configure:5174: checking for --${enablestring:-enable}-htmlhelp" >&5
5174 no_cache=0
5175 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5176if test "${enable_htmlhelp+set}" = set; then
5177 enableval="$enable_htmlhelp"
5178
5179 if test "$enableval" = yes; then
5180 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5181 else
5182 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5183 fi
5184
5185else
5186
5187 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5188 if test "x$LINE" != x ; then
5189 eval "DEFAULT_$LINE"
5190 else
5191 no_cache=1
5192 fi
5193
5194 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5195
5196fi
5197
5198
5199 eval "$ac_cv_use_htmlhelp"
5200 if test "$no_cache" != 1; then
5201 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5202 fi
5203
5204 if test "$wxUSE_WXHTML_HELP" = yes; then
5205 echo "$ac_t""yes" 1>&6
5206 else
5207 echo "$ac_t""no" 1>&6
5208 fi
5209
5210
5211 enablestring=
5212 echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
5213echo "configure:5214: checking for --${enablestring:-enable}-constraints" >&5
5214 no_cache=0
5215 # Check whether --enable-constraints or --disable-constraints was given.
5216if test "${enable_constraints+set}" = set; then
5217 enableval="$enable_constraints"
5218
5219 if test "$enableval" = yes; then
5220 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5221 else
5222 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5223 fi
5224
5225else
5226
5227 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5228 if test "x$LINE" != x ; then
5229 eval "DEFAULT_$LINE"
5230 else
5231 no_cache=1
5232 fi
5233
5234 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5235
5236fi
5237
5238
5239 eval "$ac_cv_use_constraints"
5240 if test "$no_cache" != 1; then
5241 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5242 fi
5243
5244 if test "$wxUSE_CONSTRAINTS" = yes; then
5245 echo "$ac_t""yes" 1>&6
5246 else
5247 echo "$ac_t""no" 1>&6
5248 fi
5249
5250
5251 enablestring=
5252 echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
5253echo "configure:5254: checking for --${enablestring:-enable}-printarch" >&5
5254 no_cache=0
5255 # Check whether --enable-printarch or --disable-printarch was given.
5256if test "${enable_printarch+set}" = set; then
5257 enableval="$enable_printarch"
5258
5259 if test "$enableval" = yes; then
5260 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5261 else
5262 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5263 fi
5264
5265else
5266
5267 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5268 if test "x$LINE" != x ; then
5269 eval "DEFAULT_$LINE"
5270 else
5271 no_cache=1
5272 fi
5273
5274 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5275
5276fi
5277
5278
5279 eval "$ac_cv_use_printarch"
5280 if test "$no_cache" != 1; then
5281 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5282 fi
5283
5284 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5285 echo "$ac_t""yes" 1>&6
5286 else
5287 echo "$ac_t""no" 1>&6
5288 fi
5289
5290
5291 enablestring=
5292 echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
5293echo "configure:5294: checking for --${enablestring:-enable}-mdi" >&5
5294 no_cache=0
5295 # Check whether --enable-mdi or --disable-mdi was given.
5296if test "${enable_mdi+set}" = set; then
5297 enableval="$enable_mdi"
5298
5299 if test "$enableval" = yes; then
5300 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5301 else
5302 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5303 fi
5304
5305else
5306
5307 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5308 if test "x$LINE" != x ; then
5309 eval "DEFAULT_$LINE"
5310 else
5311 no_cache=1
5312 fi
5313
5314 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5315
5316fi
5317
5318
5319 eval "$ac_cv_use_mdi"
5320 if test "$no_cache" != 1; then
5321 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5322 fi
5323
5324 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5325 echo "$ac_t""yes" 1>&6
5326 else
5327 echo "$ac_t""no" 1>&6
5328 fi
5329
5330
5331 enablestring=
5332 echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
5333echo "configure:5334: checking for --${enablestring:-enable}-loggui" >&5
5334 no_cache=0
5335 # Check whether --enable-loggui or --disable-loggui was given.
5336if test "${enable_loggui+set}" = set; then
5337 enableval="$enable_loggui"
5338
5339 if test "$enableval" = yes; then
5340 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5341 else
5342 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5343 fi
5344
5345else
5346
5347 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5348 if test "x$LINE" != x ; then
5349 eval "DEFAULT_$LINE"
5350 else
5351 no_cache=1
5352 fi
5353
5354 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5355
5356fi
5357
5358
5359 eval "$ac_cv_use_loggui"
5360 if test "$no_cache" != 1; then
5361 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5362 fi
5363
5364 if test "$wxUSE_LOGGUI" = yes; then
5365 echo "$ac_t""yes" 1>&6
5366 else
5367 echo "$ac_t""no" 1>&6
5368 fi
5369
5370
5371 enablestring=
5372 echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
5373echo "configure:5374: checking for --${enablestring:-enable}-logwin" >&5
5374 no_cache=0
5375 # Check whether --enable-logwin or --disable-logwin was given.
5376if test "${enable_logwin+set}" = set; then
5377 enableval="$enable_logwin"
5378
5379 if test "$enableval" = yes; then
5380 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5381 else
5382 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5383 fi
5384
5385else
5386
5387 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5388 if test "x$LINE" != x ; then
5389 eval "DEFAULT_$LINE"
5390 else
5391 no_cache=1
5392 fi
5393
5394 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5395
5396fi
5397
5398
5399 eval "$ac_cv_use_logwin"
5400 if test "$no_cache" != 1; then
5401 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5402 fi
5403
5404 if test "$wxUSE_LOGWINDOW" = yes; then
5405 echo "$ac_t""yes" 1>&6
5406 else
5407 echo "$ac_t""no" 1>&6
5408 fi
5409
5410
5411 enablestring=
5412 echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
5413echo "configure:5414: checking for --${enablestring:-enable}-logdialog" >&5
5414 no_cache=0
5415 # Check whether --enable-logdialog or --disable-logdialog was given.
5416if test "${enable_logdialog+set}" = set; then
5417 enableval="$enable_logdialog"
5418
5419 if test "$enableval" = yes; then
5420 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5421 else
5422 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5423 fi
5424
5425else
5426
5427 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5428 if test "x$LINE" != x ; then
5429 eval "DEFAULT_$LINE"
5430 else
5431 no_cache=1
5432 fi
5433
5434 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5435
5436fi
5437
5438
5439 eval "$ac_cv_use_logdialog"
5440 if test "$no_cache" != 1; then
5441 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5442 fi
5443
5444 if test "$wxUSE_LOGDIALOG" = yes; then
5445 echo "$ac_t""yes" 1>&6
5446 else
5447 echo "$ac_t""no" 1>&6
5448 fi
5449
5450
5451
5452 enablestring=
5453 echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
5454echo "configure:5455: checking for --${enablestring:-enable}-postscript" >&5
5455 no_cache=0
5456 # Check whether --enable-postscript or --disable-postscript was given.
5457if test "${enable_postscript+set}" = set; then
5458 enableval="$enable_postscript"
5459
5460 if test "$enableval" = yes; then
5461 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5462 else
5463 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5464 fi
5465
5466else
5467
5468 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5469 if test "x$LINE" != x ; then
5470 eval "DEFAULT_$LINE"
5471 else
5472 no_cache=1
5473 fi
5474
5475 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5476
5477fi
5478
5479
5480 eval "$ac_cv_use_postscript"
5481 if test "$no_cache" != 1; then
5482 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5483 fi
5484
5485 if test "$wxUSE_POSTSCRIPT" = yes; then
5486 echo "$ac_t""yes" 1>&6
5487 else
5488 echo "$ac_t""no" 1>&6
5489 fi
5490
5491
5492
5493
5494
5495 enablestring=
5496 echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
5497echo "configure:5498: checking for --${enablestring:-enable}-resources" >&5
5498 no_cache=0
5499 # Check whether --enable-resources or --disable-resources was given.
5500if test "${enable_resources+set}" = set; then
5501 enableval="$enable_resources"
5502
5503 if test "$enableval" = yes; then
5504 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5505 else
5506 ac_cv_use_resources='wxUSE_RESOURCES=no'
5507 fi
5508
5509else
5510
5511 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5512 if test "x$LINE" != x ; then
5513 eval "DEFAULT_$LINE"
5514 else
5515 no_cache=1
5516 fi
5517
5518 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5519
5520fi
5521
5522
5523 eval "$ac_cv_use_resources"
5524 if test "$no_cache" != 1; then
5525 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5526 fi
5527
5528 if test "$wxUSE_RESOURCES" = yes; then
5529 echo "$ac_t""yes" 1>&6
5530 else
5531 echo "$ac_t""no" 1>&6
5532 fi
5533
5534
5535
5536 enablestring=
5537 echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6
5538echo "configure:5539: checking for --${enablestring:-enable}-xresources" >&5
5539 no_cache=0
5540 # Check whether --enable-xresources or --disable-xresources was given.
5541if test "${enable_xresources+set}" = set; then
5542 enableval="$enable_xresources"
5543
5544 if test "$enableval" = yes; then
5545 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5546 else
5547 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5548 fi
5549
5550else
5551
5552 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5553 if test "x$LINE" != x ; then
5554 eval "DEFAULT_$LINE"
5555 else
5556 no_cache=1
5557 fi
5558
5559 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5560
5561fi
5562
5563
5564 eval "$ac_cv_use_xresources"
5565 if test "$no_cache" != 1; then
5566 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5567 fi
5568
5569 if test "$wxUSE_X_RESOURCES" = yes; then
5570 echo "$ac_t""yes" 1>&6
5571 else
5572 echo "$ac_t""no" 1>&6
5573 fi
5574
5575
5576
5577
5578 enablestring=
5579 echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
5580echo "configure:5581: checking for --${enablestring:-enable}-clipboard" >&5
5581 no_cache=0
5582 # Check whether --enable-clipboard or --disable-clipboard was given.
5583if test "${enable_clipboard+set}" = set; then
5584 enableval="$enable_clipboard"
5585
5586 if test "$enableval" = yes; then
5587 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5588 else
5589 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5590 fi
5591
5592else
5593
5594 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5595 if test "x$LINE" != x ; then
5596 eval "DEFAULT_$LINE"
5597 else
5598 no_cache=1
5599 fi
5600
5601 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5602
5603fi
5604
5605
5606 eval "$ac_cv_use_clipboard"
5607 if test "$no_cache" != 1; then
5608 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5609 fi
5610
5611 if test "$wxUSE_CLIPBOARD" = yes; then
5612 echo "$ac_t""yes" 1>&6
5613 else
5614 echo "$ac_t""no" 1>&6
5615 fi
5616
5617
5618 enablestring=
5619 echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
5620echo "configure:5621: checking for --${enablestring:-enable}-dnd" >&5
5621 no_cache=0
5622 # Check whether --enable-dnd or --disable-dnd was given.
5623if test "${enable_dnd+set}" = set; then
5624 enableval="$enable_dnd"
5625
5626 if test "$enableval" = yes; then
5627 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5628 else
5629 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5630 fi
5631
5632else
5633
5634 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5635 if test "x$LINE" != x ; then
5636 eval "DEFAULT_$LINE"
5637 else
5638 no_cache=1
5639 fi
5640
5641 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5642
5643fi
5644
5645
5646 eval "$ac_cv_use_dnd"
5647 if test "$no_cache" != 1; then
5648 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5649 fi
5650
5651 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5652 echo "$ac_t""yes" 1>&6
5653 else
5654 echo "$ac_t""no" 1>&6
5655 fi
5656
5657
5658 enablestring=
5659 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
5660echo "configure:5661: checking for --${enablestring:-enable}-metafile" >&5
5661 no_cache=0
5662 # Check whether --enable-metafile or --disable-metafile was given.
5663if test "${enable_metafile+set}" = set; then
5664 enableval="$enable_metafile"
5665
5666 if test "$enableval" = yes; then
5667 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5668 else
5669 ac_cv_use_metafile='wxUSE_METAFILE=no'
5670 fi
5671
5672else
5673
5674 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5675 if test "x$LINE" != x ; then
5676 eval "DEFAULT_$LINE"
5677 else
5678 no_cache=1
5679 fi
5680
5681 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5682
5683fi
5684
5685
5686 eval "$ac_cv_use_metafile"
5687 if test "$no_cache" != 1; then
5688 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5689 fi
5690
5691 if test "$wxUSE_METAFILE" = yes; then
5692 echo "$ac_t""yes" 1>&6
5693 else
5694 echo "$ac_t""no" 1>&6
5695 fi
5696
5697
5698
5699
5700
5701 enablestring=
5702 echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
5703echo "configure:5704: checking for --${enablestring:-enable}-controls" >&5
5704 no_cache=0
5705 # Check whether --enable-controls or --disable-controls was given.
5706if test "${enable_controls+set}" = set; then
5707 enableval="$enable_controls"
5708
5709 if test "$enableval" = yes; then
5710 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5711 else
5712 ac_cv_use_controls='wxUSE_CONTROLS=no'
5713 fi
5714
5715else
5716
5717 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5718 if test "x$LINE" != x ; then
5719 eval "DEFAULT_$LINE"
5720 else
5721 no_cache=1
5722 fi
5723
5724 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5725
5726fi
5727
5728
5729 eval "$ac_cv_use_controls"
5730 if test "$no_cache" != 1; then
5731 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5732 fi
5733
5734 if test "$wxUSE_CONTROLS" = yes; then
5735 echo "$ac_t""yes" 1>&6
5736 else
5737 echo "$ac_t""no" 1>&6
5738 fi
5739
5740
5741if test "$wxUSE_CONTROLS" = "yes"; then
5742 DEFAULT_wxUSE_ACCEL=yes
5743 DEFAULT_wxUSE_BMPBUTTON=yes
5744 DEFAULT_wxUSE_BUTTON=yes
5745 DEFAULT_wxUSE_CALCTRL=no
5746 DEFAULT_wxUSE_CARET=yes
5747 DEFAULT_wxUSE_COMBOBOX=yes
5748 DEFAULT_wxUSE_CHECKBOX=yes
5749 DEFAULT_wxUSE_CHECKLISTBOX=yes
5750 DEFAULT_wxUSE_CHOICE=yes
5751 DEFAULT_wxUSE_GAUGE=yes
5752 DEFAULT_wxUSE_GRID=yes
5753 DEFAULT_wxUSE_IMAGLIST=yes
5754 DEFAULT_wxUSE_LISTBOX=yes
5755 DEFAULT_wxUSE_LISTCTRL=yes
5756 DEFAULT_wxUSE_NOTEBOOK=yes
5757 DEFAULT_wxUSE_RADIOBOX=yes
5758 DEFAULT_wxUSE_RADIOBTN=yes
5759 DEFAULT_wxUSE_SASH=yes
5760 DEFAULT_wxUSE_SCROLLBAR=yes
5761 DEFAULT_wxUSE_SLIDER=yes
5762 DEFAULT_wxUSE_SPINBTN=yes
5763 DEFAULT_wxUSE_SPINCTRL=yes
5764 DEFAULT_wxUSE_SPLITTER=yes
5765 DEFAULT_wxUSE_STATBMP=yes
5766 DEFAULT_wxUSE_STATBOX=yes
5767 DEFAULT_wxUSE_STATLINE=yes
5768 DEFAULT_wxUSE_STATUSBAR=yes
5769 DEFAULT_wxUSE_TAB_DIALOG=yes
5770 DEFAULT_wxUSE_TOGGLEBTN=yes
5771 DEFAULT_wxUSE_TOOLBAR=yes
5772 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5773 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5774 DEFAULT_wxUSE_TOOLTIPS=yes
5775 DEFAULT_wxUSE_TREECTRL=yes
5776 DEFAULT_wxUSE_POPUPWIN=yes
5777 DEFAULT_wxUSE_TIPWINDOW=yes
5778elif test "$wxUSE_CONTROLS" = "no"; then
5779 DEFAULT_wxUSE_ACCEL=no
5780 DEFAULT_wxUSE_BMPBUTTON=no
5781 DEFAULT_wxUSE_BUTTON=no
5782 DEFAULT_wxUSE_CALCTRL=no
5783 DEFAULT_wxUSE_CARET=no
5784 DEFAULT_wxUSE_COMBOBOX=no
5785 DEFAULT_wxUSE_CHECKBOX=no
5786 DEFAULT_wxUSE_CHECKLISTBOX=no
5787 DEFAULT_wxUSE_CHOICE=no
5788 DEFAULT_wxUSE_GAUGE=no
5789 DEFAULT_wxUSE_GRID=no
5790 DEFAULT_wxUSE_IMAGLIST=no
5791 DEFAULT_wxUSE_LISTBOX=no
5792 DEFAULT_wxUSE_LISTCTRL=no
5793 DEFAULT_wxUSE_NOTEBOOK=no
5794 DEFAULT_wxUSE_RADIOBOX=no
5795 DEFAULT_wxUSE_RADIOBTN=no
5796 DEFAULT_wxUSE_SASH=no
5797 DEFAULT_wxUSE_SCROLLBAR=no
5798 DEFAULT_wxUSE_SLIDER=no
5799 DEFAULT_wxUSE_SPINBTN=no
5800 DEFAULT_wxUSE_SPINCTRL=no
5801 DEFAULT_wxUSE_SPLITTER=no
5802 DEFAULT_wxUSE_STATBMP=no
5803 DEFAULT_wxUSE_STATBOX=no
5804 DEFAULT_wxUSE_STATLINE=no
5805 DEFAULT_wxUSE_STATUSBAR=no
5806 DEFAULT_wxUSE_TAB_DIALOG=no
5807 DEFAULT_wxUSE_TOGGLEBTN=no
5808 DEFAULT_wxUSE_TOOLBAR=no
5809 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5810 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5811 DEFAULT_wxUSE_TOOLTIPS=no
5812 DEFAULT_wxUSE_TREECTRL=no
5813 DEFAULT_wxUSE_POPUPWIN=no
5814 DEFAULT_wxUSE_TIPWINDOW=no
5815fi
5816
5817## FIXME: This is a blatant hack
5818if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
5819 wxUSE_PRINTING_ARCHITECTURE=no
5820 wxUSE_HELP=no
5821 wxUSE_CLIPBOARD=no
5822 wxUSE_DRAG_AND_DROP=no
5823 wxUSE_DATAOBJ=no
5824 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5825 DEFAULT_wxUSE_GAUGE=no
5826 DEFAULT_wxUSE_SCROLLBAR=no
5827 DEFAULT_wxUSE_SLIDER=no
5828 DEFAULT_wxUSE_COMBOBOX=no
5829 DEFAULT_wxUSE_CALCTRL=no
5830 DEFAULT_wxUSE_SPINBTN=no
5831 DEFAULT_wxUSE_SPINCTRL=no
5832 DEFAULT_wxUSE_TOOLTIPS=no
5833 DEFAULT_wxUSE_COLOURDLG=no
5834 DEFAULT_wxUSE_DRAGIMAGE=no
5835 DEFAULT_wxUSE_FINDREPLDLG=no
5836 DEFAULT_wxUSE_FONTDLG=no
5837 DEFAULT_wxUSE_GRID=no
5838 DEFAULT_wxUSE_NUMBERDLG=no
5839 DEFAULT_wxUSE_PROGRESSDLG=no
5840 DEFAULT_wxUSE_SASH=no
5841 DEFAULT_wxUSE_SPLITTER=no
5842 DEFAULT_wxUSE_WIZARDDLG=no
5843 DEFAULT_wxUSE_SPLITTER=no
5844 DEFAULT_wxUSE_STARTUP_TIPS=no
5845fi
5846
5847
5848 enablestring=
5849 echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
5850echo "configure:5851: checking for --${enablestring:-enable}-accel" >&5
5851 no_cache=0
5852 # Check whether --enable-accel or --disable-accel was given.
5853if test "${enable_accel+set}" = set; then
5854 enableval="$enable_accel"
5855
5856 if test "$enableval" = yes; then
5857 ac_cv_use_accel='wxUSE_ACCEL=yes'
5858 else
5859 ac_cv_use_accel='wxUSE_ACCEL=no'
5860 fi
5861
5862else
5863
5864 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5865 if test "x$LINE" != x ; then
5866 eval "DEFAULT_$LINE"
5867 else
5868 no_cache=1
5869 fi
5870
5871 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5872
5873fi
5874
5875
5876 eval "$ac_cv_use_accel"
5877 if test "$no_cache" != 1; then
5878 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5879 fi
5880
5881 if test "$wxUSE_ACCEL" = yes; then
5882 echo "$ac_t""yes" 1>&6
5883 else
5884 echo "$ac_t""no" 1>&6
5885 fi
5886
5887
5888 enablestring=
5889 echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
5890echo "configure:5891: checking for --${enablestring:-enable}-button" >&5
5891 no_cache=0
5892 # Check whether --enable-button or --disable-button was given.
5893if test "${enable_button+set}" = set; then
5894 enableval="$enable_button"
5895
5896 if test "$enableval" = yes; then
5897 ac_cv_use_button='wxUSE_BUTTON=yes'
5898 else
5899 ac_cv_use_button='wxUSE_BUTTON=no'
5900 fi
5901
5902else
5903
5904 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5905 if test "x$LINE" != x ; then
5906 eval "DEFAULT_$LINE"
5907 else
5908 no_cache=1
5909 fi
5910
5911 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5912
5913fi
5914
5915
5916 eval "$ac_cv_use_button"
5917 if test "$no_cache" != 1; then
5918 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5919 fi
5920
5921 if test "$wxUSE_BUTTON" = yes; then
5922 echo "$ac_t""yes" 1>&6
5923 else
5924 echo "$ac_t""no" 1>&6
5925 fi
5926
5927
5928 enablestring=
5929 echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
5930echo "configure:5931: checking for --${enablestring:-enable}-bmpbutton" >&5
5931 no_cache=0
5932 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5933if test "${enable_bmpbutton+set}" = set; then
5934 enableval="$enable_bmpbutton"
5935
5936 if test "$enableval" = yes; then
5937 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5938 else
5939 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5940 fi
5941
5942else
5943
5944 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5945 if test "x$LINE" != x ; then
5946 eval "DEFAULT_$LINE"
5947 else
5948 no_cache=1
5949 fi
5950
5951 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5952
5953fi
5954
5955
5956 eval "$ac_cv_use_bmpbutton"
5957 if test "$no_cache" != 1; then
5958 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5959 fi
5960
5961 if test "$wxUSE_BMPBUTTON" = yes; then
5962 echo "$ac_t""yes" 1>&6
5963 else
5964 echo "$ac_t""no" 1>&6
5965 fi
5966
5967
5968 enablestring=
5969 echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
5970echo "configure:5971: checking for --${enablestring:-enable}-calendar" >&5
5971 no_cache=0
5972 # Check whether --enable-calendar or --disable-calendar was given.
5973if test "${enable_calendar+set}" = set; then
5974 enableval="$enable_calendar"
5975
5976 if test "$enableval" = yes; then
5977 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5978 else
5979 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5980 fi
5981
5982else
5983
5984 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5985 if test "x$LINE" != x ; then
5986 eval "DEFAULT_$LINE"
5987 else
5988 no_cache=1
5989 fi
5990
5991 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5992
5993fi
5994
5995
5996 eval "$ac_cv_use_calendar"
5997 if test "$no_cache" != 1; then
5998 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5999 fi
6000
6001 if test "$wxUSE_CALCTRL" = yes; then
6002 echo "$ac_t""yes" 1>&6
6003 else
6004 echo "$ac_t""no" 1>&6
6005 fi
6006
6007
6008 enablestring=
6009 echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
6010echo "configure:6011: checking for --${enablestring:-enable}-caret" >&5
6011 no_cache=0
6012 # Check whether --enable-caret or --disable-caret was given.
6013if test "${enable_caret+set}" = set; then
6014 enableval="$enable_caret"
6015
6016 if test "$enableval" = yes; then
6017 ac_cv_use_caret='wxUSE_CARET=yes'
6018 else
6019 ac_cv_use_caret='wxUSE_CARET=no'
6020 fi
6021
6022else
6023
6024 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6025 if test "x$LINE" != x ; then
6026 eval "DEFAULT_$LINE"
6027 else
6028 no_cache=1
6029 fi
6030
6031 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6032
6033fi
6034
6035
6036 eval "$ac_cv_use_caret"
6037 if test "$no_cache" != 1; then
6038 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6039 fi
6040
6041 if test "$wxUSE_CARET" = yes; then
6042 echo "$ac_t""yes" 1>&6
6043 else
6044 echo "$ac_t""no" 1>&6
6045 fi
6046
6047
6048 enablestring=
6049 echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
6050echo "configure:6051: checking for --${enablestring:-enable}-checkbox" >&5
6051 no_cache=0
6052 # Check whether --enable-checkbox or --disable-checkbox was given.
6053if test "${enable_checkbox+set}" = set; then
6054 enableval="$enable_checkbox"
6055
6056 if test "$enableval" = yes; then
6057 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6058 else
6059 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6060 fi
6061
6062else
6063
6064 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6065 if test "x$LINE" != x ; then
6066 eval "DEFAULT_$LINE"
6067 else
6068 no_cache=1
6069 fi
6070
6071 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6072
6073fi
6074
6075
6076 eval "$ac_cv_use_checkbox"
6077 if test "$no_cache" != 1; then
6078 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6079 fi
6080
6081 if test "$wxUSE_CHECKBOX" = yes; then
6082 echo "$ac_t""yes" 1>&6
6083 else
6084 echo "$ac_t""no" 1>&6
6085 fi
6086
6087
6088 enablestring=
6089 echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
6090echo "configure:6091: checking for --${enablestring:-enable}-checklst" >&5
6091 no_cache=0
6092 # Check whether --enable-checklst or --disable-checklst was given.
6093if test "${enable_checklst+set}" = set; then
6094 enableval="$enable_checklst"
6095
6096 if test "$enableval" = yes; then
6097 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6098 else
6099 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6100 fi
6101
6102else
6103
6104 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6105 if test "x$LINE" != x ; then
6106 eval "DEFAULT_$LINE"
6107 else
6108 no_cache=1
6109 fi
6110
6111 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6112
6113fi
6114
6115
6116 eval "$ac_cv_use_checklst"
6117 if test "$no_cache" != 1; then
6118 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6119 fi
6120
6121 if test "$wxUSE_CHECKLST" = yes; then
6122 echo "$ac_t""yes" 1>&6
6123 else
6124 echo "$ac_t""no" 1>&6
6125 fi
6126
6127
6128 enablestring=
6129 echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
6130echo "configure:6131: checking for --${enablestring:-enable}-choice" >&5
6131 no_cache=0
6132 # Check whether --enable-choice or --disable-choice was given.
6133if test "${enable_choice+set}" = set; then
6134 enableval="$enable_choice"
6135
6136 if test "$enableval" = yes; then
6137 ac_cv_use_choice='wxUSE_CHOICE=yes'
6138 else
6139 ac_cv_use_choice='wxUSE_CHOICE=no'
6140 fi
6141
6142else
6143
6144 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6145 if test "x$LINE" != x ; then
6146 eval "DEFAULT_$LINE"
6147 else
6148 no_cache=1
6149 fi
6150
6151 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6152
6153fi
6154
6155
6156 eval "$ac_cv_use_choice"
6157 if test "$no_cache" != 1; then
6158 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6159 fi
6160
6161 if test "$wxUSE_CHOICE" = yes; then
6162 echo "$ac_t""yes" 1>&6
6163 else
6164 echo "$ac_t""no" 1>&6
6165 fi
6166
6167
6168 enablestring=
6169 echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
6170echo "configure:6171: checking for --${enablestring:-enable}-combobox" >&5
6171 no_cache=0
6172 # Check whether --enable-combobox or --disable-combobox was given.
6173if test "${enable_combobox+set}" = set; then
6174 enableval="$enable_combobox"
6175
6176 if test "$enableval" = yes; then
6177 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6178 else
6179 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6180 fi
6181
6182else
6183
6184 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6185 if test "x$LINE" != x ; then
6186 eval "DEFAULT_$LINE"
6187 else
6188 no_cache=1
6189 fi
6190
6191 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6192
6193fi
6194
6195
6196 eval "$ac_cv_use_combobox"
6197 if test "$no_cache" != 1; then
6198 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6199 fi
6200
6201 if test "$wxUSE_COMBOBOX" = yes; then
6202 echo "$ac_t""yes" 1>&6
6203 else
6204 echo "$ac_t""no" 1>&6
6205 fi
6206
6207
6208 enablestring=
6209 echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6
6210echo "configure:6211: checking for --${enablestring:-enable}-display" >&5
6211 no_cache=0
6212 # Check whether --enable-display or --disable-display was given.
6213if test "${enable_display+set}" = set; then
6214 enableval="$enable_display"
6215
6216 if test "$enableval" = yes; then
6217 ac_cv_use_display='wxUSE_DISPLAY=yes'
6218 else
6219 ac_cv_use_display='wxUSE_DISPLAY=no'
6220 fi
6221
6222else
6223
6224 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6225 if test "x$LINE" != x ; then
6226 eval "DEFAULT_$LINE"
6227 else
6228 no_cache=1
6229 fi
6230
6231 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
6232
6233fi
6234
6235
6236 eval "$ac_cv_use_display"
6237 if test "$no_cache" != 1; then
6238 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6239 fi
6240
6241 if test "$wxUSE_DISPLAY" = yes; then
6242 echo "$ac_t""yes" 1>&6
6243 else
6244 echo "$ac_t""no" 1>&6
6245 fi
6246
6247
6248 enablestring=
6249 echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
6250echo "configure:6251: checking for --${enablestring:-enable}-gauge" >&5
6251 no_cache=0
6252 # Check whether --enable-gauge or --disable-gauge was given.
6253if test "${enable_gauge+set}" = set; then
6254 enableval="$enable_gauge"
6255
6256 if test "$enableval" = yes; then
6257 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6258 else
6259 ac_cv_use_gauge='wxUSE_GAUGE=no'
6260 fi
6261
6262else
6263
6264 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6265 if test "x$LINE" != x ; then
6266 eval "DEFAULT_$LINE"
6267 else
6268 no_cache=1
6269 fi
6270
6271 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6272
6273fi
6274
6275
6276 eval "$ac_cv_use_gauge"
6277 if test "$no_cache" != 1; then
6278 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6279 fi
6280
6281 if test "$wxUSE_GAUGE" = yes; then
6282 echo "$ac_t""yes" 1>&6
6283 else
6284 echo "$ac_t""no" 1>&6
6285 fi
6286
6287
6288 enablestring=
6289 echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
6290echo "configure:6291: checking for --${enablestring:-enable}-grid" >&5
6291 no_cache=0
6292 # Check whether --enable-grid or --disable-grid was given.
6293if test "${enable_grid+set}" = set; then
6294 enableval="$enable_grid"
6295
6296 if test "$enableval" = yes; then
6297 ac_cv_use_grid='wxUSE_GRID=yes'
6298 else
6299 ac_cv_use_grid='wxUSE_GRID=no'
6300 fi
6301
6302else
6303
6304 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6305 if test "x$LINE" != x ; then
6306 eval "DEFAULT_$LINE"
6307 else
6308 no_cache=1
6309 fi
6310
6311 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6312
6313fi
6314
6315
6316 eval "$ac_cv_use_grid"
6317 if test "$no_cache" != 1; then
6318 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6319 fi
6320
6321 if test "$wxUSE_GRID" = yes; then
6322 echo "$ac_t""yes" 1>&6
6323 else
6324 echo "$ac_t""no" 1>&6
6325 fi
6326
6327
6328 enablestring=
6329 echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
6330echo "configure:6331: checking for --${enablestring:-enable}-imaglist" >&5
6331 no_cache=0
6332 # Check whether --enable-imaglist or --disable-imaglist was given.
6333if test "${enable_imaglist+set}" = set; then
6334 enableval="$enable_imaglist"
6335
6336 if test "$enableval" = yes; then
6337 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6338 else
6339 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6340 fi
6341
6342else
6343
6344 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6345 if test "x$LINE" != x ; then
6346 eval "DEFAULT_$LINE"
6347 else
6348 no_cache=1
6349 fi
6350
6351 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6352
6353fi
6354
6355
6356 eval "$ac_cv_use_imaglist"
6357 if test "$no_cache" != 1; then
6358 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6359 fi
6360
6361 if test "$wxUSE_IMAGLIST" = yes; then
6362 echo "$ac_t""yes" 1>&6
6363 else
6364 echo "$ac_t""no" 1>&6
6365 fi
6366
6367
6368 enablestring=
6369 echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
6370echo "configure:6371: checking for --${enablestring:-enable}-listbox" >&5
6371 no_cache=0
6372 # Check whether --enable-listbox or --disable-listbox was given.
6373if test "${enable_listbox+set}" = set; then
6374 enableval="$enable_listbox"
6375
6376 if test "$enableval" = yes; then
6377 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6378 else
6379 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6380 fi
6381
6382else
6383
6384 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6385 if test "x$LINE" != x ; then
6386 eval "DEFAULT_$LINE"
6387 else
6388 no_cache=1
6389 fi
6390
6391 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6392
6393fi
6394
6395
6396 eval "$ac_cv_use_listbox"
6397 if test "$no_cache" != 1; then
6398 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6399 fi
6400
6401 if test "$wxUSE_LISTBOX" = yes; then
6402 echo "$ac_t""yes" 1>&6
6403 else
6404 echo "$ac_t""no" 1>&6
6405 fi
6406
6407
6408 enablestring=
6409 echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
6410echo "configure:6411: checking for --${enablestring:-enable}-listctrl" >&5
6411 no_cache=0
6412 # Check whether --enable-listctrl or --disable-listctrl was given.
6413if test "${enable_listctrl+set}" = set; then
6414 enableval="$enable_listctrl"
6415
6416 if test "$enableval" = yes; then
6417 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6418 else
6419 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6420 fi
6421
6422else
6423
6424 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6425 if test "x$LINE" != x ; then
6426 eval "DEFAULT_$LINE"
6427 else
6428 no_cache=1
6429 fi
6430
6431 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6432
6433fi
6434
6435
6436 eval "$ac_cv_use_listctrl"
6437 if test "$no_cache" != 1; then
6438 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6439 fi
6440
6441 if test "$wxUSE_LISTCTRL" = yes; then
6442 echo "$ac_t""yes" 1>&6
6443 else
6444 echo "$ac_t""no" 1>&6
6445 fi
6446
6447
6448 enablestring=
6449 echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
6450echo "configure:6451: checking for --${enablestring:-enable}-notebook" >&5
6451 no_cache=0
6452 # Check whether --enable-notebook or --disable-notebook was given.
6453if test "${enable_notebook+set}" = set; then
6454 enableval="$enable_notebook"
6455
6456 if test "$enableval" = yes; then
6457 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6458 else
6459 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6460 fi
6461
6462else
6463
6464 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6465 if test "x$LINE" != x ; then
6466 eval "DEFAULT_$LINE"
6467 else
6468 no_cache=1
6469 fi
6470
6471 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6472
6473fi
6474
6475
6476 eval "$ac_cv_use_notebook"
6477 if test "$no_cache" != 1; then
6478 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6479 fi
6480
6481 if test "$wxUSE_NOTEBOOK" = yes; then
6482 echo "$ac_t""yes" 1>&6
6483 else
6484 echo "$ac_t""no" 1>&6
6485 fi
6486
6487
6488 enablestring=
6489 echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
6490echo "configure:6491: checking for --${enablestring:-enable}-radiobox" >&5
6491 no_cache=0
6492 # Check whether --enable-radiobox or --disable-radiobox was given.
6493if test "${enable_radiobox+set}" = set; then
6494 enableval="$enable_radiobox"
6495
6496 if test "$enableval" = yes; then
6497 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6498 else
6499 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6500 fi
6501
6502else
6503
6504 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6505 if test "x$LINE" != x ; then
6506 eval "DEFAULT_$LINE"
6507 else
6508 no_cache=1
6509 fi
6510
6511 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6512
6513fi
6514
6515
6516 eval "$ac_cv_use_radiobox"
6517 if test "$no_cache" != 1; then
6518 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6519 fi
6520
6521 if test "$wxUSE_RADIOBOX" = yes; then
6522 echo "$ac_t""yes" 1>&6
6523 else
6524 echo "$ac_t""no" 1>&6
6525 fi
6526
6527
6528 enablestring=
6529 echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
6530echo "configure:6531: checking for --${enablestring:-enable}-radiobtn" >&5
6531 no_cache=0
6532 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6533if test "${enable_radiobtn+set}" = set; then
6534 enableval="$enable_radiobtn"
6535
6536 if test "$enableval" = yes; then
6537 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6538 else
6539 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6540 fi
6541
6542else
6543
6544 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6545 if test "x$LINE" != x ; then
6546 eval "DEFAULT_$LINE"
6547 else
6548 no_cache=1
6549 fi
6550
6551 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6552
6553fi
6554
6555
6556 eval "$ac_cv_use_radiobtn"
6557 if test "$no_cache" != 1; then
6558 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6559 fi
6560
6561 if test "$wxUSE_RADIOBTN" = yes; then
6562 echo "$ac_t""yes" 1>&6
6563 else
6564 echo "$ac_t""no" 1>&6
6565 fi
6566
6567
6568 enablestring=
6569 echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
6570echo "configure:6571: checking for --${enablestring:-enable}-sash" >&5
6571 no_cache=0
6572 # Check whether --enable-sash or --disable-sash was given.
6573if test "${enable_sash+set}" = set; then
6574 enableval="$enable_sash"
6575
6576 if test "$enableval" = yes; then
6577 ac_cv_use_sash='wxUSE_SASH=yes'
6578 else
6579 ac_cv_use_sash='wxUSE_SASH=no'
6580 fi
6581
6582else
6583
6584 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6585 if test "x$LINE" != x ; then
6586 eval "DEFAULT_$LINE"
6587 else
6588 no_cache=1
6589 fi
6590
6591 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6592
6593fi
6594
6595
6596 eval "$ac_cv_use_sash"
6597 if test "$no_cache" != 1; then
6598 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6599 fi
6600
6601 if test "$wxUSE_SASH" = yes; then
6602 echo "$ac_t""yes" 1>&6
6603 else
6604 echo "$ac_t""no" 1>&6
6605 fi
6606
6607
6608 enablestring=
6609 echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
6610echo "configure:6611: checking for --${enablestring:-enable}-scrollbar" >&5
6611 no_cache=0
6612 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6613if test "${enable_scrollbar+set}" = set; then
6614 enableval="$enable_scrollbar"
6615
6616 if test "$enableval" = yes; then
6617 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6618 else
6619 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6620 fi
6621
6622else
6623
6624 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6625 if test "x$LINE" != x ; then
6626 eval "DEFAULT_$LINE"
6627 else
6628 no_cache=1
6629 fi
6630
6631 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6632
6633fi
6634
6635
6636 eval "$ac_cv_use_scrollbar"
6637 if test "$no_cache" != 1; then
6638 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6639 fi
6640
6641 if test "$wxUSE_SCROLLBAR" = yes; then
6642 echo "$ac_t""yes" 1>&6
6643 else
6644 echo "$ac_t""no" 1>&6
6645 fi
6646
6647
6648 enablestring=
6649 echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
6650echo "configure:6651: checking for --${enablestring:-enable}-slider" >&5
6651 no_cache=0
6652 # Check whether --enable-slider or --disable-slider was given.
6653if test "${enable_slider+set}" = set; then
6654 enableval="$enable_slider"
6655
6656 if test "$enableval" = yes; then
6657 ac_cv_use_slider='wxUSE_SLIDER=yes'
6658 else
6659 ac_cv_use_slider='wxUSE_SLIDER=no'
6660 fi
6661
6662else
6663
6664 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6665 if test "x$LINE" != x ; then
6666 eval "DEFAULT_$LINE"
6667 else
6668 no_cache=1
6669 fi
6670
6671 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6672
6673fi
6674
6675
6676 eval "$ac_cv_use_slider"
6677 if test "$no_cache" != 1; then
6678 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6679 fi
6680
6681 if test "$wxUSE_SLIDER" = yes; then
6682 echo "$ac_t""yes" 1>&6
6683 else
6684 echo "$ac_t""no" 1>&6
6685 fi
6686
6687
6688 enablestring=
6689 echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
6690echo "configure:6691: checking for --${enablestring:-enable}-spinbtn" >&5
6691 no_cache=0
6692 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6693if test "${enable_spinbtn+set}" = set; then
6694 enableval="$enable_spinbtn"
6695
6696 if test "$enableval" = yes; then
6697 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6698 else
6699 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6700 fi
6701
6702else
6703
6704 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6705 if test "x$LINE" != x ; then
6706 eval "DEFAULT_$LINE"
6707 else
6708 no_cache=1
6709 fi
6710
6711 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6712
6713fi
6714
6715
6716 eval "$ac_cv_use_spinbtn"
6717 if test "$no_cache" != 1; then
6718 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6719 fi
6720
6721 if test "$wxUSE_SPINBTN" = yes; then
6722 echo "$ac_t""yes" 1>&6
6723 else
6724 echo "$ac_t""no" 1>&6
6725 fi
6726
6727
6728 enablestring=
6729 echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
6730echo "configure:6731: checking for --${enablestring:-enable}-spinctrl" >&5
6731 no_cache=0
6732 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6733if test "${enable_spinctrl+set}" = set; then
6734 enableval="$enable_spinctrl"
6735
6736 if test "$enableval" = yes; then
6737 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6738 else
6739 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6740 fi
6741
6742else
6743
6744 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6745 if test "x$LINE" != x ; then
6746 eval "DEFAULT_$LINE"
6747 else
6748 no_cache=1
6749 fi
6750
6751 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6752
6753fi
6754
6755
6756 eval "$ac_cv_use_spinctrl"
6757 if test "$no_cache" != 1; then
6758 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6759 fi
6760
6761 if test "$wxUSE_SPINCTRL" = yes; then
6762 echo "$ac_t""yes" 1>&6
6763 else
6764 echo "$ac_t""no" 1>&6
6765 fi
6766
6767
6768 enablestring=
6769 echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
6770echo "configure:6771: checking for --${enablestring:-enable}-splitter" >&5
6771 no_cache=0
6772 # Check whether --enable-splitter or --disable-splitter was given.
6773if test "${enable_splitter+set}" = set; then
6774 enableval="$enable_splitter"
6775
6776 if test "$enableval" = yes; then
6777 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6778 else
6779 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6780 fi
6781
6782else
6783
6784 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6785 if test "x$LINE" != x ; then
6786 eval "DEFAULT_$LINE"
6787 else
6788 no_cache=1
6789 fi
6790
6791 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6792
6793fi
6794
6795
6796 eval "$ac_cv_use_splitter"
6797 if test "$no_cache" != 1; then
6798 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6799 fi
6800
6801 if test "$wxUSE_SPLITTER" = yes; then
6802 echo "$ac_t""yes" 1>&6
6803 else
6804 echo "$ac_t""no" 1>&6
6805 fi
6806
6807
6808 enablestring=
6809 echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
6810echo "configure:6811: checking for --${enablestring:-enable}-statbmp" >&5
6811 no_cache=0
6812 # Check whether --enable-statbmp or --disable-statbmp was given.
6813if test "${enable_statbmp+set}" = set; then
6814 enableval="$enable_statbmp"
6815
6816 if test "$enableval" = yes; then
6817 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6818 else
6819 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6820 fi
6821
6822else
6823
6824 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6825 if test "x$LINE" != x ; then
6826 eval "DEFAULT_$LINE"
6827 else
6828 no_cache=1
6829 fi
6830
6831 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6832
6833fi
6834
6835
6836 eval "$ac_cv_use_statbmp"
6837 if test "$no_cache" != 1; then
6838 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6839 fi
6840
6841 if test "$wxUSE_STATBMP" = yes; then
6842 echo "$ac_t""yes" 1>&6
6843 else
6844 echo "$ac_t""no" 1>&6
6845 fi
6846
6847
6848 enablestring=
6849 echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
6850echo "configure:6851: checking for --${enablestring:-enable}-statbox" >&5
6851 no_cache=0
6852 # Check whether --enable-statbox or --disable-statbox was given.
6853if test "${enable_statbox+set}" = set; then
6854 enableval="$enable_statbox"
6855
6856 if test "$enableval" = yes; then
6857 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6858 else
6859 ac_cv_use_statbox='wxUSE_STATBOX=no'
6860 fi
6861
6862else
6863
6864 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6865 if test "x$LINE" != x ; then
6866 eval "DEFAULT_$LINE"
6867 else
6868 no_cache=1
6869 fi
6870
6871 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6872
6873fi
6874
6875
6876 eval "$ac_cv_use_statbox"
6877 if test "$no_cache" != 1; then
6878 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6879 fi
6880
6881 if test "$wxUSE_STATBOX" = yes; then
6882 echo "$ac_t""yes" 1>&6
6883 else
6884 echo "$ac_t""no" 1>&6
6885 fi
6886
6887
6888 enablestring=
6889 echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
6890echo "configure:6891: checking for --${enablestring:-enable}-statline" >&5
6891 no_cache=0
6892 # Check whether --enable-statline or --disable-statline was given.
6893if test "${enable_statline+set}" = set; then
6894 enableval="$enable_statline"
6895
6896 if test "$enableval" = yes; then
6897 ac_cv_use_statline='wxUSE_STATLINE=yes'
6898 else
6899 ac_cv_use_statline='wxUSE_STATLINE=no'
6900 fi
6901
6902else
6903
6904 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6905 if test "x$LINE" != x ; then
6906 eval "DEFAULT_$LINE"
6907 else
6908 no_cache=1
6909 fi
6910
6911 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6912
6913fi
6914
6915
6916 eval "$ac_cv_use_statline"
6917 if test "$no_cache" != 1; then
6918 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6919 fi
6920
6921 if test "$wxUSE_STATLINE" = yes; then
6922 echo "$ac_t""yes" 1>&6
6923 else
6924 echo "$ac_t""no" 1>&6
6925 fi
6926
6927
6928 enablestring=
6929 echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
6930echo "configure:6931: checking for --${enablestring:-enable}-stattext" >&5
6931 no_cache=0
6932 # Check whether --enable-stattext or --disable-stattext was given.
6933if test "${enable_stattext+set}" = set; then
6934 enableval="$enable_stattext"
6935
6936 if test "$enableval" = yes; then
6937 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6938 else
6939 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6940 fi
6941
6942else
6943
6944 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6945 if test "x$LINE" != x ; then
6946 eval "DEFAULT_$LINE"
6947 else
6948 no_cache=1
6949 fi
6950
6951 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6952
6953fi
6954
6955
6956 eval "$ac_cv_use_stattext"
6957 if test "$no_cache" != 1; then
6958 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6959 fi
6960
6961 if test "$wxUSE_STATTEXT" = yes; then
6962 echo "$ac_t""yes" 1>&6
6963 else
6964 echo "$ac_t""no" 1>&6
6965 fi
6966
6967
6968 enablestring=
6969 echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
6970echo "configure:6971: checking for --${enablestring:-enable}-statusbar" >&5
6971 no_cache=0
6972 # Check whether --enable-statusbar or --disable-statusbar was given.
6973if test "${enable_statusbar+set}" = set; then
6974 enableval="$enable_statusbar"
6975
6976 if test "$enableval" = yes; then
6977 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6978 else
6979 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6980 fi
6981
6982else
6983
6984 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6985 if test "x$LINE" != x ; then
6986 eval "DEFAULT_$LINE"
6987 else
6988 no_cache=1
6989 fi
6990
6991 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6992
6993fi
6994
6995
6996 eval "$ac_cv_use_statusbar"
6997 if test "$no_cache" != 1; then
6998 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6999 fi
7000
7001 if test "$wxUSE_STATUSBAR" = yes; then
7002 echo "$ac_t""yes" 1>&6
7003 else
7004 echo "$ac_t""no" 1>&6
7005 fi
7006
7007
7008 enablestring=
7009 echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
7010echo "configure:7011: checking for --${enablestring:-enable}-tabdialog" >&5
7011 no_cache=0
7012 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7013if test "${enable_tabdialog+set}" = set; then
7014 enableval="$enable_tabdialog"
7015
7016 if test "$enableval" = yes; then
7017 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7018 else
7019 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7020 fi
7021
7022else
7023
7024 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7025 if test "x$LINE" != x ; then
7026 eval "DEFAULT_$LINE"
7027 else
7028 no_cache=1
7029 fi
7030
7031 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
7032
7033fi
7034
7035
7036 eval "$ac_cv_use_tabdialog"
7037 if test "$no_cache" != 1; then
7038 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7039 fi
7040
7041 if test "$wxUSE_TABDIALOG" = yes; then
7042 echo "$ac_t""yes" 1>&6
7043 else
7044 echo "$ac_t""no" 1>&6
7045 fi
7046
7047
7048 enablestring=
7049 echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
7050echo "configure:7051: checking for --${enablestring:-enable}-textctrl" >&5
7051 no_cache=0
7052 # Check whether --enable-textctrl or --disable-textctrl was given.
7053if test "${enable_textctrl+set}" = set; then
7054 enableval="$enable_textctrl"
7055
7056 if test "$enableval" = yes; then
7057 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7058 else
7059 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7060 fi
7061
7062else
7063
7064 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7065 if test "x$LINE" != x ; then
7066 eval "DEFAULT_$LINE"
7067 else
7068 no_cache=1
7069 fi
7070
7071 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
7072
7073fi
7074
7075
7076 eval "$ac_cv_use_textctrl"
7077 if test "$no_cache" != 1; then
7078 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7079 fi
7080
7081 if test "$wxUSE_TEXTCTRL" = yes; then
7082 echo "$ac_t""yes" 1>&6
7083 else
7084 echo "$ac_t""no" 1>&6
7085 fi
7086
7087
7088 enablestring=
7089 echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
7090echo "configure:7091: checking for --${enablestring:-enable}-togglebtn" >&5
7091 no_cache=0
7092 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7093if test "${enable_togglebtn+set}" = set; then
7094 enableval="$enable_togglebtn"
7095
7096 if test "$enableval" = yes; then
7097 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7098 else
7099 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7100 fi
7101
7102else
7103
7104 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7105 if test "x$LINE" != x ; then
7106 eval "DEFAULT_$LINE"
7107 else
7108 no_cache=1
7109 fi
7110
7111 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7112
7113fi
7114
7115
7116 eval "$ac_cv_use_togglebtn"
7117 if test "$no_cache" != 1; then
7118 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7119 fi
7120
7121 if test "$wxUSE_TOGGLEBTN" = yes; then
7122 echo "$ac_t""yes" 1>&6
7123 else
7124 echo "$ac_t""no" 1>&6
7125 fi
7126
7127
7128 enablestring=
7129 echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
7130echo "configure:7131: checking for --${enablestring:-enable}-toolbar" >&5
7131 no_cache=0
7132 # Check whether --enable-toolbar or --disable-toolbar was given.
7133if test "${enable_toolbar+set}" = set; then
7134 enableval="$enable_toolbar"
7135
7136 if test "$enableval" = yes; then
7137 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7138 else
7139 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7140 fi
7141
7142else
7143
7144 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7145 if test "x$LINE" != x ; then
7146 eval "DEFAULT_$LINE"
7147 else
7148 no_cache=1
7149 fi
7150
7151 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7152
7153fi
7154
7155
7156 eval "$ac_cv_use_toolbar"
7157 if test "$no_cache" != 1; then
7158 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7159 fi
7160
7161 if test "$wxUSE_TOOLBAR" = yes; then
7162 echo "$ac_t""yes" 1>&6
7163 else
7164 echo "$ac_t""no" 1>&6
7165 fi
7166
7167
7168 enablestring=
7169 echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
7170echo "configure:7171: checking for --${enablestring:-enable}-tbarnative" >&5
7171 no_cache=0
7172 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7173if test "${enable_tbarnative+set}" = set; then
7174 enableval="$enable_tbarnative"
7175
7176 if test "$enableval" = yes; then
7177 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7178 else
7179 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7180 fi
7181
7182else
7183
7184 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7185 if test "x$LINE" != x ; then
7186 eval "DEFAULT_$LINE"
7187 else
7188 no_cache=1
7189 fi
7190
7191 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7192
7193fi
7194
7195
7196 eval "$ac_cv_use_tbarnative"
7197 if test "$no_cache" != 1; then
7198 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7199 fi
7200
7201 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7202 echo "$ac_t""yes" 1>&6
7203 else
7204 echo "$ac_t""no" 1>&6
7205 fi
7206
7207
7208 enablestring=
7209 echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
7210echo "configure:7211: checking for --${enablestring:-enable}-tbarsmpl" >&5
7211 no_cache=0
7212 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7213if test "${enable_tbarsmpl+set}" = set; then
7214 enableval="$enable_tbarsmpl"
7215
7216 if test "$enableval" = yes; then
7217 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7218 else
7219 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7220 fi
7221
7222else
7223
7224 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7225 if test "x$LINE" != x ; then
7226 eval "DEFAULT_$LINE"
7227 else
7228 no_cache=1
7229 fi
7230
7231 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7232
7233fi
7234
7235
7236 eval "$ac_cv_use_tbarsmpl"
7237 if test "$no_cache" != 1; then
7238 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7239 fi
7240
7241 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7242 echo "$ac_t""yes" 1>&6
7243 else
7244 echo "$ac_t""no" 1>&6
7245 fi
7246
7247
7248 enablestring=
7249 echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
7250echo "configure:7251: checking for --${enablestring:-enable}-treectrl" >&5
7251 no_cache=0
7252 # Check whether --enable-treectrl or --disable-treectrl was given.
7253if test "${enable_treectrl+set}" = set; then
7254 enableval="$enable_treectrl"
7255
7256 if test "$enableval" = yes; then
7257 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7258 else
7259 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7260 fi
7261
7262else
7263
7264 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7265 if test "x$LINE" != x ; then
7266 eval "DEFAULT_$LINE"
7267 else
7268 no_cache=1
7269 fi
7270
7271 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7272
7273fi
7274
7275
7276 eval "$ac_cv_use_treectrl"
7277 if test "$no_cache" != 1; then
7278 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7279 fi
7280
7281 if test "$wxUSE_TREECTRL" = yes; then
7282 echo "$ac_t""yes" 1>&6
7283 else
7284 echo "$ac_t""no" 1>&6
7285 fi
7286
7287
7288 enablestring=
7289 echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
7290echo "configure:7291: checking for --${enablestring:-enable}-tipwindow" >&5
7291 no_cache=0
7292 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7293if test "${enable_tipwindow+set}" = set; then
7294 enableval="$enable_tipwindow"
7295
7296 if test "$enableval" = yes; then
7297 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7298 else
7299 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7300 fi
7301
7302else
7303
7304 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7305 if test "x$LINE" != x ; then
7306 eval "DEFAULT_$LINE"
7307 else
7308 no_cache=1
7309 fi
7310
7311 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7312
7313fi
7314
7315
7316 eval "$ac_cv_use_tipwindow"
7317 if test "$no_cache" != 1; then
7318 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7319 fi
7320
7321 if test "$wxUSE_TIPWINDOW" = yes; then
7322 echo "$ac_t""yes" 1>&6
7323 else
7324 echo "$ac_t""no" 1>&6
7325 fi
7326
7327
7328 enablestring=
7329 echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
7330echo "configure:7331: checking for --${enablestring:-enable}-popupwin" >&5
7331 no_cache=0
7332 # Check whether --enable-popupwin or --disable-popupwin was given.
7333if test "${enable_popupwin+set}" = set; then
7334 enableval="$enable_popupwin"
7335
7336 if test "$enableval" = yes; then
7337 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7338 else
7339 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7340 fi
7341
7342else
7343
7344 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7345 if test "x$LINE" != x ; then
7346 eval "DEFAULT_$LINE"
7347 else
7348 no_cache=1
7349 fi
7350
7351 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7352
7353fi
7354
7355
7356 eval "$ac_cv_use_popupwin"
7357 if test "$no_cache" != 1; then
7358 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7359 fi
7360
7361 if test "$wxUSE_POPUPWIN" = yes; then
7362 echo "$ac_t""yes" 1>&6
7363 else
7364 echo "$ac_t""no" 1>&6
7365 fi
7366
7367
7368
7369
7370 enablestring=
7371 echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
7372echo "configure:7373: checking for --${enablestring:-enable}-commondlg" >&5
7373 no_cache=0
7374 # Check whether --enable-commondlg or --disable-commondlg was given.
7375if test "${enable_commondlg+set}" = set; then
7376 enableval="$enable_commondlg"
7377
7378 if test "$enableval" = yes; then
7379 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7380 else
7381 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7382 fi
7383
7384else
7385
7386 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7387 if test "x$LINE" != x ; then
7388 eval "DEFAULT_$LINE"
7389 else
7390 no_cache=1
7391 fi
7392
7393 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7394
7395fi
7396
7397
7398 eval "$ac_cv_use_commondlg"
7399 if test "$no_cache" != 1; then
7400 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7401 fi
7402
7403 if test "$wxUSE_COMMONDLGS" = yes; then
7404 echo "$ac_t""yes" 1>&6
7405 else
7406 echo "$ac_t""no" 1>&6
7407 fi
7408
7409
7410 enablestring=
7411 echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
7412echo "configure:7413: checking for --${enablestring:-enable}-choicedlg" >&5
7413 no_cache=0
7414 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7415if test "${enable_choicedlg+set}" = set; then
7416 enableval="$enable_choicedlg"
7417
7418 if test "$enableval" = yes; then
7419 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7420 else
7421 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7422 fi
7423
7424else
7425
7426 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7427 if test "x$LINE" != x ; then
7428 eval "DEFAULT_$LINE"
7429 else
7430 no_cache=1
7431 fi
7432
7433 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7434
7435fi
7436
7437
7438 eval "$ac_cv_use_choicedlg"
7439 if test "$no_cache" != 1; then
7440 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7441 fi
7442
7443 if test "$wxUSE_CHOICEDLG" = yes; then
7444 echo "$ac_t""yes" 1>&6
7445 else
7446 echo "$ac_t""no" 1>&6
7447 fi
7448
7449
7450 enablestring=
7451 echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
7452echo "configure:7453: checking for --${enablestring:-enable}-coldlg" >&5
7453 no_cache=0
7454 # Check whether --enable-coldlg or --disable-coldlg was given.
7455if test "${enable_coldlg+set}" = set; then
7456 enableval="$enable_coldlg"
7457
7458 if test "$enableval" = yes; then
7459 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7460 else
7461 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7462 fi
7463
7464else
7465
7466 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7467 if test "x$LINE" != x ; then
7468 eval "DEFAULT_$LINE"
7469 else
7470 no_cache=1
7471 fi
7472
7473 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7474
7475fi
7476
7477
7478 eval "$ac_cv_use_coldlg"
7479 if test "$no_cache" != 1; then
7480 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7481 fi
7482
7483 if test "$wxUSE_COLOURDLG" = yes; then
7484 echo "$ac_t""yes" 1>&6
7485 else
7486 echo "$ac_t""no" 1>&6
7487 fi
7488
7489
7490 enablestring=
7491 echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
7492echo "configure:7493: checking for --${enablestring:-enable}-filedlg" >&5
7493 no_cache=0
7494 # Check whether --enable-filedlg or --disable-filedlg was given.
7495if test "${enable_filedlg+set}" = set; then
7496 enableval="$enable_filedlg"
7497
7498 if test "$enableval" = yes; then
7499 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7500 else
7501 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7502 fi
7503
7504else
7505
7506 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7507 if test "x$LINE" != x ; then
7508 eval "DEFAULT_$LINE"
7509 else
7510 no_cache=1
7511 fi
7512
7513 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7514
7515fi
7516
7517
7518 eval "$ac_cv_use_filedlg"
7519 if test "$no_cache" != 1; then
7520 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7521 fi
7522
7523 if test "$wxUSE_FILEDLG" = yes; then
7524 echo "$ac_t""yes" 1>&6
7525 else
7526 echo "$ac_t""no" 1>&6
7527 fi
7528
7529
7530 enablestring=
7531 echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
7532echo "configure:7533: checking for --${enablestring:-enable}-finddlg" >&5
7533 no_cache=0
7534 # Check whether --enable-finddlg or --disable-finddlg was given.
7535if test "${enable_finddlg+set}" = set; then
7536 enableval="$enable_finddlg"
7537
7538 if test "$enableval" = yes; then
7539 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7540 else
7541 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7542 fi
7543
7544else
7545
7546 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7547 if test "x$LINE" != x ; then
7548 eval "DEFAULT_$LINE"
7549 else
7550 no_cache=1
7551 fi
7552
7553 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7554
7555fi
7556
7557
7558 eval "$ac_cv_use_finddlg"
7559 if test "$no_cache" != 1; then
7560 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7561 fi
7562
7563 if test "$wxUSE_FINDREPLDLG" = yes; then
7564 echo "$ac_t""yes" 1>&6
7565 else
7566 echo "$ac_t""no" 1>&6
7567 fi
7568
7569
7570 enablestring=
7571 echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
7572echo "configure:7573: checking for --${enablestring:-enable}-fontdlg" >&5
7573 no_cache=0
7574 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7575if test "${enable_fontdlg+set}" = set; then
7576 enableval="$enable_fontdlg"
7577
7578 if test "$enableval" = yes; then
7579 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7580 else
7581 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7582 fi
7583
7584else
7585
7586 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7587 if test "x$LINE" != x ; then
7588 eval "DEFAULT_$LINE"
7589 else
7590 no_cache=1
7591 fi
7592
7593 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7594
7595fi
7596
7597
7598 eval "$ac_cv_use_fontdlg"
7599 if test "$no_cache" != 1; then
7600 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7601 fi
7602
7603 if test "$wxUSE_FONTDLG" = yes; then
7604 echo "$ac_t""yes" 1>&6
7605 else
7606 echo "$ac_t""no" 1>&6
7607 fi
7608
7609
7610 enablestring=
7611 echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
7612echo "configure:7613: checking for --${enablestring:-enable}-dirdlg" >&5
7613 no_cache=0
7614 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7615if test "${enable_dirdlg+set}" = set; then
7616 enableval="$enable_dirdlg"
7617
7618 if test "$enableval" = yes; then
7619 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7620 else
7621 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7622 fi
7623
7624else
7625
7626 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7627 if test "x$LINE" != x ; then
7628 eval "DEFAULT_$LINE"
7629 else
7630 no_cache=1
7631 fi
7632
7633 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7634
7635fi
7636
7637
7638 eval "$ac_cv_use_dirdlg"
7639 if test "$no_cache" != 1; then
7640 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7641 fi
7642
7643 if test "$wxUSE_DIRDLG" = yes; then
7644 echo "$ac_t""yes" 1>&6
7645 else
7646 echo "$ac_t""no" 1>&6
7647 fi
7648
7649
7650 enablestring=
7651 echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
7652echo "configure:7653: checking for --${enablestring:-enable}-msgdlg" >&5
7653 no_cache=0
7654 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7655if test "${enable_msgdlg+set}" = set; then
7656 enableval="$enable_msgdlg"
7657
7658 if test "$enableval" = yes; then
7659 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7660 else
7661 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7662 fi
7663
7664else
7665
7666 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7667 if test "x$LINE" != x ; then
7668 eval "DEFAULT_$LINE"
7669 else
7670 no_cache=1
7671 fi
7672
7673 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7674
7675fi
7676
7677
7678 eval "$ac_cv_use_msgdlg"
7679 if test "$no_cache" != 1; then
7680 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7681 fi
7682
7683 if test "$wxUSE_MSGDLG" = yes; then
7684 echo "$ac_t""yes" 1>&6
7685 else
7686 echo "$ac_t""no" 1>&6
7687 fi
7688
7689
7690 enablestring=
7691 echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
7692echo "configure:7693: checking for --${enablestring:-enable}-numberdlg" >&5
7693 no_cache=0
7694 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7695if test "${enable_numberdlg+set}" = set; then
7696 enableval="$enable_numberdlg"
7697
7698 if test "$enableval" = yes; then
7699 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7700 else
7701 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7702 fi
7703
7704else
7705
7706 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7707 if test "x$LINE" != x ; then
7708 eval "DEFAULT_$LINE"
7709 else
7710 no_cache=1
7711 fi
7712
7713 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7714
7715fi
7716
7717
7718 eval "$ac_cv_use_numberdlg"
7719 if test "$no_cache" != 1; then
7720 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7721 fi
7722
7723 if test "$wxUSE_NUMBERDLG" = yes; then
7724 echo "$ac_t""yes" 1>&6
7725 else
7726 echo "$ac_t""no" 1>&6
7727 fi
7728
7729
7730 enablestring=
7731 echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
7732echo "configure:7733: checking for --${enablestring:-enable}-splash" >&5
7733 no_cache=0
7734 # Check whether --enable-splash or --disable-splash was given.
7735if test "${enable_splash+set}" = set; then
7736 enableval="$enable_splash"
7737
7738 if test "$enableval" = yes; then
7739 ac_cv_use_splash='wxUSE_SPLASH=yes'
7740 else
7741 ac_cv_use_splash='wxUSE_SPLASH=no'
7742 fi
7743
7744else
7745
7746 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7747 if test "x$LINE" != x ; then
7748 eval "DEFAULT_$LINE"
7749 else
7750 no_cache=1
7751 fi
7752
7753 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7754
7755fi
7756
7757
7758 eval "$ac_cv_use_splash"
7759 if test "$no_cache" != 1; then
7760 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7761 fi
7762
7763 if test "$wxUSE_SPLASH" = yes; then
7764 echo "$ac_t""yes" 1>&6
7765 else
7766 echo "$ac_t""no" 1>&6
7767 fi
7768
7769
7770 enablestring=
7771 echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
7772echo "configure:7773: checking for --${enablestring:-enable}-textdlg" >&5
7773 no_cache=0
7774 # Check whether --enable-textdlg or --disable-textdlg was given.
7775if test "${enable_textdlg+set}" = set; then
7776 enableval="$enable_textdlg"
7777
7778 if test "$enableval" = yes; then
7779 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7780 else
7781 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7782 fi
7783
7784else
7785
7786 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7787 if test "x$LINE" != x ; then
7788 eval "DEFAULT_$LINE"
7789 else
7790 no_cache=1
7791 fi
7792
7793 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7794
7795fi
7796
7797
7798 eval "$ac_cv_use_textdlg"
7799 if test "$no_cache" != 1; then
7800 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7801 fi
7802
7803 if test "$wxUSE_TEXTDLG" = yes; then
7804 echo "$ac_t""yes" 1>&6
7805 else
7806 echo "$ac_t""no" 1>&6
7807 fi
7808
7809
7810 enablestring=
7811 echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
7812echo "configure:7813: checking for --${enablestring:-enable}-tipdlg" >&5
7813 no_cache=0
7814 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7815if test "${enable_tipdlg+set}" = set; then
7816 enableval="$enable_tipdlg"
7817
7818 if test "$enableval" = yes; then
7819 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7820 else
7821 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7822 fi
7823
7824else
7825
7826 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7827 if test "x$LINE" != x ; then
7828 eval "DEFAULT_$LINE"
7829 else
7830 no_cache=1
7831 fi
7832
7833 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7834
7835fi
7836
7837
7838 eval "$ac_cv_use_tipdlg"
7839 if test "$no_cache" != 1; then
7840 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7841 fi
7842
7843 if test "$wxUSE_STARTUP_TIPS" = yes; then
7844 echo "$ac_t""yes" 1>&6
7845 else
7846 echo "$ac_t""no" 1>&6
7847 fi
7848
7849
7850 enablestring=
7851 echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
7852echo "configure:7853: checking for --${enablestring:-enable}-progressdlg" >&5
7853 no_cache=0
7854 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7855if test "${enable_progressdlg+set}" = set; then
7856 enableval="$enable_progressdlg"
7857
7858 if test "$enableval" = yes; then
7859 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7860 else
7861 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7862 fi
7863
7864else
7865
7866 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7867 if test "x$LINE" != x ; then
7868 eval "DEFAULT_$LINE"
7869 else
7870 no_cache=1
7871 fi
7872
7873 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7874
7875fi
7876
7877
7878 eval "$ac_cv_use_progressdlg"
7879 if test "$no_cache" != 1; then
7880 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7881 fi
7882
7883 if test "$wxUSE_PROGRESSDLG" = yes; then
7884 echo "$ac_t""yes" 1>&6
7885 else
7886 echo "$ac_t""no" 1>&6
7887 fi
7888
7889
7890 enablestring=
7891 echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
7892echo "configure:7893: checking for --${enablestring:-enable}-wizarddlg" >&5
7893 no_cache=0
7894 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7895if test "${enable_wizarddlg+set}" = set; then
7896 enableval="$enable_wizarddlg"
7897
7898 if test "$enableval" = yes; then
7899 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7900 else
7901 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7902 fi
7903
7904else
7905
7906 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7907 if test "x$LINE" != x ; then
7908 eval "DEFAULT_$LINE"
7909 else
7910 no_cache=1
7911 fi
7912
7913 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7914
7915fi
7916
7917
7918 eval "$ac_cv_use_wizarddlg"
7919 if test "$no_cache" != 1; then
7920 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7921 fi
7922
7923 if test "$wxUSE_WIZARDDLG" = yes; then
7924 echo "$ac_t""yes" 1>&6
7925 else
7926 echo "$ac_t""no" 1>&6
7927 fi
7928
7929
7930
7931
7932 enablestring=
7933 echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
7934echo "configure:7935: checking for --${enablestring:-enable}-menus" >&5
7935 no_cache=0
7936 # Check whether --enable-menus or --disable-menus was given.
7937if test "${enable_menus+set}" = set; then
7938 enableval="$enable_menus"
7939
7940 if test "$enableval" = yes; then
7941 ac_cv_use_menus='wxUSE_MENUS=yes'
7942 else
7943 ac_cv_use_menus='wxUSE_MENUS=no'
7944 fi
7945
7946else
7947
7948 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7949 if test "x$LINE" != x ; then
7950 eval "DEFAULT_$LINE"
7951 else
7952 no_cache=1
7953 fi
7954
7955 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7956
7957fi
7958
7959
7960 eval "$ac_cv_use_menus"
7961 if test "$no_cache" != 1; then
7962 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7963 fi
7964
7965 if test "$wxUSE_MENUS" = yes; then
7966 echo "$ac_t""yes" 1>&6
7967 else
7968 echo "$ac_t""no" 1>&6
7969 fi
7970
7971
7972 enablestring=
7973 echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
7974echo "configure:7975: checking for --${enablestring:-enable}-miniframe" >&5
7975 no_cache=0
7976 # Check whether --enable-miniframe or --disable-miniframe was given.
7977if test "${enable_miniframe+set}" = set; then
7978 enableval="$enable_miniframe"
7979
7980 if test "$enableval" = yes; then
7981 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7982 else
7983 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7984 fi
7985
7986else
7987
7988 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7989 if test "x$LINE" != x ; then
7990 eval "DEFAULT_$LINE"
7991 else
7992 no_cache=1
7993 fi
7994
7995 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7996
7997fi
7998
7999
8000 eval "$ac_cv_use_miniframe"
8001 if test "$no_cache" != 1; then
8002 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8003 fi
8004
8005 if test "$wxUSE_MINIFRAME" = yes; then
8006 echo "$ac_t""yes" 1>&6
8007 else
8008 echo "$ac_t""no" 1>&6
8009 fi
8010
8011
8012 enablestring=
8013 echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
8014echo "configure:8015: checking for --${enablestring:-enable}-tooltips" >&5
8015 no_cache=0
8016 # Check whether --enable-tooltips or --disable-tooltips was given.
8017if test "${enable_tooltips+set}" = set; then
8018 enableval="$enable_tooltips"
8019
8020 if test "$enableval" = yes; then
8021 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8022 else
8023 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8024 fi
8025
8026else
8027
8028 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8029 if test "x$LINE" != x ; then
8030 eval "DEFAULT_$LINE"
8031 else
8032 no_cache=1
8033 fi
8034
8035 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
8036
8037fi
8038
8039
8040 eval "$ac_cv_use_tooltips"
8041 if test "$no_cache" != 1; then
8042 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8043 fi
8044
8045 if test "$wxUSE_TOOLTIPS" = yes; then
8046 echo "$ac_t""yes" 1>&6
8047 else
8048 echo "$ac_t""no" 1>&6
8049 fi
8050
8051
8052 enablestring=
8053 echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
8054echo "configure:8055: checking for --${enablestring:-enable}-splines" >&5
8055 no_cache=0
8056 # Check whether --enable-splines or --disable-splines was given.
8057if test "${enable_splines+set}" = set; then
8058 enableval="$enable_splines"
8059
8060 if test "$enableval" = yes; then
8061 ac_cv_use_splines='wxUSE_SPLINES=yes'
8062 else
8063 ac_cv_use_splines='wxUSE_SPLINES=no'
8064 fi
8065
8066else
8067
8068 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8069 if test "x$LINE" != x ; then
8070 eval "DEFAULT_$LINE"
8071 else
8072 no_cache=1
8073 fi
8074
8075 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
8076
8077fi
8078
8079
8080 eval "$ac_cv_use_splines"
8081 if test "$no_cache" != 1; then
8082 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8083 fi
8084
8085 if test "$wxUSE_SPLINES" = yes; then
8086 echo "$ac_t""yes" 1>&6
8087 else
8088 echo "$ac_t""no" 1>&6
8089 fi
8090
8091
8092 enablestring=
8093 echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
8094echo "configure:8095: checking for --${enablestring:-enable}-validators" >&5
8095 no_cache=0
8096 # Check whether --enable-validators or --disable-validators was given.
8097if test "${enable_validators+set}" = set; then
8098 enableval="$enable_validators"
8099
8100 if test "$enableval" = yes; then
8101 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8102 else
8103 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8104 fi
8105
8106else
8107
8108 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8109 if test "x$LINE" != x ; then
8110 eval "DEFAULT_$LINE"
8111 else
8112 no_cache=1
8113 fi
8114
8115 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
8116
8117fi
8118
8119
8120 eval "$ac_cv_use_validators"
8121 if test "$no_cache" != 1; then
8122 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8123 fi
8124
8125 if test "$wxUSE_VALIDATORS" = yes; then
8126 echo "$ac_t""yes" 1>&6
8127 else
8128 echo "$ac_t""no" 1>&6
8129 fi
8130
8131
8132 enablestring=
8133 echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
8134echo "configure:8135: checking for --${enablestring:-enable}-busyinfo" >&5
8135 no_cache=0
8136 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8137if test "${enable_busyinfo+set}" = set; then
8138 enableval="$enable_busyinfo"
8139
8140 if test "$enableval" = yes; then
8141 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8142 else
8143 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8144 fi
8145
8146else
8147
8148 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8149 if test "x$LINE" != x ; then
8150 eval "DEFAULT_$LINE"
8151 else
8152 no_cache=1
8153 fi
8154
8155 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8156
8157fi
8158
8159
8160 eval "$ac_cv_use_busyinfo"
8161 if test "$no_cache" != 1; then
8162 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8163 fi
8164
8165 if test "$wxUSE_BUSYINFO" = yes; then
8166 echo "$ac_t""yes" 1>&6
8167 else
8168 echo "$ac_t""no" 1>&6
8169 fi
8170
8171
8172 enablestring=
8173 echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
8174echo "configure:8175: checking for --${enablestring:-enable}-joystick" >&5
8175 no_cache=0
8176 # Check whether --enable-joystick or --disable-joystick was given.
8177if test "${enable_joystick+set}" = set; then
8178 enableval="$enable_joystick"
8179
8180 if test "$enableval" = yes; then
8181 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8182 else
8183 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8184 fi
8185
8186else
8187
8188 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8189 if test "x$LINE" != x ; then
8190 eval "DEFAULT_$LINE"
8191 else
8192 no_cache=1
8193 fi
8194
8195 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8196
8197fi
8198
8199
8200 eval "$ac_cv_use_joystick"
8201 if test "$no_cache" != 1; then
8202 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8203 fi
8204
8205 if test "$wxUSE_JOYSTICK" = yes; then
8206 echo "$ac_t""yes" 1>&6
8207 else
8208 echo "$ac_t""no" 1>&6
8209 fi
8210
8211
8212 enablestring=
8213 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
8214echo "configure:8215: checking for --${enablestring:-enable}-metafile" >&5
8215 no_cache=0
8216 # Check whether --enable-metafile or --disable-metafile was given.
8217if test "${enable_metafile+set}" = set; then
8218 enableval="$enable_metafile"
8219
8220 if test "$enableval" = yes; then
8221 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8222 else
8223 ac_cv_use_metafile='wxUSE_METAFILE=no'
8224 fi
8225
8226else
8227
8228 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8229 if test "x$LINE" != x ; then
8230 eval "DEFAULT_$LINE"
8231 else
8232 no_cache=1
8233 fi
8234
8235 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8236
8237fi
8238
8239
8240 eval "$ac_cv_use_metafile"
8241 if test "$no_cache" != 1; then
8242 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8243 fi
8244
8245 if test "$wxUSE_METAFILE" = yes; then
8246 echo "$ac_t""yes" 1>&6
8247 else
8248 echo "$ac_t""no" 1>&6
8249 fi
8250
8251
8252 enablestring=
8253 echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
8254echo "configure:8255: checking for --${enablestring:-enable}-dragimage" >&5
8255 no_cache=0
8256 # Check whether --enable-dragimage or --disable-dragimage was given.
8257if test "${enable_dragimage+set}" = set; then
8258 enableval="$enable_dragimage"
8259
8260 if test "$enableval" = yes; then
8261 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8262 else
8263 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8264 fi
8265
8266else
8267
8268 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8269 if test "x$LINE" != x ; then
8270 eval "DEFAULT_$LINE"
8271 else
8272 no_cache=1
8273 fi
8274
8275 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8276
8277fi
8278
8279
8280 eval "$ac_cv_use_dragimage"
8281 if test "$no_cache" != 1; then
8282 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8283 fi
8284
8285 if test "$wxUSE_DRAGIMAGE" = yes; then
8286 echo "$ac_t""yes" 1>&6
8287 else
8288 echo "$ac_t""no" 1>&6
8289 fi
8290
8291
8292
8293
8294 enablestring=
8295 echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
8296echo "configure:8297: checking for --${enablestring:-enable}-palette" >&5
8297 no_cache=0
8298 # Check whether --enable-palette or --disable-palette was given.
8299if test "${enable_palette+set}" = set; then
8300 enableval="$enable_palette"
8301
8302 if test "$enableval" = yes; then
8303 ac_cv_use_palette='wxUSE_PALETTE=yes'
8304 else
8305 ac_cv_use_palette='wxUSE_PALETTE=no'
8306 fi
8307
8308else
8309
8310 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8311 if test "x$LINE" != x ; then
8312 eval "DEFAULT_$LINE"
8313 else
8314 no_cache=1
8315 fi
8316
8317 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8318
8319fi
8320
8321
8322 eval "$ac_cv_use_palette"
8323 if test "$no_cache" != 1; then
8324 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8325 fi
8326
8327 if test "$wxUSE_PALETTE" = yes; then
8328 echo "$ac_t""yes" 1>&6
8329 else
8330 echo "$ac_t""no" 1>&6
8331 fi
8332
8333
8334 enablestring=
8335 echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
8336echo "configure:8337: checking for --${enablestring:-enable}-image" >&5
8337 no_cache=0
8338 # Check whether --enable-image or --disable-image was given.
8339if test "${enable_image+set}" = set; then
8340 enableval="$enable_image"
8341
8342 if test "$enableval" = yes; then
8343 ac_cv_use_image='wxUSE_IMAGE=yes'
8344 else
8345 ac_cv_use_image='wxUSE_IMAGE=no'
8346 fi
8347
8348else
8349
8350 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8351 if test "x$LINE" != x ; then
8352 eval "DEFAULT_$LINE"
8353 else
8354 no_cache=1
8355 fi
8356
8357 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8358
8359fi
8360
8361
8362 eval "$ac_cv_use_image"
8363 if test "$no_cache" != 1; then
8364 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8365 fi
8366
8367 if test "$wxUSE_IMAGE" = yes; then
8368 echo "$ac_t""yes" 1>&6
8369 else
8370 echo "$ac_t""no" 1>&6
8371 fi
8372
8373
8374 enablestring=
8375 echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
8376echo "configure:8377: checking for --${enablestring:-enable}-gif" >&5
8377 no_cache=0
8378 # Check whether --enable-gif or --disable-gif was given.
8379if test "${enable_gif+set}" = set; then
8380 enableval="$enable_gif"
8381
8382 if test "$enableval" = yes; then
8383 ac_cv_use_gif='wxUSE_GIF=yes'
8384 else
8385 ac_cv_use_gif='wxUSE_GIF=no'
8386 fi
8387
8388else
8389
8390 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8391 if test "x$LINE" != x ; then
8392 eval "DEFAULT_$LINE"
8393 else
8394 no_cache=1
8395 fi
8396
8397 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8398
8399fi
8400
8401
8402 eval "$ac_cv_use_gif"
8403 if test "$no_cache" != 1; then
8404 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8405 fi
8406
8407 if test "$wxUSE_GIF" = yes; then
8408 echo "$ac_t""yes" 1>&6
8409 else
8410 echo "$ac_t""no" 1>&6
8411 fi
8412
8413
8414 enablestring=
8415 echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
8416echo "configure:8417: checking for --${enablestring:-enable}-pcx" >&5
8417 no_cache=0
8418 # Check whether --enable-pcx or --disable-pcx was given.
8419if test "${enable_pcx+set}" = set; then
8420 enableval="$enable_pcx"
8421
8422 if test "$enableval" = yes; then
8423 ac_cv_use_pcx='wxUSE_PCX=yes'
8424 else
8425 ac_cv_use_pcx='wxUSE_PCX=no'
8426 fi
8427
8428else
8429
8430 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8431 if test "x$LINE" != x ; then
8432 eval "DEFAULT_$LINE"
8433 else
8434 no_cache=1
8435 fi
8436
8437 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8438
8439fi
8440
8441
8442 eval "$ac_cv_use_pcx"
8443 if test "$no_cache" != 1; then
8444 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8445 fi
8446
8447 if test "$wxUSE_PCX" = yes; then
8448 echo "$ac_t""yes" 1>&6
8449 else
8450 echo "$ac_t""no" 1>&6
8451 fi
8452
8453
8454 enablestring=
8455 echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
8456echo "configure:8457: checking for --${enablestring:-enable}-iff" >&5
8457 no_cache=0
8458 # Check whether --enable-iff or --disable-iff was given.
8459if test "${enable_iff+set}" = set; then
8460 enableval="$enable_iff"
8461
8462 if test "$enableval" = yes; then
8463 ac_cv_use_iff='wxUSE_IFF=yes'
8464 else
8465 ac_cv_use_iff='wxUSE_IFF=no'
8466 fi
8467
8468else
8469
8470 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8471 if test "x$LINE" != x ; then
8472 eval "DEFAULT_$LINE"
8473 else
8474 no_cache=1
8475 fi
8476
8477 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8478
8479fi
8480
8481
8482 eval "$ac_cv_use_iff"
8483 if test "$no_cache" != 1; then
8484 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8485 fi
8486
8487 if test "$wxUSE_IFF" = yes; then
8488 echo "$ac_t""yes" 1>&6
8489 else
8490 echo "$ac_t""no" 1>&6
8491 fi
8492
8493
8494 enablestring=
8495 echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
8496echo "configure:8497: checking for --${enablestring:-enable}-pnm" >&5
8497 no_cache=0
8498 # Check whether --enable-pnm or --disable-pnm was given.
8499if test "${enable_pnm+set}" = set; then
8500 enableval="$enable_pnm"
8501
8502 if test "$enableval" = yes; then
8503 ac_cv_use_pnm='wxUSE_PNM=yes'
8504 else
8505 ac_cv_use_pnm='wxUSE_PNM=no'
8506 fi
8507
8508else
8509
8510 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8511 if test "x$LINE" != x ; then
8512 eval "DEFAULT_$LINE"
8513 else
8514 no_cache=1
8515 fi
8516
8517 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8518
8519fi
8520
8521
8522 eval "$ac_cv_use_pnm"
8523 if test "$no_cache" != 1; then
8524 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8525 fi
8526
8527 if test "$wxUSE_PNM" = yes; then
8528 echo "$ac_t""yes" 1>&6
8529 else
8530 echo "$ac_t""no" 1>&6
8531 fi
8532
8533
8534 enablestring=
8535 echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
8536echo "configure:8537: checking for --${enablestring:-enable}-xpm" >&5
8537 no_cache=0
8538 # Check whether --enable-xpm or --disable-xpm was given.
8539if test "${enable_xpm+set}" = set; then
8540 enableval="$enable_xpm"
8541
8542 if test "$enableval" = yes; then
8543 ac_cv_use_xpm='wxUSE_XPM=yes'
8544 else
8545 ac_cv_use_xpm='wxUSE_XPM=no'
8546 fi
8547
8548else
8549
8550 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8551 if test "x$LINE" != x ; then
8552 eval "DEFAULT_$LINE"
8553 else
8554 no_cache=1
8555 fi
8556
8557 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8558
8559fi
8560
8561
8562 eval "$ac_cv_use_xpm"
8563 if test "$no_cache" != 1; then
8564 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8565 fi
8566
8567 if test "$wxUSE_XPM" = yes; then
8568 echo "$ac_t""yes" 1>&6
8569 else
8570 echo "$ac_t""no" 1>&6
8571 fi
8572
8573
8574 enablestring=
8575 echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
8576echo "configure:8577: checking for --${enablestring:-enable}-ico_cur" >&5
8577 no_cache=0
8578 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8579if test "${enable_ico_cur+set}" = set; then
8580 enableval="$enable_ico_cur"
8581
8582 if test "$enableval" = yes; then
8583 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8584 else
8585 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8586 fi
8587
8588else
8589
8590 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8591 if test "x$LINE" != x ; then
8592 eval "DEFAULT_$LINE"
8593 else
8594 no_cache=1
8595 fi
8596
8597 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8598
8599fi
8600
8601
8602 eval "$ac_cv_use_ico_cur"
8603 if test "$no_cache" != 1; then
8604 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8605 fi
8606
8607 if test "$wxUSE_ICO_CUR" = yes; then
8608 echo "$ac_t""yes" 1>&6
8609 else
8610 echo "$ac_t""no" 1>&6
8611 fi
8612
8613
8614fi
8615
8616case "${host}" in
8617 *-pc-os2_emx | *-pc-os2-emx )
8618 PATH_IFS=';'
8619 LEX_STEM="lexyy"
8620 ;;
8621 *)
8622 PATH_IFS=':'
8623 LEX_STEM="lex.yy"
8624 ;;
8625esac
8626
8627
8628
8629 echo "saving argument cache $wx_arg_cache_file"
8630 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8631
8632
8633
8634echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8635echo "configure:8636: checking for toolkit" >&5
8636
8637# In Wine, we need to default to MSW, not GTK or MOTIF
8638if test "$wxUSE_WINE" = "yes"; then
8639 DEFAULT_DEFAULT_wxUSE_GTK=0
8640 DEFAULT_DEFAULT_wxUSE_MOTIF=0
8641 DEFAULT_DEFAULT_wxUSE_MSW=1
8642fi
8643
8644if test "$wxUSE_GUI" = "yes"; then
8645
8646 if test "$USE_BEOS" = 1; then
8647 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8648 fi
8649
8650 if test "$TOOLKIT_GIVEN" = 1; then
8651 for toolkit in `echo $ALL_TOOLKITS`; do
8652 var=wxUSE_$toolkit
8653 eval "value=\$${var}"
8654 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8655 done
8656 else
8657 for toolkit in `echo $ALL_TOOLKITS`; do
8658 if test "$has_toolkit_in_cache" != 1; then
8659 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8660 else
8661 var=DEFAULT_wxUSE_$toolkit
8662 fi
8663 eval "wxUSE_$toolkit=\$${var}"
8664 done
8665 fi
8666
8667 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
8668 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
8669 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
8670
8671 case "${host}" in
8672 *-pc-os2_emx | *-pc-os2-emx )
8673 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8674 esac
8675
8676 case "$NUM_TOOLKITS" in
8677 1)
8678 ;;
8679 0)
8680 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
8681 ;;
8682 *)
8683 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
8684 esac
8685
8686 for toolkit in `echo $ALL_TOOLKITS`; do
8687 var=wxUSE_$toolkit
8688 eval "value=\$${var}"
8689 if test "x$value" != x; then
8690 cache_var=CACHE_$toolkit
8691 eval "cache=\$${cache_var}"
8692 if test "$cache" = 1; then
8693 echo "$var=$value" >> ${wx_arg_cache_file}
8694 fi
8695 if test "$value" = 1; then
8696 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8697 echo "$ac_t""$toolkit_echo" 1>&6
8698 fi
8699 fi
8700 done
8701else
8702 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8703fi
8704
8705wants_win32=0
8706doesnt_want_win32=0
8707case "${host}" in
8708 *-*-cygwin*)
8709 if test "$wxUSE_MSW" = 1 ; then
8710 wants_win32=1
8711 else
8712 doesnt_want_win32=1
8713 fi
8714 ;;
8715 *-*-mingw*)
8716 wants_win32=1
8717 ;;
8718esac
8719
8720if test "$wxUSE_WINE" = "yes"; then
8721 wants_win32=1
8722 CC=winegcc
8723 CXX=wineg++
8724 RESCOMP=wrc
8725fi
8726
8727if test "$wants_win32" = 1 ; then
8728 USE_UNIX=0
8729 USE_WIN32=1
8730 cat >> confdefs.h <<\EOF
8731#define __WIN32__ 1
8732EOF
8733
8734 cat >> confdefs.h <<\EOF
8735#define __WIN95__ 1
8736EOF
8737
8738 cat >> confdefs.h <<\EOF
8739#define __WINDOWS__ 1
8740EOF
8741
8742 cat >> confdefs.h <<\EOF
8743#define __GNUWIN32__ 1
8744EOF
8745
8746 cat >> confdefs.h <<\EOF
8747#define STRICT 1
8748EOF
8749
8750 cat >> confdefs.h <<\EOF
8751#define WINVER 0x0400
8752EOF
8753
8754fi
8755if test "$doesnt_want_win32" = 1 ; then
8756 USE_UNIX=1
8757 USE_WIN32=0
8758fi
8759
8760if test "$USE_UNIX" = 1 ; then
8761 wxUSE_UNIX=yes
8762 cat >> confdefs.h <<\EOF
8763#define __UNIX__ 1
8764EOF
8765
8766fi
8767
8768
8769cat > confcache <<\EOF
8770# This file is a shell script that caches the results of configure
8771# tests run on this system so they can be shared between configure
8772# scripts and configure runs. It is not useful on other systems.
8773# If it contains results you don't want to keep, you may remove or edit it.
8774#
8775# By default, configure uses ./config.cache as the cache file,
8776# creating it if it does not exist already. You can give configure
8777# the --cache-file=FILE option to use a different cache file; that is
8778# what configure does when it calls configure scripts in
8779# subdirectories, so they share the cache.
8780# Giving --cache-file=/dev/null disables caching, for debugging configure.
8781# config.status only pays attention to the cache file if you give it the
8782# --recheck option to rerun configure.
8783#
8784EOF
8785# The following way of writing the cache mishandles newlines in values,
8786# but we know of no workaround that is simple, portable, and efficient.
8787# So, don't put newlines in cache variables' values.
8788# Ultrix sh set writes to stderr and can't be redirected directly,
8789# and sets the high bit in the cache file unless we assign to the vars.
8790(set) 2>&1 |
8791 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8792 *ac_space=\ *)
8793 # `set' does not quote correctly, so add quotes (double-quote substitution
8794 # turns \\\\ into \\, and sed turns \\ into \).
8795 sed -n \
8796 -e "s/'/'\\\\''/g" \
8797 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8798 ;;
8799 *)
8800 # `set' quotes correctly as required by POSIX, so do not add quotes.
8801 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8802 ;;
8803 esac >> confcache
8804if cmp -s $cache_file confcache; then
8805 :
8806else
8807 if test -w $cache_file; then
8808 echo "updating cache $cache_file"
8809 cat confcache > $cache_file
8810 else
8811 echo "not updating unwritable cache $cache_file"
8812 fi
8813fi
8814rm -f confcache
8815
8816
8817if test "$build" != "$host" ; then
8818 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8819 CC=$host_alias-gcc
8820 CXX=$host_alias-c++
8821 AR=$host_alias-ar
8822 RANLIB=$host_alias-ranlib
8823 DLLTOOL=$host_alias-dlltool
8824 RESCOMP=$host_alias-windres
8825 LD=$host_alias-ld
8826 NM=$host_alias-nm
8827 STRIP=$host_alias-strip
8828 else
8829 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8830 fi
8831fi
8832
8833CFLAGS=${CFLAGS:=}
8834# Extract the first word of "gcc", so it can be a program name with args.
8835set dummy gcc; ac_word=$2
8836echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8837echo "configure:8838: checking for $ac_word" >&5
8838if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8839 echo $ac_n "(cached) $ac_c" 1>&6
8840else
8841 if test -n "$CC"; then
8842 ac_cv_prog_CC="$CC" # Let the user override the test.
8843else
8844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8845 ac_dummy="$PATH"
8846 for ac_dir in $ac_dummy; do
8847 test -z "$ac_dir" && ac_dir=.
8848 if test -f $ac_dir/$ac_word; then
8849 ac_cv_prog_CC="gcc"
8850 break
8851 fi
8852 done
8853 IFS="$ac_save_ifs"
8854fi
8855fi
8856CC="$ac_cv_prog_CC"
8857if test -n "$CC"; then
8858 echo "$ac_t""$CC" 1>&6
8859else
8860 echo "$ac_t""no" 1>&6
8861fi
8862
8863if test -z "$CC"; then
8864 # Extract the first word of "cc", so it can be a program name with args.
8865set dummy cc; ac_word=$2
8866echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8867echo "configure:8868: checking for $ac_word" >&5
8868if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8869 echo $ac_n "(cached) $ac_c" 1>&6
8870else
8871 if test -n "$CC"; then
8872 ac_cv_prog_CC="$CC" # Let the user override the test.
8873else
8874 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8875 ac_prog_rejected=no
8876 ac_dummy="$PATH"
8877 for ac_dir in $ac_dummy; do
8878 test -z "$ac_dir" && ac_dir=.
8879 if test -f $ac_dir/$ac_word; then
8880 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8881 ac_prog_rejected=yes
8882 continue
8883 fi
8884 ac_cv_prog_CC="cc"
8885 break
8886 fi
8887 done
8888 IFS="$ac_save_ifs"
8889if test $ac_prog_rejected = yes; then
8890 # We found a bogon in the path, so make sure we never use it.
8891 set dummy $ac_cv_prog_CC
8892 shift
8893 if test $# -gt 0; then
8894 # We chose a different compiler from the bogus one.
8895 # However, it has the same basename, so the bogon will be chosen
8896 # first if we set CC to just the basename; use the full file name.
8897 shift
8898 set dummy "$ac_dir/$ac_word" "$@"
8899 shift
8900 ac_cv_prog_CC="$@"
8901 fi
8902fi
8903fi
8904fi
8905CC="$ac_cv_prog_CC"
8906if test -n "$CC"; then
8907 echo "$ac_t""$CC" 1>&6
8908else
8909 echo "$ac_t""no" 1>&6
8910fi
8911
8912 if test -z "$CC"; then
8913 case "`uname -s`" in
8914 *win32* | *WIN32*)
8915 # Extract the first word of "cl", so it can be a program name with args.
8916set dummy cl; ac_word=$2
8917echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8918echo "configure:8919: checking for $ac_word" >&5
8919if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8920 echo $ac_n "(cached) $ac_c" 1>&6
8921else
8922 if test -n "$CC"; then
8923 ac_cv_prog_CC="$CC" # Let the user override the test.
8924else
8925 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8926 ac_dummy="$PATH"
8927 for ac_dir in $ac_dummy; do
8928 test -z "$ac_dir" && ac_dir=.
8929 if test -f $ac_dir/$ac_word; then
8930 ac_cv_prog_CC="cl"
8931 break
8932 fi
8933 done
8934 IFS="$ac_save_ifs"
8935fi
8936fi
8937CC="$ac_cv_prog_CC"
8938if test -n "$CC"; then
8939 echo "$ac_t""$CC" 1>&6
8940else
8941 echo "$ac_t""no" 1>&6
8942fi
8943 ;;
8944 esac
8945 fi
8946 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8947fi
8948
8949echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8950echo "configure:8951: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8951
8952ac_ext=c
8953# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8954ac_cpp='$CPP $CPPFLAGS'
8955ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8956ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8957cross_compiling=$ac_cv_prog_cc_cross
8958
8959cat > conftest.$ac_ext << EOF
8960
8961#line 8962 "configure"
8962#include "confdefs.h"
8963
8964main(){return(0);}
8965EOF
8966if { (eval echo configure:8967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8967 ac_cv_prog_cc_works=yes
8968 # If we can't run a trivial program, we are probably using a cross compiler.
8969 if (./conftest; exit) 2>/dev/null; then
8970 ac_cv_prog_cc_cross=no
8971 else
8972 ac_cv_prog_cc_cross=yes
8973 fi
8974else
8975 echo "configure: failed program was:" >&5
8976 cat conftest.$ac_ext >&5
8977 ac_cv_prog_cc_works=no
8978fi
8979rm -fr conftest*
8980ac_ext=c
8981# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8982ac_cpp='$CPP $CPPFLAGS'
8983ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8984ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8985cross_compiling=$ac_cv_prog_cc_cross
8986
8987echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8988if test $ac_cv_prog_cc_works = no; then
8989 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8990fi
8991echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8992echo "configure:8993: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8993echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8994cross_compiling=$ac_cv_prog_cc_cross
8995
8996echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8997echo "configure:8998: checking whether we are using GNU C" >&5
8998if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8999 echo $ac_n "(cached) $ac_c" 1>&6
9000else
9001 cat > conftest.c <<EOF
9002#ifdef __GNUC__
9003 yes;
9004#endif
9005EOF
9006if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9007 ac_cv_prog_gcc=yes
9008else
9009 ac_cv_prog_gcc=no
9010fi
9011fi
9012
9013echo "$ac_t""$ac_cv_prog_gcc" 1>&6
9014
9015if test $ac_cv_prog_gcc = yes; then
9016 GCC=yes
9017else
9018 GCC=
9019fi
9020
9021ac_test_CFLAGS="${CFLAGS+set}"
9022ac_save_CFLAGS="$CFLAGS"
9023CFLAGS=
9024echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
9025echo "configure:9026: checking whether ${CC-cc} accepts -g" >&5
9026if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9027 echo $ac_n "(cached) $ac_c" 1>&6
9028else
9029 echo 'void f(){}' > conftest.c
9030if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
9031 ac_cv_prog_cc_g=yes
9032else
9033 ac_cv_prog_cc_g=no
9034fi
9035rm -f conftest*
9036
9037fi
9038
9039echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
9040if test "$ac_test_CFLAGS" = set; then
9041 CFLAGS="$ac_save_CFLAGS"
9042elif test $ac_cv_prog_cc_g = yes; then
9043 if test "$GCC" = yes; then
9044 CFLAGS="-g -O2"
9045 else
9046 CFLAGS="-g"
9047 fi
9048else
9049 if test "$GCC" = yes; then
9050 CFLAGS="-O2"
9051 else
9052 CFLAGS=
9053 fi
9054fi
9055
9056
9057echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
9058echo "configure:9059: checking how to run the C preprocessor" >&5
9059# On Suns, sometimes $CPP names a directory.
9060if test -n "$CPP" && test -d "$CPP"; then
9061 CPP=
9062fi
9063if test -z "$CPP"; then
9064if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9065 echo $ac_n "(cached) $ac_c" 1>&6
9066else
9067 # This must be in double quotes, not single quotes, because CPP may get
9068 # substituted into the Makefile and "${CC-cc}" will confuse make.
9069 CPP="${CC-cc} -E"
9070 # On the NeXT, cc -E runs the code through the compiler's parser,
9071 # not just through cpp.
9072 cat > conftest.$ac_ext <<EOF
9073#line 9074 "configure"
9074#include "confdefs.h"
9075#include <assert.h>
9076Syntax Error
9077EOF
9078ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9079{ (eval echo configure:9080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9080ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9081if test -z "$ac_err"; then
9082 :
9083else
9084 echo "$ac_err" >&5
9085 echo "configure: failed program was:" >&5
9086 cat conftest.$ac_ext >&5
9087 rm -rf conftest*
9088 CPP="${CC-cc} -E -traditional-cpp"
9089 cat > conftest.$ac_ext <<EOF
9090#line 9091 "configure"
9091#include "confdefs.h"
9092#include <assert.h>
9093Syntax Error
9094EOF
9095ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9096{ (eval echo configure:9097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9097ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9098if test -z "$ac_err"; then
9099 :
9100else
9101 echo "$ac_err" >&5
9102 echo "configure: failed program was:" >&5
9103 cat conftest.$ac_ext >&5
9104 rm -rf conftest*
9105 CPP="${CC-cc} -nologo -E"
9106 cat > conftest.$ac_ext <<EOF
9107#line 9108 "configure"
9108#include "confdefs.h"
9109#include <assert.h>
9110Syntax Error
9111EOF
9112ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9113{ (eval echo configure:9114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9114ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9115if test -z "$ac_err"; then
9116 :
9117else
9118 echo "$ac_err" >&5
9119 echo "configure: failed program was:" >&5
9120 cat conftest.$ac_ext >&5
9121 rm -rf conftest*
9122 CPP=/lib/cpp
9123fi
9124rm -f conftest*
9125fi
9126rm -f conftest*
9127fi
9128rm -f conftest*
9129 ac_cv_prog_CPP="$CPP"
9130fi
9131 CPP="$ac_cv_prog_CPP"
9132else
9133 ac_cv_prog_CPP="$CPP"
9134fi
9135echo "$ac_t""$CPP" 1>&6
9136
9137if test $ac_cv_prog_gcc = yes; then
9138 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
9139echo "configure:9140: checking whether ${CC-cc} needs -traditional" >&5
9140if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9141 echo $ac_n "(cached) $ac_c" 1>&6
9142else
9143 ac_pattern="Autoconf.*'x'"
9144 cat > conftest.$ac_ext <<EOF
9145#line 9146 "configure"
9146#include "confdefs.h"
9147#include <sgtty.h>
9148Autoconf TIOCGETP
9149EOF
9150if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9151 egrep "$ac_pattern" >/dev/null 2>&1; then
9152 rm -rf conftest*
9153 ac_cv_prog_gcc_traditional=yes
9154else
9155 rm -rf conftest*
9156 ac_cv_prog_gcc_traditional=no
9157fi
9158rm -f conftest*
9159
9160
9161 if test $ac_cv_prog_gcc_traditional = no; then
9162 cat > conftest.$ac_ext <<EOF
9163#line 9164 "configure"
9164#include "confdefs.h"
9165#include <termio.h>
9166Autoconf TCGETA
9167EOF
9168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9169 egrep "$ac_pattern" >/dev/null 2>&1; then
9170 rm -rf conftest*
9171 ac_cv_prog_gcc_traditional=yes
9172fi
9173rm -f conftest*
9174
9175 fi
9176fi
9177
9178echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
9179 if test $ac_cv_prog_gcc_traditional = yes; then
9180 CC="$CC -traditional"
9181 fi
9182fi
9183
9184
9185
9186ac_ext=C
9187# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9188ac_cpp='$CXXCPP $CPPFLAGS'
9189ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9190ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9191cross_compiling=$ac_cv_prog_cxx_cross
9192
9193
9194CXXFLAGS=${CXXFLAGS:=}
9195for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9196do
9197# Extract the first word of "$ac_prog", so it can be a program name with args.
9198set dummy $ac_prog; ac_word=$2
9199echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9200echo "configure:9201: checking for $ac_word" >&5
9201if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9202 echo $ac_n "(cached) $ac_c" 1>&6
9203else
9204 if test -n "$CXX"; then
9205 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9206else
9207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9208 ac_dummy="$PATH"
9209 for ac_dir in $ac_dummy; do
9210 test -z "$ac_dir" && ac_dir=.
9211 if test -f $ac_dir/$ac_word; then
9212 ac_cv_prog_CXX="$ac_prog"
9213 break
9214 fi
9215 done
9216 IFS="$ac_save_ifs"
9217fi
9218fi
9219CXX="$ac_cv_prog_CXX"
9220if test -n "$CXX"; then
9221 echo "$ac_t""$CXX" 1>&6
9222else
9223 echo "$ac_t""no" 1>&6
9224fi
9225
9226test -n "$CXX" && break
9227done
9228test -n "$CXX" || CXX="gcc"
9229
9230
9231echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9232echo "configure:9233: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9233
9234ac_ext=C
9235# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9236ac_cpp='$CXXCPP $CPPFLAGS'
9237ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9238ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9239cross_compiling=$ac_cv_prog_cxx_cross
9240
9241cat > conftest.$ac_ext << EOF
9242
9243#line 9244 "configure"
9244#include "confdefs.h"
9245
9246int main(){return(0);}
9247EOF
9248if { (eval echo configure:9249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9249 ac_cv_prog_cxx_works=yes
9250 # If we can't run a trivial program, we are probably using a cross compiler.
9251 if (./conftest; exit) 2>/dev/null; then
9252 ac_cv_prog_cxx_cross=no
9253 else
9254 ac_cv_prog_cxx_cross=yes
9255 fi
9256else
9257 echo "configure: failed program was:" >&5
9258 cat conftest.$ac_ext >&5
9259 ac_cv_prog_cxx_works=no
9260fi
9261rm -fr conftest*
9262ac_ext=C
9263# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9264ac_cpp='$CXXCPP $CPPFLAGS'
9265ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9266ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9267cross_compiling=$ac_cv_prog_cxx_cross
9268
9269echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9270if test $ac_cv_prog_cxx_works = no; then
9271 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9272fi
9273echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9274echo "configure:9275: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9275echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9276cross_compiling=$ac_cv_prog_cxx_cross
9277
9278echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9279echo "configure:9280: checking whether we are using GNU C++" >&5
9280if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9281 echo $ac_n "(cached) $ac_c" 1>&6
9282else
9283 cat > conftest.C <<EOF
9284#ifdef __GNUC__
9285 yes;
9286#endif
9287EOF
9288if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9289 ac_cv_prog_gxx=yes
9290else
9291 ac_cv_prog_gxx=no
9292fi
9293fi
9294
9295echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9296
9297if test $ac_cv_prog_gxx = yes; then
9298 GXX=yes
9299else
9300 GXX=
9301fi
9302
9303ac_test_CXXFLAGS="${CXXFLAGS+set}"
9304ac_save_CXXFLAGS="$CXXFLAGS"
9305CXXFLAGS=
9306echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9307echo "configure:9308: checking whether ${CXX-g++} accepts -g" >&5
9308if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9309 echo $ac_n "(cached) $ac_c" 1>&6
9310else
9311 echo 'void f(){}' > conftest.cc
9312if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9313 ac_cv_prog_cxx_g=yes
9314else
9315 ac_cv_prog_cxx_g=no
9316fi
9317rm -f conftest*
9318
9319fi
9320
9321echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9322if test "$ac_test_CXXFLAGS" = set; then
9323 CXXFLAGS="$ac_save_CXXFLAGS"
9324elif test $ac_cv_prog_cxx_g = yes; then
9325 if test "$GXX" = yes; then
9326 CXXFLAGS="-g -O2"
9327 else
9328 CXXFLAGS="-g"
9329 fi
9330else
9331 if test "$GXX" = yes; then
9332 CXXFLAGS="-O2"
9333 else
9334 CXXFLAGS=
9335 fi
9336fi
9337
9338
9339ac_ext=c
9340# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9341ac_cpp='$CPP $CPPFLAGS'
9342ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9343ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9344cross_compiling=$ac_cv_prog_cc_cross
9345
9346
9347# Extract the first word of "ranlib", so it can be a program name with args.
9348set dummy ranlib; ac_word=$2
9349echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9350echo "configure:9351: checking for $ac_word" >&5
9351if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9352 echo $ac_n "(cached) $ac_c" 1>&6
9353else
9354 if test -n "$RANLIB"; then
9355 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9356else
9357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9358 ac_dummy="$PATH"
9359 for ac_dir in $ac_dummy; do
9360 test -z "$ac_dir" && ac_dir=.
9361 if test -f $ac_dir/$ac_word; then
9362 ac_cv_prog_RANLIB="ranlib"
9363 break
9364 fi
9365 done
9366 IFS="$ac_save_ifs"
9367 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9368fi
9369fi
9370RANLIB="$ac_cv_prog_RANLIB"
9371if test -n "$RANLIB"; then
9372 echo "$ac_t""$RANLIB" 1>&6
9373else
9374 echo "$ac_t""no" 1>&6
9375fi
9376
9377
9378# Extract the first word of "ar", so it can be a program name with args.
9379set dummy ar; ac_word=$2
9380echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9381echo "configure:9382: checking for $ac_word" >&5
9382if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9383 echo $ac_n "(cached) $ac_c" 1>&6
9384else
9385 if test -n "$AR"; then
9386 ac_cv_prog_AR="$AR" # Let the user override the test.
9387else
9388 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9389 ac_dummy="$PATH"
9390 for ac_dir in $ac_dummy; do
9391 test -z "$ac_dir" && ac_dir=.
9392 if test -f $ac_dir/$ac_word; then
9393 ac_cv_prog_AR="ar"
9394 break
9395 fi
9396 done
9397 IFS="$ac_save_ifs"
9398 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9399fi
9400fi
9401AR="$ac_cv_prog_AR"
9402if test -n "$AR"; then
9403 echo "$ac_t""$AR" 1>&6
9404else
9405 echo "$ac_t""no" 1>&6
9406fi
9407
9408
9409# Find a good install program. We prefer a C program (faster),
9410# so one script is as good as another. But avoid the broken or
9411# incompatible versions:
9412# SysV /etc/install, /usr/sbin/install
9413# SunOS /usr/etc/install
9414# IRIX /sbin/install
9415# AIX /bin/install
9416# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9417# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9418# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9419# ./install, which can be erroneously created by make from ./install.sh.
9420echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9421echo "configure:9422: checking for a BSD compatible install" >&5
9422if test -z "$INSTALL"; then
9423if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9424 echo $ac_n "(cached) $ac_c" 1>&6
9425else
9426 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9427 for ac_dir in $PATH; do
9428 # Account for people who put trailing slashes in PATH elements.
9429 case "$ac_dir/" in
9430 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9431 *)
9432 # OSF1 and SCO ODT 3.0 have their own names for install.
9433 # Don't use installbsd from OSF since it installs stuff as root
9434 # by default.
9435 for ac_prog in ginstall scoinst install; do
9436 if test -f $ac_dir/$ac_prog; then
9437 if test $ac_prog = install &&
9438 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9439 # AIX install. It has an incompatible calling convention.
9440 :
9441 else
9442 ac_cv_path_install="$ac_dir/$ac_prog -c"
9443 break 2
9444 fi
9445 fi
9446 done
9447 ;;
9448 esac
9449 done
9450 IFS="$ac_save_IFS"
9451
9452fi
9453 if test "${ac_cv_path_install+set}" = set; then
9454 INSTALL="$ac_cv_path_install"
9455 else
9456 # As a last resort, use the slow shell script. We don't cache a
9457 # path for INSTALL within a source directory, because that will
9458 # break other packages using the cache if that directory is
9459 # removed, or if the path is relative.
9460 INSTALL="$ac_install_sh"
9461 fi
9462fi
9463echo "$ac_t""$INSTALL" 1>&6
9464
9465# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9466# It thinks the first close brace ends the variable substitution.
9467test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9468
9469test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9470
9471test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9472
9473
9474case ${INSTALL} in
9475 /* ) # Absolute
9476 ;;
9477 ?:* ) # Drive letter, considered as absolute.
9478 ;;
9479 *)
9480 INSTALL=`pwd`/${INSTALL} ;;
9481esac
9482
9483case ${host} in
9484 *-hp-hpux* )
9485 INSTALL_DIR="mkdir"
9486 ;;
9487
9488 *) INSTALL_DIR="$INSTALL -d"
9489 ;;
9490esac
9491
9492
9493case "${host}" in
9494
9495 powerpc-*-darwin* )
9496 INSTALL_PROGRAM="cp -fp"
9497 INSTALL_DATA="cp -fp"
9498 ;;
9499 *)
9500 ;;
9501esac
9502
9503# Extract the first word of "strip", so it can be a program name with args.
9504set dummy strip; ac_word=$2
9505echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9506echo "configure:9507: checking for $ac_word" >&5
9507if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9508 echo $ac_n "(cached) $ac_c" 1>&6
9509else
9510 if test -n "$STRIP"; then
9511 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9512else
9513 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9514 ac_dummy="$PATH"
9515 for ac_dir in $ac_dummy; do
9516 test -z "$ac_dir" && ac_dir=.
9517 if test -f $ac_dir/$ac_word; then
9518 ac_cv_prog_STRIP="strip"
9519 break
9520 fi
9521 done
9522 IFS="$ac_save_ifs"
9523 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9524fi
9525fi
9526STRIP="$ac_cv_prog_STRIP"
9527if test -n "$STRIP"; then
9528 echo "$ac_t""$STRIP" 1>&6
9529else
9530 echo "$ac_t""no" 1>&6
9531fi
9532
9533
9534echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9535echo "configure:9536: checking if make is GNU make" >&5
9536if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9537 echo $ac_n "(cached) $ac_c" 1>&6
9538else
9539
9540 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9541 egrep -s GNU > /dev/null); then
9542 wx_cv_prog_makeisgnu="yes"
9543 else
9544 wx_cv_prog_makeisgnu="no"
9545 fi
9546
9547fi
9548
9549echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9550
9551if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9552 IF_GNU_MAKE=""
9553else
9554 IF_GNU_MAKE="#"
9555fi
9556
9557
9558
9559if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9560echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9561echo "configure:9562: checking if make supports VPATH" >&5
9562if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9563 echo $ac_n "(cached) $ac_c" 1>&6
9564else
9565
9566cat - << EOF > confMake
9567check : file
9568 cp \$? \$@
9569 cp \$? final_file
9570EOF
9571
9572if test ! -d sub ; then
9573 mkdir sub
9574fi
9575echo dummy > sub/file
9576${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9577RESULT=$?
9578rm -f sub/file check final_file confMake
9579rmdir sub
9580if test "$RESULT" = 0; then
9581 wx_cv_prog_makevpath="yes"
9582else
9583 wx_cv_prog_makevpath="no"
9584fi
9585
9586fi
9587
9588echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9589
9590if test "x$wx_cv_prog_makevpath" != "xyes"; then
9591{ echo "configure: error:
9592You need a make-utility that is able to use the variable
9593VPATH correctly.
9594If your version of make does not support VPATH correctly,
9595please install GNU-make (possibly as gmake), and start
9596configure with the following command:
9597export MAKE=gmake; ./configure for sh-type shells
9598setenv MAKE gmake; ./configure for csh-type shells
9599Also please do remember to use gmake in this case every time
9600you are trying to compile.
9601" 1>&2; exit 1; }
9602fi fi
9603for ac_prog in 'bison -y' byacc
9604do
9605# Extract the first word of "$ac_prog", so it can be a program name with args.
9606set dummy $ac_prog; ac_word=$2
9607echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9608echo "configure:9609: checking for $ac_word" >&5
9609if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9610 echo $ac_n "(cached) $ac_c" 1>&6
9611else
9612 if test -n "$YACC"; then
9613 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9614else
9615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9616 ac_dummy="$PATH"
9617 for ac_dir in $ac_dummy; do
9618 test -z "$ac_dir" && ac_dir=.
9619 if test -f $ac_dir/$ac_word; then
9620 ac_cv_prog_YACC="$ac_prog"
9621 break
9622 fi
9623 done
9624 IFS="$ac_save_ifs"
9625fi
9626fi
9627YACC="$ac_cv_prog_YACC"
9628if test -n "$YACC"; then
9629 echo "$ac_t""$YACC" 1>&6
9630else
9631 echo "$ac_t""no" 1>&6
9632fi
9633
9634test -n "$YACC" && break
9635done
9636test -n "$YACC" || YACC="yacc"
9637
9638
9639# Extract the first word of "flex", so it can be a program name with args.
9640set dummy flex; ac_word=$2
9641echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9642echo "configure:9643: checking for $ac_word" >&5
9643if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9644 echo $ac_n "(cached) $ac_c" 1>&6
9645else
9646 if test -n "$LEX"; then
9647 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9648else
9649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9650 ac_dummy="$PATH"
9651 for ac_dir in $ac_dummy; do
9652 test -z "$ac_dir" && ac_dir=.
9653 if test -f $ac_dir/$ac_word; then
9654 ac_cv_prog_LEX="flex"
9655 break
9656 fi
9657 done
9658 IFS="$ac_save_ifs"
9659 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9660fi
9661fi
9662LEX="$ac_cv_prog_LEX"
9663if test -n "$LEX"; then
9664 echo "$ac_t""$LEX" 1>&6
9665else
9666 echo "$ac_t""no" 1>&6
9667fi
9668
9669if test -z "$LEXLIB"
9670then
9671 case "$LEX" in
9672 flex*) ac_lib=fl ;;
9673 *) ac_lib=l ;;
9674 esac
9675 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9676echo "configure:9677: checking for yywrap in -l$ac_lib" >&5
9677ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9678if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9679 echo $ac_n "(cached) $ac_c" 1>&6
9680else
9681 ac_save_LIBS="$LIBS"
9682LIBS="-l$ac_lib $LIBS"
9683cat > conftest.$ac_ext <<EOF
9684#line 9685 "configure"
9685#include "confdefs.h"
9686/* Override any gcc2 internal prototype to avoid an error. */
9687/* We use char because int might match the return type of a gcc2
9688 builtin and then its argument prototype would still apply. */
9689char yywrap();
9690
9691int main() {
9692yywrap()
9693; return 0; }
9694EOF
9695if { (eval echo configure:9696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9696 rm -rf conftest*
9697 eval "ac_cv_lib_$ac_lib_var=yes"
9698else
9699 echo "configure: failed program was:" >&5
9700 cat conftest.$ac_ext >&5
9701 rm -rf conftest*
9702 eval "ac_cv_lib_$ac_lib_var=no"
9703fi
9704rm -f conftest*
9705LIBS="$ac_save_LIBS"
9706
9707fi
9708if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9709 echo "$ac_t""yes" 1>&6
9710 LEXLIB="-l$ac_lib"
9711else
9712 echo "$ac_t""no" 1>&6
9713fi
9714
9715fi
9716
9717
9718echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9719echo "configure:9720: checking whether ln -s works" >&5
9720if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9721 echo $ac_n "(cached) $ac_c" 1>&6
9722else
9723 rm -f conftestdata
9724if ln -s X conftestdata 2>/dev/null
9725then
9726 rm -f conftestdata
9727 ac_cv_prog_LN_S="ln -s"
9728else
9729 ac_cv_prog_LN_S=ln
9730fi
9731fi
9732LN_S="$ac_cv_prog_LN_S"
9733if test "$ac_cv_prog_LN_S" = "ln -s"; then
9734 echo "$ac_t""yes" 1>&6
9735else
9736 echo "$ac_t""no" 1>&6
9737fi
9738
9739
9740case "${host}" in
9741 *-pc-os2_emx | *-pc-os2-emx )
9742 LIBS="$LIBS -lstdcpp"
9743 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9744 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
9745echo "configure:9746: checking for drand48 in -lcExt" >&5
9746ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9747if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9748 echo $ac_n "(cached) $ac_c" 1>&6
9749else
9750 ac_save_LIBS="$LIBS"
9751LIBS="-lcExt $LIBS"
9752cat > conftest.$ac_ext <<EOF
9753#line 9754 "configure"
9754#include "confdefs.h"
9755/* Override any gcc2 internal prototype to avoid an error. */
9756/* We use char because int might match the return type of a gcc2
9757 builtin and then its argument prototype would still apply. */
9758char drand48();
9759
9760int main() {
9761drand48()
9762; return 0; }
9763EOF
9764if { (eval echo configure:9765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9765 rm -rf conftest*
9766 eval "ac_cv_lib_$ac_lib_var=yes"
9767else
9768 echo "configure: failed program was:" >&5
9769 cat conftest.$ac_ext >&5
9770 rm -rf conftest*
9771 eval "ac_cv_lib_$ac_lib_var=no"
9772fi
9773rm -f conftest*
9774LIBS="$ac_save_LIBS"
9775
9776fi
9777if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9778 echo "$ac_t""yes" 1>&6
9779 LIBS="$LIBS -lcExt"
9780else
9781 echo "$ac_t""no" 1>&6
9782fi
9783
9784 else
9785 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9786 fi
9787 ;;
9788esac
9789
9790
9791if test "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
9792 for ac_hdr in strings.h
9793do
9794ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9795echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9796echo "configure:9797: checking for $ac_hdr" >&5
9797if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9798 echo $ac_n "(cached) $ac_c" 1>&6
9799else
9800 cat > conftest.$ac_ext <<EOF
9801#line 9802 "configure"
9802#include "confdefs.h"
9803#include <$ac_hdr>
9804EOF
9805ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9806{ (eval echo configure:9807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9807ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9808if test -z "$ac_err"; then
9809 rm -rf conftest*
9810 eval "ac_cv_header_$ac_safe=yes"
9811else
9812 echo "$ac_err" >&5
9813 echo "configure: failed program was:" >&5
9814 cat conftest.$ac_ext >&5
9815 rm -rf conftest*
9816 eval "ac_cv_header_$ac_safe=no"
9817fi
9818rm -f conftest*
9819fi
9820if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9821 echo "$ac_t""yes" 1>&6
9822 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9823 cat >> confdefs.h <<EOF
9824#define $ac_tr_hdr 1
9825EOF
9826
9827else
9828 echo "$ac_t""no" 1>&6
9829fi
9830done
9831
9832fi
9833
9834for ac_hdr in stdlib.h
9835do
9836ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9837echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9838echo "configure:9839: checking for $ac_hdr" >&5
9839if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9840 echo $ac_n "(cached) $ac_c" 1>&6
9841else
9842 cat > conftest.$ac_ext <<EOF
9843#line 9844 "configure"
9844#include "confdefs.h"
9845#include <$ac_hdr>
9846EOF
9847ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9848{ (eval echo configure:9849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9849ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9850if test -z "$ac_err"; then
9851 rm -rf conftest*
9852 eval "ac_cv_header_$ac_safe=yes"
9853else
9854 echo "$ac_err" >&5
9855 echo "configure: failed program was:" >&5
9856 cat conftest.$ac_ext >&5
9857 rm -rf conftest*
9858 eval "ac_cv_header_$ac_safe=no"
9859fi
9860rm -f conftest*
9861fi
9862if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9863 echo "$ac_t""yes" 1>&6
9864 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9865 cat >> confdefs.h <<EOF
9866#define $ac_tr_hdr 1
9867EOF
9868
9869else
9870 echo "$ac_t""no" 1>&6
9871fi
9872done
9873
9874for ac_hdr in malloc.h
9875do
9876ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9877echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9878echo "configure:9879: checking for $ac_hdr" >&5
9879if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9880 echo $ac_n "(cached) $ac_c" 1>&6
9881else
9882 cat > conftest.$ac_ext <<EOF
9883#line 9884 "configure"
9884#include "confdefs.h"
9885#include <$ac_hdr>
9886EOF
9887ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9888{ (eval echo configure:9889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9889ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9890if test -z "$ac_err"; then
9891 rm -rf conftest*
9892 eval "ac_cv_header_$ac_safe=yes"
9893else
9894 echo "$ac_err" >&5
9895 echo "configure: failed program was:" >&5
9896 cat conftest.$ac_ext >&5
9897 rm -rf conftest*
9898 eval "ac_cv_header_$ac_safe=no"
9899fi
9900rm -f conftest*
9901fi
9902if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9903 echo "$ac_t""yes" 1>&6
9904 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9905 cat >> confdefs.h <<EOF
9906#define $ac_tr_hdr 1
9907EOF
9908
9909else
9910 echo "$ac_t""no" 1>&6
9911fi
9912done
9913
9914for ac_hdr in unistd.h
9915do
9916ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9917echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9918echo "configure:9919: checking for $ac_hdr" >&5
9919if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9920 echo $ac_n "(cached) $ac_c" 1>&6
9921else
9922 cat > conftest.$ac_ext <<EOF
9923#line 9924 "configure"
9924#include "confdefs.h"
9925#include <$ac_hdr>
9926EOF
9927ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9928{ (eval echo configure:9929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9929ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9930if test -z "$ac_err"; then
9931 rm -rf conftest*
9932 eval "ac_cv_header_$ac_safe=yes"
9933else
9934 echo "$ac_err" >&5
9935 echo "configure: failed program was:" >&5
9936 cat conftest.$ac_ext >&5
9937 rm -rf conftest*
9938 eval "ac_cv_header_$ac_safe=no"
9939fi
9940rm -f conftest*
9941fi
9942if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9943 echo "$ac_t""yes" 1>&6
9944 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9945 cat >> confdefs.h <<EOF
9946#define $ac_tr_hdr 1
9947EOF
9948
9949else
9950 echo "$ac_t""no" 1>&6
9951fi
9952done
9953
9954for ac_hdr in wchar.h
9955do
9956ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9957echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9958echo "configure:9959: checking for $ac_hdr" >&5
9959if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9960 echo $ac_n "(cached) $ac_c" 1>&6
9961else
9962 cat > conftest.$ac_ext <<EOF
9963#line 9964 "configure"
9964#include "confdefs.h"
9965#include <$ac_hdr>
9966EOF
9967ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9968{ (eval echo configure:9969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9969ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9970if test -z "$ac_err"; then
9971 rm -rf conftest*
9972 eval "ac_cv_header_$ac_safe=yes"
9973else
9974 echo "$ac_err" >&5
9975 echo "configure: failed program was:" >&5
9976 cat conftest.$ac_ext >&5
9977 rm -rf conftest*
9978 eval "ac_cv_header_$ac_safe=no"
9979fi
9980rm -f conftest*
9981fi
9982if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9983 echo "$ac_t""yes" 1>&6
9984 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9985 cat >> confdefs.h <<EOF
9986#define $ac_tr_hdr 1
9987EOF
9988
9989else
9990 echo "$ac_t""no" 1>&6
9991fi
9992done
9993
9994
9995if test "$ac_cv_header_wchar_h" != "yes"; then
9996 for ac_hdr in wcstr.h
9997do
9998ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9999echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10000echo "configure:10001: checking for $ac_hdr" >&5
10001if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10002 echo $ac_n "(cached) $ac_c" 1>&6
10003else
10004 cat > conftest.$ac_ext <<EOF
10005#line 10006 "configure"
10006#include "confdefs.h"
10007#include <$ac_hdr>
10008EOF
10009ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10010{ (eval echo configure:10011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10011ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10012if test -z "$ac_err"; then
10013 rm -rf conftest*
10014 eval "ac_cv_header_$ac_safe=yes"
10015else
10016 echo "$ac_err" >&5
10017 echo "configure: failed program was:" >&5
10018 cat conftest.$ac_ext >&5
10019 rm -rf conftest*
10020 eval "ac_cv_header_$ac_safe=no"
10021fi
10022rm -f conftest*
10023fi
10024if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10025 echo "$ac_t""yes" 1>&6
10026 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10027 cat >> confdefs.h <<EOF
10028#define $ac_tr_hdr 1
10029EOF
10030
10031else
10032 echo "$ac_t""no" 1>&6
10033fi
10034done
10035
10036fi
10037
10038for ac_hdr in fnmatch.h
10039do
10040ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10041echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10042echo "configure:10043: checking for $ac_hdr" >&5
10043if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10044 echo $ac_n "(cached) $ac_c" 1>&6
10045else
10046 cat > conftest.$ac_ext <<EOF
10047#line 10048 "configure"
10048#include "confdefs.h"
10049#include <$ac_hdr>
10050EOF
10051ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10052{ (eval echo configure:10053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10053ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10054if test -z "$ac_err"; then
10055 rm -rf conftest*
10056 eval "ac_cv_header_$ac_safe=yes"
10057else
10058 echo "$ac_err" >&5
10059 echo "configure: failed program was:" >&5
10060 cat conftest.$ac_ext >&5
10061 rm -rf conftest*
10062 eval "ac_cv_header_$ac_safe=no"
10063fi
10064rm -f conftest*
10065fi
10066if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10067 echo "$ac_t""yes" 1>&6
10068 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10069 cat >> confdefs.h <<EOF
10070#define $ac_tr_hdr 1
10071EOF
10072
10073else
10074 echo "$ac_t""no" 1>&6
10075fi
10076done
10077
10078
10079if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10080 for ac_func in fnmatch
10081do
10082echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10083echo "configure:10084: checking for $ac_func" >&5
10084if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10085 echo $ac_n "(cached) $ac_c" 1>&6
10086else
10087 cat > conftest.$ac_ext <<EOF
10088#line 10089 "configure"
10089#include "confdefs.h"
10090/* System header to define __stub macros and hopefully few prototypes,
10091 which can conflict with char $ac_func(); below. */
10092#include <assert.h>
10093/* Override any gcc2 internal prototype to avoid an error. */
10094/* We use char because int might match the return type of a gcc2
10095 builtin and then its argument prototype would still apply. */
10096char $ac_func();
10097
10098int main() {
10099
10100/* The GNU C library defines this for functions which it implements
10101 to always fail with ENOSYS. Some functions are actually named
10102 something starting with __ and the normal name is an alias. */
10103#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10104choke me
10105#else
10106$ac_func();
10107#endif
10108
10109; return 0; }
10110EOF
10111if { (eval echo configure:10112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10112 rm -rf conftest*
10113 eval "ac_cv_func_$ac_func=yes"
10114else
10115 echo "configure: failed program was:" >&5
10116 cat conftest.$ac_ext >&5
10117 rm -rf conftest*
10118 eval "ac_cv_func_$ac_func=no"
10119fi
10120rm -f conftest*
10121fi
10122
10123if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10124 echo "$ac_t""yes" 1>&6
10125 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10126 cat >> confdefs.h <<EOF
10127#define $ac_tr_func 1
10128EOF
10129
10130else
10131 echo "$ac_t""no" 1>&6
10132fi
10133done
10134
10135fi
10136
10137for ac_hdr in langinfo.h
10138do
10139ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10140echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10141echo "configure:10142: checking for $ac_hdr" >&5
10142if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10143 echo $ac_n "(cached) $ac_c" 1>&6
10144else
10145 cat > conftest.$ac_ext <<EOF
10146#line 10147 "configure"
10147#include "confdefs.h"
10148#include <$ac_hdr>
10149EOF
10150ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10151{ (eval echo configure:10152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10152ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10153if test -z "$ac_err"; then
10154 rm -rf conftest*
10155 eval "ac_cv_header_$ac_safe=yes"
10156else
10157 echo "$ac_err" >&5
10158 echo "configure: failed program was:" >&5
10159 cat conftest.$ac_ext >&5
10160 rm -rf conftest*
10161 eval "ac_cv_header_$ac_safe=no"
10162fi
10163rm -f conftest*
10164fi
10165if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10166 echo "$ac_t""yes" 1>&6
10167 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10168 cat >> confdefs.h <<EOF
10169#define $ac_tr_hdr 1
10170EOF
10171
10172else
10173 echo "$ac_t""no" 1>&6
10174fi
10175done
10176
10177
10178case "${host}" in
10179 *-pc-os2_emx | *-pc-os2-emx )
10180 if test $ac_cv_header_langinfo_h = "yes"; then
10181 LIBS="$LIBS -lintl"
10182 fi
10183 ;;
10184esac
10185
10186if test "$wxUSE_GUI" = "yes"; then
10187 if test "$wxUSE_UNIX" = "yes"; then
10188 for ac_hdr in X11/XKBlib.h
10189do
10190ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10191echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10192echo "configure:10193: checking for $ac_hdr" >&5
10193if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10194 echo $ac_n "(cached) $ac_c" 1>&6
10195else
10196 cat > conftest.$ac_ext <<EOF
10197#line 10198 "configure"
10198#include "confdefs.h"
10199#include <$ac_hdr>
10200EOF
10201ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10202{ (eval echo configure:10203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10203ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10204if test -z "$ac_err"; then
10205 rm -rf conftest*
10206 eval "ac_cv_header_$ac_safe=yes"
10207else
10208 echo "$ac_err" >&5
10209 echo "configure: failed program was:" >&5
10210 cat conftest.$ac_ext >&5
10211 rm -rf conftest*
10212 eval "ac_cv_header_$ac_safe=no"
10213fi
10214rm -f conftest*
10215fi
10216if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10217 echo "$ac_t""yes" 1>&6
10218 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10219 cat >> confdefs.h <<EOF
10220#define $ac_tr_hdr 1
10221EOF
10222
10223else
10224 echo "$ac_t""no" 1>&6
10225fi
10226done
10227
10228 fi
10229fi
10230
10231
10232echo $ac_n "checking for working const""... $ac_c" 1>&6
10233echo "configure:10234: checking for working const" >&5
10234if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10235 echo $ac_n "(cached) $ac_c" 1>&6
10236else
10237 cat > conftest.$ac_ext <<EOF
10238#line 10239 "configure"
10239#include "confdefs.h"
10240
10241int main() {
10242
10243/* Ultrix mips cc rejects this. */
10244typedef int charset[2]; const charset x;
10245/* SunOS 4.1.1 cc rejects this. */
10246char const *const *ccp;
10247char **p;
10248/* NEC SVR4.0.2 mips cc rejects this. */
10249struct point {int x, y;};
10250static struct point const zero = {0,0};
10251/* AIX XL C 1.02.0.0 rejects this.
10252 It does not let you subtract one const X* pointer from another in an arm
10253 of an if-expression whose if-part is not a constant expression */
10254const char *g = "string";
10255ccp = &g + (g ? g-g : 0);
10256/* HPUX 7.0 cc rejects these. */
10257++ccp;
10258p = (char**) ccp;
10259ccp = (char const *const *) p;
10260{ /* SCO 3.2v4 cc rejects this. */
10261 char *t;
10262 char const *s = 0 ? (char *) 0 : (char const *) 0;
10263
10264 *t++ = 0;
10265}
10266{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10267 int x[] = {25, 17};
10268 const int *foo = &x[0];
10269 ++foo;
10270}
10271{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10272 typedef const int *iptr;
10273 iptr p = 0;
10274 ++p;
10275}
10276{ /* AIX XL C 1.02.0.0 rejects this saying
10277 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10278 struct s { int j; const int *ap[3]; };
10279 struct s *b; b->j = 5;
10280}
10281{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10282 const int foo = 10;
10283}
10284
10285; return 0; }
10286EOF
10287if { (eval echo configure:10288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10288 rm -rf conftest*
10289 ac_cv_c_const=yes
10290else
10291 echo "configure: failed program was:" >&5
10292 cat conftest.$ac_ext >&5
10293 rm -rf conftest*
10294 ac_cv_c_const=no
10295fi
10296rm -f conftest*
10297fi
10298
10299echo "$ac_t""$ac_cv_c_const" 1>&6
10300if test $ac_cv_c_const = no; then
10301 cat >> confdefs.h <<\EOF
10302#define const
10303EOF
10304
10305fi
10306
10307echo $ac_n "checking for inline""... $ac_c" 1>&6
10308echo "configure:10309: checking for inline" >&5
10309if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10310 echo $ac_n "(cached) $ac_c" 1>&6
10311else
10312 ac_cv_c_inline=no
10313for ac_kw in inline __inline__ __inline; do
10314 cat > conftest.$ac_ext <<EOF
10315#line 10316 "configure"
10316#include "confdefs.h"
10317
10318int main() {
10319} $ac_kw foo() {
10320; return 0; }
10321EOF
10322if { (eval echo configure:10323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10323 rm -rf conftest*
10324 ac_cv_c_inline=$ac_kw; break
10325else
10326 echo "configure: failed program was:" >&5
10327 cat conftest.$ac_ext >&5
10328fi
10329rm -f conftest*
10330done
10331
10332fi
10333
10334echo "$ac_t""$ac_cv_c_inline" 1>&6
10335case "$ac_cv_c_inline" in
10336 inline | yes) ;;
10337 no) cat >> confdefs.h <<\EOF
10338#define inline
10339EOF
10340 ;;
10341 *) cat >> confdefs.h <<EOF
10342#define inline $ac_cv_c_inline
10343EOF
10344 ;;
10345esac
10346
10347
10348echo $ac_n "checking size of char""... $ac_c" 1>&6
10349echo "configure:10350: checking size of char" >&5
10350if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10351 echo $ac_n "(cached) $ac_c" 1>&6
10352else
10353 if test "$cross_compiling" = yes; then
10354 ac_cv_sizeof_char=1
10355else
10356 cat > conftest.$ac_ext <<EOF
10357#line 10358 "configure"
10358#include "confdefs.h"
10359#include <stdio.h>
10360#include <sys/types.h>
10361main()
10362{
10363 FILE *f=fopen("conftestval", "w");
10364 if (!f) exit(1);
10365 fprintf(f, "%d\n", sizeof(char));
10366 exit(0);
10367}
10368EOF
10369if { (eval echo configure:10370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10370then
10371 ac_cv_sizeof_char=`cat conftestval`
10372else
10373 echo "configure: failed program was:" >&5
10374 cat conftest.$ac_ext >&5
10375 rm -fr conftest*
10376 ac_cv_sizeof_char=0
10377fi
10378rm -fr conftest*
10379fi
10380
10381fi
10382echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10383cat >> confdefs.h <<EOF
10384#define SIZEOF_CHAR $ac_cv_sizeof_char
10385EOF
10386
10387
10388echo $ac_n "checking size of short""... $ac_c" 1>&6
10389echo "configure:10390: checking size of short" >&5
10390if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10391 echo $ac_n "(cached) $ac_c" 1>&6
10392else
10393 if test "$cross_compiling" = yes; then
10394 ac_cv_sizeof_short=2
10395else
10396 cat > conftest.$ac_ext <<EOF
10397#line 10398 "configure"
10398#include "confdefs.h"
10399#include <stdio.h>
10400#include <sys/types.h>
10401main()
10402{
10403 FILE *f=fopen("conftestval", "w");
10404 if (!f) exit(1);
10405 fprintf(f, "%d\n", sizeof(short));
10406 exit(0);
10407}
10408EOF
10409if { (eval echo configure:10410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10410then
10411 ac_cv_sizeof_short=`cat conftestval`
10412else
10413 echo "configure: failed program was:" >&5
10414 cat conftest.$ac_ext >&5
10415 rm -fr conftest*
10416 ac_cv_sizeof_short=0
10417fi
10418rm -fr conftest*
10419fi
10420
10421fi
10422echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10423cat >> confdefs.h <<EOF
10424#define SIZEOF_SHORT $ac_cv_sizeof_short
10425EOF
10426
10427
10428echo $ac_n "checking size of void *""... $ac_c" 1>&6
10429echo "configure:10430: checking size of void *" >&5
10430if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10431 echo $ac_n "(cached) $ac_c" 1>&6
10432else
10433 if test "$cross_compiling" = yes; then
10434 ac_cv_sizeof_void_p=4
10435else
10436 cat > conftest.$ac_ext <<EOF
10437#line 10438 "configure"
10438#include "confdefs.h"
10439#include <stdio.h>
10440#include <sys/types.h>
10441main()
10442{
10443 FILE *f=fopen("conftestval", "w");
10444 if (!f) exit(1);
10445 fprintf(f, "%d\n", sizeof(void *));
10446 exit(0);
10447}
10448EOF
10449if { (eval echo configure:10450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10450then
10451 ac_cv_sizeof_void_p=`cat conftestval`
10452else
10453 echo "configure: failed program was:" >&5
10454 cat conftest.$ac_ext >&5
10455 rm -fr conftest*
10456 ac_cv_sizeof_void_p=0
10457fi
10458rm -fr conftest*
10459fi
10460
10461fi
10462echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10463cat >> confdefs.h <<EOF
10464#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10465EOF
10466
10467
10468echo $ac_n "checking size of int""... $ac_c" 1>&6
10469echo "configure:10470: checking size of int" >&5
10470if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10471 echo $ac_n "(cached) $ac_c" 1>&6
10472else
10473 if test "$cross_compiling" = yes; then
10474 ac_cv_sizeof_int=4
10475else
10476 cat > conftest.$ac_ext <<EOF
10477#line 10478 "configure"
10478#include "confdefs.h"
10479#include <stdio.h>
10480#include <sys/types.h>
10481main()
10482{
10483 FILE *f=fopen("conftestval", "w");
10484 if (!f) exit(1);
10485 fprintf(f, "%d\n", sizeof(int));
10486 exit(0);
10487}
10488EOF
10489if { (eval echo configure:10490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10490then
10491 ac_cv_sizeof_int=`cat conftestval`
10492else
10493 echo "configure: failed program was:" >&5
10494 cat conftest.$ac_ext >&5
10495 rm -fr conftest*
10496 ac_cv_sizeof_int=0
10497fi
10498rm -fr conftest*
10499fi
10500
10501fi
10502echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10503cat >> confdefs.h <<EOF
10504#define SIZEOF_INT $ac_cv_sizeof_int
10505EOF
10506
10507
10508echo $ac_n "checking size of long""... $ac_c" 1>&6
10509echo "configure:10510: checking size of long" >&5
10510if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10511 echo $ac_n "(cached) $ac_c" 1>&6
10512else
10513 if test "$cross_compiling" = yes; then
10514 ac_cv_sizeof_long=4
10515else
10516 cat > conftest.$ac_ext <<EOF
10517#line 10518 "configure"
10518#include "confdefs.h"
10519#include <stdio.h>
10520#include <sys/types.h>
10521main()
10522{
10523 FILE *f=fopen("conftestval", "w");
10524 if (!f) exit(1);
10525 fprintf(f, "%d\n", sizeof(long));
10526 exit(0);
10527}
10528EOF
10529if { (eval echo configure:10530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10530then
10531 ac_cv_sizeof_long=`cat conftestval`
10532else
10533 echo "configure: failed program was:" >&5
10534 cat conftest.$ac_ext >&5
10535 rm -fr conftest*
10536 ac_cv_sizeof_long=0
10537fi
10538rm -fr conftest*
10539fi
10540
10541fi
10542echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10543cat >> confdefs.h <<EOF
10544#define SIZEOF_LONG $ac_cv_sizeof_long
10545EOF
10546
10547
10548
10549case "${host}" in
10550 arm-*-linux* )
10551 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10552echo "configure:10553: checking size of long long" >&5
10553if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10554 echo $ac_n "(cached) $ac_c" 1>&6
10555else
10556 if test "$cross_compiling" = yes; then
10557 ac_cv_sizeof_long_long=8
10558else
10559 cat > conftest.$ac_ext <<EOF
10560#line 10561 "configure"
10561#include "confdefs.h"
10562#include <stdio.h>
10563#include <sys/types.h>
10564main()
10565{
10566 FILE *f=fopen("conftestval", "w");
10567 if (!f) exit(1);
10568 fprintf(f, "%d\n", sizeof(long long));
10569 exit(0);
10570}
10571EOF
10572if { (eval echo configure:10573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10573then
10574 ac_cv_sizeof_long_long=`cat conftestval`
10575else
10576 echo "configure: failed program was:" >&5
10577 cat conftest.$ac_ext >&5
10578 rm -fr conftest*
10579 ac_cv_sizeof_long_long=0
10580fi
10581rm -fr conftest*
10582fi
10583
10584fi
10585echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10586cat >> confdefs.h <<EOF
10587#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10588EOF
10589
10590
10591 ;;
10592 *-hp-hpux* )
10593 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10594echo "configure:10595: checking size of long long" >&5
10595if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10596 echo $ac_n "(cached) $ac_c" 1>&6
10597else
10598 if test "$cross_compiling" = yes; then
10599 ac_cv_sizeof_long_long=0
10600else
10601 cat > conftest.$ac_ext <<EOF
10602#line 10603 "configure"
10603#include "confdefs.h"
10604#include <stdio.h>
10605#include <sys/types.h>
10606main()
10607{
10608 FILE *f=fopen("conftestval", "w");
10609 if (!f) exit(1);
10610 fprintf(f, "%d\n", sizeof(long long));
10611 exit(0);
10612}
10613EOF
10614if { (eval echo configure:10615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10615then
10616 ac_cv_sizeof_long_long=`cat conftestval`
10617else
10618 echo "configure: failed program was:" >&5
10619 cat conftest.$ac_ext >&5
10620 rm -fr conftest*
10621 ac_cv_sizeof_long_long=0
10622fi
10623rm -fr conftest*
10624fi
10625
10626fi
10627echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10628cat >> confdefs.h <<EOF
10629#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10630EOF
10631
10632
10633 if test "$ac_cv_sizeof_long_long" != "0"; then
10634 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10635 fi
10636 ;;
10637 * )
10638 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10639echo "configure:10640: checking size of long long" >&5
10640if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10641 echo $ac_n "(cached) $ac_c" 1>&6
10642else
10643 if test "$cross_compiling" = yes; then
10644 ac_cv_sizeof_long_long=0
10645else
10646 cat > conftest.$ac_ext <<EOF
10647#line 10648 "configure"
10648#include "confdefs.h"
10649#include <stdio.h>
10650#include <sys/types.h>
10651main()
10652{
10653 FILE *f=fopen("conftestval", "w");
10654 if (!f) exit(1);
10655 fprintf(f, "%d\n", sizeof(long long));
10656 exit(0);
10657}
10658EOF
10659if { (eval echo configure:10660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10660then
10661 ac_cv_sizeof_long_long=`cat conftestval`
10662else
10663 echo "configure: failed program was:" >&5
10664 cat conftest.$ac_ext >&5
10665 rm -fr conftest*
10666 ac_cv_sizeof_long_long=0
10667fi
10668rm -fr conftest*
10669fi
10670
10671fi
10672echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10673cat >> confdefs.h <<EOF
10674#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10675EOF
10676
10677
10678esac
10679
10680echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10681echo "configure:10682: checking size of wchar_t" >&5
10682if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10683 echo $ac_n "(cached) $ac_c" 1>&6
10684else
10685
10686 if test "$cross_compiling" = yes; then
10687
10688 case "${host}" in
10689 *-pc-msdosdjgpp )
10690 wx_cv_sizeof_wchar_t=0
10691 ;;
10692 * )
10693 wx_cv_sizeof_wchar_t=4
10694 ;;
10695 esac
10696
10697
10698else
10699 cat > conftest.$ac_ext <<EOF
10700#line 10701 "configure"
10701#include "confdefs.h"
10702
10703 /* DJGPP only has fake wchar_t: */
10704 #ifdef __DJGPP__
10705 # error "fake wchar_t"
10706 #endif
10707 #ifdef HAVE_WCHAR_H
10708 # ifdef __CYGWIN__
10709 # include <stddef.h>
10710 # endif
10711 # include <wchar.h>
10712 #endif
10713 #ifdef HAVE_STDLIB_H
10714 # include <stdlib.h>
10715 #endif
10716 #include <stdio.h>
10717 int main()
10718 {
10719 FILE *f=fopen("conftestval", "w");
10720 if (!f) exit(1);
10721 fprintf(f, "%i", sizeof(wchar_t));
10722 exit(0);
10723 }
10724
10725EOF
10726if { (eval echo configure:10727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10727then
10728 wx_cv_sizeof_wchar_t=`cat conftestval`
10729else
10730 echo "configure: failed program was:" >&5
10731 cat conftest.$ac_ext >&5
10732 rm -fr conftest*
10733 wx_cv_sizeof_wchar_t=0
10734fi
10735rm -fr conftest*
10736fi
10737
10738
10739fi
10740
10741echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10742
10743cat >> confdefs.h <<EOF
10744#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10745EOF
10746
10747
10748# Check whether --enable-largefile or --disable-largefile was given.
10749if test "${enable_largefile+set}" = set; then
10750 enableval="$enable_largefile"
10751 :
10752fi
10753
10754if test "$enable_largefile" != no; then
10755 wx_largefile=no
10756
10757 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10758echo "configure:10759: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10759if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10760 echo $ac_n "(cached) $ac_c" 1>&6
10761else
10762
10763 cat > conftest.$ac_ext <<EOF
10764#line 10765 "configure"
10765#include "confdefs.h"
10766#define _FILE_OFFSET_BITS 64
10767 #include <sys/types.h>
10768int main() {
10769typedef struct {
10770 unsigned int field: sizeof(off_t) == 8;
10771} wxlf;
10772
10773; return 0; }
10774EOF
10775if { (eval echo configure:10776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10776 rm -rf conftest*
10777 ac_cv_sys_file_offset_bits=64
10778else
10779 echo "configure: failed program was:" >&5
10780 cat conftest.$ac_ext >&5
10781 rm -rf conftest*
10782 ac_cv_sys_file_offset_bits=no
10783fi
10784rm -f conftest*
10785
10786
10787fi
10788
10789echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10790
10791 if test "$ac_cv_sys_file_offset_bits" != no; then
10792 wx_largefile=yes
10793 cat >> confdefs.h <<EOF
10794#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10795EOF
10796
10797 fi
10798
10799 if test "x$wx_largefile" != "xyes"; then
10800
10801 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10802echo "configure:10803: checking for _LARGE_FILES value needed for large files" >&5
10803if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10804 echo $ac_n "(cached) $ac_c" 1>&6
10805else
10806
10807 cat > conftest.$ac_ext <<EOF
10808#line 10809 "configure"
10809#include "confdefs.h"
10810#define _LARGE_FILES 1
10811 #include <sys/types.h>
10812int main() {
10813typedef struct {
10814 unsigned int field: sizeof(off_t) == 8;
10815} wxlf;
10816
10817; return 0; }
10818EOF
10819if { (eval echo configure:10820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10820 rm -rf conftest*
10821 ac_cv_sys_large_files=1
10822else
10823 echo "configure: failed program was:" >&5
10824 cat conftest.$ac_ext >&5
10825 rm -rf conftest*
10826 ac_cv_sys_large_files=no
10827fi
10828rm -f conftest*
10829
10830
10831fi
10832
10833echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10834
10835 if test "$ac_cv_sys_large_files" != no; then
10836 wx_largefile=yes
10837 cat >> confdefs.h <<EOF
10838#define _LARGE_FILES $ac_cv_sys_large_files
10839EOF
10840
10841 fi
10842
10843 fi
10844
10845 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10846echo "configure:10847: checking if large file support is available" >&5
10847 if test "x$wx_largefile" = "xyes"; then
10848 cat >> confdefs.h <<\EOF
10849#define HAVE_LARGEFILE_SUPPORT 1
10850EOF
10851
10852 fi
10853 echo "$ac_t""$wx_largefile" 1>&6
10854fi
10855
10856
10857if test "x$wx_largefile" = "xyes"; then
10858 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10859 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
10860 else
10861 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
10862 fi
10863 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
10864fi
10865
10866echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10867echo "configure:10868: checking whether byte ordering is bigendian" >&5
10868if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10869 echo $ac_n "(cached) $ac_c" 1>&6
10870else
10871 ac_cv_c_bigendian=unknown
10872# See if sys/param.h defines the BYTE_ORDER macro.
10873cat > conftest.$ac_ext <<EOF
10874#line 10875 "configure"
10875#include "confdefs.h"
10876#include <sys/types.h>
10877#include <sys/param.h>
10878int main() {
10879
10880#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10881 bogus endian macros
10882#endif
10883; return 0; }
10884EOF
10885if { (eval echo configure:10886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10886 rm -rf conftest*
10887 # It does; now see whether it defined to BIG_ENDIAN or not.
10888cat > conftest.$ac_ext <<EOF
10889#line 10890 "configure"
10890#include "confdefs.h"
10891#include <sys/types.h>
10892#include <sys/param.h>
10893int main() {
10894
10895#if BYTE_ORDER != BIG_ENDIAN
10896 not big endian
10897#endif
10898; return 0; }
10899EOF
10900if { (eval echo configure:10901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10901 rm -rf conftest*
10902 ac_cv_c_bigendian=yes
10903else
10904 echo "configure: failed program was:" >&5
10905 cat conftest.$ac_ext >&5
10906 rm -rf conftest*
10907 ac_cv_c_bigendian=no
10908fi
10909rm -f conftest*
10910else
10911 echo "configure: failed program was:" >&5
10912 cat conftest.$ac_ext >&5
10913fi
10914rm -f conftest*
10915if test $ac_cv_c_bigendian = unknown; then
10916if test "$cross_compiling" = yes; then
10917 ac_cv_c_bigendian=unknown
10918else
10919 cat > conftest.$ac_ext <<EOF
10920#line 10921 "configure"
10921#include "confdefs.h"
10922main () {
10923 /* Are we little or big endian? From Harbison&Steele. */
10924 union
10925 {
10926 long l;
10927 char c[sizeof (long)];
10928 } u;
10929 u.l = 1;
10930 exit (u.c[sizeof (long) - 1] == 1);
10931}
10932EOF
10933if { (eval echo configure:10934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10934then
10935 ac_cv_c_bigendian=no
10936else
10937 echo "configure: failed program was:" >&5
10938 cat conftest.$ac_ext >&5
10939 rm -fr conftest*
10940 ac_cv_c_bigendian=yes
10941fi
10942rm -fr conftest*
10943fi
10944
10945fi
10946fi
10947
10948echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10949if test $ac_cv_c_bigendian = unknown; then
10950 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
10951fi
10952if test $ac_cv_c_bigendian = yes; then
10953 cat >> confdefs.h <<\EOF
10954#define WORDS_BIGENDIAN 1
10955EOF
10956
10957fi
10958
10959
10960echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
10961echo "configure:10962: checking how to run the C++ preprocessor" >&5
10962if test -z "$CXXCPP"; then
10963if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
10964 echo $ac_n "(cached) $ac_c" 1>&6
10965else
10966 ac_ext=C
10967# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10968ac_cpp='$CXXCPP $CPPFLAGS'
10969ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10970ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10971cross_compiling=$ac_cv_prog_cxx_cross
10972 CXXCPP="${CXX-g++} -E"
10973 cat > conftest.$ac_ext <<EOF
10974#line 10975 "configure"
10975#include "confdefs.h"
10976#include <stdlib.h>
10977EOF
10978ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10979{ (eval echo configure:10980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10980ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10981if test -z "$ac_err"; then
10982 :
10983else
10984 echo "$ac_err" >&5
10985 echo "configure: failed program was:" >&5
10986 cat conftest.$ac_ext >&5
10987 rm -rf conftest*
10988 CXXCPP=/lib/cpp
10989fi
10990rm -f conftest*
10991 ac_cv_prog_CXXCPP="$CXXCPP"
10992ac_ext=C
10993# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10994ac_cpp='$CXXCPP $CPPFLAGS'
10995ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10996ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10997cross_compiling=$ac_cv_prog_cxx_cross
10998fi
10999fi
11000CXXCPP="$ac_cv_prog_CXXCPP"
11001echo "$ac_t""$CXXCPP" 1>&6
11002
11003
11004 if test "$cross_compiling" = "yes"; then
11005 cat >> confdefs.h <<\EOF
11006#define wxUSE_IOSTREAMH 1
11007EOF
11008
11009 else
11010
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
11018
11019 for ac_hdr in iostream
11020do
11021ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11022echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11023echo "configure:11024: checking for $ac_hdr" >&5
11024if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11025 echo $ac_n "(cached) $ac_c" 1>&6
11026else
11027 cat > conftest.$ac_ext <<EOF
11028#line 11029 "configure"
11029#include "confdefs.h"
11030#include <$ac_hdr>
11031EOF
11032ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11033{ (eval echo configure:11034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11034ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11035if test -z "$ac_err"; then
11036 rm -rf conftest*
11037 eval "ac_cv_header_$ac_safe=yes"
11038else
11039 echo "$ac_err" >&5
11040 echo "configure: failed program was:" >&5
11041 cat conftest.$ac_ext >&5
11042 rm -rf conftest*
11043 eval "ac_cv_header_$ac_safe=no"
11044fi
11045rm -f conftest*
11046fi
11047if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11048 echo "$ac_t""yes" 1>&6
11049 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11050 cat >> confdefs.h <<EOF
11051#define $ac_tr_hdr 1
11052EOF
11053
11054else
11055 echo "$ac_t""no" 1>&6
11056fi
11057done
11058
11059
11060 if test "$ac_cv_header_iostream" = "yes" ; then
11061 :
11062 else
11063 cat >> confdefs.h <<\EOF
11064#define wxUSE_IOSTREAMH 1
11065EOF
11066
11067 fi
11068
11069 ac_ext=c
11070# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11071ac_cpp='$CPP $CPPFLAGS'
11072ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11073ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11074cross_compiling=$ac_cv_prog_cc_cross
11075
11076 fi
11077
11078
11079
11080 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
11081echo "configure:11082: checking if C++ compiler supports bool" >&5
11082if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11083 echo $ac_n "(cached) $ac_c" 1>&6
11084else
11085
11086
11087 ac_ext=C
11088# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11089ac_cpp='$CXXCPP $CPPFLAGS'
11090ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11091ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11092cross_compiling=$ac_cv_prog_cxx_cross
11093
11094
11095 cat > conftest.$ac_ext <<EOF
11096#line 11097 "configure"
11097#include "confdefs.h"
11098
11099
11100int main() {
11101
11102 bool b = true;
11103
11104 return 0;
11105
11106; return 0; }
11107EOF
11108if { (eval echo configure:11109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11109 rm -rf conftest*
11110
11111 wx_cv_cpp_bool=yes
11112
11113else
11114 echo "configure: failed program was:" >&5
11115 cat conftest.$ac_ext >&5
11116 rm -rf conftest*
11117
11118 wx_cv_cpp_bool=no
11119
11120
11121fi
11122rm -f conftest*
11123
11124 ac_ext=c
11125# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11126ac_cpp='$CPP $CPPFLAGS'
11127ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11128ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11129cross_compiling=$ac_cv_prog_cc_cross
11130
11131
11132fi
11133
11134echo "$ac_t""$wx_cv_cpp_bool" 1>&6
11135
11136 if test "$wx_cv_cpp_bool" = "yes"; then
11137 cat >> confdefs.h <<\EOF
11138#define HAVE_BOOL 1
11139EOF
11140
11141 fi
11142
11143
11144
11145 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
11146echo "configure:11147: checking if C++ compiler supports the explicit keyword" >&5
11147if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11148 echo $ac_n "(cached) $ac_c" 1>&6
11149else
11150
11151
11152 ac_ext=C
11153# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11154ac_cpp='$CXXCPP $CPPFLAGS'
11155ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11156ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11157cross_compiling=$ac_cv_prog_cxx_cross
11158
11159
11160 cat > conftest.$ac_ext <<EOF
11161#line 11162 "configure"
11162#include "confdefs.h"
11163
11164 class Foo { public: explicit Foo(int) {} };
11165
11166int main() {
11167
11168 return 0;
11169
11170; return 0; }
11171EOF
11172if { (eval echo configure:11173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11173 rm -rf conftest*
11174
11175 cat > conftest.$ac_ext <<EOF
11176#line 11177 "configure"
11177#include "confdefs.h"
11178
11179 class Foo { public: explicit Foo(int) {} };
11180 static void TakeFoo(const Foo& foo) { }
11181
11182int main() {
11183
11184 TakeFoo(17);
11185 return 0;
11186
11187; return 0; }
11188EOF
11189if { (eval echo configure:11190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11190 rm -rf conftest*
11191 wx_cv_explicit=no
11192else
11193 echo "configure: failed program was:" >&5
11194 cat conftest.$ac_ext >&5
11195 rm -rf conftest*
11196 wx_cv_explicit=yes
11197
11198fi
11199rm -f conftest*
11200
11201else
11202 echo "configure: failed program was:" >&5
11203 cat conftest.$ac_ext >&5
11204 rm -rf conftest*
11205 wx_cv_explicit=no
11206
11207fi
11208rm -f conftest*
11209
11210 ac_ext=c
11211# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11212ac_cpp='$CPP $CPPFLAGS'
11213ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11214ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11215cross_compiling=$ac_cv_prog_cc_cross
11216
11217
11218fi
11219
11220echo "$ac_t""$wx_cv_explicit" 1>&6
11221
11222 if test "$wx_cv_explicit" = "yes"; then
11223 cat >> confdefs.h <<\EOF
11224#define HAVE_EXPLICIT 1
11225EOF
11226
11227 fi
11228
11229
11230echo $ac_n "checking whether the compiler supports const_cast<>""... $ac_c" 1>&6
11231echo "configure:11232: checking whether the compiler supports const_cast<>" >&5
11232if eval "test \"`echo '$''{'ac_cv_cxx_const_cast'+set}'`\" = set"; then
11233 echo $ac_n "(cached) $ac_c" 1>&6
11234else
11235
11236 ac_ext=C
11237# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11238ac_cpp='$CXXCPP $CPPFLAGS'
11239ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11240ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11241cross_compiling=$ac_cv_prog_cxx_cross
11242
11243 cat > conftest.$ac_ext <<EOF
11244#line 11245 "configure"
11245#include "confdefs.h"
11246
11247int main() {
11248int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
11249; return 0; }
11250EOF
11251if { (eval echo configure:11252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11252 rm -rf conftest*
11253 ac_cv_cxx_const_cast=yes
11254else
11255 echo "configure: failed program was:" >&5
11256 cat conftest.$ac_ext >&5
11257 rm -rf conftest*
11258 ac_cv_cxx_const_cast=no
11259fi
11260rm -f conftest*
11261 ac_ext=c
11262# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11263ac_cpp='$CPP $CPPFLAGS'
11264ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11265ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11266cross_compiling=$ac_cv_prog_cc_cross
11267
11268
11269fi
11270
11271echo "$ac_t""$ac_cv_cxx_const_cast" 1>&6
11272if test "$ac_cv_cxx_const_cast" = yes; then
11273 cat >> confdefs.h <<\EOF
11274#define HAVE_CONST_CAST
11275EOF
11276
11277fi
11278
11279
11280
11281SEARCH_INCLUDE="\
11282 /usr/local/include \
11283 \
11284 /usr/Motif-1.2/include \
11285 /usr/Motif-2.1/include \
11286 \
11287 /usr/include/Motif1.2 \
11288 /opt/xpm/include/X11 \
11289 /opt/GBxpm/include/ \
11290 /opt/GBxpm/X11/include/ \
11291 \
11292 /usr/Motif1.2/include \
11293 /usr/dt/include \
11294 /usr/openwin/include \
11295 \
11296 /usr/include/Xm \
11297 \
11298 /usr/X11R6/include \
11299 /usr/X11R6.4/include \
11300 /usr/X11R5/include \
11301 /usr/X11R4/include \
11302 \
11303 /usr/include/X11R6 \
11304 /usr/include/X11R5 \
11305 /usr/include/X11R4 \
11306 \
11307 /usr/local/X11R6/include \
11308 /usr/local/X11R5/include \
11309 /usr/local/X11R4/include \
11310 \
11311 /usr/local/include/X11R6 \
11312 /usr/local/include/X11R5 \
11313 /usr/local/include/X11R4 \
11314 \
11315 /usr/X11/include \
11316 /usr/include/X11 \
11317 /usr/local/X11/include \
11318 /usr/local/include/X11 \
11319 \
11320 /usr/X386/include \
11321 /usr/x386/include \
11322 /usr/XFree86/include/X11 \
11323 \
11324 X:/XFree86/include \
11325 X:/XFree86/include/X11 \
11326 \
11327 /usr/include/gtk \
11328 /usr/local/include/gtk \
11329 /usr/include/glib \
11330 /usr/local/include/glib \
11331 \
11332 /usr/include/qt \
11333 /usr/local/include/qt \
11334 \
11335 /usr/include/windows \
11336 /usr/include/wine \
11337 /usr/local/include/wine \
11338 \
11339 /usr/unsupported/include \
11340 /usr/athena/include \
11341 /usr/local/x11r5/include \
11342 /usr/lpp/Xamples/include \
11343 \
11344 /usr/openwin/share/include"
11345
11346SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11347
11348
11349cat > confcache <<\EOF
11350# This file is a shell script that caches the results of configure
11351# tests run on this system so they can be shared between configure
11352# scripts and configure runs. It is not useful on other systems.
11353# If it contains results you don't want to keep, you may remove or edit it.
11354#
11355# By default, configure uses ./config.cache as the cache file,
11356# creating it if it does not exist already. You can give configure
11357# the --cache-file=FILE option to use a different cache file; that is
11358# what configure does when it calls configure scripts in
11359# subdirectories, so they share the cache.
11360# Giving --cache-file=/dev/null disables caching, for debugging configure.
11361# config.status only pays attention to the cache file if you give it the
11362# --recheck option to rerun configure.
11363#
11364EOF
11365# The following way of writing the cache mishandles newlines in values,
11366# but we know of no workaround that is simple, portable, and efficient.
11367# So, don't put newlines in cache variables' values.
11368# Ultrix sh set writes to stderr and can't be redirected directly,
11369# and sets the high bit in the cache file unless we assign to the vars.
11370(set) 2>&1 |
11371 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11372 *ac_space=\ *)
11373 # `set' does not quote correctly, so add quotes (double-quote substitution
11374 # turns \\\\ into \\, and sed turns \\ into \).
11375 sed -n \
11376 -e "s/'/'\\\\''/g" \
11377 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11378 ;;
11379 *)
11380 # `set' quotes correctly as required by POSIX, so do not add quotes.
11381 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11382 ;;
11383 esac >> confcache
11384if cmp -s $cache_file confcache; then
11385 :
11386else
11387 if test -w $cache_file; then
11388 echo "updating cache $cache_file"
11389 cat confcache > $cache_file
11390 else
11391 echo "not updating unwritable cache $cache_file"
11392 fi
11393fi
11394rm -f confcache
11395
11396
11397if test "$USE_LINUX" = 1; then
11398 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
11399echo "configure:11400: checking for glibc 2.1 or later" >&5
11400if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11401 echo $ac_n "(cached) $ac_c" 1>&6
11402else
11403
11404 cat > conftest.$ac_ext <<EOF
11405#line 11406 "configure"
11406#include "confdefs.h"
11407#include <features.h>
11408int main() {
11409
11410 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11411 #error not glibc2.1
11412 #endif
11413
11414; return 0; }
11415EOF
11416if { (eval echo configure:11417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11417 rm -rf conftest*
11418
11419 wx_cv_lib_glibc21=yes
11420
11421else
11422 echo "configure: failed program was:" >&5
11423 cat conftest.$ac_ext >&5
11424 rm -rf conftest*
11425
11426 wx_cv_lib_glibc21=no
11427
11428
11429fi
11430rm -f conftest*
11431
11432fi
11433
11434echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11435 if test "$wx_cv_lib_glibc21" = "yes"; then
11436 cat >> confdefs.h <<\EOF
11437#define wxHAVE_GLIBC2 1
11438EOF
11439
11440 fi
11441fi
11442
11443if test "x$wx_cv_lib_glibc21" = "xyes"; then
11444 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
11445 cat >> confdefs.h <<\EOF
11446#define _GNU_SOURCE 1
11447EOF
11448
11449 fi
11450fi
11451
11452
11453
11454REGEX_INCLUDE=
11455if test "$wxUSE_REGEX" != "no"; then
11456 cat >> confdefs.h <<\EOF
11457#define wxUSE_REGEX 1
11458EOF
11459
11460
11461 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11462 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11463echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11464echo "configure:11465: checking for regex.h" >&5
11465if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11466 echo $ac_n "(cached) $ac_c" 1>&6
11467else
11468 cat > conftest.$ac_ext <<EOF
11469#line 11470 "configure"
11470#include "confdefs.h"
11471#include <regex.h>
11472EOF
11473ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11474{ (eval echo configure:11475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11475ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11476if test -z "$ac_err"; then
11477 rm -rf conftest*
11478 eval "ac_cv_header_$ac_safe=yes"
11479else
11480 echo "$ac_err" >&5
11481 echo "configure: failed program was:" >&5
11482 cat conftest.$ac_ext >&5
11483 rm -rf conftest*
11484 eval "ac_cv_header_$ac_safe=no"
11485fi
11486rm -f conftest*
11487fi
11488if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11489 echo "$ac_t""yes" 1>&6
11490 for ac_func in regcomp
11491do
11492echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11493echo "configure:11494: checking for $ac_func" >&5
11494if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11495 echo $ac_n "(cached) $ac_c" 1>&6
11496else
11497 cat > conftest.$ac_ext <<EOF
11498#line 11499 "configure"
11499#include "confdefs.h"
11500/* System header to define __stub macros and hopefully few prototypes,
11501 which can conflict with char $ac_func(); below. */
11502#include <assert.h>
11503/* Override any gcc2 internal prototype to avoid an error. */
11504/* We use char because int might match the return type of a gcc2
11505 builtin and then its argument prototype would still apply. */
11506char $ac_func();
11507
11508int main() {
11509
11510/* The GNU C library defines this for functions which it implements
11511 to always fail with ENOSYS. Some functions are actually named
11512 something starting with __ and the normal name is an alias. */
11513#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11514choke me
11515#else
11516$ac_func();
11517#endif
11518
11519; return 0; }
11520EOF
11521if { (eval echo configure:11522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11522 rm -rf conftest*
11523 eval "ac_cv_func_$ac_func=yes"
11524else
11525 echo "configure: failed program was:" >&5
11526 cat conftest.$ac_ext >&5
11527 rm -rf conftest*
11528 eval "ac_cv_func_$ac_func=no"
11529fi
11530rm -f conftest*
11531fi
11532
11533if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11534 echo "$ac_t""yes" 1>&6
11535 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11536 cat >> confdefs.h <<EOF
11537#define $ac_tr_func 1
11538EOF
11539
11540else
11541 echo "$ac_t""no" 1>&6
11542fi
11543done
11544
11545else
11546 echo "$ac_t""no" 1>&6
11547fi
11548
11549
11550 if test "x$ac_cv_func_regcomp" != "xyes"; then
11551 if test "$wxUSE_REGEX" = "sys" ; then
11552 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11553 else
11554 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11555 wxUSE_REGEX=builtin
11556 fi
11557 else
11558 wxUSE_REGEX=sys
11559 fi
11560 fi
11561
11562 if test "$wxUSE_REGEX" = "builtin" ; then
11563 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11564 fi
11565fi
11566
11567
11568ZLIB_INCLUDE=
11569ZLIB_LINK=
11570if test "$wxUSE_ZLIB" != "no" ; then
11571 cat >> confdefs.h <<\EOF
11572#define wxUSE_ZLIB 1
11573EOF
11574
11575
11576 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11577 if test "$USE_DARWIN" = 1; then
11578 system_zlib_h_ok="yes"
11579 else
11580 echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
11581echo "configure:11582: checking for zlib.h >= 1.1.4" >&5
11582if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11583 echo $ac_n "(cached) $ac_c" 1>&6
11584else
11585 if test "$cross_compiling" = yes; then
11586 unset ac_cv_header_zlib_h
11587
11588else
11589 cat > conftest.$ac_ext <<EOF
11590#line 11591 "configure"
11591#include "confdefs.h"
11592
11593 #include <zlib.h>
11594 #include <stdio.h>
11595
11596 int main()
11597 {
11598 FILE *f=fopen("conftestval", "w");
11599 if (!f) exit(1);
11600 fprintf(f, "%s",
11601 ZLIB_VERSION[0] == '1' &&
11602 (ZLIB_VERSION[2] > '1' ||
11603 (ZLIB_VERSION[2] == '1' &&
11604 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11605 exit(0);
11606 }
11607
11608EOF
11609if { (eval echo configure:11610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11610then
11611 ac_cv_header_zlib_h=`cat conftestval`
11612else
11613 echo "configure: failed program was:" >&5
11614 cat conftest.$ac_ext >&5
11615 rm -fr conftest*
11616 ac_cv_header_zlib_h=no
11617fi
11618rm -fr conftest*
11619fi
11620
11621
11622fi
11623
11624echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
11625 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11626echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11627echo "configure:11628: checking for zlib.h" >&5
11628if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11629 echo $ac_n "(cached) $ac_c" 1>&6
11630else
11631 cat > conftest.$ac_ext <<EOF
11632#line 11633 "configure"
11633#include "confdefs.h"
11634#include <zlib.h>
11635EOF
11636ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11637{ (eval echo configure:11638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11638ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11639if test -z "$ac_err"; then
11640 rm -rf conftest*
11641 eval "ac_cv_header_$ac_safe=yes"
11642else
11643 echo "$ac_err" >&5
11644 echo "configure: failed program was:" >&5
11645 cat conftest.$ac_ext >&5
11646 rm -rf conftest*
11647 eval "ac_cv_header_$ac_safe=no"
11648fi
11649rm -f conftest*
11650fi
11651if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11652 echo "$ac_t""yes" 1>&6
11653 :
11654else
11655 echo "$ac_t""no" 1>&6
11656fi
11657
11658
11659 system_zlib_h_ok=$ac_cv_header_zlib_h
11660 fi
11661
11662 if test "$system_zlib_h_ok" = "yes"; then
11663 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11664echo "configure:11665: checking for deflate in -lz" >&5
11665ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11666if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11667 echo $ac_n "(cached) $ac_c" 1>&6
11668else
11669 ac_save_LIBS="$LIBS"
11670LIBS="-lz $LIBS"
11671cat > conftest.$ac_ext <<EOF
11672#line 11673 "configure"
11673#include "confdefs.h"
11674/* Override any gcc2 internal prototype to avoid an error. */
11675/* We use char because int might match the return type of a gcc2
11676 builtin and then its argument prototype would still apply. */
11677char deflate();
11678
11679int main() {
11680deflate()
11681; return 0; }
11682EOF
11683if { (eval echo configure:11684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11684 rm -rf conftest*
11685 eval "ac_cv_lib_$ac_lib_var=yes"
11686else
11687 echo "configure: failed program was:" >&5
11688 cat conftest.$ac_ext >&5
11689 rm -rf conftest*
11690 eval "ac_cv_lib_$ac_lib_var=no"
11691fi
11692rm -f conftest*
11693LIBS="$ac_save_LIBS"
11694
11695fi
11696if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11697 echo "$ac_t""yes" 1>&6
11698 ZLIB_LINK=" -lz"
11699else
11700 echo "$ac_t""no" 1>&6
11701fi
11702
11703 fi
11704
11705 if test "x$ZLIB_LINK" = "x" ; then
11706 if test "$wxUSE_ZLIB" = "sys" ; then
11707 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11708 else
11709 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
11710 wxUSE_ZLIB=builtin
11711 fi
11712 else
11713 wxUSE_ZLIB=sys
11714 fi
11715 fi
11716
11717 if test "$wxUSE_ZLIB" = "builtin" ; then
11718 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11719 fi
11720fi
11721
11722
11723PNG_INCLUDE=
11724PNG_LINK=
11725if test "$wxUSE_LIBPNG" != "no" ; then
11726 cat >> confdefs.h <<\EOF
11727#define wxUSE_LIBPNG 1
11728EOF
11729
11730
11731 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11732 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11733 wxUSE_LIBPNG=sys
11734 fi
11735
11736 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11737 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11738 wxUSE_LIBPNG=builtin
11739 fi
11740
11741 if test "$wxUSE_MGL" != 1 ; then
11742 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11743 echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
11744echo "configure:11745: checking for png.h > 0.90" >&5
11745if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11746 echo $ac_n "(cached) $ac_c" 1>&6
11747else
11748 if test "$cross_compiling" = yes; then
11749 unset ac_cv_header_png_h
11750
11751else
11752 cat > conftest.$ac_ext <<EOF
11753#line 11754 "configure"
11754#include "confdefs.h"
11755
11756 #include <png.h>
11757 #include <stdio.h>
11758
11759 int main()
11760 {
11761 FILE *f=fopen("conftestval", "w");
11762 if (!f) exit(1);
11763 fprintf(f, "%s",
11764 PNG_LIBPNG_VER > 90 ? "yes" : "no");
11765 exit(0);
11766 }
11767
11768EOF
11769if { (eval echo configure:11770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11770then
11771 ac_cv_header_png_h=`cat conftestval`
11772else
11773 echo "configure: failed program was:" >&5
11774 cat conftest.$ac_ext >&5
11775 rm -fr conftest*
11776 ac_cv_header_png_h=no
11777fi
11778rm -fr conftest*
11779fi
11780
11781
11782fi
11783
11784echo "$ac_t""$ac_cv_header_png_h" 1>&6
11785 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11786echo $ac_n "checking for png.h""... $ac_c" 1>&6
11787echo "configure:11788: checking for png.h" >&5
11788if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11789 echo $ac_n "(cached) $ac_c" 1>&6
11790else
11791 cat > conftest.$ac_ext <<EOF
11792#line 11793 "configure"
11793#include "confdefs.h"
11794#include <png.h>
11795EOF
11796ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11797{ (eval echo configure:11798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11798ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11799if test -z "$ac_err"; then
11800 rm -rf conftest*
11801 eval "ac_cv_header_$ac_safe=yes"
11802else
11803 echo "$ac_err" >&5
11804 echo "configure: failed program was:" >&5
11805 cat conftest.$ac_ext >&5
11806 rm -rf conftest*
11807 eval "ac_cv_header_$ac_safe=no"
11808fi
11809rm -f conftest*
11810fi
11811if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11812 echo "$ac_t""yes" 1>&6
11813 :
11814else
11815 echo "$ac_t""no" 1>&6
11816fi
11817
11818
11819 if test "$ac_cv_header_png_h" = "yes"; then
11820 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11821echo "configure:11822: checking for png_check_sig in -lpng" >&5
11822ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11823if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11824 echo $ac_n "(cached) $ac_c" 1>&6
11825else
11826 ac_save_LIBS="$LIBS"
11827LIBS="-lpng -lz -lm $LIBS"
11828cat > conftest.$ac_ext <<EOF
11829#line 11830 "configure"
11830#include "confdefs.h"
11831/* Override any gcc2 internal prototype to avoid an error. */
11832/* We use char because int might match the return type of a gcc2
11833 builtin and then its argument prototype would still apply. */
11834char png_check_sig();
11835
11836int main() {
11837png_check_sig()
11838; return 0; }
11839EOF
11840if { (eval echo configure:11841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11841 rm -rf conftest*
11842 eval "ac_cv_lib_$ac_lib_var=yes"
11843else
11844 echo "configure: failed program was:" >&5
11845 cat conftest.$ac_ext >&5
11846 rm -rf conftest*
11847 eval "ac_cv_lib_$ac_lib_var=no"
11848fi
11849rm -f conftest*
11850LIBS="$ac_save_LIBS"
11851
11852fi
11853if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11854 echo "$ac_t""yes" 1>&6
11855 PNG_LINK=" -lpng"
11856else
11857 echo "$ac_t""no" 1>&6
11858fi
11859
11860 fi
11861
11862 if test "x$PNG_LINK" = "x" ; then
11863 if test "$wxUSE_LIBPNG" = "sys" ; then
11864 { echo "configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11865 else
11866 echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
11867 wxUSE_LIBPNG=builtin
11868 fi
11869 else
11870 wxUSE_LIBPNG=sys
11871 fi
11872 fi
11873 fi
11874
11875 if test "$wxUSE_LIBPNG" = "builtin" ; then
11876 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11877 fi
11878
11879 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11880fi
11881
11882
11883JPEG_INCLUDE=
11884JPEG_LINK=
11885if test "$wxUSE_LIBJPEG" != "no" ; then
11886 cat >> confdefs.h <<\EOF
11887#define wxUSE_LIBJPEG 1
11888EOF
11889
11890
11891 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11892 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11893 wxUSE_LIBJPEG=sys
11894 fi
11895
11896 if test "$wxUSE_MGL" != 1 ; then
11897 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11898 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11899echo "configure:11900: checking for jpeglib.h" >&5
11900 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11901 echo $ac_n "(cached) $ac_c" 1>&6
11902else
11903 cat > conftest.$ac_ext <<EOF
11904#line 11905 "configure"
11905#include "confdefs.h"
11906
11907 #undef HAVE_STDLIB_H
11908 #include <stdio.h>
11909 #include <jpeglib.h>
11910
11911int main() {
11912
11913
11914; return 0; }
11915EOF
11916if { (eval echo configure:11917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11917 rm -rf conftest*
11918 ac_cv_header_jpeglib_h=yes
11919else
11920 echo "configure: failed program was:" >&5
11921 cat conftest.$ac_ext >&5
11922 rm -rf conftest*
11923 ac_cv_header_jpeglib_h=no
11924
11925fi
11926rm -f conftest*
11927
11928fi
11929
11930 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
11931
11932 if test "$ac_cv_header_jpeglib_h" = "yes"; then
11933 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11934echo "configure:11935: checking for jpeg_read_header in -ljpeg" >&5
11935ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11936if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11937 echo $ac_n "(cached) $ac_c" 1>&6
11938else
11939 ac_save_LIBS="$LIBS"
11940LIBS="-ljpeg $LIBS"
11941cat > conftest.$ac_ext <<EOF
11942#line 11943 "configure"
11943#include "confdefs.h"
11944/* Override any gcc2 internal prototype to avoid an error. */
11945/* We use char because int might match the return type of a gcc2
11946 builtin and then its argument prototype would still apply. */
11947char jpeg_read_header();
11948
11949int main() {
11950jpeg_read_header()
11951; return 0; }
11952EOF
11953if { (eval echo configure:11954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11954 rm -rf conftest*
11955 eval "ac_cv_lib_$ac_lib_var=yes"
11956else
11957 echo "configure: failed program was:" >&5
11958 cat conftest.$ac_ext >&5
11959 rm -rf conftest*
11960 eval "ac_cv_lib_$ac_lib_var=no"
11961fi
11962rm -f conftest*
11963LIBS="$ac_save_LIBS"
11964
11965fi
11966if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11967 echo "$ac_t""yes" 1>&6
11968 JPEG_LINK=" -ljpeg"
11969else
11970 echo "$ac_t""no" 1>&6
11971fi
11972
11973 fi
11974
11975 if test "x$JPEG_LINK" = "x" ; then
11976 if test "$wxUSE_LIBJPEG" = "sys" ; then
11977 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
11978 else
11979 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
11980 wxUSE_LIBJPEG=builtin
11981 fi
11982 else
11983 wxUSE_LIBJPEG=sys
11984 fi
11985 fi
11986 fi
11987
11988 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11989 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11990 fi
11991fi
11992
11993
11994TIFF_INCLUDE=
11995TIFF_LINK=
11996TIFF_PREREQ_LINKS=-lm
11997if test "$wxUSE_LIBTIFF" != "no" ; then
11998 cat >> confdefs.h <<\EOF
11999#define wxUSE_LIBTIFF 1
12000EOF
12001
12002
12003 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
12004 if test "$wxUSE_LIBJPEG" = "sys"; then
12005 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
12006 fi
12007 if test "$wxUSE_ZLIB" = "sys"; then
12008 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
12009 fi
12010 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12011echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
12012echo "configure:12013: checking for tiffio.h" >&5
12013if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12014 echo $ac_n "(cached) $ac_c" 1>&6
12015else
12016 cat > conftest.$ac_ext <<EOF
12017#line 12018 "configure"
12018#include "confdefs.h"
12019#include <tiffio.h>
12020EOF
12021ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12022{ (eval echo configure:12023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12023ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12024if test -z "$ac_err"; then
12025 rm -rf conftest*
12026 eval "ac_cv_header_$ac_safe=yes"
12027else
12028 echo "$ac_err" >&5
12029 echo "configure: failed program was:" >&5
12030 cat conftest.$ac_ext >&5
12031 rm -rf conftest*
12032 eval "ac_cv_header_$ac_safe=no"
12033fi
12034rm -f conftest*
12035fi
12036if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12037 echo "$ac_t""yes" 1>&6
12038 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
12039echo "configure:12040: checking for TIFFError in -ltiff" >&5
12040ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12041if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12042 echo $ac_n "(cached) $ac_c" 1>&6
12043else
12044 ac_save_LIBS="$LIBS"
12045LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
12046cat > conftest.$ac_ext <<EOF
12047#line 12048 "configure"
12048#include "confdefs.h"
12049/* Override any gcc2 internal prototype to avoid an error. */
12050/* We use char because int might match the return type of a gcc2
12051 builtin and then its argument prototype would still apply. */
12052char TIFFError();
12053
12054int main() {
12055TIFFError()
12056; return 0; }
12057EOF
12058if { (eval echo configure:12059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12059 rm -rf conftest*
12060 eval "ac_cv_lib_$ac_lib_var=yes"
12061else
12062 echo "configure: failed program was:" >&5
12063 cat conftest.$ac_ext >&5
12064 rm -rf conftest*
12065 eval "ac_cv_lib_$ac_lib_var=no"
12066fi
12067rm -f conftest*
12068LIBS="$ac_save_LIBS"
12069
12070fi
12071if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12072 echo "$ac_t""yes" 1>&6
12073 TIFF_LINK=" -ltiff"
12074else
12075 echo "$ac_t""no" 1>&6
12076fi
12077
12078
12079else
12080 echo "$ac_t""no" 1>&6
12081fi
12082
12083
12084 if test "x$TIFF_LINK" = "x" ; then
12085 if test "$wxUSE_LIBTIFF" = "sys" ; then
12086 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
12087 else
12088 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
12089 wxUSE_LIBTIFF=builtin
12090 fi
12091 else
12092 wxUSE_LIBTIFF=sys
12093 fi
12094 fi
12095
12096 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12097 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
12098 fi
12099fi
12100
12101
12102AFMINSTALL=
12103WIN32INSTALL=
12104
12105TOOLKIT=
12106TOOLKIT_INCLUDE=
12107WIDGET_SET=
12108
12109if test "$USE_WIN32" = 1 ; then
12110 for ac_hdr in w32api.h
12111do
12112ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12113echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12114echo "configure:12115: checking for $ac_hdr" >&5
12115if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12116 echo $ac_n "(cached) $ac_c" 1>&6
12117else
12118 cat > conftest.$ac_ext <<EOF
12119#line 12120 "configure"
12120#include "confdefs.h"
12121#include <$ac_hdr>
12122EOF
12123ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12124{ (eval echo configure:12125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12125ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12126if test -z "$ac_err"; then
12127 rm -rf conftest*
12128 eval "ac_cv_header_$ac_safe=yes"
12129else
12130 echo "$ac_err" >&5
12131 echo "configure: failed program was:" >&5
12132 cat conftest.$ac_ext >&5
12133 rm -rf conftest*
12134 eval "ac_cv_header_$ac_safe=no"
12135fi
12136rm -f conftest*
12137fi
12138if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12139 echo "$ac_t""yes" 1>&6
12140 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12141 cat >> confdefs.h <<EOF
12142#define $ac_tr_hdr 1
12143EOF
12144
12145else
12146 echo "$ac_t""no" 1>&6
12147fi
12148done
12149
12150 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12151echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12152echo "configure:12153: checking for windows.h" >&5
12153if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12154 echo $ac_n "(cached) $ac_c" 1>&6
12155else
12156 cat > conftest.$ac_ext <<EOF
12157#line 12158 "configure"
12158#include "confdefs.h"
12159#include <windows.h>
12160EOF
12161ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12162{ (eval echo configure:12163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12163ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12164if test -z "$ac_err"; then
12165 rm -rf conftest*
12166 eval "ac_cv_header_$ac_safe=yes"
12167else
12168 echo "$ac_err" >&5
12169 echo "configure: failed program was:" >&5
12170 cat conftest.$ac_ext >&5
12171 rm -rf conftest*
12172 eval "ac_cv_header_$ac_safe=no"
12173fi
12174rm -f conftest*
12175fi
12176if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12177 echo "$ac_t""yes" 1>&6
12178 :
12179else
12180 echo "$ac_t""no" 1>&6
12181
12182 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12183
12184fi
12185
12186
12187 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
12188echo "configure:12189: checking if w32api has good enough MSIE support" >&5
12189if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12190 echo $ac_n "(cached) $ac_c" 1>&6
12191else
12192
12193 cat > conftest.$ac_ext <<EOF
12194#line 12195 "configure"
12195#include "confdefs.h"
12196#include <w32api.h>
12197int main() {
12198
12199 #define wxCHECK_W32API_VERSION( major, minor ) \
12200 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12201 && ( ( __W32API_MAJOR_VERSION > (major) ) \
12202 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12203
12204 #if !wxCHECK_W32API_VERSION(1,1)
12205 #error You need w32api 1.1 or newer
12206 #endif
12207
12208; return 0; }
12209EOF
12210if { (eval echo configure:12211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12211 rm -rf conftest*
12212
12213 wx_cv_w32api_win32_ie=yes
12214
12215else
12216 echo "configure: failed program was:" >&5
12217 cat conftest.$ac_ext >&5
12218 rm -rf conftest*
12219
12220 wx_cv_w32api_win32_ie=no
12221
12222fi
12223rm -f conftest*
12224
12225fi
12226
12227echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
12228 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12229 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12230 fi
12231
12232 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12233
12234 case "${host}" in
12235 *-*-cygwin* )
12236 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12237 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
12238 esac
12239
12240 if test "$wxUSE_ODBC" = "yes" ; then
12241 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12242 fi
12243
12244 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12245 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
12246
12247 WIN32INSTALL=win32install
12248fi
12249
12250if test "$USE_DARWIN" = 1; then
12251 if test "$wxUSE_PRECOMP" = "yes"; then
12252 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12253 else
12254 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12255 fi
12256fi
12257
12258if test "$wxUSE_GUI" = "yes"; then
12259 USE_GUI=1
12260
12261 GUI_TK_LIBRARY=
12262
12263 WXGTK12=
12264 WXGTK127=
12265 WXGTK20=
12266
12267 if test "$wxUSE_MSW" = 1 ; then
12268 TOOLKIT=MSW
12269 GUIDIST=MSW_DIST
12270
12271 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
12272 fi
12273
12274 if test "$wxUSE_GTK" = 1; then
12275 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
12276echo "configure:12277: checking for GTK+ version" >&5
12277
12278 gtk_version_cached=1
12279 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12280 echo $ac_n "(cached) $ac_c" 1>&6
12281else
12282
12283 gtk_version_cached=0
12284 echo "$ac_t""" 1>&6
12285
12286 GTK_MODULES=
12287 if test "$wxUSE_THREADS" = "yes"; then
12288 GTK_MODULES=gthread
12289 fi
12290
12291 wx_cv_lib_gtk=
12292 if test "x$wxUSE_GTK2" = "xyes"; then
12293 # Check whether --enable-gtktest or --disable-gtktest was given.
12294if test "${enable_gtktest+set}" = set; then
12295 enableval="$enable_gtktest"
12296 :
12297else
12298 enable_gtktest=yes
12299fi
12300
12301
12302 pkg_config_args=gtk+-2.0
12303 for module in . $GTK_MODULES
12304 do
12305 case "$module" in
12306 gthread)
12307 pkg_config_args="$pkg_config_args gthread-2.0"
12308 ;;
12309 esac
12310 done
12311
12312 no_gtk=""
12313
12314 # Extract the first word of "pkg-config", so it can be a program name with args.
12315set dummy pkg-config; ac_word=$2
12316echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12317echo "configure:12318: checking for $ac_word" >&5
12318if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12319 echo $ac_n "(cached) $ac_c" 1>&6
12320else
12321 case "$PKG_CONFIG" in
12322 /*)
12323 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12324 ;;
12325 ?:/*)
12326 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12327 ;;
12328 *)
12329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12330 ac_dummy="$PATH"
12331 for ac_dir in $ac_dummy; do
12332 test -z "$ac_dir" && ac_dir=.
12333 if test -f $ac_dir/$ac_word; then
12334 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12335 break
12336 fi
12337 done
12338 IFS="$ac_save_ifs"
12339 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12340 ;;
12341esac
12342fi
12343PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12344if test -n "$PKG_CONFIG"; then
12345 echo "$ac_t""$PKG_CONFIG" 1>&6
12346else
12347 echo "$ac_t""no" 1>&6
12348fi
12349
12350
12351 if test x$PKG_CONFIG != xno ; then
12352 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12353 :
12354 else
12355 echo *** pkg-config too old; version 0.7 or better required.
12356 no_gtk=yes
12357 PKG_CONFIG=no
12358 fi
12359 else
12360 no_gtk=yes
12361 fi
12362
12363 min_gtk_version=2.0.0
12364 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
12365echo "configure:12366: checking for GTK+ - version >= $min_gtk_version" >&5
12366
12367 if test x$PKG_CONFIG != xno ; then
12368 ## don't try to run the test against uninstalled libtool libs
12369 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12370 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12371 enable_gtktest=no
12372 fi
12373
12374 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12375 :
12376 else
12377 no_gtk=yes
12378 fi
12379 fi
12380
12381 if test x"$no_gtk" = x ; then
12382 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12383 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12384 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12385 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12386 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12387 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12388 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12389 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12390 if test "x$enable_gtktest" = "xyes" ; then
12391 ac_save_CFLAGS="$CFLAGS"
12392 ac_save_LIBS="$LIBS"
12393 CFLAGS="$CFLAGS $GTK_CFLAGS"
12394 LIBS="$GTK_LIBS $LIBS"
12395 rm -f conf.gtktest
12396 if test "$cross_compiling" = yes; then
12397 echo $ac_n "cross compiling; assumed OK... $ac_c"
12398else
12399 cat > conftest.$ac_ext <<EOF
12400#line 12401 "configure"
12401#include "confdefs.h"
12402
12403#include <gtk/gtk.h>
12404#include <stdio.h>
12405#include <stdlib.h>
12406
12407int
12408main ()
12409{
12410 int major, minor, micro;
12411 char *tmp_version;
12412
12413 system ("touch conf.gtktest");
12414
12415 /* HP/UX 9 (%@#!) writes to sscanf strings */
12416 tmp_version = g_strdup("$min_gtk_version");
12417 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12418 printf("%s, bad version string\n", "$min_gtk_version");
12419 exit(1);
12420 }
12421
12422 if ((gtk_major_version != $gtk_config_major_version) ||
12423 (gtk_minor_version != $gtk_config_minor_version) ||
12424 (gtk_micro_version != $gtk_config_micro_version))
12425 {
12426 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12427 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12428 gtk_major_version, gtk_minor_version, gtk_micro_version);
12429 printf ("*** was found! If pkg-config was correct, then it is best\n");
12430 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12431 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12432 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12433 printf("*** required on your system.\n");
12434 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12435 printf("*** to point to the correct configuration files\n");
12436 }
12437 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12438 (gtk_minor_version != GTK_MINOR_VERSION) ||
12439 (gtk_micro_version != GTK_MICRO_VERSION))
12440 {
12441 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12442 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12443 printf("*** library (version %d.%d.%d)\n",
12444 gtk_major_version, gtk_minor_version, gtk_micro_version);
12445 }
12446 else
12447 {
12448 if ((gtk_major_version > major) ||
12449 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12450 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12451 {
12452 return 0;
12453 }
12454 else
12455 {
12456 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12457 gtk_major_version, gtk_minor_version, gtk_micro_version);
12458 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12459 major, minor, micro);
12460 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12461 printf("***\n");
12462 printf("*** If you have already installed a sufficiently new version, this error\n");
12463 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12464 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12465 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12466 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12467 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12468 printf("*** so that the correct libraries are found at run-time))\n");
12469 }
12470 }
12471 return 1;
12472}
12473
12474EOF
12475if { (eval echo configure:12476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12476then
12477 :
12478else
12479 echo "configure: failed program was:" >&5
12480 cat conftest.$ac_ext >&5
12481 rm -fr conftest*
12482 no_gtk=yes
12483fi
12484rm -fr conftest*
12485fi
12486
12487 CFLAGS="$ac_save_CFLAGS"
12488 LIBS="$ac_save_LIBS"
12489 fi
12490 fi
12491 if test "x$no_gtk" = x ; then
12492 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12493 wx_cv_lib_gtk=2.0
12494 else
12495 echo "$ac_t""no" 1>&6
12496 if test "$PKG_CONFIG" = "no" ; then
12497 echo "*** A new enough version of pkg-config was not found."
12498 echo "*** See http://pkgconfig.sourceforge.net"
12499 else
12500 if test -f conf.gtktest ; then
12501 :
12502 else
12503 echo "*** Could not run GTK+ test program, checking why..."
12504 ac_save_CFLAGS="$CFLAGS"
12505 ac_save_LIBS="$LIBS"
12506 CFLAGS="$CFLAGS $GTK_CFLAGS"
12507 LIBS="$LIBS $GTK_LIBS"
12508 cat > conftest.$ac_ext <<EOF
12509#line 12510 "configure"
12510#include "confdefs.h"
12511
12512#include <gtk/gtk.h>
12513#include <stdio.h>
12514
12515int main() {
12516 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12517; return 0; }
12518EOF
12519if { (eval echo configure:12520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12520 rm -rf conftest*
12521 echo "*** The test program compiled, but did not run. This usually means"
12522 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12523 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12524 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12525 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12526 echo "*** is required on your system"
12527 echo "***"
12528 echo "*** If you have an old version installed, it is best to remove it, although"
12529 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12530else
12531 echo "configure: failed program was:" >&5
12532 cat conftest.$ac_ext >&5
12533 rm -rf conftest*
12534 echo "*** The test program failed to compile or link. See the file config.log for the"
12535 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12536fi
12537rm -f conftest*
12538 CFLAGS="$ac_save_CFLAGS"
12539 LIBS="$ac_save_LIBS"
12540 fi
12541 fi
12542 GTK_CFLAGS=""
12543 GTK_LIBS=""
12544 :
12545 fi
12546
12547
12548 rm -f conf.gtktest
12549
12550 else
12551 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12552if test "${with_gtk_prefix+set}" = set; then
12553 withval="$with_gtk_prefix"
12554 gtk_config_prefix="$withval"
12555else
12556 gtk_config_prefix=""
12557fi
12558
12559# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12560if test "${with_gtk_exec_prefix+set}" = set; then
12561 withval="$with_gtk_exec_prefix"
12562 gtk_config_exec_prefix="$withval"
12563else
12564 gtk_config_exec_prefix=""
12565fi
12566
12567# Check whether --enable-gtktest or --disable-gtktest was given.
12568if test "${enable_gtktest+set}" = set; then
12569 enableval="$enable_gtktest"
12570 :
12571else
12572 enable_gtktest=yes
12573fi
12574
12575
12576 for module in . $GTK_MODULES
12577 do
12578 case "$module" in
12579 gthread)
12580 gtk_config_args="$gtk_config_args gthread"
12581 ;;
12582 esac
12583 done
12584
12585 if test x$gtk_config_exec_prefix != x ; then
12586 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12587 if test x${GTK_CONFIG+set} != xset ; then
12588 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12589 fi
12590 fi
12591 if test x$gtk_config_prefix != x ; then
12592 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12593 if test x${GTK_CONFIG+set} != xset ; then
12594 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12595 fi
12596 fi
12597
12598 # Extract the first word of "gtk-config", so it can be a program name with args.
12599set dummy gtk-config; ac_word=$2
12600echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12601echo "configure:12602: checking for $ac_word" >&5
12602if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12603 echo $ac_n "(cached) $ac_c" 1>&6
12604else
12605 case "$GTK_CONFIG" in
12606 /*)
12607 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12608 ;;
12609 ?:/*)
12610 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12611 ;;
12612 *)
12613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12614 ac_dummy="$PATH"
12615 for ac_dir in $ac_dummy; do
12616 test -z "$ac_dir" && ac_dir=.
12617 if test -f $ac_dir/$ac_word; then
12618 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12619 break
12620 fi
12621 done
12622 IFS="$ac_save_ifs"
12623 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12624 ;;
12625esac
12626fi
12627GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12628if test -n "$GTK_CONFIG"; then
12629 echo "$ac_t""$GTK_CONFIG" 1>&6
12630else
12631 echo "$ac_t""no" 1>&6
12632fi
12633
12634 min_gtk_version=1.2.7
12635 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12636echo "configure:12637: checking for GTK - version >= $min_gtk_version" >&5
12637 no_gtk=""
12638 if test "$GTK_CONFIG" = "no" ; then
12639 no_gtk=yes
12640 else
12641 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12642 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12643 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12644 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12645 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12646 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12647 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12648 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12649 if test "x$enable_gtktest" = "xyes" ; then
12650 ac_save_CFLAGS="$CFLAGS"
12651 ac_save_LIBS="$LIBS"
12652 CFLAGS="$CFLAGS $GTK_CFLAGS"
12653 LIBS="$GTK_LIBS $LIBS"
12654 rm -f conf.gtktest
12655 if test "$cross_compiling" = yes; then
12656 echo $ac_n "cross compiling; assumed OK... $ac_c"
12657else
12658 cat > conftest.$ac_ext <<EOF
12659#line 12660 "configure"
12660#include "confdefs.h"
12661
12662#include <gtk/gtk.h>
12663#include <stdio.h>
12664#include <stdlib.h>
12665
12666int
12667main ()
12668{
12669 int major, minor, micro;
12670 char *tmp_version;
12671
12672 system ("touch conf.gtktest");
12673
12674 /* HP/UX 9 (%@#!) writes to sscanf strings */
12675 tmp_version = g_strdup("$min_gtk_version");
12676 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12677 printf("%s, bad version string\n", "$min_gtk_version");
12678 exit(1);
12679 }
12680
12681 if ((gtk_major_version != $gtk_config_major_version) ||
12682 (gtk_minor_version != $gtk_config_minor_version) ||
12683 (gtk_micro_version != $gtk_config_micro_version))
12684 {
12685 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12686 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12687 gtk_major_version, gtk_minor_version, gtk_micro_version);
12688 printf ("*** was found! If gtk-config was correct, then it is best\n");
12689 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12690 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12691 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12692 printf("*** required on your system.\n");
12693 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12694 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12695 printf("*** before re-running configure\n");
12696 }
12697#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12698 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12699 (gtk_minor_version != GTK_MINOR_VERSION) ||
12700 (gtk_micro_version != GTK_MICRO_VERSION))
12701 {
12702 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12703 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12704 printf("*** library (version %d.%d.%d)\n",
12705 gtk_major_version, gtk_minor_version, gtk_micro_version);
12706 }
12707#endif /* defined (GTK_MAJOR_VERSION) ... */
12708 else
12709 {
12710 if ((gtk_major_version > major) ||
12711 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12712 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12713 {
12714 return 0;
12715 }
12716 else
12717 {
12718 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12719 gtk_major_version, gtk_minor_version, gtk_micro_version);
12720 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12721 major, minor, micro);
12722 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12723 printf("***\n");
12724 printf("*** If you have already installed a sufficiently new version, this error\n");
12725 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12726 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12727 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12728 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12729 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12730 printf("*** so that the correct libraries are found at run-time))\n");
12731 }
12732 }
12733 return 1;
12734}
12735
12736EOF
12737if { (eval echo configure:12738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12738then
12739 :
12740else
12741 echo "configure: failed program was:" >&5
12742 cat conftest.$ac_ext >&5
12743 rm -fr conftest*
12744 no_gtk=yes
12745fi
12746rm -fr conftest*
12747fi
12748
12749 CFLAGS="$ac_save_CFLAGS"
12750 LIBS="$ac_save_LIBS"
12751 fi
12752 fi
12753 if test "x$no_gtk" = x ; then
12754 echo "$ac_t""yes" 1>&6
12755 wx_cv_lib_gtk=1.2.7
12756 else
12757 echo "$ac_t""no" 1>&6
12758 if test "$GTK_CONFIG" = "no" ; then
12759 echo "*** The gtk-config script installed by GTK could not be found"
12760 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12761 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12762 echo "*** full path to gtk-config."
12763 else
12764 if test -f conf.gtktest ; then
12765 :
12766 else
12767 echo "*** Could not run GTK test program, checking why..."
12768 CFLAGS="$CFLAGS $GTK_CFLAGS"
12769 LIBS="$LIBS $GTK_LIBS"
12770 cat > conftest.$ac_ext <<EOF
12771#line 12772 "configure"
12772#include "confdefs.h"
12773
12774#include <gtk/gtk.h>
12775#include <stdio.h>
12776
12777int main() {
12778 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12779; return 0; }
12780EOF
12781if { (eval echo configure:12782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12782 rm -rf conftest*
12783 echo "*** The test program compiled, but did not run. This usually means"
12784 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12785 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12786 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12787 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12788 echo "*** is required on your system"
12789 echo "***"
12790 echo "*** If you have an old version installed, it is best to remove it, although"
12791 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12792 echo "***"
12793 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12794 echo "*** came with the system with the command"
12795 echo "***"
12796 echo "*** rpm --erase --nodeps gtk gtk-devel"
12797else
12798 echo "configure: failed program was:" >&5
12799 cat conftest.$ac_ext >&5
12800 rm -rf conftest*
12801 echo "*** The test program failed to compile or link. See the file config.log for the"
12802 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12803 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12804 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12805fi
12806rm -f conftest*
12807 CFLAGS="$ac_save_CFLAGS"
12808 LIBS="$ac_save_LIBS"
12809 fi
12810 fi
12811 GTK_CFLAGS=""
12812 GTK_LIBS=""
12813 :
12814 fi
12815
12816
12817 rm -f conf.gtktest
12818
12819
12820 if test -z "$wx_cv_lib_gtk"; then
12821 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12822if test "${with_gtk_prefix+set}" = set; then
12823 withval="$with_gtk_prefix"
12824 gtk_config_prefix="$withval"
12825else
12826 gtk_config_prefix=""
12827fi
12828
12829# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12830if test "${with_gtk_exec_prefix+set}" = set; then
12831 withval="$with_gtk_exec_prefix"
12832 gtk_config_exec_prefix="$withval"
12833else
12834 gtk_config_exec_prefix=""
12835fi
12836
12837# Check whether --enable-gtktest or --disable-gtktest was given.
12838if test "${enable_gtktest+set}" = set; then
12839 enableval="$enable_gtktest"
12840 :
12841else
12842 enable_gtktest=yes
12843fi
12844
12845
12846 for module in . $GTK_MODULES
12847 do
12848 case "$module" in
12849 gthread)
12850 gtk_config_args="$gtk_config_args gthread"
12851 ;;
12852 esac
12853 done
12854
12855 if test x$gtk_config_exec_prefix != x ; then
12856 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12857 if test x${GTK_CONFIG+set} != xset ; then
12858 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12859 fi
12860 fi
12861 if test x$gtk_config_prefix != x ; then
12862 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12863 if test x${GTK_CONFIG+set} != xset ; then
12864 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12865 fi
12866 fi
12867
12868 # Extract the first word of "gtk-config", so it can be a program name with args.
12869set dummy gtk-config; ac_word=$2
12870echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12871echo "configure:12872: checking for $ac_word" >&5
12872if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12873 echo $ac_n "(cached) $ac_c" 1>&6
12874else
12875 case "$GTK_CONFIG" in
12876 /*)
12877 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12878 ;;
12879 ?:/*)
12880 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12881 ;;
12882 *)
12883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12884 ac_dummy="$PATH"
12885 for ac_dir in $ac_dummy; do
12886 test -z "$ac_dir" && ac_dir=.
12887 if test -f $ac_dir/$ac_word; then
12888 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12889 break
12890 fi
12891 done
12892 IFS="$ac_save_ifs"
12893 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12894 ;;
12895esac
12896fi
12897GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12898if test -n "$GTK_CONFIG"; then
12899 echo "$ac_t""$GTK_CONFIG" 1>&6
12900else
12901 echo "$ac_t""no" 1>&6
12902fi
12903
12904 min_gtk_version=1.2.3
12905 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12906echo "configure:12907: checking for GTK - version >= $min_gtk_version" >&5
12907 no_gtk=""
12908 if test "$GTK_CONFIG" = "no" ; then
12909 no_gtk=yes
12910 else
12911 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12912 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12913 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12914 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12915 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12916 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12917 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12918 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12919 if test "x$enable_gtktest" = "xyes" ; then
12920 ac_save_CFLAGS="$CFLAGS"
12921 ac_save_LIBS="$LIBS"
12922 CFLAGS="$CFLAGS $GTK_CFLAGS"
12923 LIBS="$GTK_LIBS $LIBS"
12924 rm -f conf.gtktest
12925 if test "$cross_compiling" = yes; then
12926 echo $ac_n "cross compiling; assumed OK... $ac_c"
12927else
12928 cat > conftest.$ac_ext <<EOF
12929#line 12930 "configure"
12930#include "confdefs.h"
12931
12932#include <gtk/gtk.h>
12933#include <stdio.h>
12934#include <stdlib.h>
12935
12936int
12937main ()
12938{
12939 int major, minor, micro;
12940 char *tmp_version;
12941
12942 system ("touch conf.gtktest");
12943
12944 /* HP/UX 9 (%@#!) writes to sscanf strings */
12945 tmp_version = g_strdup("$min_gtk_version");
12946 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12947 printf("%s, bad version string\n", "$min_gtk_version");
12948 exit(1);
12949 }
12950
12951 if ((gtk_major_version != $gtk_config_major_version) ||
12952 (gtk_minor_version != $gtk_config_minor_version) ||
12953 (gtk_micro_version != $gtk_config_micro_version))
12954 {
12955 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12956 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12957 gtk_major_version, gtk_minor_version, gtk_micro_version);
12958 printf ("*** was found! If gtk-config was correct, then it is best\n");
12959 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12960 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12961 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12962 printf("*** required on your system.\n");
12963 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12964 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12965 printf("*** before re-running configure\n");
12966 }
12967#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12968 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12969 (gtk_minor_version != GTK_MINOR_VERSION) ||
12970 (gtk_micro_version != GTK_MICRO_VERSION))
12971 {
12972 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12973 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12974 printf("*** library (version %d.%d.%d)\n",
12975 gtk_major_version, gtk_minor_version, gtk_micro_version);
12976 }
12977#endif /* defined (GTK_MAJOR_VERSION) ... */
12978 else
12979 {
12980 if ((gtk_major_version > major) ||
12981 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12982 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12983 {
12984 return 0;
12985 }
12986 else
12987 {
12988 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12989 gtk_major_version, gtk_minor_version, gtk_micro_version);
12990 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12991 major, minor, micro);
12992 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12993 printf("***\n");
12994 printf("*** If you have already installed a sufficiently new version, this error\n");
12995 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12996 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12997 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12998 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12999 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13000 printf("*** so that the correct libraries are found at run-time))\n");
13001 }
13002 }
13003 return 1;
13004}
13005
13006EOF
13007if { (eval echo configure:13008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13008then
13009 :
13010else
13011 echo "configure: failed program was:" >&5
13012 cat conftest.$ac_ext >&5
13013 rm -fr conftest*
13014 no_gtk=yes
13015fi
13016rm -fr conftest*
13017fi
13018
13019 CFLAGS="$ac_save_CFLAGS"
13020 LIBS="$ac_save_LIBS"
13021 fi
13022 fi
13023 if test "x$no_gtk" = x ; then
13024 echo "$ac_t""yes" 1>&6
13025 wx_cv_lib_gtk=1.2.3
13026 else
13027 echo "$ac_t""no" 1>&6
13028 if test "$GTK_CONFIG" = "no" ; then
13029 echo "*** The gtk-config script installed by GTK could not be found"
13030 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13031 echo "*** your path, or set the GTK_CONFIG environment variable to the"
13032 echo "*** full path to gtk-config."
13033 else
13034 if test -f conf.gtktest ; then
13035 :
13036 else
13037 echo "*** Could not run GTK test program, checking why..."
13038 CFLAGS="$CFLAGS $GTK_CFLAGS"
13039 LIBS="$LIBS $GTK_LIBS"
13040 cat > conftest.$ac_ext <<EOF
13041#line 13042 "configure"
13042#include "confdefs.h"
13043
13044#include <gtk/gtk.h>
13045#include <stdio.h>
13046
13047int main() {
13048 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13049; return 0; }
13050EOF
13051if { (eval echo configure:13052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13052 rm -rf conftest*
13053 echo "*** The test program compiled, but did not run. This usually means"
13054 echo "*** that the run-time linker is not finding GTK or finding the wrong"
13055 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13056 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13057 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13058 echo "*** is required on your system"
13059 echo "***"
13060 echo "*** If you have an old version installed, it is best to remove it, although"
13061 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13062 echo "***"
13063 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13064 echo "*** came with the system with the command"
13065 echo "***"
13066 echo "*** rpm --erase --nodeps gtk gtk-devel"
13067else
13068 echo "configure: failed program was:" >&5
13069 cat conftest.$ac_ext >&5
13070 rm -rf conftest*
13071 echo "*** The test program failed to compile or link. See the file config.log for the"
13072 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13073 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
13074 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
13075fi
13076rm -f conftest*
13077 CFLAGS="$ac_save_CFLAGS"
13078 LIBS="$ac_save_LIBS"
13079 fi
13080 fi
13081 GTK_CFLAGS=""
13082 GTK_LIBS=""
13083 :
13084 fi
13085
13086
13087 rm -f conf.gtktest
13088
13089 fi
13090 fi
13091
13092 if test -z "$wx_cv_lib_gtk"; then
13093 wx_cv_lib_gtk=none
13094 else
13095 wx_cv_cflags_gtk=$GTK_CFLAGS
13096 wx_cv_libs_gtk=$GTK_LIBS
13097 fi
13098
13099
13100fi
13101
13102
13103 if test "$gtk_version_cached" = 1; then
13104 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
13105 fi
13106
13107 case "$wx_cv_lib_gtk" in
13108 2.0) WXGTK20=1
13109 TOOLKIT_VERSION=2
13110 ;;
13111 1.2.7) WXGTK127=1
13112 WXGTK12=1
13113 ;;
13114 1.2.3) WXGTK12=1
13115 ;;
13116 *) { echo "configure: error:
13117Please check that gtk-config is in path, the directory
13118where GTK+ libraries are installed (returned by
13119'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13120equivalent variable and GTK+ is version 1.2.3 or above.
13121 " 1>&2; exit 1; }
13122 ;;
13123 esac
13124
13125 if test "$WXGTK20" = 1; then
13126 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13127
13128 succeeded=no
13129
13130 if test -z "$PKG_CONFIG"; then
13131 # Extract the first word of "pkg-config", so it can be a program name with args.
13132set dummy pkg-config; ac_word=$2
13133echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13134echo "configure:13135: checking for $ac_word" >&5
13135if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13136 echo $ac_n "(cached) $ac_c" 1>&6
13137else
13138 case "$PKG_CONFIG" in
13139 /*)
13140 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13141 ;;
13142 ?:/*)
13143 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13144 ;;
13145 *)
13146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13147 ac_dummy="$PATH"
13148 for ac_dir in $ac_dummy; do
13149 test -z "$ac_dir" && ac_dir=.
13150 if test -f $ac_dir/$ac_word; then
13151 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13152 break
13153 fi
13154 done
13155 IFS="$ac_save_ifs"
13156 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13157 ;;
13158esac
13159fi
13160PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13161if test -n "$PKG_CONFIG"; then
13162 echo "$ac_t""$PKG_CONFIG" 1>&6
13163else
13164 echo "$ac_t""no" 1>&6
13165fi
13166
13167 fi
13168
13169 if test "$PKG_CONFIG" = "no" ; then
13170 echo "*** The pkg-config script could not be found. Make sure it is"
13171 echo "*** in your path, or set the PKG_CONFIG environment variable"
13172 echo "*** to the full path to pkg-config."
13173 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13174 else
13175 PKG_CONFIG_MIN_VERSION=0.9.0
13176 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13177 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
13178echo "configure:13179: checking for pangoft2" >&5
13179
13180 if $PKG_CONFIG --exists "pangoft2" ; then
13181 echo "$ac_t""yes" 1>&6
13182 succeeded=yes
13183
13184 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
13185echo "configure:13186: checking PANGOFT2_CFLAGS" >&5
13186 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
13187 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
13188
13189 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
13190echo "configure:13191: checking PANGOFT2_LIBS" >&5
13191 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
13192 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
13193 else
13194 PANGOFT2_CFLAGS=""
13195 PANGOFT2_LIBS=""
13196 ## If we have a custom action on failure, don't print errors, but
13197 ## do set a variable so people can do so.
13198 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
13199
13200 fi
13201
13202
13203
13204 else
13205 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13206 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13207 fi
13208 fi
13209
13210 if test $succeeded = yes; then
13211
13212 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13213 LIBS="$LIBS $PANGOFT2_LIBS"
13214
13215 else
13216
13217 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
13218 wxUSE_PRINTING_ARCHITECTURE="no"
13219
13220
13221 fi
13222
13223 fi
13224 else
13225 if test "$wxUSE_UNICODE" = "yes"; then
13226 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13227 wxUSE_UNICODE=no
13228 fi
13229 fi
13230
13231 if test "$USE_DARWIN" != 1; then
13232 for ac_func in poll
13233do
13234echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13235echo "configure:13236: checking for $ac_func" >&5
13236if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13237 echo $ac_n "(cached) $ac_c" 1>&6
13238else
13239 cat > conftest.$ac_ext <<EOF
13240#line 13241 "configure"
13241#include "confdefs.h"
13242/* System header to define __stub macros and hopefully few prototypes,
13243 which can conflict with char $ac_func(); below. */
13244#include <assert.h>
13245/* Override any gcc2 internal prototype to avoid an error. */
13246/* We use char because int might match the return type of a gcc2
13247 builtin and then its argument prototype would still apply. */
13248char $ac_func();
13249
13250int main() {
13251
13252/* The GNU C library defines this for functions which it implements
13253 to always fail with ENOSYS. Some functions are actually named
13254 something starting with __ and the normal name is an alias. */
13255#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13256choke me
13257#else
13258$ac_func();
13259#endif
13260
13261; return 0; }
13262EOF
13263if { (eval echo configure:13264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13264 rm -rf conftest*
13265 eval "ac_cv_func_$ac_func=yes"
13266else
13267 echo "configure: failed program was:" >&5
13268 cat conftest.$ac_ext >&5
13269 rm -rf conftest*
13270 eval "ac_cv_func_$ac_func=no"
13271fi
13272rm -f conftest*
13273fi
13274
13275if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13276 echo "$ac_t""yes" 1>&6
13277 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13278 cat >> confdefs.h <<EOF
13279#define $ac_tr_func 1
13280EOF
13281
13282else
13283 echo "$ac_t""no" 1>&6
13284fi
13285done
13286
13287 fi
13288
13289 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13290 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13291
13292 AFMINSTALL=afminstall
13293 TOOLKIT=GTK
13294 GUIDIST=GTK_DIST
13295
13296 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
13297echo "configure:13298: checking for gdk_im_open in -lgdk" >&5
13298ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13299if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13300 echo $ac_n "(cached) $ac_c" 1>&6
13301else
13302 ac_save_LIBS="$LIBS"
13303LIBS="-lgdk $LIBS"
13304cat > conftest.$ac_ext <<EOF
13305#line 13306 "configure"
13306#include "confdefs.h"
13307/* Override any gcc2 internal prototype to avoid an error. */
13308/* We use char because int might match the return type of a gcc2
13309 builtin and then its argument prototype would still apply. */
13310char gdk_im_open();
13311
13312int main() {
13313gdk_im_open()
13314; return 0; }
13315EOF
13316if { (eval echo configure:13317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13317 rm -rf conftest*
13318 eval "ac_cv_lib_$ac_lib_var=yes"
13319else
13320 echo "configure: failed program was:" >&5
13321 cat conftest.$ac_ext >&5
13322 rm -rf conftest*
13323 eval "ac_cv_lib_$ac_lib_var=no"
13324fi
13325rm -f conftest*
13326LIBS="$ac_save_LIBS"
13327
13328fi
13329if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13330 echo "$ac_t""yes" 1>&6
13331 cat >> confdefs.h <<\EOF
13332#define HAVE_XIM 1
13333EOF
13334
13335else
13336 echo "$ac_t""no" 1>&6
13337fi
13338
13339 fi
13340
13341 if test "$wxUSE_MGL" = 1; then
13342 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
13343echo "configure:13344: checking for SciTech MGL library" >&5
13344 if test "x$MGL_ROOT" = x ; then
13345 echo "$ac_t""not found" 1>&6
13346 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
13347 else
13348 echo "$ac_t""$MGL_ROOT" 1>&6
13349 fi
13350
13351 echo $ac_n "checking for libmgl location""... $ac_c" 1>&6
13352echo "configure:13353: checking for libmgl location" >&5
13353 case "${host}" in
13354 *-*-linux* )
13355 if test "x$wxUSE_SHARED" = xyes ; then
13356 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
13357 else
13358 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
13359 fi
13360 ;;
13361 *-pc-msdosdjgpp )
13362 mgl_os_candidates="dos32/dj2"
13363 ;;
13364 *)
13365 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
13366 esac
13367
13368 mgl_lib_type=""
13369 mgl_os=""
13370
13371 for mgl_os_i in $mgl_os_candidates ; do
13372 if test "x$mgl_os" = x ; then
13373 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13374 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
13375 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
13376 mgl_lib_type=debug
13377 mgl_os=$mgl_os_i
13378 fi
13379 fi
13380 if test "x$mgl_lib_type" = x ; then
13381 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
13382 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
13383 mgl_lib_type=release
13384 mgl_os=$mgl_os_i
13385 fi
13386 fi
13387 fi
13388 done
13389
13390 if test "x$mgl_os" = x ; then
13391 echo "$ac_t""not found" 1>&6
13392 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13393 fi
13394 echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6
13395
13396 wxUSE_UNIVERSAL="yes"
13397
13398 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13399 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13400
13401 AFMINSTALL=afminstall
13402 TOOLKIT=MGL
13403 GUIDIST=MGL_DIST
13404 fi
13405
13406 if test "$wxUSE_MICROWIN" = 1; then
13407 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
13408echo "configure:13409: checking for MicroWindows" >&5
13409 if test "x$MICROWINDOWS" = x ; then
13410 echo "$ac_t""not found" 1>&6
13411 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
13412 else
13413 echo "$ac_t""$MICROWINDOWS" 1>&6
13414 fi
13415
13416 if test -f $MICROWINDOWS/lib/libmwin.a; then
13417 echo "$ac_t""MicroWindows' libraries found." 1>&6
13418 else
13419 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
13420 fi
13421
13422 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13423 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13424
13425 wxUSE_UNIVERSAL="yes"
13426
13427 AFMINSTALL=afminstall
13428 TOOLKIT=MICROWIN
13429 GUIDIST=MICROWIN_DIST
13430
13431 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
13432 fi
13433
13434 if test "$wxUSE_X11" = 1; then
13435 # If we find X, set shell vars x_includes and x_libraries to the
13436# paths, otherwise set no_x=yes.
13437# Uses ac_ vars as temps to allow command line to override cache and checks.
13438# --without-x overrides everything else, but does not touch the cache.
13439echo $ac_n "checking for X""... $ac_c" 1>&6
13440echo "configure:13441: checking for X" >&5
13441
13442# Check whether --with-x or --without-x was given.
13443if test "${with_x+set}" = set; then
13444 withval="$with_x"
13445 :
13446fi
13447
13448# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13449if test "x$with_x" = xno; then
13450 # The user explicitly disabled X.
13451 have_x=disabled
13452else
13453 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13454 # Both variables are already set.
13455 have_x=yes
13456 else
13457if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13458 echo $ac_n "(cached) $ac_c" 1>&6
13459else
13460 # One or both of the vars are not set, and there is no cached value.
13461ac_x_includes=NO ac_x_libraries=NO
13462rm -fr conftestdir
13463if mkdir conftestdir; then
13464 cd conftestdir
13465 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
13466 cat > Imakefile <<'EOF'
13467acfindx:
13468 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
13469EOF
13470 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13471 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13472 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13473 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13474 for ac_extension in a so sl; do
13475 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
13476 test -f $ac_im_libdir/libX11.$ac_extension; then
13477 ac_im_usrlibdir=$ac_im_libdir; break
13478 fi
13479 done
13480 # Screen out bogus values from the imake configuration. They are
13481 # bogus both because they are the default anyway, and because
13482 # using them would break gcc on systems where it needs fixed includes.
13483 case "$ac_im_incroot" in
13484 /usr/include) ;;
13485 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
13486 esac
13487 case "$ac_im_usrlibdir" in
13488 /usr/lib | /lib) ;;
13489 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
13490 esac
13491 fi
13492 cd ..
13493 rm -fr conftestdir
13494fi
13495
13496if test "$ac_x_includes" = NO; then
13497 # Guess where to find include files, by looking for this one X11 .h file.
13498 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13499
13500 # First, try using that file with no special directory specified.
13501cat > conftest.$ac_ext <<EOF
13502#line 13503 "configure"
13503#include "confdefs.h"
13504#include <$x_direct_test_include>
13505EOF
13506ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13507{ (eval echo configure:13508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13508ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13509if test -z "$ac_err"; then
13510 rm -rf conftest*
13511 # We can compile using X headers with no special include directory.
13512ac_x_includes=
13513else
13514 echo "$ac_err" >&5
13515 echo "configure: failed program was:" >&5
13516 cat conftest.$ac_ext >&5
13517 rm -rf conftest*
13518 # Look for the header file in a standard set of common directories.
13519# Check X11 before X11Rn because it is often a symlink to the current release.
13520 for ac_dir in \
13521 /usr/X11/include \
13522 /usr/X11R6/include \
13523 /usr/X11R5/include \
13524 /usr/X11R4/include \
13525 \
13526 /usr/include/X11 \
13527 /usr/include/X11R6 \
13528 /usr/include/X11R5 \
13529 /usr/include/X11R4 \
13530 \
13531 /usr/local/X11/include \
13532 /usr/local/X11R6/include \
13533 /usr/local/X11R5/include \
13534 /usr/local/X11R4/include \
13535 \
13536 /usr/local/include/X11 \
13537 /usr/local/include/X11R6 \
13538 /usr/local/include/X11R5 \
13539 /usr/local/include/X11R4 \
13540 \
13541 /usr/X386/include \
13542 /usr/x386/include \
13543 /usr/XFree86/include/X11 \
13544 \
13545 /usr/include \
13546 /usr/local/include \
13547 /usr/unsupported/include \
13548 /usr/athena/include \
13549 /usr/local/x11r5/include \
13550 /usr/lpp/Xamples/include \
13551 \
13552 /usr/openwin/include \
13553 /usr/openwin/share/include \
13554 ; \
13555 do
13556 if test -r "$ac_dir/$x_direct_test_include"; then
13557 ac_x_includes=$ac_dir
13558 break
13559 fi
13560 done
13561fi
13562rm -f conftest*
13563fi # $ac_x_includes = NO
13564
13565if test "$ac_x_libraries" = NO; then
13566 # Check for the libraries.
13567
13568 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13569 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13570
13571 # See if we find them without any special options.
13572 # Don't add to $LIBS permanently.
13573 ac_save_LIBS="$LIBS"
13574 LIBS="-l$x_direct_test_library $LIBS"
13575cat > conftest.$ac_ext <<EOF
13576#line 13577 "configure"
13577#include "confdefs.h"
13578
13579int main() {
13580${x_direct_test_function}()
13581; return 0; }
13582EOF
13583if { (eval echo configure:13584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13584 rm -rf conftest*
13585 LIBS="$ac_save_LIBS"
13586# We can link X programs with no special library path.
13587ac_x_libraries=
13588else
13589 echo "configure: failed program was:" >&5
13590 cat conftest.$ac_ext >&5
13591 rm -rf conftest*
13592 LIBS="$ac_save_LIBS"
13593# First see if replacing the include by lib works.
13594# Check X11 before X11Rn because it is often a symlink to the current release.
13595for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13596 /usr/X11/lib \
13597 /usr/X11R6/lib \
13598 /usr/X11R5/lib \
13599 /usr/X11R4/lib \
13600 \
13601 /usr/lib/X11 \
13602 /usr/lib/X11R6 \
13603 /usr/lib/X11R5 \
13604 /usr/lib/X11R4 \
13605 \
13606 /usr/local/X11/lib \
13607 /usr/local/X11R6/lib \
13608 /usr/local/X11R5/lib \
13609 /usr/local/X11R4/lib \
13610 \
13611 /usr/local/lib/X11 \
13612 /usr/local/lib/X11R6 \
13613 /usr/local/lib/X11R5 \
13614 /usr/local/lib/X11R4 \
13615 \
13616 /usr/X386/lib \
13617 /usr/x386/lib \
13618 /usr/XFree86/lib/X11 \
13619 \
13620 /usr/lib \
13621 /usr/local/lib \
13622 /usr/unsupported/lib \
13623 /usr/athena/lib \
13624 /usr/local/x11r5/lib \
13625 /usr/lpp/Xamples/lib \
13626 /lib/usr/lib/X11 \
13627 \
13628 /usr/openwin/lib \
13629 /usr/openwin/share/lib \
13630 ; \
13631do
13632 for ac_extension in a so sl; do
13633 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
13634 ac_x_libraries=$ac_dir
13635 break 2
13636 fi
13637 done
13638done
13639fi
13640rm -f conftest*
13641fi # $ac_x_libraries = NO
13642
13643if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
13644 # Didn't find X anywhere. Cache the known absence of X.
13645 ac_cv_have_x="have_x=no"
13646else
13647 # Record where we found X for the cache.
13648 ac_cv_have_x="have_x=yes \
13649 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
13650fi
13651fi
13652 fi
13653 eval "$ac_cv_have_x"
13654fi # $with_x != no
13655
13656if test "$have_x" != yes; then
13657 echo "$ac_t""$have_x" 1>&6
13658 no_x=yes
13659else
13660 # If each of the values was on the command line, it overrides each guess.
13661 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13662 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13663 # Update the cache value to reflect the command line values.
13664 ac_cv_have_x="have_x=yes \
13665 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
13666 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
13667fi
13668
13669if test "$no_x" = yes; then
13670 # Not all programs may use this symbol, but it does not hurt to define it.
13671 cat >> confdefs.h <<\EOF
13672#define X_DISPLAY_MISSING 1
13673EOF
13674
13675 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13676else
13677 if test -n "$x_includes"; then
13678 X_CFLAGS="$X_CFLAGS -I$x_includes"
13679 fi
13680
13681 # It would also be nice to do this for all -L options, not just this one.
13682 if test -n "$x_libraries"; then
13683 X_LIBS="$X_LIBS -L$x_libraries"
13684 # For Solaris; some versions of Sun CC require a space after -R and
13685 # others require no space. Words are not sufficient . . . .
13686 case "`(uname -sr) 2>/dev/null`" in
13687 "SunOS 5"*)
13688 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13689echo "configure:13690: checking whether -R must be followed by a space" >&5
13690 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13691 cat > conftest.$ac_ext <<EOF
13692#line 13693 "configure"
13693#include "confdefs.h"
13694
13695int main() {
13696
13697; return 0; }
13698EOF
13699if { (eval echo configure:13700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13700 rm -rf conftest*
13701 ac_R_nospace=yes
13702else
13703 echo "configure: failed program was:" >&5
13704 cat conftest.$ac_ext >&5
13705 rm -rf conftest*
13706 ac_R_nospace=no
13707fi
13708rm -f conftest*
13709 if test $ac_R_nospace = yes; then
13710 echo "$ac_t""no" 1>&6
13711 X_LIBS="$X_LIBS -R$x_libraries"
13712 else
13713 LIBS="$ac_xsave_LIBS -R $x_libraries"
13714 cat > conftest.$ac_ext <<EOF
13715#line 13716 "configure"
13716#include "confdefs.h"
13717
13718int main() {
13719
13720; return 0; }
13721EOF
13722if { (eval echo configure:13723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13723 rm -rf conftest*
13724 ac_R_space=yes
13725else
13726 echo "configure: failed program was:" >&5
13727 cat conftest.$ac_ext >&5
13728 rm -rf conftest*
13729 ac_R_space=no
13730fi
13731rm -f conftest*
13732 if test $ac_R_space = yes; then
13733 echo "$ac_t""yes" 1>&6
13734 X_LIBS="$X_LIBS -R $x_libraries"
13735 else
13736 echo "$ac_t""neither works" 1>&6
13737 fi
13738 fi
13739 LIBS="$ac_xsave_LIBS"
13740 esac
13741 fi
13742
13743 # Check for system-dependent libraries X programs must link with.
13744 # Do this before checking for the system-independent R6 libraries
13745 # (-lICE), since we may need -lsocket or whatever for X linking.
13746
13747 if test "$ISC" = yes; then
13748 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13749 else
13750 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13751 # libraries were built with DECnet support. And karl@cs.umb.edu says
13752 # the Alpha needs dnet_stub (dnet does not exist).
13753 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13754echo "configure:13755: checking for dnet_ntoa in -ldnet" >&5
13755ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13756if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13757 echo $ac_n "(cached) $ac_c" 1>&6
13758else
13759 ac_save_LIBS="$LIBS"
13760LIBS="-ldnet $LIBS"
13761cat > conftest.$ac_ext <<EOF
13762#line 13763 "configure"
13763#include "confdefs.h"
13764/* Override any gcc2 internal prototype to avoid an error. */
13765/* We use char because int might match the return type of a gcc2
13766 builtin and then its argument prototype would still apply. */
13767char dnet_ntoa();
13768
13769int main() {
13770dnet_ntoa()
13771; return 0; }
13772EOF
13773if { (eval echo configure:13774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13774 rm -rf conftest*
13775 eval "ac_cv_lib_$ac_lib_var=yes"
13776else
13777 echo "configure: failed program was:" >&5
13778 cat conftest.$ac_ext >&5
13779 rm -rf conftest*
13780 eval "ac_cv_lib_$ac_lib_var=no"
13781fi
13782rm -f conftest*
13783LIBS="$ac_save_LIBS"
13784
13785fi
13786if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13787 echo "$ac_t""yes" 1>&6
13788 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13789else
13790 echo "$ac_t""no" 1>&6
13791fi
13792
13793 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13794 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13795echo "configure:13796: checking for dnet_ntoa in -ldnet_stub" >&5
13796ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13797if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13798 echo $ac_n "(cached) $ac_c" 1>&6
13799else
13800 ac_save_LIBS="$LIBS"
13801LIBS="-ldnet_stub $LIBS"
13802cat > conftest.$ac_ext <<EOF
13803#line 13804 "configure"
13804#include "confdefs.h"
13805/* Override any gcc2 internal prototype to avoid an error. */
13806/* We use char because int might match the return type of a gcc2
13807 builtin and then its argument prototype would still apply. */
13808char dnet_ntoa();
13809
13810int main() {
13811dnet_ntoa()
13812; return 0; }
13813EOF
13814if { (eval echo configure:13815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13815 rm -rf conftest*
13816 eval "ac_cv_lib_$ac_lib_var=yes"
13817else
13818 echo "configure: failed program was:" >&5
13819 cat conftest.$ac_ext >&5
13820 rm -rf conftest*
13821 eval "ac_cv_lib_$ac_lib_var=no"
13822fi
13823rm -f conftest*
13824LIBS="$ac_save_LIBS"
13825
13826fi
13827if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13828 echo "$ac_t""yes" 1>&6
13829 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13830else
13831 echo "$ac_t""no" 1>&6
13832fi
13833
13834 fi
13835
13836 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13837 # to get the SysV transport functions.
13838 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13839 # needs -lnsl.
13840 # The nsl library prevents programs from opening the X display
13841 # on Irix 5.2, according to dickey@clark.net.
13842 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13843echo "configure:13844: checking for gethostbyname" >&5
13844if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13845 echo $ac_n "(cached) $ac_c" 1>&6
13846else
13847 cat > conftest.$ac_ext <<EOF
13848#line 13849 "configure"
13849#include "confdefs.h"
13850/* System header to define __stub macros and hopefully few prototypes,
13851 which can conflict with char gethostbyname(); below. */
13852#include <assert.h>
13853/* Override any gcc2 internal prototype to avoid an error. */
13854/* We use char because int might match the return type of a gcc2
13855 builtin and then its argument prototype would still apply. */
13856char gethostbyname();
13857
13858int main() {
13859
13860/* The GNU C library defines this for functions which it implements
13861 to always fail with ENOSYS. Some functions are actually named
13862 something starting with __ and the normal name is an alias. */
13863#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13864choke me
13865#else
13866gethostbyname();
13867#endif
13868
13869; return 0; }
13870EOF
13871if { (eval echo configure:13872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13872 rm -rf conftest*
13873 eval "ac_cv_func_gethostbyname=yes"
13874else
13875 echo "configure: failed program was:" >&5
13876 cat conftest.$ac_ext >&5
13877 rm -rf conftest*
13878 eval "ac_cv_func_gethostbyname=no"
13879fi
13880rm -f conftest*
13881fi
13882
13883if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13884 echo "$ac_t""yes" 1>&6
13885 :
13886else
13887 echo "$ac_t""no" 1>&6
13888fi
13889
13890 if test $ac_cv_func_gethostbyname = no; then
13891 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13892echo "configure:13893: checking for gethostbyname in -lnsl" >&5
13893ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13894if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13895 echo $ac_n "(cached) $ac_c" 1>&6
13896else
13897 ac_save_LIBS="$LIBS"
13898LIBS="-lnsl $LIBS"
13899cat > conftest.$ac_ext <<EOF
13900#line 13901 "configure"
13901#include "confdefs.h"
13902/* Override any gcc2 internal prototype to avoid an error. */
13903/* We use char because int might match the return type of a gcc2
13904 builtin and then its argument prototype would still apply. */
13905char gethostbyname();
13906
13907int main() {
13908gethostbyname()
13909; return 0; }
13910EOF
13911if { (eval echo configure:13912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13912 rm -rf conftest*
13913 eval "ac_cv_lib_$ac_lib_var=yes"
13914else
13915 echo "configure: failed program was:" >&5
13916 cat conftest.$ac_ext >&5
13917 rm -rf conftest*
13918 eval "ac_cv_lib_$ac_lib_var=no"
13919fi
13920rm -f conftest*
13921LIBS="$ac_save_LIBS"
13922
13923fi
13924if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13925 echo "$ac_t""yes" 1>&6
13926 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13927else
13928 echo "$ac_t""no" 1>&6
13929fi
13930
13931 fi
13932
13933 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13934 # socket/setsockopt and other routines are undefined under SCO ODT
13935 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13936 # on later versions), says simon@lia.di.epfl.ch: it contains
13937 # gethostby* variants that don't use the nameserver (or something).
13938 # -lsocket must be given before -lnsl if both are needed.
13939 # We assume that if connect needs -lnsl, so does gethostbyname.
13940 echo $ac_n "checking for connect""... $ac_c" 1>&6
13941echo "configure:13942: checking for connect" >&5
13942if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13943 echo $ac_n "(cached) $ac_c" 1>&6
13944else
13945 cat > conftest.$ac_ext <<EOF
13946#line 13947 "configure"
13947#include "confdefs.h"
13948/* System header to define __stub macros and hopefully few prototypes,
13949 which can conflict with char connect(); below. */
13950#include <assert.h>
13951/* Override any gcc2 internal prototype to avoid an error. */
13952/* We use char because int might match the return type of a gcc2
13953 builtin and then its argument prototype would still apply. */
13954char connect();
13955
13956int main() {
13957
13958/* The GNU C library defines this for functions which it implements
13959 to always fail with ENOSYS. Some functions are actually named
13960 something starting with __ and the normal name is an alias. */
13961#if defined (__stub_connect) || defined (__stub___connect)
13962choke me
13963#else
13964connect();
13965#endif
13966
13967; return 0; }
13968EOF
13969if { (eval echo configure:13970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13970 rm -rf conftest*
13971 eval "ac_cv_func_connect=yes"
13972else
13973 echo "configure: failed program was:" >&5
13974 cat conftest.$ac_ext >&5
13975 rm -rf conftest*
13976 eval "ac_cv_func_connect=no"
13977fi
13978rm -f conftest*
13979fi
13980
13981if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13982 echo "$ac_t""yes" 1>&6
13983 :
13984else
13985 echo "$ac_t""no" 1>&6
13986fi
13987
13988 if test $ac_cv_func_connect = no; then
13989 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
13990echo "configure:13991: checking for connect in -lsocket" >&5
13991ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13992if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13993 echo $ac_n "(cached) $ac_c" 1>&6
13994else
13995 ac_save_LIBS="$LIBS"
13996LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13997cat > conftest.$ac_ext <<EOF
13998#line 13999 "configure"
13999#include "confdefs.h"
14000/* Override any gcc2 internal prototype to avoid an error. */
14001/* We use char because int might match the return type of a gcc2
14002 builtin and then its argument prototype would still apply. */
14003char connect();
14004
14005int main() {
14006connect()
14007; return 0; }
14008EOF
14009if { (eval echo configure:14010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14010 rm -rf conftest*
14011 eval "ac_cv_lib_$ac_lib_var=yes"
14012else
14013 echo "configure: failed program was:" >&5
14014 cat conftest.$ac_ext >&5
14015 rm -rf conftest*
14016 eval "ac_cv_lib_$ac_lib_var=no"
14017fi
14018rm -f conftest*
14019LIBS="$ac_save_LIBS"
14020
14021fi
14022if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14023 echo "$ac_t""yes" 1>&6
14024 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14025else
14026 echo "$ac_t""no" 1>&6
14027fi
14028
14029 fi
14030
14031 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14032 echo $ac_n "checking for remove""... $ac_c" 1>&6
14033echo "configure:14034: checking for remove" >&5
14034if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14035 echo $ac_n "(cached) $ac_c" 1>&6
14036else
14037 cat > conftest.$ac_ext <<EOF
14038#line 14039 "configure"
14039#include "confdefs.h"
14040/* System header to define __stub macros and hopefully few prototypes,
14041 which can conflict with char remove(); below. */
14042#include <assert.h>
14043/* Override any gcc2 internal prototype to avoid an error. */
14044/* We use char because int might match the return type of a gcc2
14045 builtin and then its argument prototype would still apply. */
14046char remove();
14047
14048int main() {
14049
14050/* The GNU C library defines this for functions which it implements
14051 to always fail with ENOSYS. Some functions are actually named
14052 something starting with __ and the normal name is an alias. */
14053#if defined (__stub_remove) || defined (__stub___remove)
14054choke me
14055#else
14056remove();
14057#endif
14058
14059; return 0; }
14060EOF
14061if { (eval echo configure:14062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14062 rm -rf conftest*
14063 eval "ac_cv_func_remove=yes"
14064else
14065 echo "configure: failed program was:" >&5
14066 cat conftest.$ac_ext >&5
14067 rm -rf conftest*
14068 eval "ac_cv_func_remove=no"
14069fi
14070rm -f conftest*
14071fi
14072
14073if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14074 echo "$ac_t""yes" 1>&6
14075 :
14076else
14077 echo "$ac_t""no" 1>&6
14078fi
14079
14080 if test $ac_cv_func_remove = no; then
14081 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14082echo "configure:14083: checking for remove in -lposix" >&5
14083ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14084if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14085 echo $ac_n "(cached) $ac_c" 1>&6
14086else
14087 ac_save_LIBS="$LIBS"
14088LIBS="-lposix $LIBS"
14089cat > conftest.$ac_ext <<EOF
14090#line 14091 "configure"
14091#include "confdefs.h"
14092/* Override any gcc2 internal prototype to avoid an error. */
14093/* We use char because int might match the return type of a gcc2
14094 builtin and then its argument prototype would still apply. */
14095char remove();
14096
14097int main() {
14098remove()
14099; return 0; }
14100EOF
14101if { (eval echo configure:14102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14102 rm -rf conftest*
14103 eval "ac_cv_lib_$ac_lib_var=yes"
14104else
14105 echo "configure: failed program was:" >&5
14106 cat conftest.$ac_ext >&5
14107 rm -rf conftest*
14108 eval "ac_cv_lib_$ac_lib_var=no"
14109fi
14110rm -f conftest*
14111LIBS="$ac_save_LIBS"
14112
14113fi
14114if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14115 echo "$ac_t""yes" 1>&6
14116 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14117else
14118 echo "$ac_t""no" 1>&6
14119fi
14120
14121 fi
14122
14123 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14124 echo $ac_n "checking for shmat""... $ac_c" 1>&6
14125echo "configure:14126: checking for shmat" >&5
14126if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14127 echo $ac_n "(cached) $ac_c" 1>&6
14128else
14129 cat > conftest.$ac_ext <<EOF
14130#line 14131 "configure"
14131#include "confdefs.h"
14132/* System header to define __stub macros and hopefully few prototypes,
14133 which can conflict with char shmat(); below. */
14134#include <assert.h>
14135/* Override any gcc2 internal prototype to avoid an error. */
14136/* We use char because int might match the return type of a gcc2
14137 builtin and then its argument prototype would still apply. */
14138char shmat();
14139
14140int main() {
14141
14142/* The GNU C library defines this for functions which it implements
14143 to always fail with ENOSYS. Some functions are actually named
14144 something starting with __ and the normal name is an alias. */
14145#if defined (__stub_shmat) || defined (__stub___shmat)
14146choke me
14147#else
14148shmat();
14149#endif
14150
14151; return 0; }
14152EOF
14153if { (eval echo configure:14154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14154 rm -rf conftest*
14155 eval "ac_cv_func_shmat=yes"
14156else
14157 echo "configure: failed program was:" >&5
14158 cat conftest.$ac_ext >&5
14159 rm -rf conftest*
14160 eval "ac_cv_func_shmat=no"
14161fi
14162rm -f conftest*
14163fi
14164
14165if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14166 echo "$ac_t""yes" 1>&6
14167 :
14168else
14169 echo "$ac_t""no" 1>&6
14170fi
14171
14172 if test $ac_cv_func_shmat = no; then
14173 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14174echo "configure:14175: checking for shmat in -lipc" >&5
14175ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14176if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14177 echo $ac_n "(cached) $ac_c" 1>&6
14178else
14179 ac_save_LIBS="$LIBS"
14180LIBS="-lipc $LIBS"
14181cat > conftest.$ac_ext <<EOF
14182#line 14183 "configure"
14183#include "confdefs.h"
14184/* Override any gcc2 internal prototype to avoid an error. */
14185/* We use char because int might match the return type of a gcc2
14186 builtin and then its argument prototype would still apply. */
14187char shmat();
14188
14189int main() {
14190shmat()
14191; return 0; }
14192EOF
14193if { (eval echo configure:14194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14194 rm -rf conftest*
14195 eval "ac_cv_lib_$ac_lib_var=yes"
14196else
14197 echo "configure: failed program was:" >&5
14198 cat conftest.$ac_ext >&5
14199 rm -rf conftest*
14200 eval "ac_cv_lib_$ac_lib_var=no"
14201fi
14202rm -f conftest*
14203LIBS="$ac_save_LIBS"
14204
14205fi
14206if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14207 echo "$ac_t""yes" 1>&6
14208 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14209else
14210 echo "$ac_t""no" 1>&6
14211fi
14212
14213 fi
14214 fi
14215
14216 # Check for libraries that X11R6 Xt/Xaw programs need.
14217 ac_save_LDFLAGS="$LDFLAGS"
14218 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14219 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14220 # check for ICE first), but we must link in the order -lSM -lICE or
14221 # we get undefined symbols. So assume we have SM if we have ICE.
14222 # These have to be linked with before -lX11, unlike the other
14223 # libraries we check for below, so use a different variable.
14224 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14225 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14226echo "configure:14227: checking for IceConnectionNumber in -lICE" >&5
14227ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14228if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14229 echo $ac_n "(cached) $ac_c" 1>&6
14230else
14231 ac_save_LIBS="$LIBS"
14232LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14233cat > conftest.$ac_ext <<EOF
14234#line 14235 "configure"
14235#include "confdefs.h"
14236/* Override any gcc2 internal prototype to avoid an error. */
14237/* We use char because int might match the return type of a gcc2
14238 builtin and then its argument prototype would still apply. */
14239char IceConnectionNumber();
14240
14241int main() {
14242IceConnectionNumber()
14243; return 0; }
14244EOF
14245if { (eval echo configure:14246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14246 rm -rf conftest*
14247 eval "ac_cv_lib_$ac_lib_var=yes"
14248else
14249 echo "configure: failed program was:" >&5
14250 cat conftest.$ac_ext >&5
14251 rm -rf conftest*
14252 eval "ac_cv_lib_$ac_lib_var=no"
14253fi
14254rm -f conftest*
14255LIBS="$ac_save_LIBS"
14256
14257fi
14258if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14259 echo "$ac_t""yes" 1>&6
14260 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14261else
14262 echo "$ac_t""no" 1>&6
14263fi
14264
14265 LDFLAGS="$ac_save_LDFLAGS"
14266
14267fi
14268
14269
14270 if test "$no_x" = "yes"; then
14271 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14272 fi
14273
14274 GUI_TK_LIBRARY="$X_LIBS"
14275 TOOLKIT_INCLUDE="$X_CFLAGS"
14276 AFMINSTALL=afminstall
14277 COMPILED_X_PROGRAM=0
14278
14279 if test "$wxUSE_NANOX" = "yes"; then
14280 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
14281echo "configure:14282: checking for MicroWindows/NanoX distribution" >&5
14282 if test "x$MICROWIN" = x ; then
14283 echo "$ac_t""not found" 1>&6
14284 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
14285 else
14286 echo "$ac_t""$MICROWIN" 1>&6
14287 cat >> confdefs.h <<\EOF
14288#define wxUSE_NANOX 1
14289EOF
14290
14291 fi
14292 fi
14293
14294 xpm_link=
14295 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14296echo "configure:14297: checking for Xpm library" >&5
14297
14298ac_find_libraries=
14299for ac_dir in $SEARCH_LIB /usr/lib;
14300 do
14301 for ac_extension in a so sl dylib; do
14302 if test -f "$ac_dir/libXpm.$ac_extension"; then
14303 ac_find_libraries=$ac_dir
14304 break 2
14305 fi
14306 done
14307 done
14308
14309 if test "$ac_find_libraries" != "" ; then
14310
14311 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14312 result=$?
14313 if test $result = 0; then
14314 ac_path_to_link=""
14315 else
14316 ac_path_to_link=" -L$ac_find_libraries"
14317 fi
14318
14319 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14320 xpm_link=" -lXpm"
14321 cat >> confdefs.h <<\EOF
14322#define wxHAVE_LIB_XPM 1
14323EOF
14324
14325 echo "$ac_t""found at $ac_find_libraries" 1>&6
14326 else
14327 cat > conftest.$ac_ext <<EOF
14328#line 14329 "configure"
14329#include "confdefs.h"
14330
14331 #include <X11/xpm.h>
14332
14333int main() {
14334
14335 int version;
14336 version = XpmLibraryVersion();
14337
14338; return 0; }
14339EOF
14340if { (eval echo configure:14341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14341 rm -rf conftest*
14342
14343 xpm_link=" -lXpm"
14344 cat >> confdefs.h <<\EOF
14345#define wxHAVE_LIB_XPM 1
14346EOF
14347
14348 echo "$ac_t""found in default search path" 1>&6
14349 COMPILED_X_PROGRAM=0
14350
14351else
14352 echo "configure: failed program was:" >&5
14353 cat conftest.$ac_ext >&5
14354 rm -rf conftest*
14355
14356 echo "$ac_t""no" 1>&6
14357 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14358
14359
14360fi
14361rm -f conftest*
14362 fi
14363
14364 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
14365echo "configure:14366: checking for XShapeQueryExtension in -lXext" >&5
14366ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
14367if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14368 echo $ac_n "(cached) $ac_c" 1>&6
14369else
14370 ac_save_LIBS="$LIBS"
14371LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
14372cat > conftest.$ac_ext <<EOF
14373#line 14374 "configure"
14374#include "confdefs.h"
14375/* Override any gcc2 internal prototype to avoid an error. */
14376/* We use char because int might match the return type of a gcc2
14377 builtin and then its argument prototype would still apply. */
14378char XShapeQueryExtension();
14379
14380int main() {
14381XShapeQueryExtension()
14382; return 0; }
14383EOF
14384if { (eval echo configure:14385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14385 rm -rf conftest*
14386 eval "ac_cv_lib_$ac_lib_var=yes"
14387else
14388 echo "configure: failed program was:" >&5
14389 cat conftest.$ac_ext >&5
14390 rm -rf conftest*
14391 eval "ac_cv_lib_$ac_lib_var=no"
14392fi
14393rm -f conftest*
14394LIBS="$ac_save_LIBS"
14395
14396fi
14397if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14398 echo "$ac_t""yes" 1>&6
14399
14400 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
14401 wxHAVE_XEXT_LIB=1
14402
14403else
14404 echo "$ac_t""no" 1>&6
14405fi
14406
14407
14408 if test "$wxUSE_UNICODE" = "yes"; then
14409
14410 succeeded=no
14411
14412 if test -z "$PKG_CONFIG"; then
14413 # Extract the first word of "pkg-config", so it can be a program name with args.
14414set dummy pkg-config; ac_word=$2
14415echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14416echo "configure:14417: checking for $ac_word" >&5
14417if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14418 echo $ac_n "(cached) $ac_c" 1>&6
14419else
14420 case "$PKG_CONFIG" in
14421 /*)
14422 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14423 ;;
14424 ?:/*)
14425 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14426 ;;
14427 *)
14428 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14429 ac_dummy="$PATH"
14430 for ac_dir in $ac_dummy; do
14431 test -z "$ac_dir" && ac_dir=.
14432 if test -f $ac_dir/$ac_word; then
14433 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14434 break
14435 fi
14436 done
14437 IFS="$ac_save_ifs"
14438 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14439 ;;
14440esac
14441fi
14442PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14443if test -n "$PKG_CONFIG"; then
14444 echo "$ac_t""$PKG_CONFIG" 1>&6
14445else
14446 echo "$ac_t""no" 1>&6
14447fi
14448
14449 fi
14450
14451 if test "$PKG_CONFIG" = "no" ; then
14452 echo "*** The pkg-config script could not be found. Make sure it is"
14453 echo "*** in your path, or set the PKG_CONFIG environment variable"
14454 echo "*** to the full path to pkg-config."
14455 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14456 else
14457 PKG_CONFIG_MIN_VERSION=0.9.0
14458 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14459 echo $ac_n "checking for pangox""... $ac_c" 1>&6
14460echo "configure:14461: checking for pangox" >&5
14461
14462 if $PKG_CONFIG --exists "pangox" ; then
14463 echo "$ac_t""yes" 1>&6
14464 succeeded=yes
14465
14466 echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
14467echo "configure:14468: checking PANGOX_CFLAGS" >&5
14468 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14469 echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14470
14471 echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
14472echo "configure:14473: checking PANGOX_LIBS" >&5
14473 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14474 echo "$ac_t""$PANGOX_LIBS" 1>&6
14475 else
14476 PANGOX_CFLAGS=""
14477 PANGOX_LIBS=""
14478 ## If we have a custom action on failure, don't print errors, but
14479 ## do set a variable so people can do so.
14480 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14481
14482 fi
14483
14484
14485
14486 else
14487 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14488 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14489 fi
14490 fi
14491
14492 if test $succeeded = yes; then
14493
14494 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14495 LIBS="$LIBS $PANGOX_LIBS"
14496
14497 else
14498
14499 { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14500
14501
14502 fi
14503
14504
14505 succeeded=no
14506
14507 if test -z "$PKG_CONFIG"; then
14508 # Extract the first word of "pkg-config", so it can be a program name with args.
14509set dummy pkg-config; ac_word=$2
14510echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14511echo "configure:14512: checking for $ac_word" >&5
14512if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14513 echo $ac_n "(cached) $ac_c" 1>&6
14514else
14515 case "$PKG_CONFIG" in
14516 /*)
14517 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14518 ;;
14519 ?:/*)
14520 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14521 ;;
14522 *)
14523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14524 ac_dummy="$PATH"
14525 for ac_dir in $ac_dummy; do
14526 test -z "$ac_dir" && ac_dir=.
14527 if test -f $ac_dir/$ac_word; then
14528 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14529 break
14530 fi
14531 done
14532 IFS="$ac_save_ifs"
14533 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14534 ;;
14535esac
14536fi
14537PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14538if test -n "$PKG_CONFIG"; then
14539 echo "$ac_t""$PKG_CONFIG" 1>&6
14540else
14541 echo "$ac_t""no" 1>&6
14542fi
14543
14544 fi
14545
14546 if test "$PKG_CONFIG" = "no" ; then
14547 echo "*** The pkg-config script could not be found. Make sure it is"
14548 echo "*** in your path, or set the PKG_CONFIG environment variable"
14549 echo "*** to the full path to pkg-config."
14550 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14551 else
14552 PKG_CONFIG_MIN_VERSION=0.9.0
14553 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14554 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
14555echo "configure:14556: checking for pangoft2" >&5
14556
14557 if $PKG_CONFIG --exists "pangoft2" ; then
14558 echo "$ac_t""yes" 1>&6
14559 succeeded=yes
14560
14561 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
14562echo "configure:14563: checking PANGOFT2_CFLAGS" >&5
14563 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14564 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14565
14566 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
14567echo "configure:14568: checking PANGOFT2_LIBS" >&5
14568 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14569 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14570 else
14571 PANGOFT2_CFLAGS=""
14572 PANGOFT2_LIBS=""
14573 ## If we have a custom action on failure, don't print errors, but
14574 ## do set a variable so people can do so.
14575 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14576
14577 fi
14578
14579
14580
14581 else
14582 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14583 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14584 fi
14585 fi
14586
14587 if test $succeeded = yes; then
14588
14589 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14590 LIBS="$LIBS $PANGOFT2_LIBS"
14591
14592 else
14593
14594 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14595 wxUSE_PRINTING_ARCHITECTURE="no"
14596
14597
14598 fi
14599
14600
14601 succeeded=no
14602
14603 if test -z "$PKG_CONFIG"; then
14604 # Extract the first word of "pkg-config", so it can be a program name with args.
14605set dummy pkg-config; ac_word=$2
14606echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14607echo "configure:14608: checking for $ac_word" >&5
14608if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14609 echo $ac_n "(cached) $ac_c" 1>&6
14610else
14611 case "$PKG_CONFIG" in
14612 /*)
14613 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14614 ;;
14615 ?:/*)
14616 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14617 ;;
14618 *)
14619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14620 ac_dummy="$PATH"
14621 for ac_dir in $ac_dummy; do
14622 test -z "$ac_dir" && ac_dir=.
14623 if test -f $ac_dir/$ac_word; then
14624 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14625 break
14626 fi
14627 done
14628 IFS="$ac_save_ifs"
14629 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14630 ;;
14631esac
14632fi
14633PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14634if test -n "$PKG_CONFIG"; then
14635 echo "$ac_t""$PKG_CONFIG" 1>&6
14636else
14637 echo "$ac_t""no" 1>&6
14638fi
14639
14640 fi
14641
14642 if test "$PKG_CONFIG" = "no" ; then
14643 echo "*** The pkg-config script could not be found. Make sure it is"
14644 echo "*** in your path, or set the PKG_CONFIG environment variable"
14645 echo "*** to the full path to pkg-config."
14646 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14647 else
14648 PKG_CONFIG_MIN_VERSION=0.9.0
14649 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14650 echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
14651echo "configure:14652: checking for pangoxft" >&5
14652
14653 if $PKG_CONFIG --exists "pangoxft" ; then
14654 echo "$ac_t""yes" 1>&6
14655 succeeded=yes
14656
14657 echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
14658echo "configure:14659: checking PANGOXFT_CFLAGS" >&5
14659 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14660 echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14661
14662 echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
14663echo "configure:14664: checking PANGOXFT_LIBS" >&5
14664 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14665 echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14666 else
14667 PANGOXFT_CFLAGS=""
14668 PANGOXFT_LIBS=""
14669 ## If we have a custom action on failure, don't print errors, but
14670 ## do set a variable so people can do so.
14671 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14672
14673 fi
14674
14675
14676
14677 else
14678 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14679 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14680 fi
14681 fi
14682
14683 if test $succeeded = yes; then
14684
14685 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14686 LIBS="$LIBS $PANGOXFT_LIBS"
14687
14688 else
14689
14690 echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14691
14692
14693 fi
14694
14695 fi
14696
14697 wxUSE_UNIVERSAL="yes"
14698
14699 if test "$wxUSE_NANOX" = "yes"; then
14700 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14701 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"
14702 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14703 else
14704 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14705 fi
14706
14707 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14708 TOOLKIT=X11
14709 GUIDIST=X11_DIST
14710 fi
14711
14712 if test "$wxUSE_MOTIF" = 1; then
14713 if test "$no_x" = yes; then
14714 # Not all programs may use this symbol, but it does not hurt to define it.
14715 cat >> confdefs.h <<\EOF
14716#define X_DISPLAY_MISSING 1
14717EOF
14718
14719 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14720else
14721 if test -n "$x_includes"; then
14722 X_CFLAGS="$X_CFLAGS -I$x_includes"
14723 fi
14724
14725 # It would also be nice to do this for all -L options, not just this one.
14726 if test -n "$x_libraries"; then
14727 X_LIBS="$X_LIBS -L$x_libraries"
14728 # For Solaris; some versions of Sun CC require a space after -R and
14729 # others require no space. Words are not sufficient . . . .
14730 case "`(uname -sr) 2>/dev/null`" in
14731 "SunOS 5"*)
14732 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
14733echo "configure:14734: checking whether -R must be followed by a space" >&5
14734 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14735 cat > conftest.$ac_ext <<EOF
14736#line 14737 "configure"
14737#include "confdefs.h"
14738
14739int main() {
14740
14741; return 0; }
14742EOF
14743if { (eval echo configure:14744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14744 rm -rf conftest*
14745 ac_R_nospace=yes
14746else
14747 echo "configure: failed program was:" >&5
14748 cat conftest.$ac_ext >&5
14749 rm -rf conftest*
14750 ac_R_nospace=no
14751fi
14752rm -f conftest*
14753 if test $ac_R_nospace = yes; then
14754 echo "$ac_t""no" 1>&6
14755 X_LIBS="$X_LIBS -R$x_libraries"
14756 else
14757 LIBS="$ac_xsave_LIBS -R $x_libraries"
14758 cat > conftest.$ac_ext <<EOF
14759#line 14760 "configure"
14760#include "confdefs.h"
14761
14762int main() {
14763
14764; return 0; }
14765EOF
14766if { (eval echo configure:14767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14767 rm -rf conftest*
14768 ac_R_space=yes
14769else
14770 echo "configure: failed program was:" >&5
14771 cat conftest.$ac_ext >&5
14772 rm -rf conftest*
14773 ac_R_space=no
14774fi
14775rm -f conftest*
14776 if test $ac_R_space = yes; then
14777 echo "$ac_t""yes" 1>&6
14778 X_LIBS="$X_LIBS -R $x_libraries"
14779 else
14780 echo "$ac_t""neither works" 1>&6
14781 fi
14782 fi
14783 LIBS="$ac_xsave_LIBS"
14784 esac
14785 fi
14786
14787 # Check for system-dependent libraries X programs must link with.
14788 # Do this before checking for the system-independent R6 libraries
14789 # (-lICE), since we may need -lsocket or whatever for X linking.
14790
14791 if test "$ISC" = yes; then
14792 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14793 else
14794 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14795 # libraries were built with DECnet support. And karl@cs.umb.edu says
14796 # the Alpha needs dnet_stub (dnet does not exist).
14797 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
14798echo "configure:14799: checking for dnet_ntoa in -ldnet" >&5
14799ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14800if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14801 echo $ac_n "(cached) $ac_c" 1>&6
14802else
14803 ac_save_LIBS="$LIBS"
14804LIBS="-ldnet $LIBS"
14805cat > conftest.$ac_ext <<EOF
14806#line 14807 "configure"
14807#include "confdefs.h"
14808/* Override any gcc2 internal prototype to avoid an error. */
14809/* We use char because int might match the return type of a gcc2
14810 builtin and then its argument prototype would still apply. */
14811char dnet_ntoa();
14812
14813int main() {
14814dnet_ntoa()
14815; return 0; }
14816EOF
14817if { (eval echo configure:14818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14818 rm -rf conftest*
14819 eval "ac_cv_lib_$ac_lib_var=yes"
14820else
14821 echo "configure: failed program was:" >&5
14822 cat conftest.$ac_ext >&5
14823 rm -rf conftest*
14824 eval "ac_cv_lib_$ac_lib_var=no"
14825fi
14826rm -f conftest*
14827LIBS="$ac_save_LIBS"
14828
14829fi
14830if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14831 echo "$ac_t""yes" 1>&6
14832 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14833else
14834 echo "$ac_t""no" 1>&6
14835fi
14836
14837 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14838 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
14839echo "configure:14840: checking for dnet_ntoa in -ldnet_stub" >&5
14840ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14841if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14842 echo $ac_n "(cached) $ac_c" 1>&6
14843else
14844 ac_save_LIBS="$LIBS"
14845LIBS="-ldnet_stub $LIBS"
14846cat > conftest.$ac_ext <<EOF
14847#line 14848 "configure"
14848#include "confdefs.h"
14849/* Override any gcc2 internal prototype to avoid an error. */
14850/* We use char because int might match the return type of a gcc2
14851 builtin and then its argument prototype would still apply. */
14852char dnet_ntoa();
14853
14854int main() {
14855dnet_ntoa()
14856; return 0; }
14857EOF
14858if { (eval echo configure:14859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14859 rm -rf conftest*
14860 eval "ac_cv_lib_$ac_lib_var=yes"
14861else
14862 echo "configure: failed program was:" >&5
14863 cat conftest.$ac_ext >&5
14864 rm -rf conftest*
14865 eval "ac_cv_lib_$ac_lib_var=no"
14866fi
14867rm -f conftest*
14868LIBS="$ac_save_LIBS"
14869
14870fi
14871if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14872 echo "$ac_t""yes" 1>&6
14873 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14874else
14875 echo "$ac_t""no" 1>&6
14876fi
14877
14878 fi
14879
14880 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14881 # to get the SysV transport functions.
14882 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
14883 # needs -lnsl.
14884 # The nsl library prevents programs from opening the X display
14885 # on Irix 5.2, according to dickey@clark.net.
14886 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
14887echo "configure:14888: checking for gethostbyname" >&5
14888if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14889 echo $ac_n "(cached) $ac_c" 1>&6
14890else
14891 cat > conftest.$ac_ext <<EOF
14892#line 14893 "configure"
14893#include "confdefs.h"
14894/* System header to define __stub macros and hopefully few prototypes,
14895 which can conflict with char gethostbyname(); below. */
14896#include <assert.h>
14897/* Override any gcc2 internal prototype to avoid an error. */
14898/* We use char because int might match the return type of a gcc2
14899 builtin and then its argument prototype would still apply. */
14900char gethostbyname();
14901
14902int main() {
14903
14904/* The GNU C library defines this for functions which it implements
14905 to always fail with ENOSYS. Some functions are actually named
14906 something starting with __ and the normal name is an alias. */
14907#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14908choke me
14909#else
14910gethostbyname();
14911#endif
14912
14913; return 0; }
14914EOF
14915if { (eval echo configure:14916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14916 rm -rf conftest*
14917 eval "ac_cv_func_gethostbyname=yes"
14918else
14919 echo "configure: failed program was:" >&5
14920 cat conftest.$ac_ext >&5
14921 rm -rf conftest*
14922 eval "ac_cv_func_gethostbyname=no"
14923fi
14924rm -f conftest*
14925fi
14926
14927if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14928 echo "$ac_t""yes" 1>&6
14929 :
14930else
14931 echo "$ac_t""no" 1>&6
14932fi
14933
14934 if test $ac_cv_func_gethostbyname = no; then
14935 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
14936echo "configure:14937: checking for gethostbyname in -lnsl" >&5
14937ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14938if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14939 echo $ac_n "(cached) $ac_c" 1>&6
14940else
14941 ac_save_LIBS="$LIBS"
14942LIBS="-lnsl $LIBS"
14943cat > conftest.$ac_ext <<EOF
14944#line 14945 "configure"
14945#include "confdefs.h"
14946/* Override any gcc2 internal prototype to avoid an error. */
14947/* We use char because int might match the return type of a gcc2
14948 builtin and then its argument prototype would still apply. */
14949char gethostbyname();
14950
14951int main() {
14952gethostbyname()
14953; return 0; }
14954EOF
14955if { (eval echo configure:14956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14956 rm -rf conftest*
14957 eval "ac_cv_lib_$ac_lib_var=yes"
14958else
14959 echo "configure: failed program was:" >&5
14960 cat conftest.$ac_ext >&5
14961 rm -rf conftest*
14962 eval "ac_cv_lib_$ac_lib_var=no"
14963fi
14964rm -f conftest*
14965LIBS="$ac_save_LIBS"
14966
14967fi
14968if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14969 echo "$ac_t""yes" 1>&6
14970 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14971else
14972 echo "$ac_t""no" 1>&6
14973fi
14974
14975 fi
14976
14977 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14978 # socket/setsockopt and other routines are undefined under SCO ODT
14979 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14980 # on later versions), says simon@lia.di.epfl.ch: it contains
14981 # gethostby* variants that don't use the nameserver (or something).
14982 # -lsocket must be given before -lnsl if both are needed.
14983 # We assume that if connect needs -lnsl, so does gethostbyname.
14984 echo $ac_n "checking for connect""... $ac_c" 1>&6
14985echo "configure:14986: checking for connect" >&5
14986if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14987 echo $ac_n "(cached) $ac_c" 1>&6
14988else
14989 cat > conftest.$ac_ext <<EOF
14990#line 14991 "configure"
14991#include "confdefs.h"
14992/* System header to define __stub macros and hopefully few prototypes,
14993 which can conflict with char connect(); below. */
14994#include <assert.h>
14995/* Override any gcc2 internal prototype to avoid an error. */
14996/* We use char because int might match the return type of a gcc2
14997 builtin and then its argument prototype would still apply. */
14998char connect();
14999
15000int main() {
15001
15002/* The GNU C library defines this for functions which it implements
15003 to always fail with ENOSYS. Some functions are actually named
15004 something starting with __ and the normal name is an alias. */
15005#if defined (__stub_connect) || defined (__stub___connect)
15006choke me
15007#else
15008connect();
15009#endif
15010
15011; return 0; }
15012EOF
15013if { (eval echo configure:15014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15014 rm -rf conftest*
15015 eval "ac_cv_func_connect=yes"
15016else
15017 echo "configure: failed program was:" >&5
15018 cat conftest.$ac_ext >&5
15019 rm -rf conftest*
15020 eval "ac_cv_func_connect=no"
15021fi
15022rm -f conftest*
15023fi
15024
15025if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
15026 echo "$ac_t""yes" 1>&6
15027 :
15028else
15029 echo "$ac_t""no" 1>&6
15030fi
15031
15032 if test $ac_cv_func_connect = no; then
15033 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
15034echo "configure:15035: checking for connect in -lsocket" >&5
15035ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
15036if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15037 echo $ac_n "(cached) $ac_c" 1>&6
15038else
15039 ac_save_LIBS="$LIBS"
15040LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
15041cat > conftest.$ac_ext <<EOF
15042#line 15043 "configure"
15043#include "confdefs.h"
15044/* Override any gcc2 internal prototype to avoid an error. */
15045/* We use char because int might match the return type of a gcc2
15046 builtin and then its argument prototype would still apply. */
15047char connect();
15048
15049int main() {
15050connect()
15051; return 0; }
15052EOF
15053if { (eval echo configure:15054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15054 rm -rf conftest*
15055 eval "ac_cv_lib_$ac_lib_var=yes"
15056else
15057 echo "configure: failed program was:" >&5
15058 cat conftest.$ac_ext >&5
15059 rm -rf conftest*
15060 eval "ac_cv_lib_$ac_lib_var=no"
15061fi
15062rm -f conftest*
15063LIBS="$ac_save_LIBS"
15064
15065fi
15066if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15067 echo "$ac_t""yes" 1>&6
15068 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
15069else
15070 echo "$ac_t""no" 1>&6
15071fi
15072
15073 fi
15074
15075 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15076 echo $ac_n "checking for remove""... $ac_c" 1>&6
15077echo "configure:15078: checking for remove" >&5
15078if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15079 echo $ac_n "(cached) $ac_c" 1>&6
15080else
15081 cat > conftest.$ac_ext <<EOF
15082#line 15083 "configure"
15083#include "confdefs.h"
15084/* System header to define __stub macros and hopefully few prototypes,
15085 which can conflict with char remove(); below. */
15086#include <assert.h>
15087/* Override any gcc2 internal prototype to avoid an error. */
15088/* We use char because int might match the return type of a gcc2
15089 builtin and then its argument prototype would still apply. */
15090char remove();
15091
15092int main() {
15093
15094/* The GNU C library defines this for functions which it implements
15095 to always fail with ENOSYS. Some functions are actually named
15096 something starting with __ and the normal name is an alias. */
15097#if defined (__stub_remove) || defined (__stub___remove)
15098choke me
15099#else
15100remove();
15101#endif
15102
15103; return 0; }
15104EOF
15105if { (eval echo configure:15106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15106 rm -rf conftest*
15107 eval "ac_cv_func_remove=yes"
15108else
15109 echo "configure: failed program was:" >&5
15110 cat conftest.$ac_ext >&5
15111 rm -rf conftest*
15112 eval "ac_cv_func_remove=no"
15113fi
15114rm -f conftest*
15115fi
15116
15117if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15118 echo "$ac_t""yes" 1>&6
15119 :
15120else
15121 echo "$ac_t""no" 1>&6
15122fi
15123
15124 if test $ac_cv_func_remove = no; then
15125 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
15126echo "configure:15127: checking for remove in -lposix" >&5
15127ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15128if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15129 echo $ac_n "(cached) $ac_c" 1>&6
15130else
15131 ac_save_LIBS="$LIBS"
15132LIBS="-lposix $LIBS"
15133cat > conftest.$ac_ext <<EOF
15134#line 15135 "configure"
15135#include "confdefs.h"
15136/* Override any gcc2 internal prototype to avoid an error. */
15137/* We use char because int might match the return type of a gcc2
15138 builtin and then its argument prototype would still apply. */
15139char remove();
15140
15141int main() {
15142remove()
15143; return 0; }
15144EOF
15145if { (eval echo configure:15146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15146 rm -rf conftest*
15147 eval "ac_cv_lib_$ac_lib_var=yes"
15148else
15149 echo "configure: failed program was:" >&5
15150 cat conftest.$ac_ext >&5
15151 rm -rf conftest*
15152 eval "ac_cv_lib_$ac_lib_var=no"
15153fi
15154rm -f conftest*
15155LIBS="$ac_save_LIBS"
15156
15157fi
15158if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15159 echo "$ac_t""yes" 1>&6
15160 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
15161else
15162 echo "$ac_t""no" 1>&6
15163fi
15164
15165 fi
15166
15167 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
15168 echo $ac_n "checking for shmat""... $ac_c" 1>&6
15169echo "configure:15170: checking for shmat" >&5
15170if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15171 echo $ac_n "(cached) $ac_c" 1>&6
15172else
15173 cat > conftest.$ac_ext <<EOF
15174#line 15175 "configure"
15175#include "confdefs.h"
15176/* System header to define __stub macros and hopefully few prototypes,
15177 which can conflict with char shmat(); below. */
15178#include <assert.h>
15179/* Override any gcc2 internal prototype to avoid an error. */
15180/* We use char because int might match the return type of a gcc2
15181 builtin and then its argument prototype would still apply. */
15182char shmat();
15183
15184int main() {
15185
15186/* The GNU C library defines this for functions which it implements
15187 to always fail with ENOSYS. Some functions are actually named
15188 something starting with __ and the normal name is an alias. */
15189#if defined (__stub_shmat) || defined (__stub___shmat)
15190choke me
15191#else
15192shmat();
15193#endif
15194
15195; return 0; }
15196EOF
15197if { (eval echo configure:15198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15198 rm -rf conftest*
15199 eval "ac_cv_func_shmat=yes"
15200else
15201 echo "configure: failed program was:" >&5
15202 cat conftest.$ac_ext >&5
15203 rm -rf conftest*
15204 eval "ac_cv_func_shmat=no"
15205fi
15206rm -f conftest*
15207fi
15208
15209if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15210 echo "$ac_t""yes" 1>&6
15211 :
15212else
15213 echo "$ac_t""no" 1>&6
15214fi
15215
15216 if test $ac_cv_func_shmat = no; then
15217 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
15218echo "configure:15219: checking for shmat in -lipc" >&5
15219ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15220if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15221 echo $ac_n "(cached) $ac_c" 1>&6
15222else
15223 ac_save_LIBS="$LIBS"
15224LIBS="-lipc $LIBS"
15225cat > conftest.$ac_ext <<EOF
15226#line 15227 "configure"
15227#include "confdefs.h"
15228/* Override any gcc2 internal prototype to avoid an error. */
15229/* We use char because int might match the return type of a gcc2
15230 builtin and then its argument prototype would still apply. */
15231char shmat();
15232
15233int main() {
15234shmat()
15235; return 0; }
15236EOF
15237if { (eval echo configure:15238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15238 rm -rf conftest*
15239 eval "ac_cv_lib_$ac_lib_var=yes"
15240else
15241 echo "configure: failed program was:" >&5
15242 cat conftest.$ac_ext >&5
15243 rm -rf conftest*
15244 eval "ac_cv_lib_$ac_lib_var=no"
15245fi
15246rm -f conftest*
15247LIBS="$ac_save_LIBS"
15248
15249fi
15250if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15251 echo "$ac_t""yes" 1>&6
15252 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
15253else
15254 echo "$ac_t""no" 1>&6
15255fi
15256
15257 fi
15258 fi
15259
15260 # Check for libraries that X11R6 Xt/Xaw programs need.
15261 ac_save_LDFLAGS="$LDFLAGS"
15262 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15263 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15264 # check for ICE first), but we must link in the order -lSM -lICE or
15265 # we get undefined symbols. So assume we have SM if we have ICE.
15266 # These have to be linked with before -lX11, unlike the other
15267 # libraries we check for below, so use a different variable.
15268 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15269 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
15270echo "configure:15271: checking for IceConnectionNumber in -lICE" >&5
15271ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15272if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15273 echo $ac_n "(cached) $ac_c" 1>&6
15274else
15275 ac_save_LIBS="$LIBS"
15276LIBS="-lICE $X_EXTRA_LIBS $LIBS"
15277cat > conftest.$ac_ext <<EOF
15278#line 15279 "configure"
15279#include "confdefs.h"
15280/* Override any gcc2 internal prototype to avoid an error. */
15281/* We use char because int might match the return type of a gcc2
15282 builtin and then its argument prototype would still apply. */
15283char IceConnectionNumber();
15284
15285int main() {
15286IceConnectionNumber()
15287; return 0; }
15288EOF
15289if { (eval echo configure:15290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15290 rm -rf conftest*
15291 eval "ac_cv_lib_$ac_lib_var=yes"
15292else
15293 echo "configure: failed program was:" >&5
15294 cat conftest.$ac_ext >&5
15295 rm -rf conftest*
15296 eval "ac_cv_lib_$ac_lib_var=no"
15297fi
15298rm -f conftest*
15299LIBS="$ac_save_LIBS"
15300
15301fi
15302if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15303 echo "$ac_t""yes" 1>&6
15304 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
15305else
15306 echo "$ac_t""no" 1>&6
15307fi
15308
15309 LDFLAGS="$ac_save_LDFLAGS"
15310
15311fi
15312
15313
15314 if test "$no_x" = "yes"; then
15315 { echo "configure: error: X11 not found" 1>&2; exit 1; }
15316 fi
15317
15318 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15319 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
15320 AFMINSTALL=afminstall
15321 COMPILED_X_PROGRAM=0
15322
15323 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
15324echo "configure:15325: checking for Motif/Lesstif headers" >&5
15325
15326ac_find_includes=
15327for ac_dir in $SEARCH_INCLUDE /usr/include;
15328 do
15329 if test -f "$ac_dir/Xm/Xm.h"; then
15330 ac_find_includes=$ac_dir
15331 break
15332 fi
15333 done
15334
15335 if test "$ac_find_includes" != "" ; then
15336 echo "$ac_t""found in $ac_find_includes" 1>&6
15337
15338 if test "x$ac_find_includes" = "x/usr/include"; then
15339 ac_path_to_include=""
15340 else
15341 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15342 result=$?
15343 if test $result = 0; then
15344 ac_path_to_include=""
15345 else
15346 ac_path_to_include=" -I$ac_find_includes"
15347 fi
15348 fi
15349
15350 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
15351 else
15352 cat > conftest.$ac_ext <<EOF
15353#line 15354 "configure"
15354#include "confdefs.h"
15355
15356 #include <Xm/Xm.h>
15357
15358int main() {
15359
15360 int version;
15361 version = xmUseVersion;
15362
15363; return 0; }
15364EOF
15365if { (eval echo configure:15366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15366 rm -rf conftest*
15367
15368 echo "$ac_t""found in default search path" 1>&6
15369 COMPILED_X_PROGRAM=1
15370
15371else
15372 echo "configure: failed program was:" >&5
15373 cat conftest.$ac_ext >&5
15374 rm -rf conftest*
15375
15376 echo "$ac_t""no" 1>&6
15377 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15378
15379
15380fi
15381rm -f conftest*
15382 fi
15383
15384 if test "$COMPILED_X_PROGRAM" = 0; then
15385 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
15386echo "configure:15387: checking for Motif/Lesstif library" >&5
15387
15388ac_find_libraries=
15389for ac_dir in $SEARCH_LIB /usr/lib;
15390 do
15391 for ac_extension in a so sl dylib; do
15392 if test -f "$ac_dir/libXm.$ac_extension"; then
15393 ac_find_libraries=$ac_dir
15394 break 2
15395 fi
15396 done
15397 done
15398
15399 if test "$ac_find_libraries" != "" ; then
15400 echo "$ac_t""found at $ac_find_libraries" 1>&6
15401
15402
15403 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15404 result=$?
15405 if test $result = 0; then
15406 ac_path_to_link=""
15407 else
15408 ac_path_to_link=" -L$ac_find_libraries"
15409 fi
15410
15411 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15412 else
15413 save_CFLAGS=$CFLAGS
15414 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15415
15416 cat > conftest.$ac_ext <<EOF
15417#line 15418 "configure"
15418#include "confdefs.h"
15419
15420 #include <Xm/Xm.h>
15421
15422int main() {
15423
15424 int version;
15425 version = xmUseVersion;
15426
15427; return 0; }
15428EOF
15429if { (eval echo configure:15430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15430 rm -rf conftest*
15431
15432 echo "$ac_t""found in default search path" 1>&6
15433 COMPILED_X_PROGRAM=1
15434
15435else
15436 echo "configure: failed program was:" >&5
15437 cat conftest.$ac_ext >&5
15438 rm -rf conftest*
15439
15440 echo "$ac_t""no" 1>&6
15441 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15442
15443
15444fi
15445rm -f conftest*
15446
15447 CFLAGS=$save_CFLAGS
15448 fi
15449 fi
15450
15451 xpm_link=
15452 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
15453echo "configure:15454: checking for Xpm library" >&5
15454
15455ac_find_libraries=
15456for ac_dir in $SEARCH_LIB /usr/lib;
15457 do
15458 for ac_extension in a so sl dylib; do
15459 if test -f "$ac_dir/libXpm.$ac_extension"; then
15460 ac_find_libraries=$ac_dir
15461 break 2
15462 fi
15463 done
15464 done
15465
15466 if test "$ac_find_libraries" != "" ; then
15467
15468 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15469 result=$?
15470 if test $result = 0; then
15471 ac_path_to_link=""
15472 else
15473 ac_path_to_link=" -L$ac_find_libraries"
15474 fi
15475
15476 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15477
15478 xpm_link=" -lXpm"
15479 cat >> confdefs.h <<\EOF
15480#define wxHAVE_LIB_XPM 1
15481EOF
15482
15483 echo "$ac_t""found at $ac_find_libraries" 1>&6
15484 else
15485 save_CFLAGS=$CFLAGS
15486 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15487
15488 cat > conftest.$ac_ext <<EOF
15489#line 15490 "configure"
15490#include "confdefs.h"
15491
15492 #include <X11/xpm.h>
15493
15494int main() {
15495
15496 int version;
15497 version = XpmLibraryVersion();
15498
15499; return 0; }
15500EOF
15501if { (eval echo configure:15502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15502 rm -rf conftest*
15503
15504 xpm_link=" -lXpm"
15505 cat >> confdefs.h <<\EOF
15506#define wxHAVE_LIB_XPM 1
15507EOF
15508
15509 echo "$ac_t""found in default search path" 1>&6
15510 COMPILED_X_PROGRAM=0
15511
15512else
15513 echo "configure: failed program was:" >&5
15514 cat conftest.$ac_ext >&5
15515 rm -rf conftest*
15516
15517 echo "$ac_t""no" 1>&6
15518 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15519
15520
15521fi
15522rm -f conftest*
15523
15524 CFLAGS=$save_CFLAGS
15525 fi
15526
15527 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
15528echo "configure:15529: checking if we need -lXp and/or -lSM -lICE" >&5
15529 libp_link=""
15530 libsm_ice_link=""
15531 libs_found=0
15532 for libp in "" " -lXp"; do
15533 if test "$libs_found" = "0"; then
15534 for libsm_ice in " -lSM -lICE"; do
15535 if test "$libs_found" = "0"; then
15536 save_LIBS="$LIBS"
15537 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
15538 save_CFLAGS=$CFLAGS
15539 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15540
15541 cat > conftest.$ac_ext <<EOF
15542#line 15543 "configure"
15543#include "confdefs.h"
15544
15545 #include <Xm/Xm.h>
15546 #include <Xm/List.h>
15547
15548int main() {
15549
15550 XmString string = NULL;
15551 Widget w = NULL;
15552 int position = 0;
15553 XmListAddItem(w, string, position);
15554
15555; return 0; }
15556EOF
15557if { (eval echo configure:15558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15558 rm -rf conftest*
15559
15560 libp_link="$libp"
15561 libsm_ice_link="$libsm_ice"
15562 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
15563 libs_found=1
15564
15565else
15566 echo "configure: failed program was:" >&5
15567 cat conftest.$ac_ext >&5
15568 rm -rf conftest*
15569
15570
15571fi
15572rm -f conftest*
15573
15574 LIBS="$save_LIBS"
15575 CFLAGS=$save_CFLAGS
15576 fi
15577 done
15578 fi
15579 done
15580
15581 if test "$libs_found" = "0"; then
15582 echo "$ac_t""can't find the right libraries" 1>&6
15583 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
15584 fi
15585
15586 save_CFLAGS=$CFLAGS
15587 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15588 echo $ac_n "checking for Motif 2""... $ac_c" 1>&6
15589echo "configure:15590: checking for Motif 2" >&5
15590 cat > conftest.$ac_ext <<EOF
15591#line 15592 "configure"
15592#include "confdefs.h"
15593
15594 #include <Xm/Xm.h>
15595
15596int main() {
15597
15598 #if XmVersion < 2000
15599 #error "Not Motif 2"
15600 #endif
15601
15602; return 0; }
15603EOF
15604if { (eval echo configure:15605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15605 rm -rf conftest*
15606
15607 cat >> confdefs.h <<\EOF
15608#define __WXMOTIF20__ 1
15609EOF
15610
15611 echo "$ac_t""found" 1>&6
15612
15613else
15614 echo "configure: failed program was:" >&5
15615 cat conftest.$ac_ext >&5
15616 rm -rf conftest*
15617
15618 cat >> confdefs.h <<\EOF
15619#define __WXMOTIF20__ 0
15620EOF
15621
15622 echo "$ac_t""not found" 1>&6
15623
15624fi
15625rm -f conftest*
15626 CFLAGS=$save_CFLAGS
15627
15628 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
15629 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
15630 TOOLKIT=MOTIF
15631 GUIDIST=MOTIF_DIST
15632 wxHAVE_XEXT_LIB=1
15633 fi
15634
15635 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
15636 test "$wxHAVE_XEXT_LIB" = 1; then
15637 save_CFLAGS="$CFLAGS"
15638 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15639
15640 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
15641echo "configure:15642: checking for X11/extensions/shape.h" >&5
15642 cat > conftest.$ac_ext <<EOF
15643#line 15644 "configure"
15644#include "confdefs.h"
15645
15646 #include <X11/Xlib.h>
15647 #include <X11/extensions/shape.h>
15648
15649int main() {
15650
15651 int dummy1, dummy2;
15652 XShapeQueryExtension((Display*)NULL,
15653 (int*)NULL, (int*)NULL);
15654
15655; return 0; }
15656EOF
15657if { (eval echo configure:15658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15658 rm -rf conftest*
15659
15660 cat >> confdefs.h <<\EOF
15661#define HAVE_XSHAPE 1
15662EOF
15663
15664 echo "$ac_t""found" 1>&6
15665
15666else
15667 echo "configure: failed program was:" >&5
15668 cat conftest.$ac_ext >&5
15669 rm -rf conftest*
15670
15671 echo "$ac_t""not found" 1>&6
15672
15673fi
15674rm -f conftest*
15675 CFLAGS="$save_CFLAGS"
15676 fi
15677
15678 if test "$wxUSE_MAC" = 1; then
15679 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
15680
15681 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
15682 TOOLKIT=MAC
15683 GUIDIST=MACX_DIST
15684 fi
15685
15686 if test "$wxUSE_COCOA" = 1; then
15687 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
15688 TOOLKIT=COCOA
15689 GUIDIST=COCOA_DIST
15690 fi
15691
15692 if test "$wxUSE_PM" = 1; then
15693 TOOLKIT=PM
15694 GUIDIST=GTK_DIST
15695 echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
15696 wxUSE_THREADS="no"
15697 fi
15698
15699 if test "$TOOLKIT" = "PM" ; then
15700 TOOLKIT_DIR="os2"
15701 else
15702 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15703 fi
15704
15705 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15706
15707 if test "$wxUSE_UNIVERSAL" = "yes"; then
15708 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15709
15710 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15711 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15712
15713 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15714 if test "$wxUSE_X11" = 1; then
15715 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15716 else
15717 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15718 fi
15719 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15720 WIDGET_SET=univ
15721 else
15722 ALL_OBJECTS="\$(GUIOBJS)"
15723 ALL_SOURCES="\$(ALL_SOURCES)"
15724 ALL_HEADERS="\$(ALL_HEADERS)"
15725 fi
15726
15727 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15728
15729 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15730 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15731 fi
15732
15733 if test "$wxUSE_HTML" = "yes"; then
15734 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15735 fi
15736
15737 if test "$wxUSE_LIBJPEG" = "builtin" ; then
15738 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15739 fi
15740 if test "$wxUSE_LIBTIFF" = "builtin" ; then
15741 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15742 fi
15743 if test "$wxUSE_LIBPNG" = "builtin" ; then
15744 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15745 fi
15746
15747 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15748 DISTDIR="wx\$(TOOLKIT)"
15749else
15750 USE_GUI=0
15751
15752 TOOLKIT_DIR="base"
15753
15754 if test "$USE_WIN32" = 1 ; then
15755 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15756 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15757
15758 TOOLKIT="MSW"
15759 else
15760 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15761 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15762 fi
15763
15764 ALL_SOURCES="\$(ALL_SOURCES)"
15765 ALL_HEADERS="\$(ALL_HEADERS)"
15766
15767 PORT_FILES="\${top_srcdir}/src/files.lst"
15768
15769 GUIDIST="BASE_DIST"
15770 DISTDIR="wxBase"
15771fi
15772
15773
15774if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
15775 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
15776fi
15777
15778if test "$wxUSE_REGEX" = "builtin" ; then
15779 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
15780fi
15781if test "$wxUSE_ZLIB" = "builtin" ; then
15782 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
15783fi
15784
15785
15786if test "$wxUSE_OPENGL" = "yes"; then
15787 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
15788 OPENGL_LIBS="-framework OpenGL -framework AGL"
15789 elif test "$wxUSE_MSW" = 1; then
15790 OPENGL_LIBS="-lopengl32 -lglu32"
15791 else
15792 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15793echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15794echo "configure:15795: checking for GL/gl.h" >&5
15795if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15796 echo $ac_n "(cached) $ac_c" 1>&6
15797else
15798 cat > conftest.$ac_ext <<EOF
15799#line 15800 "configure"
15800#include "confdefs.h"
15801#include <GL/gl.h>
15802EOF
15803ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15804{ (eval echo configure:15805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15805ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15806if test -z "$ac_err"; then
15807 rm -rf conftest*
15808 eval "ac_cv_header_$ac_safe=yes"
15809else
15810 echo "$ac_err" >&5
15811 echo "configure: failed program was:" >&5
15812 cat conftest.$ac_ext >&5
15813 rm -rf conftest*
15814 eval "ac_cv_header_$ac_safe=no"
15815fi
15816rm -f conftest*
15817fi
15818if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15819 echo "$ac_t""yes" 1>&6
15820
15821 found_gl=0
15822
15823 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
15824echo "configure:15825: checking for -lGL" >&5
15825
15826ac_find_libraries=
15827for ac_dir in $SEARCH_LIB /usr/lib;
15828 do
15829 for ac_extension in a so sl dylib; do
15830 if test -f "$ac_dir/libGL.$ac_extension"; then
15831 ac_find_libraries=$ac_dir
15832 break 2
15833 fi
15834 done
15835 done
15836
15837 if test "$ac_find_libraries" != "" ; then
15838
15839 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15840 result=$?
15841 if test $result = 0; then
15842 ac_path_to_link=""
15843 else
15844 ac_path_to_link=" -L$ac_find_libraries"
15845 fi
15846
15847 if test "$ac_path_to_link" != " -L/usr/lib" ; then
15848 LDFLAGS_GL="$ac_path_to_link"
15849 fi
15850
15851
15852ac_find_libraries=
15853for ac_dir in $SEARCH_LIB /usr/lib;
15854 do
15855 for ac_extension in a so sl dylib; do
15856 if test -f "$ac_dir/libGLU.$ac_extension"; then
15857 ac_find_libraries=$ac_dir
15858 break 2
15859 fi
15860 done
15861 done
15862
15863 if test "$ac_find_libraries" != "" ; then
15864
15865 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15866 result=$?
15867 if test $result = 0; then
15868 ac_path_to_link=""
15869 else
15870 ac_path_to_link=" -L$ac_find_libraries"
15871 fi
15872
15873 if test "$ac_path_to_link" != " -L/usr/lib" -a \
15874 "$ac_path_to_link" != "$LDFLAGS_GL"; then
15875 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
15876 fi
15877
15878 found_gl=1
15879 OPENGL_LIBS="-lGL -lGLU"
15880 echo "$ac_t""yes" 1>&6
15881 fi
15882 fi
15883
15884 if "$found_gl" != 1; then
15885 echo "$ac_t""no" 1>&6
15886 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
15887echo "configure:15888: checking for -lMesaGL" >&5
15888
15889ac_find_libraries=
15890for ac_dir in $SEARCH_LIB /usr/lib;
15891 do
15892 for ac_extension in a so sl dylib; do
15893 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
15894 ac_find_libraries=$ac_dir
15895 break 2
15896 fi
15897 done
15898 done
15899
15900 if test "$ac_find_libraries" != "" ; then
15901
15902 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15903 result=$?
15904 if test $result = 0; then
15905 ac_path_to_link=""
15906 else
15907 ac_path_to_link=" -L$ac_find_libraries"
15908 fi
15909
15910 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15911 OPENGL_LIBS="-lMesaGL -lMesaGLU"
15912 echo "$ac_t""yes" 1>&6
15913 else
15914 echo "$ac_t""no" 1>&6
15915 fi
15916 fi
15917
15918else
15919 echo "$ac_t""no" 1>&6
15920fi
15921
15922
15923 if test "x$OPENGL_LIBS" = "x"; then
15924 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
15925 fi
15926 fi
15927
15928 if test "$wxUSE_OPENGL" = "yes"; then
15929 cat >> confdefs.h <<\EOF
15930#define wxUSE_OPENGL 1
15931EOF
15932
15933 cat >> confdefs.h <<\EOF
15934#define wxUSE_GLCANVAS 1
15935EOF
15936
15937 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15938 fi
15939fi
15940
15941if test -z "$TOOLKIT_VPATH" ; then
15942 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
15943fi
15944
15945if test -n "$TOOLKIT" ; then
15946 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
15947fi
15948
15949lib_unicode_suffix=
15950if test "$wxUSE_UNICODE" = "yes"; then
15951 lib_unicode_suffix=u
15952fi
15953
15954lib_debug_suffix=
15955if test "$wxUSE_DEBUG_FLAG" = "yes"; then
15956 lib_debug_suffix=d
15957fi
15958
15959WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
15960
15961TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
15962TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
15963
15964if test "$cross_compiling" = "yes"; then
15965 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
15966 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
15967fi
15968
15969WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
15970WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
15971WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
15972
15973WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15974WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15975
15976WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
15977WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15978WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
15979WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15980
15981case "${host}" in
15982 *-*-cygwin* | *-*-mingw32* )
15983
15984
15985
15986 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
15987 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15988 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15989 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
15990 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
15991 else
15992 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
15993 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15994 fi
15995 ;;
15996
15997 *-*-darwin* )
15998
15999 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16000 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
16001
16002 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
16003 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
16004 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
16005 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
16006
16007 if test "$wxUSE_MAC" = 1; then
16008 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
16009 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
16010 fi
16011 ;;
16012esac
16013
16014WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
16015WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
16016
16017WXCONFIG_LIBS="-l${WX_LIBRARY}"
16018WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
16019
16020if test "$wxUSE_OPENGL" = "yes"; then
16021 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
16022 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
16023fi
16024
16025
16026
16027if test "$wxUSE_SHARED" = "yes"; then
16028 case "${host}" in
16029 *-pc-os2_emx | *-pc-os2-emx | \
16030 *-pc-msdosdjgpp )
16031 wxUSE_SHARED=no
16032 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
16033 ;;
16034 esac
16035fi
16036
16037if test "$wxUSE_SHARED" = "yes"; then
16038
16039 if test "$wxUSE_OPENGL" = "yes"; then
16040 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
16041 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
16042 else
16043 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16044 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
16045 fi
16046
16047 if test "$GCC" = "yes"; then
16048 PIC_FLAG="-fPIC"
16049 fi
16050
16051
16052
16053 found_versioning=no
16054
16055
16056 if test $found_versioning = no ; then
16057 echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
16058echo "configure:16059: checking if the linker accepts --version-script" >&5
16059if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
16060 echo $ac_n "(cached) $ac_c" 1>&6
16061else
16062
16063 echo "VER_1 { *; };" >conftest.sym
16064 echo "int main() { return 0; }" >conftest.cpp
16065
16066 if { ac_try='
16067 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
16068 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:16069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
16069 if test -s conftest.stderr ; then
16070 wx_cv_version_script=no
16071 else
16072 wx_cv_version_script=yes
16073 fi
16074 else
16075 wx_cv_version_script=no
16076 fi
16077 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
16078
16079fi
16080
16081echo "$ac_t""$wx_cv_version_script" 1>&6
16082 if test $wx_cv_version_script = yes ; then
16083 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
16084 fi
16085 fi
16086
16087
16088 SHARED_LD="${CXX} -shared -o"
16089
16090 case "${host}" in
16091 *-hp-hpux* )
16092 if test "$GCC" = "yes"; then
16093 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
16094 else
16095 LDFLAGS="$LDFLAGS -L/usr/lib"
16096
16097 SHARED_LD="${CXX} -b -o"
16098 PIC_FLAG="+Z"
16099 fi
16100
16101 if test "$wxUSE_OPENGL" = "yes"; then
16102 WX_ALL_INSTALLED="preinstall_gl"
16103 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
16104 else
16105 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16106 fi
16107 ;;
16108
16109 *-*-linux* )
16110 if test "$GCC" != "yes"; then
16111 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
16112echo "configure:16113: checking for Intel compiler" >&5
16113if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
16114 echo $ac_n "(cached) $ac_c" 1>&6
16115else
16116
16117 cat > conftest.$ac_ext <<EOF
16118#line 16119 "configure"
16119#include "confdefs.h"
16120
16121int main() {
16122
16123 #ifndef __INTEL_COMPILER
16124 #error Not icc
16125 #endif
16126
16127; return 0; }
16128EOF
16129if { (eval echo configure:16130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16130 rm -rf conftest*
16131 wx_cv_prog_icc=yes
16132else
16133 echo "configure: failed program was:" >&5
16134 cat conftest.$ac_ext >&5
16135 rm -rf conftest*
16136 wx_cv_prog_icc=no
16137
16138fi
16139rm -f conftest*
16140
16141fi
16142
16143echo "$ac_t""$wx_cv_prog_icc" 1>&6
16144 if test "$wx_cv_prog_icc" = "yes"; then
16145 PIC_FLAG="-KPIC"
16146 fi
16147 fi
16148
16149 if test "$wxUSE_SONAME" = "yes" ; then
16150 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16151 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16152 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16153 fi
16154 ;;
16155
16156 *-*-solaris2* )
16157 if test "$GCC" = yes ; then
16158 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
16159 else
16160 SHARED_LD="${CXX} -G -o"
16161 PIC_FLAG="-KPIC"
16162 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16163 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
16164 fi
16165 ;;
16166
16167 *-*-darwin* )
16168 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16169 CFLAGS="$CFLAGS -fno-common"
16170 CXXFLAGS="$CXXFLAGS -fno-common"
16171 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16172 PIC_FLAG="-dynamic -fPIC"
16173 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
16174 SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
16175 ;;
16176
16177 *-*-aix* )
16178 if test "$GCC" != "yes"; then
16179 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
16180set dummy makeC++SharedLib; ac_word=$2
16181echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16182echo "configure:16183: checking for $ac_word" >&5
16183if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16184 echo $ac_n "(cached) $ac_c" 1>&6
16185else
16186 if test -n "$AIX_CXX_LD"; then
16187 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16188else
16189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16190 ac_dummy="$PATH"
16191 for ac_dir in $ac_dummy; do
16192 test -z "$ac_dir" && ac_dir=.
16193 if test -f $ac_dir/$ac_word; then
16194 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16195 break
16196 fi
16197 done
16198 IFS="$ac_save_ifs"
16199 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16200fi
16201fi
16202AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
16203if test -n "$AIX_CXX_LD"; then
16204 echo "$ac_t""$AIX_CXX_LD" 1>&6
16205else
16206 echo "$ac_t""no" 1>&6
16207fi
16208
16209
16210 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16211 fi
16212 ;;
16213
16214 *-*-cygwin* | *-*-mingw32* )
16215 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16216
16217 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16218 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16219
16220 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16221
16222 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16223 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16224
16225 if test "$wxUSE_OPENGL" = "yes"; then
16226 LIBS="${LIBS} ${OPENGL_LIBS}"
16227 fi
16228 ;;
16229
16230 *-*-beos* )
16231 SHARED_LD="${LD} -shared -o"
16232 ;;
16233
16234 *-*-irix* )
16235 if test "$GCC" != "yes"; then
16236 PIC_FLAG="-KPIC"
16237 fi
16238 ;;
16239
16240 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16241 *-*-sunos4* | \
16242 *-*-osf* | \
16243 *-*-dgux5* | \
16244 *-*-sysv5* )
16245 ;;
16246
16247 *)
16248 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
16249 esac
16250
16251 if test "x$WX_TARGET_LIBRARY" = "x"; then
16252 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16253 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16254 fi
16255
16256 WX_TARGET_LIBRARY_TYPE="so"
16257 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
16258fi
16259
16260if test "$wxUSE_SHARED" = "no"; then
16261
16262 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16263 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16264 fi
16265
16266 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
16267 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16268 fi
16269
16270 if test "$wxUSE_OPENGL" = "yes"; then
16271 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16272 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16273 else
16274 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16275 fi
16276
16277 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16278 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16279
16280 WX_TARGET_LIBRARY_TYPE="a"
16281 INSTALL_LIBRARY='$(INSTALL_DATA)'
16282
16283 STATIC_FLAG="yes"
16284else
16285 STATIC_FLAG="no"
16286fi
16287
16288MACRESCOMP="@#"
16289MACSETFILE="@#"
16290MACRESWXCONFIG="#"
16291if test "$wxUSE_MAC" = 1; then
16292 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16293 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16294 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16295 # Extract the first word of "Rez", so it can be a program name with args.
16296set dummy Rez; ac_word=$2
16297echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16298echo "configure:16299: checking for $ac_word" >&5
16299if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16300 echo $ac_n "(cached) $ac_c" 1>&6
16301else
16302 if test -n "$RESCOMP"; then
16303 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16304else
16305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16306 ac_dummy="$PATH"
16307 for ac_dir in $ac_dummy; do
16308 test -z "$ac_dir" && ac_dir=.
16309 if test -f $ac_dir/$ac_word; then
16310 ac_cv_prog_RESCOMP="Rez"
16311 break
16312 fi
16313 done
16314 IFS="$ac_save_ifs"
16315 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16316fi
16317fi
16318RESCOMP="$ac_cv_prog_RESCOMP"
16319if test -n "$RESCOMP"; then
16320 echo "$ac_t""$RESCOMP" 1>&6
16321else
16322 echo "$ac_t""no" 1>&6
16323fi
16324
16325 # Extract the first word of "DeRez", so it can be a program name with args.
16326set dummy DeRez; ac_word=$2
16327echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16328echo "configure:16329: checking for $ac_word" >&5
16329if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16330 echo $ac_n "(cached) $ac_c" 1>&6
16331else
16332 if test -n "$DEREZ"; then
16333 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16334else
16335 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16336 ac_dummy="$PATH"
16337 for ac_dir in $ac_dummy; do
16338 test -z "$ac_dir" && ac_dir=.
16339 if test -f $ac_dir/$ac_word; then
16340 ac_cv_prog_DEREZ="DeRez"
16341 break
16342 fi
16343 done
16344 IFS="$ac_save_ifs"
16345 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16346fi
16347fi
16348DEREZ="$ac_cv_prog_DEREZ"
16349if test -n "$DEREZ"; then
16350 echo "$ac_t""$DEREZ" 1>&6
16351else
16352 echo "$ac_t""no" 1>&6
16353fi
16354
16355 # Extract the first word of "SetFile", so it can be a program name with args.
16356set dummy SetFile; ac_word=$2
16357echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16358echo "configure:16359: checking for $ac_word" >&5
16359if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16360 echo $ac_n "(cached) $ac_c" 1>&6
16361else
16362 if test -n "$SETFILE"; then
16363 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16364else
16365 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16366 ac_dummy="$PATH"
16367 for ac_dir in $ac_dummy; do
16368 test -z "$ac_dir" && ac_dir=.
16369 if test -f $ac_dir/$ac_word; then
16370 ac_cv_prog_SETFILE="SetFile"
16371 break
16372 fi
16373 done
16374 IFS="$ac_save_ifs"
16375 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16376fi
16377fi
16378SETFILE="$ac_cv_prog_SETFILE"
16379if test -n "$SETFILE"; then
16380 echo "$ac_t""$SETFILE" 1>&6
16381else
16382 echo "$ac_t""no" 1>&6
16383fi
16384
16385 MACOSX_BUNDLE="bundle"
16386 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
16387 MACSETFILE="\$(SETFILE)"
16388 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o"
16389elif test "$wxUSE_COCOA" = 1; then
16390 # Extract the first word of "Rez", so it can be a program name with args.
16391set dummy Rez; ac_word=$2
16392echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16393echo "configure:16394: checking for $ac_word" >&5
16394if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16395 echo $ac_n "(cached) $ac_c" 1>&6
16396else
16397 if test -n "$RESCOMP"; then
16398 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16399else
16400 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16401 ac_dummy="$PATH"
16402 for ac_dir in $ac_dummy; do
16403 test -z "$ac_dir" && ac_dir=.
16404 if test -f $ac_dir/$ac_word; then
16405 ac_cv_prog_RESCOMP="Rez"
16406 break
16407 fi
16408 done
16409 IFS="$ac_save_ifs"
16410 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16411fi
16412fi
16413RESCOMP="$ac_cv_prog_RESCOMP"
16414if test -n "$RESCOMP"; then
16415 echo "$ac_t""$RESCOMP" 1>&6
16416else
16417 echo "$ac_t""no" 1>&6
16418fi
16419
16420 # Extract the first word of "DeRez", so it can be a program name with args.
16421set dummy DeRez; ac_word=$2
16422echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16423echo "configure:16424: checking for $ac_word" >&5
16424if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16425 echo $ac_n "(cached) $ac_c" 1>&6
16426else
16427 if test -n "$DEREZ"; then
16428 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16429else
16430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16431 ac_dummy="$PATH"
16432 for ac_dir in $ac_dummy; do
16433 test -z "$ac_dir" && ac_dir=.
16434 if test -f $ac_dir/$ac_word; then
16435 ac_cv_prog_DEREZ="DeRez"
16436 break
16437 fi
16438 done
16439 IFS="$ac_save_ifs"
16440 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16441fi
16442fi
16443DEREZ="$ac_cv_prog_DEREZ"
16444if test -n "$DEREZ"; then
16445 echo "$ac_t""$DEREZ" 1>&6
16446else
16447 echo "$ac_t""no" 1>&6
16448fi
16449
16450 # Extract the first word of "SetFile", so it can be a program name with args.
16451set dummy SetFile; ac_word=$2
16452echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16453echo "configure:16454: checking for $ac_word" >&5
16454if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16455 echo $ac_n "(cached) $ac_c" 1>&6
16456else
16457 if test -n "$SETFILE"; then
16458 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16459else
16460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16461 ac_dummy="$PATH"
16462 for ac_dir in $ac_dummy; do
16463 test -z "$ac_dir" && ac_dir=.
16464 if test -f $ac_dir/$ac_word; then
16465 ac_cv_prog_SETFILE="SetFile"
16466 break
16467 fi
16468 done
16469 IFS="$ac_save_ifs"
16470 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16471fi
16472fi
16473SETFILE="$ac_cv_prog_SETFILE"
16474if test -n "$SETFILE"; then
16475 echo "$ac_t""$SETFILE" 1>&6
16476else
16477 echo "$ac_t""no" 1>&6
16478fi
16479
16480 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
16481 MACSETFILE="\$(SETFILE)"
16482 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o"
16483else
16484 if test "$wxUSE_PM" = 1; then
16485 MACRESCOMP="emxbind -ep"
16486 fi
16487fi
16488
16489
16490echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
16491echo "configure:16492: checking for ANSI C header files" >&5
16492if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16493 echo $ac_n "(cached) $ac_c" 1>&6
16494else
16495 cat > conftest.$ac_ext <<EOF
16496#line 16497 "configure"
16497#include "confdefs.h"
16498#include <stdlib.h>
16499#include <stdarg.h>
16500#include <string.h>
16501#include <float.h>
16502EOF
16503ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16504{ (eval echo configure:16505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16505ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16506if test -z "$ac_err"; then
16507 rm -rf conftest*
16508 ac_cv_header_stdc=yes
16509else
16510 echo "$ac_err" >&5
16511 echo "configure: failed program was:" >&5
16512 cat conftest.$ac_ext >&5
16513 rm -rf conftest*
16514 ac_cv_header_stdc=no
16515fi
16516rm -f conftest*
16517
16518if test $ac_cv_header_stdc = yes; then
16519 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16520cat > conftest.$ac_ext <<EOF
16521#line 16522 "configure"
16522#include "confdefs.h"
16523#include <string.h>
16524EOF
16525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16526 egrep "memchr" >/dev/null 2>&1; then
16527 :
16528else
16529 rm -rf conftest*
16530 ac_cv_header_stdc=no
16531fi
16532rm -f conftest*
16533
16534fi
16535
16536if test $ac_cv_header_stdc = yes; then
16537 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16538cat > conftest.$ac_ext <<EOF
16539#line 16540 "configure"
16540#include "confdefs.h"
16541#include <stdlib.h>
16542EOF
16543if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16544 egrep "free" >/dev/null 2>&1; then
16545 :
16546else
16547 rm -rf conftest*
16548 ac_cv_header_stdc=no
16549fi
16550rm -f conftest*
16551
16552fi
16553
16554if test $ac_cv_header_stdc = yes; then
16555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16556if test "$cross_compiling" = yes; then
16557 :
16558else
16559 cat > conftest.$ac_ext <<EOF
16560#line 16561 "configure"
16561#include "confdefs.h"
16562#include <ctype.h>
16563#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16564#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16565#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16566int main () { int i; for (i = 0; i < 256; i++)
16567if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16568exit (0); }
16569
16570EOF
16571if { (eval echo configure:16572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16572then
16573 :
16574else
16575 echo "configure: failed program was:" >&5
16576 cat conftest.$ac_ext >&5
16577 rm -fr conftest*
16578 ac_cv_header_stdc=no
16579fi
16580rm -fr conftest*
16581fi
16582
16583fi
16584fi
16585
16586echo "$ac_t""$ac_cv_header_stdc" 1>&6
16587if test $ac_cv_header_stdc = yes; then
16588 cat >> confdefs.h <<\EOF
16589#define STDC_HEADERS 1
16590EOF
16591
16592fi
16593
16594echo $ac_n "checking for mode_t""... $ac_c" 1>&6
16595echo "configure:16596: checking for mode_t" >&5
16596if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16597 echo $ac_n "(cached) $ac_c" 1>&6
16598else
16599 cat > conftest.$ac_ext <<EOF
16600#line 16601 "configure"
16601#include "confdefs.h"
16602#include <sys/types.h>
16603#if STDC_HEADERS
16604#include <stdlib.h>
16605#include <stddef.h>
16606#endif
16607EOF
16608if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16609 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16610 rm -rf conftest*
16611 ac_cv_type_mode_t=yes
16612else
16613 rm -rf conftest*
16614 ac_cv_type_mode_t=no
16615fi
16616rm -f conftest*
16617
16618fi
16619echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16620if test $ac_cv_type_mode_t = no; then
16621 cat >> confdefs.h <<\EOF
16622#define mode_t int
16623EOF
16624
16625fi
16626
16627echo $ac_n "checking for off_t""... $ac_c" 1>&6
16628echo "configure:16629: checking for off_t" >&5
16629if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16630 echo $ac_n "(cached) $ac_c" 1>&6
16631else
16632 cat > conftest.$ac_ext <<EOF
16633#line 16634 "configure"
16634#include "confdefs.h"
16635#include <sys/types.h>
16636#if STDC_HEADERS
16637#include <stdlib.h>
16638#include <stddef.h>
16639#endif
16640EOF
16641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16642 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16643 rm -rf conftest*
16644 ac_cv_type_off_t=yes
16645else
16646 rm -rf conftest*
16647 ac_cv_type_off_t=no
16648fi
16649rm -f conftest*
16650
16651fi
16652echo "$ac_t""$ac_cv_type_off_t" 1>&6
16653if test $ac_cv_type_off_t = no; then
16654 cat >> confdefs.h <<\EOF
16655#define off_t long
16656EOF
16657
16658fi
16659
16660echo $ac_n "checking for pid_t""... $ac_c" 1>&6
16661echo "configure:16662: checking for pid_t" >&5
16662if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16663 echo $ac_n "(cached) $ac_c" 1>&6
16664else
16665 cat > conftest.$ac_ext <<EOF
16666#line 16667 "configure"
16667#include "confdefs.h"
16668#include <sys/types.h>
16669#if STDC_HEADERS
16670#include <stdlib.h>
16671#include <stddef.h>
16672#endif
16673EOF
16674if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16675 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16676 rm -rf conftest*
16677 ac_cv_type_pid_t=yes
16678else
16679 rm -rf conftest*
16680 ac_cv_type_pid_t=no
16681fi
16682rm -f conftest*
16683
16684fi
16685echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16686if test $ac_cv_type_pid_t = no; then
16687 cat >> confdefs.h <<\EOF
16688#define pid_t int
16689EOF
16690
16691fi
16692
16693echo $ac_n "checking for size_t""... $ac_c" 1>&6
16694echo "configure:16695: checking for size_t" >&5
16695if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16696 echo $ac_n "(cached) $ac_c" 1>&6
16697else
16698 cat > conftest.$ac_ext <<EOF
16699#line 16700 "configure"
16700#include "confdefs.h"
16701#include <sys/types.h>
16702#if STDC_HEADERS
16703#include <stdlib.h>
16704#include <stddef.h>
16705#endif
16706EOF
16707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16708 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16709 rm -rf conftest*
16710 ac_cv_type_size_t=yes
16711else
16712 rm -rf conftest*
16713 ac_cv_type_size_t=no
16714fi
16715rm -f conftest*
16716
16717fi
16718echo "$ac_t""$ac_cv_type_size_t" 1>&6
16719if test $ac_cv_type_size_t = no; then
16720 cat >> confdefs.h <<\EOF
16721#define size_t unsigned
16722EOF
16723
16724fi
16725
16726echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
16727echo "configure:16728: checking for uid_t in sys/types.h" >&5
16728if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16729 echo $ac_n "(cached) $ac_c" 1>&6
16730else
16731 cat > conftest.$ac_ext <<EOF
16732#line 16733 "configure"
16733#include "confdefs.h"
16734#include <sys/types.h>
16735EOF
16736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16737 egrep "uid_t" >/dev/null 2>&1; then
16738 rm -rf conftest*
16739 ac_cv_type_uid_t=yes
16740else
16741 rm -rf conftest*
16742 ac_cv_type_uid_t=no
16743fi
16744rm -f conftest*
16745
16746fi
16747
16748echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16749if test $ac_cv_type_uid_t = no; then
16750 cat >> confdefs.h <<\EOF
16751#define uid_t int
16752EOF
16753
16754 cat >> confdefs.h <<\EOF
16755#define gid_t int
16756EOF
16757
16758fi
16759
16760
16761
16762ac_ext=C
16763# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16764ac_cpp='$CXXCPP $CPPFLAGS'
16765ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16766ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16767cross_compiling=$ac_cv_prog_cxx_cross
16768
16769echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
16770echo "configure:16771: checking if size_t is unsigned int" >&5
16771if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16772 echo $ac_n "(cached) $ac_c" 1>&6
16773else
16774
16775 cat > conftest.$ac_ext <<EOF
16776#line 16777 "configure"
16777#include "confdefs.h"
16778#include <stddef.h>
16779int main() {
16780
16781 return 0; }
16782
16783 struct Foo { void foo(size_t); void foo(unsigned int); };
16784
16785 int bar() {
16786
16787; return 0; }
16788EOF
16789if { (eval echo configure:16790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16790 rm -rf conftest*
16791 wx_cv_size_t_is_uint=no
16792else
16793 echo "configure: failed program was:" >&5
16794 cat conftest.$ac_ext >&5
16795 rm -rf conftest*
16796 wx_cv_size_t_is_uint=yes
16797
16798fi
16799rm -f conftest*
16800
16801
16802fi
16803
16804echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
16805
16806if test "$wx_cv_size_t_is_uint" = "yes"; then
16807 cat >> confdefs.h <<\EOF
16808#define wxSIZE_T_IS_UINT 1
16809EOF
16810
16811else
16812 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
16813echo "configure:16814: checking if size_t is unsigned long" >&5
16814if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16815 echo $ac_n "(cached) $ac_c" 1>&6
16816else
16817 cat > conftest.$ac_ext <<EOF
16818#line 16819 "configure"
16819#include "confdefs.h"
16820#include <stddef.h>
16821int main() {
16822
16823 return 0; }
16824
16825 struct Foo { void foo(size_t); void foo(unsigned long); };
16826
16827 int bar() {
16828
16829; return 0; }
16830EOF
16831if { (eval echo configure:16832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16832 rm -rf conftest*
16833 wx_cv_size_t_is_ulong=no
16834else
16835 echo "configure: failed program was:" >&5
16836 cat conftest.$ac_ext >&5
16837 rm -rf conftest*
16838 wx_cv_size_t_is_ulong=yes
16839
16840fi
16841rm -f conftest*
16842
16843fi
16844
16845echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
16846
16847 if test "$wx_cv_size_t_is_ulong" = "yes"; then
16848 cat >> confdefs.h <<\EOF
16849#define wxSIZE_T_IS_ULONG 1
16850EOF
16851
16852 fi
16853fi
16854
16855ac_ext=c
16856# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16857ac_cpp='$CPP $CPPFLAGS'
16858ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16859ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16860cross_compiling=$ac_cv_prog_cc_cross
16861
16862
16863
16864echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
16865echo "configure:16866: checking for pw_gecos in struct passwd" >&5
16866if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
16867 echo $ac_n "(cached) $ac_c" 1>&6
16868else
16869
16870 cat > conftest.$ac_ext <<EOF
16871#line 16872 "configure"
16872#include "confdefs.h"
16873#include <pwd.h>
16874int main() {
16875
16876 char *p;
16877 struct passwd *pw;
16878 p = pw->pw_gecos;
16879
16880; return 0; }
16881EOF
16882if { (eval echo configure:16883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16883 rm -rf conftest*
16884
16885 wx_cv_struct_pw_gecos=yes
16886
16887else
16888 echo "configure: failed program was:" >&5
16889 cat conftest.$ac_ext >&5
16890 rm -rf conftest*
16891
16892 wx_cv_struct_pw_gecos=no
16893
16894
16895fi
16896rm -f conftest*
16897
16898
16899fi
16900
16901echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
16902
16903if test "$wx_cv_struct_pw_gecos" = "yes"; then
16904 cat >> confdefs.h <<\EOF
16905#define HAVE_PW_GECOS 1
16906EOF
16907
16908fi
16909
16910
16911if test "$wx_cv_sizeof_wchar_t" != "0"; then
16912 cat >> confdefs.h <<\EOF
16913#define wxUSE_WCHAR_T 1
16914EOF
16915
16916
16917 WCSLEN_FOUND=0
16918 WCHAR_LINK=
16919 for ac_func in wcslen
16920do
16921echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16922echo "configure:16923: checking for $ac_func" >&5
16923if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16924 echo $ac_n "(cached) $ac_c" 1>&6
16925else
16926 cat > conftest.$ac_ext <<EOF
16927#line 16928 "configure"
16928#include "confdefs.h"
16929/* System header to define __stub macros and hopefully few prototypes,
16930 which can conflict with char $ac_func(); below. */
16931#include <assert.h>
16932/* Override any gcc2 internal prototype to avoid an error. */
16933/* We use char because int might match the return type of a gcc2
16934 builtin and then its argument prototype would still apply. */
16935char $ac_func();
16936
16937int main() {
16938
16939/* The GNU C library defines this for functions which it implements
16940 to always fail with ENOSYS. Some functions are actually named
16941 something starting with __ and the normal name is an alias. */
16942#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16943choke me
16944#else
16945$ac_func();
16946#endif
16947
16948; return 0; }
16949EOF
16950if { (eval echo configure:16951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16951 rm -rf conftest*
16952 eval "ac_cv_func_$ac_func=yes"
16953else
16954 echo "configure: failed program was:" >&5
16955 cat conftest.$ac_ext >&5
16956 rm -rf conftest*
16957 eval "ac_cv_func_$ac_func=no"
16958fi
16959rm -f conftest*
16960fi
16961
16962if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16963 echo "$ac_t""yes" 1>&6
16964 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16965 cat >> confdefs.h <<EOF
16966#define $ac_tr_func 1
16967EOF
16968 WCSLEN_FOUND=1
16969else
16970 echo "$ac_t""no" 1>&6
16971fi
16972done
16973
16974
16975 if test "$WCSLEN_FOUND" = 0; then
16976 if test "$TOOLKIT" = "MSW"; then
16977 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
16978echo "configure:16979: checking for wcslen in -lmsvcrt" >&5
16979ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
16980if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16981 echo $ac_n "(cached) $ac_c" 1>&6
16982else
16983 ac_save_LIBS="$LIBS"
16984LIBS="-lmsvcrt $LIBS"
16985cat > conftest.$ac_ext <<EOF
16986#line 16987 "configure"
16987#include "confdefs.h"
16988/* Override any gcc2 internal prototype to avoid an error. */
16989/* We use char because int might match the return type of a gcc2
16990 builtin and then its argument prototype would still apply. */
16991char wcslen();
16992
16993int main() {
16994wcslen()
16995; return 0; }
16996EOF
16997if { (eval echo configure:16998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16998 rm -rf conftest*
16999 eval "ac_cv_lib_$ac_lib_var=yes"
17000else
17001 echo "configure: failed program was:" >&5
17002 cat conftest.$ac_ext >&5
17003 rm -rf conftest*
17004 eval "ac_cv_lib_$ac_lib_var=no"
17005fi
17006rm -f conftest*
17007LIBS="$ac_save_LIBS"
17008
17009fi
17010if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17011 echo "$ac_t""yes" 1>&6
17012 WCHAR_OK=1
17013else
17014 echo "$ac_t""no" 1>&6
17015fi
17016
17017 else
17018 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
17019echo "configure:17020: checking for wcslen in -lw" >&5
17020ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
17021if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17022 echo $ac_n "(cached) $ac_c" 1>&6
17023else
17024 ac_save_LIBS="$LIBS"
17025LIBS="-lw $LIBS"
17026cat > conftest.$ac_ext <<EOF
17027#line 17028 "configure"
17028#include "confdefs.h"
17029/* Override any gcc2 internal prototype to avoid an error. */
17030/* We use char because int might match the return type of a gcc2
17031 builtin and then its argument prototype would still apply. */
17032char wcslen();
17033
17034int main() {
17035wcslen()
17036; return 0; }
17037EOF
17038if { (eval echo configure:17039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17039 rm -rf conftest*
17040 eval "ac_cv_lib_$ac_lib_var=yes"
17041else
17042 echo "configure: failed program was:" >&5
17043 cat conftest.$ac_ext >&5
17044 rm -rf conftest*
17045 eval "ac_cv_lib_$ac_lib_var=no"
17046fi
17047rm -f conftest*
17048LIBS="$ac_save_LIBS"
17049
17050fi
17051if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17052 echo "$ac_t""yes" 1>&6
17053
17054 WCHAR_LINK=" -lw"
17055 WCSLEN_FOUND=1
17056
17057else
17058 echo "$ac_t""no" 1>&6
17059fi
17060
17061 fi
17062 fi
17063
17064 if test "$WCSLEN_FOUND" = 1; then
17065 cat >> confdefs.h <<\EOF
17066#define HAVE_WCSLEN 1
17067EOF
17068
17069 fi
17070
17071 for ac_func in wcsrtombs
17072do
17073echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17074echo "configure:17075: checking for $ac_func" >&5
17075if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17076 echo $ac_n "(cached) $ac_c" 1>&6
17077else
17078 cat > conftest.$ac_ext <<EOF
17079#line 17080 "configure"
17080#include "confdefs.h"
17081/* System header to define __stub macros and hopefully few prototypes,
17082 which can conflict with char $ac_func(); below. */
17083#include <assert.h>
17084/* Override any gcc2 internal prototype to avoid an error. */
17085/* We use char because int might match the return type of a gcc2
17086 builtin and then its argument prototype would still apply. */
17087char $ac_func();
17088
17089int main() {
17090
17091/* The GNU C library defines this for functions which it implements
17092 to always fail with ENOSYS. Some functions are actually named
17093 something starting with __ and the normal name is an alias. */
17094#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17095choke me
17096#else
17097$ac_func();
17098#endif
17099
17100; return 0; }
17101EOF
17102if { (eval echo configure:17103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17103 rm -rf conftest*
17104 eval "ac_cv_func_$ac_func=yes"
17105else
17106 echo "configure: failed program was:" >&5
17107 cat conftest.$ac_ext >&5
17108 rm -rf conftest*
17109 eval "ac_cv_func_$ac_func=no"
17110fi
17111rm -f conftest*
17112fi
17113
17114if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17115 echo "$ac_t""yes" 1>&6
17116 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17117 cat >> confdefs.h <<EOF
17118#define $ac_tr_func 1
17119EOF
17120
17121else
17122 echo "$ac_t""no" 1>&6
17123fi
17124done
17125
17126else
17127 echo "configure: warning: Wide character support is unavailable" 1>&2
17128fi
17129
17130
17131ac_ext=C
17132# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17133ac_cpp='$CXXCPP $CPPFLAGS'
17134ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17135ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17136cross_compiling=$ac_cv_prog_cxx_cross
17137
17138
17139for ac_func in vsnprintf
17140do
17141echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17142echo "configure:17143: checking for $ac_func" >&5
17143if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17144 echo $ac_n "(cached) $ac_c" 1>&6
17145else
17146 cat > conftest.$ac_ext <<EOF
17147#line 17148 "configure"
17148#include "confdefs.h"
17149/* System header to define __stub macros and hopefully few prototypes,
17150 which can conflict with char $ac_func(); below. */
17151#include <assert.h>
17152/* Override any gcc2 internal prototype to avoid an error. */
17153#ifdef __cplusplus
17154extern "C"
17155#endif
17156/* We use char because int might match the return type of a gcc2
17157 builtin and then its argument prototype would still apply. */
17158char $ac_func();
17159
17160int main() {
17161
17162/* The GNU C library defines this for functions which it implements
17163 to always fail with ENOSYS. Some functions are actually named
17164 something starting with __ and the normal name is an alias. */
17165#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17166choke me
17167#else
17168$ac_func();
17169#endif
17170
17171; return 0; }
17172EOF
17173if { (eval echo configure:17174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17174 rm -rf conftest*
17175 eval "ac_cv_func_$ac_func=yes"
17176else
17177 echo "configure: failed program was:" >&5
17178 cat conftest.$ac_ext >&5
17179 rm -rf conftest*
17180 eval "ac_cv_func_$ac_func=no"
17181fi
17182rm -f conftest*
17183fi
17184
17185if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17186 echo "$ac_t""yes" 1>&6
17187 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17188 cat >> confdefs.h <<EOF
17189#define $ac_tr_func 1
17190EOF
17191
17192else
17193 echo "$ac_t""no" 1>&6
17194fi
17195done
17196
17197
17198if test "$ac_cv_func_vsnprintf" = "yes"; then
17199 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
17200echo "configure:17201: checking for vsnprintf declaration" >&5
17201if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then
17202 echo $ac_n "(cached) $ac_c" 1>&6
17203else
17204
17205 cat > conftest.$ac_ext <<EOF
17206#line 17207 "configure"
17207#include "confdefs.h"
17208
17209 #include <stdio.h>
17210 #include <stdarg.h>
17211
17212int main() {
17213
17214 char *buf;
17215 va_list ap;
17216 vsnprintf(buf, 10u, "%s", ap);
17217
17218; return 0; }
17219EOF
17220if { (eval echo configure:17221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17221 rm -rf conftest*
17222 wx_cv_func_vsnprintf_decl=yes
17223else
17224 echo "configure: failed program was:" >&5
17225 cat conftest.$ac_ext >&5
17226 rm -rf conftest*
17227 wx_cv_func_vsnprintf_decl=no
17228
17229fi
17230rm -f conftest*
17231
17232
17233fi
17234
17235echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6
17236
17237 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
17238 cat >> confdefs.h <<\EOF
17239#define HAVE_VSNPRINTF_DECL 1
17240EOF
17241
17242 fi
17243fi
17244
17245if test "$wxUSE_UNICODE" = yes; then
17246 for ac_func in fputwc wprintf vswprintf
17247do
17248echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17249echo "configure:17250: checking for $ac_func" >&5
17250if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17251 echo $ac_n "(cached) $ac_c" 1>&6
17252else
17253 cat > conftest.$ac_ext <<EOF
17254#line 17255 "configure"
17255#include "confdefs.h"
17256/* System header to define __stub macros and hopefully few prototypes,
17257 which can conflict with char $ac_func(); below. */
17258#include <assert.h>
17259/* Override any gcc2 internal prototype to avoid an error. */
17260#ifdef __cplusplus
17261extern "C"
17262#endif
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
17304
17305 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
17306echo "configure:17307: checking for _vsnwprintf" >&5
17307 cat > conftest.$ac_ext <<EOF
17308#line 17309 "configure"
17309#include "confdefs.h"
17310#include <wchar.h>
17311int main() {
17312&_vsnwprintf;
17313; return 0; }
17314EOF
17315if { (eval echo configure:17316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17316 rm -rf conftest*
17317 echo "$ac_t""yes" 1>&6
17318 cat >> confdefs.h <<\EOF
17319#define HAVE__VSNWPRINTF 1
17320EOF
17321
17322else
17323 echo "configure: failed program was:" >&5
17324 cat conftest.$ac_ext >&5
17325 rm -rf conftest*
17326 echo "$ac_t""no" 1>&6
17327fi
17328rm -f conftest*;
17329fi
17330
17331ac_ext=c
17332# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17333ac_cpp='$CPP $CPPFLAGS'
17334ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17335ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17336cross_compiling=$ac_cv_prog_cc_cross
17337
17338
17339
17340
17341if test "$TOOLKIT" != "MSW"; then
17342
17343
17344
17345ac_ext=C
17346# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17347ac_cpp='$CXXCPP $CPPFLAGS'
17348ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17349ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17350cross_compiling=$ac_cv_prog_cxx_cross
17351
17352
17353
17354 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
17355if test "${with_libiconv_prefix+set}" = set; then
17356 withval="$with_libiconv_prefix"
17357
17358 for dir in `echo "$withval" | tr : ' '`; do
17359 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17360 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17361 done
17362
17363fi
17364
17365
17366 echo $ac_n "checking for iconv""... $ac_c" 1>&6
17367echo "configure:17368: checking for iconv" >&5
17368if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17369 echo $ac_n "(cached) $ac_c" 1>&6
17370else
17371
17372 am_cv_func_iconv="no, consider installing GNU libiconv"
17373 am_cv_lib_iconv=no
17374 cat > conftest.$ac_ext <<EOF
17375#line 17376 "configure"
17376#include "confdefs.h"
17377#include <stdlib.h>
17378#include <iconv.h>
17379int main() {
17380iconv_t cd = iconv_open("","");
17381 iconv(cd,NULL,NULL,NULL,NULL);
17382 iconv_close(cd);
17383; return 0; }
17384EOF
17385if { (eval echo configure:17386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17386 rm -rf conftest*
17387 am_cv_func_iconv=yes
17388else
17389 echo "configure: failed program was:" >&5
17390 cat conftest.$ac_ext >&5
17391fi
17392rm -f conftest*
17393 if test "$am_cv_func_iconv" != yes; then
17394 am_save_LIBS="$LIBS"
17395 LIBS="$LIBS -liconv"
17396 cat > conftest.$ac_ext <<EOF
17397#line 17398 "configure"
17398#include "confdefs.h"
17399#include <stdlib.h>
17400#include <iconv.h>
17401int main() {
17402iconv_t cd = iconv_open("","");
17403 iconv(cd,NULL,NULL,NULL,NULL);
17404 iconv_close(cd);
17405; return 0; }
17406EOF
17407if { (eval echo configure:17408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17408 rm -rf conftest*
17409 am_cv_lib_iconv=yes
17410 am_cv_func_iconv=yes
17411else
17412 echo "configure: failed program was:" >&5
17413 cat conftest.$ac_ext >&5
17414fi
17415rm -f conftest*
17416 LIBS="$am_save_LIBS"
17417 fi
17418
17419fi
17420
17421echo "$ac_t""$am_cv_func_iconv" 1>&6
17422 if test "$am_cv_func_iconv" = yes; then
17423 cat >> confdefs.h <<\EOF
17424#define HAVE_ICONV 1
17425EOF
17426
17427 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
17428echo "configure:17429: checking if iconv needs const" >&5
17429if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17430 echo $ac_n "(cached) $ac_c" 1>&6
17431else
17432 cat > conftest.$ac_ext <<EOF
17433#line 17434 "configure"
17434#include "confdefs.h"
17435
17436#include <stdlib.h>
17437#include <iconv.h>
17438extern
17439#ifdef __cplusplus
17440"C"
17441#endif
17442#if defined(__STDC__) || defined(__cplusplus)
17443size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17444#else
17445size_t iconv();
17446#endif
17447
17448int main() {
17449
17450; return 0; }
17451EOF
17452if { (eval echo configure:17453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17453 rm -rf conftest*
17454 wx_cv_func_iconv_const="no"
17455else
17456 echo "configure: failed program was:" >&5
17457 cat conftest.$ac_ext >&5
17458 rm -rf conftest*
17459 wx_cv_func_iconv_const="yes"
17460
17461fi
17462rm -f conftest*
17463
17464fi
17465
17466echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
17467
17468 iconv_const=
17469 if test "x$wx_cv_func_iconv_const" = "xyes"; then
17470 iconv_const="const"
17471 fi
17472
17473 cat >> confdefs.h <<EOF
17474#define ICONV_CONST $iconv_const
17475EOF
17476
17477 fi
17478 LIBICONV=
17479 if test "$am_cv_lib_iconv" = yes; then
17480 LIBICONV="-liconv"
17481 fi
17482
17483
17484LIBS="$LIBICONV $LIBS"
17485ac_ext=c
17486# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17487ac_cpp='$CPP $CPPFLAGS'
17488ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17489ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17490cross_compiling=$ac_cv_prog_cc_cross
17491
17492
17493if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
17494 for ac_func in sigaction
17495do
17496echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17497echo "configure:17498: checking for $ac_func" >&5
17498if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17499 echo $ac_n "(cached) $ac_c" 1>&6
17500else
17501 cat > conftest.$ac_ext <<EOF
17502#line 17503 "configure"
17503#include "confdefs.h"
17504/* System header to define __stub macros and hopefully few prototypes,
17505 which can conflict with char $ac_func(); below. */
17506#include <assert.h>
17507/* Override any gcc2 internal prototype to avoid an error. */
17508/* We use char because int might match the return type of a gcc2
17509 builtin and then its argument prototype would still apply. */
17510char $ac_func();
17511
17512int main() {
17513
17514/* The GNU C library defines this for functions which it implements
17515 to always fail with ENOSYS. Some functions are actually named
17516 something starting with __ and the normal name is an alias. */
17517#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17518choke me
17519#else
17520$ac_func();
17521#endif
17522
17523; return 0; }
17524EOF
17525if { (eval echo configure:17526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17526 rm -rf conftest*
17527 eval "ac_cv_func_$ac_func=yes"
17528else
17529 echo "configure: failed program was:" >&5
17530 cat conftest.$ac_ext >&5
17531 rm -rf conftest*
17532 eval "ac_cv_func_$ac_func=no"
17533fi
17534rm -f conftest*
17535fi
17536
17537if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17538 echo "$ac_t""yes" 1>&6
17539 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17540 cat >> confdefs.h <<EOF
17541#define $ac_tr_func 1
17542EOF
17543
17544else
17545 echo "$ac_t""no" 1>&6
17546fi
17547done
17548
17549
17550 if test "$ac_cv_func_sigaction" = "no"; then
17551 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
17552 wxUSE_ON_FATAL_EXCEPTION=no
17553 fi
17554
17555 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
17556
17557 ac_ext=C
17558# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17559ac_cpp='$CXXCPP $CPPFLAGS'
17560ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17561ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17562cross_compiling=$ac_cv_prog_cxx_cross
17563
17564
17565 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
17566echo "configure:17567: checking for sa_handler type" >&5
17567if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17568 echo $ac_n "(cached) $ac_c" 1>&6
17569else
17570
17571 cat > conftest.$ac_ext <<EOF
17572#line 17573 "configure"
17573#include "confdefs.h"
17574#include <signal.h>
17575int main() {
17576
17577 extern void testSigHandler(int);
17578
17579 struct sigaction sa;
17580 sa.sa_handler = testSigHandler;
17581
17582; return 0; }
17583EOF
17584if { (eval echo configure:17585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17585 rm -rf conftest*
17586
17587 wx_cv_type_sa_handler=int
17588
17589else
17590 echo "configure: failed program was:" >&5
17591 cat conftest.$ac_ext >&5
17592 rm -rf conftest*
17593
17594 wx_cv_type_sa_handler=void
17595
17596fi
17597rm -f conftest*
17598
17599fi
17600
17601echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
17602
17603 ac_ext=c
17604# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17605ac_cpp='$CPP $CPPFLAGS'
17606ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17607ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17608cross_compiling=$ac_cv_prog_cc_cross
17609
17610
17611 cat >> confdefs.h <<EOF
17612#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
17613EOF
17614
17615 fi
17616fi
17617
17618for ac_func in mkstemp mktemp
17619do
17620echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17621echo "configure:17622: checking for $ac_func" >&5
17622if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17623 echo $ac_n "(cached) $ac_c" 1>&6
17624else
17625 cat > conftest.$ac_ext <<EOF
17626#line 17627 "configure"
17627#include "confdefs.h"
17628/* System header to define __stub macros and hopefully few prototypes,
17629 which can conflict with char $ac_func(); below. */
17630#include <assert.h>
17631/* Override any gcc2 internal prototype to avoid an error. */
17632/* We use char because int might match the return type of a gcc2
17633 builtin and then its argument prototype would still apply. */
17634char $ac_func();
17635
17636int main() {
17637
17638/* The GNU C library defines this for functions which it implements
17639 to always fail with ENOSYS. Some functions are actually named
17640 something starting with __ and the normal name is an alias. */
17641#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17642choke me
17643#else
17644$ac_func();
17645#endif
17646
17647; return 0; }
17648EOF
17649if { (eval echo configure:17650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17650 rm -rf conftest*
17651 eval "ac_cv_func_$ac_func=yes"
17652else
17653 echo "configure: failed program was:" >&5
17654 cat conftest.$ac_ext >&5
17655 rm -rf conftest*
17656 eval "ac_cv_func_$ac_func=no"
17657fi
17658rm -f conftest*
17659fi
17660
17661if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17662 echo "$ac_t""yes" 1>&6
17663 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17664 cat >> confdefs.h <<EOF
17665#define $ac_tr_func 1
17666EOF
17667 break
17668else
17669 echo "$ac_t""no" 1>&6
17670fi
17671done
17672
17673
17674echo $ac_n "checking for statfs""... $ac_c" 1>&6
17675echo "configure:17676: checking for statfs" >&5
17676if eval "test \"`echo '$''{'wx_cv_func_statfs'+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
17683 #if defined(__BSD__)
17684 #include <sys/param.h>
17685 #include <sys/mount.h>
17686 #else
17687 #include <sys/vfs.h>
17688 #endif
17689
17690int main() {
17691
17692 long l;
17693 struct statfs fs;
17694 statfs("/", &fs);
17695 l = fs.f_bsize;
17696 l += fs.f_blocks;
17697 l += fs.f_bavail;
17698
17699; return 0; }
17700EOF
17701if { (eval echo configure:17702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17702 rm -rf conftest*
17703
17704 wx_cv_func_statfs=yes
17705
17706else
17707 echo "configure: failed program was:" >&5
17708 cat conftest.$ac_ext >&5
17709 rm -rf conftest*
17710
17711 wx_cv_func_statfs=no
17712
17713
17714fi
17715rm -f conftest*
17716
17717fi
17718
17719echo "$ac_t""$wx_cv_func_statfs" 1>&6
17720
17721if test "$wx_cv_func_statfs" = "yes"; then
17722 wx_cv_type_statvfs_t="struct statfs"
17723 cat >> confdefs.h <<\EOF
17724#define HAVE_STATFS 1
17725EOF
17726
17727else
17728 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
17729echo "configure:17730: checking for statvfs" >&5
17730if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17731 echo $ac_n "(cached) $ac_c" 1>&6
17732else
17733 cat > conftest.$ac_ext <<EOF
17734#line 17735 "configure"
17735#include "confdefs.h"
17736
17737 #include <stddef.h>
17738 #include <sys/statvfs.h>
17739
17740int main() {
17741
17742 statvfs("/", NULL);
17743
17744; return 0; }
17745EOF
17746if { (eval echo configure:17747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17747 rm -rf conftest*
17748 wx_cv_func_statvfs=yes
17749else
17750 echo "configure: failed program was:" >&5
17751 cat conftest.$ac_ext >&5
17752 rm -rf conftest*
17753 wx_cv_func_statvfs=no
17754
17755fi
17756rm -f conftest*
17757
17758fi
17759
17760echo "$ac_t""$wx_cv_func_statvfs" 1>&6
17761
17762 if test "$wx_cv_func_statvfs" = "yes"; then
17763
17764 ac_ext=C
17765# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17766ac_cpp='$CXXCPP $CPPFLAGS'
17767ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17768ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17769cross_compiling=$ac_cv_prog_cxx_cross
17770
17771
17772 echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
17773echo "configure:17774: checking for statvfs argument type" >&5
17774if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
17775 echo $ac_n "(cached) $ac_c" 1>&6
17776else
17777 cat > conftest.$ac_ext <<EOF
17778#line 17779 "configure"
17779#include "confdefs.h"
17780
17781 #include <sys/statvfs.h>
17782
17783int main() {
17784
17785 long l;
17786 statvfs_t fs;
17787 statvfs("/", &fs);
17788 l = fs.f_bsize;
17789 l += fs.f_blocks;
17790 l += fs.f_bavail;
17791
17792; return 0; }
17793EOF
17794if { (eval echo configure:17795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17795 rm -rf conftest*
17796 wx_cv_type_statvfs_t=statvfs_t
17797else
17798 echo "configure: failed program was:" >&5
17799 cat conftest.$ac_ext >&5
17800 rm -rf conftest*
17801
17802 cat > conftest.$ac_ext <<EOF
17803#line 17804 "configure"
17804#include "confdefs.h"
17805
17806 #include <sys/statvfs.h>
17807
17808int main() {
17809
17810 long l;
17811 struct statvfs fs;
17812 statvfs("/", &fs);
17813 l = fs.f_bsize;
17814 l += fs.f_blocks;
17815 l += fs.f_bavail;
17816
17817; return 0; }
17818EOF
17819if { (eval echo configure:17820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17820 rm -rf conftest*
17821 wx_cv_type_statvfs_t="struct statvfs"
17822else
17823 echo "configure: failed program was:" >&5
17824 cat conftest.$ac_ext >&5
17825 rm -rf conftest*
17826 wx_cv_type_statvfs_t="unknown"
17827
17828fi
17829rm -f conftest*
17830
17831
17832fi
17833rm -f conftest*
17834
17835fi
17836
17837echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
17838
17839 ac_ext=c
17840# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17841ac_cpp='$CPP $CPPFLAGS'
17842ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17843ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17844cross_compiling=$ac_cv_prog_cc_cross
17845
17846
17847 if test "$wx_cv_type_statvfs_t" != "unknown"; then
17848 cat >> confdefs.h <<\EOF
17849#define HAVE_STATVFS 1
17850EOF
17851
17852 fi
17853 else
17854 wx_cv_type_statvfs_t="unknown"
17855 fi
17856fi
17857
17858if test "$wx_cv_type_statvfs_t" != "unknown"; then
17859 cat >> confdefs.h <<EOF
17860#define WX_STATFS_T $wx_cv_type_statvfs_t
17861EOF
17862
17863else
17864 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
17865fi
17866
17867if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
17868 for ac_func in fcntl flock
17869do
17870echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17871echo "configure:17872: checking for $ac_func" >&5
17872if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17873 echo $ac_n "(cached) $ac_c" 1>&6
17874else
17875 cat > conftest.$ac_ext <<EOF
17876#line 17877 "configure"
17877#include "confdefs.h"
17878/* System header to define __stub macros and hopefully few prototypes,
17879 which can conflict with char $ac_func(); below. */
17880#include <assert.h>
17881/* Override any gcc2 internal prototype to avoid an error. */
17882/* We use char because int might match the return type of a gcc2
17883 builtin and then its argument prototype would still apply. */
17884char $ac_func();
17885
17886int main() {
17887
17888/* The GNU C library defines this for functions which it implements
17889 to always fail with ENOSYS. Some functions are actually named
17890 something starting with __ and the normal name is an alias. */
17891#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17892choke me
17893#else
17894$ac_func();
17895#endif
17896
17897; return 0; }
17898EOF
17899if { (eval echo configure:17900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17900 rm -rf conftest*
17901 eval "ac_cv_func_$ac_func=yes"
17902else
17903 echo "configure: failed program was:" >&5
17904 cat conftest.$ac_ext >&5
17905 rm -rf conftest*
17906 eval "ac_cv_func_$ac_func=no"
17907fi
17908rm -f conftest*
17909fi
17910
17911if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17912 echo "$ac_t""yes" 1>&6
17913 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17914 cat >> confdefs.h <<EOF
17915#define $ac_tr_func 1
17916EOF
17917 break
17918else
17919 echo "$ac_t""no" 1>&6
17920fi
17921done
17922
17923
17924 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
17925 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
17926 wxUSE_SNGLINST_CHECKER=no
17927 fi
17928fi
17929
17930for ac_func in timegm
17931do
17932echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17933echo "configure:17934: checking for $ac_func" >&5
17934if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17935 echo $ac_n "(cached) $ac_c" 1>&6
17936else
17937 cat > conftest.$ac_ext <<EOF
17938#line 17939 "configure"
17939#include "confdefs.h"
17940/* System header to define __stub macros and hopefully few prototypes,
17941 which can conflict with char $ac_func(); below. */
17942#include <assert.h>
17943/* Override any gcc2 internal prototype to avoid an error. */
17944/* We use char because int might match the return type of a gcc2
17945 builtin and then its argument prototype would still apply. */
17946char $ac_func();
17947
17948int main() {
17949
17950/* The GNU C library defines this for functions which it implements
17951 to always fail with ENOSYS. Some functions are actually named
17952 something starting with __ and the normal name is an alias. */
17953#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17954choke me
17955#else
17956$ac_func();
17957#endif
17958
17959; return 0; }
17960EOF
17961if { (eval echo configure:17962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17962 rm -rf conftest*
17963 eval "ac_cv_func_$ac_func=yes"
17964else
17965 echo "configure: failed program was:" >&5
17966 cat conftest.$ac_ext >&5
17967 rm -rf conftest*
17968 eval "ac_cv_func_$ac_func=no"
17969fi
17970rm -f conftest*
17971fi
17972
17973if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17974 echo "$ac_t""yes" 1>&6
17975 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17976 cat >> confdefs.h <<EOF
17977#define $ac_tr_func 1
17978EOF
17979
17980else
17981 echo "$ac_t""no" 1>&6
17982fi
17983done
17984
17985
17986for ac_func in putenv setenv
17987do
17988echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17989echo "configure:17990: checking for $ac_func" >&5
17990if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17991 echo $ac_n "(cached) $ac_c" 1>&6
17992else
17993 cat > conftest.$ac_ext <<EOF
17994#line 17995 "configure"
17995#include "confdefs.h"
17996/* System header to define __stub macros and hopefully few prototypes,
17997 which can conflict with char $ac_func(); below. */
17998#include <assert.h>
17999/* Override any gcc2 internal prototype to avoid an error. */
18000/* We use char because int might match the return type of a gcc2
18001 builtin and then its argument prototype would still apply. */
18002char $ac_func();
18003
18004int main() {
18005
18006/* The GNU C library defines this for functions which it implements
18007 to always fail with ENOSYS. Some functions are actually named
18008 something starting with __ and the normal name is an alias. */
18009#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18010choke me
18011#else
18012$ac_func();
18013#endif
18014
18015; return 0; }
18016EOF
18017if { (eval echo configure:18018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18018 rm -rf conftest*
18019 eval "ac_cv_func_$ac_func=yes"
18020else
18021 echo "configure: failed program was:" >&5
18022 cat conftest.$ac_ext >&5
18023 rm -rf conftest*
18024 eval "ac_cv_func_$ac_func=no"
18025fi
18026rm -f conftest*
18027fi
18028
18029if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18030 echo "$ac_t""yes" 1>&6
18031 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18032 cat >> confdefs.h <<EOF
18033#define $ac_tr_func 1
18034EOF
18035 break
18036else
18037 echo "$ac_t""no" 1>&6
18038fi
18039done
18040
18041
18042HAVE_SOME_SLEEP_FUNC=0
18043if test "$USE_BEOS" = 1; then
18044 cat >> confdefs.h <<\EOF
18045#define HAVE_SLEEP 1
18046EOF
18047
18048 HAVE_SOME_SLEEP_FUNC=1
18049fi
18050
18051if test "$USE_DARWIN" = 1; then
18052 cat >> confdefs.h <<\EOF
18053#define HAVE_USLEEP 1
18054EOF
18055
18056 HAVE_SOME_SLEEP_FUNC=1
18057fi
18058
18059if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
18060 POSIX4_LINK=
18061 for ac_func in nanosleep
18062do
18063echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18064echo "configure:18065: checking for $ac_func" >&5
18065if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18066 echo $ac_n "(cached) $ac_c" 1>&6
18067else
18068 cat > conftest.$ac_ext <<EOF
18069#line 18070 "configure"
18070#include "confdefs.h"
18071/* System header to define __stub macros and hopefully few prototypes,
18072 which can conflict with char $ac_func(); below. */
18073#include <assert.h>
18074/* Override any gcc2 internal prototype to avoid an error. */
18075/* We use char because int might match the return type of a gcc2
18076 builtin and then its argument prototype would still apply. */
18077char $ac_func();
18078
18079int main() {
18080
18081/* The GNU C library defines this for functions which it implements
18082 to always fail with ENOSYS. Some functions are actually named
18083 something starting with __ and the normal name is an alias. */
18084#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18085choke me
18086#else
18087$ac_func();
18088#endif
18089
18090; return 0; }
18091EOF
18092if { (eval echo configure:18093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18093 rm -rf conftest*
18094 eval "ac_cv_func_$ac_func=yes"
18095else
18096 echo "configure: failed program was:" >&5
18097 cat conftest.$ac_ext >&5
18098 rm -rf conftest*
18099 eval "ac_cv_func_$ac_func=no"
18100fi
18101rm -f conftest*
18102fi
18103
18104if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18105 echo "$ac_t""yes" 1>&6
18106 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18107 cat >> confdefs.h <<EOF
18108#define $ac_tr_func 1
18109EOF
18110 cat >> confdefs.h <<\EOF
18111#define HAVE_NANOSLEEP 1
18112EOF
18113
18114else
18115 echo "$ac_t""no" 1>&6
18116echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
18117echo "configure:18118: checking for nanosleep in -lposix4" >&5
18118ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
18119if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18120 echo $ac_n "(cached) $ac_c" 1>&6
18121else
18122 ac_save_LIBS="$LIBS"
18123LIBS="-lposix4 $LIBS"
18124cat > conftest.$ac_ext <<EOF
18125#line 18126 "configure"
18126#include "confdefs.h"
18127/* Override any gcc2 internal prototype to avoid an error. */
18128/* We use char because int might match the return type of a gcc2
18129 builtin and then its argument prototype would still apply. */
18130char nanosleep();
18131
18132int main() {
18133nanosleep()
18134; return 0; }
18135EOF
18136if { (eval echo configure:18137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18137 rm -rf conftest*
18138 eval "ac_cv_lib_$ac_lib_var=yes"
18139else
18140 echo "configure: failed program was:" >&5
18141 cat conftest.$ac_ext >&5
18142 rm -rf conftest*
18143 eval "ac_cv_lib_$ac_lib_var=no"
18144fi
18145rm -f conftest*
18146LIBS="$ac_save_LIBS"
18147
18148fi
18149if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18150 echo "$ac_t""yes" 1>&6
18151
18152 cat >> confdefs.h <<\EOF
18153#define HAVE_NANOSLEEP 1
18154EOF
18155
18156 POSIX4_LINK=" -lposix4"
18157
18158else
18159 echo "$ac_t""no" 1>&6
18160
18161 for ac_func in usleep
18162do
18163echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18164echo "configure:18165: checking for $ac_func" >&5
18165if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18166 echo $ac_n "(cached) $ac_c" 1>&6
18167else
18168 cat > conftest.$ac_ext <<EOF
18169#line 18170 "configure"
18170#include "confdefs.h"
18171/* System header to define __stub macros and hopefully few prototypes,
18172 which can conflict with char $ac_func(); below. */
18173#include <assert.h>
18174/* Override any gcc2 internal prototype to avoid an error. */
18175/* We use char because int might match the return type of a gcc2
18176 builtin and then its argument prototype would still apply. */
18177char $ac_func();
18178
18179int main() {
18180
18181/* The GNU C library defines this for functions which it implements
18182 to always fail with ENOSYS. Some functions are actually named
18183 something starting with __ and the normal name is an alias. */
18184#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18185choke me
18186#else
18187$ac_func();
18188#endif
18189
18190; return 0; }
18191EOF
18192if { (eval echo configure:18193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18193 rm -rf conftest*
18194 eval "ac_cv_func_$ac_func=yes"
18195else
18196 echo "configure: failed program was:" >&5
18197 cat conftest.$ac_ext >&5
18198 rm -rf conftest*
18199 eval "ac_cv_func_$ac_func=no"
18200fi
18201rm -f conftest*
18202fi
18203
18204if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18205 echo "$ac_t""yes" 1>&6
18206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18207 cat >> confdefs.h <<EOF
18208#define $ac_tr_func 1
18209EOF
18210 cat >> confdefs.h <<\EOF
18211#define HAVE_USLEEP 1
18212EOF
18213
18214else
18215 echo "$ac_t""no" 1>&6
18216echo "configure: warning: wxSleep() function will not work" 1>&2
18217
18218fi
18219done
18220
18221
18222
18223fi
18224
18225
18226
18227fi
18228done
18229
18230fi
18231
18232for ac_func in uname gethostname
18233do
18234echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18235echo "configure:18236: checking for $ac_func" >&5
18236if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18237 echo $ac_n "(cached) $ac_c" 1>&6
18238else
18239 cat > conftest.$ac_ext <<EOF
18240#line 18241 "configure"
18241#include "confdefs.h"
18242/* System header to define __stub macros and hopefully few prototypes,
18243 which can conflict with char $ac_func(); below. */
18244#include <assert.h>
18245/* Override any gcc2 internal prototype to avoid an error. */
18246/* We use char because int might match the return type of a gcc2
18247 builtin and then its argument prototype would still apply. */
18248char $ac_func();
18249
18250int main() {
18251
18252/* The GNU C library defines this for functions which it implements
18253 to always fail with ENOSYS. Some functions are actually named
18254 something starting with __ and the normal name is an alias. */
18255#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18256choke me
18257#else
18258$ac_func();
18259#endif
18260
18261; return 0; }
18262EOF
18263if { (eval echo configure:18264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18264 rm -rf conftest*
18265 eval "ac_cv_func_$ac_func=yes"
18266else
18267 echo "configure: failed program was:" >&5
18268 cat conftest.$ac_ext >&5
18269 rm -rf conftest*
18270 eval "ac_cv_func_$ac_func=no"
18271fi
18272rm -f conftest*
18273fi
18274
18275if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18276 echo "$ac_t""yes" 1>&6
18277 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18278 cat >> confdefs.h <<EOF
18279#define $ac_tr_func 1
18280EOF
18281 break
18282else
18283 echo "$ac_t""no" 1>&6
18284fi
18285done
18286
18287
18288
18289ac_ext=C
18290# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18291ac_cpp='$CXXCPP $CPPFLAGS'
18292ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18293ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18294cross_compiling=$ac_cv_prog_cxx_cross
18295
18296
18297for ac_func in strtok_r
18298do
18299echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18300echo "configure:18301: checking for $ac_func" >&5
18301if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18302 echo $ac_n "(cached) $ac_c" 1>&6
18303else
18304 cat > conftest.$ac_ext <<EOF
18305#line 18306 "configure"
18306#include "confdefs.h"
18307/* System header to define __stub macros and hopefully few prototypes,
18308 which can conflict with char $ac_func(); below. */
18309#include <assert.h>
18310/* Override any gcc2 internal prototype to avoid an error. */
18311#ifdef __cplusplus
18312extern "C"
18313#endif
18314/* We use char because int might match the return type of a gcc2
18315 builtin and then its argument prototype would still apply. */
18316char $ac_func();
18317
18318int main() {
18319
18320/* The GNU C library defines this for functions which it implements
18321 to always fail with ENOSYS. Some functions are actually named
18322 something starting with __ and the normal name is an alias. */
18323#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18324choke me
18325#else
18326$ac_func();
18327#endif
18328
18329; return 0; }
18330EOF
18331if { (eval echo configure:18332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18332 rm -rf conftest*
18333 eval "ac_cv_func_$ac_func=yes"
18334else
18335 echo "configure: failed program was:" >&5
18336 cat conftest.$ac_ext >&5
18337 rm -rf conftest*
18338 eval "ac_cv_func_$ac_func=no"
18339fi
18340rm -f conftest*
18341fi
18342
18343if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18344 echo "$ac_t""yes" 1>&6
18345 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18346 cat >> confdefs.h <<EOF
18347#define $ac_tr_func 1
18348EOF
18349
18350else
18351 echo "$ac_t""no" 1>&6
18352fi
18353done
18354
18355
18356ac_ext=c
18357# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18358ac_cpp='$CPP $CPPFLAGS'
18359ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18360ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18361cross_compiling=$ac_cv_prog_cc_cross
18362
18363
18364INET_LINK=
18365for ac_func in inet_addr
18366do
18367echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18368echo "configure:18369: checking for $ac_func" >&5
18369if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18370 echo $ac_n "(cached) $ac_c" 1>&6
18371else
18372 cat > conftest.$ac_ext <<EOF
18373#line 18374 "configure"
18374#include "confdefs.h"
18375/* System header to define __stub macros and hopefully few prototypes,
18376 which can conflict with char $ac_func(); below. */
18377#include <assert.h>
18378/* Override any gcc2 internal prototype to avoid an error. */
18379/* We use char because int might match the return type of a gcc2
18380 builtin and then its argument prototype would still apply. */
18381char $ac_func();
18382
18383int main() {
18384
18385/* The GNU C library defines this for functions which it implements
18386 to always fail with ENOSYS. Some functions are actually named
18387 something starting with __ and the normal name is an alias. */
18388#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18389choke me
18390#else
18391$ac_func();
18392#endif
18393
18394; return 0; }
18395EOF
18396if { (eval echo configure:18397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18397 rm -rf conftest*
18398 eval "ac_cv_func_$ac_func=yes"
18399else
18400 echo "configure: failed program was:" >&5
18401 cat conftest.$ac_ext >&5
18402 rm -rf conftest*
18403 eval "ac_cv_func_$ac_func=no"
18404fi
18405rm -f conftest*
18406fi
18407
18408if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18409 echo "$ac_t""yes" 1>&6
18410 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18411 cat >> confdefs.h <<EOF
18412#define $ac_tr_func 1
18413EOF
18414 cat >> confdefs.h <<\EOF
18415#define HAVE_INET_ADDR 1
18416EOF
18417
18418else
18419 echo "$ac_t""no" 1>&6
18420echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
18421echo "configure:18422: checking for inet_addr in -lnsl" >&5
18422ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18423if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18424 echo $ac_n "(cached) $ac_c" 1>&6
18425else
18426 ac_save_LIBS="$LIBS"
18427LIBS="-lnsl $LIBS"
18428cat > conftest.$ac_ext <<EOF
18429#line 18430 "configure"
18430#include "confdefs.h"
18431/* Override any gcc2 internal prototype to avoid an error. */
18432/* We use char because int might match the return type of a gcc2
18433 builtin and then its argument prototype would still apply. */
18434char inet_addr();
18435
18436int main() {
18437inet_addr()
18438; return 0; }
18439EOF
18440if { (eval echo configure:18441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18441 rm -rf conftest*
18442 eval "ac_cv_lib_$ac_lib_var=yes"
18443else
18444 echo "configure: failed program was:" >&5
18445 cat conftest.$ac_ext >&5
18446 rm -rf conftest*
18447 eval "ac_cv_lib_$ac_lib_var=no"
18448fi
18449rm -f conftest*
18450LIBS="$ac_save_LIBS"
18451
18452fi
18453if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18454 echo "$ac_t""yes" 1>&6
18455 INET_LINK="nsl"
18456else
18457 echo "$ac_t""no" 1>&6
18458echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
18459echo "configure:18460: checking for inet_addr in -lresolv" >&5
18460ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18461if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18462 echo $ac_n "(cached) $ac_c" 1>&6
18463else
18464 ac_save_LIBS="$LIBS"
18465LIBS="-lresolv $LIBS"
18466cat > conftest.$ac_ext <<EOF
18467#line 18468 "configure"
18468#include "confdefs.h"
18469/* Override any gcc2 internal prototype to avoid an error. */
18470/* We use char because int might match the return type of a gcc2
18471 builtin and then its argument prototype would still apply. */
18472char inet_addr();
18473
18474int main() {
18475inet_addr()
18476; return 0; }
18477EOF
18478if { (eval echo configure:18479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18479 rm -rf conftest*
18480 eval "ac_cv_lib_$ac_lib_var=yes"
18481else
18482 echo "configure: failed program was:" >&5
18483 cat conftest.$ac_ext >&5
18484 rm -rf conftest*
18485 eval "ac_cv_lib_$ac_lib_var=no"
18486fi
18487rm -f conftest*
18488LIBS="$ac_save_LIBS"
18489
18490fi
18491if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18492 echo "$ac_t""yes" 1>&6
18493 INET_LINK="resolv"
18494else
18495 echo "$ac_t""no" 1>&6
18496echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
18497echo "configure:18498: checking for inet_addr in -lsocket" >&5
18498ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18499if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18500 echo $ac_n "(cached) $ac_c" 1>&6
18501else
18502 ac_save_LIBS="$LIBS"
18503LIBS="-lsocket $LIBS"
18504cat > conftest.$ac_ext <<EOF
18505#line 18506 "configure"
18506#include "confdefs.h"
18507/* Override any gcc2 internal prototype to avoid an error. */
18508/* We use char because int might match the return type of a gcc2
18509 builtin and then its argument prototype would still apply. */
18510char inet_addr();
18511
18512int main() {
18513inet_addr()
18514; return 0; }
18515EOF
18516if { (eval echo configure:18517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18517 rm -rf conftest*
18518 eval "ac_cv_lib_$ac_lib_var=yes"
18519else
18520 echo "configure: failed program was:" >&5
18521 cat conftest.$ac_ext >&5
18522 rm -rf conftest*
18523 eval "ac_cv_lib_$ac_lib_var=no"
18524fi
18525rm -f conftest*
18526LIBS="$ac_save_LIBS"
18527
18528fi
18529if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18530 echo "$ac_t""yes" 1>&6
18531 INET_LINK="socket"
18532
18533else
18534 echo "$ac_t""no" 1>&6
18535fi
18536
18537
18538fi
18539
18540
18541fi
18542
18543
18544
18545fi
18546done
18547
18548
18549for ac_func in inet_aton
18550do
18551echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18552echo "configure:18553: checking for $ac_func" >&5
18553if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18554 echo $ac_n "(cached) $ac_c" 1>&6
18555else
18556 cat > conftest.$ac_ext <<EOF
18557#line 18558 "configure"
18558#include "confdefs.h"
18559/* System header to define __stub macros and hopefully few prototypes,
18560 which can conflict with char $ac_func(); below. */
18561#include <assert.h>
18562/* Override any gcc2 internal prototype to avoid an error. */
18563/* We use char because int might match the return type of a gcc2
18564 builtin and then its argument prototype would still apply. */
18565char $ac_func();
18566
18567int main() {
18568
18569/* The GNU C library defines this for functions which it implements
18570 to always fail with ENOSYS. Some functions are actually named
18571 something starting with __ and the normal name is an alias. */
18572#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18573choke me
18574#else
18575$ac_func();
18576#endif
18577
18578; return 0; }
18579EOF
18580if { (eval echo configure:18581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18581 rm -rf conftest*
18582 eval "ac_cv_func_$ac_func=yes"
18583else
18584 echo "configure: failed program was:" >&5
18585 cat conftest.$ac_ext >&5
18586 rm -rf conftest*
18587 eval "ac_cv_func_$ac_func=no"
18588fi
18589rm -f conftest*
18590fi
18591
18592if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18593 echo "$ac_t""yes" 1>&6
18594 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18595 cat >> confdefs.h <<EOF
18596#define $ac_tr_func 1
18597EOF
18598 cat >> confdefs.h <<\EOF
18599#define HAVE_INET_ATON 1
18600EOF
18601
18602else
18603 echo "$ac_t""no" 1>&6
18604 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
18605echo "configure:18606: checking for inet_aton in -l$INET_LINK" >&5
18606ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18607if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18608 echo $ac_n "(cached) $ac_c" 1>&6
18609else
18610 ac_save_LIBS="$LIBS"
18611LIBS="-l$INET_LINK $LIBS"
18612cat > conftest.$ac_ext <<EOF
18613#line 18614 "configure"
18614#include "confdefs.h"
18615/* Override any gcc2 internal prototype to avoid an error. */
18616/* We use char because int might match the return type of a gcc2
18617 builtin and then its argument prototype would still apply. */
18618char inet_aton();
18619
18620int main() {
18621inet_aton()
18622; return 0; }
18623EOF
18624if { (eval echo configure:18625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18625 rm -rf conftest*
18626 eval "ac_cv_lib_$ac_lib_var=yes"
18627else
18628 echo "configure: failed program was:" >&5
18629 cat conftest.$ac_ext >&5
18630 rm -rf conftest*
18631 eval "ac_cv_lib_$ac_lib_var=no"
18632fi
18633rm -f conftest*
18634LIBS="$ac_save_LIBS"
18635
18636fi
18637if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18638 echo "$ac_t""yes" 1>&6
18639 cat >> confdefs.h <<\EOF
18640#define HAVE_INET_ATON 1
18641EOF
18642
18643else
18644 echo "$ac_t""no" 1>&6
18645fi
18646
18647
18648fi
18649done
18650
18651
18652if test "x$INET_LINK" != "x"; then
18653 cat >> confdefs.h <<\EOF
18654#define HAVE_INET_ADDR 1
18655EOF
18656
18657 INET_LINK=" -l$INET_LINK"
18658fi
18659
18660fi
18661
18662
18663cat > confcache <<\EOF
18664# This file is a shell script that caches the results of configure
18665# tests run on this system so they can be shared between configure
18666# scripts and configure runs. It is not useful on other systems.
18667# If it contains results you don't want to keep, you may remove or edit it.
18668#
18669# By default, configure uses ./config.cache as the cache file,
18670# creating it if it does not exist already. You can give configure
18671# the --cache-file=FILE option to use a different cache file; that is
18672# what configure does when it calls configure scripts in
18673# subdirectories, so they share the cache.
18674# Giving --cache-file=/dev/null disables caching, for debugging configure.
18675# config.status only pays attention to the cache file if you give it the
18676# --recheck option to rerun configure.
18677#
18678EOF
18679# The following way of writing the cache mishandles newlines in values,
18680# but we know of no workaround that is simple, portable, and efficient.
18681# So, don't put newlines in cache variables' values.
18682# Ultrix sh set writes to stderr and can't be redirected directly,
18683# and sets the high bit in the cache file unless we assign to the vars.
18684(set) 2>&1 |
18685 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18686 *ac_space=\ *)
18687 # `set' does not quote correctly, so add quotes (double-quote substitution
18688 # turns \\\\ into \\, and sed turns \\ into \).
18689 sed -n \
18690 -e "s/'/'\\\\''/g" \
18691 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18692 ;;
18693 *)
18694 # `set' quotes correctly as required by POSIX, so do not add quotes.
18695 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18696 ;;
18697 esac >> confcache
18698if cmp -s $cache_file confcache; then
18699 :
18700else
18701 if test -w $cache_file; then
18702 echo "updating cache $cache_file"
18703 cat confcache > $cache_file
18704 else
18705 echo "not updating unwritable cache $cache_file"
18706 fi
18707fi
18708rm -f confcache
18709
18710
18711
18712CPP_MT_FLAG=
18713if test "$TOOLKIT" != "MSW"; then
18714
18715
18716 THREADS_LINK=
18717 THREADS_CFLAGS=
18718
18719 if test "$wxUSE_THREADS" = "yes" ; then
18720 if test "$USE_BEOS" = 1; then
18721 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
18722 wxUSE_THREADS="no"
18723 fi
18724 fi
18725
18726 if test "$wxUSE_THREADS" = "yes" ; then
18727
18728
18729 THREAD_OPTS="-pthread"
18730 case "${host}" in
18731 *-*-solaris2* | *-*-sunos4* )
18732 if test "x$GCC" = "xyes"; then
18733 THREAD_OPTS="-pthreads $THREAD_OPTS"
18734 else
18735 THREAD_OPTS="-mt $THREAD_OPTS"
18736 fi
18737 ;;
18738 *-*-freebsd*)
18739 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18740 ;;
18741 *-*-darwin* | *-*-cygwin* )
18742 THREAD_OPTS=""
18743 ;;
18744 *-*-aix*)
18745 THREAD_OPTS="pthreads"
18746 ;;
18747 *-hp-hpux* )
18748 if test "x$GCC" != "xyes"; then
18749 THREAD_OPTS=""
18750 fi
18751 ;;
18752
18753 *-*-irix* )
18754 if test "x$GCC" = "xyes"; then
18755 THREAD_OPTS=""
18756 fi
18757 ;;
18758
18759 *-*-*UnixWare*)
18760 if test "x$GCC" != "xyes"; then
18761 THREAD_OPTS="-Ethread"
18762 fi
18763 ;;
18764 esac
18765
18766 THREAD_OPTS="$THREAD_OPTS pthread none"
18767
18768 THREADS_OK=no
18769 for flag in $THREAD_OPTS; do
18770 case $flag in
18771 none)
18772 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
18773echo "configure:18774: checking whether pthreads work without any flags" >&5
18774 ;;
18775
18776 -*)
18777 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
18778echo "configure:18779: checking whether pthreads work with $flag" >&5
18779 THREADS_CFLAGS="$flag"
18780 ;;
18781
18782 *)
18783 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
18784echo "configure:18785: checking for the pthreads library -l$flag" >&5
18785 THREADS_LINK="-l$flag"
18786 ;;
18787 esac
18788
18789 save_LIBS="$LIBS"
18790 save_CFLAGS="$CFLAGS"
18791 LIBS="$THREADS_LINK $LIBS"
18792 CFLAGS="$THREADS_CFLAGS $CFLAGS"
18793
18794 cat > conftest.$ac_ext <<EOF
18795#line 18796 "configure"
18796#include "confdefs.h"
18797#include <pthread.h>
18798int main() {
18799pthread_create(0,0,0,0);
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 THREADS_OK=yes
18805else
18806 echo "configure: failed program was:" >&5
18807 cat conftest.$ac_ext >&5
18808fi
18809rm -f conftest*
18810
18811 LIBS="$save_LIBS"
18812 CFLAGS="$save_CFLAGS"
18813
18814 echo "$ac_t""$THREADS_OK" 1>&6
18815 if test "x$THREADS_OK" = "xyes"; then
18816 break;
18817 fi
18818
18819 THREADS_LINK=""
18820 THREADS_CFLAGS=""
18821 done
18822
18823 if test "x$THREADS_OK" != "xyes"; then
18824 wxUSE_THREADS=no
18825 echo "configure: warning: No thread support on this system... disabled" 1>&2
18826 else
18827 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
18828 LIBS="$THREADS_LINK $LIBS"
18829
18830 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
18831echo "configure:18832: checking if more special flags are required for pthreads" >&5
18832 flag=no
18833 case "${host}" in
18834 *-aix*)
18835 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
18836 flag="-D_THREAD_SAFE"
18837 ;;
18838 *-freebsd*)
18839 flag="-D_THREAD_SAFE"
18840 ;;
18841 *-hp-hpux* )
18842 flag="-D_REENTRANT"
18843 if test "x$GCC" != "xyes"; then
18844 flag="$flag -D_RWSTD_MULTI_THREAD"
18845 fi
18846 ;;
18847 *solaris* | alpha*-osf*)
18848 flag="-D_REENTRANT"
18849 ;;
18850 esac
18851 echo "$ac_t""${flag}" 1>&6
18852 if test "x$flag" != xno; then
18853 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
18854 fi
18855
18856 if test "x$THREADS_CFLAGS" != "x"; then
18857 CFLAGS="$CFLAGS $THREADS_CFLAGS"
18858 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
18859 fi
18860 fi
18861 fi
18862
18863 if test "$wxUSE_THREADS" = "yes" ; then
18864 for ac_func in thr_setconcurrency
18865do
18866echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18867echo "configure:18868: checking for $ac_func" >&5
18868if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18869 echo $ac_n "(cached) $ac_c" 1>&6
18870else
18871 cat > conftest.$ac_ext <<EOF
18872#line 18873 "configure"
18873#include "confdefs.h"
18874/* System header to define __stub macros and hopefully few prototypes,
18875 which can conflict with char $ac_func(); below. */
18876#include <assert.h>
18877/* Override any gcc2 internal prototype to avoid an error. */
18878/* We use char because int might match the return type of a gcc2
18879 builtin and then its argument prototype would still apply. */
18880char $ac_func();
18881
18882int main() {
18883
18884/* The GNU C library defines this for functions which it implements
18885 to always fail with ENOSYS. Some functions are actually named
18886 something starting with __ and the normal name is an alias. */
18887#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18888choke me
18889#else
18890$ac_func();
18891#endif
18892
18893; return 0; }
18894EOF
18895if { (eval echo configure:18896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18896 rm -rf conftest*
18897 eval "ac_cv_func_$ac_func=yes"
18898else
18899 echo "configure: failed program was:" >&5
18900 cat conftest.$ac_ext >&5
18901 rm -rf conftest*
18902 eval "ac_cv_func_$ac_func=no"
18903fi
18904rm -f conftest*
18905fi
18906
18907if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18908 echo "$ac_t""yes" 1>&6
18909 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18910 cat >> confdefs.h <<EOF
18911#define $ac_tr_func 1
18912EOF
18913
18914else
18915 echo "$ac_t""no" 1>&6
18916fi
18917done
18918
18919
18920 for ac_hdr in sched.h
18921do
18922ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18923echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18924echo "configure:18925: checking for $ac_hdr" >&5
18925if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18926 echo $ac_n "(cached) $ac_c" 1>&6
18927else
18928 cat > conftest.$ac_ext <<EOF
18929#line 18930 "configure"
18930#include "confdefs.h"
18931#include <$ac_hdr>
18932EOF
18933ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18934{ (eval echo configure:18935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18935ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18936if test -z "$ac_err"; then
18937 rm -rf conftest*
18938 eval "ac_cv_header_$ac_safe=yes"
18939else
18940 echo "$ac_err" >&5
18941 echo "configure: failed program was:" >&5
18942 cat conftest.$ac_ext >&5
18943 rm -rf conftest*
18944 eval "ac_cv_header_$ac_safe=no"
18945fi
18946rm -f conftest*
18947fi
18948if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18949 echo "$ac_t""yes" 1>&6
18950 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18951 cat >> confdefs.h <<EOF
18952#define $ac_tr_hdr 1
18953EOF
18954
18955else
18956 echo "$ac_t""no" 1>&6
18957fi
18958done
18959
18960 if test "$ac_cv_header_sched_h" = "yes"; then
18961 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
18962echo "configure:18963: checking for sched_yield" >&5
18963if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
18964 echo $ac_n "(cached) $ac_c" 1>&6
18965else
18966 cat > conftest.$ac_ext <<EOF
18967#line 18968 "configure"
18968#include "confdefs.h"
18969/* System header to define __stub macros and hopefully few prototypes,
18970 which can conflict with char sched_yield(); below. */
18971#include <assert.h>
18972/* Override any gcc2 internal prototype to avoid an error. */
18973/* We use char because int might match the return type of a gcc2
18974 builtin and then its argument prototype would still apply. */
18975char sched_yield();
18976
18977int main() {
18978
18979/* The GNU C library defines this for functions which it implements
18980 to always fail with ENOSYS. Some functions are actually named
18981 something starting with __ and the normal name is an alias. */
18982#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
18983choke me
18984#else
18985sched_yield();
18986#endif
18987
18988; return 0; }
18989EOF
18990if { (eval echo configure:18991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18991 rm -rf conftest*
18992 eval "ac_cv_func_sched_yield=yes"
18993else
18994 echo "configure: failed program was:" >&5
18995 cat conftest.$ac_ext >&5
18996 rm -rf conftest*
18997 eval "ac_cv_func_sched_yield=no"
18998fi
18999rm -f conftest*
19000fi
19001
19002if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
19003 echo "$ac_t""yes" 1>&6
19004 cat >> confdefs.h <<\EOF
19005#define HAVE_SCHED_YIELD 1
19006EOF
19007
19008else
19009 echo "$ac_t""no" 1>&6
19010
19011 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
19012echo "configure:19013: checking for sched_yield in -lposix4" >&5
19013ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
19014if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19015 echo $ac_n "(cached) $ac_c" 1>&6
19016else
19017 ac_save_LIBS="$LIBS"
19018LIBS="-lposix4 $LIBS"
19019cat > conftest.$ac_ext <<EOF
19020#line 19021 "configure"
19021#include "confdefs.h"
19022/* Override any gcc2 internal prototype to avoid an error. */
19023/* We use char because int might match the return type of a gcc2
19024 builtin and then its argument prototype would still apply. */
19025char sched_yield();
19026
19027int main() {
19028sched_yield()
19029; return 0; }
19030EOF
19031if { (eval echo configure:19032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19032 rm -rf conftest*
19033 eval "ac_cv_lib_$ac_lib_var=yes"
19034else
19035 echo "configure: failed program was:" >&5
19036 cat conftest.$ac_ext >&5
19037 rm -rf conftest*
19038 eval "ac_cv_lib_$ac_lib_var=no"
19039fi
19040rm -f conftest*
19041LIBS="$ac_save_LIBS"
19042
19043fi
19044if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19045 echo "$ac_t""yes" 1>&6
19046 cat >> confdefs.h <<\EOF
19047#define HAVE_SCHED_YIELD 1
19048EOF
19049 POSIX4_LINK=" -lposix4"
19050else
19051 echo "$ac_t""no" 1>&6
19052echo "configure: warning: wxThread::Yield will not work properly" 1>&2
19053
19054fi
19055
19056
19057
19058fi
19059
19060 fi
19061
19062 HAVE_PRIOR_FUNCS=0
19063 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
19064echo "configure:19065: checking for pthread_attr_getschedpolicy" >&5
19065if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
19066 echo $ac_n "(cached) $ac_c" 1>&6
19067else
19068 cat > conftest.$ac_ext <<EOF
19069#line 19070 "configure"
19070#include "confdefs.h"
19071/* System header to define __stub macros and hopefully few prototypes,
19072 which can conflict with char pthread_attr_getschedpolicy(); below. */
19073#include <assert.h>
19074/* Override any gcc2 internal prototype to avoid an error. */
19075/* We use char because int might match the return type of a gcc2
19076 builtin and then its argument prototype would still apply. */
19077char pthread_attr_getschedpolicy();
19078
19079int main() {
19080
19081/* The GNU C library defines this for functions which it implements
19082 to always fail with ENOSYS. Some functions are actually named
19083 something starting with __ and the normal name is an alias. */
19084#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
19085choke me
19086#else
19087pthread_attr_getschedpolicy();
19088#endif
19089
19090; return 0; }
19091EOF
19092if { (eval echo configure:19093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19093 rm -rf conftest*
19094 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
19095else
19096 echo "configure: failed program was:" >&5
19097 cat conftest.$ac_ext >&5
19098 rm -rf conftest*
19099 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
19100fi
19101rm -f conftest*
19102fi
19103
19104if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
19105 echo "$ac_t""yes" 1>&6
19106 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
19107echo "configure:19108: checking for pthread_attr_setschedparam" >&5
19108if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
19109 echo $ac_n "(cached) $ac_c" 1>&6
19110else
19111 cat > conftest.$ac_ext <<EOF
19112#line 19113 "configure"
19113#include "confdefs.h"
19114/* System header to define __stub macros and hopefully few prototypes,
19115 which can conflict with char pthread_attr_setschedparam(); below. */
19116#include <assert.h>
19117/* Override any gcc2 internal prototype to avoid an error. */
19118/* We use char because int might match the return type of a gcc2
19119 builtin and then its argument prototype would still apply. */
19120char pthread_attr_setschedparam();
19121
19122int main() {
19123
19124/* The GNU C library defines this for functions which it implements
19125 to always fail with ENOSYS. Some functions are actually named
19126 something starting with __ and the normal name is an alias. */
19127#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
19128choke me
19129#else
19130pthread_attr_setschedparam();
19131#endif
19132
19133; return 0; }
19134EOF
19135if { (eval echo configure:19136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19136 rm -rf conftest*
19137 eval "ac_cv_func_pthread_attr_setschedparam=yes"
19138else
19139 echo "configure: failed program was:" >&5
19140 cat conftest.$ac_ext >&5
19141 rm -rf conftest*
19142 eval "ac_cv_func_pthread_attr_setschedparam=no"
19143fi
19144rm -f conftest*
19145fi
19146
19147if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
19148 echo "$ac_t""yes" 1>&6
19149 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
19150echo "configure:19151: checking for sched_get_priority_max" >&5
19151if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
19152 echo $ac_n "(cached) $ac_c" 1>&6
19153else
19154 cat > conftest.$ac_ext <<EOF
19155#line 19156 "configure"
19156#include "confdefs.h"
19157/* System header to define __stub macros and hopefully few prototypes,
19158 which can conflict with char sched_get_priority_max(); below. */
19159#include <assert.h>
19160/* Override any gcc2 internal prototype to avoid an error. */
19161/* We use char because int might match the return type of a gcc2
19162 builtin and then its argument prototype would still apply. */
19163char sched_get_priority_max();
19164
19165int main() {
19166
19167/* The GNU C library defines this for functions which it implements
19168 to always fail with ENOSYS. Some functions are actually named
19169 something starting with __ and the normal name is an alias. */
19170#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
19171choke me
19172#else
19173sched_get_priority_max();
19174#endif
19175
19176; return 0; }
19177EOF
19178if { (eval echo configure:19179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19179 rm -rf conftest*
19180 eval "ac_cv_func_sched_get_priority_max=yes"
19181else
19182 echo "configure: failed program was:" >&5
19183 cat conftest.$ac_ext >&5
19184 rm -rf conftest*
19185 eval "ac_cv_func_sched_get_priority_max=no"
19186fi
19187rm -f conftest*
19188fi
19189
19190if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
19191 echo "$ac_t""yes" 1>&6
19192 HAVE_PRIOR_FUNCS=1
19193else
19194 echo "$ac_t""no" 1>&6
19195echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
19196echo "configure:19197: checking for sched_get_priority_max in -lposix4" >&5
19197ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
19198if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19199 echo $ac_n "(cached) $ac_c" 1>&6
19200else
19201 ac_save_LIBS="$LIBS"
19202LIBS="-lposix4 $LIBS"
19203cat > conftest.$ac_ext <<EOF
19204#line 19205 "configure"
19205#include "confdefs.h"
19206/* Override any gcc2 internal prototype to avoid an error. */
19207/* We use char because int might match the return type of a gcc2
19208 builtin and then its argument prototype would still apply. */
19209char sched_get_priority_max();
19210
19211int main() {
19212sched_get_priority_max()
19213; return 0; }
19214EOF
19215if { (eval echo configure:19216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19216 rm -rf conftest*
19217 eval "ac_cv_lib_$ac_lib_var=yes"
19218else
19219 echo "configure: failed program was:" >&5
19220 cat conftest.$ac_ext >&5
19221 rm -rf conftest*
19222 eval "ac_cv_lib_$ac_lib_var=no"
19223fi
19224rm -f conftest*
19225LIBS="$ac_save_LIBS"
19226
19227fi
19228if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19229 echo "$ac_t""yes" 1>&6
19230
19231 HAVE_PRIOR_FUNCS=1
19232 POSIX4_LINK=" -lposix4"
19233
19234else
19235 echo "$ac_t""no" 1>&6
19236fi
19237
19238
19239fi
19240
19241
19242else
19243 echo "$ac_t""no" 1>&6
19244fi
19245
19246
19247else
19248 echo "$ac_t""no" 1>&6
19249fi
19250
19251
19252 if test "$HAVE_PRIOR_FUNCS" = 1; then
19253 cat >> confdefs.h <<\EOF
19254#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
19255EOF
19256
19257 else
19258 echo "configure: warning: Setting thread priority will not work" 1>&2
19259 fi
19260
19261 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
19262echo "configure:19263: checking for pthread_cancel" >&5
19263if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
19264 echo $ac_n "(cached) $ac_c" 1>&6
19265else
19266 cat > conftest.$ac_ext <<EOF
19267#line 19268 "configure"
19268#include "confdefs.h"
19269/* System header to define __stub macros and hopefully few prototypes,
19270 which can conflict with char pthread_cancel(); below. */
19271#include <assert.h>
19272/* Override any gcc2 internal prototype to avoid an error. */
19273/* We use char because int might match the return type of a gcc2
19274 builtin and then its argument prototype would still apply. */
19275char pthread_cancel();
19276
19277int main() {
19278
19279/* The GNU C library defines this for functions which it implements
19280 to always fail with ENOSYS. Some functions are actually named
19281 something starting with __ and the normal name is an alias. */
19282#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
19283choke me
19284#else
19285pthread_cancel();
19286#endif
19287
19288; return 0; }
19289EOF
19290if { (eval echo configure:19291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19291 rm -rf conftest*
19292 eval "ac_cv_func_pthread_cancel=yes"
19293else
19294 echo "configure: failed program was:" >&5
19295 cat conftest.$ac_ext >&5
19296 rm -rf conftest*
19297 eval "ac_cv_func_pthread_cancel=no"
19298fi
19299rm -f conftest*
19300fi
19301
19302if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
19303 echo "$ac_t""yes" 1>&6
19304 cat >> confdefs.h <<\EOF
19305#define HAVE_PTHREAD_CANCEL 1
19306EOF
19307
19308else
19309 echo "$ac_t""no" 1>&6
19310echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
19311fi
19312
19313
19314 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
19315echo "configure:19316: checking for pthread_cleanup_push/pop" >&5
19316if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
19317 echo $ac_n "(cached) $ac_c" 1>&6
19318else
19319
19320 cat > conftest.$ac_ext <<EOF
19321#line 19322 "configure"
19322#include "confdefs.h"
19323#include <pthread.h>
19324int main() {
19325
19326 pthread_cleanup_push(NULL, NULL);
19327 pthread_cleanup_pop(0);
19328
19329; return 0; }
19330EOF
19331if { (eval echo configure:19332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19332 rm -rf conftest*
19333
19334 wx_cv_func_pthread_cleanup_push=yes
19335
19336else
19337 echo "configure: failed program was:" >&5
19338 cat conftest.$ac_ext >&5
19339 rm -rf conftest*
19340
19341 wx_cv_func_pthread_cleanup_push=no
19342
19343fi
19344rm -f conftest*
19345
19346fi
19347
19348echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
19349
19350 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
19351 cat >> confdefs.h <<\EOF
19352#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
19353EOF
19354
19355 fi
19356
19357
19358 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
19359echo "configure:19360: checking for pthread_mutexattr_t" >&5
19360if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
19361 echo $ac_n "(cached) $ac_c" 1>&6
19362else
19363
19364 cat > conftest.$ac_ext <<EOF
19365#line 19366 "configure"
19366#include "confdefs.h"
19367#include <pthread.h>
19368int main() {
19369
19370 pthread_mutexattr_t attr;
19371 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
19372
19373; return 0; }
19374EOF
19375if { (eval echo configure:19376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19376 rm -rf conftest*
19377
19378 wx_cv_type_pthread_mutexattr_t=yes
19379
19380else
19381 echo "configure: failed program was:" >&5
19382 cat conftest.$ac_ext >&5
19383 rm -rf conftest*
19384
19385 wx_cv_type_pthread_mutexattr_t=no
19386
19387
19388fi
19389rm -f conftest*
19390
19391fi
19392
19393echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
19394
19395 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
19396 cat >> confdefs.h <<\EOF
19397#define HAVE_PTHREAD_MUTEXATTR_T 1
19398EOF
19399
19400 else
19401 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
19402echo "configure:19403: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
19403if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19404 echo $ac_n "(cached) $ac_c" 1>&6
19405else
19406
19407 cat > conftest.$ac_ext <<EOF
19408#line 19409 "configure"
19409#include "confdefs.h"
19410#include <pthread.h>
19411int main() {
19412
19413 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
19414
19415; return 0; }
19416EOF
19417if { (eval echo configure:19418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19418 rm -rf conftest*
19419
19420 wx_cv_type_pthread_rec_mutex_init=yes
19421
19422else
19423 echo "configure: failed program was:" >&5
19424 cat conftest.$ac_ext >&5
19425 rm -rf conftest*
19426
19427 wx_cv_type_pthread_rec_mutex_init=no
19428
19429
19430fi
19431rm -f conftest*
19432
19433fi
19434
19435echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
19436 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
19437 cat >> confdefs.h <<\EOF
19438#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
19439EOF
19440
19441 else
19442 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
19443 fi
19444 fi
19445 fi
19446
19447else
19448 if test "$wxUSE_THREADS" = "yes" ; then
19449 case "${host}" in
19450 *-*-mingw32* )
19451 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
19452echo "configure:19453: checking if compiler supports -mthreads" >&5
19453if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19454 echo $ac_n "(cached) $ac_c" 1>&6
19455else
19456
19457 CFLAGS_OLD="$CFLAGS"
19458 CFLAGS="$CFLAGS -mthreads"
19459 cat > conftest.$ac_ext <<EOF
19460#line 19461 "configure"
19461#include "confdefs.h"
19462
19463int main() {
19464
19465; return 0; }
19466EOF
19467if { (eval echo configure:19468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19468 rm -rf conftest*
19469 wx_cv_cflags_mthread=yes
19470else
19471 echo "configure: failed program was:" >&5
19472 cat conftest.$ac_ext >&5
19473 rm -rf conftest*
19474 wx_cv_cflags_mthread=no
19475
19476fi
19477rm -f conftest*
19478
19479
19480fi
19481
19482echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19483
19484 if test "$wx_cv_cflags_mthread" = "yes"; then
19485 CXXFLAGS="$CXXFLAGS -mthreads"
19486 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19487 LDFLAGS="$LDFLAGS -mthreads"
19488 else
19489 CFLAGS="$CFLAGS_OLD"
19490 fi
19491 ;;
19492 esac
19493 fi
19494fi
19495
19496if test "$wxUSE_THREADS" = "yes"; then
19497 cat >> confdefs.h <<\EOF
19498#define wxUSE_THREADS 1
19499EOF
19500
19501
19502 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
19503else
19504 if test "$ac_cv_func_strtok_r" = "yes"; then
19505 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
19506echo "configure:19507: checking if -D_REENTRANT is needed" >&5
19507 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19508 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
19509 echo "$ac_t""yes" 1>&6
19510 else
19511 echo "$ac_t""no" 1>&6
19512 fi
19513 fi
19514fi
19515
19516if test "$WXGTK20" = 1 ; then
19517 cat >> confdefs.h <<EOF
19518#define __WXGTK20__ $WXGTK20
19519EOF
19520
19521 WXGTK12=1
19522fi
19523
19524if test "$WXGTK12" = 1 ; then
19525 cat >> confdefs.h <<EOF
19526#define __WXGTK12__ $WXGTK12
19527EOF
19528
19529fi
19530
19531if test "$WXGTK127" = 1 ; then
19532 cat >> confdefs.h <<EOF
19533#define __WXGTK127__ $WXGTK127
19534EOF
19535
19536fi
19537
19538WXDEBUG=
19539
19540if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19541 WXDEBUG="-g"
19542 wxUSE_OPTIMISE=no
19543fi
19544
19545if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19546 wxUSE_DEBUG_INFO=yes
19547 WXDEBUG="-ggdb"
19548fi
19549
19550if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
19551 cat >> confdefs.h <<\EOF
19552#define WXDEBUG 1
19553EOF
19554
19555 WXDEBUG_DEFINE="-D__WXDEBUG__"
19556else
19557 if test "$wxUSE_GTK" = 1 ; then
19558 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19559 fi
19560fi
19561
19562if test "$wxUSE_MEM_TRACING" = "yes" ; then
19563 cat >> confdefs.h <<\EOF
19564#define wxUSE_MEMORY_TRACING 1
19565EOF
19566
19567 cat >> confdefs.h <<\EOF
19568#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
19569EOF
19570
19571 cat >> confdefs.h <<\EOF
19572#define wxUSE_DEBUG_NEW_ALWAYS 1
19573EOF
19574
19575 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19576fi
19577
19578if test "$wxUSE_DMALLOC" = "yes" ; then
19579 DMALLOC_LIBS="-ldmalloc"
19580fi
19581
19582PROFILE=
19583if test "$wxUSE_PROFILE" = "yes" ; then
19584 PROFILE=" -pg"
19585fi
19586
19587CODE_GEN_FLAGS=
19588CODE_GEN_FLAGS_CXX=
19589if test "$GCC" = "yes" ; then
19590 if test "$wxUSE_NO_RTTI" = "yes" ; then
19591 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
19592 fi
19593 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19594 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19595 fi
19596 if test "$wxUSE_PERMISSIVE" = "yes" ; then
19597 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19598 fi
19599 if test "$USE_WIN32" = 1 ; then
19600 # I'm not even really sure what this was ever added to solve,
19601 # but someone added it for mingw native builds, so I guess
19602 # they had a reason, right??
19603 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19604 fi
19605
19606 case "${host}" in
19607 powerpc*-*-aix* )
19608 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19609 ;;
19610 *-hppa* )
19611 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19612 ;;
19613 esac
19614fi
19615
19616OPTIMISE=
19617if test "$wxUSE_OPTIMISE" = "no" ; then
19618 if test "$GCC" = yes ; then
19619 OPTIMISE="-O0"
19620 fi
19621else
19622 if test "$GCC" = yes ; then
19623 OPTIMISE="-O2"
19624
19625 case "${host}" in
19626 i586-*-*|i686-*-* )
19627 OPTIMISE="${OPTIMISE} "
19628 ;;
19629 esac
19630 else
19631 OPTIMISE="-O"
19632 fi
19633fi
19634
19635
19636if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
19637 cat >> confdefs.h <<\EOF
19638#define WXWIN_COMPATIBILITY_2 1
19639EOF
19640
19641
19642 WXWIN_COMPATIBILITY_2_2="yes"
19643fi
19644
19645if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
19646 cat >> confdefs.h <<\EOF
19647#define WXWIN_COMPATIBILITY_2_2 1
19648EOF
19649
19650
19651 WXWIN_COMPATIBILITY_2_4="yes"
19652fi
19653
19654if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
19655 cat >> confdefs.h <<\EOF
19656#define WXWIN_COMPATIBILITY_2_4 1
19657EOF
19658
19659fi
19660
19661
19662if test "$wxUSE_GUI" = "yes"; then
19663 cat >> confdefs.h <<\EOF
19664#define wxUSE_GUI 1
19665EOF
19666
19667
19668 else
19669 cat >> confdefs.h <<\EOF
19670#define wxUSE_NOGUI 1
19671EOF
19672
19673fi
19674
19675
19676if test "$wxUSE_UNIX" = "yes"; then
19677 cat >> confdefs.h <<\EOF
19678#define wxUSE_UNIX 1
19679EOF
19680
19681fi
19682
19683
19684if test "$wxUSE_APPLE_IEEE" = "yes"; then
19685 cat >> confdefs.h <<\EOF
19686#define wxUSE_APPLE_IEEE 1
19687EOF
19688
19689fi
19690
19691if test "$wxUSE_TIMER" = "yes"; then
19692 cat >> confdefs.h <<\EOF
19693#define wxUSE_TIMER 1
19694EOF
19695
19696fi
19697
19698if test "$wxUSE_WAVE" = "yes"; then
19699 cat >> confdefs.h <<\EOF
19700#define wxUSE_WAVE 1
19701EOF
19702
19703fi
19704
19705if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
19706 cat >> confdefs.h <<\EOF
19707#define wxUSE_CMDLINE_PARSER 1
19708EOF
19709
19710fi
19711
19712if test "$wxUSE_STOPWATCH" = "yes"; then
19713 cat >> confdefs.h <<\EOF
19714#define wxUSE_STOPWATCH 1
19715EOF
19716
19717fi
19718
19719if test "$wxUSE_DATETIME" = "yes"; then
19720 cat >> confdefs.h <<\EOF
19721#define wxUSE_DATETIME 1
19722EOF
19723
19724fi
19725
19726if test "$wxUSE_FILE" = "yes"; then
19727 cat >> confdefs.h <<\EOF
19728#define wxUSE_FILE 1
19729EOF
19730
19731fi
19732
19733if test "$wxUSE_FFILE" = "yes"; then
19734 cat >> confdefs.h <<\EOF
19735#define wxUSE_FFILE 1
19736EOF
19737
19738fi
19739
19740if test "$wxUSE_FILESYSTEM" = "yes"; then
19741 cat >> confdefs.h <<\EOF
19742#define wxUSE_FILESYSTEM 1
19743EOF
19744
19745fi
19746
19747if test "$wxUSE_FS_INET" = "yes"; then
19748 cat >> confdefs.h <<\EOF
19749#define wxUSE_FS_INET 1
19750EOF
19751
19752fi
19753
19754if test "$wxUSE_FS_ZIP" = "yes"; then
19755 cat >> confdefs.h <<\EOF
19756#define wxUSE_FS_ZIP 1
19757EOF
19758
19759fi
19760
19761if test "$wxUSE_ZIPSTREAM" = "yes"; then
19762 cat >> confdefs.h <<\EOF
19763#define wxUSE_ZIPSTREAM 1
19764EOF
19765
19766fi
19767
19768if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
19769 cat >> confdefs.h <<\EOF
19770#define wxUSE_ON_FATAL_EXCEPTION 1
19771EOF
19772
19773fi
19774
19775if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
19776 cat >> confdefs.h <<\EOF
19777#define wxUSE_SNGLINST_CHECKER 1
19778EOF
19779
19780fi
19781
19782if test "$wxUSE_BUSYINFO" = "yes"; then
19783 cat >> confdefs.h <<\EOF
19784#define wxUSE_BUSYINFO 1
19785EOF
19786
19787fi
19788
19789if test "$wxUSE_STD_IOSTREAM" = "yes"; then
19790 cat >> confdefs.h <<\EOF
19791#define wxUSE_STD_IOSTREAM 1
19792EOF
19793
19794fi
19795
19796if test "$wxUSE_TEXTBUFFER" = "yes"; then
19797 cat >> confdefs.h <<\EOF
19798#define wxUSE_TEXTBUFFER 1
19799EOF
19800
19801fi
19802
19803if test "$wxUSE_TEXTFILE" = "yes"; then
19804 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
19805 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
19806 else
19807 cat >> confdefs.h <<\EOF
19808#define wxUSE_TEXTFILE 1
19809EOF
19810
19811 fi
19812fi
19813
19814if test "$wxUSE_CONFIG" = "yes" ; then
19815 if test "$wxUSE_TEXTFILE" != "yes"; then
19816 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
19817 else
19818 cat >> confdefs.h <<\EOF
19819#define wxUSE_CONFIG 1
19820EOF
19821
19822 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
19823 fi
19824fi
19825
19826if test "$wxUSE_INTL" = "yes" ; then
19827 if test "$wxUSE_FILE" != "yes"; then
19828 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
19829 else
19830 cat >> confdefs.h <<\EOF
19831#define wxUSE_INTL 1
19832EOF
19833
19834 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
19835 GUIDIST="$GUIDIST INTL_DIST"
19836 fi
19837fi
19838
19839if test "$wxUSE_LOG" = "yes"; then
19840 cat >> confdefs.h <<\EOF
19841#define wxUSE_LOG 1
19842EOF
19843
19844
19845 if test "$wxUSE_LOGGUI" = "yes"; then
19846 cat >> confdefs.h <<\EOF
19847#define wxUSE_LOGGUI 1
19848EOF
19849
19850 fi
19851
19852 if test "$wxUSE_LOGWINDOW" = "yes"; then
19853 cat >> confdefs.h <<\EOF
19854#define wxUSE_LOGWINDOW 1
19855EOF
19856
19857 fi
19858
19859 if test "$wxUSE_LOGDIALOG" = "yes"; then
19860 cat >> confdefs.h <<\EOF
19861#define wxUSE_LOG_DIALOG 1
19862EOF
19863
19864 fi
19865fi
19866
19867if test "$wxUSE_LONGLONG" = "yes"; then
19868 cat >> confdefs.h <<\EOF
19869#define wxUSE_LONGLONG 1
19870EOF
19871
19872fi
19873
19874if test "$wxUSE_GEOMETRY" = "yes"; then
19875 cat >> confdefs.h <<\EOF
19876#define wxUSE_GEOMETRY 1
19877EOF
19878
19879fi
19880
19881if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
19882 cat >> confdefs.h <<\EOF
19883#define wxUSE_DIALUP_MANAGER 1
19884EOF
19885
19886 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
19887fi
19888
19889if test "$wxUSE_STREAMS" = "yes" ; then
19890 cat >> confdefs.h <<\EOF
19891#define wxUSE_STREAMS 1
19892EOF
19893
19894fi
19895
19896
19897if test "$wxUSE_DATETIME" = "yes"; then
19898 for ac_func in strptime
19899do
19900echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19901echo "configure:19902: checking for $ac_func" >&5
19902if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19903 echo $ac_n "(cached) $ac_c" 1>&6
19904else
19905 cat > conftest.$ac_ext <<EOF
19906#line 19907 "configure"
19907#include "confdefs.h"
19908/* System header to define __stub macros and hopefully few prototypes,
19909 which can conflict with char $ac_func(); below. */
19910#include <assert.h>
19911/* Override any gcc2 internal prototype to avoid an error. */
19912/* We use char because int might match the return type of a gcc2
19913 builtin and then its argument prototype would still apply. */
19914char $ac_func();
19915
19916int main() {
19917
19918/* The GNU C library defines this for functions which it implements
19919 to always fail with ENOSYS. Some functions are actually named
19920 something starting with __ and the normal name is an alias. */
19921#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19922choke me
19923#else
19924$ac_func();
19925#endif
19926
19927; return 0; }
19928EOF
19929if { (eval echo configure:19930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19930 rm -rf conftest*
19931 eval "ac_cv_func_$ac_func=yes"
19932else
19933 echo "configure: failed program was:" >&5
19934 cat conftest.$ac_ext >&5
19935 rm -rf conftest*
19936 eval "ac_cv_func_$ac_func=no"
19937fi
19938rm -f conftest*
19939fi
19940
19941if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19942 echo "$ac_t""yes" 1>&6
19943 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19944 cat >> confdefs.h <<EOF
19945#define $ac_tr_func 1
19946EOF
19947
19948else
19949 echo "$ac_t""no" 1>&6
19950fi
19951done
19952
19953
19954 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
19955echo "configure:19956: checking for timezone variable in <time.h>" >&5
19956if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
19957 echo $ac_n "(cached) $ac_c" 1>&6
19958else
19959
19960 cat > conftest.$ac_ext <<EOF
19961#line 19962 "configure"
19962#include "confdefs.h"
19963
19964 #include <time.h>
19965
19966int main() {
19967
19968 int tz;
19969 tz = timezone;
19970
19971; return 0; }
19972EOF
19973if { (eval echo configure:19974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19974 rm -rf conftest*
19975
19976 wx_cv_var_timezone=timezone
19977
19978else
19979 echo "configure: failed program was:" >&5
19980 cat conftest.$ac_ext >&5
19981 rm -rf conftest*
19982
19983 cat > conftest.$ac_ext <<EOF
19984#line 19985 "configure"
19985#include "confdefs.h"
19986
19987 #include <time.h>
19988
19989int main() {
19990
19991 int tz;
19992 tz = _timezone;
19993
19994; return 0; }
19995EOF
19996if { (eval echo configure:19997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19997 rm -rf conftest*
19998
19999 wx_cv_var_timezone=_timezone
20000
20001else
20002 echo "configure: failed program was:" >&5
20003 cat conftest.$ac_ext >&5
20004 rm -rf conftest*
20005
20006 cat > conftest.$ac_ext <<EOF
20007#line 20008 "configure"
20008#include "confdefs.h"
20009
20010 #include <time.h>
20011
20012int main() {
20013
20014 int tz;
20015 tz = __timezone;
20016
20017; return 0; }
20018EOF
20019if { (eval echo configure:20020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20020 rm -rf conftest*
20021
20022 wx_cv_var_timezone=__timezone
20023
20024else
20025 echo "configure: failed program was:" >&5
20026 cat conftest.$ac_ext >&5
20027 rm -rf conftest*
20028
20029 if test "$USE_DOS" = 0 ; then
20030 echo "configure: warning: no timezone variable" 1>&2
20031 fi
20032
20033
20034fi
20035rm -f conftest*
20036
20037
20038fi
20039rm -f conftest*
20040
20041
20042fi
20043rm -f conftest*
20044
20045
20046fi
20047
20048echo "$ac_t""$wx_cv_var_timezone" 1>&6
20049
20050 if test "x$wx_cv_var_timezone" != x ; then
20051 cat >> confdefs.h <<EOF
20052#define WX_TIMEZONE $wx_cv_var_timezone
20053EOF
20054
20055 fi
20056
20057 for ac_func in localtime
20058do
20059echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20060echo "configure:20061: checking for $ac_func" >&5
20061if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20062 echo $ac_n "(cached) $ac_c" 1>&6
20063else
20064 cat > conftest.$ac_ext <<EOF
20065#line 20066 "configure"
20066#include "confdefs.h"
20067/* System header to define __stub macros and hopefully few prototypes,
20068 which can conflict with char $ac_func(); below. */
20069#include <assert.h>
20070/* Override any gcc2 internal prototype to avoid an error. */
20071/* We use char because int might match the return type of a gcc2
20072 builtin and then its argument prototype would still apply. */
20073char $ac_func();
20074
20075int main() {
20076
20077/* The GNU C library defines this for functions which it implements
20078 to always fail with ENOSYS. Some functions are actually named
20079 something starting with __ and the normal name is an alias. */
20080#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20081choke me
20082#else
20083$ac_func();
20084#endif
20085
20086; return 0; }
20087EOF
20088if { (eval echo configure:20089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20089 rm -rf conftest*
20090 eval "ac_cv_func_$ac_func=yes"
20091else
20092 echo "configure: failed program was:" >&5
20093 cat conftest.$ac_ext >&5
20094 rm -rf conftest*
20095 eval "ac_cv_func_$ac_func=no"
20096fi
20097rm -f conftest*
20098fi
20099
20100if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20101 echo "$ac_t""yes" 1>&6
20102 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20103 cat >> confdefs.h <<EOF
20104#define $ac_tr_func 1
20105EOF
20106
20107else
20108 echo "$ac_t""no" 1>&6
20109fi
20110done
20111
20112
20113 if test "$ac_cv_func_localtime" = "yes"; then
20114 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
20115echo "configure:20116: checking for tm_gmtoff in struct tm" >&5
20116if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
20117 echo $ac_n "(cached) $ac_c" 1>&6
20118else
20119
20120 cat > conftest.$ac_ext <<EOF
20121#line 20122 "configure"
20122#include "confdefs.h"
20123
20124 #include <time.h>
20125
20126int main() {
20127
20128 struct tm tm;
20129 tm.tm_gmtoff++;
20130
20131; return 0; }
20132EOF
20133if { (eval echo configure:20134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20134 rm -rf conftest*
20135
20136 wx_cv_struct_tm_has_gmtoff=yes
20137
20138else
20139 echo "configure: failed program was:" >&5
20140 cat conftest.$ac_ext >&5
20141 rm -rf conftest*
20142 wx_cv_struct_tm_has_gmtoff=no
20143
20144fi
20145rm -f conftest*
20146
20147fi
20148
20149echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
20150 fi
20151
20152 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
20153 cat >> confdefs.h <<\EOF
20154#define WX_GMTOFF_IN_TM 1
20155EOF
20156
20157 fi
20158
20159 for ac_func in gettimeofday ftime
20160do
20161echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20162echo "configure:20163: checking for $ac_func" >&5
20163if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20164 echo $ac_n "(cached) $ac_c" 1>&6
20165else
20166 cat > conftest.$ac_ext <<EOF
20167#line 20168 "configure"
20168#include "confdefs.h"
20169/* System header to define __stub macros and hopefully few prototypes,
20170 which can conflict with char $ac_func(); below. */
20171#include <assert.h>
20172/* Override any gcc2 internal prototype to avoid an error. */
20173/* We use char because int might match the return type of a gcc2
20174 builtin and then its argument prototype would still apply. */
20175char $ac_func();
20176
20177int main() {
20178
20179/* The GNU C library defines this for functions which it implements
20180 to always fail with ENOSYS. Some functions are actually named
20181 something starting with __ and the normal name is an alias. */
20182#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20183choke me
20184#else
20185$ac_func();
20186#endif
20187
20188; return 0; }
20189EOF
20190if { (eval echo configure:20191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20191 rm -rf conftest*
20192 eval "ac_cv_func_$ac_func=yes"
20193else
20194 echo "configure: failed program was:" >&5
20195 cat conftest.$ac_ext >&5
20196 rm -rf conftest*
20197 eval "ac_cv_func_$ac_func=no"
20198fi
20199rm -f conftest*
20200fi
20201
20202if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20203 echo "$ac_t""yes" 1>&6
20204 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20205 cat >> confdefs.h <<EOF
20206#define $ac_tr_func 1
20207EOF
20208 break
20209else
20210 echo "$ac_t""no" 1>&6
20211fi
20212done
20213
20214
20215 if test "$ac_cv_func_gettimeofday" = "yes"; then
20216 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
20217echo "configure:20218: checking whether gettimeofday takes two arguments" >&5
20218if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
20219 echo $ac_n "(cached) $ac_c" 1>&6
20220else
20221
20222
20223 ac_ext=C
20224# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20225ac_cpp='$CXXCPP $CPPFLAGS'
20226ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20227ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20228cross_compiling=$ac_cv_prog_cxx_cross
20229
20230
20231 cat > conftest.$ac_ext <<EOF
20232#line 20233 "configure"
20233#include "confdefs.h"
20234
20235 #include <sys/time.h>
20236 #include <unistd.h>
20237
20238int main() {
20239
20240 struct timeval tv;
20241 gettimeofday(&tv, NULL);
20242
20243; return 0; }
20244EOF
20245if { (eval echo configure:20246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20246 rm -rf conftest*
20247 wx_cv_func_gettimeofday_has_2_args=yes
20248else
20249 echo "configure: failed program was:" >&5
20250 cat conftest.$ac_ext >&5
20251 rm -rf conftest*
20252 cat > conftest.$ac_ext <<EOF
20253#line 20254 "configure"
20254#include "confdefs.h"
20255
20256 #include <sys/time.h>
20257 #include <unistd.h>
20258
20259int main() {
20260
20261 struct timeval tv;
20262 gettimeofday(&tv);
20263
20264; return 0; }
20265EOF
20266if { (eval echo configure:20267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20267 rm -rf conftest*
20268 wx_cv_func_gettimeofday_has_2_args=no
20269else
20270 echo "configure: failed program was:" >&5
20271 cat conftest.$ac_ext >&5
20272 rm -rf conftest*
20273
20274 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
20275 wx_cv_func_gettimeofday_has_2_args=unknown
20276
20277
20278fi
20279rm -f conftest*
20280
20281fi
20282rm -f conftest*
20283 ac_ext=c
20284# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20285ac_cpp='$CPP $CPPFLAGS'
20286ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20287ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20288cross_compiling=$ac_cv_prog_cc_cross
20289
20290
20291fi
20292
20293echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
20294
20295 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
20296 cat >> confdefs.h <<\EOF
20297#define WX_GETTIMEOFDAY_NO_TZ 1
20298EOF
20299
20300 fi
20301 fi
20302
20303 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
20304fi
20305
20306
20307if test "$wxUSE_SOCKETS" = "yes"; then
20308 if test "$wxUSE_MGL" = "1"; then
20309 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
20310 wxUSE_SOCKETS="no"
20311 fi
20312fi
20313
20314if test "$wxUSE_SOCKETS" = "yes"; then
20315 if test "$TOOLKIT" != "MSW"; then
20316 echo $ac_n "checking for socket""... $ac_c" 1>&6
20317echo "configure:20318: checking for socket" >&5
20318if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
20319 echo $ac_n "(cached) $ac_c" 1>&6
20320else
20321 cat > conftest.$ac_ext <<EOF
20322#line 20323 "configure"
20323#include "confdefs.h"
20324/* System header to define __stub macros and hopefully few prototypes,
20325 which can conflict with char socket(); below. */
20326#include <assert.h>
20327/* Override any gcc2 internal prototype to avoid an error. */
20328/* We use char because int might match the return type of a gcc2
20329 builtin and then its argument prototype would still apply. */
20330char socket();
20331
20332int main() {
20333
20334/* The GNU C library defines this for functions which it implements
20335 to always fail with ENOSYS. Some functions are actually named
20336 something starting with __ and the normal name is an alias. */
20337#if defined (__stub_socket) || defined (__stub___socket)
20338choke me
20339#else
20340socket();
20341#endif
20342
20343; return 0; }
20344EOF
20345if { (eval echo configure:20346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20346 rm -rf conftest*
20347 eval "ac_cv_func_socket=yes"
20348else
20349 echo "configure: failed program was:" >&5
20350 cat conftest.$ac_ext >&5
20351 rm -rf conftest*
20352 eval "ac_cv_func_socket=no"
20353fi
20354rm -f conftest*
20355fi
20356
20357if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
20358 echo "$ac_t""yes" 1>&6
20359 :
20360else
20361 echo "$ac_t""no" 1>&6
20362echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
20363echo "configure:20364: checking for socket in -lsocket" >&5
20364ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
20365if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20366 echo $ac_n "(cached) $ac_c" 1>&6
20367else
20368 ac_save_LIBS="$LIBS"
20369LIBS="-lsocket $LIBS"
20370cat > conftest.$ac_ext <<EOF
20371#line 20372 "configure"
20372#include "confdefs.h"
20373/* Override any gcc2 internal prototype to avoid an error. */
20374/* We use char because int might match the return type of a gcc2
20375 builtin and then its argument prototype would still apply. */
20376char socket();
20377
20378int main() {
20379socket()
20380; return 0; }
20381EOF
20382if { (eval echo configure:20383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20383 rm -rf conftest*
20384 eval "ac_cv_lib_$ac_lib_var=yes"
20385else
20386 echo "configure: failed program was:" >&5
20387 cat conftest.$ac_ext >&5
20388 rm -rf conftest*
20389 eval "ac_cv_lib_$ac_lib_var=no"
20390fi
20391rm -f conftest*
20392LIBS="$ac_save_LIBS"
20393
20394fi
20395if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20396 echo "$ac_t""yes" 1>&6
20397 if test "$INET_LINK" != " -lsocket"; then
20398 INET_LINK="$INET_LINK -lsocket"
20399 fi
20400else
20401 echo "$ac_t""no" 1>&6
20402
20403 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
20404 wxUSE_SOCKETS=no
20405
20406
20407fi
20408
20409
20410fi
20411
20412 fi
20413fi
20414
20415if test "$wxUSE_SOCKETS" = "yes" ; then
20416 if test "$TOOLKIT" != "MSW"; then
20417 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
20418echo "configure:20419: checking what is the type of the third argument of getsockname" >&5
20419if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20420 echo $ac_n "(cached) $ac_c" 1>&6
20421else
20422
20423
20424 ac_ext=C
20425# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20426ac_cpp='$CXXCPP $CPPFLAGS'
20427ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20428ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20429cross_compiling=$ac_cv_prog_cxx_cross
20430
20431
20432 cat > conftest.$ac_ext <<EOF
20433#line 20434 "configure"
20434#include "confdefs.h"
20435
20436 #include <sys/types.h>
20437 #include <sys/socket.h>
20438
20439int main() {
20440
20441 socklen_t len;
20442 getsockname(0, 0, &len);
20443
20444; return 0; }
20445EOF
20446if { (eval echo configure:20447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20447 rm -rf conftest*
20448 wx_cv_type_getsockname3=socklen_t
20449else
20450 echo "configure: failed program was:" >&5
20451 cat conftest.$ac_ext >&5
20452 rm -rf conftest*
20453 cat > conftest.$ac_ext <<EOF
20454#line 20455 "configure"
20455#include "confdefs.h"
20456
20457 #include <sys/types.h>
20458 #include <sys/socket.h>
20459
20460int main() {
20461
20462 size_t len;
20463 getsockname(0, 0, &len);
20464
20465; return 0; }
20466EOF
20467if { (eval echo configure:20468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20468 rm -rf conftest*
20469 wx_cv_type_getsockname3=size_t
20470else
20471 echo "configure: failed program was:" >&5
20472 cat conftest.$ac_ext >&5
20473 rm -rf conftest*
20474 cat > conftest.$ac_ext <<EOF
20475#line 20476 "configure"
20476#include "confdefs.h"
20477
20478 #include <sys/types.h>
20479 #include <sys/socket.h>
20480
20481int main() {
20482
20483 int len;
20484 getsockname(0, 0, &len);
20485
20486; return 0; }
20487EOF
20488if { (eval echo configure:20489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20489 rm -rf conftest*
20490 wx_cv_type_getsockname3=int
20491else
20492 echo "configure: failed program was:" >&5
20493 cat conftest.$ac_ext >&5
20494 rm -rf conftest*
20495 wx_cv_type_getsockname3=unknown
20496
20497fi
20498rm -f conftest*
20499
20500fi
20501rm -f conftest*
20502
20503fi
20504rm -f conftest*
20505
20506 ac_ext=c
20507# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20508ac_cpp='$CPP $CPPFLAGS'
20509ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20510ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20511cross_compiling=$ac_cv_prog_cc_cross
20512
20513
20514fi
20515
20516echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
20517
20518 if test "$wx_cv_type_getsockname3" = "unknown"; then
20519 wxUSE_SOCKETS=no
20520 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
20521 else
20522 cat >> confdefs.h <<EOF
20523#define SOCKLEN_T $wx_cv_type_getsockname3
20524EOF
20525
20526 fi
20527 fi
20528fi
20529
20530if test "$wxUSE_SOCKETS" = "yes" ; then
20531 cat >> confdefs.h <<\EOF
20532#define wxUSE_SOCKETS 1
20533EOF
20534
20535 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
20536fi
20537
20538
20539if test "$wxUSE_GUI" = "yes"; then
20540
20541 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
20542 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
20543 wxUSE_JOYSTICK=no
20544 fi
20545 if test "$TOOLKIT" = "MOTIF"; then
20546 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
20547 wxUSE_JOYSTICK=no
20548 fi
20549 if test "$TOOLKIT" = "X11"; then
20550 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
20551 wxUSE_JOYSTICK=no
20552 fi
20553
20554 if test "$TOOLKIT" != "MSW"; then
20555 if test "$wxUSE_JOYSTICK" = "yes"; then
20556 for ac_hdr in linux/joystick.h
20557do
20558ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20559echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20560echo "configure:20561: checking for $ac_hdr" >&5
20561if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20562 echo $ac_n "(cached) $ac_c" 1>&6
20563else
20564 cat > conftest.$ac_ext <<EOF
20565#line 20566 "configure"
20566#include "confdefs.h"
20567#include <$ac_hdr>
20568EOF
20569ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20570{ (eval echo configure:20571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20571ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20572if test -z "$ac_err"; then
20573 rm -rf conftest*
20574 eval "ac_cv_header_$ac_safe=yes"
20575else
20576 echo "$ac_err" >&5
20577 echo "configure: failed program was:" >&5
20578 cat conftest.$ac_ext >&5
20579 rm -rf conftest*
20580 eval "ac_cv_header_$ac_safe=no"
20581fi
20582rm -f conftest*
20583fi
20584if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20585 echo "$ac_t""yes" 1>&6
20586 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20587 cat >> confdefs.h <<EOF
20588#define $ac_tr_hdr 1
20589EOF
20590
20591else
20592 echo "$ac_t""no" 1>&6
20593fi
20594done
20595
20596 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20597 wxUSE_JOYSTICK=no
20598 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
20599 fi
20600 fi
20601 fi
20602
20603 if test "$wxUSE_JOYSTICK" = "yes"; then
20604 cat >> confdefs.h <<\EOF
20605#define wxUSE_JOYSTICK 1
20606EOF
20607
20608 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20609 fi
20610fi
20611
20612
20613if test "$TOOLKIT" != "MSW"; then
20614
20615 HAVE_DL_FUNCS=0
20616 HAVE_SHL_FUNCS=0
20617 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20618 if test "$USE_DARWIN" = 1; then
20619 HAVE_DL_FUNCS=1
20620 else
20621 for ac_func in dlopen
20622do
20623echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20624echo "configure:20625: checking for $ac_func" >&5
20625if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20626 echo $ac_n "(cached) $ac_c" 1>&6
20627else
20628 cat > conftest.$ac_ext <<EOF
20629#line 20630 "configure"
20630#include "confdefs.h"
20631/* System header to define __stub macros and hopefully few prototypes,
20632 which can conflict with char $ac_func(); below. */
20633#include <assert.h>
20634/* Override any gcc2 internal prototype to avoid an error. */
20635/* We use char because int might match the return type of a gcc2
20636 builtin and then its argument prototype would still apply. */
20637char $ac_func();
20638
20639int main() {
20640
20641/* The GNU C library defines this for functions which it implements
20642 to always fail with ENOSYS. Some functions are actually named
20643 something starting with __ and the normal name is an alias. */
20644#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20645choke me
20646#else
20647$ac_func();
20648#endif
20649
20650; return 0; }
20651EOF
20652if { (eval echo configure:20653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20653 rm -rf conftest*
20654 eval "ac_cv_func_$ac_func=yes"
20655else
20656 echo "configure: failed program was:" >&5
20657 cat conftest.$ac_ext >&5
20658 rm -rf conftest*
20659 eval "ac_cv_func_$ac_func=no"
20660fi
20661rm -f conftest*
20662fi
20663
20664if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20665 echo "$ac_t""yes" 1>&6
20666 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20667 cat >> confdefs.h <<EOF
20668#define $ac_tr_func 1
20669EOF
20670
20671 cat >> confdefs.h <<\EOF
20672#define HAVE_DLOPEN 1
20673EOF
20674
20675 HAVE_DL_FUNCS=1
20676
20677else
20678 echo "$ac_t""no" 1>&6
20679echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
20680echo "configure:20681: checking for dlopen in -ldl" >&5
20681ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20682if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20683 echo $ac_n "(cached) $ac_c" 1>&6
20684else
20685 ac_save_LIBS="$LIBS"
20686LIBS="-ldl $LIBS"
20687cat > conftest.$ac_ext <<EOF
20688#line 20689 "configure"
20689#include "confdefs.h"
20690/* Override any gcc2 internal prototype to avoid an error. */
20691/* We use char because int might match the return type of a gcc2
20692 builtin and then its argument prototype would still apply. */
20693char dlopen();
20694
20695int main() {
20696dlopen()
20697; return 0; }
20698EOF
20699if { (eval echo configure:20700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20700 rm -rf conftest*
20701 eval "ac_cv_lib_$ac_lib_var=yes"
20702else
20703 echo "configure: failed program was:" >&5
20704 cat conftest.$ac_ext >&5
20705 rm -rf conftest*
20706 eval "ac_cv_lib_$ac_lib_var=no"
20707fi
20708rm -f conftest*
20709LIBS="$ac_save_LIBS"
20710
20711fi
20712if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20713 echo "$ac_t""yes" 1>&6
20714
20715 cat >> confdefs.h <<\EOF
20716#define HAVE_DLOPEN 1
20717EOF
20718
20719 HAVE_DL_FUNCS=1
20720 DL_LINK=" -ldl$DL_LINK"
20721
20722else
20723 echo "$ac_t""no" 1>&6
20724
20725 for ac_func in shl_load
20726do
20727echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20728echo "configure:20729: checking for $ac_func" >&5
20729if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20730 echo $ac_n "(cached) $ac_c" 1>&6
20731else
20732 cat > conftest.$ac_ext <<EOF
20733#line 20734 "configure"
20734#include "confdefs.h"
20735/* System header to define __stub macros and hopefully few prototypes,
20736 which can conflict with char $ac_func(); below. */
20737#include <assert.h>
20738/* Override any gcc2 internal prototype to avoid an error. */
20739/* We use char because int might match the return type of a gcc2
20740 builtin and then its argument prototype would still apply. */
20741char $ac_func();
20742
20743int main() {
20744
20745/* The GNU C library defines this for functions which it implements
20746 to always fail with ENOSYS. Some functions are actually named
20747 something starting with __ and the normal name is an alias. */
20748#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20749choke me
20750#else
20751$ac_func();
20752#endif
20753
20754; return 0; }
20755EOF
20756if { (eval echo configure:20757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20757 rm -rf conftest*
20758 eval "ac_cv_func_$ac_func=yes"
20759else
20760 echo "configure: failed program was:" >&5
20761 cat conftest.$ac_ext >&5
20762 rm -rf conftest*
20763 eval "ac_cv_func_$ac_func=no"
20764fi
20765rm -f conftest*
20766fi
20767
20768if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20769 echo "$ac_t""yes" 1>&6
20770 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20771 cat >> confdefs.h <<EOF
20772#define $ac_tr_func 1
20773EOF
20774
20775 cat >> confdefs.h <<\EOF
20776#define HAVE_SHL_LOAD 1
20777EOF
20778
20779 HAVE_SHL_FUNCS=1
20780
20781else
20782 echo "$ac_t""no" 1>&6
20783echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
20784echo "configure:20785: checking for dld in -lshl_load" >&5
20785ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20786if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20787 echo $ac_n "(cached) $ac_c" 1>&6
20788else
20789 ac_save_LIBS="$LIBS"
20790LIBS="-lshl_load $LIBS"
20791cat > conftest.$ac_ext <<EOF
20792#line 20793 "configure"
20793#include "confdefs.h"
20794/* Override any gcc2 internal prototype to avoid an error. */
20795/* We use char because int might match the return type of a gcc2
20796 builtin and then its argument prototype would still apply. */
20797char dld();
20798
20799int main() {
20800dld()
20801; return 0; }
20802EOF
20803if { (eval echo configure:20804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20804 rm -rf conftest*
20805 eval "ac_cv_lib_$ac_lib_var=yes"
20806else
20807 echo "configure: failed program was:" >&5
20808 cat conftest.$ac_ext >&5
20809 rm -rf conftest*
20810 eval "ac_cv_lib_$ac_lib_var=no"
20811fi
20812rm -f conftest*
20813LIBS="$ac_save_LIBS"
20814
20815fi
20816if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20817 echo "$ac_t""yes" 1>&6
20818
20819 HAVE_SHL_FUNCS=1
20820 DL_LINK=" -ldld$DL_LINK"
20821
20822else
20823 echo "$ac_t""no" 1>&6
20824fi
20825
20826
20827fi
20828done
20829
20830
20831fi
20832
20833
20834fi
20835done
20836
20837
20838 if test "$HAVE_DL_FUNCS" = 1; then
20839 for ac_func in dlerror
20840do
20841echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20842echo "configure:20843: checking for $ac_func" >&5
20843if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20844 echo $ac_n "(cached) $ac_c" 1>&6
20845else
20846 cat > conftest.$ac_ext <<EOF
20847#line 20848 "configure"
20848#include "confdefs.h"
20849/* System header to define __stub macros and hopefully few prototypes,
20850 which can conflict with char $ac_func(); below. */
20851#include <assert.h>
20852/* Override any gcc2 internal prototype to avoid an error. */
20853/* We use char because int might match the return type of a gcc2
20854 builtin and then its argument prototype would still apply. */
20855char $ac_func();
20856
20857int main() {
20858
20859/* The GNU C library defines this for functions which it implements
20860 to always fail with ENOSYS. Some functions are actually named
20861 something starting with __ and the normal name is an alias. */
20862#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20863choke me
20864#else
20865$ac_func();
20866#endif
20867
20868; return 0; }
20869EOF
20870if { (eval echo configure:20871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20871 rm -rf conftest*
20872 eval "ac_cv_func_$ac_func=yes"
20873else
20874 echo "configure: failed program was:" >&5
20875 cat conftest.$ac_ext >&5
20876 rm -rf conftest*
20877 eval "ac_cv_func_$ac_func=no"
20878fi
20879rm -f conftest*
20880fi
20881
20882if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20883 echo "$ac_t""yes" 1>&6
20884 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20885 cat >> confdefs.h <<EOF
20886#define $ac_tr_func 1
20887EOF
20888 cat >> confdefs.h <<\EOF
20889#define HAVE_DLERROR 1
20890EOF
20891
20892else
20893 echo "$ac_t""no" 1>&6
20894echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
20895echo "configure:20896: checking for dlerror in -ldl" >&5
20896ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
20897if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20898 echo $ac_n "(cached) $ac_c" 1>&6
20899else
20900 ac_save_LIBS="$LIBS"
20901LIBS="-ldl $LIBS"
20902cat > conftest.$ac_ext <<EOF
20903#line 20904 "configure"
20904#include "confdefs.h"
20905/* Override any gcc2 internal prototype to avoid an error. */
20906/* We use char because int might match the return type of a gcc2
20907 builtin and then its argument prototype would still apply. */
20908char dlerror();
20909
20910int main() {
20911dlerror()
20912; return 0; }
20913EOF
20914if { (eval echo configure:20915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20915 rm -rf conftest*
20916 eval "ac_cv_lib_$ac_lib_var=yes"
20917else
20918 echo "configure: failed program was:" >&5
20919 cat conftest.$ac_ext >&5
20920 rm -rf conftest*
20921 eval "ac_cv_lib_$ac_lib_var=no"
20922fi
20923rm -f conftest*
20924LIBS="$ac_save_LIBS"
20925
20926fi
20927if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20928 echo "$ac_t""yes" 1>&6
20929 cat >> confdefs.h <<\EOF
20930#define HAVE_DLERROR 1
20931EOF
20932
20933else
20934 echo "$ac_t""no" 1>&6
20935fi
20936
20937fi
20938done
20939
20940 fi
20941 fi
20942
20943 if test "$HAVE_DL_FUNCS" = 0; then
20944 if test "$HAVE_SHL_FUNCS" = 0; then
20945 if test "$USE_UNIX" = 1; then
20946 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
20947 wxUSE_DYNAMIC_LOADER=no
20948 wxUSE_DYNLIB_CLASS=no
20949 else
20950 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
20951 fi
20952 fi
20953 fi
20954 fi
20955fi
20956
20957if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
20958 cat >> confdefs.h <<\EOF
20959#define wxUSE_DYNAMIC_LOADER 1
20960EOF
20961
20962elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20963 cat >> confdefs.h <<\EOF
20964#define wxUSE_DYNLIB_CLASS 1
20965EOF
20966
20967fi
20968
20969
20970if test "$wxUSE_FONTMAP" = "yes" ; then
20971 cat >> confdefs.h <<\EOF
20972#define wxUSE_FONTMAP 1
20973EOF
20974
20975fi
20976
20977if test "$wxUSE_UNICODE" = "yes" ; then
20978 cat >> confdefs.h <<\EOF
20979#define wxUSE_UNICODE 1
20980EOF
20981
20982
20983 if test "$wxUSE_MSW" != 1; then
20984 wxUSE_UNICODE_MSLU=no
20985 fi
20986
20987 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
20988 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
20989echo "configure:20990: checking for main in -lunicows" >&5
20990ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
20991if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20992 echo $ac_n "(cached) $ac_c" 1>&6
20993else
20994 ac_save_LIBS="$LIBS"
20995LIBS="-lunicows $LIBS"
20996cat > conftest.$ac_ext <<EOF
20997#line 20998 "configure"
20998#include "confdefs.h"
20999
21000int main() {
21001main()
21002; return 0; }
21003EOF
21004if { (eval echo configure:21005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21005 rm -rf conftest*
21006 eval "ac_cv_lib_$ac_lib_var=yes"
21007else
21008 echo "configure: failed program was:" >&5
21009 cat conftest.$ac_ext >&5
21010 rm -rf conftest*
21011 eval "ac_cv_lib_$ac_lib_var=no"
21012fi
21013rm -f conftest*
21014LIBS="$ac_save_LIBS"
21015
21016fi
21017if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21018 echo "$ac_t""yes" 1>&6
21019
21020 cat >> confdefs.h <<\EOF
21021#define wxUSE_UNICODE_MSLU 1
21022EOF
21023
21024
21025else
21026 echo "$ac_t""no" 1>&6
21027
21028 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
21029 Applications will only run on Windows NT/2000/XP!" 1>&2
21030 wxUSE_UNICODE_MSLU=no
21031
21032fi
21033
21034 fi
21035fi
21036
21037if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
21038 cat >> confdefs.h <<\EOF
21039#define wxUSE_EXPERIMENTAL_PRINTF 1
21040EOF
21041
21042fi
21043
21044
21045
21046IODBC_C_SRC=""
21047if test "$wxUSE_ODBC" = "yes" ; then
21048 cat >> confdefs.h <<\EOF
21049#define wxUSE_ODBC 1
21050EOF
21051
21052 WXODBCFLAG="-D_IODBC_"
21053 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
21054fi
21055
21056
21057if test "$wxUSE_POSTSCRIPT" = "yes" ; then
21058 cat >> confdefs.h <<\EOF
21059#define wxUSE_POSTSCRIPT 1
21060EOF
21061
21062fi
21063
21064cat >> confdefs.h <<\EOF
21065#define wxUSE_AFM_FOR_POSTSCRIPT 1
21066EOF
21067
21068
21069cat >> confdefs.h <<\EOF
21070#define wxUSE_NORMALIZED_PS_FONTS 1
21071EOF
21072
21073
21074
21075if test "$wxUSE_CONSTRAINTS" = "yes"; then
21076 cat >> confdefs.h <<\EOF
21077#define wxUSE_CONSTRAINTS 1
21078EOF
21079
21080 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
21081fi
21082
21083if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21084
21085
21086 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21087 cat >> confdefs.h <<\EOF
21088#define wxUSE_MDI_ARCHITECTURE 1
21089EOF
21090
21091 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
21092 fi
21093fi
21094
21095if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
21096 cat >> confdefs.h <<\EOF
21097#define wxUSE_DOC_VIEW_ARCHITECTURE 1
21098EOF
21099
21100 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
21101 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
21102 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
21103 fi
21104fi
21105
21106if test "$wxUSE_HELP" = "yes"; then
21107 cat >> confdefs.h <<\EOF
21108#define wxUSE_HELP 1
21109EOF
21110
21111 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
21112
21113 if test "$wxUSE_MSW" = 1; then
21114 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
21115 cat >> confdefs.h <<\EOF
21116#define wxUSE_MS_HTML_HELP 1
21117EOF
21118
21119 fi
21120 fi
21121
21122 if test "$wxUSE_WXHTML_HELP" = "yes"; then
21123 if test "$wxUSE_HTML" = "yes"; then
21124 cat >> confdefs.h <<\EOF
21125#define wxUSE_WXHTML_HELP 1
21126EOF
21127
21128 else
21129 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
21130 wxUSE_WXHTML_HELP=no
21131 fi
21132 fi
21133fi
21134
21135if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
21136 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21137 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
21138 else
21139 cat >> confdefs.h <<\EOF
21140#define wxUSE_PRINTING_ARCHITECTURE 1
21141EOF
21142
21143 fi
21144 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
21145fi
21146
21147
21148
21149if test "$wxUSE_X_RESOURCES" = "yes"; then
21150 cat >> confdefs.h <<\EOF
21151#define wxUSE_X_RESOURCES 1
21152EOF
21153
21154fi
21155
21156
21157if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
21158 -o "$wxUSE_CLIPBOARD" = "yes" \
21159 -o "$wxUSE_OLE" = "yes" \
21160 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
21161 for ac_hdr in ole2.h
21162do
21163ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21164echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21165echo "configure:21166: checking for $ac_hdr" >&5
21166if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
21167 echo $ac_n "(cached) $ac_c" 1>&6
21168else
21169 cat > conftest.$ac_ext <<EOF
21170#line 21171 "configure"
21171#include "confdefs.h"
21172#include <$ac_hdr>
21173EOF
21174ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21175{ (eval echo configure:21176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21176ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21177if test -z "$ac_err"; then
21178 rm -rf conftest*
21179 eval "ac_cv_header_$ac_safe=yes"
21180else
21181 echo "$ac_err" >&5
21182 echo "configure: failed program was:" >&5
21183 cat conftest.$ac_ext >&5
21184 rm -rf conftest*
21185 eval "ac_cv_header_$ac_safe=no"
21186fi
21187rm -f conftest*
21188fi
21189if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21190 echo "$ac_t""yes" 1>&6
21191 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21192 cat >> confdefs.h <<EOF
21193#define $ac_tr_hdr 1
21194EOF
21195
21196else
21197 echo "$ac_t""no" 1>&6
21198fi
21199done
21200
21201
21202 if test "$ac_cv_header_ole2_h" = "yes" ; then
21203 if test "$GCC" = yes ; then
21204
21205 ac_ext=C
21206# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21207ac_cpp='$CXXCPP $CPPFLAGS'
21208ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21209ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21210cross_compiling=$ac_cv_prog_cxx_cross
21211
21212
21213 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
21214echo "configure:21215: checking if g++ requires -fvtable-thunks" >&5
21215 cat > conftest.$ac_ext <<EOF
21216#line 21217 "configure"
21217#include "confdefs.h"
21218#include <windows.h>
21219 #include <ole2.h>
21220int main() {
21221
21222; return 0; }
21223EOF
21224if { (eval echo configure:21225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21225 rm -rf conftest*
21226 echo "$ac_t""no" 1>&6
21227else
21228 echo "configure: failed program was:" >&5
21229 cat conftest.$ac_ext >&5
21230 rm -rf conftest*
21231 echo "$ac_t""yes" 1>&6
21232 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
21233fi
21234rm -f conftest*
21235 ac_ext=c
21236# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21237ac_cpp='$CPP $CPPFLAGS'
21238ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21239ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21240cross_compiling=$ac_cv_prog_cc_cross
21241
21242 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
21243 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
21244 cat >> confdefs.h <<\EOF
21245#define wxUSE_OLE 1
21246EOF
21247
21248
21249 fi
21250
21251 cat >> confdefs.h <<\EOF
21252#define wxUSE_DATAOBJ 1
21253EOF
21254
21255 else
21256 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
21257
21258 wxUSE_CLIPBOARD=no
21259 wxUSE_DRAG_AND_DROP=no
21260 wxUSE_DATAOBJ=no
21261 wxUSE_OLE=no
21262 fi
21263
21264 if test "$wxUSE_METAFILE" = "yes"; then
21265 cat >> confdefs.h <<\EOF
21266#define wxUSE_METAFILE 1
21267EOF
21268
21269
21270 cat >> confdefs.h <<\EOF
21271#define wxUSE_ENH_METAFILE 1
21272EOF
21273
21274 fi
21275fi
21276
21277if test "$wxUSE_IPC" = "yes"; then
21278 if test "$wxUSE_SOCKETS" != "yes"; then
21279 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
21280 fi
21281
21282 cat >> confdefs.h <<\EOF
21283#define wxUSE_IPC 1
21284EOF
21285
21286fi
21287
21288if test "$wxUSE_CLIPBOARD" = "yes"; then
21289 if test "$wxUSE_MGL" = 1; then
21290 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
21291 wxUSE_CLIPBOARD=no
21292 fi
21293
21294 if test "$wxUSE_CLIPBOARD" = "yes"; then
21295 cat >> confdefs.h <<\EOF
21296#define wxUSE_CLIPBOARD 1
21297EOF
21298
21299
21300 cat >> confdefs.h <<\EOF
21301#define wxUSE_DATAOBJ 1
21302EOF
21303
21304 fi
21305fi
21306
21307if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
21308 if test "$wxUSE_GTK" = 1; then
21309 if test "$WXGTK12" != 1; then
21310 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
21311 wxUSE_DRAG_AND_DROP=no
21312 fi
21313 fi
21314
21315 if test "$wxUSE_MOTIF" = 1; then
21316 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
21317 wxUSE_DRAG_AND_DROP=no
21318 fi
21319
21320 if test "$wxUSE_X11" = 1; then
21321 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
21322 wxUSE_DRAG_AND_DROP=no
21323 fi
21324
21325 if test "$wxUSE_MGL" = 1; then
21326 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
21327 wxUSE_DRAG_AND_DROP=no
21328 fi
21329
21330 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
21331 cat >> confdefs.h <<\EOF
21332#define wxUSE_DRAG_AND_DROP 1
21333EOF
21334
21335 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21336 fi
21337
21338fi
21339
21340if test "$wxUSE_SPLINES" = "yes" ; then
21341 cat >> confdefs.h <<\EOF
21342#define wxUSE_SPLINES 1
21343EOF
21344
21345fi
21346
21347
21348USES_CONTROLS=0
21349if test "$wxUSE_CONTROLS" = "yes"; then
21350 USES_CONTROLS=1
21351fi
21352
21353if test "$wxUSE_ACCEL" = "yes"; then
21354 cat >> confdefs.h <<\EOF
21355#define wxUSE_ACCEL 1
21356EOF
21357
21358 USES_CONTROLS=1
21359fi
21360
21361if test "$wxUSE_BUTTON" = "yes"; then
21362 cat >> confdefs.h <<\EOF
21363#define wxUSE_BUTTON 1
21364EOF
21365
21366 USES_CONTROLS=1
21367fi
21368
21369if test "$wxUSE_BMPBUTTON" = "yes"; then
21370 cat >> confdefs.h <<\EOF
21371#define wxUSE_BMPBUTTON 1
21372EOF
21373
21374 USES_CONTROLS=1
21375fi
21376
21377if test "$wxUSE_CALCTRL" = "yes"; then
21378 cat >> confdefs.h <<\EOF
21379#define wxUSE_CALENDARCTRL 1
21380EOF
21381
21382 USES_CONTROLS=1
21383 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
21384fi
21385
21386if test "$wxUSE_CARET" = "yes"; then
21387 cat >> confdefs.h <<\EOF
21388#define wxUSE_CARET 1
21389EOF
21390
21391 USES_CONTROLS=1
21392 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21393fi
21394
21395if test "$wxUSE_COMBOBOX" = "yes"; then
21396 cat >> confdefs.h <<\EOF
21397#define wxUSE_COMBOBOX 1
21398EOF
21399
21400 USES_CONTROLS=1
21401fi
21402
21403if test "$wxUSE_CHOICE" = "yes"; then
21404 cat >> confdefs.h <<\EOF
21405#define wxUSE_CHOICE 1
21406EOF
21407
21408 USES_CONTROLS=1
21409fi
21410
21411if test "$wxUSE_CHECKBOX" = "yes"; then
21412 cat >> confdefs.h <<\EOF
21413#define wxUSE_CHECKBOX 1
21414EOF
21415
21416 USES_CONTROLS=1
21417fi
21418
21419if test "$wxUSE_CHECKLST" = "yes"; then
21420 cat >> confdefs.h <<\EOF
21421#define wxUSE_CHECKLISTBOX 1
21422EOF
21423
21424 USES_CONTROLS=1
21425 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21426fi
21427
21428if test "$wxUSE_DISPLAY" = "yes"; then
21429 cat >> confdefs.h <<\EOF
21430#define wxUSE_DISPLAY 1
21431EOF
21432
21433 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
21434fi
21435
21436if test "$wxUSE_GAUGE" = "yes"; then
21437 cat >> confdefs.h <<\EOF
21438#define wxUSE_GAUGE 1
21439EOF
21440
21441 USES_CONTROLS=1
21442fi
21443
21444if test "$wxUSE_GRID" = "yes"; then
21445 cat >> confdefs.h <<\EOF
21446#define wxUSE_GRID 1
21447EOF
21448
21449 USES_CONTROLS=1
21450 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
21451fi
21452
21453if test "$wxUSE_IMAGLIST" = "yes"; then
21454 cat >> confdefs.h <<\EOF
21455#define wxUSE_IMAGLIST 1
21456EOF
21457
21458fi
21459
21460if test "$wxUSE_LISTBOX" = "yes"; then
21461 cat >> confdefs.h <<\EOF
21462#define wxUSE_LISTBOX 1
21463EOF
21464
21465 USES_CONTROLS=1
21466fi
21467
21468if test "$wxUSE_LISTCTRL" = "yes"; then
21469 if test "$wxUSE_IMAGLIST" = "yes"; then
21470 cat >> confdefs.h <<\EOF
21471#define wxUSE_LISTCTRL 1
21472EOF
21473
21474 USES_CONTROLS=1
21475 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21476 else
21477 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
21478 fi
21479fi
21480
21481if test "$wxUSE_NOTEBOOK" = "yes"; then
21482 cat >> confdefs.h <<\EOF
21483#define wxUSE_NOTEBOOK 1
21484EOF
21485
21486 USES_CONTROLS=1
21487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21488fi
21489
21490
21491if test "$wxUSE_RADIOBOX" = "yes"; then
21492 cat >> confdefs.h <<\EOF
21493#define wxUSE_RADIOBOX 1
21494EOF
21495
21496 USES_CONTROLS=1
21497fi
21498
21499if test "$wxUSE_RADIOBTN" = "yes"; then
21500 cat >> confdefs.h <<\EOF
21501#define wxUSE_RADIOBTN 1
21502EOF
21503
21504 USES_CONTROLS=1
21505fi
21506
21507if test "$wxUSE_SASH" = "yes"; then
21508 cat >> confdefs.h <<\EOF
21509#define wxUSE_SASH 1
21510EOF
21511
21512 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21513fi
21514
21515if test "$wxUSE_SCROLLBAR" = "yes"; then
21516 cat >> confdefs.h <<\EOF
21517#define wxUSE_SCROLLBAR 1
21518EOF
21519
21520 USES_CONTROLS=1
21521 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
21522fi
21523
21524if test "$wxUSE_SLIDER" = "yes"; then
21525 cat >> confdefs.h <<\EOF
21526#define wxUSE_SLIDER 1
21527EOF
21528
21529 USES_CONTROLS=1
21530fi
21531
21532if test "$wxUSE_SPINBTN" = "yes"; then
21533 cat >> confdefs.h <<\EOF
21534#define wxUSE_SPINBTN 1
21535EOF
21536
21537 USES_CONTROLS=1
21538fi
21539
21540if test "$wxUSE_SPINCTRL" = "yes"; then
21541 cat >> confdefs.h <<\EOF
21542#define wxUSE_SPINCTRL 1
21543EOF
21544
21545 USES_CONTROLS=1
21546fi
21547
21548if test "$wxUSE_SPLITTER" = "yes"; then
21549 cat >> confdefs.h <<\EOF
21550#define wxUSE_SPLITTER 1
21551EOF
21552
21553 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21554fi
21555
21556if test "$wxUSE_STATBMP" = "yes"; then
21557 cat >> confdefs.h <<\EOF
21558#define wxUSE_STATBMP 1
21559EOF
21560
21561 USES_CONTROLS=1
21562fi
21563
21564if test "$wxUSE_STATBOX" = "yes"; then
21565 cat >> confdefs.h <<\EOF
21566#define wxUSE_STATBOX 1
21567EOF
21568
21569 USES_CONTROLS=1
21570fi
21571
21572if test "$wxUSE_STATTEXT" = "yes"; then
21573 cat >> confdefs.h <<\EOF
21574#define wxUSE_STATTEXT 1
21575EOF
21576
21577 USES_CONTROLS=1
21578fi
21579
21580if test "$wxUSE_STATLINE" = "yes"; then
21581 cat >> confdefs.h <<\EOF
21582#define wxUSE_STATLINE 1
21583EOF
21584
21585 USES_CONTROLS=1
21586fi
21587
21588if test "$wxUSE_STATUSBAR" = "yes"; then
21589 cat >> confdefs.h <<\EOF
21590#define wxUSE_STATUSBAR 1
21591EOF
21592
21593 USES_CONTROLS=1
21594
21595 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
21596fi
21597
21598if test "$wxUSE_TABDIALOG" = "yes"; then
21599 cat >> confdefs.h <<\EOF
21600#define wxUSE_TAB_DIALOG 1
21601EOF
21602
21603 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21604fi
21605
21606if test "$wxUSE_TEXTCTRL" = "yes"; then
21607 cat >> confdefs.h <<\EOF
21608#define wxUSE_TEXTCTRL 1
21609EOF
21610
21611 USES_CONTROLS=1
21612 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21613fi
21614
21615if test "$wxUSE_TOGGLEBTN" = "yes"; then
21616 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21617 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
21618 wxUSE_TOGGLEBTN=no
21619 fi
21620 if test "$wxUSE_UNIVERSAL" = "yes"; then
21621 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
21622 wxUSE_TOGGLEBTN=no
21623 fi
21624
21625 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21626 cat >> confdefs.h <<\EOF
21627#define wxUSE_TOGGLEBTN 1
21628EOF
21629
21630 USES_CONTROLS=1
21631 fi
21632fi
21633
21634if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
21635 cat >> confdefs.h <<\EOF
21636#define wxUSE_TOOLBAR_SIMPLE 1
21637EOF
21638
21639 wxUSE_TOOLBAR="yes"
21640 USES_CONTROLS=1
21641fi
21642
21643if test "$wxUSE_TOOLBAR" = "yes"; then
21644 cat >> confdefs.h <<\EOF
21645#define wxUSE_TOOLBAR 1
21646EOF
21647
21648 USES_CONTROLS=1
21649
21650 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21651 wxUSE_TOOLBAR_NATIVE="yes"
21652 fi
21653
21654 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
21655 cat >> confdefs.h <<\EOF
21656#define wxUSE_TOOLBAR_NATIVE 1
21657EOF
21658
21659 USES_CONTROLS=1
21660 fi
21661
21662 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
21663fi
21664
21665if test "$wxUSE_TOOLTIPS" = "yes"; then
21666 if test "$wxUSE_MOTIF" = 1; then
21667 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
21668 else
21669 if test "$wxUSE_UNIVERSAL" = "yes"; then
21670 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
21671 else
21672 cat >> confdefs.h <<\EOF
21673#define wxUSE_TOOLTIPS 1
21674EOF
21675
21676 fi
21677 fi
21678fi
21679
21680if test "$wxUSE_TREECTRL" = "yes"; then
21681 if test "$wxUSE_IMAGLIST" = "yes"; then
21682 cat >> confdefs.h <<\EOF
21683#define wxUSE_TREECTRL 1
21684EOF
21685
21686 USES_CONTROLS=1
21687 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21688 else
21689 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
21690 fi
21691fi
21692
21693if test "$wxUSE_POPUPWIN" = "yes"; then
21694 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21695 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
21696 else
21697 if test "$wxUSE_MOTIF" = 1; then
21698 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
21699 else
21700 if test "$wxUSE_PM" = 1; then
21701 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
21702 else
21703 cat >> confdefs.h <<\EOF
21704#define wxUSE_POPUPWIN 1
21705EOF
21706
21707
21708 USES_CONTROLS=1
21709 fi
21710 fi
21711 fi
21712fi
21713
21714if test "$wxUSE_TIPWINDOW" = "yes"; then
21715 if test "$wxUSE_PM" = 1; then
21716 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
21717 else
21718 cat >> confdefs.h <<\EOF
21719#define wxUSE_TIPWINDOW 1
21720EOF
21721
21722 fi
21723fi
21724
21725if test "$USES_CONTROLS" = 1; then
21726 cat >> confdefs.h <<\EOF
21727#define wxUSE_CONTROLS 1
21728EOF
21729
21730fi
21731
21732
21733
21734if test "$wxUSE_DRAGIMAGE" = "yes"; then
21735 cat >> confdefs.h <<\EOF
21736#define wxUSE_DRAGIMAGE 1
21737EOF
21738
21739 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21740fi
21741
21742if test "$wxUSE_MENUS" = "yes"; then
21743 cat >> confdefs.h <<\EOF
21744#define wxUSE_MENUS 1
21745EOF
21746
21747 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
21748fi
21749
21750if test "$wxUSE_METAFILE" = "yes"; then
21751 cat >> confdefs.h <<\EOF
21752#define wxUSE_METAFILE 1
21753EOF
21754
21755fi
21756
21757if test "$wxUSE_MIMETYPE" = "yes"; then
21758 cat >> confdefs.h <<\EOF
21759#define wxUSE_MIMETYPE 1
21760EOF
21761
21762fi
21763
21764if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
21765 cat >> confdefs.h <<\EOF
21766#define wxUSE_SYSTEM_OPTIONS 1
21767EOF
21768
21769if test "$TOOLKIT" = "MSW"; then
21770 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21771fi
21772
21773fi
21774
21775if test "$wxUSE_PROTOCOL" = "yes"; then
21776 if test "$wxUSE_SOCKETS" != "yes"; then
21777 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
21778 wxUSE_PROTOCOL=no
21779 fi
21780
21781 if test "$wxUSE_PROTOCOL" = "yes"; then
21782 cat >> confdefs.h <<\EOF
21783#define wxUSE_PROTOCOL 1
21784EOF
21785
21786
21787 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
21788 cat >> confdefs.h <<\EOF
21789#define wxUSE_PROTOCOL_HTTP 1
21790EOF
21791
21792 fi
21793 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
21794 cat >> confdefs.h <<\EOF
21795#define wxUSE_PROTOCOL_FTP 1
21796EOF
21797
21798 fi
21799 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
21800 cat >> confdefs.h <<\EOF
21801#define wxUSE_PROTOCOL_FILE 1
21802EOF
21803
21804 fi
21805 fi
21806fi
21807
21808if test "$wxUSE_URL" = "yes"; then
21809 if test "$wxUSE_PROTOCOL" != "yes"; then
21810 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
21811 wxUSE_URL=no
21812 fi
21813 if test "$wxUSE_URL" = "yes"; then
21814 cat >> confdefs.h <<\EOF
21815#define wxUSE_URL 1
21816EOF
21817
21818 fi
21819fi
21820
21821if test "$wxUSE_MINIFRAME" = "yes"; then
21822 cat >> confdefs.h <<\EOF
21823#define wxUSE_MINIFRAME 1
21824EOF
21825
21826 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
21827fi
21828
21829if test "$wxUSE_HTML" = "yes"; then
21830 cat >> confdefs.h <<\EOF
21831#define wxUSE_HTML 1
21832EOF
21833
21834 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
21835fi
21836
21837if test "$wxUSE_VALIDATORS" = "yes"; then
21838 cat >> confdefs.h <<\EOF
21839#define wxUSE_VALIDATORS 1
21840EOF
21841
21842 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
21843fi
21844
21845if test "$wxUSE_PALETTE" = "yes" ; then
21846 cat >> confdefs.h <<\EOF
21847#define wxUSE_PALETTE 1
21848EOF
21849
21850fi
21851
21852if test "$wxUSE_IMAGE" = "yes" ; then
21853 cat >> confdefs.h <<\EOF
21854#define wxUSE_IMAGE 1
21855EOF
21856
21857fi
21858
21859if test "$wxUSE_GIF" = "yes" ; then
21860 cat >> confdefs.h <<\EOF
21861#define wxUSE_GIF 1
21862EOF
21863
21864fi
21865
21866if test "$wxUSE_PCX" = "yes" ; then
21867 cat >> confdefs.h <<\EOF
21868#define wxUSE_PCX 1
21869EOF
21870
21871fi
21872
21873if test "$wxUSE_IFF" = "yes" ; then
21874 cat >> confdefs.h <<\EOF
21875#define wxUSE_IFF 1
21876EOF
21877
21878fi
21879
21880if test "$wxUSE_PNM" = "yes" ; then
21881 cat >> confdefs.h <<\EOF
21882#define wxUSE_PNM 1
21883EOF
21884
21885fi
21886
21887if test "$wxUSE_XPM" = "yes" ; then
21888 cat >> confdefs.h <<\EOF
21889#define wxUSE_XPM 1
21890EOF
21891
21892fi
21893
21894if test "$wxUSE_ICO_CUR" = "yes" ; then
21895 cat >> confdefs.h <<\EOF
21896#define wxUSE_ICO_CUR 1
21897EOF
21898
21899fi
21900
21901if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
21902 LIBS=" -lunicows $LIBS"
21903fi
21904
21905
21906if test "$wxUSE_CHOICEDLG" = "yes"; then
21907 cat >> confdefs.h <<\EOF
21908#define wxUSE_CHOICEDLG 1
21909EOF
21910
21911fi
21912
21913if test "$wxUSE_COLOURDLG" = "yes"; then
21914 cat >> confdefs.h <<\EOF
21915#define wxUSE_COLOURDLG 1
21916EOF
21917
21918fi
21919
21920if test "$wxUSE_FILEDLG" = "yes"; then
21921 cat >> confdefs.h <<\EOF
21922#define wxUSE_FILEDLG 1
21923EOF
21924
21925fi
21926
21927if test "$wxUSE_FINDREPLDLG" = "yes"; then
21928 cat >> confdefs.h <<\EOF
21929#define wxUSE_FINDREPLDLG 1
21930EOF
21931
21932fi
21933
21934if test "$wxUSE_FONTDLG" = "yes"; then
21935 cat >> confdefs.h <<\EOF
21936#define wxUSE_FONTDLG 1
21937EOF
21938
21939fi
21940
21941if test "$wxUSE_DIRDLG" = "yes"; then
21942 if test "$wxUSE_TREECTRL" != "yes"; then
21943 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
21944 else
21945 cat >> confdefs.h <<\EOF
21946#define wxUSE_DIRDLG 1
21947EOF
21948
21949 fi
21950fi
21951
21952if test "$wxUSE_MSGDLG" = "yes"; then
21953 cat >> confdefs.h <<\EOF
21954#define wxUSE_MSGDLG 1
21955EOF
21956
21957fi
21958
21959if test "$wxUSE_NUMBERDLG" = "yes"; then
21960 cat >> confdefs.h <<\EOF
21961#define wxUSE_NUMBERDLG 1
21962EOF
21963
21964fi
21965
21966if test "$wxUSE_PROGRESSDLG" = "yes"; then
21967 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21968 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
21969 else
21970 cat >> confdefs.h <<\EOF
21971#define wxUSE_PROGRESSDLG 1
21972EOF
21973
21974 fi
21975fi
21976
21977if test "$wxUSE_SPLASH" = "yes"; then
21978 cat >> confdefs.h <<\EOF
21979#define wxUSE_SPLASH 1
21980EOF
21981
21982fi
21983
21984if test "$wxUSE_STARTUP_TIPS" = "yes"; then
21985 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21986 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
21987 else
21988 cat >> confdefs.h <<\EOF
21989#define wxUSE_STARTUP_TIPS 1
21990EOF
21991
21992 fi
21993fi
21994
21995if test "$wxUSE_TEXTDLG" = "yes"; then
21996 cat >> confdefs.h <<\EOF
21997#define wxUSE_TEXTDLG 1
21998EOF
21999
22000fi
22001
22002if test "$wxUSE_WIZARDDLG" = "yes"; then
22003 cat >> confdefs.h <<\EOF
22004#define wxUSE_WIZARDDLG 1
22005EOF
22006
22007 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
22008fi
22009
22010
22011if test "$cross_compiling" = "yes"; then
22012 OSINFO="\"$host\""
22013else
22014 OSINFO=`uname -s -r -m`
22015 OSINFO="\"$OSINFO\""
22016fi
22017
22018cat >> confdefs.h <<EOF
22019#define WXWIN_OS_DESCRIPTION $OSINFO
22020EOF
22021
22022
22023
22024if test "x$prefix" != "xNONE"; then
22025 wxPREFIX=$prefix
22026else
22027 wxPREFIX=$ac_default_prefix
22028fi
22029
22030cat >> confdefs.h <<EOF
22031#define wxINSTALL_PREFIX "$wxPREFIX"
22032EOF
22033
22034
22035top_builddir=`pwd`
22036
22037
22038
22039
22040if test "$wxUSE_MAC" = 1 ; then
22041 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
22042fi
22043if test "$wxUSE_COCOA" = 1 ; then
22044 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
22045fi
22046
22047
22048LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
22049
22050have_cos=0
22051have_floor=0
22052for ac_func in cos
22053do
22054echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22055echo "configure:22056: checking for $ac_func" >&5
22056if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22057 echo $ac_n "(cached) $ac_c" 1>&6
22058else
22059 cat > conftest.$ac_ext <<EOF
22060#line 22061 "configure"
22061#include "confdefs.h"
22062/* System header to define __stub macros and hopefully few prototypes,
22063 which can conflict with char $ac_func(); below. */
22064#include <assert.h>
22065/* Override any gcc2 internal prototype to avoid an error. */
22066/* We use char because int might match the return type of a gcc2
22067 builtin and then its argument prototype would still apply. */
22068char $ac_func();
22069
22070int main() {
22071
22072/* The GNU C library defines this for functions which it implements
22073 to always fail with ENOSYS. Some functions are actually named
22074 something starting with __ and the normal name is an alias. */
22075#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22076choke me
22077#else
22078$ac_func();
22079#endif
22080
22081; return 0; }
22082EOF
22083if { (eval echo configure:22084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22084 rm -rf conftest*
22085 eval "ac_cv_func_$ac_func=yes"
22086else
22087 echo "configure: failed program was:" >&5
22088 cat conftest.$ac_ext >&5
22089 rm -rf conftest*
22090 eval "ac_cv_func_$ac_func=no"
22091fi
22092rm -f conftest*
22093fi
22094
22095if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22096 echo "$ac_t""yes" 1>&6
22097 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22098 cat >> confdefs.h <<EOF
22099#define $ac_tr_func 1
22100EOF
22101 have_cos=1
22102else
22103 echo "$ac_t""no" 1>&6
22104fi
22105done
22106
22107for ac_func in floor
22108do
22109echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22110echo "configure:22111: checking for $ac_func" >&5
22111if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22112 echo $ac_n "(cached) $ac_c" 1>&6
22113else
22114 cat > conftest.$ac_ext <<EOF
22115#line 22116 "configure"
22116#include "confdefs.h"
22117/* System header to define __stub macros and hopefully few prototypes,
22118 which can conflict with char $ac_func(); below. */
22119#include <assert.h>
22120/* Override any gcc2 internal prototype to avoid an error. */
22121/* We use char because int might match the return type of a gcc2
22122 builtin and then its argument prototype would still apply. */
22123char $ac_func();
22124
22125int main() {
22126
22127/* The GNU C library defines this for functions which it implements
22128 to always fail with ENOSYS. Some functions are actually named
22129 something starting with __ and the normal name is an alias. */
22130#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22131choke me
22132#else
22133$ac_func();
22134#endif
22135
22136; return 0; }
22137EOF
22138if { (eval echo configure:22139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22139 rm -rf conftest*
22140 eval "ac_cv_func_$ac_func=yes"
22141else
22142 echo "configure: failed program was:" >&5
22143 cat conftest.$ac_ext >&5
22144 rm -rf conftest*
22145 eval "ac_cv_func_$ac_func=no"
22146fi
22147rm -f conftest*
22148fi
22149
22150if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22151 echo "$ac_t""yes" 1>&6
22152 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22153 cat >> confdefs.h <<EOF
22154#define $ac_tr_func 1
22155EOF
22156 have_floor=1
22157else
22158 echo "$ac_t""no" 1>&6
22159fi
22160done
22161
22162echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
22163echo "configure:22164: checking if floating point functions link without -lm" >&5
22164if test "$have_cos" = 1 -a "$have_floor" = 1; then
22165 echo "$ac_t""yes" 1>&6
22166else
22167 echo "$ac_t""no" 1>&6
22168 LIBS="$LIBS -lm"
22169 # use different functions to avoid configure caching
22170 have_sin=0
22171 have_ceil=0
22172 for ac_func in sin
22173do
22174echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22175echo "configure:22176: checking for $ac_func" >&5
22176if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22177 echo $ac_n "(cached) $ac_c" 1>&6
22178else
22179 cat > conftest.$ac_ext <<EOF
22180#line 22181 "configure"
22181#include "confdefs.h"
22182/* System header to define __stub macros and hopefully few prototypes,
22183 which can conflict with char $ac_func(); below. */
22184#include <assert.h>
22185/* Override any gcc2 internal prototype to avoid an error. */
22186/* We use char because int might match the return type of a gcc2
22187 builtin and then its argument prototype would still apply. */
22188char $ac_func();
22189
22190int main() {
22191
22192/* The GNU C library defines this for functions which it implements
22193 to always fail with ENOSYS. Some functions are actually named
22194 something starting with __ and the normal name is an alias. */
22195#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22196choke me
22197#else
22198$ac_func();
22199#endif
22200
22201; return 0; }
22202EOF
22203if { (eval echo configure:22204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22204 rm -rf conftest*
22205 eval "ac_cv_func_$ac_func=yes"
22206else
22207 echo "configure: failed program was:" >&5
22208 cat conftest.$ac_ext >&5
22209 rm -rf conftest*
22210 eval "ac_cv_func_$ac_func=no"
22211fi
22212rm -f conftest*
22213fi
22214
22215if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22216 echo "$ac_t""yes" 1>&6
22217 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22218 cat >> confdefs.h <<EOF
22219#define $ac_tr_func 1
22220EOF
22221 have_sin=1
22222else
22223 echo "$ac_t""no" 1>&6
22224fi
22225done
22226
22227 for ac_func in ceil
22228do
22229echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22230echo "configure:22231: checking for $ac_func" >&5
22231if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22232 echo $ac_n "(cached) $ac_c" 1>&6
22233else
22234 cat > conftest.$ac_ext <<EOF
22235#line 22236 "configure"
22236#include "confdefs.h"
22237/* System header to define __stub macros and hopefully few prototypes,
22238 which can conflict with char $ac_func(); below. */
22239#include <assert.h>
22240/* Override any gcc2 internal prototype to avoid an error. */
22241/* We use char because int might match the return type of a gcc2
22242 builtin and then its argument prototype would still apply. */
22243char $ac_func();
22244
22245int main() {
22246
22247/* The GNU C library defines this for functions which it implements
22248 to always fail with ENOSYS. Some functions are actually named
22249 something starting with __ and the normal name is an alias. */
22250#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22251choke me
22252#else
22253$ac_func();
22254#endif
22255
22256; return 0; }
22257EOF
22258if { (eval echo configure:22259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22259 rm -rf conftest*
22260 eval "ac_cv_func_$ac_func=yes"
22261else
22262 echo "configure: failed program was:" >&5
22263 cat conftest.$ac_ext >&5
22264 rm -rf conftest*
22265 eval "ac_cv_func_$ac_func=no"
22266fi
22267rm -f conftest*
22268fi
22269
22270if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22271 echo "$ac_t""yes" 1>&6
22272 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22273 cat >> confdefs.h <<EOF
22274#define $ac_tr_func 1
22275EOF
22276 have_ceil=1
22277else
22278 echo "$ac_t""no" 1>&6
22279fi
22280done
22281
22282 echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
22283echo "configure:22284: checking if floating point functions link with -lm" >&5
22284 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
22285 echo "$ac_t""yes" 1>&6
22286 else
22287 echo "$ac_t""no" 1>&6
22288 # not sure we should warn the user, crash, etc.
22289 fi
22290fi
22291
22292if test "$wxUSE_GUI" = "yes"; then
22293
22294 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
22295
22296
22297 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
22298 drawing dynamic erase event exec font image \
22299 minimal propsize rotate shaped widgets"
22300
22301 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
22302else
22303 SAMPLES_SUBDIRS="console"
22304fi
22305
22306
22307INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22308-I\${top_srcdir}/include \
22309$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22310$TOOLKIT_INCLUDE"
22311
22312if test "$wxUSE_GTK" = 1; then
22313 WXCONFIG_INCLUDE=
22314else
22315 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22316fi
22317
22318if test "$GXX" = yes ; then
22319 CXXWARNINGS="-Wall"
22320
22321 if test "$wxUSE_NO_DEPS" = "no" ; then
22322 CFLAGS="-MMD $CFLAGS"
22323 CXXFLAGS="-MMD $CXXFLAGS"
22324 fi
22325fi
22326
22327EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
22328
22329CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
22330CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
22331CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
22332LIBS=`echo $LIBS | sed 's/ \+/ /g'`
22333
22334LDFLAGS="$LDFLAGS $PROFILE"
22335
22336SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
22361
22362
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374
22375
22376
22377
22378
22379
22380
22381
22382
22383
22384
22385
22386
22387
22388
22389
22390
22391
22392
22393
22394
22395
22396
22397
22398
22399
22400
22401
22402
22403
22404
22405
22406
22407
22408
22409
22410
22411
22412
22413
22414
22415
22416
22417
22418
22419
22420
22421
22422
22423
22424
22425
22426
22427
22428
22429
22430
22431
22432
22433
22434
22435
22436
22437
22438echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
22439echo "configure:22440: checking whether ${MAKE-make} sets \${MAKE}" >&5
22440set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22441if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22442 echo $ac_n "(cached) $ac_c" 1>&6
22443else
22444 cat > conftestmake <<\EOF
22445all:
22446 @echo 'ac_maketemp="${MAKE}"'
22447EOF
22448# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22449eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
22450if test -n "$ac_maketemp"; then
22451 eval ac_cv_prog_make_${ac_make}_set=yes
22452else
22453 eval ac_cv_prog_make_${ac_make}_set=no
22454fi
22455rm -f conftestmake
22456fi
22457if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
22458 echo "$ac_t""yes" 1>&6
22459 SET_MAKE=
22460else
22461 echo "$ac_t""no" 1>&6
22462 SET_MAKE="MAKE=${MAKE-make}"
22463fi
22464
22465
22466if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22467 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
22468fi
22469
22470
22471
22472wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22473wx_cv_if_gnu_make=$IF_GNU_MAKE
22474wx_cv_path_ifs=$PATH_IFS
22475wx_cv_program_ext=$PROGRAM_EXT
22476wx_cv_target_library=$WX_TARGET_LIBRARY
22477wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22478wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
22479wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22480wx_cv_release=${WX_RELEASE}
22481wx_cv_current=${WX_CURRENT}
22482wx_cv_revision=${WX_REVISION}
22483wx_cv_age=${WX_AGE}
22484wx_cv_use_gui=${USE_GUI}
22485wx_cv_use_resources=${wxUSE_RESOURCES}
22486export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22487 wx_cv_path_ifs wx_cv_program_ext \
22488 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
22489 wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
22490 wx_cv_use_gui wx_cv_use_resources
22491
22492subdirs="demos samples utils contrib"
22493
22494
22495trap '' 1 2 15
22496cat > confcache <<\EOF
22497# This file is a shell script that caches the results of configure
22498# tests run on this system so they can be shared between configure
22499# scripts and configure runs. It is not useful on other systems.
22500# If it contains results you don't want to keep, you may remove or edit it.
22501#
22502# By default, configure uses ./config.cache as the cache file,
22503# creating it if it does not exist already. You can give configure
22504# the --cache-file=FILE option to use a different cache file; that is
22505# what configure does when it calls configure scripts in
22506# subdirectories, so they share the cache.
22507# Giving --cache-file=/dev/null disables caching, for debugging configure.
22508# config.status only pays attention to the cache file if you give it the
22509# --recheck option to rerun configure.
22510#
22511EOF
22512# The following way of writing the cache mishandles newlines in values,
22513# but we know of no workaround that is simple, portable, and efficient.
22514# So, don't put newlines in cache variables' values.
22515# Ultrix sh set writes to stderr and can't be redirected directly,
22516# and sets the high bit in the cache file unless we assign to the vars.
22517(set) 2>&1 |
22518 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22519 *ac_space=\ *)
22520 # `set' does not quote correctly, so add quotes (double-quote substitution
22521 # turns \\\\ into \\, and sed turns \\ into \).
22522 sed -n \
22523 -e "s/'/'\\\\''/g" \
22524 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22525 ;;
22526 *)
22527 # `set' quotes correctly as required by POSIX, so do not add quotes.
22528 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22529 ;;
22530 esac >> confcache
22531if cmp -s $cache_file confcache; then
22532 :
22533else
22534 if test -w $cache_file; then
22535 echo "updating cache $cache_file"
22536 cat confcache > $cache_file
22537 else
22538 echo "not updating unwritable cache $cache_file"
22539 fi
22540fi
22541rm -f confcache
22542
22543trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22544
22545test "x$prefix" = xNONE && prefix=$ac_default_prefix
22546# Let make expand exec_prefix.
22547test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22548
22549# Any assignment to VPATH causes Sun make to only execute
22550# the first set of double-colon rules, so remove it if not needed.
22551# If there is a colon in the path, we need to keep it.
22552if test "x$srcdir" = x.; then
22553 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22554fi
22555
22556trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22557
22558DEFS=-DHAVE_CONFIG_H
22559
22560# Without the "./", some shells look in PATH for config.status.
22561: ${CONFIG_STATUS=./config.status}
22562
22563echo creating $CONFIG_STATUS
22564rm -f $CONFIG_STATUS
22565cat > $CONFIG_STATUS <<EOF
22566#! /bin/sh
22567# Generated automatically by configure.
22568# Run this file to recreate the current configuration.
22569# This directory was configured as follows,
22570# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22571#
22572# $0 $ac_configure_args
22573#
22574# Compiler output produced by configure, useful for debugging
22575# configure, is in ./config.log if it exists.
22576
22577ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22578for ac_option
22579do
22580 case "\$ac_option" in
22581 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22582 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22583 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22584 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22585 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22586 exit 0 ;;
22587 -help | --help | --hel | --he | --h)
22588 echo "\$ac_cs_usage"; exit 0 ;;
22589 *) echo "\$ac_cs_usage"; exit 1 ;;
22590 esac
22591done
22592
22593ac_given_srcdir=$srcdir
22594ac_given_INSTALL="$INSTALL"
22595
22596trap 'rm -fr `echo "
22597 wx-config
22598 version-script
22599 src/make.env
22600 src/makeprog.env
22601 src/makelib.env
22602 Makefile
22603 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22604EOF
22605cat >> $CONFIG_STATUS <<EOF
22606
22607# Protect against being on the right side of a sed subst in config.status.
22608sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22609 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22610$ac_vpsub
22611$extrasub
22612s%@SHELL@%$SHELL%g
22613s%@CFLAGS@%$CFLAGS%g
22614s%@CPPFLAGS@%$CPPFLAGS%g
22615s%@CXXFLAGS@%$CXXFLAGS%g
22616s%@FFLAGS@%$FFLAGS%g
22617s%@DEFS@%$DEFS%g
22618s%@LDFLAGS@%$LDFLAGS%g
22619s%@LIBS@%$LIBS%g
22620s%@exec_prefix@%$exec_prefix%g
22621s%@prefix@%$prefix%g
22622s%@program_transform_name@%$program_transform_name%g
22623s%@bindir@%$bindir%g
22624s%@sbindir@%$sbindir%g
22625s%@libexecdir@%$libexecdir%g
22626s%@datadir@%$datadir%g
22627s%@sysconfdir@%$sysconfdir%g
22628s%@sharedstatedir@%$sharedstatedir%g
22629s%@localstatedir@%$localstatedir%g
22630s%@libdir@%$libdir%g
22631s%@includedir@%$includedir%g
22632s%@oldincludedir@%$oldincludedir%g
22633s%@infodir@%$infodir%g
22634s%@mandir@%$mandir%g
22635s%@host@%$host%g
22636s%@host_alias@%$host_alias%g
22637s%@host_cpu@%$host_cpu%g
22638s%@host_vendor@%$host_vendor%g
22639s%@host_os@%$host_os%g
22640s%@target@%$target%g
22641s%@target_alias@%$target_alias%g
22642s%@target_cpu@%$target_cpu%g
22643s%@target_vendor@%$target_vendor%g
22644s%@target_os@%$target_os%g
22645s%@build@%$build%g
22646s%@build_alias@%$build_alias%g
22647s%@build_cpu@%$build_cpu%g
22648s%@build_vendor@%$build_vendor%g
22649s%@build_os@%$build_os%g
22650s%@CC@%$CC%g
22651s%@CPP@%$CPP%g
22652s%@CXX@%$CXX%g
22653s%@RANLIB@%$RANLIB%g
22654s%@AR@%$AR%g
22655s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22656s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22657s%@INSTALL_DATA@%$INSTALL_DATA%g
22658s%@STRIP@%$STRIP%g
22659s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22660s%@YACC@%$YACC%g
22661s%@LEX@%$LEX%g
22662s%@LEXLIB@%$LEXLIB%g
22663s%@LN_S@%$LN_S%g
22664s%@CXXCPP@%$CXXCPP%g
22665s%@PKG_CONFIG@%$PKG_CONFIG%g
22666s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22667s%@GTK_LIBS@%$GTK_LIBS%g
22668s%@GTK_CONFIG@%$GTK_CONFIG%g
22669s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22670s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22671s%@X_CFLAGS@%$X_CFLAGS%g
22672s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22673s%@X_LIBS@%$X_LIBS%g
22674s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
22675s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22676s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22677s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22678s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
22679s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22680s%@RESCOMP@%$RESCOMP%g
22681s%@DEREZ@%$DEREZ%g
22682s%@SETFILE@%$SETFILE%g
22683s%@LIBICONV@%$LIBICONV%g
22684s%@LEX_STEM@%$LEX_STEM%g
22685s%@PATH_IFS@%$PATH_IFS%g
22686s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22687s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22688s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22689s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22690s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
22691s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
22692s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22693s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22694s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22695s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22696s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22697s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22698s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22699s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22700s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22701s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22702s%@WX_ALL@%$WX_ALL%g
22703s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22704s%@SHARED_LD@%$SHARED_LD%g
22705s%@PIC_FLAG@%$PIC_FLAG%g
22706s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22707s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22708s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22709s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22710s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22711s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
22712s%@STATIC_FLAG@%$STATIC_FLAG%g
22713s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22714s%@USE_GUI@%$USE_GUI%g
22715s%@AFMINSTALL@%$AFMINSTALL%g
22716s%@WIN32INSTALL@%$WIN32INSTALL%g
22717s%@TOOLKIT@%$TOOLKIT%g
22718s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22719s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22720s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22721s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22722s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
22723s%@top_builddir@%$top_builddir%g
22724s%@cross_compiling@%$cross_compiling%g
22725s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22726s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22727s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22728s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22729s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22730s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
22731s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
22732s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22733s%@ALL_HEADERS@%$ALL_HEADERS%g
22734s%@ALL_SOURCES@%$ALL_SOURCES%g
22735s%@GUIDIST@%$GUIDIST%g
22736s%@PORT_FILES@%$PORT_FILES%g
22737s%@DISTDIR@%$DISTDIR%g
22738s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22739s%@LDFLAGS_GL@%$LDFLAGS_GL%g
22740s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
22741s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22742s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22743s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22744s%@EXTRADEFS@%$EXTRADEFS%g
22745s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
22746s%@RESFLAGS@%$RESFLAGS%g
22747s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22748s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22749s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22750s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22751s%@LIBWXMACRES@%$LIBWXMACRES%g
22752s%@MACRESCOMP@%$MACRESCOMP%g
22753s%@MACSETFILE@%$MACSETFILE%g
22754s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g
22755s%@GCC@%$GCC%g
22756s%@DLLTOOL@%$DLLTOOL%g
22757s%@AS@%$AS%g
22758s%@NM@%$NM%g
22759s%@LD@%$LD%g
22760s%@MAKEINFO@%$MAKEINFO%g
22761s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
22762s%@INSTALL_DIR@%$INSTALL_DIR%g
22763s%@SET_MAKE@%$SET_MAKE%g
22764s%@subdirs@%$subdirs%g
22765
22766CEOF
22767EOF
22768
22769cat >> $CONFIG_STATUS <<\EOF
22770
22771# Split the substitutions into bite-sized pieces for seds with
22772# small command number limits, like on Digital OSF/1 and HP-UX.
22773ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22774ac_file=1 # Number of current file.
22775ac_beg=1 # First line for current file.
22776ac_end=$ac_max_sed_cmds # Line after last line for current file.
22777ac_more_lines=:
22778ac_sed_cmds=""
22779while $ac_more_lines; do
22780 if test $ac_beg -gt 1; then
22781 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22782 else
22783 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22784 fi
22785 if test ! -s conftest.s$ac_file; then
22786 ac_more_lines=false
22787 rm -f conftest.s$ac_file
22788 else
22789 if test -z "$ac_sed_cmds"; then
22790 ac_sed_cmds="sed -f conftest.s$ac_file"
22791 else
22792 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22793 fi
22794 ac_file=`expr $ac_file + 1`
22795 ac_beg=$ac_end
22796 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22797 fi
22798done
22799if test -z "$ac_sed_cmds"; then
22800 ac_sed_cmds=cat
22801fi
22802EOF
22803
22804cat >> $CONFIG_STATUS <<EOF
22805
22806CONFIG_FILES=\${CONFIG_FILES-"wx-config
22807 version-script
22808 src/make.env
22809 src/makeprog.env
22810 src/makelib.env
22811 Makefile
22812 "}
22813EOF
22814cat >> $CONFIG_STATUS <<\EOF
22815for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22816 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22817 case "$ac_file" in
22818 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22819 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22820 *) ac_file_in="${ac_file}.in" ;;
22821 esac
22822
22823 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22824
22825 # Remove last slash and all that follows it. Not all systems have dirname.
22826 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22827 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22828 # The file is in a subdirectory.
22829 test ! -d "$ac_dir" && mkdir "$ac_dir"
22830 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22831 # A "../" for each directory in $ac_dir_suffix.
22832 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22833 else
22834 ac_dir_suffix= ac_dots=
22835 fi
22836
22837 case "$ac_given_srcdir" in
22838 .) srcdir=.
22839 if test -z "$ac_dots"; then top_srcdir=.
22840 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22841 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22842 *) # Relative path.
22843 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22844 top_srcdir="$ac_dots$ac_given_srcdir" ;;
22845 esac
22846
22847 case "$ac_given_INSTALL" in
22848 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22849 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22850 esac
22851
22852 echo creating "$ac_file"
22853 rm -f "$ac_file"
22854 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22855 case "$ac_file" in
22856 *Makefile*) ac_comsub="1i\\
22857# $configure_input" ;;
22858 *) ac_comsub= ;;
22859 esac
22860
22861 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22862 sed -e "$ac_comsub
22863s%@configure_input@%$configure_input%g
22864s%@srcdir@%$srcdir%g
22865s%@top_srcdir@%$top_srcdir%g
22866s%@INSTALL@%$INSTALL%g
22867" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22868fi; done
22869rm -f conftest.s*
22870
22871# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22872# NAME is the cpp macro being defined and VALUE is the value it is being given.
22873#
22874# ac_d sets the value in "#define NAME VALUE" lines.
22875ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22876ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22877ac_dC='\3'
22878ac_dD='%g'
22879# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22880ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22881ac_uB='\([ ]\)%\1#\2define\3'
22882ac_uC=' '
22883ac_uD='\4%g'
22884# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22885ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22886ac_eB='$%\1#\2define\3'
22887ac_eC=' '
22888ac_eD='%g'
22889
22890if test "${CONFIG_HEADERS+set}" != set; then
22891EOF
22892cat >> $CONFIG_STATUS <<EOF
22893 CONFIG_HEADERS="setup.h:setup.h.in"
22894EOF
22895cat >> $CONFIG_STATUS <<\EOF
22896fi
22897for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22898 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22899 case "$ac_file" in
22900 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22901 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22902 *) ac_file_in="${ac_file}.in" ;;
22903 esac
22904
22905 echo creating $ac_file
22906
22907 rm -f conftest.frag conftest.in conftest.out
22908 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22909 cat $ac_file_inputs > conftest.in
22910
22911EOF
22912
22913# Transform confdefs.h into a sed script conftest.vals that substitutes
22914# the proper values into config.h.in to produce config.h. And first:
22915# Protect against being on the right side of a sed subst in config.status.
22916# Protect against being in an unquoted here document in config.status.
22917rm -f conftest.vals
22918cat > conftest.hdr <<\EOF
22919s/[\\&%]/\\&/g
22920s%[\\$`]%\\&%g
22921s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22922s%ac_d%ac_u%gp
22923s%ac_u%ac_e%gp
22924EOF
22925sed -n -f conftest.hdr confdefs.h > conftest.vals
22926rm -f conftest.hdr
22927
22928# This sed command replaces #undef with comments. This is necessary, for
22929# example, in the case of _POSIX_SOURCE, which is predefined and required
22930# on some systems where configure will not decide to define it.
22931cat >> conftest.vals <<\EOF
22932s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22933EOF
22934
22935# Break up conftest.vals because some shells have a limit on
22936# the size of here documents, and old seds have small limits too.
22937
22938rm -f conftest.tail
22939while :
22940do
22941 ac_lines=`grep -c . conftest.vals`
22942 # grep -c gives empty output for an empty file on some AIX systems.
22943 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22944 # Write a limited-size here document to conftest.frag.
22945 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22946 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22947 echo 'CEOF
22948 sed -f conftest.frag conftest.in > conftest.out
22949 rm -f conftest.in
22950 mv conftest.out conftest.in
22951' >> $CONFIG_STATUS
22952 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22953 rm -f conftest.vals
22954 mv conftest.tail conftest.vals
22955done
22956rm -f conftest.vals
22957
22958cat >> $CONFIG_STATUS <<\EOF
22959 rm -f conftest.frag conftest.h
22960 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22961 cat conftest.in >> conftest.h
22962 rm -f conftest.in
22963 if cmp -s $ac_file conftest.h 2>/dev/null; then
22964 echo "$ac_file is unchanged"
22965 rm -f conftest.h
22966 else
22967 # Remove last slash and all that follows it. Not all systems have dirname.
22968 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22969 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22970 # The file is in a subdirectory.
22971 test ! -d "$ac_dir" && mkdir "$ac_dir"
22972 fi
22973 rm -f $ac_file
22974 mv conftest.h $ac_file
22975 fi
22976fi; done
22977
22978EOF
22979cat >> $CONFIG_STATUS <<EOF
22980
22981 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
22982 LN_S="${LN_S}"
22983
22984
22985EOF
22986cat >> $CONFIG_STATUS <<\EOF
22987
22988 if test ! -h wx-config; then
22989 chmod +x wx-config
22990 mv wx-config wx${TOOLCHAIN_NAME}-config
22991 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
22992 fi
22993
22994 if test ! -d lib; then
22995 mkdir lib
22996 fi
22997 if test ! -d lib/wx; then
22998 mkdir lib/wx
22999 fi
23000 if test ! -d lib/wx/include; then
23001 mkdir lib/wx/include
23002 fi
23003 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
23004 mkdir lib/wx/include/${TOOLCHAIN_NAME}
23005 fi
23006 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
23007 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
23008 fi
23009 if test -f setup.h; then
23010 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
23011 fi
23012
23013exit 0
23014EOF
23015chmod +x $CONFIG_STATUS
23016rm -fr confdefs* $ac_clean_files
23017test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
23018
23019if test "$no_recursion" != yes; then
23020
23021 # Remove --cache-file and --srcdir arguments so they do not pile up.
23022 ac_sub_configure_args=
23023 ac_prev=
23024 for ac_arg in $ac_configure_args; do
23025 if test -n "$ac_prev"; then
23026 ac_prev=
23027 continue
23028 fi
23029 case "$ac_arg" in
23030 -cache-file | --cache-file | --cache-fil | --cache-fi \
23031 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23032 ac_prev=cache_file ;;
23033 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23034 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
23035 ;;
23036 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23037 ac_prev=srcdir ;;
23038 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23039 ;;
23040 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23041 esac
23042 done
23043
23044 for ac_config_dir in demos samples utils contrib; do
23045
23046 # Do not complain, so a configure script can configure whichever
23047 # parts of a large source tree are present.
23048 if test ! -d $srcdir/$ac_config_dir; then
23049 continue
23050 fi
23051
23052 echo configuring in $ac_config_dir
23053
23054 case "$srcdir" in
23055 .) ;;
23056 *)
23057 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
23058 else
23059 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
23060 fi
23061 ;;
23062 esac
23063
23064 ac_popdir=`pwd`
23065 cd $ac_config_dir
23066
23067 # A "../" for each directory in /$ac_config_dir.
23068 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
23069
23070 case "$srcdir" in
23071 .) # No --srcdir option. We are building in place.
23072 ac_sub_srcdir=$srcdir ;;
23073 /*) # Absolute path.
23074 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
23075 *) # Relative path.
23076 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
23077 esac
23078
23079 # Check for guested configure; otherwise get Cygnus style configure.
23080 if test -f $ac_sub_srcdir/configure; then
23081 ac_sub_configure=$ac_sub_srcdir/configure
23082 elif test -f $ac_sub_srcdir/configure.in; then
23083 ac_sub_configure=$ac_configure
23084 else
23085 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
23086 ac_sub_configure=
23087 fi
23088
23089 # The recursion is here.
23090 if test -n "$ac_sub_configure"; then
23091
23092 # Make the cache file name correct relative to the subdirectory.
23093 case "$cache_file" in
23094 /*) ac_sub_cache_file=$cache_file ;;
23095 *) # Relative path.
23096 ac_sub_cache_file="$ac_dots$cache_file" ;;
23097 esac
23098 case "$ac_given_INSTALL" in
23099 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23100 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23101 esac
23102
23103 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
23104 # The eval makes quoting arguments work.
23105 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
23106 then :
23107 else
23108 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
23109 fi
23110 fi
23111
23112 cd $ac_popdir
23113 done
23114fi
23115
23116
23117echo
23118echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
23119echo ""
23120echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
23121
23122echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
23123echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
23124echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
23125
23126echo " What level of wxWindows compatibility should be enabled?"
23127echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
23128echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
23129echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
23130
23131echo " Which libraries should wxWindows use?"
23132echo " jpeg ${wxUSE_LIBJPEG-none}"
23133echo " png ${wxUSE_LIBPNG-none}"
23134echo " regex ${wxUSE_REGEX}"
23135echo " tiff ${wxUSE_LIBTIFF-none}"
23136echo " zlib ${wxUSE_ZLIB}"
23137
23138echo ""
23139