]> git.saurik.com Git - wxWidgets.git/blame_incremental - configure
Remove unnecessary header dependencies. Fix resulting compilation
[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# Configure paths for GTK+
63# Owen Taylor 1997-2001
64
65
66
67# Configure paths for GTK+
68# Owen Taylor 97-11-3
69
70
71
72
73
74
75
76
77# Guess values for system-dependent variables and create Makefiles.
78# Generated automatically using autoconf version 2.13
79# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
80#
81# This configure script is free software; the Free Software Foundation
82# gives unlimited permission to copy, distribute and modify it.
83
84# Defaults:
85ac_help=
86ac_default_prefix=/usr/local
87# Any additions from configure.in:
88ac_help="$ac_help
89 --enable-gui use GUI classes"
90ac_help="$ac_help
91 --enable-universal use wxWindows GUI controls instead of native ones"
92ac_help="$ac_help
93 --with-gtk use GTK+"
94ac_help="$ac_help
95 --with-motif use Motif/Lesstif"
96ac_help="$ac_help
97 --with-mac use Mac OS X"
98ac_help="$ac_help
99 --with-wine use Wine"
100ac_help="$ac_help
101 --with-msw use MS-Windows"
102ac_help="$ac_help
103 --with-pm use OS/2 Presentation Manager"
104ac_help="$ac_help
105 --with-mgl use SciTech MGL"
106ac_help="$ac_help
107 --with-microwin use MicroWindows"
108ac_help="$ac_help
109 --with-x11 use X11"
110ac_help="$ac_help
111 --enable-nanox use NanoX"
112ac_help="$ac_help
113 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
114ac_help="$ac_help
115 --with-libpng use libpng (PNG image format)"
116ac_help="$ac_help
117 --with-libjpeg use libjpeg (JPEG file format)"
118ac_help="$ac_help
119 --with-libtiff use libtiff (TIFF file format)"
120ac_help="$ac_help
121 --with-opengl use OpenGL (or Mesa)"
122ac_help="$ac_help
123 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
124ac_help="$ac_help
125 --with-regex enable support for wxRegEx class"
126ac_help="$ac_help
127 --with-zlib use zlib for LZW compression"
128ac_help="$ac_help
129 --with-odbc use the IODBC and wxODBC classes"
130ac_help="$ac_help
131 --enable-shared create shared library code"
132ac_help="$ac_help
133 --enable-soname set the DT_SONAME field in ELF shared libraries"
134ac_help="$ac_help
135 --enable-optimise create optimised code"
136ac_help="$ac_help
137 --enable-debug same as debug_flag and debug_info"
138ac_help="$ac_help
139 --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)"
140ac_help="$ac_help
141 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
142ac_help="$ac_help
143 --enable-debug_info create code with debugging information"
144ac_help="$ac_help
145 --enable-debug_gdb create code with extra GDB debugging information"
146ac_help="$ac_help
147 --enable-debug_cntxt use wxDebugContext"
148ac_help="$ac_help
149 --enable-mem_tracing create code with memory tracing"
150ac_help="$ac_help
151 --enable-profile create code with profiling information"
152ac_help="$ac_help
153 --enable-no_rtti create code without RTTI information"
154ac_help="$ac_help
155 --enable-no_exceptions create code without C++ exceptions handling"
156ac_help="$ac_help
157 --enable-permissive compile code disregarding strict ANSI"
158ac_help="$ac_help
159 --enable-no_deps create code without dependency information"
160ac_help="$ac_help
161 --enable-compat20 enable wxWindows 2.0 compatibility"
162ac_help="$ac_help
163 --enable-compat22 enable wxWindows 2.2 compatibility"
164ac_help="$ac_help
165 --disable-compat24 disable wxWindows 2.4 compatibility"
166ac_help="$ac_help
167 --enable-rpath=DIR output the rpath flag from wx-config"
168ac_help="$ac_help
169 --enable-intl use internationalization system"
170ac_help="$ac_help
171 --enable-config use wxConfig (and derived) classes"
172ac_help="$ac_help
173 --enable-protocols use wxProtocol and derived classes"
174ac_help="$ac_help
175 --enable-ftp use wxFTP (requires wxProtocol"
176ac_help="$ac_help
177 --enable-http use wxHTTP (requires wxProtocol"
178ac_help="$ac_help
179 --enable-fileproto use wxFileProto class (requires wxProtocol"
180ac_help="$ac_help
181 --enable-sockets use socket/network classes"
182ac_help="$ac_help
183 --enable-ole use OLE classes"
184ac_help="$ac_help
185 --enable-dataobj use data object classes"
186ac_help="$ac_help
187 --enable-ipc use interprocess communication (wxSocket etc.)"
188ac_help="$ac_help
189 --enable-cmdline use wxCmdLineParser class"
190ac_help="$ac_help
191 --enable-datetime use wxDateTime class"
192ac_help="$ac_help
193 --enable-timedate use obsolete wxDate/wxTime classes"
194ac_help="$ac_help
195 --enable-stopwatch use wxStopWatch class"
196ac_help="$ac_help
197 --enable-dialupman use dialup network classes"
198ac_help="$ac_help
199 --enable-apple_ieee use the Apple IEEE codec"
200ac_help="$ac_help
201 --enable-timer use wxTimer class"
202ac_help="$ac_help
203 --enable-wave use wxWave class"
204ac_help="$ac_help
205 --enable-fraction use wxFraction class"
206ac_help="$ac_help
207 --enable-dynlib use wxLibrary class for DLL loading"
208ac_help="$ac_help
209 --enable-dynamicloader use (new) wxDynamicLibrary class"
210ac_help="$ac_help
211 --enable-longlong use wxLongLong class"
212ac_help="$ac_help
213 --enable-geometry use geometry class"
214ac_help="$ac_help
215 --enable-log use logging system"
216ac_help="$ac_help
217 --enable-streams use wxStream etc classes"
218ac_help="$ac_help
219 --enable-file use wxFile classes"
220ac_help="$ac_help
221 --enable-ffile use wxFFile classes"
222ac_help="$ac_help
223 --enable-textbuf use wxTextBuffer class"
224ac_help="$ac_help
225 --enable-textfile use wxTextFile class"
226ac_help="$ac_help
227 --enable-fontmap use font encodings conversion classes"
228ac_help="$ac_help
229 --enable-unicode compile wxString with Unicode support"
230ac_help="$ac_help
231 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
232ac_help="$ac_help
233 --enable-wxprintfv use wxWindows implementation of vprintf()"
234ac_help="$ac_help
235 --enable-std_iostreams use standard C++ stream classes"
236ac_help="$ac_help
237 --enable-filesystem use virtual file systems classes"
238ac_help="$ac_help
239 --enable-fs_inet use virtual HTTP/FTP filesystems"
240ac_help="$ac_help
241 --enable-fs_zip use virtual ZIP filesystems"
242ac_help="$ac_help
243 --enable-zipstream use wxZipInputStream"
244ac_help="$ac_help
245 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
246ac_help="$ac_help
247 --enable-snglinst use wxSingleInstanceChecker class"
248ac_help="$ac_help
249 --enable-mimetype use wxMimeTypesManager"
250ac_help="$ac_help
251 --enable-sysoptions use wxSystemOptions"
252ac_help="$ac_help
253 --enable-url use wxURL class"
254ac_help="$ac_help
255 --enable-protocol use wxProtocol class"
256ac_help="$ac_help
257 --enable-protocol-http HTTP support in wxProtocol"
258ac_help="$ac_help
259 --enable-protocol-ftp FTP support in wxProtocol"
260ac_help="$ac_help
261 --enable-protocol-file FILE support in wxProtocol"
262ac_help="$ac_help
263 --enable-threads use threads"
264ac_help="$ac_help
265 --enable-docview use document view architecture"
266ac_help="$ac_help
267 --enable-help use help subsystem"
268ac_help="$ac_help
269 --enable-mshtmlhelp use MS HTML Help (win32)"
270ac_help="$ac_help
271 --enable-html use wxHTML sub-library"
272ac_help="$ac_help
273 --enable-htmlhelp use wxHTML-based help"
274ac_help="$ac_help
275 --enable-constraints use layout-constraints system"
276ac_help="$ac_help
277 --enable-printarch use printing architecture"
278ac_help="$ac_help
279 --enable-mdi use multiple document interface architecture"
280ac_help="$ac_help
281 --enable-loggui use standard GUI logger"
282ac_help="$ac_help
283 --enable-logwin use wxLogWindow"
284ac_help="$ac_help
285 --enable-logdialog use wxLogDialog"
286ac_help="$ac_help
287 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
288ac_help="$ac_help
289 --enable-prologio use Prolog IO library"
290ac_help="$ac_help
291 --enable-resources use wxWindows resources"
292ac_help="$ac_help
293 --enable-xresources use X resources for save (default for gtk+)"
294ac_help="$ac_help
295 --enable-clipboard use wxClipboard classes"
296ac_help="$ac_help
297 --enable-dnd use Drag'n'Drop classes"
298ac_help="$ac_help
299 --enable-metafile use win32 metafiles"
300ac_help="$ac_help
301 --enable-treelayout use wxTreeLayout classes"
302ac_help="$ac_help
303 --enable-controls use all usual controls"
304ac_help="$ac_help
305 --enable-accel use accelerators"
306ac_help="$ac_help
307 --enable-button use wxButton class"
308ac_help="$ac_help
309 --enable-bmpbutton use wxBitmapButton class"
310ac_help="$ac_help
311 --enable-calendar use wxCalendarCtrl class"
312ac_help="$ac_help
313 --enable-caret use wxCaret class"
314ac_help="$ac_help
315 --enable-checkbox use wxCheckBox class"
316ac_help="$ac_help
317 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
318ac_help="$ac_help
319 --enable-choice use wxChoice class"
320ac_help="$ac_help
321 --enable-combobox use wxComboBox classes"
322ac_help="$ac_help
323 --enable-gauge use wxGauge class"
324ac_help="$ac_help
325 --enable-grid use wxGrid class"
326ac_help="$ac_help
327 --enable-newgrid use new wxGrid class"
328ac_help="$ac_help
329 --enable-imaglist use wxImageList class"
330ac_help="$ac_help
331 --enable-listbox use wxListBox class"
332ac_help="$ac_help
333 --enable-listctrl use wxListCtrl class"
334ac_help="$ac_help
335 --enable-notebook use wxNotebook class"
336ac_help="$ac_help
337 --enable-propsheet use wxPropertySheet class"
338ac_help="$ac_help
339 --enable-radiobox use wxRadioBox class"
340ac_help="$ac_help
341 --enable-radiobtn use wxRadioButton class"
342ac_help="$ac_help
343 --enable-sash use wxSashWindow class"
344ac_help="$ac_help
345 --enable-scrollbar use wxScrollBar class and scrollable windows"
346ac_help="$ac_help
347 --enable-slider use wxSlider class"
348ac_help="$ac_help
349 --enable-spinbtn use wxSpinButton class"
350ac_help="$ac_help
351 --enable-spinctrl use wxSpinCtrl class"
352ac_help="$ac_help
353 --enable-splitter use wxSplitterWindow class"
354ac_help="$ac_help
355 --enable-statbmp use wxStaticBitmap class"
356ac_help="$ac_help
357 --enable-statbox use wxStaticBox class"
358ac_help="$ac_help
359 --enable-statline use wxStaticLine class"
360ac_help="$ac_help
361 --enable-stattext use wxStaticText class"
362ac_help="$ac_help
363 --enable-statusbar use wxStatusBar class"
364ac_help="$ac_help
365 --enable-tabdialog use wxTabControl class"
366ac_help="$ac_help
367 --enable-textctrl use wxTextCtrl class"
368ac_help="$ac_help
369 --enable-togglebtn use wxToggleButton class"
370ac_help="$ac_help
371 --enable-toolbar use wxToolBar class"
372ac_help="$ac_help
373 --enable-tbarnative use native wxToolBar class"
374ac_help="$ac_help
375 --enable-tbarsmpl use wxToolBarSimple class"
376ac_help="$ac_help
377 --enable-treectrl use wxTreeCtrl class"
378ac_help="$ac_help
379 --enable-tipwindow use wxTipWindow class"
380ac_help="$ac_help
381 --enable-popupwin use wxPopUpWindow class"
382ac_help="$ac_help
383 --enable-commondlg use all common dialogs"
384ac_help="$ac_help
385 --enable-choicedlg use wxChoiceDialog"
386ac_help="$ac_help
387 --enable-coldlg use wxColourDialog"
388ac_help="$ac_help
389 --enable-filedlg use wxFileDialog"
390ac_help="$ac_help
391 --enable-finddlg use wxFindReplaceDialog"
392ac_help="$ac_help
393 --enable-fontdlg use wxFontDialog"
394ac_help="$ac_help
395 --enable-dirdlg use wxDirDialog"
396ac_help="$ac_help
397 --enable-msgdlg use wxMessageDialog"
398ac_help="$ac_help
399 --enable-numberdlg use wxNumberEntryDialog"
400ac_help="$ac_help
401 --enable-splash use wxSplashScreen"
402ac_help="$ac_help
403 --enable-textdlg use wxTextDialog"
404ac_help="$ac_help
405 --enable-tipdlg use startup tips"
406ac_help="$ac_help
407 --enable-progressdlg use wxProgressDialog"
408ac_help="$ac_help
409 --enable-wizarddlg use wxWizard"
410ac_help="$ac_help
411 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
412ac_help="$ac_help
413 --enable-miniframe use wxMiniFrame class"
414ac_help="$ac_help
415 --enable-tooltips use wxToolTip class"
416ac_help="$ac_help
417 --enable-splines use spline drawing code"
418ac_help="$ac_help
419 --enable-validators use wxValidator and derived classes"
420ac_help="$ac_help
421 --enable-busyinfo use wxBusyInfo"
422ac_help="$ac_help
423 --enable-joystick use wxJoystick (Linux only)"
424ac_help="$ac_help
425 --enable-metafiles use wxMetaFile (Windows only)"
426ac_help="$ac_help
427 --enable-dragimage use wxDragImage"
428ac_help="$ac_help
429 --enable-palette use wxPalette class"
430ac_help="$ac_help
431 --enable-image use wxImage class"
432ac_help="$ac_help
433 --enable-gif use gif images (GIF file format)"
434ac_help="$ac_help
435 --enable-pcx use pcx images (PCX file format)"
436ac_help="$ac_help
437 --enable-iff use iff images (IFF file format)"
438ac_help="$ac_help
439 --enable-pnm use pnm images (PNM file format)"
440ac_help="$ac_help
441 --enable-xpm use xpm images (XPM file format)"
442ac_help="$ac_help
443 --enable-icocur use Windows ICO and CUR formats"
444ac_help="$ac_help
445 --disable-largefile omit support for large files"
446ac_help="$ac_help
447 --disable-gtktest do not try to compile and run a test GTK+ program"
448ac_help="$ac_help
449 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
450ac_help="$ac_help
451 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
452ac_help="$ac_help
453 --disable-gtktest Do not try to compile and run a test GTK program"
454ac_help="$ac_help
455 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
456ac_help="$ac_help
457 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
458ac_help="$ac_help
459 --disable-gtktest Do not try to compile and run a test GTK program"
460ac_help="$ac_help
461 --with-x use the X Window System"
462ac_help="$ac_help
463 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
464
465# Initialize some variables set by options.
466# The variables have the same names as the options, with
467# dashes changed to underlines.
468build=NONE
469cache_file=./config.cache
470exec_prefix=NONE
471host=NONE
472no_create=
473nonopt=NONE
474no_recursion=
475prefix=NONE
476program_prefix=NONE
477program_suffix=NONE
478program_transform_name=s,x,x,
479silent=
480site=
481srcdir=
482target=NONE
483verbose=
484x_includes=NONE
485x_libraries=NONE
486bindir='${exec_prefix}/bin'
487sbindir='${exec_prefix}/sbin'
488libexecdir='${exec_prefix}/libexec'
489datadir='${prefix}/share'
490sysconfdir='${prefix}/etc'
491sharedstatedir='${prefix}/com'
492localstatedir='${prefix}/var'
493libdir='${exec_prefix}/lib'
494includedir='${prefix}/include'
495oldincludedir='/usr/include'
496infodir='${prefix}/info'
497mandir='${prefix}/man'
498
499# Initialize some other variables.
500subdirs=
501MFLAGS= MAKEFLAGS=
502SHELL=${CONFIG_SHELL-/bin/sh}
503# Maximum number of lines to put in a shell here document.
504ac_max_here_lines=12
505
506ac_prev=
507for ac_option
508do
509
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
513 ac_prev=
514 continue
515 fi
516
517 case "$ac_option" in
518 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
519 *) ac_optarg= ;;
520 esac
521
522 # Accept the important Cygnus configure options, so we can diagnose typos.
523
524 case "$ac_option" in
525
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 ac_prev=bindir ;;
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 bindir="$ac_optarg" ;;
530
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build="$ac_optarg" ;;
535
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file="$ac_optarg" ;;
542
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 ac_prev=datadir ;;
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 | --da=*)
547 datadir="$ac_optarg" ;;
548
549 -disable-* | --disable-*)
550 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
551 # Reject names that are not valid shell variable names.
552 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
553 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
554 fi
555 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
556 eval "enable_${ac_feature}=no" ;;
557
558 -enable-* | --enable-*)
559 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
560 # Reject names that are not valid shell variable names.
561 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
562 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
563 fi
564 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
565 case "$ac_option" in
566 *=*) ;;
567 *) ac_optarg=yes ;;
568 esac
569 eval "enable_${ac_feature}='$ac_optarg'" ;;
570
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix="$ac_optarg" ;;
579
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
582 with_gas=yes ;;
583
584 -help | --help | --hel | --he)
585 # Omit some internal or obsolete options to make the list less imposing.
586 # This message is too long to be a string in the A/UX 3.1 sh.
587 cat << EOF
588Usage: configure [options] [host]
589Options: [defaults in brackets after descriptions]
590Configuration:
591 --cache-file=FILE cache test results in FILE
592 --help print this message
593 --no-create do not create output files
594 --quiet, --silent do not print \`checking...' messages
595 --version print the version of autoconf that created configure
596Directory and file names:
597 --prefix=PREFIX install architecture-independent files in PREFIX
598 [$ac_default_prefix]
599 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
600 [same as prefix]
601 --bindir=DIR user executables in DIR [EPREFIX/bin]
602 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
603 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
604 --datadir=DIR read-only architecture-independent data in DIR
605 [PREFIX/share]
606 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
607 --sharedstatedir=DIR modifiable architecture-independent data in DIR
608 [PREFIX/com]
609 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
610 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
611 --includedir=DIR C header files in DIR [PREFIX/include]
612 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
613 --infodir=DIR info documentation in DIR [PREFIX/info]
614 --mandir=DIR man documentation in DIR [PREFIX/man]
615 --srcdir=DIR find the sources in DIR [configure dir or ..]
616 --program-prefix=PREFIX prepend PREFIX to installed program names
617 --program-suffix=SUFFIX append SUFFIX to installed program names
618 --program-transform-name=PROGRAM
619 run sed PROGRAM on installed program names
620EOF
621 cat << EOF
622Host type:
623 --build=BUILD configure for building on BUILD [BUILD=HOST]
624 --host=HOST configure for HOST [guessed]
625 --target=TARGET configure for TARGET [TARGET=HOST]
626Features and packages:
627 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
628 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
629 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
630 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
631 --x-includes=DIR X include files are in DIR
632 --x-libraries=DIR X library files are in DIR
633EOF
634 if test -n "$ac_help"; then
635 echo "--enable and --with options recognized:$ac_help"
636 fi
637 exit 0 ;;
638
639 -host | --host | --hos | --ho)
640 ac_prev=host ;;
641 -host=* | --host=* | --hos=* | --ho=*)
642 host="$ac_optarg" ;;
643
644 -includedir | --includedir | --includedi | --included | --include \
645 | --includ | --inclu | --incl | --inc)
646 ac_prev=includedir ;;
647 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
648 | --includ=* | --inclu=* | --incl=* | --inc=*)
649 includedir="$ac_optarg" ;;
650
651 -infodir | --infodir | --infodi | --infod | --info | --inf)
652 ac_prev=infodir ;;
653 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
654 infodir="$ac_optarg" ;;
655
656 -libdir | --libdir | --libdi | --libd)
657 ac_prev=libdir ;;
658 -libdir=* | --libdir=* | --libdi=* | --libd=*)
659 libdir="$ac_optarg" ;;
660
661 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
662 | --libexe | --libex | --libe)
663 ac_prev=libexecdir ;;
664 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
665 | --libexe=* | --libex=* | --libe=*)
666 libexecdir="$ac_optarg" ;;
667
668 -localstatedir | --localstatedir | --localstatedi | --localstated \
669 | --localstate | --localstat | --localsta | --localst \
670 | --locals | --local | --loca | --loc | --lo)
671 ac_prev=localstatedir ;;
672 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
673 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
674 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
675 localstatedir="$ac_optarg" ;;
676
677 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
678 ac_prev=mandir ;;
679 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
680 mandir="$ac_optarg" ;;
681
682 -nfp | --nfp | --nf)
683 # Obsolete; use --without-fp.
684 with_fp=no ;;
685
686 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
687 | --no-cr | --no-c)
688 no_create=yes ;;
689
690 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
691 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
692 no_recursion=yes ;;
693
694 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
695 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
696 | --oldin | --oldi | --old | --ol | --o)
697 ac_prev=oldincludedir ;;
698 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
699 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
700 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
701 oldincludedir="$ac_optarg" ;;
702
703 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
704 ac_prev=prefix ;;
705 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
706 prefix="$ac_optarg" ;;
707
708 -program-prefix | --program-prefix | --program-prefi | --program-pref \
709 | --program-pre | --program-pr | --program-p)
710 ac_prev=program_prefix ;;
711 -program-prefix=* | --program-prefix=* | --program-prefi=* \
712 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
713 program_prefix="$ac_optarg" ;;
714
715 -program-suffix | --program-suffix | --program-suffi | --program-suff \
716 | --program-suf | --program-su | --program-s)
717 ac_prev=program_suffix ;;
718 -program-suffix=* | --program-suffix=* | --program-suffi=* \
719 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
720 program_suffix="$ac_optarg" ;;
721
722 -program-transform-name | --program-transform-name \
723 | --program-transform-nam | --program-transform-na \
724 | --program-transform-n | --program-transform- \
725 | --program-transform | --program-transfor \
726 | --program-transfo | --program-transf \
727 | --program-trans | --program-tran \
728 | --progr-tra | --program-tr | --program-t)
729 ac_prev=program_transform_name ;;
730 -program-transform-name=* | --program-transform-name=* \
731 | --program-transform-nam=* | --program-transform-na=* \
732 | --program-transform-n=* | --program-transform-=* \
733 | --program-transform=* | --program-transfor=* \
734 | --program-transfo=* | --program-transf=* \
735 | --program-trans=* | --program-tran=* \
736 | --progr-tra=* | --program-tr=* | --program-t=*)
737 program_transform_name="$ac_optarg" ;;
738
739 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
740 | -silent | --silent | --silen | --sile | --sil)
741 silent=yes ;;
742
743 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
744 ac_prev=sbindir ;;
745 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
746 | --sbi=* | --sb=*)
747 sbindir="$ac_optarg" ;;
748
749 -sharedstatedir | --sharedstatedir | --sharedstatedi \
750 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
751 | --sharedst | --shareds | --shared | --share | --shar \
752 | --sha | --sh)
753 ac_prev=sharedstatedir ;;
754 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
755 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
756 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
757 | --sha=* | --sh=*)
758 sharedstatedir="$ac_optarg" ;;
759
760 -site | --site | --sit)
761 ac_prev=site ;;
762 -site=* | --site=* | --sit=*)
763 site="$ac_optarg" ;;
764
765 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
766 ac_prev=srcdir ;;
767 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
768 srcdir="$ac_optarg" ;;
769
770 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
771 | --syscon | --sysco | --sysc | --sys | --sy)
772 ac_prev=sysconfdir ;;
773 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
774 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
775 sysconfdir="$ac_optarg" ;;
776
777 -target | --target | --targe | --targ | --tar | --ta | --t)
778 ac_prev=target ;;
779 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
780 target="$ac_optarg" ;;
781
782 -v | -verbose | --verbose | --verbos | --verbo | --verb)
783 verbose=yes ;;
784
785 -version | --version | --versio | --versi | --vers)
786 echo "configure generated by autoconf version 2.13"
787 exit 0 ;;
788
789 -with-* | --with-*)
790 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
791 # Reject names that are not valid shell variable names.
792 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
793 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
794 fi
795 ac_package=`echo $ac_package| sed 's/-/_/g'`
796 case "$ac_option" in
797 *=*) ;;
798 *) ac_optarg=yes ;;
799 esac
800 eval "with_${ac_package}='$ac_optarg'" ;;
801
802 -without-* | --without-*)
803 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
804 # Reject names that are not valid shell variable names.
805 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
806 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
807 fi
808 ac_package=`echo $ac_package| sed 's/-/_/g'`
809 eval "with_${ac_package}=no" ;;
810
811 --x)
812 # Obsolete; use --with-x.
813 with_x=yes ;;
814
815 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
816 | --x-incl | --x-inc | --x-in | --x-i)
817 ac_prev=x_includes ;;
818 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
819 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
820 x_includes="$ac_optarg" ;;
821
822 -x-libraries | --x-libraries | --x-librarie | --x-librari \
823 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
824 ac_prev=x_libraries ;;
825 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
826 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
827 x_libraries="$ac_optarg" ;;
828
829 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
830 ;;
831
832 *)
833 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
834 echo "configure: warning: $ac_option: invalid host type" 1>&2
835 fi
836 if test "x$nonopt" != xNONE; then
837 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
838 fi
839 nonopt="$ac_option"
840 ;;
841
842 esac
843done
844
845if test -n "$ac_prev"; then
846 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
847fi
848
849trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
850
851# File descriptor usage:
852# 0 standard input
853# 1 file creation
854# 2 errors and warnings
855# 3 some systems may open it to /dev/tty
856# 4 used on the Kubota Titan
857# 6 checking for... messages and results
858# 5 compiler messages saved in config.log
859if test "$silent" = yes; then
860 exec 6>/dev/null
861else
862 exec 6>&1
863fi
864exec 5>./config.log
865
866echo "\
867This file contains any messages produced by compilers while
868running configure, to aid debugging if configure makes a mistake.
869" 1>&5
870
871# Strip out --no-create and --no-recursion so they do not pile up.
872# Also quote any args containing shell metacharacters.
873ac_configure_args=
874for ac_arg
875do
876 case "$ac_arg" in
877 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
878 | --no-cr | --no-c) ;;
879 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
880 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
881 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
882 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
883 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
884 esac
885done
886
887# NLS nuisances.
888# Only set these to C if already set. These must not be set unconditionally
889# because not all systems understand e.g. LANG=C (notably SCO).
890# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
891# Non-C LC_CTYPE values break the ctype check.
892if test "${LANG+set}" = set; then LANG=C; export LANG; fi
893if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
894if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
895if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
896
897# confdefs.h avoids OS command line length limits that DEFS can exceed.
898rm -rf conftest* confdefs.h
899# AIX cpp loses on an empty file, so make sure it contains at least a newline.
900echo > confdefs.h
901
902# A filename unique to this package, relative to the directory that
903# configure is in, which we can look for to find out if srcdir is correct.
904ac_unique_file=wx-config.in
905
906# Find the source files, if location was not specified.
907if test -z "$srcdir"; then
908 ac_srcdir_defaulted=yes
909 # Try the directory containing this script, then its parent.
910 ac_prog=$0
911 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
912 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
913 srcdir=$ac_confdir
914 if test ! -r $srcdir/$ac_unique_file; then
915 srcdir=..
916 fi
917else
918 ac_srcdir_defaulted=no
919fi
920if test ! -r $srcdir/$ac_unique_file; then
921 if test "$ac_srcdir_defaulted" = yes; then
922 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
923 else
924 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
925 fi
926fi
927srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
928
929# Prefer explicitly selected file to automatically selected ones.
930if test -z "$CONFIG_SITE"; then
931 if test "x$prefix" != xNONE; then
932 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
933 else
934 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
935 fi
936fi
937for ac_site_file in $CONFIG_SITE; do
938 if test -r "$ac_site_file"; then
939 echo "loading site script $ac_site_file"
940 . "$ac_site_file"
941 fi
942done
943
944if test -r "$cache_file"; then
945 echo "loading cache $cache_file"
946 . $cache_file
947else
948 echo "creating cache $cache_file"
949 > $cache_file
950fi
951
952ac_ext=c
953# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
954ac_cpp='$CPP $CPPFLAGS'
955ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
956ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
957cross_compiling=$ac_cv_prog_cc_cross
958
959ac_exeext=
960ac_objext=o
961if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
962 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
963 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
964 ac_n= ac_c='
965' ac_t=' '
966 else
967 ac_n=-n ac_c= ac_t=
968 fi
969else
970 ac_n= ac_c='\c' ac_t=
971fi
972
973
974
975ac_aux_dir=
976for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
977 if test -f $ac_dir/install-sh; then
978 ac_aux_dir=$ac_dir
979 ac_install_sh="$ac_aux_dir/install-sh -c"
980 break
981 elif test -f $ac_dir/install.sh; then
982 ac_aux_dir=$ac_dir
983 ac_install_sh="$ac_aux_dir/install.sh -c"
984 break
985 fi
986done
987if test -z "$ac_aux_dir"; then
988 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
989fi
990ac_config_guess=$ac_aux_dir/config.guess
991ac_config_sub=$ac_aux_dir/config.sub
992ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
993
994
995# Do some error checking and defaulting for the host and target type.
996# The inputs are:
997# configure --host=HOST --target=TARGET --build=BUILD NONOPT
998#
999# The rules are:
1000# 1. You are not allowed to specify --host, --target, and nonopt at the
1001# same time.
1002# 2. Host defaults to nonopt.
1003# 3. If nonopt is not specified, then host defaults to the current host,
1004# as determined by config.guess.
1005# 4. Target and build default to nonopt.
1006# 5. If nonopt is not specified, then target and build default to host.
1007
1008# The aliases save the names the user supplied, while $host etc.
1009# will get canonicalized.
1010case $host---$target---$nonopt in
1011NONE---*---* | *---NONE---* | *---*---NONE) ;;
1012*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1013esac
1014
1015
1016# Make sure we can run config.sub.
1017if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1018else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1019fi
1020
1021echo $ac_n "checking host system type""... $ac_c" 1>&6
1022echo "configure:1023: checking host system type" >&5
1023
1024host_alias=$host
1025case "$host_alias" in
1026NONE)
1027 case $nonopt in
1028 NONE)
1029 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1030 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1031 fi ;;
1032 *) host_alias=$nonopt ;;
1033 esac ;;
1034esac
1035
1036host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1037host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1038host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1039host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1040echo "$ac_t""$host" 1>&6
1041
1042echo $ac_n "checking target system type""... $ac_c" 1>&6
1043echo "configure:1044: checking target system type" >&5
1044
1045target_alias=$target
1046case "$target_alias" in
1047NONE)
1048 case $nonopt in
1049 NONE) target_alias=$host_alias ;;
1050 *) target_alias=$nonopt ;;
1051 esac ;;
1052esac
1053
1054target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1055target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1056target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1057target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1058echo "$ac_t""$target" 1>&6
1059
1060echo $ac_n "checking build system type""... $ac_c" 1>&6
1061echo "configure:1062: checking build system type" >&5
1062
1063build_alias=$build
1064case "$build_alias" in
1065NONE)
1066 case $nonopt in
1067 NONE) build_alias=$host_alias ;;
1068 *) build_alias=$nonopt ;;
1069 esac ;;
1070esac
1071
1072build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1073build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1074build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1075build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1076echo "$ac_t""$build" 1>&6
1077
1078test "$host_alias" != "$target_alias" &&
1079 test "$program_prefix$program_suffix$program_transform_name" = \
1080 NONENONEs,x,x, &&
1081 program_prefix=${target_alias}-
1082
1083
1084
1085WX_MAJOR_VERSION_NUMBER=2
1086WX_MINOR_VERSION_NUMBER=5
1087WX_RELEASE_NUMBER=0
1088
1089WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1090WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1091
1092WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1093
1094WX_CURRENT=0
1095WX_REVISION=0
1096WX_AGE=0
1097
1098
1099
1100USE_UNIX=1
1101USE_WIN32=0
1102USE_DOS=0
1103USE_BEOS=0
1104USE_MAC=0
1105
1106USE_LINUX=
1107USE_SGI=
1108USE_HPUX=
1109USE_SYSV=
1110USE_SVR4=
1111USE_AIX=
1112USE_SUN=
1113USE_SOLARIS=
1114USE_SUNOS=
1115USE_ALPHA=
1116USE_OSF=
1117USE_BSD=
1118USE_DARWIN=
1119USE_FREEBSD=
1120USE_OPENBSD=
1121USE_NETBSD=
1122USE_VMS=
1123USE_ULTRIX=
1124USE_DATA_GENERAL=
1125
1126NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1127
1128ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1129
1130DEFAULT_wxUSE_GTK=0
1131DEFAULT_wxUSE_MAC=0
1132DEFAULT_wxUSE_MGL=0
1133DEFAULT_wxUSE_MICROWIN=0
1134DEFAULT_wxUSE_MOTIF=0
1135DEFAULT_wxUSE_MSW=0
1136DEFAULT_wxUSE_PM=0
1137DEFAULT_wxUSE_X11=0
1138
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 *-*-cygwin* | *-*-mingw32* )
1328 SO_SUFFIX=dll
1329 PROGRAM_EXT=".exe"
1330 RESCOMP=windres
1331 DEFAULT_DEFAULT_wxUSE_MSW=1
1332 ;;
1333
1334 *-pc-msdosdjgpp )
1335 USE_UNIX=0
1336 USE_DOS=1
1337 cat >> confdefs.h <<\EOF
1338#define __DOS__ 1
1339EOF
1340
1341 PROGRAM_EXT=".exe"
1342 DEFAULT_DEFAULT_wxUSE_MGL=1
1343 LIBS="$LIBS -lstdc++"
1344 ;;
1345
1346 *-pc-os2_emx | *-pc-os2-emx )
1347 cat >> confdefs.h <<\EOF
1348#define __EMX__ 1
1349EOF
1350
1351 PROGRAM_EXT=".exe"
1352 DEFAULT_DEFAULT_wxUSE_PM=1
1353 ;;
1354
1355 powerpc-*-darwin* )
1356 USE_BSD=1
1357 USE_DARWIN=1
1358 SO_SUFFIX=dylib
1359 cat >> confdefs.h <<\EOF
1360#define __BSD__ 1
1361EOF
1362
1363 cat >> confdefs.h <<\EOF
1364#define __DARWIN__ 1
1365EOF
1366
1367 cat >> confdefs.h <<\EOF
1368#define __POWERPC__ 1
1369EOF
1370
1371 cat >> confdefs.h <<\EOF
1372#define TARGET_CARBON 1
1373EOF
1374
1375 DEFAULT_DEFAULT_wxUSE_MAC=1
1376 ;;
1377
1378 *-*-beos* )
1379 USE_BEOS=1
1380 cat >> confdefs.h <<\EOF
1381#define __BEOS__ 1
1382EOF
1383
1384 ;;
1385
1386 *)
1387 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1388esac
1389
1390
1391
1392
1393 wx_arg_cache_file="configarg.cache"
1394 echo "loading argument cache $wx_arg_cache_file"
1395 rm -f ${wx_arg_cache_file}.tmp
1396 touch ${wx_arg_cache_file}.tmp
1397 touch ${wx_arg_cache_file}
1398
1399
1400DEBUG_CONFIGURE=0
1401if test $DEBUG_CONFIGURE = 1; then
1402 DEFAULT_wxUSE_UNIVERSAL=no
1403
1404 DEFAULT_wxUSE_NANOX=no
1405
1406 DEFAULT_wxUSE_THREADS=yes
1407
1408 DEFAULT_wxUSE_SHARED=yes
1409 DEFAULT_wxUSE_SONAME=no
1410 DEFAULT_wxUSE_OPTIMISE=no
1411 DEFAULT_wxUSE_PROFILE=no
1412 DEFAULT_wxUSE_NO_DEPS=no
1413 DEFAULT_wxUSE_NO_RTTI=no
1414 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1415 DEFAULT_wxUSE_PERMISSIVE=no
1416 DEFAULT_wxUSE_DEBUG_FLAG=yes
1417 DEFAULT_wxUSE_DEBUG_INFO=yes
1418 DEFAULT_wxUSE_DEBUG_GDB=yes
1419 DEFAULT_wxUSE_MEM_TRACING=no
1420 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1421 DEFAULT_wxUSE_DMALLOC=no
1422 DEFAULT_wxUSE_PRECOMP=no
1423 DEFAULT_wxUSE_APPLE_IEEE=no
1424
1425 DEFAULT_wxUSE_LOG=yes
1426 DEFAULT_wxUSE_LOGWINDOW=no
1427 DEFAULT_wxUSE_LOGGUI=no
1428 DEFAULT_wxUSE_LOGDIALOG=no
1429
1430 DEFAULT_wxUSE_GUI=yes
1431 DEFAULT_wxUSE_CONTROLS=no
1432
1433 DEFAULT_wxUSE_REGEX=no
1434 DEFAULT_wxUSE_ZLIB=no
1435 DEFAULT_wxUSE_LIBPNG=no
1436 DEFAULT_wxUSE_LIBJPEG=no
1437 DEFAULT_wxUSE_LIBTIFF=no
1438 DEFAULT_wxUSE_ODBC=no
1439 DEFAULT_wxUSE_OPENGL=no
1440
1441 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1442 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1443 DEFAULT_wxUSE_STD_IOSTREAM=no
1444 DEFAULT_wxUSE_CMDLINE_PARSER=no
1445 DEFAULT_wxUSE_DATETIME=no
1446 DEFAULT_wxUSE_TIMEDATE=no
1447 DEFAULT_wxUSE_TIMER=no
1448 DEFAULT_wxUSE_STOPWATCH=no
1449 DEFAULT_wxUSE_FILE=no
1450 DEFAULT_wxUSE_FFILE=no
1451 DEFAULT_wxUSE_TEXTBUFFER=no
1452 DEFAULT_wxUSE_TEXTFILE=no
1453 DEFAULT_wxUSE_WAVE=no
1454 DEFAULT_wxUSE_INTL=no
1455 DEFAULT_wxUSE_CONFIG=no
1456 DEFAULT_wxUSE_FONTMAP=no
1457 DEFAULT_wxUSE_STREAMS=no
1458 DEFAULT_wxUSE_SOCKETS=no
1459 DEFAULT_wxUSE_OLE=no
1460 DEFAULT_wxUSE_DATAOBJ=no
1461 DEFAULT_wxUSE_DIALUP_MANAGER=no
1462 DEFAULT_wxUSE_JOYSTICK=no
1463 DEFAULT_wxUSE_DYNLIB_CLASS=no
1464 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1465 DEFAULT_wxUSE_LONGLONG=no
1466 DEFAULT_wxUSE_GEOMETRY=no
1467
1468 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1469 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1470 DEFAULT_wxUSE_POSTSCRIPT=no
1471
1472 DEFAULT_wxUSE_X_RESOURCES=no
1473 DEFAULT_wxUSE_CLIPBOARD=no
1474 DEFAULT_wxUSE_TOOLTIPS=no
1475 DEFAULT_wxUSE_DRAG_AND_DROP=no
1476 DEFAULT_wxUSE_DRAGIMAGE=no
1477 DEFAULT_wxUSE_SPLINES=no
1478
1479 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1480 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1481 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1482
1483 DEFAULT_wxUSE_PROLOGIO=no
1484 DEFAULT_wxUSE_RESOURCES=no
1485 DEFAULT_wxUSE_CONSTRAINTS=no
1486 DEFAULT_wxUSE_IPC=no
1487 DEFAULT_wxUSE_HELP=no
1488 DEFAULT_wxUSE_MS_HTML_HELP=no
1489 DEFAULT_wxUSE_WXHTML_HELP=no
1490 DEFAULT_wxUSE_TREELAYOUT=no
1491 DEFAULT_wxUSE_METAFILE=no
1492 DEFAULT_wxUSE_MIMETYPE=no
1493 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1494 DEFAULT_wxUSE_PROTOCOL=no
1495 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1496 DEFAULT_wxUSE_PROTOCOL_FTP=no
1497 DEFAULT_wxUSE_PROTOCOL_FILE=no
1498 DEFAULT_wxUSE_URL=no
1499
1500 DEFAULT_wxUSE_COMMONDLGS=no
1501 DEFAULT_wxUSE_CHOICEDLG=no
1502 DEFAULT_wxUSE_COLOURDLG=no
1503 DEFAULT_wxUSE_DIRDLG=no
1504 DEFAULT_wxUSE_FILEDLG=no
1505 DEFAULT_wxUSE_FINDREPLDLG=no
1506 DEFAULT_wxUSE_FONTDLG=no
1507 DEFAULT_wxUSE_MSGDLG=no
1508 DEFAULT_wxUSE_NUMBERDLG=no
1509 DEFAULT_wxUSE_TEXTDLG=no
1510 DEFAULT_wxUSE_SPLASH=no
1511 DEFAULT_wxUSE_STARTUP_TIPS=no
1512 DEFAULT_wxUSE_PROGRESSDLG=no
1513 DEFAULT_wxUSE_WIZARDDLG=no
1514
1515 DEFAULT_wxUSE_MENUS=no
1516 DEFAULT_wxUSE_MINIFRAME=no
1517 DEFAULT_wxUSE_HTML=no
1518 DEFAULT_wxUSE_FILESYSTEM=no
1519 DEFAULT_wxUSE_FS_INET=no
1520 DEFAULT_wxUSE_FS_ZIP=no
1521 DEFAULT_wxUSE_BUSYINFO=no
1522 DEFAULT_wxUSE_ZIPSTREAM=no
1523 DEFAULT_wxUSE_VALIDATORS=no
1524
1525 DEFAULT_wxUSE_ACCEL=no
1526 DEFAULT_wxUSE_BUTTON=no
1527 DEFAULT_wxUSE_BMPBUTTON=no
1528 DEFAULT_wxUSE_CALCTRL=no
1529 DEFAULT_wxUSE_CARET=no
1530 DEFAULT_wxUSE_CHECKBOX=no
1531 DEFAULT_wxUSE_CHECKLST=no
1532 DEFAULT_wxUSE_CHOICE=no
1533 DEFAULT_wxUSE_COMBOBOX=no
1534 DEFAULT_wxUSE_GAUGE=no
1535 DEFAULT_wxUSE_GRID=no
1536 DEFAULT_wxUSE_NEW_GRID=no
1537 DEFAULT_wxUSE_IMAGLIST=no
1538 DEFAULT_wxUSE_LISTBOX=no
1539 DEFAULT_wxUSE_LISTCTRL=no
1540 DEFAULT_wxUSE_NOTEBOOK=no
1541 DEFAULT_wxUSE_PROPSHEET=no
1542 DEFAULT_wxUSE_RADIOBOX=no
1543 DEFAULT_wxUSE_RADIOBTN=no
1544 DEFAULT_wxUSE_SASH=no
1545 DEFAULT_wxUSE_SCROLLBAR=no
1546 DEFAULT_wxUSE_SLIDER=no
1547 DEFAULT_wxUSE_SPINBTN=no
1548 DEFAULT_wxUSE_SPINCTRL=no
1549 DEFAULT_wxUSE_SPLITTER=no
1550 DEFAULT_wxUSE_STATBMP=no
1551 DEFAULT_wxUSE_STATBOX=no
1552 DEFAULT_wxUSE_STATLINE=no
1553 DEFAULT_wxUSE_STATTEXT=no
1554 DEFAULT_wxUSE_STATUSBAR=yes
1555 DEFAULT_wxUSE_TABDIALOG=no
1556 DEFAULT_wxUSE_TEXTCTRL=no
1557 DEFAULT_wxUSE_TOGGLEBTN=no
1558 DEFAULT_wxUSE_TOOLBAR=no
1559 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1560 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1561 DEFAULT_wxUSE_TREECTRL=no
1562 DEFAULT_wxUSE_POPUPWIN=no
1563 DEFAULT_wxUSE_TIPWINDOW=no
1564
1565 DEFAULT_wxUSE_UNICODE=no
1566 DEFAULT_wxUSE_UNICODE_MSLU=no
1567 DEFAULT_wxUSE_WCSRTOMBS=no
1568
1569 DEFAULT_wxUSE_PALETTE=no
1570 DEFAULT_wxUSE_IMAGE=no
1571 DEFAULT_wxUSE_GIF=no
1572 DEFAULT_wxUSE_PCX=no
1573 DEFAULT_wxUSE_PNM=no
1574 DEFAULT_wxUSE_IFF=no
1575 DEFAULT_wxUSE_XPM=no
1576 DEFAULT_wxUSE_ICO_CUR=no
1577else
1578 DEFAULT_wxUSE_UNIVERSAL=no
1579
1580 DEFAULT_wxUSE_NANOX=no
1581
1582 DEFAULT_wxUSE_THREADS=yes
1583
1584 DEFAULT_wxUSE_SHARED=yes
1585 DEFAULT_wxUSE_SONAME=no
1586 DEFAULT_wxUSE_OPTIMISE=yes
1587 DEFAULT_wxUSE_PROFILE=no
1588 DEFAULT_wxUSE_NO_DEPS=no
1589 DEFAULT_wxUSE_NO_RTTI=no
1590 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1591 DEFAULT_wxUSE_PERMISSIVE=no
1592 DEFAULT_wxUSE_DEBUG_FLAG=no
1593 DEFAULT_wxUSE_DEBUG_INFO=no
1594 DEFAULT_wxUSE_DEBUG_GDB=no
1595 DEFAULT_wxUSE_MEM_TRACING=no
1596 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1597 DEFAULT_wxUSE_DMALLOC=no
1598 DEFAULT_wxUSE_PRECOMP=no
1599 DEFAULT_wxUSE_APPLE_IEEE=yes
1600
1601 DEFAULT_wxUSE_LOG=yes
1602 DEFAULT_wxUSE_LOGWINDOW=yes
1603 DEFAULT_wxUSE_LOGGUI=yes
1604 DEFAULT_wxUSE_LOGDIALOG=yes
1605
1606 DEFAULT_wxUSE_GUI=yes
1607
1608 DEFAULT_wxUSE_REGEX=yes
1609 DEFAULT_wxUSE_ZLIB=yes
1610 DEFAULT_wxUSE_LIBPNG=yes
1611 DEFAULT_wxUSE_LIBJPEG=yes
1612 DEFAULT_wxUSE_LIBTIFF=yes
1613 DEFAULT_wxUSE_ODBC=no
1614 DEFAULT_wxUSE_OPENGL=no
1615
1616 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1617 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1618 DEFAULT_wxUSE_STD_IOSTREAM=no
1619 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1620 DEFAULT_wxUSE_DATETIME=yes
1621 DEFAULT_wxUSE_TIMEDATE=no
1622 DEFAULT_wxUSE_TIMER=yes
1623 DEFAULT_wxUSE_STOPWATCH=yes
1624 DEFAULT_wxUSE_FILE=yes
1625 DEFAULT_wxUSE_FFILE=yes
1626 DEFAULT_wxUSE_TEXTBUFFER=yes
1627 DEFAULT_wxUSE_TEXTFILE=yes
1628 DEFAULT_wxUSE_WAVE=no
1629 DEFAULT_wxUSE_INTL=yes
1630 DEFAULT_wxUSE_CONFIG=yes
1631 DEFAULT_wxUSE_FONTMAP=yes
1632 DEFAULT_wxUSE_STREAMS=yes
1633 DEFAULT_wxUSE_SOCKETS=yes
1634 DEFAULT_wxUSE_OLE=yes
1635 DEFAULT_wxUSE_DATAOBJ=yes
1636 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1637 DEFAULT_wxUSE_JOYSTICK=yes
1638 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1639 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1640 DEFAULT_wxUSE_LONGLONG=yes
1641 DEFAULT_wxUSE_GEOMETRY=yes
1642
1643 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1644 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1645 DEFAULT_wxUSE_POSTSCRIPT=yes
1646
1647 DEFAULT_wxUSE_X_RESOURCES=no
1648 DEFAULT_wxUSE_CLIPBOARD=yes
1649 DEFAULT_wxUSE_TOOLTIPS=yes
1650 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1651 DEFAULT_wxUSE_DRAGIMAGE=yes
1652 DEFAULT_wxUSE_SPLINES=yes
1653
1654 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1655 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1656 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1657
1658 DEFAULT_wxUSE_PROLOGIO=no
1659 DEFAULT_wxUSE_RESOURCES=no
1660 DEFAULT_wxUSE_CONSTRAINTS=yes
1661 DEFAULT_wxUSE_IPC=yes
1662 DEFAULT_wxUSE_HELP=yes
1663 DEFAULT_wxUSE_MS_HTML_HELP=yes
1664 DEFAULT_wxUSE_WXHTML_HELP=yes
1665 DEFAULT_wxUSE_TREELAYOUT=yes
1666 DEFAULT_wxUSE_METAFILE=yes
1667 DEFAULT_wxUSE_MIMETYPE=yes
1668 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1669 DEFAULT_wxUSE_PROTOCOL=yes
1670 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1671 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1672 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1673 DEFAULT_wxUSE_URL=yes
1674
1675 DEFAULT_wxUSE_COMMONDLGS=yes
1676 DEFAULT_wxUSE_CHOICEDLG=yes
1677 DEFAULT_wxUSE_COLOURDLG=yes
1678 DEFAULT_wxUSE_DIRDLG=yes
1679 DEFAULT_wxUSE_FILEDLG=yes
1680 DEFAULT_wxUSE_FINDREPLDLG=yes
1681 DEFAULT_wxUSE_FONTDLG=yes
1682 DEFAULT_wxUSE_MSGDLG=yes
1683 DEFAULT_wxUSE_NUMBERDLG=yes
1684 DEFAULT_wxUSE_TEXTDLG=yes
1685 DEFAULT_wxUSE_SPLASH=yes
1686 DEFAULT_wxUSE_STARTUP_TIPS=yes
1687 DEFAULT_wxUSE_PROGRESSDLG=yes
1688 DEFAULT_wxUSE_WIZARDDLG=yes
1689
1690 DEFAULT_wxUSE_MENUS=yes
1691 DEFAULT_wxUSE_MINIFRAME=yes
1692 DEFAULT_wxUSE_HTML=yes
1693 DEFAULT_wxUSE_FILESYSTEM=yes
1694 DEFAULT_wxUSE_FS_INET=yes
1695 DEFAULT_wxUSE_FS_ZIP=yes
1696 DEFAULT_wxUSE_BUSYINFO=yes
1697 DEFAULT_wxUSE_ZIPSTREAM=yes
1698 DEFAULT_wxUSE_VALIDATORS=yes
1699
1700 DEFAULT_wxUSE_ACCEL=yes
1701 DEFAULT_wxUSE_BUTTON=yes
1702 DEFAULT_wxUSE_BMPBUTTON=yes
1703 DEFAULT_wxUSE_CALCTRL=yes
1704 DEFAULT_wxUSE_CARET=yes
1705 DEFAULT_wxUSE_CHECKBOX=yes
1706 DEFAULT_wxUSE_CHECKLST=yes
1707 DEFAULT_wxUSE_CHOICE=yes
1708 DEFAULT_wxUSE_COMBOBOX=yes
1709 DEFAULT_wxUSE_GAUGE=yes
1710 DEFAULT_wxUSE_GRID=yes
1711 DEFAULT_wxUSE_NEW_GRID=yes
1712 DEFAULT_wxUSE_IMAGLIST=yes
1713 DEFAULT_wxUSE_LISTBOX=yes
1714 DEFAULT_wxUSE_LISTCTRL=yes
1715 DEFAULT_wxUSE_NOTEBOOK=yes
1716 DEFAULT_wxUSE_PROPSHEET=yes
1717 DEFAULT_wxUSE_RADIOBOX=yes
1718 DEFAULT_wxUSE_RADIOBTN=yes
1719 DEFAULT_wxUSE_SASH=yes
1720 DEFAULT_wxUSE_SCROLLBAR=yes
1721 DEFAULT_wxUSE_SLIDER=yes
1722 DEFAULT_wxUSE_SPINBTN=yes
1723 DEFAULT_wxUSE_SPINCTRL=yes
1724 DEFAULT_wxUSE_SPLITTER=yes
1725 DEFAULT_wxUSE_STATBMP=yes
1726 DEFAULT_wxUSE_STATBOX=yes
1727 DEFAULT_wxUSE_STATLINE=yes
1728 DEFAULT_wxUSE_STATTEXT=yes
1729 DEFAULT_wxUSE_STATUSBAR=yes
1730 DEFAULT_wxUSE_TABDIALOG=no
1731 DEFAULT_wxUSE_TEXTCTRL=yes
1732 DEFAULT_wxUSE_TOGGLEBTN=yes
1733 DEFAULT_wxUSE_TOOLBAR=yes
1734 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1735 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1736 DEFAULT_wxUSE_TREECTRL=yes
1737 DEFAULT_wxUSE_POPUPWIN=yes
1738 DEFAULT_wxUSE_TIPWINDOW=yes
1739
1740 DEFAULT_wxUSE_UNICODE=no
1741 DEFAULT_wxUSE_UNICODE_MSLU=yes
1742 DEFAULT_wxUSE_WCSRTOMBS=no
1743
1744 DEFAULT_wxUSE_PALETTE=yes
1745 DEFAULT_wxUSE_IMAGE=yes
1746 DEFAULT_wxUSE_GIF=yes
1747 DEFAULT_wxUSE_PCX=yes
1748 DEFAULT_wxUSE_IFF=no
1749 DEFAULT_wxUSE_PNM=yes
1750 DEFAULT_wxUSE_XPM=yes
1751 DEFAULT_wxUSE_ICO_CUR=yes
1752fi
1753
1754
1755
1756for toolkit in `echo $ALL_TOOLKITS`; do
1757 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
1758 if test "x$LINE" != "x" ; then
1759 has_toolkit_in_cache=1
1760 eval "DEFAULT_$LINE"
1761 eval "CACHE_$toolkit=1"
1762 fi
1763done
1764
1765
1766
1767 enablestring=
1768 echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6
1769echo "configure:1770: checking for --${enablestring:-enable}-gui" >&5
1770 no_cache=0
1771 # Check whether --enable-gui or --disable-gui was given.
1772if test "${enable_gui+set}" = set; then
1773 enableval="$enable_gui"
1774
1775 if test "$enableval" = yes; then
1776 ac_cv_use_gui='wxUSE_GUI=yes'
1777 else
1778 ac_cv_use_gui='wxUSE_GUI=no'
1779 fi
1780
1781else
1782
1783 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1784 if test "x$LINE" != x ; then
1785 eval "DEFAULT_$LINE"
1786 else
1787 no_cache=1
1788 fi
1789
1790 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1791
1792fi
1793
1794
1795 eval "$ac_cv_use_gui"
1796 if test "$no_cache" != 1; then
1797 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1798 fi
1799
1800 if test "$wxUSE_GUI" = yes; then
1801 echo "$ac_t""yes" 1>&6
1802 else
1803 echo "$ac_t""no" 1>&6
1804 fi
1805
1806
1807if test "$wxUSE_GUI" = "yes"; then
1808
1809
1810 enablestring=
1811 echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6
1812echo "configure:1813: checking for --${enablestring:-enable}-universal" >&5
1813 no_cache=0
1814 # Check whether --enable-universal or --disable-universal was given.
1815if test "${enable_universal+set}" = set; then
1816 enableval="$enable_universal"
1817
1818 if test "$enableval" = yes; then
1819 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1820 else
1821 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1822 fi
1823
1824else
1825
1826 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1827 if test "x$LINE" != x ; then
1828 eval "DEFAULT_$LINE"
1829 else
1830 no_cache=1
1831 fi
1832
1833 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1834
1835fi
1836
1837
1838 eval "$ac_cv_use_universal"
1839 if test "$no_cache" != 1; then
1840 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1841 fi
1842
1843 if test "$wxUSE_UNIVERSAL" = yes; then
1844 echo "$ac_t""yes" 1>&6
1845 else
1846 echo "$ac_t""no" 1>&6
1847 fi
1848
1849# Check whether --with-gtk or --without-gtk was given.
1850if test "${with_gtk+set}" = set; then
1851 withval="$with_gtk"
1852 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1853fi
1854
1855# Check whether --with-motif or --without-motif was given.
1856if test "${with_motif+set}" = set; then
1857 withval="$with_motif"
1858 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1859fi
1860
1861# Check whether --with-mac or --without-mac was given.
1862if test "${with_mac+set}" = set; then
1863 withval="$with_mac"
1864 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1865fi
1866
1867# Check whether --with-wine or --without-wine was given.
1868if test "${with_wine+set}" = set; then
1869 withval="$with_wine"
1870 wxUSE_WINE="$withval" CACHE_WINE=1
1871fi
1872
1873# Check whether --with-msw or --without-msw was given.
1874if test "${with_msw+set}" = set; then
1875 withval="$with_msw"
1876 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1877fi
1878
1879# Check whether --with-pm or --without-pm was given.
1880if test "${with_pm+set}" = set; then
1881 withval="$with_pm"
1882 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1883fi
1884
1885# Check whether --with-mgl or --without-mgl was given.
1886if test "${with_mgl+set}" = set; then
1887 withval="$with_mgl"
1888 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1889fi
1890
1891# Check whether --with-microwin or --without-microwin was given.
1892if test "${with_microwin+set}" = set; then
1893 withval="$with_microwin"
1894 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1895fi
1896
1897# Check whether --with-x11 or --without-x11 was given.
1898if test "${with_x11+set}" = set; then
1899 withval="$with_x11"
1900 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1901fi
1902
1903
1904 enablestring=
1905 echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6
1906echo "configure:1907: checking for --${enablestring:-enable}-nanox" >&5
1907 no_cache=0
1908 # Check whether --enable-nanox or --disable-nanox was given.
1909if test "${enable_nanox+set}" = set; then
1910 enableval="$enable_nanox"
1911
1912 if test "$enableval" = yes; then
1913 ac_cv_use_nanox='wxUSE_NANOX=yes'
1914 else
1915 ac_cv_use_nanox='wxUSE_NANOX=no'
1916 fi
1917
1918else
1919
1920 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1921 if test "x$LINE" != x ; then
1922 eval "DEFAULT_$LINE"
1923 else
1924 no_cache=1
1925 fi
1926
1927 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1928
1929fi
1930
1931
1932 eval "$ac_cv_use_nanox"
1933 if test "$no_cache" != 1; then
1934 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1935 fi
1936
1937 if test "$wxUSE_NANOX" = yes; then
1938 echo "$ac_t""yes" 1>&6
1939 else
1940 echo "$ac_t""no" 1>&6
1941 fi
1942
1943
1944
1945 enablestring=
1946 echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6
1947echo "configure:1948: checking for --${enablestring:-enable}-gtk2" >&5
1948 no_cache=0
1949 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1950if test "${enable_gtk2+set}" = set; then
1951 enableval="$enable_gtk2"
1952
1953 if test "$enableval" = yes; then
1954 ac_cv_use_gtk2='wxUSE_GTK2=yes'
1955 else
1956 ac_cv_use_gtk2='wxUSE_GTK2=no'
1957 fi
1958
1959else
1960
1961 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
1962 if test "x$LINE" != x ; then
1963 eval "DEFAULT_$LINE"
1964 else
1965 no_cache=1
1966 fi
1967
1968 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
1969
1970fi
1971
1972
1973 eval "$ac_cv_use_gtk2"
1974 if test "$no_cache" != 1; then
1975 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
1976 fi
1977
1978 if test "$wxUSE_GTK2" = yes; then
1979 echo "$ac_t""yes" 1>&6
1980 else
1981 echo "$ac_t""no" 1>&6
1982 fi
1983
1984
1985
1986 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1987echo "configure:1988: checking for --with-libpng" >&5
1988 no_cache=0
1989 # Check whether --with-libpng or --without-libpng was given.
1990if test "${with_libpng+set}" = set; then
1991 withval="$with_libpng"
1992
1993 if test "$withval" = yes; then
1994 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1995 elif test "$withval" = no; then
1996 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1997 elif test "$withval" = sys; then
1998 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1999 elif test "$withval" = builtin; then
2000 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2001 else
2002 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2003 fi
2004
2005else
2006
2007 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2008 if test "x$LINE" != x ; then
2009 eval "DEFAULT_$LINE"
2010 else
2011 no_cache=1
2012 fi
2013
2014 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2015
2016fi
2017
2018
2019 eval "$ac_cv_use_libpng"
2020 if test "$no_cache" != 1; then
2021 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2022 fi
2023
2024 if test "$wxUSE_LIBPNG" = yes; then
2025 echo "$ac_t""yes" 1>&6
2026 elif test "$wxUSE_LIBPNG" = no; then
2027 echo "$ac_t""no" 1>&6
2028 elif test "$wxUSE_LIBPNG" = sys; then
2029 echo "$ac_t""system version" 1>&6
2030 elif test "$wxUSE_LIBPNG" = builtin; then
2031 echo "$ac_t""builtin version" 1>&6
2032 else
2033 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2034 fi
2035
2036
2037 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2038echo "configure:2039: checking for --with-libjpeg" >&5
2039 no_cache=0
2040 # Check whether --with-libjpeg or --without-libjpeg was given.
2041if test "${with_libjpeg+set}" = set; then
2042 withval="$with_libjpeg"
2043
2044 if test "$withval" = yes; then
2045 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2046 elif test "$withval" = no; then
2047 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2048 elif test "$withval" = sys; then
2049 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2050 elif test "$withval" = builtin; then
2051 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2052 else
2053 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2054 fi
2055
2056else
2057
2058 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2059 if test "x$LINE" != x ; then
2060 eval "DEFAULT_$LINE"
2061 else
2062 no_cache=1
2063 fi
2064
2065 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2066
2067fi
2068
2069
2070 eval "$ac_cv_use_libjpeg"
2071 if test "$no_cache" != 1; then
2072 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2073 fi
2074
2075 if test "$wxUSE_LIBJPEG" = yes; then
2076 echo "$ac_t""yes" 1>&6
2077 elif test "$wxUSE_LIBJPEG" = no; then
2078 echo "$ac_t""no" 1>&6
2079 elif test "$wxUSE_LIBJPEG" = sys; then
2080 echo "$ac_t""system version" 1>&6
2081 elif test "$wxUSE_LIBJPEG" = builtin; then
2082 echo "$ac_t""builtin version" 1>&6
2083 else
2084 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2085 fi
2086
2087
2088 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2089echo "configure:2090: checking for --with-libtiff" >&5
2090 no_cache=0
2091 # Check whether --with-libtiff or --without-libtiff was given.
2092if test "${with_libtiff+set}" = set; then
2093 withval="$with_libtiff"
2094
2095 if test "$withval" = yes; then
2096 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2097 elif test "$withval" = no; then
2098 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2099 elif test "$withval" = sys; then
2100 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2101 elif test "$withval" = builtin; then
2102 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2103 else
2104 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2105 fi
2106
2107else
2108
2109 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2110 if test "x$LINE" != x ; then
2111 eval "DEFAULT_$LINE"
2112 else
2113 no_cache=1
2114 fi
2115
2116 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2117
2118fi
2119
2120
2121 eval "$ac_cv_use_libtiff"
2122 if test "$no_cache" != 1; then
2123 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2124 fi
2125
2126 if test "$wxUSE_LIBTIFF" = yes; then
2127 echo "$ac_t""yes" 1>&6
2128 elif test "$wxUSE_LIBTIFF" = no; then
2129 echo "$ac_t""no" 1>&6
2130 elif test "$wxUSE_LIBTIFF" = sys; then
2131 echo "$ac_t""system version" 1>&6
2132 elif test "$wxUSE_LIBTIFF" = builtin; then
2133 echo "$ac_t""builtin version" 1>&6
2134 else
2135 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2136 fi
2137
2138
2139 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2140echo "configure:2141: checking for --with-opengl" >&5
2141 no_cache=0
2142 # Check whether --with-opengl or --without-opengl was given.
2143if test "${with_opengl+set}" = set; then
2144 withval="$with_opengl"
2145
2146 if test "$withval" = yes; then
2147 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2148 else
2149 ac_cv_use_opengl='wxUSE_OPENGL=no'
2150 fi
2151
2152else
2153
2154 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2155 if test "x$LINE" != x ; then
2156 eval "DEFAULT_$LINE"
2157 else
2158 no_cache=1
2159 fi
2160
2161 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2162
2163fi
2164
2165
2166 eval "$ac_cv_use_opengl"
2167 if test "$no_cache" != 1; then
2168 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2169 fi
2170
2171 if test "$wxUSE_OPENGL" = yes; then
2172 echo "$ac_t""yes" 1>&6
2173 else
2174 echo "$ac_t""no" 1>&6
2175 fi
2176
2177
2178fi
2179
2180
2181 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2182echo "configure:2183: checking for --with-dmalloc" >&5
2183 no_cache=0
2184 # Check whether --with-dmalloc or --without-dmalloc was given.
2185if test "${with_dmalloc+set}" = set; then
2186 withval="$with_dmalloc"
2187
2188 if test "$withval" = yes; then
2189 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2190 else
2191 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2192 fi
2193
2194else
2195
2196 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2197 if test "x$LINE" != x ; then
2198 eval "DEFAULT_$LINE"
2199 else
2200 no_cache=1
2201 fi
2202
2203 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2204
2205fi
2206
2207
2208 eval "$ac_cv_use_dmalloc"
2209 if test "$no_cache" != 1; then
2210 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2211 fi
2212
2213 if test "$wxUSE_DMALLOC" = yes; then
2214 echo "$ac_t""yes" 1>&6
2215 else
2216 echo "$ac_t""no" 1>&6
2217 fi
2218
2219
2220 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2221echo "configure:2222: checking for --with-regex" >&5
2222 no_cache=0
2223 # Check whether --with-regex or --without-regex was given.
2224if test "${with_regex+set}" = set; then
2225 withval="$with_regex"
2226
2227 if test "$withval" = yes; then
2228 ac_cv_use_regex='wxUSE_REGEX=yes'
2229 elif test "$withval" = no; then
2230 ac_cv_use_regex='wxUSE_REGEX=no'
2231 elif test "$withval" = sys; then
2232 ac_cv_use_regex='wxUSE_REGEX=sys'
2233 elif test "$withval" = builtin; then
2234 ac_cv_use_regex='wxUSE_REGEX=builtin'
2235 else
2236 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2237 fi
2238
2239else
2240
2241 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2242 if test "x$LINE" != x ; then
2243 eval "DEFAULT_$LINE"
2244 else
2245 no_cache=1
2246 fi
2247
2248 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2249
2250fi
2251
2252
2253 eval "$ac_cv_use_regex"
2254 if test "$no_cache" != 1; then
2255 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2256 fi
2257
2258 if test "$wxUSE_REGEX" = yes; then
2259 echo "$ac_t""yes" 1>&6
2260 elif test "$wxUSE_REGEX" = no; then
2261 echo "$ac_t""no" 1>&6
2262 elif test "$wxUSE_REGEX" = sys; then
2263 echo "$ac_t""system version" 1>&6
2264 elif test "$wxUSE_REGEX" = builtin; then
2265 echo "$ac_t""builtin version" 1>&6
2266 else
2267 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2268 fi
2269
2270
2271 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2272echo "configure:2273: checking for --with-zlib" >&5
2273 no_cache=0
2274 # Check whether --with-zlib or --without-zlib was given.
2275if test "${with_zlib+set}" = set; then
2276 withval="$with_zlib"
2277
2278 if test "$withval" = yes; then
2279 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2280 elif test "$withval" = no; then
2281 ac_cv_use_zlib='wxUSE_ZLIB=no'
2282 elif test "$withval" = sys; then
2283 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2284 elif test "$withval" = builtin; then
2285 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2286 else
2287 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2288 fi
2289
2290else
2291
2292 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2293 if test "x$LINE" != x ; then
2294 eval "DEFAULT_$LINE"
2295 else
2296 no_cache=1
2297 fi
2298
2299 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2300
2301fi
2302
2303
2304 eval "$ac_cv_use_zlib"
2305 if test "$no_cache" != 1; then
2306 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2307 fi
2308
2309 if test "$wxUSE_ZLIB" = yes; then
2310 echo "$ac_t""yes" 1>&6
2311 elif test "$wxUSE_ZLIB" = no; then
2312 echo "$ac_t""no" 1>&6
2313 elif test "$wxUSE_ZLIB" = sys; then
2314 echo "$ac_t""system version" 1>&6
2315 elif test "$wxUSE_ZLIB" = builtin; then
2316 echo "$ac_t""builtin version" 1>&6
2317 else
2318 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2319 fi
2320
2321
2322 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2323echo "configure:2324: checking for --with-odbc" >&5
2324 no_cache=0
2325 # Check whether --with-odbc or --without-odbc was given.
2326if test "${with_odbc+set}" = set; then
2327 withval="$with_odbc"
2328
2329 if test "$withval" = yes; then
2330 ac_cv_use_odbc='wxUSE_ODBC=yes'
2331 else
2332 ac_cv_use_odbc='wxUSE_ODBC=no'
2333 fi
2334
2335else
2336
2337 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2338 if test "x$LINE" != x ; then
2339 eval "DEFAULT_$LINE"
2340 else
2341 no_cache=1
2342 fi
2343
2344 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2345
2346fi
2347
2348
2349 eval "$ac_cv_use_odbc"
2350 if test "$no_cache" != 1; then
2351 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2352 fi
2353
2354 if test "$wxUSE_ODBC" = yes; then
2355 echo "$ac_t""yes" 1>&6
2356 else
2357 echo "$ac_t""no" 1>&6
2358 fi
2359
2360
2361
2362
2363 enablestring=
2364 echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6
2365echo "configure:2366: checking for --${enablestring:-enable}-shared" >&5
2366 no_cache=0
2367 # Check whether --enable-shared or --disable-shared was given.
2368if test "${enable_shared+set}" = set; then
2369 enableval="$enable_shared"
2370
2371 if test "$enableval" = yes; then
2372 ac_cv_use_shared='wxUSE_SHARED=yes'
2373 else
2374 ac_cv_use_shared='wxUSE_SHARED=no'
2375 fi
2376
2377else
2378
2379 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2380 if test "x$LINE" != x ; then
2381 eval "DEFAULT_$LINE"
2382 else
2383 no_cache=1
2384 fi
2385
2386 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2387
2388fi
2389
2390
2391 eval "$ac_cv_use_shared"
2392 if test "$no_cache" != 1; then
2393 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2394 fi
2395
2396 if test "$wxUSE_SHARED" = yes; then
2397 echo "$ac_t""yes" 1>&6
2398 else
2399 echo "$ac_t""no" 1>&6
2400 fi
2401
2402
2403 enablestring=
2404 echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6
2405echo "configure:2406: checking for --${enablestring:-enable}-soname" >&5
2406 no_cache=0
2407 # Check whether --enable-soname or --disable-soname was given.
2408if test "${enable_soname+set}" = set; then
2409 enableval="$enable_soname"
2410
2411 if test "$enableval" = yes; then
2412 ac_cv_use_soname='wxUSE_SONAME=yes'
2413 else
2414 ac_cv_use_soname='wxUSE_SONAME=no'
2415 fi
2416
2417else
2418
2419 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2420 if test "x$LINE" != x ; then
2421 eval "DEFAULT_$LINE"
2422 else
2423 no_cache=1
2424 fi
2425
2426 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2427
2428fi
2429
2430
2431 eval "$ac_cv_use_soname"
2432 if test "$no_cache" != 1; then
2433 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2434 fi
2435
2436 if test "$wxUSE_SONAME" = yes; then
2437 echo "$ac_t""yes" 1>&6
2438 else
2439 echo "$ac_t""no" 1>&6
2440 fi
2441
2442
2443 enablestring=
2444 echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6
2445echo "configure:2446: checking for --${enablestring:-enable}-optimise" >&5
2446 no_cache=0
2447 # Check whether --enable-optimise or --disable-optimise was given.
2448if test "${enable_optimise+set}" = set; then
2449 enableval="$enable_optimise"
2450
2451 if test "$enableval" = yes; then
2452 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2453 else
2454 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2455 fi
2456
2457else
2458
2459 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2460 if test "x$LINE" != x ; then
2461 eval "DEFAULT_$LINE"
2462 else
2463 no_cache=1
2464 fi
2465
2466 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2467
2468fi
2469
2470
2471 eval "$ac_cv_use_optimise"
2472 if test "$no_cache" != 1; then
2473 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2474 fi
2475
2476 if test "$wxUSE_OPTIMISE" = yes; then
2477 echo "$ac_t""yes" 1>&6
2478 else
2479 echo "$ac_t""no" 1>&6
2480 fi
2481
2482
2483 enablestring=
2484 echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6
2485echo "configure:2486: checking for --${enablestring:-enable}-debug" >&5
2486 no_cache=0
2487 # Check whether --enable-debug or --disable-debug was given.
2488if test "${enable_debug+set}" = set; then
2489 enableval="$enable_debug"
2490
2491 if test "$enableval" = yes; then
2492 ac_cv_use_debug='wxUSE_DEBUG=yes'
2493 else
2494 ac_cv_use_debug='wxUSE_DEBUG=no'
2495 fi
2496
2497else
2498
2499 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2500 if test "x$LINE" != x ; then
2501 eval "DEFAULT_$LINE"
2502 else
2503 no_cache=1
2504 fi
2505
2506 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2507
2508fi
2509
2510
2511 eval "$ac_cv_use_debug"
2512 if test "$no_cache" != 1; then
2513 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2514 fi
2515
2516 if test "$wxUSE_DEBUG" = yes; then
2517 echo "$ac_t""yes" 1>&6
2518 else
2519 echo "$ac_t""no" 1>&6
2520 fi
2521
2522
2523
2524 enablestring=
2525 echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6
2526echo "configure:2527: checking for --${enablestring:-enable}-precomp" >&5
2527 no_cache=0
2528 # Check whether --enable-precomp or --disable-precomp was given.
2529if test "${enable_precomp+set}" = set; then
2530 enableval="$enable_precomp"
2531
2532 if test "$enableval" = yes; then
2533 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2534 else
2535 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2536 fi
2537
2538else
2539
2540 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2541 if test "x$LINE" != x ; then
2542 eval "DEFAULT_$LINE"
2543 else
2544 no_cache=1
2545 fi
2546
2547 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2548
2549fi
2550
2551
2552 eval "$ac_cv_use_precomp"
2553 if test "$no_cache" != 1; then
2554 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2555 fi
2556
2557 if test "$wxUSE_PRECOMP" = yes; then
2558 echo "$ac_t""yes" 1>&6
2559 else
2560 echo "$ac_t""no" 1>&6
2561 fi
2562
2563
2564if test "$wxUSE_DEBUG" = "yes"; then
2565 DEFAULT_wxUSE_DEBUG_FLAG=yes
2566 DEFAULT_wxUSE_DEBUG_INFO=yes
2567elif test "$wxUSE_DEBUG" = "no"; then
2568 DEFAULT_wxUSE_DEBUG_FLAG=no
2569 DEFAULT_wxUSE_DEBUG_INFO=no
2570fi
2571
2572
2573 enablestring=
2574 echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6
2575echo "configure:2576: checking for --${enablestring:-enable}-debug_flag" >&5
2576 no_cache=0
2577 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2578if test "${enable_debug_flag+set}" = set; then
2579 enableval="$enable_debug_flag"
2580
2581 if test "$enableval" = yes; then
2582 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2583 else
2584 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2585 fi
2586
2587else
2588
2589 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2590 if test "x$LINE" != x ; then
2591 eval "DEFAULT_$LINE"
2592 else
2593 no_cache=1
2594 fi
2595
2596 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2597
2598fi
2599
2600
2601 eval "$ac_cv_use_debug_flag"
2602 if test "$no_cache" != 1; then
2603 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2604 fi
2605
2606 if test "$wxUSE_DEBUG_FLAG" = yes; then
2607 echo "$ac_t""yes" 1>&6
2608 else
2609 echo "$ac_t""no" 1>&6
2610 fi
2611
2612
2613 enablestring=
2614 echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6
2615echo "configure:2616: checking for --${enablestring:-enable}-debug_info" >&5
2616 no_cache=0
2617 # Check whether --enable-debug_info or --disable-debug_info was given.
2618if test "${enable_debug_info+set}" = set; then
2619 enableval="$enable_debug_info"
2620
2621 if test "$enableval" = yes; then
2622 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2623 else
2624 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2625 fi
2626
2627else
2628
2629 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2630 if test "x$LINE" != x ; then
2631 eval "DEFAULT_$LINE"
2632 else
2633 no_cache=1
2634 fi
2635
2636 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2637
2638fi
2639
2640
2641 eval "$ac_cv_use_debug_info"
2642 if test "$no_cache" != 1; then
2643 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2644 fi
2645
2646 if test "$wxUSE_DEBUG_INFO" = yes; then
2647 echo "$ac_t""yes" 1>&6
2648 else
2649 echo "$ac_t""no" 1>&6
2650 fi
2651
2652
2653 enablestring=
2654 echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6
2655echo "configure:2656: checking for --${enablestring:-enable}-debug_gdb" >&5
2656 no_cache=0
2657 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2658if test "${enable_debug_gdb+set}" = set; then
2659 enableval="$enable_debug_gdb"
2660
2661 if test "$enableval" = yes; then
2662 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2663 else
2664 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2665 fi
2666
2667else
2668
2669 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2670 if test "x$LINE" != x ; then
2671 eval "DEFAULT_$LINE"
2672 else
2673 no_cache=1
2674 fi
2675
2676 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2677
2678fi
2679
2680
2681 eval "$ac_cv_use_debug_gdb"
2682 if test "$no_cache" != 1; then
2683 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2684 fi
2685
2686 if test "$wxUSE_DEBUG_GDB" = yes; then
2687 echo "$ac_t""yes" 1>&6
2688 else
2689 echo "$ac_t""no" 1>&6
2690 fi
2691
2692
2693 enablestring=
2694 echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6
2695echo "configure:2696: checking for --${enablestring:-enable}-debug_cntxt" >&5
2696 no_cache=0
2697 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2698if test "${enable_debug_cntxt+set}" = set; then
2699 enableval="$enable_debug_cntxt"
2700
2701 if test "$enableval" = yes; then
2702 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2703 else
2704 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2705 fi
2706
2707else
2708
2709 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2710 if test "x$LINE" != x ; then
2711 eval "DEFAULT_$LINE"
2712 else
2713 no_cache=1
2714 fi
2715
2716 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2717
2718fi
2719
2720
2721 eval "$ac_cv_use_debug_cntxt"
2722 if test "$no_cache" != 1; then
2723 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2724 fi
2725
2726 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2727 echo "$ac_t""yes" 1>&6
2728 else
2729 echo "$ac_t""no" 1>&6
2730 fi
2731
2732
2733 enablestring=
2734 echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6
2735echo "configure:2736: checking for --${enablestring:-enable}-mem_tracing" >&5
2736 no_cache=0
2737 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2738if test "${enable_mem_tracing+set}" = set; then
2739 enableval="$enable_mem_tracing"
2740
2741 if test "$enableval" = yes; then
2742 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2743 else
2744 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2745 fi
2746
2747else
2748
2749 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2750 if test "x$LINE" != x ; then
2751 eval "DEFAULT_$LINE"
2752 else
2753 no_cache=1
2754 fi
2755
2756 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2757
2758fi
2759
2760
2761 eval "$ac_cv_use_mem_tracing"
2762 if test "$no_cache" != 1; then
2763 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2764 fi
2765
2766 if test "$wxUSE_MEM_TRACING" = yes; then
2767 echo "$ac_t""yes" 1>&6
2768 else
2769 echo "$ac_t""no" 1>&6
2770 fi
2771
2772
2773 enablestring=
2774 echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6
2775echo "configure:2776: checking for --${enablestring:-enable}-profile" >&5
2776 no_cache=0
2777 # Check whether --enable-profile or --disable-profile was given.
2778if test "${enable_profile+set}" = set; then
2779 enableval="$enable_profile"
2780
2781 if test "$enableval" = yes; then
2782 ac_cv_use_profile='wxUSE_PROFILE=yes'
2783 else
2784 ac_cv_use_profile='wxUSE_PROFILE=no'
2785 fi
2786
2787else
2788
2789 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2790 if test "x$LINE" != x ; then
2791 eval "DEFAULT_$LINE"
2792 else
2793 no_cache=1
2794 fi
2795
2796 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2797
2798fi
2799
2800
2801 eval "$ac_cv_use_profile"
2802 if test "$no_cache" != 1; then
2803 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2804 fi
2805
2806 if test "$wxUSE_PROFILE" = yes; then
2807 echo "$ac_t""yes" 1>&6
2808 else
2809 echo "$ac_t""no" 1>&6
2810 fi
2811
2812
2813 enablestring=
2814 echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6
2815echo "configure:2816: checking for --${enablestring:-enable}-no_rtti" >&5
2816 no_cache=0
2817 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2818if test "${enable_no_rtti+set}" = set; then
2819 enableval="$enable_no_rtti"
2820
2821 if test "$enableval" = yes; then
2822 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2823 else
2824 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2825 fi
2826
2827else
2828
2829 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2830 if test "x$LINE" != x ; then
2831 eval "DEFAULT_$LINE"
2832 else
2833 no_cache=1
2834 fi
2835
2836 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2837
2838fi
2839
2840
2841 eval "$ac_cv_use_no_rtti"
2842 if test "$no_cache" != 1; then
2843 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2844 fi
2845
2846 if test "$wxUSE_NO_RTTI" = yes; then
2847 echo "$ac_t""yes" 1>&6
2848 else
2849 echo "$ac_t""no" 1>&6
2850 fi
2851
2852
2853 enablestring=
2854 echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6
2855echo "configure:2856: checking for --${enablestring:-enable}-no_exceptions" >&5
2856 no_cache=0
2857 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2858if test "${enable_no_exceptions+set}" = set; then
2859 enableval="$enable_no_exceptions"
2860
2861 if test "$enableval" = yes; then
2862 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2863 else
2864 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2865 fi
2866
2867else
2868
2869 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2870 if test "x$LINE" != x ; then
2871 eval "DEFAULT_$LINE"
2872 else
2873 no_cache=1
2874 fi
2875
2876 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2877
2878fi
2879
2880
2881 eval "$ac_cv_use_no_exceptions"
2882 if test "$no_cache" != 1; then
2883 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2884 fi
2885
2886 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2887 echo "$ac_t""yes" 1>&6
2888 else
2889 echo "$ac_t""no" 1>&6
2890 fi
2891
2892
2893 enablestring=
2894 echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6
2895echo "configure:2896: checking for --${enablestring:-enable}-permissive" >&5
2896 no_cache=0
2897 # Check whether --enable-permissive or --disable-permissive was given.
2898if test "${enable_permissive+set}" = set; then
2899 enableval="$enable_permissive"
2900
2901 if test "$enableval" = yes; then
2902 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2903 else
2904 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2905 fi
2906
2907else
2908
2909 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2910 if test "x$LINE" != x ; then
2911 eval "DEFAULT_$LINE"
2912 else
2913 no_cache=1
2914 fi
2915
2916 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2917
2918fi
2919
2920
2921 eval "$ac_cv_use_permissive"
2922 if test "$no_cache" != 1; then
2923 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2924 fi
2925
2926 if test "$wxUSE_PERMISSIVE" = yes; then
2927 echo "$ac_t""yes" 1>&6
2928 else
2929 echo "$ac_t""no" 1>&6
2930 fi
2931
2932
2933 enablestring=
2934 echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6
2935echo "configure:2936: checking for --${enablestring:-enable}-no_deps" >&5
2936 no_cache=0
2937 # Check whether --enable-no_deps or --disable-no_deps was given.
2938if test "${enable_no_deps+set}" = set; then
2939 enableval="$enable_no_deps"
2940
2941 if test "$enableval" = yes; then
2942 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2943 else
2944 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2945 fi
2946
2947else
2948
2949 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2950 if test "x$LINE" != x ; then
2951 eval "DEFAULT_$LINE"
2952 else
2953 no_cache=1
2954 fi
2955
2956 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2957
2958fi
2959
2960
2961 eval "$ac_cv_use_no_deps"
2962 if test "$no_cache" != 1; then
2963 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2964 fi
2965
2966 if test "$wxUSE_NO_DEPS" = yes; then
2967 echo "$ac_t""yes" 1>&6
2968 else
2969 echo "$ac_t""no" 1>&6
2970 fi
2971
2972
2973
2974 enablestring=
2975 echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6
2976echo "configure:2977: checking for --${enablestring:-enable}-compat20" >&5
2977 no_cache=0
2978 # Check whether --enable-compat20 or --disable-compat20 was given.
2979if test "${enable_compat20+set}" = set; then
2980 enableval="$enable_compat20"
2981
2982 if test "$enableval" = yes; then
2983 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2984 else
2985 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2986 fi
2987
2988else
2989
2990 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2991 if test "x$LINE" != x ; then
2992 eval "DEFAULT_$LINE"
2993 else
2994 no_cache=1
2995 fi
2996
2997 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2998
2999fi
3000
3001
3002 eval "$ac_cv_use_compat20"
3003 if test "$no_cache" != 1; then
3004 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3005 fi
3006
3007 if test "$WXWIN_COMPATIBILITY_2" = yes; then
3008 echo "$ac_t""yes" 1>&6
3009 else
3010 echo "$ac_t""no" 1>&6
3011 fi
3012
3013
3014 enablestring=
3015 echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6
3016echo "configure:3017: checking for --${enablestring:-enable}-compat22" >&5
3017 no_cache=0
3018 # Check whether --enable-compat22 or --disable-compat22 was given.
3019if test "${enable_compat22+set}" = set; then
3020 enableval="$enable_compat22"
3021
3022 if test "$enableval" = yes; then
3023 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3024 else
3025 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3026 fi
3027
3028else
3029
3030 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3031 if test "x$LINE" != x ; then
3032 eval "DEFAULT_$LINE"
3033 else
3034 no_cache=1
3035 fi
3036
3037 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3038
3039fi
3040
3041
3042 eval "$ac_cv_use_compat22"
3043 if test "$no_cache" != 1; then
3044 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3045 fi
3046
3047 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3048 echo "$ac_t""yes" 1>&6
3049 else
3050 echo "$ac_t""no" 1>&6
3051 fi
3052
3053
3054 enablestring=disable
3055 echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6
3056echo "configure:3057: checking for --${enablestring:-enable}-compat24" >&5
3057 no_cache=0
3058 # Check whether --enable-compat24 or --disable-compat24 was given.
3059if test "${enable_compat24+set}" = set; then
3060 enableval="$enable_compat24"
3061
3062 if test "$enableval" = yes; then
3063 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3064 else
3065 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3066 fi
3067
3068else
3069
3070 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3071 if test "x$LINE" != x ; then
3072 eval "DEFAULT_$LINE"
3073 else
3074 no_cache=1
3075 fi
3076
3077 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3078
3079fi
3080
3081
3082 eval "$ac_cv_use_compat24"
3083 if test "$no_cache" != 1; then
3084 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3085 fi
3086
3087 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3088 echo "$ac_t""yes" 1>&6
3089 else
3090 echo "$ac_t""no" 1>&6
3091 fi
3092
3093
3094# Check whether --enable-rpath or --disable-rpath was given.
3095if test "${enable_rpath+set}" = set; then
3096 enableval="$enable_rpath"
3097 wxRPATH_DIR="$enableval"
3098fi
3099
3100
3101if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3102 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3103fi
3104
3105
3106
3107
3108 enablestring=
3109 echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6
3110echo "configure:3111: checking for --${enablestring:-enable}-intl" >&5
3111 no_cache=0
3112 # Check whether --enable-intl or --disable-intl was given.
3113if test "${enable_intl+set}" = set; then
3114 enableval="$enable_intl"
3115
3116 if test "$enableval" = yes; then
3117 ac_cv_use_intl='wxUSE_INTL=yes'
3118 else
3119 ac_cv_use_intl='wxUSE_INTL=no'
3120 fi
3121
3122else
3123
3124 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3125 if test "x$LINE" != x ; then
3126 eval "DEFAULT_$LINE"
3127 else
3128 no_cache=1
3129 fi
3130
3131 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3132
3133fi
3134
3135
3136 eval "$ac_cv_use_intl"
3137 if test "$no_cache" != 1; then
3138 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3139 fi
3140
3141 if test "$wxUSE_INTL" = yes; then
3142 echo "$ac_t""yes" 1>&6
3143 else
3144 echo "$ac_t""no" 1>&6
3145 fi
3146
3147
3148 enablestring=
3149 echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6
3150echo "configure:3151: checking for --${enablestring:-enable}-config" >&5
3151 no_cache=0
3152 # Check whether --enable-config or --disable-config was given.
3153if test "${enable_config+set}" = set; then
3154 enableval="$enable_config"
3155
3156 if test "$enableval" = yes; then
3157 ac_cv_use_config='wxUSE_CONFIG=yes'
3158 else
3159 ac_cv_use_config='wxUSE_CONFIG=no'
3160 fi
3161
3162else
3163
3164 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3165 if test "x$LINE" != x ; then
3166 eval "DEFAULT_$LINE"
3167 else
3168 no_cache=1
3169 fi
3170
3171 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3172
3173fi
3174
3175
3176 eval "$ac_cv_use_config"
3177 if test "$no_cache" != 1; then
3178 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3179 fi
3180
3181 if test "$wxUSE_CONFIG" = yes; then
3182 echo "$ac_t""yes" 1>&6
3183 else
3184 echo "$ac_t""no" 1>&6
3185 fi
3186
3187
3188
3189 enablestring=
3190 echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6
3191echo "configure:3192: checking for --${enablestring:-enable}-protocols" >&5
3192 no_cache=0
3193 # Check whether --enable-protocols or --disable-protocols was given.
3194if test "${enable_protocols+set}" = set; then
3195 enableval="$enable_protocols"
3196
3197 if test "$enableval" = yes; then
3198 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3199 else
3200 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3201 fi
3202
3203else
3204
3205 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3206 if test "x$LINE" != x ; then
3207 eval "DEFAULT_$LINE"
3208 else
3209 no_cache=1
3210 fi
3211
3212 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3213
3214fi
3215
3216
3217 eval "$ac_cv_use_protocols"
3218 if test "$no_cache" != 1; then
3219 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3220 fi
3221
3222 if test "$wxUSE_PROTOCOL" = yes; then
3223 echo "$ac_t""yes" 1>&6
3224 else
3225 echo "$ac_t""no" 1>&6
3226 fi
3227
3228
3229 enablestring=
3230 echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6
3231echo "configure:3232: checking for --${enablestring:-enable}-ftp" >&5
3232 no_cache=0
3233 # Check whether --enable-ftp or --disable-ftp was given.
3234if test "${enable_ftp+set}" = set; then
3235 enableval="$enable_ftp"
3236
3237 if test "$enableval" = yes; then
3238 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3239 else
3240 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3241 fi
3242
3243else
3244
3245 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3246 if test "x$LINE" != x ; then
3247 eval "DEFAULT_$LINE"
3248 else
3249 no_cache=1
3250 fi
3251
3252 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3253
3254fi
3255
3256
3257 eval "$ac_cv_use_ftp"
3258 if test "$no_cache" != 1; then
3259 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3260 fi
3261
3262 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3263 echo "$ac_t""yes" 1>&6
3264 else
3265 echo "$ac_t""no" 1>&6
3266 fi
3267
3268
3269 enablestring=
3270 echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6
3271echo "configure:3272: checking for --${enablestring:-enable}-http" >&5
3272 no_cache=0
3273 # Check whether --enable-http or --disable-http was given.
3274if test "${enable_http+set}" = set; then
3275 enableval="$enable_http"
3276
3277 if test "$enableval" = yes; then
3278 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3279 else
3280 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3281 fi
3282
3283else
3284
3285 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3286 if test "x$LINE" != x ; then
3287 eval "DEFAULT_$LINE"
3288 else
3289 no_cache=1
3290 fi
3291
3292 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3293
3294fi
3295
3296
3297 eval "$ac_cv_use_http"
3298 if test "$no_cache" != 1; then
3299 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3300 fi
3301
3302 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3303 echo "$ac_t""yes" 1>&6
3304 else
3305 echo "$ac_t""no" 1>&6
3306 fi
3307
3308
3309 enablestring=
3310 echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6
3311echo "configure:3312: checking for --${enablestring:-enable}-fileproto" >&5
3312 no_cache=0
3313 # Check whether --enable-fileproto or --disable-fileproto was given.
3314if test "${enable_fileproto+set}" = set; then
3315 enableval="$enable_fileproto"
3316
3317 if test "$enableval" = yes; then
3318 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3319 else
3320 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3321 fi
3322
3323else
3324
3325 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3326 if test "x$LINE" != x ; then
3327 eval "DEFAULT_$LINE"
3328 else
3329 no_cache=1
3330 fi
3331
3332 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3333
3334fi
3335
3336
3337 eval "$ac_cv_use_fileproto"
3338 if test "$no_cache" != 1; then
3339 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3340 fi
3341
3342 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3343 echo "$ac_t""yes" 1>&6
3344 else
3345 echo "$ac_t""no" 1>&6
3346 fi
3347
3348
3349 enablestring=
3350 echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6
3351echo "configure:3352: checking for --${enablestring:-enable}-sockets" >&5
3352 no_cache=0
3353 # Check whether --enable-sockets or --disable-sockets was given.
3354if test "${enable_sockets+set}" = set; then
3355 enableval="$enable_sockets"
3356
3357 if test "$enableval" = yes; then
3358 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3359 else
3360 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3361 fi
3362
3363else
3364
3365 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3366 if test "x$LINE" != x ; then
3367 eval "DEFAULT_$LINE"
3368 else
3369 no_cache=1
3370 fi
3371
3372 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3373
3374fi
3375
3376
3377 eval "$ac_cv_use_sockets"
3378 if test "$no_cache" != 1; then
3379 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3380 fi
3381
3382 if test "$wxUSE_SOCKETS" = yes; then
3383 echo "$ac_t""yes" 1>&6
3384 else
3385 echo "$ac_t""no" 1>&6
3386 fi
3387
3388
3389 enablestring=
3390 echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6
3391echo "configure:3392: checking for --${enablestring:-enable}-ole" >&5
3392 no_cache=0
3393 # Check whether --enable-ole or --disable-ole was given.
3394if test "${enable_ole+set}" = set; then
3395 enableval="$enable_ole"
3396
3397 if test "$enableval" = yes; then
3398 ac_cv_use_ole='wxUSE_OLE=yes'
3399 else
3400 ac_cv_use_ole='wxUSE_OLE=no'
3401 fi
3402
3403else
3404
3405 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
3406 if test "x$LINE" != x ; then
3407 eval "DEFAULT_$LINE"
3408 else
3409 no_cache=1
3410 fi
3411
3412 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3413
3414fi
3415
3416
3417 eval "$ac_cv_use_ole"
3418 if test "$no_cache" != 1; then
3419 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
3420 fi
3421
3422 if test "$wxUSE_OLE" = yes; then
3423 echo "$ac_t""yes" 1>&6
3424 else
3425 echo "$ac_t""no" 1>&6
3426 fi
3427
3428
3429 enablestring=
3430 echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6
3431echo "configure:3432: checking for --${enablestring:-enable}-dataobj" >&5
3432 no_cache=0
3433 # Check whether --enable-dataobj or --disable-dataobj was given.
3434if test "${enable_dataobj+set}" = set; then
3435 enableval="$enable_dataobj"
3436
3437 if test "$enableval" = yes; then
3438 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
3439 else
3440 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
3441 fi
3442
3443else
3444
3445 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
3446 if test "x$LINE" != x ; then
3447 eval "DEFAULT_$LINE"
3448 else
3449 no_cache=1
3450 fi
3451
3452 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3453
3454fi
3455
3456
3457 eval "$ac_cv_use_dataobj"
3458 if test "$no_cache" != 1; then
3459 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
3460 fi
3461
3462 if test "$wxUSE_DATAOBJ" = yes; then
3463 echo "$ac_t""yes" 1>&6
3464 else
3465 echo "$ac_t""no" 1>&6
3466 fi
3467
3468
3469
3470 enablestring=
3471 echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6
3472echo "configure:3473: checking for --${enablestring:-enable}-ipc" >&5
3473 no_cache=0
3474 # Check whether --enable-ipc or --disable-ipc was given.
3475if test "${enable_ipc+set}" = set; then
3476 enableval="$enable_ipc"
3477
3478 if test "$enableval" = yes; then
3479 ac_cv_use_ipc='wxUSE_IPC=yes'
3480 else
3481 ac_cv_use_ipc='wxUSE_IPC=no'
3482 fi
3483
3484else
3485
3486 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3487 if test "x$LINE" != x ; then
3488 eval "DEFAULT_$LINE"
3489 else
3490 no_cache=1
3491 fi
3492
3493 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3494
3495fi
3496
3497
3498 eval "$ac_cv_use_ipc"
3499 if test "$no_cache" != 1; then
3500 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3501 fi
3502
3503 if test "$wxUSE_IPC" = yes; then
3504 echo "$ac_t""yes" 1>&6
3505 else
3506 echo "$ac_t""no" 1>&6
3507 fi
3508
3509
3510
3511 enablestring=
3512 echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6
3513echo "configure:3514: checking for --${enablestring:-enable}-cmdline" >&5
3514 no_cache=0
3515 # Check whether --enable-cmdline or --disable-cmdline was given.
3516if test "${enable_cmdline+set}" = set; then
3517 enableval="$enable_cmdline"
3518
3519 if test "$enableval" = yes; then
3520 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3521 else
3522 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3523 fi
3524
3525else
3526
3527 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3528 if test "x$LINE" != x ; then
3529 eval "DEFAULT_$LINE"
3530 else
3531 no_cache=1
3532 fi
3533
3534 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3535
3536fi
3537
3538
3539 eval "$ac_cv_use_cmdline"
3540 if test "$no_cache" != 1; then
3541 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3542 fi
3543
3544 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3545 echo "$ac_t""yes" 1>&6
3546 else
3547 echo "$ac_t""no" 1>&6
3548 fi
3549
3550
3551 enablestring=
3552 echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6
3553echo "configure:3554: checking for --${enablestring:-enable}-datetime" >&5
3554 no_cache=0
3555 # Check whether --enable-datetime or --disable-datetime was given.
3556if test "${enable_datetime+set}" = set; then
3557 enableval="$enable_datetime"
3558
3559 if test "$enableval" = yes; then
3560 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3561 else
3562 ac_cv_use_datetime='wxUSE_DATETIME=no'
3563 fi
3564
3565else
3566
3567 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3568 if test "x$LINE" != x ; then
3569 eval "DEFAULT_$LINE"
3570 else
3571 no_cache=1
3572 fi
3573
3574 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3575
3576fi
3577
3578
3579 eval "$ac_cv_use_datetime"
3580 if test "$no_cache" != 1; then
3581 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3582 fi
3583
3584 if test "$wxUSE_DATETIME" = yes; then
3585 echo "$ac_t""yes" 1>&6
3586 else
3587 echo "$ac_t""no" 1>&6
3588 fi
3589
3590
3591 enablestring=
3592 echo $ac_n "checking for --${enablestring:-enable}-timedate""... $ac_c" 1>&6
3593echo "configure:3594: checking for --${enablestring:-enable}-timedate" >&5
3594 no_cache=0
3595 # Check whether --enable-timedate or --disable-timedate was given.
3596if test "${enable_timedate+set}" = set; then
3597 enableval="$enable_timedate"
3598
3599 if test "$enableval" = yes; then
3600 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3601 else
3602 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3603 fi
3604
3605else
3606
3607 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3608 if test "x$LINE" != x ; then
3609 eval "DEFAULT_$LINE"
3610 else
3611 no_cache=1
3612 fi
3613
3614 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3615
3616fi
3617
3618
3619 eval "$ac_cv_use_timedate"
3620 if test "$no_cache" != 1; then
3621 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3622 fi
3623
3624 if test "$wxUSE_TIMEDATE" = yes; then
3625 echo "$ac_t""yes" 1>&6
3626 else
3627 echo "$ac_t""no" 1>&6
3628 fi
3629
3630
3631 enablestring=
3632 echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6
3633echo "configure:3634: checking for --${enablestring:-enable}-stopwatch" >&5
3634 no_cache=0
3635 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3636if test "${enable_stopwatch+set}" = set; then
3637 enableval="$enable_stopwatch"
3638
3639 if test "$enableval" = yes; then
3640 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3641 else
3642 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3643 fi
3644
3645else
3646
3647 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3648 if test "x$LINE" != x ; then
3649 eval "DEFAULT_$LINE"
3650 else
3651 no_cache=1
3652 fi
3653
3654 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3655
3656fi
3657
3658
3659 eval "$ac_cv_use_stopwatch"
3660 if test "$no_cache" != 1; then
3661 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3662 fi
3663
3664 if test "$wxUSE_STOPWATCH" = yes; then
3665 echo "$ac_t""yes" 1>&6
3666 else
3667 echo "$ac_t""no" 1>&6
3668 fi
3669
3670
3671 enablestring=
3672 echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6
3673echo "configure:3674: checking for --${enablestring:-enable}-dialupman" >&5
3674 no_cache=0
3675 # Check whether --enable-dialupman or --disable-dialupman was given.
3676if test "${enable_dialupman+set}" = set; then
3677 enableval="$enable_dialupman"
3678
3679 if test "$enableval" = yes; then
3680 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3681 else
3682 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3683 fi
3684
3685else
3686
3687 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3688 if test "x$LINE" != x ; then
3689 eval "DEFAULT_$LINE"
3690 else
3691 no_cache=1
3692 fi
3693
3694 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3695
3696fi
3697
3698
3699 eval "$ac_cv_use_dialupman"
3700 if test "$no_cache" != 1; then
3701 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3702 fi
3703
3704 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3705 echo "$ac_t""yes" 1>&6
3706 else
3707 echo "$ac_t""no" 1>&6
3708 fi
3709
3710
3711 enablestring=
3712 echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6
3713echo "configure:3714: checking for --${enablestring:-enable}-apple_ieee" >&5
3714 no_cache=0
3715 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3716if test "${enable_apple_ieee+set}" = set; then
3717 enableval="$enable_apple_ieee"
3718
3719 if test "$enableval" = yes; then
3720 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3721 else
3722 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3723 fi
3724
3725else
3726
3727 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3728 if test "x$LINE" != x ; then
3729 eval "DEFAULT_$LINE"
3730 else
3731 no_cache=1
3732 fi
3733
3734 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3735
3736fi
3737
3738
3739 eval "$ac_cv_use_apple_ieee"
3740 if test "$no_cache" != 1; then
3741 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3742 fi
3743
3744 if test "$wxUSE_APPLE_IEEE" = yes; then
3745 echo "$ac_t""yes" 1>&6
3746 else
3747 echo "$ac_t""no" 1>&6
3748 fi
3749
3750
3751 enablestring=
3752 echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6
3753echo "configure:3754: checking for --${enablestring:-enable}-timer" >&5
3754 no_cache=0
3755 # Check whether --enable-timer or --disable-timer was given.
3756if test "${enable_timer+set}" = set; then
3757 enableval="$enable_timer"
3758
3759 if test "$enableval" = yes; then
3760 ac_cv_use_timer='wxUSE_TIMER=yes'
3761 else
3762 ac_cv_use_timer='wxUSE_TIMER=no'
3763 fi
3764
3765else
3766
3767 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3768 if test "x$LINE" != x ; then
3769 eval "DEFAULT_$LINE"
3770 else
3771 no_cache=1
3772 fi
3773
3774 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3775
3776fi
3777
3778
3779 eval "$ac_cv_use_timer"
3780 if test "$no_cache" != 1; then
3781 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3782 fi
3783
3784 if test "$wxUSE_TIMER" = yes; then
3785 echo "$ac_t""yes" 1>&6
3786 else
3787 echo "$ac_t""no" 1>&6
3788 fi
3789
3790
3791 enablestring=
3792 echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6
3793echo "configure:3794: checking for --${enablestring:-enable}-wave" >&5
3794 no_cache=0
3795 # Check whether --enable-wave or --disable-wave was given.
3796if test "${enable_wave+set}" = set; then
3797 enableval="$enable_wave"
3798
3799 if test "$enableval" = yes; then
3800 ac_cv_use_wave='wxUSE_WAVE=yes'
3801 else
3802 ac_cv_use_wave='wxUSE_WAVE=no'
3803 fi
3804
3805else
3806
3807 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3808 if test "x$LINE" != x ; then
3809 eval "DEFAULT_$LINE"
3810 else
3811 no_cache=1
3812 fi
3813
3814 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3815
3816fi
3817
3818
3819 eval "$ac_cv_use_wave"
3820 if test "$no_cache" != 1; then
3821 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3822 fi
3823
3824 if test "$wxUSE_WAVE" = yes; then
3825 echo "$ac_t""yes" 1>&6
3826 else
3827 echo "$ac_t""no" 1>&6
3828 fi
3829
3830
3831 enablestring=
3832 echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6
3833echo "configure:3834: checking for --${enablestring:-enable}-fraction" >&5
3834 no_cache=0
3835 # Check whether --enable-fraction or --disable-fraction was given.
3836if test "${enable_fraction+set}" = set; then
3837 enableval="$enable_fraction"
3838
3839 if test "$enableval" = yes; then
3840 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3841 else
3842 ac_cv_use_fraction='wxUSE_FRACTION=no'
3843 fi
3844
3845else
3846
3847 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3848 if test "x$LINE" != x ; then
3849 eval "DEFAULT_$LINE"
3850 else
3851 no_cache=1
3852 fi
3853
3854 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3855
3856fi
3857
3858
3859 eval "$ac_cv_use_fraction"
3860 if test "$no_cache" != 1; then
3861 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3862 fi
3863
3864 if test "$wxUSE_FRACTION" = yes; then
3865 echo "$ac_t""yes" 1>&6
3866 else
3867 echo "$ac_t""no" 1>&6
3868 fi
3869
3870
3871 enablestring=
3872 echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6
3873echo "configure:3874: checking for --${enablestring:-enable}-dynlib" >&5
3874 no_cache=0
3875 # Check whether --enable-dynlib or --disable-dynlib was given.
3876if test "${enable_dynlib+set}" = set; then
3877 enableval="$enable_dynlib"
3878
3879 if test "$enableval" = yes; then
3880 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3881 else
3882 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3883 fi
3884
3885else
3886
3887 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3888 if test "x$LINE" != x ; then
3889 eval "DEFAULT_$LINE"
3890 else
3891 no_cache=1
3892 fi
3893
3894 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3895
3896fi
3897
3898
3899 eval "$ac_cv_use_dynlib"
3900 if test "$no_cache" != 1; then
3901 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3902 fi
3903
3904 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3905 echo "$ac_t""yes" 1>&6
3906 else
3907 echo "$ac_t""no" 1>&6
3908 fi
3909
3910
3911 enablestring=
3912 echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6
3913echo "configure:3914: checking for --${enablestring:-enable}-dynamicloader" >&5
3914 no_cache=0
3915 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3916if test "${enable_dynamicloader+set}" = set; then
3917 enableval="$enable_dynamicloader"
3918
3919 if test "$enableval" = yes; then
3920 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3921 else
3922 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3923 fi
3924
3925else
3926
3927 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3928 if test "x$LINE" != x ; then
3929 eval "DEFAULT_$LINE"
3930 else
3931 no_cache=1
3932 fi
3933
3934 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3935
3936fi
3937
3938
3939 eval "$ac_cv_use_dynamicloader"
3940 if test "$no_cache" != 1; then
3941 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3942 fi
3943
3944 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3945 echo "$ac_t""yes" 1>&6
3946 else
3947 echo "$ac_t""no" 1>&6
3948 fi
3949
3950
3951 enablestring=
3952 echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6
3953echo "configure:3954: checking for --${enablestring:-enable}-longlong" >&5
3954 no_cache=0
3955 # Check whether --enable-longlong or --disable-longlong was given.
3956if test "${enable_longlong+set}" = set; then
3957 enableval="$enable_longlong"
3958
3959 if test "$enableval" = yes; then
3960 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3961 else
3962 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3963 fi
3964
3965else
3966
3967 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3968 if test "x$LINE" != x ; then
3969 eval "DEFAULT_$LINE"
3970 else
3971 no_cache=1
3972 fi
3973
3974 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3975
3976fi
3977
3978
3979 eval "$ac_cv_use_longlong"
3980 if test "$no_cache" != 1; then
3981 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3982 fi
3983
3984 if test "$wxUSE_LONGLONG" = yes; then
3985 echo "$ac_t""yes" 1>&6
3986 else
3987 echo "$ac_t""no" 1>&6
3988 fi
3989
3990
3991 enablestring=
3992 echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6
3993echo "configure:3994: checking for --${enablestring:-enable}-geometry" >&5
3994 no_cache=0
3995 # Check whether --enable-geometry or --disable-geometry was given.
3996if test "${enable_geometry+set}" = set; then
3997 enableval="$enable_geometry"
3998
3999 if test "$enableval" = yes; then
4000 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4001 else
4002 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4003 fi
4004
4005else
4006
4007 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4008 if test "x$LINE" != x ; then
4009 eval "DEFAULT_$LINE"
4010 else
4011 no_cache=1
4012 fi
4013
4014 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
4015
4016fi
4017
4018
4019 eval "$ac_cv_use_geometry"
4020 if test "$no_cache" != 1; then
4021 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4022 fi
4023
4024 if test "$wxUSE_GEOMETRY" = yes; then
4025 echo "$ac_t""yes" 1>&6
4026 else
4027 echo "$ac_t""no" 1>&6
4028 fi
4029
4030
4031 enablestring=
4032 echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6
4033echo "configure:4034: checking for --${enablestring:-enable}-log" >&5
4034 no_cache=0
4035 # Check whether --enable-log or --disable-log was given.
4036if test "${enable_log+set}" = set; then
4037 enableval="$enable_log"
4038
4039 if test "$enableval" = yes; then
4040 ac_cv_use_log='wxUSE_LOG=yes'
4041 else
4042 ac_cv_use_log='wxUSE_LOG=no'
4043 fi
4044
4045else
4046
4047 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4048 if test "x$LINE" != x ; then
4049 eval "DEFAULT_$LINE"
4050 else
4051 no_cache=1
4052 fi
4053
4054 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4055
4056fi
4057
4058
4059 eval "$ac_cv_use_log"
4060 if test "$no_cache" != 1; then
4061 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4062 fi
4063
4064 if test "$wxUSE_LOG" = yes; then
4065 echo "$ac_t""yes" 1>&6
4066 else
4067 echo "$ac_t""no" 1>&6
4068 fi
4069
4070
4071 enablestring=
4072 echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6
4073echo "configure:4074: checking for --${enablestring:-enable}-streams" >&5
4074 no_cache=0
4075 # Check whether --enable-streams or --disable-streams was given.
4076if test "${enable_streams+set}" = set; then
4077 enableval="$enable_streams"
4078
4079 if test "$enableval" = yes; then
4080 ac_cv_use_streams='wxUSE_STREAMS=yes'
4081 else
4082 ac_cv_use_streams='wxUSE_STREAMS=no'
4083 fi
4084
4085else
4086
4087 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4088 if test "x$LINE" != x ; then
4089 eval "DEFAULT_$LINE"
4090 else
4091 no_cache=1
4092 fi
4093
4094 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
4095
4096fi
4097
4098
4099 eval "$ac_cv_use_streams"
4100 if test "$no_cache" != 1; then
4101 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4102 fi
4103
4104 if test "$wxUSE_STREAMS" = yes; then
4105 echo "$ac_t""yes" 1>&6
4106 else
4107 echo "$ac_t""no" 1>&6
4108 fi
4109
4110
4111 enablestring=
4112 echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6
4113echo "configure:4114: checking for --${enablestring:-enable}-file" >&5
4114 no_cache=0
4115 # Check whether --enable-file or --disable-file was given.
4116if test "${enable_file+set}" = set; then
4117 enableval="$enable_file"
4118
4119 if test "$enableval" = yes; then
4120 ac_cv_use_file='wxUSE_FILE=yes'
4121 else
4122 ac_cv_use_file='wxUSE_FILE=no'
4123 fi
4124
4125else
4126
4127 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4128 if test "x$LINE" != x ; then
4129 eval "DEFAULT_$LINE"
4130 else
4131 no_cache=1
4132 fi
4133
4134 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4135
4136fi
4137
4138
4139 eval "$ac_cv_use_file"
4140 if test "$no_cache" != 1; then
4141 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4142 fi
4143
4144 if test "$wxUSE_FILE" = yes; then
4145 echo "$ac_t""yes" 1>&6
4146 else
4147 echo "$ac_t""no" 1>&6
4148 fi
4149
4150
4151 enablestring=
4152 echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6
4153echo "configure:4154: checking for --${enablestring:-enable}-ffile" >&5
4154 no_cache=0
4155 # Check whether --enable-ffile or --disable-ffile was given.
4156if test "${enable_ffile+set}" = set; then
4157 enableval="$enable_ffile"
4158
4159 if test "$enableval" = yes; then
4160 ac_cv_use_ffile='wxUSE_FFILE=yes'
4161 else
4162 ac_cv_use_ffile='wxUSE_FFILE=no'
4163 fi
4164
4165else
4166
4167 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4168 if test "x$LINE" != x ; then
4169 eval "DEFAULT_$LINE"
4170 else
4171 no_cache=1
4172 fi
4173
4174 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4175
4176fi
4177
4178
4179 eval "$ac_cv_use_ffile"
4180 if test "$no_cache" != 1; then
4181 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4182 fi
4183
4184 if test "$wxUSE_FFILE" = yes; then
4185 echo "$ac_t""yes" 1>&6
4186 else
4187 echo "$ac_t""no" 1>&6
4188 fi
4189
4190
4191 enablestring=
4192 echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6
4193echo "configure:4194: checking for --${enablestring:-enable}-textbuf" >&5
4194 no_cache=0
4195 # Check whether --enable-textbuf or --disable-textbuf was given.
4196if test "${enable_textbuf+set}" = set; then
4197 enableval="$enable_textbuf"
4198
4199 if test "$enableval" = yes; then
4200 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4201 else
4202 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4203 fi
4204
4205else
4206
4207 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4208 if test "x$LINE" != x ; then
4209 eval "DEFAULT_$LINE"
4210 else
4211 no_cache=1
4212 fi
4213
4214 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4215
4216fi
4217
4218
4219 eval "$ac_cv_use_textbuf"
4220 if test "$no_cache" != 1; then
4221 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4222 fi
4223
4224 if test "$wxUSE_TEXTBUFFER" = yes; then
4225 echo "$ac_t""yes" 1>&6
4226 else
4227 echo "$ac_t""no" 1>&6
4228 fi
4229
4230
4231 enablestring=
4232 echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6
4233echo "configure:4234: checking for --${enablestring:-enable}-textfile" >&5
4234 no_cache=0
4235 # Check whether --enable-textfile or --disable-textfile was given.
4236if test "${enable_textfile+set}" = set; then
4237 enableval="$enable_textfile"
4238
4239 if test "$enableval" = yes; then
4240 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4241 else
4242 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4243 fi
4244
4245else
4246
4247 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4248 if test "x$LINE" != x ; then
4249 eval "DEFAULT_$LINE"
4250 else
4251 no_cache=1
4252 fi
4253
4254 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4255
4256fi
4257
4258
4259 eval "$ac_cv_use_textfile"
4260 if test "$no_cache" != 1; then
4261 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4262 fi
4263
4264 if test "$wxUSE_TEXTFILE" = yes; then
4265 echo "$ac_t""yes" 1>&6
4266 else
4267 echo "$ac_t""no" 1>&6
4268 fi
4269
4270
4271 enablestring=
4272 echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6
4273echo "configure:4274: checking for --${enablestring:-enable}-fontmap" >&5
4274 no_cache=0
4275 # Check whether --enable-fontmap or --disable-fontmap was given.
4276if test "${enable_fontmap+set}" = set; then
4277 enableval="$enable_fontmap"
4278
4279 if test "$enableval" = yes; then
4280 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4281 else
4282 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4283 fi
4284
4285else
4286
4287 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4288 if test "x$LINE" != x ; then
4289 eval "DEFAULT_$LINE"
4290 else
4291 no_cache=1
4292 fi
4293
4294 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4295
4296fi
4297
4298
4299 eval "$ac_cv_use_fontmap"
4300 if test "$no_cache" != 1; then
4301 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4302 fi
4303
4304 if test "$wxUSE_FONTMAP" = yes; then
4305 echo "$ac_t""yes" 1>&6
4306 else
4307 echo "$ac_t""no" 1>&6
4308 fi
4309
4310
4311 enablestring=
4312 echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6
4313echo "configure:4314: checking for --${enablestring:-enable}-unicode" >&5
4314 no_cache=0
4315 # Check whether --enable-unicode or --disable-unicode was given.
4316if test "${enable_unicode+set}" = set; then
4317 enableval="$enable_unicode"
4318
4319 if test "$enableval" = yes; then
4320 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4321 else
4322 ac_cv_use_unicode='wxUSE_UNICODE=no'
4323 fi
4324
4325else
4326
4327 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4328 if test "x$LINE" != x ; then
4329 eval "DEFAULT_$LINE"
4330 else
4331 no_cache=1
4332 fi
4333
4334 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4335
4336fi
4337
4338
4339 eval "$ac_cv_use_unicode"
4340 if test "$no_cache" != 1; then
4341 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4342 fi
4343
4344 if test "$wxUSE_UNICODE" = yes; then
4345 echo "$ac_t""yes" 1>&6
4346 else
4347 echo "$ac_t""no" 1>&6
4348 fi
4349
4350
4351 enablestring=
4352 echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6
4353echo "configure:4354: checking for --${enablestring:-enable}-mslu" >&5
4354 no_cache=0
4355 # Check whether --enable-mslu or --disable-mslu was given.
4356if test "${enable_mslu+set}" = set; then
4357 enableval="$enable_mslu"
4358
4359 if test "$enableval" = yes; then
4360 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4361 else
4362 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4363 fi
4364
4365else
4366
4367 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4368 if test "x$LINE" != x ; then
4369 eval "DEFAULT_$LINE"
4370 else
4371 no_cache=1
4372 fi
4373
4374 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4375
4376fi
4377
4378
4379 eval "$ac_cv_use_mslu"
4380 if test "$no_cache" != 1; then
4381 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4382 fi
4383
4384 if test "$wxUSE_UNICODE_MSLU" = yes; then
4385 echo "$ac_t""yes" 1>&6
4386 else
4387 echo "$ac_t""no" 1>&6
4388 fi
4389
4390
4391 enablestring=
4392 echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6
4393echo "configure:4394: checking for --${enablestring:-enable}-wxprintfv" >&5
4394 no_cache=0
4395 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4396if test "${enable_wxprintfv+set}" = set; then
4397 enableval="$enable_wxprintfv"
4398
4399 if test "$enableval" = yes; then
4400 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4401 else
4402 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4403 fi
4404
4405else
4406
4407 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4408 if test "x$LINE" != x ; then
4409 eval "DEFAULT_$LINE"
4410 else
4411 no_cache=1
4412 fi
4413
4414 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4415
4416fi
4417
4418
4419 eval "$ac_cv_use_wxprintfv"
4420 if test "$no_cache" != 1; then
4421 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4422 fi
4423
4424 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4425 echo "$ac_t""yes" 1>&6
4426 else
4427 echo "$ac_t""no" 1>&6
4428 fi
4429
4430
4431 enablestring=
4432 echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6
4433echo "configure:4434: checking for --${enablestring:-enable}-std_iostreams" >&5
4434 no_cache=0
4435 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4436if test "${enable_std_iostreams+set}" = set; then
4437 enableval="$enable_std_iostreams"
4438
4439 if test "$enableval" = yes; then
4440 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4441 else
4442 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4443 fi
4444
4445else
4446
4447 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4448 if test "x$LINE" != x ; then
4449 eval "DEFAULT_$LINE"
4450 else
4451 no_cache=1
4452 fi
4453
4454 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4455
4456fi
4457
4458
4459 eval "$ac_cv_use_std_iostreams"
4460 if test "$no_cache" != 1; then
4461 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4462 fi
4463
4464 if test "$wxUSE_STD_IOSTREAM" = yes; then
4465 echo "$ac_t""yes" 1>&6
4466 else
4467 echo "$ac_t""no" 1>&6
4468 fi
4469
4470
4471 enablestring=
4472 echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6
4473echo "configure:4474: checking for --${enablestring:-enable}-filesystem" >&5
4474 no_cache=0
4475 # Check whether --enable-filesystem or --disable-filesystem was given.
4476if test "${enable_filesystem+set}" = set; then
4477 enableval="$enable_filesystem"
4478
4479 if test "$enableval" = yes; then
4480 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4481 else
4482 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4483 fi
4484
4485else
4486
4487 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4488 if test "x$LINE" != x ; then
4489 eval "DEFAULT_$LINE"
4490 else
4491 no_cache=1
4492 fi
4493
4494 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4495
4496fi
4497
4498
4499 eval "$ac_cv_use_filesystem"
4500 if test "$no_cache" != 1; then
4501 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4502 fi
4503
4504 if test "$wxUSE_FILESYSTEM" = yes; then
4505 echo "$ac_t""yes" 1>&6
4506 else
4507 echo "$ac_t""no" 1>&6
4508 fi
4509
4510
4511 enablestring=
4512 echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6
4513echo "configure:4514: checking for --${enablestring:-enable}-fs_inet" >&5
4514 no_cache=0
4515 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4516if test "${enable_fs_inet+set}" = set; then
4517 enableval="$enable_fs_inet"
4518
4519 if test "$enableval" = yes; then
4520 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4521 else
4522 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4523 fi
4524
4525else
4526
4527 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4528 if test "x$LINE" != x ; then
4529 eval "DEFAULT_$LINE"
4530 else
4531 no_cache=1
4532 fi
4533
4534 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4535
4536fi
4537
4538
4539 eval "$ac_cv_use_fs_inet"
4540 if test "$no_cache" != 1; then
4541 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4542 fi
4543
4544 if test "$wxUSE_FS_INET" = yes; then
4545 echo "$ac_t""yes" 1>&6
4546 else
4547 echo "$ac_t""no" 1>&6
4548 fi
4549
4550
4551 enablestring=
4552 echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6
4553echo "configure:4554: checking for --${enablestring:-enable}-fs_zip" >&5
4554 no_cache=0
4555 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4556if test "${enable_fs_zip+set}" = set; then
4557 enableval="$enable_fs_zip"
4558
4559 if test "$enableval" = yes; then
4560 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4561 else
4562 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4563 fi
4564
4565else
4566
4567 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4568 if test "x$LINE" != x ; then
4569 eval "DEFAULT_$LINE"
4570 else
4571 no_cache=1
4572 fi
4573
4574 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4575
4576fi
4577
4578
4579 eval "$ac_cv_use_fs_zip"
4580 if test "$no_cache" != 1; then
4581 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4582 fi
4583
4584 if test "$wxUSE_FS_ZIP" = yes; then
4585 echo "$ac_t""yes" 1>&6
4586 else
4587 echo "$ac_t""no" 1>&6
4588 fi
4589
4590
4591 enablestring=
4592 echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6
4593echo "configure:4594: checking for --${enablestring:-enable}-zipstream" >&5
4594 no_cache=0
4595 # Check whether --enable-zipstream or --disable-zipstream was given.
4596if test "${enable_zipstream+set}" = set; then
4597 enableval="$enable_zipstream"
4598
4599 if test "$enableval" = yes; then
4600 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4601 else
4602 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4603 fi
4604
4605else
4606
4607 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4608 if test "x$LINE" != x ; then
4609 eval "DEFAULT_$LINE"
4610 else
4611 no_cache=1
4612 fi
4613
4614 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4615
4616fi
4617
4618
4619 eval "$ac_cv_use_zipstream"
4620 if test "$no_cache" != 1; then
4621 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4622 fi
4623
4624 if test "$wxUSE_ZIPSTREAM" = yes; then
4625 echo "$ac_t""yes" 1>&6
4626 else
4627 echo "$ac_t""no" 1>&6
4628 fi
4629
4630
4631
4632 enablestring=
4633 echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6
4634echo "configure:4635: checking for --${enablestring:-enable}-catch_segvs" >&5
4635 no_cache=0
4636 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4637if test "${enable_catch_segvs+set}" = set; then
4638 enableval="$enable_catch_segvs"
4639
4640 if test "$enableval" = yes; then
4641 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4642 else
4643 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4644 fi
4645
4646else
4647
4648 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4649 if test "x$LINE" != x ; then
4650 eval "DEFAULT_$LINE"
4651 else
4652 no_cache=1
4653 fi
4654
4655 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4656
4657fi
4658
4659
4660 eval "$ac_cv_use_catch_segvs"
4661 if test "$no_cache" != 1; then
4662 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4663 fi
4664
4665 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4666 echo "$ac_t""yes" 1>&6
4667 else
4668 echo "$ac_t""no" 1>&6
4669 fi
4670
4671
4672 enablestring=
4673 echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6
4674echo "configure:4675: checking for --${enablestring:-enable}-snglinst" >&5
4675 no_cache=0
4676 # Check whether --enable-snglinst or --disable-snglinst was given.
4677if test "${enable_snglinst+set}" = set; then
4678 enableval="$enable_snglinst"
4679
4680 if test "$enableval" = yes; then
4681 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4682 else
4683 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4684 fi
4685
4686else
4687
4688 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4689 if test "x$LINE" != x ; then
4690 eval "DEFAULT_$LINE"
4691 else
4692 no_cache=1
4693 fi
4694
4695 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4696
4697fi
4698
4699
4700 eval "$ac_cv_use_snglinst"
4701 if test "$no_cache" != 1; then
4702 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4703 fi
4704
4705 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4706 echo "$ac_t""yes" 1>&6
4707 else
4708 echo "$ac_t""no" 1>&6
4709 fi
4710
4711
4712
4713 enablestring=
4714 echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6
4715echo "configure:4716: checking for --${enablestring:-enable}-mimetype" >&5
4716 no_cache=0
4717 # Check whether --enable-mimetype or --disable-mimetype was given.
4718if test "${enable_mimetype+set}" = set; then
4719 enableval="$enable_mimetype"
4720
4721 if test "$enableval" = yes; then
4722 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4723 else
4724 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4725 fi
4726
4727else
4728
4729 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4730 if test "x$LINE" != x ; then
4731 eval "DEFAULT_$LINE"
4732 else
4733 no_cache=1
4734 fi
4735
4736 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4737
4738fi
4739
4740
4741 eval "$ac_cv_use_mimetype"
4742 if test "$no_cache" != 1; then
4743 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4744 fi
4745
4746 if test "$wxUSE_MIMETYPE" = yes; then
4747 echo "$ac_t""yes" 1>&6
4748 else
4749 echo "$ac_t""no" 1>&6
4750 fi
4751
4752
4753 enablestring=
4754 echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6
4755echo "configure:4756: checking for --${enablestring:-enable}-system_options" >&5
4756 no_cache=0
4757 # Check whether --enable-system_options or --disable-system_options was given.
4758if test "${enable_system_options+set}" = set; then
4759 enableval="$enable_system_options"
4760
4761 if test "$enableval" = yes; then
4762 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4763 else
4764 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4765 fi
4766
4767else
4768
4769 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4770 if test "x$LINE" != x ; then
4771 eval "DEFAULT_$LINE"
4772 else
4773 no_cache=1
4774 fi
4775
4776 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4777
4778fi
4779
4780
4781 eval "$ac_cv_use_system_options"
4782 if test "$no_cache" != 1; then
4783 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4784 fi
4785
4786 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4787 echo "$ac_t""yes" 1>&6
4788 else
4789 echo "$ac_t""no" 1>&6
4790 fi
4791
4792
4793
4794 enablestring=
4795 echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6
4796echo "configure:4797: checking for --${enablestring:-enable}-url" >&5
4797 no_cache=0
4798 # Check whether --enable-url or --disable-url was given.
4799if test "${enable_url+set}" = set; then
4800 enableval="$enable_url"
4801
4802 if test "$enableval" = yes; then
4803 ac_cv_use_url='wxUSE_URL=yes'
4804 else
4805 ac_cv_use_url='wxUSE_URL=no'
4806 fi
4807
4808else
4809
4810 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4811 if test "x$LINE" != x ; then
4812 eval "DEFAULT_$LINE"
4813 else
4814 no_cache=1
4815 fi
4816
4817 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4818
4819fi
4820
4821
4822 eval "$ac_cv_use_url"
4823 if test "$no_cache" != 1; then
4824 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4825 fi
4826
4827 if test "$wxUSE_URL" = yes; then
4828 echo "$ac_t""yes" 1>&6
4829 else
4830 echo "$ac_t""no" 1>&6
4831 fi
4832
4833
4834 enablestring=
4835 echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6
4836echo "configure:4837: checking for --${enablestring:-enable}-protocol" >&5
4837 no_cache=0
4838 # Check whether --enable-protocol or --disable-protocol was given.
4839if test "${enable_protocol+set}" = set; then
4840 enableval="$enable_protocol"
4841
4842 if test "$enableval" = yes; then
4843 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4844 else
4845 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4846 fi
4847
4848else
4849
4850 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4851 if test "x$LINE" != x ; then
4852 eval "DEFAULT_$LINE"
4853 else
4854 no_cache=1
4855 fi
4856
4857 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4858
4859fi
4860
4861
4862 eval "$ac_cv_use_protocol"
4863 if test "$no_cache" != 1; then
4864 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4865 fi
4866
4867 if test "$wxUSE_PROTOCOL" = yes; then
4868 echo "$ac_t""yes" 1>&6
4869 else
4870 echo "$ac_t""no" 1>&6
4871 fi
4872
4873
4874 enablestring=
4875 echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6
4876echo "configure:4877: checking for --${enablestring:-enable}-protocol_http" >&5
4877 no_cache=0
4878 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4879if test "${enable_protocol_http+set}" = set; then
4880 enableval="$enable_protocol_http"
4881
4882 if test "$enableval" = yes; then
4883 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4884 else
4885 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4886 fi
4887
4888else
4889
4890 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4891 if test "x$LINE" != x ; then
4892 eval "DEFAULT_$LINE"
4893 else
4894 no_cache=1
4895 fi
4896
4897 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4898
4899fi
4900
4901
4902 eval "$ac_cv_use_protocol_http"
4903 if test "$no_cache" != 1; then
4904 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4905 fi
4906
4907 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4908 echo "$ac_t""yes" 1>&6
4909 else
4910 echo "$ac_t""no" 1>&6
4911 fi
4912
4913
4914 enablestring=
4915 echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6
4916echo "configure:4917: checking for --${enablestring:-enable}-protocol_ftp" >&5
4917 no_cache=0
4918 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4919if test "${enable_protocol_ftp+set}" = set; then
4920 enableval="$enable_protocol_ftp"
4921
4922 if test "$enableval" = yes; then
4923 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4924 else
4925 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4926 fi
4927
4928else
4929
4930 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4931 if test "x$LINE" != x ; then
4932 eval "DEFAULT_$LINE"
4933 else
4934 no_cache=1
4935 fi
4936
4937 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4938
4939fi
4940
4941
4942 eval "$ac_cv_use_protocol_ftp"
4943 if test "$no_cache" != 1; then
4944 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4945 fi
4946
4947 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4948 echo "$ac_t""yes" 1>&6
4949 else
4950 echo "$ac_t""no" 1>&6
4951 fi
4952
4953
4954 enablestring=
4955 echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6
4956echo "configure:4957: checking for --${enablestring:-enable}-protocol_file" >&5
4957 no_cache=0
4958 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4959if test "${enable_protocol_file+set}" = set; then
4960 enableval="$enable_protocol_file"
4961
4962 if test "$enableval" = yes; then
4963 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4964 else
4965 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4966 fi
4967
4968else
4969
4970 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4971 if test "x$LINE" != x ; then
4972 eval "DEFAULT_$LINE"
4973 else
4974 no_cache=1
4975 fi
4976
4977 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4978
4979fi
4980
4981
4982 eval "$ac_cv_use_protocol_file"
4983 if test "$no_cache" != 1; then
4984 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4985 fi
4986
4987 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4988 echo "$ac_t""yes" 1>&6
4989 else
4990 echo "$ac_t""no" 1>&6
4991 fi
4992
4993
4994
4995
4996
4997 enablestring=
4998 echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6
4999echo "configure:5000: checking for --${enablestring:-enable}-threads" >&5
5000 no_cache=0
5001 # Check whether --enable-threads or --disable-threads was given.
5002if test "${enable_threads+set}" = set; then
5003 enableval="$enable_threads"
5004
5005 if test "$enableval" = yes; then
5006 ac_cv_use_threads='wxUSE_THREADS=yes'
5007 else
5008 ac_cv_use_threads='wxUSE_THREADS=no'
5009 fi
5010
5011else
5012
5013 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5014 if test "x$LINE" != x ; then
5015 eval "DEFAULT_$LINE"
5016 else
5017 no_cache=1
5018 fi
5019
5020 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5021
5022fi
5023
5024
5025 eval "$ac_cv_use_threads"
5026 if test "$no_cache" != 1; then
5027 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5028 fi
5029
5030 if test "$wxUSE_THREADS" = yes; then
5031 echo "$ac_t""yes" 1>&6
5032 else
5033 echo "$ac_t""no" 1>&6
5034 fi
5035
5036
5037if test "$wxUSE_GUI" = "yes"; then
5038
5039
5040
5041 enablestring=
5042 echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6
5043echo "configure:5044: checking for --${enablestring:-enable}-docview" >&5
5044 no_cache=0
5045 # Check whether --enable-docview or --disable-docview was given.
5046if test "${enable_docview+set}" = set; then
5047 enableval="$enable_docview"
5048
5049 if test "$enableval" = yes; then
5050 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5051 else
5052 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5053 fi
5054
5055else
5056
5057 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5058 if test "x$LINE" != x ; then
5059 eval "DEFAULT_$LINE"
5060 else
5061 no_cache=1
5062 fi
5063
5064 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5065
5066fi
5067
5068
5069 eval "$ac_cv_use_docview"
5070 if test "$no_cache" != 1; then
5071 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5072 fi
5073
5074 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5075 echo "$ac_t""yes" 1>&6
5076 else
5077 echo "$ac_t""no" 1>&6
5078 fi
5079
5080
5081 enablestring=
5082 echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6
5083echo "configure:5084: checking for --${enablestring:-enable}-help" >&5
5084 no_cache=0
5085 # Check whether --enable-help or --disable-help was given.
5086if test "${enable_help+set}" = set; then
5087 enableval="$enable_help"
5088
5089 if test "$enableval" = yes; then
5090 ac_cv_use_help='wxUSE_HELP=yes'
5091 else
5092 ac_cv_use_help='wxUSE_HELP=no'
5093 fi
5094
5095else
5096
5097 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5098 if test "x$LINE" != x ; then
5099 eval "DEFAULT_$LINE"
5100 else
5101 no_cache=1
5102 fi
5103
5104 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5105
5106fi
5107
5108
5109 eval "$ac_cv_use_help"
5110 if test "$no_cache" != 1; then
5111 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5112 fi
5113
5114 if test "$wxUSE_HELP" = yes; then
5115 echo "$ac_t""yes" 1>&6
5116 else
5117 echo "$ac_t""no" 1>&6
5118 fi
5119
5120
5121 enablestring=
5122 echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6
5123echo "configure:5124: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5124 no_cache=0
5125 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5126if test "${enable_mshtmlhelp+set}" = set; then
5127 enableval="$enable_mshtmlhelp"
5128
5129 if test "$enableval" = yes; then
5130 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5131 else
5132 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5133 fi
5134
5135else
5136
5137 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5138 if test "x$LINE" != x ; then
5139 eval "DEFAULT_$LINE"
5140 else
5141 no_cache=1
5142 fi
5143
5144 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
5145
5146fi
5147
5148
5149 eval "$ac_cv_use_mshtmlhelp"
5150 if test "$no_cache" != 1; then
5151 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5152 fi
5153
5154 if test "$wxUSE_MS_HTML_HELP" = yes; then
5155 echo "$ac_t""yes" 1>&6
5156 else
5157 echo "$ac_t""no" 1>&6
5158 fi
5159
5160
5161 enablestring=
5162 echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6
5163echo "configure:5164: checking for --${enablestring:-enable}-html" >&5
5164 no_cache=0
5165 # Check whether --enable-html or --disable-html was given.
5166if test "${enable_html+set}" = set; then
5167 enableval="$enable_html"
5168
5169 if test "$enableval" = yes; then
5170 ac_cv_use_html='wxUSE_HTML=yes'
5171 else
5172 ac_cv_use_html='wxUSE_HTML=no'
5173 fi
5174
5175else
5176
5177 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5178 if test "x$LINE" != x ; then
5179 eval "DEFAULT_$LINE"
5180 else
5181 no_cache=1
5182 fi
5183
5184 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5185
5186fi
5187
5188
5189 eval "$ac_cv_use_html"
5190 if test "$no_cache" != 1; then
5191 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5192 fi
5193
5194 if test "$wxUSE_HTML" = yes; then
5195 echo "$ac_t""yes" 1>&6
5196 else
5197 echo "$ac_t""no" 1>&6
5198 fi
5199
5200
5201 enablestring=
5202 echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6
5203echo "configure:5204: checking for --${enablestring:-enable}-htmlhelp" >&5
5204 no_cache=0
5205 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5206if test "${enable_htmlhelp+set}" = set; then
5207 enableval="$enable_htmlhelp"
5208
5209 if test "$enableval" = yes; then
5210 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5211 else
5212 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5213 fi
5214
5215else
5216
5217 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5218 if test "x$LINE" != x ; then
5219 eval "DEFAULT_$LINE"
5220 else
5221 no_cache=1
5222 fi
5223
5224 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5225
5226fi
5227
5228
5229 eval "$ac_cv_use_htmlhelp"
5230 if test "$no_cache" != 1; then
5231 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5232 fi
5233
5234 if test "$wxUSE_WXHTML_HELP" = yes; then
5235 echo "$ac_t""yes" 1>&6
5236 else
5237 echo "$ac_t""no" 1>&6
5238 fi
5239
5240
5241 enablestring=
5242 echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6
5243echo "configure:5244: checking for --${enablestring:-enable}-constraints" >&5
5244 no_cache=0
5245 # Check whether --enable-constraints or --disable-constraints was given.
5246if test "${enable_constraints+set}" = set; then
5247 enableval="$enable_constraints"
5248
5249 if test "$enableval" = yes; then
5250 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5251 else
5252 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5253 fi
5254
5255else
5256
5257 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5258 if test "x$LINE" != x ; then
5259 eval "DEFAULT_$LINE"
5260 else
5261 no_cache=1
5262 fi
5263
5264 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5265
5266fi
5267
5268
5269 eval "$ac_cv_use_constraints"
5270 if test "$no_cache" != 1; then
5271 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5272 fi
5273
5274 if test "$wxUSE_CONSTRAINTS" = yes; then
5275 echo "$ac_t""yes" 1>&6
5276 else
5277 echo "$ac_t""no" 1>&6
5278 fi
5279
5280
5281 enablestring=
5282 echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6
5283echo "configure:5284: checking for --${enablestring:-enable}-printarch" >&5
5284 no_cache=0
5285 # Check whether --enable-printarch or --disable-printarch was given.
5286if test "${enable_printarch+set}" = set; then
5287 enableval="$enable_printarch"
5288
5289 if test "$enableval" = yes; then
5290 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5291 else
5292 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5293 fi
5294
5295else
5296
5297 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5298 if test "x$LINE" != x ; then
5299 eval "DEFAULT_$LINE"
5300 else
5301 no_cache=1
5302 fi
5303
5304 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5305
5306fi
5307
5308
5309 eval "$ac_cv_use_printarch"
5310 if test "$no_cache" != 1; then
5311 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5312 fi
5313
5314 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5315 echo "$ac_t""yes" 1>&6
5316 else
5317 echo "$ac_t""no" 1>&6
5318 fi
5319
5320
5321 enablestring=
5322 echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6
5323echo "configure:5324: checking for --${enablestring:-enable}-mdi" >&5
5324 no_cache=0
5325 # Check whether --enable-mdi or --disable-mdi was given.
5326if test "${enable_mdi+set}" = set; then
5327 enableval="$enable_mdi"
5328
5329 if test "$enableval" = yes; then
5330 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5331 else
5332 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5333 fi
5334
5335else
5336
5337 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5338 if test "x$LINE" != x ; then
5339 eval "DEFAULT_$LINE"
5340 else
5341 no_cache=1
5342 fi
5343
5344 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5345
5346fi
5347
5348
5349 eval "$ac_cv_use_mdi"
5350 if test "$no_cache" != 1; then
5351 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5352 fi
5353
5354 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5355 echo "$ac_t""yes" 1>&6
5356 else
5357 echo "$ac_t""no" 1>&6
5358 fi
5359
5360
5361 enablestring=
5362 echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6
5363echo "configure:5364: checking for --${enablestring:-enable}-loggui" >&5
5364 no_cache=0
5365 # Check whether --enable-loggui or --disable-loggui was given.
5366if test "${enable_loggui+set}" = set; then
5367 enableval="$enable_loggui"
5368
5369 if test "$enableval" = yes; then
5370 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5371 else
5372 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5373 fi
5374
5375else
5376
5377 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5378 if test "x$LINE" != x ; then
5379 eval "DEFAULT_$LINE"
5380 else
5381 no_cache=1
5382 fi
5383
5384 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5385
5386fi
5387
5388
5389 eval "$ac_cv_use_loggui"
5390 if test "$no_cache" != 1; then
5391 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5392 fi
5393
5394 if test "$wxUSE_LOGGUI" = yes; then
5395 echo "$ac_t""yes" 1>&6
5396 else
5397 echo "$ac_t""no" 1>&6
5398 fi
5399
5400
5401 enablestring=
5402 echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6
5403echo "configure:5404: checking for --${enablestring:-enable}-logwin" >&5
5404 no_cache=0
5405 # Check whether --enable-logwin or --disable-logwin was given.
5406if test "${enable_logwin+set}" = set; then
5407 enableval="$enable_logwin"
5408
5409 if test "$enableval" = yes; then
5410 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5411 else
5412 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5413 fi
5414
5415else
5416
5417 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5418 if test "x$LINE" != x ; then
5419 eval "DEFAULT_$LINE"
5420 else
5421 no_cache=1
5422 fi
5423
5424 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5425
5426fi
5427
5428
5429 eval "$ac_cv_use_logwin"
5430 if test "$no_cache" != 1; then
5431 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5432 fi
5433
5434 if test "$wxUSE_LOGWINDOW" = yes; then
5435 echo "$ac_t""yes" 1>&6
5436 else
5437 echo "$ac_t""no" 1>&6
5438 fi
5439
5440
5441 enablestring=
5442 echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6
5443echo "configure:5444: checking for --${enablestring:-enable}-logdialog" >&5
5444 no_cache=0
5445 # Check whether --enable-logdialog or --disable-logdialog was given.
5446if test "${enable_logdialog+set}" = set; then
5447 enableval="$enable_logdialog"
5448
5449 if test "$enableval" = yes; then
5450 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5451 else
5452 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5453 fi
5454
5455else
5456
5457 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5458 if test "x$LINE" != x ; then
5459 eval "DEFAULT_$LINE"
5460 else
5461 no_cache=1
5462 fi
5463
5464 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5465
5466fi
5467
5468
5469 eval "$ac_cv_use_logdialog"
5470 if test "$no_cache" != 1; then
5471 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5472 fi
5473
5474 if test "$wxUSE_LOGDIALOG" = yes; then
5475 echo "$ac_t""yes" 1>&6
5476 else
5477 echo "$ac_t""no" 1>&6
5478 fi
5479
5480
5481
5482 enablestring=
5483 echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6
5484echo "configure:5485: checking for --${enablestring:-enable}-postscript" >&5
5485 no_cache=0
5486 # Check whether --enable-postscript or --disable-postscript was given.
5487if test "${enable_postscript+set}" = set; then
5488 enableval="$enable_postscript"
5489
5490 if test "$enableval" = yes; then
5491 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5492 else
5493 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5494 fi
5495
5496else
5497
5498 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5499 if test "x$LINE" != x ; then
5500 eval "DEFAULT_$LINE"
5501 else
5502 no_cache=1
5503 fi
5504
5505 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5506
5507fi
5508
5509
5510 eval "$ac_cv_use_postscript"
5511 if test "$no_cache" != 1; then
5512 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5513 fi
5514
5515 if test "$wxUSE_POSTSCRIPT" = yes; then
5516 echo "$ac_t""yes" 1>&6
5517 else
5518 echo "$ac_t""no" 1>&6
5519 fi
5520
5521
5522
5523
5524
5525 enablestring=
5526 echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6
5527echo "configure:5528: checking for --${enablestring:-enable}-prologio" >&5
5528 no_cache=0
5529 # Check whether --enable-prologio or --disable-prologio was given.
5530if test "${enable_prologio+set}" = set; then
5531 enableval="$enable_prologio"
5532
5533 if test "$enableval" = yes; then
5534 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5535 else
5536 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5537 fi
5538
5539else
5540
5541 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5542 if test "x$LINE" != x ; then
5543 eval "DEFAULT_$LINE"
5544 else
5545 no_cache=1
5546 fi
5547
5548 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5549
5550fi
5551
5552
5553 eval "$ac_cv_use_prologio"
5554 if test "$no_cache" != 1; then
5555 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5556 fi
5557
5558 if test "$wxUSE_PROLOGIO" = yes; then
5559 echo "$ac_t""yes" 1>&6
5560 else
5561 echo "$ac_t""no" 1>&6
5562 fi
5563
5564
5565 enablestring=
5566 echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6
5567echo "configure:5568: checking for --${enablestring:-enable}-resources" >&5
5568 no_cache=0
5569 # Check whether --enable-resources or --disable-resources was given.
5570if test "${enable_resources+set}" = set; then
5571 enableval="$enable_resources"
5572
5573 if test "$enableval" = yes; then
5574 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5575 else
5576 ac_cv_use_resources='wxUSE_RESOURCES=no'
5577 fi
5578
5579else
5580
5581 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5582 if test "x$LINE" != x ; then
5583 eval "DEFAULT_$LINE"
5584 else
5585 no_cache=1
5586 fi
5587
5588 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5589
5590fi
5591
5592
5593 eval "$ac_cv_use_resources"
5594 if test "$no_cache" != 1; then
5595 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5596 fi
5597
5598 if test "$wxUSE_RESOURCES" = yes; then
5599 echo "$ac_t""yes" 1>&6
5600 else
5601 echo "$ac_t""no" 1>&6
5602 fi
5603
5604
5605
5606 enablestring=
5607 echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6
5608echo "configure:5609: checking for --${enablestring:-enable}-xresources" >&5
5609 no_cache=0
5610 # Check whether --enable-xresources or --disable-xresources was given.
5611if test "${enable_xresources+set}" = set; then
5612 enableval="$enable_xresources"
5613
5614 if test "$enableval" = yes; then
5615 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5616 else
5617 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5618 fi
5619
5620else
5621
5622 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5623 if test "x$LINE" != x ; then
5624 eval "DEFAULT_$LINE"
5625 else
5626 no_cache=1
5627 fi
5628
5629 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5630
5631fi
5632
5633
5634 eval "$ac_cv_use_xresources"
5635 if test "$no_cache" != 1; then
5636 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5637 fi
5638
5639 if test "$wxUSE_X_RESOURCES" = yes; then
5640 echo "$ac_t""yes" 1>&6
5641 else
5642 echo "$ac_t""no" 1>&6
5643 fi
5644
5645
5646
5647
5648 enablestring=
5649 echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6
5650echo "configure:5651: checking for --${enablestring:-enable}-clipboard" >&5
5651 no_cache=0
5652 # Check whether --enable-clipboard or --disable-clipboard was given.
5653if test "${enable_clipboard+set}" = set; then
5654 enableval="$enable_clipboard"
5655
5656 if test "$enableval" = yes; then
5657 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5658 else
5659 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5660 fi
5661
5662else
5663
5664 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5665 if test "x$LINE" != x ; then
5666 eval "DEFAULT_$LINE"
5667 else
5668 no_cache=1
5669 fi
5670
5671 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5672
5673fi
5674
5675
5676 eval "$ac_cv_use_clipboard"
5677 if test "$no_cache" != 1; then
5678 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5679 fi
5680
5681 if test "$wxUSE_CLIPBOARD" = yes; then
5682 echo "$ac_t""yes" 1>&6
5683 else
5684 echo "$ac_t""no" 1>&6
5685 fi
5686
5687
5688 enablestring=
5689 echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6
5690echo "configure:5691: checking for --${enablestring:-enable}-dnd" >&5
5691 no_cache=0
5692 # Check whether --enable-dnd or --disable-dnd was given.
5693if test "${enable_dnd+set}" = set; then
5694 enableval="$enable_dnd"
5695
5696 if test "$enableval" = yes; then
5697 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5698 else
5699 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5700 fi
5701
5702else
5703
5704 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5705 if test "x$LINE" != x ; then
5706 eval "DEFAULT_$LINE"
5707 else
5708 no_cache=1
5709 fi
5710
5711 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5712
5713fi
5714
5715
5716 eval "$ac_cv_use_dnd"
5717 if test "$no_cache" != 1; then
5718 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5719 fi
5720
5721 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5722 echo "$ac_t""yes" 1>&6
5723 else
5724 echo "$ac_t""no" 1>&6
5725 fi
5726
5727
5728 enablestring=
5729 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
5730echo "configure:5731: checking for --${enablestring:-enable}-metafile" >&5
5731 no_cache=0
5732 # Check whether --enable-metafile or --disable-metafile was given.
5733if test "${enable_metafile+set}" = set; then
5734 enableval="$enable_metafile"
5735
5736 if test "$enableval" = yes; then
5737 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5738 else
5739 ac_cv_use_metafile='wxUSE_METAFILE=no'
5740 fi
5741
5742else
5743
5744 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5745 if test "x$LINE" != x ; then
5746 eval "DEFAULT_$LINE"
5747 else
5748 no_cache=1
5749 fi
5750
5751 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5752
5753fi
5754
5755
5756 eval "$ac_cv_use_metafile"
5757 if test "$no_cache" != 1; then
5758 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5759 fi
5760
5761 if test "$wxUSE_METAFILE" = yes; then
5762 echo "$ac_t""yes" 1>&6
5763 else
5764 echo "$ac_t""no" 1>&6
5765 fi
5766
5767
5768
5769 enablestring=
5770 echo $ac_n "checking for --${enablestring:-enable}-treelayout""... $ac_c" 1>&6
5771echo "configure:5772: checking for --${enablestring:-enable}-treelayout" >&5
5772 no_cache=0
5773 # Check whether --enable-treelayout or --disable-treelayout was given.
5774if test "${enable_treelayout+set}" = set; then
5775 enableval="$enable_treelayout"
5776
5777 if test "$enableval" = yes; then
5778 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5779 else
5780 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5781 fi
5782
5783else
5784
5785 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5786 if test "x$LINE" != x ; then
5787 eval "DEFAULT_$LINE"
5788 else
5789 no_cache=1
5790 fi
5791
5792 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5793
5794fi
5795
5796
5797 eval "$ac_cv_use_treelayout"
5798 if test "$no_cache" != 1; then
5799 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5800 fi
5801
5802 if test "$wxUSE_TREELAYOUT" = yes; then
5803 echo "$ac_t""yes" 1>&6
5804 else
5805 echo "$ac_t""no" 1>&6
5806 fi
5807
5808
5809
5810
5811 enablestring=
5812 echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6
5813echo "configure:5814: checking for --${enablestring:-enable}-controls" >&5
5814 no_cache=0
5815 # Check whether --enable-controls or --disable-controls was given.
5816if test "${enable_controls+set}" = set; then
5817 enableval="$enable_controls"
5818
5819 if test "$enableval" = yes; then
5820 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5821 else
5822 ac_cv_use_controls='wxUSE_CONTROLS=no'
5823 fi
5824
5825else
5826
5827 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5828 if test "x$LINE" != x ; then
5829 eval "DEFAULT_$LINE"
5830 else
5831 no_cache=1
5832 fi
5833
5834 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5835
5836fi
5837
5838
5839 eval "$ac_cv_use_controls"
5840 if test "$no_cache" != 1; then
5841 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5842 fi
5843
5844 if test "$wxUSE_CONTROLS" = yes; then
5845 echo "$ac_t""yes" 1>&6
5846 else
5847 echo "$ac_t""no" 1>&6
5848 fi
5849
5850
5851if test "$wxUSE_CONTROLS" = "yes"; then
5852 DEFAULT_wxUSE_ACCEL=yes
5853 DEFAULT_wxUSE_BMPBUTTON=yes
5854 DEFAULT_wxUSE_BUTTON=yes
5855 DEFAULT_wxUSE_CALCTRL=no
5856 DEFAULT_wxUSE_CARET=yes
5857 DEFAULT_wxUSE_COMBOBOX=yes
5858 DEFAULT_wxUSE_CHECKBOX=yes
5859 DEFAULT_wxUSE_CHECKLISTBOX=yes
5860 DEFAULT_wxUSE_CHOICE=yes
5861 DEFAULT_wxUSE_GAUGE=yes
5862 DEFAULT_wxUSE_GRID=yes
5863 DEFAULT_wxUSE_NEW_GRID=yes
5864 DEFAULT_wxUSE_IMAGLIST=yes
5865 DEFAULT_wxUSE_LISTBOX=yes
5866 DEFAULT_wxUSE_LISTCTRL=yes
5867 DEFAULT_wxUSE_NOTEBOOK=yes
5868 DEFAULT_wxUSE_PROPSHEET=yes
5869 DEFAULT_wxUSE_RADIOBOX=yes
5870 DEFAULT_wxUSE_RADIOBTN=yes
5871 DEFAULT_wxUSE_SASH=yes
5872 DEFAULT_wxUSE_SCROLLBAR=yes
5873 DEFAULT_wxUSE_SLIDER=yes
5874 DEFAULT_wxUSE_SPINBTN=yes
5875 DEFAULT_wxUSE_SPINCTRL=yes
5876 DEFAULT_wxUSE_SPLITTER=yes
5877 DEFAULT_wxUSE_STATBMP=yes
5878 DEFAULT_wxUSE_STATBOX=yes
5879 DEFAULT_wxUSE_STATLINE=yes
5880 DEFAULT_wxUSE_STATUSBAR=yes
5881 DEFAULT_wxUSE_TAB_DIALOG=yes
5882 DEFAULT_wxUSE_TOGGLEBTN=yes
5883 DEFAULT_wxUSE_TOOLBAR=yes
5884 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5885 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5886 DEFAULT_wxUSE_TOOLTIPS=yes
5887 DEFAULT_wxUSE_TREECTRL=yes
5888 DEFAULT_wxUSE_POPUPWIN=yes
5889 DEFAULT_wxUSE_TIPWINDOW=yes
5890elif test "$wxUSE_CONTROLS" = "no"; then
5891 DEFAULT_wxUSE_ACCEL=no
5892 DEFAULT_wxUSE_BMPBUTTON=no
5893 DEFAULT_wxUSE_BUTTON=no
5894 DEFAULT_wxUSE_CALCTRL=no
5895 DEFAULT_wxUSE_CARET=no
5896 DEFAULT_wxUSE_COMBOBOX=no
5897 DEFAULT_wxUSE_CHECKBOX=no
5898 DEFAULT_wxUSE_CHECKLISTBOX=no
5899 DEFAULT_wxUSE_CHOICE=no
5900 DEFAULT_wxUSE_GAUGE=no
5901 DEFAULT_wxUSE_GRID=no
5902 DEFAULT_wxUSE_NEW_GRID=no
5903 DEFAULT_wxUSE_IMAGLIST=no
5904 DEFAULT_wxUSE_LISTBOX=no
5905 DEFAULT_wxUSE_LISTCTRL=no
5906 DEFAULT_wxUSE_NOTEBOOK=no
5907 DEFAULT_wxUSE_PROPSHEET=no
5908 DEFAULT_wxUSE_RADIOBOX=no
5909 DEFAULT_wxUSE_RADIOBTN=no
5910 DEFAULT_wxUSE_SASH=no
5911 DEFAULT_wxUSE_SCROLLBAR=no
5912 DEFAULT_wxUSE_SLIDER=no
5913 DEFAULT_wxUSE_SPINBTN=no
5914 DEFAULT_wxUSE_SPINCTRL=no
5915 DEFAULT_wxUSE_SPLITTER=no
5916 DEFAULT_wxUSE_STATBMP=no
5917 DEFAULT_wxUSE_STATBOX=no
5918 DEFAULT_wxUSE_STATLINE=no
5919 DEFAULT_wxUSE_STATUSBAR=no
5920 DEFAULT_wxUSE_TAB_DIALOG=no
5921 DEFAULT_wxUSE_TOGGLEBTN=no
5922 DEFAULT_wxUSE_TOOLBAR=no
5923 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5924 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5925 DEFAULT_wxUSE_TOOLTIPS=no
5926 DEFAULT_wxUSE_TREECTRL=no
5927 DEFAULT_wxUSE_POPUPWIN=no
5928 DEFAULT_wxUSE_TIPWINDOW=no
5929fi
5930
5931
5932 enablestring=
5933 echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6
5934echo "configure:5935: checking for --${enablestring:-enable}-accel" >&5
5935 no_cache=0
5936 # Check whether --enable-accel or --disable-accel was given.
5937if test "${enable_accel+set}" = set; then
5938 enableval="$enable_accel"
5939
5940 if test "$enableval" = yes; then
5941 ac_cv_use_accel='wxUSE_ACCEL=yes'
5942 else
5943 ac_cv_use_accel='wxUSE_ACCEL=no'
5944 fi
5945
5946else
5947
5948 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5949 if test "x$LINE" != x ; then
5950 eval "DEFAULT_$LINE"
5951 else
5952 no_cache=1
5953 fi
5954
5955 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5956
5957fi
5958
5959
5960 eval "$ac_cv_use_accel"
5961 if test "$no_cache" != 1; then
5962 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5963 fi
5964
5965 if test "$wxUSE_ACCEL" = yes; then
5966 echo "$ac_t""yes" 1>&6
5967 else
5968 echo "$ac_t""no" 1>&6
5969 fi
5970
5971
5972 enablestring=
5973 echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6
5974echo "configure:5975: checking for --${enablestring:-enable}-button" >&5
5975 no_cache=0
5976 # Check whether --enable-button or --disable-button was given.
5977if test "${enable_button+set}" = set; then
5978 enableval="$enable_button"
5979
5980 if test "$enableval" = yes; then
5981 ac_cv_use_button='wxUSE_BUTTON=yes'
5982 else
5983 ac_cv_use_button='wxUSE_BUTTON=no'
5984 fi
5985
5986else
5987
5988 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5989 if test "x$LINE" != x ; then
5990 eval "DEFAULT_$LINE"
5991 else
5992 no_cache=1
5993 fi
5994
5995 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5996
5997fi
5998
5999
6000 eval "$ac_cv_use_button"
6001 if test "$no_cache" != 1; then
6002 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
6003 fi
6004
6005 if test "$wxUSE_BUTTON" = yes; then
6006 echo "$ac_t""yes" 1>&6
6007 else
6008 echo "$ac_t""no" 1>&6
6009 fi
6010
6011
6012 enablestring=
6013 echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6
6014echo "configure:6015: checking for --${enablestring:-enable}-bmpbutton" >&5
6015 no_cache=0
6016 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6017if test "${enable_bmpbutton+set}" = set; then
6018 enableval="$enable_bmpbutton"
6019
6020 if test "$enableval" = yes; then
6021 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6022 else
6023 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6024 fi
6025
6026else
6027
6028 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6029 if test "x$LINE" != x ; then
6030 eval "DEFAULT_$LINE"
6031 else
6032 no_cache=1
6033 fi
6034
6035 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
6036
6037fi
6038
6039
6040 eval "$ac_cv_use_bmpbutton"
6041 if test "$no_cache" != 1; then
6042 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6043 fi
6044
6045 if test "$wxUSE_BMPBUTTON" = yes; then
6046 echo "$ac_t""yes" 1>&6
6047 else
6048 echo "$ac_t""no" 1>&6
6049 fi
6050
6051
6052 enablestring=
6053 echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6
6054echo "configure:6055: checking for --${enablestring:-enable}-calendar" >&5
6055 no_cache=0
6056 # Check whether --enable-calendar or --disable-calendar was given.
6057if test "${enable_calendar+set}" = set; then
6058 enableval="$enable_calendar"
6059
6060 if test "$enableval" = yes; then
6061 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6062 else
6063 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6064 fi
6065
6066else
6067
6068 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6069 if test "x$LINE" != x ; then
6070 eval "DEFAULT_$LINE"
6071 else
6072 no_cache=1
6073 fi
6074
6075 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
6076
6077fi
6078
6079
6080 eval "$ac_cv_use_calendar"
6081 if test "$no_cache" != 1; then
6082 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6083 fi
6084
6085 if test "$wxUSE_CALCTRL" = yes; then
6086 echo "$ac_t""yes" 1>&6
6087 else
6088 echo "$ac_t""no" 1>&6
6089 fi
6090
6091
6092 enablestring=
6093 echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6
6094echo "configure:6095: checking for --${enablestring:-enable}-caret" >&5
6095 no_cache=0
6096 # Check whether --enable-caret or --disable-caret was given.
6097if test "${enable_caret+set}" = set; then
6098 enableval="$enable_caret"
6099
6100 if test "$enableval" = yes; then
6101 ac_cv_use_caret='wxUSE_CARET=yes'
6102 else
6103 ac_cv_use_caret='wxUSE_CARET=no'
6104 fi
6105
6106else
6107
6108 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6109 if test "x$LINE" != x ; then
6110 eval "DEFAULT_$LINE"
6111 else
6112 no_cache=1
6113 fi
6114
6115 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6116
6117fi
6118
6119
6120 eval "$ac_cv_use_caret"
6121 if test "$no_cache" != 1; then
6122 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6123 fi
6124
6125 if test "$wxUSE_CARET" = yes; then
6126 echo "$ac_t""yes" 1>&6
6127 else
6128 echo "$ac_t""no" 1>&6
6129 fi
6130
6131
6132 enablestring=
6133 echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6
6134echo "configure:6135: checking for --${enablestring:-enable}-checkbox" >&5
6135 no_cache=0
6136 # Check whether --enable-checkbox or --disable-checkbox was given.
6137if test "${enable_checkbox+set}" = set; then
6138 enableval="$enable_checkbox"
6139
6140 if test "$enableval" = yes; then
6141 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6142 else
6143 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6144 fi
6145
6146else
6147
6148 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6149 if test "x$LINE" != x ; then
6150 eval "DEFAULT_$LINE"
6151 else
6152 no_cache=1
6153 fi
6154
6155 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6156
6157fi
6158
6159
6160 eval "$ac_cv_use_checkbox"
6161 if test "$no_cache" != 1; then
6162 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6163 fi
6164
6165 if test "$wxUSE_CHECKBOX" = yes; then
6166 echo "$ac_t""yes" 1>&6
6167 else
6168 echo "$ac_t""no" 1>&6
6169 fi
6170
6171
6172 enablestring=
6173 echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6
6174echo "configure:6175: checking for --${enablestring:-enable}-checklst" >&5
6175 no_cache=0
6176 # Check whether --enable-checklst or --disable-checklst was given.
6177if test "${enable_checklst+set}" = set; then
6178 enableval="$enable_checklst"
6179
6180 if test "$enableval" = yes; then
6181 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6182 else
6183 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6184 fi
6185
6186else
6187
6188 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6189 if test "x$LINE" != x ; then
6190 eval "DEFAULT_$LINE"
6191 else
6192 no_cache=1
6193 fi
6194
6195 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6196
6197fi
6198
6199
6200 eval "$ac_cv_use_checklst"
6201 if test "$no_cache" != 1; then
6202 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6203 fi
6204
6205 if test "$wxUSE_CHECKLST" = yes; then
6206 echo "$ac_t""yes" 1>&6
6207 else
6208 echo "$ac_t""no" 1>&6
6209 fi
6210
6211
6212 enablestring=
6213 echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6
6214echo "configure:6215: checking for --${enablestring:-enable}-choice" >&5
6215 no_cache=0
6216 # Check whether --enable-choice or --disable-choice was given.
6217if test "${enable_choice+set}" = set; then
6218 enableval="$enable_choice"
6219
6220 if test "$enableval" = yes; then
6221 ac_cv_use_choice='wxUSE_CHOICE=yes'
6222 else
6223 ac_cv_use_choice='wxUSE_CHOICE=no'
6224 fi
6225
6226else
6227
6228 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6229 if test "x$LINE" != x ; then
6230 eval "DEFAULT_$LINE"
6231 else
6232 no_cache=1
6233 fi
6234
6235 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6236
6237fi
6238
6239
6240 eval "$ac_cv_use_choice"
6241 if test "$no_cache" != 1; then
6242 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6243 fi
6244
6245 if test "$wxUSE_CHOICE" = yes; then
6246 echo "$ac_t""yes" 1>&6
6247 else
6248 echo "$ac_t""no" 1>&6
6249 fi
6250
6251
6252 enablestring=
6253 echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6
6254echo "configure:6255: checking for --${enablestring:-enable}-combobox" >&5
6255 no_cache=0
6256 # Check whether --enable-combobox or --disable-combobox was given.
6257if test "${enable_combobox+set}" = set; then
6258 enableval="$enable_combobox"
6259
6260 if test "$enableval" = yes; then
6261 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6262 else
6263 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6264 fi
6265
6266else
6267
6268 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6269 if test "x$LINE" != x ; then
6270 eval "DEFAULT_$LINE"
6271 else
6272 no_cache=1
6273 fi
6274
6275 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6276
6277fi
6278
6279
6280 eval "$ac_cv_use_combobox"
6281 if test "$no_cache" != 1; then
6282 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6283 fi
6284
6285 if test "$wxUSE_COMBOBOX" = yes; then
6286 echo "$ac_t""yes" 1>&6
6287 else
6288 echo "$ac_t""no" 1>&6
6289 fi
6290
6291
6292 enablestring=
6293 echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6
6294echo "configure:6295: checking for --${enablestring:-enable}-gauge" >&5
6295 no_cache=0
6296 # Check whether --enable-gauge or --disable-gauge was given.
6297if test "${enable_gauge+set}" = set; then
6298 enableval="$enable_gauge"
6299
6300 if test "$enableval" = yes; then
6301 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6302 else
6303 ac_cv_use_gauge='wxUSE_GAUGE=no'
6304 fi
6305
6306else
6307
6308 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6309 if test "x$LINE" != x ; then
6310 eval "DEFAULT_$LINE"
6311 else
6312 no_cache=1
6313 fi
6314
6315 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6316
6317fi
6318
6319
6320 eval "$ac_cv_use_gauge"
6321 if test "$no_cache" != 1; then
6322 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6323 fi
6324
6325 if test "$wxUSE_GAUGE" = yes; then
6326 echo "$ac_t""yes" 1>&6
6327 else
6328 echo "$ac_t""no" 1>&6
6329 fi
6330
6331
6332 enablestring=
6333 echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6
6334echo "configure:6335: checking for --${enablestring:-enable}-grid" >&5
6335 no_cache=0
6336 # Check whether --enable-grid or --disable-grid was given.
6337if test "${enable_grid+set}" = set; then
6338 enableval="$enable_grid"
6339
6340 if test "$enableval" = yes; then
6341 ac_cv_use_grid='wxUSE_GRID=yes'
6342 else
6343 ac_cv_use_grid='wxUSE_GRID=no'
6344 fi
6345
6346else
6347
6348 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6349 if test "x$LINE" != x ; then
6350 eval "DEFAULT_$LINE"
6351 else
6352 no_cache=1
6353 fi
6354
6355 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6356
6357fi
6358
6359
6360 eval "$ac_cv_use_grid"
6361 if test "$no_cache" != 1; then
6362 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6363 fi
6364
6365 if test "$wxUSE_GRID" = yes; then
6366 echo "$ac_t""yes" 1>&6
6367 else
6368 echo "$ac_t""no" 1>&6
6369 fi
6370
6371
6372 enablestring=
6373 echo $ac_n "checking for --${enablestring:-enable}-newgrid""... $ac_c" 1>&6
6374echo "configure:6375: checking for --${enablestring:-enable}-newgrid" >&5
6375 no_cache=0
6376 # Check whether --enable-newgrid or --disable-newgrid was given.
6377if test "${enable_newgrid+set}" = set; then
6378 enableval="$enable_newgrid"
6379
6380 if test "$enableval" = yes; then
6381 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6382 else
6383 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6384 fi
6385
6386else
6387
6388 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6389 if test "x$LINE" != x ; then
6390 eval "DEFAULT_$LINE"
6391 else
6392 no_cache=1
6393 fi
6394
6395 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6396
6397fi
6398
6399
6400 eval "$ac_cv_use_newgrid"
6401 if test "$no_cache" != 1; then
6402 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6403 fi
6404
6405 if test "$wxUSE_NEW_GRID" = yes; then
6406 echo "$ac_t""yes" 1>&6
6407 else
6408 echo "$ac_t""no" 1>&6
6409 fi
6410
6411
6412 enablestring=
6413 echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6
6414echo "configure:6415: checking for --${enablestring:-enable}-imaglist" >&5
6415 no_cache=0
6416 # Check whether --enable-imaglist or --disable-imaglist was given.
6417if test "${enable_imaglist+set}" = set; then
6418 enableval="$enable_imaglist"
6419
6420 if test "$enableval" = yes; then
6421 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6422 else
6423 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6424 fi
6425
6426else
6427
6428 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6429 if test "x$LINE" != x ; then
6430 eval "DEFAULT_$LINE"
6431 else
6432 no_cache=1
6433 fi
6434
6435 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6436
6437fi
6438
6439
6440 eval "$ac_cv_use_imaglist"
6441 if test "$no_cache" != 1; then
6442 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6443 fi
6444
6445 if test "$wxUSE_IMAGLIST" = yes; then
6446 echo "$ac_t""yes" 1>&6
6447 else
6448 echo "$ac_t""no" 1>&6
6449 fi
6450
6451
6452 enablestring=
6453 echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6
6454echo "configure:6455: checking for --${enablestring:-enable}-listbox" >&5
6455 no_cache=0
6456 # Check whether --enable-listbox or --disable-listbox was given.
6457if test "${enable_listbox+set}" = set; then
6458 enableval="$enable_listbox"
6459
6460 if test "$enableval" = yes; then
6461 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6462 else
6463 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6464 fi
6465
6466else
6467
6468 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6469 if test "x$LINE" != x ; then
6470 eval "DEFAULT_$LINE"
6471 else
6472 no_cache=1
6473 fi
6474
6475 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6476
6477fi
6478
6479
6480 eval "$ac_cv_use_listbox"
6481 if test "$no_cache" != 1; then
6482 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6483 fi
6484
6485 if test "$wxUSE_LISTBOX" = yes; then
6486 echo "$ac_t""yes" 1>&6
6487 else
6488 echo "$ac_t""no" 1>&6
6489 fi
6490
6491
6492 enablestring=
6493 echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6
6494echo "configure:6495: checking for --${enablestring:-enable}-listctrl" >&5
6495 no_cache=0
6496 # Check whether --enable-listctrl or --disable-listctrl was given.
6497if test "${enable_listctrl+set}" = set; then
6498 enableval="$enable_listctrl"
6499
6500 if test "$enableval" = yes; then
6501 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6502 else
6503 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6504 fi
6505
6506else
6507
6508 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6509 if test "x$LINE" != x ; then
6510 eval "DEFAULT_$LINE"
6511 else
6512 no_cache=1
6513 fi
6514
6515 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6516
6517fi
6518
6519
6520 eval "$ac_cv_use_listctrl"
6521 if test "$no_cache" != 1; then
6522 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6523 fi
6524
6525 if test "$wxUSE_LISTCTRL" = yes; then
6526 echo "$ac_t""yes" 1>&6
6527 else
6528 echo "$ac_t""no" 1>&6
6529 fi
6530
6531
6532 enablestring=
6533 echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6
6534echo "configure:6535: checking for --${enablestring:-enable}-notebook" >&5
6535 no_cache=0
6536 # Check whether --enable-notebook or --disable-notebook was given.
6537if test "${enable_notebook+set}" = set; then
6538 enableval="$enable_notebook"
6539
6540 if test "$enableval" = yes; then
6541 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6542 else
6543 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6544 fi
6545
6546else
6547
6548 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6549 if test "x$LINE" != x ; then
6550 eval "DEFAULT_$LINE"
6551 else
6552 no_cache=1
6553 fi
6554
6555 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6556
6557fi
6558
6559
6560 eval "$ac_cv_use_notebook"
6561 if test "$no_cache" != 1; then
6562 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6563 fi
6564
6565 if test "$wxUSE_NOTEBOOK" = yes; then
6566 echo "$ac_t""yes" 1>&6
6567 else
6568 echo "$ac_t""no" 1>&6
6569 fi
6570
6571
6572 enablestring=
6573 echo $ac_n "checking for --${enablestring:-enable}-propsheet""... $ac_c" 1>&6
6574echo "configure:6575: checking for --${enablestring:-enable}-propsheet" >&5
6575 no_cache=0
6576 # Check whether --enable-propsheet or --disable-propsheet was given.
6577if test "${enable_propsheet+set}" = set; then
6578 enableval="$enable_propsheet"
6579
6580 if test "$enableval" = yes; then
6581 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6582 else
6583 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6584 fi
6585
6586else
6587
6588 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6589 if test "x$LINE" != x ; then
6590 eval "DEFAULT_$LINE"
6591 else
6592 no_cache=1
6593 fi
6594
6595 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6596
6597fi
6598
6599
6600 eval "$ac_cv_use_propsheet"
6601 if test "$no_cache" != 1; then
6602 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6603 fi
6604
6605 if test "$wxUSE_PROPSHEET" = yes; then
6606 echo "$ac_t""yes" 1>&6
6607 else
6608 echo "$ac_t""no" 1>&6
6609 fi
6610
6611
6612 enablestring=
6613 echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6
6614echo "configure:6615: checking for --${enablestring:-enable}-radiobox" >&5
6615 no_cache=0
6616 # Check whether --enable-radiobox or --disable-radiobox was given.
6617if test "${enable_radiobox+set}" = set; then
6618 enableval="$enable_radiobox"
6619
6620 if test "$enableval" = yes; then
6621 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6622 else
6623 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6624 fi
6625
6626else
6627
6628 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6629 if test "x$LINE" != x ; then
6630 eval "DEFAULT_$LINE"
6631 else
6632 no_cache=1
6633 fi
6634
6635 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6636
6637fi
6638
6639
6640 eval "$ac_cv_use_radiobox"
6641 if test "$no_cache" != 1; then
6642 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6643 fi
6644
6645 if test "$wxUSE_RADIOBOX" = yes; then
6646 echo "$ac_t""yes" 1>&6
6647 else
6648 echo "$ac_t""no" 1>&6
6649 fi
6650
6651
6652 enablestring=
6653 echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6
6654echo "configure:6655: checking for --${enablestring:-enable}-radiobtn" >&5
6655 no_cache=0
6656 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6657if test "${enable_radiobtn+set}" = set; then
6658 enableval="$enable_radiobtn"
6659
6660 if test "$enableval" = yes; then
6661 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6662 else
6663 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6664 fi
6665
6666else
6667
6668 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6669 if test "x$LINE" != x ; then
6670 eval "DEFAULT_$LINE"
6671 else
6672 no_cache=1
6673 fi
6674
6675 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6676
6677fi
6678
6679
6680 eval "$ac_cv_use_radiobtn"
6681 if test "$no_cache" != 1; then
6682 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6683 fi
6684
6685 if test "$wxUSE_RADIOBTN" = yes; then
6686 echo "$ac_t""yes" 1>&6
6687 else
6688 echo "$ac_t""no" 1>&6
6689 fi
6690
6691
6692 enablestring=
6693 echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6
6694echo "configure:6695: checking for --${enablestring:-enable}-sash" >&5
6695 no_cache=0
6696 # Check whether --enable-sash or --disable-sash was given.
6697if test "${enable_sash+set}" = set; then
6698 enableval="$enable_sash"
6699
6700 if test "$enableval" = yes; then
6701 ac_cv_use_sash='wxUSE_SASH=yes'
6702 else
6703 ac_cv_use_sash='wxUSE_SASH=no'
6704 fi
6705
6706else
6707
6708 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6709 if test "x$LINE" != x ; then
6710 eval "DEFAULT_$LINE"
6711 else
6712 no_cache=1
6713 fi
6714
6715 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6716
6717fi
6718
6719
6720 eval "$ac_cv_use_sash"
6721 if test "$no_cache" != 1; then
6722 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6723 fi
6724
6725 if test "$wxUSE_SASH" = yes; then
6726 echo "$ac_t""yes" 1>&6
6727 else
6728 echo "$ac_t""no" 1>&6
6729 fi
6730
6731
6732 enablestring=
6733 echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6
6734echo "configure:6735: checking for --${enablestring:-enable}-scrollbar" >&5
6735 no_cache=0
6736 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6737if test "${enable_scrollbar+set}" = set; then
6738 enableval="$enable_scrollbar"
6739
6740 if test "$enableval" = yes; then
6741 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6742 else
6743 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6744 fi
6745
6746else
6747
6748 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6749 if test "x$LINE" != x ; then
6750 eval "DEFAULT_$LINE"
6751 else
6752 no_cache=1
6753 fi
6754
6755 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6756
6757fi
6758
6759
6760 eval "$ac_cv_use_scrollbar"
6761 if test "$no_cache" != 1; then
6762 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6763 fi
6764
6765 if test "$wxUSE_SCROLLBAR" = yes; then
6766 echo "$ac_t""yes" 1>&6
6767 else
6768 echo "$ac_t""no" 1>&6
6769 fi
6770
6771
6772 enablestring=
6773 echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6
6774echo "configure:6775: checking for --${enablestring:-enable}-slider" >&5
6775 no_cache=0
6776 # Check whether --enable-slider or --disable-slider was given.
6777if test "${enable_slider+set}" = set; then
6778 enableval="$enable_slider"
6779
6780 if test "$enableval" = yes; then
6781 ac_cv_use_slider='wxUSE_SLIDER=yes'
6782 else
6783 ac_cv_use_slider='wxUSE_SLIDER=no'
6784 fi
6785
6786else
6787
6788 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6789 if test "x$LINE" != x ; then
6790 eval "DEFAULT_$LINE"
6791 else
6792 no_cache=1
6793 fi
6794
6795 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6796
6797fi
6798
6799
6800 eval "$ac_cv_use_slider"
6801 if test "$no_cache" != 1; then
6802 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6803 fi
6804
6805 if test "$wxUSE_SLIDER" = yes; then
6806 echo "$ac_t""yes" 1>&6
6807 else
6808 echo "$ac_t""no" 1>&6
6809 fi
6810
6811
6812 enablestring=
6813 echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6
6814echo "configure:6815: checking for --${enablestring:-enable}-spinbtn" >&5
6815 no_cache=0
6816 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6817if test "${enable_spinbtn+set}" = set; then
6818 enableval="$enable_spinbtn"
6819
6820 if test "$enableval" = yes; then
6821 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6822 else
6823 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6824 fi
6825
6826else
6827
6828 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6829 if test "x$LINE" != x ; then
6830 eval "DEFAULT_$LINE"
6831 else
6832 no_cache=1
6833 fi
6834
6835 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6836
6837fi
6838
6839
6840 eval "$ac_cv_use_spinbtn"
6841 if test "$no_cache" != 1; then
6842 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6843 fi
6844
6845 if test "$wxUSE_SPINBTN" = yes; then
6846 echo "$ac_t""yes" 1>&6
6847 else
6848 echo "$ac_t""no" 1>&6
6849 fi
6850
6851
6852 enablestring=
6853 echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6
6854echo "configure:6855: checking for --${enablestring:-enable}-spinctrl" >&5
6855 no_cache=0
6856 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6857if test "${enable_spinctrl+set}" = set; then
6858 enableval="$enable_spinctrl"
6859
6860 if test "$enableval" = yes; then
6861 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6862 else
6863 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6864 fi
6865
6866else
6867
6868 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6869 if test "x$LINE" != x ; then
6870 eval "DEFAULT_$LINE"
6871 else
6872 no_cache=1
6873 fi
6874
6875 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6876
6877fi
6878
6879
6880 eval "$ac_cv_use_spinctrl"
6881 if test "$no_cache" != 1; then
6882 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6883 fi
6884
6885 if test "$wxUSE_SPINCTRL" = yes; then
6886 echo "$ac_t""yes" 1>&6
6887 else
6888 echo "$ac_t""no" 1>&6
6889 fi
6890
6891
6892 enablestring=
6893 echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6
6894echo "configure:6895: checking for --${enablestring:-enable}-splitter" >&5
6895 no_cache=0
6896 # Check whether --enable-splitter or --disable-splitter was given.
6897if test "${enable_splitter+set}" = set; then
6898 enableval="$enable_splitter"
6899
6900 if test "$enableval" = yes; then
6901 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6902 else
6903 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6904 fi
6905
6906else
6907
6908 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6909 if test "x$LINE" != x ; then
6910 eval "DEFAULT_$LINE"
6911 else
6912 no_cache=1
6913 fi
6914
6915 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6916
6917fi
6918
6919
6920 eval "$ac_cv_use_splitter"
6921 if test "$no_cache" != 1; then
6922 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6923 fi
6924
6925 if test "$wxUSE_SPLITTER" = yes; then
6926 echo "$ac_t""yes" 1>&6
6927 else
6928 echo "$ac_t""no" 1>&6
6929 fi
6930
6931
6932 enablestring=
6933 echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6
6934echo "configure:6935: checking for --${enablestring:-enable}-statbmp" >&5
6935 no_cache=0
6936 # Check whether --enable-statbmp or --disable-statbmp was given.
6937if test "${enable_statbmp+set}" = set; then
6938 enableval="$enable_statbmp"
6939
6940 if test "$enableval" = yes; then
6941 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6942 else
6943 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6944 fi
6945
6946else
6947
6948 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6949 if test "x$LINE" != x ; then
6950 eval "DEFAULT_$LINE"
6951 else
6952 no_cache=1
6953 fi
6954
6955 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6956
6957fi
6958
6959
6960 eval "$ac_cv_use_statbmp"
6961 if test "$no_cache" != 1; then
6962 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6963 fi
6964
6965 if test "$wxUSE_STATBMP" = yes; then
6966 echo "$ac_t""yes" 1>&6
6967 else
6968 echo "$ac_t""no" 1>&6
6969 fi
6970
6971
6972 enablestring=
6973 echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6
6974echo "configure:6975: checking for --${enablestring:-enable}-statbox" >&5
6975 no_cache=0
6976 # Check whether --enable-statbox or --disable-statbox was given.
6977if test "${enable_statbox+set}" = set; then
6978 enableval="$enable_statbox"
6979
6980 if test "$enableval" = yes; then
6981 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6982 else
6983 ac_cv_use_statbox='wxUSE_STATBOX=no'
6984 fi
6985
6986else
6987
6988 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6989 if test "x$LINE" != x ; then
6990 eval "DEFAULT_$LINE"
6991 else
6992 no_cache=1
6993 fi
6994
6995 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6996
6997fi
6998
6999
7000 eval "$ac_cv_use_statbox"
7001 if test "$no_cache" != 1; then
7002 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7003 fi
7004
7005 if test "$wxUSE_STATBOX" = yes; then
7006 echo "$ac_t""yes" 1>&6
7007 else
7008 echo "$ac_t""no" 1>&6
7009 fi
7010
7011
7012 enablestring=
7013 echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6
7014echo "configure:7015: checking for --${enablestring:-enable}-statline" >&5
7015 no_cache=0
7016 # Check whether --enable-statline or --disable-statline was given.
7017if test "${enable_statline+set}" = set; then
7018 enableval="$enable_statline"
7019
7020 if test "$enableval" = yes; then
7021 ac_cv_use_statline='wxUSE_STATLINE=yes'
7022 else
7023 ac_cv_use_statline='wxUSE_STATLINE=no'
7024 fi
7025
7026else
7027
7028 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7029 if test "x$LINE" != x ; then
7030 eval "DEFAULT_$LINE"
7031 else
7032 no_cache=1
7033 fi
7034
7035 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
7036
7037fi
7038
7039
7040 eval "$ac_cv_use_statline"
7041 if test "$no_cache" != 1; then
7042 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7043 fi
7044
7045 if test "$wxUSE_STATLINE" = yes; then
7046 echo "$ac_t""yes" 1>&6
7047 else
7048 echo "$ac_t""no" 1>&6
7049 fi
7050
7051
7052 enablestring=
7053 echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6
7054echo "configure:7055: checking for --${enablestring:-enable}-stattext" >&5
7055 no_cache=0
7056 # Check whether --enable-stattext or --disable-stattext was given.
7057if test "${enable_stattext+set}" = set; then
7058 enableval="$enable_stattext"
7059
7060 if test "$enableval" = yes; then
7061 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7062 else
7063 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7064 fi
7065
7066else
7067
7068 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7069 if test "x$LINE" != x ; then
7070 eval "DEFAULT_$LINE"
7071 else
7072 no_cache=1
7073 fi
7074
7075 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
7076
7077fi
7078
7079
7080 eval "$ac_cv_use_stattext"
7081 if test "$no_cache" != 1; then
7082 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7083 fi
7084
7085 if test "$wxUSE_STATTEXT" = yes; then
7086 echo "$ac_t""yes" 1>&6
7087 else
7088 echo "$ac_t""no" 1>&6
7089 fi
7090
7091
7092 enablestring=
7093 echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6
7094echo "configure:7095: checking for --${enablestring:-enable}-statusbar" >&5
7095 no_cache=0
7096 # Check whether --enable-statusbar or --disable-statusbar was given.
7097if test "${enable_statusbar+set}" = set; then
7098 enableval="$enable_statusbar"
7099
7100 if test "$enableval" = yes; then
7101 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7102 else
7103 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7104 fi
7105
7106else
7107
7108 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7109 if test "x$LINE" != x ; then
7110 eval "DEFAULT_$LINE"
7111 else
7112 no_cache=1
7113 fi
7114
7115 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
7116
7117fi
7118
7119
7120 eval "$ac_cv_use_statusbar"
7121 if test "$no_cache" != 1; then
7122 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7123 fi
7124
7125 if test "$wxUSE_STATUSBAR" = yes; then
7126 echo "$ac_t""yes" 1>&6
7127 else
7128 echo "$ac_t""no" 1>&6
7129 fi
7130
7131
7132 enablestring=
7133 echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6
7134echo "configure:7135: checking for --${enablestring:-enable}-tabdialog" >&5
7135 no_cache=0
7136 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7137if test "${enable_tabdialog+set}" = set; then
7138 enableval="$enable_tabdialog"
7139
7140 if test "$enableval" = yes; then
7141 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7142 else
7143 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7144 fi
7145
7146else
7147
7148 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7149 if test "x$LINE" != x ; then
7150 eval "DEFAULT_$LINE"
7151 else
7152 no_cache=1
7153 fi
7154
7155 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
7156
7157fi
7158
7159
7160 eval "$ac_cv_use_tabdialog"
7161 if test "$no_cache" != 1; then
7162 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7163 fi
7164
7165 if test "$wxUSE_TABDIALOG" = yes; then
7166 echo "$ac_t""yes" 1>&6
7167 else
7168 echo "$ac_t""no" 1>&6
7169 fi
7170
7171
7172 enablestring=
7173 echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6
7174echo "configure:7175: checking for --${enablestring:-enable}-textctrl" >&5
7175 no_cache=0
7176 # Check whether --enable-textctrl or --disable-textctrl was given.
7177if test "${enable_textctrl+set}" = set; then
7178 enableval="$enable_textctrl"
7179
7180 if test "$enableval" = yes; then
7181 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7182 else
7183 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7184 fi
7185
7186else
7187
7188 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7189 if test "x$LINE" != x ; then
7190 eval "DEFAULT_$LINE"
7191 else
7192 no_cache=1
7193 fi
7194
7195 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
7196
7197fi
7198
7199
7200 eval "$ac_cv_use_textctrl"
7201 if test "$no_cache" != 1; then
7202 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7203 fi
7204
7205 if test "$wxUSE_TEXTCTRL" = yes; then
7206 echo "$ac_t""yes" 1>&6
7207 else
7208 echo "$ac_t""no" 1>&6
7209 fi
7210
7211
7212 enablestring=
7213 echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6
7214echo "configure:7215: checking for --${enablestring:-enable}-togglebtn" >&5
7215 no_cache=0
7216 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7217if test "${enable_togglebtn+set}" = set; then
7218 enableval="$enable_togglebtn"
7219
7220 if test "$enableval" = yes; then
7221 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7222 else
7223 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7224 fi
7225
7226else
7227
7228 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7229 if test "x$LINE" != x ; then
7230 eval "DEFAULT_$LINE"
7231 else
7232 no_cache=1
7233 fi
7234
7235 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7236
7237fi
7238
7239
7240 eval "$ac_cv_use_togglebtn"
7241 if test "$no_cache" != 1; then
7242 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7243 fi
7244
7245 if test "$wxUSE_TOGGLEBTN" = yes; then
7246 echo "$ac_t""yes" 1>&6
7247 else
7248 echo "$ac_t""no" 1>&6
7249 fi
7250
7251
7252 enablestring=
7253 echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6
7254echo "configure:7255: checking for --${enablestring:-enable}-toolbar" >&5
7255 no_cache=0
7256 # Check whether --enable-toolbar or --disable-toolbar was given.
7257if test "${enable_toolbar+set}" = set; then
7258 enableval="$enable_toolbar"
7259
7260 if test "$enableval" = yes; then
7261 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7262 else
7263 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7264 fi
7265
7266else
7267
7268 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7269 if test "x$LINE" != x ; then
7270 eval "DEFAULT_$LINE"
7271 else
7272 no_cache=1
7273 fi
7274
7275 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7276
7277fi
7278
7279
7280 eval "$ac_cv_use_toolbar"
7281 if test "$no_cache" != 1; then
7282 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7283 fi
7284
7285 if test "$wxUSE_TOOLBAR" = yes; then
7286 echo "$ac_t""yes" 1>&6
7287 else
7288 echo "$ac_t""no" 1>&6
7289 fi
7290
7291
7292 enablestring=
7293 echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6
7294echo "configure:7295: checking for --${enablestring:-enable}-tbarnative" >&5
7295 no_cache=0
7296 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7297if test "${enable_tbarnative+set}" = set; then
7298 enableval="$enable_tbarnative"
7299
7300 if test "$enableval" = yes; then
7301 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7302 else
7303 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7304 fi
7305
7306else
7307
7308 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7309 if test "x$LINE" != x ; then
7310 eval "DEFAULT_$LINE"
7311 else
7312 no_cache=1
7313 fi
7314
7315 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7316
7317fi
7318
7319
7320 eval "$ac_cv_use_tbarnative"
7321 if test "$no_cache" != 1; then
7322 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7323 fi
7324
7325 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7326 echo "$ac_t""yes" 1>&6
7327 else
7328 echo "$ac_t""no" 1>&6
7329 fi
7330
7331
7332 enablestring=
7333 echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6
7334echo "configure:7335: checking for --${enablestring:-enable}-tbarsmpl" >&5
7335 no_cache=0
7336 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7337if test "${enable_tbarsmpl+set}" = set; then
7338 enableval="$enable_tbarsmpl"
7339
7340 if test "$enableval" = yes; then
7341 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7342 else
7343 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7344 fi
7345
7346else
7347
7348 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7349 if test "x$LINE" != x ; then
7350 eval "DEFAULT_$LINE"
7351 else
7352 no_cache=1
7353 fi
7354
7355 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7356
7357fi
7358
7359
7360 eval "$ac_cv_use_tbarsmpl"
7361 if test "$no_cache" != 1; then
7362 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7363 fi
7364
7365 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7366 echo "$ac_t""yes" 1>&6
7367 else
7368 echo "$ac_t""no" 1>&6
7369 fi
7370
7371
7372 enablestring=
7373 echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6
7374echo "configure:7375: checking for --${enablestring:-enable}-treectrl" >&5
7375 no_cache=0
7376 # Check whether --enable-treectrl or --disable-treectrl was given.
7377if test "${enable_treectrl+set}" = set; then
7378 enableval="$enable_treectrl"
7379
7380 if test "$enableval" = yes; then
7381 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7382 else
7383 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7384 fi
7385
7386else
7387
7388 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7389 if test "x$LINE" != x ; then
7390 eval "DEFAULT_$LINE"
7391 else
7392 no_cache=1
7393 fi
7394
7395 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7396
7397fi
7398
7399
7400 eval "$ac_cv_use_treectrl"
7401 if test "$no_cache" != 1; then
7402 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7403 fi
7404
7405 if test "$wxUSE_TREECTRL" = yes; then
7406 echo "$ac_t""yes" 1>&6
7407 else
7408 echo "$ac_t""no" 1>&6
7409 fi
7410
7411
7412 enablestring=
7413 echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6
7414echo "configure:7415: checking for --${enablestring:-enable}-tipwindow" >&5
7415 no_cache=0
7416 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7417if test "${enable_tipwindow+set}" = set; then
7418 enableval="$enable_tipwindow"
7419
7420 if test "$enableval" = yes; then
7421 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7422 else
7423 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7424 fi
7425
7426else
7427
7428 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7429 if test "x$LINE" != x ; then
7430 eval "DEFAULT_$LINE"
7431 else
7432 no_cache=1
7433 fi
7434
7435 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7436
7437fi
7438
7439
7440 eval "$ac_cv_use_tipwindow"
7441 if test "$no_cache" != 1; then
7442 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7443 fi
7444
7445 if test "$wxUSE_TIPWINDOW" = yes; then
7446 echo "$ac_t""yes" 1>&6
7447 else
7448 echo "$ac_t""no" 1>&6
7449 fi
7450
7451
7452 enablestring=
7453 echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6
7454echo "configure:7455: checking for --${enablestring:-enable}-popupwin" >&5
7455 no_cache=0
7456 # Check whether --enable-popupwin or --disable-popupwin was given.
7457if test "${enable_popupwin+set}" = set; then
7458 enableval="$enable_popupwin"
7459
7460 if test "$enableval" = yes; then
7461 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7462 else
7463 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7464 fi
7465
7466else
7467
7468 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7469 if test "x$LINE" != x ; then
7470 eval "DEFAULT_$LINE"
7471 else
7472 no_cache=1
7473 fi
7474
7475 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7476
7477fi
7478
7479
7480 eval "$ac_cv_use_popupwin"
7481 if test "$no_cache" != 1; then
7482 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7483 fi
7484
7485 if test "$wxUSE_POPUPWIN" = yes; then
7486 echo "$ac_t""yes" 1>&6
7487 else
7488 echo "$ac_t""no" 1>&6
7489 fi
7490
7491
7492
7493
7494 enablestring=
7495 echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6
7496echo "configure:7497: checking for --${enablestring:-enable}-commondlg" >&5
7497 no_cache=0
7498 # Check whether --enable-commondlg or --disable-commondlg was given.
7499if test "${enable_commondlg+set}" = set; then
7500 enableval="$enable_commondlg"
7501
7502 if test "$enableval" = yes; then
7503 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7504 else
7505 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7506 fi
7507
7508else
7509
7510 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7511 if test "x$LINE" != x ; then
7512 eval "DEFAULT_$LINE"
7513 else
7514 no_cache=1
7515 fi
7516
7517 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7518
7519fi
7520
7521
7522 eval "$ac_cv_use_commondlg"
7523 if test "$no_cache" != 1; then
7524 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7525 fi
7526
7527 if test "$wxUSE_COMMONDLGS" = yes; then
7528 echo "$ac_t""yes" 1>&6
7529 else
7530 echo "$ac_t""no" 1>&6
7531 fi
7532
7533
7534 enablestring=
7535 echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6
7536echo "configure:7537: checking for --${enablestring:-enable}-choicedlg" >&5
7537 no_cache=0
7538 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7539if test "${enable_choicedlg+set}" = set; then
7540 enableval="$enable_choicedlg"
7541
7542 if test "$enableval" = yes; then
7543 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7544 else
7545 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7546 fi
7547
7548else
7549
7550 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7551 if test "x$LINE" != x ; then
7552 eval "DEFAULT_$LINE"
7553 else
7554 no_cache=1
7555 fi
7556
7557 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7558
7559fi
7560
7561
7562 eval "$ac_cv_use_choicedlg"
7563 if test "$no_cache" != 1; then
7564 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7565 fi
7566
7567 if test "$wxUSE_CHOICEDLG" = yes; then
7568 echo "$ac_t""yes" 1>&6
7569 else
7570 echo "$ac_t""no" 1>&6
7571 fi
7572
7573
7574 enablestring=
7575 echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6
7576echo "configure:7577: checking for --${enablestring:-enable}-coldlg" >&5
7577 no_cache=0
7578 # Check whether --enable-coldlg or --disable-coldlg was given.
7579if test "${enable_coldlg+set}" = set; then
7580 enableval="$enable_coldlg"
7581
7582 if test "$enableval" = yes; then
7583 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7584 else
7585 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7586 fi
7587
7588else
7589
7590 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7591 if test "x$LINE" != x ; then
7592 eval "DEFAULT_$LINE"
7593 else
7594 no_cache=1
7595 fi
7596
7597 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7598
7599fi
7600
7601
7602 eval "$ac_cv_use_coldlg"
7603 if test "$no_cache" != 1; then
7604 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7605 fi
7606
7607 if test "$wxUSE_COLOURDLG" = yes; then
7608 echo "$ac_t""yes" 1>&6
7609 else
7610 echo "$ac_t""no" 1>&6
7611 fi
7612
7613
7614 enablestring=
7615 echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6
7616echo "configure:7617: checking for --${enablestring:-enable}-filedlg" >&5
7617 no_cache=0
7618 # Check whether --enable-filedlg or --disable-filedlg was given.
7619if test "${enable_filedlg+set}" = set; then
7620 enableval="$enable_filedlg"
7621
7622 if test "$enableval" = yes; then
7623 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7624 else
7625 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7626 fi
7627
7628else
7629
7630 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7631 if test "x$LINE" != x ; then
7632 eval "DEFAULT_$LINE"
7633 else
7634 no_cache=1
7635 fi
7636
7637 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7638
7639fi
7640
7641
7642 eval "$ac_cv_use_filedlg"
7643 if test "$no_cache" != 1; then
7644 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7645 fi
7646
7647 if test "$wxUSE_FILEDLG" = yes; then
7648 echo "$ac_t""yes" 1>&6
7649 else
7650 echo "$ac_t""no" 1>&6
7651 fi
7652
7653
7654 enablestring=
7655 echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6
7656echo "configure:7657: checking for --${enablestring:-enable}-finddlg" >&5
7657 no_cache=0
7658 # Check whether --enable-finddlg or --disable-finddlg was given.
7659if test "${enable_finddlg+set}" = set; then
7660 enableval="$enable_finddlg"
7661
7662 if test "$enableval" = yes; then
7663 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7664 else
7665 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7666 fi
7667
7668else
7669
7670 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7671 if test "x$LINE" != x ; then
7672 eval "DEFAULT_$LINE"
7673 else
7674 no_cache=1
7675 fi
7676
7677 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7678
7679fi
7680
7681
7682 eval "$ac_cv_use_finddlg"
7683 if test "$no_cache" != 1; then
7684 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7685 fi
7686
7687 if test "$wxUSE_FINDREPLDLG" = yes; then
7688 echo "$ac_t""yes" 1>&6
7689 else
7690 echo "$ac_t""no" 1>&6
7691 fi
7692
7693
7694 enablestring=
7695 echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6
7696echo "configure:7697: checking for --${enablestring:-enable}-fontdlg" >&5
7697 no_cache=0
7698 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7699if test "${enable_fontdlg+set}" = set; then
7700 enableval="$enable_fontdlg"
7701
7702 if test "$enableval" = yes; then
7703 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7704 else
7705 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7706 fi
7707
7708else
7709
7710 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7711 if test "x$LINE" != x ; then
7712 eval "DEFAULT_$LINE"
7713 else
7714 no_cache=1
7715 fi
7716
7717 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7718
7719fi
7720
7721
7722 eval "$ac_cv_use_fontdlg"
7723 if test "$no_cache" != 1; then
7724 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7725 fi
7726
7727 if test "$wxUSE_FONTDLG" = yes; then
7728 echo "$ac_t""yes" 1>&6
7729 else
7730 echo "$ac_t""no" 1>&6
7731 fi
7732
7733
7734 enablestring=
7735 echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6
7736echo "configure:7737: checking for --${enablestring:-enable}-dirdlg" >&5
7737 no_cache=0
7738 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7739if test "${enable_dirdlg+set}" = set; then
7740 enableval="$enable_dirdlg"
7741
7742 if test "$enableval" = yes; then
7743 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7744 else
7745 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7746 fi
7747
7748else
7749
7750 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7751 if test "x$LINE" != x ; then
7752 eval "DEFAULT_$LINE"
7753 else
7754 no_cache=1
7755 fi
7756
7757 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7758
7759fi
7760
7761
7762 eval "$ac_cv_use_dirdlg"
7763 if test "$no_cache" != 1; then
7764 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7765 fi
7766
7767 if test "$wxUSE_DIRDLG" = yes; then
7768 echo "$ac_t""yes" 1>&6
7769 else
7770 echo "$ac_t""no" 1>&6
7771 fi
7772
7773
7774 enablestring=
7775 echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6
7776echo "configure:7777: checking for --${enablestring:-enable}-msgdlg" >&5
7777 no_cache=0
7778 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7779if test "${enable_msgdlg+set}" = set; then
7780 enableval="$enable_msgdlg"
7781
7782 if test "$enableval" = yes; then
7783 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7784 else
7785 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7786 fi
7787
7788else
7789
7790 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7791 if test "x$LINE" != x ; then
7792 eval "DEFAULT_$LINE"
7793 else
7794 no_cache=1
7795 fi
7796
7797 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7798
7799fi
7800
7801
7802 eval "$ac_cv_use_msgdlg"
7803 if test "$no_cache" != 1; then
7804 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7805 fi
7806
7807 if test "$wxUSE_MSGDLG" = yes; then
7808 echo "$ac_t""yes" 1>&6
7809 else
7810 echo "$ac_t""no" 1>&6
7811 fi
7812
7813
7814 enablestring=
7815 echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6
7816echo "configure:7817: checking for --${enablestring:-enable}-numberdlg" >&5
7817 no_cache=0
7818 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7819if test "${enable_numberdlg+set}" = set; then
7820 enableval="$enable_numberdlg"
7821
7822 if test "$enableval" = yes; then
7823 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7824 else
7825 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7826 fi
7827
7828else
7829
7830 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7831 if test "x$LINE" != x ; then
7832 eval "DEFAULT_$LINE"
7833 else
7834 no_cache=1
7835 fi
7836
7837 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7838
7839fi
7840
7841
7842 eval "$ac_cv_use_numberdlg"
7843 if test "$no_cache" != 1; then
7844 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7845 fi
7846
7847 if test "$wxUSE_NUMBERDLG" = yes; then
7848 echo "$ac_t""yes" 1>&6
7849 else
7850 echo "$ac_t""no" 1>&6
7851 fi
7852
7853
7854 enablestring=
7855 echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6
7856echo "configure:7857: checking for --${enablestring:-enable}-splash" >&5
7857 no_cache=0
7858 # Check whether --enable-splash or --disable-splash was given.
7859if test "${enable_splash+set}" = set; then
7860 enableval="$enable_splash"
7861
7862 if test "$enableval" = yes; then
7863 ac_cv_use_splash='wxUSE_SPLASH=yes'
7864 else
7865 ac_cv_use_splash='wxUSE_SPLASH=no'
7866 fi
7867
7868else
7869
7870 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7871 if test "x$LINE" != x ; then
7872 eval "DEFAULT_$LINE"
7873 else
7874 no_cache=1
7875 fi
7876
7877 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7878
7879fi
7880
7881
7882 eval "$ac_cv_use_splash"
7883 if test "$no_cache" != 1; then
7884 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7885 fi
7886
7887 if test "$wxUSE_SPLASH" = yes; then
7888 echo "$ac_t""yes" 1>&6
7889 else
7890 echo "$ac_t""no" 1>&6
7891 fi
7892
7893
7894 enablestring=
7895 echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6
7896echo "configure:7897: checking for --${enablestring:-enable}-textdlg" >&5
7897 no_cache=0
7898 # Check whether --enable-textdlg or --disable-textdlg was given.
7899if test "${enable_textdlg+set}" = set; then
7900 enableval="$enable_textdlg"
7901
7902 if test "$enableval" = yes; then
7903 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7904 else
7905 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7906 fi
7907
7908else
7909
7910 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7911 if test "x$LINE" != x ; then
7912 eval "DEFAULT_$LINE"
7913 else
7914 no_cache=1
7915 fi
7916
7917 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7918
7919fi
7920
7921
7922 eval "$ac_cv_use_textdlg"
7923 if test "$no_cache" != 1; then
7924 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7925 fi
7926
7927 if test "$wxUSE_TEXTDLG" = yes; then
7928 echo "$ac_t""yes" 1>&6
7929 else
7930 echo "$ac_t""no" 1>&6
7931 fi
7932
7933
7934 enablestring=
7935 echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6
7936echo "configure:7937: checking for --${enablestring:-enable}-tipdlg" >&5
7937 no_cache=0
7938 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7939if test "${enable_tipdlg+set}" = set; then
7940 enableval="$enable_tipdlg"
7941
7942 if test "$enableval" = yes; then
7943 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7944 else
7945 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7946 fi
7947
7948else
7949
7950 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7951 if test "x$LINE" != x ; then
7952 eval "DEFAULT_$LINE"
7953 else
7954 no_cache=1
7955 fi
7956
7957 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7958
7959fi
7960
7961
7962 eval "$ac_cv_use_tipdlg"
7963 if test "$no_cache" != 1; then
7964 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7965 fi
7966
7967 if test "$wxUSE_STARTUP_TIPS" = yes; then
7968 echo "$ac_t""yes" 1>&6
7969 else
7970 echo "$ac_t""no" 1>&6
7971 fi
7972
7973
7974 enablestring=
7975 echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6
7976echo "configure:7977: checking for --${enablestring:-enable}-progressdlg" >&5
7977 no_cache=0
7978 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7979if test "${enable_progressdlg+set}" = set; then
7980 enableval="$enable_progressdlg"
7981
7982 if test "$enableval" = yes; then
7983 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7984 else
7985 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7986 fi
7987
7988else
7989
7990 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7991 if test "x$LINE" != x ; then
7992 eval "DEFAULT_$LINE"
7993 else
7994 no_cache=1
7995 fi
7996
7997 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7998
7999fi
8000
8001
8002 eval "$ac_cv_use_progressdlg"
8003 if test "$no_cache" != 1; then
8004 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8005 fi
8006
8007 if test "$wxUSE_PROGRESSDLG" = yes; then
8008 echo "$ac_t""yes" 1>&6
8009 else
8010 echo "$ac_t""no" 1>&6
8011 fi
8012
8013
8014 enablestring=
8015 echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6
8016echo "configure:8017: checking for --${enablestring:-enable}-wizarddlg" >&5
8017 no_cache=0
8018 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8019if test "${enable_wizarddlg+set}" = set; then
8020 enableval="$enable_wizarddlg"
8021
8022 if test "$enableval" = yes; then
8023 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8024 else
8025 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8026 fi
8027
8028else
8029
8030 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8031 if test "x$LINE" != x ; then
8032 eval "DEFAULT_$LINE"
8033 else
8034 no_cache=1
8035 fi
8036
8037 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
8038
8039fi
8040
8041
8042 eval "$ac_cv_use_wizarddlg"
8043 if test "$no_cache" != 1; then
8044 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8045 fi
8046
8047 if test "$wxUSE_WIZARDDLG" = yes; then
8048 echo "$ac_t""yes" 1>&6
8049 else
8050 echo "$ac_t""no" 1>&6
8051 fi
8052
8053
8054
8055
8056 enablestring=
8057 echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6
8058echo "configure:8059: checking for --${enablestring:-enable}-menus" >&5
8059 no_cache=0
8060 # Check whether --enable-menus or --disable-menus was given.
8061if test "${enable_menus+set}" = set; then
8062 enableval="$enable_menus"
8063
8064 if test "$enableval" = yes; then
8065 ac_cv_use_menus='wxUSE_MENUS=yes'
8066 else
8067 ac_cv_use_menus='wxUSE_MENUS=no'
8068 fi
8069
8070else
8071
8072 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8073 if test "x$LINE" != x ; then
8074 eval "DEFAULT_$LINE"
8075 else
8076 no_cache=1
8077 fi
8078
8079 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
8080
8081fi
8082
8083
8084 eval "$ac_cv_use_menus"
8085 if test "$no_cache" != 1; then
8086 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8087 fi
8088
8089 if test "$wxUSE_MENUS" = yes; then
8090 echo "$ac_t""yes" 1>&6
8091 else
8092 echo "$ac_t""no" 1>&6
8093 fi
8094
8095
8096 enablestring=
8097 echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6
8098echo "configure:8099: checking for --${enablestring:-enable}-miniframe" >&5
8099 no_cache=0
8100 # Check whether --enable-miniframe or --disable-miniframe was given.
8101if test "${enable_miniframe+set}" = set; then
8102 enableval="$enable_miniframe"
8103
8104 if test "$enableval" = yes; then
8105 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8106 else
8107 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8108 fi
8109
8110else
8111
8112 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8113 if test "x$LINE" != x ; then
8114 eval "DEFAULT_$LINE"
8115 else
8116 no_cache=1
8117 fi
8118
8119 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
8120
8121fi
8122
8123
8124 eval "$ac_cv_use_miniframe"
8125 if test "$no_cache" != 1; then
8126 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8127 fi
8128
8129 if test "$wxUSE_MINIFRAME" = yes; then
8130 echo "$ac_t""yes" 1>&6
8131 else
8132 echo "$ac_t""no" 1>&6
8133 fi
8134
8135
8136 enablestring=
8137 echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6
8138echo "configure:8139: checking for --${enablestring:-enable}-tooltips" >&5
8139 no_cache=0
8140 # Check whether --enable-tooltips or --disable-tooltips was given.
8141if test "${enable_tooltips+set}" = set; then
8142 enableval="$enable_tooltips"
8143
8144 if test "$enableval" = yes; then
8145 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8146 else
8147 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8148 fi
8149
8150else
8151
8152 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8153 if test "x$LINE" != x ; then
8154 eval "DEFAULT_$LINE"
8155 else
8156 no_cache=1
8157 fi
8158
8159 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
8160
8161fi
8162
8163
8164 eval "$ac_cv_use_tooltips"
8165 if test "$no_cache" != 1; then
8166 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8167 fi
8168
8169 if test "$wxUSE_TOOLTIPS" = yes; then
8170 echo "$ac_t""yes" 1>&6
8171 else
8172 echo "$ac_t""no" 1>&6
8173 fi
8174
8175
8176 enablestring=
8177 echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6
8178echo "configure:8179: checking for --${enablestring:-enable}-splines" >&5
8179 no_cache=0
8180 # Check whether --enable-splines or --disable-splines was given.
8181if test "${enable_splines+set}" = set; then
8182 enableval="$enable_splines"
8183
8184 if test "$enableval" = yes; then
8185 ac_cv_use_splines='wxUSE_SPLINES=yes'
8186 else
8187 ac_cv_use_splines='wxUSE_SPLINES=no'
8188 fi
8189
8190else
8191
8192 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8193 if test "x$LINE" != x ; then
8194 eval "DEFAULT_$LINE"
8195 else
8196 no_cache=1
8197 fi
8198
8199 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
8200
8201fi
8202
8203
8204 eval "$ac_cv_use_splines"
8205 if test "$no_cache" != 1; then
8206 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8207 fi
8208
8209 if test "$wxUSE_SPLINES" = yes; then
8210 echo "$ac_t""yes" 1>&6
8211 else
8212 echo "$ac_t""no" 1>&6
8213 fi
8214
8215
8216 enablestring=
8217 echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6
8218echo "configure:8219: checking for --${enablestring:-enable}-validators" >&5
8219 no_cache=0
8220 # Check whether --enable-validators or --disable-validators was given.
8221if test "${enable_validators+set}" = set; then
8222 enableval="$enable_validators"
8223
8224 if test "$enableval" = yes; then
8225 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8226 else
8227 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8228 fi
8229
8230else
8231
8232 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8233 if test "x$LINE" != x ; then
8234 eval "DEFAULT_$LINE"
8235 else
8236 no_cache=1
8237 fi
8238
8239 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
8240
8241fi
8242
8243
8244 eval "$ac_cv_use_validators"
8245 if test "$no_cache" != 1; then
8246 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8247 fi
8248
8249 if test "$wxUSE_VALIDATORS" = yes; then
8250 echo "$ac_t""yes" 1>&6
8251 else
8252 echo "$ac_t""no" 1>&6
8253 fi
8254
8255
8256 enablestring=
8257 echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6
8258echo "configure:8259: checking for --${enablestring:-enable}-busyinfo" >&5
8259 no_cache=0
8260 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8261if test "${enable_busyinfo+set}" = set; then
8262 enableval="$enable_busyinfo"
8263
8264 if test "$enableval" = yes; then
8265 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8266 else
8267 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8268 fi
8269
8270else
8271
8272 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8273 if test "x$LINE" != x ; then
8274 eval "DEFAULT_$LINE"
8275 else
8276 no_cache=1
8277 fi
8278
8279 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8280
8281fi
8282
8283
8284 eval "$ac_cv_use_busyinfo"
8285 if test "$no_cache" != 1; then
8286 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8287 fi
8288
8289 if test "$wxUSE_BUSYINFO" = yes; then
8290 echo "$ac_t""yes" 1>&6
8291 else
8292 echo "$ac_t""no" 1>&6
8293 fi
8294
8295
8296 enablestring=
8297 echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6
8298echo "configure:8299: checking for --${enablestring:-enable}-joystick" >&5
8299 no_cache=0
8300 # Check whether --enable-joystick or --disable-joystick was given.
8301if test "${enable_joystick+set}" = set; then
8302 enableval="$enable_joystick"
8303
8304 if test "$enableval" = yes; then
8305 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8306 else
8307 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8308 fi
8309
8310else
8311
8312 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8313 if test "x$LINE" != x ; then
8314 eval "DEFAULT_$LINE"
8315 else
8316 no_cache=1
8317 fi
8318
8319 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8320
8321fi
8322
8323
8324 eval "$ac_cv_use_joystick"
8325 if test "$no_cache" != 1; then
8326 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8327 fi
8328
8329 if test "$wxUSE_JOYSTICK" = yes; then
8330 echo "$ac_t""yes" 1>&6
8331 else
8332 echo "$ac_t""no" 1>&6
8333 fi
8334
8335
8336 enablestring=
8337 echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6
8338echo "configure:8339: checking for --${enablestring:-enable}-metafile" >&5
8339 no_cache=0
8340 # Check whether --enable-metafile or --disable-metafile was given.
8341if test "${enable_metafile+set}" = set; then
8342 enableval="$enable_metafile"
8343
8344 if test "$enableval" = yes; then
8345 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8346 else
8347 ac_cv_use_metafile='wxUSE_METAFILE=no'
8348 fi
8349
8350else
8351
8352 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8353 if test "x$LINE" != x ; then
8354 eval "DEFAULT_$LINE"
8355 else
8356 no_cache=1
8357 fi
8358
8359 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8360
8361fi
8362
8363
8364 eval "$ac_cv_use_metafile"
8365 if test "$no_cache" != 1; then
8366 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8367 fi
8368
8369 if test "$wxUSE_METAFILE" = yes; then
8370 echo "$ac_t""yes" 1>&6
8371 else
8372 echo "$ac_t""no" 1>&6
8373 fi
8374
8375
8376 enablestring=
8377 echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6
8378echo "configure:8379: checking for --${enablestring:-enable}-dragimage" >&5
8379 no_cache=0
8380 # Check whether --enable-dragimage or --disable-dragimage was given.
8381if test "${enable_dragimage+set}" = set; then
8382 enableval="$enable_dragimage"
8383
8384 if test "$enableval" = yes; then
8385 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8386 else
8387 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8388 fi
8389
8390else
8391
8392 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8393 if test "x$LINE" != x ; then
8394 eval "DEFAULT_$LINE"
8395 else
8396 no_cache=1
8397 fi
8398
8399 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8400
8401fi
8402
8403
8404 eval "$ac_cv_use_dragimage"
8405 if test "$no_cache" != 1; then
8406 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8407 fi
8408
8409 if test "$wxUSE_DRAGIMAGE" = yes; then
8410 echo "$ac_t""yes" 1>&6
8411 else
8412 echo "$ac_t""no" 1>&6
8413 fi
8414
8415
8416
8417
8418 enablestring=
8419 echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6
8420echo "configure:8421: checking for --${enablestring:-enable}-palette" >&5
8421 no_cache=0
8422 # Check whether --enable-palette or --disable-palette was given.
8423if test "${enable_palette+set}" = set; then
8424 enableval="$enable_palette"
8425
8426 if test "$enableval" = yes; then
8427 ac_cv_use_palette='wxUSE_PALETTE=yes'
8428 else
8429 ac_cv_use_palette='wxUSE_PALETTE=no'
8430 fi
8431
8432else
8433
8434 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8435 if test "x$LINE" != x ; then
8436 eval "DEFAULT_$LINE"
8437 else
8438 no_cache=1
8439 fi
8440
8441 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8442
8443fi
8444
8445
8446 eval "$ac_cv_use_palette"
8447 if test "$no_cache" != 1; then
8448 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8449 fi
8450
8451 if test "$wxUSE_PALETTE" = yes; then
8452 echo "$ac_t""yes" 1>&6
8453 else
8454 echo "$ac_t""no" 1>&6
8455 fi
8456
8457
8458 enablestring=
8459 echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6
8460echo "configure:8461: checking for --${enablestring:-enable}-image" >&5
8461 no_cache=0
8462 # Check whether --enable-image or --disable-image was given.
8463if test "${enable_image+set}" = set; then
8464 enableval="$enable_image"
8465
8466 if test "$enableval" = yes; then
8467 ac_cv_use_image='wxUSE_IMAGE=yes'
8468 else
8469 ac_cv_use_image='wxUSE_IMAGE=no'
8470 fi
8471
8472else
8473
8474 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8475 if test "x$LINE" != x ; then
8476 eval "DEFAULT_$LINE"
8477 else
8478 no_cache=1
8479 fi
8480
8481 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8482
8483fi
8484
8485
8486 eval "$ac_cv_use_image"
8487 if test "$no_cache" != 1; then
8488 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8489 fi
8490
8491 if test "$wxUSE_IMAGE" = yes; then
8492 echo "$ac_t""yes" 1>&6
8493 else
8494 echo "$ac_t""no" 1>&6
8495 fi
8496
8497
8498 enablestring=
8499 echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6
8500echo "configure:8501: checking for --${enablestring:-enable}-gif" >&5
8501 no_cache=0
8502 # Check whether --enable-gif or --disable-gif was given.
8503if test "${enable_gif+set}" = set; then
8504 enableval="$enable_gif"
8505
8506 if test "$enableval" = yes; then
8507 ac_cv_use_gif='wxUSE_GIF=yes'
8508 else
8509 ac_cv_use_gif='wxUSE_GIF=no'
8510 fi
8511
8512else
8513
8514 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8515 if test "x$LINE" != x ; then
8516 eval "DEFAULT_$LINE"
8517 else
8518 no_cache=1
8519 fi
8520
8521 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8522
8523fi
8524
8525
8526 eval "$ac_cv_use_gif"
8527 if test "$no_cache" != 1; then
8528 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8529 fi
8530
8531 if test "$wxUSE_GIF" = yes; then
8532 echo "$ac_t""yes" 1>&6
8533 else
8534 echo "$ac_t""no" 1>&6
8535 fi
8536
8537
8538 enablestring=
8539 echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6
8540echo "configure:8541: checking for --${enablestring:-enable}-pcx" >&5
8541 no_cache=0
8542 # Check whether --enable-pcx or --disable-pcx was given.
8543if test "${enable_pcx+set}" = set; then
8544 enableval="$enable_pcx"
8545
8546 if test "$enableval" = yes; then
8547 ac_cv_use_pcx='wxUSE_PCX=yes'
8548 else
8549 ac_cv_use_pcx='wxUSE_PCX=no'
8550 fi
8551
8552else
8553
8554 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8555 if test "x$LINE" != x ; then
8556 eval "DEFAULT_$LINE"
8557 else
8558 no_cache=1
8559 fi
8560
8561 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8562
8563fi
8564
8565
8566 eval "$ac_cv_use_pcx"
8567 if test "$no_cache" != 1; then
8568 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8569 fi
8570
8571 if test "$wxUSE_PCX" = yes; then
8572 echo "$ac_t""yes" 1>&6
8573 else
8574 echo "$ac_t""no" 1>&6
8575 fi
8576
8577
8578 enablestring=
8579 echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6
8580echo "configure:8581: checking for --${enablestring:-enable}-iff" >&5
8581 no_cache=0
8582 # Check whether --enable-iff or --disable-iff was given.
8583if test "${enable_iff+set}" = set; then
8584 enableval="$enable_iff"
8585
8586 if test "$enableval" = yes; then
8587 ac_cv_use_iff='wxUSE_IFF=yes'
8588 else
8589 ac_cv_use_iff='wxUSE_IFF=no'
8590 fi
8591
8592else
8593
8594 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8595 if test "x$LINE" != x ; then
8596 eval "DEFAULT_$LINE"
8597 else
8598 no_cache=1
8599 fi
8600
8601 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8602
8603fi
8604
8605
8606 eval "$ac_cv_use_iff"
8607 if test "$no_cache" != 1; then
8608 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8609 fi
8610
8611 if test "$wxUSE_IFF" = yes; then
8612 echo "$ac_t""yes" 1>&6
8613 else
8614 echo "$ac_t""no" 1>&6
8615 fi
8616
8617
8618 enablestring=
8619 echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6
8620echo "configure:8621: checking for --${enablestring:-enable}-pnm" >&5
8621 no_cache=0
8622 # Check whether --enable-pnm or --disable-pnm was given.
8623if test "${enable_pnm+set}" = set; then
8624 enableval="$enable_pnm"
8625
8626 if test "$enableval" = yes; then
8627 ac_cv_use_pnm='wxUSE_PNM=yes'
8628 else
8629 ac_cv_use_pnm='wxUSE_PNM=no'
8630 fi
8631
8632else
8633
8634 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8635 if test "x$LINE" != x ; then
8636 eval "DEFAULT_$LINE"
8637 else
8638 no_cache=1
8639 fi
8640
8641 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8642
8643fi
8644
8645
8646 eval "$ac_cv_use_pnm"
8647 if test "$no_cache" != 1; then
8648 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8649 fi
8650
8651 if test "$wxUSE_PNM" = yes; then
8652 echo "$ac_t""yes" 1>&6
8653 else
8654 echo "$ac_t""no" 1>&6
8655 fi
8656
8657
8658 enablestring=
8659 echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6
8660echo "configure:8661: checking for --${enablestring:-enable}-xpm" >&5
8661 no_cache=0
8662 # Check whether --enable-xpm or --disable-xpm was given.
8663if test "${enable_xpm+set}" = set; then
8664 enableval="$enable_xpm"
8665
8666 if test "$enableval" = yes; then
8667 ac_cv_use_xpm='wxUSE_XPM=yes'
8668 else
8669 ac_cv_use_xpm='wxUSE_XPM=no'
8670 fi
8671
8672else
8673
8674 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8675 if test "x$LINE" != x ; then
8676 eval "DEFAULT_$LINE"
8677 else
8678 no_cache=1
8679 fi
8680
8681 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8682
8683fi
8684
8685
8686 eval "$ac_cv_use_xpm"
8687 if test "$no_cache" != 1; then
8688 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8689 fi
8690
8691 if test "$wxUSE_XPM" = yes; then
8692 echo "$ac_t""yes" 1>&6
8693 else
8694 echo "$ac_t""no" 1>&6
8695 fi
8696
8697
8698 enablestring=
8699 echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6
8700echo "configure:8701: checking for --${enablestring:-enable}-ico_cur" >&5
8701 no_cache=0
8702 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8703if test "${enable_ico_cur+set}" = set; then
8704 enableval="$enable_ico_cur"
8705
8706 if test "$enableval" = yes; then
8707 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8708 else
8709 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8710 fi
8711
8712else
8713
8714 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8715 if test "x$LINE" != x ; then
8716 eval "DEFAULT_$LINE"
8717 else
8718 no_cache=1
8719 fi
8720
8721 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8722
8723fi
8724
8725
8726 eval "$ac_cv_use_ico_cur"
8727 if test "$no_cache" != 1; then
8728 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8729 fi
8730
8731 if test "$wxUSE_ICO_CUR" = yes; then
8732 echo "$ac_t""yes" 1>&6
8733 else
8734 echo "$ac_t""no" 1>&6
8735 fi
8736
8737
8738fi
8739
8740case "${host}" in
8741 *-pc-os2_emx | *-pc-os2-emx )
8742 PATH_IFS=';'
8743 LEX_STEM="lexyy"
8744 ;;
8745 *)
8746 PATH_IFS=':'
8747 LEX_STEM="lex.yy"
8748 ;;
8749esac
8750
8751
8752
8753 echo "saving argument cache $wx_arg_cache_file"
8754 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8755
8756
8757
8758echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8759echo "configure:8760: checking for toolkit" >&5
8760
8761# In Wine, we need to default to MSW, not GTK or MOTIF
8762if test "$wxUSE_WINE" = "yes"; then
8763 DEFAULT_DEFAULT_wxUSE_GTK=0
8764 DEFAULT_DEFAULT_wxUSE_MOTIF=0
8765 DEFAULT_DEFAULT_wxUSE_MSW=1
8766fi
8767
8768if test "$wxUSE_GUI" = "yes"; then
8769
8770 if test "$USE_BEOS" = 1; then
8771 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8772 fi
8773
8774 if test "$TOOLKIT_GIVEN" = 1; then
8775 for toolkit in `echo $ALL_TOOLKITS`; do
8776 var=wxUSE_$toolkit
8777 eval "value=\$${var}"
8778 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8779 done
8780 else
8781 for toolkit in `echo $ALL_TOOLKITS`; do
8782 if test "$has_toolkit_in_cache" != 1; then
8783 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8784 else
8785 var=DEFAULT_wxUSE_$toolkit
8786 fi
8787 eval "wxUSE_$toolkit=\$${var}"
8788 done
8789 fi
8790
8791 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
8792 + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
8793
8794 case "${host}" in
8795 *-pc-os2_emx | *-pc-os2-emx )
8796 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8797 esac
8798
8799 case "$NUM_TOOLKITS" in
8800 1)
8801 ;;
8802 0)
8803 { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
8804 ;;
8805 *)
8806 { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
8807 esac
8808
8809 for toolkit in `echo $ALL_TOOLKITS`; do
8810 var=wxUSE_$toolkit
8811 eval "value=\$${var}"
8812 if test "x$value" != x; then
8813 cache_var=CACHE_$toolkit
8814 eval "cache=\$${cache_var}"
8815 if test "$cache" = 1; then
8816 echo "$var=$value" >> ${wx_arg_cache_file}
8817 fi
8818 if test "$value" = 1; then
8819 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8820 echo "$ac_t""$toolkit_echo" 1>&6
8821 fi
8822 fi
8823 done
8824else
8825 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8826fi
8827
8828wants_win32=0
8829doesnt_want_win32=0
8830case "${host}" in
8831 *-*-cygwin*)
8832 if test "$wxUSE_MSW" = 1 ; then
8833 wants_win32=1
8834 else
8835 doesnt_want_win32=1
8836 fi
8837 ;;
8838 *-*-mingw*)
8839 wants_win32=1
8840 ;;
8841esac
8842
8843if test "$wxUSE_WINE" = "yes"; then
8844 wants_win32=1
8845 CC=winegcc
8846 CXX=wineg++
8847 RESCOMP=wrc
8848fi
8849
8850if test "$wants_win32" = 1 ; then
8851 USE_UNIX=0
8852 USE_WIN32=1
8853 cat >> confdefs.h <<\EOF
8854#define __WIN32__ 1
8855EOF
8856
8857 cat >> confdefs.h <<\EOF
8858#define __WIN95__ 1
8859EOF
8860
8861 cat >> confdefs.h <<\EOF
8862#define __WINDOWS__ 1
8863EOF
8864
8865 cat >> confdefs.h <<\EOF
8866#define __GNUWIN32__ 1
8867EOF
8868
8869 cat >> confdefs.h <<\EOF
8870#define STRICT 1
8871EOF
8872
8873 cat >> confdefs.h <<\EOF
8874#define WINVER 0x0400
8875EOF
8876
8877fi
8878if test "$doesnt_want_win32" = 1 ; then
8879 USE_UNIX=1
8880 USE_WIN32=0
8881fi
8882
8883if test "$USE_UNIX" = 1 ; then
8884 wxUSE_UNIX=yes
8885 cat >> confdefs.h <<\EOF
8886#define __UNIX__ 1
8887EOF
8888
8889fi
8890
8891
8892cat > confcache <<\EOF
8893# This file is a shell script that caches the results of configure
8894# tests run on this system so they can be shared between configure
8895# scripts and configure runs. It is not useful on other systems.
8896# If it contains results you don't want to keep, you may remove or edit it.
8897#
8898# By default, configure uses ./config.cache as the cache file,
8899# creating it if it does not exist already. You can give configure
8900# the --cache-file=FILE option to use a different cache file; that is
8901# what configure does when it calls configure scripts in
8902# subdirectories, so they share the cache.
8903# Giving --cache-file=/dev/null disables caching, for debugging configure.
8904# config.status only pays attention to the cache file if you give it the
8905# --recheck option to rerun configure.
8906#
8907EOF
8908# The following way of writing the cache mishandles newlines in values,
8909# but we know of no workaround that is simple, portable, and efficient.
8910# So, don't put newlines in cache variables' values.
8911# Ultrix sh set writes to stderr and can't be redirected directly,
8912# and sets the high bit in the cache file unless we assign to the vars.
8913(set) 2>&1 |
8914 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8915 *ac_space=\ *)
8916 # `set' does not quote correctly, so add quotes (double-quote substitution
8917 # turns \\\\ into \\, and sed turns \\ into \).
8918 sed -n \
8919 -e "s/'/'\\\\''/g" \
8920 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8921 ;;
8922 *)
8923 # `set' quotes correctly as required by POSIX, so do not add quotes.
8924 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8925 ;;
8926 esac >> confcache
8927if cmp -s $cache_file confcache; then
8928 :
8929else
8930 if test -w $cache_file; then
8931 echo "updating cache $cache_file"
8932 cat confcache > $cache_file
8933 else
8934 echo "not updating unwritable cache $cache_file"
8935 fi
8936fi
8937rm -f confcache
8938
8939
8940if test "$build" != "$host" ; then
8941 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8942 CC=$host_alias-gcc
8943 CXX=$host_alias-c++
8944 AR=$host_alias-ar
8945 RANLIB=$host_alias-ranlib
8946 DLLTOOL=$host_alias-dlltool
8947 RESCOMP=$host_alias-windres
8948 LD=$host_alias-ld
8949 NM=$host_alias-nm
8950 STRIP=$host_alias-strip
8951 else
8952 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8953 fi
8954fi
8955
8956CFLAGS=${CFLAGS:=}
8957# Extract the first word of "gcc", so it can be a program name with args.
8958set dummy gcc; ac_word=$2
8959echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8960echo "configure:8961: checking for $ac_word" >&5
8961if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8962 echo $ac_n "(cached) $ac_c" 1>&6
8963else
8964 if test -n "$CC"; then
8965 ac_cv_prog_CC="$CC" # Let the user override the test.
8966else
8967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8968 ac_dummy="$PATH"
8969 for ac_dir in $ac_dummy; do
8970 test -z "$ac_dir" && ac_dir=.
8971 if test -f $ac_dir/$ac_word; then
8972 ac_cv_prog_CC="gcc"
8973 break
8974 fi
8975 done
8976 IFS="$ac_save_ifs"
8977fi
8978fi
8979CC="$ac_cv_prog_CC"
8980if test -n "$CC"; then
8981 echo "$ac_t""$CC" 1>&6
8982else
8983 echo "$ac_t""no" 1>&6
8984fi
8985
8986if test -z "$CC"; then
8987 # Extract the first word of "cc", so it can be a program name with args.
8988set dummy cc; ac_word=$2
8989echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8990echo "configure:8991: checking for $ac_word" >&5
8991if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8992 echo $ac_n "(cached) $ac_c" 1>&6
8993else
8994 if test -n "$CC"; then
8995 ac_cv_prog_CC="$CC" # Let the user override the test.
8996else
8997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8998 ac_prog_rejected=no
8999 ac_dummy="$PATH"
9000 for ac_dir in $ac_dummy; do
9001 test -z "$ac_dir" && ac_dir=.
9002 if test -f $ac_dir/$ac_word; then
9003 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
9004 ac_prog_rejected=yes
9005 continue
9006 fi
9007 ac_cv_prog_CC="cc"
9008 break
9009 fi
9010 done
9011 IFS="$ac_save_ifs"
9012if test $ac_prog_rejected = yes; then
9013 # We found a bogon in the path, so make sure we never use it.
9014 set dummy $ac_cv_prog_CC
9015 shift
9016 if test $# -gt 0; then
9017 # We chose a different compiler from the bogus one.
9018 # However, it has the same basename, so the bogon will be chosen
9019 # first if we set CC to just the basename; use the full file name.
9020 shift
9021 set dummy "$ac_dir/$ac_word" "$@"
9022 shift
9023 ac_cv_prog_CC="$@"
9024 fi
9025fi
9026fi
9027fi
9028CC="$ac_cv_prog_CC"
9029if test -n "$CC"; then
9030 echo "$ac_t""$CC" 1>&6
9031else
9032 echo "$ac_t""no" 1>&6
9033fi
9034
9035 if test -z "$CC"; then
9036 case "`uname -s`" in
9037 *win32* | *WIN32*)
9038 # Extract the first word of "cl", so it can be a program name with args.
9039set dummy cl; ac_word=$2
9040echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9041echo "configure:9042: checking for $ac_word" >&5
9042if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
9043 echo $ac_n "(cached) $ac_c" 1>&6
9044else
9045 if test -n "$CC"; then
9046 ac_cv_prog_CC="$CC" # Let the user override the test.
9047else
9048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9049 ac_dummy="$PATH"
9050 for ac_dir in $ac_dummy; do
9051 test -z "$ac_dir" && ac_dir=.
9052 if test -f $ac_dir/$ac_word; then
9053 ac_cv_prog_CC="cl"
9054 break
9055 fi
9056 done
9057 IFS="$ac_save_ifs"
9058fi
9059fi
9060CC="$ac_cv_prog_CC"
9061if test -n "$CC"; then
9062 echo "$ac_t""$CC" 1>&6
9063else
9064 echo "$ac_t""no" 1>&6
9065fi
9066 ;;
9067 esac
9068 fi
9069 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
9070fi
9071
9072echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9073echo "configure:9074: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
9074
9075ac_ext=c
9076# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9077ac_cpp='$CPP $CPPFLAGS'
9078ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9079ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9080cross_compiling=$ac_cv_prog_cc_cross
9081
9082cat > conftest.$ac_ext << EOF
9083
9084#line 9085 "configure"
9085#include "confdefs.h"
9086
9087main(){return(0);}
9088EOF
9089if { (eval echo configure:9090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9090 ac_cv_prog_cc_works=yes
9091 # If we can't run a trivial program, we are probably using a cross compiler.
9092 if (./conftest; exit) 2>/dev/null; then
9093 ac_cv_prog_cc_cross=no
9094 else
9095 ac_cv_prog_cc_cross=yes
9096 fi
9097else
9098 echo "configure: failed program was:" >&5
9099 cat conftest.$ac_ext >&5
9100 ac_cv_prog_cc_works=no
9101fi
9102rm -fr conftest*
9103ac_ext=c
9104# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9105ac_cpp='$CPP $CPPFLAGS'
9106ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9107ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9108cross_compiling=$ac_cv_prog_cc_cross
9109
9110echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
9111if test $ac_cv_prog_cc_works = no; then
9112 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
9113fi
9114echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9115echo "configure:9116: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
9116echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
9117cross_compiling=$ac_cv_prog_cc_cross
9118
9119echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
9120echo "configure:9121: checking whether we are using GNU C" >&5
9121if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
9122 echo $ac_n "(cached) $ac_c" 1>&6
9123else
9124 cat > conftest.c <<EOF
9125#ifdef __GNUC__
9126 yes;
9127#endif
9128EOF
9129if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9130 ac_cv_prog_gcc=yes
9131else
9132 ac_cv_prog_gcc=no
9133fi
9134fi
9135
9136echo "$ac_t""$ac_cv_prog_gcc" 1>&6
9137
9138if test $ac_cv_prog_gcc = yes; then
9139 GCC=yes
9140else
9141 GCC=
9142fi
9143
9144ac_test_CFLAGS="${CFLAGS+set}"
9145ac_save_CFLAGS="$CFLAGS"
9146CFLAGS=
9147echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
9148echo "configure:9149: checking whether ${CC-cc} accepts -g" >&5
9149if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
9150 echo $ac_n "(cached) $ac_c" 1>&6
9151else
9152 echo 'void f(){}' > conftest.c
9153if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
9154 ac_cv_prog_cc_g=yes
9155else
9156 ac_cv_prog_cc_g=no
9157fi
9158rm -f conftest*
9159
9160fi
9161
9162echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
9163if test "$ac_test_CFLAGS" = set; then
9164 CFLAGS="$ac_save_CFLAGS"
9165elif test $ac_cv_prog_cc_g = yes; then
9166 if test "$GCC" = yes; then
9167 CFLAGS="-g -O2"
9168 else
9169 CFLAGS="-g"
9170 fi
9171else
9172 if test "$GCC" = yes; then
9173 CFLAGS="-O2"
9174 else
9175 CFLAGS=
9176 fi
9177fi
9178
9179
9180echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
9181echo "configure:9182: checking how to run the C preprocessor" >&5
9182# On Suns, sometimes $CPP names a directory.
9183if test -n "$CPP" && test -d "$CPP"; then
9184 CPP=
9185fi
9186if test -z "$CPP"; then
9187if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
9188 echo $ac_n "(cached) $ac_c" 1>&6
9189else
9190 # This must be in double quotes, not single quotes, because CPP may get
9191 # substituted into the Makefile and "${CC-cc}" will confuse make.
9192 CPP="${CC-cc} -E"
9193 # On the NeXT, cc -E runs the code through the compiler's parser,
9194 # not just through cpp.
9195 cat > conftest.$ac_ext <<EOF
9196#line 9197 "configure"
9197#include "confdefs.h"
9198#include <assert.h>
9199Syntax Error
9200EOF
9201ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9202{ (eval echo configure:9203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9203ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9204if test -z "$ac_err"; then
9205 :
9206else
9207 echo "$ac_err" >&5
9208 echo "configure: failed program was:" >&5
9209 cat conftest.$ac_ext >&5
9210 rm -rf conftest*
9211 CPP="${CC-cc} -E -traditional-cpp"
9212 cat > conftest.$ac_ext <<EOF
9213#line 9214 "configure"
9214#include "confdefs.h"
9215#include <assert.h>
9216Syntax Error
9217EOF
9218ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9219{ (eval echo configure:9220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9220ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9221if test -z "$ac_err"; then
9222 :
9223else
9224 echo "$ac_err" >&5
9225 echo "configure: failed program was:" >&5
9226 cat conftest.$ac_ext >&5
9227 rm -rf conftest*
9228 CPP="${CC-cc} -nologo -E"
9229 cat > conftest.$ac_ext <<EOF
9230#line 9231 "configure"
9231#include "confdefs.h"
9232#include <assert.h>
9233Syntax Error
9234EOF
9235ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9236{ (eval echo configure:9237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9237ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9238if test -z "$ac_err"; then
9239 :
9240else
9241 echo "$ac_err" >&5
9242 echo "configure: failed program was:" >&5
9243 cat conftest.$ac_ext >&5
9244 rm -rf conftest*
9245 CPP=/lib/cpp
9246fi
9247rm -f conftest*
9248fi
9249rm -f conftest*
9250fi
9251rm -f conftest*
9252 ac_cv_prog_CPP="$CPP"
9253fi
9254 CPP="$ac_cv_prog_CPP"
9255else
9256 ac_cv_prog_CPP="$CPP"
9257fi
9258echo "$ac_t""$CPP" 1>&6
9259
9260if test $ac_cv_prog_gcc = yes; then
9261 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
9262echo "configure:9263: checking whether ${CC-cc} needs -traditional" >&5
9263if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
9264 echo $ac_n "(cached) $ac_c" 1>&6
9265else
9266 ac_pattern="Autoconf.*'x'"
9267 cat > conftest.$ac_ext <<EOF
9268#line 9269 "configure"
9269#include "confdefs.h"
9270#include <sgtty.h>
9271Autoconf TIOCGETP
9272EOF
9273if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9274 egrep "$ac_pattern" >/dev/null 2>&1; then
9275 rm -rf conftest*
9276 ac_cv_prog_gcc_traditional=yes
9277else
9278 rm -rf conftest*
9279 ac_cv_prog_gcc_traditional=no
9280fi
9281rm -f conftest*
9282
9283
9284 if test $ac_cv_prog_gcc_traditional = no; then
9285 cat > conftest.$ac_ext <<EOF
9286#line 9287 "configure"
9287#include "confdefs.h"
9288#include <termio.h>
9289Autoconf TCGETA
9290EOF
9291if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9292 egrep "$ac_pattern" >/dev/null 2>&1; then
9293 rm -rf conftest*
9294 ac_cv_prog_gcc_traditional=yes
9295fi
9296rm -f conftest*
9297
9298 fi
9299fi
9300
9301echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
9302 if test $ac_cv_prog_gcc_traditional = yes; then
9303 CC="$CC -traditional"
9304 fi
9305fi
9306
9307
9308
9309ac_ext=C
9310# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9311ac_cpp='$CXXCPP $CPPFLAGS'
9312ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9313ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9314cross_compiling=$ac_cv_prog_cxx_cross
9315
9316
9317CXXFLAGS=${CXXFLAGS:=}
9318for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
9319do
9320# Extract the first word of "$ac_prog", so it can be a program name with args.
9321set dummy $ac_prog; ac_word=$2
9322echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9323echo "configure:9324: checking for $ac_word" >&5
9324if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
9325 echo $ac_n "(cached) $ac_c" 1>&6
9326else
9327 if test -n "$CXX"; then
9328 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9329else
9330 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9331 ac_dummy="$PATH"
9332 for ac_dir in $ac_dummy; do
9333 test -z "$ac_dir" && ac_dir=.
9334 if test -f $ac_dir/$ac_word; then
9335 ac_cv_prog_CXX="$ac_prog"
9336 break
9337 fi
9338 done
9339 IFS="$ac_save_ifs"
9340fi
9341fi
9342CXX="$ac_cv_prog_CXX"
9343if test -n "$CXX"; then
9344 echo "$ac_t""$CXX" 1>&6
9345else
9346 echo "$ac_t""no" 1>&6
9347fi
9348
9349test -n "$CXX" && break
9350done
9351test -n "$CXX" || CXX="gcc"
9352
9353
9354echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9355echo "configure:9356: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
9356
9357ac_ext=C
9358# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9359ac_cpp='$CXXCPP $CPPFLAGS'
9360ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9361ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9362cross_compiling=$ac_cv_prog_cxx_cross
9363
9364cat > conftest.$ac_ext << EOF
9365
9366#line 9367 "configure"
9367#include "confdefs.h"
9368
9369int main(){return(0);}
9370EOF
9371if { (eval echo configure:9372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9372 ac_cv_prog_cxx_works=yes
9373 # If we can't run a trivial program, we are probably using a cross compiler.
9374 if (./conftest; exit) 2>/dev/null; then
9375 ac_cv_prog_cxx_cross=no
9376 else
9377 ac_cv_prog_cxx_cross=yes
9378 fi
9379else
9380 echo "configure: failed program was:" >&5
9381 cat conftest.$ac_ext >&5
9382 ac_cv_prog_cxx_works=no
9383fi
9384rm -fr conftest*
9385ac_ext=C
9386# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9387ac_cpp='$CXXCPP $CPPFLAGS'
9388ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9389ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9390cross_compiling=$ac_cv_prog_cxx_cross
9391
9392echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9393if test $ac_cv_prog_cxx_works = no; then
9394 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9395fi
9396echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9397echo "configure:9398: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9398echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9399cross_compiling=$ac_cv_prog_cxx_cross
9400
9401echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9402echo "configure:9403: checking whether we are using GNU C++" >&5
9403if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9404 echo $ac_n "(cached) $ac_c" 1>&6
9405else
9406 cat > conftest.C <<EOF
9407#ifdef __GNUC__
9408 yes;
9409#endif
9410EOF
9411if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9412 ac_cv_prog_gxx=yes
9413else
9414 ac_cv_prog_gxx=no
9415fi
9416fi
9417
9418echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9419
9420if test $ac_cv_prog_gxx = yes; then
9421 GXX=yes
9422else
9423 GXX=
9424fi
9425
9426ac_test_CXXFLAGS="${CXXFLAGS+set}"
9427ac_save_CXXFLAGS="$CXXFLAGS"
9428CXXFLAGS=
9429echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9430echo "configure:9431: checking whether ${CXX-g++} accepts -g" >&5
9431if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9432 echo $ac_n "(cached) $ac_c" 1>&6
9433else
9434 echo 'void f(){}' > conftest.cc
9435if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9436 ac_cv_prog_cxx_g=yes
9437else
9438 ac_cv_prog_cxx_g=no
9439fi
9440rm -f conftest*
9441
9442fi
9443
9444echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9445if test "$ac_test_CXXFLAGS" = set; then
9446 CXXFLAGS="$ac_save_CXXFLAGS"
9447elif test $ac_cv_prog_cxx_g = yes; then
9448 if test "$GXX" = yes; then
9449 CXXFLAGS="-g -O2"
9450 else
9451 CXXFLAGS="-g"
9452 fi
9453else
9454 if test "$GXX" = yes; then
9455 CXXFLAGS="-O2"
9456 else
9457 CXXFLAGS=
9458 fi
9459fi
9460
9461
9462ac_ext=c
9463# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9464ac_cpp='$CPP $CPPFLAGS'
9465ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9466ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9467cross_compiling=$ac_cv_prog_cc_cross
9468
9469
9470# Extract the first word of "ranlib", so it can be a program name with args.
9471set dummy ranlib; ac_word=$2
9472echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9473echo "configure:9474: checking for $ac_word" >&5
9474if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9475 echo $ac_n "(cached) $ac_c" 1>&6
9476else
9477 if test -n "$RANLIB"; then
9478 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9479else
9480 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9481 ac_dummy="$PATH"
9482 for ac_dir in $ac_dummy; do
9483 test -z "$ac_dir" && ac_dir=.
9484 if test -f $ac_dir/$ac_word; then
9485 ac_cv_prog_RANLIB="ranlib"
9486 break
9487 fi
9488 done
9489 IFS="$ac_save_ifs"
9490 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9491fi
9492fi
9493RANLIB="$ac_cv_prog_RANLIB"
9494if test -n "$RANLIB"; then
9495 echo "$ac_t""$RANLIB" 1>&6
9496else
9497 echo "$ac_t""no" 1>&6
9498fi
9499
9500
9501# Extract the first word of "ar", so it can be a program name with args.
9502set dummy ar; ac_word=$2
9503echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9504echo "configure:9505: checking for $ac_word" >&5
9505if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9506 echo $ac_n "(cached) $ac_c" 1>&6
9507else
9508 if test -n "$AR"; then
9509 ac_cv_prog_AR="$AR" # Let the user override the test.
9510else
9511 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9512 ac_dummy="$PATH"
9513 for ac_dir in $ac_dummy; do
9514 test -z "$ac_dir" && ac_dir=.
9515 if test -f $ac_dir/$ac_word; then
9516 ac_cv_prog_AR="ar"
9517 break
9518 fi
9519 done
9520 IFS="$ac_save_ifs"
9521 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9522fi
9523fi
9524AR="$ac_cv_prog_AR"
9525if test -n "$AR"; then
9526 echo "$ac_t""$AR" 1>&6
9527else
9528 echo "$ac_t""no" 1>&6
9529fi
9530
9531
9532# Find a good install program. We prefer a C program (faster),
9533# so one script is as good as another. But avoid the broken or
9534# incompatible versions:
9535# SysV /etc/install, /usr/sbin/install
9536# SunOS /usr/etc/install
9537# IRIX /sbin/install
9538# AIX /bin/install
9539# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9540# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9541# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9542# ./install, which can be erroneously created by make from ./install.sh.
9543echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9544echo "configure:9545: checking for a BSD compatible install" >&5
9545if test -z "$INSTALL"; then
9546if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9547 echo $ac_n "(cached) $ac_c" 1>&6
9548else
9549 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9550 for ac_dir in $PATH; do
9551 # Account for people who put trailing slashes in PATH elements.
9552 case "$ac_dir/" in
9553 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9554 *)
9555 # OSF1 and SCO ODT 3.0 have their own names for install.
9556 # Don't use installbsd from OSF since it installs stuff as root
9557 # by default.
9558 for ac_prog in ginstall scoinst install; do
9559 if test -f $ac_dir/$ac_prog; then
9560 if test $ac_prog = install &&
9561 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9562 # AIX install. It has an incompatible calling convention.
9563 :
9564 else
9565 ac_cv_path_install="$ac_dir/$ac_prog -c"
9566 break 2
9567 fi
9568 fi
9569 done
9570 ;;
9571 esac
9572 done
9573 IFS="$ac_save_IFS"
9574
9575fi
9576 if test "${ac_cv_path_install+set}" = set; then
9577 INSTALL="$ac_cv_path_install"
9578 else
9579 # As a last resort, use the slow shell script. We don't cache a
9580 # path for INSTALL within a source directory, because that will
9581 # break other packages using the cache if that directory is
9582 # removed, or if the path is relative.
9583 INSTALL="$ac_install_sh"
9584 fi
9585fi
9586echo "$ac_t""$INSTALL" 1>&6
9587
9588# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9589# It thinks the first close brace ends the variable substitution.
9590test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9591
9592test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9593
9594test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9595
9596
9597case ${INSTALL} in
9598 /* ) # Absolute
9599 ;;
9600 ?:* ) # Drive letter, considered as absolute.
9601 ;;
9602 *)
9603 INSTALL=`pwd`/${INSTALL} ;;
9604esac
9605
9606case ${host} in
9607 *-hp-hpux* )
9608 INSTALL_DIR="mkdir"
9609 ;;
9610
9611 *) INSTALL_DIR="$INSTALL -d"
9612 ;;
9613esac
9614
9615
9616case "${host}" in
9617
9618 powerpc-*-darwin* )
9619 INSTALL_PROGRAM="cp -fp"
9620 INSTALL_DATA="cp -fp"
9621 ;;
9622 *)
9623 ;;
9624esac
9625
9626# Extract the first word of "strip", so it can be a program name with args.
9627set dummy strip; ac_word=$2
9628echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9629echo "configure:9630: checking for $ac_word" >&5
9630if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9631 echo $ac_n "(cached) $ac_c" 1>&6
9632else
9633 if test -n "$STRIP"; then
9634 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9635else
9636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9637 ac_dummy="$PATH"
9638 for ac_dir in $ac_dummy; do
9639 test -z "$ac_dir" && ac_dir=.
9640 if test -f $ac_dir/$ac_word; then
9641 ac_cv_prog_STRIP="strip"
9642 break
9643 fi
9644 done
9645 IFS="$ac_save_ifs"
9646 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9647fi
9648fi
9649STRIP="$ac_cv_prog_STRIP"
9650if test -n "$STRIP"; then
9651 echo "$ac_t""$STRIP" 1>&6
9652else
9653 echo "$ac_t""no" 1>&6
9654fi
9655
9656
9657echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9658echo "configure:9659: checking if make is GNU make" >&5
9659if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9660 echo $ac_n "(cached) $ac_c" 1>&6
9661else
9662
9663 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9664 egrep -s GNU > /dev/null); then
9665 wx_cv_prog_makeisgnu="yes"
9666 else
9667 wx_cv_prog_makeisgnu="no"
9668 fi
9669
9670fi
9671
9672echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9673
9674if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9675 IF_GNU_MAKE=""
9676else
9677 IF_GNU_MAKE="#"
9678fi
9679
9680
9681
9682if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9683echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9684echo "configure:9685: checking if make supports VPATH" >&5
9685if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9686 echo $ac_n "(cached) $ac_c" 1>&6
9687else
9688
9689cat - << EOF > confMake
9690check : file
9691 cp \$? \$@
9692 cp \$? final_file
9693EOF
9694
9695if test ! -d sub ; then
9696 mkdir sub
9697fi
9698echo dummy > sub/file
9699${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9700RESULT=$?
9701rm -f sub/file check final_file confMake
9702rmdir sub
9703if test "$RESULT" = 0; then
9704 wx_cv_prog_makevpath="yes"
9705else
9706 wx_cv_prog_makevpath="no"
9707fi
9708
9709fi
9710
9711echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9712
9713if test "x$wx_cv_prog_makevpath" != "xyes"; then
9714{ echo "configure: error:
9715You need a make-utility that is able to use the variable
9716VPATH correctly.
9717If your version of make does not support VPATH correctly,
9718please install GNU-make (possibly as gmake), and start
9719configure with the following command:
9720export MAKE=gmake; ./configure for sh-type shells
9721setenv MAKE gmake; ./configure for csh-type shells
9722Also please do remember to use gmake in this case every time
9723you are trying to compile.
9724" 1>&2; exit 1; }
9725fi fi
9726for ac_prog in 'bison -y' byacc
9727do
9728# Extract the first word of "$ac_prog", so it can be a program name with args.
9729set dummy $ac_prog; ac_word=$2
9730echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9731echo "configure:9732: checking for $ac_word" >&5
9732if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9733 echo $ac_n "(cached) $ac_c" 1>&6
9734else
9735 if test -n "$YACC"; then
9736 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9737else
9738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9739 ac_dummy="$PATH"
9740 for ac_dir in $ac_dummy; do
9741 test -z "$ac_dir" && ac_dir=.
9742 if test -f $ac_dir/$ac_word; then
9743 ac_cv_prog_YACC="$ac_prog"
9744 break
9745 fi
9746 done
9747 IFS="$ac_save_ifs"
9748fi
9749fi
9750YACC="$ac_cv_prog_YACC"
9751if test -n "$YACC"; then
9752 echo "$ac_t""$YACC" 1>&6
9753else
9754 echo "$ac_t""no" 1>&6
9755fi
9756
9757test -n "$YACC" && break
9758done
9759test -n "$YACC" || YACC="yacc"
9760
9761
9762# Extract the first word of "flex", so it can be a program name with args.
9763set dummy flex; ac_word=$2
9764echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9765echo "configure:9766: checking for $ac_word" >&5
9766if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9767 echo $ac_n "(cached) $ac_c" 1>&6
9768else
9769 if test -n "$LEX"; then
9770 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9771else
9772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9773 ac_dummy="$PATH"
9774 for ac_dir in $ac_dummy; do
9775 test -z "$ac_dir" && ac_dir=.
9776 if test -f $ac_dir/$ac_word; then
9777 ac_cv_prog_LEX="flex"
9778 break
9779 fi
9780 done
9781 IFS="$ac_save_ifs"
9782 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9783fi
9784fi
9785LEX="$ac_cv_prog_LEX"
9786if test -n "$LEX"; then
9787 echo "$ac_t""$LEX" 1>&6
9788else
9789 echo "$ac_t""no" 1>&6
9790fi
9791
9792if test -z "$LEXLIB"
9793then
9794 case "$LEX" in
9795 flex*) ac_lib=fl ;;
9796 *) ac_lib=l ;;
9797 esac
9798 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9799echo "configure:9800: checking for yywrap in -l$ac_lib" >&5
9800ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9801if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9802 echo $ac_n "(cached) $ac_c" 1>&6
9803else
9804 ac_save_LIBS="$LIBS"
9805LIBS="-l$ac_lib $LIBS"
9806cat > conftest.$ac_ext <<EOF
9807#line 9808 "configure"
9808#include "confdefs.h"
9809/* Override any gcc2 internal prototype to avoid an error. */
9810/* We use char because int might match the return type of a gcc2
9811 builtin and then its argument prototype would still apply. */
9812char yywrap();
9813
9814int main() {
9815yywrap()
9816; return 0; }
9817EOF
9818if { (eval echo configure:9819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9819 rm -rf conftest*
9820 eval "ac_cv_lib_$ac_lib_var=yes"
9821else
9822 echo "configure: failed program was:" >&5
9823 cat conftest.$ac_ext >&5
9824 rm -rf conftest*
9825 eval "ac_cv_lib_$ac_lib_var=no"
9826fi
9827rm -f conftest*
9828LIBS="$ac_save_LIBS"
9829
9830fi
9831if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9832 echo "$ac_t""yes" 1>&6
9833 LEXLIB="-l$ac_lib"
9834else
9835 echo "$ac_t""no" 1>&6
9836fi
9837
9838fi
9839
9840
9841echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9842echo "configure:9843: checking whether ln -s works" >&5
9843if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9844 echo $ac_n "(cached) $ac_c" 1>&6
9845else
9846 rm -f conftestdata
9847if ln -s X conftestdata 2>/dev/null
9848then
9849 rm -f conftestdata
9850 ac_cv_prog_LN_S="ln -s"
9851else
9852 ac_cv_prog_LN_S=ln
9853fi
9854fi
9855LN_S="$ac_cv_prog_LN_S"
9856if test "$ac_cv_prog_LN_S" = "ln -s"; then
9857 echo "$ac_t""yes" 1>&6
9858else
9859 echo "$ac_t""no" 1>&6
9860fi
9861
9862
9863case "${host}" in
9864 *-pc-os2_emx | *-pc-os2-emx )
9865 LIBS="$LIBS -lstdcpp"
9866 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
9867 echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
9868echo "configure:9869: checking for drand48 in -lcExt" >&5
9869ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
9870if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9871 echo $ac_n "(cached) $ac_c" 1>&6
9872else
9873 ac_save_LIBS="$LIBS"
9874LIBS="-lcExt $LIBS"
9875cat > conftest.$ac_ext <<EOF
9876#line 9877 "configure"
9877#include "confdefs.h"
9878/* Override any gcc2 internal prototype to avoid an error. */
9879/* We use char because int might match the return type of a gcc2
9880 builtin and then its argument prototype would still apply. */
9881char drand48();
9882
9883int main() {
9884drand48()
9885; return 0; }
9886EOF
9887if { (eval echo configure:9888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9888 rm -rf conftest*
9889 eval "ac_cv_lib_$ac_lib_var=yes"
9890else
9891 echo "configure: failed program was:" >&5
9892 cat conftest.$ac_ext >&5
9893 rm -rf conftest*
9894 eval "ac_cv_lib_$ac_lib_var=no"
9895fi
9896rm -f conftest*
9897LIBS="$ac_save_LIBS"
9898
9899fi
9900if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9901 echo "$ac_t""yes" 1>&6
9902 LIBS="$LIBS -lcExt"
9903else
9904 echo "$ac_t""no" 1>&6
9905fi
9906
9907 else
9908 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
9909 fi
9910 ;;
9911esac
9912
9913
9914if test "$wxUSE_MAC" != 1; then
9915 for ac_hdr in strings.h
9916do
9917ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9918echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9919echo "configure:9920: checking for $ac_hdr" >&5
9920if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9921 echo $ac_n "(cached) $ac_c" 1>&6
9922else
9923 cat > conftest.$ac_ext <<EOF
9924#line 9925 "configure"
9925#include "confdefs.h"
9926#include <$ac_hdr>
9927EOF
9928ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9929{ (eval echo configure:9930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9930ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9931if test -z "$ac_err"; then
9932 rm -rf conftest*
9933 eval "ac_cv_header_$ac_safe=yes"
9934else
9935 echo "$ac_err" >&5
9936 echo "configure: failed program was:" >&5
9937 cat conftest.$ac_ext >&5
9938 rm -rf conftest*
9939 eval "ac_cv_header_$ac_safe=no"
9940fi
9941rm -f conftest*
9942fi
9943if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9944 echo "$ac_t""yes" 1>&6
9945 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9946 cat >> confdefs.h <<EOF
9947#define $ac_tr_hdr 1
9948EOF
9949
9950else
9951 echo "$ac_t""no" 1>&6
9952fi
9953done
9954
9955fi
9956
9957for ac_hdr in stdlib.h
9958do
9959ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9960echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9961echo "configure:9962: checking for $ac_hdr" >&5
9962if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9963 echo $ac_n "(cached) $ac_c" 1>&6
9964else
9965 cat > conftest.$ac_ext <<EOF
9966#line 9967 "configure"
9967#include "confdefs.h"
9968#include <$ac_hdr>
9969EOF
9970ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9971{ (eval echo configure:9972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9972ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9973if test -z "$ac_err"; then
9974 rm -rf conftest*
9975 eval "ac_cv_header_$ac_safe=yes"
9976else
9977 echo "$ac_err" >&5
9978 echo "configure: failed program was:" >&5
9979 cat conftest.$ac_ext >&5
9980 rm -rf conftest*
9981 eval "ac_cv_header_$ac_safe=no"
9982fi
9983rm -f conftest*
9984fi
9985if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9986 echo "$ac_t""yes" 1>&6
9987 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9988 cat >> confdefs.h <<EOF
9989#define $ac_tr_hdr 1
9990EOF
9991
9992else
9993 echo "$ac_t""no" 1>&6
9994fi
9995done
9996
9997for ac_hdr in malloc.h
9998do
9999ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10000echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10001echo "configure:10002: checking for $ac_hdr" >&5
10002if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10003 echo $ac_n "(cached) $ac_c" 1>&6
10004else
10005 cat > conftest.$ac_ext <<EOF
10006#line 10007 "configure"
10007#include "confdefs.h"
10008#include <$ac_hdr>
10009EOF
10010ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10011{ (eval echo configure:10012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10012ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10013if test -z "$ac_err"; then
10014 rm -rf conftest*
10015 eval "ac_cv_header_$ac_safe=yes"
10016else
10017 echo "$ac_err" >&5
10018 echo "configure: failed program was:" >&5
10019 cat conftest.$ac_ext >&5
10020 rm -rf conftest*
10021 eval "ac_cv_header_$ac_safe=no"
10022fi
10023rm -f conftest*
10024fi
10025if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10026 echo "$ac_t""yes" 1>&6
10027 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10028 cat >> confdefs.h <<EOF
10029#define $ac_tr_hdr 1
10030EOF
10031
10032else
10033 echo "$ac_t""no" 1>&6
10034fi
10035done
10036
10037for ac_hdr in unistd.h
10038do
10039ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10040echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10041echo "configure:10042: checking for $ac_hdr" >&5
10042if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10043 echo $ac_n "(cached) $ac_c" 1>&6
10044else
10045 cat > conftest.$ac_ext <<EOF
10046#line 10047 "configure"
10047#include "confdefs.h"
10048#include <$ac_hdr>
10049EOF
10050ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10051{ (eval echo configure:10052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10052ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10053if test -z "$ac_err"; then
10054 rm -rf conftest*
10055 eval "ac_cv_header_$ac_safe=yes"
10056else
10057 echo "$ac_err" >&5
10058 echo "configure: failed program was:" >&5
10059 cat conftest.$ac_ext >&5
10060 rm -rf conftest*
10061 eval "ac_cv_header_$ac_safe=no"
10062fi
10063rm -f conftest*
10064fi
10065if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10066 echo "$ac_t""yes" 1>&6
10067 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10068 cat >> confdefs.h <<EOF
10069#define $ac_tr_hdr 1
10070EOF
10071
10072else
10073 echo "$ac_t""no" 1>&6
10074fi
10075done
10076
10077for ac_hdr in wchar.h
10078do
10079ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10080echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10081echo "configure:10082: checking for $ac_hdr" >&5
10082if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10083 echo $ac_n "(cached) $ac_c" 1>&6
10084else
10085 cat > conftest.$ac_ext <<EOF
10086#line 10087 "configure"
10087#include "confdefs.h"
10088#include <$ac_hdr>
10089EOF
10090ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10091{ (eval echo configure:10092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10092ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10093if test -z "$ac_err"; then
10094 rm -rf conftest*
10095 eval "ac_cv_header_$ac_safe=yes"
10096else
10097 echo "$ac_err" >&5
10098 echo "configure: failed program was:" >&5
10099 cat conftest.$ac_ext >&5
10100 rm -rf conftest*
10101 eval "ac_cv_header_$ac_safe=no"
10102fi
10103rm -f conftest*
10104fi
10105if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10106 echo "$ac_t""yes" 1>&6
10107 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10108 cat >> confdefs.h <<EOF
10109#define $ac_tr_hdr 1
10110EOF
10111
10112else
10113 echo "$ac_t""no" 1>&6
10114fi
10115done
10116
10117
10118if test "$ac_cv_header_wchar_h" != "yes"; then
10119 for ac_hdr in wcstr.h
10120do
10121ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10122echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10123echo "configure:10124: checking for $ac_hdr" >&5
10124if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10125 echo $ac_n "(cached) $ac_c" 1>&6
10126else
10127 cat > conftest.$ac_ext <<EOF
10128#line 10129 "configure"
10129#include "confdefs.h"
10130#include <$ac_hdr>
10131EOF
10132ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10133{ (eval echo configure:10134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10134ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10135if test -z "$ac_err"; then
10136 rm -rf conftest*
10137 eval "ac_cv_header_$ac_safe=yes"
10138else
10139 echo "$ac_err" >&5
10140 echo "configure: failed program was:" >&5
10141 cat conftest.$ac_ext >&5
10142 rm -rf conftest*
10143 eval "ac_cv_header_$ac_safe=no"
10144fi
10145rm -f conftest*
10146fi
10147if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10148 echo "$ac_t""yes" 1>&6
10149 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10150 cat >> confdefs.h <<EOF
10151#define $ac_tr_hdr 1
10152EOF
10153
10154else
10155 echo "$ac_t""no" 1>&6
10156fi
10157done
10158
10159fi
10160
10161for ac_hdr in fnmatch.h
10162do
10163ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10164echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10165echo "configure:10166: checking for $ac_hdr" >&5
10166if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10167 echo $ac_n "(cached) $ac_c" 1>&6
10168else
10169 cat > conftest.$ac_ext <<EOF
10170#line 10171 "configure"
10171#include "confdefs.h"
10172#include <$ac_hdr>
10173EOF
10174ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10175{ (eval echo configure:10176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10176ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10177if test -z "$ac_err"; then
10178 rm -rf conftest*
10179 eval "ac_cv_header_$ac_safe=yes"
10180else
10181 echo "$ac_err" >&5
10182 echo "configure: failed program was:" >&5
10183 cat conftest.$ac_ext >&5
10184 rm -rf conftest*
10185 eval "ac_cv_header_$ac_safe=no"
10186fi
10187rm -f conftest*
10188fi
10189if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10190 echo "$ac_t""yes" 1>&6
10191 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10192 cat >> confdefs.h <<EOF
10193#define $ac_tr_hdr 1
10194EOF
10195
10196else
10197 echo "$ac_t""no" 1>&6
10198fi
10199done
10200
10201
10202if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
10203 for ac_func in fnmatch
10204do
10205echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10206echo "configure:10207: checking for $ac_func" >&5
10207if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10208 echo $ac_n "(cached) $ac_c" 1>&6
10209else
10210 cat > conftest.$ac_ext <<EOF
10211#line 10212 "configure"
10212#include "confdefs.h"
10213/* System header to define __stub macros and hopefully few prototypes,
10214 which can conflict with char $ac_func(); below. */
10215#include <assert.h>
10216/* Override any gcc2 internal prototype to avoid an error. */
10217/* We use char because int might match the return type of a gcc2
10218 builtin and then its argument prototype would still apply. */
10219char $ac_func();
10220
10221int main() {
10222
10223/* The GNU C library defines this for functions which it implements
10224 to always fail with ENOSYS. Some functions are actually named
10225 something starting with __ and the normal name is an alias. */
10226#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10227choke me
10228#else
10229$ac_func();
10230#endif
10231
10232; return 0; }
10233EOF
10234if { (eval echo configure:10235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10235 rm -rf conftest*
10236 eval "ac_cv_func_$ac_func=yes"
10237else
10238 echo "configure: failed program was:" >&5
10239 cat conftest.$ac_ext >&5
10240 rm -rf conftest*
10241 eval "ac_cv_func_$ac_func=no"
10242fi
10243rm -f conftest*
10244fi
10245
10246if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10247 echo "$ac_t""yes" 1>&6
10248 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10249 cat >> confdefs.h <<EOF
10250#define $ac_tr_func 1
10251EOF
10252
10253else
10254 echo "$ac_t""no" 1>&6
10255fi
10256done
10257
10258fi
10259
10260for ac_hdr in langinfo.h
10261do
10262ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10263echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10264echo "configure:10265: checking for $ac_hdr" >&5
10265if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10266 echo $ac_n "(cached) $ac_c" 1>&6
10267else
10268 cat > conftest.$ac_ext <<EOF
10269#line 10270 "configure"
10270#include "confdefs.h"
10271#include <$ac_hdr>
10272EOF
10273ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10274{ (eval echo configure:10275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10275ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10276if test -z "$ac_err"; then
10277 rm -rf conftest*
10278 eval "ac_cv_header_$ac_safe=yes"
10279else
10280 echo "$ac_err" >&5
10281 echo "configure: failed program was:" >&5
10282 cat conftest.$ac_ext >&5
10283 rm -rf conftest*
10284 eval "ac_cv_header_$ac_safe=no"
10285fi
10286rm -f conftest*
10287fi
10288if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10289 echo "$ac_t""yes" 1>&6
10290 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10291 cat >> confdefs.h <<EOF
10292#define $ac_tr_hdr 1
10293EOF
10294
10295else
10296 echo "$ac_t""no" 1>&6
10297fi
10298done
10299
10300
10301case "${host}" in
10302 *-pc-os2_emx | *-pc-os2-emx )
10303 if test $ac_cv_header_langinfo_h = "yes"; then
10304 LIBS="$LIBS -lintl"
10305 fi
10306 ;;
10307esac
10308
10309if test "$wxUSE_GUI" = "yes"; then
10310 if test "$wxUSE_UNIX" = "yes"; then
10311 for ac_hdr in X11/XKBlib.h
10312do
10313ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10314echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10315echo "configure:10316: checking for $ac_hdr" >&5
10316if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10317 echo $ac_n "(cached) $ac_c" 1>&6
10318else
10319 cat > conftest.$ac_ext <<EOF
10320#line 10321 "configure"
10321#include "confdefs.h"
10322#include <$ac_hdr>
10323EOF
10324ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10325{ (eval echo configure:10326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10326ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10327if test -z "$ac_err"; then
10328 rm -rf conftest*
10329 eval "ac_cv_header_$ac_safe=yes"
10330else
10331 echo "$ac_err" >&5
10332 echo "configure: failed program was:" >&5
10333 cat conftest.$ac_ext >&5
10334 rm -rf conftest*
10335 eval "ac_cv_header_$ac_safe=no"
10336fi
10337rm -f conftest*
10338fi
10339if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10340 echo "$ac_t""yes" 1>&6
10341 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10342 cat >> confdefs.h <<EOF
10343#define $ac_tr_hdr 1
10344EOF
10345
10346else
10347 echo "$ac_t""no" 1>&6
10348fi
10349done
10350
10351 fi
10352fi
10353
10354
10355echo $ac_n "checking for working const""... $ac_c" 1>&6
10356echo "configure:10357: checking for working const" >&5
10357if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
10358 echo $ac_n "(cached) $ac_c" 1>&6
10359else
10360 cat > conftest.$ac_ext <<EOF
10361#line 10362 "configure"
10362#include "confdefs.h"
10363
10364int main() {
10365
10366/* Ultrix mips cc rejects this. */
10367typedef int charset[2]; const charset x;
10368/* SunOS 4.1.1 cc rejects this. */
10369char const *const *ccp;
10370char **p;
10371/* NEC SVR4.0.2 mips cc rejects this. */
10372struct point {int x, y;};
10373static struct point const zero = {0,0};
10374/* AIX XL C 1.02.0.0 rejects this.
10375 It does not let you subtract one const X* pointer from another in an arm
10376 of an if-expression whose if-part is not a constant expression */
10377const char *g = "string";
10378ccp = &g + (g ? g-g : 0);
10379/* HPUX 7.0 cc rejects these. */
10380++ccp;
10381p = (char**) ccp;
10382ccp = (char const *const *) p;
10383{ /* SCO 3.2v4 cc rejects this. */
10384 char *t;
10385 char const *s = 0 ? (char *) 0 : (char const *) 0;
10386
10387 *t++ = 0;
10388}
10389{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10390 int x[] = {25, 17};
10391 const int *foo = &x[0];
10392 ++foo;
10393}
10394{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10395 typedef const int *iptr;
10396 iptr p = 0;
10397 ++p;
10398}
10399{ /* AIX XL C 1.02.0.0 rejects this saying
10400 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10401 struct s { int j; const int *ap[3]; };
10402 struct s *b; b->j = 5;
10403}
10404{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10405 const int foo = 10;
10406}
10407
10408; return 0; }
10409EOF
10410if { (eval echo configure:10411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10411 rm -rf conftest*
10412 ac_cv_c_const=yes
10413else
10414 echo "configure: failed program was:" >&5
10415 cat conftest.$ac_ext >&5
10416 rm -rf conftest*
10417 ac_cv_c_const=no
10418fi
10419rm -f conftest*
10420fi
10421
10422echo "$ac_t""$ac_cv_c_const" 1>&6
10423if test $ac_cv_c_const = no; then
10424 cat >> confdefs.h <<\EOF
10425#define const
10426EOF
10427
10428fi
10429
10430echo $ac_n "checking for inline""... $ac_c" 1>&6
10431echo "configure:10432: checking for inline" >&5
10432if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10433 echo $ac_n "(cached) $ac_c" 1>&6
10434else
10435 ac_cv_c_inline=no
10436for ac_kw in inline __inline__ __inline; do
10437 cat > conftest.$ac_ext <<EOF
10438#line 10439 "configure"
10439#include "confdefs.h"
10440
10441int main() {
10442} $ac_kw foo() {
10443; return 0; }
10444EOF
10445if { (eval echo configure:10446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10446 rm -rf conftest*
10447 ac_cv_c_inline=$ac_kw; break
10448else
10449 echo "configure: failed program was:" >&5
10450 cat conftest.$ac_ext >&5
10451fi
10452rm -f conftest*
10453done
10454
10455fi
10456
10457echo "$ac_t""$ac_cv_c_inline" 1>&6
10458case "$ac_cv_c_inline" in
10459 inline | yes) ;;
10460 no) cat >> confdefs.h <<\EOF
10461#define inline
10462EOF
10463 ;;
10464 *) cat >> confdefs.h <<EOF
10465#define inline $ac_cv_c_inline
10466EOF
10467 ;;
10468esac
10469
10470
10471echo $ac_n "checking size of char""... $ac_c" 1>&6
10472echo "configure:10473: checking size of char" >&5
10473if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10474 echo $ac_n "(cached) $ac_c" 1>&6
10475else
10476 if test "$cross_compiling" = yes; then
10477 ac_cv_sizeof_char=1
10478else
10479 cat > conftest.$ac_ext <<EOF
10480#line 10481 "configure"
10481#include "confdefs.h"
10482#include <stdio.h>
10483#include <sys/types.h>
10484main()
10485{
10486 FILE *f=fopen("conftestval", "w");
10487 if (!f) exit(1);
10488 fprintf(f, "%d\n", sizeof(char));
10489 exit(0);
10490}
10491EOF
10492if { (eval echo configure:10493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10493then
10494 ac_cv_sizeof_char=`cat conftestval`
10495else
10496 echo "configure: failed program was:" >&5
10497 cat conftest.$ac_ext >&5
10498 rm -fr conftest*
10499 ac_cv_sizeof_char=0
10500fi
10501rm -fr conftest*
10502fi
10503
10504fi
10505echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10506cat >> confdefs.h <<EOF
10507#define SIZEOF_CHAR $ac_cv_sizeof_char
10508EOF
10509
10510
10511echo $ac_n "checking size of short""... $ac_c" 1>&6
10512echo "configure:10513: checking size of short" >&5
10513if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10514 echo $ac_n "(cached) $ac_c" 1>&6
10515else
10516 if test "$cross_compiling" = yes; then
10517 ac_cv_sizeof_short=2
10518else
10519 cat > conftest.$ac_ext <<EOF
10520#line 10521 "configure"
10521#include "confdefs.h"
10522#include <stdio.h>
10523#include <sys/types.h>
10524main()
10525{
10526 FILE *f=fopen("conftestval", "w");
10527 if (!f) exit(1);
10528 fprintf(f, "%d\n", sizeof(short));
10529 exit(0);
10530}
10531EOF
10532if { (eval echo configure:10533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10533then
10534 ac_cv_sizeof_short=`cat conftestval`
10535else
10536 echo "configure: failed program was:" >&5
10537 cat conftest.$ac_ext >&5
10538 rm -fr conftest*
10539 ac_cv_sizeof_short=0
10540fi
10541rm -fr conftest*
10542fi
10543
10544fi
10545echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10546cat >> confdefs.h <<EOF
10547#define SIZEOF_SHORT $ac_cv_sizeof_short
10548EOF
10549
10550
10551echo $ac_n "checking size of void *""... $ac_c" 1>&6
10552echo "configure:10553: checking size of void *" >&5
10553if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10554 echo $ac_n "(cached) $ac_c" 1>&6
10555else
10556 if test "$cross_compiling" = yes; then
10557 ac_cv_sizeof_void_p=4
10558else
10559 cat > conftest.$ac_ext <<EOF
10560#line 10561 "configure"
10561#include "confdefs.h"
10562#include <stdio.h>
10563#include <sys/types.h>
10564main()
10565{
10566 FILE *f=fopen("conftestval", "w");
10567 if (!f) exit(1);
10568 fprintf(f, "%d\n", sizeof(void *));
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_void_p=`cat conftestval`
10575else
10576 echo "configure: failed program was:" >&5
10577 cat conftest.$ac_ext >&5
10578 rm -fr conftest*
10579 ac_cv_sizeof_void_p=0
10580fi
10581rm -fr conftest*
10582fi
10583
10584fi
10585echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10586cat >> confdefs.h <<EOF
10587#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10588EOF
10589
10590
10591echo $ac_n "checking size of int""... $ac_c" 1>&6
10592echo "configure:10593: checking size of int" >&5
10593if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10594 echo $ac_n "(cached) $ac_c" 1>&6
10595else
10596 if test "$cross_compiling" = yes; then
10597 ac_cv_sizeof_int=4
10598else
10599 cat > conftest.$ac_ext <<EOF
10600#line 10601 "configure"
10601#include "confdefs.h"
10602#include <stdio.h>
10603#include <sys/types.h>
10604main()
10605{
10606 FILE *f=fopen("conftestval", "w");
10607 if (!f) exit(1);
10608 fprintf(f, "%d\n", sizeof(int));
10609 exit(0);
10610}
10611EOF
10612if { (eval echo configure:10613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10613then
10614 ac_cv_sizeof_int=`cat conftestval`
10615else
10616 echo "configure: failed program was:" >&5
10617 cat conftest.$ac_ext >&5
10618 rm -fr conftest*
10619 ac_cv_sizeof_int=0
10620fi
10621rm -fr conftest*
10622fi
10623
10624fi
10625echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10626cat >> confdefs.h <<EOF
10627#define SIZEOF_INT $ac_cv_sizeof_int
10628EOF
10629
10630
10631echo $ac_n "checking size of long""... $ac_c" 1>&6
10632echo "configure:10633: checking size of long" >&5
10633if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10634 echo $ac_n "(cached) $ac_c" 1>&6
10635else
10636 if test "$cross_compiling" = yes; then
10637 ac_cv_sizeof_long=4
10638else
10639 cat > conftest.$ac_ext <<EOF
10640#line 10641 "configure"
10641#include "confdefs.h"
10642#include <stdio.h>
10643#include <sys/types.h>
10644main()
10645{
10646 FILE *f=fopen("conftestval", "w");
10647 if (!f) exit(1);
10648 fprintf(f, "%d\n", sizeof(long));
10649 exit(0);
10650}
10651EOF
10652if { (eval echo configure:10653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10653then
10654 ac_cv_sizeof_long=`cat conftestval`
10655else
10656 echo "configure: failed program was:" >&5
10657 cat conftest.$ac_ext >&5
10658 rm -fr conftest*
10659 ac_cv_sizeof_long=0
10660fi
10661rm -fr conftest*
10662fi
10663
10664fi
10665echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10666cat >> confdefs.h <<EOF
10667#define SIZEOF_LONG $ac_cv_sizeof_long
10668EOF
10669
10670
10671
10672case "${host}" in
10673 arm-*-linux* )
10674 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10675echo "configure:10676: checking size of long long" >&5
10676if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10677 echo $ac_n "(cached) $ac_c" 1>&6
10678else
10679 if test "$cross_compiling" = yes; then
10680 ac_cv_sizeof_long_long=8
10681else
10682 cat > conftest.$ac_ext <<EOF
10683#line 10684 "configure"
10684#include "confdefs.h"
10685#include <stdio.h>
10686#include <sys/types.h>
10687main()
10688{
10689 FILE *f=fopen("conftestval", "w");
10690 if (!f) exit(1);
10691 fprintf(f, "%d\n", sizeof(long long));
10692 exit(0);
10693}
10694EOF
10695if { (eval echo configure:10696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10696then
10697 ac_cv_sizeof_long_long=`cat conftestval`
10698else
10699 echo "configure: failed program was:" >&5
10700 cat conftest.$ac_ext >&5
10701 rm -fr conftest*
10702 ac_cv_sizeof_long_long=0
10703fi
10704rm -fr conftest*
10705fi
10706
10707fi
10708echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10709cat >> confdefs.h <<EOF
10710#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10711EOF
10712
10713
10714 ;;
10715 *-hp-hpux* )
10716 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10717echo "configure:10718: checking size of long long" >&5
10718if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10719 echo $ac_n "(cached) $ac_c" 1>&6
10720else
10721 if test "$cross_compiling" = yes; then
10722 ac_cv_sizeof_long_long=0
10723else
10724 cat > conftest.$ac_ext <<EOF
10725#line 10726 "configure"
10726#include "confdefs.h"
10727#include <stdio.h>
10728#include <sys/types.h>
10729main()
10730{
10731 FILE *f=fopen("conftestval", "w");
10732 if (!f) exit(1);
10733 fprintf(f, "%d\n", sizeof(long long));
10734 exit(0);
10735}
10736EOF
10737if { (eval echo configure:10738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10738then
10739 ac_cv_sizeof_long_long=`cat conftestval`
10740else
10741 echo "configure: failed program was:" >&5
10742 cat conftest.$ac_ext >&5
10743 rm -fr conftest*
10744 ac_cv_sizeof_long_long=0
10745fi
10746rm -fr conftest*
10747fi
10748
10749fi
10750echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10751cat >> confdefs.h <<EOF
10752#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10753EOF
10754
10755
10756 if test "$ac_cv_sizeof_long_long" != "0"; then
10757 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
10758 fi
10759 ;;
10760 * )
10761 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10762echo "configure:10763: checking size of long long" >&5
10763if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10764 echo $ac_n "(cached) $ac_c" 1>&6
10765else
10766 if test "$cross_compiling" = yes; then
10767 ac_cv_sizeof_long_long=0
10768else
10769 cat > conftest.$ac_ext <<EOF
10770#line 10771 "configure"
10771#include "confdefs.h"
10772#include <stdio.h>
10773#include <sys/types.h>
10774main()
10775{
10776 FILE *f=fopen("conftestval", "w");
10777 if (!f) exit(1);
10778 fprintf(f, "%d\n", sizeof(long long));
10779 exit(0);
10780}
10781EOF
10782if { (eval echo configure:10783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10783then
10784 ac_cv_sizeof_long_long=`cat conftestval`
10785else
10786 echo "configure: failed program was:" >&5
10787 cat conftest.$ac_ext >&5
10788 rm -fr conftest*
10789 ac_cv_sizeof_long_long=0
10790fi
10791rm -fr conftest*
10792fi
10793
10794fi
10795echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10796cat >> confdefs.h <<EOF
10797#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10798EOF
10799
10800
10801esac
10802
10803echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10804echo "configure:10805: checking size of wchar_t" >&5
10805if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10806 echo $ac_n "(cached) $ac_c" 1>&6
10807else
10808
10809 if test "$cross_compiling" = yes; then
10810
10811 case "${host}" in
10812 *-pc-msdosdjgpp )
10813 wx_cv_sizeof_wchar_t=0
10814 ;;
10815 * )
10816 wx_cv_sizeof_wchar_t=4
10817 ;;
10818 esac
10819
10820
10821else
10822 cat > conftest.$ac_ext <<EOF
10823#line 10824 "configure"
10824#include "confdefs.h"
10825
10826 /* DJGPP only has fake wchar_t: */
10827 #ifdef __DJGPP__
10828 # error "fake wchar_t"
10829 #endif
10830 #ifdef HAVE_WCHAR_H
10831 # ifdef __CYGWIN__
10832 # include <stddef.h>
10833 # endif
10834 # include <wchar.h>
10835 #endif
10836 #ifdef HAVE_STDLIB_H
10837 # include <stdlib.h>
10838 #endif
10839 #include <stdio.h>
10840 int main()
10841 {
10842 FILE *f=fopen("conftestval", "w");
10843 if (!f) exit(1);
10844 fprintf(f, "%i", sizeof(wchar_t));
10845 exit(0);
10846 }
10847
10848EOF
10849if { (eval echo configure:10850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10850then
10851 wx_cv_sizeof_wchar_t=`cat conftestval`
10852else
10853 echo "configure: failed program was:" >&5
10854 cat conftest.$ac_ext >&5
10855 rm -fr conftest*
10856 wx_cv_sizeof_wchar_t=0
10857fi
10858rm -fr conftest*
10859fi
10860
10861
10862fi
10863
10864echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10865
10866cat >> confdefs.h <<EOF
10867#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10868EOF
10869
10870
10871# Check whether --enable-largefile or --disable-largefile was given.
10872if test "${enable_largefile+set}" = set; then
10873 enableval="$enable_largefile"
10874 :
10875fi
10876
10877if test "$enable_largefile" != no; then
10878 wx_largefile=no
10879
10880 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10881echo "configure:10882: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10882if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10883 echo $ac_n "(cached) $ac_c" 1>&6
10884else
10885
10886 cat > conftest.$ac_ext <<EOF
10887#line 10888 "configure"
10888#include "confdefs.h"
10889#define _FILE_OFFSET_BITS 64
10890 #include <sys/types.h>
10891int main() {
10892typedef struct {
10893 unsigned int field: sizeof(off_t) == 8;
10894} wxlf;
10895
10896; return 0; }
10897EOF
10898if { (eval echo configure:10899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10899 rm -rf conftest*
10900 ac_cv_sys_file_offset_bits=64
10901else
10902 echo "configure: failed program was:" >&5
10903 cat conftest.$ac_ext >&5
10904 rm -rf conftest*
10905 ac_cv_sys_file_offset_bits=no
10906fi
10907rm -f conftest*
10908
10909
10910fi
10911
10912echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10913
10914 if test "$ac_cv_sys_file_offset_bits" != no; then
10915 wx_largefile=yes
10916 cat >> confdefs.h <<EOF
10917#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10918EOF
10919
10920 fi
10921
10922 if test "x$wx_largefile" != "xyes"; then
10923
10924 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10925echo "configure:10926: checking for _LARGE_FILES value needed for large files" >&5
10926if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10927 echo $ac_n "(cached) $ac_c" 1>&6
10928else
10929
10930 cat > conftest.$ac_ext <<EOF
10931#line 10932 "configure"
10932#include "confdefs.h"
10933#define _LARGE_FILES 1
10934 #include <sys/types.h>
10935int main() {
10936typedef struct {
10937 unsigned int field: sizeof(off_t) == 8;
10938} wxlf;
10939
10940; return 0; }
10941EOF
10942if { (eval echo configure:10943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10943 rm -rf conftest*
10944 ac_cv_sys_large_files=1
10945else
10946 echo "configure: failed program was:" >&5
10947 cat conftest.$ac_ext >&5
10948 rm -rf conftest*
10949 ac_cv_sys_large_files=no
10950fi
10951rm -f conftest*
10952
10953
10954fi
10955
10956echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10957
10958 if test "$ac_cv_sys_large_files" != no; then
10959 wx_largefile=yes
10960 cat >> confdefs.h <<EOF
10961#define _LARGE_FILES $ac_cv_sys_large_files
10962EOF
10963
10964 fi
10965
10966 fi
10967
10968 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10969echo "configure:10970: checking if large file support is available" >&5
10970 if test "x$wx_largefile" = "xyes"; then
10971 cat >> confdefs.h <<\EOF
10972#define HAVE_LARGEFILE_SUPPORT 1
10973EOF
10974
10975 fi
10976 echo "$ac_t""$wx_largefile" 1>&6
10977fi
10978
10979
10980if test "x$wx_largefile" = "xyes"; then
10981 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
10982 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
10983 else
10984 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
10985 fi
10986 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
10987fi
10988
10989echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10990echo "configure:10991: checking whether byte ordering is bigendian" >&5
10991if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10992 echo $ac_n "(cached) $ac_c" 1>&6
10993else
10994 ac_cv_c_bigendian=unknown
10995# See if sys/param.h defines the BYTE_ORDER macro.
10996cat > conftest.$ac_ext <<EOF
10997#line 10998 "configure"
10998#include "confdefs.h"
10999#include <sys/types.h>
11000#include <sys/param.h>
11001int main() {
11002
11003#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11004 bogus endian macros
11005#endif
11006; return 0; }
11007EOF
11008if { (eval echo configure:11009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11009 rm -rf conftest*
11010 # It does; now see whether it defined to BIG_ENDIAN or not.
11011cat > conftest.$ac_ext <<EOF
11012#line 11013 "configure"
11013#include "confdefs.h"
11014#include <sys/types.h>
11015#include <sys/param.h>
11016int main() {
11017
11018#if BYTE_ORDER != BIG_ENDIAN
11019 not big endian
11020#endif
11021; return 0; }
11022EOF
11023if { (eval echo configure:11024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11024 rm -rf conftest*
11025 ac_cv_c_bigendian=yes
11026else
11027 echo "configure: failed program was:" >&5
11028 cat conftest.$ac_ext >&5
11029 rm -rf conftest*
11030 ac_cv_c_bigendian=no
11031fi
11032rm -f conftest*
11033else
11034 echo "configure: failed program was:" >&5
11035 cat conftest.$ac_ext >&5
11036fi
11037rm -f conftest*
11038if test $ac_cv_c_bigendian = unknown; then
11039if test "$cross_compiling" = yes; then
11040 ac_cv_c_bigendian=unknown
11041else
11042 cat > conftest.$ac_ext <<EOF
11043#line 11044 "configure"
11044#include "confdefs.h"
11045main () {
11046 /* Are we little or big endian? From Harbison&Steele. */
11047 union
11048 {
11049 long l;
11050 char c[sizeof (long)];
11051 } u;
11052 u.l = 1;
11053 exit (u.c[sizeof (long) - 1] == 1);
11054}
11055EOF
11056if { (eval echo configure:11057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11057then
11058 ac_cv_c_bigendian=no
11059else
11060 echo "configure: failed program was:" >&5
11061 cat conftest.$ac_ext >&5
11062 rm -fr conftest*
11063 ac_cv_c_bigendian=yes
11064fi
11065rm -fr conftest*
11066fi
11067
11068fi
11069fi
11070
11071echo "$ac_t""$ac_cv_c_bigendian" 1>&6
11072if test $ac_cv_c_bigendian = unknown; then
11073 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
11074fi
11075if test $ac_cv_c_bigendian = yes; then
11076 cat >> confdefs.h <<\EOF
11077#define WORDS_BIGENDIAN 1
11078EOF
11079
11080fi
11081
11082
11083echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
11084echo "configure:11085: checking how to run the C++ preprocessor" >&5
11085if test -z "$CXXCPP"; then
11086if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
11087 echo $ac_n "(cached) $ac_c" 1>&6
11088else
11089 ac_ext=C
11090# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11091ac_cpp='$CXXCPP $CPPFLAGS'
11092ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11093ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11094cross_compiling=$ac_cv_prog_cxx_cross
11095 CXXCPP="${CXX-g++} -E"
11096 cat > conftest.$ac_ext <<EOF
11097#line 11098 "configure"
11098#include "confdefs.h"
11099#include <stdlib.h>
11100EOF
11101ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11102{ (eval echo configure:11103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11103ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11104if test -z "$ac_err"; then
11105 :
11106else
11107 echo "$ac_err" >&5
11108 echo "configure: failed program was:" >&5
11109 cat conftest.$ac_ext >&5
11110 rm -rf conftest*
11111 CXXCPP=/lib/cpp
11112fi
11113rm -f conftest*
11114 ac_cv_prog_CXXCPP="$CXXCPP"
11115ac_ext=C
11116# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11117ac_cpp='$CXXCPP $CPPFLAGS'
11118ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11119ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11120cross_compiling=$ac_cv_prog_cxx_cross
11121fi
11122fi
11123CXXCPP="$ac_cv_prog_CXXCPP"
11124echo "$ac_t""$CXXCPP" 1>&6
11125
11126
11127 if test "$cross_compiling" = "yes"; then
11128 cat >> confdefs.h <<\EOF
11129#define wxUSE_IOSTREAMH 1
11130EOF
11131
11132 else
11133
11134 ac_ext=C
11135# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11136ac_cpp='$CXXCPP $CPPFLAGS'
11137ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11138ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11139cross_compiling=$ac_cv_prog_cxx_cross
11140
11141
11142 for ac_hdr in iostream
11143do
11144ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11145echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11146echo "configure:11147: checking for $ac_hdr" >&5
11147if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11148 echo $ac_n "(cached) $ac_c" 1>&6
11149else
11150 cat > conftest.$ac_ext <<EOF
11151#line 11152 "configure"
11152#include "confdefs.h"
11153#include <$ac_hdr>
11154EOF
11155ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11156{ (eval echo configure:11157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11157ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11158if test -z "$ac_err"; then
11159 rm -rf conftest*
11160 eval "ac_cv_header_$ac_safe=yes"
11161else
11162 echo "$ac_err" >&5
11163 echo "configure: failed program was:" >&5
11164 cat conftest.$ac_ext >&5
11165 rm -rf conftest*
11166 eval "ac_cv_header_$ac_safe=no"
11167fi
11168rm -f conftest*
11169fi
11170if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11171 echo "$ac_t""yes" 1>&6
11172 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11173 cat >> confdefs.h <<EOF
11174#define $ac_tr_hdr 1
11175EOF
11176
11177else
11178 echo "$ac_t""no" 1>&6
11179fi
11180done
11181
11182
11183 if test "$ac_cv_header_iostream" = "yes" ; then
11184 :
11185 else
11186 cat >> confdefs.h <<\EOF
11187#define wxUSE_IOSTREAMH 1
11188EOF
11189
11190 fi
11191
11192 ac_ext=c
11193# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11194ac_cpp='$CPP $CPPFLAGS'
11195ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11196ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11197cross_compiling=$ac_cv_prog_cc_cross
11198
11199 fi
11200
11201
11202
11203 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
11204echo "configure:11205: checking if C++ compiler supports bool" >&5
11205if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11206 echo $ac_n "(cached) $ac_c" 1>&6
11207else
11208
11209
11210 ac_ext=C
11211# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11212ac_cpp='$CXXCPP $CPPFLAGS'
11213ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11214ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11215cross_compiling=$ac_cv_prog_cxx_cross
11216
11217
11218 cat > conftest.$ac_ext <<EOF
11219#line 11220 "configure"
11220#include "confdefs.h"
11221
11222
11223int main() {
11224
11225 bool b = true;
11226
11227 return 0;
11228
11229; return 0; }
11230EOF
11231if { (eval echo configure:11232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11232 rm -rf conftest*
11233
11234 wx_cv_cpp_bool=yes
11235
11236else
11237 echo "configure: failed program was:" >&5
11238 cat conftest.$ac_ext >&5
11239 rm -rf conftest*
11240
11241 wx_cv_cpp_bool=no
11242
11243
11244fi
11245rm -f conftest*
11246
11247 ac_ext=c
11248# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11249ac_cpp='$CPP $CPPFLAGS'
11250ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11251ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11252cross_compiling=$ac_cv_prog_cc_cross
11253
11254
11255fi
11256
11257echo "$ac_t""$wx_cv_cpp_bool" 1>&6
11258
11259 if test "$wx_cv_cpp_bool" = "yes"; then
11260 cat >> confdefs.h <<\EOF
11261#define HAVE_BOOL 1
11262EOF
11263
11264 fi
11265
11266
11267
11268 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
11269echo "configure:11270: checking if C++ compiler supports the explicit keyword" >&5
11270if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
11271 echo $ac_n "(cached) $ac_c" 1>&6
11272else
11273
11274
11275 ac_ext=C
11276# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11277ac_cpp='$CXXCPP $CPPFLAGS'
11278ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11279ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11280cross_compiling=$ac_cv_prog_cxx_cross
11281
11282
11283 cat > conftest.$ac_ext <<EOF
11284#line 11285 "configure"
11285#include "confdefs.h"
11286
11287 class Foo { public: explicit Foo(int) {} };
11288
11289int main() {
11290
11291 return 0;
11292
11293; return 0; }
11294EOF
11295if { (eval echo configure:11296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11296 rm -rf conftest*
11297
11298 cat > conftest.$ac_ext <<EOF
11299#line 11300 "configure"
11300#include "confdefs.h"
11301
11302 class Foo { public: explicit Foo(int) {} };
11303 static void TakeFoo(const Foo& foo) { }
11304
11305int main() {
11306
11307 TakeFoo(17);
11308 return 0;
11309
11310; return 0; }
11311EOF
11312if { (eval echo configure:11313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11313 rm -rf conftest*
11314 wx_cv_explicit=no
11315else
11316 echo "configure: failed program was:" >&5
11317 cat conftest.$ac_ext >&5
11318 rm -rf conftest*
11319 wx_cv_explicit=yes
11320
11321fi
11322rm -f conftest*
11323
11324else
11325 echo "configure: failed program was:" >&5
11326 cat conftest.$ac_ext >&5
11327 rm -rf conftest*
11328 wx_cv_explicit=no
11329
11330fi
11331rm -f conftest*
11332
11333 ac_ext=c
11334# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11335ac_cpp='$CPP $CPPFLAGS'
11336ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11337ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11338cross_compiling=$ac_cv_prog_cc_cross
11339
11340
11341fi
11342
11343echo "$ac_t""$wx_cv_explicit" 1>&6
11344
11345 if test "$wx_cv_explicit" = "yes"; then
11346 cat >> confdefs.h <<\EOF
11347#define HAVE_EXPLICIT 1
11348EOF
11349
11350 fi
11351
11352
11353
11354SEARCH_INCLUDE="\
11355 /usr/local/include \
11356 \
11357 /usr/Motif-1.2/include \
11358 /usr/Motif-2.1/include \
11359 \
11360 /usr/include/Motif1.2 \
11361 /opt/xpm/include/X11 \
11362 /opt/GBxpm/include/ \
11363 /opt/GBxpm/X11/include/ \
11364 \
11365 /usr/Motif1.2/include \
11366 /usr/dt/include \
11367 /usr/openwin/include \
11368 \
11369 /usr/include/Xm \
11370 \
11371 /usr/X11R6/include \
11372 /usr/X11R6.4/include \
11373 /usr/X11R5/include \
11374 /usr/X11R4/include \
11375 \
11376 /usr/include/X11R6 \
11377 /usr/include/X11R5 \
11378 /usr/include/X11R4 \
11379 \
11380 /usr/local/X11R6/include \
11381 /usr/local/X11R5/include \
11382 /usr/local/X11R4/include \
11383 \
11384 /usr/local/include/X11R6 \
11385 /usr/local/include/X11R5 \
11386 /usr/local/include/X11R4 \
11387 \
11388 /usr/X11/include \
11389 /usr/include/X11 \
11390 /usr/local/X11/include \
11391 /usr/local/include/X11 \
11392 \
11393 /usr/X386/include \
11394 /usr/x386/include \
11395 /usr/XFree86/include/X11 \
11396 \
11397 X:/XFree86/include \
11398 X:/XFree86/include/X11 \
11399 \
11400 /usr/include/gtk \
11401 /usr/local/include/gtk \
11402 /usr/include/glib \
11403 /usr/local/include/glib \
11404 \
11405 /usr/include/qt \
11406 /usr/local/include/qt \
11407 \
11408 /usr/include/windows \
11409 /usr/include/wine \
11410 /usr/local/include/wine \
11411 \
11412 /usr/unsupported/include \
11413 /usr/athena/include \
11414 /usr/local/x11r5/include \
11415 /usr/lpp/Xamples/include \
11416 \
11417 /usr/openwin/share/include"
11418
11419SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
11420
11421
11422cat > confcache <<\EOF
11423# This file is a shell script that caches the results of configure
11424# tests run on this system so they can be shared between configure
11425# scripts and configure runs. It is not useful on other systems.
11426# If it contains results you don't want to keep, you may remove or edit it.
11427#
11428# By default, configure uses ./config.cache as the cache file,
11429# creating it if it does not exist already. You can give configure
11430# the --cache-file=FILE option to use a different cache file; that is
11431# what configure does when it calls configure scripts in
11432# subdirectories, so they share the cache.
11433# Giving --cache-file=/dev/null disables caching, for debugging configure.
11434# config.status only pays attention to the cache file if you give it the
11435# --recheck option to rerun configure.
11436#
11437EOF
11438# The following way of writing the cache mishandles newlines in values,
11439# but we know of no workaround that is simple, portable, and efficient.
11440# So, don't put newlines in cache variables' values.
11441# Ultrix sh set writes to stderr and can't be redirected directly,
11442# and sets the high bit in the cache file unless we assign to the vars.
11443(set) 2>&1 |
11444 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11445 *ac_space=\ *)
11446 # `set' does not quote correctly, so add quotes (double-quote substitution
11447 # turns \\\\ into \\, and sed turns \\ into \).
11448 sed -n \
11449 -e "s/'/'\\\\''/g" \
11450 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11451 ;;
11452 *)
11453 # `set' quotes correctly as required by POSIX, so do not add quotes.
11454 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11455 ;;
11456 esac >> confcache
11457if cmp -s $cache_file confcache; then
11458 :
11459else
11460 if test -w $cache_file; then
11461 echo "updating cache $cache_file"
11462 cat confcache > $cache_file
11463 else
11464 echo "not updating unwritable cache $cache_file"
11465 fi
11466fi
11467rm -f confcache
11468
11469
11470if test "$USE_LINUX" = 1; then
11471 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
11472echo "configure:11473: checking for glibc 2.1 or later" >&5
11473if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
11474 echo $ac_n "(cached) $ac_c" 1>&6
11475else
11476
11477 cat > conftest.$ac_ext <<EOF
11478#line 11479 "configure"
11479#include "confdefs.h"
11480#include <features.h>
11481int main() {
11482
11483 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
11484 #error not glibc2.1
11485 #endif
11486
11487; return 0; }
11488EOF
11489if { (eval echo configure:11490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11490 rm -rf conftest*
11491
11492 wx_cv_lib_glibc21=yes
11493
11494else
11495 echo "configure: failed program was:" >&5
11496 cat conftest.$ac_ext >&5
11497 rm -rf conftest*
11498
11499 wx_cv_lib_glibc21=no
11500
11501
11502fi
11503rm -f conftest*
11504
11505fi
11506
11507echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11508 if test "$wx_cv_lib_glibc21" = "yes"; then
11509 cat >> confdefs.h <<\EOF
11510#define wxHAVE_GLIBC2 1
11511EOF
11512
11513 fi
11514fi
11515
11516if test "x$wx_cv_lib_glibc21" = "xyes"; then
11517 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
11518 cat >> confdefs.h <<\EOF
11519#define _GNU_SOURCE 1
11520EOF
11521
11522 fi
11523fi
11524
11525
11526
11527REGEX_INCLUDE=
11528if test "$wxUSE_REGEX" != "no"; then
11529 cat >> confdefs.h <<\EOF
11530#define wxUSE_REGEX 1
11531EOF
11532
11533
11534 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11535 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11536echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11537echo "configure:11538: checking for regex.h" >&5
11538if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11539 echo $ac_n "(cached) $ac_c" 1>&6
11540else
11541 cat > conftest.$ac_ext <<EOF
11542#line 11543 "configure"
11543#include "confdefs.h"
11544#include <regex.h>
11545EOF
11546ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11547{ (eval echo configure:11548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11548ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11549if test -z "$ac_err"; then
11550 rm -rf conftest*
11551 eval "ac_cv_header_$ac_safe=yes"
11552else
11553 echo "$ac_err" >&5
11554 echo "configure: failed program was:" >&5
11555 cat conftest.$ac_ext >&5
11556 rm -rf conftest*
11557 eval "ac_cv_header_$ac_safe=no"
11558fi
11559rm -f conftest*
11560fi
11561if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11562 echo "$ac_t""yes" 1>&6
11563 for ac_func in regcomp
11564do
11565echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11566echo "configure:11567: checking for $ac_func" >&5
11567if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11568 echo $ac_n "(cached) $ac_c" 1>&6
11569else
11570 cat > conftest.$ac_ext <<EOF
11571#line 11572 "configure"
11572#include "confdefs.h"
11573/* System header to define __stub macros and hopefully few prototypes,
11574 which can conflict with char $ac_func(); below. */
11575#include <assert.h>
11576/* Override any gcc2 internal prototype to avoid an error. */
11577/* We use char because int might match the return type of a gcc2
11578 builtin and then its argument prototype would still apply. */
11579char $ac_func();
11580
11581int main() {
11582
11583/* The GNU C library defines this for functions which it implements
11584 to always fail with ENOSYS. Some functions are actually named
11585 something starting with __ and the normal name is an alias. */
11586#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11587choke me
11588#else
11589$ac_func();
11590#endif
11591
11592; return 0; }
11593EOF
11594if { (eval echo configure:11595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11595 rm -rf conftest*
11596 eval "ac_cv_func_$ac_func=yes"
11597else
11598 echo "configure: failed program was:" >&5
11599 cat conftest.$ac_ext >&5
11600 rm -rf conftest*
11601 eval "ac_cv_func_$ac_func=no"
11602fi
11603rm -f conftest*
11604fi
11605
11606if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11607 echo "$ac_t""yes" 1>&6
11608 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11609 cat >> confdefs.h <<EOF
11610#define $ac_tr_func 1
11611EOF
11612
11613else
11614 echo "$ac_t""no" 1>&6
11615fi
11616done
11617
11618else
11619 echo "$ac_t""no" 1>&6
11620fi
11621
11622
11623 if test "x$ac_cv_func_regcomp" != "xyes"; then
11624 if test "$wxUSE_REGEX" = "sys" ; then
11625 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11626 else
11627 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11628 wxUSE_REGEX=builtin
11629 fi
11630 else
11631 wxUSE_REGEX=sys
11632 fi
11633 fi
11634
11635 if test "$wxUSE_REGEX" = "builtin" ; then
11636 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11637 fi
11638fi
11639
11640
11641ZLIB_INCLUDE=
11642ZLIB_LINK=
11643if test "$wxUSE_ZLIB" != "no" ; then
11644 cat >> confdefs.h <<\EOF
11645#define wxUSE_ZLIB 1
11646EOF
11647
11648
11649 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11650 if test "$USE_DARWIN" = 1; then
11651 system_zlib_h_ok="yes"
11652 else
11653 echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
11654echo "configure:11655: checking for zlib.h >= 1.1.4" >&5
11655if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then
11656 echo $ac_n "(cached) $ac_c" 1>&6
11657else
11658 if test "$cross_compiling" = yes; then
11659 unset ac_cv_header_zlib_h
11660
11661else
11662 cat > conftest.$ac_ext <<EOF
11663#line 11664 "configure"
11664#include "confdefs.h"
11665
11666 #include <zlib.h>
11667 #include <stdio.h>
11668
11669
11670 int main()
11671 {
11672 FILE *f=fopen("conftestval", "w");
11673 if (!f) exit(1);
11674 fprintf(f, "%s",
11675 ZLIB_VERSION[0] == '1' &&
11676 (ZLIB_VERSION[2] > '1' ||
11677 (ZLIB_VERSION[2] == '1' &&
11678 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
11679 exit(0);
11680 }
11681
11682
11683EOF
11684if { (eval echo configure:11685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11685then
11686 ac_cv_header_zlib_h=`cat conftestval`
11687else
11688 echo "configure: failed program was:" >&5
11689 cat conftest.$ac_ext >&5
11690 rm -fr conftest*
11691 ac_cv_header_zlib_h=no
11692fi
11693rm -fr conftest*
11694fi
11695
11696
11697fi
11698
11699echo "$ac_t""$ac_cv_header_zlib_h" 1>&6
11700 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11701echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11702echo "configure:11703: checking for zlib.h" >&5
11703if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11704 echo $ac_n "(cached) $ac_c" 1>&6
11705else
11706 cat > conftest.$ac_ext <<EOF
11707#line 11708 "configure"
11708#include "confdefs.h"
11709#include <zlib.h>
11710EOF
11711ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11712{ (eval echo configure:11713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11713ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11714if test -z "$ac_err"; then
11715 rm -rf conftest*
11716 eval "ac_cv_header_$ac_safe=yes"
11717else
11718 echo "$ac_err" >&5
11719 echo "configure: failed program was:" >&5
11720 cat conftest.$ac_ext >&5
11721 rm -rf conftest*
11722 eval "ac_cv_header_$ac_safe=no"
11723fi
11724rm -f conftest*
11725fi
11726if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11727 echo "$ac_t""yes" 1>&6
11728 :
11729else
11730 echo "$ac_t""no" 1>&6
11731fi
11732
11733
11734 system_zlib_h_ok=$ac_cv_header_zlib_h
11735 fi
11736
11737 if test "$system_zlib_h_ok" = "yes"; then
11738 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11739echo "configure:11740: checking for deflate in -lz" >&5
11740ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11741if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11742 echo $ac_n "(cached) $ac_c" 1>&6
11743else
11744 ac_save_LIBS="$LIBS"
11745LIBS="-lz $LIBS"
11746cat > conftest.$ac_ext <<EOF
11747#line 11748 "configure"
11748#include "confdefs.h"
11749/* Override any gcc2 internal prototype to avoid an error. */
11750/* We use char because int might match the return type of a gcc2
11751 builtin and then its argument prototype would still apply. */
11752char deflate();
11753
11754int main() {
11755deflate()
11756; return 0; }
11757EOF
11758if { (eval echo configure:11759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11759 rm -rf conftest*
11760 eval "ac_cv_lib_$ac_lib_var=yes"
11761else
11762 echo "configure: failed program was:" >&5
11763 cat conftest.$ac_ext >&5
11764 rm -rf conftest*
11765 eval "ac_cv_lib_$ac_lib_var=no"
11766fi
11767rm -f conftest*
11768LIBS="$ac_save_LIBS"
11769
11770fi
11771if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11772 echo "$ac_t""yes" 1>&6
11773 ZLIB_LINK=" -lz"
11774else
11775 echo "$ac_t""no" 1>&6
11776fi
11777
11778 fi
11779
11780 if test "x$ZLIB_LINK" = "x" ; then
11781 if test "$wxUSE_ZLIB" = "sys" ; then
11782 { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11783 else
11784 echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2
11785 wxUSE_ZLIB=builtin
11786 fi
11787 else
11788 wxUSE_ZLIB=sys
11789 fi
11790 fi
11791
11792 if test "$wxUSE_ZLIB" = "builtin" ; then
11793 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11794 fi
11795fi
11796
11797
11798PNG_INCLUDE=
11799PNG_LINK=
11800if test "$wxUSE_LIBPNG" != "no" ; then
11801 cat >> confdefs.h <<\EOF
11802#define wxUSE_LIBPNG 1
11803EOF
11804
11805
11806 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11807 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11808 wxUSE_LIBPNG=sys
11809 fi
11810
11811 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11812 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11813 wxUSE_LIBPNG=builtin
11814 fi
11815
11816 if test "$wxUSE_MGL" != 1 ; then
11817 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11818 echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6
11819echo "configure:11820: checking for png.h > 0.90" >&5
11820if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then
11821 echo $ac_n "(cached) $ac_c" 1>&6
11822else
11823 if test "$cross_compiling" = yes; then
11824 unset ac_cv_header_png_h
11825
11826else
11827 cat > conftest.$ac_ext <<EOF
11828#line 11829 "configure"
11829#include "confdefs.h"
11830
11831 #include <png.h>
11832 #include <stdio.h>
11833
11834 int main()
11835 {
11836 FILE *f=fopen("conftestval", "w");
11837 if (!f) exit(1);
11838 fprintf(f, "%s",
11839 PNG_LIBPNG_VER > 90 ? "yes" : "no");
11840 exit(0);
11841 }
11842
11843EOF
11844if { (eval echo configure:11845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11845then
11846 ac_cv_header_png_h=`cat conftestval`
11847else
11848 echo "configure: failed program was:" >&5
11849 cat conftest.$ac_ext >&5
11850 rm -fr conftest*
11851 ac_cv_header_png_h=no
11852fi
11853rm -fr conftest*
11854fi
11855
11856
11857fi
11858
11859echo "$ac_t""$ac_cv_header_png_h" 1>&6
11860 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11861echo $ac_n "checking for png.h""... $ac_c" 1>&6
11862echo "configure:11863: checking for png.h" >&5
11863if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11864 echo $ac_n "(cached) $ac_c" 1>&6
11865else
11866 cat > conftest.$ac_ext <<EOF
11867#line 11868 "configure"
11868#include "confdefs.h"
11869#include <png.h>
11870EOF
11871ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11872{ (eval echo configure:11873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11873ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11874if test -z "$ac_err"; then
11875 rm -rf conftest*
11876 eval "ac_cv_header_$ac_safe=yes"
11877else
11878 echo "$ac_err" >&5
11879 echo "configure: failed program was:" >&5
11880 cat conftest.$ac_ext >&5
11881 rm -rf conftest*
11882 eval "ac_cv_header_$ac_safe=no"
11883fi
11884rm -f conftest*
11885fi
11886if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11887 echo "$ac_t""yes" 1>&6
11888 :
11889else
11890 echo "$ac_t""no" 1>&6
11891fi
11892
11893
11894 if test "$ac_cv_header_png_h" = "yes"; then
11895 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11896echo "configure:11897: checking for png_check_sig in -lpng" >&5
11897ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11898if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11899 echo $ac_n "(cached) $ac_c" 1>&6
11900else
11901 ac_save_LIBS="$LIBS"
11902LIBS="-lpng -lz -lm $LIBS"
11903cat > conftest.$ac_ext <<EOF
11904#line 11905 "configure"
11905#include "confdefs.h"
11906/* Override any gcc2 internal prototype to avoid an error. */
11907/* We use char because int might match the return type of a gcc2
11908 builtin and then its argument prototype would still apply. */
11909char png_check_sig();
11910
11911int main() {
11912png_check_sig()
11913; return 0; }
11914EOF
11915if { (eval echo configure:11916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11916 rm -rf conftest*
11917 eval "ac_cv_lib_$ac_lib_var=yes"
11918else
11919 echo "configure: failed program was:" >&5
11920 cat conftest.$ac_ext >&5
11921 rm -rf conftest*
11922 eval "ac_cv_lib_$ac_lib_var=no"
11923fi
11924rm -f conftest*
11925LIBS="$ac_save_LIBS"
11926
11927fi
11928if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11929 echo "$ac_t""yes" 1>&6
11930 PNG_LINK=" -lpng"
11931else
11932 echo "$ac_t""no" 1>&6
11933fi
11934
11935 fi
11936
11937 if test "x$PNG_LINK" = "x" ; then
11938 if test "$wxUSE_LIBPNG" = "sys" ; then
11939 { echo "configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11940 else
11941 echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2
11942 wxUSE_LIBPNG=builtin
11943 fi
11944 else
11945 wxUSE_LIBPNG=sys
11946 fi
11947 fi
11948 fi
11949
11950 if test "$wxUSE_LIBPNG" = "builtin" ; then
11951 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11952 fi
11953
11954 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11955fi
11956
11957
11958JPEG_INCLUDE=
11959JPEG_LINK=
11960if test "$wxUSE_LIBJPEG" != "no" ; then
11961 cat >> confdefs.h <<\EOF
11962#define wxUSE_LIBJPEG 1
11963EOF
11964
11965
11966 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11967 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11968 wxUSE_LIBJPEG=sys
11969 fi
11970
11971 if test "$wxUSE_MGL" != 1 ; then
11972 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11973 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11974echo "configure:11975: checking for jpeglib.h" >&5
11975 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11976 echo $ac_n "(cached) $ac_c" 1>&6
11977else
11978 cat > conftest.$ac_ext <<EOF
11979#line 11980 "configure"
11980#include "confdefs.h"
11981
11982 #undef HAVE_STDLIB_H
11983 #include <stdio.h>
11984 #include <jpeglib.h>
11985
11986int main() {
11987
11988
11989; return 0; }
11990EOF
11991if { (eval echo configure:11992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11992 rm -rf conftest*
11993 ac_cv_header_jpeglib_h=yes
11994else
11995 echo "configure: failed program was:" >&5
11996 cat conftest.$ac_ext >&5
11997 rm -rf conftest*
11998 ac_cv_header_jpeglib_h=no
11999
12000fi
12001rm -f conftest*
12002
12003fi
12004
12005 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
12006
12007 if test "$ac_cv_header_jpeglib_h" = "yes"; then
12008 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
12009echo "configure:12010: checking for jpeg_read_header in -ljpeg" >&5
12010ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
12011if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12012 echo $ac_n "(cached) $ac_c" 1>&6
12013else
12014 ac_save_LIBS="$LIBS"
12015LIBS="-ljpeg $LIBS"
12016cat > conftest.$ac_ext <<EOF
12017#line 12018 "configure"
12018#include "confdefs.h"
12019/* Override any gcc2 internal prototype to avoid an error. */
12020/* We use char because int might match the return type of a gcc2
12021 builtin and then its argument prototype would still apply. */
12022char jpeg_read_header();
12023
12024int main() {
12025jpeg_read_header()
12026; return 0; }
12027EOF
12028if { (eval echo configure:12029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12029 rm -rf conftest*
12030 eval "ac_cv_lib_$ac_lib_var=yes"
12031else
12032 echo "configure: failed program was:" >&5
12033 cat conftest.$ac_ext >&5
12034 rm -rf conftest*
12035 eval "ac_cv_lib_$ac_lib_var=no"
12036fi
12037rm -f conftest*
12038LIBS="$ac_save_LIBS"
12039
12040fi
12041if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12042 echo "$ac_t""yes" 1>&6
12043 JPEG_LINK=" -ljpeg"
12044else
12045 echo "$ac_t""no" 1>&6
12046fi
12047
12048 fi
12049
12050 if test "x$JPEG_LINK" = "x" ; then
12051 if test "$wxUSE_LIBJPEG" = "sys" ; then
12052 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
12053 else
12054 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
12055 wxUSE_LIBJPEG=builtin
12056 fi
12057 else
12058 wxUSE_LIBJPEG=sys
12059 fi
12060 fi
12061 fi
12062
12063 if test "$wxUSE_LIBJPEG" = "builtin" ; then
12064 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
12065 fi
12066fi
12067
12068
12069TIFF_INCLUDE=
12070TIFF_LINK=
12071TIFF_PREREQ_LINKS=-lm
12072if test "$wxUSE_LIBTIFF" != "no" ; then
12073 cat >> confdefs.h <<\EOF
12074#define wxUSE_LIBTIFF 1
12075EOF
12076
12077
12078 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
12079 if test "$wxUSE_LIBJPEG" = "sys"; then
12080 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
12081 fi
12082 if test "$wxUSE_ZLIB" = "sys"; then
12083 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
12084 fi
12085 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
12086echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
12087echo "configure:12088: checking for tiffio.h" >&5
12088if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12089 echo $ac_n "(cached) $ac_c" 1>&6
12090else
12091 cat > conftest.$ac_ext <<EOF
12092#line 12093 "configure"
12093#include "confdefs.h"
12094#include <tiffio.h>
12095EOF
12096ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12097{ (eval echo configure:12098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12098ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12099if test -z "$ac_err"; then
12100 rm -rf conftest*
12101 eval "ac_cv_header_$ac_safe=yes"
12102else
12103 echo "$ac_err" >&5
12104 echo "configure: failed program was:" >&5
12105 cat conftest.$ac_ext >&5
12106 rm -rf conftest*
12107 eval "ac_cv_header_$ac_safe=no"
12108fi
12109rm -f conftest*
12110fi
12111if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12112 echo "$ac_t""yes" 1>&6
12113 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
12114echo "configure:12115: checking for TIFFError in -ltiff" >&5
12115ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
12116if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12117 echo $ac_n "(cached) $ac_c" 1>&6
12118else
12119 ac_save_LIBS="$LIBS"
12120LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
12121cat > conftest.$ac_ext <<EOF
12122#line 12123 "configure"
12123#include "confdefs.h"
12124/* Override any gcc2 internal prototype to avoid an error. */
12125/* We use char because int might match the return type of a gcc2
12126 builtin and then its argument prototype would still apply. */
12127char TIFFError();
12128
12129int main() {
12130TIFFError()
12131; return 0; }
12132EOF
12133if { (eval echo configure:12134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12134 rm -rf conftest*
12135 eval "ac_cv_lib_$ac_lib_var=yes"
12136else
12137 echo "configure: failed program was:" >&5
12138 cat conftest.$ac_ext >&5
12139 rm -rf conftest*
12140 eval "ac_cv_lib_$ac_lib_var=no"
12141fi
12142rm -f conftest*
12143LIBS="$ac_save_LIBS"
12144
12145fi
12146if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12147 echo "$ac_t""yes" 1>&6
12148 TIFF_LINK=" -ltiff"
12149else
12150 echo "$ac_t""no" 1>&6
12151fi
12152
12153
12154else
12155 echo "$ac_t""no" 1>&6
12156fi
12157
12158
12159 if test "x$TIFF_LINK" = "x" ; then
12160 if test "$wxUSE_LIBTIFF" = "sys" ; then
12161 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
12162 else
12163 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
12164 wxUSE_LIBTIFF=builtin
12165 fi
12166 else
12167 wxUSE_LIBTIFF=sys
12168 fi
12169 fi
12170
12171 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12172 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
12173 fi
12174fi
12175
12176
12177AFMINSTALL=
12178WIN32INSTALL=
12179
12180TOOLKIT=
12181TOOLKIT_INCLUDE=
12182WIDGET_SET=
12183
12184if test "$USE_WIN32" = 1 ; then
12185 for ac_hdr in w32api.h
12186do
12187ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12188echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12189echo "configure:12190: checking for $ac_hdr" >&5
12190if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12191 echo $ac_n "(cached) $ac_c" 1>&6
12192else
12193 cat > conftest.$ac_ext <<EOF
12194#line 12195 "configure"
12195#include "confdefs.h"
12196#include <$ac_hdr>
12197EOF
12198ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12199{ (eval echo configure:12200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12200ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12201if test -z "$ac_err"; then
12202 rm -rf conftest*
12203 eval "ac_cv_header_$ac_safe=yes"
12204else
12205 echo "$ac_err" >&5
12206 echo "configure: failed program was:" >&5
12207 cat conftest.$ac_ext >&5
12208 rm -rf conftest*
12209 eval "ac_cv_header_$ac_safe=no"
12210fi
12211rm -f conftest*
12212fi
12213if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12214 echo "$ac_t""yes" 1>&6
12215 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12216 cat >> confdefs.h <<EOF
12217#define $ac_tr_hdr 1
12218EOF
12219
12220else
12221 echo "$ac_t""no" 1>&6
12222fi
12223done
12224
12225 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12226echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12227echo "configure:12228: checking for windows.h" >&5
12228if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12229 echo $ac_n "(cached) $ac_c" 1>&6
12230else
12231 cat > conftest.$ac_ext <<EOF
12232#line 12233 "configure"
12233#include "confdefs.h"
12234#include <windows.h>
12235EOF
12236ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12237{ (eval echo configure:12238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12238ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12239if test -z "$ac_err"; then
12240 rm -rf conftest*
12241 eval "ac_cv_header_$ac_safe=yes"
12242else
12243 echo "$ac_err" >&5
12244 echo "configure: failed program was:" >&5
12245 cat conftest.$ac_ext >&5
12246 rm -rf conftest*
12247 eval "ac_cv_header_$ac_safe=no"
12248fi
12249rm -f conftest*
12250fi
12251if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12252 echo "$ac_t""yes" 1>&6
12253 :
12254else
12255 echo "$ac_t""no" 1>&6
12256
12257 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12258
12259fi
12260
12261
12262 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
12263echo "configure:12264: checking if w32api has good enough MSIE support" >&5
12264if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
12265 echo $ac_n "(cached) $ac_c" 1>&6
12266else
12267
12268 cat > conftest.$ac_ext <<EOF
12269#line 12270 "configure"
12270#include "confdefs.h"
12271#include <w32api.h>
12272int main() {
12273
12274 #define wxCHECK_W32API_VERSION( major, minor ) \
12275 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
12276 && ( ( __W32API_MAJOR_VERSION > (major) ) \
12277 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
12278
12279 #if !wxCHECK_W32API_VERSION(1,1)
12280 #error You need w32api 1.1 or newer
12281 #endif
12282
12283; return 0; }
12284EOF
12285if { (eval echo configure:12286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12286 rm -rf conftest*
12287
12288 wx_cv_w32api_win32_ie=yes
12289
12290else
12291 echo "configure: failed program was:" >&5
12292 cat conftest.$ac_ext >&5
12293 rm -rf conftest*
12294
12295 wx_cv_w32api_win32_ie=no
12296
12297fi
12298rm -f conftest*
12299
12300fi
12301
12302echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
12303 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
12304 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
12305 fi
12306
12307 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
12308
12309 case "${host}" in
12310 *-*-cygwin* )
12311 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
12312 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
12313 esac
12314
12315 if test "$wxUSE_ODBC" = "yes" ; then
12316 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
12317 fi
12318
12319 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
12320 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
12321
12322 WIN32INSTALL=win32install
12323fi
12324
12325if test "$USE_DARWIN" = 1; then
12326 if test "$wxUSE_PRECOMP" = "yes"; then
12327 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12328 else
12329 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
12330 fi
12331fi
12332
12333if test "$wxUSE_GUI" = "yes"; then
12334 USE_GUI=1
12335
12336 GUI_TK_LIBRARY=
12337
12338 WXGTK12=
12339 WXGTK127=
12340 WXGTK20=
12341
12342 if test "$wxUSE_MSW" = 1 ; then
12343 TOOLKIT=MSW
12344 GUIDIST=MSW_DIST
12345
12346 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
12347 fi
12348
12349 if test "$wxUSE_GTK" = 1; then
12350 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
12351echo "configure:12352: checking for GTK+ version" >&5
12352
12353 gtk_version_cached=1
12354 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
12355 echo $ac_n "(cached) $ac_c" 1>&6
12356else
12357
12358 gtk_version_cached=0
12359 echo "$ac_t""" 1>&6
12360
12361 GTK_MODULES=
12362 if test "$wxUSE_THREADS" = "yes"; then
12363 GTK_MODULES=gthread
12364 fi
12365
12366 wx_cv_lib_gtk=
12367 if test "x$wxUSE_GTK2" = "xyes"; then
12368 # Check whether --enable-gtktest or --disable-gtktest was given.
12369if test "${enable_gtktest+set}" = set; then
12370 enableval="$enable_gtktest"
12371 :
12372else
12373 enable_gtktest=yes
12374fi
12375
12376
12377 pkg_config_args=gtk+-2.0
12378 for module in . $GTK_MODULES
12379 do
12380 case "$module" in
12381 gthread)
12382 pkg_config_args="$pkg_config_args gthread-2.0"
12383 ;;
12384 esac
12385 done
12386
12387 no_gtk=""
12388
12389 # Extract the first word of "pkg-config", so it can be a program name with args.
12390set dummy pkg-config; ac_word=$2
12391echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12392echo "configure:12393: checking for $ac_word" >&5
12393if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
12394 echo $ac_n "(cached) $ac_c" 1>&6
12395else
12396 case "$PKG_CONFIG" in
12397 /*)
12398 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12399 ;;
12400 ?:/*)
12401 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
12402 ;;
12403 *)
12404 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12405 ac_dummy="$PATH"
12406 for ac_dir in $ac_dummy; do
12407 test -z "$ac_dir" && ac_dir=.
12408 if test -f $ac_dir/$ac_word; then
12409 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
12410 break
12411 fi
12412 done
12413 IFS="$ac_save_ifs"
12414 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12415 ;;
12416esac
12417fi
12418PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12419if test -n "$PKG_CONFIG"; then
12420 echo "$ac_t""$PKG_CONFIG" 1>&6
12421else
12422 echo "$ac_t""no" 1>&6
12423fi
12424
12425
12426 if test x$PKG_CONFIG != xno ; then
12427 if pkg-config --atleast-pkgconfig-version 0.7 ; then
12428 :
12429 else
12430 echo *** pkg-config too old; version 0.7 or better required.
12431 no_gtk=yes
12432 PKG_CONFIG=no
12433 fi
12434 else
12435 no_gtk=yes
12436 fi
12437
12438 min_gtk_version=2.0.0
12439 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
12440echo "configure:12441: checking for GTK+ - version >= $min_gtk_version" >&5
12441
12442 if test x$PKG_CONFIG != xno ; then
12443 ## don't try to run the test against uninstalled libtool libs
12444 if $PKG_CONFIG --uninstalled $pkg_config_args; then
12445 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
12446 enable_gtktest=no
12447 fi
12448
12449 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
12450 :
12451 else
12452 no_gtk=yes
12453 fi
12454 fi
12455
12456 if test x"$no_gtk" = x ; then
12457 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
12458 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
12459 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12460 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12461 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12462 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12463 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
12464 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12465 if test "x$enable_gtktest" = "xyes" ; then
12466 ac_save_CFLAGS="$CFLAGS"
12467 ac_save_LIBS="$LIBS"
12468 CFLAGS="$CFLAGS $GTK_CFLAGS"
12469 LIBS="$GTK_LIBS $LIBS"
12470 rm -f conf.gtktest
12471 if test "$cross_compiling" = yes; then
12472 echo $ac_n "cross compiling; assumed OK... $ac_c"
12473else
12474 cat > conftest.$ac_ext <<EOF
12475#line 12476 "configure"
12476#include "confdefs.h"
12477
12478#include <gtk/gtk.h>
12479#include <stdio.h>
12480#include <stdlib.h>
12481
12482int
12483main ()
12484{
12485 int major, minor, micro;
12486 char *tmp_version;
12487
12488 system ("touch conf.gtktest");
12489
12490 /* HP/UX 9 (%@#!) writes to sscanf strings */
12491 tmp_version = g_strdup("$min_gtk_version");
12492 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12493 printf("%s, bad version string\n", "$min_gtk_version");
12494 exit(1);
12495 }
12496
12497 if ((gtk_major_version != $gtk_config_major_version) ||
12498 (gtk_minor_version != $gtk_config_minor_version) ||
12499 (gtk_micro_version != $gtk_config_micro_version))
12500 {
12501 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12502 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12503 gtk_major_version, gtk_minor_version, gtk_micro_version);
12504 printf ("*** was found! If pkg-config was correct, then it is best\n");
12505 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12506 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12507 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12508 printf("*** required on your system.\n");
12509 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
12510 printf("*** to point to the correct configuration files\n");
12511 }
12512 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12513 (gtk_minor_version != GTK_MINOR_VERSION) ||
12514 (gtk_micro_version != GTK_MICRO_VERSION))
12515 {
12516 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12517 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12518 printf("*** library (version %d.%d.%d)\n",
12519 gtk_major_version, gtk_minor_version, gtk_micro_version);
12520 }
12521 else
12522 {
12523 if ((gtk_major_version > major) ||
12524 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12525 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12526 {
12527 return 0;
12528 }
12529 else
12530 {
12531 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12532 gtk_major_version, gtk_minor_version, gtk_micro_version);
12533 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12534 major, minor, micro);
12535 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12536 printf("***\n");
12537 printf("*** If you have already installed a sufficiently new version, this error\n");
12538 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
12539 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12540 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
12541 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
12542 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12543 printf("*** so that the correct libraries are found at run-time))\n");
12544 }
12545 }
12546 return 1;
12547}
12548
12549EOF
12550if { (eval echo configure:12551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12551then
12552 :
12553else
12554 echo "configure: failed program was:" >&5
12555 cat conftest.$ac_ext >&5
12556 rm -fr conftest*
12557 no_gtk=yes
12558fi
12559rm -fr conftest*
12560fi
12561
12562 CFLAGS="$ac_save_CFLAGS"
12563 LIBS="$ac_save_LIBS"
12564 fi
12565 fi
12566 if test "x$no_gtk" = x ; then
12567 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
12568 wx_cv_lib_gtk=2.0
12569 else
12570 echo "$ac_t""no" 1>&6
12571 if test "$PKG_CONFIG" = "no" ; then
12572 echo "*** A new enough version of pkg-config was not found."
12573 echo "*** See http://pkgconfig.sourceforge.net"
12574 else
12575 if test -f conf.gtktest ; then
12576 :
12577 else
12578 echo "*** Could not run GTK+ test program, checking why..."
12579 ac_save_CFLAGS="$CFLAGS"
12580 ac_save_LIBS="$LIBS"
12581 CFLAGS="$CFLAGS $GTK_CFLAGS"
12582 LIBS="$LIBS $GTK_LIBS"
12583 cat > conftest.$ac_ext <<EOF
12584#line 12585 "configure"
12585#include "confdefs.h"
12586
12587#include <gtk/gtk.h>
12588#include <stdio.h>
12589
12590int main() {
12591 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12592; return 0; }
12593EOF
12594if { (eval echo configure:12595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12595 rm -rf conftest*
12596 echo "*** The test program compiled, but did not run. This usually means"
12597 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
12598 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
12599 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12600 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12601 echo "*** is required on your system"
12602 echo "***"
12603 echo "*** If you have an old version installed, it is best to remove it, although"
12604 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12605else
12606 echo "configure: failed program was:" >&5
12607 cat conftest.$ac_ext >&5
12608 rm -rf conftest*
12609 echo "*** The test program failed to compile or link. See the file config.log for the"
12610 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
12611fi
12612rm -f conftest*
12613 CFLAGS="$ac_save_CFLAGS"
12614 LIBS="$ac_save_LIBS"
12615 fi
12616 fi
12617 GTK_CFLAGS=""
12618 GTK_LIBS=""
12619 :
12620 fi
12621
12622
12623 rm -f conf.gtktest
12624
12625 else
12626 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12627if test "${with_gtk_prefix+set}" = set; then
12628 withval="$with_gtk_prefix"
12629 gtk_config_prefix="$withval"
12630else
12631 gtk_config_prefix=""
12632fi
12633
12634# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12635if test "${with_gtk_exec_prefix+set}" = set; then
12636 withval="$with_gtk_exec_prefix"
12637 gtk_config_exec_prefix="$withval"
12638else
12639 gtk_config_exec_prefix=""
12640fi
12641
12642# Check whether --enable-gtktest or --disable-gtktest was given.
12643if test "${enable_gtktest+set}" = set; then
12644 enableval="$enable_gtktest"
12645 :
12646else
12647 enable_gtktest=yes
12648fi
12649
12650
12651 for module in . $GTK_MODULES
12652 do
12653 case "$module" in
12654 gthread)
12655 gtk_config_args="$gtk_config_args gthread"
12656 ;;
12657 esac
12658 done
12659
12660 if test x$gtk_config_exec_prefix != x ; then
12661 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12662 if test x${GTK_CONFIG+set} != xset ; then
12663 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12664 fi
12665 fi
12666 if test x$gtk_config_prefix != x ; then
12667 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12668 if test x${GTK_CONFIG+set} != xset ; then
12669 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12670 fi
12671 fi
12672
12673 # Extract the first word of "gtk-config", so it can be a program name with args.
12674set dummy gtk-config; ac_word=$2
12675echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12676echo "configure:12677: checking for $ac_word" >&5
12677if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12678 echo $ac_n "(cached) $ac_c" 1>&6
12679else
12680 case "$GTK_CONFIG" in
12681 /*)
12682 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12683 ;;
12684 ?:/*)
12685 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12686 ;;
12687 *)
12688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12689 ac_dummy="$PATH"
12690 for ac_dir in $ac_dummy; do
12691 test -z "$ac_dir" && ac_dir=.
12692 if test -f $ac_dir/$ac_word; then
12693 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12694 break
12695 fi
12696 done
12697 IFS="$ac_save_ifs"
12698 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12699 ;;
12700esac
12701fi
12702GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12703if test -n "$GTK_CONFIG"; then
12704 echo "$ac_t""$GTK_CONFIG" 1>&6
12705else
12706 echo "$ac_t""no" 1>&6
12707fi
12708
12709 min_gtk_version=1.2.7
12710 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12711echo "configure:12712: checking for GTK - version >= $min_gtk_version" >&5
12712 no_gtk=""
12713 if test "$GTK_CONFIG" = "no" ; then
12714 no_gtk=yes
12715 else
12716 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12717 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12718 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12719 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12720 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12721 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12722 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12723 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12724 if test "x$enable_gtktest" = "xyes" ; then
12725 ac_save_CFLAGS="$CFLAGS"
12726 ac_save_LIBS="$LIBS"
12727 CFLAGS="$CFLAGS $GTK_CFLAGS"
12728 LIBS="$GTK_LIBS $LIBS"
12729 rm -f conf.gtktest
12730 if test "$cross_compiling" = yes; then
12731 echo $ac_n "cross compiling; assumed OK... $ac_c"
12732else
12733 cat > conftest.$ac_ext <<EOF
12734#line 12735 "configure"
12735#include "confdefs.h"
12736
12737#include <gtk/gtk.h>
12738#include <stdio.h>
12739#include <stdlib.h>
12740
12741int
12742main ()
12743{
12744 int major, minor, micro;
12745 char *tmp_version;
12746
12747 system ("touch conf.gtktest");
12748
12749 /* HP/UX 9 (%@#!) writes to sscanf strings */
12750 tmp_version = g_strdup("$min_gtk_version");
12751 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12752 printf("%s, bad version string\n", "$min_gtk_version");
12753 exit(1);
12754 }
12755
12756 if ((gtk_major_version != $gtk_config_major_version) ||
12757 (gtk_minor_version != $gtk_config_minor_version) ||
12758 (gtk_micro_version != $gtk_config_micro_version))
12759 {
12760 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12761 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12762 gtk_major_version, gtk_minor_version, gtk_micro_version);
12763 printf ("*** was found! If gtk-config was correct, then it is best\n");
12764 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12765 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12766 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12767 printf("*** required on your system.\n");
12768 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12769 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12770 printf("*** before re-running configure\n");
12771 }
12772#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12773 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12774 (gtk_minor_version != GTK_MINOR_VERSION) ||
12775 (gtk_micro_version != GTK_MICRO_VERSION))
12776 {
12777 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12778 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12779 printf("*** library (version %d.%d.%d)\n",
12780 gtk_major_version, gtk_minor_version, gtk_micro_version);
12781 }
12782#endif /* defined (GTK_MAJOR_VERSION) ... */
12783 else
12784 {
12785 if ((gtk_major_version > major) ||
12786 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12787 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12788 {
12789 return 0;
12790 }
12791 else
12792 {
12793 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12794 gtk_major_version, gtk_minor_version, gtk_micro_version);
12795 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12796 major, minor, micro);
12797 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12798 printf("***\n");
12799 printf("*** If you have already installed a sufficiently new version, this error\n");
12800 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12801 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12802 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12803 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12804 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12805 printf("*** so that the correct libraries are found at run-time))\n");
12806 }
12807 }
12808 return 1;
12809}
12810
12811EOF
12812if { (eval echo configure:12813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12813then
12814 :
12815else
12816 echo "configure: failed program was:" >&5
12817 cat conftest.$ac_ext >&5
12818 rm -fr conftest*
12819 no_gtk=yes
12820fi
12821rm -fr conftest*
12822fi
12823
12824 CFLAGS="$ac_save_CFLAGS"
12825 LIBS="$ac_save_LIBS"
12826 fi
12827 fi
12828 if test "x$no_gtk" = x ; then
12829 echo "$ac_t""yes" 1>&6
12830 wx_cv_lib_gtk=1.2.7
12831 else
12832 echo "$ac_t""no" 1>&6
12833 if test "$GTK_CONFIG" = "no" ; then
12834 echo "*** The gtk-config script installed by GTK could not be found"
12835 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12836 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12837 echo "*** full path to gtk-config."
12838 else
12839 if test -f conf.gtktest ; then
12840 :
12841 else
12842 echo "*** Could not run GTK test program, checking why..."
12843 CFLAGS="$CFLAGS $GTK_CFLAGS"
12844 LIBS="$LIBS $GTK_LIBS"
12845 cat > conftest.$ac_ext <<EOF
12846#line 12847 "configure"
12847#include "confdefs.h"
12848
12849#include <gtk/gtk.h>
12850#include <stdio.h>
12851
12852int main() {
12853 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12854; return 0; }
12855EOF
12856if { (eval echo configure:12857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12857 rm -rf conftest*
12858 echo "*** The test program compiled, but did not run. This usually means"
12859 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12860 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12861 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12862 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12863 echo "*** is required on your system"
12864 echo "***"
12865 echo "*** If you have an old version installed, it is best to remove it, although"
12866 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12867 echo "***"
12868 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12869 echo "*** came with the system with the command"
12870 echo "***"
12871 echo "*** rpm --erase --nodeps gtk gtk-devel"
12872else
12873 echo "configure: failed program was:" >&5
12874 cat conftest.$ac_ext >&5
12875 rm -rf conftest*
12876 echo "*** The test program failed to compile or link. See the file config.log for the"
12877 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12878 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12879 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12880fi
12881rm -f conftest*
12882 CFLAGS="$ac_save_CFLAGS"
12883 LIBS="$ac_save_LIBS"
12884 fi
12885 fi
12886 GTK_CFLAGS=""
12887 GTK_LIBS=""
12888 :
12889 fi
12890
12891
12892 rm -f conf.gtktest
12893
12894
12895 if test -z "$wx_cv_lib_gtk"; then
12896 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12897if test "${with_gtk_prefix+set}" = set; then
12898 withval="$with_gtk_prefix"
12899 gtk_config_prefix="$withval"
12900else
12901 gtk_config_prefix=""
12902fi
12903
12904# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12905if test "${with_gtk_exec_prefix+set}" = set; then
12906 withval="$with_gtk_exec_prefix"
12907 gtk_config_exec_prefix="$withval"
12908else
12909 gtk_config_exec_prefix=""
12910fi
12911
12912# Check whether --enable-gtktest or --disable-gtktest was given.
12913if test "${enable_gtktest+set}" = set; then
12914 enableval="$enable_gtktest"
12915 :
12916else
12917 enable_gtktest=yes
12918fi
12919
12920
12921 for module in . $GTK_MODULES
12922 do
12923 case "$module" in
12924 gthread)
12925 gtk_config_args="$gtk_config_args gthread"
12926 ;;
12927 esac
12928 done
12929
12930 if test x$gtk_config_exec_prefix != x ; then
12931 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12932 if test x${GTK_CONFIG+set} != xset ; then
12933 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12934 fi
12935 fi
12936 if test x$gtk_config_prefix != x ; then
12937 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12938 if test x${GTK_CONFIG+set} != xset ; then
12939 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12940 fi
12941 fi
12942
12943 # Extract the first word of "gtk-config", so it can be a program name with args.
12944set dummy gtk-config; ac_word=$2
12945echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12946echo "configure:12947: checking for $ac_word" >&5
12947if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12948 echo $ac_n "(cached) $ac_c" 1>&6
12949else
12950 case "$GTK_CONFIG" in
12951 /*)
12952 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12953 ;;
12954 ?:/*)
12955 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12956 ;;
12957 *)
12958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12959 ac_dummy="$PATH"
12960 for ac_dir in $ac_dummy; do
12961 test -z "$ac_dir" && ac_dir=.
12962 if test -f $ac_dir/$ac_word; then
12963 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12964 break
12965 fi
12966 done
12967 IFS="$ac_save_ifs"
12968 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12969 ;;
12970esac
12971fi
12972GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12973if test -n "$GTK_CONFIG"; then
12974 echo "$ac_t""$GTK_CONFIG" 1>&6
12975else
12976 echo "$ac_t""no" 1>&6
12977fi
12978
12979 min_gtk_version=1.2.3
12980 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12981echo "configure:12982: checking for GTK - version >= $min_gtk_version" >&5
12982 no_gtk=""
12983 if test "$GTK_CONFIG" = "no" ; then
12984 no_gtk=yes
12985 else
12986 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12987 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12988 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12989 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12990 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12991 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12992 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12993 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12994 if test "x$enable_gtktest" = "xyes" ; then
12995 ac_save_CFLAGS="$CFLAGS"
12996 ac_save_LIBS="$LIBS"
12997 CFLAGS="$CFLAGS $GTK_CFLAGS"
12998 LIBS="$GTK_LIBS $LIBS"
12999 rm -f conf.gtktest
13000 if test "$cross_compiling" = yes; then
13001 echo $ac_n "cross compiling; assumed OK... $ac_c"
13002else
13003 cat > conftest.$ac_ext <<EOF
13004#line 13005 "configure"
13005#include "confdefs.h"
13006
13007#include <gtk/gtk.h>
13008#include <stdio.h>
13009#include <stdlib.h>
13010
13011int
13012main ()
13013{
13014 int major, minor, micro;
13015 char *tmp_version;
13016
13017 system ("touch conf.gtktest");
13018
13019 /* HP/UX 9 (%@#!) writes to sscanf strings */
13020 tmp_version = g_strdup("$min_gtk_version");
13021 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13022 printf("%s, bad version string\n", "$min_gtk_version");
13023 exit(1);
13024 }
13025
13026 if ((gtk_major_version != $gtk_config_major_version) ||
13027 (gtk_minor_version != $gtk_config_minor_version) ||
13028 (gtk_micro_version != $gtk_config_micro_version))
13029 {
13030 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
13031 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
13032 gtk_major_version, gtk_minor_version, gtk_micro_version);
13033 printf ("*** was found! If gtk-config was correct, then it is best\n");
13034 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
13035 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13036 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13037 printf("*** required on your system.\n");
13038 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
13039 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
13040 printf("*** before re-running configure\n");
13041 }
13042#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
13043 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
13044 (gtk_minor_version != GTK_MINOR_VERSION) ||
13045 (gtk_micro_version != GTK_MICRO_VERSION))
13046 {
13047 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
13048 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
13049 printf("*** library (version %d.%d.%d)\n",
13050 gtk_major_version, gtk_minor_version, gtk_micro_version);
13051 }
13052#endif /* defined (GTK_MAJOR_VERSION) ... */
13053 else
13054 {
13055 if ((gtk_major_version > major) ||
13056 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
13057 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
13058 {
13059 return 0;
13060 }
13061 else
13062 {
13063 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
13064 gtk_major_version, gtk_minor_version, gtk_micro_version);
13065 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
13066 major, minor, micro);
13067 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
13068 printf("***\n");
13069 printf("*** If you have already installed a sufficiently new version, this error\n");
13070 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
13071 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13072 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
13073 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
13074 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13075 printf("*** so that the correct libraries are found at run-time))\n");
13076 }
13077 }
13078 return 1;
13079}
13080
13081EOF
13082if { (eval echo configure:13083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13083then
13084 :
13085else
13086 echo "configure: failed program was:" >&5
13087 cat conftest.$ac_ext >&5
13088 rm -fr conftest*
13089 no_gtk=yes
13090fi
13091rm -fr conftest*
13092fi
13093
13094 CFLAGS="$ac_save_CFLAGS"
13095 LIBS="$ac_save_LIBS"
13096 fi
13097 fi
13098 if test "x$no_gtk" = x ; then
13099 echo "$ac_t""yes" 1>&6
13100 wx_cv_lib_gtk=1.2.3
13101 else
13102 echo "$ac_t""no" 1>&6
13103 if test "$GTK_CONFIG" = "no" ; then
13104 echo "*** The gtk-config script installed by GTK could not be found"
13105 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
13106 echo "*** your path, or set the GTK_CONFIG environment variable to the"
13107 echo "*** full path to gtk-config."
13108 else
13109 if test -f conf.gtktest ; then
13110 :
13111 else
13112 echo "*** Could not run GTK test program, checking why..."
13113 CFLAGS="$CFLAGS $GTK_CFLAGS"
13114 LIBS="$LIBS $GTK_LIBS"
13115 cat > conftest.$ac_ext <<EOF
13116#line 13117 "configure"
13117#include "confdefs.h"
13118
13119#include <gtk/gtk.h>
13120#include <stdio.h>
13121
13122int main() {
13123 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
13124; return 0; }
13125EOF
13126if { (eval echo configure:13127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13127 rm -rf conftest*
13128 echo "*** The test program compiled, but did not run. This usually means"
13129 echo "*** that the run-time linker is not finding GTK or finding the wrong"
13130 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
13131 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13132 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13133 echo "*** is required on your system"
13134 echo "***"
13135 echo "*** If you have an old version installed, it is best to remove it, although"
13136 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13137 echo "***"
13138 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
13139 echo "*** came with the system with the command"
13140 echo "***"
13141 echo "*** rpm --erase --nodeps gtk gtk-devel"
13142else
13143 echo "configure: failed program was:" >&5
13144 cat conftest.$ac_ext >&5
13145 rm -rf conftest*
13146 echo "*** The test program failed to compile or link. See the file config.log for the"
13147 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
13148 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
13149 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
13150fi
13151rm -f conftest*
13152 CFLAGS="$ac_save_CFLAGS"
13153 LIBS="$ac_save_LIBS"
13154 fi
13155 fi
13156 GTK_CFLAGS=""
13157 GTK_LIBS=""
13158 :
13159 fi
13160
13161
13162 rm -f conf.gtktest
13163
13164 fi
13165 fi
13166
13167 if test -z "$wx_cv_lib_gtk"; then
13168 wx_cv_lib_gtk=none
13169 else
13170 wx_cv_cflags_gtk=$GTK_CFLAGS
13171 wx_cv_libs_gtk=$GTK_LIBS
13172 fi
13173
13174
13175fi
13176
13177
13178 if test "$gtk_version_cached" = 1; then
13179 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
13180 fi
13181
13182 case "$wx_cv_lib_gtk" in
13183 2.0) WXGTK20=1
13184 TOOLKIT_VERSION=2
13185 ;;
13186 1.2.7) WXGTK127=1
13187 WXGTK12=1
13188 ;;
13189 1.2.3) WXGTK12=1
13190 ;;
13191 *) { echo "configure: error:
13192Please check that gtk-config is in path, the directory
13193where GTK+ libraries are installed (returned by
13194'gtk-config --libs' command) is in LD_LIBRARY_PATH or
13195equivalent variable and GTK+ is version 1.2.3 or above.
13196 " 1>&2; exit 1; }
13197 ;;
13198 esac
13199
13200 if test "$WXGTK20" = 1; then
13201 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
13202
13203 succeeded=no
13204
13205 if test -z "$PKG_CONFIG"; then
13206 # Extract the first word of "pkg-config", so it can be a program name with args.
13207set dummy pkg-config; ac_word=$2
13208echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13209echo "configure:13210: checking for $ac_word" >&5
13210if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
13211 echo $ac_n "(cached) $ac_c" 1>&6
13212else
13213 case "$PKG_CONFIG" in
13214 /*)
13215 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13216 ;;
13217 ?:/*)
13218 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
13219 ;;
13220 *)
13221 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13222 ac_dummy="$PATH"
13223 for ac_dir in $ac_dummy; do
13224 test -z "$ac_dir" && ac_dir=.
13225 if test -f $ac_dir/$ac_word; then
13226 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
13227 break
13228 fi
13229 done
13230 IFS="$ac_save_ifs"
13231 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13232 ;;
13233esac
13234fi
13235PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13236if test -n "$PKG_CONFIG"; then
13237 echo "$ac_t""$PKG_CONFIG" 1>&6
13238else
13239 echo "$ac_t""no" 1>&6
13240fi
13241
13242 fi
13243
13244 if test "$PKG_CONFIG" = "no" ; then
13245 echo "*** The pkg-config script could not be found. Make sure it is"
13246 echo "*** in your path, or set the PKG_CONFIG environment variable"
13247 echo "*** to the full path to pkg-config."
13248 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13249 else
13250 PKG_CONFIG_MIN_VERSION=0.9.0
13251 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13252 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
13253echo "configure:13254: checking for pangoft2" >&5
13254
13255 if $PKG_CONFIG --exists "pangoft2" ; then
13256 echo "$ac_t""yes" 1>&6
13257 succeeded=yes
13258
13259 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
13260echo "configure:13261: checking PANGOFT2_CFLAGS" >&5
13261 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
13262 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
13263
13264 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
13265echo "configure:13266: checking PANGOFT2_LIBS" >&5
13266 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
13267 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
13268 else
13269 PANGOFT2_CFLAGS=""
13270 PANGOFT2_LIBS=""
13271 ## If we have a custom action on failure, don't print errors, but
13272 ## do set a variable so people can do so.
13273 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
13274
13275 fi
13276
13277
13278
13279 else
13280 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13281 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13282 fi
13283 fi
13284
13285 if test $succeeded = yes; then
13286
13287 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
13288 LIBS="$LIBS $PANGOFT2_LIBS"
13289
13290 else
13291
13292 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
13293 wxUSE_PRINTING_ARCHITECTURE="no"
13294
13295
13296 fi
13297
13298 fi
13299 else
13300 if test "$wxUSE_UNICODE" = "yes"; then
13301 echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2
13302 wxUSE_UNICODE=no
13303 fi
13304 fi
13305
13306 if test "$USE_DARWIN" != 1; then
13307 for ac_func in poll
13308do
13309echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13310echo "configure:13311: checking for $ac_func" >&5
13311if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13312 echo $ac_n "(cached) $ac_c" 1>&6
13313else
13314 cat > conftest.$ac_ext <<EOF
13315#line 13316 "configure"
13316#include "confdefs.h"
13317/* System header to define __stub macros and hopefully few prototypes,
13318 which can conflict with char $ac_func(); below. */
13319#include <assert.h>
13320/* Override any gcc2 internal prototype to avoid an error. */
13321/* We use char because int might match the return type of a gcc2
13322 builtin and then its argument prototype would still apply. */
13323char $ac_func();
13324
13325int main() {
13326
13327/* The GNU C library defines this for functions which it implements
13328 to always fail with ENOSYS. Some functions are actually named
13329 something starting with __ and the normal name is an alias. */
13330#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13331choke me
13332#else
13333$ac_func();
13334#endif
13335
13336; return 0; }
13337EOF
13338if { (eval echo configure:13339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13339 rm -rf conftest*
13340 eval "ac_cv_func_$ac_func=yes"
13341else
13342 echo "configure: failed program was:" >&5
13343 cat conftest.$ac_ext >&5
13344 rm -rf conftest*
13345 eval "ac_cv_func_$ac_func=no"
13346fi
13347rm -f conftest*
13348fi
13349
13350if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13351 echo "$ac_t""yes" 1>&6
13352 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13353 cat >> confdefs.h <<EOF
13354#define $ac_tr_func 1
13355EOF
13356
13357else
13358 echo "$ac_t""no" 1>&6
13359fi
13360done
13361
13362 fi
13363
13364 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
13365 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
13366
13367 AFMINSTALL=afminstall
13368 TOOLKIT=GTK
13369 GUIDIST=GTK_DIST
13370
13371 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
13372echo "configure:13373: checking for gdk_im_open in -lgdk" >&5
13373ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
13374if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13375 echo $ac_n "(cached) $ac_c" 1>&6
13376else
13377 ac_save_LIBS="$LIBS"
13378LIBS="-lgdk $LIBS"
13379cat > conftest.$ac_ext <<EOF
13380#line 13381 "configure"
13381#include "confdefs.h"
13382/* Override any gcc2 internal prototype to avoid an error. */
13383/* We use char because int might match the return type of a gcc2
13384 builtin and then its argument prototype would still apply. */
13385char gdk_im_open();
13386
13387int main() {
13388gdk_im_open()
13389; return 0; }
13390EOF
13391if { (eval echo configure:13392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13392 rm -rf conftest*
13393 eval "ac_cv_lib_$ac_lib_var=yes"
13394else
13395 echo "configure: failed program was:" >&5
13396 cat conftest.$ac_ext >&5
13397 rm -rf conftest*
13398 eval "ac_cv_lib_$ac_lib_var=no"
13399fi
13400rm -f conftest*
13401LIBS="$ac_save_LIBS"
13402
13403fi
13404if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13405 echo "$ac_t""yes" 1>&6
13406 cat >> confdefs.h <<\EOF
13407#define HAVE_XIM 1
13408EOF
13409
13410else
13411 echo "$ac_t""no" 1>&6
13412fi
13413
13414 fi
13415
13416 if test "$wxUSE_MGL" = 1; then
13417 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
13418echo "configure:13419: checking for SciTech MGL library" >&5
13419 if test "x$MGL_ROOT" = x ; then
13420 echo "$ac_t""not found" 1>&6
13421 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
13422 else
13423 echo "$ac_t""$MGL_ROOT" 1>&6
13424 fi
13425
13426 echo $ac_n "checking for libmgl location""... $ac_c" 1>&6
13427echo "configure:13428: checking for libmgl location" >&5
13428 case "${host}" in
13429 *-*-linux* )
13430 if test "x$wxUSE_SHARED" = xyes ; then
13431 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
13432 else
13433 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
13434 fi
13435 ;;
13436 *-pc-msdosdjgpp )
13437 mgl_os_candidates="dos32/dj2"
13438 ;;
13439 *)
13440 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
13441 esac
13442
13443 mgl_lib_type=""
13444 mgl_os=""
13445
13446 for mgl_os_i in $mgl_os_candidates ; do
13447 if test "x$mgl_os" = x ; then
13448 if test "$wxUSE_DEBUG_FLAG" = yes ; then
13449 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
13450 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
13451 mgl_lib_type=debug
13452 mgl_os=$mgl_os_i
13453 fi
13454 fi
13455 if test "x$mgl_lib_type" = x ; then
13456 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
13457 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
13458 mgl_lib_type=release
13459 mgl_os=$mgl_os_i
13460 fi
13461 fi
13462 fi
13463 done
13464
13465 if test "x$mgl_os" = x ; then
13466 echo "$ac_t""not found" 1>&6
13467 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
13468 fi
13469 echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6
13470
13471 wxUSE_UNIVERSAL="yes"
13472
13473 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
13474 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
13475
13476 AFMINSTALL=afminstall
13477 TOOLKIT=MGL
13478 GUIDIST=MGL_DIST
13479 fi
13480
13481 if test "$wxUSE_MICROWIN" = 1; then
13482 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
13483echo "configure:13484: checking for MicroWindows" >&5
13484 if test "x$MICROWINDOWS" = x ; then
13485 echo "$ac_t""not found" 1>&6
13486 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
13487 else
13488 echo "$ac_t""$MICROWINDOWS" 1>&6
13489 fi
13490
13491 if test -f $MICROWINDOWS/lib/libmwin.a; then
13492 echo "$ac_t""MicroWindows' libraries found." 1>&6
13493 else
13494 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
13495 fi
13496
13497 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
13498 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
13499
13500 wxUSE_UNIVERSAL="yes"
13501
13502 AFMINSTALL=afminstall
13503 TOOLKIT=MICROWIN
13504 GUIDIST=MICROWIN_DIST
13505
13506 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
13507 fi
13508
13509 if test "$wxUSE_X11" = 1; then
13510 # If we find X, set shell vars x_includes and x_libraries to the
13511# paths, otherwise set no_x=yes.
13512# Uses ac_ vars as temps to allow command line to override cache and checks.
13513# --without-x overrides everything else, but does not touch the cache.
13514echo $ac_n "checking for X""... $ac_c" 1>&6
13515echo "configure:13516: checking for X" >&5
13516
13517# Check whether --with-x or --without-x was given.
13518if test "${with_x+set}" = set; then
13519 withval="$with_x"
13520 :
13521fi
13522
13523# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13524if test "x$with_x" = xno; then
13525 # The user explicitly disabled X.
13526 have_x=disabled
13527else
13528 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
13529 # Both variables are already set.
13530 have_x=yes
13531 else
13532if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
13533 echo $ac_n "(cached) $ac_c" 1>&6
13534else
13535 # One or both of the vars are not set, and there is no cached value.
13536ac_x_includes=NO ac_x_libraries=NO
13537rm -fr conftestdir
13538if mkdir conftestdir; then
13539 cd conftestdir
13540 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
13541 cat > Imakefile <<'EOF'
13542acfindx:
13543 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
13544EOF
13545 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
13546 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13547 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
13548 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13549 for ac_extension in a so sl; do
13550 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
13551 test -f $ac_im_libdir/libX11.$ac_extension; then
13552 ac_im_usrlibdir=$ac_im_libdir; break
13553 fi
13554 done
13555 # Screen out bogus values from the imake configuration. They are
13556 # bogus both because they are the default anyway, and because
13557 # using them would break gcc on systems where it needs fixed includes.
13558 case "$ac_im_incroot" in
13559 /usr/include) ;;
13560 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
13561 esac
13562 case "$ac_im_usrlibdir" in
13563 /usr/lib | /lib) ;;
13564 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
13565 esac
13566 fi
13567 cd ..
13568 rm -fr conftestdir
13569fi
13570
13571if test "$ac_x_includes" = NO; then
13572 # Guess where to find include files, by looking for this one X11 .h file.
13573 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
13574
13575 # First, try using that file with no special directory specified.
13576cat > conftest.$ac_ext <<EOF
13577#line 13578 "configure"
13578#include "confdefs.h"
13579#include <$x_direct_test_include>
13580EOF
13581ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13582{ (eval echo configure:13583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13583ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13584if test -z "$ac_err"; then
13585 rm -rf conftest*
13586 # We can compile using X headers with no special include directory.
13587ac_x_includes=
13588else
13589 echo "$ac_err" >&5
13590 echo "configure: failed program was:" >&5
13591 cat conftest.$ac_ext >&5
13592 rm -rf conftest*
13593 # Look for the header file in a standard set of common directories.
13594# Check X11 before X11Rn because it is often a symlink to the current release.
13595 for ac_dir in \
13596 /usr/X11/include \
13597 /usr/X11R6/include \
13598 /usr/X11R5/include \
13599 /usr/X11R4/include \
13600 \
13601 /usr/include/X11 \
13602 /usr/include/X11R6 \
13603 /usr/include/X11R5 \
13604 /usr/include/X11R4 \
13605 \
13606 /usr/local/X11/include \
13607 /usr/local/X11R6/include \
13608 /usr/local/X11R5/include \
13609 /usr/local/X11R4/include \
13610 \
13611 /usr/local/include/X11 \
13612 /usr/local/include/X11R6 \
13613 /usr/local/include/X11R5 \
13614 /usr/local/include/X11R4 \
13615 \
13616 /usr/X386/include \
13617 /usr/x386/include \
13618 /usr/XFree86/include/X11 \
13619 \
13620 /usr/include \
13621 /usr/local/include \
13622 /usr/unsupported/include \
13623 /usr/athena/include \
13624 /usr/local/x11r5/include \
13625 /usr/lpp/Xamples/include \
13626 \
13627 /usr/openwin/include \
13628 /usr/openwin/share/include \
13629 ; \
13630 do
13631 if test -r "$ac_dir/$x_direct_test_include"; then
13632 ac_x_includes=$ac_dir
13633 break
13634 fi
13635 done
13636fi
13637rm -f conftest*
13638fi # $ac_x_includes = NO
13639
13640if test "$ac_x_libraries" = NO; then
13641 # Check for the libraries.
13642
13643 test -z "$x_direct_test_library" && x_direct_test_library=Xt
13644 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
13645
13646 # See if we find them without any special options.
13647 # Don't add to $LIBS permanently.
13648 ac_save_LIBS="$LIBS"
13649 LIBS="-l$x_direct_test_library $LIBS"
13650cat > conftest.$ac_ext <<EOF
13651#line 13652 "configure"
13652#include "confdefs.h"
13653
13654int main() {
13655${x_direct_test_function}()
13656; return 0; }
13657EOF
13658if { (eval echo configure:13659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13659 rm -rf conftest*
13660 LIBS="$ac_save_LIBS"
13661# We can link X programs with no special library path.
13662ac_x_libraries=
13663else
13664 echo "configure: failed program was:" >&5
13665 cat conftest.$ac_ext >&5
13666 rm -rf conftest*
13667 LIBS="$ac_save_LIBS"
13668# First see if replacing the include by lib works.
13669# Check X11 before X11Rn because it is often a symlink to the current release.
13670for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
13671 /usr/X11/lib \
13672 /usr/X11R6/lib \
13673 /usr/X11R5/lib \
13674 /usr/X11R4/lib \
13675 \
13676 /usr/lib/X11 \
13677 /usr/lib/X11R6 \
13678 /usr/lib/X11R5 \
13679 /usr/lib/X11R4 \
13680 \
13681 /usr/local/X11/lib \
13682 /usr/local/X11R6/lib \
13683 /usr/local/X11R5/lib \
13684 /usr/local/X11R4/lib \
13685 \
13686 /usr/local/lib/X11 \
13687 /usr/local/lib/X11R6 \
13688 /usr/local/lib/X11R5 \
13689 /usr/local/lib/X11R4 \
13690 \
13691 /usr/X386/lib \
13692 /usr/x386/lib \
13693 /usr/XFree86/lib/X11 \
13694 \
13695 /usr/lib \
13696 /usr/local/lib \
13697 /usr/unsupported/lib \
13698 /usr/athena/lib \
13699 /usr/local/x11r5/lib \
13700 /usr/lpp/Xamples/lib \
13701 /lib/usr/lib/X11 \
13702 \
13703 /usr/openwin/lib \
13704 /usr/openwin/share/lib \
13705 ; \
13706do
13707 for ac_extension in a so sl; do
13708 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
13709 ac_x_libraries=$ac_dir
13710 break 2
13711 fi
13712 done
13713done
13714fi
13715rm -f conftest*
13716fi # $ac_x_libraries = NO
13717
13718if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
13719 # Didn't find X anywhere. Cache the known absence of X.
13720 ac_cv_have_x="have_x=no"
13721else
13722 # Record where we found X for the cache.
13723 ac_cv_have_x="have_x=yes \
13724 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
13725fi
13726fi
13727 fi
13728 eval "$ac_cv_have_x"
13729fi # $with_x != no
13730
13731if test "$have_x" != yes; then
13732 echo "$ac_t""$have_x" 1>&6
13733 no_x=yes
13734else
13735 # If each of the values was on the command line, it overrides each guess.
13736 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13737 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13738 # Update the cache value to reflect the command line values.
13739 ac_cv_have_x="have_x=yes \
13740 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
13741 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
13742fi
13743
13744if test "$no_x" = yes; then
13745 # Not all programs may use this symbol, but it does not hurt to define it.
13746 cat >> confdefs.h <<\EOF
13747#define X_DISPLAY_MISSING 1
13748EOF
13749
13750 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13751else
13752 if test -n "$x_includes"; then
13753 X_CFLAGS="$X_CFLAGS -I$x_includes"
13754 fi
13755
13756 # It would also be nice to do this for all -L options, not just this one.
13757 if test -n "$x_libraries"; then
13758 X_LIBS="$X_LIBS -L$x_libraries"
13759 # For Solaris; some versions of Sun CC require a space after -R and
13760 # others require no space. Words are not sufficient . . . .
13761 case "`(uname -sr) 2>/dev/null`" in
13762 "SunOS 5"*)
13763 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13764echo "configure:13765: checking whether -R must be followed by a space" >&5
13765 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13766 cat > conftest.$ac_ext <<EOF
13767#line 13768 "configure"
13768#include "confdefs.h"
13769
13770int main() {
13771
13772; return 0; }
13773EOF
13774if { (eval echo configure:13775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13775 rm -rf conftest*
13776 ac_R_nospace=yes
13777else
13778 echo "configure: failed program was:" >&5
13779 cat conftest.$ac_ext >&5
13780 rm -rf conftest*
13781 ac_R_nospace=no
13782fi
13783rm -f conftest*
13784 if test $ac_R_nospace = yes; then
13785 echo "$ac_t""no" 1>&6
13786 X_LIBS="$X_LIBS -R$x_libraries"
13787 else
13788 LIBS="$ac_xsave_LIBS -R $x_libraries"
13789 cat > conftest.$ac_ext <<EOF
13790#line 13791 "configure"
13791#include "confdefs.h"
13792
13793int main() {
13794
13795; return 0; }
13796EOF
13797if { (eval echo configure:13798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13798 rm -rf conftest*
13799 ac_R_space=yes
13800else
13801 echo "configure: failed program was:" >&5
13802 cat conftest.$ac_ext >&5
13803 rm -rf conftest*
13804 ac_R_space=no
13805fi
13806rm -f conftest*
13807 if test $ac_R_space = yes; then
13808 echo "$ac_t""yes" 1>&6
13809 X_LIBS="$X_LIBS -R $x_libraries"
13810 else
13811 echo "$ac_t""neither works" 1>&6
13812 fi
13813 fi
13814 LIBS="$ac_xsave_LIBS"
13815 esac
13816 fi
13817
13818 # Check for system-dependent libraries X programs must link with.
13819 # Do this before checking for the system-independent R6 libraries
13820 # (-lICE), since we may need -lsocket or whatever for X linking.
13821
13822 if test "$ISC" = yes; then
13823 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13824 else
13825 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13826 # libraries were built with DECnet support. And karl@cs.umb.edu says
13827 # the Alpha needs dnet_stub (dnet does not exist).
13828 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13829echo "configure:13830: checking for dnet_ntoa in -ldnet" >&5
13830ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13831if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13832 echo $ac_n "(cached) $ac_c" 1>&6
13833else
13834 ac_save_LIBS="$LIBS"
13835LIBS="-ldnet $LIBS"
13836cat > conftest.$ac_ext <<EOF
13837#line 13838 "configure"
13838#include "confdefs.h"
13839/* Override any gcc2 internal prototype to avoid an error. */
13840/* We use char because int might match the return type of a gcc2
13841 builtin and then its argument prototype would still apply. */
13842char dnet_ntoa();
13843
13844int main() {
13845dnet_ntoa()
13846; return 0; }
13847EOF
13848if { (eval echo configure:13849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13849 rm -rf conftest*
13850 eval "ac_cv_lib_$ac_lib_var=yes"
13851else
13852 echo "configure: failed program was:" >&5
13853 cat conftest.$ac_ext >&5
13854 rm -rf conftest*
13855 eval "ac_cv_lib_$ac_lib_var=no"
13856fi
13857rm -f conftest*
13858LIBS="$ac_save_LIBS"
13859
13860fi
13861if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13862 echo "$ac_t""yes" 1>&6
13863 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13864else
13865 echo "$ac_t""no" 1>&6
13866fi
13867
13868 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13869 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13870echo "configure:13871: checking for dnet_ntoa in -ldnet_stub" >&5
13871ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13872if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13873 echo $ac_n "(cached) $ac_c" 1>&6
13874else
13875 ac_save_LIBS="$LIBS"
13876LIBS="-ldnet_stub $LIBS"
13877cat > conftest.$ac_ext <<EOF
13878#line 13879 "configure"
13879#include "confdefs.h"
13880/* Override any gcc2 internal prototype to avoid an error. */
13881/* We use char because int might match the return type of a gcc2
13882 builtin and then its argument prototype would still apply. */
13883char dnet_ntoa();
13884
13885int main() {
13886dnet_ntoa()
13887; return 0; }
13888EOF
13889if { (eval echo configure:13890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13890 rm -rf conftest*
13891 eval "ac_cv_lib_$ac_lib_var=yes"
13892else
13893 echo "configure: failed program was:" >&5
13894 cat conftest.$ac_ext >&5
13895 rm -rf conftest*
13896 eval "ac_cv_lib_$ac_lib_var=no"
13897fi
13898rm -f conftest*
13899LIBS="$ac_save_LIBS"
13900
13901fi
13902if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13903 echo "$ac_t""yes" 1>&6
13904 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13905else
13906 echo "$ac_t""no" 1>&6
13907fi
13908
13909 fi
13910
13911 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13912 # to get the SysV transport functions.
13913 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13914 # needs -lnsl.
13915 # The nsl library prevents programs from opening the X display
13916 # on Irix 5.2, according to dickey@clark.net.
13917 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13918echo "configure:13919: checking for gethostbyname" >&5
13919if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13920 echo $ac_n "(cached) $ac_c" 1>&6
13921else
13922 cat > conftest.$ac_ext <<EOF
13923#line 13924 "configure"
13924#include "confdefs.h"
13925/* System header to define __stub macros and hopefully few prototypes,
13926 which can conflict with char gethostbyname(); below. */
13927#include <assert.h>
13928/* Override any gcc2 internal prototype to avoid an error. */
13929/* We use char because int might match the return type of a gcc2
13930 builtin and then its argument prototype would still apply. */
13931char gethostbyname();
13932
13933int main() {
13934
13935/* The GNU C library defines this for functions which it implements
13936 to always fail with ENOSYS. Some functions are actually named
13937 something starting with __ and the normal name is an alias. */
13938#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13939choke me
13940#else
13941gethostbyname();
13942#endif
13943
13944; return 0; }
13945EOF
13946if { (eval echo configure:13947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13947 rm -rf conftest*
13948 eval "ac_cv_func_gethostbyname=yes"
13949else
13950 echo "configure: failed program was:" >&5
13951 cat conftest.$ac_ext >&5
13952 rm -rf conftest*
13953 eval "ac_cv_func_gethostbyname=no"
13954fi
13955rm -f conftest*
13956fi
13957
13958if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13959 echo "$ac_t""yes" 1>&6
13960 :
13961else
13962 echo "$ac_t""no" 1>&6
13963fi
13964
13965 if test $ac_cv_func_gethostbyname = no; then
13966 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13967echo "configure:13968: checking for gethostbyname in -lnsl" >&5
13968ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13969if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13970 echo $ac_n "(cached) $ac_c" 1>&6
13971else
13972 ac_save_LIBS="$LIBS"
13973LIBS="-lnsl $LIBS"
13974cat > conftest.$ac_ext <<EOF
13975#line 13976 "configure"
13976#include "confdefs.h"
13977/* Override any gcc2 internal prototype to avoid an error. */
13978/* We use char because int might match the return type of a gcc2
13979 builtin and then its argument prototype would still apply. */
13980char gethostbyname();
13981
13982int main() {
13983gethostbyname()
13984; return 0; }
13985EOF
13986if { (eval echo configure:13987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13987 rm -rf conftest*
13988 eval "ac_cv_lib_$ac_lib_var=yes"
13989else
13990 echo "configure: failed program was:" >&5
13991 cat conftest.$ac_ext >&5
13992 rm -rf conftest*
13993 eval "ac_cv_lib_$ac_lib_var=no"
13994fi
13995rm -f conftest*
13996LIBS="$ac_save_LIBS"
13997
13998fi
13999if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14000 echo "$ac_t""yes" 1>&6
14001 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14002else
14003 echo "$ac_t""no" 1>&6
14004fi
14005
14006 fi
14007
14008 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14009 # socket/setsockopt and other routines are undefined under SCO ODT
14010 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14011 # on later versions), says simon@lia.di.epfl.ch: it contains
14012 # gethostby* variants that don't use the nameserver (or something).
14013 # -lsocket must be given before -lnsl if both are needed.
14014 # We assume that if connect needs -lnsl, so does gethostbyname.
14015 echo $ac_n "checking for connect""... $ac_c" 1>&6
14016echo "configure:14017: checking for connect" >&5
14017if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14018 echo $ac_n "(cached) $ac_c" 1>&6
14019else
14020 cat > conftest.$ac_ext <<EOF
14021#line 14022 "configure"
14022#include "confdefs.h"
14023/* System header to define __stub macros and hopefully few prototypes,
14024 which can conflict with char connect(); below. */
14025#include <assert.h>
14026/* Override any gcc2 internal prototype to avoid an error. */
14027/* We use char because int might match the return type of a gcc2
14028 builtin and then its argument prototype would still apply. */
14029char connect();
14030
14031int main() {
14032
14033/* The GNU C library defines this for functions which it implements
14034 to always fail with ENOSYS. Some functions are actually named
14035 something starting with __ and the normal name is an alias. */
14036#if defined (__stub_connect) || defined (__stub___connect)
14037choke me
14038#else
14039connect();
14040#endif
14041
14042; return 0; }
14043EOF
14044if { (eval echo configure:14045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14045 rm -rf conftest*
14046 eval "ac_cv_func_connect=yes"
14047else
14048 echo "configure: failed program was:" >&5
14049 cat conftest.$ac_ext >&5
14050 rm -rf conftest*
14051 eval "ac_cv_func_connect=no"
14052fi
14053rm -f conftest*
14054fi
14055
14056if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14057 echo "$ac_t""yes" 1>&6
14058 :
14059else
14060 echo "$ac_t""no" 1>&6
14061fi
14062
14063 if test $ac_cv_func_connect = no; then
14064 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14065echo "configure:14066: checking for connect in -lsocket" >&5
14066ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14067if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14068 echo $ac_n "(cached) $ac_c" 1>&6
14069else
14070 ac_save_LIBS="$LIBS"
14071LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14072cat > conftest.$ac_ext <<EOF
14073#line 14074 "configure"
14074#include "confdefs.h"
14075/* Override any gcc2 internal prototype to avoid an error. */
14076/* We use char because int might match the return type of a gcc2
14077 builtin and then its argument prototype would still apply. */
14078char connect();
14079
14080int main() {
14081connect()
14082; return 0; }
14083EOF
14084if { (eval echo configure:14085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14085 rm -rf conftest*
14086 eval "ac_cv_lib_$ac_lib_var=yes"
14087else
14088 echo "configure: failed program was:" >&5
14089 cat conftest.$ac_ext >&5
14090 rm -rf conftest*
14091 eval "ac_cv_lib_$ac_lib_var=no"
14092fi
14093rm -f conftest*
14094LIBS="$ac_save_LIBS"
14095
14096fi
14097if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14098 echo "$ac_t""yes" 1>&6
14099 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14100else
14101 echo "$ac_t""no" 1>&6
14102fi
14103
14104 fi
14105
14106 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14107 echo $ac_n "checking for remove""... $ac_c" 1>&6
14108echo "configure:14109: checking for remove" >&5
14109if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14110 echo $ac_n "(cached) $ac_c" 1>&6
14111else
14112 cat > conftest.$ac_ext <<EOF
14113#line 14114 "configure"
14114#include "confdefs.h"
14115/* System header to define __stub macros and hopefully few prototypes,
14116 which can conflict with char remove(); below. */
14117#include <assert.h>
14118/* Override any gcc2 internal prototype to avoid an error. */
14119/* We use char because int might match the return type of a gcc2
14120 builtin and then its argument prototype would still apply. */
14121char remove();
14122
14123int main() {
14124
14125/* The GNU C library defines this for functions which it implements
14126 to always fail with ENOSYS. Some functions are actually named
14127 something starting with __ and the normal name is an alias. */
14128#if defined (__stub_remove) || defined (__stub___remove)
14129choke me
14130#else
14131remove();
14132#endif
14133
14134; return 0; }
14135EOF
14136if { (eval echo configure:14137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14137 rm -rf conftest*
14138 eval "ac_cv_func_remove=yes"
14139else
14140 echo "configure: failed program was:" >&5
14141 cat conftest.$ac_ext >&5
14142 rm -rf conftest*
14143 eval "ac_cv_func_remove=no"
14144fi
14145rm -f conftest*
14146fi
14147
14148if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14149 echo "$ac_t""yes" 1>&6
14150 :
14151else
14152 echo "$ac_t""no" 1>&6
14153fi
14154
14155 if test $ac_cv_func_remove = no; then
14156 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14157echo "configure:14158: checking for remove in -lposix" >&5
14158ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14159if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14160 echo $ac_n "(cached) $ac_c" 1>&6
14161else
14162 ac_save_LIBS="$LIBS"
14163LIBS="-lposix $LIBS"
14164cat > conftest.$ac_ext <<EOF
14165#line 14166 "configure"
14166#include "confdefs.h"
14167/* Override any gcc2 internal prototype to avoid an error. */
14168/* We use char because int might match the return type of a gcc2
14169 builtin and then its argument prototype would still apply. */
14170char remove();
14171
14172int main() {
14173remove()
14174; return 0; }
14175EOF
14176if { (eval echo configure:14177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14177 rm -rf conftest*
14178 eval "ac_cv_lib_$ac_lib_var=yes"
14179else
14180 echo "configure: failed program was:" >&5
14181 cat conftest.$ac_ext >&5
14182 rm -rf conftest*
14183 eval "ac_cv_lib_$ac_lib_var=no"
14184fi
14185rm -f conftest*
14186LIBS="$ac_save_LIBS"
14187
14188fi
14189if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14190 echo "$ac_t""yes" 1>&6
14191 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14192else
14193 echo "$ac_t""no" 1>&6
14194fi
14195
14196 fi
14197
14198 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14199 echo $ac_n "checking for shmat""... $ac_c" 1>&6
14200echo "configure:14201: checking for shmat" >&5
14201if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14202 echo $ac_n "(cached) $ac_c" 1>&6
14203else
14204 cat > conftest.$ac_ext <<EOF
14205#line 14206 "configure"
14206#include "confdefs.h"
14207/* System header to define __stub macros and hopefully few prototypes,
14208 which can conflict with char shmat(); below. */
14209#include <assert.h>
14210/* Override any gcc2 internal prototype to avoid an error. */
14211/* We use char because int might match the return type of a gcc2
14212 builtin and then its argument prototype would still apply. */
14213char shmat();
14214
14215int main() {
14216
14217/* The GNU C library defines this for functions which it implements
14218 to always fail with ENOSYS. Some functions are actually named
14219 something starting with __ and the normal name is an alias. */
14220#if defined (__stub_shmat) || defined (__stub___shmat)
14221choke me
14222#else
14223shmat();
14224#endif
14225
14226; return 0; }
14227EOF
14228if { (eval echo configure:14229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14229 rm -rf conftest*
14230 eval "ac_cv_func_shmat=yes"
14231else
14232 echo "configure: failed program was:" >&5
14233 cat conftest.$ac_ext >&5
14234 rm -rf conftest*
14235 eval "ac_cv_func_shmat=no"
14236fi
14237rm -f conftest*
14238fi
14239
14240if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14241 echo "$ac_t""yes" 1>&6
14242 :
14243else
14244 echo "$ac_t""no" 1>&6
14245fi
14246
14247 if test $ac_cv_func_shmat = no; then
14248 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14249echo "configure:14250: checking for shmat in -lipc" >&5
14250ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14251if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14252 echo $ac_n "(cached) $ac_c" 1>&6
14253else
14254 ac_save_LIBS="$LIBS"
14255LIBS="-lipc $LIBS"
14256cat > conftest.$ac_ext <<EOF
14257#line 14258 "configure"
14258#include "confdefs.h"
14259/* Override any gcc2 internal prototype to avoid an error. */
14260/* We use char because int might match the return type of a gcc2
14261 builtin and then its argument prototype would still apply. */
14262char shmat();
14263
14264int main() {
14265shmat()
14266; return 0; }
14267EOF
14268if { (eval echo configure:14269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14269 rm -rf conftest*
14270 eval "ac_cv_lib_$ac_lib_var=yes"
14271else
14272 echo "configure: failed program was:" >&5
14273 cat conftest.$ac_ext >&5
14274 rm -rf conftest*
14275 eval "ac_cv_lib_$ac_lib_var=no"
14276fi
14277rm -f conftest*
14278LIBS="$ac_save_LIBS"
14279
14280fi
14281if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14282 echo "$ac_t""yes" 1>&6
14283 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14284else
14285 echo "$ac_t""no" 1>&6
14286fi
14287
14288 fi
14289 fi
14290
14291 # Check for libraries that X11R6 Xt/Xaw programs need.
14292 ac_save_LDFLAGS="$LDFLAGS"
14293 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14294 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14295 # check for ICE first), but we must link in the order -lSM -lICE or
14296 # we get undefined symbols. So assume we have SM if we have ICE.
14297 # These have to be linked with before -lX11, unlike the other
14298 # libraries we check for below, so use a different variable.
14299 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14300 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14301echo "configure:14302: checking for IceConnectionNumber in -lICE" >&5
14302ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14303if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14304 echo $ac_n "(cached) $ac_c" 1>&6
14305else
14306 ac_save_LIBS="$LIBS"
14307LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14308cat > conftest.$ac_ext <<EOF
14309#line 14310 "configure"
14310#include "confdefs.h"
14311/* Override any gcc2 internal prototype to avoid an error. */
14312/* We use char because int might match the return type of a gcc2
14313 builtin and then its argument prototype would still apply. */
14314char IceConnectionNumber();
14315
14316int main() {
14317IceConnectionNumber()
14318; return 0; }
14319EOF
14320if { (eval echo configure:14321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14321 rm -rf conftest*
14322 eval "ac_cv_lib_$ac_lib_var=yes"
14323else
14324 echo "configure: failed program was:" >&5
14325 cat conftest.$ac_ext >&5
14326 rm -rf conftest*
14327 eval "ac_cv_lib_$ac_lib_var=no"
14328fi
14329rm -f conftest*
14330LIBS="$ac_save_LIBS"
14331
14332fi
14333if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14334 echo "$ac_t""yes" 1>&6
14335 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14336else
14337 echo "$ac_t""no" 1>&6
14338fi
14339
14340 LDFLAGS="$ac_save_LDFLAGS"
14341
14342fi
14343
14344
14345 if test "$no_x" = "yes"; then
14346 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14347 fi
14348
14349 GUI_TK_LIBRARY="$X_LIBS"
14350 TOOLKIT_INCLUDE="$X_CFLAGS"
14351 AFMINSTALL=afminstall
14352 COMPILED_X_PROGRAM=0
14353
14354 if test "$wxUSE_NANOX" = "yes"; then
14355 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
14356echo "configure:14357: checking for MicroWindows/NanoX distribution" >&5
14357 if test "x$MICROWIN" = x ; then
14358 echo "$ac_t""not found" 1>&6
14359 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
14360 else
14361 echo "$ac_t""$MICROWIN" 1>&6
14362 cat >> confdefs.h <<\EOF
14363#define wxUSE_NANOX 1
14364EOF
14365
14366 fi
14367 fi
14368
14369 xpm_link=
14370 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14371echo "configure:14372: checking for Xpm library" >&5
14372
14373ac_find_libraries=
14374for ac_dir in $SEARCH_LIB /usr/lib;
14375 do
14376 for ac_extension in a so sl dylib; do
14377 if test -f "$ac_dir/libXpm.$ac_extension"; then
14378 ac_find_libraries=$ac_dir
14379 break 2
14380 fi
14381 done
14382 done
14383
14384 if test "$ac_find_libraries" != "" ; then
14385
14386 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14387 result=$?
14388 if test $result = 0; then
14389 ac_path_to_link=""
14390 else
14391 ac_path_to_link=" -L$ac_find_libraries"
14392 fi
14393
14394 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14395 xpm_link=" -lXpm"
14396 cat >> confdefs.h <<\EOF
14397#define wxHAVE_LIB_XPM 1
14398EOF
14399
14400 echo "$ac_t""found at $ac_find_libraries" 1>&6
14401 else
14402 cat > conftest.$ac_ext <<EOF
14403#line 14404 "configure"
14404#include "confdefs.h"
14405
14406 #include <X11/xpm.h>
14407
14408int main() {
14409
14410 int version;
14411 version = XpmLibraryVersion();
14412
14413; return 0; }
14414EOF
14415if { (eval echo configure:14416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14416 rm -rf conftest*
14417
14418 xpm_link=" -lXpm"
14419 cat >> confdefs.h <<\EOF
14420#define wxHAVE_LIB_XPM 1
14421EOF
14422
14423 echo "$ac_t""found in default search path" 1>&6
14424 COMPILED_X_PROGRAM=0
14425
14426else
14427 echo "configure: failed program was:" >&5
14428 cat conftest.$ac_ext >&5
14429 rm -rf conftest*
14430
14431 echo "$ac_t""no" 1>&6
14432 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14433
14434
14435fi
14436rm -f conftest*
14437 fi
14438
14439 if test "$wxUSE_UNICODE" = "yes"; then
14440
14441 succeeded=no
14442
14443 if test -z "$PKG_CONFIG"; then
14444 # Extract the first word of "pkg-config", so it can be a program name with args.
14445set dummy pkg-config; ac_word=$2
14446echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14447echo "configure:14448: checking for $ac_word" >&5
14448if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14449 echo $ac_n "(cached) $ac_c" 1>&6
14450else
14451 case "$PKG_CONFIG" in
14452 /*)
14453 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14454 ;;
14455 ?:/*)
14456 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14457 ;;
14458 *)
14459 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14460 ac_dummy="$PATH"
14461 for ac_dir in $ac_dummy; do
14462 test -z "$ac_dir" && ac_dir=.
14463 if test -f $ac_dir/$ac_word; then
14464 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14465 break
14466 fi
14467 done
14468 IFS="$ac_save_ifs"
14469 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14470 ;;
14471esac
14472fi
14473PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14474if test -n "$PKG_CONFIG"; then
14475 echo "$ac_t""$PKG_CONFIG" 1>&6
14476else
14477 echo "$ac_t""no" 1>&6
14478fi
14479
14480 fi
14481
14482 if test "$PKG_CONFIG" = "no" ; then
14483 echo "*** The pkg-config script could not be found. Make sure it is"
14484 echo "*** in your path, or set the PKG_CONFIG environment variable"
14485 echo "*** to the full path to pkg-config."
14486 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14487 else
14488 PKG_CONFIG_MIN_VERSION=0.9.0
14489 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14490 echo $ac_n "checking for pangox""... $ac_c" 1>&6
14491echo "configure:14492: checking for pangox" >&5
14492
14493 if $PKG_CONFIG --exists "pangox" ; then
14494 echo "$ac_t""yes" 1>&6
14495 succeeded=yes
14496
14497 echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6
14498echo "configure:14499: checking PANGOX_CFLAGS" >&5
14499 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
14500 echo "$ac_t""$PANGOX_CFLAGS" 1>&6
14501
14502 echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6
14503echo "configure:14504: checking PANGOX_LIBS" >&5
14504 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
14505 echo "$ac_t""$PANGOX_LIBS" 1>&6
14506 else
14507 PANGOX_CFLAGS=""
14508 PANGOX_LIBS=""
14509 ## If we have a custom action on failure, don't print errors, but
14510 ## do set a variable so people can do so.
14511 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
14512
14513 fi
14514
14515
14516
14517 else
14518 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14519 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14520 fi
14521 fi
14522
14523 if test $succeeded = yes; then
14524
14525 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
14526 LIBS="$LIBS $PANGOX_LIBS"
14527
14528 else
14529
14530 { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; }
14531
14532
14533 fi
14534
14535
14536 succeeded=no
14537
14538 if test -z "$PKG_CONFIG"; then
14539 # Extract the first word of "pkg-config", so it can be a program name with args.
14540set dummy pkg-config; ac_word=$2
14541echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14542echo "configure:14543: checking for $ac_word" >&5
14543if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14544 echo $ac_n "(cached) $ac_c" 1>&6
14545else
14546 case "$PKG_CONFIG" in
14547 /*)
14548 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14549 ;;
14550 ?:/*)
14551 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14552 ;;
14553 *)
14554 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14555 ac_dummy="$PATH"
14556 for ac_dir in $ac_dummy; do
14557 test -z "$ac_dir" && ac_dir=.
14558 if test -f $ac_dir/$ac_word; then
14559 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14560 break
14561 fi
14562 done
14563 IFS="$ac_save_ifs"
14564 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14565 ;;
14566esac
14567fi
14568PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14569if test -n "$PKG_CONFIG"; then
14570 echo "$ac_t""$PKG_CONFIG" 1>&6
14571else
14572 echo "$ac_t""no" 1>&6
14573fi
14574
14575 fi
14576
14577 if test "$PKG_CONFIG" = "no" ; then
14578 echo "*** The pkg-config script could not be found. Make sure it is"
14579 echo "*** in your path, or set the PKG_CONFIG environment variable"
14580 echo "*** to the full path to pkg-config."
14581 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14582 else
14583 PKG_CONFIG_MIN_VERSION=0.9.0
14584 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14585 echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
14586echo "configure:14587: checking for pangoft2" >&5
14587
14588 if $PKG_CONFIG --exists "pangoft2" ; then
14589 echo "$ac_t""yes" 1>&6
14590 succeeded=yes
14591
14592 echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
14593echo "configure:14594: checking PANGOFT2_CFLAGS" >&5
14594 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
14595 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
14596
14597 echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
14598echo "configure:14599: checking PANGOFT2_LIBS" >&5
14599 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
14600 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
14601 else
14602 PANGOFT2_CFLAGS=""
14603 PANGOFT2_LIBS=""
14604 ## If we have a custom action on failure, don't print errors, but
14605 ## do set a variable so people can do so.
14606 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
14607
14608 fi
14609
14610
14611
14612 else
14613 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14614 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14615 fi
14616 fi
14617
14618 if test $succeeded = yes; then
14619
14620 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
14621 LIBS="$LIBS $PANGOFT2_LIBS"
14622
14623 else
14624
14625 echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
14626 wxUSE_PRINTING_ARCHITECTURE="no"
14627
14628
14629 fi
14630
14631
14632 succeeded=no
14633
14634 if test -z "$PKG_CONFIG"; then
14635 # Extract the first word of "pkg-config", so it can be a program name with args.
14636set dummy pkg-config; ac_word=$2
14637echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14638echo "configure:14639: checking for $ac_word" >&5
14639if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
14640 echo $ac_n "(cached) $ac_c" 1>&6
14641else
14642 case "$PKG_CONFIG" in
14643 /*)
14644 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14645 ;;
14646 ?:/*)
14647 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
14648 ;;
14649 *)
14650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14651 ac_dummy="$PATH"
14652 for ac_dir in $ac_dummy; do
14653 test -z "$ac_dir" && ac_dir=.
14654 if test -f $ac_dir/$ac_word; then
14655 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
14656 break
14657 fi
14658 done
14659 IFS="$ac_save_ifs"
14660 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14661 ;;
14662esac
14663fi
14664PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14665if test -n "$PKG_CONFIG"; then
14666 echo "$ac_t""$PKG_CONFIG" 1>&6
14667else
14668 echo "$ac_t""no" 1>&6
14669fi
14670
14671 fi
14672
14673 if test "$PKG_CONFIG" = "no" ; then
14674 echo "*** The pkg-config script could not be found. Make sure it is"
14675 echo "*** in your path, or set the PKG_CONFIG environment variable"
14676 echo "*** to the full path to pkg-config."
14677 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14678 else
14679 PKG_CONFIG_MIN_VERSION=0.9.0
14680 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14681 echo $ac_n "checking for pangoxft""... $ac_c" 1>&6
14682echo "configure:14683: checking for pangoxft" >&5
14683
14684 if $PKG_CONFIG --exists "pangoxft" ; then
14685 echo "$ac_t""yes" 1>&6
14686 succeeded=yes
14687
14688 echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6
14689echo "configure:14690: checking PANGOXFT_CFLAGS" >&5
14690 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
14691 echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6
14692
14693 echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6
14694echo "configure:14695: checking PANGOXFT_LIBS" >&5
14695 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
14696 echo "$ac_t""$PANGOXFT_LIBS" 1>&6
14697 else
14698 PANGOXFT_CFLAGS=""
14699 PANGOXFT_LIBS=""
14700 ## If we have a custom action on failure, don't print errors, but
14701 ## do set a variable so people can do so.
14702 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
14703
14704 fi
14705
14706
14707
14708 else
14709 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14710 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14711 fi
14712 fi
14713
14714 if test $succeeded = yes; then
14715
14716 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
14717 LIBS="$LIBS $PANGOXFT_LIBS"
14718
14719 else
14720
14721 echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2
14722
14723
14724 fi
14725
14726 fi
14727
14728 wxUSE_UNIVERSAL="yes"
14729
14730 if test "$wxUSE_NANOX" = "yes"; then
14731 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
14732 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"
14733 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
14734 else
14735 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
14736 fi
14737
14738 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
14739 TOOLKIT=X11
14740 GUIDIST=X11_DIST
14741 fi
14742
14743 if test "$wxUSE_MOTIF" = 1; then
14744 if test "$no_x" = yes; then
14745 # Not all programs may use this symbol, but it does not hurt to define it.
14746 cat >> confdefs.h <<\EOF
14747#define X_DISPLAY_MISSING 1
14748EOF
14749
14750 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
14751else
14752 if test -n "$x_includes"; then
14753 X_CFLAGS="$X_CFLAGS -I$x_includes"
14754 fi
14755
14756 # It would also be nice to do this for all -L options, not just this one.
14757 if test -n "$x_libraries"; then
14758 X_LIBS="$X_LIBS -L$x_libraries"
14759 # For Solaris; some versions of Sun CC require a space after -R and
14760 # others require no space. Words are not sufficient . . . .
14761 case "`(uname -sr) 2>/dev/null`" in
14762 "SunOS 5"*)
14763 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
14764echo "configure:14765: checking whether -R must be followed by a space" >&5
14765 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
14766 cat > conftest.$ac_ext <<EOF
14767#line 14768 "configure"
14768#include "confdefs.h"
14769
14770int main() {
14771
14772; return 0; }
14773EOF
14774if { (eval echo configure:14775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14775 rm -rf conftest*
14776 ac_R_nospace=yes
14777else
14778 echo "configure: failed program was:" >&5
14779 cat conftest.$ac_ext >&5
14780 rm -rf conftest*
14781 ac_R_nospace=no
14782fi
14783rm -f conftest*
14784 if test $ac_R_nospace = yes; then
14785 echo "$ac_t""no" 1>&6
14786 X_LIBS="$X_LIBS -R$x_libraries"
14787 else
14788 LIBS="$ac_xsave_LIBS -R $x_libraries"
14789 cat > conftest.$ac_ext <<EOF
14790#line 14791 "configure"
14791#include "confdefs.h"
14792
14793int main() {
14794
14795; return 0; }
14796EOF
14797if { (eval echo configure:14798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14798 rm -rf conftest*
14799 ac_R_space=yes
14800else
14801 echo "configure: failed program was:" >&5
14802 cat conftest.$ac_ext >&5
14803 rm -rf conftest*
14804 ac_R_space=no
14805fi
14806rm -f conftest*
14807 if test $ac_R_space = yes; then
14808 echo "$ac_t""yes" 1>&6
14809 X_LIBS="$X_LIBS -R $x_libraries"
14810 else
14811 echo "$ac_t""neither works" 1>&6
14812 fi
14813 fi
14814 LIBS="$ac_xsave_LIBS"
14815 esac
14816 fi
14817
14818 # Check for system-dependent libraries X programs must link with.
14819 # Do this before checking for the system-independent R6 libraries
14820 # (-lICE), since we may need -lsocket or whatever for X linking.
14821
14822 if test "$ISC" = yes; then
14823 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
14824 else
14825 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
14826 # libraries were built with DECnet support. And karl@cs.umb.edu says
14827 # the Alpha needs dnet_stub (dnet does not exist).
14828 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
14829echo "configure:14830: checking for dnet_ntoa in -ldnet" >&5
14830ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14831if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14832 echo $ac_n "(cached) $ac_c" 1>&6
14833else
14834 ac_save_LIBS="$LIBS"
14835LIBS="-ldnet $LIBS"
14836cat > conftest.$ac_ext <<EOF
14837#line 14838 "configure"
14838#include "confdefs.h"
14839/* Override any gcc2 internal prototype to avoid an error. */
14840/* We use char because int might match the return type of a gcc2
14841 builtin and then its argument prototype would still apply. */
14842char dnet_ntoa();
14843
14844int main() {
14845dnet_ntoa()
14846; return 0; }
14847EOF
14848if { (eval echo configure:14849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14849 rm -rf conftest*
14850 eval "ac_cv_lib_$ac_lib_var=yes"
14851else
14852 echo "configure: failed program was:" >&5
14853 cat conftest.$ac_ext >&5
14854 rm -rf conftest*
14855 eval "ac_cv_lib_$ac_lib_var=no"
14856fi
14857rm -f conftest*
14858LIBS="$ac_save_LIBS"
14859
14860fi
14861if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14862 echo "$ac_t""yes" 1>&6
14863 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
14864else
14865 echo "$ac_t""no" 1>&6
14866fi
14867
14868 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
14869 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
14870echo "configure:14871: checking for dnet_ntoa in -ldnet_stub" >&5
14871ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
14872if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14873 echo $ac_n "(cached) $ac_c" 1>&6
14874else
14875 ac_save_LIBS="$LIBS"
14876LIBS="-ldnet_stub $LIBS"
14877cat > conftest.$ac_ext <<EOF
14878#line 14879 "configure"
14879#include "confdefs.h"
14880/* Override any gcc2 internal prototype to avoid an error. */
14881/* We use char because int might match the return type of a gcc2
14882 builtin and then its argument prototype would still apply. */
14883char dnet_ntoa();
14884
14885int main() {
14886dnet_ntoa()
14887; return 0; }
14888EOF
14889if { (eval echo configure:14890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14890 rm -rf conftest*
14891 eval "ac_cv_lib_$ac_lib_var=yes"
14892else
14893 echo "configure: failed program was:" >&5
14894 cat conftest.$ac_ext >&5
14895 rm -rf conftest*
14896 eval "ac_cv_lib_$ac_lib_var=no"
14897fi
14898rm -f conftest*
14899LIBS="$ac_save_LIBS"
14900
14901fi
14902if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14903 echo "$ac_t""yes" 1>&6
14904 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
14905else
14906 echo "$ac_t""no" 1>&6
14907fi
14908
14909 fi
14910
14911 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
14912 # to get the SysV transport functions.
14913 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
14914 # needs -lnsl.
14915 # The nsl library prevents programs from opening the X display
14916 # on Irix 5.2, according to dickey@clark.net.
14917 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
14918echo "configure:14919: checking for gethostbyname" >&5
14919if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
14920 echo $ac_n "(cached) $ac_c" 1>&6
14921else
14922 cat > conftest.$ac_ext <<EOF
14923#line 14924 "configure"
14924#include "confdefs.h"
14925/* System header to define __stub macros and hopefully few prototypes,
14926 which can conflict with char gethostbyname(); below. */
14927#include <assert.h>
14928/* Override any gcc2 internal prototype to avoid an error. */
14929/* We use char because int might match the return type of a gcc2
14930 builtin and then its argument prototype would still apply. */
14931char gethostbyname();
14932
14933int main() {
14934
14935/* The GNU C library defines this for functions which it implements
14936 to always fail with ENOSYS. Some functions are actually named
14937 something starting with __ and the normal name is an alias. */
14938#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
14939choke me
14940#else
14941gethostbyname();
14942#endif
14943
14944; return 0; }
14945EOF
14946if { (eval echo configure:14947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14947 rm -rf conftest*
14948 eval "ac_cv_func_gethostbyname=yes"
14949else
14950 echo "configure: failed program was:" >&5
14951 cat conftest.$ac_ext >&5
14952 rm -rf conftest*
14953 eval "ac_cv_func_gethostbyname=no"
14954fi
14955rm -f conftest*
14956fi
14957
14958if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
14959 echo "$ac_t""yes" 1>&6
14960 :
14961else
14962 echo "$ac_t""no" 1>&6
14963fi
14964
14965 if test $ac_cv_func_gethostbyname = no; then
14966 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
14967echo "configure:14968: checking for gethostbyname in -lnsl" >&5
14968ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
14969if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14970 echo $ac_n "(cached) $ac_c" 1>&6
14971else
14972 ac_save_LIBS="$LIBS"
14973LIBS="-lnsl $LIBS"
14974cat > conftest.$ac_ext <<EOF
14975#line 14976 "configure"
14976#include "confdefs.h"
14977/* Override any gcc2 internal prototype to avoid an error. */
14978/* We use char because int might match the return type of a gcc2
14979 builtin and then its argument prototype would still apply. */
14980char gethostbyname();
14981
14982int main() {
14983gethostbyname()
14984; return 0; }
14985EOF
14986if { (eval echo configure:14987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14987 rm -rf conftest*
14988 eval "ac_cv_lib_$ac_lib_var=yes"
14989else
14990 echo "configure: failed program was:" >&5
14991 cat conftest.$ac_ext >&5
14992 rm -rf conftest*
14993 eval "ac_cv_lib_$ac_lib_var=no"
14994fi
14995rm -f conftest*
14996LIBS="$ac_save_LIBS"
14997
14998fi
14999if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15000 echo "$ac_t""yes" 1>&6
15001 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
15002else
15003 echo "$ac_t""no" 1>&6
15004fi
15005
15006 fi
15007
15008 # lieder@skyler.mavd.honeywell.com says without -lsocket,
15009 # socket/setsockopt and other routines are undefined under SCO ODT
15010 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
15011 # on later versions), says simon@lia.di.epfl.ch: it contains
15012 # gethostby* variants that don't use the nameserver (or something).
15013 # -lsocket must be given before -lnsl if both are needed.
15014 # We assume that if connect needs -lnsl, so does gethostbyname.
15015 echo $ac_n "checking for connect""... $ac_c" 1>&6
15016echo "configure:15017: checking for connect" >&5
15017if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
15018 echo $ac_n "(cached) $ac_c" 1>&6
15019else
15020 cat > conftest.$ac_ext <<EOF
15021#line 15022 "configure"
15022#include "confdefs.h"
15023/* System header to define __stub macros and hopefully few prototypes,
15024 which can conflict with char connect(); below. */
15025#include <assert.h>
15026/* Override any gcc2 internal prototype to avoid an error. */
15027/* We use char because int might match the return type of a gcc2
15028 builtin and then its argument prototype would still apply. */
15029char connect();
15030
15031int main() {
15032
15033/* The GNU C library defines this for functions which it implements
15034 to always fail with ENOSYS. Some functions are actually named
15035 something starting with __ and the normal name is an alias. */
15036#if defined (__stub_connect) || defined (__stub___connect)
15037choke me
15038#else
15039connect();
15040#endif
15041
15042; return 0; }
15043EOF
15044if { (eval echo configure:15045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15045 rm -rf conftest*
15046 eval "ac_cv_func_connect=yes"
15047else
15048 echo "configure: failed program was:" >&5
15049 cat conftest.$ac_ext >&5
15050 rm -rf conftest*
15051 eval "ac_cv_func_connect=no"
15052fi
15053rm -f conftest*
15054fi
15055
15056if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
15057 echo "$ac_t""yes" 1>&6
15058 :
15059else
15060 echo "$ac_t""no" 1>&6
15061fi
15062
15063 if test $ac_cv_func_connect = no; then
15064 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
15065echo "configure:15066: checking for connect in -lsocket" >&5
15066ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
15067if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15068 echo $ac_n "(cached) $ac_c" 1>&6
15069else
15070 ac_save_LIBS="$LIBS"
15071LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
15072cat > conftest.$ac_ext <<EOF
15073#line 15074 "configure"
15074#include "confdefs.h"
15075/* Override any gcc2 internal prototype to avoid an error. */
15076/* We use char because int might match the return type of a gcc2
15077 builtin and then its argument prototype would still apply. */
15078char connect();
15079
15080int main() {
15081connect()
15082; return 0; }
15083EOF
15084if { (eval echo configure:15085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15085 rm -rf conftest*
15086 eval "ac_cv_lib_$ac_lib_var=yes"
15087else
15088 echo "configure: failed program was:" >&5
15089 cat conftest.$ac_ext >&5
15090 rm -rf conftest*
15091 eval "ac_cv_lib_$ac_lib_var=no"
15092fi
15093rm -f conftest*
15094LIBS="$ac_save_LIBS"
15095
15096fi
15097if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15098 echo "$ac_t""yes" 1>&6
15099 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
15100else
15101 echo "$ac_t""no" 1>&6
15102fi
15103
15104 fi
15105
15106 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
15107 echo $ac_n "checking for remove""... $ac_c" 1>&6
15108echo "configure:15109: checking for remove" >&5
15109if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
15110 echo $ac_n "(cached) $ac_c" 1>&6
15111else
15112 cat > conftest.$ac_ext <<EOF
15113#line 15114 "configure"
15114#include "confdefs.h"
15115/* System header to define __stub macros and hopefully few prototypes,
15116 which can conflict with char remove(); below. */
15117#include <assert.h>
15118/* Override any gcc2 internal prototype to avoid an error. */
15119/* We use char because int might match the return type of a gcc2
15120 builtin and then its argument prototype would still apply. */
15121char remove();
15122
15123int main() {
15124
15125/* The GNU C library defines this for functions which it implements
15126 to always fail with ENOSYS. Some functions are actually named
15127 something starting with __ and the normal name is an alias. */
15128#if defined (__stub_remove) || defined (__stub___remove)
15129choke me
15130#else
15131remove();
15132#endif
15133
15134; return 0; }
15135EOF
15136if { (eval echo configure:15137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15137 rm -rf conftest*
15138 eval "ac_cv_func_remove=yes"
15139else
15140 echo "configure: failed program was:" >&5
15141 cat conftest.$ac_ext >&5
15142 rm -rf conftest*
15143 eval "ac_cv_func_remove=no"
15144fi
15145rm -f conftest*
15146fi
15147
15148if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
15149 echo "$ac_t""yes" 1>&6
15150 :
15151else
15152 echo "$ac_t""no" 1>&6
15153fi
15154
15155 if test $ac_cv_func_remove = no; then
15156 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
15157echo "configure:15158: checking for remove in -lposix" >&5
15158ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
15159if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15160 echo $ac_n "(cached) $ac_c" 1>&6
15161else
15162 ac_save_LIBS="$LIBS"
15163LIBS="-lposix $LIBS"
15164cat > conftest.$ac_ext <<EOF
15165#line 15166 "configure"
15166#include "confdefs.h"
15167/* Override any gcc2 internal prototype to avoid an error. */
15168/* We use char because int might match the return type of a gcc2
15169 builtin and then its argument prototype would still apply. */
15170char remove();
15171
15172int main() {
15173remove()
15174; return 0; }
15175EOF
15176if { (eval echo configure:15177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15177 rm -rf conftest*
15178 eval "ac_cv_lib_$ac_lib_var=yes"
15179else
15180 echo "configure: failed program was:" >&5
15181 cat conftest.$ac_ext >&5
15182 rm -rf conftest*
15183 eval "ac_cv_lib_$ac_lib_var=no"
15184fi
15185rm -f conftest*
15186LIBS="$ac_save_LIBS"
15187
15188fi
15189if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15190 echo "$ac_t""yes" 1>&6
15191 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
15192else
15193 echo "$ac_t""no" 1>&6
15194fi
15195
15196 fi
15197
15198 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
15199 echo $ac_n "checking for shmat""... $ac_c" 1>&6
15200echo "configure:15201: checking for shmat" >&5
15201if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
15202 echo $ac_n "(cached) $ac_c" 1>&6
15203else
15204 cat > conftest.$ac_ext <<EOF
15205#line 15206 "configure"
15206#include "confdefs.h"
15207/* System header to define __stub macros and hopefully few prototypes,
15208 which can conflict with char shmat(); below. */
15209#include <assert.h>
15210/* Override any gcc2 internal prototype to avoid an error. */
15211/* We use char because int might match the return type of a gcc2
15212 builtin and then its argument prototype would still apply. */
15213char shmat();
15214
15215int main() {
15216
15217/* The GNU C library defines this for functions which it implements
15218 to always fail with ENOSYS. Some functions are actually named
15219 something starting with __ and the normal name is an alias. */
15220#if defined (__stub_shmat) || defined (__stub___shmat)
15221choke me
15222#else
15223shmat();
15224#endif
15225
15226; return 0; }
15227EOF
15228if { (eval echo configure:15229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15229 rm -rf conftest*
15230 eval "ac_cv_func_shmat=yes"
15231else
15232 echo "configure: failed program was:" >&5
15233 cat conftest.$ac_ext >&5
15234 rm -rf conftest*
15235 eval "ac_cv_func_shmat=no"
15236fi
15237rm -f conftest*
15238fi
15239
15240if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
15241 echo "$ac_t""yes" 1>&6
15242 :
15243else
15244 echo "$ac_t""no" 1>&6
15245fi
15246
15247 if test $ac_cv_func_shmat = no; then
15248 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
15249echo "configure:15250: checking for shmat in -lipc" >&5
15250ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
15251if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15252 echo $ac_n "(cached) $ac_c" 1>&6
15253else
15254 ac_save_LIBS="$LIBS"
15255LIBS="-lipc $LIBS"
15256cat > conftest.$ac_ext <<EOF
15257#line 15258 "configure"
15258#include "confdefs.h"
15259/* Override any gcc2 internal prototype to avoid an error. */
15260/* We use char because int might match the return type of a gcc2
15261 builtin and then its argument prototype would still apply. */
15262char shmat();
15263
15264int main() {
15265shmat()
15266; return 0; }
15267EOF
15268if { (eval echo configure:15269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15269 rm -rf conftest*
15270 eval "ac_cv_lib_$ac_lib_var=yes"
15271else
15272 echo "configure: failed program was:" >&5
15273 cat conftest.$ac_ext >&5
15274 rm -rf conftest*
15275 eval "ac_cv_lib_$ac_lib_var=no"
15276fi
15277rm -f conftest*
15278LIBS="$ac_save_LIBS"
15279
15280fi
15281if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15282 echo "$ac_t""yes" 1>&6
15283 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
15284else
15285 echo "$ac_t""no" 1>&6
15286fi
15287
15288 fi
15289 fi
15290
15291 # Check for libraries that X11R6 Xt/Xaw programs need.
15292 ac_save_LDFLAGS="$LDFLAGS"
15293 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
15294 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
15295 # check for ICE first), but we must link in the order -lSM -lICE or
15296 # we get undefined symbols. So assume we have SM if we have ICE.
15297 # These have to be linked with before -lX11, unlike the other
15298 # libraries we check for below, so use a different variable.
15299 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
15300 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
15301echo "configure:15302: checking for IceConnectionNumber in -lICE" >&5
15302ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
15303if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15304 echo $ac_n "(cached) $ac_c" 1>&6
15305else
15306 ac_save_LIBS="$LIBS"
15307LIBS="-lICE $X_EXTRA_LIBS $LIBS"
15308cat > conftest.$ac_ext <<EOF
15309#line 15310 "configure"
15310#include "confdefs.h"
15311/* Override any gcc2 internal prototype to avoid an error. */
15312/* We use char because int might match the return type of a gcc2
15313 builtin and then its argument prototype would still apply. */
15314char IceConnectionNumber();
15315
15316int main() {
15317IceConnectionNumber()
15318; return 0; }
15319EOF
15320if { (eval echo configure:15321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15321 rm -rf conftest*
15322 eval "ac_cv_lib_$ac_lib_var=yes"
15323else
15324 echo "configure: failed program was:" >&5
15325 cat conftest.$ac_ext >&5
15326 rm -rf conftest*
15327 eval "ac_cv_lib_$ac_lib_var=no"
15328fi
15329rm -f conftest*
15330LIBS="$ac_save_LIBS"
15331
15332fi
15333if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15334 echo "$ac_t""yes" 1>&6
15335 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
15336else
15337 echo "$ac_t""no" 1>&6
15338fi
15339
15340 LDFLAGS="$ac_save_LDFLAGS"
15341
15342fi
15343
15344
15345 if test "$no_x" = "yes"; then
15346 { echo "configure: error: X11 not found" 1>&2; exit 1; }
15347 fi
15348
15349 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
15350 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
15351 AFMINSTALL=afminstall
15352 COMPILED_X_PROGRAM=0
15353
15354 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
15355echo "configure:15356: checking for Motif/Lesstif headers" >&5
15356
15357ac_find_includes=
15358for ac_dir in $SEARCH_INCLUDE /usr/include;
15359 do
15360 if test -f "$ac_dir/Xm/Xm.h"; then
15361 ac_find_includes=$ac_dir
15362 break
15363 fi
15364 done
15365
15366 if test "$ac_find_includes" != "" ; then
15367 echo "$ac_t""found in $ac_find_includes" 1>&6
15368
15369 if test "x$ac_find_includes" = "x/usr/include"; then
15370 ac_path_to_include=""
15371 else
15372 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
15373 result=$?
15374 if test $result = 0; then
15375 ac_path_to_include=""
15376 else
15377 ac_path_to_include=" -I$ac_find_includes"
15378 fi
15379 fi
15380
15381 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
15382 else
15383 cat > conftest.$ac_ext <<EOF
15384#line 15385 "configure"
15385#include "confdefs.h"
15386
15387 #include <Xm/Xm.h>
15388
15389int main() {
15390
15391 int version;
15392 version = xmUseVersion;
15393
15394; return 0; }
15395EOF
15396if { (eval echo configure:15397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15397 rm -rf conftest*
15398
15399 echo "$ac_t""found in default search path" 1>&6
15400 COMPILED_X_PROGRAM=1
15401
15402else
15403 echo "configure: failed program was:" >&5
15404 cat conftest.$ac_ext >&5
15405 rm -rf conftest*
15406
15407 echo "$ac_t""no" 1>&6
15408 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
15409
15410
15411fi
15412rm -f conftest*
15413 fi
15414
15415 if test "$COMPILED_X_PROGRAM" = 0; then
15416 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
15417echo "configure:15418: checking for Motif/Lesstif library" >&5
15418
15419ac_find_libraries=
15420for ac_dir in $SEARCH_LIB /usr/lib;
15421 do
15422 for ac_extension in a so sl dylib; do
15423 if test -f "$ac_dir/libXm.$ac_extension"; then
15424 ac_find_libraries=$ac_dir
15425 break 2
15426 fi
15427 done
15428 done
15429
15430 if test "$ac_find_libraries" != "" ; then
15431 echo "$ac_t""found at $ac_find_libraries" 1>&6
15432
15433
15434 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15435 result=$?
15436 if test $result = 0; then
15437 ac_path_to_link=""
15438 else
15439 ac_path_to_link=" -L$ac_find_libraries"
15440 fi
15441
15442 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15443 else
15444 save_CFLAGS=$CFLAGS
15445 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15446
15447 cat > conftest.$ac_ext <<EOF
15448#line 15449 "configure"
15449#include "confdefs.h"
15450
15451 #include <Xm/Xm.h>
15452
15453int main() {
15454
15455 int version;
15456 version = xmUseVersion;
15457
15458; return 0; }
15459EOF
15460if { (eval echo configure:15461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15461 rm -rf conftest*
15462
15463 echo "$ac_t""found in default search path" 1>&6
15464 COMPILED_X_PROGRAM=1
15465
15466else
15467 echo "configure: failed program was:" >&5
15468 cat conftest.$ac_ext >&5
15469 rm -rf conftest*
15470
15471 echo "$ac_t""no" 1>&6
15472 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
15473
15474
15475fi
15476rm -f conftest*
15477
15478 CFLAGS=$save_CFLAGS
15479 fi
15480 fi
15481
15482 xpm_link=
15483 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
15484echo "configure:15485: checking for Xpm library" >&5
15485
15486ac_find_libraries=
15487for ac_dir in $SEARCH_LIB /usr/lib;
15488 do
15489 for ac_extension in a so sl dylib; do
15490 if test -f "$ac_dir/libXpm.$ac_extension"; then
15491 ac_find_libraries=$ac_dir
15492 break 2
15493 fi
15494 done
15495 done
15496
15497 if test "$ac_find_libraries" != "" ; then
15498
15499 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
15500 result=$?
15501 if test $result = 0; then
15502 ac_path_to_link=""
15503 else
15504 ac_path_to_link=" -L$ac_find_libraries"
15505 fi
15506
15507 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
15508
15509 xpm_link=" -lXpm"
15510 cat >> confdefs.h <<\EOF
15511#define wxHAVE_LIB_XPM 1
15512EOF
15513
15514 echo "$ac_t""found at $ac_find_libraries" 1>&6
15515 else
15516 save_CFLAGS=$CFLAGS
15517 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15518
15519 cat > conftest.$ac_ext <<EOF
15520#line 15521 "configure"
15521#include "confdefs.h"
15522
15523 #include <X11/xpm.h>
15524
15525int main() {
15526
15527 int version;
15528 version = XpmLibraryVersion();
15529
15530; return 0; }
15531EOF
15532if { (eval echo configure:15533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15533 rm -rf conftest*
15534
15535 xpm_link=" -lXpm"
15536 cat >> confdefs.h <<\EOF
15537#define wxHAVE_LIB_XPM 1
15538EOF
15539
15540 echo "$ac_t""found in default search path" 1>&6
15541 COMPILED_X_PROGRAM=0
15542
15543else
15544 echo "configure: failed program was:" >&5
15545 cat conftest.$ac_ext >&5
15546 rm -rf conftest*
15547
15548 echo "$ac_t""no" 1>&6
15549 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
15550
15551
15552fi
15553rm -f conftest*
15554
15555 CFLAGS=$save_CFLAGS
15556 fi
15557
15558 echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
15559echo "configure:15560: checking if we need -lXp and/or -lSM -lICE" >&5
15560 libp_link=""
15561 libsm_ice_link=""
15562 libs_found=0
15563 for libp in "" " -lXp"; do
15564 if test "$libs_found" = "0"; then
15565 for libsm_ice in " -lSM -lICE"; do
15566 if test "$libs_found" = "0"; then
15567 save_LIBS="$LIBS"
15568 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
15569 save_CFLAGS=$CFLAGS
15570 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
15571
15572 cat > conftest.$ac_ext <<EOF
15573#line 15574 "configure"
15574#include "confdefs.h"
15575
15576 #include <Xm/Xm.h>
15577 #include <Xm/List.h>
15578
15579int main() {
15580
15581 XmString string = NULL;
15582 Widget w = NULL;
15583 int position = 0;
15584 XmListAddItem(w, string, position);
15585
15586; return 0; }
15587EOF
15588if { (eval echo configure:15589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15589 rm -rf conftest*
15590
15591 libp_link="$libp"
15592 libsm_ice_link="$libsm_ice"
15593 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
15594 libs_found=1
15595
15596else
15597 echo "configure: failed program was:" >&5
15598 cat conftest.$ac_ext >&5
15599 rm -rf conftest*
15600
15601
15602fi
15603rm -f conftest*
15604
15605 LIBS="$save_LIBS"
15606 CFLAGS=$save_CFLAGS
15607 fi
15608 done
15609 fi
15610 done
15611
15612 if test "$libs_found" = "0"; then
15613 echo "$ac_t""can't find the right libraries" 1>&6
15614 { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
15615 fi
15616
15617 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
15618 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
15619 TOOLKIT=MOTIF
15620 GUIDIST=MOTIF_DIST
15621 fi
15622
15623 if test "$wxUSE_MAC" = 1; then
15624 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
15625
15626 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
15627 TOOLKIT=MAC
15628 GUIDIST=MACX_DIST
15629 fi
15630
15631 if test "$wxUSE_PM" = 1; then
15632 TOOLKIT=PM
15633 GUIDIST=GTK_DIST
15634 echo "configure: warning: OS/2 PM requires old resource format, re-enabled" 1>&2
15635 wxUSE_PROLOGIO="yes"
15636 wxUSE_RESOURCES="yes"
15637 echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2
15638 wxUSE_THREADS="no"
15639 fi
15640
15641 if test "$TOOLKIT" = "PM" ; then
15642 TOOLKIT_DIR="os2"
15643 else
15644 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
15645 fi
15646
15647 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
15648
15649 if test "$wxUSE_UNIVERSAL" = "yes"; then
15650 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
15651
15652 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
15653 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
15654
15655 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
15656 if test "$wxUSE_X11" = 1; then
15657 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
15658 else
15659 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
15660 fi
15661 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
15662 WIDGET_SET=univ
15663 else
15664 ALL_OBJECTS="\$(GUIOBJS)"
15665 ALL_SOURCES="\$(ALL_SOURCES)"
15666 ALL_HEADERS="\$(ALL_HEADERS)"
15667 fi
15668
15669 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
15670
15671 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
15672 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
15673 fi
15674
15675 if test "$wxUSE_HTML" = "yes"; then
15676 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
15677 fi
15678
15679 if test "$wxUSE_LIBJPEG" = "builtin" ; then
15680 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
15681 fi
15682 if test "$wxUSE_LIBTIFF" = "builtin" ; then
15683 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
15684 fi
15685 if test "$wxUSE_LIBPNG" = "builtin" ; then
15686 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
15687 fi
15688
15689 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
15690 DISTDIR="wx\$(TOOLKIT)"
15691else
15692 USE_GUI=0
15693
15694 TOOLKIT_DIR="base"
15695
15696 if test "$USE_WIN32" = 1 ; then
15697 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
15698 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
15699
15700 TOOLKIT="MSW"
15701 else
15702 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
15703 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
15704 fi
15705
15706 ALL_SOURCES="\$(ALL_SOURCES)"
15707 ALL_HEADERS="\$(ALL_HEADERS)"
15708
15709 PORT_FILES="\${top_srcdir}/src/files.lst"
15710
15711 GUIDIST="BASE_DIST"
15712 DISTDIR="wxBase"
15713fi
15714
15715
15716if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
15717 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
15718fi
15719
15720if test "$wxUSE_REGEX" = "builtin" ; then
15721 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
15722fi
15723if test "$wxUSE_ZLIB" = "builtin" ; then
15724 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
15725fi
15726
15727
15728if test "$wxUSE_OPENGL" = "yes"; then
15729 if test "$wxUSE_MAC" = 1; then
15730 OPENGL_LIBS="-framework OpenGL -framework AGL"
15731 elif test "$wxUSE_MSW" = 1; then
15732 OPENGL_LIBS="-lopengl32 -lglu32"
15733 else
15734 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15735echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15736echo "configure:15737: checking for GL/gl.h" >&5
15737if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15738 echo $ac_n "(cached) $ac_c" 1>&6
15739else
15740 cat > conftest.$ac_ext <<EOF
15741#line 15742 "configure"
15742#include "confdefs.h"
15743#include <GL/gl.h>
15744EOF
15745ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15746{ (eval echo configure:15747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15747ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15748if test -z "$ac_err"; then
15749 rm -rf conftest*
15750 eval "ac_cv_header_$ac_safe=yes"
15751else
15752 echo "$ac_err" >&5
15753 echo "configure: failed program was:" >&5
15754 cat conftest.$ac_ext >&5
15755 rm -rf conftest*
15756 eval "ac_cv_header_$ac_safe=no"
15757fi
15758rm -f conftest*
15759fi
15760if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15761 echo "$ac_t""yes" 1>&6
15762
15763 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
15764echo "configure:15765: checking for -lGL" >&5
15765
15766ac_find_libraries=
15767for ac_dir in $SEARCH_LIB /usr/lib;
15768 do
15769 for ac_extension in a so sl dylib; do
15770 if test -f "$ac_dir/libGL.$ac_extension"; then
15771 ac_find_libraries=$ac_dir
15772 break 2
15773 fi
15774 done
15775 done
15776
15777 if test "$ac_find_libraries" != "" ; then
15778
15779 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15780 result=$?
15781 if test $result = 0; then
15782 ac_path_to_link=""
15783 else
15784 ac_path_to_link=" -L$ac_find_libraries"
15785 fi
15786
15787 if test "$ac_path_to_link" = " -L/usr/lib" ; then
15788 LDFLAGS_GL="$LDFLAGS"
15789 else
15790 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15791 fi
15792 OPENGL_LIBS="-lGL -lGLU"
15793 echo "$ac_t""yes" 1>&6
15794 else
15795 echo "$ac_t""no" 1>&6
15796 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
15797echo "configure:15798: checking for -lMesaGL" >&5
15798
15799ac_find_libraries=
15800for ac_dir in $SEARCH_LIB /usr/lib;
15801 do
15802 for ac_extension in a so sl dylib; do
15803 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
15804 ac_find_libraries=$ac_dir
15805 break 2
15806 fi
15807 done
15808 done
15809
15810 if test "$ac_find_libraries" != "" ; then
15811
15812 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
15813 result=$?
15814 if test $result = 0; then
15815 ac_path_to_link=""
15816 else
15817 ac_path_to_link=" -L$ac_find_libraries"
15818 fi
15819
15820 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
15821 OPENGL_LIBS="-lMesaGL -lMesaGLU"
15822 echo "$ac_t""yes" 1>&6
15823 else
15824 echo "$ac_t""no" 1>&6
15825 fi
15826 fi
15827
15828else
15829 echo "$ac_t""no" 1>&6
15830fi
15831
15832
15833 if test "x$OPENGL_LIBS" = "x"; then
15834 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
15835 fi
15836 fi
15837
15838 if test "$wxUSE_OPENGL" = "yes"; then
15839 cat >> confdefs.h <<\EOF
15840#define wxUSE_OPENGL 1
15841EOF
15842
15843 cat >> confdefs.h <<\EOF
15844#define wxUSE_GLCANVAS 1
15845EOF
15846
15847 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15848 fi
15849fi
15850
15851if test -z "$TOOLKIT_VPATH" ; then
15852 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
15853fi
15854
15855if test -n "$TOOLKIT" ; then
15856 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
15857fi
15858
15859lib_unicode_suffix=
15860if test "$wxUSE_UNICODE" = "yes"; then
15861 lib_unicode_suffix=u
15862fi
15863
15864lib_debug_suffix=
15865if test "$wxUSE_DEBUG_FLAG" = "yes"; then
15866 lib_debug_suffix=d
15867fi
15868
15869WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
15870
15871TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
15872TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
15873
15874if test "$cross_compiling" = "yes"; then
15875 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
15876 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
15877fi
15878
15879WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
15880WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
15881WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
15882
15883WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15884WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
15885
15886WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
15887WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15888WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
15889WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15890
15891case "${host}" in
15892 *-*-cygwin* | *-*-mingw32* )
15893
15894
15895
15896 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
15897 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15898 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
15899 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
15900 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
15901 else
15902 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
15903 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15904 fi
15905 ;;
15906
15907 *-*-darwin* )
15908
15909 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
15910 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
15911
15912 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
15913 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
15914 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
15915 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
15916
15917 if test "$wxUSE_MAC" = 1; then
15918 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
15919 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
15920 fi
15921 ;;
15922esac
15923
15924WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
15925WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
15926
15927WXCONFIG_LIBS="-l${WX_LIBRARY}"
15928WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
15929
15930if test "$wxUSE_OPENGL" = "yes"; then
15931 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
15932 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
15933fi
15934
15935
15936
15937if test "$wxUSE_SHARED" = "yes"; then
15938 case "${host}" in
15939 *-pc-os2_emx | *-pc-os2-emx | \
15940 *-pc-msdosdjgpp )
15941 wxUSE_SHARED=no
15942 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
15943 ;;
15944 esac
15945fi
15946
15947if test "$wxUSE_SHARED" = "yes"; then
15948
15949 if test "$wxUSE_OPENGL" = "yes"; then
15950 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
15951 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
15952 else
15953 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
15954 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
15955 fi
15956
15957 if test "$GCC" = "yes"; then
15958 PIC_FLAG="-fPIC"
15959 fi
15960
15961
15962
15963 found_versioning=no
15964
15965
15966 if test $found_versioning = no ; then
15967 echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6
15968echo "configure:15969: checking if the linker accepts --version-script" >&5
15969if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then
15970 echo $ac_n "(cached) $ac_c" 1>&6
15971else
15972
15973 echo "VER_1 { *; };" >conftest.sym
15974 echo "int main() { return 0; }" >conftest.cpp
15975
15976 if { ac_try='
15977 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
15978 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:15979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then
15979 if test -s conftest.stderr ; then
15980 wx_cv_version_script=no
15981 else
15982 wx_cv_version_script=yes
15983 fi
15984 else
15985 wx_cv_version_script=no
15986 fi
15987 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
15988
15989fi
15990
15991echo "$ac_t""$wx_cv_version_script" 1>&6
15992 if test $wx_cv_version_script = yes ; then
15993 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script"
15994 fi
15995 fi
15996
15997
15998 SHARED_LD="${CXX} -shared -o"
15999
16000 case "${host}" in
16001 *-hp-hpux* )
16002 if test "$GCC" = "yes"; then
16003 SHARED_LD="${CXX} -shared ${PIC_FLAG} -o"
16004 else
16005 LDFLAGS="$LDFLAGS -L/usr/lib"
16006
16007 SHARED_LD="${CXX} -b -o"
16008 PIC_FLAG="+Z"
16009 fi
16010
16011 if test "$wxUSE_OPENGL" = "yes"; then
16012 WX_ALL_INSTALLED="preinstall_gl"
16013 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
16014 else
16015 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16016 fi
16017 ;;
16018
16019 *-*-linux* )
16020 if test "$GCC" != "yes"; then
16021 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
16022echo "configure:16023: checking for Intel compiler" >&5
16023if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
16024 echo $ac_n "(cached) $ac_c" 1>&6
16025else
16026
16027 cat > conftest.$ac_ext <<EOF
16028#line 16029 "configure"
16029#include "confdefs.h"
16030
16031int main() {
16032
16033 #ifndef __INTEL_COMPILER
16034 #error Not icc
16035 #endif
16036
16037; return 0; }
16038EOF
16039if { (eval echo configure:16040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16040 rm -rf conftest*
16041 wx_cv_prog_icc=yes
16042else
16043 echo "configure: failed program was:" >&5
16044 cat conftest.$ac_ext >&5
16045 rm -rf conftest*
16046 wx_cv_prog_icc=no
16047
16048fi
16049rm -f conftest*
16050
16051fi
16052
16053echo "$ac_t""$wx_cv_prog_icc" 1>&6
16054 if test "$wx_cv_prog_icc" = "yes"; then
16055 PIC_FLAG="-KPIC"
16056 fi
16057 fi
16058
16059 if test "$wxUSE_SONAME" = "yes" ; then
16060 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
16061 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
16062 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
16063 fi
16064 ;;
16065
16066 *-*-solaris2* )
16067 if test "$GCC" = yes ; then
16068 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
16069 else
16070 SHARED_LD="${CXX} -G -o"
16071 PIC_FLAG="-KPIC"
16072 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
16073 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
16074 fi
16075 ;;
16076
16077 *-*-darwin* )
16078 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL"
16079 CFLAGS="$CFLAGS -fno-common"
16080 CXXFLAGS="$CXXFLAGS -fno-common"
16081 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
16082 PIC_FLAG="-dynamic -fPIC"
16083 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}"
16084 SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}"
16085 ;;
16086
16087 *-*-aix* )
16088 if test "$GCC" != "yes"; then
16089 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
16090set dummy makeC++SharedLib; ac_word=$2
16091echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16092echo "configure:16093: checking for $ac_word" >&5
16093if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
16094 echo $ac_n "(cached) $ac_c" 1>&6
16095else
16096 if test -n "$AIX_CXX_LD"; then
16097 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
16098else
16099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16100 ac_dummy="$PATH"
16101 for ac_dir in $ac_dummy; do
16102 test -z "$ac_dir" && ac_dir=.
16103 if test -f $ac_dir/$ac_word; then
16104 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
16105 break
16106 fi
16107 done
16108 IFS="$ac_save_ifs"
16109 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
16110fi
16111fi
16112AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
16113if test -n "$AIX_CXX_LD"; then
16114 echo "$ac_t""$AIX_CXX_LD" 1>&6
16115else
16116 echo "$ac_t""no" 1>&6
16117fi
16118
16119
16120 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
16121 fi
16122 ;;
16123
16124 *-*-cygwin* | *-*-mingw32* )
16125 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
16126
16127 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
16128 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
16129
16130 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
16131
16132 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
16133 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
16134
16135 if test "$wxUSE_OPENGL" = "yes"; then
16136 LIBS="${LIBS} ${OPENGL_LIBS}"
16137 fi
16138 ;;
16139
16140 *-*-beos* )
16141 SHARED_LD="${LD} -shared -o"
16142 ;;
16143
16144 *-*-irix* )
16145 if test "$GCC" != "yes"; then
16146 PIC_FLAG="-KPIC"
16147 fi
16148 ;;
16149
16150 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
16151 *-*-sunos4* | \
16152 *-*-osf* | \
16153 *-*-dgux5* | \
16154 *-*-sysv5* )
16155 ;;
16156
16157 *)
16158 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
16159 esac
16160
16161 if test "x$WX_TARGET_LIBRARY" = "x"; then
16162 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
16163 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
16164 fi
16165
16166 WX_TARGET_LIBRARY_TYPE="so"
16167 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
16168fi
16169
16170if test "$wxUSE_SHARED" = "no"; then
16171
16172 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
16173 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16174 fi
16175
16176 if test "$wxUSE_MAC" = 1; then
16177 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
16178 fi
16179
16180 if test "$wxUSE_OPENGL" = "yes"; then
16181 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
16182 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
16183 else
16184 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
16185 fi
16186
16187 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
16188 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
16189
16190 WX_TARGET_LIBRARY_TYPE="a"
16191 INSTALL_LIBRARY='$(INSTALL_DATA)'
16192
16193 STATIC_FLAG="yes"
16194else
16195 STATIC_FLAG="no"
16196fi
16197
16198MACRESCOMP="@#"
16199MACSETFILE="@#"
16200MACRESWXCONFIG="#"
16201if test "$wxUSE_MAC" = 1; then
16202 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
16203 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
16204 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
16205 # Extract the first word of "Rez", so it can be a program name with args.
16206set dummy Rez; ac_word=$2
16207echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16208echo "configure:16209: checking for $ac_word" >&5
16209if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
16210 echo $ac_n "(cached) $ac_c" 1>&6
16211else
16212 if test -n "$RESCOMP"; then
16213 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
16214else
16215 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16216 ac_dummy="$PATH"
16217 for ac_dir in $ac_dummy; do
16218 test -z "$ac_dir" && ac_dir=.
16219 if test -f $ac_dir/$ac_word; then
16220 ac_cv_prog_RESCOMP="Rez"
16221 break
16222 fi
16223 done
16224 IFS="$ac_save_ifs"
16225 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
16226fi
16227fi
16228RESCOMP="$ac_cv_prog_RESCOMP"
16229if test -n "$RESCOMP"; then
16230 echo "$ac_t""$RESCOMP" 1>&6
16231else
16232 echo "$ac_t""no" 1>&6
16233fi
16234
16235 # Extract the first word of "DeRez", so it can be a program name with args.
16236set dummy DeRez; ac_word=$2
16237echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16238echo "configure:16239: checking for $ac_word" >&5
16239if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
16240 echo $ac_n "(cached) $ac_c" 1>&6
16241else
16242 if test -n "$DEREZ"; then
16243 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
16244else
16245 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16246 ac_dummy="$PATH"
16247 for ac_dir in $ac_dummy; do
16248 test -z "$ac_dir" && ac_dir=.
16249 if test -f $ac_dir/$ac_word; then
16250 ac_cv_prog_DEREZ="DeRez"
16251 break
16252 fi
16253 done
16254 IFS="$ac_save_ifs"
16255 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
16256fi
16257fi
16258DEREZ="$ac_cv_prog_DEREZ"
16259if test -n "$DEREZ"; then
16260 echo "$ac_t""$DEREZ" 1>&6
16261else
16262 echo "$ac_t""no" 1>&6
16263fi
16264
16265 # Extract the first word of "SetFile", so it can be a program name with args.
16266set dummy SetFile; ac_word=$2
16267echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16268echo "configure:16269: checking for $ac_word" >&5
16269if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
16270 echo $ac_n "(cached) $ac_c" 1>&6
16271else
16272 if test -n "$SETFILE"; then
16273 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
16274else
16275 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16276 ac_dummy="$PATH"
16277 for ac_dir in $ac_dummy; do
16278 test -z "$ac_dir" && ac_dir=.
16279 if test -f $ac_dir/$ac_word; then
16280 ac_cv_prog_SETFILE="SetFile"
16281 break
16282 fi
16283 done
16284 IFS="$ac_save_ifs"
16285 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
16286fi
16287fi
16288SETFILE="$ac_cv_prog_SETFILE"
16289if test -n "$SETFILE"; then
16290 echo "$ac_t""$SETFILE" 1>&6
16291else
16292 echo "$ac_t""no" 1>&6
16293fi
16294
16295 MACOSX_BUNDLE="bundle"
16296 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
16297 MACSETFILE="\$(SETFILE)"
16298 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o"
16299else
16300 if test "$wxUSE_PM" = 1; then
16301 MACRESCOMP="emxbind -ep"
16302 fi
16303fi
16304
16305
16306echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
16307echo "configure:16308: checking for ANSI C header files" >&5
16308if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
16309 echo $ac_n "(cached) $ac_c" 1>&6
16310else
16311 cat > conftest.$ac_ext <<EOF
16312#line 16313 "configure"
16313#include "confdefs.h"
16314#include <stdlib.h>
16315#include <stdarg.h>
16316#include <string.h>
16317#include <float.h>
16318EOF
16319ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16320{ (eval echo configure:16321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16321ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16322if test -z "$ac_err"; then
16323 rm -rf conftest*
16324 ac_cv_header_stdc=yes
16325else
16326 echo "$ac_err" >&5
16327 echo "configure: failed program was:" >&5
16328 cat conftest.$ac_ext >&5
16329 rm -rf conftest*
16330 ac_cv_header_stdc=no
16331fi
16332rm -f conftest*
16333
16334if test $ac_cv_header_stdc = yes; then
16335 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16336cat > conftest.$ac_ext <<EOF
16337#line 16338 "configure"
16338#include "confdefs.h"
16339#include <string.h>
16340EOF
16341if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16342 egrep "memchr" >/dev/null 2>&1; then
16343 :
16344else
16345 rm -rf conftest*
16346 ac_cv_header_stdc=no
16347fi
16348rm -f conftest*
16349
16350fi
16351
16352if test $ac_cv_header_stdc = yes; then
16353 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16354cat > conftest.$ac_ext <<EOF
16355#line 16356 "configure"
16356#include "confdefs.h"
16357#include <stdlib.h>
16358EOF
16359if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16360 egrep "free" >/dev/null 2>&1; then
16361 :
16362else
16363 rm -rf conftest*
16364 ac_cv_header_stdc=no
16365fi
16366rm -f conftest*
16367
16368fi
16369
16370if test $ac_cv_header_stdc = yes; then
16371 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16372if test "$cross_compiling" = yes; then
16373 :
16374else
16375 cat > conftest.$ac_ext <<EOF
16376#line 16377 "configure"
16377#include "confdefs.h"
16378#include <ctype.h>
16379#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16380#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16381#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16382int main () { int i; for (i = 0; i < 256; i++)
16383if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
16384exit (0); }
16385
16386EOF
16387if { (eval echo configure:16388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16388then
16389 :
16390else
16391 echo "configure: failed program was:" >&5
16392 cat conftest.$ac_ext >&5
16393 rm -fr conftest*
16394 ac_cv_header_stdc=no
16395fi
16396rm -fr conftest*
16397fi
16398
16399fi
16400fi
16401
16402echo "$ac_t""$ac_cv_header_stdc" 1>&6
16403if test $ac_cv_header_stdc = yes; then
16404 cat >> confdefs.h <<\EOF
16405#define STDC_HEADERS 1
16406EOF
16407
16408fi
16409
16410echo $ac_n "checking for mode_t""... $ac_c" 1>&6
16411echo "configure:16412: checking for mode_t" >&5
16412if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
16413 echo $ac_n "(cached) $ac_c" 1>&6
16414else
16415 cat > conftest.$ac_ext <<EOF
16416#line 16417 "configure"
16417#include "confdefs.h"
16418#include <sys/types.h>
16419#if STDC_HEADERS
16420#include <stdlib.h>
16421#include <stddef.h>
16422#endif
16423EOF
16424if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16425 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16426 rm -rf conftest*
16427 ac_cv_type_mode_t=yes
16428else
16429 rm -rf conftest*
16430 ac_cv_type_mode_t=no
16431fi
16432rm -f conftest*
16433
16434fi
16435echo "$ac_t""$ac_cv_type_mode_t" 1>&6
16436if test $ac_cv_type_mode_t = no; then
16437 cat >> confdefs.h <<\EOF
16438#define mode_t int
16439EOF
16440
16441fi
16442
16443echo $ac_n "checking for off_t""... $ac_c" 1>&6
16444echo "configure:16445: checking for off_t" >&5
16445if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
16446 echo $ac_n "(cached) $ac_c" 1>&6
16447else
16448 cat > conftest.$ac_ext <<EOF
16449#line 16450 "configure"
16450#include "confdefs.h"
16451#include <sys/types.h>
16452#if STDC_HEADERS
16453#include <stdlib.h>
16454#include <stddef.h>
16455#endif
16456EOF
16457if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16458 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16459 rm -rf conftest*
16460 ac_cv_type_off_t=yes
16461else
16462 rm -rf conftest*
16463 ac_cv_type_off_t=no
16464fi
16465rm -f conftest*
16466
16467fi
16468echo "$ac_t""$ac_cv_type_off_t" 1>&6
16469if test $ac_cv_type_off_t = no; then
16470 cat >> confdefs.h <<\EOF
16471#define off_t long
16472EOF
16473
16474fi
16475
16476echo $ac_n "checking for pid_t""... $ac_c" 1>&6
16477echo "configure:16478: checking for pid_t" >&5
16478if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
16479 echo $ac_n "(cached) $ac_c" 1>&6
16480else
16481 cat > conftest.$ac_ext <<EOF
16482#line 16483 "configure"
16483#include "confdefs.h"
16484#include <sys/types.h>
16485#if STDC_HEADERS
16486#include <stdlib.h>
16487#include <stddef.h>
16488#endif
16489EOF
16490if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16491 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16492 rm -rf conftest*
16493 ac_cv_type_pid_t=yes
16494else
16495 rm -rf conftest*
16496 ac_cv_type_pid_t=no
16497fi
16498rm -f conftest*
16499
16500fi
16501echo "$ac_t""$ac_cv_type_pid_t" 1>&6
16502if test $ac_cv_type_pid_t = no; then
16503 cat >> confdefs.h <<\EOF
16504#define pid_t int
16505EOF
16506
16507fi
16508
16509echo $ac_n "checking for size_t""... $ac_c" 1>&6
16510echo "configure:16511: checking for size_t" >&5
16511if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
16512 echo $ac_n "(cached) $ac_c" 1>&6
16513else
16514 cat > conftest.$ac_ext <<EOF
16515#line 16516 "configure"
16516#include "confdefs.h"
16517#include <sys/types.h>
16518#if STDC_HEADERS
16519#include <stdlib.h>
16520#include <stddef.h>
16521#endif
16522EOF
16523if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16524 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
16525 rm -rf conftest*
16526 ac_cv_type_size_t=yes
16527else
16528 rm -rf conftest*
16529 ac_cv_type_size_t=no
16530fi
16531rm -f conftest*
16532
16533fi
16534echo "$ac_t""$ac_cv_type_size_t" 1>&6
16535if test $ac_cv_type_size_t = no; then
16536 cat >> confdefs.h <<\EOF
16537#define size_t unsigned
16538EOF
16539
16540fi
16541
16542echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
16543echo "configure:16544: checking for uid_t in sys/types.h" >&5
16544if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
16545 echo $ac_n "(cached) $ac_c" 1>&6
16546else
16547 cat > conftest.$ac_ext <<EOF
16548#line 16549 "configure"
16549#include "confdefs.h"
16550#include <sys/types.h>
16551EOF
16552if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16553 egrep "uid_t" >/dev/null 2>&1; then
16554 rm -rf conftest*
16555 ac_cv_type_uid_t=yes
16556else
16557 rm -rf conftest*
16558 ac_cv_type_uid_t=no
16559fi
16560rm -f conftest*
16561
16562fi
16563
16564echo "$ac_t""$ac_cv_type_uid_t" 1>&6
16565if test $ac_cv_type_uid_t = no; then
16566 cat >> confdefs.h <<\EOF
16567#define uid_t int
16568EOF
16569
16570 cat >> confdefs.h <<\EOF
16571#define gid_t int
16572EOF
16573
16574fi
16575
16576
16577
16578ac_ext=C
16579# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16580ac_cpp='$CXXCPP $CPPFLAGS'
16581ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16582ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16583cross_compiling=$ac_cv_prog_cxx_cross
16584
16585echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
16586echo "configure:16587: checking if size_t is unsigned int" >&5
16587if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
16588 echo $ac_n "(cached) $ac_c" 1>&6
16589else
16590 cat > conftest.$ac_ext <<EOF
16591#line 16592 "configure"
16592#include "confdefs.h"
16593#include <stddef.h>
16594int main() {
16595
16596 return 0; }
16597
16598 struct Foo { void foo(size_t); void foo(unsigned int); };
16599
16600 int bar() {
16601
16602; return 0; }
16603EOF
16604if { (eval echo configure:16605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16605 rm -rf conftest*
16606 wx_cv_size_t_is_uint=no
16607else
16608 echo "configure: failed program was:" >&5
16609 cat conftest.$ac_ext >&5
16610 rm -rf conftest*
16611 wx_cv_size_t_is_uint=yes
16612
16613fi
16614rm -f conftest*
16615
16616fi
16617
16618echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
16619
16620if test "$wx_cv_size_t_is_uint" = "yes"; then
16621 cat >> confdefs.h <<\EOF
16622#define wxSIZE_T_IS_UINT 1
16623EOF
16624
16625else
16626 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
16627echo "configure:16628: checking if size_t is unsigned long" >&5
16628if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
16629 echo $ac_n "(cached) $ac_c" 1>&6
16630else
16631 cat > conftest.$ac_ext <<EOF
16632#line 16633 "configure"
16633#include "confdefs.h"
16634#include <stddef.h>
16635int main() {
16636
16637 return 0; }
16638
16639 struct Foo { void foo(size_t); void foo(unsigned long); };
16640
16641 int bar() {
16642
16643; return 0; }
16644EOF
16645if { (eval echo configure:16646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16646 rm -rf conftest*
16647 wx_cv_size_t_is_ulong=no
16648else
16649 echo "configure: failed program was:" >&5
16650 cat conftest.$ac_ext >&5
16651 rm -rf conftest*
16652 wx_cv_size_t_is_ulong=yes
16653
16654fi
16655rm -f conftest*
16656
16657fi
16658
16659echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
16660
16661 if test "$wx_cv_size_t_is_ulong" = "yes"; then
16662 cat >> confdefs.h <<\EOF
16663#define wxSIZE_T_IS_ULONG 1
16664EOF
16665
16666 fi
16667fi
16668
16669ac_ext=c
16670# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16671ac_cpp='$CPP $CPPFLAGS'
16672ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16673ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16674cross_compiling=$ac_cv_prog_cc_cross
16675
16676
16677
16678echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
16679echo "configure:16680: checking for pw_gecos in struct passwd" >&5
16680if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
16681 echo $ac_n "(cached) $ac_c" 1>&6
16682else
16683
16684 cat > conftest.$ac_ext <<EOF
16685#line 16686 "configure"
16686#include "confdefs.h"
16687#include <pwd.h>
16688int main() {
16689
16690 char *p;
16691 struct passwd *pw;
16692 p = pw->pw_gecos;
16693
16694; return 0; }
16695EOF
16696if { (eval echo configure:16697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16697 rm -rf conftest*
16698
16699 wx_cv_struct_pw_gecos=yes
16700
16701else
16702 echo "configure: failed program was:" >&5
16703 cat conftest.$ac_ext >&5
16704 rm -rf conftest*
16705
16706 wx_cv_struct_pw_gecos=no
16707
16708
16709fi
16710rm -f conftest*
16711
16712
16713fi
16714
16715echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
16716
16717if test "$wx_cv_struct_pw_gecos" = "yes"; then
16718 cat >> confdefs.h <<\EOF
16719#define HAVE_PW_GECOS 1
16720EOF
16721
16722fi
16723
16724
16725if test "$wx_cv_sizeof_wchar_t" != "0"; then
16726 cat >> confdefs.h <<\EOF
16727#define wxUSE_WCHAR_T 1
16728EOF
16729
16730
16731 WCSLEN_FOUND=0
16732 WCHAR_LINK=
16733 for ac_func in wcslen
16734do
16735echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16736echo "configure:16737: checking for $ac_func" >&5
16737if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16738 echo $ac_n "(cached) $ac_c" 1>&6
16739else
16740 cat > conftest.$ac_ext <<EOF
16741#line 16742 "configure"
16742#include "confdefs.h"
16743/* System header to define __stub macros and hopefully few prototypes,
16744 which can conflict with char $ac_func(); below. */
16745#include <assert.h>
16746/* Override any gcc2 internal prototype to avoid an error. */
16747/* We use char because int might match the return type of a gcc2
16748 builtin and then its argument prototype would still apply. */
16749char $ac_func();
16750
16751int main() {
16752
16753/* The GNU C library defines this for functions which it implements
16754 to always fail with ENOSYS. Some functions are actually named
16755 something starting with __ and the normal name is an alias. */
16756#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16757choke me
16758#else
16759$ac_func();
16760#endif
16761
16762; return 0; }
16763EOF
16764if { (eval echo configure:16765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16765 rm -rf conftest*
16766 eval "ac_cv_func_$ac_func=yes"
16767else
16768 echo "configure: failed program was:" >&5
16769 cat conftest.$ac_ext >&5
16770 rm -rf conftest*
16771 eval "ac_cv_func_$ac_func=no"
16772fi
16773rm -f conftest*
16774fi
16775
16776if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16777 echo "$ac_t""yes" 1>&6
16778 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16779 cat >> confdefs.h <<EOF
16780#define $ac_tr_func 1
16781EOF
16782 WCSLEN_FOUND=1
16783else
16784 echo "$ac_t""no" 1>&6
16785fi
16786done
16787
16788
16789 if test "$WCSLEN_FOUND" = 0; then
16790 if test "$TOOLKIT" = "MSW"; then
16791 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
16792echo "configure:16793: checking for wcslen in -lmsvcrt" >&5
16793ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
16794if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16795 echo $ac_n "(cached) $ac_c" 1>&6
16796else
16797 ac_save_LIBS="$LIBS"
16798LIBS="-lmsvcrt $LIBS"
16799cat > conftest.$ac_ext <<EOF
16800#line 16801 "configure"
16801#include "confdefs.h"
16802/* Override any gcc2 internal prototype to avoid an error. */
16803/* We use char because int might match the return type of a gcc2
16804 builtin and then its argument prototype would still apply. */
16805char wcslen();
16806
16807int main() {
16808wcslen()
16809; return 0; }
16810EOF
16811if { (eval echo configure:16812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16812 rm -rf conftest*
16813 eval "ac_cv_lib_$ac_lib_var=yes"
16814else
16815 echo "configure: failed program was:" >&5
16816 cat conftest.$ac_ext >&5
16817 rm -rf conftest*
16818 eval "ac_cv_lib_$ac_lib_var=no"
16819fi
16820rm -f conftest*
16821LIBS="$ac_save_LIBS"
16822
16823fi
16824if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16825 echo "$ac_t""yes" 1>&6
16826 WCHAR_OK=1
16827else
16828 echo "$ac_t""no" 1>&6
16829fi
16830
16831 else
16832 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
16833echo "configure:16834: checking for wcslen in -lw" >&5
16834ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
16835if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16836 echo $ac_n "(cached) $ac_c" 1>&6
16837else
16838 ac_save_LIBS="$LIBS"
16839LIBS="-lw $LIBS"
16840cat > conftest.$ac_ext <<EOF
16841#line 16842 "configure"
16842#include "confdefs.h"
16843/* Override any gcc2 internal prototype to avoid an error. */
16844/* We use char because int might match the return type of a gcc2
16845 builtin and then its argument prototype would still apply. */
16846char wcslen();
16847
16848int main() {
16849wcslen()
16850; return 0; }
16851EOF
16852if { (eval echo configure:16853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16853 rm -rf conftest*
16854 eval "ac_cv_lib_$ac_lib_var=yes"
16855else
16856 echo "configure: failed program was:" >&5
16857 cat conftest.$ac_ext >&5
16858 rm -rf conftest*
16859 eval "ac_cv_lib_$ac_lib_var=no"
16860fi
16861rm -f conftest*
16862LIBS="$ac_save_LIBS"
16863
16864fi
16865if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16866 echo "$ac_t""yes" 1>&6
16867
16868 WCHAR_LINK=" -lw"
16869 WCSLEN_FOUND=1
16870
16871else
16872 echo "$ac_t""no" 1>&6
16873fi
16874
16875 fi
16876 fi
16877
16878 if test "$WCSLEN_FOUND" = 1; then
16879 cat >> confdefs.h <<\EOF
16880#define HAVE_WCSLEN 1
16881EOF
16882
16883 fi
16884
16885 for ac_func in wcsrtombs
16886do
16887echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16888echo "configure:16889: checking for $ac_func" >&5
16889if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16890 echo $ac_n "(cached) $ac_c" 1>&6
16891else
16892 cat > conftest.$ac_ext <<EOF
16893#line 16894 "configure"
16894#include "confdefs.h"
16895/* System header to define __stub macros and hopefully few prototypes,
16896 which can conflict with char $ac_func(); below. */
16897#include <assert.h>
16898/* Override any gcc2 internal prototype to avoid an error. */
16899/* We use char because int might match the return type of a gcc2
16900 builtin and then its argument prototype would still apply. */
16901char $ac_func();
16902
16903int main() {
16904
16905/* The GNU C library defines this for functions which it implements
16906 to always fail with ENOSYS. Some functions are actually named
16907 something starting with __ and the normal name is an alias. */
16908#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16909choke me
16910#else
16911$ac_func();
16912#endif
16913
16914; return 0; }
16915EOF
16916if { (eval echo configure:16917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16917 rm -rf conftest*
16918 eval "ac_cv_func_$ac_func=yes"
16919else
16920 echo "configure: failed program was:" >&5
16921 cat conftest.$ac_ext >&5
16922 rm -rf conftest*
16923 eval "ac_cv_func_$ac_func=no"
16924fi
16925rm -f conftest*
16926fi
16927
16928if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16929 echo "$ac_t""yes" 1>&6
16930 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16931 cat >> confdefs.h <<EOF
16932#define $ac_tr_func 1
16933EOF
16934
16935else
16936 echo "$ac_t""no" 1>&6
16937fi
16938done
16939
16940else
16941 echo "configure: warning: Wide character support is unavailable" 1>&2
16942fi
16943
16944
16945ac_ext=C
16946# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16947ac_cpp='$CXXCPP $CPPFLAGS'
16948ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16949ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16950cross_compiling=$ac_cv_prog_cxx_cross
16951
16952
16953for ac_func in vsnprintf
16954do
16955echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16956echo "configure:16957: checking for $ac_func" >&5
16957if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16958 echo $ac_n "(cached) $ac_c" 1>&6
16959else
16960 cat > conftest.$ac_ext <<EOF
16961#line 16962 "configure"
16962#include "confdefs.h"
16963/* System header to define __stub macros and hopefully few prototypes,
16964 which can conflict with char $ac_func(); below. */
16965#include <assert.h>
16966/* Override any gcc2 internal prototype to avoid an error. */
16967#ifdef __cplusplus
16968extern "C"
16969#endif
16970/* We use char because int might match the return type of a gcc2
16971 builtin and then its argument prototype would still apply. */
16972char $ac_func();
16973
16974int main() {
16975
16976/* The GNU C library defines this for functions which it implements
16977 to always fail with ENOSYS. Some functions are actually named
16978 something starting with __ and the normal name is an alias. */
16979#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16980choke me
16981#else
16982$ac_func();
16983#endif
16984
16985; return 0; }
16986EOF
16987if { (eval echo configure:16988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16988 rm -rf conftest*
16989 eval "ac_cv_func_$ac_func=yes"
16990else
16991 echo "configure: failed program was:" >&5
16992 cat conftest.$ac_ext >&5
16993 rm -rf conftest*
16994 eval "ac_cv_func_$ac_func=no"
16995fi
16996rm -f conftest*
16997fi
16998
16999if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17000 echo "$ac_t""yes" 1>&6
17001 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17002 cat >> confdefs.h <<EOF
17003#define $ac_tr_func 1
17004EOF
17005
17006else
17007 echo "$ac_t""no" 1>&6
17008fi
17009done
17010
17011
17012if test "$ac_cv_func_vsnprintf" = "yes"; then
17013 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
17014echo "configure:17015: checking for vsnprintf declaration" >&5
17015if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then
17016 echo $ac_n "(cached) $ac_c" 1>&6
17017else
17018
17019 cat > conftest.$ac_ext <<EOF
17020#line 17021 "configure"
17021#include "confdefs.h"
17022
17023 #include <stdio.h>
17024 #include <stdarg.h>
17025
17026int main() {
17027
17028 char *buf;
17029 va_list ap;
17030 vsnprintf(buf, 10u, "%s", ap);
17031
17032; return 0; }
17033EOF
17034if { (eval echo configure:17035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17035 rm -rf conftest*
17036 wx_cv_func_vsnprintf_decl=yes
17037else
17038 echo "configure: failed program was:" >&5
17039 cat conftest.$ac_ext >&5
17040 rm -rf conftest*
17041 wx_cv_func_vsnprintf_decl=no
17042
17043fi
17044rm -f conftest*
17045
17046
17047fi
17048
17049echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6
17050
17051 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
17052 cat >> confdefs.h <<\EOF
17053#define HAVE_VSNPRINTF_DECL 1
17054EOF
17055
17056 fi
17057fi
17058
17059if test "$wxUSE_UNICODE" = yes; then
17060 for ac_func in fputwc wprintf vswprintf
17061do
17062echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17063echo "configure:17064: checking for $ac_func" >&5
17064if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17065 echo $ac_n "(cached) $ac_c" 1>&6
17066else
17067 cat > conftest.$ac_ext <<EOF
17068#line 17069 "configure"
17069#include "confdefs.h"
17070/* System header to define __stub macros and hopefully few prototypes,
17071 which can conflict with char $ac_func(); below. */
17072#include <assert.h>
17073/* Override any gcc2 internal prototype to avoid an error. */
17074#ifdef __cplusplus
17075extern "C"
17076#endif
17077/* We use char because int might match the return type of a gcc2
17078 builtin and then its argument prototype would still apply. */
17079char $ac_func();
17080
17081int main() {
17082
17083/* The GNU C library defines this for functions which it implements
17084 to always fail with ENOSYS. Some functions are actually named
17085 something starting with __ and the normal name is an alias. */
17086#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17087choke me
17088#else
17089$ac_func();
17090#endif
17091
17092; return 0; }
17093EOF
17094if { (eval echo configure:17095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17095 rm -rf conftest*
17096 eval "ac_cv_func_$ac_func=yes"
17097else
17098 echo "configure: failed program was:" >&5
17099 cat conftest.$ac_ext >&5
17100 rm -rf conftest*
17101 eval "ac_cv_func_$ac_func=no"
17102fi
17103rm -f conftest*
17104fi
17105
17106if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17107 echo "$ac_t""yes" 1>&6
17108 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17109 cat >> confdefs.h <<EOF
17110#define $ac_tr_func 1
17111EOF
17112
17113else
17114 echo "$ac_t""no" 1>&6
17115fi
17116done
17117
17118
17119 echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6
17120echo "configure:17121: checking for _vsnwprintf" >&5
17121 cat > conftest.$ac_ext <<EOF
17122#line 17123 "configure"
17123#include "confdefs.h"
17124#include <wchar.h>
17125int main() {
17126&_vsnwprintf;
17127; return 0; }
17128EOF
17129if { (eval echo configure:17130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17130 rm -rf conftest*
17131 echo "$ac_t""yes" 1>&6
17132 cat >> confdefs.h <<\EOF
17133#define HAVE__VSNWPRINTF 1
17134EOF
17135
17136else
17137 echo "configure: failed program was:" >&5
17138 cat conftest.$ac_ext >&5
17139 rm -rf conftest*
17140 echo "$ac_t""no" 1>&6
17141fi
17142rm -f conftest*;
17143fi
17144
17145ac_ext=c
17146# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17147ac_cpp='$CPP $CPPFLAGS'
17148ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17149ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17150cross_compiling=$ac_cv_prog_cc_cross
17151
17152
17153
17154
17155if test "$TOOLKIT" != "MSW"; then
17156
17157
17158
17159ac_ext=C
17160# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17161ac_cpp='$CXXCPP $CPPFLAGS'
17162ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17163ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17164cross_compiling=$ac_cv_prog_cxx_cross
17165
17166
17167
17168 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
17169if test "${with_libiconv_prefix+set}" = set; then
17170 withval="$with_libiconv_prefix"
17171
17172 for dir in `echo "$withval" | tr : ' '`; do
17173 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
17174 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
17175 done
17176
17177fi
17178
17179
17180 echo $ac_n "checking for iconv""... $ac_c" 1>&6
17181echo "configure:17182: checking for iconv" >&5
17182if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
17183 echo $ac_n "(cached) $ac_c" 1>&6
17184else
17185
17186 am_cv_func_iconv="no, consider installing GNU libiconv"
17187 am_cv_lib_iconv=no
17188 cat > conftest.$ac_ext <<EOF
17189#line 17190 "configure"
17190#include "confdefs.h"
17191#include <stdlib.h>
17192#include <iconv.h>
17193int main() {
17194iconv_t cd = iconv_open("","");
17195 iconv(cd,NULL,NULL,NULL,NULL);
17196 iconv_close(cd);
17197; return 0; }
17198EOF
17199if { (eval echo configure:17200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17200 rm -rf conftest*
17201 am_cv_func_iconv=yes
17202else
17203 echo "configure: failed program was:" >&5
17204 cat conftest.$ac_ext >&5
17205fi
17206rm -f conftest*
17207 if test "$am_cv_func_iconv" != yes; then
17208 am_save_LIBS="$LIBS"
17209 LIBS="$LIBS -liconv"
17210 cat > conftest.$ac_ext <<EOF
17211#line 17212 "configure"
17212#include "confdefs.h"
17213#include <stdlib.h>
17214#include <iconv.h>
17215int main() {
17216iconv_t cd = iconv_open("","");
17217 iconv(cd,NULL,NULL,NULL,NULL);
17218 iconv_close(cd);
17219; return 0; }
17220EOF
17221if { (eval echo configure:17222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17222 rm -rf conftest*
17223 am_cv_lib_iconv=yes
17224 am_cv_func_iconv=yes
17225else
17226 echo "configure: failed program was:" >&5
17227 cat conftest.$ac_ext >&5
17228fi
17229rm -f conftest*
17230 LIBS="$am_save_LIBS"
17231 fi
17232
17233fi
17234
17235echo "$ac_t""$am_cv_func_iconv" 1>&6
17236 if test "$am_cv_func_iconv" = yes; then
17237 cat >> confdefs.h <<\EOF
17238#define HAVE_ICONV 1
17239EOF
17240
17241 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
17242echo "configure:17243: checking if iconv needs const" >&5
17243if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
17244 echo $ac_n "(cached) $ac_c" 1>&6
17245else
17246 cat > conftest.$ac_ext <<EOF
17247#line 17248 "configure"
17248#include "confdefs.h"
17249
17250#include <stdlib.h>
17251#include <iconv.h>
17252extern
17253#ifdef __cplusplus
17254"C"
17255#endif
17256#if defined(__STDC__) || defined(__cplusplus)
17257size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17258#else
17259size_t iconv();
17260#endif
17261
17262int main() {
17263
17264; return 0; }
17265EOF
17266if { (eval echo configure:17267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17267 rm -rf conftest*
17268 wx_cv_func_iconv_const="no"
17269else
17270 echo "configure: failed program was:" >&5
17271 cat conftest.$ac_ext >&5
17272 rm -rf conftest*
17273 wx_cv_func_iconv_const="yes"
17274
17275fi
17276rm -f conftest*
17277
17278fi
17279
17280echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
17281
17282 iconv_const=
17283 if test "x$wx_cv_func_iconv_const" = "xyes"; then
17284 iconv_const="const"
17285 fi
17286
17287 cat >> confdefs.h <<EOF
17288#define ICONV_CONST $iconv_const
17289EOF
17290
17291 fi
17292 LIBICONV=
17293 if test "$am_cv_lib_iconv" = yes; then
17294 LIBICONV="-liconv"
17295 fi
17296
17297
17298LIBS="$LIBICONV $LIBS"
17299ac_ext=c
17300# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17301ac_cpp='$CPP $CPPFLAGS'
17302ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17303ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17304cross_compiling=$ac_cv_prog_cc_cross
17305
17306
17307if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
17308 for ac_func in sigaction
17309do
17310echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17311echo "configure:17312: checking for $ac_func" >&5
17312if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17313 echo $ac_n "(cached) $ac_c" 1>&6
17314else
17315 cat > conftest.$ac_ext <<EOF
17316#line 17317 "configure"
17317#include "confdefs.h"
17318/* System header to define __stub macros and hopefully few prototypes,
17319 which can conflict with char $ac_func(); below. */
17320#include <assert.h>
17321/* Override any gcc2 internal prototype to avoid an error. */
17322/* We use char because int might match the return type of a gcc2
17323 builtin and then its argument prototype would still apply. */
17324char $ac_func();
17325
17326int main() {
17327
17328/* The GNU C library defines this for functions which it implements
17329 to always fail with ENOSYS. Some functions are actually named
17330 something starting with __ and the normal name is an alias. */
17331#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17332choke me
17333#else
17334$ac_func();
17335#endif
17336
17337; return 0; }
17338EOF
17339if { (eval echo configure:17340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17340 rm -rf conftest*
17341 eval "ac_cv_func_$ac_func=yes"
17342else
17343 echo "configure: failed program was:" >&5
17344 cat conftest.$ac_ext >&5
17345 rm -rf conftest*
17346 eval "ac_cv_func_$ac_func=no"
17347fi
17348rm -f conftest*
17349fi
17350
17351if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17352 echo "$ac_t""yes" 1>&6
17353 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17354 cat >> confdefs.h <<EOF
17355#define $ac_tr_func 1
17356EOF
17357
17358else
17359 echo "$ac_t""no" 1>&6
17360fi
17361done
17362
17363
17364 if test "$ac_cv_func_sigaction" = "no"; then
17365 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
17366 wxUSE_ON_FATAL_EXCEPTION=no
17367 fi
17368
17369 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
17370
17371 ac_ext=C
17372# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17373ac_cpp='$CXXCPP $CPPFLAGS'
17374ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17375ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17376cross_compiling=$ac_cv_prog_cxx_cross
17377
17378
17379 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
17380echo "configure:17381: checking for sa_handler type" >&5
17381if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
17382 echo $ac_n "(cached) $ac_c" 1>&6
17383else
17384
17385 cat > conftest.$ac_ext <<EOF
17386#line 17387 "configure"
17387#include "confdefs.h"
17388#include <signal.h>
17389int main() {
17390
17391 extern void testSigHandler(int);
17392
17393 struct sigaction sa;
17394 sa.sa_handler = testSigHandler;
17395
17396; return 0; }
17397EOF
17398if { (eval echo configure:17399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17399 rm -rf conftest*
17400
17401 wx_cv_type_sa_handler=int
17402
17403else
17404 echo "configure: failed program was:" >&5
17405 cat conftest.$ac_ext >&5
17406 rm -rf conftest*
17407
17408 wx_cv_type_sa_handler=void
17409
17410fi
17411rm -f conftest*
17412
17413fi
17414
17415echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
17416
17417 ac_ext=c
17418# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17419ac_cpp='$CPP $CPPFLAGS'
17420ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17421ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17422cross_compiling=$ac_cv_prog_cc_cross
17423
17424
17425 cat >> confdefs.h <<EOF
17426#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
17427EOF
17428
17429 fi
17430fi
17431
17432for ac_func in mkstemp mktemp
17433do
17434echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17435echo "configure:17436: checking for $ac_func" >&5
17436if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17437 echo $ac_n "(cached) $ac_c" 1>&6
17438else
17439 cat > conftest.$ac_ext <<EOF
17440#line 17441 "configure"
17441#include "confdefs.h"
17442/* System header to define __stub macros and hopefully few prototypes,
17443 which can conflict with char $ac_func(); below. */
17444#include <assert.h>
17445/* Override any gcc2 internal prototype to avoid an error. */
17446/* We use char because int might match the return type of a gcc2
17447 builtin and then its argument prototype would still apply. */
17448char $ac_func();
17449
17450int main() {
17451
17452/* The GNU C library defines this for functions which it implements
17453 to always fail with ENOSYS. Some functions are actually named
17454 something starting with __ and the normal name is an alias. */
17455#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17456choke me
17457#else
17458$ac_func();
17459#endif
17460
17461; return 0; }
17462EOF
17463if { (eval echo configure:17464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17464 rm -rf conftest*
17465 eval "ac_cv_func_$ac_func=yes"
17466else
17467 echo "configure: failed program was:" >&5
17468 cat conftest.$ac_ext >&5
17469 rm -rf conftest*
17470 eval "ac_cv_func_$ac_func=no"
17471fi
17472rm -f conftest*
17473fi
17474
17475if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17476 echo "$ac_t""yes" 1>&6
17477 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17478 cat >> confdefs.h <<EOF
17479#define $ac_tr_func 1
17480EOF
17481 break
17482else
17483 echo "$ac_t""no" 1>&6
17484fi
17485done
17486
17487
17488echo $ac_n "checking for statfs""... $ac_c" 1>&6
17489echo "configure:17490: checking for statfs" >&5
17490if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
17491 echo $ac_n "(cached) $ac_c" 1>&6
17492else
17493 cat > conftest.$ac_ext <<EOF
17494#line 17495 "configure"
17495#include "confdefs.h"
17496
17497 #if defined(__BSD__)
17498 #include <sys/param.h>
17499 #include <sys/mount.h>
17500 #else
17501 #include <sys/vfs.h>
17502 #endif
17503
17504int main() {
17505
17506 long l;
17507 struct statfs fs;
17508 statfs("/", &fs);
17509 l = fs.f_bsize;
17510 l += fs.f_blocks;
17511 l += fs.f_bavail;
17512
17513; return 0; }
17514EOF
17515if { (eval echo configure:17516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17516 rm -rf conftest*
17517
17518 wx_cv_func_statfs=yes
17519
17520else
17521 echo "configure: failed program was:" >&5
17522 cat conftest.$ac_ext >&5
17523 rm -rf conftest*
17524
17525 wx_cv_func_statfs=no
17526
17527
17528fi
17529rm -f conftest*
17530
17531fi
17532
17533echo "$ac_t""$wx_cv_func_statfs" 1>&6
17534
17535if test "$wx_cv_func_statfs" = "yes"; then
17536 wx_cv_type_statvfs_t="struct statfs"
17537 cat >> confdefs.h <<\EOF
17538#define HAVE_STATFS 1
17539EOF
17540
17541else
17542 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
17543echo "configure:17544: checking for statvfs" >&5
17544if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
17545 echo $ac_n "(cached) $ac_c" 1>&6
17546else
17547 cat > conftest.$ac_ext <<EOF
17548#line 17549 "configure"
17549#include "confdefs.h"
17550
17551 #include <stddef.h>
17552 #include <sys/statvfs.h>
17553
17554int main() {
17555
17556 statvfs("/", NULL);
17557
17558; return 0; }
17559EOF
17560if { (eval echo configure:17561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17561 rm -rf conftest*
17562 wx_cv_func_statvfs=yes
17563else
17564 echo "configure: failed program was:" >&5
17565 cat conftest.$ac_ext >&5
17566 rm -rf conftest*
17567 wx_cv_func_statvfs=no
17568
17569fi
17570rm -f conftest*
17571
17572fi
17573
17574echo "$ac_t""$wx_cv_func_statvfs" 1>&6
17575
17576 if test "$wx_cv_func_statvfs" = "yes"; then
17577
17578 ac_ext=C
17579# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17580ac_cpp='$CXXCPP $CPPFLAGS'
17581ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17582ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17583cross_compiling=$ac_cv_prog_cxx_cross
17584
17585
17586 echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6
17587echo "configure:17588: checking for statvfs argument type" >&5
17588if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then
17589 echo $ac_n "(cached) $ac_c" 1>&6
17590else
17591 cat > conftest.$ac_ext <<EOF
17592#line 17593 "configure"
17593#include "confdefs.h"
17594
17595 #include <sys/statvfs.h>
17596
17597int main() {
17598
17599 long l;
17600 statvfs_t fs;
17601 statvfs("/", &fs);
17602 l = fs.f_bsize;
17603 l += fs.f_blocks;
17604 l += fs.f_bavail;
17605
17606; return 0; }
17607EOF
17608if { (eval echo configure:17609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17609 rm -rf conftest*
17610 wx_cv_type_statvfs_t=statvfs_t
17611else
17612 echo "configure: failed program was:" >&5
17613 cat conftest.$ac_ext >&5
17614 rm -rf conftest*
17615
17616 cat > conftest.$ac_ext <<EOF
17617#line 17618 "configure"
17618#include "confdefs.h"
17619
17620 #include <sys/statvfs.h>
17621
17622int main() {
17623
17624 long l;
17625 struct statvfs fs;
17626 statvfs("/", &fs);
17627 l = fs.f_bsize;
17628 l += fs.f_blocks;
17629 l += fs.f_bavail;
17630
17631; return 0; }
17632EOF
17633if { (eval echo configure:17634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17634 rm -rf conftest*
17635 wx_cv_type_statvfs_t="struct statvfs"
17636else
17637 echo "configure: failed program was:" >&5
17638 cat conftest.$ac_ext >&5
17639 rm -rf conftest*
17640 wx_cv_type_statvfs_t="unknown"
17641
17642fi
17643rm -f conftest*
17644
17645
17646fi
17647rm -f conftest*
17648
17649fi
17650
17651echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6
17652
17653 ac_ext=c
17654# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17655ac_cpp='$CPP $CPPFLAGS'
17656ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17657ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17658cross_compiling=$ac_cv_prog_cc_cross
17659
17660
17661 if test "$wx_cv_type_statvfs_t" != "unknown"; then
17662 cat >> confdefs.h <<\EOF
17663#define HAVE_STATVFS 1
17664EOF
17665
17666 fi
17667 else
17668 wx_cv_type_statvfs_t="unknown"
17669 fi
17670fi
17671
17672if test "$wx_cv_type_statvfs_t" != "unknown"; then
17673 cat >> confdefs.h <<EOF
17674#define WX_STATFS_T $wx_cv_type_statvfs_t
17675EOF
17676
17677else
17678 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
17679fi
17680
17681if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
17682 for ac_func in fcntl flock
17683do
17684echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17685echo "configure:17686: checking for $ac_func" >&5
17686if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17687 echo $ac_n "(cached) $ac_c" 1>&6
17688else
17689 cat > conftest.$ac_ext <<EOF
17690#line 17691 "configure"
17691#include "confdefs.h"
17692/* System header to define __stub macros and hopefully few prototypes,
17693 which can conflict with char $ac_func(); below. */
17694#include <assert.h>
17695/* Override any gcc2 internal prototype to avoid an error. */
17696/* We use char because int might match the return type of a gcc2
17697 builtin and then its argument prototype would still apply. */
17698char $ac_func();
17699
17700int main() {
17701
17702/* The GNU C library defines this for functions which it implements
17703 to always fail with ENOSYS. Some functions are actually named
17704 something starting with __ and the normal name is an alias. */
17705#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17706choke me
17707#else
17708$ac_func();
17709#endif
17710
17711; return 0; }
17712EOF
17713if { (eval echo configure:17714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17714 rm -rf conftest*
17715 eval "ac_cv_func_$ac_func=yes"
17716else
17717 echo "configure: failed program was:" >&5
17718 cat conftest.$ac_ext >&5
17719 rm -rf conftest*
17720 eval "ac_cv_func_$ac_func=no"
17721fi
17722rm -f conftest*
17723fi
17724
17725if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17726 echo "$ac_t""yes" 1>&6
17727 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17728 cat >> confdefs.h <<EOF
17729#define $ac_tr_func 1
17730EOF
17731 break
17732else
17733 echo "$ac_t""no" 1>&6
17734fi
17735done
17736
17737
17738 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
17739 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
17740 wxUSE_SNGLINST_CHECKER=no
17741 fi
17742fi
17743
17744for ac_func in timegm
17745do
17746echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17747echo "configure:17748: checking for $ac_func" >&5
17748if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17749 echo $ac_n "(cached) $ac_c" 1>&6
17750else
17751 cat > conftest.$ac_ext <<EOF
17752#line 17753 "configure"
17753#include "confdefs.h"
17754/* System header to define __stub macros and hopefully few prototypes,
17755 which can conflict with char $ac_func(); below. */
17756#include <assert.h>
17757/* Override any gcc2 internal prototype to avoid an error. */
17758/* We use char because int might match the return type of a gcc2
17759 builtin and then its argument prototype would still apply. */
17760char $ac_func();
17761
17762int main() {
17763
17764/* The GNU C library defines this for functions which it implements
17765 to always fail with ENOSYS. Some functions are actually named
17766 something starting with __ and the normal name is an alias. */
17767#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17768choke me
17769#else
17770$ac_func();
17771#endif
17772
17773; return 0; }
17774EOF
17775if { (eval echo configure:17776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17776 rm -rf conftest*
17777 eval "ac_cv_func_$ac_func=yes"
17778else
17779 echo "configure: failed program was:" >&5
17780 cat conftest.$ac_ext >&5
17781 rm -rf conftest*
17782 eval "ac_cv_func_$ac_func=no"
17783fi
17784rm -f conftest*
17785fi
17786
17787if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17788 echo "$ac_t""yes" 1>&6
17789 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17790 cat >> confdefs.h <<EOF
17791#define $ac_tr_func 1
17792EOF
17793
17794else
17795 echo "$ac_t""no" 1>&6
17796fi
17797done
17798
17799
17800for ac_func in putenv setenv
17801do
17802echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17803echo "configure:17804: checking for $ac_func" >&5
17804if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17805 echo $ac_n "(cached) $ac_c" 1>&6
17806else
17807 cat > conftest.$ac_ext <<EOF
17808#line 17809 "configure"
17809#include "confdefs.h"
17810/* System header to define __stub macros and hopefully few prototypes,
17811 which can conflict with char $ac_func(); below. */
17812#include <assert.h>
17813/* Override any gcc2 internal prototype to avoid an error. */
17814/* We use char because int might match the return type of a gcc2
17815 builtin and then its argument prototype would still apply. */
17816char $ac_func();
17817
17818int main() {
17819
17820/* The GNU C library defines this for functions which it implements
17821 to always fail with ENOSYS. Some functions are actually named
17822 something starting with __ and the normal name is an alias. */
17823#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17824choke me
17825#else
17826$ac_func();
17827#endif
17828
17829; return 0; }
17830EOF
17831if { (eval echo configure:17832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17832 rm -rf conftest*
17833 eval "ac_cv_func_$ac_func=yes"
17834else
17835 echo "configure: failed program was:" >&5
17836 cat conftest.$ac_ext >&5
17837 rm -rf conftest*
17838 eval "ac_cv_func_$ac_func=no"
17839fi
17840rm -f conftest*
17841fi
17842
17843if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17844 echo "$ac_t""yes" 1>&6
17845 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17846 cat >> confdefs.h <<EOF
17847#define $ac_tr_func 1
17848EOF
17849 break
17850else
17851 echo "$ac_t""no" 1>&6
17852fi
17853done
17854
17855
17856HAVE_SOME_SLEEP_FUNC=0
17857if test "$USE_BEOS" = 1; then
17858 cat >> confdefs.h <<\EOF
17859#define HAVE_SLEEP 1
17860EOF
17861
17862 HAVE_SOME_SLEEP_FUNC=1
17863fi
17864
17865if test "$USE_DARWIN" = 1; then
17866 cat >> confdefs.h <<\EOF
17867#define HAVE_USLEEP 1
17868EOF
17869
17870 HAVE_SOME_SLEEP_FUNC=1
17871fi
17872
17873if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
17874 POSIX4_LINK=
17875 for ac_func in nanosleep
17876do
17877echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17878echo "configure:17879: checking for $ac_func" >&5
17879if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17880 echo $ac_n "(cached) $ac_c" 1>&6
17881else
17882 cat > conftest.$ac_ext <<EOF
17883#line 17884 "configure"
17884#include "confdefs.h"
17885/* System header to define __stub macros and hopefully few prototypes,
17886 which can conflict with char $ac_func(); below. */
17887#include <assert.h>
17888/* Override any gcc2 internal prototype to avoid an error. */
17889/* We use char because int might match the return type of a gcc2
17890 builtin and then its argument prototype would still apply. */
17891char $ac_func();
17892
17893int main() {
17894
17895/* The GNU C library defines this for functions which it implements
17896 to always fail with ENOSYS. Some functions are actually named
17897 something starting with __ and the normal name is an alias. */
17898#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17899choke me
17900#else
17901$ac_func();
17902#endif
17903
17904; return 0; }
17905EOF
17906if { (eval echo configure:17907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17907 rm -rf conftest*
17908 eval "ac_cv_func_$ac_func=yes"
17909else
17910 echo "configure: failed program was:" >&5
17911 cat conftest.$ac_ext >&5
17912 rm -rf conftest*
17913 eval "ac_cv_func_$ac_func=no"
17914fi
17915rm -f conftest*
17916fi
17917
17918if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17919 echo "$ac_t""yes" 1>&6
17920 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17921 cat >> confdefs.h <<EOF
17922#define $ac_tr_func 1
17923EOF
17924 cat >> confdefs.h <<\EOF
17925#define HAVE_NANOSLEEP 1
17926EOF
17927
17928else
17929 echo "$ac_t""no" 1>&6
17930echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
17931echo "configure:17932: checking for nanosleep in -lposix4" >&5
17932ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
17933if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17934 echo $ac_n "(cached) $ac_c" 1>&6
17935else
17936 ac_save_LIBS="$LIBS"
17937LIBS="-lposix4 $LIBS"
17938cat > conftest.$ac_ext <<EOF
17939#line 17940 "configure"
17940#include "confdefs.h"
17941/* Override any gcc2 internal prototype to avoid an error. */
17942/* We use char because int might match the return type of a gcc2
17943 builtin and then its argument prototype would still apply. */
17944char nanosleep();
17945
17946int main() {
17947nanosleep()
17948; return 0; }
17949EOF
17950if { (eval echo configure:17951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17951 rm -rf conftest*
17952 eval "ac_cv_lib_$ac_lib_var=yes"
17953else
17954 echo "configure: failed program was:" >&5
17955 cat conftest.$ac_ext >&5
17956 rm -rf conftest*
17957 eval "ac_cv_lib_$ac_lib_var=no"
17958fi
17959rm -f conftest*
17960LIBS="$ac_save_LIBS"
17961
17962fi
17963if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17964 echo "$ac_t""yes" 1>&6
17965
17966 cat >> confdefs.h <<\EOF
17967#define HAVE_NANOSLEEP 1
17968EOF
17969
17970 POSIX4_LINK=" -lposix4"
17971
17972else
17973 echo "$ac_t""no" 1>&6
17974
17975 for ac_func in usleep
17976do
17977echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17978echo "configure:17979: checking for $ac_func" >&5
17979if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17980 echo $ac_n "(cached) $ac_c" 1>&6
17981else
17982 cat > conftest.$ac_ext <<EOF
17983#line 17984 "configure"
17984#include "confdefs.h"
17985/* System header to define __stub macros and hopefully few prototypes,
17986 which can conflict with char $ac_func(); below. */
17987#include <assert.h>
17988/* Override any gcc2 internal prototype to avoid an error. */
17989/* We use char because int might match the return type of a gcc2
17990 builtin and then its argument prototype would still apply. */
17991char $ac_func();
17992
17993int main() {
17994
17995/* The GNU C library defines this for functions which it implements
17996 to always fail with ENOSYS. Some functions are actually named
17997 something starting with __ and the normal name is an alias. */
17998#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17999choke me
18000#else
18001$ac_func();
18002#endif
18003
18004; return 0; }
18005EOF
18006if { (eval echo configure:18007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18007 rm -rf conftest*
18008 eval "ac_cv_func_$ac_func=yes"
18009else
18010 echo "configure: failed program was:" >&5
18011 cat conftest.$ac_ext >&5
18012 rm -rf conftest*
18013 eval "ac_cv_func_$ac_func=no"
18014fi
18015rm -f conftest*
18016fi
18017
18018if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18019 echo "$ac_t""yes" 1>&6
18020 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18021 cat >> confdefs.h <<EOF
18022#define $ac_tr_func 1
18023EOF
18024 cat >> confdefs.h <<\EOF
18025#define HAVE_USLEEP 1
18026EOF
18027
18028else
18029 echo "$ac_t""no" 1>&6
18030echo "configure: warning: wxSleep() function will not work" 1>&2
18031
18032fi
18033done
18034
18035
18036
18037fi
18038
18039
18040
18041fi
18042done
18043
18044fi
18045
18046for ac_func in uname gethostname
18047do
18048echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18049echo "configure:18050: checking for $ac_func" >&5
18050if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18051 echo $ac_n "(cached) $ac_c" 1>&6
18052else
18053 cat > conftest.$ac_ext <<EOF
18054#line 18055 "configure"
18055#include "confdefs.h"
18056/* System header to define __stub macros and hopefully few prototypes,
18057 which can conflict with char $ac_func(); below. */
18058#include <assert.h>
18059/* Override any gcc2 internal prototype to avoid an error. */
18060/* We use char because int might match the return type of a gcc2
18061 builtin and then its argument prototype would still apply. */
18062char $ac_func();
18063
18064int main() {
18065
18066/* The GNU C library defines this for functions which it implements
18067 to always fail with ENOSYS. Some functions are actually named
18068 something starting with __ and the normal name is an alias. */
18069#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18070choke me
18071#else
18072$ac_func();
18073#endif
18074
18075; return 0; }
18076EOF
18077if { (eval echo configure:18078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18078 rm -rf conftest*
18079 eval "ac_cv_func_$ac_func=yes"
18080else
18081 echo "configure: failed program was:" >&5
18082 cat conftest.$ac_ext >&5
18083 rm -rf conftest*
18084 eval "ac_cv_func_$ac_func=no"
18085fi
18086rm -f conftest*
18087fi
18088
18089if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18090 echo "$ac_t""yes" 1>&6
18091 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18092 cat >> confdefs.h <<EOF
18093#define $ac_tr_func 1
18094EOF
18095 break
18096else
18097 echo "$ac_t""no" 1>&6
18098fi
18099done
18100
18101
18102
18103ac_ext=C
18104# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18105ac_cpp='$CXXCPP $CPPFLAGS'
18106ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18107ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18108cross_compiling=$ac_cv_prog_cxx_cross
18109
18110
18111for ac_func in strtok_r
18112do
18113echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18114echo "configure:18115: checking for $ac_func" >&5
18115if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18116 echo $ac_n "(cached) $ac_c" 1>&6
18117else
18118 cat > conftest.$ac_ext <<EOF
18119#line 18120 "configure"
18120#include "confdefs.h"
18121/* System header to define __stub macros and hopefully few prototypes,
18122 which can conflict with char $ac_func(); below. */
18123#include <assert.h>
18124/* Override any gcc2 internal prototype to avoid an error. */
18125#ifdef __cplusplus
18126extern "C"
18127#endif
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 $ac_func();
18131
18132int main() {
18133
18134/* The GNU C library defines this for functions which it implements
18135 to always fail with ENOSYS. Some functions are actually named
18136 something starting with __ and the normal name is an alias. */
18137#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18138choke me
18139#else
18140$ac_func();
18141#endif
18142
18143; return 0; }
18144EOF
18145if { (eval echo configure:18146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18146 rm -rf conftest*
18147 eval "ac_cv_func_$ac_func=yes"
18148else
18149 echo "configure: failed program was:" >&5
18150 cat conftest.$ac_ext >&5
18151 rm -rf conftest*
18152 eval "ac_cv_func_$ac_func=no"
18153fi
18154rm -f conftest*
18155fi
18156
18157if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18158 echo "$ac_t""yes" 1>&6
18159 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18160 cat >> confdefs.h <<EOF
18161#define $ac_tr_func 1
18162EOF
18163
18164else
18165 echo "$ac_t""no" 1>&6
18166fi
18167done
18168
18169
18170ac_ext=c
18171# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18172ac_cpp='$CPP $CPPFLAGS'
18173ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18174ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18175cross_compiling=$ac_cv_prog_cc_cross
18176
18177
18178INET_LINK=
18179for ac_func in inet_addr
18180do
18181echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18182echo "configure:18183: checking for $ac_func" >&5
18183if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18184 echo $ac_n "(cached) $ac_c" 1>&6
18185else
18186 cat > conftest.$ac_ext <<EOF
18187#line 18188 "configure"
18188#include "confdefs.h"
18189/* System header to define __stub macros and hopefully few prototypes,
18190 which can conflict with char $ac_func(); below. */
18191#include <assert.h>
18192/* Override any gcc2 internal prototype to avoid an error. */
18193/* We use char because int might match the return type of a gcc2
18194 builtin and then its argument prototype would still apply. */
18195char $ac_func();
18196
18197int main() {
18198
18199/* The GNU C library defines this for functions which it implements
18200 to always fail with ENOSYS. Some functions are actually named
18201 something starting with __ and the normal name is an alias. */
18202#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18203choke me
18204#else
18205$ac_func();
18206#endif
18207
18208; return 0; }
18209EOF
18210if { (eval echo configure:18211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18211 rm -rf conftest*
18212 eval "ac_cv_func_$ac_func=yes"
18213else
18214 echo "configure: failed program was:" >&5
18215 cat conftest.$ac_ext >&5
18216 rm -rf conftest*
18217 eval "ac_cv_func_$ac_func=no"
18218fi
18219rm -f conftest*
18220fi
18221
18222if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18223 echo "$ac_t""yes" 1>&6
18224 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18225 cat >> confdefs.h <<EOF
18226#define $ac_tr_func 1
18227EOF
18228 cat >> confdefs.h <<\EOF
18229#define HAVE_INET_ADDR 1
18230EOF
18231
18232else
18233 echo "$ac_t""no" 1>&6
18234echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
18235echo "configure:18236: checking for inet_addr in -lnsl" >&5
18236ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
18237if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18238 echo $ac_n "(cached) $ac_c" 1>&6
18239else
18240 ac_save_LIBS="$LIBS"
18241LIBS="-lnsl $LIBS"
18242cat > conftest.$ac_ext <<EOF
18243#line 18244 "configure"
18244#include "confdefs.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 inet_addr();
18249
18250int main() {
18251inet_addr()
18252; return 0; }
18253EOF
18254if { (eval echo configure:18255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18255 rm -rf conftest*
18256 eval "ac_cv_lib_$ac_lib_var=yes"
18257else
18258 echo "configure: failed program was:" >&5
18259 cat conftest.$ac_ext >&5
18260 rm -rf conftest*
18261 eval "ac_cv_lib_$ac_lib_var=no"
18262fi
18263rm -f conftest*
18264LIBS="$ac_save_LIBS"
18265
18266fi
18267if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18268 echo "$ac_t""yes" 1>&6
18269 INET_LINK="nsl"
18270else
18271 echo "$ac_t""no" 1>&6
18272echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
18273echo "configure:18274: checking for inet_addr in -lresolv" >&5
18274ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
18275if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18276 echo $ac_n "(cached) $ac_c" 1>&6
18277else
18278 ac_save_LIBS="$LIBS"
18279LIBS="-lresolv $LIBS"
18280cat > conftest.$ac_ext <<EOF
18281#line 18282 "configure"
18282#include "confdefs.h"
18283/* Override any gcc2 internal prototype to avoid an error. */
18284/* We use char because int might match the return type of a gcc2
18285 builtin and then its argument prototype would still apply. */
18286char inet_addr();
18287
18288int main() {
18289inet_addr()
18290; return 0; }
18291EOF
18292if { (eval echo configure:18293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18293 rm -rf conftest*
18294 eval "ac_cv_lib_$ac_lib_var=yes"
18295else
18296 echo "configure: failed program was:" >&5
18297 cat conftest.$ac_ext >&5
18298 rm -rf conftest*
18299 eval "ac_cv_lib_$ac_lib_var=no"
18300fi
18301rm -f conftest*
18302LIBS="$ac_save_LIBS"
18303
18304fi
18305if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18306 echo "$ac_t""yes" 1>&6
18307 INET_LINK="resolv"
18308else
18309 echo "$ac_t""no" 1>&6
18310echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
18311echo "configure:18312: checking for inet_addr in -lsocket" >&5
18312ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
18313if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18314 echo $ac_n "(cached) $ac_c" 1>&6
18315else
18316 ac_save_LIBS="$LIBS"
18317LIBS="-lsocket $LIBS"
18318cat > conftest.$ac_ext <<EOF
18319#line 18320 "configure"
18320#include "confdefs.h"
18321/* Override any gcc2 internal prototype to avoid an error. */
18322/* We use char because int might match the return type of a gcc2
18323 builtin and then its argument prototype would still apply. */
18324char inet_addr();
18325
18326int main() {
18327inet_addr()
18328; return 0; }
18329EOF
18330if { (eval echo configure:18331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18331 rm -rf conftest*
18332 eval "ac_cv_lib_$ac_lib_var=yes"
18333else
18334 echo "configure: failed program was:" >&5
18335 cat conftest.$ac_ext >&5
18336 rm -rf conftest*
18337 eval "ac_cv_lib_$ac_lib_var=no"
18338fi
18339rm -f conftest*
18340LIBS="$ac_save_LIBS"
18341
18342fi
18343if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18344 echo "$ac_t""yes" 1>&6
18345 INET_LINK="socket"
18346
18347else
18348 echo "$ac_t""no" 1>&6
18349fi
18350
18351
18352fi
18353
18354
18355fi
18356
18357
18358
18359fi
18360done
18361
18362
18363for ac_func in inet_aton
18364do
18365echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18366echo "configure:18367: checking for $ac_func" >&5
18367if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18368 echo $ac_n "(cached) $ac_c" 1>&6
18369else
18370 cat > conftest.$ac_ext <<EOF
18371#line 18372 "configure"
18372#include "confdefs.h"
18373/* System header to define __stub macros and hopefully few prototypes,
18374 which can conflict with char $ac_func(); below. */
18375#include <assert.h>
18376/* Override any gcc2 internal prototype to avoid an error. */
18377/* We use char because int might match the return type of a gcc2
18378 builtin and then its argument prototype would still apply. */
18379char $ac_func();
18380
18381int main() {
18382
18383/* The GNU C library defines this for functions which it implements
18384 to always fail with ENOSYS. Some functions are actually named
18385 something starting with __ and the normal name is an alias. */
18386#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18387choke me
18388#else
18389$ac_func();
18390#endif
18391
18392; return 0; }
18393EOF
18394if { (eval echo configure:18395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18395 rm -rf conftest*
18396 eval "ac_cv_func_$ac_func=yes"
18397else
18398 echo "configure: failed program was:" >&5
18399 cat conftest.$ac_ext >&5
18400 rm -rf conftest*
18401 eval "ac_cv_func_$ac_func=no"
18402fi
18403rm -f conftest*
18404fi
18405
18406if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18407 echo "$ac_t""yes" 1>&6
18408 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18409 cat >> confdefs.h <<EOF
18410#define $ac_tr_func 1
18411EOF
18412 cat >> confdefs.h <<\EOF
18413#define HAVE_INET_ATON 1
18414EOF
18415
18416else
18417 echo "$ac_t""no" 1>&6
18418 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
18419echo "configure:18420: checking for inet_aton in -l$INET_LINK" >&5
18420ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
18421if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18422 echo $ac_n "(cached) $ac_c" 1>&6
18423else
18424 ac_save_LIBS="$LIBS"
18425LIBS="-l$INET_LINK $LIBS"
18426cat > conftest.$ac_ext <<EOF
18427#line 18428 "configure"
18428#include "confdefs.h"
18429/* Override any gcc2 internal prototype to avoid an error. */
18430/* We use char because int might match the return type of a gcc2
18431 builtin and then its argument prototype would still apply. */
18432char inet_aton();
18433
18434int main() {
18435inet_aton()
18436; return 0; }
18437EOF
18438if { (eval echo configure:18439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18439 rm -rf conftest*
18440 eval "ac_cv_lib_$ac_lib_var=yes"
18441else
18442 echo "configure: failed program was:" >&5
18443 cat conftest.$ac_ext >&5
18444 rm -rf conftest*
18445 eval "ac_cv_lib_$ac_lib_var=no"
18446fi
18447rm -f conftest*
18448LIBS="$ac_save_LIBS"
18449
18450fi
18451if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18452 echo "$ac_t""yes" 1>&6
18453 cat >> confdefs.h <<\EOF
18454#define HAVE_INET_ATON 1
18455EOF
18456
18457else
18458 echo "$ac_t""no" 1>&6
18459fi
18460
18461
18462fi
18463done
18464
18465
18466if test "x$INET_LINK" != "x"; then
18467 cat >> confdefs.h <<\EOF
18468#define HAVE_INET_ADDR 1
18469EOF
18470
18471 INET_LINK=" -l$INET_LINK"
18472fi
18473
18474fi
18475
18476
18477cat > confcache <<\EOF
18478# This file is a shell script that caches the results of configure
18479# tests run on this system so they can be shared between configure
18480# scripts and configure runs. It is not useful on other systems.
18481# If it contains results you don't want to keep, you may remove or edit it.
18482#
18483# By default, configure uses ./config.cache as the cache file,
18484# creating it if it does not exist already. You can give configure
18485# the --cache-file=FILE option to use a different cache file; that is
18486# what configure does when it calls configure scripts in
18487# subdirectories, so they share the cache.
18488# Giving --cache-file=/dev/null disables caching, for debugging configure.
18489# config.status only pays attention to the cache file if you give it the
18490# --recheck option to rerun configure.
18491#
18492EOF
18493# The following way of writing the cache mishandles newlines in values,
18494# but we know of no workaround that is simple, portable, and efficient.
18495# So, don't put newlines in cache variables' values.
18496# Ultrix sh set writes to stderr and can't be redirected directly,
18497# and sets the high bit in the cache file unless we assign to the vars.
18498(set) 2>&1 |
18499 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18500 *ac_space=\ *)
18501 # `set' does not quote correctly, so add quotes (double-quote substitution
18502 # turns \\\\ into \\, and sed turns \\ into \).
18503 sed -n \
18504 -e "s/'/'\\\\''/g" \
18505 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18506 ;;
18507 *)
18508 # `set' quotes correctly as required by POSIX, so do not add quotes.
18509 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18510 ;;
18511 esac >> confcache
18512if cmp -s $cache_file confcache; then
18513 :
18514else
18515 if test -w $cache_file; then
18516 echo "updating cache $cache_file"
18517 cat confcache > $cache_file
18518 else
18519 echo "not updating unwritable cache $cache_file"
18520 fi
18521fi
18522rm -f confcache
18523
18524
18525
18526CPP_MT_FLAG=
18527if test "$TOOLKIT" != "MSW"; then
18528
18529
18530 THREADS_LINK=
18531 THREADS_CFLAGS=
18532
18533 if test "$wxUSE_THREADS" = "yes" ; then
18534 if test "$USE_BEOS" = 1; then
18535 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
18536 wxUSE_THREADS="no"
18537 fi
18538 fi
18539
18540 if test "$wxUSE_THREADS" = "yes" ; then
18541
18542
18543 THREAD_OPTS="-pthread"
18544 case "${host}" in
18545 *-*-solaris2* | *-*-sunos4* )
18546 if test "x$GCC" = "xyes"; then
18547 THREAD_OPTS="-pthreads $THREAD_OPTS"
18548 else
18549 THREAD_OPTS="-mt $THREAD_OPTS"
18550 fi
18551 ;;
18552 *-*-freebsd*)
18553 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
18554 ;;
18555 *-*-darwin* | *-*-cygwin* )
18556 THREAD_OPTS=""
18557 ;;
18558 *-*-aix*)
18559 THREAD_OPTS="pthreads"
18560 ;;
18561 *-hp-hpux* )
18562 if test "x$GCC" != "xyes"; then
18563 THREAD_OPTS=""
18564 fi
18565 esac
18566
18567 THREAD_OPTS="$THREAD_OPTS pthread none"
18568
18569 THREADS_OK=no
18570 for flag in $THREAD_OPTS; do
18571 case $flag in
18572 none)
18573 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
18574echo "configure:18575: checking whether pthreads work without any flags" >&5
18575 ;;
18576
18577 -*)
18578 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
18579echo "configure:18580: checking whether pthreads work with $flag" >&5
18580 THREADS_CFLAGS="$flag"
18581 ;;
18582
18583 *)
18584 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
18585echo "configure:18586: checking for the pthreads library -l$flag" >&5
18586 THREADS_LINK="-l$flag"
18587 ;;
18588 esac
18589
18590 save_LIBS="$LIBS"
18591 save_CFLAGS="$CFLAGS"
18592 LIBS="$THREADS_LINK $LIBS"
18593 CFLAGS="$THREADS_CFLAGS $CFLAGS"
18594
18595 cat > conftest.$ac_ext <<EOF
18596#line 18597 "configure"
18597#include "confdefs.h"
18598#include <pthread.h>
18599int main() {
18600pthread_create(0,0,0,0);
18601; return 0; }
18602EOF
18603if { (eval echo configure:18604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18604 rm -rf conftest*
18605 THREADS_OK=yes
18606else
18607 echo "configure: failed program was:" >&5
18608 cat conftest.$ac_ext >&5
18609fi
18610rm -f conftest*
18611
18612 LIBS="$save_LIBS"
18613 CFLAGS="$save_CFLAGS"
18614
18615 echo "$ac_t""$THREADS_OK" 1>&6
18616 if test "x$THREADS_OK" = "xyes"; then
18617 break;
18618 fi
18619
18620 THREADS_LINK=""
18621 THREADS_CFLAGS=""
18622 done
18623
18624 if test "x$THREADS_OK" != "xyes"; then
18625 wxUSE_THREADS=no
18626 echo "configure: warning: No thread support on this system... disabled" 1>&2
18627 else
18628 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
18629 LIBS="$THREADS_LINK $LIBS"
18630
18631 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
18632echo "configure:18633: checking if more special flags are required for pthreads" >&5
18633 flag=no
18634 case "${host}" in
18635 *-aix*)
18636 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
18637 flag="-D_THREAD_SAFE"
18638 ;;
18639 *-freebsd*)
18640 flag="-D_THREAD_SAFE"
18641 ;;
18642 *-hp-hpux* )
18643 flag="-D_REENTRANT"
18644 if test "x$GCC" != "xyes"; then
18645 flag="$flag -D_RWSTD_MULTI_THREAD"
18646 fi
18647 ;;
18648 *solaris* | alpha*-osf*)
18649 flag="-D_REENTRANT"
18650 ;;
18651 esac
18652 echo "$ac_t""${flag}" 1>&6
18653 if test "x$flag" != xno; then
18654 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
18655 fi
18656
18657 if test "x$THREADS_CFLAGS" != "x"; then
18658 CFLAGS="$CFLAGS $THREADS_CFLAGS"
18659 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
18660 fi
18661 fi
18662 fi
18663
18664 if test "$wxUSE_THREADS" = "yes" ; then
18665 for ac_func in thr_setconcurrency
18666do
18667echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18668echo "configure:18669: checking for $ac_func" >&5
18669if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18670 echo $ac_n "(cached) $ac_c" 1>&6
18671else
18672 cat > conftest.$ac_ext <<EOF
18673#line 18674 "configure"
18674#include "confdefs.h"
18675/* System header to define __stub macros and hopefully few prototypes,
18676 which can conflict with char $ac_func(); below. */
18677#include <assert.h>
18678/* Override any gcc2 internal prototype to avoid an error. */
18679/* We use char because int might match the return type of a gcc2
18680 builtin and then its argument prototype would still apply. */
18681char $ac_func();
18682
18683int main() {
18684
18685/* The GNU C library defines this for functions which it implements
18686 to always fail with ENOSYS. Some functions are actually named
18687 something starting with __ and the normal name is an alias. */
18688#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18689choke me
18690#else
18691$ac_func();
18692#endif
18693
18694; return 0; }
18695EOF
18696if { (eval echo configure:18697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18697 rm -rf conftest*
18698 eval "ac_cv_func_$ac_func=yes"
18699else
18700 echo "configure: failed program was:" >&5
18701 cat conftest.$ac_ext >&5
18702 rm -rf conftest*
18703 eval "ac_cv_func_$ac_func=no"
18704fi
18705rm -f conftest*
18706fi
18707
18708if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18709 echo "$ac_t""yes" 1>&6
18710 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18711 cat >> confdefs.h <<EOF
18712#define $ac_tr_func 1
18713EOF
18714
18715else
18716 echo "$ac_t""no" 1>&6
18717fi
18718done
18719
18720
18721 for ac_hdr in sched.h
18722do
18723ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18724echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18725echo "configure:18726: checking for $ac_hdr" >&5
18726if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18727 echo $ac_n "(cached) $ac_c" 1>&6
18728else
18729 cat > conftest.$ac_ext <<EOF
18730#line 18731 "configure"
18731#include "confdefs.h"
18732#include <$ac_hdr>
18733EOF
18734ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18735{ (eval echo configure:18736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18736ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18737if test -z "$ac_err"; then
18738 rm -rf conftest*
18739 eval "ac_cv_header_$ac_safe=yes"
18740else
18741 echo "$ac_err" >&5
18742 echo "configure: failed program was:" >&5
18743 cat conftest.$ac_ext >&5
18744 rm -rf conftest*
18745 eval "ac_cv_header_$ac_safe=no"
18746fi
18747rm -f conftest*
18748fi
18749if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18750 echo "$ac_t""yes" 1>&6
18751 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18752 cat >> confdefs.h <<EOF
18753#define $ac_tr_hdr 1
18754EOF
18755
18756else
18757 echo "$ac_t""no" 1>&6
18758fi
18759done
18760
18761 if test "$ac_cv_header_sched_h" = "yes"; then
18762 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
18763echo "configure:18764: checking for sched_yield" >&5
18764if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
18765 echo $ac_n "(cached) $ac_c" 1>&6
18766else
18767 cat > conftest.$ac_ext <<EOF
18768#line 18769 "configure"
18769#include "confdefs.h"
18770/* System header to define __stub macros and hopefully few prototypes,
18771 which can conflict with char sched_yield(); below. */
18772#include <assert.h>
18773/* Override any gcc2 internal prototype to avoid an error. */
18774/* We use char because int might match the return type of a gcc2
18775 builtin and then its argument prototype would still apply. */
18776char sched_yield();
18777
18778int main() {
18779
18780/* The GNU C library defines this for functions which it implements
18781 to always fail with ENOSYS. Some functions are actually named
18782 something starting with __ and the normal name is an alias. */
18783#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
18784choke me
18785#else
18786sched_yield();
18787#endif
18788
18789; return 0; }
18790EOF
18791if { (eval echo configure:18792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18792 rm -rf conftest*
18793 eval "ac_cv_func_sched_yield=yes"
18794else
18795 echo "configure: failed program was:" >&5
18796 cat conftest.$ac_ext >&5
18797 rm -rf conftest*
18798 eval "ac_cv_func_sched_yield=no"
18799fi
18800rm -f conftest*
18801fi
18802
18803if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
18804 echo "$ac_t""yes" 1>&6
18805 cat >> confdefs.h <<\EOF
18806#define HAVE_SCHED_YIELD 1
18807EOF
18808
18809else
18810 echo "$ac_t""no" 1>&6
18811
18812 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
18813echo "configure:18814: checking for sched_yield in -lposix4" >&5
18814ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
18815if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18816 echo $ac_n "(cached) $ac_c" 1>&6
18817else
18818 ac_save_LIBS="$LIBS"
18819LIBS="-lposix4 $LIBS"
18820cat > conftest.$ac_ext <<EOF
18821#line 18822 "configure"
18822#include "confdefs.h"
18823/* Override any gcc2 internal prototype to avoid an error. */
18824/* We use char because int might match the return type of a gcc2
18825 builtin and then its argument prototype would still apply. */
18826char sched_yield();
18827
18828int main() {
18829sched_yield()
18830; return 0; }
18831EOF
18832if { (eval echo configure:18833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18833 rm -rf conftest*
18834 eval "ac_cv_lib_$ac_lib_var=yes"
18835else
18836 echo "configure: failed program was:" >&5
18837 cat conftest.$ac_ext >&5
18838 rm -rf conftest*
18839 eval "ac_cv_lib_$ac_lib_var=no"
18840fi
18841rm -f conftest*
18842LIBS="$ac_save_LIBS"
18843
18844fi
18845if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18846 echo "$ac_t""yes" 1>&6
18847 cat >> confdefs.h <<\EOF
18848#define HAVE_SCHED_YIELD 1
18849EOF
18850 POSIX4_LINK=" -lposix4"
18851else
18852 echo "$ac_t""no" 1>&6
18853echo "configure: warning: wxThread::Yield will not work properly" 1>&2
18854
18855fi
18856
18857
18858
18859fi
18860
18861 fi
18862
18863 HAVE_PRIOR_FUNCS=0
18864 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
18865echo "configure:18866: checking for pthread_attr_getschedpolicy" >&5
18866if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
18867 echo $ac_n "(cached) $ac_c" 1>&6
18868else
18869 cat > conftest.$ac_ext <<EOF
18870#line 18871 "configure"
18871#include "confdefs.h"
18872/* System header to define __stub macros and hopefully few prototypes,
18873 which can conflict with char pthread_attr_getschedpolicy(); below. */
18874#include <assert.h>
18875/* Override any gcc2 internal prototype to avoid an error. */
18876/* We use char because int might match the return type of a gcc2
18877 builtin and then its argument prototype would still apply. */
18878char pthread_attr_getschedpolicy();
18879
18880int main() {
18881
18882/* The GNU C library defines this for functions which it implements
18883 to always fail with ENOSYS. Some functions are actually named
18884 something starting with __ and the normal name is an alias. */
18885#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
18886choke me
18887#else
18888pthread_attr_getschedpolicy();
18889#endif
18890
18891; return 0; }
18892EOF
18893if { (eval echo configure:18894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18894 rm -rf conftest*
18895 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
18896else
18897 echo "configure: failed program was:" >&5
18898 cat conftest.$ac_ext >&5
18899 rm -rf conftest*
18900 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
18901fi
18902rm -f conftest*
18903fi
18904
18905if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
18906 echo "$ac_t""yes" 1>&6
18907 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
18908echo "configure:18909: checking for pthread_attr_setschedparam" >&5
18909if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
18910 echo $ac_n "(cached) $ac_c" 1>&6
18911else
18912 cat > conftest.$ac_ext <<EOF
18913#line 18914 "configure"
18914#include "confdefs.h"
18915/* System header to define __stub macros and hopefully few prototypes,
18916 which can conflict with char pthread_attr_setschedparam(); below. */
18917#include <assert.h>
18918/* Override any gcc2 internal prototype to avoid an error. */
18919/* We use char because int might match the return type of a gcc2
18920 builtin and then its argument prototype would still apply. */
18921char pthread_attr_setschedparam();
18922
18923int main() {
18924
18925/* The GNU C library defines this for functions which it implements
18926 to always fail with ENOSYS. Some functions are actually named
18927 something starting with __ and the normal name is an alias. */
18928#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
18929choke me
18930#else
18931pthread_attr_setschedparam();
18932#endif
18933
18934; return 0; }
18935EOF
18936if { (eval echo configure:18937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18937 rm -rf conftest*
18938 eval "ac_cv_func_pthread_attr_setschedparam=yes"
18939else
18940 echo "configure: failed program was:" >&5
18941 cat conftest.$ac_ext >&5
18942 rm -rf conftest*
18943 eval "ac_cv_func_pthread_attr_setschedparam=no"
18944fi
18945rm -f conftest*
18946fi
18947
18948if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
18949 echo "$ac_t""yes" 1>&6
18950 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
18951echo "configure:18952: checking for sched_get_priority_max" >&5
18952if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
18953 echo $ac_n "(cached) $ac_c" 1>&6
18954else
18955 cat > conftest.$ac_ext <<EOF
18956#line 18957 "configure"
18957#include "confdefs.h"
18958/* System header to define __stub macros and hopefully few prototypes
18959else
18960 echo "$ac_t""no" 1>&6
18961which can conflict with char sched_get_priority_max(); below. */
18962#include <assert.h>
18963/* Override any gcc2 internal prototype to avoid an error. */
18964/* We use char because int might match the return type of a gcc2
18965 builtin and then its argument prototype would still apply. */
18966char sched_get_priority_max();
18967
18968int main() {
18969
18970/* The GNU C library defines this for functions which it implements
18971 to always fail with ENOSYS. Some functions are actually named
18972 something starting with __ and the normal name is an alias. */
18973#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
18974choke me
18975#else
18976sched_get_priority_max();
18977#endif
18978
18979; return 0; }
18980EOF
18981if { (eval echo configure:18982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18982 rm -rf conftest*
18983 eval "ac_cv_func_sched_get_priority_max=yes"
18984else
18985 echo "configure: failed program was:" >&5
18986 cat conftest.$ac_ext >&5
18987 rm -rf conftest*
18988 eval "ac_cv_func_sched_get_priority_max=no"
18989fi
18990rm -f conftest*
18991fi
18992
18993if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
18994 echo "$ac_t""yes" 1>&6
18995 HAVE_PRIOR_FUNCS=1
18996else
18997 echo "$ac_t""no" 1>&6
18998echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
18999echo "configure:19000: checking for sched_get_priority_max in -lposix4" >&5
19000ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
19001if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19002 echo $ac_n "(cached) $ac_c" 1>&6
19003else
19004 ac_save_LIBS="$LIBS"
19005LIBS="-lposix4 $LIBS"
19006cat > conftest.$ac_ext <<EOF
19007#line 19008 "configure"
19008#include "confdefs.h"
19009/* Override any gcc2 internal prototype to avoid an error. */
19010/* We use char because int might match the return type of a gcc2
19011 builtin and then its argument prototype would still apply. */
19012char sched_get_priority_max();
19013
19014int main() {
19015sched_get_priority_max()
19016; return 0; }
19017EOF
19018if { (eval echo configure:19019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19019 rm -rf conftest*
19020 eval "ac_cv_lib_$ac_lib_var=yes"
19021else
19022 echo "configure: failed program was:" >&5
19023 cat conftest.$ac_ext >&5
19024 rm -rf conftest*
19025 eval "ac_cv_lib_$ac_lib_var=no"
19026fi
19027rm -f conftest*
19028LIBS="$ac_save_LIBS"
19029
19030fi
19031if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19032 echo "$ac_t""yes" 1>&6
19033
19034 HAVE_PRIOR_FUNCS=1
19035 POSIX4_LINK=" -lposix4"
19036
19037else
19038 echo "$ac_t""no" 1>&6
19039fi
19040
19041
19042fi
19043
19044
19045else
19046 echo "$ac_t""no" 1>&6
19047fi
19048
19049
19050fi
19051
19052
19053 if test "$HAVE_PRIOR_FUNCS" = 1; then
19054 cat >> confdefs.h <<\EOF
19055#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
19056EOF
19057
19058 else
19059 echo "configure: warning: Setting thread priority will not work" 1>&2
19060 fi
19061
19062 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
19063echo "configure:19064: checking for pthread_cancel" >&5
19064if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
19065 echo $ac_n "(cached) $ac_c" 1>&6
19066else
19067 cat > conftest.$ac_ext <<EOF
19068#line 19069 "configure"
19069#include "confdefs.h"
19070/* System header to define __stub macros and hopefully few prototypes,
19071 which can conflict with char pthread_cancel(); below. */
19072#include <assert.h>
19073/* Override any gcc2 internal prototype to avoid an error. */
19074/* We use char because int might match the return type of a gcc2
19075 builtin and then its argument prototype would still apply. */
19076char pthread_cancel();
19077
19078int main() {
19079
19080/* The GNU C library defines this for functions which it implements
19081 to always fail with ENOSYS. Some functions are actually named
19082 something starting with __ and the normal name is an alias. */
19083#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
19084choke me
19085#else
19086pthread_cancel();
19087#endif
19088
19089; return 0; }
19090EOF
19091if { (eval echo configure:19092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19092 rm -rf conftest*
19093 eval "ac_cv_func_pthread_cancel=yes"
19094else
19095 echo "configure: failed program was:" >&5
19096 cat conftest.$ac_ext >&5
19097 rm -rf conftest*
19098 eval "ac_cv_func_pthread_cancel=no"
19099fi
19100rm -f conftest*
19101fi
19102
19103if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
19104 echo "$ac_t""yes" 1>&6
19105 cat >> confdefs.h <<\EOF
19106#define HAVE_PTHREAD_CANCEL 1
19107EOF
19108
19109else
19110 echo "$ac_t""no" 1>&6
19111echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
19112fi
19113
19114
19115 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
19116echo "configure:19117: checking for pthread_cleanup_push/pop" >&5
19117if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
19118 echo $ac_n "(cached) $ac_c" 1>&6
19119else
19120
19121 cat > conftest.$ac_ext <<EOF
19122#line 19123 "configure"
19123#include "confdefs.h"
19124#include <pthread.h>
19125int main() {
19126
19127 pthread_cleanup_push(NULL, NULL);
19128 pthread_cleanup_pop(0);
19129
19130; return 0; }
19131EOF
19132if { (eval echo configure:19133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19133 rm -rf conftest*
19134
19135 wx_cv_func_pthread_cleanup_push=yes
19136
19137else
19138 echo "configure: failed program was:" >&5
19139 cat conftest.$ac_ext >&5
19140 rm -rf conftest*
19141
19142 wx_cv_func_pthread_cleanup_push=no
19143
19144fi
19145rm -f conftest*
19146
19147fi
19148
19149echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
19150
19151 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
19152 cat >> confdefs.h <<\EOF
19153#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
19154EOF
19155
19156 fi
19157
19158
19159 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
19160echo "configure:19161: checking for pthread_mutexattr_t" >&5
19161if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
19162 echo $ac_n "(cached) $ac_c" 1>&6
19163else
19164
19165 cat > conftest.$ac_ext <<EOF
19166#line 19167 "configure"
19167#include "confdefs.h"
19168#include <pthread.h>
19169int main() {
19170
19171 pthread_mutexattr_t attr;
19172 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
19173
19174; return 0; }
19175EOF
19176if { (eval echo configure:19177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19177 rm -rf conftest*
19178
19179 wx_cv_type_pthread_mutexattr_t=yes
19180
19181else
19182 echo "configure: failed program was:" >&5
19183 cat conftest.$ac_ext >&5
19184 rm -rf conftest*
19185
19186 wx_cv_type_pthread_mutexattr_t=no
19187
19188
19189fi
19190rm -f conftest*
19191
19192fi
19193
19194echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
19195
19196 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
19197 cat >> confdefs.h <<\EOF
19198#define HAVE_PTHREAD_MUTEXATTR_T 1
19199EOF
19200
19201 else
19202 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
19203echo "configure:19204: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
19204if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
19205 echo $ac_n "(cached) $ac_c" 1>&6
19206else
19207
19208 cat > conftest.$ac_ext <<EOF
19209#line 19210 "configure"
19210#include "confdefs.h"
19211#include <pthread.h>
19212int main() {
19213
19214 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
19215
19216; return 0; }
19217EOF
19218if { (eval echo configure:19219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19219 rm -rf conftest*
19220
19221 wx_cv_type_pthread_rec_mutex_init=yes
19222
19223else
19224 echo "configure: failed program was:" >&5
19225 cat conftest.$ac_ext >&5
19226 rm -rf conftest*
19227
19228 wx_cv_type_pthread_rec_mutex_init=no
19229
19230
19231fi
19232rm -f conftest*
19233
19234fi
19235
19236echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
19237 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
19238 cat >> confdefs.h <<\EOF
19239#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
19240EOF
19241
19242 else
19243 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
19244 fi
19245 fi
19246 fi
19247
19248else
19249 if test "$wxUSE_THREADS" = "yes" ; then
19250 case "${host}" in
19251 *-*-mingw32* )
19252 echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6
19253echo "configure:19254: checking if compiler supports -mthreads" >&5
19254if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then
19255 echo $ac_n "(cached) $ac_c" 1>&6
19256else
19257
19258 CFLAGS_OLD="$CFLAGS"
19259 CFLAGS="$CFLAGS -mthreads"
19260 cat > conftest.$ac_ext <<EOF
19261#line 19262 "configure"
19262#include "confdefs.h"
19263
19264int main() {
19265
19266; return 0; }
19267EOF
19268if { (eval echo configure:19269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19269 rm -rf conftest*
19270 wx_cv_cflags_mthread=yes
19271else
19272 echo "configure: failed program was:" >&5
19273 cat conftest.$ac_ext >&5
19274 rm -rf conftest*
19275 wx_cv_cflags_mthread=no
19276
19277fi
19278rm -f conftest*
19279
19280
19281fi
19282
19283echo "$ac_t""$wx_cv_cflags_mthread" 1>&6
19284
19285 if test "$wx_cv_cflags_mthread" = "yes"; then
19286 CXXFLAGS="$CXXFLAGS -mthreads"
19287 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
19288 LDFLAGS="$LDFLAGS -mthreads"
19289 else
19290 CFLAGS="$CFLAGS_OLD"
19291 fi
19292 ;;
19293 esac
19294 fi
19295fi
19296
19297if test "$wxUSE_THREADS" = "yes"; then
19298 cat >> confdefs.h <<\EOF
19299#define wxUSE_THREADS 1
19300EOF
19301
19302
19303 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
19304else
19305 if test "$ac_cv_func_strtok_r" = "yes"; then
19306 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
19307echo "configure:19308: checking if -D_REENTRANT is needed" >&5
19308 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
19309 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
19310 echo "$ac_t""yes" 1>&6
19311 else
19312 echo "$ac_t""no" 1>&6
19313 fi
19314 fi
19315fi
19316
19317if test "$WXGTK20" = 1 ; then
19318 cat >> confdefs.h <<EOF
19319#define __WXGTK20__ $WXGTK20
19320EOF
19321
19322 WXGTK12=1
19323fi
19324
19325if test "$WXGTK12" = 1 ; then
19326 cat >> confdefs.h <<EOF
19327#define __WXGTK12__ $WXGTK12
19328EOF
19329
19330fi
19331
19332if test "$WXGTK127" = 1 ; then
19333 cat >> confdefs.h <<EOF
19334#define __WXGTK127__ $WXGTK127
19335EOF
19336
19337fi
19338
19339WXDEBUG=
19340
19341if test "$wxUSE_DEBUG_INFO" = "yes" ; then
19342 WXDEBUG="-g"
19343 wxUSE_OPTIMISE=no
19344fi
19345
19346if test "$wxUSE_DEBUG_GDB" = "yes" ; then
19347 wxUSE_DEBUG_INFO=yes
19348 WXDEBUG="-ggdb"
19349fi
19350
19351if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
19352 cat >> confdefs.h <<\EOF
19353#define WXDEBUG 1
19354EOF
19355
19356 WXDEBUG_DEFINE="-D__WXDEBUG__"
19357else
19358 if test "$wxUSE_GTK" = 1 ; then
19359 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
19360 fi
19361fi
19362
19363if test "$wxUSE_MEM_TRACING" = "yes" ; then
19364 cat >> confdefs.h <<\EOF
19365#define wxUSE_MEMORY_TRACING 1
19366EOF
19367
19368 cat >> confdefs.h <<\EOF
19369#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
19370EOF
19371
19372 cat >> confdefs.h <<\EOF
19373#define wxUSE_DEBUG_NEW_ALWAYS 1
19374EOF
19375
19376 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
19377fi
19378
19379if test "$wxUSE_DMALLOC" = "yes" ; then
19380 DMALLOC_LIBS="-ldmalloc"
19381fi
19382
19383PROFILE=
19384if test "$wxUSE_PROFILE" = "yes" ; then
19385 PROFILE=" -pg"
19386fi
19387
19388CODE_GEN_FLAGS=
19389CODE_GEN_FLAGS_CXX=
19390if test "$GCC" = "yes" ; then
19391 if test "$wxUSE_NO_RTTI" = "yes" ; then
19392 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
19393 fi
19394 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
19395 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
19396 fi
19397 if test "$wxUSE_PERMISSIVE" = "yes" ; then
19398 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
19399 fi
19400 if test "$USE_WIN32" = 1 ; then
19401 # I'm not even really sure what this was ever added to solve,
19402 # but someone added it for mingw native builds, so I guess
19403 # they had a reason, right??
19404 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
19405 fi
19406
19407 case "${host}" in
19408 powerpc*-*-aix* )
19409 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
19410 ;;
19411 *-hppa* )
19412 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
19413 ;;
19414 esac
19415fi
19416
19417if test "$wxUSE_OPTIMISE" = "no" ; then
19418 OPTIMISE=
19419else
19420 if test "$GCC" = yes ; then
19421 OPTIMISE="-O2"
19422 case "${host}" in
19423 i586-*-*|i686-*-* )
19424 OPTIMISE="${OPTIMISE} "
19425 ;;
19426 esac
19427 else
19428 OPTIMISE="-O"
19429 fi
19430fi
19431
19432
19433if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
19434 cat >> confdefs.h <<\EOF
19435#define WXWIN_COMPATIBILITY_2 1
19436EOF
19437
19438
19439 WXWIN_COMPATIBILITY_2_2="yes"
19440fi
19441
19442if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
19443 cat >> confdefs.h <<\EOF
19444#define WXWIN_COMPATIBILITY_2_2 1
19445EOF
19446
19447
19448 WXWIN_COMPATIBILITY_2_4="yes"
19449fi
19450
19451if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
19452 cat >> confdefs.h <<\EOF
19453#define WXWIN_COMPATIBILITY_2_4 1
19454EOF
19455
19456fi
19457
19458
19459if test "$wxUSE_GUI" = "yes"; then
19460 cat >> confdefs.h <<\EOF
19461#define wxUSE_GUI 1
19462EOF
19463
19464
19465 else
19466 cat >> confdefs.h <<\EOF
19467#define wxUSE_NOGUI 1
19468EOF
19469
19470fi
19471
19472
19473if test "$wxUSE_UNIX" = "yes"; then
19474 cat >> confdefs.h <<\EOF
19475#define wxUSE_UNIX 1
19476EOF
19477
19478fi
19479
19480
19481if test "$wxUSE_APPLE_IEEE" = "yes"; then
19482 cat >> confdefs.h <<\EOF
19483#define wxUSE_APPLE_IEEE 1
19484EOF
19485
19486fi
19487
19488if test "$wxUSE_TIMER" = "yes"; then
19489 cat >> confdefs.h <<\EOF
19490#define wxUSE_TIMER 1
19491EOF
19492
19493fi
19494
19495if test "$wxUSE_WAVE" = "yes"; then
19496 cat >> confdefs.h <<\EOF
19497#define wxUSE_WAVE 1
19498EOF
19499
19500fi
19501
19502if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
19503 cat >> confdefs.h <<\EOF
19504#define wxUSE_CMDLINE_PARSER 1
19505EOF
19506
19507fi
19508
19509if test "$wxUSE_STOPWATCH" = "yes"; then
19510 cat >> confdefs.h <<\EOF
19511#define wxUSE_STOPWATCH 1
19512EOF
19513
19514fi
19515
19516if test "$wxUSE_DATETIME" = "yes"; then
19517 cat >> confdefs.h <<\EOF
19518#define wxUSE_DATETIME 1
19519EOF
19520
19521fi
19522
19523if test "$wxUSE_TIMEDATE" = "yes"; then
19524 cat >> confdefs.h <<\EOF
19525#define wxUSE_TIMEDATE 1
19526EOF
19527
19528fi
19529
19530if test "$wxUSE_FILE" = "yes"; then
19531 cat >> confdefs.h <<\EOF
19532#define wxUSE_FILE 1
19533EOF
19534
19535fi
19536
19537if test "$wxUSE_FFILE" = "yes"; then
19538 cat >> confdefs.h <<\EOF
19539#define wxUSE_FFILE 1
19540EOF
19541
19542fi
19543
19544if test "$wxUSE_FILESYSTEM" = "yes"; then
19545 cat >> confdefs.h <<\EOF
19546#define wxUSE_FILESYSTEM 1
19547EOF
19548
19549fi
19550
19551if test "$wxUSE_FS_INET" = "yes"; then
19552 cat >> confdefs.h <<\EOF
19553#define wxUSE_FS_INET 1
19554EOF
19555
19556fi
19557
19558if test "$wxUSE_FS_ZIP" = "yes"; then
19559 cat >> confdefs.h <<\EOF
19560#define wxUSE_FS_ZIP 1
19561EOF
19562
19563fi
19564
19565if test "$wxUSE_ZIPSTREAM" = "yes"; then
19566 cat >> confdefs.h <<\EOF
19567#define wxUSE_ZIPSTREAM 1
19568EOF
19569
19570fi
19571
19572if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
19573 cat >> confdefs.h <<\EOF
19574#define wxUSE_ON_FATAL_EXCEPTION 1
19575EOF
19576
19577fi
19578
19579if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
19580 cat >> confdefs.h <<\EOF
19581#define wxUSE_SNGLINST_CHECKER 1
19582EOF
19583
19584fi
19585
19586if test "$wxUSE_BUSYINFO" = "yes"; then
19587 cat >> confdefs.h <<\EOF
19588#define wxUSE_BUSYINFO 1
19589EOF
19590
19591fi
19592
19593if test "$wxUSE_STD_IOSTREAM" = "yes"; then
19594 cat >> confdefs.h <<\EOF
19595#define wxUSE_STD_IOSTREAM 1
19596EOF
19597
19598fi
19599
19600if test "$wxUSE_TEXTBUFFER" = "yes"; then
19601 cat >> confdefs.h <<\EOF
19602#define wxUSE_TEXTBUFFER 1
19603EOF
19604
19605fi
19606
19607if test "$wxUSE_TEXTFILE" = "yes"; then
19608 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
19609 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
19610 else
19611 cat >> confdefs.h <<\EOF
19612#define wxUSE_TEXTFILE 1
19613EOF
19614
19615 fi
19616fi
19617
19618if test "$wxUSE_CONFIG" = "yes" ; then
19619 if test "$wxUSE_TEXTFILE" != "yes"; then
19620 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
19621 else
19622 cat >> confdefs.h <<\EOF
19623#define wxUSE_CONFIG 1
19624EOF
19625
19626 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
19627 fi
19628fi
19629
19630if test "$wxUSE_INTL" = "yes" ; then
19631 if test "$wxUSE_FILE" != "yes"; then
19632 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
19633 else
19634 cat >> confdefs.h <<\EOF
19635#define wxUSE_INTL 1
19636EOF
19637
19638 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
19639 GUIDIST="$GUIDIST INTL_DIST"
19640 fi
19641fi
19642
19643if test "$wxUSE_LOG" = "yes"; then
19644 cat >> confdefs.h <<\EOF
19645#define wxUSE_LOG 1
19646EOF
19647
19648
19649 if test "$wxUSE_LOGGUI" = "yes"; then
19650 cat >> confdefs.h <<\EOF
19651#define wxUSE_LOGGUI 1
19652EOF
19653
19654 fi
19655
19656 if test "$wxUSE_LOGWINDOW" = "yes"; then
19657 cat >> confdefs.h <<\EOF
19658#define wxUSE_LOGWINDOW 1
19659EOF
19660
19661 fi
19662
19663 if test "$wxUSE_LOGDIALOG" = "yes"; then
19664 cat >> confdefs.h <<\EOF
19665#define wxUSE_LOG_DIALOG 1
19666EOF
19667
19668 fi
19669fi
19670
19671if test "$wxUSE_LONGLONG" = "yes"; then
19672 cat >> confdefs.h <<\EOF
19673#define wxUSE_LONGLONG 1
19674EOF
19675
19676fi
19677
19678if test "$wxUSE_GEOMETRY" = "yes"; then
19679 cat >> confdefs.h <<\EOF
19680#define wxUSE_GEOMETRY 1
19681EOF
19682
19683fi
19684
19685if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
19686 cat >> confdefs.h <<\EOF
19687#define wxUSE_DIALUP_MANAGER 1
19688EOF
19689
19690 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
19691fi
19692
19693if test "$wxUSE_STREAMS" = "yes" ; then
19694 cat >> confdefs.h <<\EOF
19695#define wxUSE_STREAMS 1
19696EOF
19697
19698fi
19699
19700
19701if test "$wxUSE_DATETIME" = "yes"; then
19702 for ac_func in strptime
19703do
19704echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19705echo "configure:19706: checking for $ac_func" >&5
19706if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19707 echo $ac_n "(cached) $ac_c" 1>&6
19708else
19709 cat > conftest.$ac_ext <<EOF
19710#line 19711 "configure"
19711#include "confdefs.h"
19712/* System header to define __stub macros and hopefully few prototypes,
19713 which can conflict with char $ac_func(); below. */
19714#include <assert.h>
19715/* Override any gcc2 internal prototype to avoid an error. */
19716/* We use char because int might match the return type of a gcc2
19717 builtin and then its argument prototype would still apply. */
19718char $ac_func();
19719
19720int main() {
19721
19722/* The GNU C library defines this for functions which it implements
19723 to always fail with ENOSYS. Some functions are actually named
19724 something starting with __ and the normal name is an alias. */
19725#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19726choke me
19727#else
19728$ac_func();
19729#endif
19730
19731; return 0; }
19732EOF
19733if { (eval echo configure:19734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19734 rm -rf conftest*
19735 eval "ac_cv_func_$ac_func=yes"
19736else
19737 echo "configure: failed program was:" >&5
19738 cat conftest.$ac_ext >&5
19739 rm -rf conftest*
19740 eval "ac_cv_func_$ac_func=no"
19741fi
19742rm -f conftest*
19743fi
19744
19745if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19746 echo "$ac_t""yes" 1>&6
19747 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19748 cat >> confdefs.h <<EOF
19749#define $ac_tr_func 1
19750EOF
19751
19752else
19753 echo "$ac_t""no" 1>&6
19754fi
19755done
19756
19757
19758 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
19759echo "configure:19760: checking for timezone variable in <time.h>" >&5
19760if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
19761 echo $ac_n "(cached) $ac_c" 1>&6
19762else
19763
19764 cat > conftest.$ac_ext <<EOF
19765#line 19766 "configure"
19766#include "confdefs.h"
19767
19768 #include <time.h>
19769
19770int main() {
19771
19772 int tz;
19773 tz = timezone;
19774
19775; return 0; }
19776EOF
19777if { (eval echo configure:19778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19778 rm -rf conftest*
19779
19780 wx_cv_var_timezone=timezone
19781
19782else
19783 echo "configure: failed program was:" >&5
19784 cat conftest.$ac_ext >&5
19785 rm -rf conftest*
19786
19787 cat > conftest.$ac_ext <<EOF
19788#line 19789 "configure"
19789#include "confdefs.h"
19790
19791 #include <time.h>
19792
19793int main() {
19794
19795 int tz;
19796 tz = _timezone;
19797
19798; return 0; }
19799EOF
19800if { (eval echo configure:19801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19801 rm -rf conftest*
19802
19803 wx_cv_var_timezone=_timezone
19804
19805else
19806 echo "configure: failed program was:" >&5
19807 cat conftest.$ac_ext >&5
19808 rm -rf conftest*
19809
19810 cat > conftest.$ac_ext <<EOF
19811#line 19812 "configure"
19812#include "confdefs.h"
19813
19814 #include <time.h>
19815
19816int main() {
19817
19818 int tz;
19819 tz = __timezone;
19820
19821; return 0; }
19822EOF
19823if { (eval echo configure:19824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19824 rm -rf conftest*
19825
19826 wx_cv_var_timezone=__timezone
19827
19828else
19829 echo "configure: failed program was:" >&5
19830 cat conftest.$ac_ext >&5
19831 rm -rf conftest*
19832
19833 if test "$USE_DOS" = 0 ; then
19834 echo "configure: warning: no timezone variable" 1>&2
19835 fi
19836
19837
19838fi
19839rm -f conftest*
19840
19841
19842fi
19843rm -f conftest*
19844
19845
19846fi
19847rm -f conftest*
19848
19849
19850fi
19851
19852echo "$ac_t""$wx_cv_var_timezone" 1>&6
19853
19854 if test "x$wx_cv_var_timezone" != x ; then
19855 cat >> confdefs.h <<EOF
19856#define WX_TIMEZONE $wx_cv_var_timezone
19857EOF
19858
19859 fi
19860
19861 for ac_func in localtime
19862do
19863echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19864echo "configure:19865: checking for $ac_func" >&5
19865if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19866 echo $ac_n "(cached) $ac_c" 1>&6
19867else
19868 cat > conftest.$ac_ext <<EOF
19869#line 19870 "configure"
19870#include "confdefs.h"
19871/* System header to define __stub macros and hopefully few prototypes,
19872 which can conflict with char $ac_func(); below. */
19873#include <assert.h>
19874/* Override any gcc2 internal prototype to avoid an error. */
19875/* We use char because int might match the return type of a gcc2
19876 builtin and then its argument prototype would still apply. */
19877char $ac_func();
19878
19879int main() {
19880
19881/* The GNU C library defines this for functions which it implements
19882 to always fail with ENOSYS. Some functions are actually named
19883 something starting with __ and the normal name is an alias. */
19884#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19885choke me
19886#else
19887$ac_func();
19888#endif
19889
19890; return 0; }
19891EOF
19892if { (eval echo configure:19893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19893 rm -rf conftest*
19894 eval "ac_cv_func_$ac_func=yes"
19895else
19896 echo "configure: failed program was:" >&5
19897 cat conftest.$ac_ext >&5
19898 rm -rf conftest*
19899 eval "ac_cv_func_$ac_func=no"
19900fi
19901rm -f conftest*
19902fi
19903
19904if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19905 echo "$ac_t""yes" 1>&6
19906 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19907 cat >> confdefs.h <<EOF
19908#define $ac_tr_func 1
19909EOF
19910
19911else
19912 echo "$ac_t""no" 1>&6
19913fi
19914done
19915
19916
19917 if test "$ac_cv_func_localtime" = "yes"; then
19918 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
19919echo "configure:19920: checking for tm_gmtoff in struct tm" >&5
19920if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
19921 echo $ac_n "(cached) $ac_c" 1>&6
19922else
19923
19924 cat > conftest.$ac_ext <<EOF
19925#line 19926 "configure"
19926#include "confdefs.h"
19927
19928 #include <time.h>
19929
19930int main() {
19931
19932 struct tm tm;
19933 tm.tm_gmtoff++;
19934
19935; return 0; }
19936EOF
19937if { (eval echo configure:19938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19938 rm -rf conftest*
19939
19940 wx_cv_struct_tm_has_gmtoff=yes
19941
19942else
19943 echo "configure: failed program was:" >&5
19944 cat conftest.$ac_ext >&5
19945 rm -rf conftest*
19946 wx_cv_struct_tm_has_gmtoff=no
19947
19948fi
19949rm -f conftest*
19950
19951fi
19952
19953echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
19954 fi
19955
19956 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
19957 cat >> confdefs.h <<\EOF
19958#define WX_GMTOFF_IN_TM 1
19959EOF
19960
19961 fi
19962
19963 for ac_func in gettimeofday ftime
19964do
19965echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19966echo "configure:19967: checking for $ac_func" >&5
19967if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19968 echo $ac_n "(cached) $ac_c" 1>&6
19969else
19970 cat > conftest.$ac_ext <<EOF
19971#line 19972 "configure"
19972#include "confdefs.h"
19973/* System header to define __stub macros and hopefully few prototypes,
19974 which can conflict with char $ac_func(); below. */
19975#include <assert.h>
19976/* Override any gcc2 internal prototype to avoid an error. */
19977/* We use char because int might match the return type of a gcc2
19978 builtin and then its argument prototype would still apply. */
19979char $ac_func();
19980
19981int main() {
19982
19983/* The GNU C library defines this for functions which it implements
19984 to always fail with ENOSYS. Some functions are actually named
19985 something starting with __ and the normal name is an alias. */
19986#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19987choke me
19988#else
19989$ac_func();
19990#endif
19991
19992; return 0; }
19993EOF
19994if { (eval echo configure:19995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19995 rm -rf conftest*
19996 eval "ac_cv_func_$ac_func=yes"
19997else
19998 echo "configure: failed program was:" >&5
19999 cat conftest.$ac_ext >&5
20000 rm -rf conftest*
20001 eval "ac_cv_func_$ac_func=no"
20002fi
20003rm -f conftest*
20004fi
20005
20006if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20007 echo "$ac_t""yes" 1>&6
20008 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20009 cat >> confdefs.h <<EOF
20010#define $ac_tr_func 1
20011EOF
20012 break
20013else
20014 echo "$ac_t""no" 1>&6
20015fi
20016done
20017
20018
20019 if test "$ac_cv_func_gettimeofday" = "yes"; then
20020 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
20021echo "configure:20022: checking whether gettimeofday takes two arguments" >&5
20022if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
20023 echo $ac_n "(cached) $ac_c" 1>&6
20024else
20025
20026
20027 ac_ext=C
20028# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20029ac_cpp='$CXXCPP $CPPFLAGS'
20030ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20031ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20032cross_compiling=$ac_cv_prog_cxx_cross
20033
20034
20035 cat > conftest.$ac_ext <<EOF
20036#line 20037 "configure"
20037#include "confdefs.h"
20038
20039 #include <sys/time.h>
20040 #include <unistd.h>
20041
20042int main() {
20043
20044 struct timeval tv;
20045 gettimeofday(&tv, NULL);
20046
20047; return 0; }
20048EOF
20049if { (eval echo configure:20050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20050 rm -rf conftest*
20051 wx_cv_func_gettimeofday_has_2_args=yes
20052else
20053 echo "configure: failed program was:" >&5
20054 cat conftest.$ac_ext >&5
20055 rm -rf conftest*
20056 cat > conftest.$ac_ext <<EOF
20057#line 20058 "configure"
20058#include "confdefs.h"
20059
20060 #include <sys/time.h>
20061 #include <unistd.h>
20062
20063int main() {
20064
20065 struct timeval tv;
20066 gettimeofday(&tv);
20067
20068; return 0; }
20069EOF
20070if { (eval echo configure:20071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20071 rm -rf conftest*
20072 wx_cv_func_gettimeofday_has_2_args=no
20073else
20074 echo "configure: failed program was:" >&5
20075 cat conftest.$ac_ext >&5
20076 rm -rf conftest*
20077
20078 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
20079 wx_cv_func_gettimeofday_has_2_args=unknown
20080
20081
20082fi
20083rm -f conftest*
20084
20085fi
20086rm -f conftest*
20087 ac_ext=c
20088# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20089ac_cpp='$CPP $CPPFLAGS'
20090ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20091ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20092cross_compiling=$ac_cv_prog_cc_cross
20093
20094
20095fi
20096
20097echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
20098
20099 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
20100 cat >> confdefs.h <<\EOF
20101#define WX_GETTIMEOFDAY_NO_TZ 1
20102EOF
20103
20104 fi
20105 fi
20106
20107 cat >> confdefs.h <<\EOF
20108#define wxUSE_TIMEDATE 1
20109EOF
20110
20111 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
20112fi
20113
20114
20115if test "$wxUSE_SOCKETS" = "yes"; then
20116 if test "$wxUSE_MGL" = "1"; then
20117 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
20118 wxUSE_SOCKETS="no"
20119 fi
20120fi
20121
20122if test "$wxUSE_SOCKETS" = "yes"; then
20123 if test "$TOOLKIT" != "MSW"; then
20124 echo $ac_n "checking for socket""... $ac_c" 1>&6
20125echo "configure:20126: checking for socket" >&5
20126if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
20127 echo $ac_n "(cached) $ac_c" 1>&6
20128else
20129 cat > conftest.$ac_ext <<EOF
20130#line 20131 "configure"
20131#include "confdefs.h"
20132/* System header to define __stub macros and hopefully few prototypes,
20133 which can conflict with char socket(); below. */
20134#include <assert.h>
20135/* Override any gcc2 internal prototype to avoid an error. */
20136/* We use char because int might match the return type of a gcc2
20137 builtin and then its argument prototype would still apply. */
20138char socket();
20139
20140int main() {
20141
20142/* The GNU C library defines this for functions which it implements
20143 to always fail with ENOSYS. Some functions are actually named
20144 something starting with __ and the normal name is an alias. */
20145#if defined (__stub_socket) || defined (__stub___socket)
20146choke me
20147#else
20148socket();
20149#endif
20150
20151; return 0; }
20152EOF
20153if { (eval echo configure:20154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20154 rm -rf conftest*
20155 eval "ac_cv_func_socket=yes"
20156else
20157 echo "configure: failed program was:" >&5
20158 cat conftest.$ac_ext >&5
20159 rm -rf conftest*
20160 eval "ac_cv_func_socket=no"
20161fi
20162rm -f conftest*
20163fi
20164
20165if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
20166 echo "$ac_t""yes" 1>&6
20167 :
20168else
20169 echo "$ac_t""no" 1>&6
20170echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
20171echo "configure:20172: checking for socket in -lsocket" >&5
20172ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
20173if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20174 echo $ac_n "(cached) $ac_c" 1>&6
20175else
20176 ac_save_LIBS="$LIBS"
20177LIBS="-lsocket $LIBS"
20178cat > conftest.$ac_ext <<EOF
20179#line 20180 "configure"
20180#include "confdefs.h"
20181/* Override any gcc2 internal prototype to avoid an error. */
20182/* We use char because int might match the return type of a gcc2
20183 builtin and then its argument prototype would still apply. */
20184char socket();
20185
20186int main() {
20187socket()
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_lib_$ac_lib_var=yes"
20193else
20194 echo "configure: failed program was:" >&5
20195 cat conftest.$ac_ext >&5
20196 rm -rf conftest*
20197 eval "ac_cv_lib_$ac_lib_var=no"
20198fi
20199rm -f conftest*
20200LIBS="$ac_save_LIBS"
20201
20202fi
20203if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20204 echo "$ac_t""yes" 1>&6
20205 if test "$INET_LINK" != " -lsocket"; then
20206 INET_LINK="$INET_LINK -lsocket"
20207 fi
20208else
20209 echo "$ac_t""no" 1>&6
20210
20211 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
20212 wxUSE_SOCKETS=no
20213
20214
20215fi
20216
20217
20218fi
20219
20220 fi
20221fi
20222
20223if test "$wxUSE_SOCKETS" = "yes" ; then
20224 if test "$TOOLKIT" != "MSW"; then
20225 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
20226echo "configure:20227: checking what is the type of the third argument of getsockname" >&5
20227if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
20228 echo $ac_n "(cached) $ac_c" 1>&6
20229else
20230
20231
20232 ac_ext=C
20233# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20234ac_cpp='$CXXCPP $CPPFLAGS'
20235ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20236ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20237cross_compiling=$ac_cv_prog_cxx_cross
20238
20239
20240 cat > conftest.$ac_ext <<EOF
20241#line 20242 "configure"
20242#include "confdefs.h"
20243
20244 #include <sys/types.h>
20245 #include <sys/socket.h>
20246
20247int main() {
20248
20249 socklen_t len;
20250 getsockname(0, 0, &len);
20251
20252; return 0; }
20253EOF
20254if { (eval echo configure:20255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20255 rm -rf conftest*
20256 wx_cv_type_getsockname3=socklen_t
20257else
20258 echo "configure: failed program was:" >&5
20259 cat conftest.$ac_ext >&5
20260 rm -rf conftest*
20261 cat > conftest.$ac_ext <<EOF
20262#line 20263 "configure"
20263#include "confdefs.h"
20264
20265 #include <sys/types.h>
20266 #include <sys/socket.h>
20267
20268int main() {
20269
20270 size_t len;
20271 getsockname(0, 0, &len);
20272
20273; return 0; }
20274EOF
20275if { (eval echo configure:20276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20276 rm -rf conftest*
20277 wx_cv_type_getsockname3=size_t
20278else
20279 echo "configure: failed program was:" >&5
20280 cat conftest.$ac_ext >&5
20281 rm -rf conftest*
20282 cat > conftest.$ac_ext <<EOF
20283#line 20284 "configure"
20284#include "confdefs.h"
20285
20286 #include <sys/types.h>
20287 #include <sys/socket.h>
20288
20289int main() {
20290
20291 int len;
20292 getsockname(0, 0, &len);
20293
20294; return 0; }
20295EOF
20296if { (eval echo configure:20297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20297 rm -rf conftest*
20298 wx_cv_type_getsockname3=int
20299else
20300 echo "configure: failed program was:" >&5
20301 cat conftest.$ac_ext >&5
20302 rm -rf conftest*
20303 wx_cv_type_getsockname3=unknown
20304
20305fi
20306rm -f conftest*
20307
20308fi
20309rm -f conftest*
20310
20311fi
20312rm -f conftest*
20313
20314 ac_ext=c
20315# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
20316ac_cpp='$CPP $CPPFLAGS'
20317ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
20318ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
20319cross_compiling=$ac_cv_prog_cc_cross
20320
20321
20322fi
20323
20324echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
20325
20326 if test "$wx_cv_type_getsockname3" = "unknown"; then
20327 wxUSE_SOCKETS=no
20328 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
20329 else
20330 cat >> confdefs.h <<EOF
20331#define SOCKLEN_T $wx_cv_type_getsockname3
20332EOF
20333
20334 fi
20335 fi
20336fi
20337
20338if test "$wxUSE_SOCKETS" = "yes" ; then
20339 cat >> confdefs.h <<\EOF
20340#define wxUSE_SOCKETS 1
20341EOF
20342
20343 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
20344fi
20345
20346
20347if test "$wxUSE_GUI" = "yes"; then
20348
20349 if test "$TOOLKIT" = "MAC"; then
20350 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
20351 wxUSE_JOYSTICK=no
20352 fi
20353 if test "$TOOLKIT" = "MOTIF"; then
20354 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
20355 wxUSE_JOYSTICK=no
20356 fi
20357 if test "$TOOLKIT" = "X11"; then
20358 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
20359 wxUSE_JOYSTICK=no
20360 fi
20361
20362 if test "$TOOLKIT" != "MSW"; then
20363 if test "$wxUSE_JOYSTICK" = "yes"; then
20364 for ac_hdr in linux/joystick.h
20365do
20366ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20367echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20368echo "configure:20369: checking for $ac_hdr" >&5
20369if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20370 echo $ac_n "(cached) $ac_c" 1>&6
20371else
20372 cat > conftest.$ac_ext <<EOF
20373#line 20374 "configure"
20374#include "confdefs.h"
20375#include <$ac_hdr>
20376EOF
20377ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20378{ (eval echo configure:20379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20379ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20380if test -z "$ac_err"; then
20381 rm -rf conftest*
20382 eval "ac_cv_header_$ac_safe=yes"
20383else
20384 echo "$ac_err" >&5
20385 echo "configure: failed program was:" >&5
20386 cat conftest.$ac_ext >&5
20387 rm -rf conftest*
20388 eval "ac_cv_header_$ac_safe=no"
20389fi
20390rm -f conftest*
20391fi
20392if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20393 echo "$ac_t""yes" 1>&6
20394 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20395 cat >> confdefs.h <<EOF
20396#define $ac_tr_hdr 1
20397EOF
20398
20399else
20400 echo "$ac_t""no" 1>&6
20401fi
20402done
20403
20404 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
20405 wxUSE_JOYSTICK=no
20406 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
20407 fi
20408 fi
20409 fi
20410
20411 if test "$wxUSE_JOYSTICK" = "yes"; then
20412 cat >> confdefs.h <<\EOF
20413#define wxUSE_JOYSTICK 1
20414EOF
20415
20416 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
20417 fi
20418fi
20419
20420
20421if test "$TOOLKIT" != "MSW"; then
20422
20423 HAVE_DL_FUNCS=0
20424 HAVE_SHL_FUNCS=0
20425 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20426 if test "$USE_DARWIN" = 1; then
20427 HAVE_DL_FUNCS=1
20428 else
20429 for ac_func in dlopen
20430do
20431echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20432echo "configure:20433: checking for $ac_func" >&5
20433if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20434 echo $ac_n "(cached) $ac_c" 1>&6
20435else
20436 cat > conftest.$ac_ext <<EOF
20437#line 20438 "configure"
20438#include "confdefs.h"
20439/* System header to define __stub macros and hopefully few prototypes,
20440 which can conflict with char $ac_func(); below. */
20441#include <assert.h>
20442/* Override any gcc2 internal prototype to avoid an error. */
20443/* We use char because int might match the return type of a gcc2
20444 builtin and then its argument prototype would still apply. */
20445char $ac_func();
20446
20447int main() {
20448
20449/* The GNU C library defines this for functions which it implements
20450 to always fail with ENOSYS. Some functions are actually named
20451 something starting with __ and the normal name is an alias. */
20452#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20453choke me
20454#else
20455$ac_func();
20456#endif
20457
20458; return 0; }
20459EOF
20460if { (eval echo configure:20461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20461 rm -rf conftest*
20462 eval "ac_cv_func_$ac_func=yes"
20463else
20464 echo "configure: failed program was:" >&5
20465 cat conftest.$ac_ext >&5
20466 rm -rf conftest*
20467 eval "ac_cv_func_$ac_func=no"
20468fi
20469rm -f conftest*
20470fi
20471
20472if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20473 echo "$ac_t""yes" 1>&6
20474 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20475 cat >> confdefs.h <<EOF
20476#define $ac_tr_func 1
20477EOF
20478
20479 cat >> confdefs.h <<\EOF
20480#define HAVE_DLOPEN 1
20481EOF
20482
20483 HAVE_DL_FUNCS=1
20484
20485else
20486 echo "$ac_t""no" 1>&6
20487echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
20488echo "configure:20489: checking for dlopen in -ldl" >&5
20489ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
20490if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20491 echo $ac_n "(cached) $ac_c" 1>&6
20492else
20493 ac_save_LIBS="$LIBS"
20494LIBS="-ldl $LIBS"
20495cat > conftest.$ac_ext <<EOF
20496#line 20497 "configure"
20497#include "confdefs.h"
20498/* Override any gcc2 internal prototype to avoid an error. */
20499/* We use char because int might match the return type of a gcc2
20500 builtin and then its argument prototype would still apply. */
20501char dlopen();
20502
20503int main() {
20504dlopen()
20505; return 0; }
20506EOF
20507if { (eval echo configure:20508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20508 rm -rf conftest*
20509 eval "ac_cv_lib_$ac_lib_var=yes"
20510else
20511 echo "configure: failed program was:" >&5
20512 cat conftest.$ac_ext >&5
20513 rm -rf conftest*
20514 eval "ac_cv_lib_$ac_lib_var=no"
20515fi
20516rm -f conftest*
20517LIBS="$ac_save_LIBS"
20518
20519fi
20520if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20521 echo "$ac_t""yes" 1>&6
20522
20523 cat >> confdefs.h <<\EOF
20524#define HAVE_DLOPEN 1
20525EOF
20526
20527 HAVE_DL_FUNCS=1
20528 DL_LINK=" -ldl$DL_LINK"
20529
20530else
20531 echo "$ac_t""no" 1>&6
20532
20533 for ac_func in shl_load
20534do
20535echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20536echo "configure:20537: checking for $ac_func" >&5
20537if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20538 echo $ac_n "(cached) $ac_c" 1>&6
20539else
20540 cat > conftest.$ac_ext <<EOF
20541#line 20542 "configure"
20542#include "confdefs.h"
20543/* System header to define __stub macros and hopefully few prototypes,
20544 which can conflict with char $ac_func(); below. */
20545#include <assert.h>
20546/* Override any gcc2 internal prototype to avoid an error. */
20547/* We use char because int might match the return type of a gcc2
20548 builtin and then its argument prototype would still apply. */
20549char $ac_func();
20550
20551int main() {
20552
20553/* The GNU C library defines this for functions which it implements
20554 to always fail with ENOSYS. Some functions are actually named
20555 something starting with __ and the normal name is an alias. */
20556#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20557choke me
20558#else
20559$ac_func();
20560#endif
20561
20562; return 0; }
20563EOF
20564if { (eval echo configure:20565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20565 rm -rf conftest*
20566 eval "ac_cv_func_$ac_func=yes"
20567else
20568 echo "configure: failed program was:" >&5
20569 cat conftest.$ac_ext >&5
20570 rm -rf conftest*
20571 eval "ac_cv_func_$ac_func=no"
20572fi
20573rm -f conftest*
20574fi
20575
20576if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20577 echo "$ac_t""yes" 1>&6
20578 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20579 cat >> confdefs.h <<EOF
20580#define $ac_tr_func 1
20581EOF
20582
20583 cat >> confdefs.h <<\EOF
20584#define HAVE_SHL_LOAD 1
20585EOF
20586
20587 HAVE_SHL_FUNCS=1
20588
20589else
20590 echo "$ac_t""no" 1>&6
20591echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
20592echo "configure:20593: checking for dld in -lshl_load" >&5
20593ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
20594if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20595 echo $ac_n "(cached) $ac_c" 1>&6
20596else
20597 ac_save_LIBS="$LIBS"
20598LIBS="-lshl_load $LIBS"
20599cat > conftest.$ac_ext <<EOF
20600#line 20601 "configure"
20601#include "confdefs.h"
20602/* Override any gcc2 internal prototype to avoid an error. */
20603/* We use char because int might match the return type of a gcc2
20604 builtin and then its argument prototype would still apply. */
20605char dld();
20606
20607int main() {
20608dld()
20609; return 0; }
20610EOF
20611if { (eval echo configure:20612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20612 rm -rf conftest*
20613 eval "ac_cv_lib_$ac_lib_var=yes"
20614else
20615 echo "configure: failed program was:" >&5
20616 cat conftest.$ac_ext >&5
20617 rm -rf conftest*
20618 eval "ac_cv_lib_$ac_lib_var=no"
20619fi
20620rm -f conftest*
20621LIBS="$ac_save_LIBS"
20622
20623fi
20624if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20625 echo "$ac_t""yes" 1>&6
20626
20627 HAVE_SHL_FUNCS=1
20628 DL_LINK=" -ldld$DL_LINK"
20629
20630else
20631 echo "$ac_t""no" 1>&6
20632fi
20633
20634
20635fi
20636done
20637
20638
20639fi
20640
20641
20642fi
20643done
20644
20645
20646 if test "$HAVE_DL_FUNCS" = 1; then
20647 for ac_func in dlerror
20648do
20649echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
20650echo "configure:20651: checking for $ac_func" >&5
20651if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
20652 echo $ac_n "(cached) $ac_c" 1>&6
20653else
20654 cat > conftest.$ac_ext <<EOF
20655#line 20656 "configure"
20656#include "confdefs.h"
20657/* System header to define __stub macros and hopefully few prototypes,
20658 which can conflict with char $ac_func(); below. */
20659#include <assert.h>
20660/* Override any gcc2 internal prototype to avoid an error. */
20661/* We use char because int might match the return type of a gcc2
20662 builtin and then its argument prototype would still apply. */
20663char $ac_func();
20664
20665int main() {
20666
20667/* The GNU C library defines this for functions which it implements
20668 to always fail with ENOSYS. Some functions are actually named
20669 something starting with __ and the normal name is an alias. */
20670#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20671choke me
20672#else
20673$ac_func();
20674#endif
20675
20676; return 0; }
20677EOF
20678if { (eval echo configure:20679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20679 rm -rf conftest*
20680 eval "ac_cv_func_$ac_func=yes"
20681else
20682 echo "configure: failed program was:" >&5
20683 cat conftest.$ac_ext >&5
20684 rm -rf conftest*
20685 eval "ac_cv_func_$ac_func=no"
20686fi
20687rm -f conftest*
20688fi
20689
20690if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
20691 echo "$ac_t""yes" 1>&6
20692 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
20693 cat >> confdefs.h <<EOF
20694#define $ac_tr_func 1
20695EOF
20696 cat >> confdefs.h <<\EOF
20697#define HAVE_DLERROR 1
20698EOF
20699
20700else
20701 echo "$ac_t""no" 1>&6
20702echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
20703echo "configure:20704: checking for dlerror in -ldl" >&5
20704ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
20705if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20706 echo $ac_n "(cached) $ac_c" 1>&6
20707else
20708 ac_save_LIBS="$LIBS"
20709LIBS="-ldl $LIBS"
20710cat > conftest.$ac_ext <<EOF
20711#line 20712 "configure"
20712#include "confdefs.h"
20713/* Override any gcc2 internal prototype to avoid an error. */
20714/* We use char because int might match the return type of a gcc2
20715 builtin and then its argument prototype would still apply. */
20716char dlerror();
20717
20718int main() {
20719dlerror()
20720; return 0; }
20721EOF
20722if { (eval echo configure:20723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20723 rm -rf conftest*
20724 eval "ac_cv_lib_$ac_lib_var=yes"
20725else
20726 echo "configure: failed program was:" >&5
20727 cat conftest.$ac_ext >&5
20728 rm -rf conftest*
20729 eval "ac_cv_lib_$ac_lib_var=no"
20730fi
20731rm -f conftest*
20732LIBS="$ac_save_LIBS"
20733
20734fi
20735if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20736 echo "$ac_t""yes" 1>&6
20737 cat >> confdefs.h <<\EOF
20738#define HAVE_DLERROR 1
20739EOF
20740
20741else
20742 echo "$ac_t""no" 1>&6
20743fi
20744
20745fi
20746done
20747
20748 fi
20749 fi
20750
20751 if test "$HAVE_DL_FUNCS" = 0; then
20752 if test "$HAVE_SHL_FUNCS" = 0; then
20753 if test "$USE_UNIX" = 1; then
20754 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
20755 wxUSE_DYNAMIC_LOADER=no
20756 wxUSE_DYNLIB_CLASS=no
20757 else
20758 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
20759 fi
20760 fi
20761 fi
20762 fi
20763fi
20764
20765if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
20766 cat >> confdefs.h <<\EOF
20767#define wxUSE_DYNAMIC_LOADER 1
20768EOF
20769
20770elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
20771 cat >> confdefs.h <<\EOF
20772#define wxUSE_DYNLIB_CLASS 1
20773EOF
20774
20775fi
20776
20777
20778if test "$wxUSE_FONTMAP" = "yes" ; then
20779 cat >> confdefs.h <<\EOF
20780#define wxUSE_FONTMAP 1
20781EOF
20782
20783fi
20784
20785if test "$wxUSE_UNICODE" = "yes" ; then
20786 cat >> confdefs.h <<\EOF
20787#define wxUSE_UNICODE 1
20788EOF
20789
20790
20791 if test "$wxUSE_MSW" != 1; then
20792 wxUSE_UNICODE_MSLU=no
20793 fi
20794
20795 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
20796 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
20797echo "configure:20798: checking for main in -lunicows" >&5
20798ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
20799if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
20800 echo $ac_n "(cached) $ac_c" 1>&6
20801else
20802 ac_save_LIBS="$LIBS"
20803LIBS="-lunicows $LIBS"
20804cat > conftest.$ac_ext <<EOF
20805#line 20806 "configure"
20806#include "confdefs.h"
20807
20808int main() {
20809main()
20810; return 0; }
20811EOF
20812if { (eval echo configure:20813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20813 rm -rf conftest*
20814 eval "ac_cv_lib_$ac_lib_var=yes"
20815else
20816 echo "configure: failed program was:" >&5
20817 cat conftest.$ac_ext >&5
20818 rm -rf conftest*
20819 eval "ac_cv_lib_$ac_lib_var=no"
20820fi
20821rm -f conftest*
20822LIBS="$ac_save_LIBS"
20823
20824fi
20825if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20826 echo "$ac_t""yes" 1>&6
20827
20828 cat >> confdefs.h <<\EOF
20829#define wxUSE_UNICODE_MSLU 1
20830EOF
20831
20832
20833else
20834 echo "$ac_t""no" 1>&6
20835
20836 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
20837 Applications will only run on Windows NT/2000/XP!" 1>&2
20838 wxUSE_UNICODE_MSLU=no
20839
20840fi
20841
20842 fi
20843fi
20844
20845if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
20846 cat >> confdefs.h <<\EOF
20847#define wxUSE_EXPERIMENTAL_PRINTF 1
20848EOF
20849
20850fi
20851
20852
20853
20854IODBC_C_SRC=""
20855if test "$wxUSE_ODBC" = "yes" ; then
20856 cat >> confdefs.h <<\EOF
20857#define wxUSE_ODBC 1
20858EOF
20859
20860 WXODBCFLAG="-D_IODBC_"
20861 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
20862fi
20863
20864
20865if test "$wxUSE_POSTSCRIPT" = "yes" ; then
20866 cat >> confdefs.h <<\EOF
20867#define wxUSE_POSTSCRIPT 1
20868EOF
20869
20870fi
20871
20872cat >> confdefs.h <<\EOF
20873#define wxUSE_AFM_FOR_POSTSCRIPT 1
20874EOF
20875
20876
20877cat >> confdefs.h <<\EOF
20878#define wxUSE_NORMALIZED_PS_FONTS 1
20879EOF
20880
20881
20882
20883if test "$wxUSE_CONSTRAINTS" = "yes"; then
20884 cat >> confdefs.h <<\EOF
20885#define wxUSE_CONSTRAINTS 1
20886EOF
20887
20888 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
20889fi
20890
20891if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20892
20893
20894 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20895 cat >> confdefs.h <<\EOF
20896#define wxUSE_MDI_ARCHITECTURE 1
20897EOF
20898
20899 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
20900 fi
20901fi
20902
20903if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
20904 cat >> confdefs.h <<\EOF
20905#define wxUSE_DOC_VIEW_ARCHITECTURE 1
20906EOF
20907
20908 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
20909 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
20910 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
20911 fi
20912fi
20913
20914if test "$wxUSE_HELP" = "yes"; then
20915 cat >> confdefs.h <<\EOF
20916#define wxUSE_HELP 1
20917EOF
20918
20919 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
20920
20921 if test "$wxUSE_MSW" = 1; then
20922 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
20923 cat >> confdefs.h <<\EOF
20924#define wxUSE_MS_HTML_HELP 1
20925EOF
20926
20927 fi
20928 fi
20929
20930 if test "$wxUSE_WXHTML_HELP" = "yes"; then
20931 if test "$wxUSE_HTML" = "yes"; then
20932 cat >> confdefs.h <<\EOF
20933#define wxUSE_WXHTML_HELP 1
20934EOF
20935
20936 else
20937 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
20938 wxUSE_WXHTML_HELP=no
20939 fi
20940 fi
20941fi
20942
20943if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
20944 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20945 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
20946 else
20947 cat >> confdefs.h <<\EOF
20948#define wxUSE_PRINTING_ARCHITECTURE 1
20949EOF
20950
20951 fi
20952 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
20953fi
20954
20955if test "$wxUSE_PROLOGIO" = "yes" ; then
20956 cat >> confdefs.h <<\EOF
20957#define wxUSE_PROLOGIO 1
20958EOF
20959
20960 ALL_OBJECTS="$ALL_OBJECTS parser.o"
20961fi
20962
20963if test "$wxUSE_RESOURCES" = "yes" ; then
20964 if test "$wxUSE_NANOX" = "yes"; then
20965 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
20966 else
20967 cat >> confdefs.h <<\EOF
20968#define wxUSE_RESOURCES 1
20969EOF
20970
20971 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
20972 fi
20973 if test "$wxUSE_PROLOGIO" != "yes" ; then
20974 ALL_OBJECTS="$ALL_OBJECTS parser.o"
20975 fi
20976fi
20977
20978if test "$wxUSE_X_RESOURCES" = "yes"; then
20979 cat >> confdefs.h <<\EOF
20980#define wxUSE_X_RESOURCES 1
20981EOF
20982
20983fi
20984
20985
20986if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
20987 -o "$wxUSE_CLIPBOARD" = "yes" \
20988 -o "$wxUSE_OLE" = "yes" \
20989 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
20990 for ac_hdr in ole2.h
20991do
20992ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20993echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20994echo "configure:20995: checking for $ac_hdr" >&5
20995if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
20996 echo $ac_n "(cached) $ac_c" 1>&6
20997else
20998 cat > conftest.$ac_ext <<EOF
20999#line 21000 "configure"
21000#include "confdefs.h"
21001#include <$ac_hdr>
21002EOF
21003ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21004{ (eval echo configure:21005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21005ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21006if test -z "$ac_err"; then
21007 rm -rf conftest*
21008 eval "ac_cv_header_$ac_safe=yes"
21009else
21010 echo "$ac_err" >&5
21011 echo "configure: failed program was:" >&5
21012 cat conftest.$ac_ext >&5
21013 rm -rf conftest*
21014 eval "ac_cv_header_$ac_safe=no"
21015fi
21016rm -f conftest*
21017fi
21018if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21019 echo "$ac_t""yes" 1>&6
21020 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21021 cat >> confdefs.h <<EOF
21022#define $ac_tr_hdr 1
21023EOF
21024
21025else
21026 echo "$ac_t""no" 1>&6
21027fi
21028done
21029
21030
21031 if test "$ac_cv_header_ole2_h" = "yes" ; then
21032 if test "$GCC" = yes ; then
21033
21034 ac_ext=C
21035# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21036ac_cpp='$CXXCPP $CPPFLAGS'
21037ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21038ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21039cross_compiling=$ac_cv_prog_cxx_cross
21040
21041
21042 echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
21043echo "configure:21044: checking if g++ requires -fvtable-thunks" >&5
21044 cat > conftest.$ac_ext <<EOF
21045#line 21046 "configure"
21046#include "confdefs.h"
21047#include <windows.h>
21048 #include <ole2.h>
21049int main() {
21050
21051; return 0; }
21052EOF
21053if { (eval echo configure:21054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21054 rm -rf conftest*
21055 echo "$ac_t""no" 1>&6
21056else
21057 echo "configure: failed program was:" >&5
21058 cat conftest.$ac_ext >&5
21059 rm -rf conftest*
21060 echo "$ac_t""yes" 1>&6
21061 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
21062fi
21063rm -f conftest*
21064 ac_ext=c
21065# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
21066ac_cpp='$CPP $CPPFLAGS'
21067ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
21068ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21069cross_compiling=$ac_cv_prog_cc_cross
21070
21071 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
21072 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
21073 cat >> confdefs.h <<\EOF
21074#define wxUSE_OLE 1
21075EOF
21076
21077
21078 fi
21079
21080 cat >> confdefs.h <<\EOF
21081#define wxUSE_DATAOBJ 1
21082EOF
21083
21084 else
21085 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
21086
21087 wxUSE_CLIPBOARD=no
21088 wxUSE_DRAG_AND_DROP=no
21089 wxUSE_DATAOBJ=no
21090 wxUSE_OLE=no
21091 fi
21092
21093 if test "$wxUSE_METAFILE" = "yes"; then
21094 cat >> confdefs.h <<\EOF
21095#define wxUSE_METAFILE 1
21096EOF
21097
21098
21099 cat >> confdefs.h <<\EOF
21100#define wxUSE_ENH_METAFILE 1
21101EOF
21102
21103 fi
21104fi
21105
21106if test "$wxUSE_IPC" = "yes"; then
21107 if test "$wxUSE_SOCKETS" != "yes"; then
21108 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
21109 fi
21110
21111 cat >> confdefs.h <<\EOF
21112#define wxUSE_IPC 1
21113EOF
21114
21115fi
21116
21117if test "$wxUSE_CLIPBOARD" = "yes"; then
21118 if test "$wxUSE_MGL" = 1; then
21119 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
21120 wxUSE_CLIPBOARD=no
21121 fi
21122
21123 if test "$wxUSE_CLIPBOARD" = "yes"; then
21124 cat >> confdefs.h <<\EOF
21125#define wxUSE_CLIPBOARD 1
21126EOF
21127
21128
21129 cat >> confdefs.h <<\EOF
21130#define wxUSE_DATAOBJ 1
21131EOF
21132
21133 fi
21134fi
21135
21136if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
21137 if test "$wxUSE_GTK" = 1; then
21138 if test "$WXGTK12" != 1; then
21139 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
21140 wxUSE_DRAG_AND_DROP=no
21141 fi
21142 fi
21143
21144 if test "$wxUSE_MOTIF" = 1; then
21145 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
21146 wxUSE_DRAG_AND_DROP=no
21147 fi
21148
21149 if test "$wxUSE_X11" = 1; then
21150 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
21151 wxUSE_DRAG_AND_DROP=no
21152 fi
21153
21154 if test "$wxUSE_MGL" = 1; then
21155 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
21156 wxUSE_DRAG_AND_DROP=no
21157 fi
21158
21159 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
21160 cat >> confdefs.h <<\EOF
21161#define wxUSE_DRAG_AND_DROP 1
21162EOF
21163
21164 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
21165 fi
21166
21167fi
21168
21169if test "$wxUSE_SPLINES" = "yes" ; then
21170 cat >> confdefs.h <<\EOF
21171#define wxUSE_SPLINES 1
21172EOF
21173
21174fi
21175
21176
21177USES_CONTROLS=0
21178if test "$wxUSE_CONTROLS" = "yes"; then
21179 USES_CONTROLS=1
21180fi
21181
21182if test "$wxUSE_ACCEL" = "yes"; then
21183 cat >> confdefs.h <<\EOF
21184#define wxUSE_ACCEL 1
21185EOF
21186
21187 USES_CONTROLS=1
21188fi
21189
21190if test "$wxUSE_BUTTON" = "yes"; then
21191 cat >> confdefs.h <<\EOF
21192#define wxUSE_BUTTON 1
21193EOF
21194
21195 USES_CONTROLS=1
21196fi
21197
21198if test "$wxUSE_BMPBUTTON" = "yes"; then
21199 cat >> confdefs.h <<\EOF
21200#define wxUSE_BMPBUTTON 1
21201EOF
21202
21203 USES_CONTROLS=1
21204fi
21205
21206if test "$wxUSE_CALCTRL" = "yes"; then
21207 cat >> confdefs.h <<\EOF
21208#define wxUSE_CALENDARCTRL 1
21209EOF
21210
21211 USES_CONTROLS=1
21212 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
21213fi
21214
21215if test "$wxUSE_CARET" = "yes"; then
21216 cat >> confdefs.h <<\EOF
21217#define wxUSE_CARET 1
21218EOF
21219
21220 USES_CONTROLS=1
21221 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
21222fi
21223
21224if test "$wxUSE_COMBOBOX" = "yes"; then
21225 cat >> confdefs.h <<\EOF
21226#define wxUSE_COMBOBOX 1
21227EOF
21228
21229 USES_CONTROLS=1
21230fi
21231
21232if test "$wxUSE_CHOICE" = "yes"; then
21233 cat >> confdefs.h <<\EOF
21234#define wxUSE_CHOICE 1
21235EOF
21236
21237 USES_CONTROLS=1
21238fi
21239
21240if test "$wxUSE_CHECKBOX" = "yes"; then
21241 cat >> confdefs.h <<\EOF
21242#define wxUSE_CHECKBOX 1
21243EOF
21244
21245 USES_CONTROLS=1
21246fi
21247
21248if test "$wxUSE_CHECKLST" = "yes"; then
21249 cat >> confdefs.h <<\EOF
21250#define wxUSE_CHECKLISTBOX 1
21251EOF
21252
21253 USES_CONTROLS=1
21254 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
21255fi
21256
21257if test "$wxUSE_GAUGE" = "yes"; then
21258 cat >> confdefs.h <<\EOF
21259#define wxUSE_GAUGE 1
21260EOF
21261
21262 USES_CONTROLS=1
21263fi
21264
21265if test "$wxUSE_NEW_GRID" = "yes"; then
21266 wxUSE_GRID="yes"
21267 cat >> confdefs.h <<\EOF
21268#define wxUSE_NEW_GRID 1
21269EOF
21270
21271 USES_CONTROLS=1
21272 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
21273fi
21274
21275if test "$wxUSE_GRID" = "yes"; then
21276 cat >> confdefs.h <<\EOF
21277#define wxUSE_GRID 1
21278EOF
21279
21280 USES_CONTROLS=1
21281 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
21282fi
21283
21284if test "$wxUSE_IMAGLIST" = "yes"; then
21285 cat >> confdefs.h <<\EOF
21286#define wxUSE_IMAGLIST 1
21287EOF
21288
21289fi
21290
21291if test "$wxUSE_LISTBOX" = "yes"; then
21292 cat >> confdefs.h <<\EOF
21293#define wxUSE_LISTBOX 1
21294EOF
21295
21296 USES_CONTROLS=1
21297fi
21298
21299if test "$wxUSE_LISTCTRL" = "yes"; then
21300 if test "$wxUSE_IMAGLIST" = "yes"; then
21301 cat >> confdefs.h <<\EOF
21302#define wxUSE_LISTCTRL 1
21303EOF
21304
21305 USES_CONTROLS=1
21306 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
21307 else
21308 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
21309 fi
21310fi
21311
21312if test "$wxUSE_NOTEBOOK" = "yes"; then
21313 cat >> confdefs.h <<\EOF
21314#define wxUSE_NOTEBOOK 1
21315EOF
21316
21317 USES_CONTROLS=1
21318 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
21319fi
21320
21321if test "$wxUSE_PROPSHEET" = "yes"; then
21322 cat >> confdefs.h <<\EOF
21323#define wxUSE_PROPSHEET 1
21324EOF
21325
21326 USES_CONTROLS=1
21327 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
21328fi
21329
21330if test "$wxUSE_RADIOBOX" = "yes"; then
21331 cat >> confdefs.h <<\EOF
21332#define wxUSE_RADIOBOX 1
21333EOF
21334
21335 USES_CONTROLS=1
21336fi
21337
21338if test "$wxUSE_RADIOBTN" = "yes"; then
21339 cat >> confdefs.h <<\EOF
21340#define wxUSE_RADIOBTN 1
21341EOF
21342
21343 USES_CONTROLS=1
21344fi
21345
21346if test "$wxUSE_SASH" = "yes"; then
21347 cat >> confdefs.h <<\EOF
21348#define wxUSE_SASH 1
21349EOF
21350
21351 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
21352fi
21353
21354if test "$wxUSE_SCROLLBAR" = "yes"; then
21355 cat >> confdefs.h <<\EOF
21356#define wxUSE_SCROLLBAR 1
21357EOF
21358
21359 USES_CONTROLS=1
21360 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
21361fi
21362
21363if test "$wxUSE_SLIDER" = "yes"; then
21364 cat >> confdefs.h <<\EOF
21365#define wxUSE_SLIDER 1
21366EOF
21367
21368 USES_CONTROLS=1
21369fi
21370
21371if test "$wxUSE_SPINBTN" = "yes"; then
21372 cat >> confdefs.h <<\EOF
21373#define wxUSE_SPINBTN 1
21374EOF
21375
21376 USES_CONTROLS=1
21377fi
21378
21379if test "$wxUSE_SPINCTRL" = "yes"; then
21380 cat >> confdefs.h <<\EOF
21381#define wxUSE_SPINCTRL 1
21382EOF
21383
21384 USES_CONTROLS=1
21385fi
21386
21387if test "$wxUSE_SPLITTER" = "yes"; then
21388 cat >> confdefs.h <<\EOF
21389#define wxUSE_SPLITTER 1
21390EOF
21391
21392 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
21393fi
21394
21395if test "$wxUSE_STATBMP" = "yes"; then
21396 cat >> confdefs.h <<\EOF
21397#define wxUSE_STATBMP 1
21398EOF
21399
21400 USES_CONTROLS=1
21401fi
21402
21403if test "$wxUSE_STATBOX" = "yes"; then
21404 cat >> confdefs.h <<\EOF
21405#define wxUSE_STATBOX 1
21406EOF
21407
21408 USES_CONTROLS=1
21409fi
21410
21411if test "$wxUSE_STATTEXT" = "yes"; then
21412 cat >> confdefs.h <<\EOF
21413#define wxUSE_STATTEXT 1
21414EOF
21415
21416 USES_CONTROLS=1
21417fi
21418
21419if test "$wxUSE_STATLINE" = "yes"; then
21420 cat >> confdefs.h <<\EOF
21421#define wxUSE_STATLINE 1
21422EOF
21423
21424 USES_CONTROLS=1
21425fi
21426
21427if test "$wxUSE_STATUSBAR" = "yes"; then
21428 cat >> confdefs.h <<\EOF
21429#define wxUSE_STATUSBAR 1
21430EOF
21431
21432 USES_CONTROLS=1
21433
21434 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
21435fi
21436
21437if test "$wxUSE_TABDIALOG" = "yes"; then
21438 cat >> confdefs.h <<\EOF
21439#define wxUSE_TAB_DIALOG 1
21440EOF
21441
21442 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
21443fi
21444
21445if test "$wxUSE_TEXTCTRL" = "yes"; then
21446 cat >> confdefs.h <<\EOF
21447#define wxUSE_TEXTCTRL 1
21448EOF
21449
21450 USES_CONTROLS=1
21451 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
21452fi
21453
21454if test "$wxUSE_TOGGLEBTN" = "yes"; then
21455 if test "$wxUSE_MAC" = 1; then
21456 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
21457 wxUSE_TOGGLEBTN=no
21458 fi
21459 if test "$wxUSE_UNIVERSAL" = "yes"; then
21460 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
21461 wxUSE_TOGGLEBTN=no
21462 fi
21463
21464 if test "$wxUSE_TOGGLEBTN" = "yes"; then
21465 cat >> confdefs.h <<\EOF
21466#define wxUSE_TOGGLEBTN 1
21467EOF
21468
21469 USES_CONTROLS=1
21470 fi
21471fi
21472
21473if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
21474 cat >> confdefs.h <<\EOF
21475#define wxUSE_TOOLBAR_SIMPLE 1
21476EOF
21477
21478 wxUSE_TOOLBAR="yes"
21479 USES_CONTROLS=1
21480fi
21481
21482if test "$wxUSE_TOOLBAR" = "yes"; then
21483 cat >> confdefs.h <<\EOF
21484#define wxUSE_TOOLBAR 1
21485EOF
21486
21487 USES_CONTROLS=1
21488
21489 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
21490 wxUSE_TOOLBAR_NATIVE="yes"
21491 fi
21492
21493 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
21494 cat >> confdefs.h <<\EOF
21495#define wxUSE_TOOLBAR_NATIVE 1
21496EOF
21497
21498 USES_CONTROLS=1
21499 fi
21500
21501 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
21502fi
21503
21504if test "$wxUSE_TOOLTIPS" = "yes"; then
21505 if test "$wxUSE_MOTIF" = 1; then
21506 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
21507 else
21508 if test "$wxUSE_UNIVERSAL" = "yes"; then
21509 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
21510 else
21511 cat >> confdefs.h <<\EOF
21512#define wxUSE_TOOLTIPS 1
21513EOF
21514
21515 fi
21516 fi
21517fi
21518
21519if test "$wxUSE_TREECTRL" = "yes"; then
21520 if test "$wxUSE_IMAGLIST" = "yes"; then
21521 cat >> confdefs.h <<\EOF
21522#define wxUSE_TREECTRL 1
21523EOF
21524
21525 USES_CONTROLS=1
21526 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
21527 else
21528 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
21529 fi
21530fi
21531
21532if test "$wxUSE_POPUPWIN" = "yes"; then
21533 if test "$wxUSE_MAC" = 1; then
21534 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
21535 else
21536 if test "$wxUSE_MOTIF" = 1; then
21537 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
21538 else
21539 if test "$wxUSE_PM" = 1; then
21540 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
21541 else
21542 cat >> confdefs.h <<\EOF
21543#define wxUSE_POPUPWIN 1
21544EOF
21545
21546
21547 USES_CONTROLS=1
21548 fi
21549 fi
21550 fi
21551fi
21552
21553if test "$wxUSE_TIPWINDOW" = "yes"; then
21554 if test "$wxUSE_PM" = 1; then
21555 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
21556 else
21557 cat >> confdefs.h <<\EOF
21558#define wxUSE_TIPWINDOW 1
21559EOF
21560
21561 fi
21562fi
21563
21564if test "$USES_CONTROLS" = 1; then
21565 cat >> confdefs.h <<\EOF
21566#define wxUSE_CONTROLS 1
21567EOF
21568
21569fi
21570
21571
21572if test "$wxUSE_TREELAYOUT" = "yes"; then
21573 cat >> confdefs.h <<\EOF
21574#define wxUSE_TREELAYOUT 1
21575EOF
21576
21577 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
21578fi
21579
21580if test "$wxUSE_DRAGIMAGE" = "yes"; then
21581 cat >> confdefs.h <<\EOF
21582#define wxUSE_DRAGIMAGE 1
21583EOF
21584
21585 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
21586fi
21587
21588if test "$wxUSE_MENUS" = "yes"; then
21589 cat >> confdefs.h <<\EOF
21590#define wxUSE_MENUS 1
21591EOF
21592
21593 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
21594fi
21595
21596if test "$wxUSE_METAFILE" = "yes"; then
21597 cat >> confdefs.h <<\EOF
21598#define wxUSE_METAFILE 1
21599EOF
21600
21601fi
21602
21603if test "$wxUSE_MIMETYPE" = "yes"; then
21604 cat >> confdefs.h <<\EOF
21605#define wxUSE_MIMETYPE 1
21606EOF
21607
21608fi
21609
21610if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
21611 cat >> confdefs.h <<\EOF
21612#define wxUSE_SYSTEM_OPTIONS 1
21613EOF
21614
21615if test "$TOOLKIT" = "MSW"; then
21616 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
21617fi
21618
21619fi
21620
21621if test "$wxUSE_PROTOCOL" = "yes"; then
21622 if test "$wxUSE_SOCKETS" != "yes"; then
21623 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
21624 wxUSE_PROTOCOL=no
21625 fi
21626
21627 if test "$wxUSE_PROTOCOL" = "yes"; then
21628 cat >> confdefs.h <<\EOF
21629#define wxUSE_PROTOCOL 1
21630EOF
21631
21632
21633 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
21634 cat >> confdefs.h <<\EOF
21635#define wxUSE_PROTOCOL_HTTP 1
21636EOF
21637
21638 fi
21639 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
21640 cat >> confdefs.h <<\EOF
21641#define wxUSE_PROTOCOL_FTP 1
21642EOF
21643
21644 fi
21645 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
21646 cat >> confdefs.h <<\EOF
21647#define wxUSE_PROTOCOL_FILE 1
21648EOF
21649
21650 fi
21651 fi
21652fi
21653
21654if test "$wxUSE_URL" = "yes"; then
21655 if test "$wxUSE_PROTOCOL" != "yes"; then
21656 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
21657 wxUSE_URL=no
21658 fi
21659 if test "$wxUSE_URL" = "yes"; then
21660 cat >> confdefs.h <<\EOF
21661#define wxUSE_URL 1
21662EOF
21663
21664 fi
21665fi
21666
21667if test "$wxUSE_MINIFRAME" = "yes"; then
21668 cat >> confdefs.h <<\EOF
21669#define wxUSE_MINIFRAME 1
21670EOF
21671
21672 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
21673fi
21674
21675if test "$wxUSE_HTML" = "yes"; then
21676 cat >> confdefs.h <<\EOF
21677#define wxUSE_HTML 1
21678EOF
21679
21680 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
21681fi
21682
21683if test "$wxUSE_VALIDATORS" = "yes"; then
21684 cat >> confdefs.h <<\EOF
21685#define wxUSE_VALIDATORS 1
21686EOF
21687
21688 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
21689fi
21690
21691if test "$wxUSE_PALETTE" = "yes" ; then
21692 cat >> confdefs.h <<\EOF
21693#define wxUSE_PALETTE 1
21694EOF
21695
21696fi
21697
21698if test "$wxUSE_IMAGE" = "yes" ; then
21699 cat >> confdefs.h <<\EOF
21700#define wxUSE_IMAGE 1
21701EOF
21702
21703fi
21704
21705if test "$wxUSE_GIF" = "yes" ; then
21706 cat >> confdefs.h <<\EOF
21707#define wxUSE_GIF 1
21708EOF
21709
21710fi
21711
21712if test "$wxUSE_PCX" = "yes" ; then
21713 cat >> confdefs.h <<\EOF
21714#define wxUSE_PCX 1
21715EOF
21716
21717fi
21718
21719if test "$wxUSE_IFF" = "yes" ; then
21720 cat >> confdefs.h <<\EOF
21721#define wxUSE_IFF 1
21722EOF
21723
21724fi
21725
21726if test "$wxUSE_PNM" = "yes" ; then
21727 cat >> confdefs.h <<\EOF
21728#define wxUSE_PNM 1
21729EOF
21730
21731fi
21732
21733if test "$wxUSE_XPM" = "yes" ; then
21734 cat >> confdefs.h <<\EOF
21735#define wxUSE_XPM 1
21736EOF
21737
21738fi
21739
21740if test "$wxUSE_ICO_CUR" = "yes" ; then
21741 cat >> confdefs.h <<\EOF
21742#define wxUSE_ICO_CUR 1
21743EOF
21744
21745fi
21746
21747if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
21748 LIBS=" -lunicows $LIBS"
21749fi
21750
21751
21752if test "$wxUSE_CHOICEDLG" = "yes"; then
21753 cat >> confdefs.h <<\EOF
21754#define wxUSE_CHOICEDLG 1
21755EOF
21756
21757fi
21758
21759if test "$wxUSE_COLOURDLG" = "yes"; then
21760 cat >> confdefs.h <<\EOF
21761#define wxUSE_COLOURDLG 1
21762EOF
21763
21764fi
21765
21766if test "$wxUSE_FILEDLG" = "yes"; then
21767 cat >> confdefs.h <<\EOF
21768#define wxUSE_FILEDLG 1
21769EOF
21770
21771fi
21772
21773if test "$wxUSE_FINDREPLDLG" = "yes"; then
21774 cat >> confdefs.h <<\EOF
21775#define wxUSE_FINDREPLDLG 1
21776EOF
21777
21778fi
21779
21780if test "$wxUSE_FONTDLG" = "yes"; then
21781 cat >> confdefs.h <<\EOF
21782#define wxUSE_FONTDLG 1
21783EOF
21784
21785fi
21786
21787if test "$wxUSE_DIRDLG" = "yes"; then
21788 if test "$wxUSE_TREECTRL" != "yes"; then
21789 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
21790 else
21791 cat >> confdefs.h <<\EOF
21792#define wxUSE_DIRDLG 1
21793EOF
21794
21795 fi
21796fi
21797
21798if test "$wxUSE_MSGDLG" = "yes"; then
21799 cat >> confdefs.h <<\EOF
21800#define wxUSE_MSGDLG 1
21801EOF
21802
21803fi
21804
21805if test "$wxUSE_NUMBERDLG" = "yes"; then
21806 cat >> confdefs.h <<\EOF
21807#define wxUSE_NUMBERDLG 1
21808EOF
21809
21810fi
21811
21812if test "$wxUSE_PROGRESSDLG" = "yes"; then
21813 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21814 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
21815 else
21816 cat >> confdefs.h <<\EOF
21817#define wxUSE_PROGRESSDLG 1
21818EOF
21819
21820 fi
21821fi
21822
21823if test "$wxUSE_SPLASH" = "yes"; then
21824 cat >> confdefs.h <<\EOF
21825#define wxUSE_SPLASH 1
21826EOF
21827
21828fi
21829
21830if test "$wxUSE_STARTUP_TIPS" = "yes"; then
21831 if test "$wxUSE_CONSTRAINTS" != "yes"; then
21832 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
21833 else
21834 cat >> confdefs.h <<\EOF
21835#define wxUSE_STARTUP_TIPS 1
21836EOF
21837
21838 fi
21839fi
21840
21841if test "$wxUSE_TEXTDLG" = "yes"; then
21842 cat >> confdefs.h <<\EOF
21843#define wxUSE_TEXTDLG 1
21844EOF
21845
21846fi
21847
21848if test "$wxUSE_WIZARDDLG" = "yes"; then
21849 cat >> confdefs.h <<\EOF
21850#define wxUSE_WIZARDDLG 1
21851EOF
21852
21853 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
21854fi
21855
21856
21857if test "$cross_compiling" = "yes"; then
21858 OSINFO="\"$host\""
21859else
21860 OSINFO=`uname -s -r -m`
21861 OSINFO="\"$OSINFO\""
21862fi
21863
21864cat >> confdefs.h <<EOF
21865#define WXWIN_OS_DESCRIPTION $OSINFO
21866EOF
21867
21868
21869
21870if test "x$prefix" != "xNONE"; then
21871 wxPREFIX=$prefix
21872else
21873 wxPREFIX=$ac_default_prefix
21874fi
21875
21876cat >> confdefs.h <<EOF
21877#define wxINSTALL_PREFIX "$wxPREFIX"
21878EOF
21879
21880
21881top_builddir=`pwd`
21882
21883
21884
21885
21886if test "$wxUSE_MAC" = 1 ; then
21887 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
21888fi
21889
21890
21891LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
21892
21893have_cos=0
21894have_floor=0
21895for ac_func in cos
21896do
21897echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21898echo "configure:21899: checking for $ac_func" >&5
21899if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21900 echo $ac_n "(cached) $ac_c" 1>&6
21901else
21902 cat > conftest.$ac_ext <<EOF
21903#line 21904 "configure"
21904#include "confdefs.h"
21905/* System header to define __stub macros and hopefully few prototypes,
21906 which can conflict with char $ac_func(); below. */
21907#include <assert.h>
21908/* Override any gcc2 internal prototype to avoid an error. */
21909/* We use char because int might match the return type of a gcc2
21910 builtin and then its argument prototype would still apply. */
21911char $ac_func();
21912
21913int main() {
21914
21915/* The GNU C library defines this for functions which it implements
21916 to always fail with ENOSYS. Some functions are actually named
21917 something starting with __ and the normal name is an alias. */
21918#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21919choke me
21920#else
21921$ac_func();
21922#endif
21923
21924; return 0; }
21925EOF
21926if { (eval echo configure:21927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21927 rm -rf conftest*
21928 eval "ac_cv_func_$ac_func=yes"
21929else
21930 echo "configure: failed program was:" >&5
21931 cat conftest.$ac_ext >&5
21932 rm -rf conftest*
21933 eval "ac_cv_func_$ac_func=no"
21934fi
21935rm -f conftest*
21936fi
21937
21938if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21939 echo "$ac_t""yes" 1>&6
21940 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21941 cat >> confdefs.h <<EOF
21942#define $ac_tr_func 1
21943EOF
21944 have_cos=1
21945else
21946 echo "$ac_t""no" 1>&6
21947fi
21948done
21949
21950for ac_func in floor
21951do
21952echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21953echo "configure:21954: checking for $ac_func" >&5
21954if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
21955 echo $ac_n "(cached) $ac_c" 1>&6
21956else
21957 cat > conftest.$ac_ext <<EOF
21958#line 21959 "configure"
21959#include "confdefs.h"
21960/* System header to define __stub macros and hopefully few prototypes,
21961 which can conflict with char $ac_func(); below. */
21962#include <assert.h>
21963/* Override any gcc2 internal prototype to avoid an error. */
21964/* We use char because int might match the return type of a gcc2
21965 builtin and then its argument prototype would still apply. */
21966char $ac_func();
21967
21968int main() {
21969
21970/* The GNU C library defines this for functions which it implements
21971 to always fail with ENOSYS. Some functions are actually named
21972 something starting with __ and the normal name is an alias. */
21973#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21974choke me
21975#else
21976$ac_func();
21977#endif
21978
21979; return 0; }
21980EOF
21981if { (eval echo configure:21982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21982 rm -rf conftest*
21983 eval "ac_cv_func_$ac_func=yes"
21984else
21985 echo "configure: failed program was:" >&5
21986 cat conftest.$ac_ext >&5
21987 rm -rf conftest*
21988 eval "ac_cv_func_$ac_func=no"
21989fi
21990rm -f conftest*
21991fi
21992
21993if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21994 echo "$ac_t""yes" 1>&6
21995 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21996 cat >> confdefs.h <<EOF
21997#define $ac_tr_func 1
21998EOF
21999 have_floor=1
22000else
22001 echo "$ac_t""no" 1>&6
22002fi
22003done
22004
22005echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6
22006echo "configure:22007: checking if floating point functions link without -lm" >&5
22007if test "$have_cos" = 1 -a "$have_floor" = 1; then
22008 echo "$ac_t""yes" 1>&6
22009else
22010 echo "$ac_t""no" 1>&6
22011 LIBS="$LIBS -lm"
22012 # use different functions to avoid configure caching
22013 have_sin=0
22014 have_ceil=0
22015 for ac_func in sin
22016do
22017echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22018echo "configure:22019: checking for $ac_func" >&5
22019if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22020 echo $ac_n "(cached) $ac_c" 1>&6
22021else
22022 cat > conftest.$ac_ext <<EOF
22023#line 22024 "configure"
22024#include "confdefs.h"
22025/* System header to define __stub macros and hopefully few prototypes,
22026 which can conflict with char $ac_func(); below. */
22027#include <assert.h>
22028/* Override any gcc2 internal prototype to avoid an error. */
22029/* We use char because int might match the return type of a gcc2
22030 builtin and then its argument prototype would still apply. */
22031char $ac_func();
22032
22033int main() {
22034
22035/* The GNU C library defines this for functions which it implements
22036 to always fail with ENOSYS. Some functions are actually named
22037 something starting with __ and the normal name is an alias. */
22038#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22039choke me
22040#else
22041$ac_func();
22042#endif
22043
22044; return 0; }
22045EOF
22046if { (eval echo configure:22047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22047 rm -rf conftest*
22048 eval "ac_cv_func_$ac_func=yes"
22049else
22050 echo "configure: failed program was:" >&5
22051 cat conftest.$ac_ext >&5
22052 rm -rf conftest*
22053 eval "ac_cv_func_$ac_func=no"
22054fi
22055rm -f conftest*
22056fi
22057
22058if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22059 echo "$ac_t""yes" 1>&6
22060 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22061 cat >> confdefs.h <<EOF
22062#define $ac_tr_func 1
22063EOF
22064 have_sin=1
22065else
22066 echo "$ac_t""no" 1>&6
22067fi
22068done
22069
22070 for ac_func in ceil
22071do
22072echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22073echo "configure:22074: checking for $ac_func" >&5
22074if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
22075 echo $ac_n "(cached) $ac_c" 1>&6
22076else
22077 cat > conftest.$ac_ext <<EOF
22078#line 22079 "configure"
22079#include "confdefs.h"
22080/* System header to define __stub macros and hopefully few prototypes,
22081 which can conflict with char $ac_func(); below. */
22082#include <assert.h>
22083/* Override any gcc2 internal prototype to avoid an error. */
22084/* We use char because int might match the return type of a gcc2
22085 builtin and then its argument prototype would still apply. */
22086char $ac_func();
22087
22088int main() {
22089
22090/* The GNU C library defines this for functions which it implements
22091 to always fail with ENOSYS. Some functions are actually named
22092 something starting with __ and the normal name is an alias. */
22093#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22094choke me
22095#else
22096$ac_func();
22097#endif
22098
22099; return 0; }
22100EOF
22101if { (eval echo configure:22102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22102 rm -rf conftest*
22103 eval "ac_cv_func_$ac_func=yes"
22104else
22105 echo "configure: failed program was:" >&5
22106 cat conftest.$ac_ext >&5
22107 rm -rf conftest*
22108 eval "ac_cv_func_$ac_func=no"
22109fi
22110rm -f conftest*
22111fi
22112
22113if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22114 echo "$ac_t""yes" 1>&6
22115 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22116 cat >> confdefs.h <<EOF
22117#define $ac_tr_func 1
22118EOF
22119 have_ceil=1
22120else
22121 echo "$ac_t""no" 1>&6
22122fi
22123done
22124
22125 echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6
22126echo "configure:22127: checking if floating point functions link with -lm" >&5
22127 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
22128 echo "$ac_t""yes" 1>&6
22129 else
22130 echo "$ac_t""no" 1>&6
22131 # not sure we should warn the user, crash, etc.
22132 fi
22133fi
22134
22135if test "$wxUSE_GUI" = "yes"; then
22136
22137 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
22138
22139
22140 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
22141 drawing dynamic erase event exec font image \
22142 minimal propsize rotate widgets"
22143
22144 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
22145else
22146 SAMPLES_SUBDIRS="console"
22147fi
22148
22149
22150INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
22151-I\${top_srcdir}/include \
22152$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
22153$TOOLKIT_INCLUDE"
22154
22155if test "$wxUSE_GTK" = 1; then
22156 WXCONFIG_INCLUDE=
22157else
22158 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
22159fi
22160
22161if test "$GXX" = yes ; then
22162 CXXWARNINGS="-Wall"
22163
22164 if test "$wxUSE_NO_DEPS" = "no" ; then
22165 CFLAGS="-MMD $CFLAGS"
22166 CXXFLAGS="-MMD $CXXFLAGS"
22167 fi
22168fi
22169
22170EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
22171
22172CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
22173CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
22174CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
22175LIBS=`echo $LIBS | sed 's/ \+/ /g'`
22176
22177LDFLAGS="$LDFLAGS $PROFILE"
22178
22179SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
22180
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254
22255
22256
22257
22258
22259
22260
22261
22262
22263
22264
22265
22266
22267
22268
22269
22270
22271
22272
22273
22274
22275
22276
22277
22278
22279
22280
22281echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
22282echo "configure:22283: checking whether ${MAKE-make} sets \${MAKE}" >&5
22283set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
22284if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
22285 echo $ac_n "(cached) $ac_c" 1>&6
22286else
22287 cat > conftestmake <<\EOF
22288all:
22289 @echo 'ac_maketemp="${MAKE}"'
22290EOF
22291# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22292eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
22293if test -n "$ac_maketemp"; then
22294 eval ac_cv_prog_make_${ac_make}_set=yes
22295else
22296 eval ac_cv_prog_make_${ac_make}_set=no
22297fi
22298rm -f conftestmake
22299fi
22300if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
22301 echo "$ac_t""yes" 1>&6
22302 SET_MAKE=
22303else
22304 echo "$ac_t""no" 1>&6
22305 SET_MAKE="MAKE=${MAKE-make}"
22306fi
22307
22308
22309if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
22310 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
22311fi
22312
22313
22314
22315wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
22316wx_cv_if_gnu_make=$IF_GNU_MAKE
22317wx_cv_path_ifs=$PATH_IFS
22318wx_cv_program_ext=$PROGRAM_EXT
22319wx_cv_target_library=$WX_TARGET_LIBRARY
22320wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
22321wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
22322wx_cv_library_basename=${WX_LIBRARY_BASENAME}
22323wx_cv_release=${WX_RELEASE}
22324wx_cv_current=${WX_CURRENT}
22325wx_cv_revision=${WX_REVISION}
22326wx_cv_age=${WX_AGE}
22327wx_cv_use_gui=${USE_GUI}
22328wx_cv_use_resources=${wxUSE_RESOURCES}
22329export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
22330 wx_cv_path_ifs wx_cv_program_ext \
22331 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \
22332 wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \
22333 wx_cv_use_gui wx_cv_use_resources
22334
22335subdirs="demos samples utils contrib"
22336
22337
22338trap '' 1 2 15
22339cat > confcache <<\EOF
22340# This file is a shell script that caches the results of configure
22341# tests run on this system so they can be shared between configure
22342# scripts and configure runs. It is not useful on other systems.
22343# If it contains results you don't want to keep, you may remove or edit it.
22344#
22345# By default, configure uses ./config.cache as the cache file,
22346# creating it if it does not exist already. You can give configure
22347# the --cache-file=FILE option to use a different cache file; that is
22348# what configure does when it calls configure scripts in
22349# subdirectories, so they share the cache.
22350# Giving --cache-file=/dev/null disables caching, for debugging configure.
22351# config.status only pays attention to the cache file if you give it the
22352# --recheck option to rerun configure.
22353#
22354EOF
22355# The following way of writing the cache mishandles newlines in values,
22356# but we know of no workaround that is simple, portable, and efficient.
22357# So, don't put newlines in cache variables' values.
22358# Ultrix sh set writes to stderr and can't be redirected directly,
22359# and sets the high bit in the cache file unless we assign to the vars.
22360(set) 2>&1 |
22361 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22362 *ac_space=\ *)
22363 # `set' does not quote correctly, so add quotes (double-quote substitution
22364 # turns \\\\ into \\, and sed turns \\ into \).
22365 sed -n \
22366 -e "s/'/'\\\\''/g" \
22367 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
22368 ;;
22369 *)
22370 # `set' quotes correctly as required by POSIX, so do not add quotes.
22371 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
22372 ;;
22373 esac >> confcache
22374if cmp -s $cache_file confcache; then
22375 :
22376else
22377 if test -w $cache_file; then
22378 echo "updating cache $cache_file"
22379 cat confcache > $cache_file
22380 else
22381 echo "not updating unwritable cache $cache_file"
22382 fi
22383fi
22384rm -f confcache
22385
22386trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22387
22388test "x$prefix" = xNONE && prefix=$ac_default_prefix
22389# Let make expand exec_prefix.
22390test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22391
22392# Any assignment to VPATH causes Sun make to only execute
22393# the first set of double-colon rules, so remove it if not needed.
22394# If there is a colon in the path, we need to keep it.
22395if test "x$srcdir" = x.; then
22396 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22397fi
22398
22399trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22400
22401DEFS=-DHAVE_CONFIG_H
22402
22403# Without the "./", some shells look in PATH for config.status.
22404: ${CONFIG_STATUS=./config.status}
22405
22406echo creating $CONFIG_STATUS
22407rm -f $CONFIG_STATUS
22408cat > $CONFIG_STATUS <<EOF
22409#! /bin/sh
22410# Generated automatically by configure.
22411# Run this file to recreate the current configuration.
22412# This directory was configured as follows,
22413# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22414#
22415# $0 $ac_configure_args
22416#
22417# Compiler output produced by configure, useful for debugging
22418# configure, is in ./config.log if it exists.
22419
22420ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22421for ac_option
22422do
22423 case "\$ac_option" in
22424 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22425 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22426 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22427 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22428 echo "$CONFIG_STATUS generated by autoconf version 2.13"
22429 exit 0 ;;
22430 -help | --help | --hel | --he | --h)
22431 echo "\$ac_cs_usage"; exit 0 ;;
22432 *) echo "\$ac_cs_usage"; exit 1 ;;
22433 esac
22434done
22435
22436ac_given_srcdir=$srcdir
22437ac_given_INSTALL="$INSTALL"
22438
22439trap 'rm -fr `echo "
22440 wx-config
22441 version-script
22442 src/make.env
22443 src/makeprog.env
22444 src/makelib.env
22445 Makefile
22446 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22447EOF
22448cat >> $CONFIG_STATUS <<EOF
22449
22450# Protect against being on the right side of a sed subst in config.status.
22451sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22452 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22453$ac_vpsub
22454$extrasub
22455s%@SHELL@%$SHELL%g
22456s%@CFLAGS@%$CFLAGS%g
22457s%@CPPFLAGS@%$CPPFLAGS%g
22458s%@CXXFLAGS@%$CXXFLAGS%g
22459s%@FFLAGS@%$FFLAGS%g
22460s%@DEFS@%$DEFS%g
22461s%@LDFLAGS@%$LDFLAGS%g
22462s%@LIBS@%$LIBS%g
22463s%@exec_prefix@%$exec_prefix%g
22464s%@prefix@%$prefix%g
22465s%@program_transform_name@%$program_transform_name%g
22466s%@bindir@%$bindir%g
22467s%@sbindir@%$sbindir%g
22468s%@libexecdir@%$libexecdir%g
22469s%@datadir@%$datadir%g
22470s%@sysconfdir@%$sysconfdir%g
22471s%@sharedstatedir@%$sharedstatedir%g
22472s%@localstatedir@%$localstatedir%g
22473s%@libdir@%$libdir%g
22474s%@includedir@%$includedir%g
22475s%@oldincludedir@%$oldincludedir%g
22476s%@infodir@%$infodir%g
22477s%@mandir@%$mandir%g
22478s%@host@%$host%g
22479s%@host_alias@%$host_alias%g
22480s%@host_cpu@%$host_cpu%g
22481s%@host_vendor@%$host_vendor%g
22482s%@host_os@%$host_os%g
22483s%@target@%$target%g
22484s%@target_alias@%$target_alias%g
22485s%@target_cpu@%$target_cpu%g
22486s%@target_vendor@%$target_vendor%g
22487s%@target_os@%$target_os%g
22488s%@build@%$build%g
22489s%@build_alias@%$build_alias%g
22490s%@build_cpu@%$build_cpu%g
22491s%@build_vendor@%$build_vendor%g
22492s%@build_os@%$build_os%g
22493s%@CC@%$CC%g
22494s%@CPP@%$CPP%g
22495s%@CXX@%$CXX%g
22496s%@RANLIB@%$RANLIB%g
22497s%@AR@%$AR%g
22498s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22499s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22500s%@INSTALL_DATA@%$INSTALL_DATA%g
22501s%@STRIP@%$STRIP%g
22502s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
22503s%@YACC@%$YACC%g
22504s%@LEX@%$LEX%g
22505s%@LEXLIB@%$LEXLIB%g
22506s%@LN_S@%$LN_S%g
22507s%@CXXCPP@%$CXXCPP%g
22508s%@PKG_CONFIG@%$PKG_CONFIG%g
22509s%@GTK_CFLAGS@%$GTK_CFLAGS%g
22510s%@GTK_LIBS@%$GTK_LIBS%g
22511s%@GTK_CONFIG@%$GTK_CONFIG%g
22512s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
22513s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
22514s%@X_CFLAGS@%$X_CFLAGS%g
22515s%@X_PRE_LIBS@%$X_PRE_LIBS%g
22516s%@X_LIBS@%$X_LIBS%g
22517s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
22518s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g
22519s%@PANGOX_LIBS@%$PANGOX_LIBS%g
22520s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g
22521s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g
22522s%@AIX_CXX_LD@%$AIX_CXX_LD%g
22523s%@RESCOMP@%$RESCOMP%g
22524s%@DEREZ@%$DEREZ%g
22525s%@SETFILE@%$SETFILE%g
22526s%@LIBICONV@%$LIBICONV%g
22527s%@LEX_STEM@%$LEX_STEM%g
22528s%@PATH_IFS@%$PATH_IFS%g
22529s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
22530s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
22531s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
22532s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
22533s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
22534s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g
22535s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
22536s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
22537s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
22538s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
22539s%@PROGRAM_EXT@%$PROGRAM_EXT%g
22540s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
22541s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
22542s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
22543s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
22544s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
22545s%@WX_ALL@%$WX_ALL%g
22546s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
22547s%@SHARED_LD@%$SHARED_LD%g
22548s%@PIC_FLAG@%$PIC_FLAG%g
22549s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
22550s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
22551s%@SONAME_FLAGS@%$SONAME_FLAGS%g
22552s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
22553s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
22554s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
22555s%@STATIC_FLAG@%$STATIC_FLAG%g
22556s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
22557s%@USE_GUI@%$USE_GUI%g
22558s%@AFMINSTALL@%$AFMINSTALL%g
22559s%@WIN32INSTALL@%$WIN32INSTALL%g
22560s%@TOOLKIT@%$TOOLKIT%g
22561s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
22562s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
22563s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
22564s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
22565s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
22566s%@top_builddir@%$top_builddir%g
22567s%@cross_compiling@%$cross_compiling%g
22568s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
22569s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
22570s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
22571s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
22572s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
22573s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
22574s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g
22575s%@ALL_OBJECTS@%$ALL_OBJECTS%g
22576s%@ALL_HEADERS@%$ALL_HEADERS%g
22577s%@ALL_SOURCES@%$ALL_SOURCES%g
22578s%@GUIDIST@%$GUIDIST%g
22579s%@PORT_FILES@%$PORT_FILES%g
22580s%@DISTDIR@%$DISTDIR%g
22581s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
22582s%@LDFLAGS_GL@%$LDFLAGS_GL%g
22583s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g
22584s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
22585s%@OPENGL_LIBS@%$OPENGL_LIBS%g
22586s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
22587s%@EXTRADEFS@%$EXTRADEFS%g
22588s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g
22589s%@RESFLAGS@%$RESFLAGS%g
22590s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
22591s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
22592s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
22593s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
22594s%@LIBWXMACRES@%$LIBWXMACRES%g
22595s%@MACRESCOMP@%$MACRESCOMP%g
22596s%@MACSETFILE@%$MACSETFILE%g
22597s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g
22598s%@GCC@%$GCC%g
22599s%@DLLTOOL@%$DLLTOOL%g
22600s%@AS@%$AS%g
22601s%@NM@%$NM%g
22602s%@LD@%$LD%g
22603s%@MAKEINFO@%$MAKEINFO%g
22604s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
22605s%@INSTALL_DIR@%$INSTALL_DIR%g
22606s%@SET_MAKE@%$SET_MAKE%g
22607s%@subdirs@%$subdirs%g
22608
22609CEOF
22610EOF
22611
22612cat >> $CONFIG_STATUS <<\EOF
22613
22614# Split the substitutions into bite-sized pieces for seds with
22615# small command number limits, like on Digital OSF/1 and HP-UX.
22616ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22617ac_file=1 # Number of current file.
22618ac_beg=1 # First line for current file.
22619ac_end=$ac_max_sed_cmds # Line after last line for current file.
22620ac_more_lines=:
22621ac_sed_cmds=""
22622while $ac_more_lines; do
22623 if test $ac_beg -gt 1; then
22624 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22625 else
22626 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22627 fi
22628 if test ! -s conftest.s$ac_file; then
22629 ac_more_lines=false
22630 rm -f conftest.s$ac_file
22631 else
22632 if test -z "$ac_sed_cmds"; then
22633 ac_sed_cmds="sed -f conftest.s$ac_file"
22634 else
22635 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22636 fi
22637 ac_file=`expr $ac_file + 1`
22638 ac_beg=$ac_end
22639 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22640 fi
22641done
22642if test -z "$ac_sed_cmds"; then
22643 ac_sed_cmds=cat
22644fi
22645EOF
22646
22647cat >> $CONFIG_STATUS <<EOF
22648
22649CONFIG_FILES=\${CONFIG_FILES-"wx-config
22650 version-script
22651 src/make.env
22652 src/makeprog.env
22653 src/makelib.env
22654 Makefile
22655 "}
22656EOF
22657cat >> $CONFIG_STATUS <<\EOF
22658for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22659 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22660 case "$ac_file" in
22661 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22662 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22663 *) ac_file_in="${ac_file}.in" ;;
22664 esac
22665
22666 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22667
22668 # Remove last slash and all that follows it. Not all systems have dirname.
22669 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22670 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22671 # The file is in a subdirectory.
22672 test ! -d "$ac_dir" && mkdir "$ac_dir"
22673 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22674 # A "../" for each directory in $ac_dir_suffix.
22675 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22676 else
22677 ac_dir_suffix= ac_dots=
22678 fi
22679
22680 case "$ac_given_srcdir" in
22681 .) srcdir=.
22682 if test -z "$ac_dots"; then top_srcdir=.
22683 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22684 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22685 *) # Relative path.
22686 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22687 top_srcdir="$ac_dots$ac_given_srcdir" ;;
22688 esac
22689
22690 case "$ac_given_INSTALL" in
22691 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22692 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22693 esac
22694
22695 echo creating "$ac_file"
22696 rm -f "$ac_file"
22697 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22698 case "$ac_file" in
22699 *Makefile*) ac_comsub="1i\\
22700# $configure_input" ;;
22701 *) ac_comsub= ;;
22702 esac
22703
22704 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22705 sed -e "$ac_comsub
22706s%@configure_input@%$configure_input%g
22707s%@srcdir@%$srcdir%g
22708s%@top_srcdir@%$top_srcdir%g
22709s%@INSTALL@%$INSTALL%g
22710" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22711fi; done
22712rm -f conftest.s*
22713
22714# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22715# NAME is the cpp macro being defined and VALUE is the value it is being given.
22716#
22717# ac_d sets the value in "#define NAME VALUE" lines.
22718ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22719ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22720ac_dC='\3'
22721ac_dD='%g'
22722# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22723ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22724ac_uB='\([ ]\)%\1#\2define\3'
22725ac_uC=' '
22726ac_uD='\4%g'
22727# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22728ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22729ac_eB='$%\1#\2define\3'
22730ac_eC=' '
22731ac_eD='%g'
22732
22733if test "${CONFIG_HEADERS+set}" != set; then
22734EOF
22735cat >> $CONFIG_STATUS <<EOF
22736 CONFIG_HEADERS="setup.h:setup.h.in"
22737EOF
22738cat >> $CONFIG_STATUS <<\EOF
22739fi
22740for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22741 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22742 case "$ac_file" in
22743 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22744 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22745 *) ac_file_in="${ac_file}.in" ;;
22746 esac
22747
22748 echo creating $ac_file
22749
22750 rm -f conftest.frag conftest.in conftest.out
22751 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22752 cat $ac_file_inputs > conftest.in
22753
22754EOF
22755
22756# Transform confdefs.h into a sed script conftest.vals that substitutes
22757# the proper values into config.h.in to produce config.h. And first:
22758# Protect against being on the right side of a sed subst in config.status.
22759# Protect against being in an unquoted here document in config.status.
22760rm -f conftest.vals
22761cat > conftest.hdr <<\EOF
22762s/[\\&%]/\\&/g
22763s%[\\$`]%\\&%g
22764s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22765s%ac_d%ac_u%gp
22766s%ac_u%ac_e%gp
22767EOF
22768sed -n -f conftest.hdr confdefs.h > conftest.vals
22769rm -f conftest.hdr
22770
22771# This sed command replaces #undef with comments. This is necessary, for
22772# example, in the case of _POSIX_SOURCE, which is predefined and required
22773# on some systems where configure will not decide to define it.
22774cat >> conftest.vals <<\EOF
22775s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22776EOF
22777
22778# Break up conftest.vals because some shells have a limit on
22779# the size of here documents, and old seds have small limits too.
22780
22781rm -f conftest.tail
22782while :
22783do
22784 ac_lines=`grep -c . conftest.vals`
22785 # grep -c gives empty output for an empty file on some AIX systems.
22786 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22787 # Write a limited-size here document to conftest.frag.
22788 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22789 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22790 echo 'CEOF
22791 sed -f conftest.frag conftest.in > conftest.out
22792 rm -f conftest.in
22793 mv conftest.out conftest.in
22794' >> $CONFIG_STATUS
22795 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22796 rm -f conftest.vals
22797 mv conftest.tail conftest.vals
22798done
22799rm -f conftest.vals
22800
22801cat >> $CONFIG_STATUS <<\EOF
22802 rm -f conftest.frag conftest.h
22803 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22804 cat conftest.in >> conftest.h
22805 rm -f conftest.in
22806 if cmp -s $ac_file conftest.h 2>/dev/null; then
22807 echo "$ac_file is unchanged"
22808 rm -f conftest.h
22809 else
22810 # Remove last slash and all that follows it. Not all systems have dirname.
22811 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22812 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22813 # The file is in a subdirectory.
22814 test ! -d "$ac_dir" && mkdir "$ac_dir"
22815 fi
22816 rm -f $ac_file
22817 mv conftest.h $ac_file
22818 fi
22819fi; done
22820
22821EOF
22822cat >> $CONFIG_STATUS <<EOF
22823
22824 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
22825 LN_S="${LN_S}"
22826
22827
22828EOF
22829cat >> $CONFIG_STATUS <<\EOF
22830
22831 if test ! -h wx-config; then
22832 chmod +x wx-config
22833 mv wx-config wx${TOOLCHAIN_NAME}-config
22834 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
22835 fi
22836
22837 if test ! -d lib; then
22838 mkdir lib
22839 fi
22840 if test ! -d lib/wx; then
22841 mkdir lib/wx
22842 fi
22843 if test ! -d lib/wx/include; then
22844 mkdir lib/wx/include
22845 fi
22846 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
22847 mkdir lib/wx/include/${TOOLCHAIN_NAME}
22848 fi
22849 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
22850 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
22851 fi
22852 if test -f setup.h; then
22853 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
22854 fi
22855
22856exit 0
22857EOF
22858chmod +x $CONFIG_STATUS
22859rm -fr confdefs* $ac_clean_files
22860test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
22861
22862if test "$no_recursion" != yes; then
22863
22864 # Remove --cache-file and --srcdir arguments so they do not pile up.
22865 ac_sub_configure_args=
22866 ac_prev=
22867 for ac_arg in $ac_configure_args; do
22868 if test -n "$ac_prev"; then
22869 ac_prev=
22870 continue
22871 fi
22872 case "$ac_arg" in
22873 -cache-file | --cache-file | --cache-fil | --cache-fi \
22874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22875 ac_prev=cache_file ;;
22876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
22878 ;;
22879 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22880 ac_prev=srcdir ;;
22881 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22882 ;;
22883 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
22884 esac
22885 done
22886
22887 for ac_config_dir in demos samples utils contrib; do
22888
22889 # Do not complain, so a configure script can configure whichever
22890 # parts of a large source tree are present.
22891 if test ! -d $srcdir/$ac_config_dir; then
22892 continue
22893 fi
22894
22895 echo configuring in $ac_config_dir
22896
22897 case "$srcdir" in
22898 .) ;;
22899 *)
22900 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
22901 else
22902 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
22903 fi
22904 ;;
22905 esac
22906
22907 ac_popdir=`pwd`
22908 cd $ac_config_dir
22909
22910 # A "../" for each directory in /$ac_config_dir.
22911 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
22912
22913 case "$srcdir" in
22914 .) # No --srcdir option. We are building in place.
22915 ac_sub_srcdir=$srcdir ;;
22916 /*) # Absolute path.
22917 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
22918 *) # Relative path.
22919 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
22920 esac
22921
22922 # Check for guested configure; otherwise get Cygnus style configure.
22923 if test -f $ac_sub_srcdir/configure; then
22924 ac_sub_configure=$ac_sub_srcdir/configure
22925 elif test -f $ac_sub_srcdir/configure.in; then
22926 ac_sub_configure=$ac_configure
22927 else
22928 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
22929 ac_sub_configure=
22930 fi
22931
22932 # The recursion is here.
22933 if test -n "$ac_sub_configure"; then
22934
22935 # Make the cache file name correct relative to the subdirectory.
22936 case "$cache_file" in
22937 /*) ac_sub_cache_file=$cache_file ;;
22938 *) # Relative path.
22939 ac_sub_cache_file="$ac_dots$cache_file" ;;
22940 esac
22941 case "$ac_given_INSTALL" in
22942 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22943 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22944 esac
22945
22946 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
22947 # The eval makes quoting arguments work.
22948 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
22949 then :
22950 else
22951 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
22952 fi
22953 fi
22954
22955 cd $ac_popdir
22956 done
22957fi
22958
22959
22960echo
22961echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
22962echo ""
22963echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
22964
22965echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
22966echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
22967echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
22968
22969echo " What level of wxWindows compatibility should be enabled?"
22970echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}"
22971echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
22972echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
22973
22974echo " Which libraries should wxWindows use?"
22975echo " jpeg ${wxUSE_LIBJPEG-none}"
22976echo " png ${wxUSE_LIBPNG-none}"
22977echo " regex ${wxUSE_REGEX}"
22978echo " tiff ${wxUSE_LIBTIFF-none}"
22979echo " zlib ${wxUSE_ZLIB}"
22980
22981echo ""
22982