]> git.saurik.com Git - wxWidgets.git/blame_incremental - configure
added generic/accel.h to filelist.txt so that wxGTK installs it
[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# Configure paths for GTK+
43# Owen Taylor 97-11-3
44
45
46# Guess values for system-dependent variables and create Makefiles.
47# Generated automatically using autoconf version 2.13
48# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
49#
50# This configure script is free software; the Free Software Foundation
51# gives unlimited permission to copy, distribute and modify it.
52
53# Defaults:
54ac_help=
55ac_default_prefix=/usr/local
56# Any additions from configure.in:
57ac_help="$ac_help
58--enable-gui use GUI classes"
59ac_help="$ac_help
60--enable-universal use wxWindows GUI controls instead of native ones"
61ac_help="$ac_help
62 --with-gtk use GTK+"
63ac_help="$ac_help
64 --with-motif use Motif/Lesstif"
65ac_help="$ac_help
66 --with-mac use Mac OS X"
67ac_help="$ac_help
68 --with-wine use WINE"
69ac_help="$ac_help
70 --with-cygwin use Cygwin for MS-Windows"
71ac_help="$ac_help
72 --with-mingw use GCC Minimal MS-Windows"
73ac_help="$ac_help
74 --with-pm use OS/2 Presentation Manager"
75ac_help="$ac_help
76 --with-mgl use MGL"
77ac_help="$ac_help
78 --with-gtk-prefix=PFX Prefix where GTK is installed"
79ac_help="$ac_help
80 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
81ac_help="$ac_help
82--with-libpng use libpng (PNG image format)"
83ac_help="$ac_help
84--with-libjpeg use libjpeg (JPEG file format)"
85ac_help="$ac_help
86--with-libtiff use libtiff (TIFF file format)"
87ac_help="$ac_help
88--with-freetype use freetype (font rasterizer)"
89ac_help="$ac_help
90--with-opengl use OpenGL (or Mesa)"
91ac_help="$ac_help
92--with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
93ac_help="$ac_help
94--with-zlib use zlib for LZW compression"
95ac_help="$ac_help
96--with-odbc use the IODBC and wxODBC classes"
97ac_help="$ac_help
98--enable-shared create shared library code"
99ac_help="$ac_help
100--enable-burnt_name create set name in shared library "
101ac_help="$ac_help
102--enable-optimise create optimised code"
103ac_help="$ac_help
104--enable-debug same as debug_flag and debug_info"
105ac_help="$ac_help
106--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
107ac_help="$ac_help
108--enable-debug_info create code with debugging information"
109ac_help="$ac_help
110--enable-debug_gdb create code with extra GDB debugging information"
111ac_help="$ac_help
112--enable-debug_cntxt use wxDebugContext"
113ac_help="$ac_help
114--enable-mem_tracing create code with memory tracing"
115ac_help="$ac_help
116--enable-profile create code with profiling information"
117ac_help="$ac_help
118--enable-no_rtti create code without RTTI information"
119ac_help="$ac_help
120--enable-no_exceptions create code without exceptions information"
121ac_help="$ac_help
122--enable-permissive compile code disregarding strict ANSI"
123ac_help="$ac_help
124--enable-no_deps create code without dependency information"
125ac_help="$ac_help
126--enable-intl use internationalization system"
127ac_help="$ac_help
128--enable-config use wxConfig (and derived) classes"
129ac_help="$ac_help
130--enable-sockets use socket/network classes"
131ac_help="$ac_help
132--enable-ipc use interprocess communication (wxSocket etc.)"
133ac_help="$ac_help
134--enable-cmdline use wxCmdLineParser class"
135ac_help="$ac_help
136--enable-datetime use wxDateTime class"
137ac_help="$ac_help
138--enable-timedate use obsolete wxDate/wxTime classes"
139ac_help="$ac_help
140--enable-stopwatch use wxStopWatch class"
141ac_help="$ac_help
142--enable-dialupman use dialup network classes"
143ac_help="$ac_help
144--enable-apple_ieee use the Apple IEEE codec"
145ac_help="$ac_help
146--enable-timer use wxTimer class"
147ac_help="$ac_help
148--enable-wave use wxWave class"
149ac_help="$ac_help
150--enable-fraction use wxFraction class"
151ac_help="$ac_help
152--enable-dynlib use wxLibrary class for DLL loading"
153ac_help="$ac_help
154--enable-longlong use wxLongLong class"
155ac_help="$ac_help
156--enable-geometry use geometry class"
157ac_help="$ac_help
158--enable-log use logging system"
159ac_help="$ac_help
160--enable-streams use wxStream etc classes"
161ac_help="$ac_help
162--enable-file use wxFile classes"
163ac_help="$ac_help
164--enable-ffile use wxFFile classes"
165ac_help="$ac_help
166--enable-textfile use wxTextFile classes"
167ac_help="$ac_help
168--enable-fontmap use font encodings conversion classes"
169ac_help="$ac_help
170--enable-unicode compile wxString with Unicode support"
171ac_help="$ac_help
172--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
173ac_help="$ac_help
174--enable-wxprintfv use wxWindows implementation of vprintf()"
175ac_help="$ac_help
176--enable-std_iostreams use standard C++ stream classes"
177ac_help="$ac_help
178--enable-filesystem use virtual file systems classes"
179ac_help="$ac_help
180--enable-fs_inet use virtual HTTP/FTP filesystems"
181ac_help="$ac_help
182--enable-fs_zip use virtual ZIP filesystems"
183ac_help="$ac_help
184--enable-zipstream use wxZipInputStream"
185ac_help="$ac_help
186--enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
187ac_help="$ac_help
188--enable-snglinst use wxSingleInstanceChecker class"
189ac_help="$ac_help
190--enable-mimetypes use wxMimeTypesManager"
191ac_help="$ac_help
192--enable-threads use threads"
193ac_help="$ac_help
194--enable-serial use class serialization"
195ac_help="$ac_help
196--enable-docview use document view architecture"
197ac_help="$ac_help
198--enable-help use help (using external browser at present)"
199ac_help="$ac_help
200--enable-constraints use layout-constraints system"
201ac_help="$ac_help
202--enable-printarch use printing architecture"
203ac_help="$ac_help
204--enable-mdi use multiple document interface architecture"
205ac_help="$ac_help
206--enable-loggui use standard GUI logger"
207ac_help="$ac_help
208--enable-logwin use wxLogWindow"
209ac_help="$ac_help
210--enable-postscript use wxPostscriptDC device context (default for gtk+)"
211ac_help="$ac_help
212--enable-prologio use Prolog IO library"
213ac_help="$ac_help
214--enable-resources use wxWindows resources"
215ac_help="$ac_help
216--enable-xresources use X resources for save (default for gtk+)"
217ac_help="$ac_help
218--enable-clipboard use wxClipboard classes"
219ac_help="$ac_help
220--enable-dnd use Drag'n'Drop classes"
221ac_help="$ac_help
222--enable-metafile use win32 metafiles"
223ac_help="$ac_help
224--enable-wxtree make wxTree library"
225ac_help="$ac_help
226--enable-controls use all usual controls"
227ac_help="$ac_help
228--enable-accel use accelerators"
229ac_help="$ac_help
230--enable-button use wxButton class"
231ac_help="$ac_help
232--enable-bmpbutton use wxBitmapButton class"
233ac_help="$ac_help
234--enable-calendar use wxCalendarCtrl class"
235ac_help="$ac_help
236--enable-caret use wxCaret class"
237ac_help="$ac_help
238--enable-checkbox use wxCheckBox class"
239ac_help="$ac_help
240--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
241ac_help="$ac_help
242--enable-choice use wxChoice class"
243ac_help="$ac_help
244--enable-combobox use wxComboBox classes"
245ac_help="$ac_help
246--enable-gauge use wxGauge class"
247ac_help="$ac_help
248--enable-grid use wxGrid class"
249ac_help="$ac_help
250--enable-newgrid use new wxGrid class"
251ac_help="$ac_help
252--enable-imaglist use wxImageList class"
253ac_help="$ac_help
254--enable-listbox use wxListBox class"
255ac_help="$ac_help
256--enable-listctrl use wxListCtrl class"
257ac_help="$ac_help
258--enable-notebook use wxNotebook class"
259ac_help="$ac_help
260--enable-radiobox use wxRadioBox class"
261ac_help="$ac_help
262--enable-radiobtn use wxRadioButton class"
263ac_help="$ac_help
264--enable-sash use wxSashWindow class"
265ac_help="$ac_help
266--enable-scrollbar use wxScrollBar class and scrollable windows"
267ac_help="$ac_help
268--enable-slider use wxSlider class"
269ac_help="$ac_help
270--enable-spinbtn use wxSpinButton class"
271ac_help="$ac_help
272--enable-spinctrl use wxSpinCtrl class"
273ac_help="$ac_help
274--enable-splitter use wxSplitterWindow class"
275ac_help="$ac_help
276--enable-statbmp use wxStaticBitmap class"
277ac_help="$ac_help
278--enable-statbox use wxStaticBox class"
279ac_help="$ac_help
280--enable-statline use wxStaticLine class"
281ac_help="$ac_help
282--enable-stattext use wxStaticText class"
283ac_help="$ac_help
284--enable-statusbar use wxStatusBar class"
285ac_help="$ac_help
286--enable-tabdialog use wxTabControl class"
287ac_help="$ac_help
288--enable-textctrl use wxTextCtrl class"
289ac_help="$ac_help
290--enable-togglebtn use wxToggleButton class"
291ac_help="$ac_help
292--enable-toolbar use wxToolBar class"
293ac_help="$ac_help
294--enable-tbarnative use native wxToolBar class"
295ac_help="$ac_help
296--enable-tbarsmpl use wxToolBarSimple class"
297ac_help="$ac_help
298--enable-treectrl use wxTreeCtrl class"
299ac_help="$ac_help
300--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
301ac_help="$ac_help
302--enable-choicedlg use wxChoiceDialog"
303ac_help="$ac_help
304--enable-coldlg use wxColourDialog"
305ac_help="$ac_help
306--enable-filedlg use wxFileDialog"
307ac_help="$ac_help
308--enable-fontdlg use wxFontDialog"
309ac_help="$ac_help
310--enable-dirdlg use wxDirDialog"
311ac_help="$ac_help
312--enable-msgdlg use wxMessageDialog"
313ac_help="$ac_help
314--enable-numberdlg use wxNumberEntryDialog"
315ac_help="$ac_help
316--enable-textdlg use wxTextDialog"
317ac_help="$ac_help
318--enable-tipdlg use startup tips"
319ac_help="$ac_help
320--enable-progressdlg use wxProgressDialog"
321ac_help="$ac_help
322--enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
323ac_help="$ac_help
324--enable-miniframe use wxMiniFrame class"
325ac_help="$ac_help
326--enable-html use wxHTML sub-library"
327ac_help="$ac_help
328--enable-tooltips use wxToolTip class"
329ac_help="$ac_help
330--enable-splines use spline drawing code"
331ac_help="$ac_help
332--enable-validators use wxValidator and derived classes"
333ac_help="$ac_help
334--enable-busyinfo use wxBusyInfo"
335ac_help="$ac_help
336--enable-joystick compile in joystick support (Linux only)"
337ac_help="$ac_help
338--enable-metafiles use wxMetaFile (Windows only)"
339ac_help="$ac_help
340--enable-image use wxImage class"
341ac_help="$ac_help
342--enable-gif use gif images (GIF file format)"
343ac_help="$ac_help
344--enable-pcx use pcx images (PCX file format)"
345ac_help="$ac_help
346--enable-pnm use pnm images (PNM file format)"
347ac_help="$ac_help
348--enable-xpm use xpm images (XPM file format)"
349ac_help="$ac_help
350 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
351ac_help="$ac_help
352 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
353ac_help="$ac_help
354 --disable-gtktest Do not try to compile and run a test GTK program"
355ac_help="$ac_help
356 --with-x use the X Window System"
357
358# Initialize some variables set by options.
359# The variables have the same names as the options, with
360# dashes changed to underlines.
361build=NONE
362cache_file=./config.cache
363exec_prefix=NONE
364host=NONE
365no_create=
366nonopt=NONE
367no_recursion=
368prefix=NONE
369program_prefix=NONE
370program_suffix=NONE
371program_transform_name=s,x,x,
372silent=
373site=
374srcdir=
375target=NONE
376verbose=
377x_includes=NONE
378x_libraries=NONE
379bindir='${exec_prefix}/bin'
380sbindir='${exec_prefix}/sbin'
381libexecdir='${exec_prefix}/libexec'
382datadir='${prefix}/share'
383sysconfdir='${prefix}/etc'
384sharedstatedir='${prefix}/com'
385localstatedir='${prefix}/var'
386libdir='${exec_prefix}/lib'
387includedir='${prefix}/include'
388oldincludedir='/usr/include'
389infodir='${prefix}/info'
390mandir='${prefix}/man'
391
392# Initialize some other variables.
393subdirs=
394MFLAGS= MAKEFLAGS=
395SHELL=${CONFIG_SHELL-/bin/sh}
396# Maximum number of lines to put in a shell here document.
397ac_max_here_lines=12
398
399ac_prev=
400for ac_option
401do
402
403 # If the previous option needs an argument, assign it.
404 if test -n "$ac_prev"; then
405 eval "$ac_prev=\$ac_option"
406 ac_prev=
407 continue
408 fi
409
410 case "$ac_option" in
411 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
412 *) ac_optarg= ;;
413 esac
414
415 # Accept the important Cygnus configure options, so we can diagnose typos.
416
417 case "$ac_option" in
418
419 -bindir | --bindir | --bindi | --bind | --bin | --bi)
420 ac_prev=bindir ;;
421 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
422 bindir="$ac_optarg" ;;
423
424 -build | --build | --buil | --bui | --bu)
425 ac_prev=build ;;
426 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
427 build="$ac_optarg" ;;
428
429 -cache-file | --cache-file | --cache-fil | --cache-fi \
430 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
431 ac_prev=cache_file ;;
432 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
433 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
434 cache_file="$ac_optarg" ;;
435
436 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
437 ac_prev=datadir ;;
438 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
439 | --da=*)
440 datadir="$ac_optarg" ;;
441
442 -disable-* | --disable-*)
443 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
444 # Reject names that are not valid shell variable names.
445 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
446 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
447 fi
448 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
449 eval "enable_${ac_feature}=no" ;;
450
451 -enable-* | --enable-*)
452 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
453 # Reject names that are not valid shell variable names.
454 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
455 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
456 fi
457 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
458 case "$ac_option" in
459 *=*) ;;
460 *) ac_optarg=yes ;;
461 esac
462 eval "enable_${ac_feature}='$ac_optarg'" ;;
463
464 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
465 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
466 | --exec | --exe | --ex)
467 ac_prev=exec_prefix ;;
468 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
469 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
470 | --exec=* | --exe=* | --ex=*)
471 exec_prefix="$ac_optarg" ;;
472
473 -gas | --gas | --ga | --g)
474 # Obsolete; use --with-gas.
475 with_gas=yes ;;
476
477 -help | --help | --hel | --he)
478 # Omit some internal or obsolete options to make the list less imposing.
479 # This message is too long to be a string in the A/UX 3.1 sh.
480 cat << EOF
481Usage: configure [options] [host]
482Options: [defaults in brackets after descriptions]
483Configuration:
484 --cache-file=FILE cache test results in FILE
485 --help print this message
486 --no-create do not create output files
487 --quiet, --silent do not print \`checking...' messages
488 --version print the version of autoconf that created configure
489Directory and file names:
490 --prefix=PREFIX install architecture-independent files in PREFIX
491 [$ac_default_prefix]
492 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
493 [same as prefix]
494 --bindir=DIR user executables in DIR [EPREFIX/bin]
495 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
496 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
497 --datadir=DIR read-only architecture-independent data in DIR
498 [PREFIX/share]
499 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
500 --sharedstatedir=DIR modifiable architecture-independent data in DIR
501 [PREFIX/com]
502 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
503 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
504 --includedir=DIR C header files in DIR [PREFIX/include]
505 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
506 --infodir=DIR info documentation in DIR [PREFIX/info]
507 --mandir=DIR man documentation in DIR [PREFIX/man]
508 --srcdir=DIR find the sources in DIR [configure dir or ..]
509 --program-prefix=PREFIX prepend PREFIX to installed program names
510 --program-suffix=SUFFIX append SUFFIX to installed program names
511 --program-transform-name=PROGRAM
512 run sed PROGRAM on installed program names
513EOF
514 cat << EOF
515Host type:
516 --build=BUILD configure for building on BUILD [BUILD=HOST]
517 --host=HOST configure for HOST [guessed]
518 --target=TARGET configure for TARGET [TARGET=HOST]
519Features and packages:
520 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
521 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
524 --x-includes=DIR X include files are in DIR
525 --x-libraries=DIR X library files are in DIR
526EOF
527 if test -n "$ac_help"; then
528 echo "--enable and --with options recognized:$ac_help"
529 fi
530 exit 0 ;;
531
532 -host | --host | --hos | --ho)
533 ac_prev=host ;;
534 -host=* | --host=* | --hos=* | --ho=*)
535 host="$ac_optarg" ;;
536
537 -includedir | --includedir | --includedi | --included | --include \
538 | --includ | --inclu | --incl | --inc)
539 ac_prev=includedir ;;
540 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
541 | --includ=* | --inclu=* | --incl=* | --inc=*)
542 includedir="$ac_optarg" ;;
543
544 -infodir | --infodir | --infodi | --infod | --info | --inf)
545 ac_prev=infodir ;;
546 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
547 infodir="$ac_optarg" ;;
548
549 -libdir | --libdir | --libdi | --libd)
550 ac_prev=libdir ;;
551 -libdir=* | --libdir=* | --libdi=* | --libd=*)
552 libdir="$ac_optarg" ;;
553
554 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
555 | --libexe | --libex | --libe)
556 ac_prev=libexecdir ;;
557 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
558 | --libexe=* | --libex=* | --libe=*)
559 libexecdir="$ac_optarg" ;;
560
561 -localstatedir | --localstatedir | --localstatedi | --localstated \
562 | --localstate | --localstat | --localsta | --localst \
563 | --locals | --local | --loca | --loc | --lo)
564 ac_prev=localstatedir ;;
565 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
566 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
567 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
568 localstatedir="$ac_optarg" ;;
569
570 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
571 ac_prev=mandir ;;
572 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
573 mandir="$ac_optarg" ;;
574
575 -nfp | --nfp | --nf)
576 # Obsolete; use --without-fp.
577 with_fp=no ;;
578
579 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
580 | --no-cr | --no-c)
581 no_create=yes ;;
582
583 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
584 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
585 no_recursion=yes ;;
586
587 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
588 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
589 | --oldin | --oldi | --old | --ol | --o)
590 ac_prev=oldincludedir ;;
591 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
592 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
593 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
594 oldincludedir="$ac_optarg" ;;
595
596 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
597 ac_prev=prefix ;;
598 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
599 prefix="$ac_optarg" ;;
600
601 -program-prefix | --program-prefix | --program-prefi | --program-pref \
602 | --program-pre | --program-pr | --program-p)
603 ac_prev=program_prefix ;;
604 -program-prefix=* | --program-prefix=* | --program-prefi=* \
605 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
606 program_prefix="$ac_optarg" ;;
607
608 -program-suffix | --program-suffix | --program-suffi | --program-suff \
609 | --program-suf | --program-su | --program-s)
610 ac_prev=program_suffix ;;
611 -program-suffix=* | --program-suffix=* | --program-suffi=* \
612 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
613 program_suffix="$ac_optarg" ;;
614
615 -program-transform-name | --program-transform-name \
616 | --program-transform-nam | --program-transform-na \
617 | --program-transform-n | --program-transform- \
618 | --program-transform | --program-transfor \
619 | --program-transfo | --program-transf \
620 | --program-trans | --program-tran \
621 | --progr-tra | --program-tr | --program-t)
622 ac_prev=program_transform_name ;;
623 -program-transform-name=* | --program-transform-name=* \
624 | --program-transform-nam=* | --program-transform-na=* \
625 | --program-transform-n=* | --program-transform-=* \
626 | --program-transform=* | --program-transfor=* \
627 | --program-transfo=* | --program-transf=* \
628 | --program-trans=* | --program-tran=* \
629 | --progr-tra=* | --program-tr=* | --program-t=*)
630 program_transform_name="$ac_optarg" ;;
631
632 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
633 | -silent | --silent | --silen | --sile | --sil)
634 silent=yes ;;
635
636 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
637 ac_prev=sbindir ;;
638 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
639 | --sbi=* | --sb=*)
640 sbindir="$ac_optarg" ;;
641
642 -sharedstatedir | --sharedstatedir | --sharedstatedi \
643 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
644 | --sharedst | --shareds | --shared | --share | --shar \
645 | --sha | --sh)
646 ac_prev=sharedstatedir ;;
647 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
648 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
649 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
650 | --sha=* | --sh=*)
651 sharedstatedir="$ac_optarg" ;;
652
653 -site | --site | --sit)
654 ac_prev=site ;;
655 -site=* | --site=* | --sit=*)
656 site="$ac_optarg" ;;
657
658 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
659 ac_prev=srcdir ;;
660 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
661 srcdir="$ac_optarg" ;;
662
663 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
664 | --syscon | --sysco | --sysc | --sys | --sy)
665 ac_prev=sysconfdir ;;
666 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
667 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
668 sysconfdir="$ac_optarg" ;;
669
670 -target | --target | --targe | --targ | --tar | --ta | --t)
671 ac_prev=target ;;
672 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
673 target="$ac_optarg" ;;
674
675 -v | -verbose | --verbose | --verbos | --verbo | --verb)
676 verbose=yes ;;
677
678 -version | --version | --versio | --versi | --vers)
679 echo "configure generated by autoconf version 2.13"
680 exit 0 ;;
681
682 -with-* | --with-*)
683 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
684 # Reject names that are not valid shell variable names.
685 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
686 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
687 fi
688 ac_package=`echo $ac_package| sed 's/-/_/g'`
689 case "$ac_option" in
690 *=*) ;;
691 *) ac_optarg=yes ;;
692 esac
693 eval "with_${ac_package}='$ac_optarg'" ;;
694
695 -without-* | --without-*)
696 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
697 # Reject names that are not valid shell variable names.
698 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
699 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
700 fi
701 ac_package=`echo $ac_package| sed 's/-/_/g'`
702 eval "with_${ac_package}=no" ;;
703
704 --x)
705 # Obsolete; use --with-x.
706 with_x=yes ;;
707
708 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
709 | --x-incl | --x-inc | --x-in | --x-i)
710 ac_prev=x_includes ;;
711 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
712 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
713 x_includes="$ac_optarg" ;;
714
715 -x-libraries | --x-libraries | --x-librarie | --x-librari \
716 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
717 ac_prev=x_libraries ;;
718 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
719 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
720 x_libraries="$ac_optarg" ;;
721
722 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
723 ;;
724
725 *)
726 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
727 echo "configure: warning: $ac_option: invalid host type" 1>&2
728 fi
729 if test "x$nonopt" != xNONE; then
730 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
731 fi
732 nonopt="$ac_option"
733 ;;
734
735 esac
736done
737
738if test -n "$ac_prev"; then
739 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
740fi
741
742trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
743
744# File descriptor usage:
745# 0 standard input
746# 1 file creation
747# 2 errors and warnings
748# 3 some systems may open it to /dev/tty
749# 4 used on the Kubota Titan
750# 6 checking for... messages and results
751# 5 compiler messages saved in config.log
752if test "$silent" = yes; then
753 exec 6>/dev/null
754else
755 exec 6>&1
756fi
757exec 5>./config.log
758
759echo "\
760This file contains any messages produced by compilers while
761running configure, to aid debugging if configure makes a mistake.
762" 1>&5
763
764# Strip out --no-create and --no-recursion so they do not pile up.
765# Also quote any args containing shell metacharacters.
766ac_configure_args=
767for ac_arg
768do
769 case "$ac_arg" in
770 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
771 | --no-cr | --no-c) ;;
772 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
773 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
774 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
775 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
776 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
777 esac
778done
779
780# NLS nuisances.
781# Only set these to C if already set. These must not be set unconditionally
782# because not all systems understand e.g. LANG=C (notably SCO).
783# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
784# Non-C LC_CTYPE values break the ctype check.
785if test "${LANG+set}" = set; then LANG=C; export LANG; fi
786if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
787if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
788if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
789
790# confdefs.h avoids OS command line length limits that DEFS can exceed.
791rm -rf conftest* confdefs.h
792# AIX cpp loses on an empty file, so make sure it contains at least a newline.
793echo > confdefs.h
794
795# A filename unique to this package, relative to the directory that
796# configure is in, which we can look for to find out if srcdir is correct.
797ac_unique_file=wx-config.in
798
799# Find the source files, if location was not specified.
800if test -z "$srcdir"; then
801 ac_srcdir_defaulted=yes
802 # Try the directory containing this script, then its parent.
803 ac_prog=$0
804 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
805 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
806 srcdir=$ac_confdir
807 if test ! -r $srcdir/$ac_unique_file; then
808 srcdir=..
809 fi
810else
811 ac_srcdir_defaulted=no
812fi
813if test ! -r $srcdir/$ac_unique_file; then
814 if test "$ac_srcdir_defaulted" = yes; then
815 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
816 else
817 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
818 fi
819fi
820srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
821
822# Prefer explicitly selected file to automatically selected ones.
823if test -z "$CONFIG_SITE"; then
824 if test "x$prefix" != xNONE; then
825 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
826 else
827 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
828 fi
829fi
830for ac_site_file in $CONFIG_SITE; do
831 if test -r "$ac_site_file"; then
832 echo "loading site script $ac_site_file"
833 . "$ac_site_file"
834 fi
835done
836
837if test -r "$cache_file"; then
838 echo "loading cache $cache_file"
839 . $cache_file
840else
841 echo "creating cache $cache_file"
842 > $cache_file
843fi
844
845ac_ext=c
846# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
847ac_cpp='$CPP $CPPFLAGS'
848ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
849ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
850cross_compiling=$ac_cv_prog_cc_cross
851
852ac_exeext=
853ac_objext=o
854if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
855 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
856 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
857 ac_n= ac_c='
858' ac_t=' '
859 else
860 ac_n=-n ac_c= ac_t=
861 fi
862else
863 ac_n= ac_c='\c' ac_t=
864fi
865
866
867
868ac_aux_dir=
869for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
870 if test -f $ac_dir/install-sh; then
871 ac_aux_dir=$ac_dir
872 ac_install_sh="$ac_aux_dir/install-sh -c"
873 break
874 elif test -f $ac_dir/install.sh; then
875 ac_aux_dir=$ac_dir
876 ac_install_sh="$ac_aux_dir/install.sh -c"
877 break
878 fi
879done
880if test -z "$ac_aux_dir"; then
881 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
882fi
883ac_config_guess=$ac_aux_dir/config.guess
884ac_config_sub=$ac_aux_dir/config.sub
885ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
886
887
888# Do some error checking and defaulting for the host and target type.
889# The inputs are:
890# configure --host=HOST --target=TARGET --build=BUILD NONOPT
891#
892# The rules are:
893# 1. You are not allowed to specify --host, --target, and nonopt at the
894# same time.
895# 2. Host defaults to nonopt.
896# 3. If nonopt is not specified, then host defaults to the current host,
897# as determined by config.guess.
898# 4. Target and build default to nonopt.
899# 5. If nonopt is not specified, then target and build default to host.
900
901# The aliases save the names the user supplied, while $host etc.
902# will get canonicalized.
903case $host---$target---$nonopt in
904NONE---*---* | *---NONE---* | *---*---NONE) ;;
905*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
906esac
907
908
909# Make sure we can run config.sub.
910if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
911else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
912fi
913
914echo $ac_n "checking host system type""... $ac_c" 1>&6
915echo "configure:916: checking host system type" >&5
916
917host_alias=$host
918case "$host_alias" in
919NONE)
920 case $nonopt in
921 NONE)
922 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
923 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
924 fi ;;
925 *) host_alias=$nonopt ;;
926 esac ;;
927esac
928
929host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
930host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
931host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
932host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
933echo "$ac_t""$host" 1>&6
934
935echo $ac_n "checking target system type""... $ac_c" 1>&6
936echo "configure:937: checking target system type" >&5
937
938target_alias=$target
939case "$target_alias" in
940NONE)
941 case $nonopt in
942 NONE) target_alias=$host_alias ;;
943 *) target_alias=$nonopt ;;
944 esac ;;
945esac
946
947target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
948target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
949target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
950target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
951echo "$ac_t""$target" 1>&6
952
953echo $ac_n "checking build system type""... $ac_c" 1>&6
954echo "configure:955: checking build system type" >&5
955
956build_alias=$build
957case "$build_alias" in
958NONE)
959 case $nonopt in
960 NONE) build_alias=$host_alias ;;
961 *) build_alias=$nonopt ;;
962 esac ;;
963esac
964
965build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
966build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
967build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
968build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
969echo "$ac_t""$build" 1>&6
970
971test "$host_alias" != "$target_alias" &&
972 test "$program_prefix$program_suffix$program_transform_name" = \
973 NONENONEs,x,x, &&
974 program_prefix=${target_alias}-
975
976
977
978WX_MAJOR_VERSION_NUMBER=2
979WX_MINOR_VERSION_NUMBER=3
980WX_RELEASE_NUMBER=1
981
982WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
983WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
984
985WX_CURRENT=0
986WX_REVISION=0
987WX_AGE=0
988
989
990
991USE_UNIX=1
992USE_WIN32=0
993USE_BEOS=0
994USE_MAC=0
995
996USE_LINUX=
997USE_SGI=
998USE_HPUX=
999USE_SYSV=
1000USE_SVR4=
1001USE_AIX=
1002USE_SUN=
1003USE_SOLARIS=
1004USE_SUNOS=
1005USE_ALPHA=
1006USE_OSF=
1007USE_BSD=
1008USE_FREEBSD=
1009USE_OPENBSD=
1010USE_NETBSD=
1011USE_VMS=
1012USE_ULTRIX=
1013USE_CYGWIN=
1014USE_MINGW=
1015USE_DATA_GENERAL=
1016
1017NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1018
1019ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
1020
1021DEFAULT_wxUSE_GTK=0
1022DEFAULT_wxUSE_MAC=0
1023DEFAULT_wxUSE_MGL=0
1024DEFAULT_wxUSE_MOTIF=0
1025DEFAULT_wxUSE_MSW=0
1026DEFAULT_wxUSE_PM=0
1027DEFAULT_wxUSE_WINE=0
1028
1029DEFAULT_DEFAULT_wxUSE_GTK=0
1030DEFAULT_DEFAULT_wxUSE_MAC=0
1031DEFAULT_DEFAULT_wxUSE_MGL=0
1032DEFAULT_DEFAULT_wxUSE_MOTIF=0
1033DEFAULT_DEFAULT_wxUSE_MSW=0
1034DEFAULT_DEFAULT_wxUSE_PM=0
1035DEFAULT_DEFAULT_wxUSE_WINE=0
1036
1037PROGRAM_EXT=
1038
1039case "${host}" in
1040 *-hp-hpux* )
1041 USE_HPUX=1
1042 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1043 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1044 cat >> confdefs.h <<\EOF
1045#define __HPUX__ 1
1046EOF
1047
1048 ;;
1049 *-*-linux* )
1050 USE_LINUX=1
1051 cat >> confdefs.h <<\EOF
1052#define __LINUX__ 1
1053EOF
1054
1055 TMP=`uname -m`
1056 if test "x$TMP" = "xalpha"; then
1057 USE_ALPHA=1
1058 cat >> confdefs.h <<\EOF
1059#define __ALPHA__ 1
1060EOF
1061
1062 fi
1063 DEFAULT_DEFAULT_wxUSE_GTK=1
1064 ;;
1065 *-*-irix5* | *-*-irix6* )
1066 USE_SGI=1
1067 USE_SVR4=1
1068 cat >> confdefs.h <<\EOF
1069#define __SGI__ 1
1070EOF
1071
1072 cat >> confdefs.h <<\EOF
1073#define __SVR4__ 1
1074EOF
1075
1076 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1077 ;;
1078 *-*-solaris2* )
1079 USE_SUN=1
1080 USE_SOLARIS=1
1081 USE_SVR4=1
1082 cat >> confdefs.h <<\EOF
1083#define __SUN__ 1
1084EOF
1085
1086 cat >> confdefs.h <<\EOF
1087#define __SOLARIS__ 1
1088EOF
1089
1090 cat >> confdefs.h <<\EOF
1091#define __SVR4__ 1
1092EOF
1093
1094 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1095 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1096 ;;
1097 *-*-sunos4* )
1098 USE_SUN=1
1099 USE_SUNOS=1
1100 USE_BSD=1
1101 cat >> confdefs.h <<\EOF
1102#define __SUN__ 1
1103EOF
1104
1105 cat >> confdefs.h <<\EOF
1106#define __SUNOS__ 1
1107EOF
1108
1109 cat >> confdefs.h <<\EOF
1110#define __BSD__ 1
1111EOF
1112
1113 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1114 ;;
1115 *-*-freebsd*)
1116 USE_BSD=1
1117 USE_FREEBSD=1
1118 cat >> confdefs.h <<\EOF
1119#define __FREEBSD__ 1
1120EOF
1121
1122 cat >> confdefs.h <<\EOF
1123#define __BSD__ 1
1124EOF
1125
1126 DEFAULT_DEFAULT_wxUSE_GTK=1
1127 ;;
1128 *-*-openbsd*)
1129 USE_BSD=1
1130 USE_OPENBSD=1
1131 cat >> confdefs.h <<\EOF
1132#define __FREEBSD__ 1
1133EOF
1134
1135 cat >> confdefs.h <<\EOF
1136#define __OPENBSD__ 1
1137EOF
1138
1139 DEFAULT_DEFAULT_wxUSE_GTK=1
1140 ;;
1141 *-*-netbsd*)
1142 USE_BSD=1
1143 USE_NETBSD=1
1144 cat >> confdefs.h <<\EOF
1145#define __FREEBSD__ 1
1146EOF
1147
1148 cat >> confdefs.h <<\EOF
1149#define __NETBSD__ 1
1150EOF
1151
1152 DEFAULT_DEFAULT_wxUSE_GTK=1
1153 ;;
1154 *-*-osf* )
1155 USE_ALPHA=1
1156 USE_OSF=1
1157 cat >> confdefs.h <<\EOF
1158#define __ALPHA__ 1
1159EOF
1160
1161 cat >> confdefs.h <<\EOF
1162#define __OSF__ 1
1163EOF
1164
1165 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1166 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1167 ;;
1168 *-*-dgux5* )
1169 USE_ALPHA=1
1170 USE_SVR4=1
1171 cat >> confdefs.h <<\EOF
1172#define __ALPHA__ 1
1173EOF
1174
1175 cat >> confdefs.h <<\EOF
1176#define __SVR4__ 1
1177EOF
1178
1179 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1180 ;;
1181 *-*-sysv5* )
1182 USE_SYSV=1
1183 USE_SVR4=1
1184 cat >> confdefs.h <<\EOF
1185#define __SYSV__ 1
1186EOF
1187
1188 cat >> confdefs.h <<\EOF
1189#define __SVR4__ 1
1190EOF
1191
1192 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1193 ;;
1194 *-*-aix* )
1195 USE_AIX=1
1196 USE_SYSV=1
1197 USE_SVR4=1
1198 cat >> confdefs.h <<\EOF
1199#define __AIX__ 1
1200EOF
1201
1202 cat >> confdefs.h <<\EOF
1203#define __SYSV__ 1
1204EOF
1205
1206 cat >> confdefs.h <<\EOF
1207#define __SVR4__ 1
1208EOF
1209
1210 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1211 ;;
1212
1213 *-*-cygwin* | *-*-mingw32* )
1214 USE_UNIX=0
1215 USE_WIN32=1
1216 cat >> confdefs.h <<\EOF
1217#define __WIN32__ 1
1218EOF
1219
1220 cat >> confdefs.h <<\EOF
1221#define __WIN95__ 1
1222EOF
1223
1224 cat >> confdefs.h <<\EOF
1225#define __WINDOWS__ 1
1226EOF
1227
1228 cat >> confdefs.h <<\EOF
1229#define __GNUWIN32__ 1
1230EOF
1231
1232 cat >> confdefs.h <<\EOF
1233#define STRICT 1
1234EOF
1235
1236 cat >> confdefs.h <<\EOF
1237#define WINVER 0x0400
1238EOF
1239
1240 PROGRAM_EXT=".exe"
1241 DEFAULT_DEFAULT_wxUSE_MSW=1
1242 ;;
1243
1244 *-pc-os2_emx )
1245 cat >> confdefs.h <<\EOF
1246#define __EMX__ 1
1247EOF
1248
1249 PROGRAM_EXT=".exe"
1250 DEFAULT_DEFAULT_wxUSE_PM=1
1251 ;;
1252
1253 *-*-darwin* )
1254 USE_BSD=1
1255 USE_MAC=1
1256 cat >> confdefs.h <<\EOF
1257#define __MAC__ 1
1258EOF
1259
1260 cat >> confdefs.h <<\EOF
1261#define __BSD__ 1
1262EOF
1263
1264 cat >> confdefs.h <<\EOF
1265#define __UNIX__ 1
1266EOF
1267
1268 DEFAULT_DEFAULT_wxUSE_MAC=1
1269 ;;
1270
1271 *-*-beos* )
1272 USE_BEOS=1
1273 cat >> confdefs.h <<\EOF
1274#define __BEOS__ 1
1275EOF
1276
1277 ;;
1278
1279 *)
1280 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1281esac
1282
1283if test "$USE_UNIX" = 1 ; then
1284 wxUSE_UNIX=yes
1285 cat >> confdefs.h <<\EOF
1286#define __UNIX__ 1
1287EOF
1288
1289
1290 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1291 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1292fi
1293
1294if test "$USE_BEOS" = 1; then
1295 SRC_SUBDIRS="$SRC_SUBDIRS be"
1296 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
1297fi
1298
1299if test "$USE_LINUX" = 1; then
1300 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1301echo "configure:1302: checking for gettext in -lc" >&5
1302ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1303if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1305else
1306 ac_save_LIBS="$LIBS"
1307LIBS="-lc $LIBS"
1308cat > conftest.$ac_ext <<EOF
1309#line 1310 "configure"
1310#include "confdefs.h"
1311/* Override any gcc2 internal prototype to avoid an error. */
1312/* We use char because int might match the return type of a gcc2
1313 builtin and then its argument prototype would still apply. */
1314char gettext();
1315
1316int main() {
1317gettext()
1318; return 0; }
1319EOF
1320if { (eval echo configure:1321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1321 rm -rf conftest*
1322 eval "ac_cv_lib_$ac_lib_var=yes"
1323else
1324 echo "configure: failed program was:" >&5
1325 cat conftest.$ac_ext >&5
1326 rm -rf conftest*
1327 eval "ac_cv_lib_$ac_lib_var=no"
1328fi
1329rm -f conftest*
1330LIBS="$ac_save_LIBS"
1331
1332fi
1333if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1334 echo "$ac_t""yes" 1>&6
1335 cat >> confdefs.h <<\EOF
1336#define wxHAVE_GLIBC2 1
1337EOF
1338
1339else
1340 echo "$ac_t""no" 1>&6
1341fi
1342
1343fi
1344
1345
1346
1347
1348 wx_arg_cache_file="configarg.cache"
1349 echo "loading argument cache $wx_arg_cache_file"
1350 rm -f ${wx_arg_cache_file}.tmp
1351 touch ${wx_arg_cache_file}.tmp
1352 touch ${wx_arg_cache_file}
1353
1354
1355DEBUG_CONFIGURE=0
1356if test $DEBUG_CONFIGURE = 1; then
1357 DEFAULT_wxUSE_UNIVERSAL=no
1358
1359 DEFAULT_wxUSE_THREADS=yes
1360
1361 DEFAULT_wxUSE_SHARED=yes
1362 DEFAULT_wxUSE_BURNT_NAME=no
1363 DEFAULT_wxUSE_OPTIMISE=no
1364 DEFAULT_wxUSE_PROFILE=no
1365 DEFAULT_wxUSE_NO_DEPS=no
1366 DEFAULT_wxUSE_NO_RTTI=no
1367 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1368 DEFAULT_wxUSE_PERMISSIVE=no
1369 DEFAULT_wxUSE_DEBUG_FLAG=yes
1370 DEFAULT_wxUSE_DEBUG_INFO=yes
1371 DEFAULT_wxUSE_DEBUG_GDB=yes
1372 DEFAULT_wxUSE_MEM_TRACING=no
1373 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1374 DEFAULT_wxUSE_DMALLOC=no
1375 DEFAULT_wxUSE_APPLE_IEEE=no
1376
1377 DEFAULT_wxUSE_LOG=yes
1378 DEFAULT_wxUSE_LOGWINDOW=no
1379 DEFAULT_wxUSE_LOGGUI=no
1380
1381 DEFAULT_wxUSE_GUI=yes
1382 DEFAULT_wxUSE_CONTROLS=no
1383
1384 DEFAULT_wxUSE_ZLIB=no
1385 DEFAULT_wxUSE_LIBPNG=no
1386 DEFAULT_wxUSE_LIBJPEG=no
1387 DEFAULT_wxUSE_LIBTIFF=no
1388 DEFAULT_wxUSE_ODBC=no
1389 DEFAULT_wxUSE_FREETYPE=no
1390 DEFAULT_wxUSE_OPENGL=no
1391
1392 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1393 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1394 DEFAULT_wxUSE_STD_IOSTREAM=no
1395 DEFAULT_wxUSE_CMDLINE_PARSER=no
1396 DEFAULT_wxUSE_DATETIME=no
1397 DEFAULT_wxUSE_TIMEDATE=no
1398 DEFAULT_wxUSE_TIMER=no
1399 DEFAULT_wxUSE_STOPWATCH=no
1400 DEFAULT_wxUSE_FILE=no
1401 DEFAULT_wxUSE_FFILE=no
1402 DEFAULT_wxUSE_TEXTFILE=no
1403 DEFAULT_wxUSE_WAVE=no
1404 DEFAULT_wxUSE_INTL=no
1405 DEFAULT_wxUSE_CONFIG=no
1406 DEFAULT_wxUSE_FONTMAP=no
1407 DEFAULT_wxUSE_STREAMS=no
1408 DEFAULT_wxUSE_SOCKETS=no
1409 DEFAULT_wxUSE_DIALUP_MANAGER=no
1410 DEFAULT_wxUSE_SERIAL=no
1411 DEFAULT_wxUSE_JOYSTICK=no
1412 DEFAULT_wxUSE_DYNLIB_CLASS=no
1413 DEFAULT_wxUSE_LONGLONG=no
1414 DEFAULT_wxUSE_GEOMETRY=no
1415
1416 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1417 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1418 DEFAULT_wxUSE_POSTSCRIPT=no
1419
1420 DEFAULT_wxUSE_X_RESOURCES=no
1421 DEFAULT_wxUSE_CLIPBOARD=no
1422 DEFAULT_wxUSE_TOOLTIPS=no
1423 DEFAULT_wxUSE_DRAG_AND_DROP=no
1424 DEFAULT_wxUSE_SPLINES=no
1425
1426 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1427 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1428 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1429
1430 DEFAULT_wxUSE_PROLOGIO=no
1431 DEFAULT_wxUSE_RESOURCES=no
1432 DEFAULT_wxUSE_CONSTRAINTS=no
1433 DEFAULT_wxUSE_IPC=no
1434 DEFAULT_wxUSE_HELP=no
1435 DEFAULT_wxUSE_WXTREE=no
1436 DEFAULT_wxUSE_METAFILE=no
1437 DEFAULT_wxUSE_MIMETYPE=no
1438
1439 DEFAULT_wxUSE_COMMONDLGS=no
1440 DEFAULT_wxUSE_CHOICEDLG=no
1441 DEFAULT_wxUSE_COLOURDLG=no
1442 DEFAULT_wxUSE_DIRDLG=no
1443 DEFAULT_wxUSE_FILEDLG=no
1444 DEFAULT_wxUSE_FONTDLG=no
1445 DEFAULT_wxUSE_MSGDLG=no
1446 DEFAULT_wxUSE_NUMBERDLG=no
1447 DEFAULT_wxUSE_TEXTDLG=no
1448 DEFAULT_wxUSE_STARTUP_TIPS=no
1449 DEFAULT_wxUSE_PROGRESSDLG=no
1450 DEFAULT_wxUSE_MENUS=no
1451 DEFAULT_wxUSE_MINIFRAME=no
1452 DEFAULT_wxUSE_HTML=no
1453 DEFAULT_wxUSE_FILESYSTEM=no
1454 DEFAULT_wxUSE_FS_INET=no
1455 DEFAULT_wxUSE_FS_ZIP=no
1456 DEFAULT_wxUSE_BUSYINFO=no
1457 DEFAULT_wxUSE_ZIPSTREAM=no
1458 DEFAULT_wxUSE_VALIDATORS=no
1459
1460 DEFAULT_wxUSE_ACCEL=no
1461 DEFAULT_wxUSE_BUTTON=no
1462 DEFAULT_wxUSE_BMPBUTTON=no
1463 DEFAULT_wxUSE_CALCTRL=no
1464 DEFAULT_wxUSE_CARET=no
1465 DEFAULT_wxUSE_CHECKBOX=no
1466 DEFAULT_wxUSE_CHECKLST=no
1467 DEFAULT_wxUSE_CHOICE=no
1468 DEFAULT_wxUSE_COMBOBOX=no
1469 DEFAULT_wxUSE_GAUGE=no
1470 DEFAULT_wxUSE_GRID=no
1471 DEFAULT_wxUSE_NEW_GRID=no
1472 DEFAULT_wxUSE_IMAGLIST=no
1473 DEFAULT_wxUSE_LISTBOX=no
1474 DEFAULT_wxUSE_LISTCTRL=no
1475 DEFAULT_wxUSE_NOTEBOOK=no
1476 DEFAULT_wxUSE_RADIOBOX=no
1477 DEFAULT_wxUSE_RADIOBTN=no
1478 DEFAULT_wxUSE_SASH=no
1479 DEFAULT_wxUSE_SCROLLBAR=no
1480 DEFAULT_wxUSE_SLIDER=no
1481 DEFAULT_wxUSE_SPINBTN=no
1482 DEFAULT_wxUSE_SPINCTRL=no
1483 DEFAULT_wxUSE_SPLITTER=no
1484 DEFAULT_wxUSE_STATBMP=no
1485 DEFAULT_wxUSE_STATBOX=no
1486 DEFAULT_wxUSE_STATLINE=no
1487 DEFAULT_wxUSE_STATTEXT=no
1488 DEFAULT_wxUSE_STATUSBAR=yes
1489 DEFAULT_wxUSE_TABDIALOG=no
1490 DEFAULT_wxUSE_TEXTCTRL=no
1491 DEFAULT_wxUSE_TOGGLEBTN=no
1492 DEFAULT_wxUSE_TOOLBAR=no
1493 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1494 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1495 DEFAULT_wxUSE_TREECTRL=no
1496
1497 DEFAULT_wxUSE_UNICODE=no
1498 DEFAULT_wxUSE_WCSRTOMBS=no
1499
1500 DEFAULT_wxUSE_IMAGE=no
1501 DEFAULT_wxUSE_GIF=no
1502 DEFAULT_wxUSE_PCX=no
1503 DEFAULT_wxUSE_PNM=no
1504 DEFAULT_wxUSE_XPM=no
1505else
1506 DEFAULT_wxUSE_UNIVERSAL=no
1507
1508 DEFAULT_wxUSE_THREADS=yes
1509
1510 DEFAULT_wxUSE_SHARED=yes
1511 DEFAULT_wxUSE_BURNT_NAME=no
1512 DEFAULT_wxUSE_OPTIMISE=yes
1513 DEFAULT_wxUSE_PROFILE=no
1514 DEFAULT_wxUSE_NO_DEPS=no
1515 DEFAULT_wxUSE_NO_RTTI=no
1516 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1517 DEFAULT_wxUSE_PERMISSIVE=no
1518 DEFAULT_wxUSE_DEBUG_FLAG=no
1519 DEFAULT_wxUSE_DEBUG_INFO=no
1520 DEFAULT_wxUSE_DEBUG_GDB=no
1521 DEFAULT_wxUSE_MEM_TRACING=no
1522 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1523 DEFAULT_wxUSE_DMALLOC=no
1524 DEFAULT_wxUSE_APPLE_IEEE=yes
1525
1526 DEFAULT_wxUSE_LOG=yes
1527
1528 DEFAULT_wxUSE_GUI=yes
1529
1530 DEFAULT_wxUSE_ZLIB=yes
1531 DEFAULT_wxUSE_LIBPNG=yes
1532 DEFAULT_wxUSE_LIBJPEG=yes
1533 DEFAULT_wxUSE_LIBTIFF=yes
1534 DEFAULT_wxUSE_ODBC=no
1535 DEFAULT_wxUSE_FREETYPE=no
1536 DEFAULT_wxUSE_OPENGL=no
1537
1538 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1539 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1540 DEFAULT_wxUSE_STD_IOSTREAM=no
1541 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1542 DEFAULT_wxUSE_DATETIME=yes
1543 DEFAULT_wxUSE_TIMEDATE=no
1544 DEFAULT_wxUSE_TIMER=yes
1545 DEFAULT_wxUSE_STOPWATCH=yes
1546 DEFAULT_wxUSE_FILE=yes
1547 DEFAULT_wxUSE_FFILE=yes
1548 DEFAULT_wxUSE_TEXTFILE=yes
1549 DEFAULT_wxUSE_WAVE=no
1550 DEFAULT_wxUSE_INTL=yes
1551 DEFAULT_wxUSE_CONFIG=yes
1552 DEFAULT_wxUSE_FONTMAP=yes
1553 DEFAULT_wxUSE_STREAMS=yes
1554 DEFAULT_wxUSE_SOCKETS=yes
1555 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1556 DEFAULT_wxUSE_SERIAL=yes
1557 DEFAULT_wxUSE_JOYSTICK=yes
1558 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1559 DEFAULT_wxUSE_LONGLONG=yes
1560 DEFAULT_wxUSE_GEOMETRY=yes
1561
1562 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1563 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1564 DEFAULT_wxUSE_POSTSCRIPT=yes
1565
1566 DEFAULT_wxUSE_X_RESOURCES=no
1567 DEFAULT_wxUSE_CLIPBOARD=yes
1568 DEFAULT_wxUSE_TOOLTIPS=yes
1569 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1570 DEFAULT_wxUSE_SPLINES=yes
1571
1572 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1573 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1574 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1575
1576 DEFAULT_wxUSE_PROLOGIO=yes
1577 DEFAULT_wxUSE_RESOURCES=yes
1578 DEFAULT_wxUSE_CONSTRAINTS=yes
1579 DEFAULT_wxUSE_IPC=yes
1580 DEFAULT_wxUSE_HELP=yes
1581 DEFAULT_wxUSE_WXTREE=yes
1582 DEFAULT_wxUSE_METAFILE=yes
1583 DEFAULT_wxUSE_MIMETYPE=yes
1584
1585 DEFAULT_wxUSE_COMMONDLGS=yes
1586 DEFAULT_wxUSE_CHOICEDLG=yes
1587 DEFAULT_wxUSE_COLOURDLG=yes
1588 DEFAULT_wxUSE_DIRDLG=yes
1589 DEFAULT_wxUSE_FILEDLG=yes
1590 DEFAULT_wxUSE_FONTDLG=yes
1591 DEFAULT_wxUSE_MSGDLG=yes
1592 DEFAULT_wxUSE_NUMBERDLG=yes
1593 DEFAULT_wxUSE_TEXTDLG=yes
1594 DEFAULT_wxUSE_STARTUP_TIPS=yes
1595 DEFAULT_wxUSE_PROGRESSDLG=yes
1596 DEFAULT_wxUSE_MENUS=yes
1597 DEFAULT_wxUSE_MINIFRAME=yes
1598 DEFAULT_wxUSE_HTML=yes
1599 DEFAULT_wxUSE_FILESYSTEM=yes
1600 DEFAULT_wxUSE_FS_INET=yes
1601 DEFAULT_wxUSE_FS_ZIP=yes
1602 DEFAULT_wxUSE_BUSYINFO=yes
1603 DEFAULT_wxUSE_ZIPSTREAM=yes
1604 DEFAULT_wxUSE_VALIDATORS=yes
1605
1606 DEFAULT_wxUSE_ACCEL=yes
1607 DEFAULT_wxUSE_BUTTON=yes
1608 DEFAULT_wxUSE_BMPBUTTON=yes
1609 DEFAULT_wxUSE_CALCTRL=yes
1610 DEFAULT_wxUSE_CARET=yes
1611 DEFAULT_wxUSE_CHECKBOX=yes
1612 DEFAULT_wxUSE_CHECKLST=yes
1613 DEFAULT_wxUSE_CHOICE=yes
1614 DEFAULT_wxUSE_COMBOBOX=yes
1615 DEFAULT_wxUSE_GAUGE=yes
1616 DEFAULT_wxUSE_GRID=yes
1617 DEFAULT_wxUSE_NEW_GRID=yes
1618 DEFAULT_wxUSE_IMAGLIST=yes
1619 DEFAULT_wxUSE_LISTBOX=yes
1620 DEFAULT_wxUSE_LISTCTRL=yes
1621 DEFAULT_wxUSE_NOTEBOOK=yes
1622 DEFAULT_wxUSE_RADIOBOX=yes
1623 DEFAULT_wxUSE_RADIOBTN=yes
1624 DEFAULT_wxUSE_SASH=yes
1625 DEFAULT_wxUSE_SCROLLBAR=yes
1626 DEFAULT_wxUSE_SLIDER=yes
1627 DEFAULT_wxUSE_SPINBTN=yes
1628 DEFAULT_wxUSE_SPINCTRL=yes
1629 DEFAULT_wxUSE_SPLITTER=yes
1630 DEFAULT_wxUSE_STATBMP=yes
1631 DEFAULT_wxUSE_STATBOX=yes
1632 DEFAULT_wxUSE_STATLINE=yes
1633 DEFAULT_wxUSE_STATTEXT=yes
1634 DEFAULT_wxUSE_STATUSBAR=yes
1635 DEFAULT_wxUSE_TABDIALOG=no
1636 DEFAULT_wxUSE_TEXTCTRL=yes
1637 DEFAULT_wxUSE_TOGGLEBTN=yes
1638 DEFAULT_wxUSE_TOOLBAR=yes
1639 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1640 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1641 DEFAULT_wxUSE_TREECTRL=yes
1642
1643 DEFAULT_wxUSE_UNICODE=no
1644 DEFAULT_wxUSE_WCSRTOMBS=no
1645
1646 DEFAULT_wxUSE_IMAGE=yes
1647 DEFAULT_wxUSE_GIF=yes
1648 DEFAULT_wxUSE_PCX=yes
1649 DEFAULT_wxUSE_PNM=yes
1650 DEFAULT_wxUSE_XPM=yes
1651fi
1652
1653
1654
1655for toolkit in `echo $ALL_TOOLKITS`; do
1656 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1657 if test "x$LINE" != x ; then
1658 has_toolkit_in_cache=1
1659 eval "DEFAULT_$LINE"
1660 eval "CACHE_$toolkit=1"
1661 fi
1662done
1663
1664
1665
1666 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1667echo "configure:1668: checking for --enable-gui" >&5
1668 no_cache=0
1669 # Check whether --enable-gui or --disable-gui was given.
1670if test "${enable_gui+set}" = set; then
1671 enableval="$enable_gui"
1672
1673 if test "$enableval" = yes; then
1674 ac_cv_use_gui='wxUSE_GUI=yes'
1675 else
1676 ac_cv_use_gui='wxUSE_GUI=no'
1677 fi
1678
1679else
1680
1681 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1682 if test "x$LINE" != x ; then
1683 eval "DEFAULT_$LINE"
1684 else
1685 no_cache=1
1686 fi
1687
1688 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1689
1690fi
1691
1692
1693 eval "$ac_cv_use_gui"
1694 if test "$no_cache" != 1; then
1695 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1696 fi
1697
1698 if test "$wxUSE_GUI" = yes; then
1699 echo "$ac_t""yes" 1>&6
1700 else
1701 echo "$ac_t""no" 1>&6
1702 fi
1703
1704
1705if test "$wxUSE_GUI" = "yes"; then
1706
1707
1708 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1709echo "configure:1710: checking for --enable-universal" >&5
1710 no_cache=0
1711 # Check whether --enable-universal or --disable-universal was given.
1712if test "${enable_universal+set}" = set; then
1713 enableval="$enable_universal"
1714
1715 if test "$enableval" = yes; then
1716 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1717 else
1718 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1719 fi
1720
1721else
1722
1723 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1724 if test "x$LINE" != x ; then
1725 eval "DEFAULT_$LINE"
1726 else
1727 no_cache=1
1728 fi
1729
1730 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1731
1732fi
1733
1734
1735 eval "$ac_cv_use_universal"
1736 if test "$no_cache" != 1; then
1737 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1738 fi
1739
1740 if test "$wxUSE_UNIVERSAL" = yes; then
1741 echo "$ac_t""yes" 1>&6
1742 else
1743 echo "$ac_t""no" 1>&6
1744 fi
1745
1746# Check whether --with-gtk or --without-gtk was given.
1747if test "${with_gtk+set}" = set; then
1748 withval="$with_gtk"
1749 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1750fi
1751
1752# Check whether --with-motif or --without-motif was given.
1753if test "${with_motif+set}" = set; then
1754 withval="$with_motif"
1755 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1756fi
1757
1758# Check whether --with-mac or --without-mac was given.
1759if test "${with_mac+set}" = set; then
1760 withval="$with_mac"
1761 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1762fi
1763
1764# Check whether --with-wine or --without-wine was given.
1765if test "${with_wine+set}" = set; then
1766 withval="$with_wine"
1767 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1768fi
1769
1770# Check whether --with-cygwin or --without-cygwin was given.
1771if test "${with_cygwin+set}" = set; then
1772 withval="$with_cygwin"
1773 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1774fi
1775
1776# Check whether --with-mingw or --without-mingw was given.
1777if test "${with_mingw+set}" = set; then
1778 withval="$with_mingw"
1779 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1780fi
1781
1782# Check whether --with-pm or --without-pm was given.
1783if test "${with_pm+set}" = set; then
1784 withval="$with_pm"
1785 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1786fi
1787
1788# Check whether --with-mgl or --without-mgl was given.
1789if test "${with_mgl+set}" = set; then
1790 withval="$with_mgl"
1791 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1792fi
1793
1794
1795# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1796if test "${with_gtk_prefix+set}" = set; then
1797 withval="$with_gtk_prefix"
1798 gtk_config_prefix="$withval"
1799else
1800 gtk_config_prefix=""
1801fi
1802
1803# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1804if test "${with_gtk_exec_prefix+set}" = set; then
1805 withval="$with_gtk_exec_prefix"
1806 gtk_config_exec_prefix="$withval"
1807else
1808 gtk_config_exec_prefix=""
1809fi
1810
1811
1812
1813 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1814echo "configure:1815: checking for --with-libpng" >&5
1815 no_cache=0
1816 # Check whether --with-libpng or --without-libpng was given.
1817if test "${with_libpng+set}" = set; then
1818 withval="$with_libpng"
1819
1820 if test "$withval" = yes; then
1821 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1822 elif test "$withval" = no; then
1823 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1824 elif test "$withval" = sys; then
1825 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1826 else
1827 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1828 fi
1829
1830else
1831
1832 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1833 if test "x$LINE" != x ; then
1834 eval "DEFAULT_$LINE"
1835 else
1836 no_cache=1
1837 fi
1838
1839 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1840
1841fi
1842
1843
1844 eval "$ac_cv_use_libpng"
1845 if test "$no_cache" != 1; then
1846 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1847 fi
1848
1849 if test "$wxUSE_LIBPNG" = yes; then
1850 echo "$ac_t""yes" 1>&6
1851 elif test "$wxUSE_LIBPNG" = no; then
1852 echo "$ac_t""no" 1>&6
1853 elif test "$wxUSE_LIBPNG" = sys; then
1854 echo "$ac_t""system version" 1>&6
1855 else
1856 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1857 fi
1858
1859
1860 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1861echo "configure:1862: checking for --with-libjpeg" >&5
1862 no_cache=0
1863 # Check whether --with-libjpeg or --without-libjpeg was given.
1864if test "${with_libjpeg+set}" = set; then
1865 withval="$with_libjpeg"
1866
1867 if test "$withval" = yes; then
1868 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1869 elif test "$withval" = no; then
1870 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1871 elif test "$withval" = sys; then
1872 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1873 else
1874 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1875 fi
1876
1877else
1878
1879 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1880 if test "x$LINE" != x ; then
1881 eval "DEFAULT_$LINE"
1882 else
1883 no_cache=1
1884 fi
1885
1886 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1887
1888fi
1889
1890
1891 eval "$ac_cv_use_libjpeg"
1892 if test "$no_cache" != 1; then
1893 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1894 fi
1895
1896 if test "$wxUSE_LIBJPEG" = yes; then
1897 echo "$ac_t""yes" 1>&6
1898 elif test "$wxUSE_LIBJPEG" = no; then
1899 echo "$ac_t""no" 1>&6
1900 elif test "$wxUSE_LIBJPEG" = sys; then
1901 echo "$ac_t""system version" 1>&6
1902 else
1903 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1904 fi
1905
1906
1907 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
1908echo "configure:1909: checking for --with-libtiff" >&5
1909 no_cache=0
1910 # Check whether --with-libtiff or --without-libtiff was given.
1911if test "${with_libtiff+set}" = set; then
1912 withval="$with_libtiff"
1913
1914 if test "$withval" = yes; then
1915 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1916 elif test "$withval" = no; then
1917 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1918 elif test "$withval" = sys; then
1919 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1920 else
1921 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1922 fi
1923
1924else
1925
1926 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1927 if test "x$LINE" != x ; then
1928 eval "DEFAULT_$LINE"
1929 else
1930 no_cache=1
1931 fi
1932
1933 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1934
1935fi
1936
1937
1938 eval "$ac_cv_use_libtiff"
1939 if test "$no_cache" != 1; then
1940 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1941 fi
1942
1943 if test "$wxUSE_LIBTIFF" = yes; then
1944 echo "$ac_t""yes" 1>&6
1945 elif test "$wxUSE_LIBTIFF" = no; then
1946 echo "$ac_t""no" 1>&6
1947 elif test "$wxUSE_LIBTIFF" = sys; then
1948 echo "$ac_t""system version" 1>&6
1949 else
1950 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1951 fi
1952
1953
1954 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
1955echo "configure:1956: checking for --with-freetype" >&5
1956 no_cache=0
1957 # Check whether --with-freetype or --without-freetype was given.
1958if test "${with_freetype+set}" = set; then
1959 withval="$with_freetype"
1960
1961 if test "$withval" = yes; then
1962 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1963 elif test "$withval" = no; then
1964 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1965 elif test "$withval" = sys; then
1966 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1967 else
1968 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1969 fi
1970
1971else
1972
1973 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
1974 if test "x$LINE" != x ; then
1975 eval "DEFAULT_$LINE"
1976 else
1977 no_cache=1
1978 fi
1979
1980 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
1981
1982fi
1983
1984
1985 eval "$ac_cv_use_freetype"
1986 if test "$no_cache" != 1; then
1987 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
1988 fi
1989
1990 if test "$wxUSE_FREETYPE" = yes; then
1991 echo "$ac_t""yes" 1>&6
1992 elif test "$wxUSE_FREETYPE" = no; then
1993 echo "$ac_t""no" 1>&6
1994 elif test "$wxUSE_FREETYPE" = sys; then
1995 echo "$ac_t""system version" 1>&6
1996 else
1997 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1998 fi
1999
2000
2001 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2002echo "configure:2003: checking for --with-opengl" >&5
2003 no_cache=0
2004 # Check whether --with-opengl or --without-opengl was given.
2005if test "${with_opengl+set}" = set; then
2006 withval="$with_opengl"
2007
2008 if test "$withval" = yes; then
2009 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2010 else
2011 ac_cv_use_opengl='wxUSE_OPENGL=no'
2012 fi
2013
2014else
2015
2016 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2017 if test "x$LINE" != x ; then
2018 eval "DEFAULT_$LINE"
2019 else
2020 no_cache=1
2021 fi
2022
2023 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2024
2025fi
2026
2027
2028 eval "$ac_cv_use_opengl"
2029 if test "$no_cache" != 1; then
2030 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2031 fi
2032
2033 if test "$wxUSE_OPENGL" = yes; then
2034 echo "$ac_t""yes" 1>&6
2035 else
2036 echo "$ac_t""no" 1>&6
2037 fi
2038
2039
2040fi
2041
2042
2043 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2044echo "configure:2045: checking for --with-dmalloc" >&5
2045 no_cache=0
2046 # Check whether --with-dmalloc or --without-dmalloc was given.
2047if test "${with_dmalloc+set}" = set; then
2048 withval="$with_dmalloc"
2049
2050 if test "$withval" = yes; then
2051 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2052 else
2053 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2054 fi
2055
2056else
2057
2058 LINE=`grep "wxUSE_DMALLOC" ${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_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2066
2067fi
2068
2069
2070 eval "$ac_cv_use_dmalloc"
2071 if test "$no_cache" != 1; then
2072 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2073 fi
2074
2075 if test "$wxUSE_DMALLOC" = yes; then
2076 echo "$ac_t""yes" 1>&6
2077 else
2078 echo "$ac_t""no" 1>&6
2079 fi
2080
2081
2082 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2083echo "configure:2084: checking for --with-zlib" >&5
2084 no_cache=0
2085 # Check whether --with-zlib or --without-zlib was given.
2086if test "${with_zlib+set}" = set; then
2087 withval="$with_zlib"
2088
2089 if test "$withval" = yes; then
2090 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2091 elif test "$withval" = no; then
2092 ac_cv_use_zlib='wxUSE_ZLIB=no'
2093 elif test "$withval" = sys; then
2094 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2095 else
2096 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2097 fi
2098
2099else
2100
2101 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2102 if test "x$LINE" != x ; then
2103 eval "DEFAULT_$LINE"
2104 else
2105 no_cache=1
2106 fi
2107
2108 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2109
2110fi
2111
2112
2113 eval "$ac_cv_use_zlib"
2114 if test "$no_cache" != 1; then
2115 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2116 fi
2117
2118 if test "$wxUSE_ZLIB" = yes; then
2119 echo "$ac_t""yes" 1>&6
2120 elif test "$wxUSE_ZLIB" = no; then
2121 echo "$ac_t""no" 1>&6
2122 elif test "$wxUSE_ZLIB" = sys; then
2123 echo "$ac_t""system version" 1>&6
2124 else
2125 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2126 fi
2127
2128
2129 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2130echo "configure:2131: checking for --with-odbc" >&5
2131 no_cache=0
2132 # Check whether --with-odbc or --without-odbc was given.
2133if test "${with_odbc+set}" = set; then
2134 withval="$with_odbc"
2135
2136 if test "$withval" = yes; then
2137 ac_cv_use_odbc='wxUSE_ODBC=yes'
2138 else
2139 ac_cv_use_odbc='wxUSE_ODBC=no'
2140 fi
2141
2142else
2143
2144 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2145 if test "x$LINE" != x ; then
2146 eval "DEFAULT_$LINE"
2147 else
2148 no_cache=1
2149 fi
2150
2151 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2152
2153fi
2154
2155
2156 eval "$ac_cv_use_odbc"
2157 if test "$no_cache" != 1; then
2158 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2159 fi
2160
2161 if test "$wxUSE_ODBC" = yes; then
2162 echo "$ac_t""yes" 1>&6
2163 else
2164 echo "$ac_t""no" 1>&6
2165 fi
2166
2167
2168
2169
2170
2171 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2172echo "configure:2173: checking for --enable-shared" >&5
2173 no_cache=0
2174 # Check whether --enable-shared or --disable-shared was given.
2175if test "${enable_shared+set}" = set; then
2176 enableval="$enable_shared"
2177
2178 if test "$enableval" = yes; then
2179 ac_cv_use_shared='wxUSE_SHARED=yes'
2180 else
2181 ac_cv_use_shared='wxUSE_SHARED=no'
2182 fi
2183
2184else
2185
2186 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2187 if test "x$LINE" != x ; then
2188 eval "DEFAULT_$LINE"
2189 else
2190 no_cache=1
2191 fi
2192
2193 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2194
2195fi
2196
2197
2198 eval "$ac_cv_use_shared"
2199 if test "$no_cache" != 1; then
2200 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2201 fi
2202
2203 if test "$wxUSE_SHARED" = yes; then
2204 echo "$ac_t""yes" 1>&6
2205 else
2206 echo "$ac_t""no" 1>&6
2207 fi
2208
2209
2210 echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6
2211echo "configure:2212: checking for --enable-burnt_name" >&5
2212 no_cache=0
2213 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2214if test "${enable_burnt_name+set}" = set; then
2215 enableval="$enable_burnt_name"
2216
2217 if test "$enableval" = yes; then
2218 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2219 else
2220 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2221 fi
2222
2223else
2224
2225 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2226 if test "x$LINE" != x ; then
2227 eval "DEFAULT_$LINE"
2228 else
2229 no_cache=1
2230 fi
2231
2232 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
2233
2234fi
2235
2236
2237 eval "$ac_cv_use_burnt_name"
2238 if test "$no_cache" != 1; then
2239 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2240 fi
2241
2242 if test "$wxUSE_BURNT_NAME" = yes; then
2243 echo "$ac_t""yes" 1>&6
2244 else
2245 echo "$ac_t""no" 1>&6
2246 fi
2247
2248
2249 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2250echo "configure:2251: checking for --enable-optimise" >&5
2251 no_cache=0
2252 # Check whether --enable-optimise or --disable-optimise was given.
2253if test "${enable_optimise+set}" = set; then
2254 enableval="$enable_optimise"
2255
2256 if test "$enableval" = yes; then
2257 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2258 else
2259 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2260 fi
2261
2262else
2263
2264 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2265 if test "x$LINE" != x ; then
2266 eval "DEFAULT_$LINE"
2267 else
2268 no_cache=1
2269 fi
2270
2271 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2272
2273fi
2274
2275
2276 eval "$ac_cv_use_optimise"
2277 if test "$no_cache" != 1; then
2278 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2279 fi
2280
2281 if test "$wxUSE_OPTIMISE" = yes; then
2282 echo "$ac_t""yes" 1>&6
2283 else
2284 echo "$ac_t""no" 1>&6
2285 fi
2286
2287
2288 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2289echo "configure:2290: checking for --enable-debug" >&5
2290 no_cache=0
2291 # Check whether --enable-debug or --disable-debug was given.
2292if test "${enable_debug+set}" = set; then
2293 enableval="$enable_debug"
2294
2295 if test "$enableval" = yes; then
2296 ac_cv_use_debug='wxUSE_DEBUG=yes'
2297 else
2298 ac_cv_use_debug='wxUSE_DEBUG=no'
2299 fi
2300
2301else
2302
2303 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2304 if test "x$LINE" != x ; then
2305 eval "DEFAULT_$LINE"
2306 else
2307 no_cache=1
2308 fi
2309
2310 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2311
2312fi
2313
2314
2315 eval "$ac_cv_use_debug"
2316 if test "$no_cache" != 1; then
2317 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2318 fi
2319
2320 if test "$wxUSE_DEBUG" = yes; then
2321 echo "$ac_t""yes" 1>&6
2322 else
2323 echo "$ac_t""no" 1>&6
2324 fi
2325
2326
2327if test "$wxUSE_DEBUG" = "yes"; then
2328 DEFAULT_wxUSE_DEBUG_FLAG=yes
2329 DEFAULT_wxUSE_DEBUG_INFO=yes
2330elif test "$wxUSE_DEBUG" = "no"; then
2331 DEFAULT_wxUSE_DEBUG_FLAG=no
2332 DEFAULT_wxUSE_DEBUG_INFO=no
2333fi
2334
2335
2336 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2337echo "configure:2338: checking for --enable-debug_flag" >&5
2338 no_cache=0
2339 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2340if test "${enable_debug_flag+set}" = set; then
2341 enableval="$enable_debug_flag"
2342
2343 if test "$enableval" = yes; then
2344 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2345 else
2346 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2347 fi
2348
2349else
2350
2351 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2352 if test "x$LINE" != x ; then
2353 eval "DEFAULT_$LINE"
2354 else
2355 no_cache=1
2356 fi
2357
2358 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2359
2360fi
2361
2362
2363 eval "$ac_cv_use_debug_flag"
2364 if test "$no_cache" != 1; then
2365 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2366 fi
2367
2368 if test "$wxUSE_DEBUG_FLAG" = yes; then
2369 echo "$ac_t""yes" 1>&6
2370 else
2371 echo "$ac_t""no" 1>&6
2372 fi
2373
2374
2375 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2376echo "configure:2377: checking for --enable-debug_info" >&5
2377 no_cache=0
2378 # Check whether --enable-debug_info or --disable-debug_info was given.
2379if test "${enable_debug_info+set}" = set; then
2380 enableval="$enable_debug_info"
2381
2382 if test "$enableval" = yes; then
2383 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2384 else
2385 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2386 fi
2387
2388else
2389
2390 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2391 if test "x$LINE" != x ; then
2392 eval "DEFAULT_$LINE"
2393 else
2394 no_cache=1
2395 fi
2396
2397 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2398
2399fi
2400
2401
2402 eval "$ac_cv_use_debug_info"
2403 if test "$no_cache" != 1; then
2404 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2405 fi
2406
2407 if test "$wxUSE_DEBUG_INFO" = yes; then
2408 echo "$ac_t""yes" 1>&6
2409 else
2410 echo "$ac_t""no" 1>&6
2411 fi
2412
2413
2414 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2415echo "configure:2416: checking for --enable-debug_gdb" >&5
2416 no_cache=0
2417 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2418if test "${enable_debug_gdb+set}" = set; then
2419 enableval="$enable_debug_gdb"
2420
2421 if test "$enableval" = yes; then
2422 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2423 else
2424 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2425 fi
2426
2427else
2428
2429 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2430 if test "x$LINE" != x ; then
2431 eval "DEFAULT_$LINE"
2432 else
2433 no_cache=1
2434 fi
2435
2436 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2437
2438fi
2439
2440
2441 eval "$ac_cv_use_debug_gdb"
2442 if test "$no_cache" != 1; then
2443 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2444 fi
2445
2446 if test "$wxUSE_DEBUG_GDB" = yes; then
2447 echo "$ac_t""yes" 1>&6
2448 else
2449 echo "$ac_t""no" 1>&6
2450 fi
2451
2452
2453 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2454echo "configure:2455: checking for --enable-debug_cntxt" >&5
2455 no_cache=0
2456 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2457if test "${enable_debug_cntxt+set}" = set; then
2458 enableval="$enable_debug_cntxt"
2459
2460 if test "$enableval" = yes; then
2461 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2462 else
2463 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2464 fi
2465
2466else
2467
2468 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2469 if test "x$LINE" != x ; then
2470 eval "DEFAULT_$LINE"
2471 else
2472 no_cache=1
2473 fi
2474
2475 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2476
2477fi
2478
2479
2480 eval "$ac_cv_use_debug_cntxt"
2481 if test "$no_cache" != 1; then
2482 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2483 fi
2484
2485 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2486 echo "$ac_t""yes" 1>&6
2487 else
2488 echo "$ac_t""no" 1>&6
2489 fi
2490
2491
2492 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2493echo "configure:2494: checking for --enable-mem_tracing" >&5
2494 no_cache=0
2495 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2496if test "${enable_mem_tracing+set}" = set; then
2497 enableval="$enable_mem_tracing"
2498
2499 if test "$enableval" = yes; then
2500 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2501 else
2502 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2503 fi
2504
2505else
2506
2507 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2508 if test "x$LINE" != x ; then
2509 eval "DEFAULT_$LINE"
2510 else
2511 no_cache=1
2512 fi
2513
2514 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2515
2516fi
2517
2518
2519 eval "$ac_cv_use_mem_tracing"
2520 if test "$no_cache" != 1; then
2521 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2522 fi
2523
2524 if test "$wxUSE_MEM_TRACING" = yes; then
2525 echo "$ac_t""yes" 1>&6
2526 else
2527 echo "$ac_t""no" 1>&6
2528 fi
2529
2530
2531 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2532echo "configure:2533: checking for --enable-profile" >&5
2533 no_cache=0
2534 # Check whether --enable-profile or --disable-profile was given.
2535if test "${enable_profile+set}" = set; then
2536 enableval="$enable_profile"
2537
2538 if test "$enableval" = yes; then
2539 ac_cv_use_profile='wxUSE_PROFILE=yes'
2540 else
2541 ac_cv_use_profile='wxUSE_PROFILE=no'
2542 fi
2543
2544else
2545
2546 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2547 if test "x$LINE" != x ; then
2548 eval "DEFAULT_$LINE"
2549 else
2550 no_cache=1
2551 fi
2552
2553 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2554
2555fi
2556
2557
2558 eval "$ac_cv_use_profile"
2559 if test "$no_cache" != 1; then
2560 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2561 fi
2562
2563 if test "$wxUSE_PROFILE" = yes; then
2564 echo "$ac_t""yes" 1>&6
2565 else
2566 echo "$ac_t""no" 1>&6
2567 fi
2568
2569
2570 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2571echo "configure:2572: checking for --enable-no_rtti" >&5
2572 no_cache=0
2573 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2574if test "${enable_no_rtti+set}" = set; then
2575 enableval="$enable_no_rtti"
2576
2577 if test "$enableval" = yes; then
2578 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2579 else
2580 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2581 fi
2582
2583else
2584
2585 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2586 if test "x$LINE" != x ; then
2587 eval "DEFAULT_$LINE"
2588 else
2589 no_cache=1
2590 fi
2591
2592 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2593
2594fi
2595
2596
2597 eval "$ac_cv_use_no_rtti"
2598 if test "$no_cache" != 1; then
2599 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2600 fi
2601
2602 if test "$wxUSE_NO_RTTI" = yes; then
2603 echo "$ac_t""yes" 1>&6
2604 else
2605 echo "$ac_t""no" 1>&6
2606 fi
2607
2608
2609 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2610echo "configure:2611: checking for --enable-no_exceptions" >&5
2611 no_cache=0
2612 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2613if test "${enable_no_exceptions+set}" = set; then
2614 enableval="$enable_no_exceptions"
2615
2616 if test "$enableval" = yes; then
2617 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2618 else
2619 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2620 fi
2621
2622else
2623
2624 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2625 if test "x$LINE" != x ; then
2626 eval "DEFAULT_$LINE"
2627 else
2628 no_cache=1
2629 fi
2630
2631 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2632
2633fi
2634
2635
2636 eval "$ac_cv_use_no_exceptions"
2637 if test "$no_cache" != 1; then
2638 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2639 fi
2640
2641 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2642 echo "$ac_t""yes" 1>&6
2643 else
2644 echo "$ac_t""no" 1>&6
2645 fi
2646
2647
2648 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2649echo "configure:2650: checking for --enable-permissive" >&5
2650 no_cache=0
2651 # Check whether --enable-permissive or --disable-permissive was given.
2652if test "${enable_permissive+set}" = set; then
2653 enableval="$enable_permissive"
2654
2655 if test "$enableval" = yes; then
2656 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2657 else
2658 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2659 fi
2660
2661else
2662
2663 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2664 if test "x$LINE" != x ; then
2665 eval "DEFAULT_$LINE"
2666 else
2667 no_cache=1
2668 fi
2669
2670 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2671
2672fi
2673
2674
2675 eval "$ac_cv_use_permissive"
2676 if test "$no_cache" != 1; then
2677 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2678 fi
2679
2680 if test "$wxUSE_PERMISSIVE" = yes; then
2681 echo "$ac_t""yes" 1>&6
2682 else
2683 echo "$ac_t""no" 1>&6
2684 fi
2685
2686
2687 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2688echo "configure:2689: checking for --enable-no_deps" >&5
2689 no_cache=0
2690 # Check whether --enable-no_deps or --disable-no_deps was given.
2691if test "${enable_no_deps+set}" = set; then
2692 enableval="$enable_no_deps"
2693
2694 if test "$enableval" = yes; then
2695 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2696 else
2697 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2698 fi
2699
2700else
2701
2702 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2703 if test "x$LINE" != x ; then
2704 eval "DEFAULT_$LINE"
2705 else
2706 no_cache=1
2707 fi
2708
2709 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2710
2711fi
2712
2713
2714 eval "$ac_cv_use_no_deps"
2715 if test "$no_cache" != 1; then
2716 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2717 fi
2718
2719 if test "$wxUSE_NO_DEPS" = yes; then
2720 echo "$ac_t""yes" 1>&6
2721 else
2722 echo "$ac_t""no" 1>&6
2723 fi
2724
2725
2726
2727
2728 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2729echo "configure:2730: checking for --enable-intl" >&5
2730 no_cache=0
2731 # Check whether --enable-intl or --disable-intl was given.
2732if test "${enable_intl+set}" = set; then
2733 enableval="$enable_intl"
2734
2735 if test "$enableval" = yes; then
2736 ac_cv_use_intl='wxUSE_INTL=yes'
2737 else
2738 ac_cv_use_intl='wxUSE_INTL=no'
2739 fi
2740
2741else
2742
2743 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2744 if test "x$LINE" != x ; then
2745 eval "DEFAULT_$LINE"
2746 else
2747 no_cache=1
2748 fi
2749
2750 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2751
2752fi
2753
2754
2755 eval "$ac_cv_use_intl"
2756 if test "$no_cache" != 1; then
2757 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2758 fi
2759
2760 if test "$wxUSE_INTL" = yes; then
2761 echo "$ac_t""yes" 1>&6
2762 else
2763 echo "$ac_t""no" 1>&6
2764 fi
2765
2766
2767 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
2768echo "configure:2769: checking for --enable-config" >&5
2769 no_cache=0
2770 # Check whether --enable-config or --disable-config was given.
2771if test "${enable_config+set}" = set; then
2772 enableval="$enable_config"
2773
2774 if test "$enableval" = yes; then
2775 ac_cv_use_config='wxUSE_CONFIG=yes'
2776 else
2777 ac_cv_use_config='wxUSE_CONFIG=no'
2778 fi
2779
2780else
2781
2782 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2783 if test "x$LINE" != x ; then
2784 eval "DEFAULT_$LINE"
2785 else
2786 no_cache=1
2787 fi
2788
2789 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2790
2791fi
2792
2793
2794 eval "$ac_cv_use_config"
2795 if test "$no_cache" != 1; then
2796 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2797 fi
2798
2799 if test "$wxUSE_CONFIG" = yes; then
2800 echo "$ac_t""yes" 1>&6
2801 else
2802 echo "$ac_t""no" 1>&6
2803 fi
2804
2805
2806
2807 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
2808echo "configure:2809: checking for --enable-sockets" >&5
2809 no_cache=0
2810 # Check whether --enable-sockets or --disable-sockets was given.
2811if test "${enable_sockets+set}" = set; then
2812 enableval="$enable_sockets"
2813
2814 if test "$enableval" = yes; then
2815 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2816 else
2817 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2818 fi
2819
2820else
2821
2822 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2823 if test "x$LINE" != x ; then
2824 eval "DEFAULT_$LINE"
2825 else
2826 no_cache=1
2827 fi
2828
2829 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2830
2831fi
2832
2833
2834 eval "$ac_cv_use_sockets"
2835 if test "$no_cache" != 1; then
2836 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2837 fi
2838
2839 if test "$wxUSE_SOCKETS" = yes; then
2840 echo "$ac_t""yes" 1>&6
2841 else
2842 echo "$ac_t""no" 1>&6
2843 fi
2844
2845
2846
2847 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
2848echo "configure:2849: checking for --enable-ipc" >&5
2849 no_cache=0
2850 # Check whether --enable-ipc or --disable-ipc was given.
2851if test "${enable_ipc+set}" = set; then
2852 enableval="$enable_ipc"
2853
2854 if test "$enableval" = yes; then
2855 ac_cv_use_ipc='wxUSE_IPC=yes'
2856 else
2857 ac_cv_use_ipc='wxUSE_IPC=no'
2858 fi
2859
2860else
2861
2862 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2863 if test "x$LINE" != x ; then
2864 eval "DEFAULT_$LINE"
2865 else
2866 no_cache=1
2867 fi
2868
2869 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2870
2871fi
2872
2873
2874 eval "$ac_cv_use_ipc"
2875 if test "$no_cache" != 1; then
2876 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2877 fi
2878
2879 if test "$wxUSE_IPC" = yes; then
2880 echo "$ac_t""yes" 1>&6
2881 else
2882 echo "$ac_t""no" 1>&6
2883 fi
2884
2885
2886
2887 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
2888echo "configure:2889: checking for --enable-cmdline" >&5
2889 no_cache=0
2890 # Check whether --enable-cmdline or --disable-cmdline was given.
2891if test "${enable_cmdline+set}" = set; then
2892 enableval="$enable_cmdline"
2893
2894 if test "$enableval" = yes; then
2895 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
2896 else
2897 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
2898 fi
2899
2900else
2901
2902 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
2903 if test "x$LINE" != x ; then
2904 eval "DEFAULT_$LINE"
2905 else
2906 no_cache=1
2907 fi
2908
2909 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
2910
2911fi
2912
2913
2914 eval "$ac_cv_use_cmdline"
2915 if test "$no_cache" != 1; then
2916 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
2917 fi
2918
2919 if test "$wxUSE_CMDLINE_PARSER" = yes; then
2920 echo "$ac_t""yes" 1>&6
2921 else
2922 echo "$ac_t""no" 1>&6
2923 fi
2924
2925
2926 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
2927echo "configure:2928: checking for --enable-datetime" >&5
2928 no_cache=0
2929 # Check whether --enable-datetime or --disable-datetime was given.
2930if test "${enable_datetime+set}" = set; then
2931 enableval="$enable_datetime"
2932
2933 if test "$enableval" = yes; then
2934 ac_cv_use_datetime='wxUSE_DATETIME=yes'
2935 else
2936 ac_cv_use_datetime='wxUSE_DATETIME=no'
2937 fi
2938
2939else
2940
2941 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
2942 if test "x$LINE" != x ; then
2943 eval "DEFAULT_$LINE"
2944 else
2945 no_cache=1
2946 fi
2947
2948 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
2949
2950fi
2951
2952
2953 eval "$ac_cv_use_datetime"
2954 if test "$no_cache" != 1; then
2955 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
2956 fi
2957
2958 if test "$wxUSE_DATETIME" = yes; then
2959 echo "$ac_t""yes" 1>&6
2960 else
2961 echo "$ac_t""no" 1>&6
2962 fi
2963
2964
2965 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
2966echo "configure:2967: checking for --enable-timedate" >&5
2967 no_cache=0
2968 # Check whether --enable-timedate or --disable-timedate was given.
2969if test "${enable_timedate+set}" = set; then
2970 enableval="$enable_timedate"
2971
2972 if test "$enableval" = yes; then
2973 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2974 else
2975 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2976 fi
2977
2978else
2979
2980 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2981 if test "x$LINE" != x ; then
2982 eval "DEFAULT_$LINE"
2983 else
2984 no_cache=1
2985 fi
2986
2987 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2988
2989fi
2990
2991
2992 eval "$ac_cv_use_timedate"
2993 if test "$no_cache" != 1; then
2994 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2995 fi
2996
2997 if test "$wxUSE_TIMEDATE" = yes; then
2998 echo "$ac_t""yes" 1>&6
2999 else
3000 echo "$ac_t""no" 1>&6
3001 fi
3002
3003
3004 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3005echo "configure:3006: checking for --enable-stopwatch" >&5
3006 no_cache=0
3007 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3008if test "${enable_stopwatch+set}" = set; then
3009 enableval="$enable_stopwatch"
3010
3011 if test "$enableval" = yes; then
3012 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3013 else
3014 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3015 fi
3016
3017else
3018
3019 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3020 if test "x$LINE" != x ; then
3021 eval "DEFAULT_$LINE"
3022 else
3023 no_cache=1
3024 fi
3025
3026 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3027
3028fi
3029
3030
3031 eval "$ac_cv_use_stopwatch"
3032 if test "$no_cache" != 1; then
3033 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3034 fi
3035
3036 if test "$wxUSE_STOPWATCH" = yes; then
3037 echo "$ac_t""yes" 1>&6
3038 else
3039 echo "$ac_t""no" 1>&6
3040 fi
3041
3042
3043 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3044echo "configure:3045: checking for --enable-dialupman" >&5
3045 no_cache=0
3046 # Check whether --enable-dialupman or --disable-dialupman was given.
3047if test "${enable_dialupman+set}" = set; then
3048 enableval="$enable_dialupman"
3049
3050 if test "$enableval" = yes; then
3051 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3052 else
3053 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3054 fi
3055
3056else
3057
3058 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3059 if test "x$LINE" != x ; then
3060 eval "DEFAULT_$LINE"
3061 else
3062 no_cache=1
3063 fi
3064
3065 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3066
3067fi
3068
3069
3070 eval "$ac_cv_use_dialupman"
3071 if test "$no_cache" != 1; then
3072 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3073 fi
3074
3075 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3076 echo "$ac_t""yes" 1>&6
3077 else
3078 echo "$ac_t""no" 1>&6
3079 fi
3080
3081
3082 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3083echo "configure:3084: checking for --enable-apple_ieee" >&5
3084 no_cache=0
3085 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3086if test "${enable_apple_ieee+set}" = set; then
3087 enableval="$enable_apple_ieee"
3088
3089 if test "$enableval" = yes; then
3090 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3091 else
3092 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3093 fi
3094
3095else
3096
3097 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3098 if test "x$LINE" != x ; then
3099 eval "DEFAULT_$LINE"
3100 else
3101 no_cache=1
3102 fi
3103
3104 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3105
3106fi
3107
3108
3109 eval "$ac_cv_use_apple_ieee"
3110 if test "$no_cache" != 1; then
3111 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3112 fi
3113
3114 if test "$wxUSE_APPLE_IEEE" = yes; then
3115 echo "$ac_t""yes" 1>&6
3116 else
3117 echo "$ac_t""no" 1>&6
3118 fi
3119
3120
3121 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3122echo "configure:3123: checking for --enable-timer" >&5
3123 no_cache=0
3124 # Check whether --enable-timer or --disable-timer was given.
3125if test "${enable_timer+set}" = set; then
3126 enableval="$enable_timer"
3127
3128 if test "$enableval" = yes; then
3129 ac_cv_use_timer='wxUSE_TIMER=yes'
3130 else
3131 ac_cv_use_timer='wxUSE_TIMER=no'
3132 fi
3133
3134else
3135
3136 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3137 if test "x$LINE" != x ; then
3138 eval "DEFAULT_$LINE"
3139 else
3140 no_cache=1
3141 fi
3142
3143 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3144
3145fi
3146
3147
3148 eval "$ac_cv_use_timer"
3149 if test "$no_cache" != 1; then
3150 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3151 fi
3152
3153 if test "$wxUSE_TIMER" = yes; then
3154 echo "$ac_t""yes" 1>&6
3155 else
3156 echo "$ac_t""no" 1>&6
3157 fi
3158
3159
3160 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3161echo "configure:3162: checking for --enable-wave" >&5
3162 no_cache=0
3163 # Check whether --enable-wave or --disable-wave was given.
3164if test "${enable_wave+set}" = set; then
3165 enableval="$enable_wave"
3166
3167 if test "$enableval" = yes; then
3168 ac_cv_use_wave='wxUSE_WAVE=yes'
3169 else
3170 ac_cv_use_wave='wxUSE_WAVE=no'
3171 fi
3172
3173else
3174
3175 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3176 if test "x$LINE" != x ; then
3177 eval "DEFAULT_$LINE"
3178 else
3179 no_cache=1
3180 fi
3181
3182 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3183
3184fi
3185
3186
3187 eval "$ac_cv_use_wave"
3188 if test "$no_cache" != 1; then
3189 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3190 fi
3191
3192 if test "$wxUSE_WAVE" = yes; then
3193 echo "$ac_t""yes" 1>&6
3194 else
3195 echo "$ac_t""no" 1>&6
3196 fi
3197
3198
3199 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3200echo "configure:3201: checking for --enable-fraction" >&5
3201 no_cache=0
3202 # Check whether --enable-fraction or --disable-fraction was given.
3203if test "${enable_fraction+set}" = set; then
3204 enableval="$enable_fraction"
3205
3206 if test "$enableval" = yes; then
3207 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3208 else
3209 ac_cv_use_fraction='wxUSE_FRACTION=no'
3210 fi
3211
3212else
3213
3214 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3215 if test "x$LINE" != x ; then
3216 eval "DEFAULT_$LINE"
3217 else
3218 no_cache=1
3219 fi
3220
3221 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3222
3223fi
3224
3225
3226 eval "$ac_cv_use_fraction"
3227 if test "$no_cache" != 1; then
3228 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3229 fi
3230
3231 if test "$wxUSE_FRACTION" = yes; then
3232 echo "$ac_t""yes" 1>&6
3233 else
3234 echo "$ac_t""no" 1>&6
3235 fi
3236
3237
3238 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3239echo "configure:3240: checking for --enable-dynlib" >&5
3240 no_cache=0
3241 # Check whether --enable-dynlib or --disable-dynlib was given.
3242if test "${enable_dynlib+set}" = set; then
3243 enableval="$enable_dynlib"
3244
3245 if test "$enableval" = yes; then
3246 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3247 else
3248 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3249 fi
3250
3251else
3252
3253 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3254 if test "x$LINE" != x ; then
3255 eval "DEFAULT_$LINE"
3256 else
3257 no_cache=1
3258 fi
3259
3260 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3261
3262fi
3263
3264
3265 eval "$ac_cv_use_dynlib"
3266 if test "$no_cache" != 1; then
3267 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3268 fi
3269
3270 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3271 echo "$ac_t""yes" 1>&6
3272 else
3273 echo "$ac_t""no" 1>&6
3274 fi
3275
3276
3277 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3278echo "configure:3279: checking for --enable-longlong" >&5
3279 no_cache=0
3280 # Check whether --enable-longlong or --disable-longlong was given.
3281if test "${enable_longlong+set}" = set; then
3282 enableval="$enable_longlong"
3283
3284 if test "$enableval" = yes; then
3285 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3286 else
3287 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3288 fi
3289
3290else
3291
3292 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3293 if test "x$LINE" != x ; then
3294 eval "DEFAULT_$LINE"
3295 else
3296 no_cache=1
3297 fi
3298
3299 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3300
3301fi
3302
3303
3304 eval "$ac_cv_use_longlong"
3305 if test "$no_cache" != 1; then
3306 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3307 fi
3308
3309 if test "$wxUSE_LONGLONG" = yes; then
3310 echo "$ac_t""yes" 1>&6
3311 else
3312 echo "$ac_t""no" 1>&6
3313 fi
3314
3315
3316 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3317echo "configure:3318: checking for --enable-geometry" >&5
3318 no_cache=0
3319 # Check whether --enable-geometry or --disable-geometry was given.
3320if test "${enable_geometry+set}" = set; then
3321 enableval="$enable_geometry"
3322
3323 if test "$enableval" = yes; then
3324 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3325 else
3326 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3327 fi
3328
3329else
3330
3331 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3332 if test "x$LINE" != x ; then
3333 eval "DEFAULT_$LINE"
3334 else
3335 no_cache=1
3336 fi
3337
3338 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3339
3340fi
3341
3342
3343 eval "$ac_cv_use_geometry"
3344 if test "$no_cache" != 1; then
3345 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3346 fi
3347
3348 if test "$wxUSE_GEOMETRY" = yes; then
3349 echo "$ac_t""yes" 1>&6
3350 else
3351 echo "$ac_t""no" 1>&6
3352 fi
3353
3354
3355 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3356echo "configure:3357: checking for --enable-log" >&5
3357 no_cache=0
3358 # Check whether --enable-log or --disable-log was given.
3359if test "${enable_log+set}" = set; then
3360 enableval="$enable_log"
3361
3362 if test "$enableval" = yes; then
3363 ac_cv_use_log='wxUSE_LOG=yes'
3364 else
3365 ac_cv_use_log='wxUSE_LOG=no'
3366 fi
3367
3368else
3369
3370 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3371 if test "x$LINE" != x ; then
3372 eval "DEFAULT_$LINE"
3373 else
3374 no_cache=1
3375 fi
3376
3377 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3378
3379fi
3380
3381
3382 eval "$ac_cv_use_log"
3383 if test "$no_cache" != 1; then
3384 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3385 fi
3386
3387 if test "$wxUSE_LOG" = yes; then
3388 echo "$ac_t""yes" 1>&6
3389 else
3390 echo "$ac_t""no" 1>&6
3391 fi
3392
3393
3394 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3395echo "configure:3396: checking for --enable-streams" >&5
3396 no_cache=0
3397 # Check whether --enable-streams or --disable-streams was given.
3398if test "${enable_streams+set}" = set; then
3399 enableval="$enable_streams"
3400
3401 if test "$enableval" = yes; then
3402 ac_cv_use_streams='wxUSE_STREAMS=yes'
3403 else
3404 ac_cv_use_streams='wxUSE_STREAMS=no'
3405 fi
3406
3407else
3408
3409 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3410 if test "x$LINE" != x ; then
3411 eval "DEFAULT_$LINE"
3412 else
3413 no_cache=1
3414 fi
3415
3416 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3417
3418fi
3419
3420
3421 eval "$ac_cv_use_streams"
3422 if test "$no_cache" != 1; then
3423 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3424 fi
3425
3426 if test "$wxUSE_STREAMS" = yes; then
3427 echo "$ac_t""yes" 1>&6
3428 else
3429 echo "$ac_t""no" 1>&6
3430 fi
3431
3432
3433 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3434echo "configure:3435: checking for --enable-file" >&5
3435 no_cache=0
3436 # Check whether --enable-file or --disable-file was given.
3437if test "${enable_file+set}" = set; then
3438 enableval="$enable_file"
3439
3440 if test "$enableval" = yes; then
3441 ac_cv_use_file='wxUSE_FILE=yes'
3442 else
3443 ac_cv_use_file='wxUSE_FILE=no'
3444 fi
3445
3446else
3447
3448 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3449 if test "x$LINE" != x ; then
3450 eval "DEFAULT_$LINE"
3451 else
3452 no_cache=1
3453 fi
3454
3455 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3456
3457fi
3458
3459
3460 eval "$ac_cv_use_file"
3461 if test "$no_cache" != 1; then
3462 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3463 fi
3464
3465 if test "$wxUSE_FILE" = yes; then
3466 echo "$ac_t""yes" 1>&6
3467 else
3468 echo "$ac_t""no" 1>&6
3469 fi
3470
3471
3472 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3473echo "configure:3474: checking for --enable-ffile" >&5
3474 no_cache=0
3475 # Check whether --enable-ffile or --disable-ffile was given.
3476if test "${enable_ffile+set}" = set; then
3477 enableval="$enable_ffile"
3478
3479 if test "$enableval" = yes; then
3480 ac_cv_use_ffile='wxUSE_FFILE=yes'
3481 else
3482 ac_cv_use_ffile='wxUSE_FFILE=no'
3483 fi
3484
3485else
3486
3487 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3488 if test "x$LINE" != x ; then
3489 eval "DEFAULT_$LINE"
3490 else
3491 no_cache=1
3492 fi
3493
3494 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3495
3496fi
3497
3498
3499 eval "$ac_cv_use_ffile"
3500 if test "$no_cache" != 1; then
3501 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3502 fi
3503
3504 if test "$wxUSE_FFILE" = yes; then
3505 echo "$ac_t""yes" 1>&6
3506 else
3507 echo "$ac_t""no" 1>&6
3508 fi
3509
3510
3511 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3512echo "configure:3513: checking for --enable-textfile" >&5
3513 no_cache=0
3514 # Check whether --enable-textfile or --disable-textfile was given.
3515if test "${enable_textfile+set}" = set; then
3516 enableval="$enable_textfile"
3517
3518 if test "$enableval" = yes; then
3519 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3520 else
3521 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3522 fi
3523
3524else
3525
3526 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3527 if test "x$LINE" != x ; then
3528 eval "DEFAULT_$LINE"
3529 else
3530 no_cache=1
3531 fi
3532
3533 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3534
3535fi
3536
3537
3538 eval "$ac_cv_use_textfile"
3539 if test "$no_cache" != 1; then
3540 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3541 fi
3542
3543 if test "$wxUSE_TEXTFILE" = yes; then
3544 echo "$ac_t""yes" 1>&6
3545 else
3546 echo "$ac_t""no" 1>&6
3547 fi
3548
3549
3550 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3551echo "configure:3552: checking for --enable-fontmap" >&5
3552 no_cache=0
3553 # Check whether --enable-fontmap or --disable-fontmap was given.
3554if test "${enable_fontmap+set}" = set; then
3555 enableval="$enable_fontmap"
3556
3557 if test "$enableval" = yes; then
3558 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
3559 else
3560 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
3561 fi
3562
3563else
3564
3565 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
3566 if test "x$LINE" != x ; then
3567 eval "DEFAULT_$LINE"
3568 else
3569 no_cache=1
3570 fi
3571
3572 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
3573
3574fi
3575
3576
3577 eval "$ac_cv_use_fontmap"
3578 if test "$no_cache" != 1; then
3579 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
3580 fi
3581
3582 if test "$wxUSE_FONTMAP" = yes; then
3583 echo "$ac_t""yes" 1>&6
3584 else
3585 echo "$ac_t""no" 1>&6
3586 fi
3587
3588
3589 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3590echo "configure:3591: checking for --enable-unicode" >&5
3591 no_cache=0
3592 # Check whether --enable-unicode or --disable-unicode was given.
3593if test "${enable_unicode+set}" = set; then
3594 enableval="$enable_unicode"
3595
3596 if test "$enableval" = yes; then
3597 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3598 else
3599 ac_cv_use_unicode='wxUSE_UNICODE=no'
3600 fi
3601
3602else
3603
3604 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3605 if test "x$LINE" != x ; then
3606 eval "DEFAULT_$LINE"
3607 else
3608 no_cache=1
3609 fi
3610
3611 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3612
3613fi
3614
3615
3616 eval "$ac_cv_use_unicode"
3617 if test "$no_cache" != 1; then
3618 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3619 fi
3620
3621 if test "$wxUSE_UNICODE" = yes; then
3622 echo "$ac_t""yes" 1>&6
3623 else
3624 echo "$ac_t""no" 1>&6
3625 fi
3626
3627
3628 echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6
3629echo "configure:3630: checking for --enable-wcsrtombs" >&5
3630 no_cache=0
3631 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3632if test "${enable_wcsrtombs+set}" = set; then
3633 enableval="$enable_wcsrtombs"
3634
3635 if test "$enableval" = yes; then
3636 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3637 else
3638 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3639 fi
3640
3641else
3642
3643 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3644 if test "x$LINE" != x ; then
3645 eval "DEFAULT_$LINE"
3646 else
3647 no_cache=1
3648 fi
3649
3650 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3651
3652fi
3653
3654
3655 eval "$ac_cv_use_wcsrtombs"
3656 if test "$no_cache" != 1; then
3657 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3658 fi
3659
3660 if test "$wxUSE_WCSRTOMBS" = yes; then
3661 echo "$ac_t""yes" 1>&6
3662 else
3663 echo "$ac_t""no" 1>&6
3664 fi
3665
3666
3667 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3668echo "configure:3669: checking for --enable-wxprintfv" >&5
3669 no_cache=0
3670 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3671if test "${enable_wxprintfv+set}" = set; then
3672 enableval="$enable_wxprintfv"
3673
3674 if test "$enableval" = yes; then
3675 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3676 else
3677 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3678 fi
3679
3680else
3681
3682 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3683 if test "x$LINE" != x ; then
3684 eval "DEFAULT_$LINE"
3685 else
3686 no_cache=1
3687 fi
3688
3689 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3690
3691fi
3692
3693
3694 eval "$ac_cv_use_wxprintfv"
3695 if test "$no_cache" != 1; then
3696 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3697 fi
3698
3699 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3700 echo "$ac_t""yes" 1>&6
3701 else
3702 echo "$ac_t""no" 1>&6
3703 fi
3704
3705
3706 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3707echo "configure:3708: checking for --enable-std_iostreams" >&5
3708 no_cache=0
3709 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3710if test "${enable_std_iostreams+set}" = set; then
3711 enableval="$enable_std_iostreams"
3712
3713 if test "$enableval" = yes; then
3714 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3715 else
3716 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3717 fi
3718
3719else
3720
3721 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3722 if test "x$LINE" != x ; then
3723 eval "DEFAULT_$LINE"
3724 else
3725 no_cache=1
3726 fi
3727
3728 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3729
3730fi
3731
3732
3733 eval "$ac_cv_use_std_iostreams"
3734 if test "$no_cache" != 1; then
3735 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3736 fi
3737
3738 if test "$wxUSE_STD_IOSTREAM" = yes; then
3739 echo "$ac_t""yes" 1>&6
3740 else
3741 echo "$ac_t""no" 1>&6
3742 fi
3743
3744
3745 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3746echo "configure:3747: checking for --enable-filesystem" >&5
3747 no_cache=0
3748 # Check whether --enable-filesystem or --disable-filesystem was given.
3749if test "${enable_filesystem+set}" = set; then
3750 enableval="$enable_filesystem"
3751
3752 if test "$enableval" = yes; then
3753 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3754 else
3755 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3756 fi
3757
3758else
3759
3760 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3761 if test "x$LINE" != x ; then
3762 eval "DEFAULT_$LINE"
3763 else
3764 no_cache=1
3765 fi
3766
3767 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3768
3769fi
3770
3771
3772 eval "$ac_cv_use_filesystem"
3773 if test "$no_cache" != 1; then
3774 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3775 fi
3776
3777 if test "$wxUSE_FILESYSTEM" = yes; then
3778 echo "$ac_t""yes" 1>&6
3779 else
3780 echo "$ac_t""no" 1>&6
3781 fi
3782
3783
3784 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
3785echo "configure:3786: checking for --enable-fs_inet" >&5
3786 no_cache=0
3787 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3788if test "${enable_fs_inet+set}" = set; then
3789 enableval="$enable_fs_inet"
3790
3791 if test "$enableval" = yes; then
3792 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3793 else
3794 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3795 fi
3796
3797else
3798
3799 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3800 if test "x$LINE" != x ; then
3801 eval "DEFAULT_$LINE"
3802 else
3803 no_cache=1
3804 fi
3805
3806 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3807
3808fi
3809
3810
3811 eval "$ac_cv_use_fs_inet"
3812 if test "$no_cache" != 1; then
3813 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3814 fi
3815
3816 if test "$wxUSE_FS_INET" = yes; then
3817 echo "$ac_t""yes" 1>&6
3818 else
3819 echo "$ac_t""no" 1>&6
3820 fi
3821
3822
3823 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
3824echo "configure:3825: checking for --enable-fs_zip" >&5
3825 no_cache=0
3826 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3827if test "${enable_fs_zip+set}" = set; then
3828 enableval="$enable_fs_zip"
3829
3830 if test "$enableval" = yes; then
3831 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3832 else
3833 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3834 fi
3835
3836else
3837
3838 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3839 if test "x$LINE" != x ; then
3840 eval "DEFAULT_$LINE"
3841 else
3842 no_cache=1
3843 fi
3844
3845 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3846
3847fi
3848
3849
3850 eval "$ac_cv_use_fs_zip"
3851 if test "$no_cache" != 1; then
3852 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3853 fi
3854
3855 if test "$wxUSE_FS_ZIP" = yes; then
3856 echo "$ac_t""yes" 1>&6
3857 else
3858 echo "$ac_t""no" 1>&6
3859 fi
3860
3861
3862 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
3863echo "configure:3864: checking for --enable-zipstream" >&5
3864 no_cache=0
3865 # Check whether --enable-zipstream or --disable-zipstream was given.
3866if test "${enable_zipstream+set}" = set; then
3867 enableval="$enable_zipstream"
3868
3869 if test "$enableval" = yes; then
3870 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3871 else
3872 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3873 fi
3874
3875else
3876
3877 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3878 if test "x$LINE" != x ; then
3879 eval "DEFAULT_$LINE"
3880 else
3881 no_cache=1
3882 fi
3883
3884 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3885
3886fi
3887
3888
3889 eval "$ac_cv_use_zipstream"
3890 if test "$no_cache" != 1; then
3891 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3892 fi
3893
3894 if test "$wxUSE_ZIPSTREAM" = yes; then
3895 echo "$ac_t""yes" 1>&6
3896 else
3897 echo "$ac_t""no" 1>&6
3898 fi
3899
3900
3901
3902 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
3903echo "configure:3904: checking for --enable-catch_segvs" >&5
3904 no_cache=0
3905 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
3906if test "${enable_catch_segvs+set}" = set; then
3907 enableval="$enable_catch_segvs"
3908
3909 if test "$enableval" = yes; then
3910 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
3911 else
3912 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
3913 fi
3914
3915else
3916
3917 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
3918 if test "x$LINE" != x ; then
3919 eval "DEFAULT_$LINE"
3920 else
3921 no_cache=1
3922 fi
3923
3924 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
3925
3926fi
3927
3928
3929 eval "$ac_cv_use_catch_segvs"
3930 if test "$no_cache" != 1; then
3931 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
3932 fi
3933
3934 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
3935 echo "$ac_t""yes" 1>&6
3936 else
3937 echo "$ac_t""no" 1>&6
3938 fi
3939
3940
3941 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
3942echo "configure:3943: checking for --enable-snglinst" >&5
3943 no_cache=0
3944 # Check whether --enable-snglinst or --disable-snglinst was given.
3945if test "${enable_snglinst+set}" = set; then
3946 enableval="$enable_snglinst"
3947
3948 if test "$enableval" = yes; then
3949 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
3950 else
3951 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
3952 fi
3953
3954else
3955
3956 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
3957 if test "x$LINE" != x ; then
3958 eval "DEFAULT_$LINE"
3959 else
3960 no_cache=1
3961 fi
3962
3963 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
3964
3965fi
3966
3967
3968 eval "$ac_cv_use_snglinst"
3969 if test "$no_cache" != 1; then
3970 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
3971 fi
3972
3973 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
3974 echo "$ac_t""yes" 1>&6
3975 else
3976 echo "$ac_t""no" 1>&6
3977 fi
3978
3979
3980
3981 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
3982echo "configure:3983: checking for --enable-mimetype" >&5
3983 no_cache=0
3984 # Check whether --enable-mimetype or --disable-mimetype was given.
3985if test "${enable_mimetype+set}" = set; then
3986 enableval="$enable_mimetype"
3987
3988 if test "$enableval" = yes; then
3989 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
3990 else
3991 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
3992 fi
3993
3994else
3995
3996 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
3997 if test "x$LINE" != x ; then
3998 eval "DEFAULT_$LINE"
3999 else
4000 no_cache=1
4001 fi
4002
4003 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4004
4005fi
4006
4007
4008 eval "$ac_cv_use_mimetype"
4009 if test "$no_cache" != 1; then
4010 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4011 fi
4012
4013 if test "$wxUSE_MIMETYPE" = yes; then
4014 echo "$ac_t""yes" 1>&6
4015 else
4016 echo "$ac_t""no" 1>&6
4017 fi
4018
4019
4020
4021
4022 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4023echo "configure:4024: checking for --enable-threads" >&5
4024 no_cache=0
4025 # Check whether --enable-threads or --disable-threads was given.
4026if test "${enable_threads+set}" = set; then
4027 enableval="$enable_threads"
4028
4029 if test "$enableval" = yes; then
4030 ac_cv_use_threads='wxUSE_THREADS=yes'
4031 else
4032 ac_cv_use_threads='wxUSE_THREADS=no'
4033 fi
4034
4035else
4036
4037 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4038 if test "x$LINE" != x ; then
4039 eval "DEFAULT_$LINE"
4040 else
4041 no_cache=1
4042 fi
4043
4044 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4045
4046fi
4047
4048
4049 eval "$ac_cv_use_threads"
4050 if test "$no_cache" != 1; then
4051 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4052 fi
4053
4054 if test "$wxUSE_THREADS" = yes; then
4055 echo "$ac_t""yes" 1>&6
4056 else
4057 echo "$ac_t""no" 1>&6
4058 fi
4059
4060
4061 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
4062echo "configure:4063: checking for --enable-serial" >&5
4063 no_cache=0
4064 # Check whether --enable-serial or --disable-serial was given.
4065if test "${enable_serial+set}" = set; then
4066 enableval="$enable_serial"
4067
4068 if test "$enableval" = yes; then
4069 ac_cv_use_serial='wxUSE_SERIAL=yes'
4070 else
4071 ac_cv_use_serial='wxUSE_SERIAL=no'
4072 fi
4073
4074else
4075
4076 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4077 if test "x$LINE" != x ; then
4078 eval "DEFAULT_$LINE"
4079 else
4080 no_cache=1
4081 fi
4082
4083 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
4084
4085fi
4086
4087
4088 eval "$ac_cv_use_serial"
4089 if test "$no_cache" != 1; then
4090 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4091 fi
4092
4093 if test "$wxUSE_SERIAL" = yes; then
4094 echo "$ac_t""yes" 1>&6
4095 else
4096 echo "$ac_t""no" 1>&6
4097 fi
4098
4099
4100if test "$wxUSE_GUI" = "yes"; then
4101
4102
4103
4104 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4105echo "configure:4106: checking for --enable-docview" >&5
4106 no_cache=0
4107 # Check whether --enable-docview or --disable-docview was given.
4108if test "${enable_docview+set}" = set; then
4109 enableval="$enable_docview"
4110
4111 if test "$enableval" = yes; then
4112 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4113 else
4114 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4115 fi
4116
4117else
4118
4119 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4120 if test "x$LINE" != x ; then
4121 eval "DEFAULT_$LINE"
4122 else
4123 no_cache=1
4124 fi
4125
4126 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4127
4128fi
4129
4130
4131 eval "$ac_cv_use_docview"
4132 if test "$no_cache" != 1; then
4133 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4134 fi
4135
4136 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4137 echo "$ac_t""yes" 1>&6
4138 else
4139 echo "$ac_t""no" 1>&6
4140 fi
4141
4142
4143 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4144echo "configure:4145: checking for --enable-help" >&5
4145 no_cache=0
4146 # Check whether --enable-help or --disable-help was given.
4147if test "${enable_help+set}" = set; then
4148 enableval="$enable_help"
4149
4150 if test "$enableval" = yes; then
4151 ac_cv_use_help='wxUSE_HELP=yes'
4152 else
4153 ac_cv_use_help='wxUSE_HELP=no'
4154 fi
4155
4156else
4157
4158 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4159 if test "x$LINE" != x ; then
4160 eval "DEFAULT_$LINE"
4161 else
4162 no_cache=1
4163 fi
4164
4165 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4166
4167fi
4168
4169
4170 eval "$ac_cv_use_help"
4171 if test "$no_cache" != 1; then
4172 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4173 fi
4174
4175 if test "$wxUSE_HELP" = yes; then
4176 echo "$ac_t""yes" 1>&6
4177 else
4178 echo "$ac_t""no" 1>&6
4179 fi
4180
4181
4182 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4183echo "configure:4184: checking for --enable-constraints" >&5
4184 no_cache=0
4185 # Check whether --enable-constraints or --disable-constraints was given.
4186if test "${enable_constraints+set}" = set; then
4187 enableval="$enable_constraints"
4188
4189 if test "$enableval" = yes; then
4190 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4191 else
4192 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4193 fi
4194
4195else
4196
4197 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4198 if test "x$LINE" != x ; then
4199 eval "DEFAULT_$LINE"
4200 else
4201 no_cache=1
4202 fi
4203
4204 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
4205
4206fi
4207
4208
4209 eval "$ac_cv_use_constraints"
4210 if test "$no_cache" != 1; then
4211 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4212 fi
4213
4214 if test "$wxUSE_CONSTRAINTS" = yes; then
4215 echo "$ac_t""yes" 1>&6
4216 else
4217 echo "$ac_t""no" 1>&6
4218 fi
4219
4220
4221 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4222echo "configure:4223: checking for --enable-printarch" >&5
4223 no_cache=0
4224 # Check whether --enable-printarch or --disable-printarch was given.
4225if test "${enable_printarch+set}" = set; then
4226 enableval="$enable_printarch"
4227
4228 if test "$enableval" = yes; then
4229 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4230 else
4231 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4232 fi
4233
4234else
4235
4236 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4237 if test "x$LINE" != x ; then
4238 eval "DEFAULT_$LINE"
4239 else
4240 no_cache=1
4241 fi
4242
4243 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
4244
4245fi
4246
4247
4248 eval "$ac_cv_use_printarch"
4249 if test "$no_cache" != 1; then
4250 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4251 fi
4252
4253 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
4254 echo "$ac_t""yes" 1>&6
4255 else
4256 echo "$ac_t""no" 1>&6
4257 fi
4258
4259
4260 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4261echo "configure:4262: checking for --enable-mdi" >&5
4262 no_cache=0
4263 # Check whether --enable-mdi or --disable-mdi was given.
4264if test "${enable_mdi+set}" = set; then
4265 enableval="$enable_mdi"
4266
4267 if test "$enableval" = yes; then
4268 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4269 else
4270 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4271 fi
4272
4273else
4274
4275 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4276 if test "x$LINE" != x ; then
4277 eval "DEFAULT_$LINE"
4278 else
4279 no_cache=1
4280 fi
4281
4282 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
4283
4284fi
4285
4286
4287 eval "$ac_cv_use_mdi"
4288 if test "$no_cache" != 1; then
4289 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4290 fi
4291
4292 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
4293 echo "$ac_t""yes" 1>&6
4294 else
4295 echo "$ac_t""no" 1>&6
4296 fi
4297
4298
4299 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4300echo "configure:4301: checking for --enable-loggui" >&5
4301 no_cache=0
4302 # Check whether --enable-loggui or --disable-loggui was given.
4303if test "${enable_loggui+set}" = set; then
4304 enableval="$enable_loggui"
4305
4306 if test "$enableval" = yes; then
4307 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4308 else
4309 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4310 fi
4311
4312else
4313
4314 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4315 if test "x$LINE" != x ; then
4316 eval "DEFAULT_$LINE"
4317 else
4318 no_cache=1
4319 fi
4320
4321 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4322
4323fi
4324
4325
4326 eval "$ac_cv_use_loggui"
4327 if test "$no_cache" != 1; then
4328 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4329 fi
4330
4331 if test "$wxUSE_LOGGUI" = yes; then
4332 echo "$ac_t""yes" 1>&6
4333 else
4334 echo "$ac_t""no" 1>&6
4335 fi
4336
4337
4338 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4339echo "configure:4340: checking for --enable-logwin" >&5
4340 no_cache=0
4341 # Check whether --enable-logwin or --disable-logwin was given.
4342if test "${enable_logwin+set}" = set; then
4343 enableval="$enable_logwin"
4344
4345 if test "$enableval" = yes; then
4346 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4347 else
4348 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4349 fi
4350
4351else
4352
4353 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4354 if test "x$LINE" != x ; then
4355 eval "DEFAULT_$LINE"
4356 else
4357 no_cache=1
4358 fi
4359
4360 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4361
4362fi
4363
4364
4365 eval "$ac_cv_use_logwin"
4366 if test "$no_cache" != 1; then
4367 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4368 fi
4369
4370 if test "$wxUSE_LOGWINDOW" = yes; then
4371 echo "$ac_t""yes" 1>&6
4372 else
4373 echo "$ac_t""no" 1>&6
4374 fi
4375
4376
4377
4378 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4379echo "configure:4380: checking for --enable-postscript" >&5
4380 no_cache=0
4381 # Check whether --enable-postscript or --disable-postscript was given.
4382if test "${enable_postscript+set}" = set; then
4383 enableval="$enable_postscript"
4384
4385 if test "$enableval" = yes; then
4386 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4387 else
4388 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4389 fi
4390
4391else
4392
4393 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4394 if test "x$LINE" != x ; then
4395 eval "DEFAULT_$LINE"
4396 else
4397 no_cache=1
4398 fi
4399
4400 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
4401
4402fi
4403
4404
4405 eval "$ac_cv_use_postscript"
4406 if test "$no_cache" != 1; then
4407 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4408 fi
4409
4410 if test "$wxUSE_POSTSCRIPT" = yes; then
4411 echo "$ac_t""yes" 1>&6
4412 else
4413 echo "$ac_t""no" 1>&6
4414 fi
4415
4416
4417
4418
4419
4420 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4421echo "configure:4422: checking for --enable-prologio" >&5
4422 no_cache=0
4423 # Check whether --enable-prologio or --disable-prologio was given.
4424if test "${enable_prologio+set}" = set; then
4425 enableval="$enable_prologio"
4426
4427 if test "$enableval" = yes; then
4428 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4429 else
4430 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4431 fi
4432
4433else
4434
4435 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4436 if test "x$LINE" != x ; then
4437 eval "DEFAULT_$LINE"
4438 else
4439 no_cache=1
4440 fi
4441
4442 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
4443
4444fi
4445
4446
4447 eval "$ac_cv_use_prologio"
4448 if test "$no_cache" != 1; then
4449 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4450 fi
4451
4452 if test "$wxUSE_PROLOGIO" = yes; then
4453 echo "$ac_t""yes" 1>&6
4454 else
4455 echo "$ac_t""no" 1>&6
4456 fi
4457
4458
4459 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4460echo "configure:4461: checking for --enable-resources" >&5
4461 no_cache=0
4462 # Check whether --enable-resources or --disable-resources was given.
4463if test "${enable_resources+set}" = set; then
4464 enableval="$enable_resources"
4465
4466 if test "$enableval" = yes; then
4467 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4468 else
4469 ac_cv_use_resources='wxUSE_RESOURCES=no'
4470 fi
4471
4472else
4473
4474 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4475 if test "x$LINE" != x ; then
4476 eval "DEFAULT_$LINE"
4477 else
4478 no_cache=1
4479 fi
4480
4481 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
4482
4483fi
4484
4485
4486 eval "$ac_cv_use_resources"
4487 if test "$no_cache" != 1; then
4488 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4489 fi
4490
4491 if test "$wxUSE_RESOURCES" = yes; then
4492 echo "$ac_t""yes" 1>&6
4493 else
4494 echo "$ac_t""no" 1>&6
4495 fi
4496
4497
4498
4499 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
4500echo "configure:4501: checking for --enable-xresources" >&5
4501 no_cache=0
4502 # Check whether --enable-xresources or --disable-xresources was given.
4503if test "${enable_xresources+set}" = set; then
4504 enableval="$enable_xresources"
4505
4506 if test "$enableval" = yes; then
4507 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4508 else
4509 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4510 fi
4511
4512else
4513
4514 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4515 if test "x$LINE" != x ; then
4516 eval "DEFAULT_$LINE"
4517 else
4518 no_cache=1
4519 fi
4520
4521 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
4522
4523fi
4524
4525
4526 eval "$ac_cv_use_xresources"
4527 if test "$no_cache" != 1; then
4528 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4529 fi
4530
4531 if test "$wxUSE_X_RESOURCES" = yes; then
4532 echo "$ac_t""yes" 1>&6
4533 else
4534 echo "$ac_t""no" 1>&6
4535 fi
4536
4537
4538
4539
4540 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
4541echo "configure:4542: checking for --enable-clipboard" >&5
4542 no_cache=0
4543 # Check whether --enable-clipboard or --disable-clipboard was given.
4544if test "${enable_clipboard+set}" = set; then
4545 enableval="$enable_clipboard"
4546
4547 if test "$enableval" = yes; then
4548 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4549 else
4550 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4551 fi
4552
4553else
4554
4555 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4556 if test "x$LINE" != x ; then
4557 eval "DEFAULT_$LINE"
4558 else
4559 no_cache=1
4560 fi
4561
4562 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4563
4564fi
4565
4566
4567 eval "$ac_cv_use_clipboard"
4568 if test "$no_cache" != 1; then
4569 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4570 fi
4571
4572 if test "$wxUSE_CLIPBOARD" = yes; then
4573 echo "$ac_t""yes" 1>&6
4574 else
4575 echo "$ac_t""no" 1>&6
4576 fi
4577
4578
4579 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
4580echo "configure:4581: checking for --enable-dnd" >&5
4581 no_cache=0
4582 # Check whether --enable-dnd or --disable-dnd was given.
4583if test "${enable_dnd+set}" = set; then
4584 enableval="$enable_dnd"
4585
4586 if test "$enableval" = yes; then
4587 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4588 else
4589 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4590 fi
4591
4592else
4593
4594 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4595 if test "x$LINE" != x ; then
4596 eval "DEFAULT_$LINE"
4597 else
4598 no_cache=1
4599 fi
4600
4601 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4602
4603fi
4604
4605
4606 eval "$ac_cv_use_dnd"
4607 if test "$no_cache" != 1; then
4608 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4609 fi
4610
4611 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4612 echo "$ac_t""yes" 1>&6
4613 else
4614 echo "$ac_t""no" 1>&6
4615 fi
4616
4617
4618 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
4619echo "configure:4620: checking for --enable-metafile" >&5
4620 no_cache=0
4621 # Check whether --enable-metafile or --disable-metafile was given.
4622if test "${enable_metafile+set}" = set; then
4623 enableval="$enable_metafile"
4624
4625 if test "$enableval" = yes; then
4626 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4627 else
4628 ac_cv_use_metafile='wxUSE_METAFILE=no'
4629 fi
4630
4631else
4632
4633 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4634 if test "x$LINE" != x ; then
4635 eval "DEFAULT_$LINE"
4636 else
4637 no_cache=1
4638 fi
4639
4640 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4641
4642fi
4643
4644
4645 eval "$ac_cv_use_metafile"
4646 if test "$no_cache" != 1; then
4647 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4648 fi
4649
4650 if test "$wxUSE_METAFILE" = yes; then
4651 echo "$ac_t""yes" 1>&6
4652 else
4653 echo "$ac_t""no" 1>&6
4654 fi
4655
4656
4657
4658 echo $ac_n "checking for --enable-wxtree""... $ac_c" 1>&6
4659echo "configure:4660: checking for --enable-wxtree" >&5
4660 no_cache=0
4661 # Check whether --enable-wxtree or --disable-wxtree was given.
4662if test "${enable_wxtree+set}" = set; then
4663 enableval="$enable_wxtree"
4664
4665 if test "$enableval" = yes; then
4666 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
4667 else
4668 ac_cv_use_wxtree='wxUSE_WXTREE=no'
4669 fi
4670
4671else
4672
4673 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
4674 if test "x$LINE" != x ; then
4675 eval "DEFAULT_$LINE"
4676 else
4677 no_cache=1
4678 fi
4679
4680 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
4681
4682fi
4683
4684
4685 eval "$ac_cv_use_wxtree"
4686 if test "$no_cache" != 1; then
4687 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
4688 fi
4689
4690 if test "$wxUSE_WXTREE" = yes; then
4691 echo "$ac_t""yes" 1>&6
4692 else
4693 echo "$ac_t""no" 1>&6
4694 fi
4695
4696
4697
4698
4699 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
4700echo "configure:4701: checking for --enable-controls" >&5
4701 no_cache=0
4702 # Check whether --enable-controls or --disable-controls was given.
4703if test "${enable_controls+set}" = set; then
4704 enableval="$enable_controls"
4705
4706 if test "$enableval" = yes; then
4707 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4708 else
4709 ac_cv_use_controls='wxUSE_CONTROLS=no'
4710 fi
4711
4712else
4713
4714 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4715 if test "x$LINE" != x ; then
4716 eval "DEFAULT_$LINE"
4717 else
4718 no_cache=1
4719 fi
4720
4721 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
4722
4723fi
4724
4725
4726 eval "$ac_cv_use_controls"
4727 if test "$no_cache" != 1; then
4728 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
4729 fi
4730
4731 if test "$wxUSE_CONTROLS" = yes; then
4732 echo "$ac_t""yes" 1>&6
4733 else
4734 echo "$ac_t""no" 1>&6
4735 fi
4736
4737
4738if test "$wxUSE_CONTROLS" = "yes"; then
4739 DEFAULT_wxUSE_ACCEL=yes
4740 DEFAULT_wxUSE_BMPBUTTON=yes
4741 DEFAULT_wxUSE_BUTTON=yes
4742 DEFAULT_wxUSE_CALCTRL=no
4743 DEFAULT_wxUSE_CARET=yes
4744 DEFAULT_wxUSE_COMBOBOX=yes
4745 DEFAULT_wxUSE_CHECKBOX=yes
4746 DEFAULT_wxUSE_CHECKLISTBOX=yes
4747 DEFAULT_wxUSE_CHOICE=yes
4748 DEFAULT_wxUSE_GAUGE=yes
4749 DEFAULT_wxUSE_GRID=yes
4750 DEFAULT_wxUSE_NEW_GRID=yes
4751 DEFAULT_wxUSE_IMAGLIST=yes
4752 DEFAULT_wxUSE_LISTBOX=yes
4753 DEFAULT_wxUSE_LISTCTRL=yes
4754 DEFAULT_wxUSE_NOTEBOOK=yes
4755 DEFAULT_wxUSE_RADIOBOX=yes
4756 DEFAULT_wxUSE_RADIOBTN=yes
4757 DEFAULT_wxUSE_SASH=yes
4758 DEFAULT_wxUSE_SCROLLBAR=yes
4759 DEFAULT_wxUSE_SLIDER=yes
4760 DEFAULT_wxUSE_SPINBTN=yes
4761 DEFAULT_wxUSE_SPINCTRL=yes
4762 DEFAULT_wxUSE_SPLITTER=yes
4763 DEFAULT_wxUSE_STATBMP=yes
4764 DEFAULT_wxUSE_STATBOX=yes
4765 DEFAULT_wxUSE_STATLINE=yes
4766 DEFAULT_wxUSE_STATUSBAR=yes
4767 DEFAULT_wxUSE_TAB_DIALOG=yes
4768 DEFAULT_wxUSE_TOGGLEBTN=yes
4769 DEFAULT_wxUSE_TOOLBAR=yes
4770 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4771 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
4772 DEFAULT_wxUSE_TOOLTIPS=yes
4773 DEFAULT_wxUSE_TREECTRL=yes
4774elif test "$wxUSE_CONTROLS" = "no"; then
4775 DEFAULT_wxUSE_ACCEL=no
4776 DEFAULT_wxUSE_BMPBUTTON=no
4777 DEFAULT_wxUSE_BUTTON=no
4778 DEFAULT_wxUSE_CALCTRL=no
4779 DEFAULT_wxUSE_CARET=no
4780 DEFAULT_wxUSE_COMBOBOX=no
4781 DEFAULT_wxUSE_CHECKBOX=no
4782 DEFAULT_wxUSE_CHECKLISTBOX=no
4783 DEFAULT_wxUSE_CHOICE=no
4784 DEFAULT_wxUSE_GAUGE=no
4785 DEFAULT_wxUSE_GRID=no
4786 DEFAULT_wxUSE_NEW_GRID=no
4787 DEFAULT_wxUSE_IMAGLIST=no
4788 DEFAULT_wxUSE_LISTBOX=no
4789 DEFAULT_wxUSE_LISTCTRL=no
4790 DEFAULT_wxUSE_NOTEBOOK=no
4791 DEFAULT_wxUSE_RADIOBOX=no
4792 DEFAULT_wxUSE_RADIOBTN=no
4793 DEFAULT_wxUSE_SASH=no
4794 DEFAULT_wxUSE_SCROLLBAR=no
4795 DEFAULT_wxUSE_SLIDER=no
4796 DEFAULT_wxUSE_SPINBTN=no
4797 DEFAULT_wxUSE_SPINCTRL=no
4798 DEFAULT_wxUSE_SPLITTER=no
4799 DEFAULT_wxUSE_STATBMP=no
4800 DEFAULT_wxUSE_STATBOX=no
4801 DEFAULT_wxUSE_STATLINE=no
4802 DEFAULT_wxUSE_STATUSBAR=no
4803 DEFAULT_wxUSE_TAB_DIALOG=no
4804 DEFAULT_wxUSE_TOGGLEBTN=no
4805 DEFAULT_wxUSE_TOOLBAR=no
4806 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4807 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
4808 DEFAULT_wxUSE_TOOLTIPS=no
4809 DEFAULT_wxUSE_TREECTRL=no
4810fi
4811
4812
4813 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
4814echo "configure:4815: checking for --enable-accel" >&5
4815 no_cache=0
4816 # Check whether --enable-accel or --disable-accel was given.
4817if test "${enable_accel+set}" = set; then
4818 enableval="$enable_accel"
4819
4820 if test "$enableval" = yes; then
4821 ac_cv_use_accel='wxUSE_ACCEL=yes'
4822 else
4823 ac_cv_use_accel='wxUSE_ACCEL=no'
4824 fi
4825
4826else
4827
4828 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4829 if test "x$LINE" != x ; then
4830 eval "DEFAULT_$LINE"
4831 else
4832 no_cache=1
4833 fi
4834
4835 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
4836
4837fi
4838
4839
4840 eval "$ac_cv_use_accel"
4841 if test "$no_cache" != 1; then
4842 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4843 fi
4844
4845 if test "$wxUSE_ACCEL" = yes; then
4846 echo "$ac_t""yes" 1>&6
4847 else
4848 echo "$ac_t""no" 1>&6
4849 fi
4850
4851
4852 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
4853echo "configure:4854: checking for --enable-button" >&5
4854 no_cache=0
4855 # Check whether --enable-button or --disable-button was given.
4856if test "${enable_button+set}" = set; then
4857 enableval="$enable_button"
4858
4859 if test "$enableval" = yes; then
4860 ac_cv_use_button='wxUSE_BUTTON=yes'
4861 else
4862 ac_cv_use_button='wxUSE_BUTTON=no'
4863 fi
4864
4865else
4866
4867 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
4868 if test "x$LINE" != x ; then
4869 eval "DEFAULT_$LINE"
4870 else
4871 no_cache=1
4872 fi
4873
4874 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
4875
4876fi
4877
4878
4879 eval "$ac_cv_use_button"
4880 if test "$no_cache" != 1; then
4881 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
4882 fi
4883
4884 if test "$wxUSE_BUTTON" = yes; then
4885 echo "$ac_t""yes" 1>&6
4886 else
4887 echo "$ac_t""no" 1>&6
4888 fi
4889
4890
4891 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
4892echo "configure:4893: checking for --enable-bmpbutton" >&5
4893 no_cache=0
4894 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4895if test "${enable_bmpbutton+set}" = set; then
4896 enableval="$enable_bmpbutton"
4897
4898 if test "$enableval" = yes; then
4899 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4900 else
4901 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4902 fi
4903
4904else
4905
4906 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4907 if test "x$LINE" != x ; then
4908 eval "DEFAULT_$LINE"
4909 else
4910 no_cache=1
4911 fi
4912
4913 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4914
4915fi
4916
4917
4918 eval "$ac_cv_use_bmpbutton"
4919 if test "$no_cache" != 1; then
4920 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4921 fi
4922
4923 if test "$wxUSE_BMPBUTTON" = yes; then
4924 echo "$ac_t""yes" 1>&6
4925 else
4926 echo "$ac_t""no" 1>&6
4927 fi
4928
4929
4930 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
4931echo "configure:4932: checking for --enable-calendar" >&5
4932 no_cache=0
4933 # Check whether --enable-calendar or --disable-calendar was given.
4934if test "${enable_calendar+set}" = set; then
4935 enableval="$enable_calendar"
4936
4937 if test "$enableval" = yes; then
4938 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
4939 else
4940 ac_cv_use_calendar='wxUSE_CALCTRL=no'
4941 fi
4942
4943else
4944
4945 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
4946 if test "x$LINE" != x ; then
4947 eval "DEFAULT_$LINE"
4948 else
4949 no_cache=1
4950 fi
4951
4952 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
4953
4954fi
4955
4956
4957 eval "$ac_cv_use_calendar"
4958 if test "$no_cache" != 1; then
4959 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
4960 fi
4961
4962 if test "$wxUSE_CALCTRL" = yes; then
4963 echo "$ac_t""yes" 1>&6
4964 else
4965 echo "$ac_t""no" 1>&6
4966 fi
4967
4968
4969 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
4970echo "configure:4971: checking for --enable-caret" >&5
4971 no_cache=0
4972 # Check whether --enable-caret or --disable-caret was given.
4973if test "${enable_caret+set}" = set; then
4974 enableval="$enable_caret"
4975
4976 if test "$enableval" = yes; then
4977 ac_cv_use_caret='wxUSE_CARET=yes'
4978 else
4979 ac_cv_use_caret='wxUSE_CARET=no'
4980 fi
4981
4982else
4983
4984 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4985 if test "x$LINE" != x ; then
4986 eval "DEFAULT_$LINE"
4987 else
4988 no_cache=1
4989 fi
4990
4991 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4992
4993fi
4994
4995
4996 eval "$ac_cv_use_caret"
4997 if test "$no_cache" != 1; then
4998 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4999 fi
5000
5001 if test "$wxUSE_CARET" = yes; then
5002 echo "$ac_t""yes" 1>&6
5003 else
5004 echo "$ac_t""no" 1>&6
5005 fi
5006
5007
5008 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5009echo "configure:5010: checking for --enable-checkbox" >&5
5010 no_cache=0
5011 # Check whether --enable-checkbox or --disable-checkbox was given.
5012if test "${enable_checkbox+set}" = set; then
5013 enableval="$enable_checkbox"
5014
5015 if test "$enableval" = yes; then
5016 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5017 else
5018 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5019 fi
5020
5021else
5022
5023 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5024 if test "x$LINE" != x ; then
5025 eval "DEFAULT_$LINE"
5026 else
5027 no_cache=1
5028 fi
5029
5030 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5031
5032fi
5033
5034
5035 eval "$ac_cv_use_checkbox"
5036 if test "$no_cache" != 1; then
5037 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5038 fi
5039
5040 if test "$wxUSE_CHECKBOX" = yes; then
5041 echo "$ac_t""yes" 1>&6
5042 else
5043 echo "$ac_t""no" 1>&6
5044 fi
5045
5046
5047 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5048echo "configure:5049: checking for --enable-checklst" >&5
5049 no_cache=0
5050 # Check whether --enable-checklst or --disable-checklst was given.
5051if test "${enable_checklst+set}" = set; then
5052 enableval="$enable_checklst"
5053
5054 if test "$enableval" = yes; then
5055 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5056 else
5057 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5058 fi
5059
5060else
5061
5062 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5063 if test "x$LINE" != x ; then
5064 eval "DEFAULT_$LINE"
5065 else
5066 no_cache=1
5067 fi
5068
5069 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5070
5071fi
5072
5073
5074 eval "$ac_cv_use_checklst"
5075 if test "$no_cache" != 1; then
5076 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5077 fi
5078
5079 if test "$wxUSE_CHECKLST" = yes; then
5080 echo "$ac_t""yes" 1>&6
5081 else
5082 echo "$ac_t""no" 1>&6
5083 fi
5084
5085
5086 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5087echo "configure:5088: checking for --enable-choice" >&5
5088 no_cache=0
5089 # Check whether --enable-choice or --disable-choice was given.
5090if test "${enable_choice+set}" = set; then
5091 enableval="$enable_choice"
5092
5093 if test "$enableval" = yes; then
5094 ac_cv_use_choice='wxUSE_CHOICE=yes'
5095 else
5096 ac_cv_use_choice='wxUSE_CHOICE=no'
5097 fi
5098
5099else
5100
5101 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5102 if test "x$LINE" != x ; then
5103 eval "DEFAULT_$LINE"
5104 else
5105 no_cache=1
5106 fi
5107
5108 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5109
5110fi
5111
5112
5113 eval "$ac_cv_use_choice"
5114 if test "$no_cache" != 1; then
5115 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5116 fi
5117
5118 if test "$wxUSE_CHOICE" = yes; then
5119 echo "$ac_t""yes" 1>&6
5120 else
5121 echo "$ac_t""no" 1>&6
5122 fi
5123
5124
5125 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5126echo "configure:5127: checking for --enable-combobox" >&5
5127 no_cache=0
5128 # Check whether --enable-combobox or --disable-combobox was given.
5129if test "${enable_combobox+set}" = set; then
5130 enableval="$enable_combobox"
5131
5132 if test "$enableval" = yes; then
5133 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5134 else
5135 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5136 fi
5137
5138else
5139
5140 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5141 if test "x$LINE" != x ; then
5142 eval "DEFAULT_$LINE"
5143 else
5144 no_cache=1
5145 fi
5146
5147 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5148
5149fi
5150
5151
5152 eval "$ac_cv_use_combobox"
5153 if test "$no_cache" != 1; then
5154 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5155 fi
5156
5157 if test "$wxUSE_COMBOBOX" = yes; then
5158 echo "$ac_t""yes" 1>&6
5159 else
5160 echo "$ac_t""no" 1>&6
5161 fi
5162
5163
5164 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
5165echo "configure:5166: checking for --enable-gauge" >&5
5166 no_cache=0
5167 # Check whether --enable-gauge or --disable-gauge was given.
5168if test "${enable_gauge+set}" = set; then
5169 enableval="$enable_gauge"
5170
5171 if test "$enableval" = yes; then
5172 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5173 else
5174 ac_cv_use_gauge='wxUSE_GAUGE=no'
5175 fi
5176
5177else
5178
5179 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5180 if test "x$LINE" != x ; then
5181 eval "DEFAULT_$LINE"
5182 else
5183 no_cache=1
5184 fi
5185
5186 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
5187
5188fi
5189
5190
5191 eval "$ac_cv_use_gauge"
5192 if test "$no_cache" != 1; then
5193 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5194 fi
5195
5196 if test "$wxUSE_GAUGE" = yes; then
5197 echo "$ac_t""yes" 1>&6
5198 else
5199 echo "$ac_t""no" 1>&6
5200 fi
5201
5202
5203 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
5204echo "configure:5205: checking for --enable-grid" >&5
5205 no_cache=0
5206 # Check whether --enable-grid or --disable-grid was given.
5207if test "${enable_grid+set}" = set; then
5208 enableval="$enable_grid"
5209
5210 if test "$enableval" = yes; then
5211 ac_cv_use_grid='wxUSE_GRID=yes'
5212 else
5213 ac_cv_use_grid='wxUSE_GRID=no'
5214 fi
5215
5216else
5217
5218 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5219 if test "x$LINE" != x ; then
5220 eval "DEFAULT_$LINE"
5221 else
5222 no_cache=1
5223 fi
5224
5225 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5226
5227fi
5228
5229
5230 eval "$ac_cv_use_grid"
5231 if test "$no_cache" != 1; then
5232 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5233 fi
5234
5235 if test "$wxUSE_GRID" = yes; then
5236 echo "$ac_t""yes" 1>&6
5237 else
5238 echo "$ac_t""no" 1>&6
5239 fi
5240
5241
5242 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
5243echo "configure:5244: checking for --enable-newgrid" >&5
5244 no_cache=0
5245 # Check whether --enable-newgrid or --disable-newgrid was given.
5246if test "${enable_newgrid+set}" = set; then
5247 enableval="$enable_newgrid"
5248
5249 if test "$enableval" = yes; then
5250 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5251 else
5252 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5253 fi
5254
5255else
5256
5257 LINE=`grep "wxUSE_NEW_GRID" ${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_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
5265
5266fi
5267
5268
5269 eval "$ac_cv_use_newgrid"
5270 if test "$no_cache" != 1; then
5271 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5272 fi
5273
5274 if test "$wxUSE_NEW_GRID" = yes; then
5275 echo "$ac_t""yes" 1>&6
5276 else
5277 echo "$ac_t""no" 1>&6
5278 fi
5279
5280
5281 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
5282echo "configure:5283: checking for --enable-imaglist" >&5
5283 no_cache=0
5284 # Check whether --enable-imaglist or --disable-imaglist was given.
5285if test "${enable_imaglist+set}" = set; then
5286 enableval="$enable_imaglist"
5287
5288 if test "$enableval" = yes; then
5289 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5290 else
5291 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5292 fi
5293
5294else
5295
5296 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5297 if test "x$LINE" != x ; then
5298 eval "DEFAULT_$LINE"
5299 else
5300 no_cache=1
5301 fi
5302
5303 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
5304
5305fi
5306
5307
5308 eval "$ac_cv_use_imaglist"
5309 if test "$no_cache" != 1; then
5310 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5311 fi
5312
5313 if test "$wxUSE_IMAGLIST" = yes; then
5314 echo "$ac_t""yes" 1>&6
5315 else
5316 echo "$ac_t""no" 1>&6
5317 fi
5318
5319
5320 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
5321echo "configure:5322: checking for --enable-listbox" >&5
5322 no_cache=0
5323 # Check whether --enable-listbox or --disable-listbox was given.
5324if test "${enable_listbox+set}" = set; then
5325 enableval="$enable_listbox"
5326
5327 if test "$enableval" = yes; then
5328 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5329 else
5330 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5331 fi
5332
5333else
5334
5335 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5336 if test "x$LINE" != x ; then
5337 eval "DEFAULT_$LINE"
5338 else
5339 no_cache=1
5340 fi
5341
5342 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
5343
5344fi
5345
5346
5347 eval "$ac_cv_use_listbox"
5348 if test "$no_cache" != 1; then
5349 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5350 fi
5351
5352 if test "$wxUSE_LISTBOX" = yes; then
5353 echo "$ac_t""yes" 1>&6
5354 else
5355 echo "$ac_t""no" 1>&6
5356 fi
5357
5358
5359 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
5360echo "configure:5361: checking for --enable-listctrl" >&5
5361 no_cache=0
5362 # Check whether --enable-listctrl or --disable-listctrl was given.
5363if test "${enable_listctrl+set}" = set; then
5364 enableval="$enable_listctrl"
5365
5366 if test "$enableval" = yes; then
5367 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5368 else
5369 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5370 fi
5371
5372else
5373
5374 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5375 if test "x$LINE" != x ; then
5376 eval "DEFAULT_$LINE"
5377 else
5378 no_cache=1
5379 fi
5380
5381 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
5382
5383fi
5384
5385
5386 eval "$ac_cv_use_listctrl"
5387 if test "$no_cache" != 1; then
5388 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5389 fi
5390
5391 if test "$wxUSE_LISTCTRL" = yes; then
5392 echo "$ac_t""yes" 1>&6
5393 else
5394 echo "$ac_t""no" 1>&6
5395 fi
5396
5397
5398 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
5399echo "configure:5400: checking for --enable-notebook" >&5
5400 no_cache=0
5401 # Check whether --enable-notebook or --disable-notebook was given.
5402if test "${enable_notebook+set}" = set; then
5403 enableval="$enable_notebook"
5404
5405 if test "$enableval" = yes; then
5406 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5407 else
5408 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5409 fi
5410
5411else
5412
5413 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5414 if test "x$LINE" != x ; then
5415 eval "DEFAULT_$LINE"
5416 else
5417 no_cache=1
5418 fi
5419
5420 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
5421
5422fi
5423
5424
5425 eval "$ac_cv_use_notebook"
5426 if test "$no_cache" != 1; then
5427 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5428 fi
5429
5430 if test "$wxUSE_NOTEBOOK" = yes; then
5431 echo "$ac_t""yes" 1>&6
5432 else
5433 echo "$ac_t""no" 1>&6
5434 fi
5435
5436
5437 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
5438echo "configure:5439: checking for --enable-radiobox" >&5
5439 no_cache=0
5440 # Check whether --enable-radiobox or --disable-radiobox was given.
5441if test "${enable_radiobox+set}" = set; then
5442 enableval="$enable_radiobox"
5443
5444 if test "$enableval" = yes; then
5445 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5446 else
5447 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5448 fi
5449
5450else
5451
5452 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5453 if test "x$LINE" != x ; then
5454 eval "DEFAULT_$LINE"
5455 else
5456 no_cache=1
5457 fi
5458
5459 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
5460
5461fi
5462
5463
5464 eval "$ac_cv_use_radiobox"
5465 if test "$no_cache" != 1; then
5466 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5467 fi
5468
5469 if test "$wxUSE_RADIOBOX" = yes; then
5470 echo "$ac_t""yes" 1>&6
5471 else
5472 echo "$ac_t""no" 1>&6
5473 fi
5474
5475
5476 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
5477echo "configure:5478: checking for --enable-radiobtn" >&5
5478 no_cache=0
5479 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5480if test "${enable_radiobtn+set}" = set; then
5481 enableval="$enable_radiobtn"
5482
5483 if test "$enableval" = yes; then
5484 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5485 else
5486 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5487 fi
5488
5489else
5490
5491 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5492 if test "x$LINE" != x ; then
5493 eval "DEFAULT_$LINE"
5494 else
5495 no_cache=1
5496 fi
5497
5498 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
5499
5500fi
5501
5502
5503 eval "$ac_cv_use_radiobtn"
5504 if test "$no_cache" != 1; then
5505 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5506 fi
5507
5508 if test "$wxUSE_RADIOBTN" = yes; then
5509 echo "$ac_t""yes" 1>&6
5510 else
5511 echo "$ac_t""no" 1>&6
5512 fi
5513
5514
5515 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
5516echo "configure:5517: checking for --enable-sash" >&5
5517 no_cache=0
5518 # Check whether --enable-sash or --disable-sash was given.
5519if test "${enable_sash+set}" = set; then
5520 enableval="$enable_sash"
5521
5522 if test "$enableval" = yes; then
5523 ac_cv_use_sash='wxUSE_SASH=yes'
5524 else
5525 ac_cv_use_sash='wxUSE_SASH=no'
5526 fi
5527
5528else
5529
5530 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5531 if test "x$LINE" != x ; then
5532 eval "DEFAULT_$LINE"
5533 else
5534 no_cache=1
5535 fi
5536
5537 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
5538
5539fi
5540
5541
5542 eval "$ac_cv_use_sash"
5543 if test "$no_cache" != 1; then
5544 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5545 fi
5546
5547 if test "$wxUSE_SASH" = yes; then
5548 echo "$ac_t""yes" 1>&6
5549 else
5550 echo "$ac_t""no" 1>&6
5551 fi
5552
5553
5554 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
5555echo "configure:5556: checking for --enable-scrollbar" >&5
5556 no_cache=0
5557 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5558if test "${enable_scrollbar+set}" = set; then
5559 enableval="$enable_scrollbar"
5560
5561 if test "$enableval" = yes; then
5562 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5563 else
5564 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5565 fi
5566
5567else
5568
5569 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5570 if test "x$LINE" != x ; then
5571 eval "DEFAULT_$LINE"
5572 else
5573 no_cache=1
5574 fi
5575
5576 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
5577
5578fi
5579
5580
5581 eval "$ac_cv_use_scrollbar"
5582 if test "$no_cache" != 1; then
5583 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5584 fi
5585
5586 if test "$wxUSE_SCROLLBAR" = yes; then
5587 echo "$ac_t""yes" 1>&6
5588 else
5589 echo "$ac_t""no" 1>&6
5590 fi
5591
5592
5593 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
5594echo "configure:5595: checking for --enable-slider" >&5
5595 no_cache=0
5596 # Check whether --enable-slider or --disable-slider was given.
5597if test "${enable_slider+set}" = set; then
5598 enableval="$enable_slider"
5599
5600 if test "$enableval" = yes; then
5601 ac_cv_use_slider='wxUSE_SLIDER=yes'
5602 else
5603 ac_cv_use_slider='wxUSE_SLIDER=no'
5604 fi
5605
5606else
5607
5608 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5609 if test "x$LINE" != x ; then
5610 eval "DEFAULT_$LINE"
5611 else
5612 no_cache=1
5613 fi
5614
5615 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
5616
5617fi
5618
5619
5620 eval "$ac_cv_use_slider"
5621 if test "$no_cache" != 1; then
5622 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5623 fi
5624
5625 if test "$wxUSE_SLIDER" = yes; then
5626 echo "$ac_t""yes" 1>&6
5627 else
5628 echo "$ac_t""no" 1>&6
5629 fi
5630
5631
5632 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
5633echo "configure:5634: checking for --enable-spinbtn" >&5
5634 no_cache=0
5635 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5636if test "${enable_spinbtn+set}" = set; then
5637 enableval="$enable_spinbtn"
5638
5639 if test "$enableval" = yes; then
5640 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5641 else
5642 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5643 fi
5644
5645else
5646
5647 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5648 if test "x$LINE" != x ; then
5649 eval "DEFAULT_$LINE"
5650 else
5651 no_cache=1
5652 fi
5653
5654 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
5655
5656fi
5657
5658
5659 eval "$ac_cv_use_spinbtn"
5660 if test "$no_cache" != 1; then
5661 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5662 fi
5663
5664 if test "$wxUSE_SPINBTN" = yes; then
5665 echo "$ac_t""yes" 1>&6
5666 else
5667 echo "$ac_t""no" 1>&6
5668 fi
5669
5670
5671 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
5672echo "configure:5673: checking for --enable-spinctrl" >&5
5673 no_cache=0
5674 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5675if test "${enable_spinctrl+set}" = set; then
5676 enableval="$enable_spinctrl"
5677
5678 if test "$enableval" = yes; then
5679 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
5680 else
5681 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
5682 fi
5683
5684else
5685
5686 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
5687 if test "x$LINE" != x ; then
5688 eval "DEFAULT_$LINE"
5689 else
5690 no_cache=1
5691 fi
5692
5693 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
5694
5695fi
5696
5697
5698 eval "$ac_cv_use_spinctrl"
5699 if test "$no_cache" != 1; then
5700 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
5701 fi
5702
5703 if test "$wxUSE_SPINCTRL" = yes; then
5704 echo "$ac_t""yes" 1>&6
5705 else
5706 echo "$ac_t""no" 1>&6
5707 fi
5708
5709
5710 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
5711echo "configure:5712: checking for --enable-splitter" >&5
5712 no_cache=0
5713 # Check whether --enable-splitter or --disable-splitter was given.
5714if test "${enable_splitter+set}" = set; then
5715 enableval="$enable_splitter"
5716
5717 if test "$enableval" = yes; then
5718 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
5719 else
5720 ac_cv_use_splitter='wxUSE_SPLITTER=no'
5721 fi
5722
5723else
5724
5725 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
5726 if test "x$LINE" != x ; then
5727 eval "DEFAULT_$LINE"
5728 else
5729 no_cache=1
5730 fi
5731
5732 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
5733
5734fi
5735
5736
5737 eval "$ac_cv_use_splitter"
5738 if test "$no_cache" != 1; then
5739 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
5740 fi
5741
5742 if test "$wxUSE_SPLITTER" = yes; then
5743 echo "$ac_t""yes" 1>&6
5744 else
5745 echo "$ac_t""no" 1>&6
5746 fi
5747
5748
5749 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
5750echo "configure:5751: checking for --enable-statbmp" >&5
5751 no_cache=0
5752 # Check whether --enable-statbmp or --disable-statbmp was given.
5753if test "${enable_statbmp+set}" = set; then
5754 enableval="$enable_statbmp"
5755
5756 if test "$enableval" = yes; then
5757 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
5758 else
5759 ac_cv_use_statbmp='wxUSE_STATBMP=no'
5760 fi
5761
5762else
5763
5764 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
5765 if test "x$LINE" != x ; then
5766 eval "DEFAULT_$LINE"
5767 else
5768 no_cache=1
5769 fi
5770
5771 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
5772
5773fi
5774
5775
5776 eval "$ac_cv_use_statbmp"
5777 if test "$no_cache" != 1; then
5778 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
5779 fi
5780
5781 if test "$wxUSE_STATBMP" = yes; then
5782 echo "$ac_t""yes" 1>&6
5783 else
5784 echo "$ac_t""no" 1>&6
5785 fi
5786
5787
5788 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
5789echo "configure:5790: checking for --enable-statbox" >&5
5790 no_cache=0
5791 # Check whether --enable-statbox or --disable-statbox was given.
5792if test "${enable_statbox+set}" = set; then
5793 enableval="$enable_statbox"
5794
5795 if test "$enableval" = yes; then
5796 ac_cv_use_statbox='wxUSE_STATBOX=yes'
5797 else
5798 ac_cv_use_statbox='wxUSE_STATBOX=no'
5799 fi
5800
5801else
5802
5803 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
5804 if test "x$LINE" != x ; then
5805 eval "DEFAULT_$LINE"
5806 else
5807 no_cache=1
5808 fi
5809
5810 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
5811
5812fi
5813
5814
5815 eval "$ac_cv_use_statbox"
5816 if test "$no_cache" != 1; then
5817 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
5818 fi
5819
5820 if test "$wxUSE_STATBOX" = yes; then
5821 echo "$ac_t""yes" 1>&6
5822 else
5823 echo "$ac_t""no" 1>&6
5824 fi
5825
5826
5827 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
5828echo "configure:5829: checking for --enable-statline" >&5
5829 no_cache=0
5830 # Check whether --enable-statline or --disable-statline was given.
5831if test "${enable_statline+set}" = set; then
5832 enableval="$enable_statline"
5833
5834 if test "$enableval" = yes; then
5835 ac_cv_use_statline='wxUSE_STATLINE=yes'
5836 else
5837 ac_cv_use_statline='wxUSE_STATLINE=no'
5838 fi
5839
5840else
5841
5842 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5843 if test "x$LINE" != x ; then
5844 eval "DEFAULT_$LINE"
5845 else
5846 no_cache=1
5847 fi
5848
5849 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
5850
5851fi
5852
5853
5854 eval "$ac_cv_use_statline"
5855 if test "$no_cache" != 1; then
5856 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5857 fi
5858
5859 if test "$wxUSE_STATLINE" = yes; then
5860 echo "$ac_t""yes" 1>&6
5861 else
5862 echo "$ac_t""no" 1>&6
5863 fi
5864
5865
5866 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
5867echo "configure:5868: checking for --enable-stattext" >&5
5868 no_cache=0
5869 # Check whether --enable-stattext or --disable-stattext was given.
5870if test "${enable_stattext+set}" = set; then
5871 enableval="$enable_stattext"
5872
5873 if test "$enableval" = yes; then
5874 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
5875 else
5876 ac_cv_use_stattext='wxUSE_STATTEXT=no'
5877 fi
5878
5879else
5880
5881 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
5882 if test "x$LINE" != x ; then
5883 eval "DEFAULT_$LINE"
5884 else
5885 no_cache=1
5886 fi
5887
5888 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
5889
5890fi
5891
5892
5893 eval "$ac_cv_use_stattext"
5894 if test "$no_cache" != 1; then
5895 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
5896 fi
5897
5898 if test "$wxUSE_STATTEXT" = yes; then
5899 echo "$ac_t""yes" 1>&6
5900 else
5901 echo "$ac_t""no" 1>&6
5902 fi
5903
5904
5905 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
5906echo "configure:5907: checking for --enable-statusbar" >&5
5907 no_cache=0
5908 # Check whether --enable-statusbar or --disable-statusbar was given.
5909if test "${enable_statusbar+set}" = set; then
5910 enableval="$enable_statusbar"
5911
5912 if test "$enableval" = yes; then
5913 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5914 else
5915 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5916 fi
5917
5918else
5919
5920 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5921 if test "x$LINE" != x ; then
5922 eval "DEFAULT_$LINE"
5923 else
5924 no_cache=1
5925 fi
5926
5927 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
5928
5929fi
5930
5931
5932 eval "$ac_cv_use_statusbar"
5933 if test "$no_cache" != 1; then
5934 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
5935 fi
5936
5937 if test "$wxUSE_STATUSBAR" = yes; then
5938 echo "$ac_t""yes" 1>&6
5939 else
5940 echo "$ac_t""no" 1>&6
5941 fi
5942
5943
5944 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
5945echo "configure:5946: checking for --enable-tabdialog" >&5
5946 no_cache=0
5947 # Check whether --enable-tabdialog or --disable-tabdialog was given.
5948if test "${enable_tabdialog+set}" = set; then
5949 enableval="$enable_tabdialog"
5950
5951 if test "$enableval" = yes; then
5952 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
5953 else
5954 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
5955 fi
5956
5957else
5958
5959 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
5960 if test "x$LINE" != x ; then
5961 eval "DEFAULT_$LINE"
5962 else
5963 no_cache=1
5964 fi
5965
5966 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
5967
5968fi
5969
5970
5971 eval "$ac_cv_use_tabdialog"
5972 if test "$no_cache" != 1; then
5973 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
5974 fi
5975
5976 if test "$wxUSE_TABDIALOG" = yes; then
5977 echo "$ac_t""yes" 1>&6
5978 else
5979 echo "$ac_t""no" 1>&6
5980 fi
5981
5982
5983 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
5984echo "configure:5985: checking for --enable-textctrl" >&5
5985 no_cache=0
5986 # Check whether --enable-textctrl or --disable-textctrl was given.
5987if test "${enable_textctrl+set}" = set; then
5988 enableval="$enable_textctrl"
5989
5990 if test "$enableval" = yes; then
5991 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
5992 else
5993 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
5994 fi
5995
5996else
5997
5998 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
5999 if test "x$LINE" != x ; then
6000 eval "DEFAULT_$LINE"
6001 else
6002 no_cache=1
6003 fi
6004
6005 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6006
6007fi
6008
6009
6010 eval "$ac_cv_use_textctrl"
6011 if test "$no_cache" != 1; then
6012 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6013 fi
6014
6015 if test "$wxUSE_TEXTCTRL" = yes; then
6016 echo "$ac_t""yes" 1>&6
6017 else
6018 echo "$ac_t""no" 1>&6
6019 fi
6020
6021
6022 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6023echo "configure:6024: checking for --enable-togglebtn" >&5
6024 no_cache=0
6025 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6026if test "${enable_togglebtn+set}" = set; then
6027 enableval="$enable_togglebtn"
6028
6029 if test "$enableval" = yes; then
6030 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6031 else
6032 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6033 fi
6034
6035else
6036
6037 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6038 if test "x$LINE" != x ; then
6039 eval "DEFAULT_$LINE"
6040 else
6041 no_cache=1
6042 fi
6043
6044 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6045
6046fi
6047
6048
6049 eval "$ac_cv_use_togglebtn"
6050 if test "$no_cache" != 1; then
6051 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6052 fi
6053
6054 if test "$wxUSE_TOGGLEBTN" = yes; then
6055 echo "$ac_t""yes" 1>&6
6056 else
6057 echo "$ac_t""no" 1>&6
6058 fi
6059
6060
6061 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6062echo "configure:6063: checking for --enable-toolbar" >&5
6063 no_cache=0
6064 # Check whether --enable-toolbar or --disable-toolbar was given.
6065if test "${enable_toolbar+set}" = set; then
6066 enableval="$enable_toolbar"
6067
6068 if test "$enableval" = yes; then
6069 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6070 else
6071 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6072 fi
6073
6074else
6075
6076 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6077 if test "x$LINE" != x ; then
6078 eval "DEFAULT_$LINE"
6079 else
6080 no_cache=1
6081 fi
6082
6083 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6084
6085fi
6086
6087
6088 eval "$ac_cv_use_toolbar"
6089 if test "$no_cache" != 1; then
6090 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6091 fi
6092
6093 if test "$wxUSE_TOOLBAR" = yes; then
6094 echo "$ac_t""yes" 1>&6
6095 else
6096 echo "$ac_t""no" 1>&6
6097 fi
6098
6099
6100 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6101echo "configure:6102: checking for --enable-tbarnative" >&5
6102 no_cache=0
6103 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6104if test "${enable_tbarnative+set}" = set; then
6105 enableval="$enable_tbarnative"
6106
6107 if test "$enableval" = yes; then
6108 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6109 else
6110 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6111 fi
6112
6113else
6114
6115 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6116 if test "x$LINE" != x ; then
6117 eval "DEFAULT_$LINE"
6118 else
6119 no_cache=1
6120 fi
6121
6122 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
6123
6124fi
6125
6126
6127 eval "$ac_cv_use_tbarnative"
6128 if test "$no_cache" != 1; then
6129 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6130 fi
6131
6132 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6133 echo "$ac_t""yes" 1>&6
6134 else
6135 echo "$ac_t""no" 1>&6
6136 fi
6137
6138
6139 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
6140echo "configure:6141: checking for --enable-tbarsmpl" >&5
6141 no_cache=0
6142 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6143if test "${enable_tbarsmpl+set}" = set; then
6144 enableval="$enable_tbarsmpl"
6145
6146 if test "$enableval" = yes; then
6147 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6148 else
6149 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6150 fi
6151
6152else
6153
6154 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6155 if test "x$LINE" != x ; then
6156 eval "DEFAULT_$LINE"
6157 else
6158 no_cache=1
6159 fi
6160
6161 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
6162
6163fi
6164
6165
6166 eval "$ac_cv_use_tbarsmpl"
6167 if test "$no_cache" != 1; then
6168 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6169 fi
6170
6171 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
6172 echo "$ac_t""yes" 1>&6
6173 else
6174 echo "$ac_t""no" 1>&6
6175 fi
6176
6177
6178 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
6179echo "configure:6180: checking for --enable-treectrl" >&5
6180 no_cache=0
6181 # Check whether --enable-treectrl or --disable-treectrl was given.
6182if test "${enable_treectrl+set}" = set; then
6183 enableval="$enable_treectrl"
6184
6185 if test "$enableval" = yes; then
6186 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6187 else
6188 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6189 fi
6190
6191else
6192
6193 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6194 if test "x$LINE" != x ; then
6195 eval "DEFAULT_$LINE"
6196 else
6197 no_cache=1
6198 fi
6199
6200 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
6201
6202fi
6203
6204
6205 eval "$ac_cv_use_treectrl"
6206 if test "$no_cache" != 1; then
6207 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6208 fi
6209
6210 if test "$wxUSE_TREECTRL" = yes; then
6211 echo "$ac_t""yes" 1>&6
6212 else
6213 echo "$ac_t""no" 1>&6
6214 fi
6215
6216
6217
6218
6219 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
6220echo "configure:6221: checking for --enable-commondlg" >&5
6221 no_cache=0
6222 # Check whether --enable-commondlg or --disable-commondlg was given.
6223if test "${enable_commondlg+set}" = set; then
6224 enableval="$enable_commondlg"
6225
6226 if test "$enableval" = yes; then
6227 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6228 else
6229 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6230 fi
6231
6232else
6233
6234 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6235 if test "x$LINE" != x ; then
6236 eval "DEFAULT_$LINE"
6237 else
6238 no_cache=1
6239 fi
6240
6241 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6242
6243fi
6244
6245
6246 eval "$ac_cv_use_commondlg"
6247 if test "$no_cache" != 1; then
6248 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6249 fi
6250
6251 if test "$wxUSE_COMMONDLGS" = yes; then
6252 echo "$ac_t""yes" 1>&6
6253 else
6254 echo "$ac_t""no" 1>&6
6255 fi
6256
6257
6258 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
6259echo "configure:6260: checking for --enable-choicedlg" >&5
6260 no_cache=0
6261 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6262if test "${enable_choicedlg+set}" = set; then
6263 enableval="$enable_choicedlg"
6264
6265 if test "$enableval" = yes; then
6266 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6267 else
6268 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6269 fi
6270
6271else
6272
6273 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6274 if test "x$LINE" != x ; then
6275 eval "DEFAULT_$LINE"
6276 else
6277 no_cache=1
6278 fi
6279
6280 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6281
6282fi
6283
6284
6285 eval "$ac_cv_use_choicedlg"
6286 if test "$no_cache" != 1; then
6287 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6288 fi
6289
6290 if test "$wxUSE_CHOICEDLG" = yes; then
6291 echo "$ac_t""yes" 1>&6
6292 else
6293 echo "$ac_t""no" 1>&6
6294 fi
6295
6296
6297 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
6298echo "configure:6299: checking for --enable-coldlg" >&5
6299 no_cache=0
6300 # Check whether --enable-coldlg or --disable-coldlg was given.
6301if test "${enable_coldlg+set}" = set; then
6302 enableval="$enable_coldlg"
6303
6304 if test "$enableval" = yes; then
6305 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6306 else
6307 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6308 fi
6309
6310else
6311
6312 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6313 if test "x$LINE" != x ; then
6314 eval "DEFAULT_$LINE"
6315 else
6316 no_cache=1
6317 fi
6318
6319 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6320
6321fi
6322
6323
6324 eval "$ac_cv_use_coldlg"
6325 if test "$no_cache" != 1; then
6326 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6327 fi
6328
6329 if test "$wxUSE_COLOURDLG" = yes; then
6330 echo "$ac_t""yes" 1>&6
6331 else
6332 echo "$ac_t""no" 1>&6
6333 fi
6334
6335
6336 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6337echo "configure:6338: checking for --enable-filedlg" >&5
6338 no_cache=0
6339 # Check whether --enable-filedlg or --disable-filedlg was given.
6340if test "${enable_filedlg+set}" = set; then
6341 enableval="$enable_filedlg"
6342
6343 if test "$enableval" = yes; then
6344 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6345 else
6346 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6347 fi
6348
6349else
6350
6351 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6352 if test "x$LINE" != x ; then
6353 eval "DEFAULT_$LINE"
6354 else
6355 no_cache=1
6356 fi
6357
6358 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6359
6360fi
6361
6362
6363 eval "$ac_cv_use_filedlg"
6364 if test "$no_cache" != 1; then
6365 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6366 fi
6367
6368 if test "$wxUSE_FILEDLG" = yes; then
6369 echo "$ac_t""yes" 1>&6
6370 else
6371 echo "$ac_t""no" 1>&6
6372 fi
6373
6374
6375 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
6376echo "configure:6377: checking for --enable-fontdlg" >&5
6377 no_cache=0
6378 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6379if test "${enable_fontdlg+set}" = set; then
6380 enableval="$enable_fontdlg"
6381
6382 if test "$enableval" = yes; then
6383 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6384 else
6385 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6386 fi
6387
6388else
6389
6390 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6391 if test "x$LINE" != x ; then
6392 eval "DEFAULT_$LINE"
6393 else
6394 no_cache=1
6395 fi
6396
6397 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6398
6399fi
6400
6401
6402 eval "$ac_cv_use_fontdlg"
6403 if test "$no_cache" != 1; then
6404 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6405 fi
6406
6407 if test "$wxUSE_FONTDLG" = yes; then
6408 echo "$ac_t""yes" 1>&6
6409 else
6410 echo "$ac_t""no" 1>&6
6411 fi
6412
6413
6414 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
6415echo "configure:6416: checking for --enable-dirdlg" >&5
6416 no_cache=0
6417 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6418if test "${enable_dirdlg+set}" = set; then
6419 enableval="$enable_dirdlg"
6420
6421 if test "$enableval" = yes; then
6422 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6423 else
6424 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6425 fi
6426
6427else
6428
6429 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6430 if test "x$LINE" != x ; then
6431 eval "DEFAULT_$LINE"
6432 else
6433 no_cache=1
6434 fi
6435
6436 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6437
6438fi
6439
6440
6441 eval "$ac_cv_use_dirdlg"
6442 if test "$no_cache" != 1; then
6443 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
6444 fi
6445
6446 if test "$wxUSE_DIRDLG" = yes; then
6447 echo "$ac_t""yes" 1>&6
6448 else
6449 echo "$ac_t""no" 1>&6
6450 fi
6451
6452
6453 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
6454echo "configure:6455: checking for --enable-msgdlg" >&5
6455 no_cache=0
6456 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6457if test "${enable_msgdlg+set}" = set; then
6458 enableval="$enable_msgdlg"
6459
6460 if test "$enableval" = yes; then
6461 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
6462 else
6463 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
6464 fi
6465
6466else
6467
6468 LINE=`grep "wxUSE_MSGDLG" ${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_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
6476
6477fi
6478
6479
6480 eval "$ac_cv_use_msgdlg"
6481 if test "$no_cache" != 1; then
6482 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
6483 fi
6484
6485 if test "$wxUSE_MSGDLG" = yes; then
6486 echo "$ac_t""yes" 1>&6
6487 else
6488 echo "$ac_t""no" 1>&6
6489 fi
6490
6491
6492 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
6493echo "configure:6494: checking for --enable-numberdlg" >&5
6494 no_cache=0
6495 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6496if test "${enable_numberdlg+set}" = set; then
6497 enableval="$enable_numberdlg"
6498
6499 if test "$enableval" = yes; then
6500 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
6501 else
6502 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
6503 fi
6504
6505else
6506
6507 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
6508 if test "x$LINE" != x ; then
6509 eval "DEFAULT_$LINE"
6510 else
6511 no_cache=1
6512 fi
6513
6514 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
6515
6516fi
6517
6518
6519 eval "$ac_cv_use_numberdlg"
6520 if test "$no_cache" != 1; then
6521 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
6522 fi
6523
6524 if test "$wxUSE_NUMBERDLG" = yes; then
6525 echo "$ac_t""yes" 1>&6
6526 else
6527 echo "$ac_t""no" 1>&6
6528 fi
6529
6530
6531 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
6532echo "configure:6533: checking for --enable-textdlg" >&5
6533 no_cache=0
6534 # Check whether --enable-textdlg or --disable-textdlg was given.
6535if test "${enable_textdlg+set}" = set; then
6536 enableval="$enable_textdlg"
6537
6538 if test "$enableval" = yes; then
6539 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6540 else
6541 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6542 fi
6543
6544else
6545
6546 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6547 if test "x$LINE" != x ; then
6548 eval "DEFAULT_$LINE"
6549 else
6550 no_cache=1
6551 fi
6552
6553 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
6554
6555fi
6556
6557
6558 eval "$ac_cv_use_textdlg"
6559 if test "$no_cache" != 1; then
6560 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
6561 fi
6562
6563 if test "$wxUSE_TEXTDLG" = yes; then
6564 echo "$ac_t""yes" 1>&6
6565 else
6566 echo "$ac_t""no" 1>&6
6567 fi
6568
6569
6570 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
6571echo "configure:6572: checking for --enable-tipdlg" >&5
6572 no_cache=0
6573 # Check whether --enable-tipdlg or --disable-tipdlg was given.
6574if test "${enable_tipdlg+set}" = set; then
6575 enableval="$enable_tipdlg"
6576
6577 if test "$enableval" = yes; then
6578 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
6579 else
6580 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
6581 fi
6582
6583else
6584
6585 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
6586 if test "x$LINE" != x ; then
6587 eval "DEFAULT_$LINE"
6588 else
6589 no_cache=1
6590 fi
6591
6592 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
6593
6594fi
6595
6596
6597 eval "$ac_cv_use_tipdlg"
6598 if test "$no_cache" != 1; then
6599 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
6600 fi
6601
6602 if test "$wxUSE_STARTUP_TIPS" = yes; then
6603 echo "$ac_t""yes" 1>&6
6604 else
6605 echo "$ac_t""no" 1>&6
6606 fi
6607
6608
6609 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
6610echo "configure:6611: checking for --enable-progressdlg" >&5
6611 no_cache=0
6612 # Check whether --enable-progressdlg or --disable-progressdlg was given.
6613if test "${enable_progressdlg+set}" = set; then
6614 enableval="$enable_progressdlg"
6615
6616 if test "$enableval" = yes; then
6617 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
6618 else
6619 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
6620 fi
6621
6622else
6623
6624 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
6625 if test "x$LINE" != x ; then
6626 eval "DEFAULT_$LINE"
6627 else
6628 no_cache=1
6629 fi
6630
6631 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
6632
6633fi
6634
6635
6636 eval "$ac_cv_use_progressdlg"
6637 if test "$no_cache" != 1; then
6638 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
6639 fi
6640
6641 if test "$wxUSE_PROGRESSDLG" = yes; then
6642 echo "$ac_t""yes" 1>&6
6643 else
6644 echo "$ac_t""no" 1>&6
6645 fi
6646
6647
6648 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
6649echo "configure:6650: checking for --enable-menus" >&5
6650 no_cache=0
6651 # Check whether --enable-menus or --disable-menus was given.
6652if test "${enable_menus+set}" = set; then
6653 enableval="$enable_menus"
6654
6655 if test "$enableval" = yes; then
6656 ac_cv_use_menus='wxUSE_MENUS=yes'
6657 else
6658 ac_cv_use_menus='wxUSE_MENUS=no'
6659 fi
6660
6661else
6662
6663 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
6664 if test "x$LINE" != x ; then
6665 eval "DEFAULT_$LINE"
6666 else
6667 no_cache=1
6668 fi
6669
6670 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
6671
6672fi
6673
6674
6675 eval "$ac_cv_use_menus"
6676 if test "$no_cache" != 1; then
6677 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
6678 fi
6679
6680 if test "$wxUSE_MENUS" = yes; then
6681 echo "$ac_t""yes" 1>&6
6682 else
6683 echo "$ac_t""no" 1>&6
6684 fi
6685
6686
6687 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
6688echo "configure:6689: checking for --enable-miniframe" >&5
6689 no_cache=0
6690 # Check whether --enable-miniframe or --disable-miniframe was given.
6691if test "${enable_miniframe+set}" = set; then
6692 enableval="$enable_miniframe"
6693
6694 if test "$enableval" = yes; then
6695 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
6696 else
6697 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
6698 fi
6699
6700else
6701
6702 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
6703 if test "x$LINE" != x ; then
6704 eval "DEFAULT_$LINE"
6705 else
6706 no_cache=1
6707 fi
6708
6709 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
6710
6711fi
6712
6713
6714 eval "$ac_cv_use_miniframe"
6715 if test "$no_cache" != 1; then
6716 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
6717 fi
6718
6719 if test "$wxUSE_MINIFRAME" = yes; then
6720 echo "$ac_t""yes" 1>&6
6721 else
6722 echo "$ac_t""no" 1>&6
6723 fi
6724
6725
6726 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
6727echo "configure:6728: checking for --enable-html" >&5
6728 no_cache=0
6729 # Check whether --enable-html or --disable-html was given.
6730if test "${enable_html+set}" = set; then
6731 enableval="$enable_html"
6732
6733 if test "$enableval" = yes; then
6734 ac_cv_use_html='wxUSE_HTML=yes'
6735 else
6736 ac_cv_use_html='wxUSE_HTML=no'
6737 fi
6738
6739else
6740
6741 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6742 if test "x$LINE" != x ; then
6743 eval "DEFAULT_$LINE"
6744 else
6745 no_cache=1
6746 fi
6747
6748 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6749
6750fi
6751
6752
6753 eval "$ac_cv_use_html"
6754 if test "$no_cache" != 1; then
6755 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6756 fi
6757
6758 if test "$wxUSE_HTML" = yes; then
6759 echo "$ac_t""yes" 1>&6
6760 else
6761 echo "$ac_t""no" 1>&6
6762 fi
6763
6764
6765 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
6766echo "configure:6767: checking for --enable-tooltips" >&5
6767 no_cache=0
6768 # Check whether --enable-tooltips or --disable-tooltips was given.
6769if test "${enable_tooltips+set}" = set; then
6770 enableval="$enable_tooltips"
6771
6772 if test "$enableval" = yes; then
6773 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
6774 else
6775 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
6776 fi
6777
6778else
6779
6780 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
6781 if test "x$LINE" != x ; then
6782 eval "DEFAULT_$LINE"
6783 else
6784 no_cache=1
6785 fi
6786
6787 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
6788
6789fi
6790
6791
6792 eval "$ac_cv_use_tooltips"
6793 if test "$no_cache" != 1; then
6794 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
6795 fi
6796
6797 if test "$wxUSE_TOOLTIPS" = yes; then
6798 echo "$ac_t""yes" 1>&6
6799 else
6800 echo "$ac_t""no" 1>&6
6801 fi
6802
6803
6804 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
6805echo "configure:6806: checking for --enable-splines" >&5
6806 no_cache=0
6807 # Check whether --enable-splines or --disable-splines was given.
6808if test "${enable_splines+set}" = set; then
6809 enableval="$enable_splines"
6810
6811 if test "$enableval" = yes; then
6812 ac_cv_use_splines='wxUSE_SPLINES=yes'
6813 else
6814 ac_cv_use_splines='wxUSE_SPLINES=no'
6815 fi
6816
6817else
6818
6819 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
6820 if test "x$LINE" != x ; then
6821 eval "DEFAULT_$LINE"
6822 else
6823 no_cache=1
6824 fi
6825
6826 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
6827
6828fi
6829
6830
6831 eval "$ac_cv_use_splines"
6832 if test "$no_cache" != 1; then
6833 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
6834 fi
6835
6836 if test "$wxUSE_SPLINES" = yes; then
6837 echo "$ac_t""yes" 1>&6
6838 else
6839 echo "$ac_t""no" 1>&6
6840 fi
6841
6842
6843 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
6844echo "configure:6845: checking for --enable-validators" >&5
6845 no_cache=0
6846 # Check whether --enable-validators or --disable-validators was given.
6847if test "${enable_validators+set}" = set; then
6848 enableval="$enable_validators"
6849
6850 if test "$enableval" = yes; then
6851 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
6852 else
6853 ac_cv_use_validators='wxUSE_VALIDATORS=no'
6854 fi
6855
6856else
6857
6858 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
6859 if test "x$LINE" != x ; then
6860 eval "DEFAULT_$LINE"
6861 else
6862 no_cache=1
6863 fi
6864
6865 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
6866
6867fi
6868
6869
6870 eval "$ac_cv_use_validators"
6871 if test "$no_cache" != 1; then
6872 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
6873 fi
6874
6875 if test "$wxUSE_VALIDATORS" = yes; then
6876 echo "$ac_t""yes" 1>&6
6877 else
6878 echo "$ac_t""no" 1>&6
6879 fi
6880
6881
6882 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
6883echo "configure:6884: checking for --enable-busyinfo" >&5
6884 no_cache=0
6885 # Check whether --enable-busyinfo or --disable-busyinfo was given.
6886if test "${enable_busyinfo+set}" = set; then
6887 enableval="$enable_busyinfo"
6888
6889 if test "$enableval" = yes; then
6890 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
6891 else
6892 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
6893 fi
6894
6895else
6896
6897 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
6898 if test "x$LINE" != x ; then
6899 eval "DEFAULT_$LINE"
6900 else
6901 no_cache=1
6902 fi
6903
6904 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
6905
6906fi
6907
6908
6909 eval "$ac_cv_use_busyinfo"
6910 if test "$no_cache" != 1; then
6911 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
6912 fi
6913
6914 if test "$wxUSE_BUSYINFO" = yes; then
6915 echo "$ac_t""yes" 1>&6
6916 else
6917 echo "$ac_t""no" 1>&6
6918 fi
6919
6920
6921 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
6922echo "configure:6923: checking for --enable-joystick" >&5
6923 no_cache=0
6924 # Check whether --enable-joystick or --disable-joystick was given.
6925if test "${enable_joystick+set}" = set; then
6926 enableval="$enable_joystick"
6927
6928 if test "$enableval" = yes; then
6929 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
6930 else
6931 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
6932 fi
6933
6934else
6935
6936 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
6937 if test "x$LINE" != x ; then
6938 eval "DEFAULT_$LINE"
6939 else
6940 no_cache=1
6941 fi
6942
6943 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
6944
6945fi
6946
6947
6948 eval "$ac_cv_use_joystick"
6949 if test "$no_cache" != 1; then
6950 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
6951 fi
6952
6953 if test "$wxUSE_JOYSTICK" = yes; then
6954 echo "$ac_t""yes" 1>&6
6955 else
6956 echo "$ac_t""no" 1>&6
6957 fi
6958
6959
6960 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
6961echo "configure:6962: checking for --enable-metafile" >&5
6962 no_cache=0
6963 # Check whether --enable-metafile or --disable-metafile was given.
6964if test "${enable_metafile+set}" = set; then
6965 enableval="$enable_metafile"
6966
6967 if test "$enableval" = yes; then
6968 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6969 else
6970 ac_cv_use_metafile='wxUSE_METAFILE=no'
6971 fi
6972
6973else
6974
6975 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6976 if test "x$LINE" != x ; then
6977 eval "DEFAULT_$LINE"
6978 else
6979 no_cache=1
6980 fi
6981
6982 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6983
6984fi
6985
6986
6987 eval "$ac_cv_use_metafile"
6988 if test "$no_cache" != 1; then
6989 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6990 fi
6991
6992 if test "$wxUSE_METAFILE" = yes; then
6993 echo "$ac_t""yes" 1>&6
6994 else
6995 echo "$ac_t""no" 1>&6
6996 fi
6997
6998
6999
7000
7001 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
7002echo "configure:7003: checking for --enable-image" >&5
7003 no_cache=0
7004 # Check whether --enable-image or --disable-image was given.
7005if test "${enable_image+set}" = set; then
7006 enableval="$enable_image"
7007
7008 if test "$enableval" = yes; then
7009 ac_cv_use_image='wxUSE_IMAGE=yes'
7010 else
7011 ac_cv_use_image='wxUSE_IMAGE=no'
7012 fi
7013
7014else
7015
7016 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7017 if test "x$LINE" != x ; then
7018 eval "DEFAULT_$LINE"
7019 else
7020 no_cache=1
7021 fi
7022
7023 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
7024
7025fi
7026
7027
7028 eval "$ac_cv_use_image"
7029 if test "$no_cache" != 1; then
7030 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7031 fi
7032
7033 if test "$wxUSE_IMAGE" = yes; then
7034 echo "$ac_t""yes" 1>&6
7035 else
7036 echo "$ac_t""no" 1>&6
7037 fi
7038
7039
7040 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7041echo "configure:7042: checking for --enable-gif" >&5
7042 no_cache=0
7043 # Check whether --enable-gif or --disable-gif was given.
7044if test "${enable_gif+set}" = set; then
7045 enableval="$enable_gif"
7046
7047 if test "$enableval" = yes; then
7048 ac_cv_use_gif='wxUSE_GIF=yes'
7049 else
7050 ac_cv_use_gif='wxUSE_GIF=no'
7051 fi
7052
7053else
7054
7055 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7056 if test "x$LINE" != x ; then
7057 eval "DEFAULT_$LINE"
7058 else
7059 no_cache=1
7060 fi
7061
7062 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
7063
7064fi
7065
7066
7067 eval "$ac_cv_use_gif"
7068 if test "$no_cache" != 1; then
7069 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7070 fi
7071
7072 if test "$wxUSE_GIF" = yes; then
7073 echo "$ac_t""yes" 1>&6
7074 else
7075 echo "$ac_t""no" 1>&6
7076 fi
7077
7078
7079 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7080echo "configure:7081: checking for --enable-pcx" >&5
7081 no_cache=0
7082 # Check whether --enable-pcx or --disable-pcx was given.
7083if test "${enable_pcx+set}" = set; then
7084 enableval="$enable_pcx"
7085
7086 if test "$enableval" = yes; then
7087 ac_cv_use_pcx='wxUSE_PCX=yes'
7088 else
7089 ac_cv_use_pcx='wxUSE_PCX=no'
7090 fi
7091
7092else
7093
7094 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7095 if test "x$LINE" != x ; then
7096 eval "DEFAULT_$LINE"
7097 else
7098 no_cache=1
7099 fi
7100
7101 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
7102
7103fi
7104
7105
7106 eval "$ac_cv_use_pcx"
7107 if test "$no_cache" != 1; then
7108 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7109 fi
7110
7111 if test "$wxUSE_PCX" = yes; then
7112 echo "$ac_t""yes" 1>&6
7113 else
7114 echo "$ac_t""no" 1>&6
7115 fi
7116
7117
7118 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7119echo "configure:7120: checking for --enable-pnm" >&5
7120 no_cache=0
7121 # Check whether --enable-pnm or --disable-pnm was given.
7122if test "${enable_pnm+set}" = set; then
7123 enableval="$enable_pnm"
7124
7125 if test "$enableval" = yes; then
7126 ac_cv_use_pnm='wxUSE_PNM=yes'
7127 else
7128 ac_cv_use_pnm='wxUSE_PNM=no'
7129 fi
7130
7131else
7132
7133 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7134 if test "x$LINE" != x ; then
7135 eval "DEFAULT_$LINE"
7136 else
7137 no_cache=1
7138 fi
7139
7140 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
7141
7142fi
7143
7144
7145 eval "$ac_cv_use_pnm"
7146 if test "$no_cache" != 1; then
7147 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7148 fi
7149
7150 if test "$wxUSE_PNM" = yes; then
7151 echo "$ac_t""yes" 1>&6
7152 else
7153 echo "$ac_t""no" 1>&6
7154 fi
7155
7156
7157 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7158echo "configure:7159: checking for --enable-pnm" >&5
7159 no_cache=0
7160 # Check whether --enable-pnm or --disable-pnm was given.
7161if test "${enable_pnm+set}" = set; then
7162 enableval="$enable_pnm"
7163
7164 if test "$enableval" = yes; then
7165 ac_cv_use_pnm='wxUSE_XPM=yes'
7166 else
7167 ac_cv_use_pnm='wxUSE_XPM=no'
7168 fi
7169
7170else
7171
7172 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7173 if test "x$LINE" != x ; then
7174 eval "DEFAULT_$LINE"
7175 else
7176 no_cache=1
7177 fi
7178
7179 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
7180
7181fi
7182
7183
7184 eval "$ac_cv_use_pnm"
7185 if test "$no_cache" != 1; then
7186 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7187 fi
7188
7189 if test "$wxUSE_XPM" = yes; then
7190 echo "$ac_t""yes" 1>&6
7191 else
7192 echo "$ac_t""no" 1>&6
7193 fi
7194
7195
7196fi
7197
7198
7199 echo "saving argument cache $wx_arg_cache_file"
7200 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
7201
7202
7203
7204echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7205echo "configure:7206: checking for toolkit" >&5
7206
7207if test "$wxUSE_GUI" = "yes"; then
7208
7209if test "$USE_BEOS" = 1; then
7210 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7211fi
7212
7213if test "$TOOLKIT_GIVEN" = 1; then
7214 for toolkit in `echo $ALL_TOOLKITS`; do
7215 var=wxUSE_$toolkit
7216 eval "value=\$${var}"
7217 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7218 done
7219else
7220 for toolkit in `echo $ALL_TOOLKITS`; do
7221 if test "$has_toolkit_in_cache" != 1; then
7222 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7223 else
7224 var=DEFAULT_wxUSE_$toolkit
7225 fi
7226 eval "wxUSE_$toolkit=\$${var}"
7227 done
7228fi
7229
7230NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}`
7231
7232case "${host}" in
7233 *-pc-os2_emx )
7234 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7235 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7236 LEX_STEM="lexyy"
7237 ;;
7238 *)
7239 PATH_IFS=':'
7240 LEX_STEM="lex.yy"
7241 ;;
7242esac
7243
7244case "$NUM_TOOLKITS" in
7245 1)
7246 ;;
7247 0)
7248 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7249 ;;
7250 *)
7251 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7252esac
7253
7254for toolkit in `echo $ALL_TOOLKITS`; do
7255 var=wxUSE_$toolkit
7256 eval "value=\$${var}"
7257 if test "x$value" != x; then
7258 cache_var=CACHE_$toolkit
7259 eval "cache=\$${cache_var}"
7260 if test "$cache" = 1; then
7261 echo "$var=$value" >> ${wx_arg_cache_file}
7262 fi
7263 if test "$value" = 1; then
7264 echo "$ac_t""`echo $toolkit | tr [A-Z] [a-z]`" 1>&6
7265 fi
7266 fi
7267done
7268
7269else
7270 PATH_IFS=':'
7271 echo "$ac_t""base only" 1>&6
7272fi
7273
7274
7275cat > confcache <<\EOF
7276# This file is a shell script that caches the results of configure
7277# tests run on this system so they can be shared between configure
7278# scripts and configure runs. It is not useful on other systems.
7279# If it contains results you don't want to keep, you may remove or edit it.
7280#
7281# By default, configure uses ./config.cache as the cache file,
7282# creating it if it does not exist already. You can give configure
7283# the --cache-file=FILE option to use a different cache file; that is
7284# what configure does when it calls configure scripts in
7285# subdirectories, so they share the cache.
7286# Giving --cache-file=/dev/null disables caching, for debugging configure.
7287# config.status only pays attention to the cache file if you give it the
7288# --recheck option to rerun configure.
7289#
7290EOF
7291# The following way of writing the cache mishandles newlines in values,
7292# but we know of no workaround that is simple, portable, and efficient.
7293# So, don't put newlines in cache variables' values.
7294# Ultrix sh set writes to stderr and can't be redirected directly,
7295# and sets the high bit in the cache file unless we assign to the vars.
7296(set) 2>&1 |
7297 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7298 *ac_space=\ *)
7299 # `set' does not quote correctly, so add quotes (double-quote substitution
7300 # turns \\\\ into \\, and sed turns \\ into \).
7301 sed -n \
7302 -e "s/'/'\\\\''/g" \
7303 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7304 ;;
7305 *)
7306 # `set' quotes correctly as required by POSIX, so do not add quotes.
7307 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7308 ;;
7309 esac >> confcache
7310if cmp -s $cache_file confcache; then
7311 :
7312else
7313 if test -w $cache_file; then
7314 echo "updating cache $cache_file"
7315 cat confcache > $cache_file
7316 else
7317 echo "not updating unwritable cache $cache_file"
7318 fi
7319fi
7320rm -f confcache
7321
7322
7323if test "$build" != "$host" ; then
7324 CC=$host_alias-gcc
7325 CXX=$host_alias-c++
7326 AR=$host_alias-ar
7327 RANLIB=$host_alias-ranlib
7328 DLLTOOL=$host_alias-dlltool
7329 RESCOMP=$host_alias-windres
7330 LD=$host_alias-ld
7331 NM=$host_alias-nm
7332 STRIP=$host_alias-strip
7333fi
7334
7335# Extract the first word of "gcc", so it can be a program name with args.
7336set dummy gcc; ac_word=$2
7337echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7338echo "configure:7339: checking for $ac_word" >&5
7339if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7340 echo $ac_n "(cached) $ac_c" 1>&6
7341else
7342 if test -n "$CC"; then
7343 ac_cv_prog_CC="$CC" # Let the user override the test.
7344else
7345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7346 ac_dummy="$PATH"
7347 for ac_dir in $ac_dummy; do
7348 test -z "$ac_dir" && ac_dir=.
7349 if test -f $ac_dir/$ac_word; then
7350 ac_cv_prog_CC="gcc"
7351 break
7352 fi
7353 done
7354 IFS="$ac_save_ifs"
7355fi
7356fi
7357CC="$ac_cv_prog_CC"
7358if test -n "$CC"; then
7359 echo "$ac_t""$CC" 1>&6
7360else
7361 echo "$ac_t""no" 1>&6
7362fi
7363
7364if test -z "$CC"; then
7365 # Extract the first word of "cc", so it can be a program name with args.
7366set dummy cc; ac_word=$2
7367echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7368echo "configure:7369: checking for $ac_word" >&5
7369if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7370 echo $ac_n "(cached) $ac_c" 1>&6
7371else
7372 if test -n "$CC"; then
7373 ac_cv_prog_CC="$CC" # Let the user override the test.
7374else
7375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7376 ac_prog_rejected=no
7377 ac_dummy="$PATH"
7378 for ac_dir in $ac_dummy; do
7379 test -z "$ac_dir" && ac_dir=.
7380 if test -f $ac_dir/$ac_word; then
7381 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7382 ac_prog_rejected=yes
7383 continue
7384 fi
7385 ac_cv_prog_CC="cc"
7386 break
7387 fi
7388 done
7389 IFS="$ac_save_ifs"
7390if test $ac_prog_rejected = yes; then
7391 # We found a bogon in the path, so make sure we never use it.
7392 set dummy $ac_cv_prog_CC
7393 shift
7394 if test $# -gt 0; then
7395 # We chose a different compiler from the bogus one.
7396 # However, it has the same basename, so the bogon will be chosen
7397 # first if we set CC to just the basename; use the full file name.
7398 shift
7399 set dummy "$ac_dir/$ac_word" "$@"
7400 shift
7401 ac_cv_prog_CC="$@"
7402 fi
7403fi
7404fi
7405fi
7406CC="$ac_cv_prog_CC"
7407if test -n "$CC"; then
7408 echo "$ac_t""$CC" 1>&6
7409else
7410 echo "$ac_t""no" 1>&6
7411fi
7412
7413 if test -z "$CC"; then
7414 case "`uname -s`" in
7415 *win32* | *WIN32*)
7416 # Extract the first word of "cl", so it can be a program name with args.
7417set dummy cl; ac_word=$2
7418echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7419echo "configure:7420: checking for $ac_word" >&5
7420if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7421 echo $ac_n "(cached) $ac_c" 1>&6
7422else
7423 if test -n "$CC"; then
7424 ac_cv_prog_CC="$CC" # Let the user override the test.
7425else
7426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7427 ac_dummy="$PATH"
7428 for ac_dir in $ac_dummy; do
7429 test -z "$ac_dir" && ac_dir=.
7430 if test -f $ac_dir/$ac_word; then
7431 ac_cv_prog_CC="cl"
7432 break
7433 fi
7434 done
7435 IFS="$ac_save_ifs"
7436fi
7437fi
7438CC="$ac_cv_prog_CC"
7439if test -n "$CC"; then
7440 echo "$ac_t""$CC" 1>&6
7441else
7442 echo "$ac_t""no" 1>&6
7443fi
7444 ;;
7445 esac
7446 fi
7447 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
7448fi
7449
7450echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7451echo "configure:7452: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
7452
7453ac_ext=c
7454# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7455ac_cpp='$CPP $CPPFLAGS'
7456ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7457ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7458cross_compiling=$ac_cv_prog_cc_cross
7459
7460cat > conftest.$ac_ext << EOF
7461
7462#line 7463 "configure"
7463#include "confdefs.h"
7464
7465main(){return(0);}
7466EOF
7467if { (eval echo configure:7468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7468 ac_cv_prog_cc_works=yes
7469 # If we can't run a trivial program, we are probably using a cross compiler.
7470 if (./conftest; exit) 2>/dev/null; then
7471 ac_cv_prog_cc_cross=no
7472 else
7473 ac_cv_prog_cc_cross=yes
7474 fi
7475else
7476 echo "configure: failed program was:" >&5
7477 cat conftest.$ac_ext >&5
7478 ac_cv_prog_cc_works=no
7479fi
7480rm -fr conftest*
7481ac_ext=c
7482# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7483ac_cpp='$CPP $CPPFLAGS'
7484ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7485ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7486cross_compiling=$ac_cv_prog_cc_cross
7487
7488echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
7489if test $ac_cv_prog_cc_works = no; then
7490 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
7491fi
7492echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7493echo "configure:7494: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
7494echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
7495cross_compiling=$ac_cv_prog_cc_cross
7496
7497echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
7498echo "configure:7499: checking whether we are using GNU C" >&5
7499if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
7500 echo $ac_n "(cached) $ac_c" 1>&6
7501else
7502 cat > conftest.c <<EOF
7503#ifdef __GNUC__
7504 yes;
7505#endif
7506EOF
7507if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
7508 ac_cv_prog_gcc=yes
7509else
7510 ac_cv_prog_gcc=no
7511fi
7512fi
7513
7514echo "$ac_t""$ac_cv_prog_gcc" 1>&6
7515
7516if test $ac_cv_prog_gcc = yes; then
7517 GCC=yes
7518else
7519 GCC=
7520fi
7521
7522ac_test_CFLAGS="${CFLAGS+set}"
7523ac_save_CFLAGS="$CFLAGS"
7524CFLAGS=
7525echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
7526echo "configure:7527: checking whether ${CC-cc} accepts -g" >&5
7527if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
7528 echo $ac_n "(cached) $ac_c" 1>&6
7529else
7530 echo 'void f(){}' > conftest.c
7531if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
7532 ac_cv_prog_cc_g=yes
7533else
7534 ac_cv_prog_cc_g=no
7535fi
7536rm -f conftest*
7537
7538fi
7539
7540echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
7541if test "$ac_test_CFLAGS" = set; then
7542 CFLAGS="$ac_save_CFLAGS"
7543elif test $ac_cv_prog_cc_g = yes; then
7544 if test "$GCC" = yes; then
7545 CFLAGS="-g -O2"
7546 else
7547 CFLAGS="-g"
7548 fi
7549else
7550 if test "$GCC" = yes; then
7551 CFLAGS="-O2"
7552 else
7553 CFLAGS=
7554 fi
7555fi
7556
7557
7558CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
7559
7560echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7561echo "configure:7562: checking how to run the C preprocessor" >&5
7562# On Suns, sometimes $CPP names a directory.
7563if test -n "$CPP" && test -d "$CPP"; then
7564 CPP=
7565fi
7566if test -z "$CPP"; then
7567if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
7568 echo $ac_n "(cached) $ac_c" 1>&6
7569else
7570 # This must be in double quotes, not single quotes, because CPP may get
7571 # substituted into the Makefile and "${CC-cc}" will confuse make.
7572 CPP="${CC-cc} -E"
7573 # On the NeXT, cc -E runs the code through the compiler's parser,
7574 # not just through cpp.
7575 cat > conftest.$ac_ext <<EOF
7576#line 7577 "configure"
7577#include "confdefs.h"
7578#include <assert.h>
7579Syntax Error
7580EOF
7581ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7582{ (eval echo configure:7583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7583ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7584if test -z "$ac_err"; then
7585 :
7586else
7587 echo "$ac_err" >&5
7588 echo "configure: failed program was:" >&5
7589 cat conftest.$ac_ext >&5
7590 rm -rf conftest*
7591 CPP="${CC-cc} -E -traditional-cpp"
7592 cat > conftest.$ac_ext <<EOF
7593#line 7594 "configure"
7594#include "confdefs.h"
7595#include <assert.h>
7596Syntax Error
7597EOF
7598ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7599{ (eval echo configure:7600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7600ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7601if test -z "$ac_err"; then
7602 :
7603else
7604 echo "$ac_err" >&5
7605 echo "configure: failed program was:" >&5
7606 cat conftest.$ac_ext >&5
7607 rm -rf conftest*
7608 CPP="${CC-cc} -nologo -E"
7609 cat > conftest.$ac_ext <<EOF
7610#line 7611 "configure"
7611#include "confdefs.h"
7612#include <assert.h>
7613Syntax Error
7614EOF
7615ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7616{ (eval echo configure:7617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7617ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7618if test -z "$ac_err"; then
7619 :
7620else
7621 echo "$ac_err" >&5
7622 echo "configure: failed program was:" >&5
7623 cat conftest.$ac_ext >&5
7624 rm -rf conftest*
7625 CPP=/lib/cpp
7626fi
7627rm -f conftest*
7628fi
7629rm -f conftest*
7630fi
7631rm -f conftest*
7632 ac_cv_prog_CPP="$CPP"
7633fi
7634 CPP="$ac_cv_prog_CPP"
7635else
7636 ac_cv_prog_CPP="$CPP"
7637fi
7638echo "$ac_t""$CPP" 1>&6
7639
7640
7641if test $ac_cv_prog_gcc = yes; then
7642 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
7643echo "configure:7644: checking whether ${CC-cc} needs -traditional" >&5
7644if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
7645 echo $ac_n "(cached) $ac_c" 1>&6
7646else
7647 ac_pattern="Autoconf.*'x'"
7648 cat > conftest.$ac_ext <<EOF
7649#line 7650 "configure"
7650#include "confdefs.h"
7651#include <sgtty.h>
7652Autoconf TIOCGETP
7653EOF
7654if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7655 egrep "$ac_pattern" >/dev/null 2>&1; then
7656 rm -rf conftest*
7657 ac_cv_prog_gcc_traditional=yes
7658else
7659 rm -rf conftest*
7660 ac_cv_prog_gcc_traditional=no
7661fi
7662rm -f conftest*
7663
7664
7665 if test $ac_cv_prog_gcc_traditional = no; then
7666 cat > conftest.$ac_ext <<EOF
7667#line 7668 "configure"
7668#include "confdefs.h"
7669#include <termio.h>
7670Autoconf TCGETA
7671EOF
7672if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7673 egrep "$ac_pattern" >/dev/null 2>&1; then
7674 rm -rf conftest*
7675 ac_cv_prog_gcc_traditional=yes
7676fi
7677rm -f conftest*
7678
7679 fi
7680fi
7681
7682echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
7683 if test $ac_cv_prog_gcc_traditional = yes; then
7684 CC="$CC -traditional"
7685 fi
7686fi
7687
7688
7689
7690ac_ext=C
7691# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7692ac_cpp='$CXXCPP $CPPFLAGS'
7693ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7694ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7695cross_compiling=$ac_cv_prog_cxx_cross
7696
7697
7698for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
7699do
7700# Extract the first word of "$ac_prog", so it can be a program name with args.
7701set dummy $ac_prog; ac_word=$2
7702echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7703echo "configure:7704: checking for $ac_word" >&5
7704if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
7705 echo $ac_n "(cached) $ac_c" 1>&6
7706else
7707 if test -n "$CXX"; then
7708 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7709else
7710 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7711 ac_dummy="$PATH"
7712 for ac_dir in $ac_dummy; do
7713 test -z "$ac_dir" && ac_dir=.
7714 if test -f $ac_dir/$ac_word; then
7715 ac_cv_prog_CXX="$ac_prog"
7716 break
7717 fi
7718 done
7719 IFS="$ac_save_ifs"
7720fi
7721fi
7722CXX="$ac_cv_prog_CXX"
7723if test -n "$CXX"; then
7724 echo "$ac_t""$CXX" 1>&6
7725else
7726 echo "$ac_t""no" 1>&6
7727fi
7728
7729test -n "$CXX" && break
7730done
7731test -n "$CXX" || CXX="gcc"
7732
7733
7734echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7735echo "configure:7736: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
7736
7737ac_ext=C
7738# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7739ac_cpp='$CXXCPP $CPPFLAGS'
7740ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7741ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7742cross_compiling=$ac_cv_prog_cxx_cross
7743
7744cat > conftest.$ac_ext << EOF
7745
7746#line 7747 "configure"
7747#include "confdefs.h"
7748
7749int main(){return(0);}
7750EOF
7751if { (eval echo configure:7752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7752 ac_cv_prog_cxx_works=yes
7753 # If we can't run a trivial program, we are probably using a cross compiler.
7754 if (./conftest; exit) 2>/dev/null; then
7755 ac_cv_prog_cxx_cross=no
7756 else
7757 ac_cv_prog_cxx_cross=yes
7758 fi
7759else
7760 echo "configure: failed program was:" >&5
7761 cat conftest.$ac_ext >&5
7762 ac_cv_prog_cxx_works=no
7763fi
7764rm -fr conftest*
7765ac_ext=C
7766# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7767ac_cpp='$CXXCPP $CPPFLAGS'
7768ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7769ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7770cross_compiling=$ac_cv_prog_cxx_cross
7771
7772echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
7773if test $ac_cv_prog_cxx_works = no; then
7774 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
7775fi
7776echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7777echo "configure:7778: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
7778echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
7779cross_compiling=$ac_cv_prog_cxx_cross
7780
7781echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
7782echo "configure:7783: checking whether we are using GNU C++" >&5
7783if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
7784 echo $ac_n "(cached) $ac_c" 1>&6
7785else
7786 cat > conftest.C <<EOF
7787#ifdef __GNUC__
7788 yes;
7789#endif
7790EOF
7791if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:7792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
7792 ac_cv_prog_gxx=yes
7793else
7794 ac_cv_prog_gxx=no
7795fi
7796fi
7797
7798echo "$ac_t""$ac_cv_prog_gxx" 1>&6
7799
7800if test $ac_cv_prog_gxx = yes; then
7801 GXX=yes
7802else
7803 GXX=
7804fi
7805
7806ac_test_CXXFLAGS="${CXXFLAGS+set}"
7807ac_save_CXXFLAGS="$CXXFLAGS"
7808CXXFLAGS=
7809echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
7810echo "configure:7811: checking whether ${CXX-g++} accepts -g" >&5
7811if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
7812 echo $ac_n "(cached) $ac_c" 1>&6
7813else
7814 echo 'void f(){}' > conftest.cc
7815if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
7816 ac_cv_prog_cxx_g=yes
7817else
7818 ac_cv_prog_cxx_g=no
7819fi
7820rm -f conftest*
7821
7822fi
7823
7824echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
7825if test "$ac_test_CXXFLAGS" = set; then
7826 CXXFLAGS="$ac_save_CXXFLAGS"
7827elif test $ac_cv_prog_cxx_g = yes; then
7828 if test "$GXX" = yes; then
7829 CXXFLAGS="-g -O2"
7830 else
7831 CXXFLAGS="-g"
7832 fi
7833else
7834 if test "$GXX" = yes; then
7835 CXXFLAGS="-O2"
7836 else
7837 CXXFLAGS=
7838 fi
7839fi
7840
7841
7842echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
7843echo "configure:7844: checking how to run the C++ preprocessor" >&5
7844if test -z "$CXXCPP"; then
7845if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
7846 echo $ac_n "(cached) $ac_c" 1>&6
7847else
7848 ac_ext=C
7849# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7850ac_cpp='$CXXCPP $CPPFLAGS'
7851ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7852ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7853cross_compiling=$ac_cv_prog_cxx_cross
7854 CXXCPP="${CXX-g++} -E"
7855 cat > conftest.$ac_ext <<EOF
7856#line 7857 "configure"
7857#include "confdefs.h"
7858#include <stdlib.h>
7859EOF
7860ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7861{ (eval echo configure:7862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7862ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7863if test -z "$ac_err"; then
7864 :
7865else
7866 echo "$ac_err" >&5
7867 echo "configure: failed program was:" >&5
7868 cat conftest.$ac_ext >&5
7869 rm -rf conftest*
7870 CXXCPP=/lib/cpp
7871fi
7872rm -f conftest*
7873 ac_cv_prog_CXXCPP="$CXXCPP"
7874ac_ext=C
7875# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7876ac_cpp='$CXXCPP $CPPFLAGS'
7877ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7878ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7879cross_compiling=$ac_cv_prog_cxx_cross
7880fi
7881fi
7882CXXCPP="$ac_cv_prog_CXXCPP"
7883echo "$ac_t""$CXXCPP" 1>&6
7884
7885
7886CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
7887
7888ac_ext=c
7889# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7890ac_cpp='$CPP $CPPFLAGS'
7891ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7892ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7893cross_compiling=$ac_cv_prog_cc_cross
7894
7895
7896# Extract the first word of "ranlib", so it can be a program name with args.
7897set dummy ranlib; ac_word=$2
7898echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7899echo "configure:7900: checking for $ac_word" >&5
7900if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
7901 echo $ac_n "(cached) $ac_c" 1>&6
7902else
7903 if test -n "$RANLIB"; then
7904 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7905else
7906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7907 ac_dummy="$PATH"
7908 for ac_dir in $ac_dummy; do
7909 test -z "$ac_dir" && ac_dir=.
7910 if test -f $ac_dir/$ac_word; then
7911 ac_cv_prog_RANLIB="ranlib"
7912 break
7913 fi
7914 done
7915 IFS="$ac_save_ifs"
7916 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
7917fi
7918fi
7919RANLIB="$ac_cv_prog_RANLIB"
7920if test -n "$RANLIB"; then
7921 echo "$ac_t""$RANLIB" 1>&6
7922else
7923 echo "$ac_t""no" 1>&6
7924fi
7925
7926
7927# Extract the first word of "ar", so it can be a program name with args.
7928set dummy ar; ac_word=$2
7929echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7930echo "configure:7931: checking for $ac_word" >&5
7931if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
7932 echo $ac_n "(cached) $ac_c" 1>&6
7933else
7934 if test -n "$AR"; then
7935 ac_cv_prog_AR="$AR" # Let the user override the test.
7936else
7937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7938 ac_dummy="$PATH"
7939 for ac_dir in $ac_dummy; do
7940 test -z "$ac_dir" && ac_dir=.
7941 if test -f $ac_dir/$ac_word; then
7942 ac_cv_prog_AR="ar"
7943 break
7944 fi
7945 done
7946 IFS="$ac_save_ifs"
7947 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
7948fi
7949fi
7950AR="$ac_cv_prog_AR"
7951if test -n "$AR"; then
7952 echo "$ac_t""$AR" 1>&6
7953else
7954 echo "$ac_t""no" 1>&6
7955fi
7956
7957
7958# Find a good install program. We prefer a C program (faster),
7959# so one script is as good as another. But avoid the broken or
7960# incompatible versions:
7961# SysV /etc/install, /usr/sbin/install
7962# SunOS /usr/etc/install
7963# IRIX /sbin/install
7964# AIX /bin/install
7965# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7966# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7967# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7968# ./install, which can be erroneously created by make from ./install.sh.
7969echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
7970echo "configure:7971: checking for a BSD compatible install" >&5
7971if test -z "$INSTALL"; then
7972if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
7973 echo $ac_n "(cached) $ac_c" 1>&6
7974else
7975 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
7976 for ac_dir in $PATH; do
7977 # Account for people who put trailing slashes in PATH elements.
7978 case "$ac_dir/" in
7979 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7980 *)
7981 # OSF1 and SCO ODT 3.0 have their own names for install.
7982 # Don't use installbsd from OSF since it installs stuff as root
7983 # by default.
7984 for ac_prog in ginstall scoinst install; do
7985 if test -f $ac_dir/$ac_prog; then
7986 if test $ac_prog = install &&
7987 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7988 # AIX install. It has an incompatible calling convention.
7989 :
7990 else
7991 ac_cv_path_install="$ac_dir/$ac_prog -c"
7992 break 2
7993 fi
7994 fi
7995 done
7996 ;;
7997 esac
7998 done
7999 IFS="$ac_save_IFS"
8000
8001fi
8002 if test "${ac_cv_path_install+set}" = set; then
8003 INSTALL="$ac_cv_path_install"
8004 else
8005 # As a last resort, use the slow shell script. We don't cache a
8006 # path for INSTALL within a source directory, because that will
8007 # break other packages using the cache if that directory is
8008 # removed, or if the path is relative.
8009 INSTALL="$ac_install_sh"
8010 fi
8011fi
8012echo "$ac_t""$INSTALL" 1>&6
8013
8014# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8015# It thinks the first close brace ends the variable substitution.
8016test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8017
8018test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8019
8020test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8021
8022
8023# Extract the first word of "strip", so it can be a program name with args.
8024set dummy strip; ac_word=$2
8025echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8026echo "configure:8027: checking for $ac_word" >&5
8027if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8028 echo $ac_n "(cached) $ac_c" 1>&6
8029else
8030 if test -n "$STRIP"; then
8031 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8032else
8033 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8034 ac_dummy="$PATH"
8035 for ac_dir in $ac_dummy; do
8036 test -z "$ac_dir" && ac_dir=.
8037 if test -f $ac_dir/$ac_word; then
8038 ac_cv_prog_STRIP="strip"
8039 break
8040 fi
8041 done
8042 IFS="$ac_save_ifs"
8043 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8044fi
8045fi
8046STRIP="$ac_cv_prog_STRIP"
8047if test -n "$STRIP"; then
8048 echo "$ac_t""$STRIP" 1>&6
8049else
8050 echo "$ac_t""no" 1>&6
8051fi
8052
8053
8054echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8055echo "configure:8056: checking make for VPATH support" >&5
8056cat - << EOF > confMake
8057check : file
8058 cp \$? \$@
8059 cp \$? final_file
8060EOF
8061
8062if test ! -d sub ; then
8063 mkdir sub
8064fi
8065echo dummy > sub/file
8066${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
8067RESULT=$?
8068rm -f sub/file check final_file confMake
8069rmdir sub
8070if test "$RESULT" = 0; then
8071 echo "$ac_t""yes" 1>&6
8072else
8073 echo "$ac_t""no" 1>&6
8074 { echo "configure: error:
8075You need a make-utility that is able to use the variable
8076VPATH correctly.
8077If your version of make does not support VPATH correctly,
8078please install GNU-make (possibly as gmake), and start
8079configure with the following command:
8080export MAKE=gmake; ./configure for sh-type shells
8081setenv MAKE gmake; ./configure for csh-type shells
8082Also please do remember to use gmake in this case every time
8083you are trying to compile.
8084" 1>&2; exit 1; }
8085fi
8086
8087for ac_prog in 'bison -y' byacc
8088do
8089# Extract the first word of "$ac_prog", so it can be a program name with args.
8090set dummy $ac_prog; ac_word=$2
8091echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8092echo "configure:8093: checking for $ac_word" >&5
8093if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8094 echo $ac_n "(cached) $ac_c" 1>&6
8095else
8096 if test -n "$YACC"; then
8097 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8098else
8099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8100 ac_dummy="$PATH"
8101 for ac_dir in $ac_dummy; do
8102 test -z "$ac_dir" && ac_dir=.
8103 if test -f $ac_dir/$ac_word; then
8104 ac_cv_prog_YACC="$ac_prog"
8105 break
8106 fi
8107 done
8108 IFS="$ac_save_ifs"
8109fi
8110fi
8111YACC="$ac_cv_prog_YACC"
8112if test -n "$YACC"; then
8113 echo "$ac_t""$YACC" 1>&6
8114else
8115 echo "$ac_t""no" 1>&6
8116fi
8117
8118test -n "$YACC" && break
8119done
8120test -n "$YACC" || YACC="yacc"
8121
8122
8123# Extract the first word of "flex", so it can be a program name with args.
8124set dummy flex; ac_word=$2
8125echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8126echo "configure:8127: checking for $ac_word" >&5
8127if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8128 echo $ac_n "(cached) $ac_c" 1>&6
8129else
8130 if test -n "$LEX"; then
8131 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8132else
8133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8134 ac_dummy="$PATH"
8135 for ac_dir in $ac_dummy; do
8136 test -z "$ac_dir" && ac_dir=.
8137 if test -f $ac_dir/$ac_word; then
8138 ac_cv_prog_LEX="flex"
8139 break
8140 fi
8141 done
8142 IFS="$ac_save_ifs"
8143 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
8144fi
8145fi
8146LEX="$ac_cv_prog_LEX"
8147if test -n "$LEX"; then
8148 echo "$ac_t""$LEX" 1>&6
8149else
8150 echo "$ac_t""no" 1>&6
8151fi
8152
8153if test -z "$LEXLIB"
8154then
8155 case "$LEX" in
8156 flex*) ac_lib=fl ;;
8157 *) ac_lib=l ;;
8158 esac
8159 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8160echo "configure:8161: checking for yywrap in -l$ac_lib" >&5
8161ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8162if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8163 echo $ac_n "(cached) $ac_c" 1>&6
8164else
8165 ac_save_LIBS="$LIBS"
8166LIBS="-l$ac_lib $LIBS"
8167cat > conftest.$ac_ext <<EOF
8168#line 8169 "configure"
8169#include "confdefs.h"
8170/* Override any gcc2 internal prototype to avoid an error. */
8171/* We use char because int might match the return type of a gcc2
8172 builtin and then its argument prototype would still apply. */
8173char yywrap();
8174
8175int main() {
8176yywrap()
8177; return 0; }
8178EOF
8179if { (eval echo configure:8180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8180 rm -rf conftest*
8181 eval "ac_cv_lib_$ac_lib_var=yes"
8182else
8183 echo "configure: failed program was:" >&5
8184 cat conftest.$ac_ext >&5
8185 rm -rf conftest*
8186 eval "ac_cv_lib_$ac_lib_var=no"
8187fi
8188rm -f conftest*
8189LIBS="$ac_save_LIBS"
8190
8191fi
8192if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8193 echo "$ac_t""yes" 1>&6
8194 LEXLIB="-l$ac_lib"
8195else
8196 echo "$ac_t""no" 1>&6
8197fi
8198
8199fi
8200
8201
8202echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8203echo "configure:8204: checking whether ln -s works" >&5
8204if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8205 echo $ac_n "(cached) $ac_c" 1>&6
8206else
8207 rm -f conftestdata
8208if ln -s X conftestdata 2>/dev/null
8209then
8210 rm -f conftestdata
8211 ac_cv_prog_LN_S="ln -s"
8212else
8213 ac_cv_prog_LN_S=ln
8214fi
8215fi
8216LN_S="$ac_cv_prog_LN_S"
8217if test "$ac_cv_prog_LN_S" = "ln -s"; then
8218 echo "$ac_t""yes" 1>&6
8219else
8220 echo "$ac_t""no" 1>&6
8221fi
8222
8223
8224
8225SEARCH_INCLUDE="\
8226 /usr/local/include \
8227 \
8228 /usr/Motif-1.2/include \
8229 /usr/Motif-2.1/include \
8230 \
8231 /usr/include/Motif1.2 \
8232 /opt/xpm/include/X11 \
8233 /opt/GBxpm/include/ \
8234 /opt/GBxpm/X11/include/ \
8235 \
8236 /usr/Motif1.2/include \
8237 /usr/dt/include \
8238 /usr/openwin/include \
8239 \
8240 /usr/include/Xm \
8241 \
8242 /usr/X11R6/include \
8243 /usr/X11R6.4/include \
8244 /usr/X11R5/include \
8245 /usr/X11R4/include \
8246 \
8247 /usr/include/X11R6 \
8248 /usr/include/X11R5 \
8249 /usr/include/X11R4 \
8250 \
8251 /usr/local/X11R6/include \
8252 /usr/local/X11R5/include \
8253 /usr/local/X11R4/include \
8254 \
8255 /usr/local/include/X11R6 \
8256 /usr/local/include/X11R5 \
8257 /usr/local/include/X11R4 \
8258 \
8259 /usr/X11/include \
8260 /usr/include/X11 \
8261 /usr/local/X11/include \
8262 /usr/local/include/X11 \
8263 \
8264 /usr/X386/include \
8265 /usr/x386/include \
8266 /usr/XFree86/include/X11 \
8267 \
8268 X:/XFree86/include \
8269 X:/XFree86/include/X11 \
8270 \
8271 /usr/include/gtk \
8272 /usr/local/include/gtk \
8273 /usr/include/glib \
8274 /usr/local/include/glib \
8275 \
8276 /usr/include/qt \
8277 /usr/local/include/qt \
8278 \
8279 /usr/include/windows \
8280 /usr/include/wine \
8281 /usr/local/include/wine \
8282 \
8283 /usr/unsupported/include \
8284 /usr/athena/include \
8285 /usr/local/x11r5/include \
8286 /usr/lpp/Xamples/include \
8287 \
8288 /usr/openwin/share/include \
8289 \
8290 /usr/include"
8291
8292SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8293
8294
8295cat > confcache <<\EOF
8296# This file is a shell script that caches the results of configure
8297# tests run on this system so they can be shared between configure
8298# scripts and configure runs. It is not useful on other systems.
8299# If it contains results you don't want to keep, you may remove or edit it.
8300#
8301# By default, configure uses ./config.cache as the cache file,
8302# creating it if it does not exist already. You can give configure
8303# the --cache-file=FILE option to use a different cache file; that is
8304# what configure does when it calls configure scripts in
8305# subdirectories, so they share the cache.
8306# Giving --cache-file=/dev/null disables caching, for debugging configure.
8307# config.status only pays attention to the cache file if you give it the
8308# --recheck option to rerun configure.
8309#
8310EOF
8311# The following way of writing the cache mishandles newlines in values,
8312# but we know of no workaround that is simple, portable, and efficient.
8313# So, don't put newlines in cache variables' values.
8314# Ultrix sh set writes to stderr and can't be redirected directly,
8315# and sets the high bit in the cache file unless we assign to the vars.
8316(set) 2>&1 |
8317 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8318 *ac_space=\ *)
8319 # `set' does not quote correctly, so add quotes (double-quote substitution
8320 # turns \\\\ into \\, and sed turns \\ into \).
8321 sed -n \
8322 -e "s/'/'\\\\''/g" \
8323 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8324 ;;
8325 *)
8326 # `set' quotes correctly as required by POSIX, so do not add quotes.
8327 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8328 ;;
8329 esac >> confcache
8330if cmp -s $cache_file confcache; then
8331 :
8332else
8333 if test -w $cache_file; then
8334 echo "updating cache $cache_file"
8335 cat confcache > $cache_file
8336 else
8337 echo "not updating unwritable cache $cache_file"
8338 fi
8339fi
8340rm -f confcache
8341
8342
8343
8344AFMINSTALL=
8345
8346if test "$wxUSE_GUI" = "yes"; then
8347 USE_GUI=1
8348
8349 TOOLKIT=
8350 TOOLKIT_INCLUDE=
8351
8352 GUI_TK_LIBRARY=
8353 GUI_TK_LINK=
8354
8355 WXGTK12=
8356 WXGTK127=
8357 WXGTK20=
8358
8359 WXWINE=
8360
8361 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
8362 if test "$cross_compiling" = "yes" ; then
8363 echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2
8364 else
8365 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
8366echo "configure:8367: checking for Windows headers" >&5
8367
8368ac_find_includes=
8369for ac_dir in $SEARCH_INCLUDE;
8370 do
8371 if test -f "$ac_dir/windows.h"; then
8372 ac_find_includes=$ac_dir
8373 break
8374 fi
8375 done
8376
8377 if test "$ac_find_includes" != "" ; then
8378 echo "$ac_t""found $ac_find_includes" 1>&6
8379 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
8380 else
8381 echo "$ac_t""no" 1>&6
8382 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
8383 fi
8384 fi
8385
8386 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
8387 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
8388
8389 if test "$wxUSE_ODBC" = "yes" ; then
8390 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
8391 fi
8392
8393 if test "$wxUSE_MINGW" = 1; then
8394 LDFLAGS="$LDFLAGS -mwindows"
8395 fi
8396
8397 TOOLKIT=MSW
8398 GUIDIST=MSW_DIST
8399
8400 RCINCSWITCH="--include-dir"
8401 RCDEFSWITCH="--define"
8402 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
8403 RCINPUTSWITCH="-i"
8404 RCOUTPUTSWITCH="-o"
8405 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
8406
8407 RESPROGRAM="\$(RES_PROGRAM)"
8408 fi
8409
8410 if test "$wxUSE_GTK" = 1; then
8411 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
8412if test "${with_gtk_prefix+set}" = set; then
8413 withval="$with_gtk_prefix"
8414 gtk_config_prefix="$withval"
8415else
8416 gtk_config_prefix=""
8417fi
8418
8419# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
8420if test "${with_gtk_exec_prefix+set}" = set; then
8421 withval="$with_gtk_exec_prefix"
8422 gtk_config_exec_prefix="$withval"
8423else
8424 gtk_config_exec_prefix=""
8425fi
8426
8427# Check whether --enable-gtktest or --disable-gtktest was given.
8428if test "${enable_gtktest+set}" = set; then
8429 enableval="$enable_gtktest"
8430 :
8431else
8432 enable_gtktest=yes
8433fi
8434
8435
8436 for module in . gthread
8437 do
8438 case "$module" in
8439 gthread)
8440 gtk_config_args="$gtk_config_args gthread"
8441 ;;
8442 esac
8443 done
8444
8445 if test x$gtk_config_exec_prefix != x ; then
8446 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8447 if test x${GTK_CONFIG_2_0+set} != xset ; then
8448 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
8449 fi
8450 fi
8451 if test x$gtk_config_prefix != x ; then
8452 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8453 if test x${GTK_CONFIG_2_0+set} != xset ; then
8454 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
8455 fi
8456 fi
8457
8458 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
8459set dummy gtk-config-2.0; ac_word=$2
8460echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8461echo "configure:8462: checking for $ac_word" >&5
8462if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
8463 echo $ac_n "(cached) $ac_c" 1>&6
8464else
8465 case "$GTK_CONFIG_2_0" in
8466 /*)
8467 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
8468 ;;
8469 ?:/*)
8470 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
8471 ;;
8472 *)
8473 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8474 ac_dummy="$PATH"
8475 for ac_dir in $ac_dummy; do
8476 test -z "$ac_dir" && ac_dir=.
8477 if test -f $ac_dir/$ac_word; then
8478 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
8479 break
8480 fi
8481 done
8482 IFS="$ac_save_ifs"
8483 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
8484 ;;
8485esac
8486fi
8487GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
8488if test -n "$GTK_CONFIG_2_0"; then
8489 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
8490else
8491 echo "$ac_t""no" 1>&6
8492fi
8493
8494 min_gtk_version=1.3.1
8495 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8496echo "configure:8497: checking for GTK - version >= $min_gtk_version" >&5
8497 no_gtk=""
8498 if test "$GTK_CONFIG_2_0" = "no" ; then
8499 no_gtk=yes
8500 else
8501 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
8502 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
8503 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8504 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8505 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8506 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8507 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8508 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8509 if test "x$enable_gtktest" = "xyes" ; then
8510 ac_save_CFLAGS="$CFLAGS"
8511 ac_save_LIBS="$LIBS"
8512 CFLAGS="$CFLAGS $GTK_CFLAGS"
8513 LIBS="$GTK_LIBS $LIBS"
8514 rm -f conf.gtktest
8515 if test "$cross_compiling" = yes; then
8516 echo $ac_n "cross compiling; assumed OK... $ac_c"
8517else
8518 cat > conftest.$ac_ext <<EOF
8519#line 8520 "configure"
8520#include "confdefs.h"
8521
8522#include <gtk/gtk.h>
8523#include <stdio.h>
8524#include <stdlib.h>
8525
8526int
8527main ()
8528{
8529 int major, minor, micro;
8530 char *tmp_version;
8531
8532 system ("touch conf.gtktest");
8533
8534 /* HP/UX 9 (%@#!) writes to sscanf strings */
8535 tmp_version = g_strdup("$min_gtk_version");
8536 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8537 printf("%s, bad version string\n", "$min_gtk_version");
8538 exit(1);
8539 }
8540
8541 if ((gtk_major_version != $gtk_config_major_version) ||
8542 (gtk_minor_version != $gtk_config_minor_version) ||
8543 (gtk_micro_version != $gtk_config_micro_version))
8544 {
8545 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
8546 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
8547 gtk_major_version, gtk_minor_version, gtk_micro_version);
8548 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
8549 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
8550 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8551 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8552 printf("*** required on your system.\n");
8553 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
8554 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
8555 printf("*** before re-running configure\n");
8556 }
8557#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
8558 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8559 (gtk_minor_version != GTK_MINOR_VERSION) ||
8560 (gtk_micro_version != GTK_MICRO_VERSION))
8561 {
8562 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8563 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
8564 printf("*** library (version %d.%d.%d)\n",
8565 gtk_major_version, gtk_minor_version, gtk_micro_version);
8566 }
8567#endif /* defined (GTK_MAJOR_VERSION) ... */
8568 else
8569 {
8570 if ((gtk_major_version > major) ||
8571 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8572 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
8573 {
8574 return 0;
8575 }
8576 else
8577 {
8578 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
8579 gtk_major_version, gtk_minor_version, gtk_micro_version);
8580 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8581 major, minor, micro);
8582 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
8583 printf("***\n");
8584 printf("*** If you have already installed a sufficiently new version, this error\n");
8585 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
8586 printf("*** being found. The easiest way to fix this is to remove the old version\n");
8587 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
8588 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
8589 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
8590 printf("*** so that the correct libraries are found at run-time))\n");
8591 }
8592 }
8593 return 1;
8594}
8595
8596EOF
8597if { (eval echo configure:8598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8598then
8599 :
8600else
8601 echo "configure: failed program was:" >&5
8602 cat conftest.$ac_ext >&5
8603 rm -fr conftest*
8604 no_gtk=yes
8605fi
8606rm -fr conftest*
8607fi
8608
8609 CFLAGS="$ac_save_CFLAGS"
8610 LIBS="$ac_save_LIBS"
8611 fi
8612 fi
8613 if test "x$no_gtk" = x ; then
8614 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8615 WXGTK20=1
8616 else
8617 echo "$ac_t""no" 1>&6
8618 if test "$GTK_CONFIG_2_0" = "no" ; then
8619 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
8620 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
8621 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
8622 echo "*** full path to gtk-config-2.0."
8623 else
8624 if test -f conf.gtktest ; then
8625 :
8626 else
8627 echo "*** Could not run GTK test program, checking why..."
8628 CFLAGS="$CFLAGS $GTK_CFLAGS"
8629 LIBS="$LIBS $GTK_LIBS"
8630 cat > conftest.$ac_ext <<EOF
8631#line 8632 "configure"
8632#include "confdefs.h"
8633
8634#include <gtk/gtk.h>
8635#include <stdio.h>
8636
8637int main() {
8638 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
8639; return 0; }
8640EOF
8641if { (eval echo configure:8642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8642 rm -rf conftest*
8643 echo "*** The test program compiled, but did not run. This usually means"
8644 echo "*** that the run-time linker is not finding GTK or finding the wrong"
8645 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
8646 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8647 echo "*** to the installed location Also, make sure you have run ldconfig if that"
8648 echo "*** is required on your system"
8649 echo "***"
8650 echo "*** If you have an old version installed, it is best to remove it, although"
8651 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8652 echo "***"
8653 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
8654 echo "*** came with the system with the command"
8655 echo "***"
8656 echo "*** rpm --erase --nodeps gtk gtk-devel"
8657else
8658 echo "configure: failed program was:" >&5
8659 cat conftest.$ac_ext >&5
8660 rm -rf conftest*
8661 echo "*** The test program failed to compile or link. See the file config.log for the"
8662 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
8663 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
8664 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
8665fi
8666rm -f conftest*
8667 CFLAGS="$ac_save_CFLAGS"
8668 LIBS="$ac_save_LIBS"
8669 fi
8670 fi
8671 GTK_CFLAGS=""
8672 GTK_LIBS=""
8673
8674
8675 if test x$gtk_config_exec_prefix != x ; then
8676 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8677 if test x${GTK_CONFIG+set} != xset ; then
8678 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8679 fi
8680 fi
8681 if test x$gtk_config_prefix != x ; then
8682 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8683 if test x${GTK_CONFIG+set} != xset ; then
8684 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8685 fi
8686 fi
8687
8688 # Extract the first word of "gtk-config", so it can be a program name with args.
8689set dummy gtk-config; ac_word=$2
8690echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8691echo "configure:8692: checking for $ac_word" >&5
8692if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8693 echo $ac_n "(cached) $ac_c" 1>&6
8694else
8695 case "$GTK_CONFIG" in
8696 /*)
8697 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8698 ;;
8699 ?:/*)
8700 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8701 ;;
8702 *)
8703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8704 ac_dummy="$PATH"
8705 for ac_dir in $ac_dummy; do
8706 test -z "$ac_dir" && ac_dir=.
8707 if test -f $ac_dir/$ac_word; then
8708 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8709 break
8710 fi
8711 done
8712 IFS="$ac_save_ifs"
8713 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8714 ;;
8715esac
8716fi
8717GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8718if test -n "$GTK_CONFIG"; then
8719 echo "$ac_t""$GTK_CONFIG" 1>&6
8720else
8721 echo "$ac_t""no" 1>&6
8722fi
8723
8724 min_gtk_version=1.2.7
8725 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8726echo "configure:8727: checking for GTK - version >= $min_gtk_version" >&5
8727 no_gtk=""
8728 if test "$GTK_CONFIG" != "no" ; then
8729 GTK_CFLAGS=`$GTK_CONFIG --cflags`
8730 GTK_LIBS=`$GTK_CONFIG --libs gthread`
8731 ac_save_CFLAGS="$CFLAGS"
8732 ac_save_LIBS="$LIBS"
8733 CFLAGS="$CFLAGS $GTK_CFLAGS"
8734 LIBS="$LIBS $GTK_LIBS"
8735 if test "$cross_compiling" = yes; then
8736 echo $ac_n "cross compiling; assumed OK... $ac_c"
8737else
8738 cat > conftest.$ac_ext <<EOF
8739#line 8740 "configure"
8740#include "confdefs.h"
8741
8742#include <gtk/gtk.h>
8743#include <gtk/gtkfeatures.h>
8744#include <stdio.h>
8745#include <stdlib.h>
8746
8747int
8748main ()
8749{
8750 int major, minor, micro;
8751
8752 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
8753 printf("%s, bad version string\n", "$min_gtk_version");
8754 exit(1);
8755 }
8756
8757 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
8758 (GTK_MINOR_VERSION != gtk_minor_version) ||
8759 (GTK_MICRO_VERSION != gtk_micro_version)) {
8760 printf("Headers vs. library version mismatch!\n");
8761 exit(1);
8762 }
8763
8764 if (gtk_minor_version == 1) return FALSE;
8765
8766 return !((gtk_major_version > major) ||
8767 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8768 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
8769}
8770
8771EOF
8772if { (eval echo configure:8773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8773then
8774 :
8775else
8776 echo "configure: failed program was:" >&5
8777 cat conftest.$ac_ext >&5
8778 rm -fr conftest*
8779 no_gtk=yes
8780fi
8781rm -fr conftest*
8782fi
8783
8784 CFLAGS="$ac_save_CFLAGS"
8785 LIBS="$ac_save_LIBS"
8786 else
8787 no_gtk=yes
8788 fi
8789 if test "x$no_gtk" = x ; then
8790 echo "$ac_t""yes" 1>&6
8791 WXGTK127=1
8792 else
8793 echo "$ac_t""no" 1>&6
8794 GTK_CFLAGS=""
8795 GTK_LIBS=""
8796 :
8797 fi
8798
8799
8800
8801
8802 if test x$gtk_config_exec_prefix != x ; then
8803 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8804 if test x${GTK_CONFIG+set} != xset ; then
8805 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8806 fi
8807 fi
8808 if test x$gtk_config_prefix != x ; then
8809 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8810 if test x${GTK_CONFIG+set} != xset ; then
8811 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8812 fi
8813 fi
8814
8815 # Extract the first word of "gtk-config", so it can be a program name with args.
8816set dummy gtk-config; ac_word=$2
8817echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8818echo "configure:8819: checking for $ac_word" >&5
8819if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8820 echo $ac_n "(cached) $ac_c" 1>&6
8821else
8822 case "$GTK_CONFIG" in
8823 /*)
8824 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8825 ;;
8826 ?:/*)
8827 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8828 ;;
8829 *)
8830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8831 ac_dummy="$PATH"
8832 for ac_dir in $ac_dummy; do
8833 test -z "$ac_dir" && ac_dir=.
8834 if test -f $ac_dir/$ac_word; then
8835 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8836 break
8837 fi
8838 done
8839 IFS="$ac_save_ifs"
8840 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8841 ;;
8842esac
8843fi
8844GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8845if test -n "$GTK_CONFIG"; then
8846 echo "$ac_t""$GTK_CONFIG" 1>&6
8847else
8848 echo "$ac_t""no" 1>&6
8849fi
8850
8851 min_gtk_version=1.2.3
8852 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8853echo "configure:8854: checking for GTK - version >= $min_gtk_version" >&5
8854 no_gtk=""
8855 if test "$GTK_CONFIG" != "no" ; then
8856 GTK_CFLAGS=`$GTK_CONFIG --cflags`
8857 GTK_LIBS=`$GTK_CONFIG --libs gthread`
8858 ac_save_CFLAGS="$CFLAGS"
8859 ac_save_LIBS="$LIBS"
8860 CFLAGS="$CFLAGS $GTK_CFLAGS"
8861 LIBS="$LIBS $GTK_LIBS"
8862 if test "$cross_compiling" = yes; then
8863 echo $ac_n "cross compiling; assumed OK... $ac_c"
8864else
8865 cat > conftest.$ac_ext <<EOF
8866#line 8867 "configure"
8867#include "confdefs.h"
8868
8869#include <gtk/gtk.h>
8870#include <gtk/gtkfeatures.h>
8871#include <stdio.h>
8872#include <stdlib.h>
8873
8874int
8875main ()
8876{
8877 int major, minor, micro;
8878
8879 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
8880 printf("%s, bad version string\n", "$min_gtk_version");
8881 exit(1);
8882 }
8883
8884 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
8885 (GTK_MINOR_VERSION != gtk_minor_version) ||
8886 (GTK_MICRO_VERSION != gtk_micro_version)) {
8887 printf("Headers vs. library version mismatch!\n");
8888 exit(1);
8889 }
8890
8891 if (gtk_minor_version == 1) return FALSE;
8892
8893 return !((gtk_major_version > major) ||
8894 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8895 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
8896}
8897
8898EOF
8899if { (eval echo configure:8900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8900then
8901 :
8902else
8903 echo "configure: failed program was:" >&5
8904 cat conftest.$ac_ext >&5
8905 rm -fr conftest*
8906 no_gtk=yes
8907fi
8908rm -fr conftest*
8909fi
8910
8911 CFLAGS="$ac_save_CFLAGS"
8912 LIBS="$ac_save_LIBS"
8913 else
8914 no_gtk=yes
8915 fi
8916 if test "x$no_gtk" = x ; then
8917 echo "$ac_t""yes" 1>&6
8918 WXGTK12=1
8919 else
8920 echo "$ac_t""no" 1>&6
8921 GTK_CFLAGS=""
8922 GTK_LIBS=""
8923 :
8924 fi
8925
8926
8927
8928
8929 fi
8930
8931
8932 rm -f conf.gtktest
8933
8934
8935 if test "$WXGTK12" != 1 -a "$WXGTK20" != 1; then
8936 { echo "configure: error:
8937 Please check that gtk-config is in path, the directory
8938 where GTK+ libraries are installed (returned by
8939 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
8940 equivalent variable and GTK+ is version 1.2.3 or above.
8941 " 1>&2; exit 1; }
8942 fi
8943
8944 TOOLKIT_INCLUDE="$GTK_CFLAGS"
8945
8946
8947 GUI_TK_LIBRARY="$GTK_LIBS"
8948
8949
8950 AFMINSTALL=afminstall
8951 TOOLKIT=GTK
8952 GUIDIST=GTK_DIST
8953
8954 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
8955echo "configure:8956: checking for gdk_im_open in -lgdk" >&5
8956ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
8957if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8958 echo $ac_n "(cached) $ac_c" 1>&6
8959else
8960 ac_save_LIBS="$LIBS"
8961LIBS="-lgdk $LIBS"
8962cat > conftest.$ac_ext <<EOF
8963#line 8964 "configure"
8964#include "confdefs.h"
8965/* Override any gcc2 internal prototype to avoid an error. */
8966/* We use char because int might match the return type of a gcc2
8967 builtin and then its argument prototype would still apply. */
8968char gdk_im_open();
8969
8970int main() {
8971gdk_im_open()
8972; return 0; }
8973EOF
8974if { (eval echo configure:8975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8975 rm -rf conftest*
8976 eval "ac_cv_lib_$ac_lib_var=yes"
8977else
8978 echo "configure: failed program was:" >&5
8979 cat conftest.$ac_ext >&5
8980 rm -rf conftest*
8981 eval "ac_cv_lib_$ac_lib_var=no"
8982fi
8983rm -f conftest*
8984LIBS="$ac_save_LIBS"
8985
8986fi
8987if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8988 echo "$ac_t""yes" 1>&6
8989 cat >> confdefs.h <<\EOF
8990#define HAVE_XIM 1
8991EOF
8992
8993else
8994 echo "$ac_t""no" 1>&6
8995fi
8996
8997 fi
8998
8999 if test "$wxUSE_MGL" = 1; then
9000
9001 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
9002echo "configure:9003: checking for SciTech MGL library" >&5
9003 if test "x$MGL_ROOT" = x ; then
9004 echo "$ac_t""not found" 1>&6
9005 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9006 else
9007 echo "$ac_t""$MGL_ROOT" 1>&6
9008 fi
9009
9010 MGL_OS=linux/gcc/glibc
9011 MGL_LIB_TYPE=""
9012
9013 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9014 if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then
9015 MGL_LIB_TYPE=debug
9016 fi
9017 fi
9018 if test "x$MGL_LIB_TYPE" = x ; then
9019 if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then
9020 MGL_LIB_TYPE=release
9021 else
9022 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9023 fi
9024 fi
9025
9026 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9027 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm"
9028
9029 AFMINSTALL=afminstall
9030 TOOLKIT=MGL
9031 GUIDIST=MGL_DIST
9032 fi
9033
9034 if test "$wxUSE_WINE" = 1; then
9035 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
9036echo "configure:9037: checking for WINE includes" >&5
9037
9038ac_find_includes=
9039for ac_dir in $SEARCH_INCLUDE;
9040 do
9041 if test -f "$ac_dir/windows.h"; then
9042 ac_find_includes=$ac_dir
9043 break
9044 fi
9045 done
9046
9047 if test "$ac_find_includes" != "" ; then
9048 echo "$ac_t""found $ac_find_includes" 1>&6
9049 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
9050 else
9051 echo "$ac_t""no" 1>&6
9052 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9053 fi
9054
9055 XPM_LINK=""
9056 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9057echo "configure:9058: checking for Xpm library" >&5
9058
9059ac_find_libraries=
9060for ac_dir in $SEARCH_LIB;
9061 do
9062 for ac_extension in a so sl; do
9063 if test -f "$ac_dir/libXpm.$ac_extension"; then
9064 ac_find_libraries=$ac_dir
9065 break 2
9066 fi
9067 done
9068 done
9069
9070 if test "$ac_find_libraries" != "" ; then
9071 GUI_TK_LIBRARY="-L$ac_find_libraries"
9072 XPM_LINK="-lXpm"
9073 cat >> confdefs.h <<\EOF
9074#define wxHAVE_LIB_XPM 1
9075EOF
9076
9077 echo "$ac_t""found at $ac_find_libraries" 1>&6
9078 else
9079 echo "$ac_t""no" 1>&6
9080 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9081 fi
9082
9083 MESA_LINK=""
9084 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
9085echo "configure:9086: checking for Mesa library" >&5
9086
9087ac_find_libraries=
9088for ac_dir in $SEARCH_LIB;
9089 do
9090 for ac_extension in a so sl; do
9091 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9092 ac_find_libraries=$ac_dir
9093 break 2
9094 fi
9095 done
9096 done
9097
9098 if test "$ac_find_libraries" != "" ; then
9099 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9100 MESA_LINK="-lMesaGL"
9101 echo "$ac_t""found at $ac_find_libraries" 1>&6
9102 else
9103 { echo "configure: error: no" 1>&2; exit 1; }
9104 fi
9105
9106 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9107 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9108 WXWINE=1
9109 TOOLKIT=MSW
9110 GUIDIST=MSW_DIST
9111 fi
9112
9113
9114 # If we find X, set shell vars x_includes and x_libraries to the
9115# paths, otherwise set no_x=yes.
9116# Uses ac_ vars as temps to allow command line to override cache and checks.
9117# --without-x overrides everything else, but does not touch the cache.
9118echo $ac_n "checking for X""... $ac_c" 1>&6
9119echo "configure:9120: checking for X" >&5
9120
9121# Check whether --with-x or --without-x was given.
9122if test "${with_x+set}" = set; then
9123 withval="$with_x"
9124 :
9125fi
9126
9127# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9128if test "x$with_x" = xno; then
9129 # The user explicitly disabled X.
9130 have_x=disabled
9131else
9132 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9133 # Both variables are already set.
9134 have_x=yes
9135 else
9136if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9137 echo $ac_n "(cached) $ac_c" 1>&6
9138else
9139 # One or both of the vars are not set, and there is no cached value.
9140ac_x_includes=NO ac_x_libraries=NO
9141rm -fr conftestdir
9142if mkdir conftestdir; then
9143 cd conftestdir
9144 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9145 cat > Imakefile <<'EOF'
9146acfindx:
9147 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9148EOF
9149 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9150 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9151 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9152 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9153 for ac_extension in a so sl; do
9154 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9155 test -f $ac_im_libdir/libX11.$ac_extension; then
9156 ac_im_usrlibdir=$ac_im_libdir; break
9157 fi
9158 done
9159 # Screen out bogus values from the imake configuration. They are
9160 # bogus both because they are the default anyway, and because
9161 # using them would break gcc on systems where it needs fixed includes.
9162 case "$ac_im_incroot" in
9163 /usr/include) ;;
9164 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
9165 esac
9166 case "$ac_im_usrlibdir" in
9167 /usr/lib | /lib) ;;
9168 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
9169 esac
9170 fi
9171 cd ..
9172 rm -fr conftestdir
9173fi
9174
9175if test "$ac_x_includes" = NO; then
9176 # Guess where to find include files, by looking for this one X11 .h file.
9177 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9178
9179 # First, try using that file with no special directory specified.
9180cat > conftest.$ac_ext <<EOF
9181#line 9182 "configure"
9182#include "confdefs.h"
9183#include <$x_direct_test_include>
9184EOF
9185ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9186{ (eval echo configure:9187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9187ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9188if test -z "$ac_err"; then
9189 rm -rf conftest*
9190 # We can compile using X headers with no special include directory.
9191ac_x_includes=
9192else
9193 echo "$ac_err" >&5
9194 echo "configure: failed program was:" >&5
9195 cat conftest.$ac_ext >&5
9196 rm -rf conftest*
9197 # Look for the header file in a standard set of common directories.
9198# Check X11 before X11Rn because it is often a symlink to the current release.
9199 for ac_dir in \
9200 /usr/X11/include \
9201 /usr/X11R6/include \
9202 /usr/X11R5/include \
9203 /usr/X11R4/include \
9204 \
9205 /usr/include/X11 \
9206 /usr/include/X11R6 \
9207 /usr/include/X11R5 \
9208 /usr/include/X11R4 \
9209 \
9210 /usr/local/X11/include \
9211 /usr/local/X11R6/include \
9212 /usr/local/X11R5/include \
9213 /usr/local/X11R4/include \
9214 \
9215 /usr/local/include/X11 \
9216 /usr/local/include/X11R6 \
9217 /usr/local/include/X11R5 \
9218 /usr/local/include/X11R4 \
9219 \
9220 /usr/X386/include \
9221 /usr/x386/include \
9222 /usr/XFree86/include/X11 \
9223 \
9224 /usr/include \
9225 /usr/local/include \
9226 /usr/unsupported/include \
9227 /usr/athena/include \
9228 /usr/local/x11r5/include \
9229 /usr/lpp/Xamples/include \
9230 \
9231 /usr/openwin/include \
9232 /usr/openwin/share/include \
9233 ; \
9234 do
9235 if test -r "$ac_dir/$x_direct_test_include"; then
9236 ac_x_includes=$ac_dir
9237 break
9238 fi
9239 done
9240fi
9241rm -f conftest*
9242fi # $ac_x_includes = NO
9243
9244if test "$ac_x_libraries" = NO; then
9245 # Check for the libraries.
9246
9247 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9248 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9249
9250 # See if we find them without any special options.
9251 # Don't add to $LIBS permanently.
9252 ac_save_LIBS="$LIBS"
9253 LIBS="-l$x_direct_test_library $LIBS"
9254cat > conftest.$ac_ext <<EOF
9255#line 9256 "configure"
9256#include "confdefs.h"
9257
9258int main() {
9259${x_direct_test_function}()
9260; return 0; }
9261EOF
9262if { (eval echo configure:9263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9263 rm -rf conftest*
9264 LIBS="$ac_save_LIBS"
9265# We can link X programs with no special library path.
9266ac_x_libraries=
9267else
9268 echo "configure: failed program was:" >&5
9269 cat conftest.$ac_ext >&5
9270 rm -rf conftest*
9271 LIBS="$ac_save_LIBS"
9272# First see if replacing the include by lib works.
9273# Check X11 before X11Rn because it is often a symlink to the current release.
9274for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9275 /usr/X11/lib \
9276 /usr/X11R6/lib \
9277 /usr/X11R5/lib \
9278 /usr/X11R4/lib \
9279 \
9280 /usr/lib/X11 \
9281 /usr/lib/X11R6 \
9282 /usr/lib/X11R5 \
9283 /usr/lib/X11R4 \
9284 \
9285 /usr/local/X11/lib \
9286 /usr/local/X11R6/lib \
9287 /usr/local/X11R5/lib \
9288 /usr/local/X11R4/lib \
9289 \
9290 /usr/local/lib/X11 \
9291 /usr/local/lib/X11R6 \
9292 /usr/local/lib/X11R5 \
9293 /usr/local/lib/X11R4 \
9294 \
9295 /usr/X386/lib \
9296 /usr/x386/lib \
9297 /usr/XFree86/lib/X11 \
9298 \
9299 /usr/lib \
9300 /usr/local/lib \
9301 /usr/unsupported/lib \
9302 /usr/athena/lib \
9303 /usr/local/x11r5/lib \
9304 /usr/lpp/Xamples/lib \
9305 /lib/usr/lib/X11 \
9306 \
9307 /usr/openwin/lib \
9308 /usr/openwin/share/lib \
9309 ; \
9310do
9311 for ac_extension in a so sl; do
9312 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
9313 ac_x_libraries=$ac_dir
9314 break 2
9315 fi
9316 done
9317done
9318fi
9319rm -f conftest*
9320fi # $ac_x_libraries = NO
9321
9322if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
9323 # Didn't find X anywhere. Cache the known absence of X.
9324 ac_cv_have_x="have_x=no"
9325else
9326 # Record where we found X for the cache.
9327 ac_cv_have_x="have_x=yes \
9328 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9329fi
9330fi
9331 fi
9332 eval "$ac_cv_have_x"
9333fi # $with_x != no
9334
9335if test "$have_x" != yes; then
9336 echo "$ac_t""$have_x" 1>&6
9337 no_x=yes
9338else
9339 # If each of the values was on the command line, it overrides each guess.
9340 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9341 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9342 # Update the cache value to reflect the command line values.
9343 ac_cv_have_x="have_x=yes \
9344 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9345 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
9346fi
9347
9348if test "$no_x" = yes; then
9349 # Not all programs may use this symbol, but it does not hurt to define it.
9350 cat >> confdefs.h <<\EOF
9351#define X_DISPLAY_MISSING 1
9352EOF
9353
9354 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9355else
9356 if test -n "$x_includes"; then
9357 X_CFLAGS="$X_CFLAGS -I$x_includes"
9358 fi
9359
9360 # It would also be nice to do this for all -L options, not just this one.
9361 if test -n "$x_libraries"; then
9362 X_LIBS="$X_LIBS -L$x_libraries"
9363 # For Solaris; some versions of Sun CC require a space after -R and
9364 # others require no space. Words are not sufficient . . . .
9365 case "`(uname -sr) 2>/dev/null`" in
9366 "SunOS 5"*)
9367 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
9368echo "configure:9369: checking whether -R must be followed by a space" >&5
9369 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
9370 cat > conftest.$ac_ext <<EOF
9371#line 9372 "configure"
9372#include "confdefs.h"
9373
9374int main() {
9375
9376; return 0; }
9377EOF
9378if { (eval echo configure:9379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9379 rm -rf conftest*
9380 ac_R_nospace=yes
9381else
9382 echo "configure: failed program was:" >&5
9383 cat conftest.$ac_ext >&5
9384 rm -rf conftest*
9385 ac_R_nospace=no
9386fi
9387rm -f conftest*
9388 if test $ac_R_nospace = yes; then
9389 echo "$ac_t""no" 1>&6
9390 X_LIBS="$X_LIBS -R$x_libraries"
9391 else
9392 LIBS="$ac_xsave_LIBS -R $x_libraries"
9393 cat > conftest.$ac_ext <<EOF
9394#line 9395 "configure"
9395#include "confdefs.h"
9396
9397int main() {
9398
9399; return 0; }
9400EOF
9401if { (eval echo configure:9402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9402 rm -rf conftest*
9403 ac_R_space=yes
9404else
9405 echo "configure: failed program was:" >&5
9406 cat conftest.$ac_ext >&5
9407 rm -rf conftest*
9408 ac_R_space=no
9409fi
9410rm -f conftest*
9411 if test $ac_R_space = yes; then
9412 echo "$ac_t""yes" 1>&6
9413 X_LIBS="$X_LIBS -R $x_libraries"
9414 else
9415 echo "$ac_t""neither works" 1>&6
9416 fi
9417 fi
9418 LIBS="$ac_xsave_LIBS"
9419 esac
9420 fi
9421
9422 # Check for system-dependent libraries X programs must link with.
9423 # Do this before checking for the system-independent R6 libraries
9424 # (-lICE), since we may need -lsocket or whatever for X linking.
9425
9426 if test "$ISC" = yes; then
9427 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9428 else
9429 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
9430 # libraries were built with DECnet support. And karl@cs.umb.edu says
9431 # the Alpha needs dnet_stub (dnet does not exist).
9432 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
9433echo "configure:9434: checking for dnet_ntoa in -ldnet" >&5
9434ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9435if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9436 echo $ac_n "(cached) $ac_c" 1>&6
9437else
9438 ac_save_LIBS="$LIBS"
9439LIBS="-ldnet $LIBS"
9440cat > conftest.$ac_ext <<EOF
9441#line 9442 "configure"
9442#include "confdefs.h"
9443/* Override any gcc2 internal prototype to avoid an error. */
9444/* We use char because int might match the return type of a gcc2
9445 builtin and then its argument prototype would still apply. */
9446char dnet_ntoa();
9447
9448int main() {
9449dnet_ntoa()
9450; return 0; }
9451EOF
9452if { (eval echo configure:9453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9453 rm -rf conftest*
9454 eval "ac_cv_lib_$ac_lib_var=yes"
9455else
9456 echo "configure: failed program was:" >&5
9457 cat conftest.$ac_ext >&5
9458 rm -rf conftest*
9459 eval "ac_cv_lib_$ac_lib_var=no"
9460fi
9461rm -f conftest*
9462LIBS="$ac_save_LIBS"
9463
9464fi
9465if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9466 echo "$ac_t""yes" 1>&6
9467 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9468else
9469 echo "$ac_t""no" 1>&6
9470fi
9471
9472 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9473 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
9474echo "configure:9475: checking for dnet_ntoa in -ldnet_stub" >&5
9475ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9476if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9477 echo $ac_n "(cached) $ac_c" 1>&6
9478else
9479 ac_save_LIBS="$LIBS"
9480LIBS="-ldnet_stub $LIBS"
9481cat > conftest.$ac_ext <<EOF
9482#line 9483 "configure"
9483#include "confdefs.h"
9484/* Override any gcc2 internal prototype to avoid an error. */
9485/* We use char because int might match the return type of a gcc2
9486 builtin and then its argument prototype would still apply. */
9487char dnet_ntoa();
9488
9489int main() {
9490dnet_ntoa()
9491; return 0; }
9492EOF
9493if { (eval echo configure:9494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9494 rm -rf conftest*
9495 eval "ac_cv_lib_$ac_lib_var=yes"
9496else
9497 echo "configure: failed program was:" >&5
9498 cat conftest.$ac_ext >&5
9499 rm -rf conftest*
9500 eval "ac_cv_lib_$ac_lib_var=no"
9501fi
9502rm -f conftest*
9503LIBS="$ac_save_LIBS"
9504
9505fi
9506if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9507 echo "$ac_t""yes" 1>&6
9508 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9509else
9510 echo "$ac_t""no" 1>&6
9511fi
9512
9513 fi
9514
9515 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9516 # to get the SysV transport functions.
9517 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
9518 # needs -lnsl.
9519 # The nsl library prevents programs from opening the X display
9520 # on Irix 5.2, according to dickey@clark.net.
9521 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
9522echo "configure:9523: checking for gethostbyname" >&5
9523if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
9524 echo $ac_n "(cached) $ac_c" 1>&6
9525else
9526 cat > conftest.$ac_ext <<EOF
9527#line 9528 "configure"
9528#include "confdefs.h"
9529/* System header to define __stub macros and hopefully few prototypes,
9530 which can conflict with char gethostbyname(); below. */
9531#include <assert.h>
9532/* Override any gcc2 internal prototype to avoid an error. */
9533/* We use char because int might match the return type of a gcc2
9534 builtin and then its argument prototype would still apply. */
9535char gethostbyname();
9536
9537int main() {
9538
9539/* The GNU C library defines this for functions which it implements
9540 to always fail with ENOSYS. Some functions are actually named
9541 something starting with __ and the normal name is an alias. */
9542#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9543choke me
9544#else
9545gethostbyname();
9546#endif
9547
9548; return 0; }
9549EOF
9550if { (eval echo configure:9551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9551 rm -rf conftest*
9552 eval "ac_cv_func_gethostbyname=yes"
9553else
9554 echo "configure: failed program was:" >&5
9555 cat conftest.$ac_ext >&5
9556 rm -rf conftest*
9557 eval "ac_cv_func_gethostbyname=no"
9558fi
9559rm -f conftest*
9560fi
9561
9562if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
9563 echo "$ac_t""yes" 1>&6
9564 :
9565else
9566 echo "$ac_t""no" 1>&6
9567fi
9568
9569 if test $ac_cv_func_gethostbyname = no; then
9570 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
9571echo "configure:9572: checking for gethostbyname in -lnsl" >&5
9572ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
9573if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9574 echo $ac_n "(cached) $ac_c" 1>&6
9575else
9576 ac_save_LIBS="$LIBS"
9577LIBS="-lnsl $LIBS"
9578cat > conftest.$ac_ext <<EOF
9579#line 9580 "configure"
9580#include "confdefs.h"
9581/* Override any gcc2 internal prototype to avoid an error. */
9582/* We use char because int might match the return type of a gcc2
9583 builtin and then its argument prototype would still apply. */
9584char gethostbyname();
9585
9586int main() {
9587gethostbyname()
9588; return 0; }
9589EOF
9590if { (eval echo configure:9591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9591 rm -rf conftest*
9592 eval "ac_cv_lib_$ac_lib_var=yes"
9593else
9594 echo "configure: failed program was:" >&5
9595 cat conftest.$ac_ext >&5
9596 rm -rf conftest*
9597 eval "ac_cv_lib_$ac_lib_var=no"
9598fi
9599rm -f conftest*
9600LIBS="$ac_save_LIBS"
9601
9602fi
9603if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9604 echo "$ac_t""yes" 1>&6
9605 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9606else
9607 echo "$ac_t""no" 1>&6
9608fi
9609
9610 fi
9611
9612 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9613 # socket/setsockopt and other routines are undefined under SCO ODT
9614 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9615 # on later versions), says simon@lia.di.epfl.ch: it contains
9616 # gethostby* variants that don't use the nameserver (or something).
9617 # -lsocket must be given before -lnsl if both are needed.
9618 # We assume that if connect needs -lnsl, so does gethostbyname.
9619 echo $ac_n "checking for connect""... $ac_c" 1>&6
9620echo "configure:9621: checking for connect" >&5
9621if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
9622 echo $ac_n "(cached) $ac_c" 1>&6
9623else
9624 cat > conftest.$ac_ext <<EOF
9625#line 9626 "configure"
9626#include "confdefs.h"
9627/* System header to define __stub macros and hopefully few prototypes,
9628 which can conflict with char connect(); below. */
9629#include <assert.h>
9630/* Override any gcc2 internal prototype to avoid an error. */
9631/* We use char because int might match the return type of a gcc2
9632 builtin and then its argument prototype would still apply. */
9633char connect();
9634
9635int main() {
9636
9637/* The GNU C library defines this for functions which it implements
9638 to always fail with ENOSYS. Some functions are actually named
9639 something starting with __ and the normal name is an alias. */
9640#if defined (__stub_connect) || defined (__stub___connect)
9641choke me
9642#else
9643connect();
9644#endif
9645
9646; return 0; }
9647EOF
9648if { (eval echo configure:9649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9649 rm -rf conftest*
9650 eval "ac_cv_func_connect=yes"
9651else
9652 echo "configure: failed program was:" >&5
9653 cat conftest.$ac_ext >&5
9654 rm -rf conftest*
9655 eval "ac_cv_func_connect=no"
9656fi
9657rm -f conftest*
9658fi
9659
9660if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
9661 echo "$ac_t""yes" 1>&6
9662 :
9663else
9664 echo "$ac_t""no" 1>&6
9665fi
9666
9667 if test $ac_cv_func_connect = no; then
9668 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
9669echo "configure:9670: checking for connect in -lsocket" >&5
9670ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
9671if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9672 echo $ac_n "(cached) $ac_c" 1>&6
9673else
9674 ac_save_LIBS="$LIBS"
9675LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9676cat > conftest.$ac_ext <<EOF
9677#line 9678 "configure"
9678#include "confdefs.h"
9679/* Override any gcc2 internal prototype to avoid an error. */
9680/* We use char because int might match the return type of a gcc2
9681 builtin and then its argument prototype would still apply. */
9682char connect();
9683
9684int main() {
9685connect()
9686; return 0; }
9687EOF
9688if { (eval echo configure:9689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9689 rm -rf conftest*
9690 eval "ac_cv_lib_$ac_lib_var=yes"
9691else
9692 echo "configure: failed program was:" >&5
9693 cat conftest.$ac_ext >&5
9694 rm -rf conftest*
9695 eval "ac_cv_lib_$ac_lib_var=no"
9696fi
9697rm -f conftest*
9698LIBS="$ac_save_LIBS"
9699
9700fi
9701if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9702 echo "$ac_t""yes" 1>&6
9703 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9704else
9705 echo "$ac_t""no" 1>&6
9706fi
9707
9708 fi
9709
9710 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
9711 echo $ac_n "checking for remove""... $ac_c" 1>&6
9712echo "configure:9713: checking for remove" >&5
9713if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
9714 echo $ac_n "(cached) $ac_c" 1>&6
9715else
9716 cat > conftest.$ac_ext <<EOF
9717#line 9718 "configure"
9718#include "confdefs.h"
9719/* System header to define __stub macros and hopefully few prototypes,
9720 which can conflict with char remove(); below. */
9721#include <assert.h>
9722/* Override any gcc2 internal prototype to avoid an error. */
9723/* We use char because int might match the return type of a gcc2
9724 builtin and then its argument prototype would still apply. */
9725char remove();
9726
9727int main() {
9728
9729/* The GNU C library defines this for functions which it implements
9730 to always fail with ENOSYS. Some functions are actually named
9731 something starting with __ and the normal name is an alias. */
9732#if defined (__stub_remove) || defined (__stub___remove)
9733choke me
9734#else
9735remove();
9736#endif
9737
9738; return 0; }
9739EOF
9740if { (eval echo configure:9741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9741 rm -rf conftest*
9742 eval "ac_cv_func_remove=yes"
9743else
9744 echo "configure: failed program was:" >&5
9745 cat conftest.$ac_ext >&5
9746 rm -rf conftest*
9747 eval "ac_cv_func_remove=no"
9748fi
9749rm -f conftest*
9750fi
9751
9752if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
9753 echo "$ac_t""yes" 1>&6
9754 :
9755else
9756 echo "$ac_t""no" 1>&6
9757fi
9758
9759 if test $ac_cv_func_remove = no; then
9760 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
9761echo "configure:9762: checking for remove in -lposix" >&5
9762ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
9763if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9764 echo $ac_n "(cached) $ac_c" 1>&6
9765else
9766 ac_save_LIBS="$LIBS"
9767LIBS="-lposix $LIBS"
9768cat > conftest.$ac_ext <<EOF
9769#line 9770 "configure"
9770#include "confdefs.h"
9771/* Override any gcc2 internal prototype to avoid an error. */
9772/* We use char because int might match the return type of a gcc2
9773 builtin and then its argument prototype would still apply. */
9774char remove();
9775
9776int main() {
9777remove()
9778; return 0; }
9779EOF
9780if { (eval echo configure:9781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9781 rm -rf conftest*
9782 eval "ac_cv_lib_$ac_lib_var=yes"
9783else
9784 echo "configure: failed program was:" >&5
9785 cat conftest.$ac_ext >&5
9786 rm -rf conftest*
9787 eval "ac_cv_lib_$ac_lib_var=no"
9788fi
9789rm -f conftest*
9790LIBS="$ac_save_LIBS"
9791
9792fi
9793if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9794 echo "$ac_t""yes" 1>&6
9795 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9796else
9797 echo "$ac_t""no" 1>&6
9798fi
9799
9800 fi
9801
9802 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9803 echo $ac_n "checking for shmat""... $ac_c" 1>&6
9804echo "configure:9805: checking for shmat" >&5
9805if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
9806 echo $ac_n "(cached) $ac_c" 1>&6
9807else
9808 cat > conftest.$ac_ext <<EOF
9809#line 9810 "configure"
9810#include "confdefs.h"
9811/* System header to define __stub macros and hopefully few prototypes,
9812 which can conflict with char shmat(); below. */
9813#include <assert.h>
9814/* Override any gcc2 internal prototype to avoid an error. */
9815/* We use char because int might match the return type of a gcc2
9816 builtin and then its argument prototype would still apply. */
9817char shmat();
9818
9819int main() {
9820
9821/* The GNU C library defines this for functions which it implements
9822 to always fail with ENOSYS. Some functions are actually named
9823 something starting with __ and the normal name is an alias. */
9824#if defined (__stub_shmat) || defined (__stub___shmat)
9825choke me
9826#else
9827shmat();
9828#endif
9829
9830; return 0; }
9831EOF
9832if { (eval echo configure:9833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9833 rm -rf conftest*
9834 eval "ac_cv_func_shmat=yes"
9835else
9836 echo "configure: failed program was:" >&5
9837 cat conftest.$ac_ext >&5
9838 rm -rf conftest*
9839 eval "ac_cv_func_shmat=no"
9840fi
9841rm -f conftest*
9842fi
9843
9844if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
9845 echo "$ac_t""yes" 1>&6
9846 :
9847else
9848 echo "$ac_t""no" 1>&6
9849fi
9850
9851 if test $ac_cv_func_shmat = no; then
9852 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
9853echo "configure:9854: checking for shmat in -lipc" >&5
9854ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
9855if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9856 echo $ac_n "(cached) $ac_c" 1>&6
9857else
9858 ac_save_LIBS="$LIBS"
9859LIBS="-lipc $LIBS"
9860cat > conftest.$ac_ext <<EOF
9861#line 9862 "configure"
9862#include "confdefs.h"
9863/* Override any gcc2 internal prototype to avoid an error. */
9864/* We use char because int might match the return type of a gcc2
9865 builtin and then its argument prototype would still apply. */
9866char shmat();
9867
9868int main() {
9869shmat()
9870; return 0; }
9871EOF
9872if { (eval echo configure:9873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9873 rm -rf conftest*
9874 eval "ac_cv_lib_$ac_lib_var=yes"
9875else
9876 echo "configure: failed program was:" >&5
9877 cat conftest.$ac_ext >&5
9878 rm -rf conftest*
9879 eval "ac_cv_lib_$ac_lib_var=no"
9880fi
9881rm -f conftest*
9882LIBS="$ac_save_LIBS"
9883
9884fi
9885if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9886 echo "$ac_t""yes" 1>&6
9887 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9888else
9889 echo "$ac_t""no" 1>&6
9890fi
9891
9892 fi
9893 fi
9894
9895 # Check for libraries that X11R6 Xt/Xaw programs need.
9896 ac_save_LDFLAGS="$LDFLAGS"
9897 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9898 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9899 # check for ICE first), but we must link in the order -lSM -lICE or
9900 # we get undefined symbols. So assume we have SM if we have ICE.
9901 # These have to be linked with before -lX11, unlike the other
9902 # libraries we check for below, so use a different variable.
9903 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
9904 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
9905echo "configure:9906: checking for IceConnectionNumber in -lICE" >&5
9906ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
9907if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9908 echo $ac_n "(cached) $ac_c" 1>&6
9909else
9910 ac_save_LIBS="$LIBS"
9911LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9912cat > conftest.$ac_ext <<EOF
9913#line 9914 "configure"
9914#include "confdefs.h"
9915/* Override any gcc2 internal prototype to avoid an error. */
9916/* We use char because int might match the return type of a gcc2
9917 builtin and then its argument prototype would still apply. */
9918char IceConnectionNumber();
9919
9920int main() {
9921IceConnectionNumber()
9922; return 0; }
9923EOF
9924if { (eval echo configure:9925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9925 rm -rf conftest*
9926 eval "ac_cv_lib_$ac_lib_var=yes"
9927else
9928 echo "configure: failed program was:" >&5
9929 cat conftest.$ac_ext >&5
9930 rm -rf conftest*
9931 eval "ac_cv_lib_$ac_lib_var=no"
9932fi
9933rm -f conftest*
9934LIBS="$ac_save_LIBS"
9935
9936fi
9937if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9938 echo "$ac_t""yes" 1>&6
9939 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9940else
9941 echo "$ac_t""no" 1>&6
9942fi
9943
9944 LDFLAGS="$ac_save_LDFLAGS"
9945
9946fi
9947
9948 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9949 LDFLAGS="$LDFLAGS $X_LIBS"
9950
9951 if test "$wxUSE_MOTIF" = 1; then
9952 if test "$no_x" = "yes"; then
9953 { echo "configure: error: X11 not found" 1>&2; exit 1; }
9954 fi
9955
9956 GUI_TK_LIBRARY="$X_LIBS"
9957 TOOLKIT_INCLUDE="$X_CFLAGS"
9958
9959 AFMINSTALL=afminstall
9960
9961
9962 COMPILED_X_PROGRAM=0
9963
9964 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
9965echo "configure:9966: checking for Motif/Lesstif headers" >&5
9966
9967ac_find_includes=
9968for ac_dir in $SEARCH_INCLUDE;
9969 do
9970 if test -f "$ac_dir/Xm/Xm.h"; then
9971 ac_find_includes=$ac_dir
9972 break
9973 fi
9974 done
9975
9976 if test "$ac_find_includes" != "" ; then
9977 echo "$ac_t""found $ac_find_includes" 1>&6
9978 else
9979 cat > conftest.$ac_ext <<EOF
9980#line 9981 "configure"
9981#include "confdefs.h"
9982
9983 #include <Xm/Xm.h>
9984
9985int main() {
9986
9987 int version;
9988
9989 version = xmUseVersion;
9990
9991; return 0; }
9992EOF
9993if { (eval echo configure:9994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9994 rm -rf conftest*
9995
9996 echo "$ac_t""found in default search path" 1>&6
9997 COMPILED_X_PROGRAM=1
9998
9999else
10000 echo "configure: failed program was:" >&5
10001 cat conftest.$ac_ext >&5
10002 rm -rf conftest*
10003
10004 echo "$ac_t""no" 1>&6
10005 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10006
10007
10008fi
10009rm -f conftest*
10010 fi
10011
10012 if test "$COMPILED_X_PROGRAM" = 0; then
10013 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
10014echo "configure:10015: checking for Motif/Lesstif library" >&5
10015
10016ac_find_libraries=
10017for ac_dir in $SEARCH_LIB;
10018 do
10019 for ac_extension in a so sl; do
10020 if test -f "$ac_dir/libXm.$ac_extension"; then
10021 ac_find_libraries=$ac_dir
10022 break 2
10023 fi
10024 done
10025 done
10026
10027 if test "$ac_find_libraries" != "" ; then
10028
10029 ac_path_to_include=$ac_find_includes
10030 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10031 result=$?
10032 if test $result = 0; then
10033 ac_path_to_include=""
10034 else
10035 ac_path_to_include="-I$ac_find_includes"
10036 fi
10037
10038
10039 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10040 result=$?
10041 if test $result = 0; then
10042 ac_path_to_link=""
10043 else
10044 ac_path_to_link="-L$ac_find_libraries"
10045 fi
10046
10047
10048 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10049 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10050 echo "$ac_t""found at $ac_find_libraries" 1>&6
10051 else
10052 cat > conftest.$ac_ext <<EOF
10053#line 10054 "configure"
10054#include "confdefs.h"
10055
10056 #include <Xm/Xm.h>
10057
10058int main() {
10059
10060 int version;
10061
10062 version = xmUseVersion;
10063
10064; return 0; }
10065EOF
10066if { (eval echo configure:10067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10067 rm -rf conftest*
10068
10069 echo "$ac_t""found in default search path" 1>&6
10070 COMPILED_X_PROGRAM=1
10071
10072else
10073 echo "configure: failed program was:" >&5
10074 cat conftest.$ac_ext >&5
10075 rm -rf conftest*
10076
10077 echo "$ac_t""no" 1>&6
10078 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10079
10080
10081fi
10082rm -f conftest*
10083 fi
10084 fi
10085
10086
10087 XPM_LINK=""
10088 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
10089echo "configure:10090: checking for Xpm library" >&5
10090
10091ac_find_libraries=
10092for ac_dir in $SEARCH_LIB;
10093 do
10094 for ac_extension in a so sl; do
10095 if test -f "$ac_dir/libXpm.$ac_extension"; then
10096 ac_find_libraries=$ac_dir
10097 break 2
10098 fi
10099 done
10100 done
10101
10102 if test "$ac_find_libraries" != "" ; then
10103
10104 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10105 result=$?
10106 if test $result = 0; then
10107 ac_path_to_link=""
10108 else
10109 ac_path_to_link="-L$ac_find_libraries"
10110 fi
10111
10112 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10113 XPM_LINK="-lXpm "
10114 cat >> confdefs.h <<\EOF
10115#define wxHAVE_LIB_XPM 1
10116EOF
10117
10118 echo "$ac_t""found at $ac_find_libraries" 1>&6
10119 else
10120 cat > conftest.$ac_ext <<EOF
10121#line 10122 "configure"
10122#include "confdefs.h"
10123
10124 #include <X11/xpm.h>
10125
10126int main() {
10127
10128 int version;
10129
10130 version = XpmLibraryVersion();
10131
10132; return 0; }
10133EOF
10134if { (eval echo configure:10135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10135 rm -rf conftest*
10136
10137 XPM_LINK="-lXpm "
10138 cat >> confdefs.h <<\EOF
10139#define wxHAVE_LIB_XPM 1
10140EOF
10141
10142 echo "$ac_t""found in default search path" 1>&6
10143 COMPILED_X_PROGRAM=0
10144
10145else
10146 echo "configure: failed program was:" >&5
10147 cat conftest.$ac_ext >&5
10148 rm -rf conftest*
10149
10150 echo "$ac_t""no" 1>&6
10151 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10152
10153
10154fi
10155rm -f conftest*
10156 fi
10157
10158 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
10159 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
10160 TOOLKIT=MOTIF
10161 GUIDIST=MOTIF_DIST
10162 fi
10163
10164 if test "$wxUSE_MAC" = 1; then
10165 TOOLKIT=MAC
10166 GUIDIST=MACX_DIST
10167 fi
10168
10169 if test "$wxUSE_PM" = 1; then
10170 TOOLKIT=PM
10171 GUIDIST=GTK_DIST
10172 fi
10173
10174 if test "$TOOLKIT" != "PM" ; then
10175 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10176 else
10177 TOOLKIT_DIR="os2"
10178 fi
10179
10180 TOOLKIT_NAME="${TOOLKIT_DIR}"
10181
10182 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10183
10184 if test "$TOOLKIT_NAME" = "motif"; then
10185 TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10186 fi
10187
10188 if test "$wxUSE_UNIVERSAL" = "yes"; then
10189 TOOLKIT_NAME="${TOOLKIT_NAME}univ"
10190 UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
10191 TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}"
10192 SETUPH_DIR="univ"
10193 else
10194 SETUPH_DIR="${TOOLKIT_DIR}"
10195 fi
10196
10197 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10198 TOOLKIT_NAME="${TOOLKIT_NAME}d"
10199 fi
10200
10201 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10202 if test "$wxUSE_UNIVERSAL" = "yes"; then
10203 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__"
10204 fi
10205
10206 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10207
10208 if test "$wxUSE_UNIVERSAL" = "yes"; then
10209 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10210 else
10211 ALL_OBJECTS="\$(GUIOBJS)"
10212 fi
10213
10214 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10215
10216 if test "$TOOLKIT" != "MSW"; then
10217 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10218 fi
10219
10220 if test "$wxUSE_HTML" = "yes"; then
10221 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10222 fi
10223
10224 if test "$TOOLKIT" != "MSW"; then
10225 if test "$wxUSE_ODBC" = "yes" ; then
10226 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10227 fi
10228 fi
10229
10230 if test "$wxUSE_LIBJPEG" = "yes" ; then
10231 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
10232 fi
10233 if test "$wxUSE_LIBTIFF" = "yes" ; then
10234 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10235 fi
10236 if test "$wxUSE_LIBPNG" = "yes" ; then
10237 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10238 fi
10239 if test "$wxUSE_ZLIB" = "yes" ; then
10240 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10241 fi
10242 if test "$wxUSE_FREETYPE" = "yes" ; then
10243 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10244 fi
10245
10246 if test "$wxUSE_UNIVERSAL" = "yes"; then
10247 ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)"
10248 else
10249 ALL_DEPFILES="\$(GUIDEPS)"
10250 fi
10251
10252 ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)"
10253
10254 if test "$TOOLKIT" != "MSW"; then
10255 ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)"
10256 fi
10257
10258 if test "$wxUSE_HTML" = "yes"; then
10259 ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)"
10260 fi
10261
10262 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
10263 if test "$wxUSE_UNIVERSAL" = "yes"; then
10264 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
10265 fi
10266 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10267 RPM_SPEC="wx\$(TOOLKIT).spec"
10268
10269 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10270 DISTDIR="wx\$(TOOLKIT)"
10271else
10272 USE_GUI=0
10273
10274 TOOLKIT_DIR="base"
10275
10276 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10277 TOOLKIT_NAME="${TOOLKIT_DIR}d"
10278 else
10279 TOOLKIT_NAME="${TOOLKIT_DIR}"
10280 fi
10281
10282 TOOLKIT_DEF="-D__WXBASE__"
10283
10284 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
10285 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10286
10287 if test "$wxUSE_ZLIB" = "yes" ; then
10288 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10289 fi
10290
10291 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10292
10293 PORT_FILES="src/files.lst"
10294 RPM_FILES="src/rpmfiles.lst"
10295 RPM_SPEC="wxBase.spec"
10296
10297 GUIDIST="BASE_DIST"
10298 DISTDIR="wxBase"
10299fi
10300
10301WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
10302WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10303
10304WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
10305WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10306
10307WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10308WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10309
10310WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
10311WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
10312WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
10313WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
10314WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
10315WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10316
10317SHARED_LD=
10318PIC_FLAG=
10319WX_ALL=
10320WX_ALL_INSTALLED=
10321BURNT_LIBRARY_NAME=
10322WX_TARGET_LIBRARY_SONAME=
10323
10324
10325if test "$wxUSE_SHARED" = "yes"; then
10326 case "${host}" in
10327 *-hp-hpux* )
10328 if test "$GCC" = yes ; then
10329 SHARED_LD="${CC} -shared -fPIC -o"
10330 PIC_FLAG="-fPIC"
10331 else
10332 LDFLAGS="-L/usr/lib"
10333
10334 SHARED_LD="${CXX} -b -o"
10335 PIC_FLAG="+Z"
10336 fi
10337 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
10338 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
10339 if test "$wxUSE_OPENGL" = "yes"; then
10340 WX_ALL_INSTALLED="preinstall_gl"
10341 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
10342 else
10343 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
10344 fi
10345 ;;
10346
10347 *-*-linux* )
10348 SHARED_LD="${CC} -shared -o"
10349 PIC_FLAG="-fPIC"
10350 if test "$wxUSE_BURNT_NAME" = "yes" ; then
10351 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
10352 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
10353 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
10354 fi
10355 if test "$wxUSE_OPENGL" = "yes"; then
10356 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10357 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10358 else
10359 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10360 WX_ALL="CREATE_LINKS"
10361 fi
10362 ;;
10363 *-*-irix5* | *-*-irix6* )
10364 if test "$GCC" = yes ; then
10365 SHARED_LD="${CC} -shared -o"
10366 PIC_FLAG="-fPIC"
10367 else
10368 SHARED_LD="${CXX} -shared -o"
10369 fi
10370 if test "$wxUSE_OPENGL" = "yes"; then
10371 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10372 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10373 else
10374 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10375 WX_ALL="CREATE_LINKS"
10376 fi
10377 ;;
10378 *-*-solaris2* )
10379 if test "$GCC" = yes ; then
10380 SHARED_LD="${CC} -shared -o"
10381 PIC_FLAG="-fPIC"
10382
10383 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10384 else
10385 SHARED_LD="${CXX} -G -o"
10386 PIC_FLAG="-KPIC"
10387 fi
10388 if test "$wxUSE_OPENGL" = "yes"; then
10389 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10390 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10391 else
10392 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10393 WX_ALL="CREATE_LINKS"
10394 fi
10395 ;;
10396 *-*-sunos4* )
10397 SHARED_LD="${CC} -shared -o"
10398 PIC_FLAG="-fPIC"
10399 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10400 WX_ALL="CREATE_LINKS"
10401 ;;
10402 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
10403 SHARED_LD="${CC} -shared -o"
10404 PIC_FLAG="-fPIC"
10405 if test "$wxUSE_OPENGL" = "yes"; then
10406 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10407 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10408 else
10409 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10410 WX_ALL="CREATE_LINKS"
10411 fi
10412 ;;
10413 *-*-darwin* )
10414 SHARED_LD="${CXX} -dynamiclib -o"
10415 PIC_FLAG="-dynamic -fPIC"
10416 if test "$wxUSE_OPENGL" = "yes"; then
10417 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10418 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10419 else
10420 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10421 WX_ALL="CREATE_LINKS"
10422 fi
10423 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
10424 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10425 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10426 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
10427 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
10428 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
10429 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
10430 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
10431 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
10432 ;;
10433 *-*-osf* )
10434 SHARED_LD="${CXX} -shared -o"
10435 PIC_FLAG="-fPIC"
10436 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10437 WX_ALL="CREATE_LINKS"
10438 ;;
10439 *-*-dgux5* )
10440 SHARED_LD="${CXX} -shared -o"
10441 PIC_FLAG="-fPIC"
10442 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10443 WX_ALL="CREATE_LINKS"
10444 ;;
10445 *-*-sysv5* )
10446 SHARED_LD="${CC} -shared -o"
10447 PIC_FLAG="-fPIC"
10448 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10449 WX_ALL="CREATE_LINKS"
10450 ;;
10451 *-*-aix* )
10452 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10453 WX_ALL=${WX_LIBRARY_NAME_SHARED}
10454 ;;
10455 *-*-cygwin* )
10456 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10457 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10458 if test "$wxUSE_OPENGL" = "yes"; then
10459 WX_ALL_INSTALLED="preinstall_gl"
10460 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10461 else
10462 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10463 fi
10464 ;;
10465 *-*-mingw32* )
10466 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10467 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10468 if test "$wxUSE_OPENGL" = "yes"; then
10469 WX_ALL_INSTALLED="preinstall_gl"
10470 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10471 else
10472 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10473 fi
10474 ;;
10475 *-pc-os2_emx )
10476 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10477 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10478 ;;
10479 *-*-beos* )
10480 SHARED_LD="${LD} -shared -o"
10481 PIC_FLAG="-fPIC"
10482 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10483 WX_ALL="CREATE_LINKS"
10484 ;;
10485 *)
10486 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10487 esac
10488
10489 if test "x$WX_TARGET_LIBRARY" = "x"; then
10490 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
10491 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10492 fi
10493 WX_TARGET_LIBRARY_TYPE="so"
10494else
10495 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10496 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10497
10498 if test "$wxUSE_OPENGL" = "yes"; then
10499 WX_ALL_INSTALLED="preinstall_gl"
10500 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10501 else
10502 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10503 fi
10504
10505 if test "$wxUSE_GUI" = "no"; then
10506 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
10507 fi
10508
10509 WX_TARGET_LIBRARY_TYPE="a"
10510fi
10511
10512
10513for ac_hdr in strings.h
10514do
10515ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10516echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10517echo "configure:10518: checking for $ac_hdr" >&5
10518if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10519 echo $ac_n "(cached) $ac_c" 1>&6
10520else
10521 cat > conftest.$ac_ext <<EOF
10522#line 10523 "configure"
10523#include "confdefs.h"
10524#include <$ac_hdr>
10525EOF
10526ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10527{ (eval echo configure:10528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10528ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10529if test -z "$ac_err"; then
10530 rm -rf conftest*
10531 eval "ac_cv_header_$ac_safe=yes"
10532else
10533 echo "$ac_err" >&5
10534 echo "configure: failed program was:" >&5
10535 cat conftest.$ac_ext >&5
10536 rm -rf conftest*
10537 eval "ac_cv_header_$ac_safe=no"
10538fi
10539rm -f conftest*
10540fi
10541if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10542 echo "$ac_t""yes" 1>&6
10543 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10544 cat >> confdefs.h <<EOF
10545#define $ac_tr_hdr 1
10546EOF
10547
10548else
10549 echo "$ac_t""no" 1>&6
10550fi
10551done
10552
10553for ac_hdr in stdlib.h
10554do
10555ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10556echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10557echo "configure:10558: checking for $ac_hdr" >&5
10558if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10559 echo $ac_n "(cached) $ac_c" 1>&6
10560else
10561 cat > conftest.$ac_ext <<EOF
10562#line 10563 "configure"
10563#include "confdefs.h"
10564#include <$ac_hdr>
10565EOF
10566ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10567{ (eval echo configure:10568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10568ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10569if test -z "$ac_err"; then
10570 rm -rf conftest*
10571 eval "ac_cv_header_$ac_safe=yes"
10572else
10573 echo "$ac_err" >&5
10574 echo "configure: failed program was:" >&5
10575 cat conftest.$ac_ext >&5
10576 rm -rf conftest*
10577 eval "ac_cv_header_$ac_safe=no"
10578fi
10579rm -f conftest*
10580fi
10581if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10582 echo "$ac_t""yes" 1>&6
10583 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10584 cat >> confdefs.h <<EOF
10585#define $ac_tr_hdr 1
10586EOF
10587
10588else
10589 echo "$ac_t""no" 1>&6
10590fi
10591done
10592
10593for ac_hdr in unistd.h
10594do
10595ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10596echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10597echo "configure:10598: checking for $ac_hdr" >&5
10598if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10599 echo $ac_n "(cached) $ac_c" 1>&6
10600else
10601 cat > conftest.$ac_ext <<EOF
10602#line 10603 "configure"
10603#include "confdefs.h"
10604#include <$ac_hdr>
10605EOF
10606ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10607{ (eval echo configure:10608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10608ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10609if test -z "$ac_err"; then
10610 rm -rf conftest*
10611 eval "ac_cv_header_$ac_safe=yes"
10612else
10613 echo "$ac_err" >&5
10614 echo "configure: failed program was:" >&5
10615 cat conftest.$ac_ext >&5
10616 rm -rf conftest*
10617 eval "ac_cv_header_$ac_safe=no"
10618fi
10619rm -f conftest*
10620fi
10621if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10622 echo "$ac_t""yes" 1>&6
10623 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10624 cat >> confdefs.h <<EOF
10625#define $ac_tr_hdr 1
10626EOF
10627
10628else
10629 echo "$ac_t""no" 1>&6
10630fi
10631done
10632
10633for ac_hdr in wchar.h
10634do
10635ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10636echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10637echo "configure:10638: checking for $ac_hdr" >&5
10638if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10639 echo $ac_n "(cached) $ac_c" 1>&6
10640else
10641 cat > conftest.$ac_ext <<EOF
10642#line 10643 "configure"
10643#include "confdefs.h"
10644#include <$ac_hdr>
10645EOF
10646ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10647{ (eval echo configure:10648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10648ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10649if test -z "$ac_err"; then
10650 rm -rf conftest*
10651 eval "ac_cv_header_$ac_safe=yes"
10652else
10653 echo "$ac_err" >&5
10654 echo "configure: failed program was:" >&5
10655 cat conftest.$ac_ext >&5
10656 rm -rf conftest*
10657 eval "ac_cv_header_$ac_safe=no"
10658fi
10659rm -f conftest*
10660fi
10661if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10662 echo "$ac_t""yes" 1>&6
10663 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10664 cat >> confdefs.h <<EOF
10665#define $ac_tr_hdr 1
10666EOF
10667
10668else
10669 echo "$ac_t""no" 1>&6
10670fi
10671done
10672
10673for ac_hdr in wcstr.h
10674do
10675ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10676echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10677echo "configure:10678: checking for $ac_hdr" >&5
10678if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10679 echo $ac_n "(cached) $ac_c" 1>&6
10680else
10681 cat > conftest.$ac_ext <<EOF
10682#line 10683 "configure"
10683#include "confdefs.h"
10684#include <$ac_hdr>
10685EOF
10686ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10687{ (eval echo configure:10688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10688ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10689if test -z "$ac_err"; then
10690 rm -rf conftest*
10691 eval "ac_cv_header_$ac_safe=yes"
10692else
10693 echo "$ac_err" >&5
10694 echo "configure: failed program was:" >&5
10695 cat conftest.$ac_ext >&5
10696 rm -rf conftest*
10697 eval "ac_cv_header_$ac_safe=no"
10698fi
10699rm -f conftest*
10700fi
10701if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10702 echo "$ac_t""yes" 1>&6
10703 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10704 cat >> confdefs.h <<EOF
10705#define $ac_tr_hdr 1
10706EOF
10707
10708else
10709 echo "$ac_t""no" 1>&6
10710fi
10711done
10712
10713for ac_hdr in fnmatch.h
10714do
10715ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10716echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10717echo "configure:10718: checking for $ac_hdr" >&5
10718if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10719 echo $ac_n "(cached) $ac_c" 1>&6
10720else
10721 cat > conftest.$ac_ext <<EOF
10722#line 10723 "configure"
10723#include "confdefs.h"
10724#include <$ac_hdr>
10725EOF
10726ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10727{ (eval echo configure:10728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10728ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10729if test -z "$ac_err"; then
10730 rm -rf conftest*
10731 eval "ac_cv_header_$ac_safe=yes"
10732else
10733 echo "$ac_err" >&5
10734 echo "configure: failed program was:" >&5
10735 cat conftest.$ac_ext >&5
10736 rm -rf conftest*
10737 eval "ac_cv_header_$ac_safe=no"
10738fi
10739rm -f conftest*
10740fi
10741if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10742 echo "$ac_t""yes" 1>&6
10743 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10744 cat >> confdefs.h <<EOF
10745#define $ac_tr_hdr 1
10746EOF
10747
10748else
10749 echo "$ac_t""no" 1>&6
10750fi
10751done
10752
10753for ac_hdr in iconv.h
10754do
10755ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10756echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10757echo "configure:10758: checking for $ac_hdr" >&5
10758if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10759 echo $ac_n "(cached) $ac_c" 1>&6
10760else
10761 cat > conftest.$ac_ext <<EOF
10762#line 10763 "configure"
10763#include "confdefs.h"
10764#include <$ac_hdr>
10765EOF
10766ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10767{ (eval echo configure:10768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10768ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10769if test -z "$ac_err"; then
10770 rm -rf conftest*
10771 eval "ac_cv_header_$ac_safe=yes"
10772else
10773 echo "$ac_err" >&5
10774 echo "configure: failed program was:" >&5
10775 cat conftest.$ac_ext >&5
10776 rm -rf conftest*
10777 eval "ac_cv_header_$ac_safe=no"
10778fi
10779rm -f conftest*
10780fi
10781if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10782 echo "$ac_t""yes" 1>&6
10783 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10784 cat >> confdefs.h <<EOF
10785#define $ac_tr_hdr 1
10786EOF
10787
10788else
10789 echo "$ac_t""no" 1>&6
10790fi
10791done
10792
10793for ac_hdr in langinfo.h
10794do
10795ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10796echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10797echo "configure:10798: checking for $ac_hdr" >&5
10798if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10799 echo $ac_n "(cached) $ac_c" 1>&6
10800else
10801 cat > conftest.$ac_ext <<EOF
10802#line 10803 "configure"
10803#include "confdefs.h"
10804#include <$ac_hdr>
10805EOF
10806ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10807{ (eval echo configure:10808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10808ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10809if test -z "$ac_err"; then
10810 rm -rf conftest*
10811 eval "ac_cv_header_$ac_safe=yes"
10812else
10813 echo "$ac_err" >&5
10814 echo "configure: failed program was:" >&5
10815 cat conftest.$ac_ext >&5
10816 rm -rf conftest*
10817 eval "ac_cv_header_$ac_safe=no"
10818fi
10819rm -f conftest*
10820fi
10821if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10822 echo "$ac_t""yes" 1>&6
10823 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10824 cat >> confdefs.h <<EOF
10825#define $ac_tr_hdr 1
10826EOF
10827
10828else
10829 echo "$ac_t""no" 1>&6
10830fi
10831done
10832
10833
10834if test "$wxUSE_GUI" = "yes"; then
10835 if test "$wxUSE_UNIX" = "yes"; then
10836 for ac_hdr in X11/XKBlib.h
10837do
10838ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10839echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10840echo "configure:10841: checking for $ac_hdr" >&5
10841if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10842 echo $ac_n "(cached) $ac_c" 1>&6
10843else
10844 cat > conftest.$ac_ext <<EOF
10845#line 10846 "configure"
10846#include "confdefs.h"
10847#include <$ac_hdr>
10848EOF
10849ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10850{ (eval echo configure:10851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10851ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10852if test -z "$ac_err"; then
10853 rm -rf conftest*
10854 eval "ac_cv_header_$ac_safe=yes"
10855else
10856 echo "$ac_err" >&5
10857 echo "configure: failed program was:" >&5
10858 cat conftest.$ac_ext >&5
10859 rm -rf conftest*
10860 eval "ac_cv_header_$ac_safe=no"
10861fi
10862rm -f conftest*
10863fi
10864if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10865 echo "$ac_t""yes" 1>&6
10866 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10867 cat >> confdefs.h <<EOF
10868#define $ac_tr_hdr 1
10869EOF
10870
10871else
10872 echo "$ac_t""no" 1>&6
10873fi
10874done
10875
10876 fi
10877fi
10878
10879
10880echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
10881echo "configure:10882: checking for ANSI C header files" >&5
10882if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
10883 echo $ac_n "(cached) $ac_c" 1>&6
10884else
10885 cat > conftest.$ac_ext <<EOF
10886#line 10887 "configure"
10887#include "confdefs.h"
10888#include <stdlib.h>
10889#include <stdarg.h>
10890#include <string.h>
10891#include <float.h>
10892EOF
10893ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10894{ (eval echo configure:10895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10895ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10896if test -z "$ac_err"; then
10897 rm -rf conftest*
10898 ac_cv_header_stdc=yes
10899else
10900 echo "$ac_err" >&5
10901 echo "configure: failed program was:" >&5
10902 cat conftest.$ac_ext >&5
10903 rm -rf conftest*
10904 ac_cv_header_stdc=no
10905fi
10906rm -f conftest*
10907
10908if test $ac_cv_header_stdc = yes; then
10909 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10910cat > conftest.$ac_ext <<EOF
10911#line 10912 "configure"
10912#include "confdefs.h"
10913#include <string.h>
10914EOF
10915if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10916 egrep "memchr" >/dev/null 2>&1; then
10917 :
10918else
10919 rm -rf conftest*
10920 ac_cv_header_stdc=no
10921fi
10922rm -f conftest*
10923
10924fi
10925
10926if test $ac_cv_header_stdc = yes; then
10927 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10928cat > conftest.$ac_ext <<EOF
10929#line 10930 "configure"
10930#include "confdefs.h"
10931#include <stdlib.h>
10932EOF
10933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10934 egrep "free" >/dev/null 2>&1; then
10935 :
10936else
10937 rm -rf conftest*
10938 ac_cv_header_stdc=no
10939fi
10940rm -f conftest*
10941
10942fi
10943
10944if test $ac_cv_header_stdc = yes; then
10945 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10946if test "$cross_compiling" = yes; then
10947 :
10948else
10949 cat > conftest.$ac_ext <<EOF
10950#line 10951 "configure"
10951#include "confdefs.h"
10952#include <ctype.h>
10953#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10954#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10955#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10956int main () { int i; for (i = 0; i < 256; i++)
10957if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
10958exit (0); }
10959
10960EOF
10961if { (eval echo configure:10962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10962then
10963 :
10964else
10965 echo "configure: failed program was:" >&5
10966 cat conftest.$ac_ext >&5
10967 rm -fr conftest*
10968 ac_cv_header_stdc=no
10969fi
10970rm -fr conftest*
10971fi
10972
10973fi
10974fi
10975
10976echo "$ac_t""$ac_cv_header_stdc" 1>&6
10977if test $ac_cv_header_stdc = yes; then
10978 cat >> confdefs.h <<\EOF
10979#define STDC_HEADERS 1
10980EOF
10981
10982fi
10983
10984echo $ac_n "checking for mode_t""... $ac_c" 1>&6
10985echo "configure:10986: checking for mode_t" >&5
10986if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
10987 echo $ac_n "(cached) $ac_c" 1>&6
10988else
10989 cat > conftest.$ac_ext <<EOF
10990#line 10991 "configure"
10991#include "confdefs.h"
10992#include <sys/types.h>
10993#if STDC_HEADERS
10994#include <stdlib.h>
10995#include <stddef.h>
10996#endif
10997EOF
10998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10999 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11000 rm -rf conftest*
11001 ac_cv_type_mode_t=yes
11002else
11003 rm -rf conftest*
11004 ac_cv_type_mode_t=no
11005fi
11006rm -f conftest*
11007
11008fi
11009echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11010if test $ac_cv_type_mode_t = no; then
11011 cat >> confdefs.h <<\EOF
11012#define mode_t int
11013EOF
11014
11015fi
11016
11017echo $ac_n "checking for off_t""... $ac_c" 1>&6
11018echo "configure:11019: checking for off_t" >&5
11019if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11020 echo $ac_n "(cached) $ac_c" 1>&6
11021else
11022 cat > conftest.$ac_ext <<EOF
11023#line 11024 "configure"
11024#include "confdefs.h"
11025#include <sys/types.h>
11026#if STDC_HEADERS
11027#include <stdlib.h>
11028#include <stddef.h>
11029#endif
11030EOF
11031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11032 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11033 rm -rf conftest*
11034 ac_cv_type_off_t=yes
11035else
11036 rm -rf conftest*
11037 ac_cv_type_off_t=no
11038fi
11039rm -f conftest*
11040
11041fi
11042echo "$ac_t""$ac_cv_type_off_t" 1>&6
11043if test $ac_cv_type_off_t = no; then
11044 cat >> confdefs.h <<\EOF
11045#define off_t long
11046EOF
11047
11048fi
11049
11050echo $ac_n "checking for pid_t""... $ac_c" 1>&6
11051echo "configure:11052: checking for pid_t" >&5
11052if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11053 echo $ac_n "(cached) $ac_c" 1>&6
11054else
11055 cat > conftest.$ac_ext <<EOF
11056#line 11057 "configure"
11057#include "confdefs.h"
11058#include <sys/types.h>
11059#if STDC_HEADERS
11060#include <stdlib.h>
11061#include <stddef.h>
11062#endif
11063EOF
11064if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11065 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11066 rm -rf conftest*
11067 ac_cv_type_pid_t=yes
11068else
11069 rm -rf conftest*
11070 ac_cv_type_pid_t=no
11071fi
11072rm -f conftest*
11073
11074fi
11075echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11076if test $ac_cv_type_pid_t = no; then
11077 cat >> confdefs.h <<\EOF
11078#define pid_t int
11079EOF
11080
11081fi
11082
11083echo $ac_n "checking for size_t""... $ac_c" 1>&6
11084echo "configure:11085: checking for size_t" >&5
11085if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11086 echo $ac_n "(cached) $ac_c" 1>&6
11087else
11088 cat > conftest.$ac_ext <<EOF
11089#line 11090 "configure"
11090#include "confdefs.h"
11091#include <sys/types.h>
11092#if STDC_HEADERS
11093#include <stdlib.h>
11094#include <stddef.h>
11095#endif
11096EOF
11097if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11098 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11099 rm -rf conftest*
11100 ac_cv_type_size_t=yes
11101else
11102 rm -rf conftest*
11103 ac_cv_type_size_t=no
11104fi
11105rm -f conftest*
11106
11107fi
11108echo "$ac_t""$ac_cv_type_size_t" 1>&6
11109if test $ac_cv_type_size_t = no; then
11110 cat >> confdefs.h <<\EOF
11111#define size_t unsigned
11112EOF
11113
11114fi
11115
11116echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
11117echo "configure:11118: checking for uid_t in sys/types.h" >&5
11118if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
11119 echo $ac_n "(cached) $ac_c" 1>&6
11120else
11121 cat > conftest.$ac_ext <<EOF
11122#line 11123 "configure"
11123#include "confdefs.h"
11124#include <sys/types.h>
11125EOF
11126if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11127 egrep "uid_t" >/dev/null 2>&1; then
11128 rm -rf conftest*
11129 ac_cv_type_uid_t=yes
11130else
11131 rm -rf conftest*
11132 ac_cv_type_uid_t=no
11133fi
11134rm -f conftest*
11135
11136fi
11137
11138echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11139if test $ac_cv_type_uid_t = no; then
11140 cat >> confdefs.h <<\EOF
11141#define uid_t int
11142EOF
11143
11144 cat >> confdefs.h <<\EOF
11145#define gid_t int
11146EOF
11147
11148fi
11149
11150
11151echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
11152echo "configure:11153: checking for wchar_t" >&5
11153if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
11154 echo $ac_n "(cached) $ac_c" 1>&6
11155else
11156
11157 cat > conftest.$ac_ext <<EOF
11158#line 11159 "configure"
11159#include "confdefs.h"
11160#include <wchar.h>
11161int main() {
11162
11163 wchar_t wc, *ws;
11164 wc = L'a';
11165 ws = L"Hello, world!";
11166
11167; return 0; }
11168EOF
11169if { (eval echo configure:11170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11170 rm -rf conftest*
11171 wx_cv_type_wchar_t=yes
11172else
11173 echo "configure: failed program was:" >&5
11174 cat conftest.$ac_ext >&5
11175 rm -rf conftest*
11176 cat > conftest.$ac_ext <<EOF
11177#line 11178 "configure"
11178#include "confdefs.h"
11179#include <stdlib.h>
11180int main() {
11181
11182 wchar_t wc, *ws;
11183 wc = L'a';
11184 ws = L"Hello, world!";
11185
11186; return 0; }
11187EOF
11188if { (eval echo configure:11189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11189 rm -rf conftest*
11190 wx_cv_type_wchar_t=yes
11191else
11192 echo "configure: failed program was:" >&5
11193 cat conftest.$ac_ext >&5
11194 rm -rf conftest*
11195 wx_cv_type_wchar_t=no
11196fi
11197rm -f conftest*
11198
11199fi
11200rm -f conftest*
11201
11202fi
11203
11204echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
11205
11206if test "$wx_cv_type_wchar_t" = "yes"; then
11207 cat >> confdefs.h <<\EOF
11208#define wxUSE_WCHAR_T 1
11209EOF
11210
11211fi
11212
11213
11214ac_ext=C
11215# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11216ac_cpp='$CXXCPP $CPPFLAGS'
11217ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11218ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11219cross_compiling=$ac_cv_prog_cxx_cross
11220
11221echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
11222echo "configure:11223: checking if size_t is unsigned int" >&5
11223if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
11224 echo $ac_n "(cached) $ac_c" 1>&6
11225else
11226 cat > conftest.$ac_ext <<EOF
11227#line 11228 "configure"
11228#include "confdefs.h"
11229#include <stddef.h>
11230int main() {
11231
11232 return 0; }
11233
11234 struct Foo { void foo(size_t); void foo(unsigned int); };
11235
11236 int bar() {
11237
11238; return 0; }
11239EOF
11240if { (eval echo configure:11241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11241 rm -rf conftest*
11242 wx_cv_size_t_is_uint=no
11243else
11244 echo "configure: failed program was:" >&5
11245 cat conftest.$ac_ext >&5
11246 rm -rf conftest*
11247 wx_cv_size_t_is_uint=yes
11248
11249fi
11250rm -f conftest*
11251
11252fi
11253
11254echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
11255
11256if test "$wx_cv_size_t_is_uint" = "yes"; then
11257 cat >> confdefs.h <<\EOF
11258#define wxSIZE_T_IS_UINT 1
11259EOF
11260
11261else
11262 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
11263echo "configure:11264: checking if size_t is unsigned long" >&5
11264if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
11265 echo $ac_n "(cached) $ac_c" 1>&6
11266else
11267 cat > conftest.$ac_ext <<EOF
11268#line 11269 "configure"
11269#include "confdefs.h"
11270#include <stddef.h>
11271int main() {
11272
11273 return 0; }
11274
11275 struct Foo { void foo(size_t); void foo(unsigned long); };
11276
11277 int bar() {
11278
11279; return 0; }
11280EOF
11281if { (eval echo configure:11282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11282 rm -rf conftest*
11283 wx_cv_size_t_is_ulong=no
11284else
11285 echo "configure: failed program was:" >&5
11286 cat conftest.$ac_ext >&5
11287 rm -rf conftest*
11288 wx_cv_size_t_is_ulong=yes
11289
11290fi
11291rm -f conftest*
11292
11293fi
11294
11295echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
11296
11297 if test "$wx_cv_size_t_is_ulong" = "yes"; then
11298 cat >> confdefs.h <<\EOF
11299#define wxSIZE_T_IS_ULONG 1
11300EOF
11301
11302 fi
11303fi
11304
11305ac_ext=c
11306# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11307ac_cpp='$CPP $CPPFLAGS'
11308ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11309ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11310cross_compiling=$ac_cv_prog_cc_cross
11311
11312
11313
11314echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
11315echo "configure:11316: checking for pw_gecos in struct passwd" >&5
11316if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
11317 echo $ac_n "(cached) $ac_c" 1>&6
11318else
11319
11320 cat > conftest.$ac_ext <<EOF
11321#line 11322 "configure"
11322#include "confdefs.h"
11323#include <pwd.h>
11324int main() {
11325
11326 char *p;
11327 struct passwd *pw;
11328 p = pw->pw_gecos;
11329
11330; return 0; }
11331EOF
11332if { (eval echo configure:11333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11333 rm -rf conftest*
11334
11335 wx_cv_struct_pw_gecos=yes
11336
11337else
11338 echo "configure: failed program was:" >&5
11339 cat conftest.$ac_ext >&5
11340 rm -rf conftest*
11341
11342 wx_cv_struct_pw_gecos=no
11343
11344
11345fi
11346rm -f conftest*
11347
11348
11349fi
11350
11351echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
11352
11353if test "$wx_cv_struct_pw_gecos" = "yes"; then
11354 cat >> confdefs.h <<\EOF
11355#define HAVE_PW_GECOS 1
11356EOF
11357
11358fi
11359
11360
11361echo $ac_n "checking for working const""... $ac_c" 1>&6
11362echo "configure:11363: checking for working const" >&5
11363if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
11364 echo $ac_n "(cached) $ac_c" 1>&6
11365else
11366 cat > conftest.$ac_ext <<EOF
11367#line 11368 "configure"
11368#include "confdefs.h"
11369
11370int main() {
11371
11372/* Ultrix mips cc rejects this. */
11373typedef int charset[2]; const charset x;
11374/* SunOS 4.1.1 cc rejects this. */
11375char const *const *ccp;
11376char **p;
11377/* NEC SVR4.0.2 mips cc rejects this. */
11378struct point {int x, y;};
11379static struct point const zero = {0,0};
11380/* AIX XL C 1.02.0.0 rejects this.
11381 It does not let you subtract one const X* pointer from another in an arm
11382 of an if-expression whose if-part is not a constant expression */
11383const char *g = "string";
11384ccp = &g + (g ? g-g : 0);
11385/* HPUX 7.0 cc rejects these. */
11386++ccp;
11387p = (char**) ccp;
11388ccp = (char const *const *) p;
11389{ /* SCO 3.2v4 cc rejects this. */
11390 char *t;
11391 char const *s = 0 ? (char *) 0 : (char const *) 0;
11392
11393 *t++ = 0;
11394}
11395{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11396 int x[] = {25, 17};
11397 const int *foo = &x[0];
11398 ++foo;
11399}
11400{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11401 typedef const int *iptr;
11402 iptr p = 0;
11403 ++p;
11404}
11405{ /* AIX XL C 1.02.0.0 rejects this saying
11406 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11407 struct s { int j; const int *ap[3]; };
11408 struct s *b; b->j = 5;
11409}
11410{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11411 const int foo = 10;
11412}
11413
11414; return 0; }
11415EOF
11416if { (eval echo configure:11417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11417 rm -rf conftest*
11418 ac_cv_c_const=yes
11419else
11420 echo "configure: failed program was:" >&5
11421 cat conftest.$ac_ext >&5
11422 rm -rf conftest*
11423 ac_cv_c_const=no
11424fi
11425rm -f conftest*
11426fi
11427
11428echo "$ac_t""$ac_cv_c_const" 1>&6
11429if test $ac_cv_c_const = no; then
11430 cat >> confdefs.h <<\EOF
11431#define const
11432EOF
11433
11434fi
11435
11436echo $ac_n "checking for inline""... $ac_c" 1>&6
11437echo "configure:11438: checking for inline" >&5
11438if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
11439 echo $ac_n "(cached) $ac_c" 1>&6
11440else
11441 ac_cv_c_inline=no
11442for ac_kw in inline __inline__ __inline; do
11443 cat > conftest.$ac_ext <<EOF
11444#line 11445 "configure"
11445#include "confdefs.h"
11446
11447int main() {
11448} $ac_kw foo() {
11449; return 0; }
11450EOF
11451if { (eval echo configure:11452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11452 rm -rf conftest*
11453 ac_cv_c_inline=$ac_kw; break
11454else
11455 echo "configure: failed program was:" >&5
11456 cat conftest.$ac_ext >&5
11457fi
11458rm -f conftest*
11459done
11460
11461fi
11462
11463echo "$ac_t""$ac_cv_c_inline" 1>&6
11464case "$ac_cv_c_inline" in
11465 inline | yes) ;;
11466 no) cat >> confdefs.h <<\EOF
11467#define inline
11468EOF
11469 ;;
11470 *) cat >> confdefs.h <<EOF
11471#define inline $ac_cv_c_inline
11472EOF
11473 ;;
11474esac
11475
11476
11477echo $ac_n "checking size of char""... $ac_c" 1>&6
11478echo "configure:11479: checking size of char" >&5
11479if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
11480 echo $ac_n "(cached) $ac_c" 1>&6
11481else
11482 if test "$cross_compiling" = yes; then
11483 ac_cv_sizeof_char=1
11484else
11485 cat > conftest.$ac_ext <<EOF
11486#line 11487 "configure"
11487#include "confdefs.h"
11488#include <stdio.h>
11489main()
11490{
11491 FILE *f=fopen("conftestval", "w");
11492 if (!f) exit(1);
11493 fprintf(f, "%d\n", sizeof(char));
11494 exit(0);
11495}
11496EOF
11497if { (eval echo configure:11498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11498then
11499 ac_cv_sizeof_char=`cat conftestval`
11500else
11501 echo "configure: failed program was:" >&5
11502 cat conftest.$ac_ext >&5
11503 rm -fr conftest*
11504 ac_cv_sizeof_char=0
11505fi
11506rm -fr conftest*
11507fi
11508
11509fi
11510echo "$ac_t""$ac_cv_sizeof_char" 1>&6
11511cat >> confdefs.h <<EOF
11512#define SIZEOF_CHAR $ac_cv_sizeof_char
11513EOF
11514
11515
11516echo $ac_n "checking size of short""... $ac_c" 1>&6
11517echo "configure:11518: checking size of short" >&5
11518if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
11519 echo $ac_n "(cached) $ac_c" 1>&6
11520else
11521 if test "$cross_compiling" = yes; then
11522 ac_cv_sizeof_short=2
11523else
11524 cat > conftest.$ac_ext <<EOF
11525#line 11526 "configure"
11526#include "confdefs.h"
11527#include <stdio.h>
11528main()
11529{
11530 FILE *f=fopen("conftestval", "w");
11531 if (!f) exit(1);
11532 fprintf(f, "%d\n", sizeof(short));
11533 exit(0);
11534}
11535EOF
11536if { (eval echo configure:11537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11537then
11538 ac_cv_sizeof_short=`cat conftestval`
11539else
11540 echo "configure: failed program was:" >&5
11541 cat conftest.$ac_ext >&5
11542 rm -fr conftest*
11543 ac_cv_sizeof_short=0
11544fi
11545rm -fr conftest*
11546fi
11547
11548fi
11549echo "$ac_t""$ac_cv_sizeof_short" 1>&6
11550cat >> confdefs.h <<EOF
11551#define SIZEOF_SHORT $ac_cv_sizeof_short
11552EOF
11553
11554
11555echo $ac_n "checking size of int *""... $ac_c" 1>&6
11556echo "configure:11557: checking size of int *" >&5
11557if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
11558 echo $ac_n "(cached) $ac_c" 1>&6
11559else
11560 if test "$cross_compiling" = yes; then
11561 ac_cv_sizeof_int_p=4
11562else
11563 cat > conftest.$ac_ext <<EOF
11564#line 11565 "configure"
11565#include "confdefs.h"
11566#include <stdio.h>
11567main()
11568{
11569 FILE *f=fopen("conftestval", "w");
11570 if (!f) exit(1);
11571 fprintf(f, "%d\n", sizeof(int *));
11572 exit(0);
11573}
11574EOF
11575if { (eval echo configure:11576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11576then
11577 ac_cv_sizeof_int_p=`cat conftestval`
11578else
11579 echo "configure: failed program was:" >&5
11580 cat conftest.$ac_ext >&5
11581 rm -fr conftest*
11582 ac_cv_sizeof_int_p=0
11583fi
11584rm -fr conftest*
11585fi
11586
11587fi
11588echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
11589cat >> confdefs.h <<EOF
11590#define SIZEOF_INT_P $ac_cv_sizeof_int_p
11591EOF
11592
11593
11594echo $ac_n "checking size of int""... $ac_c" 1>&6
11595echo "configure:11596: checking size of int" >&5
11596if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
11597 echo $ac_n "(cached) $ac_c" 1>&6
11598else
11599 if test "$cross_compiling" = yes; then
11600 ac_cv_sizeof_int=4
11601else
11602 cat > conftest.$ac_ext <<EOF
11603#line 11604 "configure"
11604#include "confdefs.h"
11605#include <stdio.h>
11606main()
11607{
11608 FILE *f=fopen("conftestval", "w");
11609 if (!f) exit(1);
11610 fprintf(f, "%d\n", sizeof(int));
11611 exit(0);
11612}
11613EOF
11614if { (eval echo configure:11615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11615then
11616 ac_cv_sizeof_int=`cat conftestval`
11617else
11618 echo "configure: failed program was:" >&5
11619 cat conftest.$ac_ext >&5
11620 rm -fr conftest*
11621 ac_cv_sizeof_int=0
11622fi
11623rm -fr conftest*
11624fi
11625
11626fi
11627echo "$ac_t""$ac_cv_sizeof_int" 1>&6
11628cat >> confdefs.h <<EOF
11629#define SIZEOF_INT $ac_cv_sizeof_int
11630EOF
11631
11632
11633echo $ac_n "checking size of long""... $ac_c" 1>&6
11634echo "configure:11635: checking size of long" >&5
11635if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
11636 echo $ac_n "(cached) $ac_c" 1>&6
11637else
11638 if test "$cross_compiling" = yes; then
11639 ac_cv_sizeof_long=4
11640else
11641 cat > conftest.$ac_ext <<EOF
11642#line 11643 "configure"
11643#include "confdefs.h"
11644#include <stdio.h>
11645main()
11646{
11647 FILE *f=fopen("conftestval", "w");
11648 if (!f) exit(1);
11649 fprintf(f, "%d\n", sizeof(long));
11650 exit(0);
11651}
11652EOF
11653if { (eval echo configure:11654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11654then
11655 ac_cv_sizeof_long=`cat conftestval`
11656else
11657 echo "configure: failed program was:" >&5
11658 cat conftest.$ac_ext >&5
11659 rm -fr conftest*
11660 ac_cv_sizeof_long=0
11661fi
11662rm -fr conftest*
11663fi
11664
11665fi
11666echo "$ac_t""$ac_cv_sizeof_long" 1>&6
11667cat >> confdefs.h <<EOF
11668#define SIZEOF_LONG $ac_cv_sizeof_long
11669EOF
11670
11671
11672echo $ac_n "checking size of long long""... $ac_c" 1>&6
11673echo "configure:11674: checking size of long long" >&5
11674if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
11675 echo $ac_n "(cached) $ac_c" 1>&6
11676else
11677 if test "$cross_compiling" = yes; then
11678 ac_cv_sizeof_long_long=0
11679else
11680 cat > conftest.$ac_ext <<EOF
11681#line 11682 "configure"
11682#include "confdefs.h"
11683#include <stdio.h>
11684main()
11685{
11686 FILE *f=fopen("conftestval", "w");
11687 if (!f) exit(1);
11688 fprintf(f, "%d\n", sizeof(long long));
11689 exit(0);
11690}
11691EOF
11692if { (eval echo configure:11693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11693then
11694 ac_cv_sizeof_long_long=`cat conftestval`
11695else
11696 echo "configure: failed program was:" >&5
11697 cat conftest.$ac_ext >&5
11698 rm -fr conftest*
11699 ac_cv_sizeof_long_long=0
11700fi
11701rm -fr conftest*
11702fi
11703
11704fi
11705echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
11706cat >> confdefs.h <<EOF
11707#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11708EOF
11709
11710
11711
11712echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
11713echo "configure:11714: checking size of wchar_t" >&5
11714if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
11715 echo $ac_n "(cached) $ac_c" 1>&6
11716else
11717
11718 if test "$cross_compiling" = yes; then
11719 wx_cv_sizeof_wchar_t=4
11720
11721else
11722 cat > conftest.$ac_ext <<EOF
11723#line 11724 "configure"
11724#include "confdefs.h"
11725
11726 #ifdef HAVE_WCHAR_H
11727 # include <wchar.h>
11728 #endif
11729 #ifdef HAVE_STDLIB_H
11730 # include <stdlib.h>
11731 #endif
11732 #include <stdio.h>
11733 int main()
11734 {
11735 FILE *f=fopen("conftestval", "w");
11736 if (!f) exit(1);
11737 fprintf(f, "%i", sizeof(wchar_t));
11738 exit(0);
11739 }
11740
11741EOF
11742if { (eval echo configure:11743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11743then
11744 wx_cv_sizeof_wchar_t=`cat conftestval`
11745else
11746 echo "configure: failed program was:" >&5
11747 cat conftest.$ac_ext >&5
11748 rm -fr conftest*
11749 wx_cv_sizeof_wchar_t=0
11750fi
11751rm -fr conftest*
11752fi
11753
11754
11755fi
11756
11757echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
11758
11759cat >> confdefs.h <<EOF
11760#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
11761EOF
11762
11763
11764
11765echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
11766echo "configure:11767: checking whether byte ordering is bigendian" >&5
11767if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
11768 echo $ac_n "(cached) $ac_c" 1>&6
11769else
11770 ac_cv_c_bigendian=unknown
11771# See if sys/param.h defines the BYTE_ORDER macro.
11772cat > conftest.$ac_ext <<EOF
11773#line 11774 "configure"
11774#include "confdefs.h"
11775#include <sys/types.h>
11776#include <sys/param.h>
11777int main() {
11778
11779#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11780 bogus endian macros
11781#endif
11782; return 0; }
11783EOF
11784if { (eval echo configure:11785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11785 rm -rf conftest*
11786 # It does; now see whether it defined to BIG_ENDIAN or not.
11787cat > conftest.$ac_ext <<EOF
11788#line 11789 "configure"
11789#include "confdefs.h"
11790#include <sys/types.h>
11791#include <sys/param.h>
11792int main() {
11793
11794#if BYTE_ORDER != BIG_ENDIAN
11795 not big endian
11796#endif
11797; return 0; }
11798EOF
11799if { (eval echo configure:11800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11800 rm -rf conftest*
11801 ac_cv_c_bigendian=yes
11802else
11803 echo "configure: failed program was:" >&5
11804 cat conftest.$ac_ext >&5
11805 rm -rf conftest*
11806 ac_cv_c_bigendian=no
11807fi
11808rm -f conftest*
11809else
11810 echo "configure: failed program was:" >&5
11811 cat conftest.$ac_ext >&5
11812fi
11813rm -f conftest*
11814if test $ac_cv_c_bigendian = unknown; then
11815if test "$cross_compiling" = yes; then
11816 ac_cv_c_bigendian=unknown
11817else
11818 cat > conftest.$ac_ext <<EOF
11819#line 11820 "configure"
11820#include "confdefs.h"
11821main () {
11822 /* Are we little or big endian? From Harbison&Steele. */
11823 union
11824 {
11825 long l;
11826 char c[sizeof (long)];
11827 } u;
11828 u.l = 1;
11829 exit (u.c[sizeof (long) - 1] == 1);
11830}
11831EOF
11832if { (eval echo configure:11833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11833then
11834 ac_cv_c_bigendian=no
11835else
11836 echo "configure: failed program was:" >&5
11837 cat conftest.$ac_ext >&5
11838 rm -fr conftest*
11839 ac_cv_c_bigendian=yes
11840fi
11841rm -fr conftest*
11842fi
11843
11844fi
11845fi
11846
11847echo "$ac_t""$ac_cv_c_bigendian" 1>&6
11848if test $ac_cv_c_bigendian = unknown; then
11849 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
11850fi
11851if test $ac_cv_c_bigendian = yes; then
11852 cat >> confdefs.h <<\EOF
11853#define WORDS_BIGENDIAN 1
11854EOF
11855
11856fi
11857
11858
11859
11860 if test "$cross_compiling" = "yes"; then
11861 cat >> confdefs.h <<\EOF
11862#define wxUSE_IOSTREAMH 1
11863EOF
11864
11865 else
11866
11867 ac_ext=C
11868# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11869ac_cpp='$CXXCPP $CPPFLAGS'
11870ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11871ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11872cross_compiling=$ac_cv_prog_cxx_cross
11873
11874
11875 for ac_hdr in iostream
11876do
11877ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11878echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11879echo "configure:11880: checking for $ac_hdr" >&5
11880if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11881 echo $ac_n "(cached) $ac_c" 1>&6
11882else
11883 cat > conftest.$ac_ext <<EOF
11884#line 11885 "configure"
11885#include "confdefs.h"
11886#include <$ac_hdr>
11887EOF
11888ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11889{ (eval echo configure:11890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11890ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11891if test -z "$ac_err"; then
11892 rm -rf conftest*
11893 eval "ac_cv_header_$ac_safe=yes"
11894else
11895 echo "$ac_err" >&5
11896 echo "configure: failed program was:" >&5
11897 cat conftest.$ac_ext >&5
11898 rm -rf conftest*
11899 eval "ac_cv_header_$ac_safe=no"
11900fi
11901rm -f conftest*
11902fi
11903if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11904 echo "$ac_t""yes" 1>&6
11905 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11906 cat >> confdefs.h <<EOF
11907#define $ac_tr_hdr 1
11908EOF
11909
11910else
11911 echo "$ac_t""no" 1>&6
11912fi
11913done
11914
11915
11916 if test "$ac_cv_header_iostream" = "yes" ; then
11917 :
11918 else
11919 cat >> confdefs.h <<\EOF
11920#define wxUSE_IOSTREAMH 1
11921EOF
11922
11923 fi
11924
11925 ac_ext=c
11926# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11927ac_cpp='$CPP $CPPFLAGS'
11928ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11929ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11930cross_compiling=$ac_cv_prog_cc_cross
11931
11932 fi
11933
11934
11935
11936 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
11937echo "configure:11938: checking if C++ compiler supports bool" >&5
11938if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
11939 echo $ac_n "(cached) $ac_c" 1>&6
11940else
11941
11942
11943 ac_ext=C
11944# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11945ac_cpp='$CXXCPP $CPPFLAGS'
11946ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11947ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11948cross_compiling=$ac_cv_prog_cxx_cross
11949
11950
11951 cat > conftest.$ac_ext <<EOF
11952#line 11953 "configure"
11953#include "confdefs.h"
11954
11955
11956int main() {
11957
11958 bool b = true;
11959
11960 return 0;
11961
11962; return 0; }
11963EOF
11964if { (eval echo configure:11965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11965 rm -rf conftest*
11966
11967 wx_cv_cpp_bool=yes
11968
11969else
11970 echo "configure: failed program was:" >&5
11971 cat conftest.$ac_ext >&5
11972 rm -rf conftest*
11973
11974 wx_cv_cpp_bool=no
11975
11976
11977fi
11978rm -f conftest*
11979
11980 ac_ext=c
11981# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11982ac_cpp='$CPP $CPPFLAGS'
11983ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11984ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11985cross_compiling=$ac_cv_prog_cc_cross
11986
11987
11988fi
11989
11990echo "$ac_t""$wx_cv_cpp_bool" 1>&6
11991
11992 if test "$wx_cv_cpp_bool" = "yes"; then
11993 cat >> confdefs.h <<\EOF
11994#define HAVE_BOOL 1
11995EOF
11996
11997 fi
11998
11999
12000
12001echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
12002echo "configure:12003: checking if you need GNU extensions" >&5
12003if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
12004 echo $ac_n "(cached) $ac_c" 1>&6
12005else
12006
12007 cat > conftest.$ac_ext <<EOF
12008#line 12009 "configure"
12009#include "confdefs.h"
12010#include <features.h>
12011int main() {
12012
12013
12014#ifndef __GNU_LIBRARY__
12015 Compile error wanted
12016#endif
12017
12018
12019; return 0; }
12020EOF
12021if { (eval echo configure:12022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12022 rm -rf conftest*
12023 wx_cv_gnu_extensions=yes
12024else
12025 echo "configure: failed program was:" >&5
12026 cat conftest.$ac_ext >&5
12027 rm -rf conftest*
12028 wx_cv_gnu_extensions=no
12029fi
12030rm -f conftest*
12031
12032fi
12033
12034
12035echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
12036if test "$wx_cv_gnu_extensions" = "yes"; then
12037 cat >> confdefs.h <<EOF
12038#define _GNU_SOURCE 1
12039EOF
12040
12041fi
12042
12043
12044
12045echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
12046echo "configure:12047: checking for wcslen in -lc" >&5
12047ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12048if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12049 echo $ac_n "(cached) $ac_c" 1>&6
12050else
12051 ac_save_LIBS="$LIBS"
12052LIBS="-lc $LIBS"
12053cat > conftest.$ac_ext <<EOF
12054#line 12055 "configure"
12055#include "confdefs.h"
12056/* Override any gcc2 internal prototype to avoid an error. */
12057/* We use char because int might match the return type of a gcc2
12058 builtin and then its argument prototype would still apply. */
12059char wcslen();
12060
12061int main() {
12062wcslen()
12063; return 0; }
12064EOF
12065if { (eval echo configure:12066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12066 rm -rf conftest*
12067 eval "ac_cv_lib_$ac_lib_var=yes"
12068else
12069 echo "configure: failed program was:" >&5
12070 cat conftest.$ac_ext >&5
12071 rm -rf conftest*
12072 eval "ac_cv_lib_$ac_lib_var=no"
12073fi
12074rm -f conftest*
12075LIBS="$ac_save_LIBS"
12076
12077fi
12078if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12079 echo "$ac_t""yes" 1>&6
12080
12081 cat >> confdefs.h <<\EOF
12082#define HAVE_WCSLEN 1
12083EOF
12084
12085 WCHAR_LINK=""
12086
12087else
12088 echo "$ac_t""no" 1>&6
12089
12090 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
12091echo "configure:12092: checking for wcslen in -lw" >&5
12092ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12093if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12094 echo $ac_n "(cached) $ac_c" 1>&6
12095else
12096 ac_save_LIBS="$LIBS"
12097LIBS="-lw $LIBS"
12098cat > conftest.$ac_ext <<EOF
12099#line 12100 "configure"
12100#include "confdefs.h"
12101/* Override any gcc2 internal prototype to avoid an error. */
12102/* We use char because int might match the return type of a gcc2
12103 builtin and then its argument prototype would still apply. */
12104char wcslen();
12105
12106int main() {
12107wcslen()
12108; return 0; }
12109EOF
12110if { (eval echo configure:12111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12111 rm -rf conftest*
12112 eval "ac_cv_lib_$ac_lib_var=yes"
12113else
12114 echo "configure: failed program was:" >&5
12115 cat conftest.$ac_ext >&5
12116 rm -rf conftest*
12117 eval "ac_cv_lib_$ac_lib_var=no"
12118fi
12119rm -f conftest*
12120LIBS="$ac_save_LIBS"
12121
12122fi
12123if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12124 echo "$ac_t""yes" 1>&6
12125
12126 cat >> confdefs.h <<\EOF
12127#define HAVE_WCSLEN 1
12128EOF
12129
12130 WCHAR_LINK="-lw"
12131
12132else
12133 echo "$ac_t""no" 1>&6
12134fi
12135
12136
12137fi
12138
12139
12140echo $ac_n "checking for vprintf""... $ac_c" 1>&6
12141echo "configure:12142: checking for vprintf" >&5
12142if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
12143 echo $ac_n "(cached) $ac_c" 1>&6
12144else
12145 cat > conftest.$ac_ext <<EOF
12146#line 12147 "configure"
12147#include "confdefs.h"
12148/* System header to define __stub macros and hopefully few prototypes,
12149 which can conflict with char vprintf(); below. */
12150#include <assert.h>
12151/* Override any gcc2 internal prototype to avoid an error. */
12152/* We use char because int might match the return type of a gcc2
12153 builtin and then its argument prototype would still apply. */
12154char vprintf();
12155
12156int main() {
12157
12158/* The GNU C library defines this for functions which it implements
12159 to always fail with ENOSYS. Some functions are actually named
12160 something starting with __ and the normal name is an alias. */
12161#if defined (__stub_vprintf) || defined (__stub___vprintf)
12162choke me
12163#else
12164vprintf();
12165#endif
12166
12167; return 0; }
12168EOF
12169if { (eval echo configure:12170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12170 rm -rf conftest*
12171 eval "ac_cv_func_vprintf=yes"
12172else
12173 echo "configure: failed program was:" >&5
12174 cat conftest.$ac_ext >&5
12175 rm -rf conftest*
12176 eval "ac_cv_func_vprintf=no"
12177fi
12178rm -f conftest*
12179fi
12180
12181if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12182 echo "$ac_t""yes" 1>&6
12183 cat >> confdefs.h <<\EOF
12184#define HAVE_VPRINTF 1
12185EOF
12186
12187else
12188 echo "$ac_t""no" 1>&6
12189fi
12190
12191if test "$ac_cv_func_vprintf" != yes; then
12192echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
12193echo "configure:12194: checking for _doprnt" >&5
12194if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
12195 echo $ac_n "(cached) $ac_c" 1>&6
12196else
12197 cat > conftest.$ac_ext <<EOF
12198#line 12199 "configure"
12199#include "confdefs.h"
12200/* System header to define __stub macros and hopefully few prototypes,
12201 which can conflict with char _doprnt(); below. */
12202#include <assert.h>
12203/* Override any gcc2 internal prototype to avoid an error. */
12204/* We use char because int might match the return type of a gcc2
12205 builtin and then its argument prototype would still apply. */
12206char _doprnt();
12207
12208int main() {
12209
12210/* The GNU C library defines this for functions which it implements
12211 to always fail with ENOSYS. Some functions are actually named
12212 something starting with __ and the normal name is an alias. */
12213#if defined (__stub__doprnt) || defined (__stub____doprnt)
12214choke me
12215#else
12216_doprnt();
12217#endif
12218
12219; return 0; }
12220EOF
12221if { (eval echo configure:12222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12222 rm -rf conftest*
12223 eval "ac_cv_func__doprnt=yes"
12224else
12225 echo "configure: failed program was:" >&5
12226 cat conftest.$ac_ext >&5
12227 rm -rf conftest*
12228 eval "ac_cv_func__doprnt=no"
12229fi
12230rm -f conftest*
12231fi
12232
12233if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12234 echo "$ac_t""yes" 1>&6
12235 cat >> confdefs.h <<\EOF
12236#define HAVE_DOPRNT 1
12237EOF
12238
12239else
12240 echo "$ac_t""no" 1>&6
12241fi
12242
12243fi
12244
12245
12246
12247
12248
12249
12250
12251echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
12252echo "configure:12253: checking for vsnprintf" >&5
12253if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
12254 echo $ac_n "(cached) $ac_c" 1>&6
12255else
12256
12257 cat > conftest.$ac_ext <<EOF
12258#line 12259 "configure"
12259#include "confdefs.h"
12260
12261 #include <stdio.h>
12262 #include <stdarg.h>
12263
12264int main() {
12265
12266 int wx_test_vsnprintf(const char *, ...);
12267
12268 wx_test_vsnprintf("%s");
12269 return 0;
12270 }
12271
12272 int wx_test_vsnprintf(const char *fmt, ...)
12273 {
12274 char *s;
12275
12276 va_list argp;
12277 va_start(argp, fmt);
12278 vsnprintf(s, 42, fmt, argp);
12279 va_end(argp);
12280
12281; return 0; }
12282EOF
12283if { (eval echo configure:12284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12284 rm -rf conftest*
12285
12286 wx_cv_func_vsnprintf=yes
12287
12288else
12289 echo "configure: failed program was:" >&5
12290 cat conftest.$ac_ext >&5
12291 rm -rf conftest*
12292
12293 cat > conftest.$ac_ext <<EOF
12294#line 12295 "configure"
12295#include "confdefs.h"
12296
12297 #include <stdio.h>
12298 #include <stdarg.h>
12299
12300int main() {
12301
12302 int wx_test_vsnprintf(const char *, ...);
12303
12304 wx_test_vsnprintf("%s");
12305 return 0;
12306 }
12307
12308 int wx_test_vsnprintf(const char *fmt, ...)
12309 {
12310 char *s;
12311
12312 va_list argp;
12313 va_start(argp, fmt);
12314 _vsnprintf(s, 42, fmt, argp);
12315 va_end(argp);
12316
12317; return 0; }
12318EOF
12319if { (eval echo configure:12320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12320 rm -rf conftest*
12321
12322 wx_cv_func_vsnprintf=yes
12323
12324else
12325 echo "configure: failed program was:" >&5
12326 cat conftest.$ac_ext >&5
12327 rm -rf conftest*
12328
12329 wx_cv_func_vsnprintf=no
12330
12331fi
12332rm -f conftest*
12333
12334fi
12335rm -f conftest*
12336
12337fi
12338
12339echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
12340
12341if test "$wx_cv_func_vsnprintf" = yes; then
12342 cat >> confdefs.h <<\EOF
12343#define HAVE_VSNPRINTF 1
12344EOF
12345
12346else
12347 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
12348fi
12349
12350echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
12351echo "configure:12352: checking for vsscanf" >&5
12352if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
12353 echo $ac_n "(cached) $ac_c" 1>&6
12354else
12355
12356 cat > conftest.$ac_ext <<EOF
12357#line 12358 "configure"
12358#include "confdefs.h"
12359
12360 #include <stdio.h>
12361 #include <stdarg.h>
12362
12363int main() {
12364
12365 int wx_test_vsscanf(const char *, ...);
12366
12367 wx_test_vsscanf("%d");
12368 return 0;
12369 }
12370
12371 int wx_test_vsscanf(const char *fmt, ...)
12372 {
12373 va_list argp;
12374 va_start(argp, fmt);
12375 vsscanf("42", fmt, argp);
12376 va_end(argp);
12377
12378; return 0; }
12379EOF
12380if { (eval echo configure:12381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12381 rm -rf conftest*
12382
12383 wx_cv_func_vsscanf=yes
12384
12385else
12386 echo "configure: failed program was:" >&5
12387 cat conftest.$ac_ext >&5
12388 rm -rf conftest*
12389
12390 wx_cv_func_vsscanf=no
12391
12392fi
12393rm -f conftest*
12394
12395fi
12396
12397echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
12398
12399if test "$wx_cv_func_vsscanf" = yes; then
12400 cat >> confdefs.h <<\EOF
12401#define HAVE_VSSCANF 1
12402EOF
12403
12404fi
12405
12406if test "$TOOLKIT" != "MSW"; then
12407
12408
12409
12410ac_ext=C
12411# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12412ac_cpp='$CXXCPP $CPPFLAGS'
12413ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12414ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12415cross_compiling=$ac_cv_prog_cxx_cross
12416
12417echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
12418echo "configure:12419: checking if iconv() takes char**" >&5
12419if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
12420 echo $ac_n "(cached) $ac_c" 1>&6
12421else
12422
12423 cat > conftest.$ac_ext <<EOF
12424#line 12425 "configure"
12425#include "confdefs.h"
12426#include <iconv.h>
12427int main() {
12428
12429 char **inbuf, **outbuf;
12430 iconv_t cd;
12431 size_t insz, outsz;
12432 iconv(cd, inbuf, &insz, outbuf, &outsz);
12433
12434; return 0; }
12435EOF
12436if { (eval echo configure:12437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12437 rm -rf conftest*
12438 wx_cv_iconv_takes_char=yes
12439else
12440 echo "configure: failed program was:" >&5
12441 cat conftest.$ac_ext >&5
12442 rm -rf conftest*
12443 wx_cv_iconv_takes_char=no
12444fi
12445rm -f conftest*
12446
12447fi
12448
12449echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
12450ac_ext=c
12451# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12452ac_cpp='$CPP $CPPFLAGS'
12453ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12454ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12455cross_compiling=$ac_cv_prog_cc_cross
12456
12457if test "$wx_cv_iconv_takes_char" = yes ; then
12458 cat >> confdefs.h <<\EOF
12459#define WX_ICONV_TAKES_CHAR 1
12460EOF
12461
12462fi
12463
12464
12465if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
12466 for ac_func in sigaction
12467do
12468echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12469echo "configure:12470: checking for $ac_func" >&5
12470if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12471 echo $ac_n "(cached) $ac_c" 1>&6
12472else
12473 cat > conftest.$ac_ext <<EOF
12474#line 12475 "configure"
12475#include "confdefs.h"
12476/* System header to define __stub macros and hopefully few prototypes,
12477 which can conflict with char $ac_func(); below. */
12478#include <assert.h>
12479/* Override any gcc2 internal prototype to avoid an error. */
12480/* We use char because int might match the return type of a gcc2
12481 builtin and then its argument prototype would still apply. */
12482char $ac_func();
12483
12484int main() {
12485
12486/* The GNU C library defines this for functions which it implements
12487 to always fail with ENOSYS. Some functions are actually named
12488 something starting with __ and the normal name is an alias. */
12489#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12490choke me
12491#else
12492$ac_func();
12493#endif
12494
12495; return 0; }
12496EOF
12497if { (eval echo configure:12498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12498 rm -rf conftest*
12499 eval "ac_cv_func_$ac_func=yes"
12500else
12501 echo "configure: failed program was:" >&5
12502 cat conftest.$ac_ext >&5
12503 rm -rf conftest*
12504 eval "ac_cv_func_$ac_func=no"
12505fi
12506rm -f conftest*
12507fi
12508
12509if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12510 echo "$ac_t""yes" 1>&6
12511 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12512 cat >> confdefs.h <<EOF
12513#define $ac_tr_func 1
12514EOF
12515
12516else
12517 echo "$ac_t""no" 1>&6
12518fi
12519done
12520
12521
12522 if test "$ac_cv_func_sigaction" = "no"; then
12523 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
12524 wxUSE_ON_FATAL_EXCEPTION=no
12525 fi
12526
12527 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
12528
12529 ac_ext=C
12530# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12531ac_cpp='$CXXCPP $CPPFLAGS'
12532ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12533ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12534cross_compiling=$ac_cv_prog_cxx_cross
12535
12536
12537 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
12538echo "configure:12539: checking for sa_handler type" >&5
12539if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
12540 echo $ac_n "(cached) $ac_c" 1>&6
12541else
12542
12543 cat > conftest.$ac_ext <<EOF
12544#line 12545 "configure"
12545#include "confdefs.h"
12546#include <signal.h>
12547int main() {
12548
12549 extern void testSigHandler(int);
12550
12551 struct sigaction sa;
12552 sa.sa_handler = testSigHandler;
12553
12554; return 0; }
12555EOF
12556if { (eval echo configure:12557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12557 rm -rf conftest*
12558
12559 wx_cv_type_sa_handler=int
12560
12561else
12562 echo "configure: failed program was:" >&5
12563 cat conftest.$ac_ext >&5
12564 rm -rf conftest*
12565
12566 wx_cv_type_sa_handler=void
12567
12568fi
12569rm -f conftest*
12570
12571fi
12572
12573echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
12574
12575 ac_ext=c
12576# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12577ac_cpp='$CPP $CPPFLAGS'
12578ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12579ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12580cross_compiling=$ac_cv_prog_cc_cross
12581
12582
12583 cat >> confdefs.h <<EOF
12584#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
12585EOF
12586
12587 fi
12588fi
12589
12590for ac_func in vfork
12591do
12592echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12593echo "configure:12594: checking for $ac_func" >&5
12594if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12595 echo $ac_n "(cached) $ac_c" 1>&6
12596else
12597 cat > conftest.$ac_ext <<EOF
12598#line 12599 "configure"
12599#include "confdefs.h"
12600/* System header to define __stub macros and hopefully few prototypes,
12601 which can conflict with char $ac_func(); below. */
12602#include <assert.h>
12603/* Override any gcc2 internal prototype to avoid an error. */
12604/* We use char because int might match the return type of a gcc2
12605 builtin and then its argument prototype would still apply. */
12606char $ac_func();
12607
12608int main() {
12609
12610/* The GNU C library defines this for functions which it implements
12611 to always fail with ENOSYS. Some functions are actually named
12612 something starting with __ and the normal name is an alias. */
12613#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12614choke me
12615#else
12616$ac_func();
12617#endif
12618
12619; return 0; }
12620EOF
12621if { (eval echo configure:12622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12622 rm -rf conftest*
12623 eval "ac_cv_func_$ac_func=yes"
12624else
12625 echo "configure: failed program was:" >&5
12626 cat conftest.$ac_ext >&5
12627 rm -rf conftest*
12628 eval "ac_cv_func_$ac_func=no"
12629fi
12630rm -f conftest*
12631fi
12632
12633if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12634 echo "$ac_t""yes" 1>&6
12635 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12636 cat >> confdefs.h <<EOF
12637#define $ac_tr_func 1
12638EOF
12639
12640else
12641 echo "$ac_t""no" 1>&6
12642fi
12643done
12644
12645
12646if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
12647 for ac_func in fcntl flock
12648do
12649echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12650echo "configure:12651: checking for $ac_func" >&5
12651if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12652 echo $ac_n "(cached) $ac_c" 1>&6
12653else
12654 cat > conftest.$ac_ext <<EOF
12655#line 12656 "configure"
12656#include "confdefs.h"
12657/* System header to define __stub macros and hopefully few prototypes,
12658 which can conflict with char $ac_func(); below. */
12659#include <assert.h>
12660/* Override any gcc2 internal prototype to avoid an error. */
12661/* We use char because int might match the return type of a gcc2
12662 builtin and then its argument prototype would still apply. */
12663char $ac_func();
12664
12665int main() {
12666
12667/* The GNU C library defines this for functions which it implements
12668 to always fail with ENOSYS. Some functions are actually named
12669 something starting with __ and the normal name is an alias. */
12670#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12671choke me
12672#else
12673$ac_func();
12674#endif
12675
12676; return 0; }
12677EOF
12678if { (eval echo configure:12679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12679 rm -rf conftest*
12680 eval "ac_cv_func_$ac_func=yes"
12681else
12682 echo "configure: failed program was:" >&5
12683 cat conftest.$ac_ext >&5
12684 rm -rf conftest*
12685 eval "ac_cv_func_$ac_func=no"
12686fi
12687rm -f conftest*
12688fi
12689
12690if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12691 echo "$ac_t""yes" 1>&6
12692 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12693 cat >> confdefs.h <<EOF
12694#define $ac_tr_func 1
12695EOF
12696 break
12697else
12698 echo "$ac_t""no" 1>&6
12699fi
12700done
12701
12702
12703 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
12704 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
12705 wxUSE_SNGLINST_CHECKER=no
12706 fi
12707fi
12708
12709for ac_func in timegm
12710do
12711echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12712echo "configure:12713: checking for $ac_func" >&5
12713if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12714 echo $ac_n "(cached) $ac_c" 1>&6
12715else
12716 cat > conftest.$ac_ext <<EOF
12717#line 12718 "configure"
12718#include "confdefs.h"
12719/* System header to define __stub macros and hopefully few prototypes,
12720 which can conflict with char $ac_func(); below. */
12721#include <assert.h>
12722/* Override any gcc2 internal prototype to avoid an error. */
12723/* We use char because int might match the return type of a gcc2
12724 builtin and then its argument prototype would still apply. */
12725char $ac_func();
12726
12727int main() {
12728
12729/* The GNU C library defines this for functions which it implements
12730 to always fail with ENOSYS. Some functions are actually named
12731 something starting with __ and the normal name is an alias. */
12732#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12733choke me
12734#else
12735$ac_func();
12736#endif
12737
12738; return 0; }
12739EOF
12740if { (eval echo configure:12741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12741 rm -rf conftest*
12742 eval "ac_cv_func_$ac_func=yes"
12743else
12744 echo "configure: failed program was:" >&5
12745 cat conftest.$ac_ext >&5
12746 rm -rf conftest*
12747 eval "ac_cv_func_$ac_func=no"
12748fi
12749rm -f conftest*
12750fi
12751
12752if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12753 echo "$ac_t""yes" 1>&6
12754 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12755 cat >> confdefs.h <<EOF
12756#define $ac_tr_func 1
12757EOF
12758
12759else
12760 echo "$ac_t""no" 1>&6
12761fi
12762done
12763
12764
12765for ac_func in putenv setenv
12766do
12767echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12768echo "configure:12769: checking for $ac_func" >&5
12769if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12770 echo $ac_n "(cached) $ac_c" 1>&6
12771else
12772 cat > conftest.$ac_ext <<EOF
12773#line 12774 "configure"
12774#include "confdefs.h"
12775/* System header to define __stub macros and hopefully few prototypes,
12776 which can conflict with char $ac_func(); below. */
12777#include <assert.h>
12778/* Override any gcc2 internal prototype to avoid an error. */
12779/* We use char because int might match the return type of a gcc2
12780 builtin and then its argument prototype would still apply. */
12781char $ac_func();
12782
12783int main() {
12784
12785/* The GNU C library defines this for functions which it implements
12786 to always fail with ENOSYS. Some functions are actually named
12787 something starting with __ and the normal name is an alias. */
12788#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12789choke me
12790#else
12791$ac_func();
12792#endif
12793
12794; return 0; }
12795EOF
12796if { (eval echo configure:12797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12797 rm -rf conftest*
12798 eval "ac_cv_func_$ac_func=yes"
12799else
12800 echo "configure: failed program was:" >&5
12801 cat conftest.$ac_ext >&5
12802 rm -rf conftest*
12803 eval "ac_cv_func_$ac_func=no"
12804fi
12805rm -f conftest*
12806fi
12807
12808if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12809 echo "$ac_t""yes" 1>&6
12810 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12811 cat >> confdefs.h <<EOF
12812#define $ac_tr_func 1
12813EOF
12814 break
12815else
12816 echo "$ac_t""no" 1>&6
12817fi
12818done
12819
12820
12821HAVE_SOME_SLEEP_FUNC=0
12822if test "$USE_BEOS" = 1; then
12823 cat >> confdefs.h <<\EOF
12824#define HAVE_SLEEP 1
12825EOF
12826
12827 HAVE_SOME_SLEEP_FUNC=1
12828fi
12829
12830if test "$USE_MAC" = 1; then
12831 cat >> confdefs.h <<\EOF
12832#define HAVE_USLEEP 1
12833EOF
12834
12835 HAVE_SOME_SLEEP_FUNC=1
12836fi
12837
12838if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
12839 POSIX4_LINK=
12840 for ac_func in nanosleep
12841do
12842echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12843echo "configure:12844: checking for $ac_func" >&5
12844if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12845 echo $ac_n "(cached) $ac_c" 1>&6
12846else
12847 cat > conftest.$ac_ext <<EOF
12848#line 12849 "configure"
12849#include "confdefs.h"
12850/* System header to define __stub macros and hopefully few prototypes,
12851 which can conflict with char $ac_func(); below. */
12852#include <assert.h>
12853/* Override any gcc2 internal prototype to avoid an error. */
12854/* We use char because int might match the return type of a gcc2
12855 builtin and then its argument prototype would still apply. */
12856char $ac_func();
12857
12858int main() {
12859
12860/* The GNU C library defines this for functions which it implements
12861 to always fail with ENOSYS. Some functions are actually named
12862 something starting with __ and the normal name is an alias. */
12863#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12864choke me
12865#else
12866$ac_func();
12867#endif
12868
12869; return 0; }
12870EOF
12871if { (eval echo configure:12872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12872 rm -rf conftest*
12873 eval "ac_cv_func_$ac_func=yes"
12874else
12875 echo "configure: failed program was:" >&5
12876 cat conftest.$ac_ext >&5
12877 rm -rf conftest*
12878 eval "ac_cv_func_$ac_func=no"
12879fi
12880rm -f conftest*
12881fi
12882
12883if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12884 echo "$ac_t""yes" 1>&6
12885 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12886 cat >> confdefs.h <<EOF
12887#define $ac_tr_func 1
12888EOF
12889 cat >> confdefs.h <<\EOF
12890#define HAVE_NANOSLEEP 1
12891EOF
12892
12893else
12894 echo "$ac_t""no" 1>&6
12895echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
12896echo "configure:12897: checking for nanosleep in -lposix4" >&5
12897ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
12898if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12899 echo $ac_n "(cached) $ac_c" 1>&6
12900else
12901 ac_save_LIBS="$LIBS"
12902LIBS="-lposix4 $LIBS"
12903cat > conftest.$ac_ext <<EOF
12904#line 12905 "configure"
12905#include "confdefs.h"
12906/* Override any gcc2 internal prototype to avoid an error. */
12907/* We use char because int might match the return type of a gcc2
12908 builtin and then its argument prototype would still apply. */
12909char nanosleep();
12910
12911int main() {
12912nanosleep()
12913; return 0; }
12914EOF
12915if { (eval echo configure:12916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12916 rm -rf conftest*
12917 eval "ac_cv_lib_$ac_lib_var=yes"
12918else
12919 echo "configure: failed program was:" >&5
12920 cat conftest.$ac_ext >&5
12921 rm -rf conftest*
12922 eval "ac_cv_lib_$ac_lib_var=no"
12923fi
12924rm -f conftest*
12925LIBS="$ac_save_LIBS"
12926
12927fi
12928if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12929 echo "$ac_t""yes" 1>&6
12930
12931 cat >> confdefs.h <<\EOF
12932#define HAVE_NANOSLEEP 1
12933EOF
12934
12935 POSIX4_LINK="-lposix4"
12936
12937else
12938 echo "$ac_t""no" 1>&6
12939
12940 for ac_func in usleep
12941do
12942echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12943echo "configure:12944: checking for $ac_func" >&5
12944if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12945 echo $ac_n "(cached) $ac_c" 1>&6
12946else
12947 cat > conftest.$ac_ext <<EOF
12948#line 12949 "configure"
12949#include "confdefs.h"
12950/* System header to define __stub macros and hopefully few prototypes,
12951 which can conflict with char $ac_func(); below. */
12952#include <assert.h>
12953/* Override any gcc2 internal prototype to avoid an error. */
12954/* We use char because int might match the return type of a gcc2
12955 builtin and then its argument prototype would still apply. */
12956char $ac_func();
12957
12958int main() {
12959
12960/* The GNU C library defines this for functions which it implements
12961 to always fail with ENOSYS. Some functions are actually named
12962 something starting with __ and the normal name is an alias. */
12963#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12964choke me
12965#else
12966$ac_func();
12967#endif
12968
12969; return 0; }
12970EOF
12971if { (eval echo configure:12972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12972 rm -rf conftest*
12973 eval "ac_cv_func_$ac_func=yes"
12974else
12975 echo "configure: failed program was:" >&5
12976 cat conftest.$ac_ext >&5
12977 rm -rf conftest*
12978 eval "ac_cv_func_$ac_func=no"
12979fi
12980rm -f conftest*
12981fi
12982
12983if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12984 echo "$ac_t""yes" 1>&6
12985 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12986 cat >> confdefs.h <<EOF
12987#define $ac_tr_func 1
12988EOF
12989 cat >> confdefs.h <<\EOF
12990#define HAVE_USLEEP 1
12991EOF
12992
12993else
12994 echo "$ac_t""no" 1>&6
12995echo "configure: warning: wxSleep() function will not work" 1>&2
12996
12997fi
12998done
12999
13000
13001
13002fi
13003
13004
13005
13006fi
13007done
13008
13009fi
13010
13011for ac_func in uname gethostname
13012do
13013echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13014echo "configure:13015: checking for $ac_func" >&5
13015if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13016 echo $ac_n "(cached) $ac_c" 1>&6
13017else
13018 cat > conftest.$ac_ext <<EOF
13019#line 13020 "configure"
13020#include "confdefs.h"
13021/* System header to define __stub macros and hopefully few prototypes,
13022 which can conflict with char $ac_func(); below. */
13023#include <assert.h>
13024/* Override any gcc2 internal prototype to avoid an error. */
13025/* We use char because int might match the return type of a gcc2
13026 builtin and then its argument prototype would still apply. */
13027char $ac_func();
13028
13029int main() {
13030
13031/* The GNU C library defines this for functions which it implements
13032 to always fail with ENOSYS. Some functions are actually named
13033 something starting with __ and the normal name is an alias. */
13034#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13035choke me
13036#else
13037$ac_func();
13038#endif
13039
13040; return 0; }
13041EOF
13042if { (eval echo configure:13043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13043 rm -rf conftest*
13044 eval "ac_cv_func_$ac_func=yes"
13045else
13046 echo "configure: failed program was:" >&5
13047 cat conftest.$ac_ext >&5
13048 rm -rf conftest*
13049 eval "ac_cv_func_$ac_func=no"
13050fi
13051rm -f conftest*
13052fi
13053
13054if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13055 echo "$ac_t""yes" 1>&6
13056 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13057 cat >> confdefs.h <<EOF
13058#define $ac_tr_func 1
13059EOF
13060 break
13061else
13062 echo "$ac_t""no" 1>&6
13063fi
13064done
13065
13066
13067
13068ac_ext=C
13069# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13070ac_cpp='$CXXCPP $CPPFLAGS'
13071ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13072ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13073cross_compiling=$ac_cv_prog_cxx_cross
13074
13075
13076for ac_func in strtok_r
13077do
13078echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13079echo "configure:13080: checking for $ac_func" >&5
13080if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13081 echo $ac_n "(cached) $ac_c" 1>&6
13082else
13083 cat > conftest.$ac_ext <<EOF
13084#line 13085 "configure"
13085#include "confdefs.h"
13086/* System header to define __stub macros and hopefully few prototypes,
13087 which can conflict with char $ac_func(); below. */
13088#include <assert.h>
13089/* Override any gcc2 internal prototype to avoid an error. */
13090#ifdef __cplusplus
13091extern "C"
13092#endif
13093/* We use char because int might match the return type of a gcc2
13094 builtin and then its argument prototype would still apply. */
13095char $ac_func();
13096
13097int main() {
13098
13099/* The GNU C library defines this for functions which it implements
13100 to always fail with ENOSYS. Some functions are actually named
13101 something starting with __ and the normal name is an alias. */
13102#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13103choke me
13104#else
13105$ac_func();
13106#endif
13107
13108; return 0; }
13109EOF
13110if { (eval echo configure:13111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13111 rm -rf conftest*
13112 eval "ac_cv_func_$ac_func=yes"
13113else
13114 echo "configure: failed program was:" >&5
13115 cat conftest.$ac_ext >&5
13116 rm -rf conftest*
13117 eval "ac_cv_func_$ac_func=no"
13118fi
13119rm -f conftest*
13120fi
13121
13122if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13123 echo "$ac_t""yes" 1>&6
13124 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13125 cat >> confdefs.h <<EOF
13126#define $ac_tr_func 1
13127EOF
13128
13129else
13130 echo "$ac_t""no" 1>&6
13131fi
13132done
13133
13134
13135ac_ext=c
13136# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13137ac_cpp='$CPP $CPPFLAGS'
13138ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13139ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13140cross_compiling=$ac_cv_prog_cc_cross
13141
13142
13143INET_LINK=
13144for ac_func in inet_addr
13145do
13146echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13147echo "configure:13148: checking for $ac_func" >&5
13148if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13149 echo $ac_n "(cached) $ac_c" 1>&6
13150else
13151 cat > conftest.$ac_ext <<EOF
13152#line 13153 "configure"
13153#include "confdefs.h"
13154/* System header to define __stub macros and hopefully few prototypes,
13155 which can conflict with char $ac_func(); below. */
13156#include <assert.h>
13157/* Override any gcc2 internal prototype to avoid an error. */
13158/* We use char because int might match the return type of a gcc2
13159 builtin and then its argument prototype would still apply. */
13160char $ac_func();
13161
13162int main() {
13163
13164/* The GNU C library defines this for functions which it implements
13165 to always fail with ENOSYS. Some functions are actually named
13166 something starting with __ and the normal name is an alias. */
13167#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13168choke me
13169#else
13170$ac_func();
13171#endif
13172
13173; return 0; }
13174EOF
13175if { (eval echo configure:13176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13176 rm -rf conftest*
13177 eval "ac_cv_func_$ac_func=yes"
13178else
13179 echo "configure: failed program was:" >&5
13180 cat conftest.$ac_ext >&5
13181 rm -rf conftest*
13182 eval "ac_cv_func_$ac_func=no"
13183fi
13184rm -f conftest*
13185fi
13186
13187if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13188 echo "$ac_t""yes" 1>&6
13189 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13190 cat >> confdefs.h <<EOF
13191#define $ac_tr_func 1
13192EOF
13193 cat >> confdefs.h <<\EOF
13194#define HAVE_INET_ADDR 1
13195EOF
13196
13197else
13198 echo "$ac_t""no" 1>&6
13199echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
13200echo "configure:13201: checking for inet_addr in -lnsl" >&5
13201ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
13202if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13203 echo $ac_n "(cached) $ac_c" 1>&6
13204else
13205 ac_save_LIBS="$LIBS"
13206LIBS="-lnsl $LIBS"
13207cat > conftest.$ac_ext <<EOF
13208#line 13209 "configure"
13209#include "confdefs.h"
13210/* Override any gcc2 internal prototype to avoid an error. */
13211/* We use char because int might match the return type of a gcc2
13212 builtin and then its argument prototype would still apply. */
13213char inet_addr();
13214
13215int main() {
13216inet_addr()
13217; return 0; }
13218EOF
13219if { (eval echo configure:13220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13220 rm -rf conftest*
13221 eval "ac_cv_lib_$ac_lib_var=yes"
13222else
13223 echo "configure: failed program was:" >&5
13224 cat conftest.$ac_ext >&5
13225 rm -rf conftest*
13226 eval "ac_cv_lib_$ac_lib_var=no"
13227fi
13228rm -f conftest*
13229LIBS="$ac_save_LIBS"
13230
13231fi
13232if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13233 echo "$ac_t""yes" 1>&6
13234 INET_LINK="nsl"
13235else
13236 echo "$ac_t""no" 1>&6
13237echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
13238echo "configure:13239: checking for inet_addr in -lresolv" >&5
13239ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
13240if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13241 echo $ac_n "(cached) $ac_c" 1>&6
13242else
13243 ac_save_LIBS="$LIBS"
13244LIBS="-lresolv $LIBS"
13245cat > conftest.$ac_ext <<EOF
13246#line 13247 "configure"
13247#include "confdefs.h"
13248/* Override any gcc2 internal prototype to avoid an error. */
13249/* We use char because int might match the return type of a gcc2
13250 builtin and then its argument prototype would still apply. */
13251char inet_addr();
13252
13253int main() {
13254inet_addr()
13255; return 0; }
13256EOF
13257if { (eval echo configure:13258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13258 rm -rf conftest*
13259 eval "ac_cv_lib_$ac_lib_var=yes"
13260else
13261 echo "configure: failed program was:" >&5
13262 cat conftest.$ac_ext >&5
13263 rm -rf conftest*
13264 eval "ac_cv_lib_$ac_lib_var=no"
13265fi
13266rm -f conftest*
13267LIBS="$ac_save_LIBS"
13268
13269fi
13270if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13271 echo "$ac_t""yes" 1>&6
13272 INET_LINK="resolv"
13273
13274else
13275 echo "$ac_t""no" 1>&6
13276fi
13277
13278
13279fi
13280
13281
13282
13283fi
13284done
13285
13286
13287for ac_func in inet_aton
13288do
13289echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13290echo "configure:13291: checking for $ac_func" >&5
13291if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13292 echo $ac_n "(cached) $ac_c" 1>&6
13293else
13294 cat > conftest.$ac_ext <<EOF
13295#line 13296 "configure"
13296#include "confdefs.h"
13297/* System header to define __stub macros and hopefully few prototypes,
13298 which can conflict with char $ac_func(); below. */
13299#include <assert.h>
13300/* Override any gcc2 internal prototype to avoid an error. */
13301/* We use char because int might match the return type of a gcc2
13302 builtin and then its argument prototype would still apply. */
13303char $ac_func();
13304
13305int main() {
13306
13307/* The GNU C library defines this for functions which it implements
13308 to always fail with ENOSYS. Some functions are actually named
13309 something starting with __ and the normal name is an alias. */
13310#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13311choke me
13312#else
13313$ac_func();
13314#endif
13315
13316; return 0; }
13317EOF
13318if { (eval echo configure:13319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13319 rm -rf conftest*
13320 eval "ac_cv_func_$ac_func=yes"
13321else
13322 echo "configure: failed program was:" >&5
13323 cat conftest.$ac_ext >&5
13324 rm -rf conftest*
13325 eval "ac_cv_func_$ac_func=no"
13326fi
13327rm -f conftest*
13328fi
13329
13330if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13331 echo "$ac_t""yes" 1>&6
13332 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13333 cat >> confdefs.h <<EOF
13334#define $ac_tr_func 1
13335EOF
13336 cat >> confdefs.h <<\EOF
13337#define HAVE_INET_ATON 1
13338EOF
13339
13340else
13341 echo "$ac_t""no" 1>&6
13342 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
13343echo "configure:13344: checking for inet_aton in -l$INET_LINK" >&5
13344ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
13345if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13346 echo $ac_n "(cached) $ac_c" 1>&6
13347else
13348 ac_save_LIBS="$LIBS"
13349LIBS="-l$INET_LINK $LIBS"
13350cat > conftest.$ac_ext <<EOF
13351#line 13352 "configure"
13352#include "confdefs.h"
13353/* Override any gcc2 internal prototype to avoid an error. */
13354/* We use char because int might match the return type of a gcc2
13355 builtin and then its argument prototype would still apply. */
13356char inet_aton();
13357
13358int main() {
13359inet_aton()
13360; return 0; }
13361EOF
13362if { (eval echo configure:13363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13363 rm -rf conftest*
13364 eval "ac_cv_lib_$ac_lib_var=yes"
13365else
13366 echo "configure: failed program was:" >&5
13367 cat conftest.$ac_ext >&5
13368 rm -rf conftest*
13369 eval "ac_cv_lib_$ac_lib_var=no"
13370fi
13371rm -f conftest*
13372LIBS="$ac_save_LIBS"
13373
13374fi
13375if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13376 echo "$ac_t""yes" 1>&6
13377 cat >> confdefs.h <<\EOF
13378#define HAVE_INET_ATON 1
13379EOF
13380
13381else
13382 echo "$ac_t""no" 1>&6
13383fi
13384
13385
13386fi
13387done
13388
13389
13390if test "x$INET_LINK" != "x"; then
13391 cat >> confdefs.h <<\EOF
13392#define HAVE_INET_ADDR 1
13393EOF
13394
13395 INET_LINK="-l$INET_LINK"
13396fi
13397
13398fi
13399
13400
13401cat > confcache <<\EOF
13402# This file is a shell script that caches the results of configure
13403# tests run on this system so they can be shared between configure
13404# scripts and configure runs. It is not useful on other systems.
13405# If it contains results you don't want to keep, you may remove or edit it.
13406#
13407# By default, configure uses ./config.cache as the cache file,
13408# creating it if it does not exist already. You can give configure
13409# the --cache-file=FILE option to use a different cache file; that is
13410# what configure does when it calls configure scripts in
13411# subdirectories, so they share the cache.
13412# Giving --cache-file=/dev/null disables caching, for debugging configure.
13413# config.status only pays attention to the cache file if you give it the
13414# --recheck option to rerun configure.
13415#
13416EOF
13417# The following way of writing the cache mishandles newlines in values,
13418# but we know of no workaround that is simple, portable, and efficient.
13419# So, don't put newlines in cache variables' values.
13420# Ultrix sh set writes to stderr and can't be redirected directly,
13421# and sets the high bit in the cache file unless we assign to the vars.
13422(set) 2>&1 |
13423 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13424 *ac_space=\ *)
13425 # `set' does not quote correctly, so add quotes (double-quote substitution
13426 # turns \\\\ into \\, and sed turns \\ into \).
13427 sed -n \
13428 -e "s/'/'\\\\''/g" \
13429 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13430 ;;
13431 *)
13432 # `set' quotes correctly as required by POSIX, so do not add quotes.
13433 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13434 ;;
13435 esac >> confcache
13436if cmp -s $cache_file confcache; then
13437 :
13438else
13439 if test -w $cache_file; then
13440 echo "updating cache $cache_file"
13441 cat confcache > $cache_file
13442 else
13443 echo "not updating unwritable cache $cache_file"
13444 fi
13445fi
13446rm -f confcache
13447
13448
13449
13450if test "$TOOLKIT" != "MSW"; then
13451
13452
13453THREADS_LINK=""
13454THREADS_OBJ=""
13455
13456if test "$wxUSE_THREADS" = "yes" ; then
13457 if test "$wxUSE_WINE" = 1 ; then
13458 echo "configure: warning: Threads are not supported under WINE" 1>&2
13459 wxUSE_THREADS="no"
13460 elif test "$USE_BEOS" = 1; then
13461 echo "configure: warning: BeOS threads are not yet supported" 1>&2
13462 wxUSE_THREADS="no"
13463 fi
13464fi
13465
13466if test "$wxUSE_THREADS" = "yes" ; then
13467
13468 if test "$USE_AIX" = 1; then
13469 THREADS_LIB=pthreads
13470 else
13471 THREADS_LIB=pthread
13472 fi
13473
13474 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
13475echo "configure:13476: checking for pthread_create in -l$THREADS_LIB" >&5
13476ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
13477if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13478 echo $ac_n "(cached) $ac_c" 1>&6
13479else
13480 ac_save_LIBS="$LIBS"
13481LIBS="-l$THREADS_LIB $LIBS"
13482cat > conftest.$ac_ext <<EOF
13483#line 13484 "configure"
13484#include "confdefs.h"
13485/* Override any gcc2 internal prototype to avoid an error. */
13486/* We use char because int might match the return type of a gcc2
13487 builtin and then its argument prototype would still apply. */
13488char pthread_create();
13489
13490int main() {
13491pthread_create()
13492; return 0; }
13493EOF
13494if { (eval echo configure:13495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13495 rm -rf conftest*
13496 eval "ac_cv_lib_$ac_lib_var=yes"
13497else
13498 echo "configure: failed program was:" >&5
13499 cat conftest.$ac_ext >&5
13500 rm -rf conftest*
13501 eval "ac_cv_lib_$ac_lib_var=no"
13502fi
13503rm -f conftest*
13504LIBS="$ac_save_LIBS"
13505
13506fi
13507if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13508 echo "$ac_t""yes" 1>&6
13509
13510 THREADS_OBJ="threadpsx.lo"
13511 THREADS_LINK=$THREADS_LIB
13512
13513else
13514 echo "$ac_t""no" 1>&6
13515
13516 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
13517echo "configure:13518: checking for pthread_create in -lc_r" >&5
13518ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
13519if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13520 echo $ac_n "(cached) $ac_c" 1>&6
13521else
13522 ac_save_LIBS="$LIBS"
13523LIBS="-lc_r $LIBS"
13524cat > conftest.$ac_ext <<EOF
13525#line 13526 "configure"
13526#include "confdefs.h"
13527/* Override any gcc2 internal prototype to avoid an error. */
13528/* We use char because int might match the return type of a gcc2
13529 builtin and then its argument prototype would still apply. */
13530char pthread_create();
13531
13532int main() {
13533pthread_create()
13534; return 0; }
13535EOF
13536if { (eval echo configure:13537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13537 rm -rf conftest*
13538 eval "ac_cv_lib_$ac_lib_var=yes"
13539else
13540 echo "configure: failed program was:" >&5
13541 cat conftest.$ac_ext >&5
13542 rm -rf conftest*
13543 eval "ac_cv_lib_$ac_lib_var=no"
13544fi
13545rm -f conftest*
13546LIBS="$ac_save_LIBS"
13547
13548fi
13549if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13550 echo "$ac_t""yes" 1>&6
13551
13552 THREADS_OBJ="threadpsx.lo"
13553 THREADS_LINK="c_r"
13554
13555else
13556 echo "$ac_t""no" 1>&6
13557
13558 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
13559echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
13560echo "configure:13561: checking for sys/prctl.h" >&5
13561if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13562 echo $ac_n "(cached) $ac_c" 1>&6
13563else
13564 cat > conftest.$ac_ext <<EOF
13565#line 13566 "configure"
13566#include "confdefs.h"
13567#include <sys/prctl.h>
13568EOF
13569ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13570{ (eval echo configure:13571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13571ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13572if test -z "$ac_err"; then
13573 rm -rf conftest*
13574 eval "ac_cv_header_$ac_safe=yes"
13575else
13576 echo "$ac_err" >&5
13577 echo "configure: failed program was:" >&5
13578 cat conftest.$ac_ext >&5
13579 rm -rf conftest*
13580 eval "ac_cv_header_$ac_safe=no"
13581fi
13582rm -f conftest*
13583fi
13584if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13585 echo "$ac_t""yes" 1>&6
13586
13587 THREADS_OBJ="threadsgi.lo"
13588
13589else
13590 echo "$ac_t""no" 1>&6
13591fi
13592
13593
13594fi
13595
13596
13597fi
13598
13599
13600 if test -z "$THREADS_OBJ" ; then
13601 wxUSE_THREADS=no
13602 echo "configure: warning: No thread support on this system" 1>&2
13603 fi
13604fi
13605
13606if test "$wxUSE_THREADS" = "yes" ; then
13607 for ac_func in thr_setconcurrency
13608do
13609echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13610echo "configure:13611: checking for $ac_func" >&5
13611if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13612 echo $ac_n "(cached) $ac_c" 1>&6
13613else
13614 cat > conftest.$ac_ext <<EOF
13615#line 13616 "configure"
13616#include "confdefs.h"
13617/* System header to define __stub macros and hopefully few prototypes,
13618 which can conflict with char $ac_func(); below. */
13619#include <assert.h>
13620/* Override any gcc2 internal prototype to avoid an error. */
13621/* We use char because int might match the return type of a gcc2
13622 builtin and then its argument prototype would still apply. */
13623char $ac_func();
13624
13625int main() {
13626
13627/* The GNU C library defines this for functions which it implements
13628 to always fail with ENOSYS. Some functions are actually named
13629 something starting with __ and the normal name is an alias. */
13630#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13631choke me
13632#else
13633$ac_func();
13634#endif
13635
13636; return 0; }
13637EOF
13638if { (eval echo configure:13639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13639 rm -rf conftest*
13640 eval "ac_cv_func_$ac_func=yes"
13641else
13642 echo "configure: failed program was:" >&5
13643 cat conftest.$ac_ext >&5
13644 rm -rf conftest*
13645 eval "ac_cv_func_$ac_func=no"
13646fi
13647rm -f conftest*
13648fi
13649
13650if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13651 echo "$ac_t""yes" 1>&6
13652 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13653 cat >> confdefs.h <<EOF
13654#define $ac_tr_func 1
13655EOF
13656
13657else
13658 echo "$ac_t""no" 1>&6
13659fi
13660done
13661
13662
13663
13664 for ac_hdr in sched.h
13665do
13666ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13667echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13668echo "configure:13669: checking for $ac_hdr" >&5
13669if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13670 echo $ac_n "(cached) $ac_c" 1>&6
13671else
13672 cat > conftest.$ac_ext <<EOF
13673#line 13674 "configure"
13674#include "confdefs.h"
13675#include <$ac_hdr>
13676EOF
13677ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13678{ (eval echo configure:13679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13679ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13680if test -z "$ac_err"; then
13681 rm -rf conftest*
13682 eval "ac_cv_header_$ac_safe=yes"
13683else
13684 echo "$ac_err" >&5
13685 echo "configure: failed program was:" >&5
13686 cat conftest.$ac_ext >&5
13687 rm -rf conftest*
13688 eval "ac_cv_header_$ac_safe=no"
13689fi
13690rm -f conftest*
13691fi
13692if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13693 echo "$ac_t""yes" 1>&6
13694 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13695 cat >> confdefs.h <<EOF
13696#define $ac_tr_hdr 1
13697EOF
13698
13699else
13700 echo "$ac_t""no" 1>&6
13701fi
13702done
13703
13704
13705 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
13706echo "configure:13707: checking for sched_yield in -l$THREADS_LINK" >&5
13707ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
13708if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13709 echo $ac_n "(cached) $ac_c" 1>&6
13710else
13711 ac_save_LIBS="$LIBS"
13712LIBS="-l$THREADS_LINK $LIBS"
13713cat > conftest.$ac_ext <<EOF
13714#line 13715 "configure"
13715#include "confdefs.h"
13716/* Override any gcc2 internal prototype to avoid an error. */
13717/* We use char because int might match the return type of a gcc2
13718 builtin and then its argument prototype would still apply. */
13719char sched_yield();
13720
13721int main() {
13722sched_yield()
13723; return 0; }
13724EOF
13725if { (eval echo configure:13726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13726 rm -rf conftest*
13727 eval "ac_cv_lib_$ac_lib_var=yes"
13728else
13729 echo "configure: failed program was:" >&5
13730 cat conftest.$ac_ext >&5
13731 rm -rf conftest*
13732 eval "ac_cv_lib_$ac_lib_var=no"
13733fi
13734rm -f conftest*
13735LIBS="$ac_save_LIBS"
13736
13737fi
13738if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13739 echo "$ac_t""yes" 1>&6
13740 cat >> confdefs.h <<\EOF
13741#define HAVE_SCHED_YIELD 1
13742EOF
13743
13744else
13745 echo "$ac_t""no" 1>&6
13746echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
13747echo "configure:13748: checking for sched_yield in -lposix4" >&5
13748ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
13749if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13750 echo $ac_n "(cached) $ac_c" 1>&6
13751else
13752 ac_save_LIBS="$LIBS"
13753LIBS="-lposix4 $LIBS"
13754cat > conftest.$ac_ext <<EOF
13755#line 13756 "configure"
13756#include "confdefs.h"
13757/* Override any gcc2 internal prototype to avoid an error. */
13758/* We use char because int might match the return type of a gcc2
13759 builtin and then its argument prototype would still apply. */
13760char sched_yield();
13761
13762int main() {
13763sched_yield()
13764; return 0; }
13765EOF
13766if { (eval echo configure:13767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13767 rm -rf conftest*
13768 eval "ac_cv_lib_$ac_lib_var=yes"
13769else
13770 echo "configure: failed program was:" >&5
13771 cat conftest.$ac_ext >&5
13772 rm -rf conftest*
13773 eval "ac_cv_lib_$ac_lib_var=no"
13774fi
13775rm -f conftest*
13776LIBS="$ac_save_LIBS"
13777
13778fi
13779if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13780 echo "$ac_t""yes" 1>&6
13781 cat >> confdefs.h <<\EOF
13782#define HAVE_SCHED_YIELD 1
13783EOF
13784 POSIX4_LINK="-lposix4"
13785else
13786 echo "$ac_t""no" 1>&6
13787echo "configure: warning: wxThread::Yield will not work properly" 1>&2
13788
13789fi
13790
13791
13792fi
13793
13794
13795 HAVE_PRIOR_FUNCS=0
13796 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
13797echo "configure:13798: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
13798ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
13799if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13800 echo $ac_n "(cached) $ac_c" 1>&6
13801else
13802 ac_save_LIBS="$LIBS"
13803LIBS="-l$THREADS_LINK $LIBS"
13804cat > conftest.$ac_ext <<EOF
13805#line 13806 "configure"
13806#include "confdefs.h"
13807/* Override any gcc2 internal prototype to avoid an error. */
13808/* We use char because int might match the return type of a gcc2
13809 builtin and then its argument prototype would still apply. */
13810char pthread_attr_getschedpolicy();
13811
13812int main() {
13813pthread_attr_getschedpolicy()
13814; return 0; }
13815EOF
13816if { (eval echo configure:13817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13817 rm -rf conftest*
13818 eval "ac_cv_lib_$ac_lib_var=yes"
13819else
13820 echo "configure: failed program was:" >&5
13821 cat conftest.$ac_ext >&5
13822 rm -rf conftest*
13823 eval "ac_cv_lib_$ac_lib_var=no"
13824fi
13825rm -f conftest*
13826LIBS="$ac_save_LIBS"
13827
13828fi
13829if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13830 echo "$ac_t""yes" 1>&6
13831 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
13832echo "configure:13833: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
13833ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
13834if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13835 echo $ac_n "(cached) $ac_c" 1>&6
13836else
13837 ac_save_LIBS="$LIBS"
13838LIBS="-l$THREADS_LINK $LIBS"
13839cat > conftest.$ac_ext <<EOF
13840#line 13841 "configure"
13841#include "confdefs.h"
13842/* Override any gcc2 internal prototype to avoid an error. */
13843/* We use char because int might match the return type of a gcc2
13844 builtin and then its argument prototype would still apply. */
13845char pthread_attr_setschedparam();
13846
13847int main() {
13848pthread_attr_setschedparam()
13849; return 0; }
13850EOF
13851if { (eval echo configure:13852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13852 rm -rf conftest*
13853 eval "ac_cv_lib_$ac_lib_var=yes"
13854else
13855 echo "configure: failed program was:" >&5
13856 cat conftest.$ac_ext >&5
13857 rm -rf conftest*
13858 eval "ac_cv_lib_$ac_lib_var=no"
13859fi
13860rm -f conftest*
13861LIBS="$ac_save_LIBS"
13862
13863fi
13864if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13865 echo "$ac_t""yes" 1>&6
13866 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
13867echo "configure:13868: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
13868ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
13869if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13870 echo $ac_n "(cached) $ac_c" 1>&6
13871else
13872 ac_save_LIBS="$LIBS"
13873LIBS="-l$THREADS_LINK $LIBS"
13874cat > conftest.$ac_ext <<EOF
13875#line 13876 "configure"
13876#include "confdefs.h"
13877/* Override any gcc2 internal prototype to avoid an error. */
13878/* We use char because int might match the return type of a gcc2
13879 builtin and then its argument prototype would still apply. */
13880char sched_get_priority_max();
13881
13882int main() {
13883sched_get_priority_max()
13884; return 0; }
13885EOF
13886if { (eval echo configure:13887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13887 rm -rf conftest*
13888 eval "ac_cv_lib_$ac_lib_var=yes"
13889else
13890 echo "configure: failed program was:" >&5
13891 cat conftest.$ac_ext >&5
13892 rm -rf conftest*
13893 eval "ac_cv_lib_$ac_lib_var=no"
13894fi
13895rm -f conftest*
13896LIBS="$ac_save_LIBS"
13897
13898fi
13899if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13900 echo "$ac_t""yes" 1>&6
13901 HAVE_PRIOR_FUNCS=1
13902else
13903 echo "$ac_t""no" 1>&6
13904echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
13905echo "configure:13906: checking for sched_get_priority_max in -lposix4" >&5
13906ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
13907if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13908 echo $ac_n "(cached) $ac_c" 1>&6
13909else
13910 ac_save_LIBS="$LIBS"
13911LIBS="-lposix4 $LIBS"
13912cat > conftest.$ac_ext <<EOF
13913#line 13914 "configure"
13914#include "confdefs.h"
13915/* Override any gcc2 internal prototype to avoid an error. */
13916/* We use char because int might match the return type of a gcc2
13917 builtin and then its argument prototype would still apply. */
13918char sched_get_priority_max();
13919
13920int main() {
13921sched_get_priority_max()
13922; return 0; }
13923EOF
13924if { (eval echo configure:13925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13925 rm -rf conftest*
13926 eval "ac_cv_lib_$ac_lib_var=yes"
13927else
13928 echo "configure: failed program was:" >&5
13929 cat conftest.$ac_ext >&5
13930 rm -rf conftest*
13931 eval "ac_cv_lib_$ac_lib_var=no"
13932fi
13933rm -f conftest*
13934LIBS="$ac_save_LIBS"
13935
13936fi
13937if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13938 echo "$ac_t""yes" 1>&6
13939
13940 HAVE_PRIOR_FUNCS=1
13941 POSIX4_LINK="-lposix4"
13942
13943else
13944 echo "$ac_t""no" 1>&6
13945fi
13946
13947
13948fi
13949
13950
13951else
13952 echo "$ac_t""no" 1>&6
13953fi
13954
13955
13956else
13957 echo "$ac_t""no" 1>&6
13958fi
13959
13960
13961 if test "$HAVE_PRIOR_FUNCS" = 1; then
13962 cat >> confdefs.h <<\EOF
13963#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
13964EOF
13965
13966 else
13967 echo "configure: warning: Setting thread priority will not work" 1>&2
13968 fi
13969
13970 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
13971echo "configure:13972: checking for pthread_cancel in -l$THREADS_LINK" >&5
13972ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
13973if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13974 echo $ac_n "(cached) $ac_c" 1>&6
13975else
13976 ac_save_LIBS="$LIBS"
13977LIBS="-l$THREADS_LINK $LIBS"
13978cat > conftest.$ac_ext <<EOF
13979#line 13980 "configure"
13980#include "confdefs.h"
13981/* Override any gcc2 internal prototype to avoid an error. */
13982/* We use char because int might match the return type of a gcc2
13983 builtin and then its argument prototype would still apply. */
13984char pthread_cancel();
13985
13986int main() {
13987pthread_cancel()
13988; return 0; }
13989EOF
13990if { (eval echo configure:13991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13991 rm -rf conftest*
13992 eval "ac_cv_lib_$ac_lib_var=yes"
13993else
13994 echo "configure: failed program was:" >&5
13995 cat conftest.$ac_ext >&5
13996 rm -rf conftest*
13997 eval "ac_cv_lib_$ac_lib_var=no"
13998fi
13999rm -f conftest*
14000LIBS="$ac_save_LIBS"
14001
14002fi
14003if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14004 echo "$ac_t""yes" 1>&6
14005 cat >> confdefs.h <<\EOF
14006#define HAVE_PTHREAD_CANCEL 1
14007EOF
14008
14009else
14010 echo "$ac_t""no" 1>&6
14011echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
14012fi
14013
14014
14015 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
14016echo "configure:14017: checking for pthread_cleanup_push/pop" >&5
14017if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
14018 echo $ac_n "(cached) $ac_c" 1>&6
14019else
14020
14021 cat > conftest.$ac_ext <<EOF
14022#line 14023 "configure"
14023#include "confdefs.h"
14024#include <pthread.h>
14025int main() {
14026
14027 pthread_cleanup_push(NULL, NULL);
14028 pthread_cleanup_pop(0);
14029
14030; return 0; }
14031EOF
14032if { (eval echo configure:14033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14033 rm -rf conftest*
14034
14035 wx_cv_func_pthread_cleanup_push=yes
14036
14037else
14038 echo "configure: failed program was:" >&5
14039 cat conftest.$ac_ext >&5
14040 rm -rf conftest*
14041
14042 wx_cv_func_pthread_cleanup_push=no
14043
14044fi
14045rm -f conftest*
14046
14047fi
14048
14049echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
14050
14051 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
14052 cat >> confdefs.h <<\EOF
14053#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
14054EOF
14055
14056 fi
14057
14058
14059 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
14060echo "configure:14061: checking for pthread_mutexattr_t" >&5
14061if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
14062 echo $ac_n "(cached) $ac_c" 1>&6
14063else
14064
14065 cat > conftest.$ac_ext <<EOF
14066#line 14067 "configure"
14067#include "confdefs.h"
14068#include <pthread.h>
14069int main() {
14070
14071 pthread_mutexattr_t attr;
14072 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
14073
14074; return 0; }
14075EOF
14076if { (eval echo configure:14077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14077 rm -rf conftest*
14078
14079 wx_cv_type_pthread_mutexattr_t=yes
14080
14081else
14082 echo "configure: failed program was:" >&5
14083 cat conftest.$ac_ext >&5
14084 rm -rf conftest*
14085
14086 wx_cv_type_pthread_mutexattr_t=no
14087
14088
14089fi
14090rm -f conftest*
14091
14092fi
14093
14094echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
14095
14096 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
14097 cat >> confdefs.h <<\EOF
14098#define HAVE_PTHREAD_MUTEXATTR_T 1
14099EOF
14100
14101 else
14102 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
14103echo "configure:14104: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
14104if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
14105 echo $ac_n "(cached) $ac_c" 1>&6
14106else
14107
14108 cat > conftest.$ac_ext <<EOF
14109#line 14110 "configure"
14110#include "confdefs.h"
14111#include <pthread.h>
14112int main() {
14113
14114 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
14115
14116; return 0; }
14117EOF
14118if { (eval echo configure:14119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14119 rm -rf conftest*
14120
14121 wx_cv_type_pthread_rec_mutex_init=yes
14122
14123else
14124 echo "configure: failed program was:" >&5
14125 cat conftest.$ac_ext >&5
14126 rm -rf conftest*
14127
14128 wx_cv_type_pthread_rec_mutex_init=no
14129
14130
14131fi
14132rm -f conftest*
14133
14134fi
14135
14136echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
14137 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
14138 cat >> confdefs.h <<\EOF
14139#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
14140EOF
14141
14142 else
14143 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
14144 fi
14145 fi
14146
14147 THREADS_LINK="-l$THREADS_LINK"
14148
14149 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
14150 CFLAGS="${CFLAGS} -mt"
14151 CXXFLAGS="${CXXFLAGS} -mt"
14152 LDFLAGS="${LDFLAGS} -mt"
14153 fi
14154fi
14155
14156fi
14157
14158if test "$wxUSE_THREADS" = "yes"; then
14159 cat >> confdefs.h <<\EOF
14160#define wxUSE_THREADS 1
14161EOF
14162
14163
14164 if test "$wxUSE_MAC" = "0"; then
14165 CFLAGS="${CFLAGS} -D_REENTRANT"
14166 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14167 fi
14168
14169 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
14170else
14171 if test "$ac_cv_func_strtok_r" = "yes"; then
14172 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
14173echo "configure:14174: checking if -D_REENTRANT is needed" >&5
14174 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
14175 CFLAGS="${CFLAGS} -D_REENTRANT"
14176 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14177 echo "$ac_t""yes" 1>&6
14178 else
14179 echo "$ac_t""no" 1>&6
14180 fi
14181 fi
14182fi
14183
14184if test "$WXGTK20" = 1 ; then
14185 cat >> confdefs.h <<EOF
14186#define __WXGTK20__ $WXGTK20
14187EOF
14188
14189 WXGTK12=1
14190fi
14191
14192if test "$WXGTK12" = 1 ; then
14193 cat >> confdefs.h <<EOF
14194#define __WXGTK12__ $WXGTK12
14195EOF
14196
14197fi
14198
14199if test "$WXGTK127" = 1 ; then
14200 cat >> confdefs.h <<EOF
14201#define __WXGTK127__ $WXGTK127
14202EOF
14203
14204fi
14205
14206if test "$WXWINE" = 1 ; then
14207 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
14208fi
14209
14210if test "$wxUSE_MAC" = 1 ; then
14211 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON"
14212 CFLAGS="${CFLAGS} -fno-common -fpascal-strings"
14213 CPPFLAGS="${CPPFLAGS} -cpp-precomp -fno-common -fpascal-strings"
14214 # Extract the first word of "Rez", so it can be a program name with args.
14215set dummy Rez; ac_word=$2
14216echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14217echo "configure:14218: checking for $ac_word" >&5
14218if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
14219 echo $ac_n "(cached) $ac_c" 1>&6
14220else
14221 if test -n "$REZ"; then
14222 ac_cv_prog_REZ="$REZ" # Let the user override the test.
14223else
14224 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14225 ac_dummy="$PATH"
14226 for ac_dir in $ac_dummy; do
14227 test -z "$ac_dir" && ac_dir=.
14228 if test -f $ac_dir/$ac_word; then
14229 ac_cv_prog_REZ="Rez"
14230 break
14231 fi
14232 done
14233 IFS="$ac_save_ifs"
14234 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
14235fi
14236fi
14237REZ="$ac_cv_prog_REZ"
14238if test -n "$REZ"; then
14239 echo "$ac_t""$REZ" 1>&6
14240else
14241 echo "$ac_t""no" 1>&6
14242fi
14243
14244 # Extract the first word of "Derez", so it can be a program name with args.
14245set dummy Derez; ac_word=$2
14246echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14247echo "configure:14248: checking for $ac_word" >&5
14248if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
14249 echo $ac_n "(cached) $ac_c" 1>&6
14250else
14251 if test -n "$DEREZ"; then
14252 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
14253else
14254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14255 ac_dummy="$PATH"
14256 for ac_dir in $ac_dummy; do
14257 test -z "$ac_dir" && ac_dir=.
14258 if test -f $ac_dir/$ac_word; then
14259 ac_cv_prog_DEREZ="Derez"
14260 break
14261 fi
14262 done
14263 IFS="$ac_save_ifs"
14264 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
14265fi
14266fi
14267DEREZ="$ac_cv_prog_DEREZ"
14268if test -n "$DEREZ"; then
14269 echo "$ac_t""$DEREZ" 1>&6
14270else
14271 echo "$ac_t""no" 1>&6
14272fi
14273
14274 RESCOMP=${REZ}
14275 REZFLAGS="-d __UNIX__ -useDF"
14276 DEREZFLAGS="Carbon.r -useDF"
14277 RESFLAGS="Carbon.r -t APPL"
14278 LIBWXMACRES="\$(LIBWX_MACRES)"
14279 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
14280fi
14281
14282if test "$wxUSE_CYGWIN" = 1 ; then
14283 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
14284fi
14285
14286WXDEBUG=
14287
14288if test "$wxUSE_DEBUG_INFO" = "yes" ; then
14289 WXDEBUG="-g"
14290 wxUSE_OPTIMISE=no
14291fi
14292
14293if test "$wxUSE_DEBUG_GDB" = "yes" ; then
14294 wxUSE_DEBUG_INFO=yes
14295 WXDEBUG="-ggdb"
14296fi
14297
14298if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
14299 cat >> confdefs.h <<\EOF
14300#define WXDEBUG 1
14301EOF
14302
14303 WXDEBUG_DEFINE="-D__WXDEBUG__"
14304else
14305 if test "$wxUSE_GTK" = 1 ; then
14306 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
14307 fi
14308fi
14309
14310if test "$wxUSE_MEM_TRACING" = "yes" ; then
14311 cat >> confdefs.h <<\EOF
14312#define wxUSE_MEMORY_TRACING 1
14313EOF
14314
14315 cat >> confdefs.h <<\EOF
14316#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
14317EOF
14318
14319 cat >> confdefs.h <<\EOF
14320#define wxUSE_DEBUG_NEW_ALWAYS 1
14321EOF
14322
14323 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
14324fi
14325
14326if test "$wxUSE_DMALLOC" = "yes" ; then
14327 DMALLOC_LINK="-ldmalloc"
14328fi
14329
14330PROFILE=
14331if test "$wxUSE_PROFILE" = "yes" ; then
14332 PROFILE="-pg"
14333fi
14334
14335DEP_INFO_FLAGS=
14336CODE_GEN_FLAGS=
14337CODE_GEN_FLAGS_CXX=
14338if test "$GCC" = yes ; then
14339 if test "$wxUSE_NO_RTTI" = "yes" ; then
14340 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
14341 fi
14342 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
14343 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
14344 fi
14345 if test "$wxUSE_PERMISSIVE" = "yes" ; then
14346 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
14347 fi
14348 if test "$wxUSE_NO_DEPS" = "no" ; then
14349 DEP_INFO_FLAGS="-MMD"
14350 fi
14351fi
14352
14353
14354CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
14355CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
14356if test "$wxUSE_OPTIMISE" = "no" ; then
14357 OPTIMISE=
14358else
14359 if test "$GCC" = yes ; then
14360 OPTIMISE="-O2"
14361 case "${host}" in
14362 i586-*-*|i686-*-* )
14363 OPTIMISE="${OPTIMISE} "
14364 ;;
14365 esac
14366 else
14367 OPTIMISE="-O"
14368 fi
14369fi
14370
14371
14372ZLIB_INCLUDE=
14373if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
14374 cat >> confdefs.h <<\EOF
14375#define wxUSE_ZLIB 1
14376EOF
14377
14378 if test "$wxUSE_ZLIB" = "yes" ; then
14379 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
14380 else
14381 ZLIB_LINK=
14382 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
14383echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
14384echo "configure:14385: checking for zlib.h" >&5
14385if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14386 echo $ac_n "(cached) $ac_c" 1>&6
14387else
14388 cat > conftest.$ac_ext <<EOF
14389#line 14390 "configure"
14390#include "confdefs.h"
14391#include <zlib.h>
14392EOF
14393ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14394{ (eval echo configure:14395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14395ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14396if test -z "$ac_err"; then
14397 rm -rf conftest*
14398 eval "ac_cv_header_$ac_safe=yes"
14399else
14400 echo "$ac_err" >&5
14401 echo "configure: failed program was:" >&5
14402 cat conftest.$ac_ext >&5
14403 rm -rf conftest*
14404 eval "ac_cv_header_$ac_safe=no"
14405fi
14406rm -f conftest*
14407fi
14408if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14409 echo "$ac_t""yes" 1>&6
14410 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
14411echo "configure:14412: checking for deflate in -lz" >&5
14412ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
14413if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14414 echo $ac_n "(cached) $ac_c" 1>&6
14415else
14416 ac_save_LIBS="$LIBS"
14417LIBS="-lz $LIBS"
14418cat > conftest.$ac_ext <<EOF
14419#line 14420 "configure"
14420#include "confdefs.h"
14421/* Override any gcc2 internal prototype to avoid an error. */
14422/* We use char because int might match the return type of a gcc2
14423 builtin and then its argument prototype would still apply. */
14424char deflate();
14425
14426int main() {
14427deflate()
14428; return 0; }
14429EOF
14430if { (eval echo configure:14431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14431 rm -rf conftest*
14432 eval "ac_cv_lib_$ac_lib_var=yes"
14433else
14434 echo "configure: failed program was:" >&5
14435 cat conftest.$ac_ext >&5
14436 rm -rf conftest*
14437 eval "ac_cv_lib_$ac_lib_var=no"
14438fi
14439rm -f conftest*
14440LIBS="$ac_save_LIBS"
14441
14442fi
14443if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14444 echo "$ac_t""yes" 1>&6
14445 ZLIB_LINK="-lz"
14446else
14447 echo "$ac_t""no" 1>&6
14448fi
14449
14450else
14451 echo "$ac_t""no" 1>&6
14452fi
14453
14454 if test "x$ZLIB_LINK" = "x" ; then
14455 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
14456 fi
14457 fi
14458fi
14459
14460PNG_INCLUDE=
14461if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
14462 cat >> confdefs.h <<\EOF
14463#define wxUSE_LIBPNG 1
14464EOF
14465
14466 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
14467 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
14468 wxUSE_LIBPNG=yes
14469 fi
14470
14471 if test "$wxUSE_LIBPNG" = "yes" ; then
14472 PNG_INCLUDE="-I\${top_srcdir}/src/png"
14473 else
14474 PNG_LINK=
14475 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
14476echo $ac_n "checking for png.h""... $ac_c" 1>&6
14477echo "configure:14478: checking for png.h" >&5
14478if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14479 echo $ac_n "(cached) $ac_c" 1>&6
14480else
14481 cat > conftest.$ac_ext <<EOF
14482#line 14483 "configure"
14483#include "confdefs.h"
14484#include <png.h>
14485EOF
14486ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14487{ (eval echo configure:14488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14488ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14489if test -z "$ac_err"; then
14490 rm -rf conftest*
14491 eval "ac_cv_header_$ac_safe=yes"
14492else
14493 echo "$ac_err" >&5
14494 echo "configure: failed program was:" >&5
14495 cat conftest.$ac_ext >&5
14496 rm -rf conftest*
14497 eval "ac_cv_header_$ac_safe=no"
14498fi
14499rm -f conftest*
14500fi
14501if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14502 echo "$ac_t""yes" 1>&6
14503 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
14504echo "configure:14505: checking for png_check_sig in -lpng" >&5
14505ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
14506if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14507 echo $ac_n "(cached) $ac_c" 1>&6
14508else
14509 ac_save_LIBS="$LIBS"
14510LIBS="-lpng -lz -lm $LIBS"
14511cat > conftest.$ac_ext <<EOF
14512#line 14513 "configure"
14513#include "confdefs.h"
14514/* Override any gcc2 internal prototype to avoid an error. */
14515/* We use char because int might match the return type of a gcc2
14516 builtin and then its argument prototype would still apply. */
14517char png_check_sig();
14518
14519int main() {
14520png_check_sig()
14521; return 0; }
14522EOF
14523if { (eval echo configure:14524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14524 rm -rf conftest*
14525 eval "ac_cv_lib_$ac_lib_var=yes"
14526else
14527 echo "configure: failed program was:" >&5
14528 cat conftest.$ac_ext >&5
14529 rm -rf conftest*
14530 eval "ac_cv_lib_$ac_lib_var=no"
14531fi
14532rm -f conftest*
14533LIBS="$ac_save_LIBS"
14534
14535fi
14536if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14537 echo "$ac_t""yes" 1>&6
14538 PNG_LINK="-lpng"
14539else
14540 echo "$ac_t""no" 1>&6
14541fi
14542
14543
14544else
14545 echo "$ac_t""no" 1>&6
14546fi
14547
14548 if test "x$PNG_LINK" = "x" ; then
14549 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
14550 fi
14551 fi
14552
14553 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
14554fi
14555
14556JPEG_INCLUDE=
14557if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
14558 cat >> confdefs.h <<\EOF
14559#define wxUSE_LIBJPEG 1
14560EOF
14561
14562 if test "$wxUSE_LIBJPEG" = "yes" ; then
14563 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
14564 else
14565 JPEG_LINK=
14566 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
14567echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
14568echo "configure:14569: checking for jpeglib.h" >&5
14569if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14570 echo $ac_n "(cached) $ac_c" 1>&6
14571else
14572 cat > conftest.$ac_ext <<EOF
14573#line 14574 "configure"
14574#include "confdefs.h"
14575#include <jpeglib.h>
14576EOF
14577ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14578{ (eval echo configure:14579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14579ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14580if test -z "$ac_err"; then
14581 rm -rf conftest*
14582 eval "ac_cv_header_$ac_safe=yes"
14583else
14584 echo "$ac_err" >&5
14585 echo "configure: failed program was:" >&5
14586 cat conftest.$ac_ext >&5
14587 rm -rf conftest*
14588 eval "ac_cv_header_$ac_safe=no"
14589fi
14590rm -f conftest*
14591fi
14592if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14593 echo "$ac_t""yes" 1>&6
14594 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
14595echo "configure:14596: checking for jpeg_read_header in -ljpeg" >&5
14596ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
14597if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14598 echo $ac_n "(cached) $ac_c" 1>&6
14599else
14600 ac_save_LIBS="$LIBS"
14601LIBS="-ljpeg $LIBS"
14602cat > conftest.$ac_ext <<EOF
14603#line 14604 "configure"
14604#include "confdefs.h"
14605/* Override any gcc2 internal prototype to avoid an error. */
14606/* We use char because int might match the return type of a gcc2
14607 builtin and then its argument prototype would still apply. */
14608char jpeg_read_header();
14609
14610int main() {
14611jpeg_read_header()
14612; return 0; }
14613EOF
14614if { (eval echo configure:14615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14615 rm -rf conftest*
14616 eval "ac_cv_lib_$ac_lib_var=yes"
14617else
14618 echo "configure: failed program was:" >&5
14619 cat conftest.$ac_ext >&5
14620 rm -rf conftest*
14621 eval "ac_cv_lib_$ac_lib_var=no"
14622fi
14623rm -f conftest*
14624LIBS="$ac_save_LIBS"
14625
14626fi
14627if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14628 echo "$ac_t""yes" 1>&6
14629 JPEG_LINK="-ljpeg"
14630else
14631 echo "$ac_t""no" 1>&6
14632fi
14633
14634else
14635 echo "$ac_t""no" 1>&6
14636fi
14637
14638 if test "x$JPEG_LINK" = "x" ; then
14639 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
14640 fi
14641 fi
14642fi
14643
14644TIFF_INCLUDE=
14645if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
14646 cat >> confdefs.h <<\EOF
14647#define wxUSE_LIBTIFF 1
14648EOF
14649
14650 if test "$wxUSE_LIBTIFF" = "yes" ; then
14651 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
14652 else
14653 TIFF_LINK=
14654 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
14655echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
14656echo "configure:14657: checking for tiffio.h" >&5
14657if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14658 echo $ac_n "(cached) $ac_c" 1>&6
14659else
14660 cat > conftest.$ac_ext <<EOF
14661#line 14662 "configure"
14662#include "confdefs.h"
14663#include <tiffio.h>
14664EOF
14665ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14666{ (eval echo configure:14667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14667ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14668if test -z "$ac_err"; then
14669 rm -rf conftest*
14670 eval "ac_cv_header_$ac_safe=yes"
14671else
14672 echo "$ac_err" >&5
14673 echo "configure: failed program was:" >&5
14674 cat conftest.$ac_ext >&5
14675 rm -rf conftest*
14676 eval "ac_cv_header_$ac_safe=no"
14677fi
14678rm -f conftest*
14679fi
14680if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14681 echo "$ac_t""yes" 1>&6
14682 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
14683echo "configure:14684: checking for TIFFError in -ltiff" >&5
14684ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
14685if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14686 echo $ac_n "(cached) $ac_c" 1>&6
14687else
14688 ac_save_LIBS="$LIBS"
14689LIBS="-ltiff -lm $LIBS"
14690cat > conftest.$ac_ext <<EOF
14691#line 14692 "configure"
14692#include "confdefs.h"
14693/* Override any gcc2 internal prototype to avoid an error. */
14694/* We use char because int might match the return type of a gcc2
14695 builtin and then its argument prototype would still apply. */
14696char TIFFError();
14697
14698int main() {
14699TIFFError()
14700; return 0; }
14701EOF
14702if { (eval echo configure:14703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14703 rm -rf conftest*
14704 eval "ac_cv_lib_$ac_lib_var=yes"
14705else
14706 echo "configure: failed program was:" >&5
14707 cat conftest.$ac_ext >&5
14708 rm -rf conftest*
14709 eval "ac_cv_lib_$ac_lib_var=no"
14710fi
14711rm -f conftest*
14712LIBS="$ac_save_LIBS"
14713
14714fi
14715if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14716 echo "$ac_t""yes" 1>&6
14717 TIFF_LINK="-ltiff"
14718else
14719 echo "$ac_t""no" 1>&6
14720fi
14721
14722else
14723 echo "$ac_t""no" 1>&6
14724fi
14725
14726 if test "x$TIFF_LINK" = "x" ; then
14727 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
14728 fi
14729 fi
14730fi
14731
14732FREETYPE_INCLUDE=
14733if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
14734 cat >> confdefs.h <<\EOF
14735#define wxUSE_FREETYPE 1
14736EOF
14737
14738 if test "$wxUSE_FREETYPE" = "yes" ; then
14739 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
14740 else
14741 FREETYPE_LINK=
14742 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
14743echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
14744echo "configure:14745: checking for freetype.h" >&5
14745if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14746 echo $ac_n "(cached) $ac_c" 1>&6
14747else
14748 cat > conftest.$ac_ext <<EOF
14749#line 14750 "configure"
14750#include "confdefs.h"
14751#include <freetype.h>
14752EOF
14753ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14754{ (eval echo configure:14755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14755ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14756if test -z "$ac_err"; then
14757 rm -rf conftest*
14758 eval "ac_cv_header_$ac_safe=yes"
14759else
14760 echo "$ac_err" >&5
14761 echo "configure: failed program was:" >&5
14762 cat conftest.$ac_ext >&5
14763 rm -rf conftest*
14764 eval "ac_cv_header_$ac_safe=no"
14765fi
14766rm -f conftest*
14767fi
14768if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14769 echo "$ac_t""yes" 1>&6
14770 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
14771echo "configure:14772: checking for FT_Render_Glyph in -lfreetype" >&5
14772ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
14773if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14774 echo $ac_n "(cached) $ac_c" 1>&6
14775else
14776 ac_save_LIBS="$LIBS"
14777LIBS="-lfreetype -lm $LIBS"
14778cat > conftest.$ac_ext <<EOF
14779#line 14780 "configure"
14780#include "confdefs.h"
14781/* Override any gcc2 internal prototype to avoid an error. */
14782/* We use char because int might match the return type of a gcc2
14783 builtin and then its argument prototype would still apply. */
14784char FT_Render_Glyph();
14785
14786int main() {
14787FT_Render_Glyph()
14788; return 0; }
14789EOF
14790if { (eval echo configure:14791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14791 rm -rf conftest*
14792 eval "ac_cv_lib_$ac_lib_var=yes"
14793else
14794 echo "configure: failed program was:" >&5
14795 cat conftest.$ac_ext >&5
14796 rm -rf conftest*
14797 eval "ac_cv_lib_$ac_lib_var=no"
14798fi
14799rm -f conftest*
14800LIBS="$ac_save_LIBS"
14801
14802fi
14803if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14804 echo "$ac_t""yes" 1>&6
14805 FREETYPE_LINK="-lfreetype"
14806else
14807 echo "$ac_t""no" 1>&6
14808fi
14809
14810
14811else
14812 echo "$ac_t""no" 1>&6
14813fi
14814
14815 if test "x$FREETYPE_LINK" = "x" ; then
14816 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
14817 fi
14818 fi
14819fi
14820
14821if test "$wxUSE_OPENGL" = "yes"; then
14822 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
14823echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
14824echo "configure:14825: checking for GL/gl.h" >&5
14825if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14826 echo $ac_n "(cached) $ac_c" 1>&6
14827else
14828 cat > conftest.$ac_ext <<EOF
14829#line 14830 "configure"
14830#include "confdefs.h"
14831#include <GL/gl.h>
14832EOF
14833ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14834{ (eval echo configure:14835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14835ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14836if test -z "$ac_err"; then
14837 rm -rf conftest*
14838 eval "ac_cv_header_$ac_safe=yes"
14839else
14840 echo "$ac_err" >&5
14841 echo "configure: failed program was:" >&5
14842 cat conftest.$ac_ext >&5
14843 rm -rf conftest*
14844 eval "ac_cv_header_$ac_safe=no"
14845fi
14846rm -f conftest*
14847fi
14848if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14849 echo "$ac_t""yes" 1>&6
14850
14851 cat >> confdefs.h <<\EOF
14852#define wxUSE_OPENGL 1
14853EOF
14854
14855 cat >> confdefs.h <<\EOF
14856#define wxUSE_GLCANVAS 1
14857EOF
14858
14859 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
14860echo "configure:14861: checking for glFlush in -lGL" >&5
14861ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
14862if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14863 echo $ac_n "(cached) $ac_c" 1>&6
14864else
14865 ac_save_LIBS="$LIBS"
14866LIBS="-lGL $LIBS"
14867cat > conftest.$ac_ext <<EOF
14868#line 14869 "configure"
14869#include "confdefs.h"
14870/* Override any gcc2 internal prototype to avoid an error. */
14871/* We use char because int might match the return type of a gcc2
14872 builtin and then its argument prototype would still apply. */
14873char glFlush();
14874
14875int main() {
14876glFlush()
14877; return 0; }
14878EOF
14879if { (eval echo configure:14880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14880 rm -rf conftest*
14881 eval "ac_cv_lib_$ac_lib_var=yes"
14882else
14883 echo "configure: failed program was:" >&5
14884 cat conftest.$ac_ext >&5
14885 rm -rf conftest*
14886 eval "ac_cv_lib_$ac_lib_var=no"
14887fi
14888rm -f conftest*
14889LIBS="$ac_save_LIBS"
14890
14891fi
14892if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14893 echo "$ac_t""yes" 1>&6
14894
14895 OPENGL_LINK="-lGL -lGLU"
14896
14897else
14898 echo "$ac_t""no" 1>&6
14899
14900 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
14901echo "configure:14902: checking for glFlush in -lMesaGL" >&5
14902ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
14903if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14904 echo $ac_n "(cached) $ac_c" 1>&6
14905else
14906 ac_save_LIBS="$LIBS"
14907LIBS="-lMesaGL $LIBS"
14908cat > conftest.$ac_ext <<EOF
14909#line 14910 "configure"
14910#include "confdefs.h"
14911/* Override any gcc2 internal prototype to avoid an error. */
14912/* We use char because int might match the return type of a gcc2
14913 builtin and then its argument prototype would still apply. */
14914char glFlush();
14915
14916int main() {
14917glFlush()
14918; return 0; }
14919EOF
14920if { (eval echo configure:14921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14921 rm -rf conftest*
14922 eval "ac_cv_lib_$ac_lib_var=yes"
14923else
14924 echo "configure: failed program was:" >&5
14925 cat conftest.$ac_ext >&5
14926 rm -rf conftest*
14927 eval "ac_cv_lib_$ac_lib_var=no"
14928fi
14929rm -f conftest*
14930LIBS="$ac_save_LIBS"
14931
14932fi
14933if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14934 echo "$ac_t""yes" 1>&6
14935
14936 OPENGL_LINK="-lMesaGL -lMesaGLU"
14937
14938else
14939 echo "$ac_t""no" 1>&6
14940fi
14941
14942
14943fi
14944
14945
14946else
14947 echo "$ac_t""no" 1>&6
14948wxUSE_OPENGL=0
14949fi
14950
14951fi
14952
14953
14954if test "$wxUSE_GUI" = "yes"; then
14955 cat >> confdefs.h <<\EOF
14956#define wxUSE_GUI 1
14957EOF
14958
14959
14960 else
14961 cat >> confdefs.h <<\EOF
14962#define wxUSE_NOGUI 1
14963EOF
14964
14965fi
14966
14967
14968if test "$wxUSE_UNIX" = "yes"; then
14969 cat >> confdefs.h <<\EOF
14970#define wxUSE_UNIX 1
14971EOF
14972
14973fi
14974
14975
14976if test "$wxUSE_APPLE_IEEE" = "yes"; then
14977 cat >> confdefs.h <<\EOF
14978#define wxUSE_APPLE_IEEE 1
14979EOF
14980
14981fi
14982
14983if test "$wxUSE_TIMER" = "yes"; then
14984 cat >> confdefs.h <<\EOF
14985#define wxUSE_TIMER 1
14986EOF
14987
14988fi
14989
14990if test "$wxUSE_WAVE" = "yes"; then
14991 cat >> confdefs.h <<\EOF
14992#define wxUSE_WAVE 1
14993EOF
14994
14995fi
14996
14997if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
14998 cat >> confdefs.h <<\EOF
14999#define wxUSE_CMDLINE_PARSER 1
15000EOF
15001
15002fi
15003
15004if test "$wxUSE_STOPWATCH" = "yes"; then
15005 cat >> confdefs.h <<\EOF
15006#define wxUSE_STOPWATCH 1
15007EOF
15008
15009fi
15010
15011if test "$wxUSE_DATETIME" = "yes"; then
15012 cat >> confdefs.h <<\EOF
15013#define wxUSE_DATETIME 1
15014EOF
15015
15016fi
15017
15018if test "$wxUSE_TIMEDATE" = "yes"; then
15019 cat >> confdefs.h <<\EOF
15020#define wxUSE_TIMEDATE 1
15021EOF
15022
15023fi
15024
15025if test "$wxUSE_FILE" = "yes"; then
15026 cat >> confdefs.h <<\EOF
15027#define wxUSE_FILE 1
15028EOF
15029
15030fi
15031
15032if test "$wxUSE_FFILE" = "yes"; then
15033 cat >> confdefs.h <<\EOF
15034#define wxUSE_FFILE 1
15035EOF
15036
15037fi
15038
15039if test "$wxUSE_FILESYSTEM" = "yes"; then
15040 cat >> confdefs.h <<\EOF
15041#define wxUSE_FILESYSTEM 1
15042EOF
15043
15044fi
15045
15046if test "$wxUSE_FS_INET" = "yes"; then
15047 cat >> confdefs.h <<\EOF
15048#define wxUSE_FS_INET 1
15049EOF
15050
15051fi
15052
15053if test "$wxUSE_FS_ZIP" = "yes"; then
15054 cat >> confdefs.h <<\EOF
15055#define wxUSE_FS_ZIP 1
15056EOF
15057
15058fi
15059
15060if test "$wxUSE_ZIPSTREAM" = "yes"; then
15061 cat >> confdefs.h <<\EOF
15062#define wxUSE_ZIPSTREAM 1
15063EOF
15064
15065fi
15066
15067if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15068 cat >> confdefs.h <<\EOF
15069#define wxUSE_ON_FATAL_EXCEPTION 1
15070EOF
15071
15072fi
15073
15074if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15075 cat >> confdefs.h <<\EOF
15076#define wxUSE_SNGLINST_CHECKER 1
15077EOF
15078
15079fi
15080
15081if test "$wxUSE_BUSYINFO" = "yes"; then
15082 cat >> confdefs.h <<\EOF
15083#define wxUSE_BUSYINFO 1
15084EOF
15085
15086fi
15087
15088if test "$wxUSE_STD_IOSTREAM" = "yes"; then
15089 cat >> confdefs.h <<\EOF
15090#define wxUSE_STD_IOSTREAM 1
15091EOF
15092
15093fi
15094
15095if test "$wxUSE_TEXTFILE" = "yes"; then
15096 if test "$wxUSE_FILE" != "yes"; then
15097 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
15098 else
15099 cat >> confdefs.h <<\EOF
15100#define wxUSE_TEXTFILE 1
15101EOF
15102
15103 fi
15104fi
15105
15106if test "$wxUSE_CONFIG" = "yes" ; then
15107 if test "$wxUSE_TEXTFILE" != "yes"; then
15108 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
15109 else
15110 cat >> confdefs.h <<\EOF
15111#define wxUSE_CONFIG 1
15112EOF
15113
15114 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15115 fi
15116fi
15117
15118if test "$wxUSE_INTL" = "yes" ; then
15119 if test "$wxUSE_FILE" != "yes"; then
15120 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
15121 else
15122 cat >> confdefs.h <<\EOF
15123#define wxUSE_INTL 1
15124EOF
15125
15126 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
15127 GUIDIST="$GUIDIST INTL_DIST"
15128 fi
15129fi
15130
15131if test "$wxUSE_LOG" = "yes"; then
15132 cat >> confdefs.h <<\EOF
15133#define wxUSE_LOG 1
15134EOF
15135
15136fi
15137
15138if test "$wxUSE_LONGLONG" = "yes"; then
15139 cat >> confdefs.h <<\EOF
15140#define wxUSE_LONGLONG 1
15141EOF
15142
15143fi
15144
15145if test "$wxUSE_GEOMETRY" = "yes"; then
15146 cat >> confdefs.h <<\EOF
15147#define wxUSE_GEOMETRY 1
15148EOF
15149
15150fi
15151
15152if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
15153 cat >> confdefs.h <<\EOF
15154#define wxUSE_DIALUP_MANAGER 1
15155EOF
15156
15157 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
15158fi
15159
15160if test "$wxUSE_STREAMS" = "yes" ; then
15161 cat >> confdefs.h <<\EOF
15162#define wxUSE_STREAMS 1
15163EOF
15164
15165fi
15166
15167
15168if test "$wxUSE_DATETIME" = "yes"; then
15169 for ac_func in strptime
15170do
15171echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15172echo "configure:15173: checking for $ac_func" >&5
15173if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15174 echo $ac_n "(cached) $ac_c" 1>&6
15175else
15176 cat > conftest.$ac_ext <<EOF
15177#line 15178 "configure"
15178#include "confdefs.h"
15179/* System header to define __stub macros and hopefully few prototypes,
15180 which can conflict with char $ac_func(); below. */
15181#include <assert.h>
15182/* Override any gcc2 internal prototype to avoid an error. */
15183/* We use char because int might match the return type of a gcc2
15184 builtin and then its argument prototype would still apply. */
15185char $ac_func();
15186
15187int main() {
15188
15189/* The GNU C library defines this for functions which it implements
15190 to always fail with ENOSYS. Some functions are actually named
15191 something starting with __ and the normal name is an alias. */
15192#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15193choke me
15194#else
15195$ac_func();
15196#endif
15197
15198; return 0; }
15199EOF
15200if { (eval echo configure:15201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15201 rm -rf conftest*
15202 eval "ac_cv_func_$ac_func=yes"
15203else
15204 echo "configure: failed program was:" >&5
15205 cat conftest.$ac_ext >&5
15206 rm -rf conftest*
15207 eval "ac_cv_func_$ac_func=no"
15208fi
15209rm -f conftest*
15210fi
15211
15212if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15213 echo "$ac_t""yes" 1>&6
15214 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15215 cat >> confdefs.h <<EOF
15216#define $ac_tr_func 1
15217EOF
15218
15219else
15220 echo "$ac_t""no" 1>&6
15221fi
15222done
15223
15224
15225 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
15226echo "configure:15227: checking for timezone variable in <time.h>" >&5
15227if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
15228 echo $ac_n "(cached) $ac_c" 1>&6
15229else
15230
15231 cat > conftest.$ac_ext <<EOF
15232#line 15233 "configure"
15233#include "confdefs.h"
15234
15235 #include <time.h>
15236
15237int main() {
15238
15239 int tz;
15240 tz = __timezone;
15241
15242; return 0; }
15243EOF
15244if { (eval echo configure:15245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15245 rm -rf conftest*
15246
15247 wx_cv_var_timezone=__timezone
15248
15249else
15250 echo "configure: failed program was:" >&5
15251 cat conftest.$ac_ext >&5
15252 rm -rf conftest*
15253
15254 cat > conftest.$ac_ext <<EOF
15255#line 15256 "configure"
15256#include "confdefs.h"
15257
15258 #include <time.h>
15259
15260int main() {
15261
15262 int tz;
15263 tz = _timezone;
15264
15265; return 0; }
15266EOF
15267if { (eval echo configure:15268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15268 rm -rf conftest*
15269
15270 wx_cv_var_timezone=_timezone
15271
15272else
15273 echo "configure: failed program was:" >&5
15274 cat conftest.$ac_ext >&5
15275 rm -rf conftest*
15276
15277 cat > conftest.$ac_ext <<EOF
15278#line 15279 "configure"
15279#include "confdefs.h"
15280
15281 #include <time.h>
15282
15283int main() {
15284
15285 int tz;
15286 tz = timezone;
15287
15288; return 0; }
15289EOF
15290if { (eval echo configure:15291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15291 rm -rf conftest*
15292
15293 wx_cv_var_timezone=timezone
15294
15295else
15296 echo "configure: failed program was:" >&5
15297 cat conftest.$ac_ext >&5
15298 rm -rf conftest*
15299 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
15300
15301fi
15302rm -f conftest*
15303
15304
15305fi
15306rm -f conftest*
15307
15308
15309fi
15310rm -f conftest*
15311
15312
15313fi
15314
15315echo "$ac_t""$wx_cv_var_timezone" 1>&6
15316
15317 cat >> confdefs.h <<EOF
15318#define WX_TIMEZONE $wx_cv_var_timezone
15319EOF
15320
15321
15322 for ac_func in localtime
15323do
15324echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15325echo "configure:15326: checking for $ac_func" >&5
15326if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15327 echo $ac_n "(cached) $ac_c" 1>&6
15328else
15329 cat > conftest.$ac_ext <<EOF
15330#line 15331 "configure"
15331#include "confdefs.h"
15332/* System header to define __stub macros and hopefully few prototypes,
15333 which can conflict with char $ac_func(); below. */
15334#include <assert.h>
15335/* Override any gcc2 internal prototype to avoid an error. */
15336/* We use char because int might match the return type of a gcc2
15337 builtin and then its argument prototype would still apply. */
15338char $ac_func();
15339
15340int main() {
15341
15342/* The GNU C library defines this for functions which it implements
15343 to always fail with ENOSYS. Some functions are actually named
15344 something starting with __ and the normal name is an alias. */
15345#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15346choke me
15347#else
15348$ac_func();
15349#endif
15350
15351; return 0; }
15352EOF
15353if { (eval echo configure:15354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15354 rm -rf conftest*
15355 eval "ac_cv_func_$ac_func=yes"
15356else
15357 echo "configure: failed program was:" >&5
15358 cat conftest.$ac_ext >&5
15359 rm -rf conftest*
15360 eval "ac_cv_func_$ac_func=no"
15361fi
15362rm -f conftest*
15363fi
15364
15365if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15366 echo "$ac_t""yes" 1>&6
15367 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15368 cat >> confdefs.h <<EOF
15369#define $ac_tr_func 1
15370EOF
15371
15372else
15373 echo "$ac_t""no" 1>&6
15374fi
15375done
15376
15377
15378 if test "$ac_cv_func_localtime" = "yes"; then
15379 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
15380echo "configure:15381: checking for tm_gmtoff in struct tm" >&5
15381if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
15382 echo $ac_n "(cached) $ac_c" 1>&6
15383else
15384
15385 cat > conftest.$ac_ext <<EOF
15386#line 15387 "configure"
15387#include "confdefs.h"
15388
15389 #include <time.h>
15390
15391int main() {
15392
15393 struct tm tm;
15394 tm.tm_gmtoff++;
15395
15396; return 0; }
15397EOF
15398if { (eval echo configure:15399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15399 rm -rf conftest*
15400
15401 wx_cv_struct_tm_has_gmtoff=yes
15402
15403else
15404 echo "configure: failed program was:" >&5
15405 cat conftest.$ac_ext >&5
15406 rm -rf conftest*
15407 wx_cv_struct_tm_has_gmtoff=no
15408
15409fi
15410rm -f conftest*
15411
15412fi
15413
15414echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
15415 fi
15416
15417 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
15418 cat >> confdefs.h <<\EOF
15419#define WX_GMTOFF_IN_TM 1
15420EOF
15421
15422 fi
15423
15424 for ac_func in gettimeofday ftime
15425do
15426echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15427echo "configure:15428: checking for $ac_func" >&5
15428if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15429 echo $ac_n "(cached) $ac_c" 1>&6
15430else
15431 cat > conftest.$ac_ext <<EOF
15432#line 15433 "configure"
15433#include "confdefs.h"
15434/* System header to define __stub macros and hopefully few prototypes,
15435 which can conflict with char $ac_func(); below. */
15436#include <assert.h>
15437/* Override any gcc2 internal prototype to avoid an error. */
15438/* We use char because int might match the return type of a gcc2
15439 builtin and then its argument prototype would still apply. */
15440char $ac_func();
15441
15442int main() {
15443
15444/* The GNU C library defines this for functions which it implements
15445 to always fail with ENOSYS. Some functions are actually named
15446 something starting with __ and the normal name is an alias. */
15447#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15448choke me
15449#else
15450$ac_func();
15451#endif
15452
15453; return 0; }
15454EOF
15455if { (eval echo configure:15456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15456 rm -rf conftest*
15457 eval "ac_cv_func_$ac_func=yes"
15458else
15459 echo "configure: failed program was:" >&5
15460 cat conftest.$ac_ext >&5
15461 rm -rf conftest*
15462 eval "ac_cv_func_$ac_func=no"
15463fi
15464rm -f conftest*
15465fi
15466
15467if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15468 echo "$ac_t""yes" 1>&6
15469 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15470 cat >> confdefs.h <<EOF
15471#define $ac_tr_func 1
15472EOF
15473 break
15474else
15475 echo "$ac_t""no" 1>&6
15476fi
15477done
15478
15479
15480 if test "$ac_cv_func_gettimeofday" = "yes"; then
15481 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
15482echo "configure:15483: checking whether gettimeofday takes two arguments" >&5
15483if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
15484 echo $ac_n "(cached) $ac_c" 1>&6
15485else
15486
15487
15488 ac_ext=C
15489# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15490ac_cpp='$CXXCPP $CPPFLAGS'
15491ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15492ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15493cross_compiling=$ac_cv_prog_cxx_cross
15494
15495
15496 cat > conftest.$ac_ext <<EOF
15497#line 15498 "configure"
15498#include "confdefs.h"
15499
15500 #include <sys/time.h>
15501 #include <unistd.h>
15502
15503int main() {
15504
15505 struct timeval tv;
15506 struct timezone tz;
15507 gettimeofday(&tv, &tz);
15508
15509; return 0; }
15510EOF
15511if { (eval echo configure:15512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15512 rm -rf conftest*
15513 wx_cv_func_gettimeofday_has_2_args=yes
15514else
15515 echo "configure: failed program was:" >&5
15516 cat conftest.$ac_ext >&5
15517 rm -rf conftest*
15518 cat > conftest.$ac_ext <<EOF
15519#line 15520 "configure"
15520#include "confdefs.h"
15521
15522 #include <sys/time.h>
15523 #include <unistd.h>
15524
15525int main() {
15526
15527 struct timeval tv;
15528 gettimeofday(&tv);
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 wx_cv_func_gettimeofday_has_2_args=no
15535else
15536 echo "configure: failed program was:" >&5
15537 cat conftest.$ac_ext >&5
15538 rm -rf conftest*
15539 wx_cv_func_gettimeofday_has_2_args=unknown
15540
15541fi
15542rm -f conftest*
15543
15544fi
15545rm -f conftest*
15546 ac_ext=c
15547# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15548ac_cpp='$CPP $CPPFLAGS'
15549ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15550ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15551cross_compiling=$ac_cv_prog_cc_cross
15552
15553
15554fi
15555
15556echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
15557
15558 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
15559 cat >> confdefs.h <<\EOF
15560#define WX_GETTIMEOFDAY_NO_TZ 1
15561EOF
15562
15563 fi
15564 fi
15565
15566 cat >> confdefs.h <<\EOF
15567#define wxUSE_TIMEDATE 1
15568EOF
15569
15570 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
15571fi
15572
15573
15574if test "$TOOLKIT" != "MSW"; then
15575
15576if test "$wxUSE_SOCKETS" = "yes"; then
15577 echo $ac_n "checking for socket""... $ac_c" 1>&6
15578echo "configure:15579: checking for socket" >&5
15579if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
15580 echo $ac_n "(cached) $ac_c" 1>&6
15581else
15582 cat > conftest.$ac_ext <<EOF
15583#line 15584 "configure"
15584#include "confdefs.h"
15585/* System header to define __stub macros and hopefully few prototypes,
15586 which can conflict with char socket(); below. */
15587#include <assert.h>
15588/* Override any gcc2 internal prototype to avoid an error. */
15589/* We use char because int might match the return type of a gcc2
15590 builtin and then its argument prototype would still apply. */
15591char socket();
15592
15593int main() {
15594
15595/* The GNU C library defines this for functions which it implements
15596 to always fail with ENOSYS. Some functions are actually named
15597 something starting with __ and the normal name is an alias. */
15598#if defined (__stub_socket) || defined (__stub___socket)
15599choke me
15600#else
15601socket();
15602#endif
15603
15604; return 0; }
15605EOF
15606if { (eval echo configure:15607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15607 rm -rf conftest*
15608 eval "ac_cv_func_socket=yes"
15609else
15610 echo "configure: failed program was:" >&5
15611 cat conftest.$ac_ext >&5
15612 rm -rf conftest*
15613 eval "ac_cv_func_socket=no"
15614fi
15615rm -f conftest*
15616fi
15617
15618if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
15619 echo "$ac_t""yes" 1>&6
15620 :
15621else
15622 echo "$ac_t""no" 1>&6
15623echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
15624echo "configure:15625: checking for socket in -lsocket" >&5
15625ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
15626if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15627 echo $ac_n "(cached) $ac_c" 1>&6
15628else
15629 ac_save_LIBS="$LIBS"
15630LIBS="-lsocket $LIBS"
15631cat > conftest.$ac_ext <<EOF
15632#line 15633 "configure"
15633#include "confdefs.h"
15634/* Override any gcc2 internal prototype to avoid an error. */
15635/* We use char because int might match the return type of a gcc2
15636 builtin and then its argument prototype would still apply. */
15637char socket();
15638
15639int main() {
15640socket()
15641; return 0; }
15642EOF
15643if { (eval echo configure:15644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15644 rm -rf conftest*
15645 eval "ac_cv_lib_$ac_lib_var=yes"
15646else
15647 echo "configure: failed program was:" >&5
15648 cat conftest.$ac_ext >&5
15649 rm -rf conftest*
15650 eval "ac_cv_lib_$ac_lib_var=no"
15651fi
15652rm -f conftest*
15653LIBS="$ac_save_LIBS"
15654
15655fi
15656if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15657 echo "$ac_t""yes" 1>&6
15658 INET_LINK="$INET_LINK -lsocket"
15659else
15660 echo "$ac_t""no" 1>&6
15661
15662 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
15663 wxUSE_SOCKETS=no
15664
15665
15666fi
15667
15668
15669fi
15670
15671fi
15672
15673
15674if test "$wxUSE_SOCKETS" = "yes" ; then
15675 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
15676echo "configure:15677: checking what is the type of the third argument of getsockname" >&5
15677if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
15678 echo $ac_n "(cached) $ac_c" 1>&6
15679else
15680
15681
15682 ac_ext=C
15683# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15684ac_cpp='$CXXCPP $CPPFLAGS'
15685ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15686ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15687cross_compiling=$ac_cv_prog_cxx_cross
15688
15689
15690 cat > conftest.$ac_ext <<EOF
15691#line 15692 "configure"
15692#include "confdefs.h"
15693
15694 #include <sys/types.h>
15695 #include <sys/socket.h>
15696
15697int main() {
15698
15699 socklen_t len;
15700 getsockname(0, 0, &len);
15701
15702; return 0; }
15703EOF
15704if { (eval echo configure:15705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15705 rm -rf conftest*
15706 wx_cv_type_getsockname3=socklen_t
15707else
15708 echo "configure: failed program was:" >&5
15709 cat conftest.$ac_ext >&5
15710 rm -rf conftest*
15711 cat > conftest.$ac_ext <<EOF
15712#line 15713 "configure"
15713#include "confdefs.h"
15714
15715 #include <sys/types.h>
15716 #include <sys/socket.h>
15717
15718int main() {
15719
15720 size_t len;
15721 getsockname(0, 0, &len);
15722
15723; return 0; }
15724EOF
15725if { (eval echo configure:15726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15726 rm -rf conftest*
15727 wx_cv_type_getsockname3=size_t
15728else
15729 echo "configure: failed program was:" >&5
15730 cat conftest.$ac_ext >&5
15731 rm -rf conftest*
15732 cat > conftest.$ac_ext <<EOF
15733#line 15734 "configure"
15734#include "confdefs.h"
15735
15736 #include <sys/types.h>
15737 #include <sys/socket.h>
15738
15739int main() {
15740
15741 int len;
15742 getsockname(0, 0, &len);
15743
15744; return 0; }
15745EOF
15746if { (eval echo configure:15747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15747 rm -rf conftest*
15748 wx_cv_type_getsockname3=int
15749else
15750 echo "configure: failed program was:" >&5
15751 cat conftest.$ac_ext >&5
15752 rm -rf conftest*
15753 wx_cv_type_getsockname3=unknown
15754
15755fi
15756rm -f conftest*
15757
15758fi
15759rm -f conftest*
15760
15761fi
15762rm -f conftest*
15763
15764 ac_ext=c
15765# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15766ac_cpp='$CPP $CPPFLAGS'
15767ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15768ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15769cross_compiling=$ac_cv_prog_cc_cross
15770
15771
15772fi
15773
15774echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
15775
15776 if test "$wx_cv_type_getsockname3" = "unknown"; then
15777 wxUSE_SOCKETS=no
15778 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
15779 else
15780 cat >> confdefs.h <<EOF
15781#define SOCKLEN_T $wx_cv_type_getsockname3
15782EOF
15783
15784 fi
15785fi
15786
15787fi
15788
15789if test "$wxUSE_SOCKETS" = "yes" ; then
15790 cat >> confdefs.h <<\EOF
15791#define wxUSE_SOCKETS 1
15792EOF
15793
15794 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
15795 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
15796fi
15797
15798
15799if test "$wxUSE_GUI" = "yes"; then
15800
15801if test "$TOOLKIT" != "MSW"; then
15802
15803if test "$wxUSE_JOYSTICK" = "yes"; then
15804 for ac_hdr in linux/joystick.h
15805do
15806ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15807echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15808echo "configure:15809: checking for $ac_hdr" >&5
15809if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15810 echo $ac_n "(cached) $ac_c" 1>&6
15811else
15812 cat > conftest.$ac_ext <<EOF
15813#line 15814 "configure"
15814#include "confdefs.h"
15815#include <$ac_hdr>
15816EOF
15817ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15818{ (eval echo configure:15819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15819ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15820if test -z "$ac_err"; then
15821 rm -rf conftest*
15822 eval "ac_cv_header_$ac_safe=yes"
15823else
15824 echo "$ac_err" >&5
15825 echo "configure: failed program was:" >&5
15826 cat conftest.$ac_ext >&5
15827 rm -rf conftest*
15828 eval "ac_cv_header_$ac_safe=no"
15829fi
15830rm -f conftest*
15831fi
15832if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15833 echo "$ac_t""yes" 1>&6
15834 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15835 cat >> confdefs.h <<EOF
15836#define $ac_tr_hdr 1
15837EOF
15838
15839else
15840 echo "$ac_t""no" 1>&6
15841fi
15842done
15843
15844 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
15845 wxUSE_JOYSTICK=no
15846 echo "configure: warning: Joystick not supported by this system" 1>&2
15847 fi
15848fi
15849
15850fi
15851
15852if test "$wxUSE_JOYSTICK" = "yes"; then
15853 cat >> confdefs.h <<\EOF
15854#define wxUSE_JOYSTICK 1
15855EOF
15856
15857 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
15858fi
15859
15860fi
15861
15862
15863if test "$TOOLKIT" != "MSW"; then
15864
15865HAVE_DL_FUNCS=0
15866HAVE_SHL_FUNCS=0
15867if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
15868 if test "$USE_MAC" = 1; then
15869 HAVE_DL_FUNCS=1
15870 else
15871 for ac_func in dlopen
15872do
15873echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15874echo "configure:15875: checking for $ac_func" >&5
15875if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15876 echo $ac_n "(cached) $ac_c" 1>&6
15877else
15878 cat > conftest.$ac_ext <<EOF
15879#line 15880 "configure"
15880#include "confdefs.h"
15881/* System header to define __stub macros and hopefully few prototypes,
15882 which can conflict with char $ac_func(); below. */
15883#include <assert.h>
15884/* Override any gcc2 internal prototype to avoid an error. */
15885/* We use char because int might match the return type of a gcc2
15886 builtin and then its argument prototype would still apply. */
15887char $ac_func();
15888
15889int main() {
15890
15891/* The GNU C library defines this for functions which it implements
15892 to always fail with ENOSYS. Some functions are actually named
15893 something starting with __ and the normal name is an alias. */
15894#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15895choke me
15896#else
15897$ac_func();
15898#endif
15899
15900; return 0; }
15901EOF
15902if { (eval echo configure:15903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15903 rm -rf conftest*
15904 eval "ac_cv_func_$ac_func=yes"
15905else
15906 echo "configure: failed program was:" >&5
15907 cat conftest.$ac_ext >&5
15908 rm -rf conftest*
15909 eval "ac_cv_func_$ac_func=no"
15910fi
15911rm -f conftest*
15912fi
15913
15914if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15915 echo "$ac_t""yes" 1>&6
15916 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15917 cat >> confdefs.h <<EOF
15918#define $ac_tr_func 1
15919EOF
15920
15921 cat >> confdefs.h <<\EOF
15922#define HAVE_DLOPEN 1
15923EOF
15924
15925 HAVE_DL_FUNCS=1
15926
15927else
15928 echo "$ac_t""no" 1>&6
15929echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
15930echo "configure:15931: checking for dlopen in -ldl" >&5
15931ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
15932if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15933 echo $ac_n "(cached) $ac_c" 1>&6
15934else
15935 ac_save_LIBS="$LIBS"
15936LIBS="-ldl $LIBS"
15937cat > conftest.$ac_ext <<EOF
15938#line 15939 "configure"
15939#include "confdefs.h"
15940/* Override any gcc2 internal prototype to avoid an error. */
15941/* We use char because int might match the return type of a gcc2
15942 builtin and then its argument prototype would still apply. */
15943char dlopen();
15944
15945int main() {
15946dlopen()
15947; return 0; }
15948EOF
15949if { (eval echo configure:15950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15950 rm -rf conftest*
15951 eval "ac_cv_lib_$ac_lib_var=yes"
15952else
15953 echo "configure: failed program was:" >&5
15954 cat conftest.$ac_ext >&5
15955 rm -rf conftest*
15956 eval "ac_cv_lib_$ac_lib_var=no"
15957fi
15958rm -f conftest*
15959LIBS="$ac_save_LIBS"
15960
15961fi
15962if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15963 echo "$ac_t""yes" 1>&6
15964
15965 cat >> confdefs.h <<\EOF
15966#define HAVE_DLOPEN 1
15967EOF
15968
15969 HAVE_DL_FUNCS=1
15970 LIBS="$LIBS -ldl"
15971
15972else
15973 echo "$ac_t""no" 1>&6
15974
15975 for ac_func in shl_load
15976do
15977echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15978echo "configure:15979: checking for $ac_func" >&5
15979if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15980 echo $ac_n "(cached) $ac_c" 1>&6
15981else
15982 cat > conftest.$ac_ext <<EOF
15983#line 15984 "configure"
15984#include "confdefs.h"
15985/* System header to define __stub macros and hopefully few prototypes,
15986 which can conflict with char $ac_func(); below. */
15987#include <assert.h>
15988/* Override any gcc2 internal prototype to avoid an error. */
15989/* We use char because int might match the return type of a gcc2
15990 builtin and then its argument prototype would still apply. */
15991char $ac_func();
15992
15993int main() {
15994
15995/* The GNU C library defines this for functions which it implements
15996 to always fail with ENOSYS. Some functions are actually named
15997 something starting with __ and the normal name is an alias. */
15998#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15999choke me
16000#else
16001$ac_func();
16002#endif
16003
16004; return 0; }
16005EOF
16006if { (eval echo configure:16007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16007 rm -rf conftest*
16008 eval "ac_cv_func_$ac_func=yes"
16009else
16010 echo "configure: failed program was:" >&5
16011 cat conftest.$ac_ext >&5
16012 rm -rf conftest*
16013 eval "ac_cv_func_$ac_func=no"
16014fi
16015rm -f conftest*
16016fi
16017
16018if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16019 echo "$ac_t""yes" 1>&6
16020 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16021 cat >> confdefs.h <<EOF
16022#define $ac_tr_func 1
16023EOF
16024
16025 cat >> confdefs.h <<\EOF
16026#define HAVE_SHL_LOAD 1
16027EOF
16028
16029 HAVE_SHL_FUNCS=1
16030
16031else
16032 echo "$ac_t""no" 1>&6
16033echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
16034echo "configure:16035: checking for dld in -lshl_load" >&5
16035ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16036if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16037 echo $ac_n "(cached) $ac_c" 1>&6
16038else
16039 ac_save_LIBS="$LIBS"
16040LIBS="-lshl_load $LIBS"
16041cat > conftest.$ac_ext <<EOF
16042#line 16043 "configure"
16043#include "confdefs.h"
16044/* Override any gcc2 internal prototype to avoid an error. */
16045/* We use char because int might match the return type of a gcc2
16046 builtin and then its argument prototype would still apply. */
16047char dld();
16048
16049int main() {
16050dld()
16051; return 0; }
16052EOF
16053if { (eval echo configure:16054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16054 rm -rf conftest*
16055 eval "ac_cv_lib_$ac_lib_var=yes"
16056else
16057 echo "configure: failed program was:" >&5
16058 cat conftest.$ac_ext >&5
16059 rm -rf conftest*
16060 eval "ac_cv_lib_$ac_lib_var=no"
16061fi
16062rm -f conftest*
16063LIBS="$ac_save_LIBS"
16064
16065fi
16066if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16067 echo "$ac_t""yes" 1>&6
16068
16069 HAVE_SHL_FUNCS=1
16070 LIBS="$LIBS -ldld"
16071
16072else
16073 echo "$ac_t""no" 1>&6
16074fi
16075
16076
16077fi
16078done
16079
16080
16081fi
16082
16083
16084fi
16085done
16086
16087
16088 if test "$HAVE_DL_FUNCS" = 1; then
16089 for ac_func in dlerror
16090do
16091echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16092echo "configure:16093: checking for $ac_func" >&5
16093if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16094 echo $ac_n "(cached) $ac_c" 1>&6
16095else
16096 cat > conftest.$ac_ext <<EOF
16097#line 16098 "configure"
16098#include "confdefs.h"
16099/* System header to define __stub macros and hopefully few prototypes,
16100 which can conflict with char $ac_func(); below. */
16101#include <assert.h>
16102/* Override any gcc2 internal prototype to avoid an error. */
16103/* We use char because int might match the return type of a gcc2
16104 builtin and then its argument prototype would still apply. */
16105char $ac_func();
16106
16107int main() {
16108
16109/* The GNU C library defines this for functions which it implements
16110 to always fail with ENOSYS. Some functions are actually named
16111 something starting with __ and the normal name is an alias. */
16112#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16113choke me
16114#else
16115$ac_func();
16116#endif
16117
16118; return 0; }
16119EOF
16120if { (eval echo configure:16121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16121 rm -rf conftest*
16122 eval "ac_cv_func_$ac_func=yes"
16123else
16124 echo "configure: failed program was:" >&5
16125 cat conftest.$ac_ext >&5
16126 rm -rf conftest*
16127 eval "ac_cv_func_$ac_func=no"
16128fi
16129rm -f conftest*
16130fi
16131
16132if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16133 echo "$ac_t""yes" 1>&6
16134 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16135 cat >> confdefs.h <<EOF
16136#define $ac_tr_func 1
16137EOF
16138 cat >> confdefs.h <<\EOF
16139#define HAVE_DLERROR 1
16140EOF
16141
16142else
16143 echo "$ac_t""no" 1>&6
16144echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
16145echo "configure:16146: checking for dlerror in -ldl" >&5
16146ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
16147if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16148 echo $ac_n "(cached) $ac_c" 1>&6
16149else
16150 ac_save_LIBS="$LIBS"
16151LIBS="-ldl $LIBS"
16152cat > conftest.$ac_ext <<EOF
16153#line 16154 "configure"
16154#include "confdefs.h"
16155/* Override any gcc2 internal prototype to avoid an error. */
16156/* We use char because int might match the return type of a gcc2
16157 builtin and then its argument prototype would still apply. */
16158char dlerror();
16159
16160int main() {
16161dlerror()
16162; return 0; }
16163EOF
16164if { (eval echo configure:16165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16165 rm -rf conftest*
16166 eval "ac_cv_lib_$ac_lib_var=yes"
16167else
16168 echo "configure: failed program was:" >&5
16169 cat conftest.$ac_ext >&5
16170 rm -rf conftest*
16171 eval "ac_cv_lib_$ac_lib_var=no"
16172fi
16173rm -f conftest*
16174LIBS="$ac_save_LIBS"
16175
16176fi
16177if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16178 echo "$ac_t""yes" 1>&6
16179 cat >> confdefs.h <<\EOF
16180#define HAVE_DLERROR 1
16181EOF
16182
16183else
16184 echo "$ac_t""no" 1>&6
16185fi
16186
16187fi
16188done
16189
16190 fi
16191 fi
16192
16193 if test "$HAVE_DL_FUNCS" = 0; then
16194 if test "$HAVE_SHL_FUNCS" = 0; then
16195 if test "$USE_UNIX" = 1; then
16196 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
16197 wxUSE_DYNLIB_CLASS=no
16198 else
16199 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
16200 fi
16201 fi
16202 fi
16203fi
16204
16205fi
16206
16207if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
16208 cat >> confdefs.h <<\EOF
16209#define wxUSE_DYNLIB_CLASS 1
16210EOF
16211
16212else
16213 wxUSE_ODBC=no
16214 wxUSE_SERIAL=no
16215fi
16216
16217
16218if test "$wxUSE_FONTMAP" = "yes" ; then
16219 cat >> confdefs.h <<\EOF
16220#define wxUSE_FONTMAP 1
16221EOF
16222
16223fi
16224
16225if test "$wxUSE_UNICODE" = "yes" ; then
16226 cat >> confdefs.h <<\EOF
16227#define wxUSE_UNICODE 1
16228EOF
16229
16230fi
16231
16232if test "$wxUSE_WCSRTOMBS" = "yes" ; then
16233 cat >> confdefs.h <<\EOF
16234#define wxUSE_WCSRTOMBS 1
16235EOF
16236
16237fi
16238
16239if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
16240 cat >> confdefs.h <<\EOF
16241#define wxUSE_EXPERIMENTAL_PRINTF 1
16242EOF
16243
16244fi
16245
16246
16247if test "$wxUSE_SERIAL" = "yes" ; then
16248 cat >> confdefs.h <<\EOF
16249#define wxUSE_SERIAL 1
16250EOF
16251
16252fi
16253
16254
16255IODBC_C_SRC=""
16256if test "$wxUSE_ODBC" = "yes" ; then
16257 cat >> confdefs.h <<\EOF
16258#define wxUSE_ODBC 1
16259EOF
16260
16261 WXODBCFLAG="-D_IODBC_"
16262 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
16263fi
16264
16265
16266if test "$wxUSE_POSTSCRIPT" = "yes" ; then
16267 cat >> confdefs.h <<\EOF
16268#define wxUSE_POSTSCRIPT 1
16269EOF
16270
16271fi
16272
16273cat >> confdefs.h <<\EOF
16274#define wxUSE_AFM_FOR_POSTSCRIPT 1
16275EOF
16276
16277
16278cat >> confdefs.h <<\EOF
16279#define wxUSE_NORMALIZED_PS_FONTS 1
16280EOF
16281
16282
16283
16284if test "$wxUSE_CONSTRAINTS" = "yes"; then
16285 cat >> confdefs.h <<\EOF
16286#define wxUSE_CONSTRAINTS 1
16287EOF
16288
16289 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
16290fi
16291
16292if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16293 cat >> confdefs.h <<\EOF
16294#define wxUSE_MDI_ARCHITECTURE 1
16295EOF
16296
16297 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
16298fi
16299
16300if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
16301 cat >> confdefs.h <<\EOF
16302#define wxUSE_DOC_VIEW_ARCHITECTURE 1
16303EOF
16304
16305 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
16306 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16307 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
16308 fi
16309fi
16310
16311if test "$wxUSE_HELP" = "yes"; then
16312 cat >> confdefs.h <<\EOF
16313#define wxUSE_HELP 1
16314EOF
16315
16316 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
16317fi
16318
16319if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
16320 if test "$wxUSE_CONSTRAINTS" != "yes"; then
16321 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
16322 else
16323 cat >> confdefs.h <<\EOF
16324#define wxUSE_PRINTING_ARCHITECTURE 1
16325EOF
16326
16327 fi
16328 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
16329fi
16330
16331if test "$wxUSE_PROLOGIO" = "yes" ; then
16332 cat >> confdefs.h <<\EOF
16333#define wxUSE_PROLOGIO 1
16334EOF
16335
16336fi
16337
16338if test "$wxUSE_RESOURCES" = "yes" ; then
16339 if test "$wxUSE_PROLOGIO" = "yes" ; then
16340 cat >> confdefs.h <<\EOF
16341#define wxUSE_RESOURCES 1
16342EOF
16343
16344 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
16345 else
16346 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
16347 fi
16348fi
16349
16350if test "$wxUSE_X_RESOURCES" = "yes"; then
16351 cat >> confdefs.h <<\EOF
16352#define wxUSE_X_RESOURCES 1
16353EOF
16354
16355fi
16356
16357
16358if test "$wxUSE_IPC" = "yes"; then
16359 if test "$wxUSE_SOCKETS" != "yes"; then
16360 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
16361 fi
16362
16363 cat >> confdefs.h <<\EOF
16364#define wxUSE_IPC 1
16365EOF
16366
16367fi
16368
16369if test "$wxUSE_CLIPBOARD" = "yes"; then
16370 cat >> confdefs.h <<\EOF
16371#define wxUSE_CLIPBOARD 1
16372EOF
16373
16374 cat >> confdefs.h <<\EOF
16375#define wxUSE_DATAOBJ 1
16376EOF
16377
16378fi
16379
16380if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
16381 if test "$wxUSE_GTK" = 1; then
16382 if test "$WXGTK12" != 1; then
16383 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
16384 wxUSE_DRAG_AND_DROP=no
16385 fi
16386 fi
16387
16388 if test "$wxUSE_MOTIF" = 1; then
16389 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
16390 wxUSE_DRAG_AND_DROP=no
16391 fi
16392
16393 if test "$wxUSE_MAC" = 1; then
16394 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
16395 wxUSE_DRAG_AND_DROP=no
16396 fi
16397
16398 if test "$USE_WIN32" = 1; then
16399
16400 for ac_hdr in ole2.h
16401do
16402ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16403echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16404echo "configure:16405: checking for $ac_hdr" >&5
16405if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16406 echo $ac_n "(cached) $ac_c" 1>&6
16407else
16408 cat > conftest.$ac_ext <<EOF
16409#line 16410 "configure"
16410#include "confdefs.h"
16411#include <$ac_hdr>
16412EOF
16413ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16414{ (eval echo configure:16415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16415ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16416if test -z "$ac_err"; then
16417 rm -rf conftest*
16418 eval "ac_cv_header_$ac_safe=yes"
16419else
16420 echo "$ac_err" >&5
16421 echo "configure: failed program was:" >&5
16422 cat conftest.$ac_ext >&5
16423 rm -rf conftest*
16424 eval "ac_cv_header_$ac_safe=no"
16425fi
16426rm -f conftest*
16427fi
16428if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16429 echo "$ac_t""yes" 1>&6
16430 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16431 cat >> confdefs.h <<EOF
16432#define $ac_tr_hdr 1
16433EOF
16434
16435else
16436 echo "$ac_t""no" 1>&6
16437fi
16438done
16439
16440
16441 if test "$ac_cv_header_ole2_h" = "yes" ; then
16442 if test "$GCC" = yes ; then
16443 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
16444 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
16445 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
16446 LIBS="$LIBS -lole32 -luuid"
16447
16448 if test "$wxUSE_METAFILE" = "yes"; then
16449 cat >> confdefs.h <<\EOF
16450#define wxUSE_METAFILE 1
16451EOF
16452
16453 cat >> confdefs.h <<\EOF
16454#define wxUSE_ENH_METAFILE 1
16455EOF
16456
16457 fi
16458 fi
16459 else
16460 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
16461 wxUSE_DRAG_AND_DROP=no
16462 fi
16463 fi
16464
16465 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
16466 cat >> confdefs.h <<\EOF
16467#define wxUSE_DRAG_AND_DROP 1
16468EOF
16469
16470 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
16471 fi
16472
16473fi
16474
16475if test "$wxUSE_SPLINES" = "yes" ; then
16476 cat >> confdefs.h <<\EOF
16477#define wxUSE_SPLINES 1
16478EOF
16479
16480fi
16481
16482
16483USES_CONTROLS=0
16484if test "$wxUSE_CONTROLS" = "yes"; then
16485 USES_CONTROLS=1
16486fi
16487
16488if test "$wxUSE_ACCEL" = "yes"; then
16489 cat >> confdefs.h <<\EOF
16490#define wxUSE_ACCEL 1
16491EOF
16492
16493 USES_CONTROLS=1
16494fi
16495
16496if test "$wxUSE_BUTTON" = "yes"; then
16497 cat >> confdefs.h <<\EOF
16498#define wxUSE_BUTTON 1
16499EOF
16500
16501 USES_CONTROLS=1
16502fi
16503
16504if test "$wxUSE_BMPBUTTON" = "yes"; then
16505 cat >> confdefs.h <<\EOF
16506#define wxUSE_BMPBUTTON 1
16507EOF
16508
16509 USES_CONTROLS=1
16510fi
16511
16512if test "$wxUSE_CALCTRL" = "yes"; then
16513 cat >> confdefs.h <<\EOF
16514#define wxUSE_CALENDARCTRL 1
16515EOF
16516
16517 USES_CONTROLS=1
16518 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
16519fi
16520
16521if test "$wxUSE_CARET" = "yes"; then
16522 cat >> confdefs.h <<\EOF
16523#define wxUSE_CARET 1
16524EOF
16525
16526 USES_CONTROLS=1
16527 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
16528fi
16529
16530if test "$wxUSE_COMBOBOX" = "yes"; then
16531 cat >> confdefs.h <<\EOF
16532#define wxUSE_COMBOBOX 1
16533EOF
16534
16535 USES_CONTROLS=1
16536fi
16537
16538if test "$wxUSE_CHOICE" = "yes"; then
16539 cat >> confdefs.h <<\EOF
16540#define wxUSE_CHOICE 1
16541EOF
16542
16543 USES_CONTROLS=1
16544fi
16545
16546if test "$wxUSE_CHECKBOX" = "yes"; then
16547 cat >> confdefs.h <<\EOF
16548#define wxUSE_CHECKBOX 1
16549EOF
16550
16551 USES_CONTROLS=1
16552fi
16553
16554if test "$wxUSE_CHECKLST" = "yes"; then
16555 cat >> confdefs.h <<\EOF
16556#define wxUSE_CHECKLISTBOX 1
16557EOF
16558
16559 USES_CONTROLS=1
16560 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
16561fi
16562
16563if test "$wxUSE_GAUGE" = "yes"; then
16564 cat >> confdefs.h <<\EOF
16565#define wxUSE_GAUGE 1
16566EOF
16567
16568 USES_CONTROLS=1
16569fi
16570
16571if test "$wxUSE_NEW_GRID" = "yes"; then
16572 wxUSE_GRID="yes"
16573 cat >> confdefs.h <<\EOF
16574#define wxUSE_NEW_GRID 1
16575EOF
16576
16577 USES_CONTROLS=1
16578 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
16579fi
16580
16581if test "$wxUSE_GRID" = "yes"; then
16582 cat >> confdefs.h <<\EOF
16583#define wxUSE_GRID 1
16584EOF
16585
16586 USES_CONTROLS=1
16587 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
16588fi
16589
16590if test "$wxUSE_IMAGLIST" = "yes"; then
16591 cat >> confdefs.h <<\EOF
16592#define wxUSE_IMAGLIST 1
16593EOF
16594
16595fi
16596
16597if test "$wxUSE_LISTBOX" = "yes"; then
16598 cat >> confdefs.h <<\EOF
16599#define wxUSE_LISTBOX 1
16600EOF
16601
16602 USES_CONTROLS=1
16603fi
16604
16605if test "$wxUSE_LISTCTRL" = "yes"; then
16606 if test "$wxUSE_IMAGLIST" = "yes"; then
16607 cat >> confdefs.h <<\EOF
16608#define wxUSE_LISTCTRL 1
16609EOF
16610
16611 USES_CONTROLS=1
16612 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
16613 else
16614 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
16615 fi
16616fi
16617
16618if test "$wxUSE_NOTEBOOK" = "yes"; then
16619 cat >> confdefs.h <<\EOF
16620#define wxUSE_NOTEBOOK 1
16621EOF
16622
16623 USES_CONTROLS=1
16624 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
16625fi
16626
16627if test "$wxUSE_RADIOBOX" = "yes"; then
16628 cat >> confdefs.h <<\EOF
16629#define wxUSE_RADIOBOX 1
16630EOF
16631
16632 USES_CONTROLS=1
16633fi
16634
16635if test "$wxUSE_RADIOBTN" = "yes"; then
16636 cat >> confdefs.h <<\EOF
16637#define wxUSE_RADIOBTN 1
16638EOF
16639
16640 USES_CONTROLS=1
16641fi
16642
16643if test "$wxUSE_SASH" = "yes"; then
16644 cat >> confdefs.h <<\EOF
16645#define wxUSE_SASH 1
16646EOF
16647
16648 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
16649fi
16650
16651if test "$wxUSE_SCROLLBAR" = "yes"; then
16652 cat >> confdefs.h <<\EOF
16653#define wxUSE_SCROLLBAR 1
16654EOF
16655
16656 USES_CONTROLS=1
16657 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
16658fi
16659
16660if test "$wxUSE_SLIDER" = "yes"; then
16661 cat >> confdefs.h <<\EOF
16662#define wxUSE_SLIDER 1
16663EOF
16664
16665 USES_CONTROLS=1
16666fi
16667
16668if test "$wxUSE_SPINBTN" = "yes"; then
16669 cat >> confdefs.h <<\EOF
16670#define wxUSE_SPINBTN 1
16671EOF
16672
16673 USES_CONTROLS=1
16674fi
16675
16676if test "$wxUSE_SPINCTRL" = "yes"; then
16677 cat >> confdefs.h <<\EOF
16678#define wxUSE_SPINCTRL 1
16679EOF
16680
16681 USES_CONTROLS=1
16682fi
16683
16684if test "$wxUSE_SPLITTER" = "yes"; then
16685 cat >> confdefs.h <<\EOF
16686#define wxUSE_SPLITTER 1
16687EOF
16688
16689 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
16690fi
16691
16692if test "$wxUSE_STATBMP" = "yes"; then
16693 cat >> confdefs.h <<\EOF
16694#define wxUSE_STATBMP 1
16695EOF
16696
16697 USES_CONTROLS=1
16698fi
16699
16700if test "$wxUSE_STATBOX" = "yes"; then
16701 cat >> confdefs.h <<\EOF
16702#define wxUSE_STATBOX 1
16703EOF
16704
16705 USES_CONTROLS=1
16706fi
16707
16708if test "$wxUSE_STATTEXT" = "yes"; then
16709 cat >> confdefs.h <<\EOF
16710#define wxUSE_STATTEXT 1
16711EOF
16712
16713 USES_CONTROLS=1
16714fi
16715
16716if test "$wxUSE_STATLINE" = "yes"; then
16717 if test "$wxUSE_WINE" = 1 ; then
16718 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
16719 else
16720 cat >> confdefs.h <<\EOF
16721#define wxUSE_STATLINE 1
16722EOF
16723
16724 USES_CONTROLS=1
16725 fi
16726fi
16727
16728if test "$wxUSE_STATUSBAR" = "yes"; then
16729 cat >> confdefs.h <<\EOF
16730#define wxUSE_STATUSBAR 1
16731EOF
16732
16733 USES_CONTROLS=1
16734
16735 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
16736fi
16737
16738if test "$wxUSE_TABDIALOG" = "yes"; then
16739 cat >> confdefs.h <<\EOF
16740#define wxUSE_TAB_DIALOG 1
16741EOF
16742
16743 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
16744fi
16745
16746if test "$wxUSE_TEXTCTRL" = "yes"; then
16747 cat >> confdefs.h <<\EOF
16748#define wxUSE_TEXTCTRL 1
16749EOF
16750
16751 USES_CONTROLS=1
16752 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
16753fi
16754
16755if test "$wxUSE_TOGGLEBTN" = "yes"; then
16756 if test "$wxUSE_MAC" = 1; then
16757 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
16758 wxUSE_TOGGLEBTN=no
16759 fi
16760
16761 if test "$wxUSE_TOGGLEBTN" = "yes"; then
16762 cat >> confdefs.h <<\EOF
16763#define wxUSE_TOGGLEBTN 1
16764EOF
16765
16766 USES_CONTROLS=1
16767 fi
16768fi
16769
16770if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
16771 cat >> confdefs.h <<\EOF
16772#define wxUSE_TOOLBAR_SIMPLE 1
16773EOF
16774
16775 wxUSE_TOOLBAR="yes"
16776 USES_CONTROLS=1
16777fi
16778
16779if test "$wxUSE_TOOLBAR" = "yes"; then
16780 cat >> confdefs.h <<\EOF
16781#define wxUSE_TOOLBAR 1
16782EOF
16783
16784 USES_CONTROLS=1
16785
16786 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
16787 wxUSE_TOOLBAR_NATIVE="yes"
16788 fi
16789
16790 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
16791 cat >> confdefs.h <<\EOF
16792#define wxUSE_TOOLBAR_NATIVE 1
16793EOF
16794
16795 USES_CONTROLS=1
16796 fi
16797
16798 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
16799fi
16800
16801if test "$wxUSE_TOOLTIPS" = "yes"; then
16802 if test "$wxUSE_MOTIF" = 1; then
16803 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
16804 else
16805 if test "$wxUSE_WINE" = 1; then
16806 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
16807 else
16808 cat >> confdefs.h <<\EOF
16809#define wxUSE_TOOLTIPS 1
16810EOF
16811
16812 fi
16813 fi
16814fi
16815
16816if test "$wxUSE_TREECTRL" = "yes"; then
16817 if test "$wxUSE_IMAGLIST" = "yes"; then
16818 cat >> confdefs.h <<\EOF
16819#define wxUSE_TREECTRL 1
16820EOF
16821
16822 USES_CONTROLS=1
16823 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
16824 else
16825 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
16826 fi
16827fi
16828
16829if test "$USES_CONTROLS" = 1; then
16830 cat >> confdefs.h <<\EOF
16831#define wxUSE_CONTROLS 1
16832EOF
16833
16834fi
16835
16836
16837
16838if test "$wxUSE_MENUS" = "yes"; then
16839 cat >> confdefs.h <<\EOF
16840#define wxUSE_MENUS 1
16841EOF
16842
16843 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
16844fi
16845
16846if test "$wxUSE_METAFILE" = "yes"; then
16847 cat >> confdefs.h <<\EOF
16848#define wxUSE_METAFILE 1
16849EOF
16850
16851fi
16852
16853if test "$wxUSE_MIMETYPE" = "yes"; then
16854 cat >> confdefs.h <<\EOF
16855#define wxUSE_MIMETYPE 1
16856EOF
16857
16858fi
16859
16860if test "$wxUSE_MINIFRAME" = "yes"; then
16861 cat >> confdefs.h <<\EOF
16862#define wxUSE_MINIFRAME 1
16863EOF
16864
16865 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
16866fi
16867
16868if test "$wxUSE_HTML" = "yes"; then
16869 cat >> confdefs.h <<\EOF
16870#define wxUSE_HTML 1
16871EOF
16872
16873 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
16874 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
16875fi
16876
16877if test "$wxUSE_VALIDATORS" = "yes"; then
16878 cat >> confdefs.h <<\EOF
16879#define wxUSE_VALIDATORS 1
16880EOF
16881
16882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
16883fi
16884
16885if test "$wxUSE_IMAGE" = "yes" ; then
16886 cat >> confdefs.h <<\EOF
16887#define wxUSE_IMAGE 1
16888EOF
16889
16890fi
16891
16892if test "$wxUSE_GIF" = "yes" ; then
16893 cat >> confdefs.h <<\EOF
16894#define wxUSE_GIF 1
16895EOF
16896
16897fi
16898
16899if test "$wxUSE_PCX" = "yes" ; then
16900 cat >> confdefs.h <<\EOF
16901#define wxUSE_PCX 1
16902EOF
16903
16904fi
16905
16906if test "$wxUSE_PNM" = "yes" ; then
16907 cat >> confdefs.h <<\EOF
16908#define wxUSE_PNM 1
16909EOF
16910
16911fi
16912
16913if test "$wxUSE_XPM" = "yes" ; then
16914 cat >> confdefs.h <<\EOF
16915#define wxUSE_XPM 1
16916EOF
16917
16918fi
16919
16920
16921if test "$wxUSE_CHOICEDLG" = "yes"; then
16922 cat >> confdefs.h <<\EOF
16923#define wxUSE_CHOICEDLG 1
16924EOF
16925
16926fi
16927
16928if test "$wxUSE_COLOURDLG" = "yes"; then
16929 cat >> confdefs.h <<\EOF
16930#define wxUSE_COLOURDLG 1
16931EOF
16932
16933fi
16934
16935if test "$wxUSE_FILEDLG" = "yes"; then
16936 cat >> confdefs.h <<\EOF
16937#define wxUSE_FILEDLG 1
16938EOF
16939
16940fi
16941
16942if test "$wxUSE_FONTDLG" = "yes"; then
16943 cat >> confdefs.h <<\EOF
16944#define wxUSE_FONTDLG 1
16945EOF
16946
16947fi
16948
16949if test "$wxUSE_DIRDLG" = "yes"; then
16950 if test "$wxUSE_CONSTRAINTS" != "yes"; then
16951 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
16952 else
16953 if test "$wxUSE_TREECTRL" != "yes"; then
16954 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
16955 else
16956 cat >> confdefs.h <<\EOF
16957#define wxUSE_DIRDLG 1
16958EOF
16959
16960 fi
16961 fi
16962fi
16963
16964if test "$wxUSE_MSGDLG" = "yes"; then
16965 cat >> confdefs.h <<\EOF
16966#define wxUSE_MSGDLG 1
16967EOF
16968
16969fi
16970
16971if test "$wxUSE_NUMBERDLG" = "yes"; then
16972 cat >> confdefs.h <<\EOF
16973#define wxUSE_NUMBERDLG 1
16974EOF
16975
16976fi
16977
16978if test "$wxUSE_PROGRESSDLG" = "yes"; then
16979 if test "$wxUSE_CONSTRAINTS" != "yes"; then
16980 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
16981 else
16982 cat >> confdefs.h <<\EOF
16983#define wxUSE_PROGRESSDLG 1
16984EOF
16985
16986 fi
16987fi
16988
16989if test "$wxUSE_STARTUP_TIPS" = "yes"; then
16990 if test "$wxUSE_CONSTRAINTS" != "yes"; then
16991 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
16992 else
16993 cat >> confdefs.h <<\EOF
16994#define wxUSE_STARTUP_TIPS 1
16995EOF
16996
16997 fi
16998fi
16999
17000if test "$wxUSE_TEXTDLG" = "yes"; then
17001 cat >> confdefs.h <<\EOF
17002#define wxUSE_TEXTDLG 1
17003EOF
17004
17005fi
17006
17007
17008if test "$cross_compiling" = "yes"; then
17009 OSINFO="\"$host\""
17010else
17011 OSINFO=`uname -s -r -m`
17012 OSINFO="\"$OSINFO\""
17013fi
17014
17015cat >> confdefs.h <<EOF
17016#define WXWIN_OS_DESCRIPTION $OSINFO
17017EOF
17018
17019
17020
17021GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
17022OPENGL_LIBS="$OPENGL_LINK"
17023
17024EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
17025if test "$USE_MAC" = 1 ; then
17026 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
17027fi
17028if test "$wxUSE_GUI" = "yes"; then
17029 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
17030fi
17031
17032LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
17033
17034INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
17035
17036if test "$wxUSE_GTK" = 1; then
17037 WXCONFIG_INCLUDE=""
17038else
17039 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
17040fi
17041
17042if test "$GXX" = yes ; then
17043 CXXWARNINGS="-Wall"
17044 fi
17045EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
17046
17047CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
17048CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
17049
17050LDFLAGS="$LDFLAGS $PROFILE"
17051
17052if test "$wxUSE_GUI" = "yes"; then
17053
17054 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag \
17055 drawing dynamic event font fractal image \
17056 minimal richedit widgets"
17057
17058 if test "$wxUSE_UNIVERSAL" = "yes" ; then
17059 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
17060 fi
17061
17062 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
17063else
17064 SAMPLES_SUBDIRS=""
17065fi
17066
17067SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
17163echo "configure:17164: checking whether ${MAKE-make} sets \${MAKE}" >&5
17164set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
17165if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
17166 echo $ac_n "(cached) $ac_c" 1>&6
17167else
17168 cat > conftestmake <<\EOF
17169all:
17170 @echo 'ac_maketemp="${MAKE}"'
17171EOF
17172# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17173eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
17174if test -n "$ac_maketemp"; then
17175 eval ac_cv_prog_make_${ac_make}_set=yes
17176else
17177 eval ac_cv_prog_make_${ac_make}_set=no
17178fi
17179rm -f conftestmake
17180fi
17181if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
17182 echo "$ac_t""yes" 1>&6
17183 SET_MAKE=
17184else
17185 echo "$ac_t""no" 1>&6
17186 SET_MAKE="MAKE=${MAKE-make}"
17187fi
17188
17189
17190if test -d include; then
17191 if test -d include/wx; then
17192 if test -d include/wx/${SETUPH_DIR}; then
17193 if test -f include/wx/${SETUPH_DIR}/setup.h; then
17194 mv -f include/wx/${SETUPH_DIR}/setup.h setup.h
17195 fi
17196 fi
17197 fi
17198fi
17199
17200
17201
17202if test "$wxUSE_GUI" = "yes"; then
17203 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
17204 wx_cv_path_ifs=$PATH_IFS
17205 wx_cv_program_ext=$PROGRAM_EXT
17206 wx_cv_target_library=$WX_TARGET_LIBRARY
17207 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
17208 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
17209 wx_cv_target_library wx_cv_target_libtype
17210 subdirs="demos samples utils contrib"
17211
17212fi
17213
17214trap '' 1 2 15
17215cat > confcache <<\EOF
17216# This file is a shell script that caches the results of configure
17217# tests run on this system so they can be shared between configure
17218# scripts and configure runs. It is not useful on other systems.
17219# If it contains results you don't want to keep, you may remove or edit it.
17220#
17221# By default, configure uses ./config.cache as the cache file,
17222# creating it if it does not exist already. You can give configure
17223# the --cache-file=FILE option to use a different cache file; that is
17224# what configure does when it calls configure scripts in
17225# subdirectories, so they share the cache.
17226# Giving --cache-file=/dev/null disables caching, for debugging configure.
17227# config.status only pays attention to the cache file if you give it the
17228# --recheck option to rerun configure.
17229#
17230EOF
17231# The following way of writing the cache mishandles newlines in values,
17232# but we know of no workaround that is simple, portable, and efficient.
17233# So, don't put newlines in cache variables' values.
17234# Ultrix sh set writes to stderr and can't be redirected directly,
17235# and sets the high bit in the cache file unless we assign to the vars.
17236(set) 2>&1 |
17237 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17238 *ac_space=\ *)
17239 # `set' does not quote correctly, so add quotes (double-quote substitution
17240 # turns \\\\ into \\, and sed turns \\ into \).
17241 sed -n \
17242 -e "s/'/'\\\\''/g" \
17243 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17244 ;;
17245 *)
17246 # `set' quotes correctly as required by POSIX, so do not add quotes.
17247 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17248 ;;
17249 esac >> confcache
17250if cmp -s $cache_file confcache; then
17251 :
17252else
17253 if test -w $cache_file; then
17254 echo "updating cache $cache_file"
17255 cat confcache > $cache_file
17256 else
17257 echo "not updating unwritable cache $cache_file"
17258 fi
17259fi
17260rm -f confcache
17261
17262trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17263
17264test "x$prefix" = xNONE && prefix=$ac_default_prefix
17265# Let make expand exec_prefix.
17266test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17267
17268# Any assignment to VPATH causes Sun make to only execute
17269# the first set of double-colon rules, so remove it if not needed.
17270# If there is a colon in the path, we need to keep it.
17271if test "x$srcdir" = x.; then
17272 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
17273fi
17274
17275trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17276
17277DEFS=-DHAVE_CONFIG_H
17278
17279# Without the "./", some shells look in PATH for config.status.
17280: ${CONFIG_STATUS=./config.status}
17281
17282echo creating $CONFIG_STATUS
17283rm -f $CONFIG_STATUS
17284cat > $CONFIG_STATUS <<EOF
17285#! /bin/sh
17286# Generated automatically by configure.
17287# Run this file to recreate the current configuration.
17288# This directory was configured as follows,
17289# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17290#
17291# $0 $ac_configure_args
17292#
17293# Compiler output produced by configure, useful for debugging
17294# configure, is in ./config.log if it exists.
17295
17296ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17297for ac_option
17298do
17299 case "\$ac_option" in
17300 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17301 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17302 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17303 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17304 echo "$CONFIG_STATUS generated by autoconf version 2.13"
17305 exit 0 ;;
17306 -help | --help | --hel | --he | --h)
17307 echo "\$ac_cs_usage"; exit 0 ;;
17308 *) echo "\$ac_cs_usage"; exit 1 ;;
17309 esac
17310done
17311
17312ac_given_srcdir=$srcdir
17313ac_given_INSTALL="$INSTALL"
17314
17315trap 'rm -fr `echo "
17316 wx-config
17317 src/make.env
17318 src/makeprog.env
17319 src/makelib.env
17320 Makefile
17321 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
17322EOF
17323cat >> $CONFIG_STATUS <<EOF
17324
17325# Protect against being on the right side of a sed subst in config.status.
17326sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17327 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17328$ac_vpsub
17329$extrasub
17330s%@SHELL@%$SHELL%g
17331s%@CFLAGS@%$CFLAGS%g
17332s%@CPPFLAGS@%$CPPFLAGS%g
17333s%@CXXFLAGS@%$CXXFLAGS%g
17334s%@FFLAGS@%$FFLAGS%g
17335s%@DEFS@%$DEFS%g
17336s%@LDFLAGS@%$LDFLAGS%g
17337s%@LIBS@%$LIBS%g
17338s%@exec_prefix@%$exec_prefix%g
17339s%@prefix@%$prefix%g
17340s%@program_transform_name@%$program_transform_name%g
17341s%@bindir@%$bindir%g
17342s%@sbindir@%$sbindir%g
17343s%@libexecdir@%$libexecdir%g
17344s%@datadir@%$datadir%g
17345s%@sysconfdir@%$sysconfdir%g
17346s%@sharedstatedir@%$sharedstatedir%g
17347s%@localstatedir@%$localstatedir%g
17348s%@libdir@%$libdir%g
17349s%@includedir@%$includedir%g
17350s%@oldincludedir@%$oldincludedir%g
17351s%@infodir@%$infodir%g
17352s%@mandir@%$mandir%g
17353s%@host@%$host%g
17354s%@host_alias@%$host_alias%g
17355s%@host_cpu@%$host_cpu%g
17356s%@host_vendor@%$host_vendor%g
17357s%@host_os@%$host_os%g
17358s%@target@%$target%g
17359s%@target_alias@%$target_alias%g
17360s%@target_cpu@%$target_cpu%g
17361s%@target_vendor@%$target_vendor%g
17362s%@target_os@%$target_os%g
17363s%@build@%$build%g
17364s%@build_alias@%$build_alias%g
17365s%@build_cpu@%$build_cpu%g
17366s%@build_vendor@%$build_vendor%g
17367s%@build_os@%$build_os%g
17368s%@CC@%$CC%g
17369s%@CPP@%$CPP%g
17370s%@CXX@%$CXX%g
17371s%@CXXCPP@%$CXXCPP%g
17372s%@RANLIB@%$RANLIB%g
17373s%@AR@%$AR%g
17374s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17375s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17376s%@INSTALL_DATA@%$INSTALL_DATA%g
17377s%@STRIP@%$STRIP%g
17378s%@YACC@%$YACC%g
17379s%@LEX@%$LEX%g
17380s%@LEXLIB@%$LEXLIB%g
17381s%@LN_S@%$LN_S%g
17382s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
17383s%@GTK_CONFIG@%$GTK_CONFIG%g
17384s%@GTK_CFLAGS@%$GTK_CFLAGS%g
17385s%@GTK_LIBS@%$GTK_LIBS%g
17386s%@X_CFLAGS@%$X_CFLAGS%g
17387s%@X_PRE_LIBS@%$X_PRE_LIBS%g
17388s%@X_LIBS@%$X_LIBS%g
17389s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
17390s%@REZ@%$REZ%g
17391s%@DEREZ@%$DEREZ%g
17392s%@LEX_STEM@%$LEX_STEM%g
17393s%@PATH_IFS@%$PATH_IFS%g
17394s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
17395s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
17396s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
17397s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
17398s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
17399s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
17400s%@WX_LIBRARY@%$WX_LIBRARY%g
17401s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
17402s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
17403s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
17404s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
17405s%@PROGRAM_EXT@%$PROGRAM_EXT%g
17406s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
17407s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
17408s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
17409s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
17410s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
17411s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
17412s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
17413s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
17414s%@WX_ALL@%$WX_ALL%g
17415s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
17416s%@SHARED_LD@%$SHARED_LD%g
17417s%@PIC_FLAG@%$PIC_FLAG%g
17418s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
17419s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
17420s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
17421s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
17422s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
17423s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
17424s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
17425s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
17426s%@USE_GUI@%$USE_GUI%g
17427s%@AFMINSTALL@%$AFMINSTALL%g
17428s%@SETUPH_DIR@%$SETUPH_DIR%g
17429s%@TOOLKIT@%$TOOLKIT%g
17430s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
17431s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
17432s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
17433s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
17434s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
17435s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
17436s%@ALL_OBJECTS@%$ALL_OBJECTS%g
17437s%@ALL_DEPFILES@%$ALL_DEPFILES%g
17438s%@GUIDIST@%$GUIDIST%g
17439s%@PORT_FILES@%$PORT_FILES%g
17440s%@DISTDIR@%$DISTDIR%g
17441s%@RPM_SPEC@%$RPM_SPEC%g
17442s%@RPM_FILES@%$RPM_FILES%g
17443s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
17444s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
17445s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
17446s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
17447s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
17448s%@USER_SUBDIRS@%$USER_SUBDIRS%g
17449s%@EXTRA_LIBS@%$EXTRA_LIBS%g
17450s%@OPENGL_LIBS@%$OPENGL_LIBS%g
17451s%@EXTRADEFS@%$EXTRADEFS%g
17452s%@LD_LIBS@%$LD_LIBS%g
17453s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
17454s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
17455s%@RESPROGRAM@%$RESPROGRAM%g
17456s%@RESCOMP@%$RESCOMP%g
17457s%@RESFLAGS@%$RESFLAGS%g
17458s%@REZFLAGS@%$REZFLAGS%g
17459s%@DEREZFLAGS@%$DEREZFLAGS%g
17460s%@LIBWXMACRES@%$LIBWXMACRES%g
17461s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
17462s%@DLLTOOL@%$DLLTOOL%g
17463s%@AS@%$AS%g
17464s%@NM@%$NM%g
17465s%@LD@%$LD%g
17466s%@MAKEINFO@%$MAKEINFO%g
17467s%@SET_MAKE@%$SET_MAKE%g
17468s%@subdirs@%$subdirs%g
17469
17470CEOF
17471EOF
17472
17473cat >> $CONFIG_STATUS <<\EOF
17474
17475# Split the substitutions into bite-sized pieces for seds with
17476# small command number limits, like on Digital OSF/1 and HP-UX.
17477ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17478ac_file=1 # Number of current file.
17479ac_beg=1 # First line for current file.
17480ac_end=$ac_max_sed_cmds # Line after last line for current file.
17481ac_more_lines=:
17482ac_sed_cmds=""
17483while $ac_more_lines; do
17484 if test $ac_beg -gt 1; then
17485 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17486 else
17487 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17488 fi
17489 if test ! -s conftest.s$ac_file; then
17490 ac_more_lines=false
17491 rm -f conftest.s$ac_file
17492 else
17493 if test -z "$ac_sed_cmds"; then
17494 ac_sed_cmds="sed -f conftest.s$ac_file"
17495 else
17496 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
17497 fi
17498 ac_file=`expr $ac_file + 1`
17499 ac_beg=$ac_end
17500 ac_end=`expr $ac_end + $ac_max_sed_cmds`
17501 fi
17502done
17503if test -z "$ac_sed_cmds"; then
17504 ac_sed_cmds=cat
17505fi
17506EOF
17507
17508cat >> $CONFIG_STATUS <<EOF
17509
17510CONFIG_FILES=\${CONFIG_FILES-"wx-config
17511 src/make.env
17512 src/makeprog.env
17513 src/makelib.env
17514 Makefile
17515 "}
17516EOF
17517cat >> $CONFIG_STATUS <<\EOF
17518for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
17519 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17520 case "$ac_file" in
17521 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17522 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17523 *) ac_file_in="${ac_file}.in" ;;
17524 esac
17525
17526 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
17527
17528 # Remove last slash and all that follows it. Not all systems have dirname.
17529 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17530 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17531 # The file is in a subdirectory.
17532 test ! -d "$ac_dir" && mkdir "$ac_dir"
17533 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
17534 # A "../" for each directory in $ac_dir_suffix.
17535 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
17536 else
17537 ac_dir_suffix= ac_dots=
17538 fi
17539
17540 case "$ac_given_srcdir" in
17541 .) srcdir=.
17542 if test -z "$ac_dots"; then top_srcdir=.
17543 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17544 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
17545 *) # Relative path.
17546 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17547 top_srcdir="$ac_dots$ac_given_srcdir" ;;
17548 esac
17549
17550 case "$ac_given_INSTALL" in
17551 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17552 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17553 esac
17554
17555 echo creating "$ac_file"
17556 rm -f "$ac_file"
17557 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17558 case "$ac_file" in
17559 *Makefile*) ac_comsub="1i\\
17560# $configure_input" ;;
17561 *) ac_comsub= ;;
17562 esac
17563
17564 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17565 sed -e "$ac_comsub
17566s%@configure_input@%$configure_input%g
17567s%@srcdir@%$srcdir%g
17568s%@top_srcdir@%$top_srcdir%g
17569s%@INSTALL@%$INSTALL%g
17570" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17571fi; done
17572rm -f conftest.s*
17573
17574# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17575# NAME is the cpp macro being defined and VALUE is the value it is being given.
17576#
17577# ac_d sets the value in "#define NAME VALUE" lines.
17578ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17579ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
17580ac_dC='\3'
17581ac_dD='%g'
17582# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17583ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17584ac_uB='\([ ]\)%\1#\2define\3'
17585ac_uC=' '
17586ac_uD='\4%g'
17587# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17588ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17589ac_eB='$%\1#\2define\3'
17590ac_eC=' '
17591ac_eD='%g'
17592
17593if test "${CONFIG_HEADERS+set}" != set; then
17594EOF
17595cat >> $CONFIG_STATUS <<EOF
17596 CONFIG_HEADERS="setup.h:setup.h.in"
17597EOF
17598cat >> $CONFIG_STATUS <<\EOF
17599fi
17600for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17601 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17602 case "$ac_file" in
17603 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17604 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17605 *) ac_file_in="${ac_file}.in" ;;
17606 esac
17607
17608 echo creating $ac_file
17609
17610 rm -f conftest.frag conftest.in conftest.out
17611 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17612 cat $ac_file_inputs > conftest.in
17613
17614EOF
17615
17616# Transform confdefs.h into a sed script conftest.vals that substitutes
17617# the proper values into config.h.in to produce config.h. And first:
17618# Protect against being on the right side of a sed subst in config.status.
17619# Protect against being in an unquoted here document in config.status.
17620rm -f conftest.vals
17621cat > conftest.hdr <<\EOF
17622s/[\\&%]/\\&/g
17623s%[\\$`]%\\&%g
17624s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17625s%ac_d%ac_u%gp
17626s%ac_u%ac_e%gp
17627EOF
17628sed -n -f conftest.hdr confdefs.h > conftest.vals
17629rm -f conftest.hdr
17630
17631# This sed command replaces #undef with comments. This is necessary, for
17632# example, in the case of _POSIX_SOURCE, which is predefined and required
17633# on some systems where configure will not decide to define it.
17634cat >> conftest.vals <<\EOF
17635s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17636EOF
17637
17638# Break up conftest.vals because some shells have a limit on
17639# the size of here documents, and old seds have small limits too.
17640
17641rm -f conftest.tail
17642while :
17643do
17644 ac_lines=`grep -c . conftest.vals`
17645 # grep -c gives empty output for an empty file on some AIX systems.
17646 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17647 # Write a limited-size here document to conftest.frag.
17648 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17649 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17650 echo 'CEOF
17651 sed -f conftest.frag conftest.in > conftest.out
17652 rm -f conftest.in
17653 mv conftest.out conftest.in
17654' >> $CONFIG_STATUS
17655 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17656 rm -f conftest.vals
17657 mv conftest.tail conftest.vals
17658done
17659rm -f conftest.vals
17660
17661cat >> $CONFIG_STATUS <<\EOF
17662 rm -f conftest.frag conftest.h
17663 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17664 cat conftest.in >> conftest.h
17665 rm -f conftest.in
17666 if cmp -s $ac_file conftest.h 2>/dev/null; then
17667 echo "$ac_file is unchanged"
17668 rm -f conftest.h
17669 else
17670 # Remove last slash and all that follows it. Not all systems have dirname.
17671 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17672 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17673 # The file is in a subdirectory.
17674 test ! -d "$ac_dir" && mkdir "$ac_dir"
17675 fi
17676 rm -f $ac_file
17677 mv conftest.h $ac_file
17678 fi
17679fi; done
17680
17681EOF
17682cat >> $CONFIG_STATUS <<EOF
17683
17684 SETUPH_DIR="${SETUPH_DIR}"
17685 TOOLKIT_NAME="${TOOLKIT_NAME}"
17686 LN_S="${LN_S}"
17687
17688
17689EOF
17690cat >> $CONFIG_STATUS <<\EOF
17691
17692 if test ! -f wx${TOOLKIT_NAME}-config; then
17693 chmod +x wx-config
17694 mv wx-config wx${TOOLKIT_NAME}-config
17695 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
17696 fi
17697
17698
17699 if test ! -d lib; then
17700 mkdir lib
17701 fi
17702 if test ! -d lib/wx; then
17703 mkdir lib/wx
17704 fi
17705 if test ! -d lib/wx/include; then
17706 mkdir lib/wx/include
17707 fi
17708 if test ! -d lib/wx/include/wx; then
17709 mkdir lib/wx/include/wx
17710 fi
17711 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
17712 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
17713 fi
17714 if test -f setup.h; then
17715 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
17716 fi
17717
17718
17719 if test ! -d include; then
17720 mkdir include
17721 fi
17722 if test ! -d include/wx; then
17723 mkdir include/wx
17724 fi
17725 if test ! -d include/wx/${SETUPH_DIR}; then
17726 mkdir include/wx/${SETUPH_DIR}
17727 fi
17728 if test -f setup.h; then
17729 cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h
17730 fi
17731
17732
17733exit 0
17734EOF
17735chmod +x $CONFIG_STATUS
17736rm -fr confdefs* $ac_clean_files
17737test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
17738
17739if test "$no_recursion" != yes; then
17740
17741 # Remove --cache-file and --srcdir arguments so they do not pile up.
17742 ac_sub_configure_args=
17743 ac_prev=
17744 for ac_arg in $ac_configure_args; do
17745 if test -n "$ac_prev"; then
17746 ac_prev=
17747 continue
17748 fi
17749 case "$ac_arg" in
17750 -cache-file | --cache-file | --cache-fil | --cache-fi \
17751 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17752 ac_prev=cache_file ;;
17753 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17754 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
17755 ;;
17756 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17757 ac_prev=srcdir ;;
17758 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17759 ;;
17760 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
17761 esac
17762 done
17763
17764 for ac_config_dir in demos samples utils contrib; do
17765
17766 # Do not complain, so a configure script can configure whichever
17767 # parts of a large source tree are present.
17768 if test ! -d $srcdir/$ac_config_dir; then
17769 continue
17770 fi
17771
17772 echo configuring in $ac_config_dir
17773
17774 case "$srcdir" in
17775 .) ;;
17776 *)
17777 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
17778 else
17779 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
17780 fi
17781 ;;
17782 esac
17783
17784 ac_popdir=`pwd`
17785 cd $ac_config_dir
17786
17787 # A "../" for each directory in /$ac_config_dir.
17788 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
17789
17790 case "$srcdir" in
17791 .) # No --srcdir option. We are building in place.
17792 ac_sub_srcdir=$srcdir ;;
17793 /*) # Absolute path.
17794 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
17795 *) # Relative path.
17796 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
17797 esac
17798
17799 # Check for guested configure; otherwise get Cygnus style configure.
17800 if test -f $ac_sub_srcdir/configure; then
17801 ac_sub_configure=$ac_sub_srcdir/configure
17802 elif test -f $ac_sub_srcdir/configure.in; then
17803 ac_sub_configure=$ac_configure
17804 else
17805 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
17806 ac_sub_configure=
17807 fi
17808
17809 # The recursion is here.
17810 if test -n "$ac_sub_configure"; then
17811
17812 # Make the cache file name correct relative to the subdirectory.
17813 case "$cache_file" in
17814 /*) ac_sub_cache_file=$cache_file ;;
17815 *) # Relative path.
17816 ac_sub_cache_file="$ac_dots$cache_file" ;;
17817 esac
17818 case "$ac_given_INSTALL" in
17819 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17820 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17821 esac
17822
17823 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
17824 # The eval makes quoting arguments work.
17825 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
17826 then :
17827 else
17828 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
17829 fi
17830 fi
17831
17832 cd $ac_popdir
17833 done
17834fi
17835
17836