]> git.saurik.com Git - wxWidgets.git/blame - configure
another assert added to check incorrect use of ctor
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
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
10f2d63a
VZ
36
37
38
39
40# Guess values for system-dependent variables and create Makefiles.
2224580a 41# Generated automatically using autoconf version 2.13
10f2d63a
VZ
42# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
43#
44# This configure script is free software; the Free Software Foundation
45# gives unlimited permission to copy, distribute and modify it.
46
47# Defaults:
48ac_help=
49ac_default_prefix=/usr/local
50# Any additions from configure.in:
51ac_help="$ac_help
52--enable-gui use GUI classes"
53ac_help="$ac_help
54 --with-gtk use GTK+"
55ac_help="$ac_help
56 --with-motif use Motif/Lesstif"
57ac_help="$ac_help
58 --with-wine use WINE"
59ac_help="$ac_help
60 --with-cygwin use Cygwin for MS-Windows"
61ac_help="$ac_help
62 --with-mingw use GCC Minimal MS-Windows"
e07802fc
VZ
63ac_help="$ac_help
64 --with-pm use OS/2 Presentation Manager"
10f2d63a
VZ
65ac_help="$ac_help
66 --with-gtk-prefix=PFX Prefix where GTK is installed"
67ac_help="$ac_help
68 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
69ac_help="$ac_help
10f2d63a
VZ
70--with-libpng use libpng (PNG image format)"
71ac_help="$ac_help
72--with-libjpeg use libjpeg (JPEG file format)"
73ac_help="$ac_help
c7a2bf27
RR
74--with-libtiff use libtiff (TIFF file format)"
75ac_help="$ac_help
10f2d63a
VZ
76--with-opengl use OpenGL (or Mesa)"
77ac_help="$ac_help
b12915c1
VZ
78--with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
79ac_help="$ac_help
80--with-zlib use zlib for LZW compression"
81ac_help="$ac_help
10f2d63a
VZ
82--with-odbc use the IODBC and wxODBC classes"
83ac_help="$ac_help
84--enable-shared create shared library code"
85ac_help="$ac_help
86--enable-optimise create optimised code"
87ac_help="$ac_help
88--enable-debug same as debug_flag and debug_info"
89ac_help="$ac_help
90--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
91ac_help="$ac_help
92--enable-debug_info create code with debugging information"
93ac_help="$ac_help
94--enable-debug_gdb create code with extra GDB debugging information"
95ac_help="$ac_help
96--enable-debug_cntxt use wxDebugContext"
97ac_help="$ac_help
98--enable-mem_tracing create code with memory tracing"
99ac_help="$ac_help
100--enable-profile create code with profiling information"
101ac_help="$ac_help
102--enable-no_rtti create code without RTTI information"
103ac_help="$ac_help
104--enable-no_exceptions create code without exceptions information"
105ac_help="$ac_help
106--enable-permissive compile code disregarding strict ANSI"
107ac_help="$ac_help
108--enable-no_deps create code without dependency information"
109ac_help="$ac_help
110--enable-intl use internationalization system"
111ac_help="$ac_help
112--enable-config use wxConfig (and derived) classes"
113ac_help="$ac_help
114--enable-sockets use socket/network classes"
115ac_help="$ac_help
116--enable-dialupman use dialup network classes"
117ac_help="$ac_help
118--enable-ipc use interprocess communication (wxSocket etc.)"
119ac_help="$ac_help
120--enable-apple_ieee use the Apple IEEE codec"
121ac_help="$ac_help
122--enable-timedate use date/time classes"
123ac_help="$ac_help
124--enable-wave use wxWave class"
125ac_help="$ac_help
126--enable-fraction use wxFraction class"
127ac_help="$ac_help
128--enable-dynlib use wxLibrary class for DLL loading"
129ac_help="$ac_help
130--enable-longlong use wxLongLong class"
131ac_help="$ac_help
132--enable-log use logging system"
133ac_help="$ac_help
134--enable-streams use wxStream etc classes"
135ac_help="$ac_help
136--enable-file use wxFile classes"
137ac_help="$ac_help
138--enable-textfile use wxTextFile classes"
139ac_help="$ac_help
140--enable-unicode compile wxString with Unicode support"
141ac_help="$ac_help
142--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
143ac_help="$ac_help
144--enable-wxprintfv use wxWindows implementation of vprintf()"
145ac_help="$ac_help
146--enable-joystick compile in joystick support (Linux only)"
147ac_help="$ac_help
148--enable-std_iostreams use standard C++ stream classes"
149ac_help="$ac_help
150--enable-fs_inet use virtual HTTP/FTP filesystems"
151ac_help="$ac_help
152--enable-fs_zip use virtual ZIP filesystems"
153ac_help="$ac_help
154--enable-zipstream use wxZipInputStream"
155ac_help="$ac_help
156--enable-threads use threads"
157ac_help="$ac_help
158--enable-serial use class serialization"
159ac_help="$ac_help
160--enable-docview use document view architecture"
161ac_help="$ac_help
162--enable-help use help (using external browser at present)"
163ac_help="$ac_help
164--enable-constraints use layout-constraints system"
165ac_help="$ac_help
166--enable-printarch use printing architecture"
167ac_help="$ac_help
168--enable-mdi use multiple document interface architecture"
169ac_help="$ac_help
170--enable-postscript use wxPostscriptDC device context (default for gtk+)"
171ac_help="$ac_help
172--enable-prologio use Prolog IO library"
173ac_help="$ac_help
174--enable-resources use wxWindows resources"
175ac_help="$ac_help
176--enable-xresources use X resources for save (default for gtk+)"
177ac_help="$ac_help
178--enable-clipboard use wxClipboard classes"
179ac_help="$ac_help
180--enable-dnd use Drag'n'Drop classes"
181ac_help="$ac_help
182--enable-wxtree make wxTree library"
183ac_help="$ac_help
184--enable-controls use all usual controls"
185ac_help="$ac_help
186--enable-accel use accelerators"
187ac_help="$ac_help
188--enable-caret use wxCaret class"
189ac_help="$ac_help
190--enable-bmpbutton use wxBitmapButton class"
191ac_help="$ac_help
192--enable-checkbox use wxCheckBox class"
193ac_help="$ac_help
194--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
195ac_help="$ac_help
196--enable-choice use wxChoice class"
197ac_help="$ac_help
198--enable-combobox use wxComboBox classes"
199ac_help="$ac_help
200--enable-gauge use wxGauge class"
201ac_help="$ac_help
202--enable-grid use wxGrid class"
203ac_help="$ac_help
204--enable-newgrid use new wxGrid class"
205ac_help="$ac_help
206--enable-imaglist use wxImageList class"
207ac_help="$ac_help
208--enable-listbox use wxListBox class"
209ac_help="$ac_help
210--enable-listctrl use wxListCtrl class"
211ac_help="$ac_help
212--enable-notebook use wxNotebook class"
213ac_help="$ac_help
214--enable-radiobox use wxRadioBox class"
215ac_help="$ac_help
216--enable-radiobtn use wxRadioButton class"
217ac_help="$ac_help
218--enable-sash use wxSashWindow class"
219ac_help="$ac_help
220--enable-scrollbar use wxScrollBar class and scrollable windows"
221ac_help="$ac_help
222--enable-slider use wxSlider class"
223ac_help="$ac_help
224--enable-spinbtn use wxSpinButton class"
225ac_help="$ac_help
56cfaa52
RR
226--enable-spinctrl use wxSpinCtrl class"
227ac_help="$ac_help
10f2d63a
VZ
228--enable-splitter use wxSplitterWindow class"
229ac_help="$ac_help
230--enable-statbmp use wxStaticBitmap class"
231ac_help="$ac_help
232--enable-statbox use wxStaticBox class"
233ac_help="$ac_help
234--enable-statline use wxStaticLine class"
235ac_help="$ac_help
236--enable-statusbar use wxStatusBar class"
237ac_help="$ac_help
238--enable-tabdialog use wxTabControl class"
239ac_help="$ac_help
240--enable-toolbar use wxToolBar class"
241ac_help="$ac_help
360d6699
VZ
242--enable-tbarnative use native wxToolBar class"
243ac_help="$ac_help
244--enable-tbarsmpl use wxToolBarSimple class"
245ac_help="$ac_help
10f2d63a
VZ
246--enable-treectrl use wxTreeCtrl class"
247ac_help="$ac_help
248--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
249ac_help="$ac_help
250--enable-dirdlg use wxDirDialog"
251ac_help="$ac_help
252--enable-textdlg use wxTextDialog"
253ac_help="$ac_help
254--enable-tipdlg use startup tips"
255ac_help="$ac_help
256--enable-progressdlg use wxProgressDialog"
257ac_help="$ac_help
258--enable-miniframe use wxMiniFrame class"
259ac_help="$ac_help
260--enable-html use wxHTML sub-library"
261ac_help="$ac_help
262--enable-tooltips use wxToolTip class"
263ac_help="$ac_help
264--enable-splines use spline drawing code"
265ac_help="$ac_help
266--enable-validators use wxValidator and derived classes"
267ac_help="$ac_help
268--enable-busyinfo use wxBusyInfo"
269ac_help="$ac_help
270--enable-gif use gif images (GIF file format)"
271ac_help="$ac_help
272--enable-pcx use pcx images (PCX file format)"
273ac_help="$ac_help
274--enable-pnm use pnm images (PNM file format)"
ab9b9eab
VZ
275ac_help="$ac_help
276 --with-x use the X Window System"
10f2d63a
VZ
277
278# Initialize some variables set by options.
279# The variables have the same names as the options, with
280# dashes changed to underlines.
281build=NONE
282cache_file=./config.cache
283exec_prefix=NONE
284host=NONE
285no_create=
286nonopt=NONE
287no_recursion=
288prefix=NONE
289program_prefix=NONE
290program_suffix=NONE
291program_transform_name=s,x,x,
292silent=
293site=
294srcdir=
295target=NONE
296verbose=
297x_includes=NONE
298x_libraries=NONE
299bindir='${exec_prefix}/bin'
300sbindir='${exec_prefix}/sbin'
301libexecdir='${exec_prefix}/libexec'
302datadir='${prefix}/share'
303sysconfdir='${prefix}/etc'
304sharedstatedir='${prefix}/com'
305localstatedir='${prefix}/var'
306libdir='${exec_prefix}/lib'
307includedir='${prefix}/include'
308oldincludedir='/usr/include'
309infodir='${prefix}/info'
310mandir='${prefix}/man'
311
312# Initialize some other variables.
313subdirs=
314MFLAGS= MAKEFLAGS=
315SHELL=${CONFIG_SHELL-/bin/sh}
316# Maximum number of lines to put in a shell here document.
317ac_max_here_lines=12
318
319ac_prev=
320for ac_option
321do
322
323 # If the previous option needs an argument, assign it.
324 if test -n "$ac_prev"; then
325 eval "$ac_prev=\$ac_option"
326 ac_prev=
327 continue
328 fi
329
330 case "$ac_option" in
331 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
332 *) ac_optarg= ;;
333 esac
334
335 # Accept the important Cygnus configure options, so we can diagnose typos.
336
337 case "$ac_option" in
338
339 -bindir | --bindir | --bindi | --bind | --bin | --bi)
340 ac_prev=bindir ;;
341 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
342 bindir="$ac_optarg" ;;
343
344 -build | --build | --buil | --bui | --bu)
345 ac_prev=build ;;
346 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
347 build="$ac_optarg" ;;
348
349 -cache-file | --cache-file | --cache-fil | --cache-fi \
350 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
351 ac_prev=cache_file ;;
352 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
353 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
354 cache_file="$ac_optarg" ;;
355
356 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
357 ac_prev=datadir ;;
358 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
359 | --da=*)
360 datadir="$ac_optarg" ;;
361
362 -disable-* | --disable-*)
363 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
366 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
367 fi
368 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
369 eval "enable_${ac_feature}=no" ;;
370
371 -enable-* | --enable-*)
372 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
375 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
376 fi
377 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
378 case "$ac_option" in
379 *=*) ;;
380 *) ac_optarg=yes ;;
381 esac
382 eval "enable_${ac_feature}='$ac_optarg'" ;;
383
384 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
385 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
386 | --exec | --exe | --ex)
387 ac_prev=exec_prefix ;;
388 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
389 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
390 | --exec=* | --exe=* | --ex=*)
391 exec_prefix="$ac_optarg" ;;
392
393 -gas | --gas | --ga | --g)
394 # Obsolete; use --with-gas.
395 with_gas=yes ;;
396
397 -help | --help | --hel | --he)
398 # Omit some internal or obsolete options to make the list less imposing.
399 # This message is too long to be a string in the A/UX 3.1 sh.
400 cat << EOF
401Usage: configure [options] [host]
402Options: [defaults in brackets after descriptions]
403Configuration:
404 --cache-file=FILE cache test results in FILE
405 --help print this message
406 --no-create do not create output files
407 --quiet, --silent do not print \`checking...' messages
408 --version print the version of autoconf that created configure
409Directory and file names:
410 --prefix=PREFIX install architecture-independent files in PREFIX
411 [$ac_default_prefix]
412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
413 [same as prefix]
414 --bindir=DIR user executables in DIR [EPREFIX/bin]
415 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
416 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
417 --datadir=DIR read-only architecture-independent data in DIR
418 [PREFIX/share]
419 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
420 --sharedstatedir=DIR modifiable architecture-independent data in DIR
421 [PREFIX/com]
422 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
423 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
424 --includedir=DIR C header files in DIR [PREFIX/include]
425 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
426 --infodir=DIR info documentation in DIR [PREFIX/info]
427 --mandir=DIR man documentation in DIR [PREFIX/man]
428 --srcdir=DIR find the sources in DIR [configure dir or ..]
429 --program-prefix=PREFIX prepend PREFIX to installed program names
430 --program-suffix=SUFFIX append SUFFIX to installed program names
431 --program-transform-name=PROGRAM
432 run sed PROGRAM on installed program names
433EOF
434 cat << EOF
435Host type:
436 --build=BUILD configure for building on BUILD [BUILD=HOST]
437 --host=HOST configure for HOST [guessed]
438 --target=TARGET configure for TARGET [TARGET=HOST]
439Features and packages:
440 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
441 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
444 --x-includes=DIR X include files are in DIR
445 --x-libraries=DIR X library files are in DIR
446EOF
447 if test -n "$ac_help"; then
448 echo "--enable and --with options recognized:$ac_help"
449 fi
450 exit 0 ;;
451
452 -host | --host | --hos | --ho)
453 ac_prev=host ;;
454 -host=* | --host=* | --hos=* | --ho=*)
455 host="$ac_optarg" ;;
456
457 -includedir | --includedir | --includedi | --included | --include \
458 | --includ | --inclu | --incl | --inc)
459 ac_prev=includedir ;;
460 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
461 | --includ=* | --inclu=* | --incl=* | --inc=*)
462 includedir="$ac_optarg" ;;
463
464 -infodir | --infodir | --infodi | --infod | --info | --inf)
465 ac_prev=infodir ;;
466 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
467 infodir="$ac_optarg" ;;
468
469 -libdir | --libdir | --libdi | --libd)
470 ac_prev=libdir ;;
471 -libdir=* | --libdir=* | --libdi=* | --libd=*)
472 libdir="$ac_optarg" ;;
473
474 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
475 | --libexe | --libex | --libe)
476 ac_prev=libexecdir ;;
477 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
478 | --libexe=* | --libex=* | --libe=*)
479 libexecdir="$ac_optarg" ;;
480
481 -localstatedir | --localstatedir | --localstatedi | --localstated \
482 | --localstate | --localstat | --localsta | --localst \
483 | --locals | --local | --loca | --loc | --lo)
484 ac_prev=localstatedir ;;
485 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
486 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
487 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
488 localstatedir="$ac_optarg" ;;
489
490 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
491 ac_prev=mandir ;;
492 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
493 mandir="$ac_optarg" ;;
494
495 -nfp | --nfp | --nf)
496 # Obsolete; use --without-fp.
497 with_fp=no ;;
498
499 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
500 | --no-cr | --no-c)
501 no_create=yes ;;
502
503 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
504 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
505 no_recursion=yes ;;
506
507 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
508 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
509 | --oldin | --oldi | --old | --ol | --o)
510 ac_prev=oldincludedir ;;
511 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
512 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
513 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
514 oldincludedir="$ac_optarg" ;;
515
516 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
517 ac_prev=prefix ;;
518 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
519 prefix="$ac_optarg" ;;
520
521 -program-prefix | --program-prefix | --program-prefi | --program-pref \
522 | --program-pre | --program-pr | --program-p)
523 ac_prev=program_prefix ;;
524 -program-prefix=* | --program-prefix=* | --program-prefi=* \
525 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
526 program_prefix="$ac_optarg" ;;
527
528 -program-suffix | --program-suffix | --program-suffi | --program-suff \
529 | --program-suf | --program-su | --program-s)
530 ac_prev=program_suffix ;;
531 -program-suffix=* | --program-suffix=* | --program-suffi=* \
532 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
533 program_suffix="$ac_optarg" ;;
534
535 -program-transform-name | --program-transform-name \
536 | --program-transform-nam | --program-transform-na \
537 | --program-transform-n | --program-transform- \
538 | --program-transform | --program-transfor \
539 | --program-transfo | --program-transf \
540 | --program-trans | --program-tran \
541 | --progr-tra | --program-tr | --program-t)
542 ac_prev=program_transform_name ;;
543 -program-transform-name=* | --program-transform-name=* \
544 | --program-transform-nam=* | --program-transform-na=* \
545 | --program-transform-n=* | --program-transform-=* \
546 | --program-transform=* | --program-transfor=* \
547 | --program-transfo=* | --program-transf=* \
548 | --program-trans=* | --program-tran=* \
549 | --progr-tra=* | --program-tr=* | --program-t=*)
550 program_transform_name="$ac_optarg" ;;
551
552 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
553 | -silent | --silent | --silen | --sile | --sil)
554 silent=yes ;;
555
556 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
557 ac_prev=sbindir ;;
558 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
559 | --sbi=* | --sb=*)
560 sbindir="$ac_optarg" ;;
561
562 -sharedstatedir | --sharedstatedir | --sharedstatedi \
563 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
564 | --sharedst | --shareds | --shared | --share | --shar \
565 | --sha | --sh)
566 ac_prev=sharedstatedir ;;
567 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
568 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
569 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
570 | --sha=* | --sh=*)
571 sharedstatedir="$ac_optarg" ;;
572
573 -site | --site | --sit)
574 ac_prev=site ;;
575 -site=* | --site=* | --sit=*)
576 site="$ac_optarg" ;;
577
578 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
579 ac_prev=srcdir ;;
580 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
581 srcdir="$ac_optarg" ;;
582
583 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
584 | --syscon | --sysco | --sysc | --sys | --sy)
585 ac_prev=sysconfdir ;;
586 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
587 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
588 sysconfdir="$ac_optarg" ;;
589
590 -target | --target | --targe | --targ | --tar | --ta | --t)
591 ac_prev=target ;;
592 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
593 target="$ac_optarg" ;;
594
595 -v | -verbose | --verbose | --verbos | --verbo | --verb)
596 verbose=yes ;;
597
598 -version | --version | --versio | --versi | --vers)
2224580a 599 echo "configure generated by autoconf version 2.13"
10f2d63a
VZ
600 exit 0 ;;
601
602 -with-* | --with-*)
603 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
604 # Reject names that are not valid shell variable names.
605 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
606 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
607 fi
608 ac_package=`echo $ac_package| sed 's/-/_/g'`
609 case "$ac_option" in
610 *=*) ;;
611 *) ac_optarg=yes ;;
612 esac
613 eval "with_${ac_package}='$ac_optarg'" ;;
614
615 -without-* | --without-*)
616 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
617 # Reject names that are not valid shell variable names.
618 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
619 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
620 fi
621 ac_package=`echo $ac_package| sed 's/-/_/g'`
622 eval "with_${ac_package}=no" ;;
623
624 --x)
625 # Obsolete; use --with-x.
626 with_x=yes ;;
627
628 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
629 | --x-incl | --x-inc | --x-in | --x-i)
630 ac_prev=x_includes ;;
631 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
632 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
633 x_includes="$ac_optarg" ;;
634
635 -x-libraries | --x-libraries | --x-librarie | --x-librari \
636 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
637 ac_prev=x_libraries ;;
638 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
639 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
640 x_libraries="$ac_optarg" ;;
641
642 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
643 ;;
644
645 *)
646 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
647 echo "configure: warning: $ac_option: invalid host type" 1>&2
648 fi
649 if test "x$nonopt" != xNONE; then
650 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
651 fi
652 nonopt="$ac_option"
653 ;;
654
655 esac
656done
657
658if test -n "$ac_prev"; then
659 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
660fi
661
662trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
663
664# File descriptor usage:
665# 0 standard input
666# 1 file creation
667# 2 errors and warnings
668# 3 some systems may open it to /dev/tty
669# 4 used on the Kubota Titan
670# 6 checking for... messages and results
671# 5 compiler messages saved in config.log
672if test "$silent" = yes; then
673 exec 6>/dev/null
674else
675 exec 6>&1
676fi
677exec 5>./config.log
678
679echo "\
680This file contains any messages produced by compilers while
681running configure, to aid debugging if configure makes a mistake.
682" 1>&5
683
684# Strip out --no-create and --no-recursion so they do not pile up.
685# Also quote any args containing shell metacharacters.
686ac_configure_args=
687for ac_arg
688do
689 case "$ac_arg" in
690 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
691 | --no-cr | --no-c) ;;
692 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
693 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
694 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
695 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
696 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
697 esac
698done
699
700# NLS nuisances.
701# Only set these to C if already set. These must not be set unconditionally
702# because not all systems understand e.g. LANG=C (notably SCO).
703# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
704# Non-C LC_CTYPE values break the ctype check.
705if test "${LANG+set}" = set; then LANG=C; export LANG; fi
706if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
707if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
708if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
709
710# confdefs.h avoids OS command line length limits that DEFS can exceed.
711rm -rf conftest* confdefs.h
712# AIX cpp loses on an empty file, so make sure it contains at least a newline.
713echo > confdefs.h
714
715# A filename unique to this package, relative to the directory that
716# configure is in, which we can look for to find out if srcdir is correct.
717ac_unique_file=wx-config.in
718
719# Find the source files, if location was not specified.
720if test -z "$srcdir"; then
721 ac_srcdir_defaulted=yes
722 # Try the directory containing this script, then its parent.
723 ac_prog=$0
724 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
725 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
726 srcdir=$ac_confdir
727 if test ! -r $srcdir/$ac_unique_file; then
728 srcdir=..
729 fi
730else
731 ac_srcdir_defaulted=no
732fi
733if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
735 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
736 else
737 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
738 fi
739fi
740srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
741
742# Prefer explicitly selected file to automatically selected ones.
743if test -z "$CONFIG_SITE"; then
744 if test "x$prefix" != xNONE; then
745 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
746 else
747 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
748 fi
749fi
750for ac_site_file in $CONFIG_SITE; do
751 if test -r "$ac_site_file"; then
752 echo "loading site script $ac_site_file"
753 . "$ac_site_file"
754 fi
755done
756
757if test -r "$cache_file"; then
758 echo "loading cache $cache_file"
759 . $cache_file
760else
761 echo "creating cache $cache_file"
762 > $cache_file
763fi
764
765ac_ext=c
766# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
767ac_cpp='$CPP $CPPFLAGS'
768ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
769ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
770cross_compiling=$ac_cv_prog_cc_cross
771
772ac_exeext=
773ac_objext=o
774if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
775 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
776 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
777 ac_n= ac_c='
778' ac_t=' '
779 else
780 ac_n=-n ac_c= ac_t=
781 fi
782else
783 ac_n= ac_c='\c' ac_t=
784fi
785
786
787
10f2d63a
VZ
788
789WX_MAJOR_VERSION_NUMBER=2
790WX_MINOR_VERSION_NUMBER=1
88413fec 791WX_RELEASE_NUMBER=13
10f2d63a
VZ
792
793WX_INTERFACE_AGE=0
794WX_BINARY_AGE=0
795
796WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
797
798WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
799WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
800WX_REVISION=$WX_INTERFACE_AGE
801WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
802
803
804USE_UNIX=1
805USE_WIN32=0
b12915c1
VZ
806USE_BEOS=0
807
10f2d63a
VZ
808USE_LINUX=
809USE_SGI=
810USE_HPUX=
811USE_SYSV=
812USE_SVR4=
813USE_AIX=
814USE_SUN=
815USE_SOLARIS=
816USE_SUNOS=
817USE_ALPHA=
818USE_OSF=
819USE_BSD=
820USE_FREEBSD=
821USE_VMS=
822USE_ULTRIX=
823USE_CYGWIN=
824USE_MINGW=
825USE_DATA_GENERAL=
826
ab9b9eab
VZ
827NEEDS_D_REENTRANT_FOR_R_FUNCS=0
828
e07802fc 829ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM"
10f2d63a
VZ
830
831DEFAULT_wxUSE_GTK=0
832DEFAULT_wxUSE_MOTIF=0
833DEFAULT_wxUSE_MSW=0
834DEFAULT_wxUSE_WINE=0
e07802fc 835DEFAULT_wxUSE_PM=0
10f2d63a
VZ
836
837DEFAULT_DEFAULT_wxUSE_GTK=0
838DEFAULT_DEFAULT_wxUSE_MOTIF=0
839DEFAULT_DEFAULT_wxUSE_MSW=0
840DEFAULT_DEFAULT_wxUSE_WINE=0
e07802fc 841DEFAULT_DEFAULT_wxUSE_PM=0
10f2d63a
VZ
842
843case "${host}" in
844 *-hp-hpux* )
845 USE_HPUX=1
846 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 847 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
848 cat >> confdefs.h <<\EOF
849#define __HPUX__ 1
850EOF
851
852 ;;
853 *-*-linux* )
854 USE_LINUX=1
855 cat >> confdefs.h <<\EOF
856#define __LINUX__ 1
857EOF
858
859 TMP=`uname -m`
860 if test "x$TMP" = "xalpha"; then
861 USE_ALPHA=1
862 cat >> confdefs.h <<\EOF
863#define __ALPHA__ 1
864EOF
865
866 fi
867 DEFAULT_DEFAULT_wxUSE_GTK=1
868 ;;
869 *-*-irix5* | *-*-irix6* )
870 USE_SGI=1
871 USE_SVR4=1
872 cat >> confdefs.h <<\EOF
873#define __SGI__ 1
874EOF
875
876 cat >> confdefs.h <<\EOF
877#define __SVR4__ 1
878EOF
879
880 DEFAULT_DEFAULT_wxUSE_MOTIF=1
881 ;;
882 *-*-solaris2* )
883 USE_SUN=1
884 USE_SOLARIS=1
885 USE_SVR4=1
886 cat >> confdefs.h <<\EOF
887#define __SUN__ 1
888EOF
889
890 cat >> confdefs.h <<\EOF
891#define __SOLARIS__ 1
892EOF
893
894 cat >> confdefs.h <<\EOF
895#define __SVR4__ 1
896EOF
897
898 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 899 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
900 ;;
901 *-*-sunos4* )
902 USE_SUN=1
903 USE_SUNOS=1
904 USE_BSD=1
905 cat >> confdefs.h <<\EOF
906#define __SUN__ 1
907EOF
908
909 cat >> confdefs.h <<\EOF
910#define __SUNOS__ 1
911EOF
912
913 cat >> confdefs.h <<\EOF
914#define __BSD__ 1
915EOF
916
917 DEFAULT_DEFAULT_wxUSE_MOTIF=1
918 ;;
919 *-*-freebsd* | *-*-netbsd*)
920 USE_BSD=1
921 USE_FREEBSD=1
922 cat >> confdefs.h <<\EOF
923#define __FREEBSD__ 1
924EOF
925
926 cat >> confdefs.h <<\EOF
927#define __BSD__ 1
928EOF
929
930 DEFAULT_DEFAULT_wxUSE_GTK=1
931 ;;
932 *-*-osf* )
933 USE_ALPHA=1
934 USE_OSF=1
935 cat >> confdefs.h <<\EOF
936#define __ALPHA__ 1
937EOF
938
939 cat >> confdefs.h <<\EOF
940#define __OSF__ 1
941EOF
942
943 DEFAULT_DEFAULT_wxUSE_MOTIF=1
944 ;;
945 *-*-dgux5* )
946 USE_ALPHA=1
947 USE_SVR4=1
948 cat >> confdefs.h <<\EOF
949#define __ALPHA__ 1
950EOF
951
952 cat >> confdefs.h <<\EOF
953#define __SVR4__ 1
954EOF
955
956 DEFAULT_DEFAULT_wxUSE_MOTIF=1
957 ;;
958 *-*-sysv5* )
959 USE_SYSV=1
960 USE_SVR4=1
961 cat >> confdefs.h <<\EOF
962#define __SYSV__ 1
963EOF
964
965 cat >> confdefs.h <<\EOF
966#define __SVR4__ 1
967EOF
968
969 DEFAULT_DEFAULT_wxUSE_MOTIF=1
970 ;;
971 *-*-aix* )
972 USE_AIX=1
973 USE_SYSV=1
974 USE_SVR4=1
975 cat >> confdefs.h <<\EOF
976#define __AIX__ 1
977EOF
978
979 cat >> confdefs.h <<\EOF
980#define __SYSV__ 1
981EOF
982
983 cat >> confdefs.h <<\EOF
984#define __SVR4__ 1
985EOF
986
987 DEFAULT_DEFAULT_wxUSE_MOTIF=1
988 ;;
989
7eef8db2 990 *-*-cygwin32* | *-*-mingw32* )
10f2d63a
VZ
991 USE_UNIX=0
992 USE_WIN32=1
993 cat >> confdefs.h <<\EOF
994#define __WIN32__ 1
995EOF
996
997 cat >> confdefs.h <<\EOF
998#define __WIN95__ 1
999EOF
1000
1001 cat >> confdefs.h <<\EOF
1002#define __WINDOWS__ 1
1003EOF
1004
1005 cat >> confdefs.h <<\EOF
1006#define __GNUWIN32__ 1
1007EOF
1008
1009 cat >> confdefs.h <<\EOF
1010#define STRICT 1
1011EOF
1012
1013 cat >> confdefs.h <<\EOF
1014#define WINVER 0x0400
1015EOF
1016
cf27ef00 1017 PROGRAM_EXT=".exe"
10f2d63a
VZ
1018 DEFAULT_DEFAULT_wxUSE_MSW=1
1019 ;;
1020
1021 *-pc-os2_emx )
1022 cat >> confdefs.h <<\EOF
1023#define __EMX__ 1
1024EOF
1025
cf27ef00 1026 PROGRAM_EXT=".exe"
e07802fc 1027 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1028 ;;
1029
b12915c1
VZ
1030 *-*-beos* )
1031 USE_BEOS=1
1032 cat >> confdefs.h <<\EOF
1033#define __BEOS__ 1
1034EOF
1035
1036 ;;
1037
10f2d63a
VZ
1038 *)
1039 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1040esac
1041
1042if test "$USE_UNIX" = 1 ; then
b12915c1
VZ
1043 wxUSE_UNIX=yes
1044 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1045#define __UNIX__ 1
1046EOF
1047
b12915c1
VZ
1048
1049 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1050 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1051fi
1052
1053if test "$USE_BEOS" = 1; then
1054 SRC_SUBDIRS="$SRC_SUBDIRS be"
1055 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1056fi
1057
1058if test "$USE_LINUX" = 1; then
1059 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
7e99ad86 1060echo "configure:1061: checking for gettext in -lc" >&5
10f2d63a
VZ
1061ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1062if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1063 echo $ac_n "(cached) $ac_c" 1>&6
1064else
1065 ac_save_LIBS="$LIBS"
1066LIBS="-lc $LIBS"
1067cat > conftest.$ac_ext <<EOF
7e99ad86 1068#line 1069 "configure"
10f2d63a
VZ
1069#include "confdefs.h"
1070/* Override any gcc2 internal prototype to avoid an error. */
1071/* We use char because int might match the return type of a gcc2
1072 builtin and then its argument prototype would still apply. */
1073char gettext();
1074
1075int main() {
1076gettext()
1077; return 0; }
1078EOF
7e99ad86 1079if { (eval echo configure:1080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1080 rm -rf conftest*
1081 eval "ac_cv_lib_$ac_lib_var=yes"
1082else
1083 echo "configure: failed program was:" >&5
1084 cat conftest.$ac_ext >&5
1085 rm -rf conftest*
1086 eval "ac_cv_lib_$ac_lib_var=no"
1087fi
1088rm -f conftest*
1089LIBS="$ac_save_LIBS"
1090
1091fi
1092if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1093 echo "$ac_t""yes" 1>&6
1094 cat >> confdefs.h <<\EOF
1095#define wxHAVE_GLIBC2 1
1096EOF
1097
1098else
1099 echo "$ac_t""no" 1>&6
1100fi
1101
1102fi
1103
1104
1105
1106
1107 wx_arg_cache_file="configarg.cache"
1108 echo "loading argument cache $wx_arg_cache_file"
1109 rm -f ${wx_arg_cache_file}.tmp
1110 touch ${wx_arg_cache_file}.tmp
1111 touch ${wx_arg_cache_file}
1112
1113
1114DEBUG_CONFIGURE=0
1115if test $DEBUG_CONFIGURE = 1; then
1116 DEFAULT_wxUSE_THREADS=yes
1117
1118 DEFAULT_wxUSE_SHARED=yes
1119 DEFAULT_wxUSE_OPTIMISE=yes
1120 DEFAULT_wxUSE_PROFILE=no
1121 DEFAULT_wxUSE_NO_DEPS=no
1122 DEFAULT_wxUSE_NO_RTTI=no
1123 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1124 DEFAULT_wxUSE_PERMISSIVE=no
1125 DEFAULT_wxUSE_DEBUG_FLAG=yes
1126 DEFAULT_wxUSE_DEBUG_INFO=yes
1127 DEFAULT_wxUSE_DEBUG_GDB=yes
1128 DEFAULT_wxUSE_MEM_TRACING=no
1129 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1130 DEFAULT_wxUSE_DMALLOC=no
1131 DEFAULT_wxUSE_APPLE_IEEE=no
1132
1133 DEFAULT_wxUSE_LOG=yes
1134
1135 DEFAULT_wxUSE_GUI=yes
1136
1137 DEFAULT_wxUSE_ZLIB=no
1138 DEFAULT_wxUSE_LIBPNG=no
1139 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1140 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a
VZ
1141 DEFAULT_wxUSE_ODBC=no
1142
1143 DEFAULT_wxUSE_STD_IOSTREAM=no
1144 DEFAULT_wxUSE_FILE=no
1145 DEFAULT_wxUSE_TEXTFILE=no
1146 DEFAULT_wxUSE_TIMEDATE=no
1147 DEFAULT_wxUSE_WAVE=no
1148 DEFAULT_wxUSE_INTL=no
1149 DEFAULT_wxUSE_CONFIG=no
1150 DEFAULT_wxUSE_STREAMS=no
1151 DEFAULT_wxUSE_SOCKETS=no
1152 DEFAULT_wxUSE_DIALUP_MANAGER=no
1153 DEFAULT_wxUSE_SERIAL=no
1154 DEFAULT_wxUSE_JOYSTICK=no
1155 DEFAULT_wxUSE_DYNLIB_CLASS=no
1156 DEFAULT_wxUSE_LONGLONG=no
1157
1158 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1159 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1160 DEFAULT_wxUSE_POSTSCRIPT=no
1161
1162 DEFAULT_wxUSE_X_RESOURCES=no
1163 DEFAULT_wxUSE_CLIPBOARD=no
1164 DEFAULT_wxUSE_TOOLTIPS=no
1165 DEFAULT_wxUSE_DRAG_AND_DROP=no
1166 DEFAULT_wxUSE_SPLINES=no
1167
1168 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1169 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1170 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1171
1172 DEFAULT_wxUSE_PROLOGIO=no
1173 DEFAULT_wxUSE_RESOURCES=no
1174 DEFAULT_wxUSE_CONSTRAINTS=no
1175 DEFAULT_wxUSE_IPC=no
1176 DEFAULT_wxUSE_HELP=no
1177 DEFAULT_wxUSE_WXTREE=no
1178 DEFAULT_wxUSE_METAFILE=no
1179
1180 DEFAULT_wxUSE_COMMONDLGS=no
1181 DEFAULT_wxUSE_DIRDLG=no
1182 DEFAULT_wxUSE_TEXTDLG=no
1183 DEFAULT_wxUSE_STARTUP_TIPS=no
1184 DEFAULT_wxUSE_PROGRESSDLG=no
1185 DEFAULT_wxUSE_MINIFRAME=no
1186 DEFAULT_wxUSE_HTML=no
1187 DEFAULT_wxUSE_FS_INET=no
1188 DEFAULT_wxUSE_FS_ZIP=no
1189 DEFAULT_wxUSE_BUSYINFO=no
1190 DEFAULT_wxUSE_ZIPSTREAM=no
1191 DEFAULT_wxUSE_VALIDATORS=yes
1192
1193 DEFAULT_wxUSE_ACCEL=no
1194 DEFAULT_wxUSE_CARET=no
1195 DEFAULT_wxUSE_BMPBUTTON=no
1196 DEFAULT_wxUSE_CHECKBOX=no
1197 DEFAULT_wxUSE_CHECKLST=no
1198 DEFAULT_wxUSE_CHOICE=yes
1199 DEFAULT_wxUSE_COMBOBOX=no
1200 DEFAULT_wxUSE_GAUGE=no
1201 DEFAULT_wxUSE_GRID=no
1202 DEFAULT_wxUSE_NEW_GRID=no
1203 DEFAULT_wxUSE_IMAGLIST=no
1204 DEFAULT_wxUSE_LISTBOX=no
1205 DEFAULT_wxUSE_LISTCTRL=no
1206 DEFAULT_wxUSE_NOTEBOOK=no
1207 DEFAULT_wxUSE_RADIOBOX=no
1208 DEFAULT_wxUSE_RADIOBTN=no
1209 DEFAULT_wxUSE_SASH=no
1210 DEFAULT_wxUSE_SCROLLBAR=no
1211 DEFAULT_wxUSE_SLIDER=no
1212 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1213 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1214 DEFAULT_wxUSE_SPLITTER=no
1215 DEFAULT_wxUSE_STATBMP=no
1216 DEFAULT_wxUSE_STATBOX=no
1217 DEFAULT_wxUSE_STATLINE=no
1218 DEFAULT_wxUSE_STATUSBAR=yes
1219 DEFAULT_wxUSE_TABDIALOG=no
1220 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1221 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1222 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1223 DEFAULT_wxUSE_TREECTRL=no
1224
1225 DEFAULT_wxUSE_UNICODE=no
1226 DEFAULT_wxUSE_WCSRTOMBS=no
1227
1228 DEFAULT_wxUSE_GIF=no
1229 DEFAULT_wxUSE_PCX=no
1230 DEFAULT_wxUSE_PNM=no
1231else
1232 DEFAULT_wxUSE_THREADS=yes
1233
1234 DEFAULT_wxUSE_SHARED=yes
1235 DEFAULT_wxUSE_OPTIMISE=yes
1236 DEFAULT_wxUSE_PROFILE=no
1237 DEFAULT_wxUSE_NO_DEPS=no
1238 DEFAULT_wxUSE_NO_RTTI=no
1239 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1240 DEFAULT_wxUSE_PERMISSIVE=no
1241 DEFAULT_wxUSE_DEBUG_FLAG=no
1242 DEFAULT_wxUSE_DEBUG_INFO=no
1243 DEFAULT_wxUSE_DEBUG_GDB=no
1244 DEFAULT_wxUSE_MEM_TRACING=no
1245 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1246 DEFAULT_wxUSE_DMALLOC=no
1247 DEFAULT_wxUSE_APPLE_IEEE=yes
1248
1249 DEFAULT_wxUSE_LOG=yes
1250
1251 DEFAULT_wxUSE_GUI=yes
1252
1253 DEFAULT_wxUSE_ZLIB=yes
1254 DEFAULT_wxUSE_LIBPNG=yes
1255 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1256 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1257 DEFAULT_wxUSE_ODBC=no
10f2d63a
VZ
1258
1259 DEFAULT_wxUSE_STD_IOSTREAM=no
1260 DEFAULT_wxUSE_FILE=yes
1261 DEFAULT_wxUSE_TEXTFILE=yes
1262 DEFAULT_wxUSE_TIMEDATE=yes
1263 DEFAULT_wxUSE_WAVE=no
1264 DEFAULT_wxUSE_INTL=yes
1265 DEFAULT_wxUSE_CONFIG=yes
1266 DEFAULT_wxUSE_STREAMS=yes
1267 DEFAULT_wxUSE_SOCKETS=yes
1268 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1269 DEFAULT_wxUSE_SERIAL=yes
1270 DEFAULT_wxUSE_JOYSTICK=yes
1271 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1272 DEFAULT_wxUSE_LONGLONG=yes
10f2d63a
VZ
1273
1274 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1275 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1276 DEFAULT_wxUSE_POSTSCRIPT=yes
1277
1278 DEFAULT_wxUSE_X_RESOURCES=no
1279 DEFAULT_wxUSE_CLIPBOARD=yes
1280 DEFAULT_wxUSE_TOOLTIPS=yes
1281 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1282 DEFAULT_wxUSE_SPLINES=yes
1283
1284 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1285 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1286 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1287
1288 DEFAULT_wxUSE_PROLOGIO=yes
1289 DEFAULT_wxUSE_RESOURCES=yes
1290 DEFAULT_wxUSE_CONSTRAINTS=yes
1291 DEFAULT_wxUSE_IPC=yes
1292 DEFAULT_wxUSE_HELP=yes
1293 DEFAULT_wxUSE_WXTREE=yes
1294 DEFAULT_wxUSE_METAFILE=yes
1295
1296 DEFAULT_wxUSE_COMMONDLGS=yes
1297 DEFAULT_wxUSE_DIRDLG=yes
1298 DEFAULT_wxUSE_TEXTDLG=yes
1299 DEFAULT_wxUSE_STARTUP_TIPS=yes
1300 DEFAULT_wxUSE_PROGRESSDLG=yes
1301 DEFAULT_wxUSE_MINIFRAME=yes
1302 DEFAULT_wxUSE_HTML=yes
1303 DEFAULT_wxUSE_FS_INET=yes
1304 DEFAULT_wxUSE_FS_ZIP=yes
1305 DEFAULT_wxUSE_BUSYINFO=yes
1306 DEFAULT_wxUSE_ZIPSTREAM=yes
1307 DEFAULT_wxUSE_VALIDATORS=yes
1308
1309 DEFAULT_wxUSE_ACCEL=yes
1310 DEFAULT_wxUSE_CARET=yes
1311 DEFAULT_wxUSE_BMPBUTTON=yes
1312 DEFAULT_wxUSE_CHECKBOX=yes
1313 DEFAULT_wxUSE_CHECKLST=yes
1314 DEFAULT_wxUSE_CHOICE=yes
1315 DEFAULT_wxUSE_COMBOBOX=yes
1316 DEFAULT_wxUSE_GAUGE=yes
1317 DEFAULT_wxUSE_GRID=yes
fc9c7c09 1318 DEFAULT_wxUSE_NEW_GRID=no
10f2d63a
VZ
1319 DEFAULT_wxUSE_IMAGLIST=yes
1320 DEFAULT_wxUSE_LISTBOX=yes
1321 DEFAULT_wxUSE_LISTCTRL=yes
1322 DEFAULT_wxUSE_NOTEBOOK=yes
1323 DEFAULT_wxUSE_RADIOBOX=yes
1324 DEFAULT_wxUSE_RADIOBTN=yes
1325 DEFAULT_wxUSE_SASH=yes
1326 DEFAULT_wxUSE_SCROLLBAR=yes
1327 DEFAULT_wxUSE_SLIDER=yes
1328 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1329 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1330 DEFAULT_wxUSE_SPLITTER=yes
1331 DEFAULT_wxUSE_STATBMP=yes
1332 DEFAULT_wxUSE_STATBOX=yes
1333 DEFAULT_wxUSE_STATLINE=yes
1334 DEFAULT_wxUSE_STATUSBAR=yes
1335 DEFAULT_wxUSE_TABDIALOG=no
1336 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1337 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1338 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1339 DEFAULT_wxUSE_TREECTRL=yes
1340
1341 DEFAULT_wxUSE_UNICODE=no
1342 DEFAULT_wxUSE_WCSRTOMBS=no
1343
1344 DEFAULT_wxUSE_GIF=yes
1345 DEFAULT_wxUSE_PCX=yes
1346 DEFAULT_wxUSE_PNM=yes
1347fi
1348
1349
1350
1351for toolkit in `echo $ALL_TOOLKITS`; do
1352 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1353 if test "x$LINE" != x ; then
1354 has_toolkit_in_cache=1
1355 eval "DEFAULT_$LINE"
1356 eval "CACHE_$toolkit=1"
1357 fi
1358done
1359
1360
1361
1362 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
7e99ad86 1363echo "configure:1364: checking "for --enable-gui"" >&5
10f2d63a
VZ
1364 no_cache=0
1365 # Check whether --enable-gui or --disable-gui was given.
1366if test "${enable_gui+set}" = set; then
1367 enableval="$enable_gui"
1368
1369 if test "$enableval" = yes; then
1370 ac_cv_use_gui='wxUSE_GUI=yes'
1371 else
1372 ac_cv_use_gui='wxUSE_GUI=no'
1373 fi
1374
1375else
1376
1377 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1378 if test "x$LINE" != x ; then
1379 eval "DEFAULT_$LINE"
1380 else
1381 no_cache=1
1382 fi
1383
1384 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1385
1386fi
1387
1388
1389 eval "$ac_cv_use_gui"
1390 if test "$no_cache" != 1; then
1391 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1392 fi
1393
1394 if test "$wxUSE_GUI" = yes; then
1395 echo "$ac_t""yes" 1>&6
1396 else
1397 echo "$ac_t""no" 1>&6
1398 fi
1399
1400
b12915c1 1401if test "$wxUSE_GUI" = "yes"; then
10f2d63a
VZ
1402
1403# Check whether --with-gtk or --without-gtk was given.
1404if test "${with_gtk+set}" = set; then
1405 withval="$with_gtk"
1406 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1407fi
1408
1409# Check whether --with-motif or --without-motif was given.
1410if test "${with_motif+set}" = set; then
1411 withval="$with_motif"
1412 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1413fi
1414
1415# Check whether --with-wine or --without-wine was given.
1416if test "${with_wine+set}" = set; then
1417 withval="$with_wine"
1418 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1419fi
1420
1421# Check whether --with-cygwin or --without-cygwin was given.
1422if test "${with_cygwin+set}" = set; then
1423 withval="$with_cygwin"
1424 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1425fi
1426
1427# Check whether --with-mingw or --without-mingw was given.
1428if test "${with_mingw+set}" = set; then
1429 withval="$with_mingw"
1430 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1431fi
1432
e07802fc
VZ
1433# Check whether --with-pm or --without-pm was given.
1434if test "${with_pm+set}" = set; then
1435 withval="$with_pm"
1436 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1437fi
1438
10f2d63a
VZ
1439
1440# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1441if test "${with_gtk_prefix+set}" = set; then
1442 withval="$with_gtk_prefix"
1443 gtk_config_prefix="$withval"
1444else
1445 gtk_config_prefix=""
1446fi
1447
1448# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1449if test "${with_gtk_exec_prefix+set}" = set; then
1450 withval="$with_gtk_exec_prefix"
1451 gtk_config_exec_prefix="$withval"
1452else
1453 gtk_config_exec_prefix=""
1454fi
1455
1456
1457
b12915c1 1458 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
7e99ad86 1459echo "configure:1460: checking "for --with-libpng"" >&5
10f2d63a 1460 no_cache=0
b12915c1
VZ
1461 # Check whether --with-libpng or --without-libpng was given.
1462if test "${with_libpng+set}" = set; then
1463 withval="$with_libpng"
10f2d63a
VZ
1464
1465 if test "$withval" = yes; then
b12915c1 1466 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
10f2d63a 1467 else
b12915c1 1468 ac_cv_use_libpng='wxUSE_LIBPNG=no'
10f2d63a
VZ
1469 fi
1470
1471else
1472
b12915c1 1473 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1474 if test "x$LINE" != x ; then
1475 eval "DEFAULT_$LINE"
1476 else
1477 no_cache=1
1478 fi
1479
b12915c1 1480 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a
VZ
1481
1482fi
1483
1484
b12915c1 1485 eval "$ac_cv_use_libpng"
10f2d63a 1486 if test "$no_cache" != 1; then
b12915c1 1487 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1488 fi
1489
b12915c1 1490 if test "$wxUSE_LIBPNG" = yes; then
10f2d63a
VZ
1491 echo "$ac_t""yes" 1>&6
1492 else
1493 echo "$ac_t""no" 1>&6
1494 fi
1495
1496
b12915c1 1497 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
7e99ad86 1498echo "configure:1499: checking "for --with-libjpeg"" >&5
10f2d63a 1499 no_cache=0
b12915c1
VZ
1500 # Check whether --with-libjpeg or --without-libjpeg was given.
1501if test "${with_libjpeg+set}" = set; then
1502 withval="$with_libjpeg"
10f2d63a
VZ
1503
1504 if test "$withval" = yes; then
b12915c1 1505 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
10f2d63a 1506 else
b12915c1 1507 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
10f2d63a
VZ
1508 fi
1509
1510else
1511
b12915c1 1512 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1513 if test "x$LINE" != x ; then
1514 eval "DEFAULT_$LINE"
1515 else
1516 no_cache=1
1517 fi
1518
b12915c1 1519 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a
VZ
1520
1521fi
1522
1523
b12915c1 1524 eval "$ac_cv_use_libjpeg"
10f2d63a 1525 if test "$no_cache" != 1; then
b12915c1 1526 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1527 fi
1528
b12915c1 1529 if test "$wxUSE_LIBJPEG" = yes; then
10f2d63a
VZ
1530 echo "$ac_t""yes" 1>&6
1531 else
1532 echo "$ac_t""no" 1>&6
1533 fi
1534
1535
b12915c1 1536 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
7e99ad86 1537echo "configure:1538: checking "for --with-libtiff"" >&5
10f2d63a 1538 no_cache=0
b12915c1
VZ
1539 # Check whether --with-libtiff or --without-libtiff was given.
1540if test "${with_libtiff+set}" = set; then
1541 withval="$with_libtiff"
10f2d63a
VZ
1542
1543 if test "$withval" = yes; then
b12915c1 1544 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
10f2d63a 1545 else
b12915c1 1546 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
10f2d63a
VZ
1547 fi
1548
1549else
1550
b12915c1 1551 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1552 if test "x$LINE" != x ; then
1553 eval "DEFAULT_$LINE"
1554 else
1555 no_cache=1
1556 fi
1557
b12915c1 1558 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a
VZ
1559
1560fi
1561
1562
b12915c1 1563 eval "$ac_cv_use_libtiff"
10f2d63a 1564 if test "$no_cache" != 1; then
b12915c1 1565 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1566 fi
1567
b12915c1 1568 if test "$wxUSE_LIBTIFF" = yes; then
10f2d63a
VZ
1569 echo "$ac_t""yes" 1>&6
1570 else
1571 echo "$ac_t""no" 1>&6
1572 fi
1573
1574
b12915c1 1575 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
7e99ad86 1576echo "configure:1577: checking "for --with-opengl"" >&5
10f2d63a 1577 no_cache=0
b12915c1
VZ
1578 # Check whether --with-opengl or --without-opengl was given.
1579if test "${with_opengl+set}" = set; then
1580 withval="$with_opengl"
10f2d63a
VZ
1581
1582 if test "$withval" = yes; then
b12915c1 1583 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 1584 else
b12915c1 1585 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a
VZ
1586 fi
1587
1588else
1589
b12915c1 1590 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
1591 if test "x$LINE" != x ; then
1592 eval "DEFAULT_$LINE"
1593 else
1594 no_cache=1
1595 fi
1596
b12915c1 1597 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a
VZ
1598
1599fi
1600
1601
b12915c1 1602 eval "$ac_cv_use_opengl"
10f2d63a 1603 if test "$no_cache" != 1; then
b12915c1 1604 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1605 fi
1606
b12915c1 1607 if test "$wxUSE_OPENGL" = yes; then
10f2d63a
VZ
1608 echo "$ac_t""yes" 1>&6
1609 else
1610 echo "$ac_t""no" 1>&6
1611 fi
1612
1613
b12915c1
VZ
1614fi
1615
1616
1617 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
7e99ad86 1618echo "configure:1619: checking "for --with-dmalloc"" >&5
c7a2bf27 1619 no_cache=0
b12915c1
VZ
1620 # Check whether --with-dmalloc or --without-dmalloc was given.
1621if test "${with_dmalloc+set}" = set; then
1622 withval="$with_dmalloc"
c7a2bf27
RR
1623
1624 if test "$withval" = yes; then
b12915c1 1625 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 1626 else
b12915c1 1627 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27
RR
1628 fi
1629
1630else
1631
b12915c1 1632 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
1633 if test "x$LINE" != x ; then
1634 eval "DEFAULT_$LINE"
1635 else
1636 no_cache=1
1637 fi
1638
b12915c1 1639 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27
RR
1640
1641fi
1642
1643
b12915c1 1644 eval "$ac_cv_use_dmalloc"
c7a2bf27 1645 if test "$no_cache" != 1; then
b12915c1 1646 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
1647 fi
1648
b12915c1 1649 if test "$wxUSE_DMALLOC" = yes; then
c7a2bf27
RR
1650 echo "$ac_t""yes" 1>&6
1651 else
1652 echo "$ac_t""no" 1>&6
1653 fi
1654
1655
b12915c1 1656 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
7e99ad86 1657echo "configure:1658: checking "for --with-zlib"" >&5
10f2d63a 1658 no_cache=0
b12915c1
VZ
1659 # Check whether --with-zlib or --without-zlib was given.
1660if test "${with_zlib+set}" = set; then
1661 withval="$with_zlib"
10f2d63a
VZ
1662
1663 if test "$withval" = yes; then
b12915c1 1664 ac_cv_use_zlib='wxUSE_ZLIB=yes'
10f2d63a 1665 else
b12915c1 1666 ac_cv_use_zlib='wxUSE_ZLIB=no'
10f2d63a
VZ
1667 fi
1668
1669else
1670
b12915c1 1671 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
1672 if test "x$LINE" != x ; then
1673 eval "DEFAULT_$LINE"
1674 else
1675 no_cache=1
1676 fi
1677
b12915c1 1678 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a
VZ
1679
1680fi
1681
1682
b12915c1 1683 eval "$ac_cv_use_zlib"
10f2d63a 1684 if test "$no_cache" != 1; then
b12915c1 1685 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1686 fi
1687
b12915c1 1688 if test "$wxUSE_ZLIB" = yes; then
10f2d63a
VZ
1689 echo "$ac_t""yes" 1>&6
1690 else
1691 echo "$ac_t""no" 1>&6
1692 fi
1693
1694
1695 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
7e99ad86 1696echo "configure:1697: checking "for --with-odbc"" >&5
10f2d63a
VZ
1697 no_cache=0
1698 # Check whether --with-odbc or --without-odbc was given.
1699if test "${with_odbc+set}" = set; then
1700 withval="$with_odbc"
1701
1702 if test "$withval" = yes; then
1703 ac_cv_use_odbc='wxUSE_ODBC=yes'
1704 else
1705 ac_cv_use_odbc='wxUSE_ODBC=no'
1706 fi
1707
1708else
1709
1710 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1711 if test "x$LINE" != x ; then
1712 eval "DEFAULT_$LINE"
1713 else
1714 no_cache=1
1715 fi
1716
1717 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1718
1719fi
1720
1721
1722 eval "$ac_cv_use_odbc"
1723 if test "$no_cache" != 1; then
1724 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1725 fi
1726
1727 if test "$wxUSE_ODBC" = yes; then
1728 echo "$ac_t""yes" 1>&6
1729 else
1730 echo "$ac_t""no" 1>&6
1731 fi
1732
1733
1734
1735
1736
1737 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
7e99ad86 1738echo "configure:1739: checking "for --enable-shared"" >&5
10f2d63a
VZ
1739 no_cache=0
1740 # Check whether --enable-shared or --disable-shared was given.
1741if test "${enable_shared+set}" = set; then
1742 enableval="$enable_shared"
1743
1744 if test "$enableval" = yes; then
1745 ac_cv_use_shared='wxUSE_SHARED=yes'
1746 else
1747 ac_cv_use_shared='wxUSE_SHARED=no'
1748 fi
1749
1750else
1751
1752 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1753 if test "x$LINE" != x ; then
1754 eval "DEFAULT_$LINE"
1755 else
1756 no_cache=1
1757 fi
1758
1759 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1760
1761fi
1762
1763
1764 eval "$ac_cv_use_shared"
1765 if test "$no_cache" != 1; then
1766 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1767 fi
1768
1769 if test "$wxUSE_SHARED" = yes; then
1770 echo "$ac_t""yes" 1>&6
1771 else
1772 echo "$ac_t""no" 1>&6
1773 fi
1774
1775
1776 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
7e99ad86 1777echo "configure:1778: checking "for --enable-optimise"" >&5
10f2d63a
VZ
1778 no_cache=0
1779 # Check whether --enable-optimise or --disable-optimise was given.
1780if test "${enable_optimise+set}" = set; then
1781 enableval="$enable_optimise"
1782
1783 if test "$enableval" = yes; then
1784 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1785 else
1786 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1787 fi
1788
1789else
1790
1791 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1792 if test "x$LINE" != x ; then
1793 eval "DEFAULT_$LINE"
1794 else
1795 no_cache=1
1796 fi
1797
1798 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1799
1800fi
1801
1802
1803 eval "$ac_cv_use_optimise"
1804 if test "$no_cache" != 1; then
1805 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1806 fi
1807
1808 if test "$wxUSE_OPTIMISE" = yes; then
1809 echo "$ac_t""yes" 1>&6
1810 else
1811 echo "$ac_t""no" 1>&6
1812 fi
1813
1814
1815 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
7e99ad86 1816echo "configure:1817: checking "for --enable-debug"" >&5
10f2d63a
VZ
1817 no_cache=0
1818 # Check whether --enable-debug or --disable-debug was given.
1819if test "${enable_debug+set}" = set; then
1820 enableval="$enable_debug"
1821
1822 if test "$enableval" = yes; then
1823 ac_cv_use_debug='wxUSE_DEBUG=yes'
1824 else
1825 ac_cv_use_debug='wxUSE_DEBUG=no'
1826 fi
1827
1828else
1829
1830 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
1831 if test "x$LINE" != x ; then
1832 eval "DEFAULT_$LINE"
1833 else
1834 no_cache=1
1835 fi
1836
1837 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
1838
1839fi
1840
1841
1842 eval "$ac_cv_use_debug"
1843 if test "$no_cache" != 1; then
1844 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
1845 fi
1846
1847 if test "$wxUSE_DEBUG" = yes; then
1848 echo "$ac_t""yes" 1>&6
1849 else
1850 echo "$ac_t""no" 1>&6
1851 fi
1852
1853
1854if test "$wxUSE_DEBUG" = "yes"; then
1855 DEFAULT_wxUSE_DEBUG_FLAG=yes
1856 DEFAULT_wxUSE_DEBUG_INFO=yes
1857elif test "$wxUSE_DEBUG" = "no"; then
1858 DEFAULT_wxUSE_DEBUG_FLAG=no
1859 DEFAULT_wxUSE_DEBUG_INFO=no
1860fi
1861
1862
1863 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
7e99ad86 1864echo "configure:1865: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
1865 no_cache=0
1866 # Check whether --enable-debug_flag or --disable-debug_flag was given.
1867if test "${enable_debug_flag+set}" = set; then
1868 enableval="$enable_debug_flag"
1869
1870 if test "$enableval" = yes; then
1871 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
1872 else
1873 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
1874 fi
1875
1876else
1877
1878 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
1879 if test "x$LINE" != x ; then
1880 eval "DEFAULT_$LINE"
1881 else
1882 no_cache=1
1883 fi
1884
1885 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
1886
1887fi
1888
1889
1890 eval "$ac_cv_use_debug_flag"
1891 if test "$no_cache" != 1; then
1892 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
1893 fi
1894
1895 if test "$wxUSE_DEBUG_FLAG" = yes; then
1896 echo "$ac_t""yes" 1>&6
1897 else
1898 echo "$ac_t""no" 1>&6
1899 fi
1900
1901
1902 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
7e99ad86 1903echo "configure:1904: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
1904 no_cache=0
1905 # Check whether --enable-debug_info or --disable-debug_info was given.
1906if test "${enable_debug_info+set}" = set; then
1907 enableval="$enable_debug_info"
1908
1909 if test "$enableval" = yes; then
1910 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
1911 else
1912 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
1913 fi
1914
1915else
1916
1917 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
1918 if test "x$LINE" != x ; then
1919 eval "DEFAULT_$LINE"
1920 else
1921 no_cache=1
1922 fi
1923
1924 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
1925
1926fi
1927
1928
1929 eval "$ac_cv_use_debug_info"
1930 if test "$no_cache" != 1; then
1931 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
1932 fi
1933
1934 if test "$wxUSE_DEBUG_INFO" = yes; then
1935 echo "$ac_t""yes" 1>&6
1936 else
1937 echo "$ac_t""no" 1>&6
1938 fi
1939
1940
1941 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
7e99ad86 1942echo "configure:1943: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
1943 no_cache=0
1944 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
1945if test "${enable_debug_gdb+set}" = set; then
1946 enableval="$enable_debug_gdb"
1947
1948 if test "$enableval" = yes; then
1949 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
1950 else
1951 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
1952 fi
1953
1954else
1955
1956 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
1957 if test "x$LINE" != x ; then
1958 eval "DEFAULT_$LINE"
1959 else
1960 no_cache=1
1961 fi
1962
1963 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
1964
1965fi
1966
1967
1968 eval "$ac_cv_use_debug_gdb"
1969 if test "$no_cache" != 1; then
1970 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
1971 fi
1972
1973 if test "$wxUSE_DEBUG_GDB" = yes; then
1974 echo "$ac_t""yes" 1>&6
1975 else
1976 echo "$ac_t""no" 1>&6
1977 fi
1978
1979
1980 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
7e99ad86 1981echo "configure:1982: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
1982 no_cache=0
1983 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
1984if test "${enable_debug_cntxt+set}" = set; then
1985 enableval="$enable_debug_cntxt"
1986
1987 if test "$enableval" = yes; then
1988 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
1989 else
1990 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
1991 fi
1992
1993else
1994
1995 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
1996 if test "x$LINE" != x ; then
1997 eval "DEFAULT_$LINE"
1998 else
1999 no_cache=1
2000 fi
2001
2002 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2003
2004fi
2005
2006
2007 eval "$ac_cv_use_debug_cntxt"
2008 if test "$no_cache" != 1; then
2009 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2010 fi
2011
2012 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2013 echo "$ac_t""yes" 1>&6
2014 else
2015 echo "$ac_t""no" 1>&6
2016 fi
2017
2018
2019 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
7e99ad86 2020echo "configure:2021: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2021 no_cache=0
2022 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2023if test "${enable_mem_tracing+set}" = set; then
2024 enableval="$enable_mem_tracing"
2025
2026 if test "$enableval" = yes; then
2027 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2028 else
2029 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2030 fi
2031
2032else
2033
2034 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2035 if test "x$LINE" != x ; then
2036 eval "DEFAULT_$LINE"
2037 else
2038 no_cache=1
2039 fi
2040
2041 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2042
2043fi
2044
2045
2046 eval "$ac_cv_use_mem_tracing"
2047 if test "$no_cache" != 1; then
2048 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2049 fi
2050
2051 if test "$wxUSE_MEM_TRACING" = yes; then
2052 echo "$ac_t""yes" 1>&6
2053 else
2054 echo "$ac_t""no" 1>&6
2055 fi
2056
2057
2058 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
7e99ad86 2059echo "configure:2060: checking "for --enable-profile"" >&5
10f2d63a
VZ
2060 no_cache=0
2061 # Check whether --enable-profile or --disable-profile was given.
2062if test "${enable_profile+set}" = set; then
2063 enableval="$enable_profile"
2064
2065 if test "$enableval" = yes; then
2066 ac_cv_use_profile='wxUSE_PROFILE=yes'
2067 else
2068 ac_cv_use_profile='wxUSE_PROFILE=no'
2069 fi
2070
2071else
2072
2073 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2074 if test "x$LINE" != x ; then
2075 eval "DEFAULT_$LINE"
2076 else
2077 no_cache=1
2078 fi
2079
2080 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2081
2082fi
2083
2084
2085 eval "$ac_cv_use_profile"
2086 if test "$no_cache" != 1; then
2087 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2088 fi
2089
2090 if test "$wxUSE_PROFILE" = yes; then
2091 echo "$ac_t""yes" 1>&6
2092 else
2093 echo "$ac_t""no" 1>&6
2094 fi
2095
2096
2097 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
7e99ad86 2098echo "configure:2099: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2099 no_cache=0
2100 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2101if test "${enable_no_rtti+set}" = set; then
2102 enableval="$enable_no_rtti"
2103
2104 if test "$enableval" = yes; then
2105 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2106 else
2107 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2108 fi
2109
2110else
2111
2112 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2113 if test "x$LINE" != x ; then
2114 eval "DEFAULT_$LINE"
2115 else
2116 no_cache=1
2117 fi
2118
2119 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2120
2121fi
2122
2123
2124 eval "$ac_cv_use_no_rtti"
2125 if test "$no_cache" != 1; then
2126 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2127 fi
2128
2129 if test "$wxUSE_NO_RTTI" = yes; then
2130 echo "$ac_t""yes" 1>&6
2131 else
2132 echo "$ac_t""no" 1>&6
2133 fi
2134
2135
2136 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
7e99ad86 2137echo "configure:2138: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2138 no_cache=0
2139 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2140if test "${enable_no_exceptions+set}" = set; then
2141 enableval="$enable_no_exceptions"
2142
2143 if test "$enableval" = yes; then
2144 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2145 else
2146 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2147 fi
2148
2149else
2150
2151 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2152 if test "x$LINE" != x ; then
2153 eval "DEFAULT_$LINE"
2154 else
2155 no_cache=1
2156 fi
2157
2158 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2159
2160fi
2161
2162
2163 eval "$ac_cv_use_no_exceptions"
2164 if test "$no_cache" != 1; then
2165 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2166 fi
2167
2168 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2169 echo "$ac_t""yes" 1>&6
2170 else
2171 echo "$ac_t""no" 1>&6
2172 fi
2173
2174
2175 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
7e99ad86 2176echo "configure:2177: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2177 no_cache=0
2178 # Check whether --enable-permissive or --disable-permissive was given.
2179if test "${enable_permissive+set}" = set; then
2180 enableval="$enable_permissive"
2181
2182 if test "$enableval" = yes; then
2183 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2184 else
2185 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2186 fi
2187
2188else
2189
2190 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2191 if test "x$LINE" != x ; then
2192 eval "DEFAULT_$LINE"
2193 else
2194 no_cache=1
2195 fi
2196
2197 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2198
2199fi
2200
2201
2202 eval "$ac_cv_use_permissive"
2203 if test "$no_cache" != 1; then
2204 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2205 fi
2206
2207 if test "$wxUSE_PERMISSIVE" = yes; then
2208 echo "$ac_t""yes" 1>&6
2209 else
2210 echo "$ac_t""no" 1>&6
2211 fi
2212
2213
2214 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
7e99ad86 2215echo "configure:2216: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2216 no_cache=0
2217 # Check whether --enable-no_deps or --disable-no_deps was given.
2218if test "${enable_no_deps+set}" = set; then
2219 enableval="$enable_no_deps"
2220
2221 if test "$enableval" = yes; then
2222 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2223 else
2224 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2225 fi
2226
2227else
2228
2229 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2230 if test "x$LINE" != x ; then
2231 eval "DEFAULT_$LINE"
2232 else
2233 no_cache=1
2234 fi
2235
2236 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2237
2238fi
2239
2240
2241 eval "$ac_cv_use_no_deps"
2242 if test "$no_cache" != 1; then
2243 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2244 fi
2245
2246 if test "$wxUSE_NO_DEPS" = yes; then
2247 echo "$ac_t""yes" 1>&6
2248 else
2249 echo "$ac_t""no" 1>&6
2250 fi
2251
2252
2253
2254
2255 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
7e99ad86 2256echo "configure:2257: checking "for --enable-intl"" >&5
10f2d63a
VZ
2257 no_cache=0
2258 # Check whether --enable-intl or --disable-intl was given.
2259if test "${enable_intl+set}" = set; then
2260 enableval="$enable_intl"
2261
2262 if test "$enableval" = yes; then
2263 ac_cv_use_intl='wxUSE_INTL=yes'
2264 else
2265 ac_cv_use_intl='wxUSE_INTL=no'
2266 fi
2267
2268else
2269
2270 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2271 if test "x$LINE" != x ; then
2272 eval "DEFAULT_$LINE"
2273 else
2274 no_cache=1
2275 fi
2276
2277 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2278
2279fi
2280
2281
2282 eval "$ac_cv_use_intl"
2283 if test "$no_cache" != 1; then
2284 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2285 fi
2286
2287 if test "$wxUSE_INTL" = yes; then
2288 echo "$ac_t""yes" 1>&6
2289 else
2290 echo "$ac_t""no" 1>&6
2291 fi
2292
2293
2294 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
7e99ad86 2295echo "configure:2296: checking "for --enable-config"" >&5
10f2d63a
VZ
2296 no_cache=0
2297 # Check whether --enable-config or --disable-config was given.
2298if test "${enable_config+set}" = set; then
2299 enableval="$enable_config"
2300
2301 if test "$enableval" = yes; then
2302 ac_cv_use_config='wxUSE_CONFIG=yes'
2303 else
2304 ac_cv_use_config='wxUSE_CONFIG=no'
2305 fi
2306
2307else
2308
2309 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2310 if test "x$LINE" != x ; then
2311 eval "DEFAULT_$LINE"
2312 else
2313 no_cache=1
2314 fi
2315
2316 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2317
2318fi
2319
2320
2321 eval "$ac_cv_use_config"
2322 if test "$no_cache" != 1; then
2323 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2324 fi
2325
2326 if test "$wxUSE_CONFIG" = yes; then
2327 echo "$ac_t""yes" 1>&6
2328 else
2329 echo "$ac_t""no" 1>&6
2330 fi
2331
2332
b12915c1
VZ
2333if test "$wxUSE_GUI" = "yes"; then
2334
10f2d63a 2335 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
7e99ad86 2336echo "configure:2337: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2337 no_cache=0
2338 # Check whether --enable-sockets or --disable-sockets was given.
2339if test "${enable_sockets+set}" = set; then
2340 enableval="$enable_sockets"
2341
2342 if test "$enableval" = yes; then
2343 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2344 else
2345 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2346 fi
2347
2348else
2349
2350 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2351 if test "x$LINE" != x ; then
2352 eval "DEFAULT_$LINE"
2353 else
2354 no_cache=1
2355 fi
2356
2357 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2358
2359fi
2360
2361
2362 eval "$ac_cv_use_sockets"
2363 if test "$no_cache" != 1; then
2364 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2365 fi
2366
2367 if test "$wxUSE_SOCKETS" = yes; then
2368 echo "$ac_t""yes" 1>&6
2369 else
2370 echo "$ac_t""no" 1>&6
2371 fi
2372
b12915c1
VZ
2373else
2374wxUSE_SOCKETS=no
2375fi
2376
10f2d63a
VZ
2377
2378 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
7e99ad86 2379echo "configure:2380: checking "for --enable-dialupman"" >&5
10f2d63a
VZ
2380 no_cache=0
2381 # Check whether --enable-dialupman or --disable-dialupman was given.
2382if test "${enable_dialupman+set}" = set; then
2383 enableval="$enable_dialupman"
2384
2385 if test "$enableval" = yes; then
2386 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2387 else
2388 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2389 fi
2390
2391else
2392
2393 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2394 if test "x$LINE" != x ; then
2395 eval "DEFAULT_$LINE"
2396 else
2397 no_cache=1
2398 fi
2399
2400 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2401
2402fi
2403
2404
2405 eval "$ac_cv_use_dialupman"
2406 if test "$no_cache" != 1; then
2407 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2408 fi
2409
2410 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2411 echo "$ac_t""yes" 1>&6
2412 else
2413 echo "$ac_t""no" 1>&6
2414 fi
2415
2416
2417 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
7e99ad86 2418echo "configure:2419: checking "for --enable-ipc"" >&5
10f2d63a
VZ
2419 no_cache=0
2420 # Check whether --enable-ipc or --disable-ipc was given.
2421if test "${enable_ipc+set}" = set; then
2422 enableval="$enable_ipc"
2423
2424 if test "$enableval" = yes; then
2425 ac_cv_use_ipc='wxUSE_IPC=yes'
2426 else
2427 ac_cv_use_ipc='wxUSE_IPC=no'
2428 fi
2429
2430else
2431
2432 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2433 if test "x$LINE" != x ; then
2434 eval "DEFAULT_$LINE"
2435 else
2436 no_cache=1
2437 fi
2438
2439 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2440
2441fi
2442
2443
2444 eval "$ac_cv_use_ipc"
2445 if test "$no_cache" != 1; then
2446 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2447 fi
2448
2449 if test "$wxUSE_IPC" = yes; then
2450 echo "$ac_t""yes" 1>&6
2451 else
2452 echo "$ac_t""no" 1>&6
2453 fi
2454
2455
2456 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
7e99ad86 2457echo "configure:2458: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2458 no_cache=0
2459 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2460if test "${enable_apple_ieee+set}" = set; then
2461 enableval="$enable_apple_ieee"
2462
2463 if test "$enableval" = yes; then
2464 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2465 else
2466 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2467 fi
2468
2469else
2470
2471 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2472 if test "x$LINE" != x ; then
2473 eval "DEFAULT_$LINE"
2474 else
2475 no_cache=1
2476 fi
2477
2478 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2479
2480fi
2481
2482
2483 eval "$ac_cv_use_apple_ieee"
2484 if test "$no_cache" != 1; then
2485 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2486 fi
2487
2488 if test "$wxUSE_APPLE_IEEE" = yes; then
2489 echo "$ac_t""yes" 1>&6
2490 else
2491 echo "$ac_t""no" 1>&6
2492 fi
2493
2494
2495 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
7e99ad86 2496echo "configure:2497: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2497 no_cache=0
2498 # Check whether --enable-timedate or --disable-timedate was given.
2499if test "${enable_timedate+set}" = set; then
2500 enableval="$enable_timedate"
2501
2502 if test "$enableval" = yes; then
2503 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2504 else
2505 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2506 fi
2507
2508else
2509
2510 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2511 if test "x$LINE" != x ; then
2512 eval "DEFAULT_$LINE"
2513 else
2514 no_cache=1
2515 fi
2516
2517 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2518
2519fi
2520
2521
2522 eval "$ac_cv_use_timedate"
2523 if test "$no_cache" != 1; then
2524 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2525 fi
2526
2527 if test "$wxUSE_TIMEDATE" = yes; then
2528 echo "$ac_t""yes" 1>&6
2529 else
2530 echo "$ac_t""no" 1>&6
2531 fi
2532
2533
2534 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
7e99ad86 2535echo "configure:2536: checking "for --enable-wave"" >&5
10f2d63a
VZ
2536 no_cache=0
2537 # Check whether --enable-wave or --disable-wave was given.
2538if test "${enable_wave+set}" = set; then
2539 enableval="$enable_wave"
2540
2541 if test "$enableval" = yes; then
2542 ac_cv_use_wave='wxUSE_WAVE=yes'
2543 else
2544 ac_cv_use_wave='wxUSE_WAVE=no'
2545 fi
2546
2547else
2548
2549 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2550 if test "x$LINE" != x ; then
2551 eval "DEFAULT_$LINE"
2552 else
2553 no_cache=1
2554 fi
2555
2556 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2557
2558fi
2559
2560
2561 eval "$ac_cv_use_wave"
2562 if test "$no_cache" != 1; then
2563 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2564 fi
2565
2566 if test "$wxUSE_WAVE" = yes; then
2567 echo "$ac_t""yes" 1>&6
2568 else
2569 echo "$ac_t""no" 1>&6
2570 fi
2571
2572
2573 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
7e99ad86 2574echo "configure:2575: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2575 no_cache=0
2576 # Check whether --enable-fraction or --disable-fraction was given.
2577if test "${enable_fraction+set}" = set; then
2578 enableval="$enable_fraction"
2579
2580 if test "$enableval" = yes; then
2581 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2582 else
2583 ac_cv_use_fraction='wxUSE_FRACTION=no'
2584 fi
2585
2586else
2587
2588 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2589 if test "x$LINE" != x ; then
2590 eval "DEFAULT_$LINE"
2591 else
2592 no_cache=1
2593 fi
2594
2595 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2596
2597fi
2598
2599
2600 eval "$ac_cv_use_fraction"
2601 if test "$no_cache" != 1; then
2602 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2603 fi
2604
2605 if test "$wxUSE_FRACTION" = yes; then
2606 echo "$ac_t""yes" 1>&6
2607 else
2608 echo "$ac_t""no" 1>&6
2609 fi
2610
2611
2612 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
7e99ad86 2613echo "configure:2614: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2614 no_cache=0
2615 # Check whether --enable-dynlib or --disable-dynlib was given.
2616if test "${enable_dynlib+set}" = set; then
2617 enableval="$enable_dynlib"
2618
2619 if test "$enableval" = yes; then
2620 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2621 else
2622 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2623 fi
2624
2625else
2626
2627 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2628 if test "x$LINE" != x ; then
2629 eval "DEFAULT_$LINE"
2630 else
2631 no_cache=1
2632 fi
2633
2634 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2635
2636fi
2637
2638
2639 eval "$ac_cv_use_dynlib"
2640 if test "$no_cache" != 1; then
2641 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2642 fi
2643
2644 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2645 echo "$ac_t""yes" 1>&6
2646 else
2647 echo "$ac_t""no" 1>&6
2648 fi
2649
2650
2651 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
7e99ad86 2652echo "configure:2653: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2653 no_cache=0
2654 # Check whether --enable-longlong or --disable-longlong was given.
2655if test "${enable_longlong+set}" = set; then
2656 enableval="$enable_longlong"
2657
2658 if test "$enableval" = yes; then
2659 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2660 else
2661 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2662 fi
2663
2664else
2665
2666 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2667 if test "x$LINE" != x ; then
2668 eval "DEFAULT_$LINE"
2669 else
2670 no_cache=1
2671 fi
2672
2673 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2674
2675fi
2676
2677
2678 eval "$ac_cv_use_longlong"
2679 if test "$no_cache" != 1; then
2680 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2681 fi
2682
2683 if test "$wxUSE_LONGLONG" = yes; then
2684 echo "$ac_t""yes" 1>&6
2685 else
2686 echo "$ac_t""no" 1>&6
2687 fi
2688
2689
2690 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
7e99ad86 2691echo "configure:2692: checking "for --enable-log"" >&5
10f2d63a
VZ
2692 no_cache=0
2693 # Check whether --enable-log or --disable-log was given.
2694if test "${enable_log+set}" = set; then
2695 enableval="$enable_log"
2696
2697 if test "$enableval" = yes; then
2698 ac_cv_use_log='wxUSE_LOG=yes'
2699 else
2700 ac_cv_use_log='wxUSE_LOG=no'
2701 fi
2702
2703else
2704
2705 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2706 if test "x$LINE" != x ; then
2707 eval "DEFAULT_$LINE"
2708 else
2709 no_cache=1
2710 fi
2711
2712 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2713
2714fi
2715
2716
2717 eval "$ac_cv_use_log"
2718 if test "$no_cache" != 1; then
2719 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2720 fi
2721
2722 if test "$wxUSE_LOG" = yes; then
2723 echo "$ac_t""yes" 1>&6
2724 else
2725 echo "$ac_t""no" 1>&6
2726 fi
2727
2728
2729 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
7e99ad86 2730echo "configure:2731: checking "for --enable-streams"" >&5
10f2d63a
VZ
2731 no_cache=0
2732 # Check whether --enable-streams or --disable-streams was given.
2733if test "${enable_streams+set}" = set; then
2734 enableval="$enable_streams"
2735
2736 if test "$enableval" = yes; then
2737 ac_cv_use_streams='wxUSE_STREAMS=yes'
2738 else
2739 ac_cv_use_streams='wxUSE_STREAMS=no'
2740 fi
2741
2742else
2743
2744 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2745 if test "x$LINE" != x ; then
2746 eval "DEFAULT_$LINE"
2747 else
2748 no_cache=1
2749 fi
2750
2751 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2752
2753fi
2754
2755
2756 eval "$ac_cv_use_streams"
2757 if test "$no_cache" != 1; then
2758 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2759 fi
2760
2761 if test "$wxUSE_STREAMS" = yes; then
2762 echo "$ac_t""yes" 1>&6
2763 else
2764 echo "$ac_t""no" 1>&6
2765 fi
2766
2767
2768 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
7e99ad86 2769echo "configure:2770: checking "for --enable-file"" >&5
10f2d63a
VZ
2770 no_cache=0
2771 # Check whether --enable-file or --disable-file was given.
2772if test "${enable_file+set}" = set; then
2773 enableval="$enable_file"
2774
2775 if test "$enableval" = yes; then
2776 ac_cv_use_file='wxUSE_FILE=yes'
2777 else
2778 ac_cv_use_file='wxUSE_FILE=no'
2779 fi
2780
2781else
2782
2783 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2784 if test "x$LINE" != x ; then
2785 eval "DEFAULT_$LINE"
2786 else
2787 no_cache=1
2788 fi
2789
2790 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2791
2792fi
2793
2794
2795 eval "$ac_cv_use_file"
2796 if test "$no_cache" != 1; then
2797 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2798 fi
2799
2800 if test "$wxUSE_FILE" = yes; then
2801 echo "$ac_t""yes" 1>&6
2802 else
2803 echo "$ac_t""no" 1>&6
2804 fi
2805
2806
2807 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
7e99ad86 2808echo "configure:2809: checking "for --enable-textfile"" >&5
10f2d63a
VZ
2809 no_cache=0
2810 # Check whether --enable-textfile or --disable-textfile was given.
2811if test "${enable_textfile+set}" = set; then
2812 enableval="$enable_textfile"
2813
2814 if test "$enableval" = yes; then
2815 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
2816 else
2817 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
2818 fi
2819
2820else
2821
2822 LINE=`grep "wxUSE_TEXTFILE" ${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_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
2830
2831fi
2832
2833
2834 eval "$ac_cv_use_textfile"
2835 if test "$no_cache" != 1; then
2836 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
2837 fi
2838
2839 if test "$wxUSE_TEXTFILE" = yes; then
2840 echo "$ac_t""yes" 1>&6
2841 else
2842 echo "$ac_t""no" 1>&6
2843 fi
2844
2845
2846 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
7e99ad86 2847echo "configure:2848: checking "for --enable-unicode"" >&5
10f2d63a
VZ
2848 no_cache=0
2849 # Check whether --enable-unicode or --disable-unicode was given.
2850if test "${enable_unicode+set}" = set; then
2851 enableval="$enable_unicode"
2852
2853 if test "$enableval" = yes; then
2854 ac_cv_use_unicode='wxUSE_UNICODE=yes'
2855 else
2856 ac_cv_use_unicode='wxUSE_UNICODE=no'
2857 fi
2858
2859else
2860
2861 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
2862 if test "x$LINE" != x ; then
2863 eval "DEFAULT_$LINE"
2864 else
2865 no_cache=1
2866 fi
2867
2868 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
2869
2870fi
2871
2872
2873 eval "$ac_cv_use_unicode"
2874 if test "$no_cache" != 1; then
2875 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
2876 fi
2877
2878 if test "$wxUSE_UNICODE" = yes; then
2879 echo "$ac_t""yes" 1>&6
2880 else
2881 echo "$ac_t""no" 1>&6
2882 fi
2883
2884
2885 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
7e99ad86 2886echo "configure:2887: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
2887 no_cache=0
2888 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
2889if test "${enable_wcsrtombs+set}" = set; then
2890 enableval="$enable_wcsrtombs"
2891
2892 if test "$enableval" = yes; then
2893 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
2894 else
2895 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
2896 fi
2897
2898else
2899
2900 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
2901 if test "x$LINE" != x ; then
2902 eval "DEFAULT_$LINE"
2903 else
2904 no_cache=1
2905 fi
2906
2907 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
2908
2909fi
2910
2911
2912 eval "$ac_cv_use_wcsrtombs"
2913 if test "$no_cache" != 1; then
2914 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
2915 fi
2916
2917 if test "$wxUSE_WCSRTOMBS" = yes; then
2918 echo "$ac_t""yes" 1>&6
2919 else
2920 echo "$ac_t""no" 1>&6
2921 fi
2922
2923
2924 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
7e99ad86 2925echo "configure:2926: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
2926 no_cache=0
2927 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
2928if test "${enable_wxprintfv+set}" = set; then
2929 enableval="$enable_wxprintfv"
2930
2931 if test "$enableval" = yes; then
2932 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
2933 else
2934 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
2935 fi
2936
2937else
2938
2939 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
2940 if test "x$LINE" != x ; then
2941 eval "DEFAULT_$LINE"
2942 else
2943 no_cache=1
2944 fi
2945
2946 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
2947
2948fi
2949
2950
2951 eval "$ac_cv_use_wxprintfv"
2952 if test "$no_cache" != 1; then
2953 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
2954 fi
2955
2956 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
2957 echo "$ac_t""yes" 1>&6
2958 else
2959 echo "$ac_t""no" 1>&6
2960 fi
2961
2962
2963 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
7e99ad86 2964echo "configure:2965: checking "for --enable-joystick"" >&5
10f2d63a
VZ
2965 no_cache=0
2966 # Check whether --enable-joystick or --disable-joystick was given.
2967if test "${enable_joystick+set}" = set; then
2968 enableval="$enable_joystick"
2969
2970 if test "$enableval" = yes; then
2971 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
2972 else
2973 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
2974 fi
2975
2976else
2977
2978 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
2979 if test "x$LINE" != x ; then
2980 eval "DEFAULT_$LINE"
2981 else
2982 no_cache=1
2983 fi
2984
2985 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
2986
2987fi
2988
2989
2990 eval "$ac_cv_use_joystick"
2991 if test "$no_cache" != 1; then
2992 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
2993 fi
2994
2995 if test "$wxUSE_JOYSTICK" = yes; then
2996 echo "$ac_t""yes" 1>&6
2997 else
2998 echo "$ac_t""no" 1>&6
2999 fi
3000
3001
3002 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
7e99ad86 3003echo "configure:3004: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3004 no_cache=0
3005 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3006if test "${enable_std_iostreams+set}" = set; then
3007 enableval="$enable_std_iostreams"
3008
3009 if test "$enableval" = yes; then
3010 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3011 else
3012 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3013 fi
3014
3015else
3016
3017 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3018 if test "x$LINE" != x ; then
3019 eval "DEFAULT_$LINE"
3020 else
3021 no_cache=1
3022 fi
3023
3024 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3025
3026fi
3027
3028
3029 eval "$ac_cv_use_std_iostreams"
3030 if test "$no_cache" != 1; then
3031 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3032 fi
3033
3034 if test "$wxUSE_STD_IOSTREAM" = yes; then
3035 echo "$ac_t""yes" 1>&6
3036 else
3037 echo "$ac_t""no" 1>&6
3038 fi
3039
3040
3041 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
7e99ad86 3042echo "configure:3043: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3043 no_cache=0
3044 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3045if test "${enable_fs_inet+set}" = set; then
3046 enableval="$enable_fs_inet"
3047
3048 if test "$enableval" = yes; then
3049 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3050 else
3051 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3052 fi
3053
3054else
3055
3056 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3057 if test "x$LINE" != x ; then
3058 eval "DEFAULT_$LINE"
3059 else
3060 no_cache=1
3061 fi
3062
3063 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3064
3065fi
3066
3067
3068 eval "$ac_cv_use_fs_inet"
3069 if test "$no_cache" != 1; then
3070 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3071 fi
3072
3073 if test "$wxUSE_FS_INET" = yes; then
3074 echo "$ac_t""yes" 1>&6
3075 else
3076 echo "$ac_t""no" 1>&6
3077 fi
3078
3079
3080 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
7e99ad86 3081echo "configure:3082: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3082 no_cache=0
3083 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3084if test "${enable_fs_zip+set}" = set; then
3085 enableval="$enable_fs_zip"
3086
3087 if test "$enableval" = yes; then
3088 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3089 else
3090 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3091 fi
3092
3093else
3094
3095 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3096 if test "x$LINE" != x ; then
3097 eval "DEFAULT_$LINE"
3098 else
3099 no_cache=1
3100 fi
3101
3102 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3103
3104fi
3105
3106
3107 eval "$ac_cv_use_fs_zip"
3108 if test "$no_cache" != 1; then
3109 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3110 fi
3111
3112 if test "$wxUSE_FS_ZIP" = yes; then
3113 echo "$ac_t""yes" 1>&6
3114 else
3115 echo "$ac_t""no" 1>&6
3116 fi
3117
3118
3119 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
7e99ad86 3120echo "configure:3121: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3121 no_cache=0
3122 # Check whether --enable-zipstream or --disable-zipstream was given.
3123if test "${enable_zipstream+set}" = set; then
3124 enableval="$enable_zipstream"
3125
3126 if test "$enableval" = yes; then
3127 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3128 else
3129 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3130 fi
3131
3132else
3133
3134 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3135 if test "x$LINE" != x ; then
3136 eval "DEFAULT_$LINE"
3137 else
3138 no_cache=1
3139 fi
3140
3141 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3142
3143fi
3144
3145
3146 eval "$ac_cv_use_zipstream"
3147 if test "$no_cache" != 1; then
3148 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3149 fi
3150
3151 if test "$wxUSE_ZIPSTREAM" = yes; then
3152 echo "$ac_t""yes" 1>&6
3153 else
3154 echo "$ac_t""no" 1>&6
3155 fi
3156
3157
3158
3159
3160 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
7e99ad86 3161echo "configure:3162: checking "for --enable-threads"" >&5
10f2d63a
VZ
3162 no_cache=0
3163 # Check whether --enable-threads or --disable-threads was given.
3164if test "${enable_threads+set}" = set; then
3165 enableval="$enable_threads"
3166
3167 if test "$enableval" = yes; then
3168 ac_cv_use_threads='wxUSE_THREADS=yes'
3169 else
3170 ac_cv_use_threads='wxUSE_THREADS=no'
3171 fi
3172
3173else
3174
3175 LINE=`grep "wxUSE_THREADS" ${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_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3183
3184fi
3185
3186
3187 eval "$ac_cv_use_threads"
3188 if test "$no_cache" != 1; then
3189 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3190 fi
3191
3192 if test "$wxUSE_THREADS" = 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-serial"""... $ac_c" 1>&6
7e99ad86 3200echo "configure:3201: checking "for --enable-serial"" >&5
10f2d63a
VZ
3201 no_cache=0
3202 # Check whether --enable-serial or --disable-serial was given.
3203if test "${enable_serial+set}" = set; then
3204 enableval="$enable_serial"
3205
3206 if test "$enableval" = yes; then
3207 ac_cv_use_serial='wxUSE_SERIAL=yes'
3208 else
3209 ac_cv_use_serial='wxUSE_SERIAL=no'
3210 fi
3211
3212else
3213
3214 LINE=`grep "wxUSE_SERIAL" ${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_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3222
3223fi
3224
3225
3226 eval "$ac_cv_use_serial"
3227 if test "$no_cache" != 1; then
3228 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3229 fi
3230
3231 if test "$wxUSE_SERIAL" = yes; then
3232 echo "$ac_t""yes" 1>&6
3233 else
3234 echo "$ac_t""no" 1>&6
3235 fi
3236
3237
b12915c1
VZ
3238if test "$wxUSE_GUI" = "yes"; then
3239
10f2d63a
VZ
3240
3241
3242 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
7e99ad86 3243echo "configure:3244: checking "for --enable-docview"" >&5
10f2d63a
VZ
3244 no_cache=0
3245 # Check whether --enable-docview or --disable-docview was given.
3246if test "${enable_docview+set}" = set; then
3247 enableval="$enable_docview"
3248
3249 if test "$enableval" = yes; then
3250 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3251 else
3252 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3253 fi
3254
3255else
3256
3257 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3258 if test "x$LINE" != x ; then
3259 eval "DEFAULT_$LINE"
3260 else
3261 no_cache=1
3262 fi
3263
3264 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3265
3266fi
3267
3268
3269 eval "$ac_cv_use_docview"
3270 if test "$no_cache" != 1; then
3271 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3272 fi
3273
3274 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3275 echo "$ac_t""yes" 1>&6
3276 else
3277 echo "$ac_t""no" 1>&6
3278 fi
3279
3280
3281 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
7e99ad86 3282echo "configure:3283: checking "for --enable-help"" >&5
10f2d63a
VZ
3283 no_cache=0
3284 # Check whether --enable-help or --disable-help was given.
3285if test "${enable_help+set}" = set; then
3286 enableval="$enable_help"
3287
3288 if test "$enableval" = yes; then
3289 ac_cv_use_help='wxUSE_HELP=yes'
3290 else
3291 ac_cv_use_help='wxUSE_HELP=no'
3292 fi
3293
3294else
3295
3296 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3297 if test "x$LINE" != x ; then
3298 eval "DEFAULT_$LINE"
3299 else
3300 no_cache=1
3301 fi
3302
3303 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3304
3305fi
3306
3307
3308 eval "$ac_cv_use_help"
3309 if test "$no_cache" != 1; then
3310 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3311 fi
3312
3313 if test "$wxUSE_HELP" = yes; then
3314 echo "$ac_t""yes" 1>&6
3315 else
3316 echo "$ac_t""no" 1>&6
3317 fi
3318
3319
3320 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
7e99ad86 3321echo "configure:3322: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3322 no_cache=0
3323 # Check whether --enable-constraints or --disable-constraints was given.
3324if test "${enable_constraints+set}" = set; then
3325 enableval="$enable_constraints"
3326
3327 if test "$enableval" = yes; then
3328 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3329 else
3330 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3331 fi
3332
3333else
3334
3335 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3336 if test "x$LINE" != x ; then
3337 eval "DEFAULT_$LINE"
3338 else
3339 no_cache=1
3340 fi
3341
3342 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3343
3344fi
3345
3346
3347 eval "$ac_cv_use_constraints"
3348 if test "$no_cache" != 1; then
3349 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3350 fi
3351
3352 if test "$wxUSE_CONSTRAINTS" = yes; then
3353 echo "$ac_t""yes" 1>&6
3354 else
3355 echo "$ac_t""no" 1>&6
3356 fi
3357
3358
3359 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
7e99ad86 3360echo "configure:3361: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3361 no_cache=0
3362 # Check whether --enable-printarch or --disable-printarch was given.
3363if test "${enable_printarch+set}" = set; then
3364 enableval="$enable_printarch"
3365
3366 if test "$enableval" = yes; then
3367 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3368 else
3369 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3370 fi
3371
3372else
3373
3374 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3375 if test "x$LINE" != x ; then
3376 eval "DEFAULT_$LINE"
3377 else
3378 no_cache=1
3379 fi
3380
3381 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3382
3383fi
3384
3385
3386 eval "$ac_cv_use_printarch"
3387 if test "$no_cache" != 1; then
3388 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3389 fi
3390
3391 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3392 echo "$ac_t""yes" 1>&6
3393 else
3394 echo "$ac_t""no" 1>&6
3395 fi
3396
3397
3398 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
7e99ad86 3399echo "configure:3400: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3400 no_cache=0
3401 # Check whether --enable-mdi or --disable-mdi was given.
3402if test "${enable_mdi+set}" = set; then
3403 enableval="$enable_mdi"
3404
3405 if test "$enableval" = yes; then
3406 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3407 else
3408 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3409 fi
3410
3411else
3412
3413 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3414 if test "x$LINE" != x ; then
3415 eval "DEFAULT_$LINE"
3416 else
3417 no_cache=1
3418 fi
3419
3420 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3421
3422fi
3423
3424
3425 eval "$ac_cv_use_mdi"
3426 if test "$no_cache" != 1; then
3427 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3428 fi
3429
3430 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3431 echo "$ac_t""yes" 1>&6
3432 else
3433 echo "$ac_t""no" 1>&6
3434 fi
3435
3436
3437
3438 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
7e99ad86 3439echo "configure:3440: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3440 no_cache=0
3441 # Check whether --enable-postscript or --disable-postscript was given.
3442if test "${enable_postscript+set}" = set; then
3443 enableval="$enable_postscript"
3444
3445 if test "$enableval" = yes; then
3446 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3447 else
3448 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3449 fi
3450
3451else
3452
3453 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3454 if test "x$LINE" != x ; then
3455 eval "DEFAULT_$LINE"
3456 else
3457 no_cache=1
3458 fi
3459
3460 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3461
3462fi
3463
3464
3465 eval "$ac_cv_use_postscript"
3466 if test "$no_cache" != 1; then
3467 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3468 fi
3469
3470 if test "$wxUSE_POSTSCRIPT" = yes; then
3471 echo "$ac_t""yes" 1>&6
3472 else
3473 echo "$ac_t""no" 1>&6
3474 fi
3475
3476
3477
3478
3479 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
7e99ad86 3480echo "configure:3481: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3481 no_cache=0
3482 # Check whether --enable-prologio or --disable-prologio was given.
3483if test "${enable_prologio+set}" = set; then
3484 enableval="$enable_prologio"
3485
3486 if test "$enableval" = yes; then
3487 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3488 else
3489 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3490 fi
3491
3492else
3493
3494 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3495 if test "x$LINE" != x ; then
3496 eval "DEFAULT_$LINE"
3497 else
3498 no_cache=1
3499 fi
3500
3501 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3502
3503fi
3504
3505
3506 eval "$ac_cv_use_prologio"
3507 if test "$no_cache" != 1; then
3508 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3509 fi
3510
3511 if test "$wxUSE_PROLOGIO" = yes; then
3512 echo "$ac_t""yes" 1>&6
3513 else
3514 echo "$ac_t""no" 1>&6
3515 fi
3516
3517
3518 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
7e99ad86 3519echo "configure:3520: checking "for --enable-resources"" >&5
10f2d63a
VZ
3520 no_cache=0
3521 # Check whether --enable-resources or --disable-resources was given.
3522if test "${enable_resources+set}" = set; then
3523 enableval="$enable_resources"
3524
3525 if test "$enableval" = yes; then
3526 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3527 else
3528 ac_cv_use_resources='wxUSE_RESOURCES=no'
3529 fi
3530
3531else
3532
3533 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3534 if test "x$LINE" != x ; then
3535 eval "DEFAULT_$LINE"
3536 else
3537 no_cache=1
3538 fi
3539
3540 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3541
3542fi
3543
3544
3545 eval "$ac_cv_use_resources"
3546 if test "$no_cache" != 1; then
3547 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3548 fi
3549
3550 if test "$wxUSE_RESOURCES" = yes; then
3551 echo "$ac_t""yes" 1>&6
3552 else
3553 echo "$ac_t""no" 1>&6
3554 fi
3555
3556
3557
3558 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
7e99ad86 3559echo "configure:3560: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3560 no_cache=0
3561 # Check whether --enable-xresources or --disable-xresources was given.
3562if test "${enable_xresources+set}" = set; then
3563 enableval="$enable_xresources"
3564
3565 if test "$enableval" = yes; then
3566 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3567 else
3568 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3569 fi
3570
3571else
3572
3573 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3574 if test "x$LINE" != x ; then
3575 eval "DEFAULT_$LINE"
3576 else
3577 no_cache=1
3578 fi
3579
3580 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3581
3582fi
3583
3584
3585 eval "$ac_cv_use_xresources"
3586 if test "$no_cache" != 1; then
3587 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3588 fi
3589
3590 if test "$wxUSE_X_RESOURCES" = yes; then
3591 echo "$ac_t""yes" 1>&6
3592 else
3593 echo "$ac_t""no" 1>&6
3594 fi
3595
3596
3597
3598
3599 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
7e99ad86 3600echo "configure:3601: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
3601 no_cache=0
3602 # Check whether --enable-clipboard or --disable-clipboard was given.
3603if test "${enable_clipboard+set}" = set; then
3604 enableval="$enable_clipboard"
3605
3606 if test "$enableval" = yes; then
3607 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3608 else
3609 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3610 fi
3611
3612else
3613
3614 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3615 if test "x$LINE" != x ; then
3616 eval "DEFAULT_$LINE"
3617 else
3618 no_cache=1
3619 fi
3620
3621 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3622
3623fi
3624
3625
3626 eval "$ac_cv_use_clipboard"
3627 if test "$no_cache" != 1; then
3628 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3629 fi
3630
3631 if test "$wxUSE_CLIPBOARD" = yes; then
3632 echo "$ac_t""yes" 1>&6
3633 else
3634 echo "$ac_t""no" 1>&6
3635 fi
3636
3637
3638 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
7e99ad86 3639echo "configure:3640: checking "for --enable-dnd"" >&5
10f2d63a
VZ
3640 no_cache=0
3641 # Check whether --enable-dnd or --disable-dnd was given.
3642if test "${enable_dnd+set}" = set; then
3643 enableval="$enable_dnd"
3644
3645 if test "$enableval" = yes; then
3646 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3647 else
3648 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3649 fi
3650
3651else
3652
3653 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3654 if test "x$LINE" != x ; then
3655 eval "DEFAULT_$LINE"
3656 else
3657 no_cache=1
3658 fi
3659
3660 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3661
3662fi
3663
3664
3665 eval "$ac_cv_use_dnd"
3666 if test "$no_cache" != 1; then
3667 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3668 fi
3669
3670 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3671 echo "$ac_t""yes" 1>&6
3672 else
3673 echo "$ac_t""no" 1>&6
3674 fi
3675
3676
3677
3678 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
7e99ad86 3679echo "configure:3680: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
3680 no_cache=0
3681 # Check whether --enable-wxtree or --disable-wxtree was given.
3682if test "${enable_wxtree+set}" = set; then
3683 enableval="$enable_wxtree"
3684
3685 if test "$enableval" = yes; then
3686 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3687 else
3688 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3689 fi
3690
3691else
3692
3693 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3694 if test "x$LINE" != x ; then
3695 eval "DEFAULT_$LINE"
3696 else
3697 no_cache=1
3698 fi
3699
3700 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3701
3702fi
3703
3704
3705 eval "$ac_cv_use_wxtree"
3706 if test "$no_cache" != 1; then
3707 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3708 fi
3709
3710 if test "$wxUSE_WXTREE" = yes; then
3711 echo "$ac_t""yes" 1>&6
3712 else
3713 echo "$ac_t""no" 1>&6
3714 fi
3715
3716
3717
3718
3719 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
7e99ad86 3720echo "configure:3721: checking "for --enable-controls"" >&5
10f2d63a
VZ
3721 no_cache=0
3722 # Check whether --enable-controls or --disable-controls was given.
3723if test "${enable_controls+set}" = set; then
3724 enableval="$enable_controls"
3725
3726 if test "$enableval" = yes; then
3727 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3728 else
3729 ac_cv_use_controls='wxUSE_CONTROLS=no'
3730 fi
3731
3732else
3733
3734 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3735 if test "x$LINE" != x ; then
3736 eval "DEFAULT_$LINE"
3737 else
3738 no_cache=1
3739 fi
3740
3741 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3742
3743fi
3744
3745
3746 eval "$ac_cv_use_controls"
3747 if test "$no_cache" != 1; then
3748 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3749 fi
3750
3751 if test "$wxUSE_CONTROLS" = yes; then
3752 echo "$ac_t""yes" 1>&6
3753 else
3754 echo "$ac_t""no" 1>&6
3755 fi
3756
3757
3758if test "$wxUSE_CONTROLS" = "yes"; then
3759 DEFAULT_wxUSE_ACCEL=yes
3760 DEFAULT_wxUSE_CARET=yes
3761 DEFAULT_wxUSE_COMBOBOX=yes
3762 DEFAULT_wxUSE_BMPBUTTON=yes
3763 DEFAULT_wxUSE_CHECKBOX=yes
3764 DEFAULT_wxUSE_CHECKLISTBOX=yes
3765 DEFAULT_wxUSE_CHOICE=yes
3766 DEFAULT_wxUSE_GAUGE=yes
3767 DEFAULT_wxUSE_GRID=yes
fc9c7c09 3768 DEFAULT_wxUSE_NEW_GRID=no
10f2d63a
VZ
3769 DEFAULT_wxUSE_IMAGLIST=yes
3770 DEFAULT_wxUSE_LISTBOX=yes
3771 DEFAULT_wxUSE_LISTCTRL=yes
3772 DEFAULT_wxUSE_NOTEBOOK=yes
3773 DEFAULT_wxUSE_RADIOBOX=yes
3774 DEFAULT_wxUSE_RADIOBTN=yes
3775 DEFAULT_wxUSE_SASH=yes
3776 DEFAULT_wxUSE_SCROLLBAR=yes
3777 DEFAULT_wxUSE_SLIDER=yes
3778 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 3779 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
3780 DEFAULT_wxUSE_SPLITTER=yes
3781 DEFAULT_wxUSE_STATBMP=yes
3782 DEFAULT_wxUSE_STATBOX=yes
3783 DEFAULT_wxUSE_STATLINE=yes
3784 DEFAULT_wxUSE_STATUSBAR=yes
3785 DEFAULT_wxUSE_TAB_DIALOG=yes
3786 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
3787 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
3788 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
3789 DEFAULT_wxUSE_TOOLTIPS=yes
3790 DEFAULT_wxUSE_TREECTRL=yes
3791elif test "$wxUSE_CONTROLS" = "no"; then
3792 DEFAULT_wxUSE_ACCEL=no
3793 DEFAULT_wxUSE_CARET=no
3794 DEFAULT_wxUSE_COMBOBOX=no
3795 DEFAULT_wxUSE_BMPBUTTON=no
3796 DEFAULT_wxUSE_CHECKBOX=no
3797 DEFAULT_wxUSE_CHECKLISTBOX=no
3798 DEFAULT_wxUSE_CHOICE=no
3799 DEFAULT_wxUSE_GAUGE=no
3800 DEFAULT_wxUSE_GRID=no
3801 DEFAULT_wxUSE_NEW_GRID=no
3802 DEFAULT_wxUSE_IMAGLIST=no
3803 DEFAULT_wxUSE_LISTBOX=no
3804 DEFAULT_wxUSE_LISTCTRL=no
3805 DEFAULT_wxUSE_NOTEBOOK=no
3806 DEFAULT_wxUSE_RADIOBOX=no
3807 DEFAULT_wxUSE_RADIOBTN=no
3808 DEFAULT_wxUSE_SASH=no
3809 DEFAULT_wxUSE_SCROLLBAR=no
3810 DEFAULT_wxUSE_SLIDER=no
3811 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 3812 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
3813 DEFAULT_wxUSE_SPLITTER=no
3814 DEFAULT_wxUSE_STATBMP=no
3815 DEFAULT_wxUSE_STATBOX=no
3816 DEFAULT_wxUSE_STATLINE=no
3817 DEFAULT_wxUSE_STATUSBAR=no
3818 DEFAULT_wxUSE_TAB_DIALOG=no
3819 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
3820 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
3821 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
3822 DEFAULT_wxUSE_TOOLTIPS=no
3823 DEFAULT_wxUSE_TREECTRL=no
3824fi
3825
3826
3827 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
7e99ad86 3828echo "configure:3829: checking "for --enable-accel"" >&5
10f2d63a
VZ
3829 no_cache=0
3830 # Check whether --enable-accel or --disable-accel was given.
3831if test "${enable_accel+set}" = set; then
3832 enableval="$enable_accel"
3833
3834 if test "$enableval" = yes; then
3835 ac_cv_use_accel='wxUSE_ACCEL=yes'
3836 else
3837 ac_cv_use_accel='wxUSE_ACCEL=no'
3838 fi
3839
3840else
3841
3842 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
3843 if test "x$LINE" != x ; then
3844 eval "DEFAULT_$LINE"
3845 else
3846 no_cache=1
3847 fi
3848
3849 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
3850
3851fi
3852
3853
3854 eval "$ac_cv_use_accel"
3855 if test "$no_cache" != 1; then
3856 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
3857 fi
3858
3859 if test "$wxUSE_ACCEL" = yes; then
3860 echo "$ac_t""yes" 1>&6
3861 else
3862 echo "$ac_t""no" 1>&6
3863 fi
3864
3865
3866 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
7e99ad86 3867echo "configure:3868: checking "for --enable-caret"" >&5
10f2d63a
VZ
3868 no_cache=0
3869 # Check whether --enable-caret or --disable-caret was given.
3870if test "${enable_caret+set}" = set; then
3871 enableval="$enable_caret"
3872
3873 if test "$enableval" = yes; then
3874 ac_cv_use_caret='wxUSE_CARET=yes'
3875 else
3876 ac_cv_use_caret='wxUSE_CARET=no'
3877 fi
3878
3879else
3880
3881 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
3882 if test "x$LINE" != x ; then
3883 eval "DEFAULT_$LINE"
3884 else
3885 no_cache=1
3886 fi
3887
3888 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
3889
3890fi
3891
3892
3893 eval "$ac_cv_use_caret"
3894 if test "$no_cache" != 1; then
3895 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
3896 fi
3897
3898 if test "$wxUSE_CARET" = yes; then
3899 echo "$ac_t""yes" 1>&6
3900 else
3901 echo "$ac_t""no" 1>&6
3902 fi
3903
3904
3905 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
7e99ad86 3906echo "configure:3907: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
3907 no_cache=0
3908 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
3909if test "${enable_bmpbutton+set}" = set; then
3910 enableval="$enable_bmpbutton"
3911
3912 if test "$enableval" = yes; then
3913 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
3914 else
3915 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
3916 fi
3917
3918else
3919
3920 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
3921 if test "x$LINE" != x ; then
3922 eval "DEFAULT_$LINE"
3923 else
3924 no_cache=1
3925 fi
3926
3927 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
3928
3929fi
3930
3931
3932 eval "$ac_cv_use_bmpbutton"
3933 if test "$no_cache" != 1; then
3934 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
3935 fi
3936
3937 if test "$wxUSE_BMPBUTTON" = yes; then
3938 echo "$ac_t""yes" 1>&6
3939 else
3940 echo "$ac_t""no" 1>&6
3941 fi
3942
3943
3944 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
7e99ad86 3945echo "configure:3946: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
3946 no_cache=0
3947 # Check whether --enable-checkbox or --disable-checkbox was given.
3948if test "${enable_checkbox+set}" = set; then
3949 enableval="$enable_checkbox"
3950
3951 if test "$enableval" = yes; then
3952 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
3953 else
3954 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
3955 fi
3956
3957else
3958
3959 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
3960 if test "x$LINE" != x ; then
3961 eval "DEFAULT_$LINE"
3962 else
3963 no_cache=1
3964 fi
3965
3966 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
3967
3968fi
3969
3970
3971 eval "$ac_cv_use_checkbox"
3972 if test "$no_cache" != 1; then
3973 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
3974 fi
3975
3976 if test "$wxUSE_CHECKBOX" = yes; then
3977 echo "$ac_t""yes" 1>&6
3978 else
3979 echo "$ac_t""no" 1>&6
3980 fi
3981
3982
3983 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
7e99ad86 3984echo "configure:3985: checking "for --enable-checklst"" >&5
10f2d63a
VZ
3985 no_cache=0
3986 # Check whether --enable-checklst or --disable-checklst was given.
3987if test "${enable_checklst+set}" = set; then
3988 enableval="$enable_checklst"
3989
3990 if test "$enableval" = yes; then
3991 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
3992 else
3993 ac_cv_use_checklst='wxUSE_CHECKLST=no'
3994 fi
3995
3996else
3997
3998 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
3999 if test "x$LINE" != x ; then
4000 eval "DEFAULT_$LINE"
4001 else
4002 no_cache=1
4003 fi
4004
4005 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4006
4007fi
4008
4009
4010 eval "$ac_cv_use_checklst"
4011 if test "$no_cache" != 1; then
4012 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4013 fi
4014
4015 if test "$wxUSE_CHECKLST" = yes; then
4016 echo "$ac_t""yes" 1>&6
4017 else
4018 echo "$ac_t""no" 1>&6
4019 fi
4020
4021
4022 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
7e99ad86 4023echo "configure:4024: checking "for --enable-choice"" >&5
10f2d63a
VZ
4024 no_cache=0
4025 # Check whether --enable-choice or --disable-choice was given.
4026if test "${enable_choice+set}" = set; then
4027 enableval="$enable_choice"
4028
4029 if test "$enableval" = yes; then
4030 ac_cv_use_choice='wxUSE_CHOICE=yes'
4031 else
4032 ac_cv_use_choice='wxUSE_CHOICE=no'
4033 fi
4034
4035else
4036
4037 LINE=`grep "wxUSE_CHOICE" ${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_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4045
4046fi
4047
4048
4049 eval "$ac_cv_use_choice"
4050 if test "$no_cache" != 1; then
4051 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4052 fi
4053
4054 if test "$wxUSE_CHOICE" = 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-combobox"""... $ac_c" 1>&6
7e99ad86 4062echo "configure:4063: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4063 no_cache=0
4064 # Check whether --enable-combobox or --disable-combobox was given.
4065if test "${enable_combobox+set}" = set; then
4066 enableval="$enable_combobox"
4067
4068 if test "$enableval" = yes; then
4069 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4070 else
4071 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4072 fi
4073
4074else
4075
4076 LINE=`grep "wxUSE_COMBOBOX" ${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_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4084
4085fi
4086
4087
4088 eval "$ac_cv_use_combobox"
4089 if test "$no_cache" != 1; then
4090 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4091 fi
4092
4093 if test "$wxUSE_COMBOBOX" = yes; then
4094 echo "$ac_t""yes" 1>&6
4095 else
4096 echo "$ac_t""no" 1>&6
4097 fi
4098
4099
4100 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
7e99ad86 4101echo "configure:4102: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4102 no_cache=0
4103 # Check whether --enable-gauge or --disable-gauge was given.
4104if test "${enable_gauge+set}" = set; then
4105 enableval="$enable_gauge"
4106
4107 if test "$enableval" = yes; then
4108 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4109 else
4110 ac_cv_use_gauge='wxUSE_GAUGE=no'
4111 fi
4112
4113else
4114
4115 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4116 if test "x$LINE" != x ; then
4117 eval "DEFAULT_$LINE"
4118 else
4119 no_cache=1
4120 fi
4121
4122 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4123
4124fi
4125
4126
4127 eval "$ac_cv_use_gauge"
4128 if test "$no_cache" != 1; then
4129 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4130 fi
4131
4132 if test "$wxUSE_GAUGE" = yes; then
4133 echo "$ac_t""yes" 1>&6
4134 else
4135 echo "$ac_t""no" 1>&6
4136 fi
4137
4138
4139 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
7e99ad86 4140echo "configure:4141: checking "for --enable-grid"" >&5
10f2d63a
VZ
4141 no_cache=0
4142 # Check whether --enable-grid or --disable-grid was given.
4143if test "${enable_grid+set}" = set; then
4144 enableval="$enable_grid"
4145
4146 if test "$enableval" = yes; then
4147 ac_cv_use_grid='wxUSE_GRID=yes'
4148 else
4149 ac_cv_use_grid='wxUSE_GRID=no'
4150 fi
4151
4152else
4153
4154 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4155 if test "x$LINE" != x ; then
4156 eval "DEFAULT_$LINE"
4157 else
4158 no_cache=1
4159 fi
4160
4161 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4162
4163fi
4164
4165
4166 eval "$ac_cv_use_grid"
4167 if test "$no_cache" != 1; then
4168 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4169 fi
4170
4171 if test "$wxUSE_GRID" = yes; then
4172 echo "$ac_t""yes" 1>&6
4173 else
4174 echo "$ac_t""no" 1>&6
4175 fi
4176
4177
4178 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
7e99ad86 4179echo "configure:4180: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4180 no_cache=0
4181 # Check whether --enable-newgrid or --disable-newgrid was given.
4182if test "${enable_newgrid+set}" = set; then
4183 enableval="$enable_newgrid"
4184
4185 if test "$enableval" = yes; then
4186 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4187 else
4188 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4189 fi
4190
4191else
4192
4193 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4194 if test "x$LINE" != x ; then
4195 eval "DEFAULT_$LINE"
4196 else
4197 no_cache=1
4198 fi
4199
4200 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4201
4202fi
4203
4204
4205 eval "$ac_cv_use_newgrid"
4206 if test "$no_cache" != 1; then
4207 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4208 fi
4209
4210 if test "$wxUSE_NEW_GRID" = yes; then
4211 echo "$ac_t""yes" 1>&6
4212 else
4213 echo "$ac_t""no" 1>&6
4214 fi
4215
4216
4217 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
7e99ad86 4218echo "configure:4219: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4219 no_cache=0
4220 # Check whether --enable-imaglist or --disable-imaglist was given.
4221if test "${enable_imaglist+set}" = set; then
4222 enableval="$enable_imaglist"
4223
4224 if test "$enableval" = yes; then
4225 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4226 else
4227 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4228 fi
4229
4230else
4231
4232 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4233 if test "x$LINE" != x ; then
4234 eval "DEFAULT_$LINE"
4235 else
4236 no_cache=1
4237 fi
4238
4239 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4240
4241fi
4242
4243
4244 eval "$ac_cv_use_imaglist"
4245 if test "$no_cache" != 1; then
4246 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4247 fi
4248
4249 if test "$wxUSE_IMAGLIST" = yes; then
4250 echo "$ac_t""yes" 1>&6
4251 else
4252 echo "$ac_t""no" 1>&6
4253 fi
4254
4255
4256 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
7e99ad86 4257echo "configure:4258: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4258 no_cache=0
4259 # Check whether --enable-listbox or --disable-listbox was given.
4260if test "${enable_listbox+set}" = set; then
4261 enableval="$enable_listbox"
4262
4263 if test "$enableval" = yes; then
4264 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4265 else
4266 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4267 fi
4268
4269else
4270
4271 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4272 if test "x$LINE" != x ; then
4273 eval "DEFAULT_$LINE"
4274 else
4275 no_cache=1
4276 fi
4277
4278 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4279
4280fi
4281
4282
4283 eval "$ac_cv_use_listbox"
4284 if test "$no_cache" != 1; then
4285 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4286 fi
4287
4288 if test "$wxUSE_LISTBOX" = yes; then
4289 echo "$ac_t""yes" 1>&6
4290 else
4291 echo "$ac_t""no" 1>&6
4292 fi
4293
4294
4295 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
7e99ad86 4296echo "configure:4297: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4297 no_cache=0
4298 # Check whether --enable-listctrl or --disable-listctrl was given.
4299if test "${enable_listctrl+set}" = set; then
4300 enableval="$enable_listctrl"
4301
4302 if test "$enableval" = yes; then
4303 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4304 else
4305 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4306 fi
4307
4308else
4309
4310 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4311 if test "x$LINE" != x ; then
4312 eval "DEFAULT_$LINE"
4313 else
4314 no_cache=1
4315 fi
4316
4317 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4318
4319fi
4320
4321
4322 eval "$ac_cv_use_listctrl"
4323 if test "$no_cache" != 1; then
4324 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4325 fi
4326
4327 if test "$wxUSE_LISTCTRL" = yes; then
4328 echo "$ac_t""yes" 1>&6
4329 else
4330 echo "$ac_t""no" 1>&6
4331 fi
4332
4333
4334 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
7e99ad86 4335echo "configure:4336: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4336 no_cache=0
4337 # Check whether --enable-notebook or --disable-notebook was given.
4338if test "${enable_notebook+set}" = set; then
4339 enableval="$enable_notebook"
4340
4341 if test "$enableval" = yes; then
4342 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4343 else
4344 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4345 fi
4346
4347else
4348
4349 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4350 if test "x$LINE" != x ; then
4351 eval "DEFAULT_$LINE"
4352 else
4353 no_cache=1
4354 fi
4355
4356 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4357
4358fi
4359
4360
4361 eval "$ac_cv_use_notebook"
4362 if test "$no_cache" != 1; then
4363 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4364 fi
4365
4366 if test "$wxUSE_NOTEBOOK" = yes; then
4367 echo "$ac_t""yes" 1>&6
4368 else
4369 echo "$ac_t""no" 1>&6
4370 fi
4371
4372
4373 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
7e99ad86 4374echo "configure:4375: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4375 no_cache=0
4376 # Check whether --enable-radiobox or --disable-radiobox was given.
4377if test "${enable_radiobox+set}" = set; then
4378 enableval="$enable_radiobox"
4379
4380 if test "$enableval" = yes; then
4381 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4382 else
4383 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4384 fi
4385
4386else
4387
4388 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4389 if test "x$LINE" != x ; then
4390 eval "DEFAULT_$LINE"
4391 else
4392 no_cache=1
4393 fi
4394
4395 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4396
4397fi
4398
4399
4400 eval "$ac_cv_use_radiobox"
4401 if test "$no_cache" != 1; then
4402 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4403 fi
4404
4405 if test "$wxUSE_RADIOBOX" = yes; then
4406 echo "$ac_t""yes" 1>&6
4407 else
4408 echo "$ac_t""no" 1>&6
4409 fi
4410
4411
4412 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
7e99ad86 4413echo "configure:4414: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4414 no_cache=0
4415 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4416if test "${enable_radiobtn+set}" = set; then
4417 enableval="$enable_radiobtn"
4418
4419 if test "$enableval" = yes; then
4420 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4421 else
4422 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4423 fi
4424
4425else
4426
4427 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4428 if test "x$LINE" != x ; then
4429 eval "DEFAULT_$LINE"
4430 else
4431 no_cache=1
4432 fi
4433
4434 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4435
4436fi
4437
4438
4439 eval "$ac_cv_use_radiobtn"
4440 if test "$no_cache" != 1; then
4441 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4442 fi
4443
4444 if test "$wxUSE_RADIOBTN" = yes; then
4445 echo "$ac_t""yes" 1>&6
4446 else
4447 echo "$ac_t""no" 1>&6
4448 fi
4449
4450
4451 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
7e99ad86 4452echo "configure:4453: checking "for --enable-sash"" >&5
10f2d63a
VZ
4453 no_cache=0
4454 # Check whether --enable-sash or --disable-sash was given.
4455if test "${enable_sash+set}" = set; then
4456 enableval="$enable_sash"
4457
4458 if test "$enableval" = yes; then
4459 ac_cv_use_sash='wxUSE_SASH=yes'
4460 else
4461 ac_cv_use_sash='wxUSE_SASH=no'
4462 fi
4463
4464else
4465
4466 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4467 if test "x$LINE" != x ; then
4468 eval "DEFAULT_$LINE"
4469 else
4470 no_cache=1
4471 fi
4472
4473 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4474
4475fi
4476
4477
4478 eval "$ac_cv_use_sash"
4479 if test "$no_cache" != 1; then
4480 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4481 fi
4482
4483 if test "$wxUSE_SASH" = yes; then
4484 echo "$ac_t""yes" 1>&6
4485 else
4486 echo "$ac_t""no" 1>&6
4487 fi
4488
4489
4490 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
7e99ad86 4491echo "configure:4492: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4492 no_cache=0
4493 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4494if test "${enable_scrollbar+set}" = set; then
4495 enableval="$enable_scrollbar"
4496
4497 if test "$enableval" = yes; then
4498 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4499 else
4500 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4501 fi
4502
4503else
4504
4505 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4506 if test "x$LINE" != x ; then
4507 eval "DEFAULT_$LINE"
4508 else
4509 no_cache=1
4510 fi
4511
4512 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4513
4514fi
4515
4516
4517 eval "$ac_cv_use_scrollbar"
4518 if test "$no_cache" != 1; then
4519 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4520 fi
4521
4522 if test "$wxUSE_SCROLLBAR" = yes; then
4523 echo "$ac_t""yes" 1>&6
4524 else
4525 echo "$ac_t""no" 1>&6
4526 fi
4527
4528
4529 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
7e99ad86 4530echo "configure:4531: checking "for --enable-slider"" >&5
10f2d63a
VZ
4531 no_cache=0
4532 # Check whether --enable-slider or --disable-slider was given.
4533if test "${enable_slider+set}" = set; then
4534 enableval="$enable_slider"
4535
4536 if test "$enableval" = yes; then
4537 ac_cv_use_slider='wxUSE_SLIDER=yes'
4538 else
4539 ac_cv_use_slider='wxUSE_SLIDER=no'
4540 fi
4541
4542else
4543
4544 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4545 if test "x$LINE" != x ; then
4546 eval "DEFAULT_$LINE"
4547 else
4548 no_cache=1
4549 fi
4550
4551 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4552
4553fi
4554
4555
4556 eval "$ac_cv_use_slider"
4557 if test "$no_cache" != 1; then
4558 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4559 fi
4560
4561 if test "$wxUSE_SLIDER" = yes; then
4562 echo "$ac_t""yes" 1>&6
4563 else
4564 echo "$ac_t""no" 1>&6
4565 fi
4566
4567
4568 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
7e99ad86 4569echo "configure:4570: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
4570 no_cache=0
4571 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4572if test "${enable_spinbtn+set}" = set; then
4573 enableval="$enable_spinbtn"
4574
4575 if test "$enableval" = yes; then
4576 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4577 else
4578 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4579 fi
4580
4581else
4582
4583 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4584 if test "x$LINE" != x ; then
4585 eval "DEFAULT_$LINE"
4586 else
4587 no_cache=1
4588 fi
4589
4590 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4591
4592fi
4593
4594
4595 eval "$ac_cv_use_spinbtn"
4596 if test "$no_cache" != 1; then
4597 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4598 fi
4599
4600 if test "$wxUSE_SPINBTN" = yes; then
4601 echo "$ac_t""yes" 1>&6
4602 else
4603 echo "$ac_t""no" 1>&6
4604 fi
4605
4606
56cfaa52 4607 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
7e99ad86 4608echo "configure:4609: checking "for --enable-spinctrl"" >&5
56cfaa52
RR
4609 no_cache=0
4610 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4611if test "${enable_spinctrl+set}" = set; then
4612 enableval="$enable_spinctrl"
4613
4614 if test "$enableval" = yes; then
4615 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4616 else
4617 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
4618 fi
4619
4620else
4621
4622 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
4623 if test "x$LINE" != x ; then
4624 eval "DEFAULT_$LINE"
4625 else
4626 no_cache=1
4627 fi
4628
4629 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
4630
4631fi
4632
4633
4634 eval "$ac_cv_use_spinctrl"
4635 if test "$no_cache" != 1; then
4636 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
4637 fi
4638
4639 if test "$wxUSE_SPINCTRL" = yes; then
4640 echo "$ac_t""yes" 1>&6
4641 else
4642 echo "$ac_t""no" 1>&6
4643 fi
4644
4645
10f2d63a 4646 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
7e99ad86 4647echo "configure:4648: checking "for --enable-splitter"" >&5
10f2d63a
VZ
4648 no_cache=0
4649 # Check whether --enable-splitter or --disable-splitter was given.
4650if test "${enable_splitter+set}" = set; then
4651 enableval="$enable_splitter"
4652
4653 if test "$enableval" = yes; then
4654 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4655 else
4656 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4657 fi
4658
4659else
4660
4661 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4662 if test "x$LINE" != x ; then
4663 eval "DEFAULT_$LINE"
4664 else
4665 no_cache=1
4666 fi
4667
4668 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4669
4670fi
4671
4672
4673 eval "$ac_cv_use_splitter"
4674 if test "$no_cache" != 1; then
4675 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4676 fi
4677
4678 if test "$wxUSE_SPLITTER" = yes; then
4679 echo "$ac_t""yes" 1>&6
4680 else
4681 echo "$ac_t""no" 1>&6
4682 fi
4683
4684
4685 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
7e99ad86 4686echo "configure:4687: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
4687 no_cache=0
4688 # Check whether --enable-statbmp or --disable-statbmp was given.
4689if test "${enable_statbmp+set}" = set; then
4690 enableval="$enable_statbmp"
4691
4692 if test "$enableval" = yes; then
4693 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4694 else
4695 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4696 fi
4697
4698else
4699
4700 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4701 if test "x$LINE" != x ; then
4702 eval "DEFAULT_$LINE"
4703 else
4704 no_cache=1
4705 fi
4706
4707 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4708
4709fi
4710
4711
4712 eval "$ac_cv_use_statbmp"
4713 if test "$no_cache" != 1; then
4714 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4715 fi
4716
4717 if test "$wxUSE_STATBMP" = yes; then
4718 echo "$ac_t""yes" 1>&6
4719 else
4720 echo "$ac_t""no" 1>&6
4721 fi
4722
4723
4724 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
7e99ad86 4725echo "configure:4726: checking "for --enable-statbox"" >&5
10f2d63a
VZ
4726 no_cache=0
4727 # Check whether --enable-statbox or --disable-statbox was given.
4728if test "${enable_statbox+set}" = set; then
4729 enableval="$enable_statbox"
4730
4731 if test "$enableval" = yes; then
4732 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4733 else
4734 ac_cv_use_statbox='wxUSE_STATBOX=no'
4735 fi
4736
4737else
4738
4739 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4740 if test "x$LINE" != x ; then
4741 eval "DEFAULT_$LINE"
4742 else
4743 no_cache=1
4744 fi
4745
4746 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4747
4748fi
4749
4750
4751 eval "$ac_cv_use_statbox"
4752 if test "$no_cache" != 1; then
4753 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4754 fi
4755
4756 if test "$wxUSE_STATBOX" = yes; then
4757 echo "$ac_t""yes" 1>&6
4758 else
4759 echo "$ac_t""no" 1>&6
4760 fi
4761
4762
4763 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
7e99ad86 4764echo "configure:4765: checking "for --enable-statline"" >&5
10f2d63a
VZ
4765 no_cache=0
4766 # Check whether --enable-statline or --disable-statline was given.
4767if test "${enable_statline+set}" = set; then
4768 enableval="$enable_statline"
4769
4770 if test "$enableval" = yes; then
4771 ac_cv_use_statline='wxUSE_STATLINE=yes'
4772 else
4773 ac_cv_use_statline='wxUSE_STATLINE=no'
4774 fi
4775
4776else
4777
4778 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
4779 if test "x$LINE" != x ; then
4780 eval "DEFAULT_$LINE"
4781 else
4782 no_cache=1
4783 fi
4784
4785 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
4786
4787fi
4788
4789
4790 eval "$ac_cv_use_statline"
4791 if test "$no_cache" != 1; then
4792 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
4793 fi
4794
4795 if test "$wxUSE_STATLINE" = yes; then
4796 echo "$ac_t""yes" 1>&6
4797 else
4798 echo "$ac_t""no" 1>&6
4799 fi
4800
4801
4802 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
7e99ad86 4803echo "configure:4804: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
4804 no_cache=0
4805 # Check whether --enable-statusbar or --disable-statusbar was given.
4806if test "${enable_statusbar+set}" = set; then
4807 enableval="$enable_statusbar"
4808
4809 if test "$enableval" = yes; then
4810 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
4811 else
4812 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
4813 fi
4814
4815else
4816
4817 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
4818 if test "x$LINE" != x ; then
4819 eval "DEFAULT_$LINE"
4820 else
4821 no_cache=1
4822 fi
4823
4824 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
4825
4826fi
4827
4828
4829 eval "$ac_cv_use_statusbar"
4830 if test "$no_cache" != 1; then
4831 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
4832 fi
4833
4834 if test "$wxUSE_STATUSBAR" = yes; then
4835 echo "$ac_t""yes" 1>&6
4836 else
4837 echo "$ac_t""no" 1>&6
4838 fi
4839
4840
4841 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
7e99ad86 4842echo "configure:4843: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
4843 no_cache=0
4844 # Check whether --enable-tabdialog or --disable-tabdialog was given.
4845if test "${enable_tabdialog+set}" = set; then
4846 enableval="$enable_tabdialog"
4847
4848 if test "$enableval" = yes; then
4849 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
4850 else
4851 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
4852 fi
4853
4854else
4855
4856 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
4857 if test "x$LINE" != x ; then
4858 eval "DEFAULT_$LINE"
4859 else
4860 no_cache=1
4861 fi
4862
4863 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
4864
4865fi
4866
4867
4868 eval "$ac_cv_use_tabdialog"
4869 if test "$no_cache" != 1; then
4870 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
4871 fi
4872
4873 if test "$wxUSE_TABDIALOG" = yes; then
4874 echo "$ac_t""yes" 1>&6
4875 else
4876 echo "$ac_t""no" 1>&6
4877 fi
4878
4879
4880 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
7e99ad86 4881echo "configure:4882: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
4882 no_cache=0
4883 # Check whether --enable-toolbar or --disable-toolbar was given.
4884if test "${enable_toolbar+set}" = set; then
4885 enableval="$enable_toolbar"
4886
4887 if test "$enableval" = yes; then
4888 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
4889 else
4890 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
4891 fi
4892
4893else
4894
4895 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
4896 if test "x$LINE" != x ; then
4897 eval "DEFAULT_$LINE"
4898 else
4899 no_cache=1
4900 fi
4901
4902 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
4903
4904fi
4905
4906
4907 eval "$ac_cv_use_toolbar"
4908 if test "$no_cache" != 1; then
4909 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
4910 fi
4911
4912 if test "$wxUSE_TOOLBAR" = yes; then
4913 echo "$ac_t""yes" 1>&6
4914 else
4915 echo "$ac_t""no" 1>&6
4916 fi
4917
4918
360d6699 4919 echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6
7e99ad86 4920echo "configure:4921: checking "for --enable-tbarnative"" >&5
360d6699
VZ
4921 no_cache=0
4922 # Check whether --enable-tbarnative or --disable-tbarnative was given.
4923if test "${enable_tbarnative+set}" = set; then
4924 enableval="$enable_tbarnative"
4925
4926 if test "$enableval" = yes; then
4927 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
4928 else
4929 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
4930 fi
4931
4932else
4933
4934 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
4935 if test "x$LINE" != x ; then
4936 eval "DEFAULT_$LINE"
4937 else
4938 no_cache=1
4939 fi
4940
4941 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
4942
4943fi
4944
4945
4946 eval "$ac_cv_use_tbarnative"
4947 if test "$no_cache" != 1; then
4948 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
4949 fi
4950
4951 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
4952 echo "$ac_t""yes" 1>&6
4953 else
4954 echo "$ac_t""no" 1>&6
4955 fi
4956
4957
4958 echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6
7e99ad86 4959echo "configure:4960: checking "for --enable-tbarsmpl"" >&5
360d6699
VZ
4960 no_cache=0
4961 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
4962if test "${enable_tbarsmpl+set}" = set; then
4963 enableval="$enable_tbarsmpl"
4964
4965 if test "$enableval" = yes; then
4966 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
4967 else
4968 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
4969 fi
4970
4971else
4972
4973 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
4974 if test "x$LINE" != x ; then
4975 eval "DEFAULT_$LINE"
4976 else
4977 no_cache=1
4978 fi
4979
4980 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
4981
4982fi
4983
4984
4985 eval "$ac_cv_use_tbarsmpl"
4986 if test "$no_cache" != 1; then
4987 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
4988 fi
4989
4990 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
4991 echo "$ac_t""yes" 1>&6
4992 else
4993 echo "$ac_t""no" 1>&6
4994 fi
4995
4996
10f2d63a 4997 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
7e99ad86 4998echo "configure:4999: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
4999 no_cache=0
5000 # Check whether --enable-treectrl or --disable-treectrl was given.
5001if test "${enable_treectrl+set}" = set; then
5002 enableval="$enable_treectrl"
5003
5004 if test "$enableval" = yes; then
5005 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5006 else
5007 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5008 fi
5009
5010else
5011
5012 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5013 if test "x$LINE" != x ; then
5014 eval "DEFAULT_$LINE"
5015 else
5016 no_cache=1
5017 fi
5018
5019 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5020
5021fi
5022
5023
5024 eval "$ac_cv_use_treectrl"
5025 if test "$no_cache" != 1; then
5026 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5027 fi
5028
5029 if test "$wxUSE_TREECTRL" = yes; then
5030 echo "$ac_t""yes" 1>&6
5031 else
5032 echo "$ac_t""no" 1>&6
5033 fi
5034
5035
5036
5037
5038 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
7e99ad86 5039echo "configure:5040: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5040 no_cache=0
5041 # Check whether --enable-commondlg or --disable-commondlg was given.
5042if test "${enable_commondlg+set}" = set; then
5043 enableval="$enable_commondlg"
5044
5045 if test "$enableval" = yes; then
5046 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5047 else
5048 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5049 fi
5050
5051else
5052
5053 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5054 if test "x$LINE" != x ; then
5055 eval "DEFAULT_$LINE"
5056 else
5057 no_cache=1
5058 fi
5059
5060 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5061
5062fi
5063
5064
5065 eval "$ac_cv_use_commondlg"
5066 if test "$no_cache" != 1; then
5067 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5068 fi
5069
5070 if test "$wxUSE_COMMONDLGS" = yes; then
5071 echo "$ac_t""yes" 1>&6
5072 else
5073 echo "$ac_t""no" 1>&6
5074 fi
5075
5076
5077 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
7e99ad86 5078echo "configure:5079: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5079 no_cache=0
5080 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5081if test "${enable_dirdlg+set}" = set; then
5082 enableval="$enable_dirdlg"
5083
5084 if test "$enableval" = yes; then
5085 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5086 else
5087 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5088 fi
5089
5090else
5091
5092 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5093 if test "x$LINE" != x ; then
5094 eval "DEFAULT_$LINE"
5095 else
5096 no_cache=1
5097 fi
5098
5099 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5100
5101fi
5102
5103
5104 eval "$ac_cv_use_dirdlg"
5105 if test "$no_cache" != 1; then
5106 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5107 fi
5108
5109 if test "$wxUSE_DIRDLG" = yes; then
5110 echo "$ac_t""yes" 1>&6
5111 else
5112 echo "$ac_t""no" 1>&6
5113 fi
5114
5115
5116 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
7e99ad86 5117echo "configure:5118: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5118 no_cache=0
5119 # Check whether --enable-textdlg or --disable-textdlg was given.
5120if test "${enable_textdlg+set}" = set; then
5121 enableval="$enable_textdlg"
5122
5123 if test "$enableval" = yes; then
5124 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5125 else
5126 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5127 fi
5128
5129else
5130
5131 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5132 if test "x$LINE" != x ; then
5133 eval "DEFAULT_$LINE"
5134 else
5135 no_cache=1
5136 fi
5137
5138 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5139
5140fi
5141
5142
5143 eval "$ac_cv_use_textdlg"
5144 if test "$no_cache" != 1; then
5145 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5146 fi
5147
5148 if test "$wxUSE_TEXTDLG" = yes; then
5149 echo "$ac_t""yes" 1>&6
5150 else
5151 echo "$ac_t""no" 1>&6
5152 fi
5153
5154
5155 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
7e99ad86 5156echo "configure:5157: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5157 no_cache=0
5158 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5159if test "${enable_tipdlg+set}" = set; then
5160 enableval="$enable_tipdlg"
5161
5162 if test "$enableval" = yes; then
5163 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5164 else
5165 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5166 fi
5167
5168else
5169
5170 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5171 if test "x$LINE" != x ; then
5172 eval "DEFAULT_$LINE"
5173 else
5174 no_cache=1
5175 fi
5176
5177 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5178
5179fi
5180
5181
5182 eval "$ac_cv_use_tipdlg"
5183 if test "$no_cache" != 1; then
5184 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5185 fi
5186
5187 if test "$wxUSE_STARTUP_TIPS" = yes; then
5188 echo "$ac_t""yes" 1>&6
5189 else
5190 echo "$ac_t""no" 1>&6
5191 fi
5192
5193
5194 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
7e99ad86 5195echo "configure:5196: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5196 no_cache=0
5197 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5198if test "${enable_progressdlg+set}" = set; then
5199 enableval="$enable_progressdlg"
5200
5201 if test "$enableval" = yes; then
5202 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5203 else
5204 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5205 fi
5206
5207else
5208
5209 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5210 if test "x$LINE" != x ; then
5211 eval "DEFAULT_$LINE"
5212 else
5213 no_cache=1
5214 fi
5215
5216 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5217
5218fi
5219
5220
5221 eval "$ac_cv_use_progressdlg"
5222 if test "$no_cache" != 1; then
5223 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5224 fi
5225
5226 if test "$wxUSE_PROGRESSDLG" = yes; then
5227 echo "$ac_t""yes" 1>&6
5228 else
5229 echo "$ac_t""no" 1>&6
5230 fi
5231
5232
5233 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
7e99ad86 5234echo "configure:5235: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5235 no_cache=0
5236 # Check whether --enable-miniframe or --disable-miniframe was given.
5237if test "${enable_miniframe+set}" = set; then
5238 enableval="$enable_miniframe"
5239
5240 if test "$enableval" = yes; then
5241 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5242 else
5243 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5244 fi
5245
5246else
5247
5248 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5249 if test "x$LINE" != x ; then
5250 eval "DEFAULT_$LINE"
5251 else
5252 no_cache=1
5253 fi
5254
5255 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5256
5257fi
5258
5259
5260 eval "$ac_cv_use_miniframe"
5261 if test "$no_cache" != 1; then
5262 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5263 fi
5264
5265 if test "$wxUSE_MINIFRAME" = yes; then
5266 echo "$ac_t""yes" 1>&6
5267 else
5268 echo "$ac_t""no" 1>&6
5269 fi
5270
5271
5272 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
7e99ad86 5273echo "configure:5274: checking "for --enable-html"" >&5
10f2d63a
VZ
5274 no_cache=0
5275 # Check whether --enable-html or --disable-html was given.
5276if test "${enable_html+set}" = set; then
5277 enableval="$enable_html"
5278
5279 if test "$enableval" = yes; then
5280 ac_cv_use_html='wxUSE_HTML=yes'
5281 else
5282 ac_cv_use_html='wxUSE_HTML=no'
5283 fi
5284
5285else
5286
5287 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5288 if test "x$LINE" != x ; then
5289 eval "DEFAULT_$LINE"
5290 else
5291 no_cache=1
5292 fi
5293
5294 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5295
5296fi
5297
5298
5299 eval "$ac_cv_use_html"
5300 if test "$no_cache" != 1; then
5301 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5302 fi
5303
5304 if test "$wxUSE_HTML" = yes; then
5305 echo "$ac_t""yes" 1>&6
5306 else
5307 echo "$ac_t""no" 1>&6
5308 fi
5309
5310
5311 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
7e99ad86 5312echo "configure:5313: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5313 no_cache=0
5314 # Check whether --enable-tooltips or --disable-tooltips was given.
5315if test "${enable_tooltips+set}" = set; then
5316 enableval="$enable_tooltips"
5317
5318 if test "$enableval" = yes; then
5319 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5320 else
5321 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5322 fi
5323
5324else
5325
5326 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5327 if test "x$LINE" != x ; then
5328 eval "DEFAULT_$LINE"
5329 else
5330 no_cache=1
5331 fi
5332
5333 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5334
5335fi
5336
5337
5338 eval "$ac_cv_use_tooltips"
5339 if test "$no_cache" != 1; then
5340 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5341 fi
5342
5343 if test "$wxUSE_TOOLTIPS" = yes; then
5344 echo "$ac_t""yes" 1>&6
5345 else
5346 echo "$ac_t""no" 1>&6
5347 fi
5348
5349
5350 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
7e99ad86 5351echo "configure:5352: checking "for --enable-splines"" >&5
10f2d63a
VZ
5352 no_cache=0
5353 # Check whether --enable-splines or --disable-splines was given.
5354if test "${enable_splines+set}" = set; then
5355 enableval="$enable_splines"
5356
5357 if test "$enableval" = yes; then
5358 ac_cv_use_splines='wxUSE_SPLINES=yes'
5359 else
5360 ac_cv_use_splines='wxUSE_SPLINES=no'
5361 fi
5362
5363else
5364
5365 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5366 if test "x$LINE" != x ; then
5367 eval "DEFAULT_$LINE"
5368 else
5369 no_cache=1
5370 fi
5371
5372 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5373
5374fi
5375
5376
5377 eval "$ac_cv_use_splines"
5378 if test "$no_cache" != 1; then
5379 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5380 fi
5381
5382 if test "$wxUSE_SPLINES" = yes; then
5383 echo "$ac_t""yes" 1>&6
5384 else
5385 echo "$ac_t""no" 1>&6
5386 fi
5387
5388
5389 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
7e99ad86 5390echo "configure:5391: checking "for --enable-validators"" >&5
10f2d63a
VZ
5391 no_cache=0
5392 # Check whether --enable-validators or --disable-validators was given.
5393if test "${enable_validators+set}" = set; then
5394 enableval="$enable_validators"
5395
5396 if test "$enableval" = yes; then
5397 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5398 else
5399 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5400 fi
5401
5402else
5403
5404 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5405 if test "x$LINE" != x ; then
5406 eval "DEFAULT_$LINE"
5407 else
5408 no_cache=1
5409 fi
5410
5411 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5412
5413fi
5414
5415
5416 eval "$ac_cv_use_validators"
5417 if test "$no_cache" != 1; then
5418 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5419 fi
5420
5421 if test "$wxUSE_VALIDATORS" = yes; then
5422 echo "$ac_t""yes" 1>&6
5423 else
5424 echo "$ac_t""no" 1>&6
5425 fi
5426
5427
5428 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
7e99ad86 5429echo "configure:5430: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5430 no_cache=0
5431 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5432if test "${enable_busyinfo+set}" = set; then
5433 enableval="$enable_busyinfo"
5434
5435 if test "$enableval" = yes; then
5436 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5437 else
5438 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5439 fi
5440
5441else
5442
5443 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5444 if test "x$LINE" != x ; then
5445 eval "DEFAULT_$LINE"
5446 else
5447 no_cache=1
5448 fi
5449
5450 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5451
5452fi
5453
5454
5455 eval "$ac_cv_use_busyinfo"
5456 if test "$no_cache" != 1; then
5457 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5458 fi
5459
5460 if test "$wxUSE_BUSYINFO" = yes; then
5461 echo "$ac_t""yes" 1>&6
5462 else
5463 echo "$ac_t""no" 1>&6
5464 fi
5465
5466
5467
5468
5469 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
7e99ad86 5470echo "configure:5471: checking "for --enable-gif"" >&5
10f2d63a
VZ
5471 no_cache=0
5472 # Check whether --enable-gif or --disable-gif was given.
5473if test "${enable_gif+set}" = set; then
5474 enableval="$enable_gif"
5475
5476 if test "$enableval" = yes; then
5477 ac_cv_use_gif='wxUSE_GIF=yes'
5478 else
5479 ac_cv_use_gif='wxUSE_GIF=no'
5480 fi
5481
5482else
5483
5484 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5485 if test "x$LINE" != x ; then
5486 eval "DEFAULT_$LINE"
5487 else
5488 no_cache=1
5489 fi
5490
5491 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5492
5493fi
5494
5495
5496 eval "$ac_cv_use_gif"
5497 if test "$no_cache" != 1; then
5498 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5499 fi
5500
5501 if test "$wxUSE_GIF" = yes; then
5502 echo "$ac_t""yes" 1>&6
5503 else
5504 echo "$ac_t""no" 1>&6
5505 fi
5506
5507
5508 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
7e99ad86 5509echo "configure:5510: checking "for --enable-pcx"" >&5
10f2d63a
VZ
5510 no_cache=0
5511 # Check whether --enable-pcx or --disable-pcx was given.
5512if test "${enable_pcx+set}" = set; then
5513 enableval="$enable_pcx"
5514
5515 if test "$enableval" = yes; then
5516 ac_cv_use_pcx='wxUSE_PCX=yes'
5517 else
5518 ac_cv_use_pcx='wxUSE_PCX=no'
5519 fi
5520
5521else
5522
5523 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5524 if test "x$LINE" != x ; then
5525 eval "DEFAULT_$LINE"
5526 else
5527 no_cache=1
5528 fi
5529
5530 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5531
5532fi
5533
5534
5535 eval "$ac_cv_use_pcx"
5536 if test "$no_cache" != 1; then
5537 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5538 fi
5539
5540 if test "$wxUSE_PCX" = yes; then
5541 echo "$ac_t""yes" 1>&6
5542 else
5543 echo "$ac_t""no" 1>&6
5544 fi
5545
5546
5547 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
7e99ad86 5548echo "configure:5549: checking "for --enable-pnm"" >&5
10f2d63a
VZ
5549 no_cache=0
5550 # Check whether --enable-pnm or --disable-pnm was given.
5551if test "${enable_pnm+set}" = set; then
5552 enableval="$enable_pnm"
5553
5554 if test "$enableval" = yes; then
5555 ac_cv_use_pnm='wxUSE_PNM=yes'
5556 else
5557 ac_cv_use_pnm='wxUSE_PNM=no'
5558 fi
5559
5560else
5561
5562 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5563 if test "x$LINE" != x ; then
5564 eval "DEFAULT_$LINE"
5565 else
5566 no_cache=1
5567 fi
5568
5569 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5570
5571fi
5572
5573
5574 eval "$ac_cv_use_pnm"
5575 if test "$no_cache" != 1; then
5576 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5577 fi
5578
5579 if test "$wxUSE_PNM" = yes; then
5580 echo "$ac_t""yes" 1>&6
5581 else
5582 echo "$ac_t""no" 1>&6
5583 fi
5584
5585
b12915c1
VZ
5586fi
5587
10f2d63a
VZ
5588
5589 echo "saving argument cache $wx_arg_cache_file"
5590 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5591
5592
5593
5594echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7e99ad86 5595echo "configure:5596: checking for toolkit" >&5
10f2d63a
VZ
5596
5597if test "$wxUSE_GUI" = "yes"; then
5598
b12915c1
VZ
5599if test "$USE_BEOS" = 1; then
5600 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
5601fi
5602
10f2d63a
VZ
5603if test "$TOOLKIT_GIVEN" = 1; then
5604 for toolkit in `echo $ALL_TOOLKITS`; do
5605 var=wxUSE_$toolkit
5606 eval "value=\$${var}"
5607 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5608 done
5609else
5610 for toolkit in `echo $ALL_TOOLKITS`; do
5611 if test "$has_toolkit_in_cache" != 1; then
5612 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5613 else
5614 var=DEFAULT_wxUSE_$toolkit
5615 fi
5616 eval "wxUSE_$toolkit=\$${var}"
5617 done
5618fi
5619
ec14dd32 5620NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
cf27ef00 5621
ec14dd32
VZ
5622case "${host}" in
5623 *-pc-os2_emx )
5624 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
5625 # PATH_IFS is autodetected by OS/2's configure (usually ';')
5626 LEX_STEM="lexyy"
5627 ;;
5628 *)
5629 PATH_IFS=':'
5630 LEX_STEM="lex.yy"
cf27ef00 5631 PROGRAM_EXT=
ec14dd32
VZ
5632 ;;
5633esac
10f2d63a
VZ
5634
5635case "$NUM_TOOLKITS" in
5636 1)
5637 ;;
5638 0)
5639 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5640 ;;
5641 *)
5642 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5643esac
5644
5645for toolkit in `echo $ALL_TOOLKITS`; do
5646 var=wxUSE_$toolkit
5647 eval "value=\$${var}"
5648 if test "x$value" != x; then
5649 cache_var=CACHE_$toolkit
5650 eval "cache=\$${cache_var}"
5651 if test "$cache" = 1; then
5652 echo "$var=$value" >> ${wx_arg_cache_file}
5653 fi
5654 if test "$value" = 1; then
5655 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5656 fi
5657 fi
5658done
5659
5660else
cf27ef00 5661 PATH_IFS=':'
10f2d63a
VZ
5662 echo "$ac_t""base only" 1>&6
5663fi
5664
5665
5666cat > confcache <<\EOF
5667# This file is a shell script that caches the results of configure
5668# tests run on this system so they can be shared between configure
5669# scripts and configure runs. It is not useful on other systems.
5670# If it contains results you don't want to keep, you may remove or edit it.
5671#
5672# By default, configure uses ./config.cache as the cache file,
5673# creating it if it does not exist already. You can give configure
5674# the --cache-file=FILE option to use a different cache file; that is
5675# what configure does when it calls configure scripts in
5676# subdirectories, so they share the cache.
5677# Giving --cache-file=/dev/null disables caching, for debugging configure.
5678# config.status only pays attention to the cache file if you give it the
5679# --recheck option to rerun configure.
5680#
5681EOF
5682# The following way of writing the cache mishandles newlines in values,
5683# but we know of no workaround that is simple, portable, and efficient.
5684# So, don't put newlines in cache variables' values.
5685# Ultrix sh set writes to stderr and can't be redirected directly,
5686# and sets the high bit in the cache file unless we assign to the vars.
5687(set) 2>&1 |
5688 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5689 *ac_space=\ *)
5690 # `set' does not quote correctly, so add quotes (double-quote substitution
5691 # turns \\\\ into \\, and sed turns \\ into \).
5692 sed -n \
5693 -e "s/'/'\\\\''/g" \
5694 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5695 ;;
5696 *)
5697 # `set' quotes correctly as required by POSIX, so do not add quotes.
5698 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5699 ;;
5700 esac >> confcache
5701if cmp -s $cache_file confcache; then
5702 :
5703else
5704 if test -w $cache_file; then
5705 echo "updating cache $cache_file"
5706 cat confcache > $cache_file
5707 else
5708 echo "not updating unwritable cache $cache_file"
5709 fi
5710fi
5711rm -f confcache
5712
5713
5714if eval "test $host != $build"; then
5715 if eval "test $host_alias != NONE"; then
5716 CC=$host_alias-gcc
5717 CXX=$host_alias-c++
5718 AR=$host_alias-ar
5719 RANLIB=$host_alias-ranlib
5720 DLLTOOL=$host_alias-dlltool
5721 LD=$host_alias-ld
5722 NM=$host_alias-nm
5723 STRIP=$host_alias-strip
5724 fi
5725fi
5726
5727# Extract the first word of "gcc", so it can be a program name with args.
5728set dummy gcc; ac_word=$2
5729echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7e99ad86 5730echo "configure:5731: checking for $ac_word" >&5
10f2d63a
VZ
5731if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5732 echo $ac_n "(cached) $ac_c" 1>&6
5733else
5734 if test -n "$CC"; then
5735 ac_cv_prog_CC="$CC" # Let the user override the test.
5736else
5737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5738 ac_dummy="$PATH"
5739 for ac_dir in $ac_dummy; do
5740 test -z "$ac_dir" && ac_dir=.
5741 if test -f $ac_dir/$ac_word; then
5742 ac_cv_prog_CC="gcc"
5743 break
5744 fi
5745 done
5746 IFS="$ac_save_ifs"
5747fi
5748fi
5749CC="$ac_cv_prog_CC"
5750if test -n "$CC"; then
5751 echo "$ac_t""$CC" 1>&6
5752else
5753 echo "$ac_t""no" 1>&6
5754fi
5755
5756if test -z "$CC"; then
5757 # Extract the first word of "cc", so it can be a program name with args.
5758set dummy cc; ac_word=$2
5759echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7e99ad86 5760echo "configure:5761: checking for $ac_word" >&5
10f2d63a
VZ
5761if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5762 echo $ac_n "(cached) $ac_c" 1>&6
5763else
5764 if test -n "$CC"; then
5765 ac_cv_prog_CC="$CC" # Let the user override the test.
5766else
5767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5768 ac_prog_rejected=no
5769 ac_dummy="$PATH"
5770 for ac_dir in $ac_dummy; do
5771 test -z "$ac_dir" && ac_dir=.
5772 if test -f $ac_dir/$ac_word; then
5773 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
5774 ac_prog_rejected=yes
5775 continue
5776 fi
5777 ac_cv_prog_CC="cc"
5778 break
5779 fi
5780 done
5781 IFS="$ac_save_ifs"
5782if test $ac_prog_rejected = yes; then
5783 # We found a bogon in the path, so make sure we never use it.
5784 set dummy $ac_cv_prog_CC
5785 shift
5786 if test $# -gt 0; then
5787 # We chose a different compiler from the bogus one.
5788 # However, it has the same basename, so the bogon will be chosen
5789 # first if we set CC to just the basename; use the full file name.
5790 shift
5791 set dummy "$ac_dir/$ac_word" "$@"
5792 shift
5793 ac_cv_prog_CC="$@"
5794 fi
5795fi
5796fi
5797fi
5798CC="$ac_cv_prog_CC"
5799if test -n "$CC"; then
5800 echo "$ac_t""$CC" 1>&6
5801else
5802 echo "$ac_t""no" 1>&6
5803fi
5804
5805 if test -z "$CC"; then
5806 case "`uname -s`" in
5807 *win32* | *WIN32*)
5808 # Extract the first word of "cl", so it can be a program name with args.
5809set dummy cl; ac_word=$2
5810echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7e99ad86 5811echo "configure:5812: checking for $ac_word" >&5
10f2d63a
VZ
5812if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5813 echo $ac_n "(cached) $ac_c" 1>&6
5814else
5815 if test -n "$CC"; then
5816 ac_cv_prog_CC="$CC" # Let the user override the test.
5817else
5818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5819 ac_dummy="$PATH"
5820 for ac_dir in $ac_dummy; do
5821 test -z "$ac_dir" && ac_dir=.
5822 if test -f $ac_dir/$ac_word; then
5823 ac_cv_prog_CC="cl"
5824 break
5825 fi
5826 done
5827 IFS="$ac_save_ifs"
5828fi
5829fi
5830CC="$ac_cv_prog_CC"
5831if test -n "$CC"; then
5832 echo "$ac_t""$CC" 1>&6
5833else
5834 echo "$ac_t""no" 1>&6
5835fi
5836 ;;
5837 esac
5838 fi
5839 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5840fi
5841
5842echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7e99ad86 5843echo "configure:5844: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
5844
5845ac_ext=c
5846# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5847ac_cpp='$CPP $CPPFLAGS'
5848ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5849ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5850cross_compiling=$ac_cv_prog_cc_cross
5851
5852cat > conftest.$ac_ext << EOF
5853
7e99ad86 5854#line 5855 "configure"
10f2d63a
VZ
5855#include "confdefs.h"
5856
5857main(){return(0);}
5858EOF
7e99ad86 5859if { (eval echo configure:5860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
5860 ac_cv_prog_cc_works=yes
5861 # If we can't run a trivial program, we are probably using a cross compiler.
5862 if (./conftest; exit) 2>/dev/null; then
5863 ac_cv_prog_cc_cross=no
5864 else
5865 ac_cv_prog_cc_cross=yes
5866 fi
5867else
5868 echo "configure: failed program was:" >&5
5869 cat conftest.$ac_ext >&5
5870 ac_cv_prog_cc_works=no
5871fi
5872rm -fr conftest*
5873ac_ext=c
5874# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5875ac_cpp='$CPP $CPPFLAGS'
5876ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5877ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5878cross_compiling=$ac_cv_prog_cc_cross
5879
5880echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
5881if test $ac_cv_prog_cc_works = no; then
5882 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
5883fi
5884echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7e99ad86 5885echo "configure:5886: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
5886echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
5887cross_compiling=$ac_cv_prog_cc_cross
5888
5889echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
7e99ad86 5890echo "configure:5891: checking whether we are using GNU C" >&5
10f2d63a
VZ
5891if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
5892 echo $ac_n "(cached) $ac_c" 1>&6
5893else
5894 cat > conftest.c <<EOF
5895#ifdef __GNUC__
5896 yes;
5897#endif
5898EOF
7e99ad86 5899if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:5900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
5900 ac_cv_prog_gcc=yes
5901else
5902 ac_cv_prog_gcc=no
5903fi
5904fi
5905
5906echo "$ac_t""$ac_cv_prog_gcc" 1>&6
5907
5908if test $ac_cv_prog_gcc = yes; then
5909 GCC=yes
5910else
5911 GCC=
5912fi
5913
5914ac_test_CFLAGS="${CFLAGS+set}"
5915ac_save_CFLAGS="$CFLAGS"
5916CFLAGS=
5917echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
7e99ad86 5918echo "configure:5919: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
5919if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
5920 echo $ac_n "(cached) $ac_c" 1>&6
5921else
5922 echo 'void f(){}' > conftest.c
5923if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
5924 ac_cv_prog_cc_g=yes
5925else
5926 ac_cv_prog_cc_g=no
5927fi
5928rm -f conftest*
5929
5930fi
5931
5932echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
5933if test "$ac_test_CFLAGS" = set; then
5934 CFLAGS="$ac_save_CFLAGS"
5935elif test $ac_cv_prog_cc_g = yes; then
5936 if test "$GCC" = yes; then
5937 CFLAGS="-g -O2"
5938 else
5939 CFLAGS="-g"
5940 fi
5941else
5942 if test "$GCC" = yes; then
5943 CFLAGS="-O2"
5944 else
5945 CFLAGS=
5946 fi
5947fi
5948
5949
5950CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
5951
5952echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7e99ad86 5953echo "configure:5954: checking how to run the C preprocessor" >&5
10f2d63a
VZ
5954# On Suns, sometimes $CPP names a directory.
5955if test -n "$CPP" && test -d "$CPP"; then
5956 CPP=
5957fi
5958if test -z "$CPP"; then
5959if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
5960 echo $ac_n "(cached) $ac_c" 1>&6
5961else
5962 # This must be in double quotes, not single quotes, because CPP may get
5963 # substituted into the Makefile and "${CC-cc}" will confuse make.
5964 CPP="${CC-cc} -E"
5965 # On the NeXT, cc -E runs the code through the compiler's parser,
5966 # not just through cpp.
5967 cat > conftest.$ac_ext <<EOF
7e99ad86 5968#line 5969 "configure"
10f2d63a
VZ
5969#include "confdefs.h"
5970#include <assert.h>
5971Syntax Error
5972EOF
5973ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7e99ad86 5974{ (eval echo configure:5975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
5975ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5976if test -z "$ac_err"; then
5977 :
5978else
5979 echo "$ac_err" >&5
5980 echo "configure: failed program was:" >&5
5981 cat conftest.$ac_ext >&5
5982 rm -rf conftest*
5983 CPP="${CC-cc} -E -traditional-cpp"
5984 cat > conftest.$ac_ext <<EOF
7e99ad86 5985#line 5986 "configure"
10f2d63a
VZ
5986#include "confdefs.h"
5987#include <assert.h>
5988Syntax Error
5989EOF
5990ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7e99ad86 5991{ (eval echo configure:5992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
5992ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5993if test -z "$ac_err"; then
5994 :
5995else
5996 echo "$ac_err" >&5
5997 echo "configure: failed program was:" >&5
5998 cat conftest.$ac_ext >&5
5999 rm -rf conftest*
6000 CPP="${CC-cc} -nologo -E"
6001 cat > conftest.$ac_ext <<EOF
7e99ad86 6002#line 6003 "configure"
10f2d63a
VZ
6003#include "confdefs.h"
6004#include <assert.h>
6005Syntax Error
6006EOF
6007ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7e99ad86 6008{ (eval echo configure:6009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6009ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6010if test -z "$ac_err"; then
6011 :
6012else
6013 echo "$ac_err" >&5
6014 echo "configure: failed program was:" >&5
6015 cat conftest.$ac_ext >&5
6016 rm -rf conftest*
6017 CPP=/lib/cpp
6018fi
6019rm -f conftest*
6020fi
6021rm -f conftest*
6022fi
6023rm -f conftest*
6024 ac_cv_prog_CPP="$CPP"
6025fi
6026 CPP="$ac_cv_prog_CPP"
6027else
6028 ac_cv_prog_CPP="$CPP"
6029fi
6030echo "$ac_t""$CPP" 1>&6
6031
6032
6033if test $ac_cv_prog_gcc = yes; then
6034 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
7e99ad86 6035echo "configure:6036: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
6036if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6037 echo $ac_n "(cached) $ac_c" 1>&6
6038else
6039 ac_pattern="Autoconf.*'x'"
6040 cat > conftest.$ac_ext <<EOF
7e99ad86 6041#line 6042 "configure"
10f2d63a
VZ
6042#include "confdefs.h"
6043#include <sgtty.h>
6044Autoconf TIOCGETP
6045EOF
6046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6047 egrep "$ac_pattern" >/dev/null 2>&1; then
6048 rm -rf conftest*
6049 ac_cv_prog_gcc_traditional=yes
6050else
6051 rm -rf conftest*
6052 ac_cv_prog_gcc_traditional=no
6053fi
6054rm -f conftest*
6055
6056
6057 if test $ac_cv_prog_gcc_traditional = no; then
6058 cat > conftest.$ac_ext <<EOF
7e99ad86 6059#line 6060 "configure"
10f2d63a
VZ
6060#include "confdefs.h"
6061#include <termio.h>
6062Autoconf TCGETA
6063EOF
6064if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6065 egrep "$ac_pattern" >/dev/null 2>&1; then
6066 rm -rf conftest*
6067 ac_cv_prog_gcc_traditional=yes
6068fi
6069rm -f conftest*
6070
6071 fi
6072fi
6073
6074echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6075 if test $ac_cv_prog_gcc_traditional = yes; then
6076 CC="$CC -traditional"
6077 fi
6078fi
6079
6080
6081
6082ac_ext=C
6083# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6084ac_cpp='$CXXCPP $CPPFLAGS'
6085ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6086ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6087cross_compiling=$ac_cv_prog_cxx_cross
6088
6089
6090for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6091do
6092# Extract the first word of "$ac_prog", so it can be a program name with args.
6093set dummy $ac_prog; ac_word=$2
6094echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7e99ad86 6095echo "configure:6096: checking for $ac_word" >&5
10f2d63a
VZ
6096if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6097 echo $ac_n "(cached) $ac_c" 1>&6
6098else
6099 if test -n "$CXX"; then
6100 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6101else
6102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6103 ac_dummy="$PATH"
6104 for ac_dir in $ac_dummy; do
6105 test -z "$ac_dir" && ac_dir=.
6106 if test -f $ac_dir/$ac_word; then
6107 ac_cv_prog_CXX="$ac_prog"
6108 break
6109 fi
6110 done
6111 IFS="$ac_save_ifs"
6112fi
6113fi
6114CXX="$ac_cv_prog_CXX"
6115if test -n "$CXX"; then
6116 echo "$ac_t""$CXX" 1>&6
6117else
6118 echo "$ac_t""no" 1>&6
6119fi
6120
6121test -n "$CXX" && break
6122done
6123test -n "$CXX" || CXX="gcc"
6124
6125
6126echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7e99ad86 6127echo "configure:6128: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6128
6129ac_ext=C
6130# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6131ac_cpp='$CXXCPP $CPPFLAGS'
6132ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6133ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6134cross_compiling=$ac_cv_prog_cxx_cross
6135
6136cat > conftest.$ac_ext << EOF
6137
7e99ad86 6138#line 6139 "configure"
10f2d63a
VZ
6139#include "confdefs.h"
6140
6141int main(){return(0);}
6142EOF
7e99ad86 6143if { (eval echo configure:6144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6144 ac_cv_prog_cxx_works=yes
6145 # If we can't run a trivial program, we are probably using a cross compiler.
6146 if (./conftest; exit) 2>/dev/null; then
6147 ac_cv_prog_cxx_cross=no
6148 else
6149 ac_cv_prog_cxx_cross=yes
6150 fi
6151else
6152 echo "configure: failed program was:" >&5
6153 cat conftest.$ac_ext >&5
6154 ac_cv_prog_cxx_works=no
6155fi
6156rm -fr conftest*
6157ac_ext=C
6158# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6159ac_cpp='$CXXCPP $CPPFLAGS'
6160ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6161ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6162cross_compiling=$ac_cv_prog_cxx_cross
6163
6164echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6165if test $ac_cv_prog_cxx_works = no; then
6166 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6167fi
6168echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7e99ad86 6169echo "configure:6170: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6170echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6171cross_compiling=$ac_cv_prog_cxx_cross
6172
6173echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
7e99ad86 6174echo "configure:6175: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6175if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6176 echo $ac_n "(cached) $ac_c" 1>&6
6177else
6178 cat > conftest.C <<EOF
6179#ifdef __GNUC__
6180 yes;
6181#endif
6182EOF
7e99ad86 6183if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6184 ac_cv_prog_gxx=yes
6185else
6186 ac_cv_prog_gxx=no
6187fi
6188fi
6189
6190echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6191
6192if test $ac_cv_prog_gxx = yes; then
6193 GXX=yes
6194else
6195 GXX=
6196fi
6197
6198ac_test_CXXFLAGS="${CXXFLAGS+set}"
6199ac_save_CXXFLAGS="$CXXFLAGS"
6200CXXFLAGS=
6201echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
7e99ad86 6202echo "configure:6203: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6203if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6204 echo $ac_n "(cached) $ac_c" 1>&6
6205else
6206 echo 'void f(){}' > conftest.cc
6207if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6208 ac_cv_prog_cxx_g=yes
6209else
6210 ac_cv_prog_cxx_g=no
6211fi
6212rm -f conftest*
6213
6214fi
6215
6216echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6217if test "$ac_test_CXXFLAGS" = set; then
6218 CXXFLAGS="$ac_save_CXXFLAGS"
6219elif test $ac_cv_prog_cxx_g = yes; then
6220 if test "$GXX" = yes; then
6221 CXXFLAGS="-g -O2"
6222 else
6223 CXXFLAGS="-g"
6224 fi
6225else
6226 if test "$GXX" = yes; then
6227 CXXFLAGS="-O2"
6228 else
6229 CXXFLAGS=
6230 fi
6231fi
6232
6233
6234echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
7e99ad86 6235echo "configure:6236: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6236if test -z "$CXXCPP"; then
6237if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6238 echo $ac_n "(cached) $ac_c" 1>&6
6239else
6240 ac_ext=C
6241# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6242ac_cpp='$CXXCPP $CPPFLAGS'
6243ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6244ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6245cross_compiling=$ac_cv_prog_cxx_cross
6246 CXXCPP="${CXX-g++} -E"
6247 cat > conftest.$ac_ext <<EOF
7e99ad86 6248#line 6249 "configure"
10f2d63a
VZ
6249#include "confdefs.h"
6250#include <stdlib.h>
6251EOF
6252ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7e99ad86 6253{ (eval echo configure:6254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6254ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6255if test -z "$ac_err"; then
6256 :
6257else
6258 echo "$ac_err" >&5
6259 echo "configure: failed program was:" >&5
6260 cat conftest.$ac_ext >&5
6261 rm -rf conftest*
6262 CXXCPP=/lib/cpp
6263fi
6264rm -f conftest*
6265 ac_cv_prog_CXXCPP="$CXXCPP"
6266ac_ext=C
6267# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6268ac_cpp='$CXXCPP $CPPFLAGS'
6269ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6270ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6271cross_compiling=$ac_cv_prog_cxx_cross
6272fi
6273fi
6274CXXCPP="$ac_cv_prog_CXXCPP"
6275echo "$ac_t""$CXXCPP" 1>&6
6276
6277
6278CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6279
6280ac_ext=c
6281# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6282ac_cpp='$CPP $CPPFLAGS'
6283ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6284ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6285cross_compiling=$ac_cv_prog_cc_cross
6286
6287
6288# Extract the first word of "ranlib", so it can be a program name with args.
6289set dummy ranlib; ac_word=$2
6290echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7e99ad86 6291echo "configure:6292: checking for $ac_word" >&5
10f2d63a
VZ
6292if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6293 echo $ac_n "(cached) $ac_c" 1>&6
6294else
6295 if test -n "$RANLIB"; then
6296 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6297else
6298 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6299 ac_dummy="$PATH"
6300 for ac_dir in $ac_dummy; do
6301 test -z "$ac_dir" && ac_dir=.
6302 if test -f $ac_dir/$ac_word; then
6303 ac_cv_prog_RANLIB="ranlib"
6304 break
6305 fi
6306 done
6307 IFS="$ac_save_ifs"
6308 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6309fi
6310fi
6311RANLIB="$ac_cv_prog_RANLIB"
6312if test -n "$RANLIB"; then
6313 echo "$ac_t""$RANLIB" 1>&6
6314else
6315 echo "$ac_t""no" 1>&6
6316fi
6317
6318
6319# Extract the first word of "ar", so it can be a program name with args.
6320set dummy ar; ac_word=$2
6321echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7e99ad86 6322echo "configure:6323: checking for $ac_word" >&5
10f2d63a
VZ
6323if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6324 echo $ac_n "(cached) $ac_c" 1>&6
6325else
6326 if test -n "$AR"; then
6327 ac_cv_prog_AR="$AR" # Let the user override the test.
6328else
6329 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6330 ac_dummy="$PATH"
6331 for ac_dir in $ac_dummy; do
6332 test -z "$ac_dir" && ac_dir=.
6333 if test -f $ac_dir/$ac_word; then
6334 ac_cv_prog_AR="ar"
6335 break
6336 fi
6337 done
6338 IFS="$ac_save_ifs"
6339 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6340fi
6341fi
6342AR="$ac_cv_prog_AR"
6343if test -n "$AR"; then
6344 echo "$ac_t""$AR" 1>&6
6345else
6346 echo "$ac_t""no" 1>&6
6347fi
6348
6349
7e99ad86
VZ
6350ac_aux_dir=
6351for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
6352 if test -f $ac_dir/install-sh; then
6353 ac_aux_dir=$ac_dir
6354 ac_install_sh="$ac_aux_dir/install-sh -c"
6355 break
6356 elif test -f $ac_dir/install.sh; then
6357 ac_aux_dir=$ac_dir
6358 ac_install_sh="$ac_aux_dir/install.sh -c"
6359 break
6360 fi
6361done
6362if test -z "$ac_aux_dir"; then
6363 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
6364fi
6365ac_config_guess=$ac_aux_dir/config.guess
6366ac_config_sub=$ac_aux_dir/config.sub
6367ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
6368
10f2d63a
VZ
6369# Find a good install program. We prefer a C program (faster),
6370# so one script is as good as another. But avoid the broken or
6371# incompatible versions:
6372# SysV /etc/install, /usr/sbin/install
6373# SunOS /usr/etc/install
6374# IRIX /sbin/install
6375# AIX /bin/install
6376# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6377# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6378# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6379# ./install, which can be erroneously created by make from ./install.sh.
6380echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
7e99ad86 6381echo "configure:6382: checking for a BSD compatible install" >&5
10f2d63a
VZ
6382if test -z "$INSTALL"; then
6383if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6384 echo $ac_n "(cached) $ac_c" 1>&6
6385else
6386 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6387 for ac_dir in $PATH; do
6388 # Account for people who put trailing slashes in PATH elements.
6389 case "$ac_dir/" in
6390 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6391 *)
6392 # OSF1 and SCO ODT 3.0 have their own names for install.
6393 # Don't use installbsd from OSF since it installs stuff as root
6394 # by default.
6395 for ac_prog in ginstall scoinst install; do
6396 if test -f $ac_dir/$ac_prog; then
6397 if test $ac_prog = install &&
6398 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6399 # AIX install. It has an incompatible calling convention.
6400 :
6401 else
6402 ac_cv_path_install="$ac_dir/$ac_prog -c"
6403 break 2
6404 fi
6405 fi
6406 done
6407 ;;
6408 esac
6409 done
6410 IFS="$ac_save_IFS"
6411
6412fi
6413 if test "${ac_cv_path_install+set}" = set; then
6414 INSTALL="$ac_cv_path_install"
6415 else
6416 # As a last resort, use the slow shell script. We don't cache a
6417 # path for INSTALL within a source directory, because that will
6418 # break other packages using the cache if that directory is
6419 # removed, or if the path is relative.
6420 INSTALL="$ac_install_sh"
6421 fi
6422fi
6423echo "$ac_t""$INSTALL" 1>&6
6424
6425# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6426# It thinks the first close brace ends the variable substitution.
6427test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6428
6429test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6430
6431test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6432
6433
6434# Extract the first word of "strip", so it can be a program name with args.
6435set dummy strip; ac_word=$2
6436echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7e99ad86 6437echo "configure:6438: checking for $ac_word" >&5
10f2d63a
VZ
6438if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6439 echo $ac_n "(cached) $ac_c" 1>&6
6440else
6441 if test -n "$STRIP"; then
6442 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6443else
6444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6445 ac_dummy="$PATH"
6446 for ac_dir in $ac_dummy; do
6447 test -z "$ac_dir" && ac_dir=.
6448 if test -f $ac_dir/$ac_word; then
6449 ac_cv_prog_STRIP="strip"
6450 break
6451 fi
6452 done
6453 IFS="$ac_save_ifs"
6454 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6455fi
6456fi
6457STRIP="$ac_cv_prog_STRIP"
6458if test -n "$STRIP"; then
6459 echo "$ac_t""$STRIP" 1>&6
6460else
6461 echo "$ac_t""no" 1>&6
6462fi
6463
6464
6465echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
7e99ad86 6466echo "configure:6467: checking "make for VPATH support"" >&5
10f2d63a
VZ
6467cat - << EOF > confMake
6468check : file
6469 cp \$? \$@
6470 cp \$? final_file
6471EOF
6472
6473if test ! -d sub ; then
6474 mkdir sub
6475fi
6476echo dummy > sub/file
6477${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6478RESULT=$?
6479rm -f sub/file check final_file confMake
6480rmdir sub
6481if test "$RESULT" = 0; then
6482 echo "$ac_t""yes" 1>&6
6483else
6484 echo "$ac_t""no" 1>&6
6485 { echo "configure: error: You need a make-utility that is able to use the variable
6486VPATH correctly.
6487If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6488fi
6489
6490for ac_prog in 'bison -y' byacc
6491do
6492# Extract the first word of "$ac_prog", so it can be a program name with args.
6493set dummy $ac_prog; ac_word=$2
6494echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7e99ad86 6495echo "configure:6496: checking for $ac_word" >&5
10f2d63a
VZ
6496if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6497 echo $ac_n "(cached) $ac_c" 1>&6
6498else
6499 if test -n "$YACC"; then
6500 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6501else
6502 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6503 ac_dummy="$PATH"
6504 for ac_dir in $ac_dummy; do
6505 test -z "$ac_dir" && ac_dir=.
6506 if test -f $ac_dir/$ac_word; then
6507 ac_cv_prog_YACC="$ac_prog"
6508 break
6509 fi
6510 done
6511 IFS="$ac_save_ifs"
6512fi
6513fi
6514YACC="$ac_cv_prog_YACC"
6515if test -n "$YACC"; then
6516 echo "$ac_t""$YACC" 1>&6
6517else
6518 echo "$ac_t""no" 1>&6
6519fi
6520
6521test -n "$YACC" && break
6522done
6523test -n "$YACC" || YACC="yacc"
6524
6525
6526# Extract the first word of "flex", so it can be a program name with args.
6527set dummy flex; ac_word=$2
6528echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7e99ad86 6529echo "configure:6530: checking for $ac_word" >&5
10f2d63a
VZ
6530if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6531 echo $ac_n "(cached) $ac_c" 1>&6
6532else
6533 if test -n "$LEX"; then
6534 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6535else
6536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6537 ac_dummy="$PATH"
6538 for ac_dir in $ac_dummy; do
6539 test -z "$ac_dir" && ac_dir=.
6540 if test -f $ac_dir/$ac_word; then
6541 ac_cv_prog_LEX="flex"
6542 break
6543 fi
6544 done
6545 IFS="$ac_save_ifs"
6546 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6547fi
6548fi
6549LEX="$ac_cv_prog_LEX"
6550if test -n "$LEX"; then
6551 echo "$ac_t""$LEX" 1>&6
6552else
6553 echo "$ac_t""no" 1>&6
6554fi
6555
6556if test -z "$LEXLIB"
6557then
6558 case "$LEX" in
6559 flex*) ac_lib=fl ;;
6560 *) ac_lib=l ;;
6561 esac
6562 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
7e99ad86 6563echo "configure:6564: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
6564ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6565if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6566 echo $ac_n "(cached) $ac_c" 1>&6
6567else
6568 ac_save_LIBS="$LIBS"
6569LIBS="-l$ac_lib $LIBS"
6570cat > conftest.$ac_ext <<EOF
7e99ad86 6571#line 6572 "configure"
10f2d63a
VZ
6572#include "confdefs.h"
6573/* Override any gcc2 internal prototype to avoid an error. */
6574/* We use char because int might match the return type of a gcc2
6575 builtin and then its argument prototype would still apply. */
6576char yywrap();
6577
6578int main() {
6579yywrap()
6580; return 0; }
6581EOF
7e99ad86 6582if { (eval echo configure:6583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6583 rm -rf conftest*
6584 eval "ac_cv_lib_$ac_lib_var=yes"
6585else
6586 echo "configure: failed program was:" >&5
6587 cat conftest.$ac_ext >&5
6588 rm -rf conftest*
6589 eval "ac_cv_lib_$ac_lib_var=no"
6590fi
6591rm -f conftest*
6592LIBS="$ac_save_LIBS"
6593
6594fi
6595if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6596 echo "$ac_t""yes" 1>&6
6597 LEXLIB="-l$ac_lib"
6598else
6599 echo "$ac_t""no" 1>&6
6600fi
6601
6602fi
6603
6604
6605echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7e99ad86 6606echo "configure:6607: checking whether ln -s works" >&5
10f2d63a
VZ
6607if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6608 echo $ac_n "(cached) $ac_c" 1>&6
6609else
6610 rm -f conftestdata
6611if ln -s X conftestdata 2>/dev/null
6612then
6613 rm -f conftestdata
6614 ac_cv_prog_LN_S="ln -s"
6615else
6616 ac_cv_prog_LN_S=ln
6617fi
6618fi
6619LN_S="$ac_cv_prog_LN_S"
6620if test "$ac_cv_prog_LN_S" = "ln -s"; then
6621 echo "$ac_t""yes" 1>&6
6622else
6623 echo "$ac_t""no" 1>&6
6624fi
6625
6626
6627
6628SEARCH_INCLUDE="\
6629 /usr/local/include \
6630 \
6631 /usr/Motif-1.2/include \
6632 /usr/Motif-2.1/include \
6633 \
6634 /usr/include/Motif1.2 \
6635 /opt/xpm/include/X11 \
6636 /opt/GBxpm/include/ \
6637 /opt/GBxpm/X11/include/ \
6638 \
6639 /usr/Motif1.2/include \
6640 /usr/dt/include \
afc31813
VZ
6641 /usr/openwin/include \
6642 \
10f2d63a
VZ
6643 /usr/include/Xm \
6644 \
6645 /usr/X11R6/include \
afc31813 6646 /usr/X11R6.4/include \
10f2d63a
VZ
6647 /usr/X11R5/include \
6648 /usr/X11R4/include \
6649 \
10f2d63a
VZ
6650 /usr/include/X11R6 \
6651 /usr/include/X11R5 \
6652 /usr/include/X11R4 \
6653 \
6654 /usr/local/X11R6/include \
6655 /usr/local/X11R5/include \
6656 /usr/local/X11R4/include \
6657 \
6658 /usr/local/include/X11R6 \
6659 /usr/local/include/X11R5 \
6660 /usr/local/include/X11R4 \
6661 \
6662 /usr/X11/include \
6663 /usr/include/X11 \
6664 /usr/local/X11/include \
6665 /usr/local/include/X11 \
6666 \
6667 /usr/X386/include \
6668 /usr/x386/include \
6669 /usr/XFree86/include/X11 \
6670 \
cf27ef00 6671 X:/XFree86/include \
ec14dd32
VZ
6672 X:/XFree86/include/X11 \
6673 \
10f2d63a
VZ
6674 /usr/include/gtk \
6675 /usr/local/include/gtk \
6676 /usr/include/glib \
6677 /usr/local/include/glib \
6678 \
6679 /usr/include/qt \
6680 /usr/local/include/qt \
6681 \
6682 /usr/include/windows \
6683 /usr/include/wine \
6684 /usr/local/include/wine \
6685 \
6686 /usr/unsupported/include \
6687 /usr/athena/include \
6688 /usr/local/x11r5/include \
6689 /usr/lpp/Xamples/include \
6690 \
10f2d63a 6691 /usr/openwin/share/include \
928b5c08
VZ
6692 \
6693 /usr/include"
10f2d63a
VZ
6694
6695SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6696
6697
6698cat > confcache <<\EOF
6699# This file is a shell script that caches the results of configure
6700# tests run on this system so they can be shared between configure
6701# scripts and configure runs. It is not useful on other systems.
6702# If it contains results you don't want to keep, you may remove or edit it.
6703#
6704# By default, configure uses ./config.cache as the cache file,
6705# creating it if it does not exist already. You can give configure
6706# the --cache-file=FILE option to use a different cache file; that is
6707# what configure does when it calls configure scripts in
6708# subdirectories, so they share the cache.
6709# Giving --cache-file=/dev/null disables caching, for debugging configure.
6710# config.status only pays attention to the cache file if you give it the
6711# --recheck option to rerun configure.
6712#
6713EOF
6714# The following way of writing the cache mishandles newlines in values,
6715# but we know of no workaround that is simple, portable, and efficient.
6716# So, don't put newlines in cache variables' values.
6717# Ultrix sh set writes to stderr and can't be redirected directly,
6718# and sets the high bit in the cache file unless we assign to the vars.
6719(set) 2>&1 |
6720 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6721 *ac_space=\ *)
6722 # `set' does not quote correctly, so add quotes (double-quote substitution
6723 # turns \\\\ into \\, and sed turns \\ into \).
6724 sed -n \
6725 -e "s/'/'\\\\''/g" \
6726 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6727 ;;
6728 *)
6729 # `set' quotes correctly as required by POSIX, so do not add quotes.
6730 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6731 ;;
6732 esac >> confcache
6733if cmp -s $cache_file confcache; then
6734 :
6735else
6736 if test -w $cache_file; then
6737 echo "updating cache $cache_file"
6738 cat confcache > $cache_file
6739 else
6740 echo "not updating unwritable cache $cache_file"
6741 fi
6742fi
6743rm -f confcache
6744
6745
6746
dad6c0ea
VZ
6747AFMINSTALL=
6748
10f2d63a
VZ
6749if test "$wxUSE_GUI" = "yes"; then
6750
dad6c0ea
VZ
6751USE_GUI=1
6752
10f2d63a
VZ
6753TOOLKIT=
6754TOOLKIT_INCLUDE=
6755
6756GUIOBJS=
6757COMMONOBJS=
6758GENERICOBJS=
6759
6760GUI_TK_LIBRARY=
6761GUI_TK_LINK=
6762
6763WXGTK12=
13111b2a 6764WXGTK13=
10f2d63a
VZ
6765
6766WXWINE=
6767
10f2d63a
VZ
6768if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
6769 if test "$cross_compiling" = "yes" ; then
6770 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
6771 else
6772 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
7e99ad86 6773echo "configure:6774: checking for Windows headers" >&5
10f2d63a
VZ
6774
6775ac_find_includes=
6776for ac_dir in $SEARCH_INCLUDE;
6777 do
6778 if test -f "$ac_dir/windows.h"; then
6779 ac_find_includes=$ac_dir
6780 break
6781 fi
6782 done
6783
6784 if test "$ac_find_includes" != "" ; then
6785 echo "$ac_t""found $ac_find_includes" 1>&6
6786 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6787 else
6788 echo "$ac_t""no" 1>&6
6789 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6790 fi
6791 fi
6792
6793 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
6794 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
6795
6796 if test "$wxUSE_MINGW" = 1; then
6797 LDFLAGS="$LDFLAGS -mwindows"
6798 fi
6799
6800 TOOLKIT=MSW
6801
6802 GUIOBJS="\$(MSW_GUIOBJS)"
6803 GUIHEADERS="\$(MSW_HEADERS)"
6804 COMMONOBJS="\$(MSW_COMMONOBJS)"
6805 GENERICOBJS="\$(MSW_GENERICOBJS)"
6806 UNIXOBJS=
6807 GUIDIST=MSW_DIST
10f2d63a
VZ
6808fi
6809
6810if test "$wxUSE_GTK" = 1; then
6811
6812 if test x$gtk_config_exec_prefix != x ; then
6813 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6814 if test x${GTK_CONFIG+set} != xset ; then
6815 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6816 fi
6817 fi
6818 if test x$gtk_config_prefix != x ; then
6819 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6820 if test x${GTK_CONFIG+set} != xset ; then
6821 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6822 fi
6823 fi
6824
6825 # Extract the first word of "gtk-config", so it can be a program name with args.
6826set dummy gtk-config; ac_word=$2
6827echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7e99ad86 6828echo "configure:6829: checking for $ac_word" >&5
10f2d63a
VZ
6829if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6830 echo $ac_n "(cached) $ac_c" 1>&6
6831else
6832 case "$GTK_CONFIG" in
6833 /*)
6834 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6835 ;;
6836 ?:/*)
6837 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
6838 ;;
6839 *)
6840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6841 ac_dummy="$PATH"
6842 for ac_dir in $ac_dummy; do
6843 test -z "$ac_dir" && ac_dir=.
6844 if test -f $ac_dir/$ac_word; then
6845 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6846 break
6847 fi
6848 done
6849 IFS="$ac_save_ifs"
6850 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6851 ;;
6852esac
6853fi
6854GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6855if test -n "$GTK_CONFIG"; then
6856 echo "$ac_t""$GTK_CONFIG" 1>&6
6857else
6858 echo "$ac_t""no" 1>&6
6859fi
6860
04165bec 6861 min_gtk_version=1.2.3
10f2d63a 6862 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7e99ad86 6863echo "configure:6864: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
6864 no_gtk=""
6865 if test "$GTK_CONFIG" != "no" ; then
6866 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 6867 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
6868 ac_save_CFLAGS="$CFLAGS"
6869 ac_save_LIBS="$LIBS"
6870 CFLAGS="$CFLAGS $GTK_CFLAGS"
6871 LIBS="$LIBS $GTK_LIBS"
6872 if test "$cross_compiling" = yes; then
6873 echo $ac_n "cross compiling; assumed OK... $ac_c"
6874else
6875 cat > conftest.$ac_ext <<EOF
7e99ad86 6876#line 6877 "configure"
10f2d63a
VZ
6877#include "confdefs.h"
6878
6879#include <gtk/gtk.h>
f49f2b0c 6880#include <gtk/gtkfeatures.h>
10f2d63a
VZ
6881#include <stdio.h>
6882
6883int
6884main ()
6885{
6886 int major, minor, micro;
6887
6888 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
6889 printf("%s, bad version string\n", "$min_gtk_version");
6890 exit(1);
6891 }
6892
f49f2b0c
RR
6893 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
6894 (GTK_MINOR_VERSION != gtk_minor_version) ||
6895 (GTK_MICRO_VERSION != gtk_micro_version)) {
6896 printf("Headers vs. library version mismatch!\n");
6897 exit(1);
6898 }
6899
10f2d63a
VZ
6900 if (gtk_minor_version == 1) return FALSE;
6901
6902 return !((gtk_major_version > major) ||
6903 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6904 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
6905}
6906
6907EOF
7e99ad86 6908if { (eval echo configure:6909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
6909then
6910 :
6911else
6912 echo "configure: failed program was:" >&5
6913 cat conftest.$ac_ext >&5
6914 rm -fr conftest*
6915 no_gtk=yes
6916fi
6917rm -fr conftest*
6918fi
6919
6920 CFLAGS="$ac_save_CFLAGS"
6921 LIBS="$ac_save_LIBS"
6922 else
6923 no_gtk=yes
6924 fi
6925 if test "x$no_gtk" = x ; then
6926 echo "$ac_t""yes" 1>&6
6927 WXGTK12=1
6928 else
6929 echo "$ac_t""no" 1>&6
6930 GTK_CFLAGS=""
6931 GTK_LIBS=""
7e99ad86 6932 :
10f2d63a
VZ
6933 fi
6934
6935
6936
6937
7e99ad86
VZ
6938 if test "$WXGTK12" != 1; then
6939 { echo "configure: error:
6940 Please check that gtk-config is in path, the directory
6941 where GTK+ libraries are installed (returned by
6942 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
6943 equivalent variable and GTK+ is version 1.2.3 or above.
6944 " 1>&2; exit 1; }
6945 fi
6946
6947
10f2d63a 6948 TOOLKIT_INCLUDE="$GTK_CFLAGS"
2224580a
VZ
6949
6950
6951 GUI_TK_LIBRARY="$GTK_LIBS"
6952
10f2d63a
VZ
6953 TOOLKIT=GTK
6954
dad6c0ea
VZ
6955 AFMINSTALL=afminstall
6956
10f2d63a
VZ
6957 GUIOBJS="\$(GTK_GUIOBJS)"
6958 GUIHEADERS="\$(GTK_HEADERS)"
6959 COMMONOBJS="\$(GTK_COMMONOBJS)"
6960 GENERICOBJS="\$(GTK_GENERICOBJS)"
6961 GUIDEPS="\$(GTK_GUIDEPS)"
6962 COMMONDEPS="\$(GTK_COMMONDEPS)"
6963 GENERICDEPS="\$(GTK_GENERICDEPS)"
6964 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 6965 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a 6966 GUIDIST=GTK_DIST
7ec2881a 6967
2224580a 6968 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
7e99ad86 6969echo "configure:6970: checking for gdk_im_open in -lgdk" >&5
7ec2881a
RR
6970ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
6971if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6972 echo $ac_n "(cached) $ac_c" 1>&6
6973else
6974 ac_save_LIBS="$LIBS"
6975LIBS="-lgdk $LIBS"
6976cat > conftest.$ac_ext <<EOF
7e99ad86 6977#line 6978 "configure"
7ec2881a
RR
6978#include "confdefs.h"
6979/* Override any gcc2 internal prototype to avoid an error. */
6980/* We use char because int might match the return type of a gcc2
6981 builtin and then its argument prototype would still apply. */
6982char gdk_im_open();
6983
6984int main() {
6985gdk_im_open()
6986; return 0; }
6987EOF
7e99ad86 6988if { (eval echo configure:6989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7ec2881a
RR
6989 rm -rf conftest*
6990 eval "ac_cv_lib_$ac_lib_var=yes"
6991else
6992 echo "configure: failed program was:" >&5
6993 cat conftest.$ac_ext >&5
6994 rm -rf conftest*
6995 eval "ac_cv_lib_$ac_lib_var=no"
6996fi
6997rm -f conftest*
6998LIBS="$ac_save_LIBS"
6999
7000fi
7001if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7002 echo "$ac_t""yes" 1>&6
7003 cat >> confdefs.h <<\EOF
7004#define HAVE_XIM 1
7005EOF
7006
7007else
7008 echo "$ac_t""no" 1>&6
7009fi
7010
10f2d63a
VZ
7011fi
7012
7013if test "$wxUSE_WINE" = 1; then
7014 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
7e99ad86 7015echo "configure:7016: checking for WINE includes" >&5
10f2d63a
VZ
7016
7017ac_find_includes=
7018for ac_dir in $SEARCH_INCLUDE;
7019 do
7020 if test -f "$ac_dir/windows.h"; then
7021 ac_find_includes=$ac_dir
7022 break
7023 fi
7024 done
7025
7026 if test "$ac_find_includes" != "" ; then
7027 echo "$ac_t""found $ac_find_includes" 1>&6
7028 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
7029 else
7030 echo "$ac_t""no" 1>&6
7031 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
7032 fi
7033
7034 XPM_LINK=""
7035 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
7e99ad86 7036echo "configure:7037: checking for Xpm library" >&5
10f2d63a
VZ
7037
7038ac_find_libraries=
7039for ac_dir in $SEARCH_LIB;
7040 do
7041 for ac_extension in a so sl; do
7042 if test -f "$ac_dir/libXpm.$ac_extension"; then
7043 ac_find_libraries=$ac_dir
7044 break 2
7045 fi
7046 done
7047 done
7048
7049 if test "$ac_find_libraries" != "" ; then
7050 GUI_TK_LIBRARY="-L$ac_find_libraries"
7051 XPM_LINK="-lXpm"
7052 cat >> confdefs.h <<\EOF
7053#define wxHAVE_LIB_XPM 1
7054EOF
7055
7056 echo "$ac_t""found at $ac_find_libraries" 1>&6
7057 else
7058 echo "$ac_t""no" 1>&6
7059 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7060 fi
7061
7062 MESA_LINK=""
7063 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
7e99ad86 7064echo "configure:7065: checking for Mesa library" >&5
10f2d63a
VZ
7065
7066ac_find_libraries=
7067for ac_dir in $SEARCH_LIB;
7068 do
7069 for ac_extension in a so sl; do
7070 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7071 ac_find_libraries=$ac_dir
7072 break 2
7073 fi
7074 done
7075 done
7076
7077 if test "$ac_find_libraries" != "" ; then
7078 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7079 MESA_LINK="-lMesaGL"
7080 echo "$ac_t""found at $ac_find_libraries" 1>&6
7081 else
7082 { echo "configure: error: no" 1>&2; exit 1; }
7083 fi
7084
7085 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
7086 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7087 WXWINE=1
7088 TOOLKIT=MSW
7089
7090 GUIHEADERS="\$(MSW_HEADERS)"
7091 GUIOBJS="\$(MSW_GUIOBJS)"
7092 COMMONOBJS="\$(MSW_COMMONOBJS)"
7093 GENERICOBJS="\$(MSW_GENERICOBJS)"
7094 GUIDEPS="\$(MSW_GUIDEPS)"
7095 COMMONDEPS="\$(MSW_COMMONDEPS)"
7096 GENERICDEPS="\$(MSW_GENERICDEPS)"
7097 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 7098 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
7099 GUIDIST=MSW_DIST
7100fi
7101
7102if test "$wxUSE_MOTIF" = 1; then
ab9b9eab
VZ
7103 # If we find X, set shell vars x_includes and x_libraries to the
7104# paths, otherwise set no_x=yes.
7105# Uses ac_ vars as temps to allow command line to override cache and checks.
7106# --without-x overrides everything else, but does not touch the cache.
7107echo $ac_n "checking for X""... $ac_c" 1>&6
7e99ad86 7108echo "configure:7109: checking for X" >&5
ab9b9eab
VZ
7109
7110# Check whether --with-x or --without-x was given.
7111if test "${with_x+set}" = set; then
7112 withval="$with_x"
7113 :
7114fi
ba337fe7 7115
ab9b9eab
VZ
7116# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7117if test "x$with_x" = xno; then
7118 # The user explicitly disabled X.
7119 have_x=disabled
7120else
7121 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7122 # Both variables are already set.
7123 have_x=yes
7124 else
7125if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7126 echo $ac_n "(cached) $ac_c" 1>&6
7127else
7128 # One or both of the vars are not set, and there is no cached value.
7129ac_x_includes=NO ac_x_libraries=NO
7130rm -fr conftestdir
7131if mkdir conftestdir; then
7132 cd conftestdir
7133 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7134 cat > Imakefile <<'EOF'
7135acfindx:
7136 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7137EOF
7138 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7139 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7140 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7141 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 7142 for ac_extension in a so sl; do
ab9b9eab
VZ
7143 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7144 test -f $ac_im_libdir/libX11.$ac_extension; then
7145 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
7146 fi
7147 done
ab9b9eab
VZ
7148 # Screen out bogus values from the imake configuration. They are
7149 # bogus both because they are the default anyway, and because
7150 # using them would break gcc on systems where it needs fixed includes.
7151 case "$ac_im_incroot" in
7152 /usr/include) ;;
7153 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7154 esac
7155 case "$ac_im_usrlibdir" in
7156 /usr/lib | /lib) ;;
7157 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7158 esac
ba337fe7 7159 fi
ab9b9eab
VZ
7160 cd ..
7161 rm -fr conftestdir
7162fi
10f2d63a 7163
ab9b9eab
VZ
7164if test "$ac_x_includes" = NO; then
7165 # Guess where to find include files, by looking for this one X11 .h file.
7166 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
ba337fe7 7167
ab9b9eab
VZ
7168 # First, try using that file with no special directory specified.
7169cat > conftest.$ac_ext <<EOF
7e99ad86 7170#line 7171 "configure"
ab9b9eab
VZ
7171#include "confdefs.h"
7172#include <$x_direct_test_include>
7173EOF
7174ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7e99ad86 7175{ (eval echo configure:7176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ab9b9eab
VZ
7176ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7177if test -z "$ac_err"; then
7178 rm -rf conftest*
7179 # We can compile using X headers with no special include directory.
7180ac_x_includes=
7181else
7182 echo "$ac_err" >&5
7183 echo "configure: failed program was:" >&5
7184 cat conftest.$ac_ext >&5
7185 rm -rf conftest*
7186 # Look for the header file in a standard set of common directories.
7187# Check X11 before X11Rn because it is often a symlink to the current release.
7188 for ac_dir in \
7189 /usr/X11/include \
7190 /usr/X11R6/include \
7191 /usr/X11R5/include \
7192 /usr/X11R4/include \
7193 \
7194 /usr/include/X11 \
7195 /usr/include/X11R6 \
7196 /usr/include/X11R5 \
7197 /usr/include/X11R4 \
7198 \
7199 /usr/local/X11/include \
7200 /usr/local/X11R6/include \
7201 /usr/local/X11R5/include \
7202 /usr/local/X11R4/include \
7203 \
7204 /usr/local/include/X11 \
7205 /usr/local/include/X11R6 \
7206 /usr/local/include/X11R5 \
7207 /usr/local/include/X11R4 \
7208 \
7209 /usr/X386/include \
7210 /usr/x386/include \
7211 /usr/XFree86/include/X11 \
7212 \
7213 /usr/include \
7214 /usr/local/include \
7215 /usr/unsupported/include \
7216 /usr/athena/include \
7217 /usr/local/x11r5/include \
7218 /usr/lpp/Xamples/include \
7219 \
7220 /usr/openwin/include \
7221 /usr/openwin/share/include \
7222 ; \
10f2d63a 7223 do
ab9b9eab
VZ
7224 if test -r "$ac_dir/$x_direct_test_include"; then
7225 ac_x_includes=$ac_dir
10f2d63a
VZ
7226 break
7227 fi
7228 done
ab9b9eab
VZ
7229fi
7230rm -f conftest*
7231fi # $ac_x_includes = NO
10f2d63a 7232
ab9b9eab
VZ
7233if test "$ac_x_libraries" = NO; then
7234 # Check for the libraries.
10f2d63a 7235
ab9b9eab
VZ
7236 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7237 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10f2d63a 7238
ab9b9eab
VZ
7239 # See if we find them without any special options.
7240 # Don't add to $LIBS permanently.
7241 ac_save_LIBS="$LIBS"
7242 LIBS="-l$x_direct_test_library $LIBS"
7243cat > conftest.$ac_ext <<EOF
7e99ad86 7244#line 7245 "configure"
ab9b9eab 7245#include "confdefs.h"
10f2d63a 7246
ab9b9eab
VZ
7247int main() {
7248${x_direct_test_function}()
7249; return 0; }
7250EOF
7e99ad86 7251if { (eval echo configure:7252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7252 rm -rf conftest*
7253 LIBS="$ac_save_LIBS"
7254# We can link X programs with no special library path.
7255ac_x_libraries=
7256else
7257 echo "configure: failed program was:" >&5
7258 cat conftest.$ac_ext >&5
7259 rm -rf conftest*
7260 LIBS="$ac_save_LIBS"
7261# First see if replacing the include by lib works.
7262# Check X11 before X11Rn because it is often a symlink to the current release.
7263for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7264 /usr/X11/lib \
7265 /usr/X11R6/lib \
7266 /usr/X11R5/lib \
7267 /usr/X11R4/lib \
7268 \
7269 /usr/lib/X11 \
7270 /usr/lib/X11R6 \
7271 /usr/lib/X11R5 \
7272 /usr/lib/X11R4 \
7273 \
7274 /usr/local/X11/lib \
7275 /usr/local/X11R6/lib \
7276 /usr/local/X11R5/lib \
7277 /usr/local/X11R4/lib \
7278 \
7279 /usr/local/lib/X11 \
7280 /usr/local/lib/X11R6 \
7281 /usr/local/lib/X11R5 \
7282 /usr/local/lib/X11R4 \
7283 \
7284 /usr/X386/lib \
7285 /usr/x386/lib \
7286 /usr/XFree86/lib/X11 \
7287 \
7288 /usr/lib \
7289 /usr/local/lib \
7290 /usr/unsupported/lib \
7291 /usr/athena/lib \
7292 /usr/local/x11r5/lib \
7293 /usr/lpp/Xamples/lib \
7294 /lib/usr/lib/X11 \
7295 \
7296 /usr/openwin/lib \
7297 /usr/openwin/share/lib \
7298 ; \
7299do
7300 for ac_extension in a so sl; do
7301 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7302 ac_x_libraries=$ac_dir
7303 break 2
10f2d63a 7304 fi
10f2d63a 7305 done
ab9b9eab
VZ
7306done
7307fi
7308rm -f conftest*
7309fi # $ac_x_libraries = NO
10f2d63a 7310
ab9b9eab
VZ
7311if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7312 # Didn't find X anywhere. Cache the known absence of X.
7313 ac_cv_have_x="have_x=no"
7314else
7315 # Record where we found X for the cache.
7316 ac_cv_have_x="have_x=yes \
7317 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7318fi
7319fi
10f2d63a 7320 fi
ab9b9eab
VZ
7321 eval "$ac_cv_have_x"
7322fi # $with_x != no
10f2d63a 7323
ab9b9eab
VZ
7324if test "$have_x" != yes; then
7325 echo "$ac_t""$have_x" 1>&6
7326 no_x=yes
7327else
7328 # If each of the values was on the command line, it overrides each guess.
7329 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7330 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7331 # Update the cache value to reflect the command line values.
7332 ac_cv_have_x="have_x=yes \
7333 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7334 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7335fi
10f2d63a 7336
ab9b9eab
VZ
7337if test "$no_x" = yes; then
7338 # Not all programs may use this symbol, but it does not hurt to define it.
7339 cat >> confdefs.h <<\EOF
7340#define X_DISPLAY_MISSING 1
7341EOF
10f2d63a 7342
ab9b9eab
VZ
7343 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7344else
7345 if test -n "$x_includes"; then
7346 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
7347 fi
7348
ab9b9eab
VZ
7349 # It would also be nice to do this for all -L options, not just this one.
7350 if test -n "$x_libraries"; then
7351 X_LIBS="$X_LIBS -L$x_libraries"
7352 # For Solaris; some versions of Sun CC require a space after -R and
7353 # others require no space. Words are not sufficient . . . .
7354 case "`(uname -sr) 2>/dev/null`" in
7355 "SunOS 5"*)
7356 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
7e99ad86 7357echo "configure:7358: checking whether -R must be followed by a space" >&5
ab9b9eab
VZ
7358 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7359 cat > conftest.$ac_ext <<EOF
7e99ad86 7360#line 7361 "configure"
ab9b9eab 7361#include "confdefs.h"
10f2d63a 7362
ab9b9eab 7363int main() {
788deba1 7364
ab9b9eab
VZ
7365; return 0; }
7366EOF
7e99ad86 7367if { (eval echo configure:7368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7368 rm -rf conftest*
7369 ac_R_nospace=yes
7370else
7371 echo "configure: failed program was:" >&5
7372 cat conftest.$ac_ext >&5
7373 rm -rf conftest*
7374 ac_R_nospace=no
7375fi
7376rm -f conftest*
7377 if test $ac_R_nospace = yes; then
7378 echo "$ac_t""no" 1>&6
7379 X_LIBS="$X_LIBS -R$x_libraries"
7380 else
7381 LIBS="$ac_xsave_LIBS -R $x_libraries"
7382 cat > conftest.$ac_ext <<EOF
7e99ad86 7383#line 7384 "configure"
ab9b9eab 7384#include "confdefs.h"
788deba1 7385
ab9b9eab
VZ
7386int main() {
7387
7388; return 0; }
7389EOF
7e99ad86 7390if { (eval echo configure:7391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7391 rm -rf conftest*
7392 ac_R_space=yes
7393else
7394 echo "configure: failed program was:" >&5
7395 cat conftest.$ac_ext >&5
7396 rm -rf conftest*
7397 ac_R_space=no
7398fi
7399rm -f conftest*
7400 if test $ac_R_space = yes; then
7401 echo "$ac_t""yes" 1>&6
7402 X_LIBS="$X_LIBS -R $x_libraries"
7403 else
7404 echo "$ac_t""neither works" 1>&6
7405 fi
7406 fi
7407 LIBS="$ac_xsave_LIBS"
7408 esac
7409 fi
7410
7411 # Check for system-dependent libraries X programs must link with.
7412 # Do this before checking for the system-independent R6 libraries
7413 # (-lICE), since we may need -lsocket or whatever for X linking.
7414
7415 if test "$ISC" = yes; then
7416 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7417 else
7418 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7419 # libraries were built with DECnet support. And karl@cs.umb.edu says
7420 # the Alpha needs dnet_stub (dnet does not exist).
7421 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
7e99ad86 7422echo "configure:7423: checking for dnet_ntoa in -ldnet" >&5
ab9b9eab
VZ
7423ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7424if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7425 echo $ac_n "(cached) $ac_c" 1>&6
7426else
7427 ac_save_LIBS="$LIBS"
7428LIBS="-ldnet $LIBS"
7429cat > conftest.$ac_ext <<EOF
7e99ad86 7430#line 7431 "configure"
ab9b9eab
VZ
7431#include "confdefs.h"
7432/* Override any gcc2 internal prototype to avoid an error. */
7433/* We use char because int might match the return type of a gcc2
7434 builtin and then its argument prototype would still apply. */
7435char dnet_ntoa();
7436
7437int main() {
7438dnet_ntoa()
7439; return 0; }
7440EOF
7e99ad86 7441if { (eval echo configure:7442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7442 rm -rf conftest*
7443 eval "ac_cv_lib_$ac_lib_var=yes"
7444else
7445 echo "configure: failed program was:" >&5
7446 cat conftest.$ac_ext >&5
7447 rm -rf conftest*
7448 eval "ac_cv_lib_$ac_lib_var=no"
7449fi
7450rm -f conftest*
7451LIBS="$ac_save_LIBS"
7452
7453fi
7454if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7455 echo "$ac_t""yes" 1>&6
7456 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7457else
7458 echo "$ac_t""no" 1>&6
7459fi
7460
7461 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7462 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
7e99ad86 7463echo "configure:7464: checking for dnet_ntoa in -ldnet_stub" >&5
ab9b9eab
VZ
7464ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7465if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7466 echo $ac_n "(cached) $ac_c" 1>&6
7467else
7468 ac_save_LIBS="$LIBS"
7469LIBS="-ldnet_stub $LIBS"
7470cat > conftest.$ac_ext <<EOF
7e99ad86 7471#line 7472 "configure"
ab9b9eab
VZ
7472#include "confdefs.h"
7473/* Override any gcc2 internal prototype to avoid an error. */
7474/* We use char because int might match the return type of a gcc2
7475 builtin and then its argument prototype would still apply. */
7476char dnet_ntoa();
7477
7478int main() {
7479dnet_ntoa()
7480; return 0; }
7481EOF
7e99ad86 7482if { (eval echo configure:7483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7483 rm -rf conftest*
7484 eval "ac_cv_lib_$ac_lib_var=yes"
7485else
7486 echo "configure: failed program was:" >&5
7487 cat conftest.$ac_ext >&5
7488 rm -rf conftest*
7489 eval "ac_cv_lib_$ac_lib_var=no"
7490fi
7491rm -f conftest*
7492LIBS="$ac_save_LIBS"
7493
7494fi
7495if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7496 echo "$ac_t""yes" 1>&6
7497 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7498else
7499 echo "$ac_t""no" 1>&6
7500fi
7501
7502 fi
7503
7504 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7505 # to get the SysV transport functions.
7506 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7507 # needs -lnsl.
7508 # The nsl library prevents programs from opening the X display
7509 # on Irix 5.2, according to dickey@clark.net.
7510 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
7e99ad86 7511echo "configure:7512: checking for gethostbyname" >&5
ab9b9eab
VZ
7512if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7513 echo $ac_n "(cached) $ac_c" 1>&6
7514else
7515 cat > conftest.$ac_ext <<EOF
7e99ad86 7516#line 7517 "configure"
ab9b9eab
VZ
7517#include "confdefs.h"
7518/* System header to define __stub macros and hopefully few prototypes,
7519 which can conflict with char gethostbyname(); below. */
7520#include <assert.h>
7521/* Override any gcc2 internal prototype to avoid an error. */
7522/* We use char because int might match the return type of a gcc2
7523 builtin and then its argument prototype would still apply. */
7524char gethostbyname();
7525
7526int main() {
7527
7528/* The GNU C library defines this for functions which it implements
7529 to always fail with ENOSYS. Some functions are actually named
7530 something starting with __ and the normal name is an alias. */
7531#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7532choke me
7533#else
2224580a 7534gethostbyname();
ab9b9eab
VZ
7535#endif
7536
7537; return 0; }
7538EOF
7e99ad86 7539if { (eval echo configure:7540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7540 rm -rf conftest*
7541 eval "ac_cv_func_gethostbyname=yes"
7542else
7543 echo "configure: failed program was:" >&5
7544 cat conftest.$ac_ext >&5
7545 rm -rf conftest*
7546 eval "ac_cv_func_gethostbyname=no"
7547fi
7548rm -f conftest*
7549fi
7550
7551if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7552 echo "$ac_t""yes" 1>&6
7553 :
7554else
7555 echo "$ac_t""no" 1>&6
7556fi
7557
7558 if test $ac_cv_func_gethostbyname = no; then
7559 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
7e99ad86 7560echo "configure:7561: checking for gethostbyname in -lnsl" >&5
ab9b9eab
VZ
7561ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7562if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7563 echo $ac_n "(cached) $ac_c" 1>&6
7564else
7565 ac_save_LIBS="$LIBS"
7566LIBS="-lnsl $LIBS"
7567cat > conftest.$ac_ext <<EOF
7e99ad86 7568#line 7569 "configure"
ab9b9eab
VZ
7569#include "confdefs.h"
7570/* Override any gcc2 internal prototype to avoid an error. */
7571/* We use char because int might match the return type of a gcc2
7572 builtin and then its argument prototype would still apply. */
7573char gethostbyname();
7574
7575int main() {
7576gethostbyname()
7577; return 0; }
7578EOF
7e99ad86 7579if { (eval echo configure:7580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7580 rm -rf conftest*
7581 eval "ac_cv_lib_$ac_lib_var=yes"
7582else
7583 echo "configure: failed program was:" >&5
7584 cat conftest.$ac_ext >&5
7585 rm -rf conftest*
7586 eval "ac_cv_lib_$ac_lib_var=no"
7587fi
7588rm -f conftest*
7589LIBS="$ac_save_LIBS"
7590
7591fi
7592if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7593 echo "$ac_t""yes" 1>&6
7594 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7595else
7596 echo "$ac_t""no" 1>&6
7597fi
7598
7599 fi
7600
7601 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7602 # socket/setsockopt and other routines are undefined under SCO ODT
7603 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7604 # on later versions), says simon@lia.di.epfl.ch: it contains
7605 # gethostby* variants that don't use the nameserver (or something).
7606 # -lsocket must be given before -lnsl if both are needed.
7607 # We assume that if connect needs -lnsl, so does gethostbyname.
7608 echo $ac_n "checking for connect""... $ac_c" 1>&6
7e99ad86 7609echo "configure:7610: checking for connect" >&5
ab9b9eab
VZ
7610if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7611 echo $ac_n "(cached) $ac_c" 1>&6
7612else
7613 cat > conftest.$ac_ext <<EOF
7e99ad86 7614#line 7615 "configure"
ab9b9eab
VZ
7615#include "confdefs.h"
7616/* System header to define __stub macros and hopefully few prototypes,
7617 which can conflict with char connect(); below. */
7618#include <assert.h>
7619/* Override any gcc2 internal prototype to avoid an error. */
7620/* We use char because int might match the return type of a gcc2
7621 builtin and then its argument prototype would still apply. */
7622char connect();
7623
7624int main() {
7625
7626/* The GNU C library defines this for functions which it implements
7627 to always fail with ENOSYS. Some functions are actually named
7628 something starting with __ and the normal name is an alias. */
7629#if defined (__stub_connect) || defined (__stub___connect)
7630choke me
7631#else
2224580a 7632connect();
ab9b9eab
VZ
7633#endif
7634
7635; return 0; }
7636EOF
7e99ad86 7637if { (eval echo configure:7638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7638 rm -rf conftest*
7639 eval "ac_cv_func_connect=yes"
7640else
7641 echo "configure: failed program was:" >&5
7642 cat conftest.$ac_ext >&5
7643 rm -rf conftest*
7644 eval "ac_cv_func_connect=no"
7645fi
7646rm -f conftest*
7647fi
7648
7649if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7650 echo "$ac_t""yes" 1>&6
7651 :
7652else
7653 echo "$ac_t""no" 1>&6
7654fi
7655
7656 if test $ac_cv_func_connect = no; then
7657 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
7e99ad86 7658echo "configure:7659: checking for connect in -lsocket" >&5
ab9b9eab
VZ
7659ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7660if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7661 echo $ac_n "(cached) $ac_c" 1>&6
7662else
7663 ac_save_LIBS="$LIBS"
7664LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7665cat > conftest.$ac_ext <<EOF
7e99ad86 7666#line 7667 "configure"
ab9b9eab
VZ
7667#include "confdefs.h"
7668/* Override any gcc2 internal prototype to avoid an error. */
7669/* We use char because int might match the return type of a gcc2
7670 builtin and then its argument prototype would still apply. */
7671char connect();
7672
7673int main() {
7674connect()
7675; return 0; }
7676EOF
7e99ad86 7677if { (eval echo configure:7678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7678 rm -rf conftest*
7679 eval "ac_cv_lib_$ac_lib_var=yes"
7680else
7681 echo "configure: failed program was:" >&5
7682 cat conftest.$ac_ext >&5
7683 rm -rf conftest*
7684 eval "ac_cv_lib_$ac_lib_var=no"
7685fi
7686rm -f conftest*
7687LIBS="$ac_save_LIBS"
7688
7689fi
7690if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7691 echo "$ac_t""yes" 1>&6
7692 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7693else
7694 echo "$ac_t""no" 1>&6
7695fi
7696
7697 fi
7698
7699 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7700 echo $ac_n "checking for remove""... $ac_c" 1>&6
7e99ad86 7701echo "configure:7702: checking for remove" >&5
ab9b9eab
VZ
7702if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7703 echo $ac_n "(cached) $ac_c" 1>&6
7704else
7705 cat > conftest.$ac_ext <<EOF
7e99ad86 7706#line 7707 "configure"
ab9b9eab
VZ
7707#include "confdefs.h"
7708/* System header to define __stub macros and hopefully few prototypes,
7709 which can conflict with char remove(); below. */
7710#include <assert.h>
7711/* Override any gcc2 internal prototype to avoid an error. */
7712/* We use char because int might match the return type of a gcc2
7713 builtin and then its argument prototype would still apply. */
7714char remove();
7715
7716int main() {
7717
7718/* The GNU C library defines this for functions which it implements
7719 to always fail with ENOSYS. Some functions are actually named
7720 something starting with __ and the normal name is an alias. */
7721#if defined (__stub_remove) || defined (__stub___remove)
7722choke me
7723#else
2224580a 7724remove();
ab9b9eab
VZ
7725#endif
7726
7727; return 0; }
7728EOF
7e99ad86 7729if { (eval echo configure:7730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7730 rm -rf conftest*
7731 eval "ac_cv_func_remove=yes"
7732else
7733 echo "configure: failed program was:" >&5
7734 cat conftest.$ac_ext >&5
7735 rm -rf conftest*
7736 eval "ac_cv_func_remove=no"
7737fi
7738rm -f conftest*
7739fi
7740
7741if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7742 echo "$ac_t""yes" 1>&6
7743 :
7744else
7745 echo "$ac_t""no" 1>&6
7746fi
7747
7748 if test $ac_cv_func_remove = no; then
7749 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
7e99ad86 7750echo "configure:7751: checking for remove in -lposix" >&5
ab9b9eab
VZ
7751ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7752if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7753 echo $ac_n "(cached) $ac_c" 1>&6
7754else
7755 ac_save_LIBS="$LIBS"
7756LIBS="-lposix $LIBS"
7757cat > conftest.$ac_ext <<EOF
7e99ad86 7758#line 7759 "configure"
ab9b9eab
VZ
7759#include "confdefs.h"
7760/* Override any gcc2 internal prototype to avoid an error. */
7761/* We use char because int might match the return type of a gcc2
7762 builtin and then its argument prototype would still apply. */
7763char remove();
7764
7765int main() {
7766remove()
7767; return 0; }
7768EOF
7e99ad86 7769if { (eval echo configure:7770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7770 rm -rf conftest*
7771 eval "ac_cv_lib_$ac_lib_var=yes"
7772else
7773 echo "configure: failed program was:" >&5
7774 cat conftest.$ac_ext >&5
7775 rm -rf conftest*
7776 eval "ac_cv_lib_$ac_lib_var=no"
7777fi
7778rm -f conftest*
7779LIBS="$ac_save_LIBS"
7780
7781fi
7782if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7783 echo "$ac_t""yes" 1>&6
7784 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7785else
7786 echo "$ac_t""no" 1>&6
7787fi
7788
7789 fi
7790
7791 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7792 echo $ac_n "checking for shmat""... $ac_c" 1>&6
7e99ad86 7793echo "configure:7794: checking for shmat" >&5
ab9b9eab
VZ
7794if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7795 echo $ac_n "(cached) $ac_c" 1>&6
7796else
7797 cat > conftest.$ac_ext <<EOF
7e99ad86 7798#line 7799 "configure"
ab9b9eab
VZ
7799#include "confdefs.h"
7800/* System header to define __stub macros and hopefully few prototypes,
7801 which can conflict with char shmat(); below. */
7802#include <assert.h>
7803/* Override any gcc2 internal prototype to avoid an error. */
7804/* We use char because int might match the return type of a gcc2
7805 builtin and then its argument prototype would still apply. */
7806char shmat();
7807
7808int main() {
7809
7810/* The GNU C library defines this for functions which it implements
7811 to always fail with ENOSYS. Some functions are actually named
7812 something starting with __ and the normal name is an alias. */
7813#if defined (__stub_shmat) || defined (__stub___shmat)
7814choke me
7815#else
2224580a 7816shmat();
ab9b9eab
VZ
7817#endif
7818
7819; return 0; }
7820EOF
7e99ad86 7821if { (eval echo configure:7822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7822 rm -rf conftest*
7823 eval "ac_cv_func_shmat=yes"
7824else
7825 echo "configure: failed program was:" >&5
7826 cat conftest.$ac_ext >&5
7827 rm -rf conftest*
7828 eval "ac_cv_func_shmat=no"
7829fi
7830rm -f conftest*
7831fi
7832
7833if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7834 echo "$ac_t""yes" 1>&6
7835 :
7836else
7837 echo "$ac_t""no" 1>&6
7838fi
7839
7840 if test $ac_cv_func_shmat = no; then
7841 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
7e99ad86 7842echo "configure:7843: checking for shmat in -lipc" >&5
ab9b9eab
VZ
7843ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7844if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7845 echo $ac_n "(cached) $ac_c" 1>&6
7846else
7847 ac_save_LIBS="$LIBS"
7848LIBS="-lipc $LIBS"
7849cat > conftest.$ac_ext <<EOF
7e99ad86 7850#line 7851 "configure"
ab9b9eab
VZ
7851#include "confdefs.h"
7852/* Override any gcc2 internal prototype to avoid an error. */
7853/* We use char because int might match the return type of a gcc2
7854 builtin and then its argument prototype would still apply. */
7855char shmat();
7856
7857int main() {
7858shmat()
7859; return 0; }
7860EOF
7e99ad86 7861if { (eval echo configure:7862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7862 rm -rf conftest*
7863 eval "ac_cv_lib_$ac_lib_var=yes"
7864else
7865 echo "configure: failed program was:" >&5
7866 cat conftest.$ac_ext >&5
7867 rm -rf conftest*
7868 eval "ac_cv_lib_$ac_lib_var=no"
7869fi
7870rm -f conftest*
7871LIBS="$ac_save_LIBS"
7872
7873fi
7874if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7875 echo "$ac_t""yes" 1>&6
7876 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7877else
7878 echo "$ac_t""no" 1>&6
7879fi
7880
7881 fi
7882 fi
7883
7884 # Check for libraries that X11R6 Xt/Xaw programs need.
7885 ac_save_LDFLAGS="$LDFLAGS"
7886 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7887 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7888 # check for ICE first), but we must link in the order -lSM -lICE or
7889 # we get undefined symbols. So assume we have SM if we have ICE.
7890 # These have to be linked with before -lX11, unlike the other
7891 # libraries we check for below, so use a different variable.
7892 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7893 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
7e99ad86 7894echo "configure:7895: checking for IceConnectionNumber in -lICE" >&5
ab9b9eab
VZ
7895ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7896if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7897 echo $ac_n "(cached) $ac_c" 1>&6
7898else
7899 ac_save_LIBS="$LIBS"
7900LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7901cat > conftest.$ac_ext <<EOF
7e99ad86 7902#line 7903 "configure"
ab9b9eab
VZ
7903#include "confdefs.h"
7904/* Override any gcc2 internal prototype to avoid an error. */
7905/* We use char because int might match the return type of a gcc2
7906 builtin and then its argument prototype would still apply. */
7907char IceConnectionNumber();
7908
7909int main() {
7910IceConnectionNumber()
7911; return 0; }
7912EOF
7e99ad86 7913if { (eval echo configure:7914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7914 rm -rf conftest*
7915 eval "ac_cv_lib_$ac_lib_var=yes"
7916else
7917 echo "configure: failed program was:" >&5
7918 cat conftest.$ac_ext >&5
7919 rm -rf conftest*
7920 eval "ac_cv_lib_$ac_lib_var=no"
7921fi
7922rm -f conftest*
7923LIBS="$ac_save_LIBS"
7924
7925fi
7926if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7927 echo "$ac_t""yes" 1>&6
7928 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7929else
7930 echo "$ac_t""no" 1>&6
7931fi
7932
7933 LDFLAGS="$ac_save_LDFLAGS"
7934
7935fi
7936
7937
7938 if test "$no_x" = "yes"; then
7939 { echo "configure: error: X11 not found" 1>&2; exit 1; }
7940 fi
7941
7942 GUI_TK_LIBRARY="$X_LIBS"
7943 TOOLKIT_INCLUDE="$X_CFLAGS"
7944
dad6c0ea
VZ
7945 AFMINSTALL=afminstall
7946
ab9b9eab
VZ
7947
7948 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
7e99ad86 7949echo "configure:7950: checking for Motif/Lesstif headers" >&5
ab9b9eab
VZ
7950
7951ac_find_includes=
7952for ac_dir in $SEARCH_INCLUDE;
7953 do
7954 if test -f "$ac_dir/Xm/Xm.h"; then
7955 ac_find_includes=$ac_dir
7956 break
7957 fi
7958 done
7959
7960 if test "$ac_find_includes" != "" ; then
7961 echo "$ac_t""found $ac_find_includes" 1>&6
7962 else
7963 echo "$ac_t""no" 1>&6
7964 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
7965 fi
7966
7967 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
7e99ad86 7968echo "configure:7969: checking for Motif/Lesstif library" >&5
ab9b9eab
VZ
7969
7970ac_find_libraries=
7971for ac_dir in $SEARCH_LIB;
7972 do
7973 for ac_extension in a so sl; do
7974 if test -f "$ac_dir/libXm.$ac_extension"; then
7975 ac_find_libraries=$ac_dir
7976 break 2
7977 fi
7978 done
7979 done
7980
7981 if test "$ac_find_libraries" != "" ; then
7982
7983 ac_path_to_include=$ac_find_includes
7984 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
7985 result=$?
7986 if test $result = 0; then
7987 ac_path_to_include=""
7988 else
7989 ac_path_to_include="-I$ac_find_includes"
7990 fi
7991
7992
7993 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7994 result=$?
7995 if test $result = 0; then
7996 ac_path_to_link=""
7997 else
7998 ac_path_to_link="-L$ac_find_libraries"
7999 fi
8000
8001
8002 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8003 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
8004 echo "$ac_t""found at $ac_find_libraries" 1>&6
8005 else
8006 echo "$ac_t""no" 1>&6
8007 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
8008 fi
8009
8010 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
7e99ad86 8011echo "configure:8012: checking for Xt library" >&5
ab9b9eab
VZ
8012
8013ac_find_libraries=
8014for ac_dir in $SEARCH_LIB;
8015 do
8016 for ac_extension in a so sl; do
8017 if test -f "$ac_dir/libXt.$ac_extension"; then
8018 ac_find_libraries=$ac_dir
8019 break 2
8020 fi
8021 done
8022 done
8023
8024 if test "$ac_find_libraries" != "" ; then
8025
8026 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8027 result=$?
8028 if test $result = 0; then
8029 ac_path_to_link=""
8030 else
8031 ac_path_to_link="-L$ac_find_libraries"
8032 fi
8033
8034 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8035 echo "$ac_t""found at $ac_find_libraries" 1>&6
8036 else
8037 echo "$ac_t""no" 1>&6
8038 { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; }
8039 fi
8040
8041 XPM_LINK=""
8042 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
7e99ad86 8043echo "configure:8044: checking for Xpm library" >&5
ab9b9eab
VZ
8044
8045ac_find_libraries=
8046for ac_dir in $SEARCH_LIB;
8047 do
8048 for ac_extension in a so sl; do
8049 if test -f "$ac_dir/libXpm.$ac_extension"; then
8050 ac_find_libraries=$ac_dir
8051 break 2
8052 fi
8053 done
8054 done
8055
8056 if test "$ac_find_libraries" != "" ; then
8057
8058 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8059 result=$?
8060 if test $result = 0; then
8061 ac_path_to_link=""
8062 else
8063 ac_path_to_link="-L$ac_find_libraries"
8064 fi
8065
8066 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8067 XPM_LINK="-lXpm "
8068 cat >> confdefs.h <<\EOF
8069#define wxHAVE_LIB_XPM 1
8070EOF
8071
8072 echo "$ac_t""found at $ac_find_libraries" 1>&6
8073 else
8074 echo "$ac_t""no" 1>&6
8075 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8076 fi
8077
8078 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm"
8079 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8080 TOOLKIT=MOTIF
8081
8082 GUIHEADERS="\$(MOTIF_HEADERS)"
8083 GUIOBJS="\$(MOTIF_GUIOBJS)"
8084 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
788deba1
VZ
8085 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8086 GUIDEPS="\$(MOTIF_GUIDEPS)"
8087 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
10f2d63a
VZ
8088 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8089 UNIXOBJS="\$(UNIX_OBJS)"
d9d8273d 8090 UNIXDEPS="\$(UNIX_DEPS)"
10f2d63a
VZ
8091 GUIDIST=MOTIF_DIST
8092fi
8093
e07802fc
VZ
8094if test "$wxUSE_PM" = 1; then
8095 TOOLKIT=PM
8096
8097 GUIOBJS="\$(PM_GUIOBJS)"
8098 GUIHEADERS="\$(PM_HEADERS)"
8099 COMMONOBJS="\$(PM_COMMONOBJS)"
8100 GENERICOBJS="\$(PM_GENERICOBJS)"
8101 GUIDEPS="\$(PM_GUIDEPS)"
8102 COMMONDEPS="\$(PM_COMMONDEPS)"
8103 GENERICDEPS="\$(PM_GENERICDEPS)"
8104 UNIXOBJS=
8105 UNIXDEPS=
8106 GUIDIST=GTK_DIST
8107fi
8108
8109if test "$TOOLKIT" != "PM" ; then
ec14dd32 8110 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
e07802fc
VZ
8111else
8112 TOOLKIT_DIR="os2"
8113fi
10f2d63a 8114
2224580a 8115 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10f2d63a 8116
2224580a 8117 WX_LIBRARY="wx_${TOOLKIT_DIR}"
10f2d63a 8118
d9d8273d
RR
8119 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(IODBCOBJS)"
8120 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 8121 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
8122 fi
8123 if test "$wxUSE_LIBTIFF" = "yes" ; then
8124 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
8125 fi
8126 if test "$wxUSE_LIBPNG" = "yes" ; then
8127 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
8128 fi
8129 if test "$wxUSE_ZLIB" = "yes" ; then
8130 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
8131 fi
10f2d63a 8132 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)"
2224580a
VZ
8133
8134 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
8135 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
8136 RPM_SPEC="wx\$(TOOLKIT).spec"
8137
8138 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
8139 DISTDIR="wx\$(TOOLKIT)"
10f2d63a
VZ
8140else
8141
dad6c0ea
VZ
8142 USE_GUI=0
8143
2224580a
VZ
8144 ALL_OBJECTS="\$(BASE_OBJS) \${BASE_UNIX_OBJS}"
8145 ALL_DEPFILES="\${BASE_DEPS} \${BASE_UNIX_DEPS}"
10f2d63a
VZ
8146
8147 WX_LIBRARY="wxbase"
2224580a
VZ
8148
8149 PORT_FILES="src/files.lst"
8150 RPM_FILES="src/rpmfiles.lst"
8151 RPM_SPEC="wxBase.spec"
8152
8153 GUIDIST="BASE_DIST"
8154 DISTDIR="wxBase"
10f2d63a
VZ
8155fi
8156
8157WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
8158
8159WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
8160
8161WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
8162
8163WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
8164WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
8165WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
8166
8167SHARED_LD=
8168PIC_FLAG=
8169WX_ALL=
8170WX_ALL_INSTALLED=
1d62a8b4 8171BURNT_LIBRARY_NAME=
10f2d63a 8172
b12915c1 8173
10f2d63a
VZ
8174if test "$wxUSE_SHARED" = "yes"; then
8175 case "${host}" in
8176 *-hp-hpux* )
8177 if test "$GCC" = yes ; then
69ffe1d2 8178 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
8179 PIC_FLAG="-fPIC"
8180 else
8181 SHARED_LD="${CXX} -b -o"
8182 PIC_FLAG="+Z"
8183 fi
8184 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
8185 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8186 ;;
b12915c1
VZ
8187
8188 *-*-linux* )
10f2d63a
VZ
8189 SHARED_LD="${CC} -shared -o"
8190 PIC_FLAG="-fPIC"
8191 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8192 WX_ALL="CREATE_LINKS"
b12915c1 8193 ;;
10f2d63a
VZ
8194 *-*-irix5* | *-*-irix6* )
8195 if test "$GCC" = yes ; then
8196 SHARED_LD="${CC} -shared -o"
8197 PIC_FLAG="-fPIC"
8198 else
8199 SHARED_LD="${CXX} -shared -o"
8200 fi
8201 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8202 WX_ALL="CREATE_LINKS"
8203 ;;
8204 *-*-solaris2* )
8205 if test "$GCC" = yes ; then
8206 SHARED_LD="${CC} -shared -o"
8207 PIC_FLAG="-fPIC"
8208 else
8209 SHARED_LD="${CXX} -G -o"
8210 PIC_FLAG="-KPIC"
8211 fi
8212 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8213 WX_ALL="CREATE_LINKS"
8214 ;;
8215 *-*-sunos4* )
8216 SHARED_LD="${CC} -shared -o"
8217 PIC_FLAG="-fPIC"
8218 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8219 WX_ALL="CREATE_LINKS"
8220 ;;
8221 *-*-freebsd* | *-*-netbsd*)
8222 SHARED_LD="${CC} -shared -o"
8223 PIC_FLAG="-fPIC"
8224 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8225 WX_ALL="CREATE_LINKS"
8226 ;;
8227 *-*-osf* )
8228 SHARED_LD="${CXX} -shared -o"
8229 PIC_FLAG="-fPIC"
8230 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8231 WX_ALL="CREATE_LINKS"
8232 ;;
8233 *-*-dgux5* )
8234 SHARED_LD="${CXX} -shared -o"
8235 PIC_FLAG="-fPIC"
8236 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8237 WX_ALL="CREATE_LINKS"
8238 ;;
8239 *-*-sysv5* )
8240 SHARED_LD="${CC} -shared -o"
8241 PIC_FLAG="-fPIC"
8242 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8243 WX_ALL="CREATE_LINKS"
8244 ;;
8245 *-*-aix* )
8246 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8247 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8248 ;;
8249 *-*-cygwin32* )
8250 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8251 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8252 ;;
b12915c1 8253 *-*-mingw32* )
10f2d63a
VZ
8254 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8255 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8256 ;;
8257 *-pc-os2_emx )
e07802fc
VZ
8258 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8259 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 8260 ;;
b12915c1 8261 *-*-beos* )
e2b8b066 8262 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
8263 PIC_FLAG="-fPIC"
8264 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8265 WX_ALL="CREATE_LINKS"
8266 ;;
10f2d63a
VZ
8267 *)
8268 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8269 esac
8270
8271 if test "x$WX_TARGET_LIBRARY" = "x"; then
8272 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
8273 fi
8274else
8275 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8276 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8277fi
8278
8279
8280for ac_hdr in strings.h
8281do
8282ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8283echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7e99ad86 8284echo "configure:8285: checking for $ac_hdr" >&5
10f2d63a
VZ
8285if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8286 echo $ac_n "(cached) $ac_c" 1>&6
8287else
8288 cat > conftest.$ac_ext <<EOF
7e99ad86 8289#line 8290 "configure"
10f2d63a
VZ
8290#include "confdefs.h"
8291#include <$ac_hdr>
8292EOF
8293ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7e99ad86 8294{ (eval echo configure:8295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8295ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8296if test -z "$ac_err"; then
8297 rm -rf conftest*
8298 eval "ac_cv_header_$ac_safe=yes"
8299else
8300 echo "$ac_err" >&5
8301 echo "configure: failed program was:" >&5
8302 cat conftest.$ac_ext >&5
8303 rm -rf conftest*
8304 eval "ac_cv_header_$ac_safe=no"
8305fi
8306rm -f conftest*
8307fi
8308if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8309 echo "$ac_t""yes" 1>&6
8310 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8311 cat >> confdefs.h <<EOF
8312#define $ac_tr_hdr 1
8313EOF
8314
8315else
8316 echo "$ac_t""no" 1>&6
8317fi
8318done
8319
8320for ac_hdr in unistd.h
8321do
8322ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8323echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7e99ad86 8324echo "configure:8325: checking for $ac_hdr" >&5
10f2d63a
VZ
8325if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8326 echo $ac_n "(cached) $ac_c" 1>&6
8327else
8328 cat > conftest.$ac_ext <<EOF
7e99ad86 8329#line 8330 "configure"
10f2d63a
VZ
8330#include "confdefs.h"
8331#include <$ac_hdr>
8332EOF
8333ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7e99ad86 8334{ (eval echo configure:8335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8335ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8336if test -z "$ac_err"; then
8337 rm -rf conftest*
8338 eval "ac_cv_header_$ac_safe=yes"
8339else
8340 echo "$ac_err" >&5
8341 echo "configure: failed program was:" >&5
8342 cat conftest.$ac_ext >&5
8343 rm -rf conftest*
8344 eval "ac_cv_header_$ac_safe=no"
8345fi
8346rm -f conftest*
8347fi
8348if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8349 echo "$ac_t""yes" 1>&6
8350 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8351 cat >> confdefs.h <<EOF
8352#define $ac_tr_hdr 1
8353EOF
8354
8355else
8356 echo "$ac_t""no" 1>&6
8357fi
8358done
8359
8360for ac_hdr in wchar.h
8361do
8362ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8363echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7e99ad86 8364echo "configure:8365: checking for $ac_hdr" >&5
10f2d63a
VZ
8365if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8366 echo $ac_n "(cached) $ac_c" 1>&6
8367else
8368 cat > conftest.$ac_ext <<EOF
7e99ad86 8369#line 8370 "configure"
10f2d63a
VZ
8370#include "confdefs.h"
8371#include <$ac_hdr>
8372EOF
8373ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7e99ad86 8374{ (eval echo configure:8375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8375ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8376if test -z "$ac_err"; then
8377 rm -rf conftest*
8378 eval "ac_cv_header_$ac_safe=yes"
8379else
8380 echo "$ac_err" >&5
8381 echo "configure: failed program was:" >&5
8382 cat conftest.$ac_ext >&5
8383 rm -rf conftest*
8384 eval "ac_cv_header_$ac_safe=no"
8385fi
8386rm -f conftest*
8387fi
8388if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8389 echo "$ac_t""yes" 1>&6
8390 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8391 cat >> confdefs.h <<EOF
8392#define $ac_tr_hdr 1
8393EOF
8394
8395else
8396 echo "$ac_t""no" 1>&6
8397fi
8398done
8399
8400for ac_hdr in wcstr.h
8401do
8402ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8403echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7e99ad86 8404echo "configure:8405: checking for $ac_hdr" >&5
10f2d63a
VZ
8405if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8406 echo $ac_n "(cached) $ac_c" 1>&6
8407else
8408 cat > conftest.$ac_ext <<EOF
7e99ad86 8409#line 8410 "configure"
10f2d63a
VZ
8410#include "confdefs.h"
8411#include <$ac_hdr>
8412EOF
8413ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7e99ad86 8414{ (eval echo configure:8415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8415ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8416if test -z "$ac_err"; then
8417 rm -rf conftest*
8418 eval "ac_cv_header_$ac_safe=yes"
8419else
8420 echo "$ac_err" >&5
8421 echo "configure: failed program was:" >&5
8422 cat conftest.$ac_ext >&5
8423 rm -rf conftest*
8424 eval "ac_cv_header_$ac_safe=no"
8425fi
8426rm -f conftest*
8427fi
8428if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8429 echo "$ac_t""yes" 1>&6
8430 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8431 cat >> confdefs.h <<EOF
8432#define $ac_tr_hdr 1
8433EOF
8434
8435else
8436 echo "$ac_t""no" 1>&6
8437fi
8438done
8439
8440for ac_hdr in fnmatch.h
8441do
8442ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8443echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7e99ad86 8444echo "configure:8445: checking for $ac_hdr" >&5
10f2d63a
VZ
8445if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8446 echo $ac_n "(cached) $ac_c" 1>&6
8447else
8448 cat > conftest.$ac_ext <<EOF
7e99ad86 8449#line 8450 "configure"
10f2d63a
VZ
8450#include "confdefs.h"
8451#include <$ac_hdr>
8452EOF
8453ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7e99ad86 8454{ (eval echo configure:8455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8455ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8456if test -z "$ac_err"; then
8457 rm -rf conftest*
8458 eval "ac_cv_header_$ac_safe=yes"
8459else
8460 echo "$ac_err" >&5
8461 echo "configure: failed program was:" >&5
8462 cat conftest.$ac_ext >&5
8463 rm -rf conftest*
8464 eval "ac_cv_header_$ac_safe=no"
8465fi
8466rm -f conftest*
8467fi
8468if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8469 echo "$ac_t""yes" 1>&6
8470 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8471 cat >> confdefs.h <<EOF
8472#define $ac_tr_hdr 1
8473EOF
8474
8475else
8476 echo "$ac_t""no" 1>&6
8477fi
8478done
8479
8480
8481if test "$wxUSE_GUI" = "yes"; then
8482 for ac_hdr in X11/XKBlib.h
8483do
8484ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8485echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7e99ad86 8486echo "configure:8487: checking for $ac_hdr" >&5
10f2d63a
VZ
8487if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8488 echo $ac_n "(cached) $ac_c" 1>&6
8489else
8490 cat > conftest.$ac_ext <<EOF
7e99ad86 8491#line 8492 "configure"
10f2d63a
VZ
8492#include "confdefs.h"
8493#include <$ac_hdr>
8494EOF
8495ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7e99ad86 8496{ (eval echo configure:8497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8497ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8498if test -z "$ac_err"; then
8499 rm -rf conftest*
8500 eval "ac_cv_header_$ac_safe=yes"
8501else
8502 echo "$ac_err" >&5
8503 echo "configure: failed program was:" >&5
8504 cat conftest.$ac_ext >&5
8505 rm -rf conftest*
8506 eval "ac_cv_header_$ac_safe=no"
8507fi
8508rm -f conftest*
8509fi
8510if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8511 echo "$ac_t""yes" 1>&6
8512 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8513 cat >> confdefs.h <<EOF
8514#define $ac_tr_hdr 1
8515EOF
8516
8517else
8518 echo "$ac_t""no" 1>&6
8519fi
8520done
8521
8522fi
8523
8524
8525echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7e99ad86 8526echo "configure:8527: checking for ANSI C header files" >&5
10f2d63a
VZ
8527if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8528 echo $ac_n "(cached) $ac_c" 1>&6
8529else
8530 cat > conftest.$ac_ext <<EOF
7e99ad86 8531#line 8532 "configure"
10f2d63a
VZ
8532#include "confdefs.h"
8533#include <stdlib.h>
8534#include <stdarg.h>
8535#include <string.h>
8536#include <float.h>
8537EOF
8538ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7e99ad86 8539{ (eval echo configure:8540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8540ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8541if test -z "$ac_err"; then
8542 rm -rf conftest*
8543 ac_cv_header_stdc=yes
8544else
8545 echo "$ac_err" >&5
8546 echo "configure: failed program was:" >&5
8547 cat conftest.$ac_ext >&5
8548 rm -rf conftest*
8549 ac_cv_header_stdc=no
8550fi
8551rm -f conftest*
8552
8553if test $ac_cv_header_stdc = yes; then
8554 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8555cat > conftest.$ac_ext <<EOF
7e99ad86 8556#line 8557 "configure"
10f2d63a
VZ
8557#include "confdefs.h"
8558#include <string.h>
8559EOF
8560if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8561 egrep "memchr" >/dev/null 2>&1; then
8562 :
8563else
8564 rm -rf conftest*
8565 ac_cv_header_stdc=no
8566fi
8567rm -f conftest*
8568
8569fi
8570
8571if test $ac_cv_header_stdc = yes; then
8572 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8573cat > conftest.$ac_ext <<EOF
7e99ad86 8574#line 8575 "configure"
10f2d63a
VZ
8575#include "confdefs.h"
8576#include <stdlib.h>
8577EOF
8578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8579 egrep "free" >/dev/null 2>&1; then
8580 :
8581else
8582 rm -rf conftest*
8583 ac_cv_header_stdc=no
8584fi
8585rm -f conftest*
8586
8587fi
8588
8589if test $ac_cv_header_stdc = yes; then
8590 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8591if test "$cross_compiling" = yes; then
8592 :
8593else
8594 cat > conftest.$ac_ext <<EOF
7e99ad86 8595#line 8596 "configure"
10f2d63a
VZ
8596#include "confdefs.h"
8597#include <ctype.h>
8598#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8599#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8600#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8601int main () { int i; for (i = 0; i < 256; i++)
8602if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8603exit (0); }
8604
8605EOF
7e99ad86 8606if { (eval echo configure:8607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8607then
8608 :
8609else
8610 echo "configure: failed program was:" >&5
8611 cat conftest.$ac_ext >&5
8612 rm -fr conftest*
8613 ac_cv_header_stdc=no
8614fi
8615rm -fr conftest*
8616fi
8617
8618fi
8619fi
8620
8621echo "$ac_t""$ac_cv_header_stdc" 1>&6
8622if test $ac_cv_header_stdc = yes; then
8623 cat >> confdefs.h <<\EOF
8624#define STDC_HEADERS 1
8625EOF
8626
8627fi
8628
8629echo $ac_n "checking for mode_t""... $ac_c" 1>&6
7e99ad86 8630echo "configure:8631: checking for mode_t" >&5
10f2d63a
VZ
8631if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8632 echo $ac_n "(cached) $ac_c" 1>&6
8633else
8634 cat > conftest.$ac_ext <<EOF
7e99ad86 8635#line 8636 "configure"
10f2d63a
VZ
8636#include "confdefs.h"
8637#include <sys/types.h>
8638#if STDC_HEADERS
8639#include <stdlib.h>
8640#include <stddef.h>
8641#endif
8642EOF
8643if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8644 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8645 rm -rf conftest*
8646 ac_cv_type_mode_t=yes
8647else
8648 rm -rf conftest*
8649 ac_cv_type_mode_t=no
8650fi
8651rm -f conftest*
8652
8653fi
8654echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8655if test $ac_cv_type_mode_t = no; then
8656 cat >> confdefs.h <<\EOF
8657#define mode_t int
8658EOF
8659
8660fi
8661
8662echo $ac_n "checking for off_t""... $ac_c" 1>&6
7e99ad86 8663echo "configure:8664: checking for off_t" >&5
10f2d63a
VZ
8664if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8665 echo $ac_n "(cached) $ac_c" 1>&6
8666else
8667 cat > conftest.$ac_ext <<EOF
7e99ad86 8668#line 8669 "configure"
10f2d63a
VZ
8669#include "confdefs.h"
8670#include <sys/types.h>
8671#if STDC_HEADERS
8672#include <stdlib.h>
8673#include <stddef.h>
8674#endif
8675EOF
8676if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8677 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8678 rm -rf conftest*
8679 ac_cv_type_off_t=yes
8680else
8681 rm -rf conftest*
8682 ac_cv_type_off_t=no
8683fi
8684rm -f conftest*
8685
8686fi
8687echo "$ac_t""$ac_cv_type_off_t" 1>&6
8688if test $ac_cv_type_off_t = no; then
8689 cat >> confdefs.h <<\EOF
8690#define off_t long
8691EOF
8692
8693fi
8694
8695echo $ac_n "checking for pid_t""... $ac_c" 1>&6
7e99ad86 8696echo "configure:8697: checking for pid_t" >&5
10f2d63a
VZ
8697if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8698 echo $ac_n "(cached) $ac_c" 1>&6
8699else
8700 cat > conftest.$ac_ext <<EOF
7e99ad86 8701#line 8702 "configure"
10f2d63a
VZ
8702#include "confdefs.h"
8703#include <sys/types.h>
8704#if STDC_HEADERS
8705#include <stdlib.h>
8706#include <stddef.h>
8707#endif
8708EOF
8709if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8710 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8711 rm -rf conftest*
8712 ac_cv_type_pid_t=yes
8713else
8714 rm -rf conftest*
8715 ac_cv_type_pid_t=no
8716fi
8717rm -f conftest*
8718
8719fi
8720echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8721if test $ac_cv_type_pid_t = no; then
8722 cat >> confdefs.h <<\EOF
8723#define pid_t int
8724EOF
8725
8726fi
8727
8728echo $ac_n "checking for size_t""... $ac_c" 1>&6
7e99ad86 8729echo "configure:8730: checking for size_t" >&5
10f2d63a
VZ
8730if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8731 echo $ac_n "(cached) $ac_c" 1>&6
8732else
8733 cat > conftest.$ac_ext <<EOF
7e99ad86 8734#line 8735 "configure"
10f2d63a
VZ
8735#include "confdefs.h"
8736#include <sys/types.h>
8737#if STDC_HEADERS
8738#include <stdlib.h>
8739#include <stddef.h>
8740#endif
8741EOF
8742if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8743 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8744 rm -rf conftest*
8745 ac_cv_type_size_t=yes
8746else
8747 rm -rf conftest*
8748 ac_cv_type_size_t=no
8749fi
8750rm -f conftest*
8751
8752fi
8753echo "$ac_t""$ac_cv_type_size_t" 1>&6
8754if test $ac_cv_type_size_t = no; then
8755 cat >> confdefs.h <<\EOF
8756#define size_t unsigned
8757EOF
8758
8759fi
8760
8761echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
7e99ad86 8762echo "configure:8763: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
8763if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
8764 echo $ac_n "(cached) $ac_c" 1>&6
8765else
8766 cat > conftest.$ac_ext <<EOF
7e99ad86 8767#line 8768 "configure"
10f2d63a
VZ
8768#include "confdefs.h"
8769#include <sys/types.h>
8770EOF
8771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8772 egrep "uid_t" >/dev/null 2>&1; then
8773 rm -rf conftest*
8774 ac_cv_type_uid_t=yes
8775else
8776 rm -rf conftest*
8777 ac_cv_type_uid_t=no
8778fi
8779rm -f conftest*
8780
8781fi
8782
8783echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8784if test $ac_cv_type_uid_t = no; then
8785 cat >> confdefs.h <<\EOF
8786#define uid_t int
8787EOF
8788
8789 cat >> confdefs.h <<\EOF
8790#define gid_t int
8791EOF
8792
8793fi
8794
8795
8796
b12915c1 8797echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
7e99ad86 8798echo "configure:8799: checking for pw_gecos in struct passwd" >&5
b12915c1
VZ
8799if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
8800 echo $ac_n "(cached) $ac_c" 1>&6
8801else
8802
8803 cat > conftest.$ac_ext <<EOF
7e99ad86 8804#line 8805 "configure"
b12915c1
VZ
8805#include "confdefs.h"
8806#include <pwd.h>
8807int main() {
8808
8809 char *p;
8810 struct passwd *pw;
8811 p = pw->pw_gecos;
8812
8813; return 0; }
8814EOF
7e99ad86 8815if { (eval echo configure:8816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b12915c1
VZ
8816 rm -rf conftest*
8817
8818 wx_cv_struct_pw_gecos=yes
8819 cat >> confdefs.h <<\EOF
8820#define HAVE_PW_GECOS 1
8821EOF
8822
8823
8824else
8825 echo "configure: failed program was:" >&5
8826 cat conftest.$ac_ext >&5
8827 rm -rf conftest*
8828
8829 wx_cv_struct_pw_gecos=no
8830
8831
8832fi
8833rm -f conftest*
8834
8835
8836fi
8837
8838echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
8839
10f2d63a
VZ
8840
8841echo $ac_n "checking for working const""... $ac_c" 1>&6
7e99ad86 8842echo "configure:8843: checking for working const" >&5
10f2d63a
VZ
8843if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8844 echo $ac_n "(cached) $ac_c" 1>&6
8845else
8846 cat > conftest.$ac_ext <<EOF
7e99ad86 8847#line 8848 "configure"
10f2d63a
VZ
8848#include "confdefs.h"
8849
8850int main() {
8851
8852/* Ultrix mips cc rejects this. */
8853typedef int charset[2]; const charset x;
8854/* SunOS 4.1.1 cc rejects this. */
8855char const *const *ccp;
8856char **p;
8857/* NEC SVR4.0.2 mips cc rejects this. */
8858struct point {int x, y;};
8859static struct point const zero = {0,0};
8860/* AIX XL C 1.02.0.0 rejects this.
8861 It does not let you subtract one const X* pointer from another in an arm
8862 of an if-expression whose if-part is not a constant expression */
8863const char *g = "string";
8864ccp = &g + (g ? g-g : 0);
8865/* HPUX 7.0 cc rejects these. */
8866++ccp;
8867p = (char**) ccp;
8868ccp = (char const *const *) p;
8869{ /* SCO 3.2v4 cc rejects this. */
8870 char *t;
8871 char const *s = 0 ? (char *) 0 : (char const *) 0;
8872
8873 *t++ = 0;
8874}
8875{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8876 int x[] = {25, 17};
8877 const int *foo = &x[0];
8878 ++foo;
8879}
8880{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8881 typedef const int *iptr;
8882 iptr p = 0;
8883 ++p;
8884}
8885{ /* AIX XL C 1.02.0.0 rejects this saying
8886 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8887 struct s { int j; const int *ap[3]; };
8888 struct s *b; b->j = 5;
8889}
8890{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8891 const int foo = 10;
8892}
8893
8894; return 0; }
8895EOF
7e99ad86 8896if { (eval echo configure:8897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
8897 rm -rf conftest*
8898 ac_cv_c_const=yes
8899else
8900 echo "configure: failed program was:" >&5
8901 cat conftest.$ac_ext >&5
8902 rm -rf conftest*
8903 ac_cv_c_const=no
8904fi
8905rm -f conftest*
8906fi
8907
8908echo "$ac_t""$ac_cv_c_const" 1>&6
8909if test $ac_cv_c_const = no; then
8910 cat >> confdefs.h <<\EOF
8911#define const
8912EOF
8913
8914fi
8915
8916echo $ac_n "checking for inline""... $ac_c" 1>&6
7e99ad86 8917echo "configure:8918: checking for inline" >&5
10f2d63a
VZ
8918if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
8919 echo $ac_n "(cached) $ac_c" 1>&6
8920else
8921 ac_cv_c_inline=no
8922for ac_kw in inline __inline__ __inline; do
8923 cat > conftest.$ac_ext <<EOF
7e99ad86 8924#line 8925 "configure"
10f2d63a
VZ
8925#include "confdefs.h"
8926
8927int main() {
8928} $ac_kw foo() {
8929; return 0; }
8930EOF
7e99ad86 8931if { (eval echo configure:8932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
8932 rm -rf conftest*
8933 ac_cv_c_inline=$ac_kw; break
8934else
8935 echo "configure: failed program was:" >&5
8936 cat conftest.$ac_ext >&5
8937fi
8938rm -f conftest*
8939done
8940
8941fi
8942
8943echo "$ac_t""$ac_cv_c_inline" 1>&6
8944case "$ac_cv_c_inline" in
8945 inline | yes) ;;
8946 no) cat >> confdefs.h <<\EOF
8947#define inline
8948EOF
8949 ;;
8950 *) cat >> confdefs.h <<EOF
8951#define inline $ac_cv_c_inline
8952EOF
8953 ;;
8954esac
8955
8956
8957echo $ac_n "checking size of char""... $ac_c" 1>&6
7e99ad86 8958echo "configure:8959: checking size of char" >&5
10f2d63a
VZ
8959if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
8960 echo $ac_n "(cached) $ac_c" 1>&6
8961else
8962 if test "$cross_compiling" = yes; then
8963 ac_cv_sizeof_char=1
8964else
8965 cat > conftest.$ac_ext <<EOF
7e99ad86 8966#line 8967 "configure"
10f2d63a
VZ
8967#include "confdefs.h"
8968#include <stdio.h>
8969main()
8970{
8971 FILE *f=fopen("conftestval", "w");
8972 if (!f) exit(1);
8973 fprintf(f, "%d\n", sizeof(char));
8974 exit(0);
8975}
8976EOF
7e99ad86 8977if { (eval echo configure:8978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8978then
8979 ac_cv_sizeof_char=`cat conftestval`
8980else
8981 echo "configure: failed program was:" >&5
8982 cat conftest.$ac_ext >&5
8983 rm -fr conftest*
8984 ac_cv_sizeof_char=0
8985fi
8986rm -fr conftest*
8987fi
8988
8989fi
8990echo "$ac_t""$ac_cv_sizeof_char" 1>&6
8991cat >> confdefs.h <<EOF
8992#define SIZEOF_CHAR $ac_cv_sizeof_char
8993EOF
8994
8995
8996echo $ac_n "checking size of short""... $ac_c" 1>&6
7e99ad86 8997echo "configure:8998: checking size of short" >&5
10f2d63a
VZ
8998if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
8999 echo $ac_n "(cached) $ac_c" 1>&6
9000else
9001 if test "$cross_compiling" = yes; then
9002 ac_cv_sizeof_short=2
9003else
9004 cat > conftest.$ac_ext <<EOF
7e99ad86 9005#line 9006 "configure"
10f2d63a
VZ
9006#include "confdefs.h"
9007#include <stdio.h>
9008main()
9009{
9010 FILE *f=fopen("conftestval", "w");
9011 if (!f) exit(1);
9012 fprintf(f, "%d\n", sizeof(short));
9013 exit(0);
9014}
9015EOF
7e99ad86 9016if { (eval echo configure:9017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9017then
9018 ac_cv_sizeof_short=`cat conftestval`
9019else
9020 echo "configure: failed program was:" >&5
9021 cat conftest.$ac_ext >&5
9022 rm -fr conftest*
9023 ac_cv_sizeof_short=0
9024fi
9025rm -fr conftest*
9026fi
9027
9028fi
9029echo "$ac_t""$ac_cv_sizeof_short" 1>&6
9030cat >> confdefs.h <<EOF
9031#define SIZEOF_SHORT $ac_cv_sizeof_short
9032EOF
9033
9034
9035echo $ac_n "checking size of int *""... $ac_c" 1>&6
7e99ad86 9036echo "configure:9037: checking size of int *" >&5
10f2d63a
VZ
9037if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
9038 echo $ac_n "(cached) $ac_c" 1>&6
9039else
9040 if test "$cross_compiling" = yes; then
9041 ac_cv_sizeof_int_p=4
9042else
9043 cat > conftest.$ac_ext <<EOF
7e99ad86 9044#line 9045 "configure"
10f2d63a
VZ
9045#include "confdefs.h"
9046#include <stdio.h>
9047main()
9048{
9049 FILE *f=fopen("conftestval", "w");
9050 if (!f) exit(1);
9051 fprintf(f, "%d\n", sizeof(int *));
9052 exit(0);
9053}
9054EOF
7e99ad86 9055if { (eval echo configure:9056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9056then
9057 ac_cv_sizeof_int_p=`cat conftestval`
9058else
9059 echo "configure: failed program was:" >&5
9060 cat conftest.$ac_ext >&5
9061 rm -fr conftest*
9062 ac_cv_sizeof_int_p=0
9063fi
9064rm -fr conftest*
9065fi
9066
9067fi
9068echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
9069cat >> confdefs.h <<EOF
9070#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9071EOF
9072
9073
9074echo $ac_n "checking size of int""... $ac_c" 1>&6
7e99ad86 9075echo "configure:9076: checking size of int" >&5
10f2d63a
VZ
9076if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
9077 echo $ac_n "(cached) $ac_c" 1>&6
9078else
9079 if test "$cross_compiling" = yes; then
9080 ac_cv_sizeof_int=4
9081else
9082 cat > conftest.$ac_ext <<EOF
7e99ad86 9083#line 9084 "configure"
10f2d63a
VZ
9084#include "confdefs.h"
9085#include <stdio.h>
9086main()
9087{
9088 FILE *f=fopen("conftestval", "w");
9089 if (!f) exit(1);
9090 fprintf(f, "%d\n", sizeof(int));
9091 exit(0);
9092}
9093EOF
7e99ad86 9094if { (eval echo configure:9095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9095then
9096 ac_cv_sizeof_int=`cat conftestval`
9097else
9098 echo "configure: failed program was:" >&5
9099 cat conftest.$ac_ext >&5
9100 rm -fr conftest*
9101 ac_cv_sizeof_int=0
9102fi
9103rm -fr conftest*
9104fi
9105
9106fi
9107echo "$ac_t""$ac_cv_sizeof_int" 1>&6
9108cat >> confdefs.h <<EOF
9109#define SIZEOF_INT $ac_cv_sizeof_int
9110EOF
9111
9112
9113echo $ac_n "checking size of long""... $ac_c" 1>&6
7e99ad86 9114echo "configure:9115: checking size of long" >&5
10f2d63a
VZ
9115if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
9116 echo $ac_n "(cached) $ac_c" 1>&6
9117else
9118 if test "$cross_compiling" = yes; then
9119 ac_cv_sizeof_long=4
9120else
9121 cat > conftest.$ac_ext <<EOF
7e99ad86 9122#line 9123 "configure"
10f2d63a
VZ
9123#include "confdefs.h"
9124#include <stdio.h>
9125main()
9126{
9127 FILE *f=fopen("conftestval", "w");
9128 if (!f) exit(1);
9129 fprintf(f, "%d\n", sizeof(long));
9130 exit(0);
9131}
9132EOF
7e99ad86 9133if { (eval echo configure:9134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9134then
9135 ac_cv_sizeof_long=`cat conftestval`
9136else
9137 echo "configure: failed program was:" >&5
9138 cat conftest.$ac_ext >&5
9139 rm -fr conftest*
9140 ac_cv_sizeof_long=0
9141fi
9142rm -fr conftest*
9143fi
9144
9145fi
9146echo "$ac_t""$ac_cv_sizeof_long" 1>&6
9147cat >> confdefs.h <<EOF
9148#define SIZEOF_LONG $ac_cv_sizeof_long
9149EOF
9150
9151
9152echo $ac_n "checking size of long long""... $ac_c" 1>&6
7e99ad86 9153echo "configure:9154: checking size of long long" >&5
10f2d63a
VZ
9154if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
9155 echo $ac_n "(cached) $ac_c" 1>&6
9156else
9157 if test "$cross_compiling" = yes; then
9158 ac_cv_sizeof_long_long=0
9159else
9160 cat > conftest.$ac_ext <<EOF
7e99ad86 9161#line 9162 "configure"
10f2d63a
VZ
9162#include "confdefs.h"
9163#include <stdio.h>
9164main()
9165{
9166 FILE *f=fopen("conftestval", "w");
9167 if (!f) exit(1);
9168 fprintf(f, "%d\n", sizeof(long long));
9169 exit(0);
9170}
9171EOF
7e99ad86 9172if { (eval echo configure:9173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9173then
9174 ac_cv_sizeof_long_long=`cat conftestval`
9175else
9176 echo "configure: failed program was:" >&5
9177 cat conftest.$ac_ext >&5
9178 rm -fr conftest*
9179 ac_cv_sizeof_long_long=0
9180fi
9181rm -fr conftest*
9182fi
9183
9184fi
9185echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
9186cat >> confdefs.h <<EOF
9187#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9188EOF
9189
9190
9191
9192echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
7e99ad86 9193echo "configure:9194: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
9194if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9195 echo $ac_n "(cached) $ac_c" 1>&6
9196else
9197 ac_cv_c_bigendian=unknown
9198# See if sys/param.h defines the BYTE_ORDER macro.
9199cat > conftest.$ac_ext <<EOF
7e99ad86 9200#line 9201 "configure"
10f2d63a
VZ
9201#include "confdefs.h"
9202#include <sys/types.h>
9203#include <sys/param.h>
9204int main() {
9205
9206#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9207 bogus endian macros
9208#endif
9209; return 0; }
9210EOF
7e99ad86 9211if { (eval echo configure:9212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9212 rm -rf conftest*
9213 # It does; now see whether it defined to BIG_ENDIAN or not.
9214cat > conftest.$ac_ext <<EOF
7e99ad86 9215#line 9216 "configure"
10f2d63a
VZ
9216#include "confdefs.h"
9217#include <sys/types.h>
9218#include <sys/param.h>
9219int main() {
9220
9221#if BYTE_ORDER != BIG_ENDIAN
9222 not big endian
9223#endif
9224; return 0; }
9225EOF
7e99ad86 9226if { (eval echo configure:9227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9227 rm -rf conftest*
9228 ac_cv_c_bigendian=yes
9229else
9230 echo "configure: failed program was:" >&5
9231 cat conftest.$ac_ext >&5
9232 rm -rf conftest*
9233 ac_cv_c_bigendian=no
9234fi
9235rm -f conftest*
9236else
9237 echo "configure: failed program was:" >&5
9238 cat conftest.$ac_ext >&5
9239fi
9240rm -f conftest*
9241if test $ac_cv_c_bigendian = unknown; then
9242if test "$cross_compiling" = yes; then
9243 ac_cv_c_bigendian=unknown
9244else
9245 cat > conftest.$ac_ext <<EOF
7e99ad86 9246#line 9247 "configure"
10f2d63a
VZ
9247#include "confdefs.h"
9248main () {
9249 /* Are we little or big endian? From Harbison&Steele. */
9250 union
9251 {
9252 long l;
9253 char c[sizeof (long)];
9254 } u;
9255 u.l = 1;
9256 exit (u.c[sizeof (long) - 1] == 1);
9257}
9258EOF
7e99ad86 9259if { (eval echo configure:9260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9260then
9261 ac_cv_c_bigendian=no
9262else
9263 echo "configure: failed program was:" >&5
9264 cat conftest.$ac_ext >&5
9265 rm -fr conftest*
9266 ac_cv_c_bigendian=yes
9267fi
9268rm -fr conftest*
9269fi
9270
9271fi
9272fi
9273
9274echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9275if test $ac_cv_c_bigendian = unknown; then
9276 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
9277fi
9278if test $ac_cv_c_bigendian = yes; then
9279 cat >> confdefs.h <<\EOF
9280#define WORDS_BIGENDIAN 1
9281EOF
9282
9283fi
9284
9285
9286
9287 if test "$cross_compiling" = "yes"; then
9288 cat >> confdefs.h <<\EOF
9289#define wxUSE_IOSTREAMH 1
9290EOF
9291
9292 else
9293
9294 ac_ext=C
9295# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9296ac_cpp='$CXXCPP $CPPFLAGS'
9297ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9298ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9299cross_compiling=$ac_cv_prog_cxx_cross
9300
9301
9302 for ac_hdr in iostream
9303do
9304ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9305echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7e99ad86 9306echo "configure:9307: checking for $ac_hdr" >&5
10f2d63a
VZ
9307if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9308 echo $ac_n "(cached) $ac_c" 1>&6
9309else
9310 cat > conftest.$ac_ext <<EOF
7e99ad86 9311#line 9312 "configure"
10f2d63a
VZ
9312#include "confdefs.h"
9313#include <$ac_hdr>
9314EOF
9315ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7e99ad86 9316{ (eval echo configure:9317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9317ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9318if test -z "$ac_err"; then
9319 rm -rf conftest*
9320 eval "ac_cv_header_$ac_safe=yes"
9321else
9322 echo "$ac_err" >&5
9323 echo "configure: failed program was:" >&5
9324 cat conftest.$ac_ext >&5
9325 rm -rf conftest*
9326 eval "ac_cv_header_$ac_safe=no"
9327fi
9328rm -f conftest*
9329fi
9330if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9331 echo "$ac_t""yes" 1>&6
9332 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9333 cat >> confdefs.h <<EOF
9334#define $ac_tr_hdr 1
9335EOF
9336
9337else
9338 echo "$ac_t""no" 1>&6
9339fi
9340done
9341
9342
9343 if test "x$HAVE_IOSTREAM" = x ; then
9344 cat >> confdefs.h <<\EOF
9345#define wxUSE_IOSTREAMH 1
9346EOF
9347
9348 else
9349 :
9350 fi
9351
9352 ac_ext=c
9353# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9354ac_cpp='$CPP $CPPFLAGS'
9355ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9356ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9357cross_compiling=$ac_cv_prog_cc_cross
9358
9359 fi
9360
9361
9362
9363 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
7e99ad86 9364echo "configure:9365: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
9365if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9366 echo $ac_n "(cached) $ac_c" 1>&6
9367else
9368
9369
9370 ac_ext=C
9371# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9372ac_cpp='$CXXCPP $CPPFLAGS'
9373ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9374ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9375cross_compiling=$ac_cv_prog_cxx_cross
9376
9377
9378 cat > conftest.$ac_ext <<EOF
7e99ad86 9379#line 9380 "configure"
10f2d63a
VZ
9380#include "confdefs.h"
9381
9382
9383int main() {
9384
9385 bool b = true;
9386
9387 return 0;
9388
9389; return 0; }
9390EOF
7e99ad86 9391if { (eval echo configure:9392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9392 rm -rf conftest*
9393
9394 cat >> confdefs.h <<\EOF
9395#define HAVE_BOOL 1
9396EOF
9397
9398 wx_cv_cpp_bool=yes
9399
9400else
9401 echo "configure: failed program was:" >&5
9402 cat conftest.$ac_ext >&5
9403 rm -rf conftest*
9404
9405 wx_cv_cpp_bool=no
9406
9407
9408fi
9409rm -f conftest*
9410
9411 ac_ext=c
9412# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9413ac_cpp='$CPP $CPPFLAGS'
9414ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9415ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9416cross_compiling=$ac_cv_prog_cc_cross
9417
9418
9419fi
9420
9421echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9422
9423 if test "$wx_cv_cpp_bool" = "yes"; then
9424 cat >> confdefs.h <<\EOF
9425#define HAVE_BOOL 1
9426EOF
9427
9428 fi
9429
9430
9431
10f2d63a 9432echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
7e99ad86 9433echo "configure:9434: checking if you need GNU extensions" >&5
10f2d63a
VZ
9434if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9435 echo $ac_n "(cached) $ac_c" 1>&6
9436else
9437
9438 cat > conftest.$ac_ext <<EOF
7e99ad86 9439#line 9440 "configure"
10f2d63a
VZ
9440#include "confdefs.h"
9441#include <features.h>
9442int main() {
9443
9444
9445#ifndef __GNU_LIBRARY__
9446 Compile error wanted
9447#endif
9448
9449
9450; return 0; }
9451EOF
7e99ad86 9452if { (eval echo configure:9453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9453 rm -rf conftest*
9454 wx_cv_gnu_extensions=yes
9455else
9456 echo "configure: failed program was:" >&5
9457 cat conftest.$ac_ext >&5
9458 rm -rf conftest*
9459 wx_cv_gnu_extensions=no
9460fi
9461rm -f conftest*
9462
9463fi
9464
9465
9466echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9467if test "$wx_cv_gnu_extensions" = "yes"; then
9468 cat >> confdefs.h <<EOF
9469#define _GNU_SOURCE 1
9470EOF
9471
9472fi
9473
9474
9475
9476echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
7e99ad86 9477echo "configure:9478: checking for wcslen in -lc" >&5
10f2d63a
VZ
9478ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9479if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9480 echo $ac_n "(cached) $ac_c" 1>&6
9481else
9482 ac_save_LIBS="$LIBS"
9483LIBS="-lc $LIBS"
9484cat > conftest.$ac_ext <<EOF
7e99ad86 9485#line 9486 "configure"
10f2d63a
VZ
9486#include "confdefs.h"
9487/* Override any gcc2 internal prototype to avoid an error. */
9488/* We use char because int might match the return type of a gcc2
9489 builtin and then its argument prototype would still apply. */
9490char wcslen();
9491
9492int main() {
9493wcslen()
9494; return 0; }
9495EOF
7e99ad86 9496if { (eval echo configure:9497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9497 rm -rf conftest*
9498 eval "ac_cv_lib_$ac_lib_var=yes"
9499else
9500 echo "configure: failed program was:" >&5
9501 cat conftest.$ac_ext >&5
9502 rm -rf conftest*
9503 eval "ac_cv_lib_$ac_lib_var=no"
9504fi
9505rm -f conftest*
9506LIBS="$ac_save_LIBS"
9507
9508fi
9509if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9510 echo "$ac_t""yes" 1>&6
9511
9512 cat >> confdefs.h <<\EOF
9513#define HAVE_WCSLEN 1
9514EOF
9515
9516 WCHAR_LINK=""
9517
9518else
9519 echo "$ac_t""no" 1>&6
9520
9521 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
7e99ad86 9522echo "configure:9523: checking for wcslen in -lw" >&5
10f2d63a
VZ
9523ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9524if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9525 echo $ac_n "(cached) $ac_c" 1>&6
9526else
9527 ac_save_LIBS="$LIBS"
9528LIBS="-lw $LIBS"
9529cat > conftest.$ac_ext <<EOF
7e99ad86 9530#line 9531 "configure"
10f2d63a
VZ
9531#include "confdefs.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 wcslen();
9536
9537int main() {
9538wcslen()
9539; return 0; }
9540EOF
7e99ad86 9541if { (eval echo configure:9542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9542 rm -rf conftest*
9543 eval "ac_cv_lib_$ac_lib_var=yes"
9544else
9545 echo "configure: failed program was:" >&5
9546 cat conftest.$ac_ext >&5
9547 rm -rf conftest*
9548 eval "ac_cv_lib_$ac_lib_var=no"
9549fi
9550rm -f conftest*
9551LIBS="$ac_save_LIBS"
9552
9553fi
9554if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9555 echo "$ac_t""yes" 1>&6
9556
9557 cat >> confdefs.h <<\EOF
9558#define HAVE_WCSLEN 1
9559EOF
9560
9561 WCHAR_LINK="-lw"
9562
9563else
9564 echo "$ac_t""no" 1>&6
9565fi
9566
9567
9568fi
9569
9570
9571echo $ac_n "checking for vprintf""... $ac_c" 1>&6
7e99ad86 9572echo "configure:9573: checking for vprintf" >&5
10f2d63a
VZ
9573if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9574 echo $ac_n "(cached) $ac_c" 1>&6
9575else
9576 cat > conftest.$ac_ext <<EOF
7e99ad86 9577#line 9578 "configure"
10f2d63a
VZ
9578#include "confdefs.h"
9579/* System header to define __stub macros and hopefully few prototypes,
9580 which can conflict with char vprintf(); below. */
9581#include <assert.h>
9582/* Override any gcc2 internal prototype to avoid an error. */
9583/* We use char because int might match the return type of a gcc2
9584 builtin and then its argument prototype would still apply. */
9585char vprintf();
9586
9587int main() {
9588
9589/* The GNU C library defines this for functions which it implements
9590 to always fail with ENOSYS. Some functions are actually named
9591 something starting with __ and the normal name is an alias. */
9592#if defined (__stub_vprintf) || defined (__stub___vprintf)
9593choke me
9594#else
2224580a 9595vprintf();
10f2d63a
VZ
9596#endif
9597
9598; return 0; }
9599EOF
7e99ad86 9600if { (eval echo configure:9601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9601 rm -rf conftest*
9602 eval "ac_cv_func_vprintf=yes"
9603else
9604 echo "configure: failed program was:" >&5
9605 cat conftest.$ac_ext >&5
9606 rm -rf conftest*
9607 eval "ac_cv_func_vprintf=no"
9608fi
9609rm -f conftest*
9610fi
9611
9612if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9613 echo "$ac_t""yes" 1>&6
9614 cat >> confdefs.h <<\EOF
9615#define HAVE_VPRINTF 1
9616EOF
9617
9618else
9619 echo "$ac_t""no" 1>&6
9620fi
9621
9622if test "$ac_cv_func_vprintf" != yes; then
9623echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
7e99ad86 9624echo "configure:9625: checking for _doprnt" >&5
10f2d63a
VZ
9625if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9626 echo $ac_n "(cached) $ac_c" 1>&6
9627else
9628 cat > conftest.$ac_ext <<EOF
7e99ad86 9629#line 9630 "configure"
10f2d63a
VZ
9630#include "confdefs.h"
9631/* System header to define __stub macros and hopefully few prototypes,
9632 which can conflict with char _doprnt(); below. */
9633#include <assert.h>
9634/* Override any gcc2 internal prototype to avoid an error. */
9635/* We use char because int might match the return type of a gcc2
9636 builtin and then its argument prototype would still apply. */
9637char _doprnt();
9638
9639int main() {
9640
9641/* The GNU C library defines this for functions which it implements
9642 to always fail with ENOSYS. Some functions are actually named
9643 something starting with __ and the normal name is an alias. */
9644#if defined (__stub__doprnt) || defined (__stub____doprnt)
9645choke me
9646#else
2224580a 9647_doprnt();
10f2d63a
VZ
9648#endif
9649
9650; return 0; }
9651EOF
7e99ad86 9652if { (eval echo configure:9653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9653 rm -rf conftest*
9654 eval "ac_cv_func__doprnt=yes"
9655else
9656 echo "configure: failed program was:" >&5
9657 cat conftest.$ac_ext >&5
9658 rm -rf conftest*
9659 eval "ac_cv_func__doprnt=no"
9660fi
9661rm -f conftest*
9662fi
9663
9664if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9665 echo "$ac_t""yes" 1>&6
9666 cat >> confdefs.h <<\EOF
9667#define HAVE_DOPRNT 1
9668EOF
9669
9670else
9671 echo "$ac_t""no" 1>&6
9672fi
9673
9674fi
9675
9676
9677for ac_func in vsnprintf
9678do
9679echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7e99ad86 9680echo "configure:9681: checking for $ac_func" >&5
10f2d63a
VZ
9681if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9682 echo $ac_n "(cached) $ac_c" 1>&6
9683else
9684 cat > conftest.$ac_ext <<EOF
7e99ad86 9685#line 9686 "configure"
10f2d63a
VZ
9686#include "confdefs.h"
9687/* System header to define __stub macros and hopefully few prototypes,
9688 which can conflict with char $ac_func(); below. */
9689#include <assert.h>
9690/* Override any gcc2 internal prototype to avoid an error. */
9691/* We use char because int might match the return type of a gcc2
9692 builtin and then its argument prototype would still apply. */
9693char $ac_func();
9694
9695int main() {
9696
9697/* The GNU C library defines this for functions which it implements
9698 to always fail with ENOSYS. Some functions are actually named
9699 something starting with __ and the normal name is an alias. */
9700#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9701choke me
9702#else
2224580a 9703$ac_func();
10f2d63a
VZ
9704#endif
9705
9706; return 0; }
9707EOF
7e99ad86 9708if { (eval echo configure:9709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9709 rm -rf conftest*
9710 eval "ac_cv_func_$ac_func=yes"
9711else
9712 echo "configure: failed program was:" >&5
9713 cat conftest.$ac_ext >&5
9714 rm -rf conftest*
9715 eval "ac_cv_func_$ac_func=no"
9716fi
9717rm -f conftest*
9718fi
9719
9720if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9721 echo "$ac_t""yes" 1>&6
9722 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9723 cat >> confdefs.h <<EOF
9724#define $ac_tr_func 1
9725EOF
9726 cat >> confdefs.h <<\EOF
9727#define HAVE_VSNPRINTF 1
9728EOF
9729
9730else
9731 echo "$ac_t""no" 1>&6
9732echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9733
9734fi
9735done
9736
9737
9738
9739ac_ext=C
9740# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9741ac_cpp='$CXXCPP $CPPFLAGS'
9742ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9743ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9744cross_compiling=$ac_cv_prog_cxx_cross
9745
9746
9747echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
7e99ad86 9748echo "configure:9749: checking for vsscanf" >&5
10f2d63a
VZ
9749if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
9750 echo $ac_n "(cached) $ac_c" 1>&6
9751else
9752
9753 if test "$cross_compiling" = yes; then
9754 wx_cv_func_vsscanf=no
9755
9756else
9757 cat > conftest.$ac_ext <<EOF
7e99ad86 9758#line 9759 "configure"
10f2d63a
VZ
9759#include "confdefs.h"
9760#ifdef __cplusplus
9761extern "C" void exit(int);
9762#endif
9763
9764 #include <stdio.h>
9765 #include <stdarg.h>
9766
9767 int try_vsscanf(const char *format, ...)
9768 {
9769 va_list ap;
9770 va_start(ap, format);
9771
9772 vsscanf("17", format, ap);
9773
9774 va_end(ap);
9775 }
9776
9777 int main()
9778 {
9779 int i;
9780 try_vsscanf("%d", &i);
9781 return i == 17 ? 0 : 1;
9782 }
9783
9784EOF
7e99ad86 9785if { (eval echo configure:9786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9786then
9787
9788 cat >> confdefs.h <<\EOF
9789#define HAVE_VSSCANF 1
9790EOF
9791
9792 wx_cv_func_vsscanf=yes
9793
9794else
9795 echo "configure: failed program was:" >&5
9796 cat conftest.$ac_ext >&5
9797 rm -fr conftest*
9798 wx_cv_func_vsscanf=no
9799fi
9800rm -fr conftest*
9801fi
9802
9803
9804fi
9805
9806echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
9807
9808ac_ext=c
9809# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9810ac_cpp='$CPP $CPPFLAGS'
9811ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9812ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9813cross_compiling=$ac_cv_prog_cc_cross
9814
9815
9816if test "$USE_UNIX" = 1; then
9817
9818for ac_func in vfork
9819do
9820echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7e99ad86 9821echo "configure:9822: checking for $ac_func" >&5
10f2d63a
VZ
9822if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9823 echo $ac_n "(cached) $ac_c" 1>&6
9824else
9825 cat > conftest.$ac_ext <<EOF
7e99ad86 9826#line 9827 "configure"
10f2d63a
VZ
9827#include "confdefs.h"
9828/* System header to define __stub macros and hopefully few prototypes,
9829 which can conflict with char $ac_func(); below. */
9830#include <assert.h>
9831/* Override any gcc2 internal prototype to avoid an error. */
9832/* We use char because int might match the return type of a gcc2
9833 builtin and then its argument prototype would still apply. */
9834char $ac_func();
9835
9836int main() {
9837
9838/* The GNU C library defines this for functions which it implements
9839 to always fail with ENOSYS. Some functions are actually named
9840 something starting with __ and the normal name is an alias. */
9841#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9842choke me
9843#else
2224580a 9844$ac_func();
10f2d63a
VZ
9845#endif
9846
9847; return 0; }
9848EOF
7e99ad86 9849if { (eval echo configure:9850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
270a909e
VZ
9850 rm -rf conftest*
9851 eval "ac_cv_func_$ac_func=yes"
9852else
9853 echo "configure: failed program was:" >&5
9854 cat conftest.$ac_ext >&5
9855 rm -rf conftest*
9856 eval "ac_cv_func_$ac_func=no"
9857fi
9858rm -f conftest*
9859fi
9860
9861if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9862 echo "$ac_t""yes" 1>&6
9863 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9864 cat >> confdefs.h <<EOF
9865#define $ac_tr_func 1
9866EOF
9867
9868else
9869 echo "$ac_t""no" 1>&6
9870fi
9871done
9872
9873
9874for ac_func in timegm
9875do
9876echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7e99ad86 9877echo "configure:9878: checking for $ac_func" >&5
270a909e
VZ
9878if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9879 echo $ac_n "(cached) $ac_c" 1>&6
9880else
9881 cat > conftest.$ac_ext <<EOF
7e99ad86 9882#line 9883 "configure"
270a909e
VZ
9883#include "confdefs.h"
9884/* System header to define __stub macros and hopefully few prototypes,
9885 which can conflict with char $ac_func(); below. */
9886#include <assert.h>
9887/* Override any gcc2 internal prototype to avoid an error. */
9888/* We use char because int might match the return type of a gcc2
9889 builtin and then its argument prototype would still apply. */
9890char $ac_func();
9891
9892int main() {
9893
9894/* The GNU C library defines this for functions which it implements
9895 to always fail with ENOSYS. Some functions are actually named
9896 something starting with __ and the normal name is an alias. */
9897#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9898choke me
9899#else
2224580a 9900$ac_func();
270a909e
VZ
9901#endif
9902
9903; return 0; }
9904EOF
7e99ad86 9905if { (eval echo configure:9906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9906 rm -rf conftest*
9907 eval "ac_cv_func_$ac_func=yes"
9908else
9909 echo "configure: failed program was:" >&5
9910 cat conftest.$ac_ext >&5
9911 rm -rf conftest*
9912 eval "ac_cv_func_$ac_func=no"
9913fi
9914rm -f conftest*
9915fi
9916
9917if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9918 echo "$ac_t""yes" 1>&6
9919 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9920 cat >> confdefs.h <<EOF
9921#define $ac_tr_func 1
9922EOF
9923
9924else
9925 echo "$ac_t""no" 1>&6
9926fi
9927done
9928
9929
b12915c1
VZ
9930HAVE_SOME_SLEEP_FUNC=0
9931if test "$USE_BEOS" = 1; then
9932 cat >> confdefs.h <<\EOF
9933#define HAVE_SLEEP 1
9934EOF
9935
9936 HAVE_SOME_SLEEP_FUNC=1
9937fi
9938
9939if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
9940 POSIX4_LINK=
9941 for ac_func in nanosleep
10f2d63a
VZ
9942do
9943echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7e99ad86 9944echo "configure:9945: checking for $ac_func" >&5
10f2d63a
VZ
9945if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9946 echo $ac_n "(cached) $ac_c" 1>&6
9947else
9948 cat > conftest.$ac_ext <<EOF
7e99ad86 9949#line 9950 "configure"
10f2d63a
VZ
9950#include "confdefs.h"
9951/* System header to define __stub macros and hopefully few prototypes,
9952 which can conflict with char $ac_func(); below. */
9953#include <assert.h>
9954/* Override any gcc2 internal prototype to avoid an error. */
9955/* We use char because int might match the return type of a gcc2
9956 builtin and then its argument prototype would still apply. */
9957char $ac_func();
9958
9959int main() {
9960
9961/* The GNU C library defines this for functions which it implements
9962 to always fail with ENOSYS. Some functions are actually named
9963 something starting with __ and the normal name is an alias. */
9964#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9965choke me
9966#else
2224580a 9967$ac_func();
10f2d63a
VZ
9968#endif
9969
9970; return 0; }
9971EOF
7e99ad86 9972if { (eval echo configure:9973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9973 rm -rf conftest*
9974 eval "ac_cv_func_$ac_func=yes"
9975else
9976 echo "configure: failed program was:" >&5
9977 cat conftest.$ac_ext >&5
9978 rm -rf conftest*
9979 eval "ac_cv_func_$ac_func=no"
9980fi
9981rm -f conftest*
9982fi
9983
9984if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9985 echo "$ac_t""yes" 1>&6
9986 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9987 cat >> confdefs.h <<EOF
9988#define $ac_tr_func 1
9989EOF
9990 cat >> confdefs.h <<\EOF
9991#define HAVE_NANOSLEEP 1
9992EOF
9993
9994else
9995 echo "$ac_t""no" 1>&6
9996echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
7e99ad86 9997echo "configure:9998: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
9998ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
9999if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10000 echo $ac_n "(cached) $ac_c" 1>&6
10001else
10002 ac_save_LIBS="$LIBS"
10003LIBS="-lposix4 $LIBS"
10004cat > conftest.$ac_ext <<EOF
7e99ad86 10005#line 10006 "configure"
10f2d63a
VZ
10006#include "confdefs.h"
10007/* Override any gcc2 internal prototype to avoid an error. */
10008/* We use char because int might match the return type of a gcc2
10009 builtin and then its argument prototype would still apply. */
10010char nanosleep();
10011
10012int main() {
10013nanosleep()
10014; return 0; }
10015EOF
7e99ad86 10016if { (eval echo configure:10017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10017 rm -rf conftest*
10018 eval "ac_cv_lib_$ac_lib_var=yes"
10019else
10020 echo "configure: failed program was:" >&5
10021 cat conftest.$ac_ext >&5
10022 rm -rf conftest*
10023 eval "ac_cv_lib_$ac_lib_var=no"
10024fi
10025rm -f conftest*
10026LIBS="$ac_save_LIBS"
10027
10028fi
10029if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10030 echo "$ac_t""yes" 1>&6
10031
b12915c1 10032 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10033#define HAVE_NANOSLEEP 1
10034EOF
10035
b12915c1
VZ
10036 POSIX4_LINK="-lposix4"
10037
10f2d63a
VZ
10038else
10039 echo "$ac_t""no" 1>&6
10040
b12915c1 10041 for ac_func in usleep
10f2d63a
VZ
10042do
10043echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7e99ad86 10044echo "configure:10045: checking for $ac_func" >&5
10f2d63a
VZ
10045if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10046 echo $ac_n "(cached) $ac_c" 1>&6
10047else
10048 cat > conftest.$ac_ext <<EOF
7e99ad86 10049#line 10050 "configure"
10f2d63a
VZ
10050#include "confdefs.h"
10051/* System header to define __stub macros and hopefully few prototypes,
10052 which can conflict with char $ac_func(); below. */
10053#include <assert.h>
10054/* Override any gcc2 internal prototype to avoid an error. */
10055/* We use char because int might match the return type of a gcc2
10056 builtin and then its argument prototype would still apply. */
10057char $ac_func();
10058
10059int main() {
10060
10061/* The GNU C library defines this for functions which it implements
10062 to always fail with ENOSYS. Some functions are actually named
10063 something starting with __ and the normal name is an alias. */
10064#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10065choke me
10066#else
2224580a 10067$ac_func();
10f2d63a
VZ
10068#endif
10069
10070; return 0; }
10071EOF
7e99ad86 10072if { (eval echo configure:10073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10073 rm -rf conftest*
10074 eval "ac_cv_func_$ac_func=yes"
10075else
10076 echo "configure: failed program was:" >&5
10077 cat conftest.$ac_ext >&5
10078 rm -rf conftest*
10079 eval "ac_cv_func_$ac_func=no"
10080fi
10081rm -f conftest*
10082fi
10083
10084if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10085 echo "$ac_t""yes" 1>&6
10086 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10087 cat >> confdefs.h <<EOF
10088#define $ac_tr_func 1
10089EOF
b12915c1 10090
10f2d63a
VZ
10091else
10092 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10093fi
10094done
10095
b12915c1
VZ
10096 echo "configure: warning: wxSleep() function will not work" 1>&2
10097
10098
10f2d63a
VZ
10099fi
10100
b12915c1
VZ
10101
10102
10f2d63a
VZ
10103fi
10104done
10105
b12915c1 10106fi
10f2d63a
VZ
10107
10108for ac_func in uname gethostname
10109do
10110echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7e99ad86 10111echo "configure:10112: checking for $ac_func" >&5
10f2d63a
VZ
10112if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10113 echo $ac_n "(cached) $ac_c" 1>&6
10114else
10115 cat > conftest.$ac_ext <<EOF
7e99ad86 10116#line 10117 "configure"
10f2d63a
VZ
10117#include "confdefs.h"
10118/* System header to define __stub macros and hopefully few prototypes,
10119 which can conflict with char $ac_func(); below. */
10120#include <assert.h>
10121/* Override any gcc2 internal prototype to avoid an error. */
10122/* We use char because int might match the return type of a gcc2
10123 builtin and then its argument prototype would still apply. */
10124char $ac_func();
10125
10126int main() {
10127
10128/* The GNU C library defines this for functions which it implements
10129 to always fail with ENOSYS. Some functions are actually named
10130 something starting with __ and the normal name is an alias. */
10131#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10132choke me
10133#else
2224580a 10134$ac_func();
10f2d63a
VZ
10135#endif
10136
10137; return 0; }
10138EOF
7e99ad86 10139if { (eval echo configure:10140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10140 rm -rf conftest*
10141 eval "ac_cv_func_$ac_func=yes"
10142else
10143 echo "configure: failed program was:" >&5
10144 cat conftest.$ac_ext >&5
10145 rm -rf conftest*
10146 eval "ac_cv_func_$ac_func=no"
10147fi
10148rm -f conftest*
10149fi
10150
10151if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10152 echo "$ac_t""yes" 1>&6
10153 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10154 cat >> confdefs.h <<EOF
10155#define $ac_tr_func 1
10156EOF
10157 break
10158else
10159 echo "$ac_t""no" 1>&6
10160fi
10161done
10162
10163
10164for ac_func in strtok_r
10165do
10166echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7e99ad86 10167echo "configure:10168: checking for $ac_func" >&5
10f2d63a
VZ
10168if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10169 echo $ac_n "(cached) $ac_c" 1>&6
10170else
10171 cat > conftest.$ac_ext <<EOF
7e99ad86 10172#line 10173 "configure"
10f2d63a
VZ
10173#include "confdefs.h"
10174/* System header to define __stub macros and hopefully few prototypes,
10175 which can conflict with char $ac_func(); below. */
10176#include <assert.h>
10177/* Override any gcc2 internal prototype to avoid an error. */
10178/* We use char because int might match the return type of a gcc2
10179 builtin and then its argument prototype would still apply. */
10180char $ac_func();
10181
10182int main() {
10183
10184/* The GNU C library defines this for functions which it implements
10185 to always fail with ENOSYS. Some functions are actually named
10186 something starting with __ and the normal name is an alias. */
10187#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10188choke me
10189#else
2224580a 10190$ac_func();
10f2d63a
VZ
10191#endif
10192
10193; return 0; }
10194EOF
7e99ad86 10195if { (eval echo configure:10196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10196 rm -rf conftest*
10197 eval "ac_cv_func_$ac_func=yes"
10198else
10199 echo "configure: failed program was:" >&5
10200 cat conftest.$ac_ext >&5
10201 rm -rf conftest*
10202 eval "ac_cv_func_$ac_func=no"
10203fi
10204rm -f conftest*
10205fi
10206
10207if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10208 echo "$ac_t""yes" 1>&6
10209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10210 cat >> confdefs.h <<EOF
10211#define $ac_tr_func 1
10212EOF
10213
10214else
10215 echo "$ac_t""no" 1>&6
10216fi
10217done
10218
10219
c63c7106 10220INET_LINK=
10f2d63a
VZ
10221for ac_func in inet_addr
10222do
10223echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7e99ad86 10224echo "configure:10225: checking for $ac_func" >&5
10f2d63a
VZ
10225if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10226 echo $ac_n "(cached) $ac_c" 1>&6
10227else
10228 cat > conftest.$ac_ext <<EOF
7e99ad86 10229#line 10230 "configure"
10f2d63a
VZ
10230#include "confdefs.h"
10231/* System header to define __stub macros and hopefully few prototypes,
10232 which can conflict with char $ac_func(); below. */
10233#include <assert.h>
10234/* Override any gcc2 internal prototype to avoid an error. */
10235/* We use char because int might match the return type of a gcc2
10236 builtin and then its argument prototype would still apply. */
10237char $ac_func();
10238
10239int main() {
10240
10241/* The GNU C library defines this for functions which it implements
10242 to always fail with ENOSYS. Some functions are actually named
10243 something starting with __ and the normal name is an alias. */
10244#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10245choke me
10246#else
2224580a 10247$ac_func();
10f2d63a
VZ
10248#endif
10249
10250; return 0; }
10251EOF
7e99ad86 10252if { (eval echo configure:10253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10253 rm -rf conftest*
10254 eval "ac_cv_func_$ac_func=yes"
10255else
10256 echo "configure: failed program was:" >&5
10257 cat conftest.$ac_ext >&5
10258 rm -rf conftest*
10259 eval "ac_cv_func_$ac_func=no"
10260fi
10261rm -f conftest*
10262fi
10263
10264if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10265 echo "$ac_t""yes" 1>&6
10266 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10267 cat >> confdefs.h <<EOF
10268#define $ac_tr_func 1
10269EOF
c63c7106
VZ
10270 cat >> confdefs.h <<\EOF
10271#define HAVE_INET_ADDR 1
10272EOF
10273
10f2d63a
VZ
10274else
10275 echo "$ac_t""no" 1>&6
c63c7106 10276echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
7e99ad86 10277echo "configure:10278: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
10278ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
10279if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10280 echo $ac_n "(cached) $ac_c" 1>&6
10281else
10282 ac_save_LIBS="$LIBS"
10283LIBS="-lnsl $LIBS"
10284cat > conftest.$ac_ext <<EOF
7e99ad86 10285#line 10286 "configure"
c63c7106
VZ
10286#include "confdefs.h"
10287/* Override any gcc2 internal prototype to avoid an error. */
10288/* We use char because int might match the return type of a gcc2
10289 builtin and then its argument prototype would still apply. */
10290char inet_addr();
10291
10292int main() {
10293inet_addr()
10294; return 0; }
10295EOF
7e99ad86 10296if { (eval echo configure:10297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10297 rm -rf conftest*
10298 eval "ac_cv_lib_$ac_lib_var=yes"
10299else
10300 echo "configure: failed program was:" >&5
10301 cat conftest.$ac_ext >&5
10302 rm -rf conftest*
10303 eval "ac_cv_lib_$ac_lib_var=no"
10304fi
10305rm -f conftest*
10306LIBS="$ac_save_LIBS"
10307
10308fi
10309if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10310 echo "$ac_t""yes" 1>&6
10311 INET_LINK="nsl"
10312else
10313 echo "$ac_t""no" 1>&6
10314echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
7e99ad86 10315echo "configure:10316: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
10316ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
10317if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10318 echo $ac_n "(cached) $ac_c" 1>&6
10319else
10320 ac_save_LIBS="$LIBS"
10321LIBS="-lresolv $LIBS"
10322cat > conftest.$ac_ext <<EOF
7e99ad86 10323#line 10324 "configure"
c63c7106
VZ
10324#include "confdefs.h"
10325/* Override any gcc2 internal prototype to avoid an error. */
10326/* We use char because int might match the return type of a gcc2
10327 builtin and then its argument prototype would still apply. */
10328char inet_addr();
10329
10330int main() {
10331inet_addr()
10332; return 0; }
10333EOF
7e99ad86 10334if { (eval echo configure:10335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10335 rm -rf conftest*
10336 eval "ac_cv_lib_$ac_lib_var=yes"
10337else
10338 echo "configure: failed program was:" >&5
10339 cat conftest.$ac_ext >&5
10340 rm -rf conftest*
10341 eval "ac_cv_lib_$ac_lib_var=no"
10342fi
10343rm -f conftest*
10344LIBS="$ac_save_LIBS"
10345
10346fi
10347if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10348 echo "$ac_t""yes" 1>&6
10349 INET_LINK="resolv"
10350
10351else
10352 echo "$ac_t""no" 1>&6
10353fi
10354
10355
10356fi
10357
10358
10359
10f2d63a
VZ
10360fi
10361done
10362
c63c7106 10363
10f2d63a
VZ
10364for ac_func in inet_aton
10365do
10366echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7e99ad86 10367echo "configure:10368: checking for $ac_func" >&5
10f2d63a
VZ
10368if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10369 echo $ac_n "(cached) $ac_c" 1>&6
10370else
10371 cat > conftest.$ac_ext <<EOF
7e99ad86 10372#line 10373 "configure"
10f2d63a
VZ
10373#include "confdefs.h"
10374/* System header to define __stub macros and hopefully few prototypes,
10375 which can conflict with char $ac_func(); below. */
10376#include <assert.h>
10377/* Override any gcc2 internal prototype to avoid an error. */
10378/* We use char because int might match the return type of a gcc2
10379 builtin and then its argument prototype would still apply. */
10380char $ac_func();
10381
10382int main() {
10383
10384/* The GNU C library defines this for functions which it implements
10385 to always fail with ENOSYS. Some functions are actually named
10386 something starting with __ and the normal name is an alias. */
10387#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10388choke me
10389#else
2224580a 10390$ac_func();
10f2d63a
VZ
10391#endif
10392
10393; return 0; }
10394EOF
7e99ad86 10395if { (eval echo configure:10396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10396 rm -rf conftest*
10397 eval "ac_cv_func_$ac_func=yes"
10398else
10399 echo "configure: failed program was:" >&5
10400 cat conftest.$ac_ext >&5
10401 rm -rf conftest*
10402 eval "ac_cv_func_$ac_func=no"
10403fi
10404rm -f conftest*
10405fi
10406
10407if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10408 echo "$ac_t""yes" 1>&6
10409 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10410 cat >> confdefs.h <<EOF
10411#define $ac_tr_func 1
10412EOF
c63c7106
VZ
10413 cat >> confdefs.h <<\EOF
10414#define HAVE_INET_ATON 1
10415EOF
10416
10f2d63a
VZ
10417else
10418 echo "$ac_t""no" 1>&6
c63c7106 10419 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
7e99ad86 10420echo "configure:10421: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 10421ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
10422if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10423 echo $ac_n "(cached) $ac_c" 1>&6
10424else
10425 ac_save_LIBS="$LIBS"
c63c7106 10426LIBS="-l$INET_LINK $LIBS"
10f2d63a 10427cat > conftest.$ac_ext <<EOF
7e99ad86 10428#line 10429 "configure"
10f2d63a
VZ
10429#include "confdefs.h"
10430/* Override any gcc2 internal prototype to avoid an error. */
10431/* We use char because int might match the return type of a gcc2
10432 builtin and then its argument prototype would still apply. */
10433char inet_aton();
10434
10435int main() {
10436inet_aton()
10437; return 0; }
10438EOF
7e99ad86 10439if { (eval echo configure:10440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10440 rm -rf conftest*
10441 eval "ac_cv_lib_$ac_lib_var=yes"
10442else
10443 echo "configure: failed program was:" >&5
10444 cat conftest.$ac_ext >&5
10445 rm -rf conftest*
10446 eval "ac_cv_lib_$ac_lib_var=no"
10447fi
10448rm -f conftest*
10449LIBS="$ac_save_LIBS"
10450
10451fi
10452if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10453 echo "$ac_t""yes" 1>&6
c63c7106
VZ
10454 cat >> confdefs.h <<\EOF
10455#define HAVE_INET_ATON 1
10f2d63a
VZ
10456EOF
10457
10f2d63a
VZ
10458else
10459 echo "$ac_t""no" 1>&6
10460fi
10461
c63c7106
VZ
10462
10463fi
10464done
10465
10466
10467if test "x$INET_LINK" != "x"; then
10468 cat >> confdefs.h <<\EOF
10469#define HAVE_INET_ADDR 1
10470EOF
10471
10472 INET_LINK="-l$INET_LINK"
10473fi
10f2d63a
VZ
10474
10475fi
10476
10477
10478cat > confcache <<\EOF
10479# This file is a shell script that caches the results of configure
10480# tests run on this system so they can be shared between configure
10481# scripts and configure runs. It is not useful on other systems.
10482# If it contains results you don't want to keep, you may remove or edit it.
10483#
10484# By default, configure uses ./config.cache as the cache file,
10485# creating it if it does not exist already. You can give configure
10486# the --cache-file=FILE option to use a different cache file; that is
10487# what configure does when it calls configure scripts in
10488# subdirectories, so they share the cache.
10489# Giving --cache-file=/dev/null disables caching, for debugging configure.
10490# config.status only pays attention to the cache file if you give it the
10491# --recheck option to rerun configure.
10492#
10493EOF
10494# The following way of writing the cache mishandles newlines in values,
10495# but we know of no workaround that is simple, portable, and efficient.
10496# So, don't put newlines in cache variables' values.
10497# Ultrix sh set writes to stderr and can't be redirected directly,
10498# and sets the high bit in the cache file unless we assign to the vars.
10499(set) 2>&1 |
10500 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10501 *ac_space=\ *)
10502 # `set' does not quote correctly, so add quotes (double-quote substitution
10503 # turns \\\\ into \\, and sed turns \\ into \).
10504 sed -n \
10505 -e "s/'/'\\\\''/g" \
10506 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10507 ;;
10508 *)
10509 # `set' quotes correctly as required by POSIX, so do not add quotes.
10510 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10511 ;;
10512 esac >> confcache
10513if cmp -s $cache_file confcache; then
10514 :
10515else
10516 if test -w $cache_file; then
10517 echo "updating cache $cache_file"
10518 cat confcache > $cache_file
10519 else
10520 echo "not updating unwritable cache $cache_file"
10521 fi
10522fi
10523rm -f confcache
10524
10525
10526
10527if test "$USE_UNIX" = 1; then
10528
10529
10530THREADS_LINK=""
10531THREADS_OBJ=""
10532
10533if test "$wxUSE_THREADS" = "yes" ; then
10534 if test "$wxUSE_WINE" = 1 ; then
10535 echo "configure: warning: Threads are not supported under WINE" 1>&2
10536 wxUSE_THREADS="no"
b12915c1
VZ
10537 elif test "$USE_BEOS" = 1; then
10538 echo "configure: warning: BeOS threads are not yet supported" 1>&2
10539 wxUSE_THREADS="no"
10f2d63a
VZ
10540 fi
10541fi
10542
10543if test "$wxUSE_THREADS" = "yes" ; then
10544
10545 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
7e99ad86 10546echo "configure:10547: checking for pthread_create in -lpthread" >&5
10f2d63a
VZ
10547ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10548if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10549 echo $ac_n "(cached) $ac_c" 1>&6
10550else
10551 ac_save_LIBS="$LIBS"
10552LIBS="-lpthread $LIBS"
10553cat > conftest.$ac_ext <<EOF
7e99ad86 10554#line 10555 "configure"
10f2d63a
VZ
10555#include "confdefs.h"
10556/* Override any gcc2 internal prototype to avoid an error. */
10557/* We use char because int might match the return type of a gcc2
10558 builtin and then its argument prototype would still apply. */
10559char pthread_create();
10560
10561int main() {
10562pthread_create()
10563; return 0; }
10564EOF
7e99ad86 10565if { (eval echo configure:10566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10566 rm -rf conftest*
10567 eval "ac_cv_lib_$ac_lib_var=yes"
10568else
10569 echo "configure: failed program was:" >&5
10570 cat conftest.$ac_ext >&5
10571 rm -rf conftest*
10572 eval "ac_cv_lib_$ac_lib_var=no"
10573fi
10574rm -f conftest*
10575LIBS="$ac_save_LIBS"
10576
10577fi
10578if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10579 echo "$ac_t""yes" 1>&6
10580
10581 THREADS_OBJ="threadpsx.lo"
10582 THREADS_LINK="pthread"
10583
10584else
10585 echo "$ac_t""no" 1>&6
10586
10587 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
7e99ad86 10588echo "configure:10589: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
10589ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10590if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10591 echo $ac_n "(cached) $ac_c" 1>&6
10592else
10593 ac_save_LIBS="$LIBS"
10594LIBS="-lc_r $LIBS"
10595cat > conftest.$ac_ext <<EOF
7e99ad86 10596#line 10597 "configure"
10f2d63a
VZ
10597#include "confdefs.h"
10598/* Override any gcc2 internal prototype to avoid an error. */
10599/* We use char because int might match the return type of a gcc2
10600 builtin and then its argument prototype would still apply. */
10601char pthread_create();
10602
10603int main() {
10604pthread_create()
10605; return 0; }
10606EOF
7e99ad86 10607if { (eval echo configure:10608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10608 rm -rf conftest*
10609 eval "ac_cv_lib_$ac_lib_var=yes"
10610else
10611 echo "configure: failed program was:" >&5
10612 cat conftest.$ac_ext >&5
10613 rm -rf conftest*
10614 eval "ac_cv_lib_$ac_lib_var=no"
10615fi
10616rm -f conftest*
10617LIBS="$ac_save_LIBS"
10618
10619fi
10620if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10621 echo "$ac_t""yes" 1>&6
10622
10623 THREADS_OBJ="threadpsx.lo"
10624 THREADS_LINK="c_r"
10625
10626else
10627 echo "$ac_t""no" 1>&6
10628
10629 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10630echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
7e99ad86 10631echo "configure:10632: checking for sys/prctl.h" >&5
10f2d63a
VZ
10632if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10633 echo $ac_n "(cached) $ac_c" 1>&6
10634else
10635 cat > conftest.$ac_ext <<EOF
7e99ad86 10636#line 10637 "configure"
10f2d63a
VZ
10637#include "confdefs.h"
10638#include <sys/prctl.h>
10639EOF
10640ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7e99ad86 10641{ (eval echo configure:10642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10642ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10643if test -z "$ac_err"; then
10644 rm -rf conftest*
10645 eval "ac_cv_header_$ac_safe=yes"
10646else
10647 echo "$ac_err" >&5
10648 echo "configure: failed program was:" >&5
10649 cat conftest.$ac_ext >&5
10650 rm -rf conftest*
10651 eval "ac_cv_header_$ac_safe=no"
10652fi
10653rm -f conftest*
10654fi
10655if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10656 echo "$ac_t""yes" 1>&6
10657
10658 THREADS_OBJ="threadsgi.lo"
10659
10660else
10661 echo "$ac_t""no" 1>&6
10662fi
10663
10664
10665fi
10666
10667
10668fi
10669
10670
10671 if test -z "$THREADS_OBJ" ; then
10672 wxUSE_THREADS=no
10673 echo "configure: warning: No thread support on this system" 1>&2
10674 fi
10675fi
10676
10677if test "$wxUSE_THREADS" = "yes" ; then
70846f0a
VZ
10678 for ac_func in thr_setconcurrency
10679do
10680echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7e99ad86 10681echo "configure:10682: checking for $ac_func" >&5
70846f0a
VZ
10682if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10683 echo $ac_n "(cached) $ac_c" 1>&6
10684else
10685 cat > conftest.$ac_ext <<EOF
7e99ad86 10686#line 10687 "configure"
70846f0a
VZ
10687#include "confdefs.h"
10688/* System header to define __stub macros and hopefully few prototypes,
10689 which can conflict with char $ac_func(); below. */
10690#include <assert.h>
10691/* Override any gcc2 internal prototype to avoid an error. */
10692/* We use char because int might match the return type of a gcc2
10693 builtin and then its argument prototype would still apply. */
10694char $ac_func();
10695
10696int main() {
10697
10698/* The GNU C library defines this for functions which it implements
10699 to always fail with ENOSYS. Some functions are actually named
10700 something starting with __ and the normal name is an alias. */
10701#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10702choke me
10703#else
2224580a 10704$ac_func();
70846f0a
VZ
10705#endif
10706
10707; return 0; }
10708EOF
7e99ad86 10709if { (eval echo configure:10710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
70846f0a
VZ
10710 rm -rf conftest*
10711 eval "ac_cv_func_$ac_func=yes"
10712else
10713 echo "configure: failed program was:" >&5
10714 cat conftest.$ac_ext >&5
10715 rm -rf conftest*
10716 eval "ac_cv_func_$ac_func=no"
10717fi
10718rm -f conftest*
10719fi
10720
10721if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10722 echo "$ac_t""yes" 1>&6
10723 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10724 cat >> confdefs.h <<EOF
10725#define $ac_tr_func 1
10726EOF
10727
10728else
10729 echo "$ac_t""no" 1>&6
10730fi
10731done
10732
10733
10f2d63a
VZ
10734
10735 for ac_hdr in sched.h
10736do
10737ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10738echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7e99ad86 10739echo "configure:10740: checking for $ac_hdr" >&5
10f2d63a
VZ
10740if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10741 echo $ac_n "(cached) $ac_c" 1>&6
10742else
10743 cat > conftest.$ac_ext <<EOF
7e99ad86 10744#line 10745 "configure"
10f2d63a
VZ
10745#include "confdefs.h"
10746#include <$ac_hdr>
10747EOF
10748ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7e99ad86 10749{ (eval echo configure:10750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10750ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10751if test -z "$ac_err"; then
10752 rm -rf conftest*
10753 eval "ac_cv_header_$ac_safe=yes"
10754else
10755 echo "$ac_err" >&5
10756 echo "configure: failed program was:" >&5
10757 cat conftest.$ac_ext >&5
10758 rm -rf conftest*
10759 eval "ac_cv_header_$ac_safe=no"
10760fi
10761rm -f conftest*
10762fi
10763if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10764 echo "$ac_t""yes" 1>&6
10765 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10766 cat >> confdefs.h <<EOF
10767#define $ac_tr_hdr 1
10768EOF
10769
10770else
10771 echo "$ac_t""no" 1>&6
10772fi
10773done
10774
10775
10776 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
7e99ad86 10777echo "configure:10778: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
10778ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
10779if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10780 echo $ac_n "(cached) $ac_c" 1>&6
10781else
10782 ac_save_LIBS="$LIBS"
10783LIBS="-l$THREADS_LINK $LIBS"
10784cat > conftest.$ac_ext <<EOF
7e99ad86 10785#line 10786 "configure"
10f2d63a
VZ
10786#include "confdefs.h"
10787/* Override any gcc2 internal prototype to avoid an error. */
10788/* We use char because int might match the return type of a gcc2
10789 builtin and then its argument prototype would still apply. */
10790char sched_yield();
10791
10792int main() {
10793sched_yield()
10794; return 0; }
10795EOF
7e99ad86 10796if { (eval echo configure:10797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10797 rm -rf conftest*
10798 eval "ac_cv_lib_$ac_lib_var=yes"
10799else
10800 echo "configure: failed program was:" >&5
10801 cat conftest.$ac_ext >&5
10802 rm -rf conftest*
10803 eval "ac_cv_lib_$ac_lib_var=no"
10804fi
10805rm -f conftest*
10806LIBS="$ac_save_LIBS"
10807
10808fi
10809if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10810 echo "$ac_t""yes" 1>&6
10811 cat >> confdefs.h <<\EOF
10812#define HAVE_SCHED_YIELD 1
10813EOF
10814
10815else
10816 echo "$ac_t""no" 1>&6
10817echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
7e99ad86 10818echo "configure:10819: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
10819ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
10820if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10821 echo $ac_n "(cached) $ac_c" 1>&6
10822else
10823 ac_save_LIBS="$LIBS"
10824LIBS="-l"posix4" $LIBS"
10825cat > conftest.$ac_ext <<EOF
7e99ad86 10826#line 10827 "configure"
10f2d63a
VZ
10827#include "confdefs.h"
10828/* Override any gcc2 internal prototype to avoid an error. */
10829/* We use char because int might match the return type of a gcc2
10830 builtin and then its argument prototype would still apply. */
10831char sched_yield();
10832
10833int main() {
10834sched_yield()
10835; return 0; }
10836EOF
7e99ad86 10837if { (eval echo configure:10838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10838 rm -rf conftest*
10839 eval "ac_cv_lib_$ac_lib_var=yes"
10840else
10841 echo "configure: failed program was:" >&5
10842 cat conftest.$ac_ext >&5
10843 rm -rf conftest*
10844 eval "ac_cv_lib_$ac_lib_var=no"
10845fi
10846rm -f conftest*
10847LIBS="$ac_save_LIBS"
10848
10849fi
10850if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10851 echo "$ac_t""yes" 1>&6
10852 cat >> confdefs.h <<\EOF
10853#define HAVE_SCHED_YIELD 1
10854EOF
10855 POSIX4_LINK="-lposix4"
10856else
10857 echo "$ac_t""no" 1>&6
10858echo "configure: warning: wxThread::Yield will not work properly" 1>&2
10859
10860fi
10861
10862
10863fi
10864
10865
10866 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
7e99ad86 10867echo "configure:10868: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
10868ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10869if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10870 echo $ac_n "(cached) $ac_c" 1>&6
10871else
10872 ac_save_LIBS="$LIBS"
10873LIBS="-l$THREADS_LINK $LIBS"
10874cat > conftest.$ac_ext <<EOF
7e99ad86 10875#line 10876 "configure"
10f2d63a
VZ
10876#include "confdefs.h"
10877/* Override any gcc2 internal prototype to avoid an error. */
10878/* We use char because int might match the return type of a gcc2
10879 builtin and then its argument prototype would still apply. */
10880char pthread_attr_getschedpolicy();
10881
10882int main() {
10883pthread_attr_getschedpolicy()
10884; return 0; }
10885EOF
7e99ad86 10886if { (eval echo configure:10887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10887 rm -rf conftest*
10888 eval "ac_cv_lib_$ac_lib_var=yes"
10889else
10890 echo "configure: failed program was:" >&5
10891 cat conftest.$ac_ext >&5
10892 rm -rf conftest*
10893 eval "ac_cv_lib_$ac_lib_var=no"
10894fi
10895rm -f conftest*
10896LIBS="$ac_save_LIBS"
10897
10898fi
10899if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10900 echo "$ac_t""yes" 1>&6
10901 cat >> confdefs.h <<\EOF
10902#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10903EOF
10904
10905else
10906 echo "$ac_t""no" 1>&6
10907echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
7e99ad86 10908echo "configure:10909: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
10f2d63a
VZ
10909ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10910if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10911 echo $ac_n "(cached) $ac_c" 1>&6
10912else
10913 ac_save_LIBS="$LIBS"
10914LIBS="-l"posix4" $LIBS"
10915cat > conftest.$ac_ext <<EOF
7e99ad86 10916#line 10917 "configure"
10f2d63a
VZ
10917#include "confdefs.h"
10918/* Override any gcc2 internal prototype to avoid an error. */
10919/* We use char because int might match the return type of a gcc2
10920 builtin and then its argument prototype would still apply. */
10921char pthread_attr_getschedpolicy();
10922
10923int main() {
10924pthread_attr_getschedpolicy()
10925; return 0; }
10926EOF
7e99ad86 10927if { (eval echo configure:10928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10928 rm -rf conftest*
10929 eval "ac_cv_lib_$ac_lib_var=yes"
10930else
10931 echo "configure: failed program was:" >&5
10932 cat conftest.$ac_ext >&5
10933 rm -rf conftest*
10934 eval "ac_cv_lib_$ac_lib_var=no"
10935fi
10936rm -f conftest*
10937LIBS="$ac_save_LIBS"
10938
10939fi
10940if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10941 echo "$ac_t""yes" 1>&6
10942 cat >> confdefs.h <<\EOF
10943#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10944EOF
10945 POSIX4_LINK="-lposix4"
10946else
10947 echo "$ac_t""no" 1>&6
10948echo "configure: warning: Setting thread priority will not work" 1>&2
10949
10950fi
10951
10952
10953fi
10954
10955
10956 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
7e99ad86 10957echo "configure:10958: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
10958ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
10959if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10960 echo $ac_n "(cached) $ac_c" 1>&6
10961else
10962 ac_save_LIBS="$LIBS"
10963LIBS="-l$THREADS_LINK $LIBS"
10964cat > conftest.$ac_ext <<EOF
7e99ad86 10965#line 10966 "configure"
10f2d63a
VZ
10966#include "confdefs.h"
10967/* Override any gcc2 internal prototype to avoid an error. */
10968/* We use char because int might match the return type of a gcc2
10969 builtin and then its argument prototype would still apply. */
10970char pthread_cancel();
10971
10972int main() {
10973pthread_cancel()
10974; return 0; }
10975EOF
7e99ad86 10976if { (eval echo configure:10977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10977 rm -rf conftest*
10978 eval "ac_cv_lib_$ac_lib_var=yes"
10979else
10980 echo "configure: failed program was:" >&5
10981 cat conftest.$ac_ext >&5
10982 rm -rf conftest*
10983 eval "ac_cv_lib_$ac_lib_var=no"
10984fi
10985rm -f conftest*
10986LIBS="$ac_save_LIBS"
10987
10988fi
10989if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10990 echo "$ac_t""yes" 1>&6
10991 cat >> confdefs.h <<\EOF
10992#define HAVE_PTHREAD_CANCEL 1
10993EOF
10994
10995else
10996 echo "$ac_t""no" 1>&6
10997echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10998fi
10999
11000
11001 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
7e99ad86 11002echo "configure:11003: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
11003if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
11004 echo $ac_n "(cached) $ac_c" 1>&6
11005else
11006
11007 cat > conftest.$ac_ext <<EOF
7e99ad86 11008#line 11009 "configure"
10f2d63a
VZ
11009#include "confdefs.h"
11010#include <pthread.h>
11011int main() {
11012
11013 pthread_cleanup_push(NULL, NULL);
11014 pthread_cleanup_pop(0);
11015
11016; return 0; }
11017EOF
7e99ad86 11018if { (eval echo configure:11019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
11019 rm -rf conftest*
11020
11021 wx_cv_func_pthread_cleanup_push=yes
11022 cat >> confdefs.h <<\EOF
11023#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
11024EOF
11025
11026
11027else
11028 echo "configure: failed program was:" >&5
11029 cat conftest.$ac_ext >&5
11030 rm -rf conftest*
11031
11032 wx_cv_func_pthread_cleanup_push=no
11033
11034fi
11035rm -f conftest*
11036
11037fi
11038
11039echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
11040
11041 THREADS_LINK="-l$THREADS_LINK"
11042fi
11043
11044fi
11045
11046if test "$wxUSE_THREADS" = "yes"; then
11047 cat >> confdefs.h <<\EOF
11048#define wxUSE_THREADS 1
11049EOF
11050
11051
11052 CFLAGS="${CFLAGS} -D_REENTRANT"
11053 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11054
11055 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
11056else
11057 if test "$ac_cv_func_strtok_r" = "yes"; then
ab9b9eab 11058 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
7e99ad86 11059echo "configure:11060: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
11060 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
11061 CFLAGS="${CFLAGS} -D_REENTRANT"
11062 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
11063 echo "$ac_t""yes" 1>&6
11064 else
11065 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11066 fi
11067 fi
11068fi
11069
13111b2a
VZ
11070if test "$WXGTK13" = 1 ; then
11071 cat >> confdefs.h <<EOF
11072#define __WXGTK13__ $WXGTK13
11073EOF
11074
11075 WXGTK12=1
11076fi
11077
10f2d63a
VZ
11078if test "$WXGTK12" = 1 ; then
11079 cat >> confdefs.h <<EOF
11080#define __WXGTK12__ $WXGTK12
11081EOF
11082
11083fi
11084
11085if test "$WXWINE" = 1 ; then
11086 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
11087fi
11088
11089if test "$wxUSE_CYGWIN" = 1 ; then
11090 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
11091fi
11092
11093WXDEBUG=
11094
11095if test "$wxUSE_DEBUG_INFO" = "yes" ; then
11096 WXDEBUG="-g"
11097 wxUSE_OPTIMISE=no
11098fi
11099
11100if test "$wxUSE_DEBUG_GDB" = "yes" ; then
11101 wxUSE_DEBUG_INFO=yes
11102 WXDEBUG="-ggdb"
11103fi
11104
11105if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
11106 cat >> confdefs.h <<\EOF
11107#define WXDEBUG 1
11108EOF
11109
11110 WXDEBUG_DEFINE="-D__WXDEBUG__"
11111else
11112 if test "$wxUSE_GTK" = 1 ; then
11113 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
11114 fi
11115fi
11116
11117if test "$wxUSE_MEM_TRACING" = "yes" ; then
11118 cat >> confdefs.h <<\EOF
11119#define wxUSE_MEMORY_TRACING 1
11120EOF
11121
11122 cat >> confdefs.h <<\EOF
11123#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
11124EOF
11125
11126 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
11127fi
11128
11129if test "$wxUSE_DMALLOC" = "yes" ; then
11130 DMALLOC_LINK="-ldmalloc"
11131fi
11132
11133PROFILE=
11134if test "$wxUSE_PROFILE" = "yes" ; then
11135 PROFILE="-pg"
11136fi
11137
11138DEP_INFO_FLAGS=
caa2c79b 11139CODE_GEN_FLAGS=
10f2d63a
VZ
11140if test "$GCC" = yes ; then
11141 if test "$wxUSE_NO_RTTI" = "yes" ; then
caa2c79b 11142 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
11143 fi
11144 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
caa2c79b 11145 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
11146 fi
11147 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 11148 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
11149 fi
11150 if test "$wxUSE_NO_DEPS" = "no" ; then
11151 DEP_INFO_FLAGS="-MMD"
11152 fi
11153fi
11154
11155
11156CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
11157CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
11158if test "$wxUSE_OPTIMISE" = "no" ; then
11159 OPTIMISE=
11160else
11161 if test "$GCC" = yes ; then
11162 OPTIMISE="-O2"
11163 case "${host}" in
11164 i586-*-*|i686-*-* )
11165 OPTIMISE="${OPTIMISE} "
11166 ;;
11167 esac
11168 else
11169 OPTIMISE="-O"
11170 fi
11171fi
11172
11173
11174ZLIB_INCLUDE=
11175if test "$wxUSE_ZLIB" = "yes" ; then
11176 cat >> confdefs.h <<\EOF
11177#define wxUSE_ZLIB 1
11178EOF
11179
11180 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11181fi
11182
11183PNG_INCLUDE=
11184if test "$wxUSE_LIBPNG" = "yes" ; then
11185 cat >> confdefs.h <<\EOF
11186#define wxUSE_LIBPNG 1
11187EOF
11188
11189 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11190 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11191fi
11192
11193JPEG_INCLUDE=
11194if test "$wxUSE_LIBJPEG" = "yes" ; then
11195 cat >> confdefs.h <<\EOF
11196#define wxUSE_LIBJPEG 1
11197EOF
11198
11199 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11200fi
11201
c7a2bf27
RR
11202TIFF_INCLUDE=
11203if test "$wxUSE_LIBTIFF" = "yes" ; then
11204 cat >> confdefs.h <<\EOF
11205#define wxUSE_LIBTIFF 1
11206EOF
11207
11208 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11209fi
11210
10f2d63a
VZ
11211if test "$wxUSE_OPENGL" = "yes"; then
11212 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11213echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
7e99ad86 11214echo "configure:11215: checking for GL/gl.h" >&5
10f2d63a
VZ
11215if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11216 echo $ac_n "(cached) $ac_c" 1>&6
11217else
11218 cat > conftest.$ac_ext <<EOF
7e99ad86 11219#line 11220 "configure"
10f2d63a
VZ
11220#include "confdefs.h"
11221#include <GL/gl.h>
11222EOF
11223ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7e99ad86 11224{ (eval echo configure:11225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11225ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11226if test -z "$ac_err"; then
11227 rm -rf conftest*
11228 eval "ac_cv_header_$ac_safe=yes"
11229else
11230 echo "$ac_err" >&5
11231 echo "configure: failed program was:" >&5
11232 cat conftest.$ac_ext >&5
11233 rm -rf conftest*
11234 eval "ac_cv_header_$ac_safe=no"
11235fi
11236rm -f conftest*
11237fi
11238if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11239 echo "$ac_t""yes" 1>&6
11240
11241 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
7e99ad86 11242echo "configure:11243: checking for glInitNames in -lGL" >&5
10f2d63a
VZ
11243ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
11244if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11245 echo $ac_n "(cached) $ac_c" 1>&6
11246else
11247 ac_save_LIBS="$LIBS"
11248LIBS="-lGL wxUSE_OPENGL=0 $LIBS"
11249cat > conftest.$ac_ext <<EOF
7e99ad86 11250#line 11251 "configure"
10f2d63a
VZ
11251#include "confdefs.h"
11252/* Override any gcc2 internal prototype to avoid an error. */
11253/* We use char because int might match the return type of a gcc2
11254 builtin and then its argument prototype would still apply. */
11255char glInitNames();
11256
11257int main() {
11258glInitNames()
11259; return 0; }
11260EOF
7e99ad86 11261if { (eval echo configure:11262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11262 rm -rf conftest*
11263 eval "ac_cv_lib_$ac_lib_var=yes"
11264else
11265 echo "configure: failed program was:" >&5
11266 cat conftest.$ac_ext >&5
11267 rm -rf conftest*
11268 eval "ac_cv_lib_$ac_lib_var=no"
11269fi
11270rm -f conftest*
11271LIBS="$ac_save_LIBS"
11272
11273fi
11274if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11275 echo "$ac_t""yes" 1>&6
11276
11277 OPENGL_LINK="-lGL"
11278 cat >> confdefs.h <<\EOF
11279#define wxUSE_OPENGL 1
11280EOF
11281
11282 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11283
11284else
11285 echo "$ac_t""no" 1>&6
11286
11287 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
7e99ad86 11288echo "configure:11289: checking for glInitNames in -lMesaGL" >&5
10f2d63a
VZ
11289ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
11290if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11291 echo $ac_n "(cached) $ac_c" 1>&6
11292else
11293 ac_save_LIBS="$LIBS"
11294LIBS="-lMesaGL $LIBS"
11295cat > conftest.$ac_ext <<EOF
7e99ad86 11296#line 11297 "configure"
10f2d63a
VZ
11297#include "confdefs.h"
11298/* Override any gcc2 internal prototype to avoid an error. */
11299/* We use char because int might match the return type of a gcc2
11300 builtin and then its argument prototype would still apply. */
11301char glInitNames();
11302
11303int main() {
11304glInitNames()
11305; return 0; }
11306EOF
7e99ad86 11307if { (eval echo configure:11308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11308 rm -rf conftest*
11309 eval "ac_cv_lib_$ac_lib_var=yes"
11310else
11311 echo "configure: failed program was:" >&5
11312 cat conftest.$ac_ext >&5
11313 rm -rf conftest*
11314 eval "ac_cv_lib_$ac_lib_var=no"
11315fi
11316rm -f conftest*
11317LIBS="$ac_save_LIBS"
11318
11319fi
11320if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11321 echo "$ac_t""yes" 1>&6
11322
11323 OPENGL_LINK="-lMesaGL"
11324 cat >> confdefs.h <<\EOF
11325#define wxUSE_OPENGL 1
11326EOF
11327
11328 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11329
11330else
11331 echo "$ac_t""no" 1>&6
11332wxUSE_OPENGL=0
11333fi
11334
11335
11336fi
11337
11338
11339else
11340 echo "$ac_t""no" 1>&6
11341wxUSE_OPENGL=0
11342fi
11343
11344fi
11345
11346
11347if test "$wxUSE_GUI" = "yes"; then
11348 cat >> confdefs.h <<\EOF
11349#define wxUSE_GUI 1
11350EOF
11351
11352
11353 else
11354 cat >> confdefs.h <<\EOF
11355#define wxUSE_NOGUI 1
11356EOF
11357
11358fi
11359
11360
11361if test "$wxUSE_UNIX" = "yes"; then
11362 cat >> confdefs.h <<\EOF
11363#define wxUSE_UNIX 1
11364EOF
11365
11366fi
11367
11368
11369if test "$wxUSE_APPLE_IEEE" = "yes"; then
11370 cat >> confdefs.h <<\EOF
11371#define wxUSE_APPLE_IEEE 1
11372EOF
11373
11374fi
11375
10f2d63a
VZ
11376if test "$wxUSE_WAVE" = "yes"; then
11377 cat >> confdefs.h <<\EOF
11378#define wxUSE_WAVE 1
11379EOF
11380
11381fi
11382
11383if test "$wxUSE_FILE" = "yes"; then
11384 cat >> confdefs.h <<\EOF
11385#define wxUSE_FILE 1
11386EOF
11387
11388fi
11389
11390if test "$wxUSE_FS_INET" = "yes"; then
11391 cat >> confdefs.h <<\EOF
11392#define wxUSE_FS_INET 1
11393EOF
11394
11395fi
11396
11397if test "$wxUSE_FS_ZIP" = "yes"; then
11398 cat >> confdefs.h <<\EOF
11399#define wxUSE_FS_ZIP 1
11400EOF
11401
11402fi
11403
11404if test "$wxUSE_ZIPSTREAM" = "yes"; then
11405 cat >> confdefs.h <<\EOF
11406#define wxUSE_ZIPSTREAM 1
11407EOF
11408
11409fi
11410
11411if test "$wxUSE_BUSYINFO" = "yes"; then
11412 cat >> confdefs.h <<\EOF
11413#define wxUSE_BUSYINFO 1
11414EOF
11415
11416fi
11417
11418if test "$wxUSE_STD_IOSTREAM" = "yes"; then
11419 cat >> confdefs.h <<\EOF
11420#define wxUSE_STD_IOSTREAM 1
11421EOF
11422
11423fi
11424
11425if test "$wxUSE_TEXTFILE" = "yes"; then
11426 if test "$wxUSE_FILE" != "yes"; then
11427 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
11428 else
11429 cat >> confdefs.h <<\EOF
11430#define wxUSE_TEXTFILE 1
11431EOF
11432
11433 fi
11434fi
11435
11436if test "$wxUSE_CONFIG" = "yes" ; then
11437 if test "$wxUSE_TEXTFILE" != "yes"; then
11438 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
11439 else
11440 cat >> confdefs.h <<\EOF
11441#define wxUSE_CONFIG 1
11442EOF
11443
11444 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
11445 fi
11446fi
11447
11448if test "$wxUSE_INTL" = "yes" ; then
11449 if test "$wxUSE_FILE" != "yes"; then
11450 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
11451 else
11452 cat >> confdefs.h <<\EOF
11453#define wxUSE_INTL 1
11454EOF
11455
11456 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
11457 fi
11458fi
11459
11460if test "$wxUSE_LOG" = "yes"; then
11461 cat >> confdefs.h <<\EOF
11462#define wxUSE_LOG 1
11463EOF
11464
11465fi
11466
11467if test "$wxUSE_LONGLONG" = "yes"; then
11468 cat >> confdefs.h <<\EOF
11469#define wxUSE_LONGLONG 1
11470EOF
11471
11472fi
11473
10f2d63a
VZ
11474if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
11475 cat >> confdefs.h <<\EOF
11476#define wxUSE_DIALUP_MANAGER 1
11477EOF
11478
70f7a477 11479 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
11480fi
11481
11482if test "$wxUSE_STREAMS" = "yes" ; then
11483 cat >> confdefs.h <<\EOF
11484#define wxUSE_STREAMS 1
11485EOF
11486
11487fi
11488
10f2d63a 11489
afc31813 11490if test "$wxUSE_TIMEDATE" = "yes"; then
83307f33
VZ
11491 for ac_func in strptime
11492do
11493echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7e99ad86 11494echo "configure:11495: checking for $ac_func" >&5
83307f33
VZ
11495if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11496 echo $ac_n "(cached) $ac_c" 1>&6
11497else
11498 cat > conftest.$ac_ext <<EOF
7e99ad86 11499#line 11500 "configure"
83307f33
VZ
11500#include "confdefs.h"
11501/* System header to define __stub macros and hopefully few prototypes,
11502 which can conflict with char $ac_func(); below. */
11503#include <assert.h>
11504/* Override any gcc2 internal prototype to avoid an error. */
11505/* We use char because int might match the return type of a gcc2
11506 builtin and then its argument prototype would still apply. */
11507char $ac_func();
11508
11509int main() {
11510
11511/* The GNU C library defines this for functions which it implements
11512 to always fail with ENOSYS. Some functions are actually named
11513 something starting with __ and the normal name is an alias. */
11514#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11515choke me
11516#else
2224580a 11517$ac_func();
83307f33
VZ
11518#endif
11519
11520; return 0; }
11521EOF
7e99ad86 11522if { (eval echo configure:11523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
83307f33
VZ
11523 rm -rf conftest*
11524 eval "ac_cv_func_$ac_func=yes"
11525else
11526 echo "configure: failed program was:" >&5
11527 cat conftest.$ac_ext >&5
11528 rm -rf conftest*
11529 eval "ac_cv_func_$ac_func=no"
11530fi
11531rm -f conftest*
11532fi
11533
11534if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11535 echo "$ac_t""yes" 1>&6
11536 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11537 cat >> confdefs.h <<EOF
11538#define $ac_tr_func 1
11539EOF
11540
11541else
11542 echo "$ac_t""no" 1>&6
11543fi
11544done
11545
11546
360d6699 11547 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
7e99ad86 11548echo "configure:11549: checking for timezone variable in <time.h>" >&5
360d6699
VZ
11549if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
11550 echo $ac_n "(cached) $ac_c" 1>&6
11551else
11552
11553 cat > conftest.$ac_ext <<EOF
7e99ad86 11554#line 11555 "configure"
360d6699
VZ
11555#include "confdefs.h"
11556
11557 #include <time.h>
11558
11559int main() {
11560
11561 int tz;
11562 tz = __timezone;
11563
11564; return 0; }
11565EOF
7e99ad86 11566if { (eval echo configure:11567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
11567 rm -rf conftest*
11568
11569 wx_cv_var_timezone=__timezone
11570
11571else
11572 echo "configure: failed program was:" >&5
11573 cat conftest.$ac_ext >&5
11574 rm -rf conftest*
11575
11576 cat > conftest.$ac_ext <<EOF
7e99ad86 11577#line 11578 "configure"
360d6699
VZ
11578#include "confdefs.h"
11579
11580 #include <time.h>
11581
11582int main() {
11583
11584 int tz;
11585 tz = _timezone;
11586
11587; return 0; }
11588EOF
7e99ad86 11589if { (eval echo configure:11590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
360d6699
VZ
11590 rm -rf conftest*
11591
11592 wx_cv_var_timezone=_timezone
11593
5357c8e8
VZ
11594else
11595 echo "configure: failed program was:" >&5
11596 cat conftest.$ac_ext >&5
11597 rm -rf conftest*
11598
11599 cat > conftest.$ac_ext <<EOF
7e99ad86 11600#line 11601 "configure"
5357c8e8
VZ
11601#include "confdefs.h"
11602
11603 #include <time.h>
11604
11605int main() {
11606
11607 int tz;
11608 tz = timezone;
11609
11610; return 0; }
11611EOF
7e99ad86 11612if { (eval echo configure:11613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5357c8e8
VZ
11613 rm -rf conftest*
11614
11615 wx_cv_var_timezone=timezone
11616
360d6699
VZ
11617else
11618 echo "configure: failed program was:" >&5
11619 cat conftest.$ac_ext >&5
11620 rm -rf conftest*
11621 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
5357c8e8
VZ
11622
11623fi
11624rm -f conftest*
11625
360d6699
VZ
11626
11627fi
11628rm -f conftest*
11629
11630
11631fi
11632rm -f conftest*
11633
11634
11635fi
11636
11637echo "$ac_t""$wx_cv_var_timezone" 1>&6
11638
11639 cat >> confdefs.h <<EOF
11640#define WX_TIMEZONE $wx_cv_var_timezone
11641EOF
11642
11643
0470b1e6 11644 for ac_func in localtime gettimeofday ftime
afc31813
VZ
11645do
11646echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7e99ad86 11647echo "configure:11648: checking for $ac_func" >&5
afc31813
VZ
11648if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11649 echo $ac_n "(cached) $ac_c" 1>&6
11650else
11651 cat > conftest.$ac_ext <<EOF
7e99ad86 11652#line 11653 "configure"
10f2d63a 11653#include "confdefs.h"
afc31813
VZ
11654/* System header to define __stub macros and hopefully few prototypes,
11655 which can conflict with char $ac_func(); below. */
11656#include <assert.h>
11657/* Override any gcc2 internal prototype to avoid an error. */
11658/* We use char because int might match the return type of a gcc2
11659 builtin and then its argument prototype would still apply. */
11660char $ac_func();
11661
10f2d63a 11662int main() {
afc31813
VZ
11663
11664/* The GNU C library defines this for functions which it implements
11665 to always fail with ENOSYS. Some functions are actually named
11666 something starting with __ and the normal name is an alias. */
11667#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11668choke me
11669#else
2224580a 11670$ac_func();
afc31813
VZ
11671#endif
11672
10f2d63a
VZ
11673; return 0; }
11674EOF
7e99ad86 11675if { (eval echo configure:11676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 11676 rm -rf conftest*
afc31813 11677 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
11678else
11679 echo "configure: failed program was:" >&5
11680 cat conftest.$ac_ext >&5
11681 rm -rf conftest*
afc31813
VZ
11682 eval "ac_cv_func_$ac_func=no"
11683fi
11684rm -f conftest*
11685fi
11686
11687if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11688 echo "$ac_t""yes" 1>&6
11689 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11690 cat >> confdefs.h <<EOF
11691#define $ac_tr_func 1
11692EOF
0470b1e6 11693 break
afc31813
VZ
11694else
11695 echo "$ac_t""no" 1>&6
11696fi
11697done
11698
11699
0470b1e6
VZ
11700 if test "$ac_cv_func_localtime" = "yes"; then
11701 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
7e99ad86 11702echo "configure:11703: checking for tm_gmtoff in struct tm" >&5
0470b1e6
VZ
11703if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
11704 echo $ac_n "(cached) $ac_c" 1>&6
11705else
11706
11707 cat > conftest.$ac_ext <<EOF
7e99ad86 11708#line 11709 "configure"
0470b1e6
VZ
11709#include "confdefs.h"
11710
11711 #include <time.h>
11712
11713int main() {
11714
11715 struct tm tm;
11716 tm.tm_gmtoff++;
11717
11718; return 0; }
11719EOF
7e99ad86 11720if { (eval echo configure:11721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0470b1e6
VZ
11721 rm -rf conftest*
11722
f03a98d8 11723 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6
VZ
11724 cat >> confdefs.h <<\EOF
11725#define WX_GMTOFF_IN_TM 1
11726EOF
11727
11728
11729else
11730 echo "configure: failed program was:" >&5
11731 cat conftest.$ac_ext >&5
11732 rm -rf conftest*
11733 wx_cv_struct_tm_has_gmtoff=no
11734
11735fi
11736rm -f conftest*
11737
11738fi
11739
11740echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
11741 elif test "$ac_cv_func_gettimeofday" = "yes"; then
afc31813 11742 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
7e99ad86 11743echo "configure:11744: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
11744if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
11745 echo $ac_n "(cached) $ac_c" 1>&6
11746else
11747
11748
11749 ac_ext=C
11750# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11751ac_cpp='$CXXCPP $CPPFLAGS'
11752ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11753ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11754cross_compiling=$ac_cv_prog_cxx_cross
11755
11756
11757 cat > conftest.$ac_ext <<EOF
7e99ad86 11758#line 11759 "configure"
10f2d63a 11759#include "confdefs.h"
afc31813
VZ
11760
11761 #include <sys/time.h>
11762 #include <unistd.h>
11763
10f2d63a 11764int main() {
afc31813
VZ
11765
11766 struct timeval tv;
11767 struct timezone tz;
11768 gettimeofday(&tv, &tz);
11769
10f2d63a
VZ
11770; return 0; }
11771EOF
7e99ad86 11772if { (eval echo configure:11773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 11773 rm -rf conftest*
afc31813 11774 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
11775else
11776 echo "configure: failed program was:" >&5
11777 cat conftest.$ac_ext >&5
11778 rm -rf conftest*
11779 cat > conftest.$ac_ext <<EOF
7e99ad86 11780#line 11781 "configure"
10f2d63a 11781#include "confdefs.h"
afc31813
VZ
11782
11783 #include <sys/time.h>
11784 #include <unistd.h>
11785
10f2d63a 11786int main() {
afc31813
VZ
11787
11788 struct timeval tv;
11789 gettimeofday(&tv);
11790
10f2d63a
VZ
11791; return 0; }
11792EOF
7e99ad86 11793if { (eval echo configure:11794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 11794 rm -rf conftest*
afc31813 11795 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
11796else
11797 echo "configure: failed program was:" >&5
11798 cat conftest.$ac_ext >&5
11799 rm -rf conftest*
afc31813
VZ
11800 wx_cv_func_gettimeofday_has_2_args=unknown
11801
10f2d63a
VZ
11802fi
11803rm -f conftest*
afc31813 11804
10f2d63a
VZ
11805fi
11806rm -f conftest*
afc31813 11807 ac_ext=c
10f2d63a
VZ
11808# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11809ac_cpp='$CPP $CPPFLAGS'
11810ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11811ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11812cross_compiling=$ac_cv_prog_cc_cross
11813
afc31813
VZ
11814
11815fi
11816
11817echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 11818
afc31813
VZ
11819 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
11820 cat >> confdefs.h <<\EOF
11821#define WX_GETTIMEOFDAY_NO_TZ 1
11822EOF
11823
11824 fi
11825 fi
11826
11827 cat >> confdefs.h <<\EOF
11828#define wxUSE_TIMEDATE 1
11829EOF
11830
11831 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
11832fi
11833
11834
11835if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 11836 echo $ac_n "checking for socket""... $ac_c" 1>&6
7e99ad86 11837echo "configure:11838: checking for socket" >&5
c63c7106
VZ
11838if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
11839 echo $ac_n "(cached) $ac_c" 1>&6
11840else
11841 cat > conftest.$ac_ext <<EOF
7e99ad86 11842#line 11843 "configure"
c63c7106
VZ
11843#include "confdefs.h"
11844/* System header to define __stub macros and hopefully few prototypes,
11845 which can conflict with char socket(); below. */
11846#include <assert.h>
11847/* Override any gcc2 internal prototype to avoid an error. */
11848/* We use char because int might match the return type of a gcc2
11849 builtin and then its argument prototype would still apply. */
11850char socket();
11851
11852int main() {
11853
11854/* The GNU C library defines this for functions which it implements
11855 to always fail with ENOSYS. Some functions are actually named
11856 something starting with __ and the normal name is an alias. */
11857#if defined (__stub_socket) || defined (__stub___socket)
11858choke me
11859#else
2224580a 11860socket();
c63c7106
VZ
11861#endif
11862
11863; return 0; }
11864EOF
7e99ad86 11865if { (eval echo configure:11866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11866 rm -rf conftest*
11867 eval "ac_cv_func_socket=yes"
11868else
11869 echo "configure: failed program was:" >&5
11870 cat conftest.$ac_ext >&5
11871 rm -rf conftest*
11872 eval "ac_cv_func_socket=no"
11873fi
11874rm -f conftest*
11875fi
11876
11877if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
11878 echo "$ac_t""yes" 1>&6
11879 :
11880else
11881 echo "$ac_t""no" 1>&6
11882echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
7e99ad86 11883echo "configure:11884: checking for socket in -lsocket" >&5
c63c7106
VZ
11884ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
11885if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11886 echo $ac_n "(cached) $ac_c" 1>&6
11887else
11888 ac_save_LIBS="$LIBS"
11889LIBS="-lsocket $LIBS"
11890cat > conftest.$ac_ext <<EOF
7e99ad86 11891#line 11892 "configure"
c63c7106
VZ
11892#include "confdefs.h"
11893/* Override any gcc2 internal prototype to avoid an error. */
11894/* We use char because int might match the return type of a gcc2
11895 builtin and then its argument prototype would still apply. */
11896char socket();
11897
11898int main() {
11899socket()
11900; return 0; }
11901EOF
7e99ad86 11902if { (eval echo configure:11903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11903 rm -rf conftest*
11904 eval "ac_cv_lib_$ac_lib_var=yes"
11905else
11906 echo "configure: failed program was:" >&5
11907 cat conftest.$ac_ext >&5
11908 rm -rf conftest*
11909 eval "ac_cv_lib_$ac_lib_var=no"
11910fi
11911rm -f conftest*
11912LIBS="$ac_save_LIBS"
11913
11914fi
11915if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11916 echo "$ac_t""yes" 1>&6
11917 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
11918else
11919 echo "$ac_t""no" 1>&6
afc31813
VZ
11920
11921 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
11922 wxUSE_SOCKETS=no
11923
11924
c63c7106
VZ
11925fi
11926
11927
11928fi
11929
10f2d63a
VZ
11930fi
11931
afc31813
VZ
11932if test "$wxUSE_SOCKETS" = "yes" ; then
11933
11934 ac_ext=C
11935# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11936ac_cpp='$CXXCPP $CPPFLAGS'
11937ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11938ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11939cross_compiling=$ac_cv_prog_cxx_cross
11940
11941 echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6
7e99ad86 11942echo "configure:11943: checking the type of the third argument of getsockname" >&5
afc31813 11943 cat > conftest.$ac_ext <<EOF
7e99ad86 11944#line 11945 "configure"
afc31813
VZ
11945#include "confdefs.h"
11946#include <sys/socket.h>
11947int main() {
11948socklen_t len; getsockname(0, 0, &len);
11949; return 0; }
11950EOF
7e99ad86 11951if { (eval echo configure:11952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813
VZ
11952 rm -rf conftest*
11953 cat >> confdefs.h <<\EOF
11954#define SOCKLEN_T socklen_t
11955EOF
11956 echo "$ac_t""socklen_t" 1>&6
11957else
11958 echo "configure: failed program was:" >&5
11959 cat conftest.$ac_ext >&5
11960 rm -rf conftest*
11961 cat > conftest.$ac_ext <<EOF
7e99ad86 11962#line 11963 "configure"
afc31813
VZ
11963#include "confdefs.h"
11964#include <sys/socket.h>
11965int main() {
11966size_t len; getsockname(0, 0, &len);
11967; return 0; }
11968EOF
7e99ad86 11969if { (eval echo configure:11970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813
VZ
11970 rm -rf conftest*
11971 cat >> confdefs.h <<\EOF
11972#define SOCKLEN_T size_t
11973EOF
11974 echo "$ac_t""size_t" 1>&6
11975else
11976 echo "configure: failed program was:" >&5
11977 cat conftest.$ac_ext >&5
11978 rm -rf conftest*
11979 cat > conftest.$ac_ext <<EOF
7e99ad86 11980#line 11981 "configure"
afc31813
VZ
11981#include "confdefs.h"
11982#include <sys/socket.h>
11983int main() {
11984int len; getsockname(0, 0, &len);
11985; return 0; }
11986EOF
7e99ad86 11987if { (eval echo configure:11988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813
VZ
11988 rm -rf conftest*
11989 cat >> confdefs.h <<\EOF
11990#define SOCKLEN_T int
11991EOF
11992 echo "$ac_t""int" 1>&6
11993else
11994 echo "configure: failed program was:" >&5
11995 cat conftest.$ac_ext >&5
11996 rm -rf conftest*
11997 echo "$ac_t""unknown" 1>&6
11998
11999fi
12000rm -f conftest*
12001
12002fi
12003rm -f conftest*
12004
12005fi
12006rm -f conftest*
12007 ac_ext=c
12008# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12009ac_cpp='$CPP $CPPFLAGS'
12010ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12011ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12012cross_compiling=$ac_cv_prog_cc_cross
12013
12014
12015 cat >> confdefs.h <<\EOF
12016#define wxUSE_SOCKETS 1
12017EOF
12018
70f7a477 12019 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
12020 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
12021fi
12022
10f2d63a
VZ
12023
12024if test "$wxUSE_JOYSTICK" = 1; then
12025 for ac_hdr in linux/joystick.h
12026do
12027ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12028echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7e99ad86 12029echo "configure:12030: checking for $ac_hdr" >&5
10f2d63a
VZ
12030if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12031 echo $ac_n "(cached) $ac_c" 1>&6
12032else
12033 cat > conftest.$ac_ext <<EOF
7e99ad86 12034#line 12035 "configure"
10f2d63a
VZ
12035#include "confdefs.h"
12036#include <$ac_hdr>
12037EOF
12038ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7e99ad86 12039{ (eval echo configure:12040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12040ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12041if test -z "$ac_err"; then
12042 rm -rf conftest*
12043 eval "ac_cv_header_$ac_safe=yes"
12044else
12045 echo "$ac_err" >&5
12046 echo "configure: failed program was:" >&5
12047 cat conftest.$ac_ext >&5
12048 rm -rf conftest*
12049 eval "ac_cv_header_$ac_safe=no"
12050fi
12051rm -f conftest*
12052fi
12053if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12054 echo "$ac_t""yes" 1>&6
12055 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12056 cat >> confdefs.h <<EOF
12057#define $ac_tr_hdr 1
12058EOF
12059
12060else
12061 echo "$ac_t""no" 1>&6
12062fi
12063done
12064
12065 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
12066 cat >> confdefs.h <<\EOF
12067#define wxUSE_JOYSTICK 1
12068EOF
12069
12070 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
12071 fi
12072fi
12073
12074
12075HAVE_DL_FUNCS=0
12076HAVE_SHL_FUNCS=0
12077if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
12078 for ac_func in dlopen
12079do
12080echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7e99ad86 12081echo "configure:12082: checking for $ac_func" >&5
10f2d63a
VZ
12082if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12083 echo $ac_n "(cached) $ac_c" 1>&6
12084else
12085 cat > conftest.$ac_ext <<EOF
7e99ad86 12086#line 12087 "configure"
10f2d63a
VZ
12087#include "confdefs.h"
12088/* System header to define __stub macros and hopefully few prototypes,
12089 which can conflict with char $ac_func(); below. */
12090#include <assert.h>
12091/* Override any gcc2 internal prototype to avoid an error. */
12092/* We use char because int might match the return type of a gcc2
12093 builtin and then its argument prototype would still apply. */
12094char $ac_func();
12095
12096int main() {
12097
12098/* The GNU C library defines this for functions which it implements
12099 to always fail with ENOSYS. Some functions are actually named
12100 something starting with __ and the normal name is an alias. */
12101#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12102choke me
12103#else
2224580a 12104$ac_func();
10f2d63a
VZ
12105#endif
12106
12107; return 0; }
12108EOF
7e99ad86 12109if { (eval echo configure:12110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12110 rm -rf conftest*
12111 eval "ac_cv_func_$ac_func=yes"
12112else
12113 echo "configure: failed program was:" >&5
12114 cat conftest.$ac_ext >&5
12115 rm -rf conftest*
12116 eval "ac_cv_func_$ac_func=no"
12117fi
12118rm -f conftest*
12119fi
12120
12121if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12122 echo "$ac_t""yes" 1>&6
12123 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12124 cat >> confdefs.h <<EOF
12125#define $ac_tr_func 1
12126EOF
12127
12128 cat >> confdefs.h <<\EOF
12129#define HAVE_DLOPEN 1
12130EOF
12131
12132 HAVE_DL_FUNCS=1
12133
12134else
12135 echo "$ac_t""no" 1>&6
12136echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
7e99ad86 12137echo "configure:12138: checking for dlopen in -ldl" >&5
10f2d63a
VZ
12138ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
12139if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12140 echo $ac_n "(cached) $ac_c" 1>&6
12141else
12142 ac_save_LIBS="$LIBS"
12143LIBS="-ldl $LIBS"
12144cat > conftest.$ac_ext <<EOF
7e99ad86 12145#line 12146 "configure"
10f2d63a
VZ
12146#include "confdefs.h"
12147/* Override any gcc2 internal prototype to avoid an error. */
12148/* We use char because int might match the return type of a gcc2
12149 builtin and then its argument prototype would still apply. */
12150char dlopen();
12151
12152int main() {
12153dlopen()
12154; return 0; }
12155EOF
7e99ad86 12156if { (eval echo configure:12157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12157 rm -rf conftest*
12158 eval "ac_cv_lib_$ac_lib_var=yes"
12159else
12160 echo "configure: failed program was:" >&5
12161 cat conftest.$ac_ext >&5
12162 rm -rf conftest*
12163 eval "ac_cv_lib_$ac_lib_var=no"
12164fi
12165rm -f conftest*
12166LIBS="$ac_save_LIBS"
12167
12168fi
12169if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12170 echo "$ac_t""yes" 1>&6
12171
12172 cat >> confdefs.h <<\EOF
12173#define HAVE_DLOPEN 1
12174EOF
12175
12176 HAVE_DL_FUNCS=1
12177 LIBS="$LIBS -ldl"
12178
12179else
12180 echo "$ac_t""no" 1>&6
12181
12182 for ac_func in shl_load
12183do
12184echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7e99ad86 12185echo "configure:12186: checking for $ac_func" >&5
10f2d63a
VZ
12186if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12187 echo $ac_n "(cached) $ac_c" 1>&6
12188else
12189 cat > conftest.$ac_ext <<EOF
7e99ad86 12190#line 12191 "configure"
10f2d63a
VZ
12191#include "confdefs.h"
12192/* System header to define __stub macros and hopefully few prototypes,
12193 which can conflict with char $ac_func(); below. */
12194#include <assert.h>
12195/* Override any gcc2 internal prototype to avoid an error. */
12196/* We use char because int might match the return type of a gcc2
12197 builtin and then its argument prototype would still apply. */
12198char $ac_func();
12199
12200int main() {
12201
12202/* The GNU C library defines this for functions which it implements
12203 to always fail with ENOSYS. Some functions are actually named
12204 something starting with __ and the normal name is an alias. */
12205#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12206choke me
12207#else
2224580a 12208$ac_func();
10f2d63a
VZ
12209#endif
12210
12211; return 0; }
12212EOF
7e99ad86 12213if { (eval echo configure:12214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
12214 rm -rf conftest*
12215 eval "ac_cv_func_$ac_func=yes"
12216else
12217 echo "configure: failed program was:" >&5
12218 cat conftest.$ac_ext >&5
12219 rm -rf conftest*
12220 eval "ac_cv_func_$ac_func=no"
12221fi
12222rm -f conftest*
12223fi
12224
12225if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12226 echo "$ac_t""yes" 1>&6
12227 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12228 cat >> confdefs.h <<EOF
12229#define $ac_tr_func 1
12230EOF
12231
12232 cat >> confdefs.h <<\EOF
12233#define HAVE_SHL_LOAD 1
12234EOF
12235
12236 HAVE_SHL_FUNCS=1
12237
12238else
12239 echo "$ac_t""no" 1>&6
12240fi
12241done
12242
12243
12244fi
12245
12246
12247fi
12248done
12249
12250
12251 if test "$HAVE_DL_FUNCS" = 0; then
12252 if test "$HAVE_SHL_FUNCS" = 0; then
12253 if test "$USE_UNIX" = 1; then
b12915c1 12254 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
12255 wxUSE_DYNLIB_CLASS=no
12256 else
b12915c1 12257 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
12258 fi
12259 fi
12260 fi
12261fi
12262
12263if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
b12915c1 12264 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12265#define wxUSE_DYNLIB_CLASS 1
12266EOF
12267
b12915c1
VZ
12268else
12269 wxUSE_ODBC=no
12270 wxUSE_SERIAL=no
10f2d63a
VZ
12271fi
12272
12273
12274if test "$wxUSE_UNICODE" = "yes" ; then
12275 cat >> confdefs.h <<\EOF
12276#define wxUSE_UNICODE 1
12277EOF
12278
12279fi
12280
12281if test "$wxUSE_WCSRTOMBS" = "yes" ; then
12282 cat >> confdefs.h <<\EOF
12283#define wxUSE_WCSRTOMBS 1
12284EOF
12285
12286fi
12287
12288if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
12289 cat >> confdefs.h <<\EOF
12290#define wxUSE_EXPERIMENTAL_PRINTF 1
12291EOF
12292
12293fi
12294
12295
b12915c1
VZ
12296if test "$wxUSE_SERIAL" = "yes" ; then
12297 cat >> confdefs.h <<\EOF
12298#define wxUSE_SERIAL 1
12299EOF
12300
12301fi
12302
12303
10f2d63a
VZ
12304IODBC_C_SRC=""
12305if test "$wxUSE_ODBC" = "yes" ; then
12306 cat >> confdefs.h <<\EOF
12307#define wxUSE_ODBC 1
12308EOF
12309
12310 WXODBCFLAG="-D_IODBC_"
12311 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
12312 IODBCOBJS="\$(IODBC_OBJS)"
12313else
12314 IODBCOBJS=
12315fi
12316
12317
12318if test "$wxUSE_POSTSCRIPT" = "yes" ; then
12319 cat >> confdefs.h <<\EOF
12320#define wxUSE_POSTSCRIPT 1
12321EOF
12322
12323fi
12324
12325cat >> confdefs.h <<\EOF
12326#define wxUSE_AFM_FOR_POSTSCRIPT 1
12327EOF
12328
12329
12330cat >> confdefs.h <<\EOF
12331#define wxUSE_NORMALIZED_PS_FONTS 1
12332EOF
12333
12334
12335
12336if test "$wxUSE_CONSTRAINTS" = "yes"; then
12337 cat >> confdefs.h <<\EOF
12338#define wxUSE_CONSTRAINTS 1
12339EOF
12340
12341 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
12342fi
12343
12344if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12345 cat >> confdefs.h <<\EOF
12346#define wxUSE_MDI_ARCHITECTURE 1
12347EOF
12348
12349 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
12350fi
12351
12352if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
12353 cat >> confdefs.h <<\EOF
12354#define wxUSE_DOC_VIEW_ARCHITECTURE 1
12355EOF
12356
12357 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
12358 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
12359 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
12360 fi
12361fi
12362
12363if test "$wxUSE_HELP" = "yes"; then
12364 cat >> confdefs.h <<\EOF
12365#define wxUSE_HELP 1
12366EOF
12367
12368 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
12369fi
12370
12371if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
12372 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12373 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
12374 else
12375 cat >> confdefs.h <<\EOF
12376#define wxUSE_PRINTING_ARCHITECTURE 1
12377EOF
12378
12379 fi
12380 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
12381fi
12382
12383if test "$wxUSE_PROLOGIO" = "yes" ; then
12384 cat >> confdefs.h <<\EOF
12385#define wxUSE_PROLOGIO 1
12386EOF
12387
12388fi
12389
12390if test "$wxUSE_RESOURCES" = "yes" ; then
12391 if test "$wxUSE_PROLOGIO" = "yes" ; then
12392 cat >> confdefs.h <<\EOF
12393#define wxUSE_RESOURCES 1
12394EOF
12395
12396 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
12397 else
12398 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
12399 fi
12400fi
12401
12402if test "$wxUSE_X_RESOURCES" = "yes"; then
12403 cat >> confdefs.h <<\EOF
12404#define wxUSE_X_RESOURCES 1
12405EOF
12406
12407fi
12408
12409
12410if test "$wxUSE_IPC" = "yes"; then
12411 cat >> confdefs.h <<\EOF
12412#define wxUSE_IPC 1
12413EOF
12414
12415fi
12416
12417if test "$wxUSE_CLIPBOARD" = "yes"; then
12418 cat >> confdefs.h <<\EOF
12419#define wxUSE_CLIPBOARD 1
12420EOF
12421
12422fi
12423
12424if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
12425 if test "$wxUSE_GTK" = 1; then
12426 if test "$WXGTK12" != 1; then
12427 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
12428 wxUSE_DRAG_AND_DROP=no
12429 fi
12430 fi
12431
12432 if test "$wxUSE_MOTIF" = 1; then
12433 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
12434 wxUSE_DRAG_AND_DROP=no
12435 fi
12436
12437 if test "$USE_WIN32" = 1; then
12438 for ac_hdr in ole2.h
12439do
12440ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12441echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7e99ad86 12442echo "configure:12443: checking for $ac_hdr" >&5
10f2d63a
VZ
12443if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12444 echo $ac_n "(cached) $ac_c" 1>&6
12445else
12446 cat > conftest.$ac_ext <<EOF
7e99ad86 12447#line 12448 "configure"
10f2d63a
VZ
12448#include "confdefs.h"
12449#include <$ac_hdr>
12450EOF
12451ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7e99ad86 12452{ (eval echo configure:12453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12453ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12454if test -z "$ac_err"; then
12455 rm -rf conftest*
12456 eval "ac_cv_header_$ac_safe=yes"
12457else
12458 echo "$ac_err" >&5
12459 echo "configure: failed program was:" >&5
12460 cat conftest.$ac_ext >&5
12461 rm -rf conftest*
12462 eval "ac_cv_header_$ac_safe=no"
12463fi
12464rm -f conftest*
12465fi
12466if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12467 echo "$ac_t""yes" 1>&6
12468 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12469 cat >> confdefs.h <<EOF
12470#define $ac_tr_hdr 1
12471EOF
12472
12473else
12474 echo "$ac_t""no" 1>&6
12475fi
12476done
12477
12478 if test "x$HAVE_OLE2_H" = x ; then
12479 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
12480 wxUSE_DRAG_AND_DROP=no
12481 fi
12482 fi
12483
12484 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
12485 cat >> confdefs.h <<\EOF
12486#define wxUSE_DRAG_AND_DROP 1
12487EOF
12488
12489 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
12490 fi
12491
12492fi
12493
12494if test "$wxUSE_SPLINES" = "yes" ; then
12495 cat >> confdefs.h <<\EOF
12496#define wxUSE_SPLINES 1
12497EOF
12498
12499fi
12500
12501
12502if test "$wxUSE_ACCEL" = "yes"; then
12503 cat >> confdefs.h <<\EOF
12504#define wxUSE_ACCEL 1
12505EOF
12506
12507fi
12508
12509if test "$wxUSE_CARET" = "yes"; then
12510 cat >> confdefs.h <<\EOF
12511#define wxUSE_CARET 1
12512EOF
12513
12514 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
12515fi
12516
12517if test "$wxUSE_COMBOBOX" = "yes"; then
12518 cat >> confdefs.h <<\EOF
12519#define wxUSE_COMBOBOX 1
12520EOF
12521
12522fi
12523
12524if test "$wxUSE_CHOICE" = "yes"; then
12525 cat >> confdefs.h <<\EOF
12526#define wxUSE_CHOICE 1
12527EOF
12528
12529fi
12530
12531if test "$wxUSE_BMPBUTTON" = "yes"; then
12532 cat >> confdefs.h <<\EOF
12533#define wxUSE_BMPBUTTON 1
12534EOF
12535
12536fi
12537
12538if test "$wxUSE_CHECKBOX" = "yes"; then
12539 cat >> confdefs.h <<\EOF
12540#define wxUSE_CHECKBOX 1
12541EOF
12542
12543fi
12544
12545if test "$wxUSE_CHECKLST" = "yes"; then
12546 cat >> confdefs.h <<\EOF
12547#define wxUSE_CHECKLISTBOX 1
12548EOF
12549
12550 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
12551fi
12552
12553if test "$wxUSE_GAUGE" = "yes"; then
12554 cat >> confdefs.h <<\EOF
12555#define wxUSE_GAUGE 1
12556EOF
12557
12558fi
12559
12560if test "$wxUSE_GRID" = "yes"; then
12561 cat >> confdefs.h <<\EOF
12562#define wxUSE_GRID 1
12563EOF
12564
12565 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
12566fi
12567
12568if test "$wxUSE_NEW_GRID" = "yes"; then
12569 cat >> confdefs.h <<\EOF
12570#define wxUSE_NEW_GRID 1
12571EOF
12572
12573 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
12574fi
12575
12576if test "$wxUSE_IMAGLIST" = "yes"; then
12577 cat >> confdefs.h <<\EOF
12578#define wxUSE_IMAGLIST 1
12579EOF
12580
12581fi
12582
12583if test "$wxUSE_LISTBOX" = "yes"; then
12584 cat >> confdefs.h <<\EOF
12585#define wxUSE_LISTBOX 1
12586EOF
12587
12588fi
12589
12590if test "$wxUSE_LISTCTRL" = "yes"; then
12591 if test "$wxUSE_IMAGLIST" = "yes"; then
12592 cat >> confdefs.h <<\EOF
12593#define wxUSE_LISTCTRL 1
12594EOF
12595
12596 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
12597 else
12598 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
12599 fi
12600fi
12601
12602if test "$wxUSE_NOTEBOOK" = "yes"; then
12603 cat >> confdefs.h <<\EOF
12604#define wxUSE_NOTEBOOK 1
12605EOF
12606
12607 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
12608fi
12609
12610if test "$wxUSE_RADIOBOX" = "yes"; then
12611 cat >> confdefs.h <<\EOF
12612#define wxUSE_RADIOBOX 1
12613EOF
12614
12615fi
12616
12617if test "$wxUSE_RADIOBTN" = "yes"; then
12618 cat >> confdefs.h <<\EOF
12619#define wxUSE_RADIOBTN 1
12620EOF
12621
12622fi
12623
12624if test "$wxUSE_SASH" = "yes"; then
12625 cat >> confdefs.h <<\EOF
12626#define wxUSE_SASH 1
12627EOF
12628
12629 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
12630fi
12631
12632if test "$wxUSE_SCROLLBAR" = "yes"; then
12633 cat >> confdefs.h <<\EOF
12634#define wxUSE_SCROLLBAR 1
12635EOF
12636
741a9306 12637 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
12638fi
12639
12640if test "$wxUSE_SLIDER" = "yes"; then
12641 cat >> confdefs.h <<\EOF
12642#define wxUSE_SLIDER 1
12643EOF
12644
12645fi
12646
12647if test "$wxUSE_SPINBTN" = "yes"; then
12648 cat >> confdefs.h <<\EOF
12649#define wxUSE_SPINBTN 1
12650EOF
12651
12652fi
12653
56cfaa52
RR
12654if test "$wxUSE_SPINCTRL" = "yes"; then
12655 cat >> confdefs.h <<\EOF
12656#define wxUSE_SPINCTRL 1
12657EOF
12658
12659fi
12660
10f2d63a
VZ
12661if test "$wxUSE_SPLITTER" = "yes"; then
12662 cat >> confdefs.h <<\EOF
12663#define wxUSE_SPLITTER 1
12664EOF
12665
12666 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
12667fi
12668
12669if test "$wxUSE_STATBMP" = "yes"; then
12670 cat >> confdefs.h <<\EOF
12671#define wxUSE_STATBMP 1
12672EOF
12673
12674fi
12675
12676if test "$wxUSE_STATBOX" = "yes"; then
12677 cat >> confdefs.h <<\EOF
12678#define wxUSE_STATBOX 1
12679EOF
12680
12681fi
12682
12683if test "$wxUSE_STATLINE" = "yes"; then
12684 if test "$wxUSE_WINE" = 1 ; then
12685 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
12686 else
12687 cat >> confdefs.h <<\EOF
12688#define wxUSE_STATLINE 1
12689EOF
12690
12691 fi
12692fi
12693
12694if test "$wxUSE_STATUSBAR" = "yes"; then
12695 cat >> confdefs.h <<\EOF
12696#define wxUSE_STATUSBAR 1
12697EOF
12698
12699fi
12700
12701if test "$wxUSE_TABDIALOG" = "yes"; then
12702 cat >> confdefs.h <<\EOF
12703#define wxUSE_TAB_DIALOG 1
12704EOF
12705
12706 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
12707fi
12708
360d6699
VZ
12709if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
12710 cat >> confdefs.h <<\EOF
12711#define wxUSE_TOOLBAR_SIMPLE 1
12712EOF
12713
12714 wxUSE_TOOLBAR="yes"
12715fi
12716
10f2d63a
VZ
12717if test "$wxUSE_TOOLBAR" = "yes"; then
12718 cat >> confdefs.h <<\EOF
12719#define wxUSE_TOOLBAR 1
12720EOF
12721
360d6699
VZ
12722
12723 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
12724 wxUSE_TOOLBAR_NATIVE="yes"
12725 fi
12726
10f2d63a
VZ
12727 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
12728fi
12729
360d6699
VZ
12730if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
12731 cat >> confdefs.h <<\EOF
12732#define wxUSE_TOOLBAR_NATIVE 1
12733EOF
12734
12735fi
12736
10f2d63a
VZ
12737if test "$wxUSE_TOOLTIPS" = "yes"; then
12738 if test "$wxUSE_MOTIF" = 1; then
12739 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
12740 else
12741 if test "$wxUSE_WINE" = 1; then
12742 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
12743 else
12744 cat >> confdefs.h <<\EOF
12745#define wxUSE_TOOLTIPS 1
12746EOF
12747
12748 fi
12749 fi
12750fi
12751
12752if test "$wxUSE_TREECTRL" = "yes"; then
12753 if test "$wxUSE_IMAGLIST" = "yes"; then
12754 cat >> confdefs.h <<\EOF
12755#define wxUSE_TREECTRL 1
12756EOF
12757
12758 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
12759 else
12760 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
12761 fi
12762fi
12763
12764
12765
12766if test "$wxUSE_METAFILE" = "yes"; then
12767 cat >> confdefs.h <<\EOF
12768#define wxUSE_METAFILE 1
12769EOF
12770
12771fi
12772
12773if test "$wxUSE_DIRDLG" = "yes"; then
12774 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12775 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
12776 else
12777 if test "$wxUSE_TREECTRL" != "yes"; then
12778 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
12779 else
12780 cat >> confdefs.h <<\EOF
12781#define wxUSE_DIRDLG 1
12782EOF
12783
12784 fi
12785 fi
12786fi
12787
12788if test "$wxUSE_TEXTDLG" = "yes"; then
12789 cat >> confdefs.h <<\EOF
12790#define wxUSE_TEXTDLG 1
12791EOF
12792
12793fi
12794
12795if test "$wxUSE_STARTUP_TIPS" = "yes"; then
12796 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12797 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
12798 else
12799 cat >> confdefs.h <<\EOF
12800#define wxUSE_STARTUP_TIPS 1
12801EOF
12802
12803 fi
12804fi
12805
12806if test "$wxUSE_PROGRESSDLG" = "yes"; then
12807 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12808 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
12809 else
12810 cat >> confdefs.h <<\EOF
12811#define wxUSE_PROGRESSDLG 1
12812EOF
12813
12814 fi
12815fi
12816
12817if test "$wxUSE_MINIFRAME" = "yes"; then
12818 cat >> confdefs.h <<\EOF
12819#define wxUSE_MINIFRAME 1
12820EOF
12821
12822 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
12823fi
12824
12825if test "$wxUSE_HTML" = "yes"; then
12826 cat >> confdefs.h <<\EOF
12827#define wxUSE_HTML 1
12828EOF
12829
12830 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
12831 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
12832fi
12833
12834if test "$wxUSE_VALIDATORS" = "yes"; then
12835 cat >> confdefs.h <<\EOF
12836#define wxUSE_VALIDATORS 1
12837EOF
12838
12839 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
12840fi
12841
12842if test "$wxUSE_GIF" = "yes" ; then
12843 cat >> confdefs.h <<\EOF
12844#define wxUSE_GIF 1
12845EOF
12846
12847fi
12848
12849if test "$wxUSE_PCX" = "yes" ; then
12850 cat >> confdefs.h <<\EOF
12851#define wxUSE_PCX 1
12852EOF
12853
12854fi
12855
12856if test "$wxUSE_PNM" = "yes" ; then
12857 cat >> confdefs.h <<\EOF
12858#define wxUSE_PNM 1
12859EOF
12860
12861fi
12862
12863
aaa37c0d
VZ
12864OSINFO=`uname -s -r -m`
12865OSINFO="\"$OSINFO\""
12866cat >> confdefs.h <<EOF
12867#define WXWIN_OS_DESCRIPTION $OSINFO
12868EOF
12869
12870
12871
10f2d63a
VZ
12872GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
12873
c63c7106 12874EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
10f2d63a
VZ
12875if test "$wxUSE_GUI" = "yes"; then
12876 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS"
12877fi
12878
12879LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
12880
c7a2bf27 12881INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
10f2d63a
VZ
12882
12883if test "$GXX" = yes ; then
12884 CXXWARNINGS="-Wall"
12885 fi
12886EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
12887
12888CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'`
12889CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
12890
e694c22c
VZ
12891LDFLAGS="$LDFLAGS $PROFILE"
12892
10f2d63a
VZ
12893if test "$wxUSE_GUI" = "yes"; then
12894
70f7a477
VZ
12895 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs drawing dynamic \
12896 font fractal image minimal richedit"
b12915c1 12897
e2b8b066 12898 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS)"
10f2d63a
VZ
12899else
12900 SAMPLES_SUBDIRS=""
12901fi
12902
ec14dd32
VZ
12903SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
12904
12905
12906
10f2d63a
VZ
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
1d62a8b4 12959
e694c22c 12960
b12915c1 12961
2224580a
VZ
12962
12963
12964
12965
dad6c0ea
VZ
12966
12967
caa2c79b 12968
10f2d63a
VZ
12969
12970
12971echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
7e99ad86 12972echo "configure:12973: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
12973set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
12974if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
12975 echo $ac_n "(cached) $ac_c" 1>&6
12976else
12977 cat > conftestmake <<\EOF
12978all:
12979 @echo 'ac_maketemp="${MAKE}"'
12980EOF
12981# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12982eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
12983if test -n "$ac_maketemp"; then
12984 eval ac_cv_prog_make_${ac_make}_set=yes
12985else
12986 eval ac_cv_prog_make_${ac_make}_set=no
12987fi
12988rm -f conftestmake
12989fi
12990if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
12991 echo "$ac_t""yes" 1>&6
12992 SET_MAKE=
12993else
12994 echo "$ac_t""no" 1>&6
12995 SET_MAKE="MAKE=${MAKE-make}"
12996fi
12997
12998
12999
13000
2224580a
VZ
13001if test "$wxUSE_GUI" = "yes"; then
13002 echo $ac_n "checking glcanvas subdirectory to use""... $ac_c" 1>&6
7e99ad86 13003echo "configure:13004: checking glcanvas subdirectory to use" >&5
2224580a
VZ
13004if eval "test \"`echo '$''{'wx_cv_path_glcanvas'+set}'`\" = set"; then
13005 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13006else
2224580a
VZ
13007
13008 if test "${TOOLKIT_DIR}" = "msw" ; then
13009 wx_cv_path_glcanvas="win"
13010 else
13011 wx_cv_path_glcanvas="${TOOLKIT_DIR}"
13012 fi
13013
10f2d63a
VZ
13014fi
13015
2224580a
VZ
13016echo "$ac_t""$wx_cv_path_glcanvas" 1>&6
13017
13018 GL_TOOLKIT_DIR=$wx_cv_PATH_glcanvas
13019
13020
13021 subdirs="demos samples utils"
13022
13023fi
10f2d63a
VZ
13024
13025trap '' 1 2 15
13026cat > confcache <<\EOF
13027# This file is a shell script that caches the results of configure
13028# tests run on this system so they can be shared between configure
13029# scripts and configure runs. It is not useful on other systems.
13030# If it contains results you don't want to keep, you may remove or edit it.
13031#
13032# By default, configure uses ./config.cache as the cache file,
13033# creating it if it does not exist already. You can give configure
13034# the --cache-file=FILE option to use a different cache file; that is
13035# what configure does when it calls configure scripts in
13036# subdirectories, so they share the cache.
13037# Giving --cache-file=/dev/null disables caching, for debugging configure.
13038# config.status only pays attention to the cache file if you give it the
13039# --recheck option to rerun configure.
13040#
13041EOF
13042# The following way of writing the cache mishandles newlines in values,
13043# but we know of no workaround that is simple, portable, and efficient.
13044# So, don't put newlines in cache variables' values.
13045# Ultrix sh set writes to stderr and can't be redirected directly,
13046# and sets the high bit in the cache file unless we assign to the vars.
13047(set) 2>&1 |
13048 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13049 *ac_space=\ *)
13050 # `set' does not quote correctly, so add quotes (double-quote substitution
13051 # turns \\\\ into \\, and sed turns \\ into \).
13052 sed -n \
13053 -e "s/'/'\\\\''/g" \
13054 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13055 ;;
13056 *)
13057 # `set' quotes correctly as required by POSIX, so do not add quotes.
13058 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13059 ;;
13060 esac >> confcache
13061if cmp -s $cache_file confcache; then
13062 :
13063else
13064 if test -w $cache_file; then
13065 echo "updating cache $cache_file"
13066 cat confcache > $cache_file
13067 else
13068 echo "not updating unwritable cache $cache_file"
13069 fi
13070fi
13071rm -f confcache
13072
13073trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13074
13075test "x$prefix" = xNONE && prefix=$ac_default_prefix
13076# Let make expand exec_prefix.
13077test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13078
13079# Any assignment to VPATH causes Sun make to only execute
13080# the first set of double-colon rules, so remove it if not needed.
13081# If there is a colon in the path, we need to keep it.
13082if test "x$srcdir" = x.; then
13083 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13084fi
13085
13086trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13087
13088DEFS=-DHAVE_CONFIG_H
13089
13090# Without the "./", some shells look in PATH for config.status.
13091: ${CONFIG_STATUS=./config.status}
13092
13093echo creating $CONFIG_STATUS
13094rm -f $CONFIG_STATUS
13095cat > $CONFIG_STATUS <<EOF
13096#! /bin/sh
13097# Generated automatically by configure.
13098# Run this file to recreate the current configuration.
13099# This directory was configured as follows,
13100# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13101#
13102# $0 $ac_configure_args
13103#
13104# Compiler output produced by configure, useful for debugging
13105# configure, is in ./config.log if it exists.
13106
13107ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13108for ac_option
13109do
13110 case "\$ac_option" in
13111 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13112 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13113 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13114 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2224580a 13115 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10f2d63a
VZ
13116 exit 0 ;;
13117 -help | --help | --hel | --he | --h)
13118 echo "\$ac_cs_usage"; exit 0 ;;
13119 *) echo "\$ac_cs_usage"; exit 1 ;;
13120 esac
13121done
13122
13123ac_given_srcdir=$srcdir
13124ac_given_INSTALL="$INSTALL"
13125
13126trap 'rm -fr `echo "
13127 wx-config
13128 src/make.env
13129 src/makeprog.env
13130 src/makelib.env
13131 Makefile
10f2d63a
VZ
13132 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13133EOF
13134cat >> $CONFIG_STATUS <<EOF
13135
13136# Protect against being on the right side of a sed subst in config.status.
13137sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13138 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13139$ac_vpsub
13140$extrasub
13141s%@SHELL@%$SHELL%g
13142s%@CFLAGS@%$CFLAGS%g
13143s%@CPPFLAGS@%$CPPFLAGS%g
13144s%@CXXFLAGS@%$CXXFLAGS%g
13145s%@FFLAGS@%$FFLAGS%g
13146s%@DEFS@%$DEFS%g
13147s%@LDFLAGS@%$LDFLAGS%g
13148s%@LIBS@%$LIBS%g
13149s%@exec_prefix@%$exec_prefix%g
13150s%@prefix@%$prefix%g
13151s%@program_transform_name@%$program_transform_name%g
13152s%@bindir@%$bindir%g
13153s%@sbindir@%$sbindir%g
13154s%@libexecdir@%$libexecdir%g
13155s%@datadir@%$datadir%g
13156s%@sysconfdir@%$sysconfdir%g
13157s%@sharedstatedir@%$sharedstatedir%g
13158s%@localstatedir@%$localstatedir%g
13159s%@libdir@%$libdir%g
13160s%@includedir@%$includedir%g
13161s%@oldincludedir@%$oldincludedir%g
13162s%@infodir@%$infodir%g
13163s%@mandir@%$mandir%g
10f2d63a
VZ
13164s%@CC@%$CC%g
13165s%@CPP@%$CPP%g
13166s%@CXX@%$CXX%g
13167s%@CXXCPP@%$CXXCPP%g
13168s%@RANLIB@%$RANLIB%g
13169s%@AR@%$AR%g
13170s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13171s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13172s%@INSTALL_DATA@%$INSTALL_DATA%g
13173s%@STRIP@%$STRIP%g
13174s%@YACC@%$YACC%g
13175s%@LEX@%$LEX%g
13176s%@LEXLIB@%$LEXLIB%g
13177s%@LN_S@%$LN_S%g
13178s%@GTK_CONFIG@%$GTK_CONFIG%g
13179s%@GTK_CFLAGS@%$GTK_CFLAGS%g
13180s%@GTK_LIBS@%$GTK_LIBS%g
ab9b9eab
VZ
13181s%@X_CFLAGS@%$X_CFLAGS%g
13182s%@X_PRE_LIBS@%$X_PRE_LIBS%g
13183s%@X_LIBS@%$X_LIBS%g
13184s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
ec14dd32
VZ
13185s%@LEX_STEM@%$LEX_STEM%g
13186s%@PATH_IFS@%$PATH_IFS%g
10f2d63a
VZ
13187s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
13188s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
13189s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
13190s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
13191s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
13192s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
13193s%@WX_LIBRARY@%$WX_LIBRARY%g
13194s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
13195s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
13196s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
13197s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
13198s%@PROGRAM_EXT@%$PROGRAM_EXT%g
13199s%@WX_ALL@%$WX_ALL%g
13200s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
13201s%@SHARED_LD@%$SHARED_LD%g
13202s%@PIC_FLAG@%$PIC_FLAG%g
13203s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
caa2c79b 13204s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
1d62a8b4 13205s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
10f2d63a 13206s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
dad6c0ea
VZ
13207s%@USE_GUI@%$USE_GUI%g
13208s%@AFMINSTALL@%$AFMINSTALL%g
10f2d63a
VZ
13209s%@TOOLKIT@%$TOOLKIT%g
13210s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
13211s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
13212s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
13213s%@GUIHEADERS@%$GUIHEADERS%g
13214s%@GUIOBJS@%$GUIOBJS%g
13215s%@COMMONOBJS@%$COMMONOBJS%g
13216s%@GENERICOBJS@%$GENERICOBJS%g
13217s%@GUIDEPS@%$GUIDEPS%g
13218s%@COMMONDEPS@%$COMMONDEPS%g
13219s%@GENERICDEPS@%$GENERICDEPS%g
13220s%@IODBCOBJS@%$IODBCOBJS%g
13221s%@UNIXOBJS@%$UNIXOBJS%g
13222s%@UNIXDEPS@%$UNIXDEPS%g
13223s%@ALL_OBJECTS@%$ALL_OBJECTS%g
13224s%@ALL_DEPFILES@%$ALL_DEPFILES%g
10f2d63a 13225s%@GUIDIST@%$GUIDIST%g
2224580a
VZ
13226s%@PORT_FILES@%$PORT_FILES%g
13227s%@DISTDIR@%$DISTDIR%g
13228s%@RPM_SPEC@%$RPM_SPEC%g
13229s%@RPM_FILES@%$RPM_FILES%g
10f2d63a
VZ
13230s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
13231s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
13232s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
13233s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
13234s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
13235s%@USER_SUBDIRS@%$USER_SUBDIRS%g
13236s%@EXTRA_LIBS@%$EXTRA_LIBS%g
b12915c1 13237s%@EXTRADEFS@%$EXTRADEFS%g
10f2d63a
VZ
13238s%@LD_LIBS@%$LD_LIBS%g
13239s%@SET_MAKE@%$SET_MAKE%g
13240s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g
2224580a 13241s%@subdirs@%$subdirs%g
10f2d63a
VZ
13242
13243CEOF
13244EOF
13245
13246cat >> $CONFIG_STATUS <<\EOF
13247
13248# Split the substitutions into bite-sized pieces for seds with
13249# small command number limits, like on Digital OSF/1 and HP-UX.
13250ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13251ac_file=1 # Number of current file.
13252ac_beg=1 # First line for current file.
13253ac_end=$ac_max_sed_cmds # Line after last line for current file.
13254ac_more_lines=:
13255ac_sed_cmds=""
13256while $ac_more_lines; do
13257 if test $ac_beg -gt 1; then
13258 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13259 else
13260 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13261 fi
13262 if test ! -s conftest.s$ac_file; then
13263 ac_more_lines=false
13264 rm -f conftest.s$ac_file
13265 else
13266 if test -z "$ac_sed_cmds"; then
13267 ac_sed_cmds="sed -f conftest.s$ac_file"
13268 else
13269 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13270 fi
13271 ac_file=`expr $ac_file + 1`
13272 ac_beg=$ac_end
13273 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13274 fi
13275done
13276if test -z "$ac_sed_cmds"; then
13277 ac_sed_cmds=cat
13278fi
13279EOF
13280
13281cat >> $CONFIG_STATUS <<EOF
13282
13283CONFIG_FILES=\${CONFIG_FILES-"wx-config
13284 src/make.env
13285 src/makeprog.env
13286 src/makelib.env
13287 Makefile
10f2d63a
VZ
13288 "}
13289EOF
13290cat >> $CONFIG_STATUS <<\EOF
13291for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13292 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13293 case "$ac_file" in
13294 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13295 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13296 *) ac_file_in="${ac_file}.in" ;;
13297 esac
13298
13299 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13300
13301 # Remove last slash and all that follows it. Not all systems have dirname.
13302 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13303 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13304 # The file is in a subdirectory.
13305 test ! -d "$ac_dir" && mkdir "$ac_dir"
13306 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13307 # A "../" for each directory in $ac_dir_suffix.
13308 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13309 else
13310 ac_dir_suffix= ac_dots=
13311 fi
13312
13313 case "$ac_given_srcdir" in
13314 .) srcdir=.
13315 if test -z "$ac_dots"; then top_srcdir=.
13316 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13317 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13318 *) # Relative path.
13319 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13320 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13321 esac
13322
13323 case "$ac_given_INSTALL" in
13324 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13325 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13326 esac
13327
13328 echo creating "$ac_file"
13329 rm -f "$ac_file"
13330 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13331 case "$ac_file" in
13332 *Makefile*) ac_comsub="1i\\
13333# $configure_input" ;;
13334 *) ac_comsub= ;;
13335 esac
13336
13337 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13338 sed -e "$ac_comsub
13339s%@configure_input@%$configure_input%g
13340s%@srcdir@%$srcdir%g
13341s%@top_srcdir@%$top_srcdir%g
13342s%@INSTALL@%$INSTALL%g
13343" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13344fi; done
13345rm -f conftest.s*
13346
13347# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13348# NAME is the cpp macro being defined and VALUE is the value it is being given.
13349#
13350# ac_d sets the value in "#define NAME VALUE" lines.
13351ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13352ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13353ac_dC='\3'
13354ac_dD='%g'
13355# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13356ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13357ac_uB='\([ ]\)%\1#\2define\3'
13358ac_uC=' '
13359ac_uD='\4%g'
13360# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13361ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13362ac_eB='$%\1#\2define\3'
13363ac_eC=' '
13364ac_eD='%g'
13365
13366if test "${CONFIG_HEADERS+set}" != set; then
13367EOF
13368cat >> $CONFIG_STATUS <<EOF
13369 CONFIG_HEADERS="setup.h:setup.h.in"
13370EOF
13371cat >> $CONFIG_STATUS <<\EOF
13372fi
13373for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13374 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13375 case "$ac_file" in
13376 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13377 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13378 *) ac_file_in="${ac_file}.in" ;;
13379 esac
13380
13381 echo creating $ac_file
13382
13383 rm -f conftest.frag conftest.in conftest.out
13384 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13385 cat $ac_file_inputs > conftest.in
13386
13387EOF
13388
13389# Transform confdefs.h into a sed script conftest.vals that substitutes
13390# the proper values into config.h.in to produce config.h. And first:
13391# Protect against being on the right side of a sed subst in config.status.
13392# Protect against being in an unquoted here document in config.status.
13393rm -f conftest.vals
13394cat > conftest.hdr <<\EOF
13395s/[\\&%]/\\&/g
13396s%[\\$`]%\\&%g
13397s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13398s%ac_d%ac_u%gp
13399s%ac_u%ac_e%gp
13400EOF
13401sed -n -f conftest.hdr confdefs.h > conftest.vals
13402rm -f conftest.hdr
13403
13404# This sed command replaces #undef with comments. This is necessary, for
13405# example, in the case of _POSIX_SOURCE, which is predefined and required
13406# on some systems where configure will not decide to define it.
13407cat >> conftest.vals <<\EOF
13408s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13409EOF
13410
13411# Break up conftest.vals because some shells have a limit on
13412# the size of here documents, and old seds have small limits too.
13413
13414rm -f conftest.tail
13415while :
13416do
13417 ac_lines=`grep -c . conftest.vals`
13418 # grep -c gives empty output for an empty file on some AIX systems.
13419 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13420 # Write a limited-size here document to conftest.frag.
13421 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13422 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13423 echo 'CEOF
13424 sed -f conftest.frag conftest.in > conftest.out
13425 rm -f conftest.in
13426 mv conftest.out conftest.in
13427' >> $CONFIG_STATUS
13428 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13429 rm -f conftest.vals
13430 mv conftest.tail conftest.vals
13431done
13432rm -f conftest.vals
13433
13434cat >> $CONFIG_STATUS <<\EOF
13435 rm -f conftest.frag conftest.h
13436 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13437 cat conftest.in >> conftest.h
13438 rm -f conftest.in
13439 if cmp -s $ac_file conftest.h 2>/dev/null; then
13440 echo "$ac_file is unchanged"
13441 rm -f conftest.h
13442 else
13443 # Remove last slash and all that follows it. Not all systems have dirname.
13444 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13445 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13446 # The file is in a subdirectory.
13447 test ! -d "$ac_dir" && mkdir "$ac_dir"
13448 fi
13449 rm -f $ac_file
13450 mv conftest.h $ac_file
13451 fi
13452fi; done
13453
13454EOF
13455cat >> $CONFIG_STATUS <<EOF
13456
13457 TOOLKIT_DIR="${TOOLKIT_DIR}"
13458
13459
13460EOF
13461cat >> $CONFIG_STATUS <<\EOF
13462
13463 chmod +x wx-config
13464 if test ! -d include; then
13465 mkdir include
13466 fi
13467 if test ! -d include/wx; then
13468 mkdir include/wx
13469 fi
13470 if test ! -d include/wx/${TOOLKIT_DIR}; then
13471 mkdir include/wx/${TOOLKIT_DIR}
13472 fi
afc31813
VZ
13473 if test -f setup.h; then
13474 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
13475 fi
10f2d63a
VZ
13476
13477exit 0
13478EOF
13479chmod +x $CONFIG_STATUS
13480rm -fr confdefs* $ac_clean_files
13481test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
13482
2224580a
VZ
13483if test "$no_recursion" != yes; then
13484
13485 # Remove --cache-file and --srcdir arguments so they do not pile up.
13486 ac_sub_configure_args=
13487 ac_prev=
13488 for ac_arg in $ac_configure_args; do
13489 if test -n "$ac_prev"; then
13490 ac_prev=
13491 continue
13492 fi
13493 case "$ac_arg" in
13494 -cache-file | --cache-file | --cache-fil | --cache-fi \
13495 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13496 ac_prev=cache_file ;;
13497 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13498 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
13499 ;;
13500 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13501 ac_prev=srcdir ;;
13502 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13503 ;;
13504 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
13505 esac
13506 done
13507
13508 for ac_config_dir in demos samples utils; do
13509
13510 # Do not complain, so a configure script can configure whichever
13511 # parts of a large source tree are present.
13512 if test ! -d $srcdir/$ac_config_dir; then
13513 continue
13514 fi
13515
13516 echo configuring in $ac_config_dir
13517
13518 case "$srcdir" in
13519 .) ;;
13520 *)
13521 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
13522 else
13523 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
13524 fi
13525 ;;
13526 esac
13527
13528 ac_popdir=`pwd`
13529 cd $ac_config_dir
13530
13531 # A "../" for each directory in /$ac_config_dir.
13532 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
13533
13534 case "$srcdir" in
13535 .) # No --srcdir option. We are building in place.
13536 ac_sub_srcdir=$srcdir ;;
13537 /*) # Absolute path.
13538 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
13539 *) # Relative path.
13540 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
13541 esac
13542
13543 # Check for guested configure; otherwise get Cygnus style configure.
13544 if test -f $ac_sub_srcdir/configure; then
13545 ac_sub_configure=$ac_sub_srcdir/configure
13546 elif test -f $ac_sub_srcdir/configure.in; then
13547 ac_sub_configure=$ac_configure
13548 else
13549 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
13550 ac_sub_configure=
13551 fi
13552
13553 # The recursion is here.
13554 if test -n "$ac_sub_configure"; then
13555
13556 # Make the cache file name correct relative to the subdirectory.
13557 case "$cache_file" in
13558 /*) ac_sub_cache_file=$cache_file ;;
13559 *) # Relative path.
13560 ac_sub_cache_file="$ac_dots$cache_file" ;;
13561 esac
13562 case "$ac_given_INSTALL" in
13563 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13564 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13565 esac
13566
13567 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
13568 # The eval makes quoting arguments work.
13569 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
13570 then :
13571 else
13572 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
13573 fi
13574 fi
13575
13576 cd $ac_popdir
13577 done
13578fi
13579
10f2d63a 13580