]> git.saurik.com Git - wxWidgets.git/blame - configure
Added system DLL file installs for makewise.bat.
[wxWidgets.git] / configure
CommitLineData
a16d3c04
KB
1#! /bin/sh
2
3# From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43# Guess values for system-dependent variables and create Makefiles.
0709ee62 44# Generated automatically using autoconf version 2.13
a16d3c04
KB
45# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
46#
47# This configure script is free software; the Free Software Foundation
48# gives unlimited permission to copy, distribute and modify it.
49
50# Defaults:
51ac_help=
52ac_default_prefix=/usr/local
53# Any additions from configure.in:
f7a11f8c
RR
54ac_help="$ac_help
55--enable-gui use GUI classes"
a16d3c04
KB
56ac_help="$ac_help
57 --with-gtk use GTK+"
58ac_help="$ac_help
59 --with-motif use Motif/Lesstif"
60ac_help="$ac_help
61 --with-wine use WINE"
62ac_help="$ac_help
63 --with-cygwin use Cygwin for MS-Windows"
64ac_help="$ac_help
65 --with-mingw use GCC Minimal MS-Windows"
66ac_help="$ac_help
67 --with-gtk-prefix=PFX Prefix where GTK is installed"
68ac_help="$ac_help
69 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
70ac_help="$ac_help
71--with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
72ac_help="$ac_help
73--with-zlib use zlib for LZW compression"
74ac_help="$ac_help
75--with-libpng use libpng (PNG image format)"
76ac_help="$ac_help
a16d3c04
KB
77--with-libjpeg use libjpeg (JPEG file format)"
78ac_help="$ac_help
79--with-opengl use OpenGL (or Mesa)"
80ac_help="$ac_help
81--with-odbc use the IODBC and wxODBC classes"
82ac_help="$ac_help
83--enable-shared create shared library code"
84ac_help="$ac_help
85--enable-optimise create optimised code"
86ac_help="$ac_help
87--enable-debug same as debug_flag and debug_info"
88ac_help="$ac_help
89--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
90ac_help="$ac_help
91--enable-debug_info create code with debugging information"
92ac_help="$ac_help
93--enable-debug_gdb create code with extra GDB debugging information"
94ac_help="$ac_help
95--enable-debug_cntxt use wxDebugContext"
96ac_help="$ac_help
97--enable-mem_tracing create code with memory tracing"
98ac_help="$ac_help
99--enable-profile create code with profiling information"
100ac_help="$ac_help
101--enable-no_rtti create code without RTTI information"
102ac_help="$ac_help
103--enable-no_exceptions create code without exceptions information"
104ac_help="$ac_help
105--enable-permissive compile code disregarding strict ANSI"
106ac_help="$ac_help
107--enable-no_deps create code without dependency information"
108ac_help="$ac_help
a16d3c04
KB
109--enable-intl use internationalization system"
110ac_help="$ac_help
111--enable-config use wxConfig (and derived) classes"
112ac_help="$ac_help
113--enable-sockets use socket/network classes"
114ac_help="$ac_help
1c8515f9
KB
115--enable-dialupman use dialup network classes"
116ac_help="$ac_help
a16d3c04
KB
117--enable-ipc use interprocess communication (wxSocket etc.)"
118ac_help="$ac_help
119--enable-apple_ieee use the Apple IEEE codec"
120ac_help="$ac_help
121--enable-timedate use date/time classes"
122ac_help="$ac_help
123--enable-wave use wxWave class"
124ac_help="$ac_help
125--enable-fraction use wxFraction class"
126ac_help="$ac_help
127--enable-dynlib use wxLibrary class for DLL loading"
128ac_help="$ac_help
129--enable-longlong use wxLongLong class"
130ac_help="$ac_help
131--enable-log use logging system"
132ac_help="$ac_help
133--enable-streams use wxStream etc classes"
134ac_help="$ac_help
135--enable-file use wxFile classes"
136ac_help="$ac_help
137--enable-textfile use wxTextFile classes"
138ac_help="$ac_help
139--enable-unicode compile wxString with Unicode support"
140ac_help="$ac_help
141--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
142ac_help="$ac_help
143--enable-wxprintfv use wxWindows implementation of vprintf()"
144ac_help="$ac_help
145--enable-joystick compile in joystick support (Linux only)"
146ac_help="$ac_help
147--enable-std_iostreams use standard C++ stream classes"
148ac_help="$ac_help
149--enable-fs_inet use virtual HTTP/FTP filesystems"
150ac_help="$ac_help
151--enable-fs_zip use virtual ZIP filesystems"
152ac_help="$ac_help
153--enable-zipstream use wxZipInputStream"
154ac_help="$ac_help
155--enable-threads use threads"
156ac_help="$ac_help
157--enable-serial use class serialization"
158ac_help="$ac_help
159--enable-docview use document view architecture"
160ac_help="$ac_help
161--enable-help use help (using external browser at present)"
162ac_help="$ac_help
163--enable-constraints use layout-constraints system"
164ac_help="$ac_help
165--enable-printarch use printing architecture"
166ac_help="$ac_help
167--enable-mdi use multiple document interface architecture"
168ac_help="$ac_help
169--enable-postscript use wxPostscriptDC device context (default for gtk+)"
170ac_help="$ac_help
171--enable-prologio use Prolog IO library"
172ac_help="$ac_help
173--enable-resources use wxWindows resources"
174ac_help="$ac_help
175--enable-xresources use X resources for save (default for gtk+)"
176ac_help="$ac_help
177--enable-clipboard use wxClipboard classes"
178ac_help="$ac_help
179--enable-dnd use Drag'n'Drop classes"
180ac_help="$ac_help
181--enable-wxtree make wxTree library"
182ac_help="$ac_help
183--enable-controls use all usual controls"
184ac_help="$ac_help
185--enable-accel use accelerators"
186ac_help="$ac_help
187--enable-caret use wxCaret class"
188ac_help="$ac_help
189--enable-bmpbutton use wxBitmapButton class"
190ac_help="$ac_help
191--enable-checkbox use wxCheckBox class"
192ac_help="$ac_help
193--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
194ac_help="$ac_help
195--enable-choice use wxChoice class"
196ac_help="$ac_help
197--enable-combobox use wxComboBox classes"
198ac_help="$ac_help
199--enable-gauge use wxGauge class"
200ac_help="$ac_help
201--enable-grid use wxGrid class"
202ac_help="$ac_help
2726c66d
KB
203--enable-newgrid use new wxGrid class"
204ac_help="$ac_help
a16d3c04
KB
205--enable-imaglist use wxImageList class"
206ac_help="$ac_help
207--enable-listbox use wxListBox class"
208ac_help="$ac_help
209--enable-listctrl use wxListCtrl class"
210ac_help="$ac_help
211--enable-notebook use wxNotebook class"
212ac_help="$ac_help
213--enable-radiobox use wxRadioBox class"
214ac_help="$ac_help
215--enable-radiobtn use wxRadioButton class"
216ac_help="$ac_help
217--enable-sash use wxSashWindow class"
218ac_help="$ac_help
219--enable-scrollbar use wxScrollBar class and scrollable windows"
220ac_help="$ac_help
221--enable-slider use wxSlider class"
222ac_help="$ac_help
223--enable-spinbtn use wxSpinButton class"
224ac_help="$ac_help
225--enable-splitter use wxSplitterWindow class"
226ac_help="$ac_help
227--enable-statbmp use wxStaticBitmap class"
228ac_help="$ac_help
229--enable-statbox use wxStaticBox class"
230ac_help="$ac_help
231--enable-statline use wxStaticLine class"
232ac_help="$ac_help
233--enable-statusbar use wxStatusBar class"
234ac_help="$ac_help
235--enable-tabdialog use wxTabControl class"
236ac_help="$ac_help
237--enable-toolbar use wxToolBar class"
238ac_help="$ac_help
239--enable-treectrl use wxTreeCtrl class"
240ac_help="$ac_help
241--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
242ac_help="$ac_help
243--enable-dirdlg use wxDirDialog"
244ac_help="$ac_help
245--enable-textdlg use wxTextDialog"
246ac_help="$ac_help
247--enable-tipdlg use startup tips"
248ac_help="$ac_help
249--enable-progressdlg use wxProgressDialog"
250ac_help="$ac_help
251--enable-miniframe use wxMiniFrame class"
252ac_help="$ac_help
253--enable-html use wxHTML sub-library"
254ac_help="$ac_help
255--enable-tooltips use wxToolTip class"
256ac_help="$ac_help
257--enable-splines use spline drawing code"
258ac_help="$ac_help
259--enable-validators use wxValidator and derived classes"
260ac_help="$ac_help
261--enable-busyinfo use wxBusyInfo"
1c8515f9
KB
262ac_help="$ac_help
263--enable-gif use gif images (GIF file format)"
264ac_help="$ac_help
265--enable-pcx use pcx images (PCX file format)"
266ac_help="$ac_help
267--enable-pnm use pnm images (PNM file format)"
a16d3c04
KB
268ac_help="$ac_help
269 --with-x use the X Window System"
270
271# Initialize some variables set by options.
272# The variables have the same names as the options, with
273# dashes changed to underlines.
274build=NONE
275cache_file=./config.cache
276exec_prefix=NONE
277host=NONE
278no_create=
279nonopt=NONE
280no_recursion=
281prefix=NONE
282program_prefix=NONE
283program_suffix=NONE
284program_transform_name=s,x,x,
285silent=
286site=
287srcdir=
288target=NONE
289verbose=
290x_includes=NONE
291x_libraries=NONE
292bindir='${exec_prefix}/bin'
293sbindir='${exec_prefix}/sbin'
294libexecdir='${exec_prefix}/libexec'
295datadir='${prefix}/share'
296sysconfdir='${prefix}/etc'
297sharedstatedir='${prefix}/com'
298localstatedir='${prefix}/var'
299libdir='${exec_prefix}/lib'
300includedir='${prefix}/include'
301oldincludedir='/usr/include'
302infodir='${prefix}/info'
303mandir='${prefix}/man'
304
305# Initialize some other variables.
306subdirs=
307MFLAGS= MAKEFLAGS=
0709ee62 308SHELL=${CONFIG_SHELL-/bin/sh}
a16d3c04
KB
309# Maximum number of lines to put in a shell here document.
310ac_max_here_lines=12
311
312ac_prev=
313for ac_option
314do
315
316 # If the previous option needs an argument, assign it.
317 if test -n "$ac_prev"; then
318 eval "$ac_prev=\$ac_option"
319 ac_prev=
320 continue
321 fi
322
323 case "$ac_option" in
324 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
325 *) ac_optarg= ;;
326 esac
327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
330 case "$ac_option" in
331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
335 bindir="$ac_optarg" ;;
336
337 -build | --build | --buil | --bui | --bu)
338 ac_prev=build ;;
339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340 build="$ac_optarg" ;;
341
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347 cache_file="$ac_optarg" ;;
348
349 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
350 ac_prev=datadir ;;
351 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
352 | --da=*)
353 datadir="$ac_optarg" ;;
354
355 -disable-* | --disable-*)
356 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
357 # Reject names that are not valid shell variable names.
358 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
359 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
360 fi
361 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
362 eval "enable_${ac_feature}=no" ;;
363
364 -enable-* | --enable-*)
365 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
368 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
369 fi
370 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
371 case "$ac_option" in
372 *=*) ;;
373 *) ac_optarg=yes ;;
374 esac
375 eval "enable_${ac_feature}='$ac_optarg'" ;;
376
377 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
378 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
379 | --exec | --exe | --ex)
380 ac_prev=exec_prefix ;;
381 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
382 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
383 | --exec=* | --exe=* | --ex=*)
384 exec_prefix="$ac_optarg" ;;
385
386 -gas | --gas | --ga | --g)
387 # Obsolete; use --with-gas.
388 with_gas=yes ;;
389
390 -help | --help | --hel | --he)
391 # Omit some internal or obsolete options to make the list less imposing.
392 # This message is too long to be a string in the A/UX 3.1 sh.
393 cat << EOF
394Usage: configure [options] [host]
395Options: [defaults in brackets after descriptions]
396Configuration:
397 --cache-file=FILE cache test results in FILE
398 --help print this message
399 --no-create do not create output files
400 --quiet, --silent do not print \`checking...' messages
401 --version print the version of autoconf that created configure
402Directory and file names:
403 --prefix=PREFIX install architecture-independent files in PREFIX
404 [$ac_default_prefix]
405 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
406 [same as prefix]
407 --bindir=DIR user executables in DIR [EPREFIX/bin]
408 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
409 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
410 --datadir=DIR read-only architecture-independent data in DIR
411 [PREFIX/share]
412 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
413 --sharedstatedir=DIR modifiable architecture-independent data in DIR
414 [PREFIX/com]
415 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
416 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
417 --includedir=DIR C header files in DIR [PREFIX/include]
418 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
419 --infodir=DIR info documentation in DIR [PREFIX/info]
420 --mandir=DIR man documentation in DIR [PREFIX/man]
421 --srcdir=DIR find the sources in DIR [configure dir or ..]
422 --program-prefix=PREFIX prepend PREFIX to installed program names
423 --program-suffix=SUFFIX append SUFFIX to installed program names
424 --program-transform-name=PROGRAM
425 run sed PROGRAM on installed program names
426EOF
427 cat << EOF
428Host type:
429 --build=BUILD configure for building on BUILD [BUILD=HOST]
430 --host=HOST configure for HOST [guessed]
431 --target=TARGET configure for TARGET [TARGET=HOST]
432Features and packages:
433 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
434 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
435 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
437 --x-includes=DIR X include files are in DIR
438 --x-libraries=DIR X library files are in DIR
439EOF
440 if test -n "$ac_help"; then
441 echo "--enable and --with options recognized:$ac_help"
442 fi
443 exit 0 ;;
444
445 -host | --host | --hos | --ho)
446 ac_prev=host ;;
447 -host=* | --host=* | --hos=* | --ho=*)
448 host="$ac_optarg" ;;
449
450 -includedir | --includedir | --includedi | --included | --include \
451 | --includ | --inclu | --incl | --inc)
452 ac_prev=includedir ;;
453 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
454 | --includ=* | --inclu=* | --incl=* | --inc=*)
455 includedir="$ac_optarg" ;;
456
457 -infodir | --infodir | --infodi | --infod | --info | --inf)
458 ac_prev=infodir ;;
459 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
460 infodir="$ac_optarg" ;;
461
462 -libdir | --libdir | --libdi | --libd)
463 ac_prev=libdir ;;
464 -libdir=* | --libdir=* | --libdi=* | --libd=*)
465 libdir="$ac_optarg" ;;
466
467 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
468 | --libexe | --libex | --libe)
469 ac_prev=libexecdir ;;
470 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
471 | --libexe=* | --libex=* | --libe=*)
472 libexecdir="$ac_optarg" ;;
473
474 -localstatedir | --localstatedir | --localstatedi | --localstated \
475 | --localstate | --localstat | --localsta | --localst \
476 | --locals | --local | --loca | --loc | --lo)
477 ac_prev=localstatedir ;;
478 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
479 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
480 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
481 localstatedir="$ac_optarg" ;;
482
483 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
484 ac_prev=mandir ;;
485 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
486 mandir="$ac_optarg" ;;
487
488 -nfp | --nfp | --nf)
489 # Obsolete; use --without-fp.
490 with_fp=no ;;
491
492 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
493 | --no-cr | --no-c)
494 no_create=yes ;;
495
496 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
497 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
498 no_recursion=yes ;;
499
500 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
501 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
502 | --oldin | --oldi | --old | --ol | --o)
503 ac_prev=oldincludedir ;;
504 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
505 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
506 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
507 oldincludedir="$ac_optarg" ;;
508
509 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
510 ac_prev=prefix ;;
511 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
512 prefix="$ac_optarg" ;;
513
514 -program-prefix | --program-prefix | --program-prefi | --program-pref \
515 | --program-pre | --program-pr | --program-p)
516 ac_prev=program_prefix ;;
517 -program-prefix=* | --program-prefix=* | --program-prefi=* \
518 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
519 program_prefix="$ac_optarg" ;;
520
521 -program-suffix | --program-suffix | --program-suffi | --program-suff \
522 | --program-suf | --program-su | --program-s)
523 ac_prev=program_suffix ;;
524 -program-suffix=* | --program-suffix=* | --program-suffi=* \
525 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
526 program_suffix="$ac_optarg" ;;
527
528 -program-transform-name | --program-transform-name \
529 | --program-transform-nam | --program-transform-na \
530 | --program-transform-n | --program-transform- \
531 | --program-transform | --program-transfor \
532 | --program-transfo | --program-transf \
533 | --program-trans | --program-tran \
534 | --progr-tra | --program-tr | --program-t)
535 ac_prev=program_transform_name ;;
536 -program-transform-name=* | --program-transform-name=* \
537 | --program-transform-nam=* | --program-transform-na=* \
538 | --program-transform-n=* | --program-transform-=* \
539 | --program-transform=* | --program-transfor=* \
540 | --program-transfo=* | --program-transf=* \
541 | --program-trans=* | --program-tran=* \
542 | --progr-tra=* | --program-tr=* | --program-t=*)
543 program_transform_name="$ac_optarg" ;;
544
545 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
546 | -silent | --silent | --silen | --sile | --sil)
547 silent=yes ;;
548
549 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
550 ac_prev=sbindir ;;
551 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
552 | --sbi=* | --sb=*)
553 sbindir="$ac_optarg" ;;
554
555 -sharedstatedir | --sharedstatedir | --sharedstatedi \
556 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
557 | --sharedst | --shareds | --shared | --share | --shar \
558 | --sha | --sh)
559 ac_prev=sharedstatedir ;;
560 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
561 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
562 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
563 | --sha=* | --sh=*)
564 sharedstatedir="$ac_optarg" ;;
565
566 -site | --site | --sit)
567 ac_prev=site ;;
568 -site=* | --site=* | --sit=*)
569 site="$ac_optarg" ;;
570
571 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
572 ac_prev=srcdir ;;
573 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
574 srcdir="$ac_optarg" ;;
575
576 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
577 | --syscon | --sysco | --sysc | --sys | --sy)
578 ac_prev=sysconfdir ;;
579 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
580 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
581 sysconfdir="$ac_optarg" ;;
582
583 -target | --target | --targe | --targ | --tar | --ta | --t)
584 ac_prev=target ;;
585 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
586 target="$ac_optarg" ;;
587
588 -v | -verbose | --verbose | --verbos | --verbo | --verb)
589 verbose=yes ;;
590
591 -version | --version | --versio | --versi | --vers)
0709ee62 592 echo "configure generated by autoconf version 2.13"
a16d3c04
KB
593 exit 0 ;;
594
595 -with-* | --with-*)
596 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
597 # Reject names that are not valid shell variable names.
598 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
599 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
600 fi
601 ac_package=`echo $ac_package| sed 's/-/_/g'`
602 case "$ac_option" in
603 *=*) ;;
604 *) ac_optarg=yes ;;
605 esac
606 eval "with_${ac_package}='$ac_optarg'" ;;
607
608 -without-* | --without-*)
609 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
610 # Reject names that are not valid shell variable names.
611 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
612 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
613 fi
614 ac_package=`echo $ac_package| sed 's/-/_/g'`
615 eval "with_${ac_package}=no" ;;
616
617 --x)
618 # Obsolete; use --with-x.
619 with_x=yes ;;
620
621 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
622 | --x-incl | --x-inc | --x-in | --x-i)
623 ac_prev=x_includes ;;
624 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
625 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
626 x_includes="$ac_optarg" ;;
627
628 -x-libraries | --x-libraries | --x-librarie | --x-librari \
629 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
630 ac_prev=x_libraries ;;
631 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
632 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
633 x_libraries="$ac_optarg" ;;
634
635 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
636 ;;
637
638 *)
639 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
640 echo "configure: warning: $ac_option: invalid host type" 1>&2
641 fi
642 if test "x$nonopt" != xNONE; then
643 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
644 fi
645 nonopt="$ac_option"
646 ;;
647
648 esac
649done
650
651if test -n "$ac_prev"; then
652 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
653fi
654
655trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
656
657# File descriptor usage:
658# 0 standard input
659# 1 file creation
660# 2 errors and warnings
661# 3 some systems may open it to /dev/tty
662# 4 used on the Kubota Titan
663# 6 checking for... messages and results
664# 5 compiler messages saved in config.log
665if test "$silent" = yes; then
666 exec 6>/dev/null
667else
668 exec 6>&1
669fi
670exec 5>./config.log
671
672echo "\
673This file contains any messages produced by compilers while
674running configure, to aid debugging if configure makes a mistake.
675" 1>&5
676
677# Strip out --no-create and --no-recursion so they do not pile up.
678# Also quote any args containing shell metacharacters.
679ac_configure_args=
680for ac_arg
681do
682 case "$ac_arg" in
683 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
684 | --no-cr | --no-c) ;;
685 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
686 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
687 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
688 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
689 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
690 esac
691done
692
693# NLS nuisances.
694# Only set these to C if already set. These must not be set unconditionally
695# because not all systems understand e.g. LANG=C (notably SCO).
696# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
697# Non-C LC_CTYPE values break the ctype check.
698if test "${LANG+set}" = set; then LANG=C; export LANG; fi
699if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
700if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
701if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
702
703# confdefs.h avoids OS command line length limits that DEFS can exceed.
704rm -rf conftest* confdefs.h
705# AIX cpp loses on an empty file, so make sure it contains at least a newline.
706echo > confdefs.h
707
708# A filename unique to this package, relative to the directory that
709# configure is in, which we can look for to find out if srcdir is correct.
710ac_unique_file=wx-config.in
711
712# Find the source files, if location was not specified.
713if test -z "$srcdir"; then
714 ac_srcdir_defaulted=yes
715 # Try the directory containing this script, then its parent.
716 ac_prog=$0
717 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
718 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
719 srcdir=$ac_confdir
720 if test ! -r $srcdir/$ac_unique_file; then
721 srcdir=..
722 fi
723else
724 ac_srcdir_defaulted=no
725fi
726if test ! -r $srcdir/$ac_unique_file; then
727 if test "$ac_srcdir_defaulted" = yes; then
728 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
729 else
730 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
731 fi
732fi
733srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
734
735# Prefer explicitly selected file to automatically selected ones.
736if test -z "$CONFIG_SITE"; then
737 if test "x$prefix" != xNONE; then
738 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
739 else
740 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
741 fi
742fi
743for ac_site_file in $CONFIG_SITE; do
744 if test -r "$ac_site_file"; then
745 echo "loading site script $ac_site_file"
746 . "$ac_site_file"
747 fi
748done
749
750if test -r "$cache_file"; then
751 echo "loading cache $cache_file"
752 . $cache_file
753else
754 echo "creating cache $cache_file"
755 > $cache_file
756fi
757
758ac_ext=c
759# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
760ac_cpp='$CPP $CPPFLAGS'
761ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
0709ee62 762ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
763cross_compiling=$ac_cv_prog_cc_cross
764
0709ee62
VZ
765ac_exeext=
766ac_objext=o
a16d3c04
KB
767if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
768 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
769 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
770 ac_n= ac_c='
771' ac_t=' '
772 else
773 ac_n=-n ac_c= ac_t=
774 fi
775else
776 ac_n= ac_c='\c' ac_t=
777fi
778
779
780
781ac_aux_dir=
782for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
783 if test -f $ac_dir/install-sh; then
784 ac_aux_dir=$ac_dir
785 ac_install_sh="$ac_aux_dir/install-sh -c"
786 break
787 elif test -f $ac_dir/install.sh; then
788 ac_aux_dir=$ac_dir
789 ac_install_sh="$ac_aux_dir/install.sh -c"
790 break
791 fi
792done
793if test -z "$ac_aux_dir"; then
794 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
795fi
796ac_config_guess=$ac_aux_dir/config.guess
797ac_config_sub=$ac_aux_dir/config.sub
798ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
799
800
801# Do some error checking and defaulting for the host and target type.
802# The inputs are:
803# configure --host=HOST --target=TARGET --build=BUILD NONOPT
804#
805# The rules are:
806# 1. You are not allowed to specify --host, --target, and nonopt at the
807# same time.
808# 2. Host defaults to nonopt.
809# 3. If nonopt is not specified, then host defaults to the current host,
810# as determined by config.guess.
811# 4. Target and build default to nonopt.
812# 5. If nonopt is not specified, then target and build default to host.
813
814# The aliases save the names the user supplied, while $host etc.
815# will get canonicalized.
816case $host---$target---$nonopt in
817NONE---*---* | *---NONE---* | *---*---NONE) ;;
818*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
819esac
820
821
822# Make sure we can run config.sub.
0709ee62 823if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
a16d3c04
KB
824else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
825fi
826
827echo $ac_n "checking host system type""... $ac_c" 1>&6
0709ee62 828echo "configure:829: checking host system type" >&5
a16d3c04
KB
829
830host_alias=$host
831case "$host_alias" in
832NONE)
833 case $nonopt in
834 NONE)
0709ee62 835 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
a16d3c04
KB
836 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
837 fi ;;
838 *) host_alias=$nonopt ;;
839 esac ;;
840esac
841
0709ee62 842host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
a16d3c04
KB
843host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
844host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
845host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
846echo "$ac_t""$host" 1>&6
847
848echo $ac_n "checking target system type""... $ac_c" 1>&6
0709ee62 849echo "configure:850: checking target system type" >&5
a16d3c04
KB
850
851target_alias=$target
852case "$target_alias" in
853NONE)
854 case $nonopt in
855 NONE) target_alias=$host_alias ;;
856 *) target_alias=$nonopt ;;
857 esac ;;
858esac
859
0709ee62 860target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
a16d3c04
KB
861target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
862target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
863target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
864echo "$ac_t""$target" 1>&6
865
866echo $ac_n "checking build system type""... $ac_c" 1>&6
0709ee62 867echo "configure:868: checking build system type" >&5
a16d3c04
KB
868
869build_alias=$build
870case "$build_alias" in
871NONE)
872 case $nonopt in
873 NONE) build_alias=$host_alias ;;
874 *) build_alias=$nonopt ;;
875 esac ;;
876esac
877
0709ee62 878build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
a16d3c04
KB
879build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
880build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
881build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
882echo "$ac_t""$build" 1>&6
883
884test "$host_alias" != "$target_alias" &&
885 test "$program_prefix$program_suffix$program_transform_name" = \
886 NONENONEs,x,x, &&
887 program_prefix=${target_alias}-
888
889
890
891WX_MAJOR_VERSION_NUMBER=2
892WX_MINOR_VERSION_NUMBER=1
0709ee62 893WX_RELEASE_NUMBER=10
a16d3c04
KB
894
895WX_INTERFACE_AGE=0
896WX_BINARY_AGE=0
897
898WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
899
900WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
901WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
902WX_REVISION=$WX_INTERFACE_AGE
903WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
904
905
906USE_UNIX=1
4882bf1b 907USE_WIN32=0
a16d3c04
KB
908USE_LINUX=
909USE_SGI=
910USE_HPUX=
911USE_SYSV=
912USE_SVR4=
913USE_AIX=
914USE_SUN=
915USE_SOLARIS=
916USE_SUNOS=
917USE_ALPHA=
918USE_OSF=
919USE_BSD=
920USE_FREEBSD=
921USE_VMS=
922USE_ULTRIX=
923USE_CYGWIN=
924USE_MINGW=
925USE_DATA_GENERAL=
926
927ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE"
928
929DEFAULT_wxUSE_GTK=0
930DEFAULT_wxUSE_MOTIF=0
931DEFAULT_wxUSE_MSW=0
932DEFAULT_wxUSE_WINE=0
933
934DEFAULT_DEFAULT_wxUSE_GTK=0
935DEFAULT_DEFAULT_wxUSE_MOTIF=0
936DEFAULT_DEFAULT_wxUSE_MSW=0
937DEFAULT_DEFAULT_wxUSE_WINE=0
938
939case "${host}" in
940 *-hp-hpux* )
941 USE_HPUX=1
942 DEFAULT_DEFAULT_wxUSE_MOTIF=1
943 cat >> confdefs.h <<\EOF
944#define __HPUX__ 1
945EOF
946
947 ;;
948 *-*-linux* )
949 USE_LINUX=1
950 cat >> confdefs.h <<\EOF
951#define __LINUX__ 1
952EOF
953
954 TMP=`uname -m`
955 if test "x$TMP" = "xalpha"; then
956 USE_ALPHA=1
957 cat >> confdefs.h <<\EOF
958#define __ALPHA__ 1
959EOF
960
961 fi
962 DEFAULT_DEFAULT_wxUSE_GTK=1
963 ;;
964 *-*-irix5* | *-*-irix6* )
965 USE_SGI=1
966 USE_SVR4=1
967 cat >> confdefs.h <<\EOF
968#define __SGI__ 1
969EOF
970
971 cat >> confdefs.h <<\EOF
972#define __SVR4__ 1
973EOF
974
975 DEFAULT_DEFAULT_wxUSE_MOTIF=1
976 ;;
977 *-*-solaris2* )
978 USE_SUN=1
979 USE_SOLARIS=1
980 USE_SVR4=1
981 cat >> confdefs.h <<\EOF
982#define __SUN__ 1
983EOF
984
985 cat >> confdefs.h <<\EOF
986#define __SOLARIS__ 1
987EOF
988
989 cat >> confdefs.h <<\EOF
990#define __SVR4__ 1
991EOF
992
993 DEFAULT_DEFAULT_wxUSE_MOTIF=1
994 ;;
995 *-*-sunos4* )
996 USE_SUN=1
997 USE_SUNOS=1
998 USE_BSD=1
999 cat >> confdefs.h <<\EOF
1000#define __SUN__ 1
1001EOF
1002
1003 cat >> confdefs.h <<\EOF
1004#define __SUNOS__ 1
1005EOF
1006
1007 cat >> confdefs.h <<\EOF
1008#define __BSD__ 1
1009EOF
1010
1011 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1012 ;;
1013 *-*-freebsd* | *-*-netbsd*)
1014 USE_BSD=1
1015 USE_FREEBSD=1
1016 cat >> confdefs.h <<\EOF
1017#define __FREEBSD__ 1
1018EOF
1019
1020 cat >> confdefs.h <<\EOF
1021#define __BSD__ 1
1022EOF
1023
1024 DEFAULT_DEFAULT_wxUSE_GTK=1
1025 ;;
1026 *-*-osf* )
1027 USE_ALPHA=1
1028 USE_OSF=1
1029 cat >> confdefs.h <<\EOF
1030#define __ALPHA__ 1
1031EOF
1032
1033 cat >> confdefs.h <<\EOF
1034#define __OSF__ 1
1035EOF
1036
1037 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1038 ;;
1039 *-*-dgux5* )
1040 USE_ALPHA=1
1041 USE_SVR4=1
1042 cat >> confdefs.h <<\EOF
1043#define __ALPHA__ 1
1044EOF
1045
1046 cat >> confdefs.h <<\EOF
1047#define __SVR4__ 1
1048EOF
1049
1050 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1051 ;;
1052 *-*-sysv5* )
1053 USE_SYSV=1
1054 USE_SVR4=1
1055 cat >> confdefs.h <<\EOF
1056#define __SYSV__ 1
1057EOF
1058
1059 cat >> confdefs.h <<\EOF
1060#define __SVR4__ 1
1061EOF
1062
1063 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1064 ;;
1065 *-*-aix* )
1066 USE_AIX=1
1067 USE_SYSV=1
1068 USE_SVR4=1
1069 cat >> confdefs.h <<\EOF
1070#define __AIX__ 1
1071EOF
1072
1073 cat >> confdefs.h <<\EOF
1074#define __SYSV__ 1
1075EOF
1076
1077 cat >> confdefs.h <<\EOF
1078#define __SVR4__ 1
1079EOF
1080
1081 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1082 ;;
1083
1084 *-*-cygwin32* )
1085 USE_UNIX=0
4882bf1b 1086 USE_WIN32=1
a16d3c04
KB
1087 cat >> confdefs.h <<\EOF
1088#define __WIN32__ 1
1089EOF
1090
1091 cat >> confdefs.h <<\EOF
1092#define __WIN95__ 1
1093EOF
1094
1095 cat >> confdefs.h <<\EOF
1096#define __WINDOWS__ 1
1097EOF
1098
1099 cat >> confdefs.h <<\EOF
1100#define __GNUWIN32__ 1
1101EOF
1102
1103 cat >> confdefs.h <<\EOF
1104#define STRICT 1
1105EOF
1106
1107 cat >> confdefs.h <<\EOF
1108#define WINVER 0x0400
1109EOF
1110
1111 DEFAULT_DEFAULT_wxUSE_MSW=1
1112 ;;
1113 *-*-mingw32* )
1114 USE_UNIX=0
4882bf1b 1115 USE_WIN32=1
a16d3c04
KB
1116 cat >> confdefs.h <<\EOF
1117#define __WIN32__ 1
1118EOF
1119
1120 cat >> confdefs.h <<\EOF
1121#define __WIN95__ 1
1122EOF
1123
1124 cat >> confdefs.h <<\EOF
1125#define __WINDOWS__ 1
1126EOF
1127
1128 cat >> confdefs.h <<\EOF
1129#define __GNUWIN32__ 1
1130EOF
1131
1132 cat >> confdefs.h <<\EOF
1133#define STRICT 1
1134EOF
1135
1136 cat >> confdefs.h <<\EOF
1137#define WINVER 0x0400
1138EOF
1139
1140 DEFAULT_DEFAULT_wxUSE_MSW=1
1141 ;;
1142
1143 *-pc-os2_emx )
1144 cat >> confdefs.h <<\EOF
1145#define __EMX__ 1
1146EOF
1147
1148 ;;
1149
1150 *)
1151 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1152esac
1153
1154if test "$USE_UNIX" = 1 ; then
1155 wxUSE_UNIX=yes
1156 cat >> confdefs.h <<\EOF
1157#define __UNIX__ 1
1158EOF
1159
1160 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1161 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1162fi
1163
1164if test "$USE_LINUX" = 1; then
1165 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
4882bf1b 1166echo "configure:1167: checking for gettext in -lc" >&5
a16d3c04
KB
1167ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1168if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1169 echo $ac_n "(cached) $ac_c" 1>&6
1170else
1171 ac_save_LIBS="$LIBS"
1172LIBS="-lc $LIBS"
1173cat > conftest.$ac_ext <<EOF
4882bf1b 1174#line 1175 "configure"
a16d3c04
KB
1175#include "confdefs.h"
1176/* Override any gcc2 internal prototype to avoid an error. */
1177/* We use char because int might match the return type of a gcc2
1178 builtin and then its argument prototype would still apply. */
1179char gettext();
1180
1181int main() {
1182gettext()
1183; return 0; }
1184EOF
4882bf1b 1185if { (eval echo configure:1186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
1186 rm -rf conftest*
1187 eval "ac_cv_lib_$ac_lib_var=yes"
1188else
1189 echo "configure: failed program was:" >&5
1190 cat conftest.$ac_ext >&5
1191 rm -rf conftest*
1192 eval "ac_cv_lib_$ac_lib_var=no"
1193fi
1194rm -f conftest*
1195LIBS="$ac_save_LIBS"
1196
1197fi
1198if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1199 echo "$ac_t""yes" 1>&6
1200 cat >> confdefs.h <<\EOF
1201#define wxHAVE_GLIBC2 1
1202EOF
1203
1204else
1205 echo "$ac_t""no" 1>&6
1206fi
1207
1208fi
1209
1210
1211
1212
1213 wx_arg_cache_file="configarg.cache"
1214 echo "loading argument cache $wx_arg_cache_file"
1215 rm -f ${wx_arg_cache_file}.tmp
1216 touch ${wx_arg_cache_file}.tmp
1217 touch ${wx_arg_cache_file}
1218
1219
1220DEBUG_CONFIGURE=0
1221if test $DEBUG_CONFIGURE = 1; then
1222 DEFAULT_wxUSE_THREADS=yes
1223
1224 DEFAULT_wxUSE_SHARED=yes
1225 DEFAULT_wxUSE_OPTIMISE=yes
1226 DEFAULT_wxUSE_PROFILE=no
1227 DEFAULT_wxUSE_NO_DEPS=no
1228 DEFAULT_wxUSE_NO_RTTI=no
1229 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1230 DEFAULT_wxUSE_PERMISSIVE=no
1231 DEFAULT_wxUSE_DEBUG_FLAG=yes
1232 DEFAULT_wxUSE_DEBUG_INFO=yes
1233 DEFAULT_wxUSE_DEBUG_GDB=yes
1234 DEFAULT_wxUSE_MEM_TRACING=no
1235 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1236 DEFAULT_wxUSE_DMALLOC=no
1237 DEFAULT_wxUSE_APPLE_IEEE=no
1238
1239 DEFAULT_wxUSE_LOG=yes
1240
1241 DEFAULT_wxUSE_GUI=yes
1242
1243 DEFAULT_wxUSE_ZLIB=no
1244 DEFAULT_wxUSE_LIBPNG=no
a16d3c04
KB
1245 DEFAULT_wxUSE_LIBJPEG=no
1246 DEFAULT_wxUSE_ODBC=no
1247
1248 DEFAULT_wxUSE_STD_IOSTREAM=no
1249 DEFAULT_wxUSE_FILE=no
1250 DEFAULT_wxUSE_TEXTFILE=no
1251 DEFAULT_wxUSE_TIMEDATE=no
1252 DEFAULT_wxUSE_WAVE=no
1253 DEFAULT_wxUSE_INTL=no
1254 DEFAULT_wxUSE_CONFIG=no
1255 DEFAULT_wxUSE_STREAMS=no
1256 DEFAULT_wxUSE_SOCKETS=no
1c8515f9 1257 DEFAULT_wxUSE_DIALUP_MANAGER=no
a16d3c04
KB
1258 DEFAULT_wxUSE_SERIAL=no
1259 DEFAULT_wxUSE_JOYSTICK=no
1260 DEFAULT_wxUSE_DYNLIB_CLASS=no
1261 DEFAULT_wxUSE_LONGLONG=no
1262
1263 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1264 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1265 DEFAULT_wxUSE_POSTSCRIPT=no
1266
1267 DEFAULT_wxUSE_X_RESOURCES=no
1268 DEFAULT_wxUSE_CLIPBOARD=no
1269 DEFAULT_wxUSE_TOOLTIPS=no
1270 DEFAULT_wxUSE_DRAG_AND_DROP=no
1271 DEFAULT_wxUSE_SPLINES=no
1272
1273 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1274 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1275 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1276
1277 DEFAULT_wxUSE_PROLOGIO=no
1278 DEFAULT_wxUSE_RESOURCES=no
1279 DEFAULT_wxUSE_CONSTRAINTS=no
1280 DEFAULT_wxUSE_IPC=no
1281 DEFAULT_wxUSE_HELP=no
1282 DEFAULT_wxUSE_WXTREE=no
1283 DEFAULT_wxUSE_METAFILE=no
1284
1285 DEFAULT_wxUSE_COMMONDLGS=no
1286 DEFAULT_wxUSE_DIRDLG=no
1287 DEFAULT_wxUSE_TEXTDLG=no
1288 DEFAULT_wxUSE_STARTUP_TIPS=no
1289 DEFAULT_wxUSE_PROGRESSDLG=no
1290 DEFAULT_wxUSE_MINIFRAME=no
1291 DEFAULT_wxUSE_HTML=no
1292 DEFAULT_wxUSE_FS_INET=no
1293 DEFAULT_wxUSE_FS_ZIP=no
1294 DEFAULT_wxUSE_BUSYINFO=no
1295 DEFAULT_wxUSE_ZIPSTREAM=no
1296 DEFAULT_wxUSE_VALIDATORS=yes
1297
1298 DEFAULT_wxUSE_ACCEL=no
1299 DEFAULT_wxUSE_CARET=no
1300 DEFAULT_wxUSE_BMPBUTTON=no
1301 DEFAULT_wxUSE_CHECKBOX=no
1302 DEFAULT_wxUSE_CHECKLST=no
1303 DEFAULT_wxUSE_CHOICE=yes
1304 DEFAULT_wxUSE_COMBOBOX=no
1305 DEFAULT_wxUSE_GAUGE=no
1306 DEFAULT_wxUSE_GRID=no
2726c66d 1307 DEFAULT_wxUSE_NEW_GRID=no
a16d3c04
KB
1308 DEFAULT_wxUSE_IMAGLIST=no
1309 DEFAULT_wxUSE_LISTBOX=no
1310 DEFAULT_wxUSE_LISTCTRL=no
1311 DEFAULT_wxUSE_NOTEBOOK=no
1312 DEFAULT_wxUSE_RADIOBOX=no
1313 DEFAULT_wxUSE_RADIOBTN=no
1314 DEFAULT_wxUSE_SASH=no
1315 DEFAULT_wxUSE_SCROLLBAR=no
1316 DEFAULT_wxUSE_SLIDER=no
1317 DEFAULT_wxUSE_SPINBTN=no
1318 DEFAULT_wxUSE_SPLITTER=no
1319 DEFAULT_wxUSE_STATBMP=no
1320 DEFAULT_wxUSE_STATBOX=no
1321 DEFAULT_wxUSE_STATLINE=no
1322 DEFAULT_wxUSE_STATUSBAR=yes
1323 DEFAULT_wxUSE_TABDIALOG=no
1324 DEFAULT_wxUSE_TOOLBAR=no
1325 DEFAULT_wxUSE_TREECTRL=no
1326
1327 DEFAULT_wxUSE_UNICODE=no
1328 DEFAULT_wxUSE_WCSRTOMBS=no
f7a11f8c 1329
1c8515f9
KB
1330 DEFAULT_wxUSE_GIF=no
1331 DEFAULT_wxUSE_PCX=no
1332 DEFAULT_wxUSE_PNM=no
a16d3c04
KB
1333else
1334 DEFAULT_wxUSE_THREADS=yes
1335
1336 DEFAULT_wxUSE_SHARED=yes
1337 DEFAULT_wxUSE_OPTIMISE=yes
1338 DEFAULT_wxUSE_PROFILE=no
1339 DEFAULT_wxUSE_NO_DEPS=no
1340 DEFAULT_wxUSE_NO_RTTI=no
1341 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1342 DEFAULT_wxUSE_PERMISSIVE=no
1343 DEFAULT_wxUSE_DEBUG_FLAG=no
1344 DEFAULT_wxUSE_DEBUG_INFO=no
1345 DEFAULT_wxUSE_DEBUG_GDB=no
1346 DEFAULT_wxUSE_MEM_TRACING=no
1347 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1348 DEFAULT_wxUSE_DMALLOC=no
1349 DEFAULT_wxUSE_APPLE_IEEE=yes
1350
1351 DEFAULT_wxUSE_LOG=yes
1352
1353 DEFAULT_wxUSE_GUI=yes
1354
1355 DEFAULT_wxUSE_ZLIB=yes
1356 DEFAULT_wxUSE_LIBPNG=yes
a16d3c04 1357 DEFAULT_wxUSE_LIBJPEG=yes
2726c66d 1358 DEFAULT_wxUSE_ODBC=yes
a16d3c04
KB
1359
1360 DEFAULT_wxUSE_STD_IOSTREAM=no
1361 DEFAULT_wxUSE_FILE=yes
1362 DEFAULT_wxUSE_TEXTFILE=yes
1363 DEFAULT_wxUSE_TIMEDATE=yes
1364 DEFAULT_wxUSE_WAVE=no
1365 DEFAULT_wxUSE_INTL=yes
1366 DEFAULT_wxUSE_CONFIG=yes
1367 DEFAULT_wxUSE_STREAMS=yes
1368 DEFAULT_wxUSE_SOCKETS=yes
1c8515f9 1369 DEFAULT_wxUSE_DIALUP_MANAGER=yes
a16d3c04
KB
1370 DEFAULT_wxUSE_SERIAL=yes
1371 DEFAULT_wxUSE_JOYSTICK=yes
1372 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1373 DEFAULT_wxUSE_LONGLONG=no
1374
1375 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1376 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1377 DEFAULT_wxUSE_POSTSCRIPT=yes
1378
1379 DEFAULT_wxUSE_X_RESOURCES=no
1380 DEFAULT_wxUSE_CLIPBOARD=yes
1381 DEFAULT_wxUSE_TOOLTIPS=yes
1382 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1383 DEFAULT_wxUSE_SPLINES=yes
1384
1385 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1386 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1387 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1388
1389 DEFAULT_wxUSE_PROLOGIO=yes
1390 DEFAULT_wxUSE_RESOURCES=yes
1391 DEFAULT_wxUSE_CONSTRAINTS=yes
1392 DEFAULT_wxUSE_IPC=yes
1393 DEFAULT_wxUSE_HELP=yes
1394 DEFAULT_wxUSE_WXTREE=yes
1395 DEFAULT_wxUSE_METAFILE=yes
1396
1397 DEFAULT_wxUSE_COMMONDLGS=yes
1398 DEFAULT_wxUSE_DIRDLG=yes
1399 DEFAULT_wxUSE_TEXTDLG=yes
1400 DEFAULT_wxUSE_STARTUP_TIPS=yes
1401 DEFAULT_wxUSE_PROGRESSDLG=yes
1402 DEFAULT_wxUSE_MINIFRAME=yes
1403 DEFAULT_wxUSE_HTML=yes
1404 DEFAULT_wxUSE_FS_INET=yes
1405 DEFAULT_wxUSE_FS_ZIP=yes
1406 DEFAULT_wxUSE_BUSYINFO=yes
1407 DEFAULT_wxUSE_ZIPSTREAM=yes
1408 DEFAULT_wxUSE_VALIDATORS=yes
1409
1410 DEFAULT_wxUSE_ACCEL=yes
1411 DEFAULT_wxUSE_CARET=yes
1412 DEFAULT_wxUSE_BMPBUTTON=yes
1413 DEFAULT_wxUSE_CHECKBOX=yes
1414 DEFAULT_wxUSE_CHECKLST=yes
1415 DEFAULT_wxUSE_CHOICE=yes
1416 DEFAULT_wxUSE_COMBOBOX=yes
1417 DEFAULT_wxUSE_GAUGE=yes
1418 DEFAULT_wxUSE_GRID=yes
2726c66d 1419 DEFAULT_wxUSE_NEW_GRID=yes
a16d3c04
KB
1420 DEFAULT_wxUSE_IMAGLIST=yes
1421 DEFAULT_wxUSE_LISTBOX=yes
1422 DEFAULT_wxUSE_LISTCTRL=yes
1423 DEFAULT_wxUSE_NOTEBOOK=yes
1424 DEFAULT_wxUSE_RADIOBOX=yes
1425 DEFAULT_wxUSE_RADIOBTN=yes
1426 DEFAULT_wxUSE_SASH=yes
1427 DEFAULT_wxUSE_SCROLLBAR=yes
1428 DEFAULT_wxUSE_SLIDER=yes
1429 DEFAULT_wxUSE_SPINBTN=yes
1430 DEFAULT_wxUSE_SPLITTER=yes
1431 DEFAULT_wxUSE_STATBMP=yes
1432 DEFAULT_wxUSE_STATBOX=yes
1433 DEFAULT_wxUSE_STATLINE=yes
1434 DEFAULT_wxUSE_STATUSBAR=yes
1435 DEFAULT_wxUSE_TABDIALOG=no
1436 DEFAULT_wxUSE_TOOLBAR=yes
1437 DEFAULT_wxUSE_TREECTRL=yes
1438
1439 DEFAULT_wxUSE_UNICODE=no
1440 DEFAULT_wxUSE_WCSRTOMBS=no
f7a11f8c 1441
1c8515f9
KB
1442 DEFAULT_wxUSE_GIF=yes
1443 DEFAULT_wxUSE_PCX=yes
1444 DEFAULT_wxUSE_PNM=yes
a16d3c04
KB
1445fi
1446
1447
1448
1449for toolkit in `echo $ALL_TOOLKITS`; do
1450 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1451 if test "x$LINE" != x ; then
1452 has_toolkit_in_cache=1
1453 eval "DEFAULT_$LINE"
1454 eval "CACHE_$toolkit=1"
1455 fi
1456done
1457
f7a11f8c
RR
1458
1459
1460 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
4882bf1b 1461echo "configure:1462: checking "for --enable-gui"" >&5
f7a11f8c
RR
1462 no_cache=0
1463 # Check whether --enable-gui or --disable-gui was given.
1464if test "${enable_gui+set}" = set; then
1465 enableval="$enable_gui"
1466
1467 if test "$enableval" = yes; then
1468 ac_cv_use_gui='wxUSE_GUI=yes'
1469 else
1470 ac_cv_use_gui='wxUSE_GUI=no'
1471 fi
1472
1473else
1474
1475 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1476 if test "x$LINE" != x ; then
1477 eval "DEFAULT_$LINE"
1478 else
1479 no_cache=1
1480 fi
1481
1482 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1483
1484fi
1485
1486
1487 eval "$ac_cv_use_gui"
1488 if test "$no_cache" != 1; then
1489 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1490 fi
1491
1492 if test "$wxUSE_GUI" = yes; then
1493 echo "$ac_t""yes" 1>&6
1494 else
1495 echo "$ac_t""no" 1>&6
1496 fi
1497
1498
1499if test "$wxUSE_GUI" = "no"; then
1500 DEFAULT_wxUSE_ZLIB=no
1501 DEFAULT_wxUSE_LIBPNG=no
1502 DEFAULT_wxUSE_LIBJPEG=no
1503 DEFAULT_wxUSE_SOCKETS=no
1504 DEFAULT_wxUSE_JOYSTICK=no
1505 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1506 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1507 DEFAULT_wxUSE_POSTSCRIPT=no
1508 DEFAULT_wxUSE_X_RESOURCES=no
1509 DEFAULT_wxUSE_CLIPBOARD=no
1510 DEFAULT_wxUSE_TOOLTIPS=no
1511 DEFAULT_wxUSE_DRAG_AND_DROP=no
1512 DEFAULT_wxUSE_SPLINES=no
1513 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1514 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1515 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1516 DEFAULT_wxUSE_PROLOGIO=no
1517 DEFAULT_wxUSE_RESOURCES=no
1518 DEFAULT_wxUSE_CONSTRAINTS=no
1519 DEFAULT_wxUSE_IPC=no
1520 DEFAULT_wxUSE_HELP=no
1521 DEFAULT_wxUSE_WXTREE=no
1522 DEFAULT_wxUSE_METAFILE=no
1523 DEFAULT_wxUSE_COMMONDLGS=no
1524 DEFAULT_wxUSE_DIRDLG=no
1525 DEFAULT_wxUSE_TEXTDLG=no
1526 DEFAULT_wxUSE_STARTUP_TIPS=no
1527 DEFAULT_wxUSE_PROGRESSDLG=no
1528 DEFAULT_wxUSE_MINIFRAME=no
1529 DEFAULT_wxUSE_HTML=no
1530 DEFAULT_wxUSE_FS_INET=no
1531 DEFAULT_wxUSE_FS_ZIP=no
1532 DEFAULT_wxUSE_BUSYINFO=no
1533 DEFAULT_wxUSE_ZIPSTREAM=no
1534 DEFAULT_wxUSE_VALIDATORS=yes
1535 DEFAULT_wxUSE_ACCEL=no
1536 DEFAULT_wxUSE_CARET=no
1537 DEFAULT_wxUSE_BMPBUTTON=no
1538 DEFAULT_wxUSE_CHECKBOX=no
1539 DEFAULT_wxUSE_CHECKLST=no
1540 DEFAULT_wxUSE_CHOICE=yes
1541 DEFAULT_wxUSE_COMBOBOX=no
1542 DEFAULT_wxUSE_GAUGE=no
1543 DEFAULT_wxUSE_GRID=no
2726c66d 1544 DEFAULT_wxUSE_NEW_GRID=no
f7a11f8c
RR
1545 DEFAULT_wxUSE_IMAGLIST=no
1546 DEFAULT_wxUSE_LISTBOX=no
1547 DEFAULT_wxUSE_LISTCTRL=no
1548 DEFAULT_wxUSE_NOTEBOOK=no
1549 DEFAULT_wxUSE_RADIOBOX=no
1550 DEFAULT_wxUSE_RADIOBTN=no
1551 DEFAULT_wxUSE_SASH=no
1552 DEFAULT_wxUSE_SCROLLBAR=no
1553 DEFAULT_wxUSE_SLIDER=no
1554 DEFAULT_wxUSE_SPINBTN=no
1555 DEFAULT_wxUSE_SPLITTER=no
1556 DEFAULT_wxUSE_STATBMP=no
1557 DEFAULT_wxUSE_STATBOX=no
1558 DEFAULT_wxUSE_STATLINE=no
1559 DEFAULT_wxUSE_STATUSBAR=yes
1560 DEFAULT_wxUSE_TABDIALOG=no
1561 DEFAULT_wxUSE_TOOLBAR=no
1562 DEFAULT_wxUSE_TREECTRL=no
1563 DEFAULT_wxUSE_GIF=no
1564 DEFAULT_wxUSE_PCX=no
1565 DEFAULT_wxUSE_PNM=no
1566fi
1567
a16d3c04
KB
1568# Check whether --with-gtk or --without-gtk was given.
1569if test "${with_gtk+set}" = set; then
1570 withval="$with_gtk"
1571 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1572fi
1573
1574# Check whether --with-motif or --without-motif was given.
1575if test "${with_motif+set}" = set; then
1576 withval="$with_motif"
1577 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1578fi
1579
1580# Check whether --with-wine or --without-wine was given.
1581if test "${with_wine+set}" = set; then
1582 withval="$with_wine"
1583 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1584fi
1585
1586# Check whether --with-cygwin or --without-cygwin was given.
1587if test "${with_cygwin+set}" = set; then
1588 withval="$with_cygwin"
1589 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1590fi
1591
1592# Check whether --with-mingw or --without-mingw was given.
1593if test "${with_mingw+set}" = set; then
1594 withval="$with_mingw"
1595 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1596fi
1597
1598
1599# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1600if test "${with_gtk_prefix+set}" = set; then
1601 withval="$with_gtk_prefix"
1602 gtk_config_prefix="$withval"
1603else
1604 gtk_config_prefix=""
1605fi
1606
1607# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1608if test "${with_gtk_exec_prefix+set}" = set; then
1609 withval="$with_gtk_exec_prefix"
1610 gtk_config_exec_prefix="$withval"
1611else
1612 gtk_config_exec_prefix=""
1613fi
1614
1615
1616
1617 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
4882bf1b 1618echo "configure:1619: checking "for --with-dmalloc"" >&5
a16d3c04
KB
1619 no_cache=0
1620 # Check whether --with-dmalloc or --without-dmalloc was given.
1621if test "${with_dmalloc+set}" = set; then
1622 withval="$with_dmalloc"
1623
1624 if test "$withval" = yes; then
1625 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
1626 else
1627 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
1628 fi
1629
1630else
1631
1632 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
1633 if test "x$LINE" != x ; then
1634 eval "DEFAULT_$LINE"
1635 else
1636 no_cache=1
1637 fi
1638
1639 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
1640
1641fi
1642
1643
1644 eval "$ac_cv_use_dmalloc"
1645 if test "$no_cache" != 1; then
1646 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
1647 fi
1648
1649 if test "$wxUSE_DMALLOC" = yes; then
1650 echo "$ac_t""yes" 1>&6
1651 else
1652 echo "$ac_t""no" 1>&6
1653 fi
1654
1655
1656 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
4882bf1b 1657echo "configure:1658: checking "for --with-zlib"" >&5
a16d3c04
KB
1658 no_cache=0
1659 # Check whether --with-zlib or --without-zlib was given.
1660if test "${with_zlib+set}" = set; then
1661 withval="$with_zlib"
1662
1663 if test "$withval" = yes; then
1664 ac_cv_use_zlib='wxUSE_ZLIB=yes'
1665 else
1666 ac_cv_use_zlib='wxUSE_ZLIB=no'
1667 fi
1668
1669else
1670
1671 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
1672 if test "x$LINE" != x ; then
1673 eval "DEFAULT_$LINE"
1674 else
1675 no_cache=1
1676 fi
1677
1678 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
1679
1680fi
1681
1682
1683 eval "$ac_cv_use_zlib"
1684 if test "$no_cache" != 1; then
1685 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
1686 fi
1687
1688 if test "$wxUSE_ZLIB" = yes; then
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-libpng"""... $ac_c" 1>&6
4882bf1b 1696echo "configure:1697: checking "for --with-libpng"" >&5
a16d3c04
KB
1697 no_cache=0
1698 # Check whether --with-libpng or --without-libpng was given.
1699if test "${with_libpng+set}" = set; then
1700 withval="$with_libpng"
1701
1702 if test "$withval" = yes; then
1703 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1704 else
1705 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1706 fi
1707
1708else
1709
1710 LINE=`grep "wxUSE_LIBPNG" ${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_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1718
1719fi
1720
1721
1722 eval "$ac_cv_use_libpng"
1723 if test "$no_cache" != 1; then
1724 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1725 fi
1726
1727 if test "$wxUSE_LIBPNG" = yes; then
1728 echo "$ac_t""yes" 1>&6
1729 else
1730 echo "$ac_t""no" 1>&6
1731 fi
1732
1733
a16d3c04 1734 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
4882bf1b 1735echo "configure:1736: checking "for --with-libjpeg"" >&5
a16d3c04
KB
1736 no_cache=0
1737 # Check whether --with-libjpeg or --without-libjpeg was given.
1738if test "${with_libjpeg+set}" = set; then
1739 withval="$with_libjpeg"
1740
1741 if test "$withval" = yes; then
1742 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1743 else
1744 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1745 fi
1746
1747else
1748
1749 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1750 if test "x$LINE" != x ; then
1751 eval "DEFAULT_$LINE"
1752 else
1753 no_cache=1
1754 fi
1755
1756 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1757
1758fi
1759
1760
1761 eval "$ac_cv_use_libjpeg"
1762 if test "$no_cache" != 1; then
1763 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1764 fi
1765
1766 if test "$wxUSE_LIBJPEG" = yes; then
1767 echo "$ac_t""yes" 1>&6
1768 else
1769 echo "$ac_t""no" 1>&6
1770 fi
1771
1772
1773 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
4882bf1b 1774echo "configure:1775: checking "for --with-opengl"" >&5
a16d3c04
KB
1775 no_cache=0
1776 # Check whether --with-opengl or --without-opengl was given.
1777if test "${with_opengl+set}" = set; then
1778 withval="$with_opengl"
1779
1780 if test "$withval" = yes; then
1781 ac_cv_use_opengl='wxUSE_OPENGL=yes'
1782 else
1783 ac_cv_use_opengl='wxUSE_OPENGL=no'
1784 fi
1785
1786else
1787
1788 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
1789 if test "x$LINE" != x ; then
1790 eval "DEFAULT_$LINE"
1791 else
1792 no_cache=1
1793 fi
1794
1795 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
1796
1797fi
1798
1799
1800 eval "$ac_cv_use_opengl"
1801 if test "$no_cache" != 1; then
1802 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
1803 fi
1804
1805 if test "$wxUSE_OPENGL" = yes; then
1806 echo "$ac_t""yes" 1>&6
1807 else
1808 echo "$ac_t""no" 1>&6
1809 fi
1810
1811
1812 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
4882bf1b 1813echo "configure:1814: checking "for --with-odbc"" >&5
a16d3c04
KB
1814 no_cache=0
1815 # Check whether --with-odbc or --without-odbc was given.
1816if test "${with_odbc+set}" = set; then
1817 withval="$with_odbc"
1818
1819 if test "$withval" = yes; then
1820 ac_cv_use_odbc='wxUSE_ODBC=yes'
1821 else
1822 ac_cv_use_odbc='wxUSE_ODBC=no'
1823 fi
1824
1825else
1826
1827 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1828 if test "x$LINE" != x ; then
1829 eval "DEFAULT_$LINE"
1830 else
1831 no_cache=1
1832 fi
1833
1834 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1835
1836fi
1837
1838
1839 eval "$ac_cv_use_odbc"
1840 if test "$no_cache" != 1; then
1841 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1842 fi
1843
1844 if test "$wxUSE_ODBC" = yes; then
1845 echo "$ac_t""yes" 1>&6
1846 else
1847 echo "$ac_t""no" 1>&6
1848 fi
1849
1850
1851
1852
1853
1854 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
4882bf1b 1855echo "configure:1856: checking "for --enable-shared"" >&5
a16d3c04
KB
1856 no_cache=0
1857 # Check whether --enable-shared or --disable-shared was given.
1858if test "${enable_shared+set}" = set; then
1859 enableval="$enable_shared"
1860
1861 if test "$enableval" = yes; then
1862 ac_cv_use_shared='wxUSE_SHARED=yes'
1863 else
1864 ac_cv_use_shared='wxUSE_SHARED=no'
1865 fi
1866
1867else
1868
1869 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1870 if test "x$LINE" != x ; then
1871 eval "DEFAULT_$LINE"
1872 else
1873 no_cache=1
1874 fi
1875
1876 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1877
1878fi
1879
1880
1881 eval "$ac_cv_use_shared"
1882 if test "$no_cache" != 1; then
1883 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1884 fi
1885
1886 if test "$wxUSE_SHARED" = yes; then
1887 echo "$ac_t""yes" 1>&6
1888 else
1889 echo "$ac_t""no" 1>&6
1890 fi
1891
1892
1893 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
4882bf1b 1894echo "configure:1895: checking "for --enable-optimise"" >&5
a16d3c04
KB
1895 no_cache=0
1896 # Check whether --enable-optimise or --disable-optimise was given.
1897if test "${enable_optimise+set}" = set; then
1898 enableval="$enable_optimise"
1899
1900 if test "$enableval" = yes; then
1901 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1902 else
1903 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1904 fi
1905
1906else
1907
1908 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1909 if test "x$LINE" != x ; then
1910 eval "DEFAULT_$LINE"
1911 else
1912 no_cache=1
1913 fi
1914
1915 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1916
1917fi
1918
1919
1920 eval "$ac_cv_use_optimise"
1921 if test "$no_cache" != 1; then
1922 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1923 fi
1924
1925 if test "$wxUSE_OPTIMISE" = yes; then
1926 echo "$ac_t""yes" 1>&6
1927 else
1928 echo "$ac_t""no" 1>&6
1929 fi
1930
1931
1932 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
4882bf1b 1933echo "configure:1934: checking "for --enable-debug"" >&5
a16d3c04
KB
1934 no_cache=0
1935 # Check whether --enable-debug or --disable-debug was given.
1936if test "${enable_debug+set}" = set; then
1937 enableval="$enable_debug"
1938
1939 if test "$enableval" = yes; then
1940 ac_cv_use_debug='wxUSE_DEBUG=yes'
1941 else
1942 ac_cv_use_debug='wxUSE_DEBUG=no'
1943 fi
1944
1945else
1946
1947 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
1948 if test "x$LINE" != x ; then
1949 eval "DEFAULT_$LINE"
1950 else
1951 no_cache=1
1952 fi
1953
1954 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
1955
1956fi
1957
1958
1959 eval "$ac_cv_use_debug"
1960 if test "$no_cache" != 1; then
1961 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
1962 fi
1963
1964 if test "$wxUSE_DEBUG" = yes; then
1965 echo "$ac_t""yes" 1>&6
1966 else
1967 echo "$ac_t""no" 1>&6
1968 fi
1969
1970
1971if test "$wxUSE_DEBUG" = "yes"; then
1972 DEFAULT_wxUSE_DEBUG_FLAG=yes
1973 DEFAULT_wxUSE_DEBUG_INFO=yes
1974elif test "$wxUSE_DEBUG" = "no"; then
1975 DEFAULT_wxUSE_DEBUG_FLAG=no
1976 DEFAULT_wxUSE_DEBUG_INFO=no
1977fi
1978
1979
1980 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
4882bf1b 1981echo "configure:1982: checking "for --enable-debug_flag"" >&5
a16d3c04
KB
1982 no_cache=0
1983 # Check whether --enable-debug_flag or --disable-debug_flag was given.
1984if test "${enable_debug_flag+set}" = set; then
1985 enableval="$enable_debug_flag"
1986
1987 if test "$enableval" = yes; then
1988 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
1989 else
1990 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
1991 fi
1992
1993else
1994
1995 LINE=`grep "wxUSE_DEBUG_FLAG" ${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_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2003
2004fi
2005
2006
2007 eval "$ac_cv_use_debug_flag"
2008 if test "$no_cache" != 1; then
2009 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2010 fi
2011
2012 if test "$wxUSE_DEBUG_FLAG" = 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-debug_info"""... $ac_c" 1>&6
4882bf1b 2020echo "configure:2021: checking "for --enable-debug_info"" >&5
a16d3c04
KB
2021 no_cache=0
2022 # Check whether --enable-debug_info or --disable-debug_info was given.
2023if test "${enable_debug_info+set}" = set; then
2024 enableval="$enable_debug_info"
2025
2026 if test "$enableval" = yes; then
2027 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2028 else
2029 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2030 fi
2031
2032else
2033
2034 LINE=`grep "wxUSE_DEBUG_INFO" ${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_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2042
2043fi
2044
2045
2046 eval "$ac_cv_use_debug_info"
2047 if test "$no_cache" != 1; then
2048 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2049 fi
2050
2051 if test "$wxUSE_DEBUG_INFO" = 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-debug_gdb"""... $ac_c" 1>&6
4882bf1b 2059echo "configure:2060: checking "for --enable-debug_gdb"" >&5
a16d3c04
KB
2060 no_cache=0
2061 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2062if test "${enable_debug_gdb+set}" = set; then
2063 enableval="$enable_debug_gdb"
2064
2065 if test "$enableval" = yes; then
2066 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2067 else
2068 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2069 fi
2070
2071else
2072
2073 LINE=`grep "wxUSE_DEBUG_GDB" ${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_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2081
2082fi
2083
2084
2085 eval "$ac_cv_use_debug_gdb"
2086 if test "$no_cache" != 1; then
2087 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2088 fi
2089
2090 if test "$wxUSE_DEBUG_GDB" = 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-debug_cntxt"""... $ac_c" 1>&6
4882bf1b 2098echo "configure:2099: checking "for --enable-debug_cntxt"" >&5
a16d3c04
KB
2099 no_cache=0
2100 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2101if test "${enable_debug_cntxt+set}" = set; then
2102 enableval="$enable_debug_cntxt"
2103
2104 if test "$enableval" = yes; then
2105 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2106 else
2107 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2108 fi
2109
2110else
2111
2112 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${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_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2120
2121fi
2122
2123
2124 eval "$ac_cv_use_debug_cntxt"
2125 if test "$no_cache" != 1; then
2126 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2127 fi
2128
2129 if test "$wxUSE_DEBUG_CONTEXT" = 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-mem_tracing"""... $ac_c" 1>&6
4882bf1b 2137echo "configure:2138: checking "for --enable-mem_tracing"" >&5
a16d3c04
KB
2138 no_cache=0
2139 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2140if test "${enable_mem_tracing+set}" = set; then
2141 enableval="$enable_mem_tracing"
2142
2143 if test "$enableval" = yes; then
2144 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2145 else
2146 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2147 fi
2148
2149else
2150
2151 LINE=`grep "wxUSE_MEM_TRACING" ${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_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2159
2160fi
2161
2162
2163 eval "$ac_cv_use_mem_tracing"
2164 if test "$no_cache" != 1; then
2165 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2166 fi
2167
2168 if test "$wxUSE_MEM_TRACING" = 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-profile"""... $ac_c" 1>&6
4882bf1b 2176echo "configure:2177: checking "for --enable-profile"" >&5
a16d3c04
KB
2177 no_cache=0
2178 # Check whether --enable-profile or --disable-profile was given.
2179if test "${enable_profile+set}" = set; then
2180 enableval="$enable_profile"
2181
2182 if test "$enableval" = yes; then
2183 ac_cv_use_profile='wxUSE_PROFILE=yes'
2184 else
2185 ac_cv_use_profile='wxUSE_PROFILE=no'
2186 fi
2187
2188else
2189
2190 LINE=`grep "wxUSE_PROFILE" ${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_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2198
2199fi
2200
2201
2202 eval "$ac_cv_use_profile"
2203 if test "$no_cache" != 1; then
2204 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2205 fi
2206
2207 if test "$wxUSE_PROFILE" = 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_rtti"""... $ac_c" 1>&6
4882bf1b 2215echo "configure:2216: checking "for --enable-no_rtti"" >&5
a16d3c04
KB
2216 no_cache=0
2217 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2218if test "${enable_no_rtti+set}" = set; then
2219 enableval="$enable_no_rtti"
2220
2221 if test "$enableval" = yes; then
2222 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2223 else
2224 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2225 fi
2226
2227else
2228
2229 LINE=`grep "wxUSE_NO_RTTI" ${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_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2237
2238fi
2239
2240
2241 eval "$ac_cv_use_no_rtti"
2242 if test "$no_cache" != 1; then
2243 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2244 fi
2245
2246 if test "$wxUSE_NO_RTTI" = yes; then
2247 echo "$ac_t""yes" 1>&6
2248 else
2249 echo "$ac_t""no" 1>&6
2250 fi
2251
2252
2253 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
4882bf1b 2254echo "configure:2255: checking "for --enable-no_exceptions"" >&5
a16d3c04
KB
2255 no_cache=0
2256 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2257if test "${enable_no_exceptions+set}" = set; then
2258 enableval="$enable_no_exceptions"
2259
2260 if test "$enableval" = yes; then
2261 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2262 else
2263 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2264 fi
2265
2266else
2267
2268 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2269 if test "x$LINE" != x ; then
2270 eval "DEFAULT_$LINE"
2271 else
2272 no_cache=1
2273 fi
2274
2275 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2276
2277fi
2278
2279
2280 eval "$ac_cv_use_no_exceptions"
2281 if test "$no_cache" != 1; then
2282 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2283 fi
2284
2285 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2286 echo "$ac_t""yes" 1>&6
2287 else
2288 echo "$ac_t""no" 1>&6
2289 fi
2290
2291
2292 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
4882bf1b 2293echo "configure:2294: checking "for --enable-permissive"" >&5
a16d3c04
KB
2294 no_cache=0
2295 # Check whether --enable-permissive or --disable-permissive was given.
2296if test "${enable_permissive+set}" = set; then
2297 enableval="$enable_permissive"
2298
2299 if test "$enableval" = yes; then
2300 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2301 else
2302 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2303 fi
2304
2305else
2306
2307 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2308 if test "x$LINE" != x ; then
2309 eval "DEFAULT_$LINE"
2310 else
2311 no_cache=1
2312 fi
2313
2314 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2315
2316fi
2317
2318
2319 eval "$ac_cv_use_permissive"
2320 if test "$no_cache" != 1; then
2321 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2322 fi
2323
2324 if test "$wxUSE_PERMISSIVE" = yes; then
2325 echo "$ac_t""yes" 1>&6
2326 else
2327 echo "$ac_t""no" 1>&6
2328 fi
2329
2330
2331 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
4882bf1b 2332echo "configure:2333: checking "for --enable-no_deps"" >&5
a16d3c04
KB
2333 no_cache=0
2334 # Check whether --enable-no_deps or --disable-no_deps was given.
2335if test "${enable_no_deps+set}" = set; then
2336 enableval="$enable_no_deps"
2337
2338 if test "$enableval" = yes; then
2339 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2340 else
2341 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2342 fi
2343
2344else
2345
2346 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2347 if test "x$LINE" != x ; then
2348 eval "DEFAULT_$LINE"
2349 else
2350 no_cache=1
2351 fi
2352
2353 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2354
2355fi
2356
2357
2358 eval "$ac_cv_use_no_deps"
2359 if test "$no_cache" != 1; then
2360 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2361 fi
2362
2363 if test "$wxUSE_NO_DEPS" = yes; then
2364 echo "$ac_t""yes" 1>&6
2365 else
2366 echo "$ac_t""no" 1>&6
2367 fi
2368
2369
2370
2371
a16d3c04 2372 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
4882bf1b 2373echo "configure:2374: checking "for --enable-intl"" >&5
a16d3c04
KB
2374 no_cache=0
2375 # Check whether --enable-intl or --disable-intl was given.
2376if test "${enable_intl+set}" = set; then
2377 enableval="$enable_intl"
2378
2379 if test "$enableval" = yes; then
2380 ac_cv_use_intl='wxUSE_INTL=yes'
2381 else
2382 ac_cv_use_intl='wxUSE_INTL=no'
2383 fi
2384
2385else
2386
2387 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2388 if test "x$LINE" != x ; then
2389 eval "DEFAULT_$LINE"
2390 else
2391 no_cache=1
2392 fi
2393
2394 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2395
2396fi
2397
2398
2399 eval "$ac_cv_use_intl"
2400 if test "$no_cache" != 1; then
2401 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2402 fi
2403
2404 if test "$wxUSE_INTL" = yes; then
2405 echo "$ac_t""yes" 1>&6
2406 else
2407 echo "$ac_t""no" 1>&6
2408 fi
2409
2410
2411 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
4882bf1b 2412echo "configure:2413: checking "for --enable-config"" >&5
a16d3c04
KB
2413 no_cache=0
2414 # Check whether --enable-config or --disable-config was given.
2415if test "${enable_config+set}" = set; then
2416 enableval="$enable_config"
2417
2418 if test "$enableval" = yes; then
2419 ac_cv_use_config='wxUSE_CONFIG=yes'
2420 else
2421 ac_cv_use_config='wxUSE_CONFIG=no'
2422 fi
2423
2424else
2425
2426 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2427 if test "x$LINE" != x ; then
2428 eval "DEFAULT_$LINE"
2429 else
2430 no_cache=1
2431 fi
2432
2433 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2434
2435fi
2436
2437
2438 eval "$ac_cv_use_config"
2439 if test "$no_cache" != 1; then
2440 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2441 fi
2442
2443 if test "$wxUSE_CONFIG" = yes; then
2444 echo "$ac_t""yes" 1>&6
2445 else
2446 echo "$ac_t""no" 1>&6
2447 fi
2448
2449
2450 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
4882bf1b 2451echo "configure:2452: checking "for --enable-sockets"" >&5
a16d3c04
KB
2452 no_cache=0
2453 # Check whether --enable-sockets or --disable-sockets was given.
2454if test "${enable_sockets+set}" = set; then
2455 enableval="$enable_sockets"
2456
2457 if test "$enableval" = yes; then
2458 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2459 else
2460 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2461 fi
2462
2463else
2464
2465 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2466 if test "x$LINE" != x ; then
2467 eval "DEFAULT_$LINE"
2468 else
2469 no_cache=1
2470 fi
2471
2472 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2473
2474fi
2475
2476
2477 eval "$ac_cv_use_sockets"
2478 if test "$no_cache" != 1; then
2479 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2480 fi
2481
2482 if test "$wxUSE_SOCKETS" = yes; then
2483 echo "$ac_t""yes" 1>&6
2484 else
2485 echo "$ac_t""no" 1>&6
2486 fi
2487
2488
1c8515f9 2489 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
4882bf1b 2490echo "configure:2491: checking "for --enable-dialupman"" >&5
1c8515f9
KB
2491 no_cache=0
2492 # Check whether --enable-dialupman or --disable-dialupman was given.
2493if test "${enable_dialupman+set}" = set; then
2494 enableval="$enable_dialupman"
2495
2496 if test "$enableval" = yes; then
2497 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2498 else
2499 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2500 fi
2501
2502else
2503
2504 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2505 if test "x$LINE" != x ; then
2506 eval "DEFAULT_$LINE"
2507 else
2508 no_cache=1
2509 fi
2510
2511 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2512
2513fi
2514
2515
2516 eval "$ac_cv_use_dialupman"
2517 if test "$no_cache" != 1; then
2518 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2519 fi
2520
2521 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2522 echo "$ac_t""yes" 1>&6
2523 else
2524 echo "$ac_t""no" 1>&6
2525 fi
2526
2527
a16d3c04 2528 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
4882bf1b 2529echo "configure:2530: checking "for --enable-ipc"" >&5
a16d3c04
KB
2530 no_cache=0
2531 # Check whether --enable-ipc or --disable-ipc was given.
2532if test "${enable_ipc+set}" = set; then
2533 enableval="$enable_ipc"
2534
2535 if test "$enableval" = yes; then
2536 ac_cv_use_ipc='wxUSE_IPC=yes'
2537 else
2538 ac_cv_use_ipc='wxUSE_IPC=no'
2539 fi
2540
2541else
2542
2543 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2544 if test "x$LINE" != x ; then
2545 eval "DEFAULT_$LINE"
2546 else
2547 no_cache=1
2548 fi
2549
2550 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2551
2552fi
2553
2554
2555 eval "$ac_cv_use_ipc"
2556 if test "$no_cache" != 1; then
2557 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2558 fi
2559
2560 if test "$wxUSE_IPC" = yes; then
2561 echo "$ac_t""yes" 1>&6
2562 else
2563 echo "$ac_t""no" 1>&6
2564 fi
2565
2566
2567 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
4882bf1b 2568echo "configure:2569: checking "for --enable-apple_ieee"" >&5
a16d3c04
KB
2569 no_cache=0
2570 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2571if test "${enable_apple_ieee+set}" = set; then
2572 enableval="$enable_apple_ieee"
2573
2574 if test "$enableval" = yes; then
2575 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2576 else
2577 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2578 fi
2579
2580else
2581
2582 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2583 if test "x$LINE" != x ; then
2584 eval "DEFAULT_$LINE"
2585 else
2586 no_cache=1
2587 fi
2588
2589 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2590
2591fi
2592
2593
2594 eval "$ac_cv_use_apple_ieee"
2595 if test "$no_cache" != 1; then
2596 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2597 fi
2598
2599 if test "$wxUSE_APPLE_IEEE" = yes; then
2600 echo "$ac_t""yes" 1>&6
2601 else
2602 echo "$ac_t""no" 1>&6
2603 fi
2604
2605
2606 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
4882bf1b 2607echo "configure:2608: checking "for --enable-timedate"" >&5
a16d3c04
KB
2608 no_cache=0
2609 # Check whether --enable-timedate or --disable-timedate was given.
2610if test "${enable_timedate+set}" = set; then
2611 enableval="$enable_timedate"
2612
2613 if test "$enableval" = yes; then
2614 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2615 else
2616 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2617 fi
2618
2619else
2620
2621 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2622 if test "x$LINE" != x ; then
2623 eval "DEFAULT_$LINE"
2624 else
2625 no_cache=1
2626 fi
2627
2628 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2629
2630fi
2631
2632
2633 eval "$ac_cv_use_timedate"
2634 if test "$no_cache" != 1; then
2635 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2636 fi
2637
2638 if test "$wxUSE_TIMEDATE" = yes; then
2639 echo "$ac_t""yes" 1>&6
2640 else
2641 echo "$ac_t""no" 1>&6
2642 fi
2643
2644
2645 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
4882bf1b 2646echo "configure:2647: checking "for --enable-wave"" >&5
a16d3c04
KB
2647 no_cache=0
2648 # Check whether --enable-wave or --disable-wave was given.
2649if test "${enable_wave+set}" = set; then
2650 enableval="$enable_wave"
2651
2652 if test "$enableval" = yes; then
2653 ac_cv_use_wave='wxUSE_WAVE=yes'
2654 else
2655 ac_cv_use_wave='wxUSE_WAVE=no'
2656 fi
2657
2658else
2659
2660 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2661 if test "x$LINE" != x ; then
2662 eval "DEFAULT_$LINE"
2663 else
2664 no_cache=1
2665 fi
2666
2667 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2668
2669fi
2670
2671
2672 eval "$ac_cv_use_wave"
2673 if test "$no_cache" != 1; then
2674 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2675 fi
2676
2677 if test "$wxUSE_WAVE" = yes; then
2678 echo "$ac_t""yes" 1>&6
2679 else
2680 echo "$ac_t""no" 1>&6
2681 fi
2682
2683
2684 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
4882bf1b 2685echo "configure:2686: checking "for --enable-fraction"" >&5
a16d3c04
KB
2686 no_cache=0
2687 # Check whether --enable-fraction or --disable-fraction was given.
2688if test "${enable_fraction+set}" = set; then
2689 enableval="$enable_fraction"
2690
2691 if test "$enableval" = yes; then
2692 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2693 else
2694 ac_cv_use_fraction='wxUSE_FRACTION=no'
2695 fi
2696
2697else
2698
2699 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2700 if test "x$LINE" != x ; then
2701 eval "DEFAULT_$LINE"
2702 else
2703 no_cache=1
2704 fi
2705
2706 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2707
2708fi
2709
2710
2711 eval "$ac_cv_use_fraction"
2712 if test "$no_cache" != 1; then
2713 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2714 fi
2715
2716 if test "$wxUSE_FRACTION" = yes; then
2717 echo "$ac_t""yes" 1>&6
2718 else
2719 echo "$ac_t""no" 1>&6
2720 fi
2721
2722
2723 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
4882bf1b 2724echo "configure:2725: checking "for --enable-dynlib"" >&5
a16d3c04
KB
2725 no_cache=0
2726 # Check whether --enable-dynlib or --disable-dynlib was given.
2727if test "${enable_dynlib+set}" = set; then
2728 enableval="$enable_dynlib"
2729
2730 if test "$enableval" = yes; then
2731 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2732 else
2733 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2734 fi
2735
2736else
2737
2738 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2739 if test "x$LINE" != x ; then
2740 eval "DEFAULT_$LINE"
2741 else
2742 no_cache=1
2743 fi
2744
2745 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2746
2747fi
2748
2749
2750 eval "$ac_cv_use_dynlib"
2751 if test "$no_cache" != 1; then
2752 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2753 fi
2754
2755 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2756 echo "$ac_t""yes" 1>&6
2757 else
2758 echo "$ac_t""no" 1>&6
2759 fi
2760
2761
2762 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
4882bf1b 2763echo "configure:2764: checking "for --enable-longlong"" >&5
a16d3c04
KB
2764 no_cache=0
2765 # Check whether --enable-longlong or --disable-longlong was given.
2766if test "${enable_longlong+set}" = set; then
2767 enableval="$enable_longlong"
2768
2769 if test "$enableval" = yes; then
2770 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2771 else
2772 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2773 fi
2774
2775else
2776
2777 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2778 if test "x$LINE" != x ; then
2779 eval "DEFAULT_$LINE"
2780 else
2781 no_cache=1
2782 fi
2783
2784 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2785
2786fi
2787
2788
2789 eval "$ac_cv_use_longlong"
2790 if test "$no_cache" != 1; then
2791 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2792 fi
2793
2794 if test "$wxUSE_LONGLONG" = yes; then
2795 echo "$ac_t""yes" 1>&6
2796 else
2797 echo "$ac_t""no" 1>&6
2798 fi
2799
2800
2801 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
4882bf1b 2802echo "configure:2803: checking "for --enable-log"" >&5
a16d3c04
KB
2803 no_cache=0
2804 # Check whether --enable-log or --disable-log was given.
2805if test "${enable_log+set}" = set; then
2806 enableval="$enable_log"
2807
2808 if test "$enableval" = yes; then
2809 ac_cv_use_log='wxUSE_LOG=yes'
2810 else
2811 ac_cv_use_log='wxUSE_LOG=no'
2812 fi
2813
2814else
2815
2816 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2817 if test "x$LINE" != x ; then
2818 eval "DEFAULT_$LINE"
2819 else
2820 no_cache=1
2821 fi
2822
2823 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2824
2825fi
2826
2827
2828 eval "$ac_cv_use_log"
2829 if test "$no_cache" != 1; then
2830 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2831 fi
2832
2833 if test "$wxUSE_LOG" = yes; then
2834 echo "$ac_t""yes" 1>&6
2835 else
2836 echo "$ac_t""no" 1>&6
2837 fi
2838
2839
2840 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
4882bf1b 2841echo "configure:2842: checking "for --enable-streams"" >&5
a16d3c04
KB
2842 no_cache=0
2843 # Check whether --enable-streams or --disable-streams was given.
2844if test "${enable_streams+set}" = set; then
2845 enableval="$enable_streams"
2846
2847 if test "$enableval" = yes; then
2848 ac_cv_use_streams='wxUSE_STREAMS=yes'
2849 else
2850 ac_cv_use_streams='wxUSE_STREAMS=no'
2851 fi
2852
2853else
2854
2855 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2856 if test "x$LINE" != x ; then
2857 eval "DEFAULT_$LINE"
2858 else
2859 no_cache=1
2860 fi
2861
2862 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2863
2864fi
2865
2866
2867 eval "$ac_cv_use_streams"
2868 if test "$no_cache" != 1; then
2869 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2870 fi
2871
2872 if test "$wxUSE_STREAMS" = yes; then
2873 echo "$ac_t""yes" 1>&6
2874 else
2875 echo "$ac_t""no" 1>&6
2876 fi
2877
2878
2879 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
4882bf1b 2880echo "configure:2881: checking "for --enable-file"" >&5
a16d3c04
KB
2881 no_cache=0
2882 # Check whether --enable-file or --disable-file was given.
2883if test "${enable_file+set}" = set; then
2884 enableval="$enable_file"
2885
2886 if test "$enableval" = yes; then
2887 ac_cv_use_file='wxUSE_FILE=yes'
2888 else
2889 ac_cv_use_file='wxUSE_FILE=no'
2890 fi
2891
2892else
2893
2894 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2895 if test "x$LINE" != x ; then
2896 eval "DEFAULT_$LINE"
2897 else
2898 no_cache=1
2899 fi
2900
2901 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2902
2903fi
2904
2905
2906 eval "$ac_cv_use_file"
2907 if test "$no_cache" != 1; then
2908 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2909 fi
2910
2911 if test "$wxUSE_FILE" = yes; then
2912 echo "$ac_t""yes" 1>&6
2913 else
2914 echo "$ac_t""no" 1>&6
2915 fi
2916
2917
2918 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
4882bf1b 2919echo "configure:2920: checking "for --enable-textfile"" >&5
a16d3c04
KB
2920 no_cache=0
2921 # Check whether --enable-textfile or --disable-textfile was given.
2922if test "${enable_textfile+set}" = set; then
2923 enableval="$enable_textfile"
2924
2925 if test "$enableval" = yes; then
2926 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
2927 else
2928 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
2929 fi
2930
2931else
2932
2933 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
2934 if test "x$LINE" != x ; then
2935 eval "DEFAULT_$LINE"
2936 else
2937 no_cache=1
2938 fi
2939
2940 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
2941
2942fi
2943
2944
2945 eval "$ac_cv_use_textfile"
2946 if test "$no_cache" != 1; then
2947 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
2948 fi
2949
2950 if test "$wxUSE_TEXTFILE" = yes; then
2951 echo "$ac_t""yes" 1>&6
2952 else
2953 echo "$ac_t""no" 1>&6
2954 fi
2955
2956
2957 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
4882bf1b 2958echo "configure:2959: checking "for --enable-unicode"" >&5
a16d3c04
KB
2959 no_cache=0
2960 # Check whether --enable-unicode or --disable-unicode was given.
2961if test "${enable_unicode+set}" = set; then
2962 enableval="$enable_unicode"
2963
2964 if test "$enableval" = yes; then
2965 ac_cv_use_unicode='wxUSE_UNICODE=yes'
2966 else
2967 ac_cv_use_unicode='wxUSE_UNICODE=no'
2968 fi
2969
2970else
2971
2972 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
2973 if test "x$LINE" != x ; then
2974 eval "DEFAULT_$LINE"
2975 else
2976 no_cache=1
2977 fi
2978
2979 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
2980
2981fi
2982
2983
2984 eval "$ac_cv_use_unicode"
2985 if test "$no_cache" != 1; then
2986 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
2987 fi
2988
2989 if test "$wxUSE_UNICODE" = yes; then
2990 echo "$ac_t""yes" 1>&6
2991 else
2992 echo "$ac_t""no" 1>&6
2993 fi
2994
2995
2996 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
4882bf1b 2997echo "configure:2998: checking "for --enable-wcsrtombs"" >&5
a16d3c04
KB
2998 no_cache=0
2999 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3000if test "${enable_wcsrtombs+set}" = set; then
3001 enableval="$enable_wcsrtombs"
3002
3003 if test "$enableval" = yes; then
3004 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3005 else
3006 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3007 fi
3008
3009else
3010
3011 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3012 if test "x$LINE" != x ; then
3013 eval "DEFAULT_$LINE"
3014 else
3015 no_cache=1
3016 fi
3017
3018 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3019
3020fi
3021
3022
3023 eval "$ac_cv_use_wcsrtombs"
3024 if test "$no_cache" != 1; then
3025 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3026 fi
3027
3028 if test "$wxUSE_WCSRTOMBS" = yes; then
3029 echo "$ac_t""yes" 1>&6
3030 else
3031 echo "$ac_t""no" 1>&6
3032 fi
3033
3034
3035 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
4882bf1b 3036echo "configure:3037: checking "for --enable-wxprintfv"" >&5
a16d3c04
KB
3037 no_cache=0
3038 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3039if test "${enable_wxprintfv+set}" = set; then
3040 enableval="$enable_wxprintfv"
3041
3042 if test "$enableval" = yes; then
3043 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3044 else
3045 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3046 fi
3047
3048else
3049
3050 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3051 if test "x$LINE" != x ; then
3052 eval "DEFAULT_$LINE"
3053 else
3054 no_cache=1
3055 fi
3056
3057 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3058
3059fi
3060
3061
3062 eval "$ac_cv_use_wxprintfv"
3063 if test "$no_cache" != 1; then
3064 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3065 fi
3066
3067 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3068 echo "$ac_t""yes" 1>&6
3069 else
3070 echo "$ac_t""no" 1>&6
3071 fi
3072
3073
3074 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
4882bf1b 3075echo "configure:3076: checking "for --enable-joystick"" >&5
a16d3c04
KB
3076 no_cache=0
3077 # Check whether --enable-joystick or --disable-joystick was given.
3078if test "${enable_joystick+set}" = set; then
3079 enableval="$enable_joystick"
3080
3081 if test "$enableval" = yes; then
3082 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3083 else
3084 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3085 fi
3086
3087else
3088
3089 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3090 if test "x$LINE" != x ; then
3091 eval "DEFAULT_$LINE"
3092 else
3093 no_cache=1
3094 fi
3095
3096 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3097
3098fi
3099
3100
3101 eval "$ac_cv_use_joystick"
3102 if test "$no_cache" != 1; then
3103 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3104 fi
3105
3106 if test "$wxUSE_JOYSTICK" = yes; then
3107 echo "$ac_t""yes" 1>&6
3108 else
3109 echo "$ac_t""no" 1>&6
3110 fi
3111
3112
3113 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
4882bf1b 3114echo "configure:3115: checking "for --enable-std_iostreams"" >&5
a16d3c04
KB
3115 no_cache=0
3116 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3117if test "${enable_std_iostreams+set}" = set; then
3118 enableval="$enable_std_iostreams"
3119
3120 if test "$enableval" = yes; then
3121 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3122 else
3123 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3124 fi
3125
3126else
3127
3128 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3129 if test "x$LINE" != x ; then
3130 eval "DEFAULT_$LINE"
3131 else
3132 no_cache=1
3133 fi
3134
3135 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3136
3137fi
3138
3139
3140 eval "$ac_cv_use_std_iostreams"
3141 if test "$no_cache" != 1; then
3142 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3143 fi
3144
3145 if test "$wxUSE_STD_IOSTREAM" = yes; then
3146 echo "$ac_t""yes" 1>&6
3147 else
3148 echo "$ac_t""no" 1>&6
3149 fi
3150
3151
3152 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
4882bf1b 3153echo "configure:3154: checking "for --enable-fs_inet"" >&5
a16d3c04
KB
3154 no_cache=0
3155 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3156if test "${enable_fs_inet+set}" = set; then
3157 enableval="$enable_fs_inet"
3158
3159 if test "$enableval" = yes; then
3160 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3161 else
3162 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3163 fi
3164
3165else
3166
3167 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3168 if test "x$LINE" != x ; then
3169 eval "DEFAULT_$LINE"
3170 else
3171 no_cache=1
3172 fi
3173
3174 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3175
3176fi
3177
3178
3179 eval "$ac_cv_use_fs_inet"
3180 if test "$no_cache" != 1; then
3181 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3182 fi
3183
3184 if test "$wxUSE_FS_INET" = yes; then
3185 echo "$ac_t""yes" 1>&6
3186 else
3187 echo "$ac_t""no" 1>&6
3188 fi
3189
3190
3191 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
4882bf1b 3192echo "configure:3193: checking "for --enable-fs_zip"" >&5
a16d3c04
KB
3193 no_cache=0
3194 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3195if test "${enable_fs_zip+set}" = set; then
3196 enableval="$enable_fs_zip"
3197
3198 if test "$enableval" = yes; then
3199 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3200 else
3201 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3202 fi
3203
3204else
3205
3206 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3207 if test "x$LINE" != x ; then
3208 eval "DEFAULT_$LINE"
3209 else
3210 no_cache=1
3211 fi
3212
3213 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3214
3215fi
3216
3217
3218 eval "$ac_cv_use_fs_zip"
3219 if test "$no_cache" != 1; then
3220 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3221 fi
3222
3223 if test "$wxUSE_FS_ZIP" = yes; then
3224 echo "$ac_t""yes" 1>&6
3225 else
3226 echo "$ac_t""no" 1>&6
3227 fi
3228
3229
3230 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
4882bf1b 3231echo "configure:3232: checking "for --enable-zipstream"" >&5
a16d3c04
KB
3232 no_cache=0
3233 # Check whether --enable-zipstream or --disable-zipstream was given.
3234if test "${enable_zipstream+set}" = set; then
3235 enableval="$enable_zipstream"
3236
3237 if test "$enableval" = yes; then
3238 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3239 else
3240 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3241 fi
3242
3243else
3244
3245 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3246 if test "x$LINE" != x ; then
3247 eval "DEFAULT_$LINE"
3248 else
3249 no_cache=1
3250 fi
3251
3252 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3253
3254fi
3255
3256
3257 eval "$ac_cv_use_zipstream"
3258 if test "$no_cache" != 1; then
3259 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3260 fi
3261
3262 if test "$wxUSE_ZIPSTREAM" = yes; then
3263 echo "$ac_t""yes" 1>&6
3264 else
3265 echo "$ac_t""no" 1>&6
3266 fi
3267
3268
3269
3270
3271 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
4882bf1b 3272echo "configure:3273: checking "for --enable-threads"" >&5
a16d3c04
KB
3273 no_cache=0
3274 # Check whether --enable-threads or --disable-threads was given.
3275if test "${enable_threads+set}" = set; then
3276 enableval="$enable_threads"
3277
3278 if test "$enableval" = yes; then
3279 ac_cv_use_threads='wxUSE_THREADS=yes'
3280 else
3281 ac_cv_use_threads='wxUSE_THREADS=no'
3282 fi
3283
3284else
3285
3286 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3287 if test "x$LINE" != x ; then
3288 eval "DEFAULT_$LINE"
3289 else
3290 no_cache=1
3291 fi
3292
3293 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3294
3295fi
3296
3297
3298 eval "$ac_cv_use_threads"
3299 if test "$no_cache" != 1; then
3300 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3301 fi
3302
3303 if test "$wxUSE_THREADS" = yes; then
3304 echo "$ac_t""yes" 1>&6
3305 else
3306 echo "$ac_t""no" 1>&6
3307 fi
3308
3309
3310 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
4882bf1b 3311echo "configure:3312: checking "for --enable-serial"" >&5
a16d3c04
KB
3312 no_cache=0
3313 # Check whether --enable-serial or --disable-serial was given.
3314if test "${enable_serial+set}" = set; then
3315 enableval="$enable_serial"
3316
3317 if test "$enableval" = yes; then
3318 ac_cv_use_serial='wxUSE_SERIAL=yes'
3319 else
3320 ac_cv_use_serial='wxUSE_SERIAL=no'
3321 fi
3322
3323else
3324
3325 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3326 if test "x$LINE" != x ; then
3327 eval "DEFAULT_$LINE"
3328 else
3329 no_cache=1
3330 fi
3331
3332 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3333
3334fi
3335
3336
3337 eval "$ac_cv_use_serial"
3338 if test "$no_cache" != 1; then
3339 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3340 fi
3341
3342 if test "$wxUSE_SERIAL" = yes; then
3343 echo "$ac_t""yes" 1>&6
3344 else
3345 echo "$ac_t""no" 1>&6
3346 fi
3347
3348
3349
3350
3351 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
4882bf1b 3352echo "configure:3353: checking "for --enable-docview"" >&5
a16d3c04
KB
3353 no_cache=0
3354 # Check whether --enable-docview or --disable-docview was given.
3355if test "${enable_docview+set}" = set; then
3356 enableval="$enable_docview"
3357
3358 if test "$enableval" = yes; then
3359 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3360 else
3361 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3362 fi
3363
3364else
3365
3366 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3367 if test "x$LINE" != x ; then
3368 eval "DEFAULT_$LINE"
3369 else
3370 no_cache=1
3371 fi
3372
3373 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3374
3375fi
3376
3377
3378 eval "$ac_cv_use_docview"
3379 if test "$no_cache" != 1; then
3380 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3381 fi
3382
3383 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3384 echo "$ac_t""yes" 1>&6
3385 else
3386 echo "$ac_t""no" 1>&6
3387 fi
3388
3389
3390 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
4882bf1b 3391echo "configure:3392: checking "for --enable-help"" >&5
a16d3c04
KB
3392 no_cache=0
3393 # Check whether --enable-help or --disable-help was given.
3394if test "${enable_help+set}" = set; then
3395 enableval="$enable_help"
3396
3397 if test "$enableval" = yes; then
3398 ac_cv_use_help='wxUSE_HELP=yes'
3399 else
3400 ac_cv_use_help='wxUSE_HELP=no'
3401 fi
3402
3403else
3404
3405 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3406 if test "x$LINE" != x ; then
3407 eval "DEFAULT_$LINE"
3408 else
3409 no_cache=1
3410 fi
3411
3412 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3413
3414fi
3415
3416
3417 eval "$ac_cv_use_help"
3418 if test "$no_cache" != 1; then
3419 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3420 fi
3421
3422 if test "$wxUSE_HELP" = yes; then
3423 echo "$ac_t""yes" 1>&6
3424 else
3425 echo "$ac_t""no" 1>&6
3426 fi
3427
3428
3429 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
4882bf1b 3430echo "configure:3431: checking "for --enable-constraints"" >&5
a16d3c04
KB
3431 no_cache=0
3432 # Check whether --enable-constraints or --disable-constraints was given.
3433if test "${enable_constraints+set}" = set; then
3434 enableval="$enable_constraints"
3435
3436 if test "$enableval" = yes; then
3437 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3438 else
3439 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3440 fi
3441
3442else
3443
3444 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3445 if test "x$LINE" != x ; then
3446 eval "DEFAULT_$LINE"
3447 else
3448 no_cache=1
3449 fi
3450
3451 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3452
3453fi
3454
3455
3456 eval "$ac_cv_use_constraints"
3457 if test "$no_cache" != 1; then
3458 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3459 fi
3460
3461 if test "$wxUSE_CONSTRAINTS" = yes; then
3462 echo "$ac_t""yes" 1>&6
3463 else
3464 echo "$ac_t""no" 1>&6
3465 fi
3466
3467
3468 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
4882bf1b 3469echo "configure:3470: checking "for --enable-printarch"" >&5
a16d3c04
KB
3470 no_cache=0
3471 # Check whether --enable-printarch or --disable-printarch was given.
3472if test "${enable_printarch+set}" = set; then
3473 enableval="$enable_printarch"
3474
3475 if test "$enableval" = yes; then
3476 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3477 else
3478 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3479 fi
3480
3481else
3482
3483 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3484 if test "x$LINE" != x ; then
3485 eval "DEFAULT_$LINE"
3486 else
3487 no_cache=1
3488 fi
3489
3490 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3491
3492fi
3493
3494
3495 eval "$ac_cv_use_printarch"
3496 if test "$no_cache" != 1; then
3497 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3498 fi
3499
3500 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3501 echo "$ac_t""yes" 1>&6
3502 else
3503 echo "$ac_t""no" 1>&6
3504 fi
3505
3506
3507 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
4882bf1b 3508echo "configure:3509: checking "for --enable-mdi"" >&5
a16d3c04
KB
3509 no_cache=0
3510 # Check whether --enable-mdi or --disable-mdi was given.
3511if test "${enable_mdi+set}" = set; then
3512 enableval="$enable_mdi"
3513
3514 if test "$enableval" = yes; then
3515 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3516 else
3517 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3518 fi
3519
3520else
3521
3522 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3523 if test "x$LINE" != x ; then
3524 eval "DEFAULT_$LINE"
3525 else
3526 no_cache=1
3527 fi
3528
3529 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3530
3531fi
3532
3533
3534 eval "$ac_cv_use_mdi"
3535 if test "$no_cache" != 1; then
3536 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3537 fi
3538
3539 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3540 echo "$ac_t""yes" 1>&6
3541 else
3542 echo "$ac_t""no" 1>&6
3543 fi
3544
3545
3546
3547 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
4882bf1b 3548echo "configure:3549: checking "for --enable-postscript"" >&5
a16d3c04
KB
3549 no_cache=0
3550 # Check whether --enable-postscript or --disable-postscript was given.
3551if test "${enable_postscript+set}" = set; then
3552 enableval="$enable_postscript"
3553
3554 if test "$enableval" = yes; then
3555 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3556 else
3557 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3558 fi
3559
3560else
3561
3562 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3563 if test "x$LINE" != x ; then
3564 eval "DEFAULT_$LINE"
3565 else
3566 no_cache=1
3567 fi
3568
3569 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3570
3571fi
3572
3573
3574 eval "$ac_cv_use_postscript"
3575 if test "$no_cache" != 1; then
3576 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3577 fi
3578
3579 if test "$wxUSE_POSTSCRIPT" = yes; then
3580 echo "$ac_t""yes" 1>&6
3581 else
3582 echo "$ac_t""no" 1>&6
3583 fi
3584
3585
3586
3587
3588 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
4882bf1b 3589echo "configure:3590: checking "for --enable-prologio"" >&5
a16d3c04
KB
3590 no_cache=0
3591 # Check whether --enable-prologio or --disable-prologio was given.
3592if test "${enable_prologio+set}" = set; then
3593 enableval="$enable_prologio"
3594
3595 if test "$enableval" = yes; then
3596 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3597 else
3598 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3599 fi
3600
3601else
3602
3603 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3604 if test "x$LINE" != x ; then
3605 eval "DEFAULT_$LINE"
3606 else
3607 no_cache=1
3608 fi
3609
3610 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3611
3612fi
3613
3614
3615 eval "$ac_cv_use_prologio"
3616 if test "$no_cache" != 1; then
3617 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3618 fi
3619
3620 if test "$wxUSE_PROLOGIO" = yes; then
3621 echo "$ac_t""yes" 1>&6
3622 else
3623 echo "$ac_t""no" 1>&6
3624 fi
3625
3626
3627 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
4882bf1b 3628echo "configure:3629: checking "for --enable-resources"" >&5
a16d3c04
KB
3629 no_cache=0
3630 # Check whether --enable-resources or --disable-resources was given.
3631if test "${enable_resources+set}" = set; then
3632 enableval="$enable_resources"
3633
3634 if test "$enableval" = yes; then
3635 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3636 else
3637 ac_cv_use_resources='wxUSE_RESOURCES=no'
3638 fi
3639
3640else
3641
3642 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3643 if test "x$LINE" != x ; then
3644 eval "DEFAULT_$LINE"
3645 else
3646 no_cache=1
3647 fi
3648
3649 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3650
3651fi
3652
3653
3654 eval "$ac_cv_use_resources"
3655 if test "$no_cache" != 1; then
3656 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3657 fi
3658
3659 if test "$wxUSE_RESOURCES" = yes; then
3660 echo "$ac_t""yes" 1>&6
3661 else
3662 echo "$ac_t""no" 1>&6
3663 fi
3664
3665
3666
3667 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
4882bf1b 3668echo "configure:3669: checking "for --enable-xresources"" >&5
a16d3c04
KB
3669 no_cache=0
3670 # Check whether --enable-xresources or --disable-xresources was given.
3671if test "${enable_xresources+set}" = set; then
3672 enableval="$enable_xresources"
3673
3674 if test "$enableval" = yes; then
3675 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3676 else
3677 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3678 fi
3679
3680else
3681
3682 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3683 if test "x$LINE" != x ; then
3684 eval "DEFAULT_$LINE"
3685 else
3686 no_cache=1
3687 fi
3688
3689 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3690
3691fi
3692
3693
3694 eval "$ac_cv_use_xresources"
3695 if test "$no_cache" != 1; then
3696 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3697 fi
3698
3699 if test "$wxUSE_X_RESOURCES" = yes; then
3700 echo "$ac_t""yes" 1>&6
3701 else
3702 echo "$ac_t""no" 1>&6
3703 fi
3704
3705
3706
3707
3708 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
4882bf1b 3709echo "configure:3710: checking "for --enable-clipboard"" >&5
a16d3c04
KB
3710 no_cache=0
3711 # Check whether --enable-clipboard or --disable-clipboard was given.
3712if test "${enable_clipboard+set}" = set; then
3713 enableval="$enable_clipboard"
3714
3715 if test "$enableval" = yes; then
3716 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3717 else
3718 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3719 fi
3720
3721else
3722
3723 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3724 if test "x$LINE" != x ; then
3725 eval "DEFAULT_$LINE"
3726 else
3727 no_cache=1
3728 fi
3729
3730 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3731
3732fi
3733
3734
3735 eval "$ac_cv_use_clipboard"
3736 if test "$no_cache" != 1; then
3737 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3738 fi
3739
3740 if test "$wxUSE_CLIPBOARD" = yes; then
3741 echo "$ac_t""yes" 1>&6
3742 else
3743 echo "$ac_t""no" 1>&6
3744 fi
3745
3746
3747 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
4882bf1b 3748echo "configure:3749: checking "for --enable-dnd"" >&5
a16d3c04
KB
3749 no_cache=0
3750 # Check whether --enable-dnd or --disable-dnd was given.
3751if test "${enable_dnd+set}" = set; then
3752 enableval="$enable_dnd"
3753
3754 if test "$enableval" = yes; then
3755 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3756 else
3757 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3758 fi
3759
3760else
3761
3762 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3763 if test "x$LINE" != x ; then
3764 eval "DEFAULT_$LINE"
3765 else
3766 no_cache=1
3767 fi
3768
3769 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3770
3771fi
3772
3773
3774 eval "$ac_cv_use_dnd"
3775 if test "$no_cache" != 1; then
3776 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3777 fi
3778
3779 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3780 echo "$ac_t""yes" 1>&6
3781 else
3782 echo "$ac_t""no" 1>&6
3783 fi
3784
3785
3786
3787 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
4882bf1b 3788echo "configure:3789: checking "for --enable-wxtree"" >&5
a16d3c04
KB
3789 no_cache=0
3790 # Check whether --enable-wxtree or --disable-wxtree was given.
3791if test "${enable_wxtree+set}" = set; then
3792 enableval="$enable_wxtree"
3793
3794 if test "$enableval" = yes; then
3795 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3796 else
3797 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3798 fi
3799
3800else
3801
3802 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3803 if test "x$LINE" != x ; then
3804 eval "DEFAULT_$LINE"
3805 else
3806 no_cache=1
3807 fi
3808
3809 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3810
3811fi
3812
3813
3814 eval "$ac_cv_use_wxtree"
3815 if test "$no_cache" != 1; then
3816 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3817 fi
3818
3819 if test "$wxUSE_WXTREE" = yes; then
3820 echo "$ac_t""yes" 1>&6
3821 else
3822 echo "$ac_t""no" 1>&6
3823 fi
3824
3825
3826
3827
3828 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
4882bf1b 3829echo "configure:3830: checking "for --enable-controls"" >&5
a16d3c04
KB
3830 no_cache=0
3831 # Check whether --enable-controls or --disable-controls was given.
3832if test "${enable_controls+set}" = set; then
3833 enableval="$enable_controls"
3834
3835 if test "$enableval" = yes; then
3836 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3837 else
3838 ac_cv_use_controls='wxUSE_CONTROLS=no'
3839 fi
3840
3841else
3842
3843 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3844 if test "x$LINE" != x ; then
3845 eval "DEFAULT_$LINE"
3846 else
3847 no_cache=1
3848 fi
3849
3850 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3851
3852fi
3853
3854
3855 eval "$ac_cv_use_controls"
3856 if test "$no_cache" != 1; then
3857 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3858 fi
3859
3860 if test "$wxUSE_CONTROLS" = yes; then
3861 echo "$ac_t""yes" 1>&6
3862 else
3863 echo "$ac_t""no" 1>&6
3864 fi
3865
3866
3867if test "$wxUSE_CONTROLS" = "yes"; then
3868 DEFAULT_wxUSE_ACCEL=yes
3869 DEFAULT_wxUSE_CARET=yes
3870 DEFAULT_wxUSE_COMBOBOX=yes
3871 DEFAULT_wxUSE_BMPBUTTON=yes
3872 DEFAULT_wxUSE_CHECKBOX=yes
3873 DEFAULT_wxUSE_CHECKLISTBOX=yes
3874 DEFAULT_wxUSE_CHOICE=yes
3875 DEFAULT_wxUSE_GAUGE=yes
3876 DEFAULT_wxUSE_GRID=yes
2726c66d 3877 DEFAULT_wxUSE_NEW_GRID=yes
a16d3c04
KB
3878 DEFAULT_wxUSE_IMAGLIST=yes
3879 DEFAULT_wxUSE_LISTBOX=yes
3880 DEFAULT_wxUSE_LISTCTRL=yes
3881 DEFAULT_wxUSE_NOTEBOOK=yes
3882 DEFAULT_wxUSE_RADIOBOX=yes
3883 DEFAULT_wxUSE_RADIOBTN=yes
3884 DEFAULT_wxUSE_SASH=yes
3885 DEFAULT_wxUSE_SCROLLBAR=yes
3886 DEFAULT_wxUSE_SLIDER=yes
3887 DEFAULT_wxUSE_SPINBTN=yes
3888 DEFAULT_wxUSE_SPLITTER=yes
3889 DEFAULT_wxUSE_STATBMP=yes
3890 DEFAULT_wxUSE_STATBOX=yes
3891 DEFAULT_wxUSE_STATLINE=yes
3892 DEFAULT_wxUSE_STATUSBAR=yes
3893 DEFAULT_wxUSE_TAB_DIALOG=yes
3894 DEFAULT_wxUSE_TOOLBAR=yes
3895 DEFAULT_wxUSE_TOOLTIPS=yes
3896 DEFAULT_wxUSE_TREECTRL=yes
3897elif test "$wxUSE_CONTROLS" = "no"; then
3898 DEFAULT_wxUSE_ACCEL=no
3899 DEFAULT_wxUSE_CARET=no
3900 DEFAULT_wxUSE_COMBOBOX=no
3901 DEFAULT_wxUSE_BMPBUTTON=no
3902 DEFAULT_wxUSE_CHECKBOX=no
3903 DEFAULT_wxUSE_CHECKLISTBOX=no
3904 DEFAULT_wxUSE_CHOICE=no
3905 DEFAULT_wxUSE_GAUGE=no
3906 DEFAULT_wxUSE_GRID=no
2726c66d 3907 DEFAULT_wxUSE_NEW_GRID=no
a16d3c04
KB
3908 DEFAULT_wxUSE_IMAGLIST=no
3909 DEFAULT_wxUSE_LISTBOX=no
3910 DEFAULT_wxUSE_LISTCTRL=no
3911 DEFAULT_wxUSE_NOTEBOOK=no
3912 DEFAULT_wxUSE_RADIOBOX=no
3913 DEFAULT_wxUSE_RADIOBTN=no
3914 DEFAULT_wxUSE_SASH=no
3915 DEFAULT_wxUSE_SCROLLBAR=no
3916 DEFAULT_wxUSE_SLIDER=no
3917 DEFAULT_wxUSE_SPINBTN=no
3918 DEFAULT_wxUSE_SPLITTER=no
3919 DEFAULT_wxUSE_STATBMP=no
3920 DEFAULT_wxUSE_STATBOX=no
3921 DEFAULT_wxUSE_STATLINE=no
3922 DEFAULT_wxUSE_STATUSBAR=no
3923 DEFAULT_wxUSE_TAB_DIALOG=no
3924 DEFAULT_wxUSE_TOOLBAR=no
3925 DEFAULT_wxUSE_TOOLTIPS=no
3926 DEFAULT_wxUSE_TREECTRL=no
3927fi
3928
3929
3930 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
4882bf1b 3931echo "configure:3932: checking "for --enable-accel"" >&5
a16d3c04
KB
3932 no_cache=0
3933 # Check whether --enable-accel or --disable-accel was given.
3934if test "${enable_accel+set}" = set; then
3935 enableval="$enable_accel"
3936
3937 if test "$enableval" = yes; then
3938 ac_cv_use_accel='wxUSE_ACCEL=yes'
3939 else
3940 ac_cv_use_accel='wxUSE_ACCEL=no'
3941 fi
3942
3943else
3944
3945 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
3946 if test "x$LINE" != x ; then
3947 eval "DEFAULT_$LINE"
3948 else
3949 no_cache=1
3950 fi
3951
3952 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
3953
3954fi
3955
3956
3957 eval "$ac_cv_use_accel"
3958 if test "$no_cache" != 1; then
3959 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
3960 fi
3961
3962 if test "$wxUSE_ACCEL" = yes; then
3963 echo "$ac_t""yes" 1>&6
3964 else
3965 echo "$ac_t""no" 1>&6
3966 fi
3967
3968
3969 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
4882bf1b 3970echo "configure:3971: checking "for --enable-caret"" >&5
a16d3c04
KB
3971 no_cache=0
3972 # Check whether --enable-caret or --disable-caret was given.
3973if test "${enable_caret+set}" = set; then
3974 enableval="$enable_caret"
3975
3976 if test "$enableval" = yes; then
3977 ac_cv_use_caret='wxUSE_CARET=yes'
3978 else
3979 ac_cv_use_caret='wxUSE_CARET=no'
3980 fi
3981
3982else
3983
3984 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
3985 if test "x$LINE" != x ; then
3986 eval "DEFAULT_$LINE"
3987 else
3988 no_cache=1
3989 fi
3990
3991 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
3992
3993fi
3994
3995
3996 eval "$ac_cv_use_caret"
3997 if test "$no_cache" != 1; then
3998 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
3999 fi
4000
4001 if test "$wxUSE_CARET" = yes; then
4002 echo "$ac_t""yes" 1>&6
4003 else
4004 echo "$ac_t""no" 1>&6
4005 fi
4006
4007
4008 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
4882bf1b 4009echo "configure:4010: checking "for --enable-bmpbutton"" >&5
a16d3c04
KB
4010 no_cache=0
4011 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4012if test "${enable_bmpbutton+set}" = set; then
4013 enableval="$enable_bmpbutton"
4014
4015 if test "$enableval" = yes; then
4016 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4017 else
4018 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4019 fi
4020
4021else
4022
4023 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4024 if test "x$LINE" != x ; then
4025 eval "DEFAULT_$LINE"
4026 else
4027 no_cache=1
4028 fi
4029
4030 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4031
4032fi
4033
4034
4035 eval "$ac_cv_use_bmpbutton"
4036 if test "$no_cache" != 1; then
4037 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4038 fi
4039
4040 if test "$wxUSE_BMPBUTTON" = yes; then
4041 echo "$ac_t""yes" 1>&6
4042 else
4043 echo "$ac_t""no" 1>&6
4044 fi
4045
4046
4047 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
4882bf1b 4048echo "configure:4049: checking "for --enable-checkbox"" >&5
a16d3c04
KB
4049 no_cache=0
4050 # Check whether --enable-checkbox or --disable-checkbox was given.
4051if test "${enable_checkbox+set}" = set; then
4052 enableval="$enable_checkbox"
4053
4054 if test "$enableval" = yes; then
4055 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4056 else
4057 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4058 fi
4059
4060else
4061
4062 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4063 if test "x$LINE" != x ; then
4064 eval "DEFAULT_$LINE"
4065 else
4066 no_cache=1
4067 fi
4068
4069 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4070
4071fi
4072
4073
4074 eval "$ac_cv_use_checkbox"
4075 if test "$no_cache" != 1; then
4076 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4077 fi
4078
4079 if test "$wxUSE_CHECKBOX" = yes; then
4080 echo "$ac_t""yes" 1>&6
4081 else
4082 echo "$ac_t""no" 1>&6
4083 fi
4084
4085
4086 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
4882bf1b 4087echo "configure:4088: checking "for --enable-checklst"" >&5
a16d3c04
KB
4088 no_cache=0
4089 # Check whether --enable-checklst or --disable-checklst was given.
4090if test "${enable_checklst+set}" = set; then
4091 enableval="$enable_checklst"
4092
4093 if test "$enableval" = yes; then
4094 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4095 else
4096 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4097 fi
4098
4099else
4100
4101 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4102 if test "x$LINE" != x ; then
4103 eval "DEFAULT_$LINE"
4104 else
4105 no_cache=1
4106 fi
4107
4108 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4109
4110fi
4111
4112
4113 eval "$ac_cv_use_checklst"
4114 if test "$no_cache" != 1; then
4115 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4116 fi
4117
4118 if test "$wxUSE_CHECKLST" = yes; then
4119 echo "$ac_t""yes" 1>&6
4120 else
4121 echo "$ac_t""no" 1>&6
4122 fi
4123
4124
4125 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
4882bf1b 4126echo "configure:4127: checking "for --enable-choice"" >&5
a16d3c04
KB
4127 no_cache=0
4128 # Check whether --enable-choice or --disable-choice was given.
4129if test "${enable_choice+set}" = set; then
4130 enableval="$enable_choice"
4131
4132 if test "$enableval" = yes; then
4133 ac_cv_use_choice='wxUSE_CHOICE=yes'
4134 else
4135 ac_cv_use_choice='wxUSE_CHOICE=no'
4136 fi
4137
4138else
4139
4140 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4141 if test "x$LINE" != x ; then
4142 eval "DEFAULT_$LINE"
4143 else
4144 no_cache=1
4145 fi
4146
4147 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4148
4149fi
4150
4151
4152 eval "$ac_cv_use_choice"
4153 if test "$no_cache" != 1; then
4154 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4155 fi
4156
4157 if test "$wxUSE_CHOICE" = yes; then
4158 echo "$ac_t""yes" 1>&6
4159 else
4160 echo "$ac_t""no" 1>&6
4161 fi
4162
4163
4164 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
4882bf1b 4165echo "configure:4166: checking "for --enable-combobox"" >&5
a16d3c04
KB
4166 no_cache=0
4167 # Check whether --enable-combobox or --disable-combobox was given.
4168if test "${enable_combobox+set}" = set; then
4169 enableval="$enable_combobox"
4170
4171 if test "$enableval" = yes; then
4172 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4173 else
4174 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4175 fi
4176
4177else
4178
4179 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4180 if test "x$LINE" != x ; then
4181 eval "DEFAULT_$LINE"
4182 else
4183 no_cache=1
4184 fi
4185
4186 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4187
4188fi
4189
4190
4191 eval "$ac_cv_use_combobox"
4192 if test "$no_cache" != 1; then
4193 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4194 fi
4195
4196 if test "$wxUSE_COMBOBOX" = yes; then
4197 echo "$ac_t""yes" 1>&6
4198 else
4199 echo "$ac_t""no" 1>&6
4200 fi
4201
4202
4203 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
4882bf1b 4204echo "configure:4205: checking "for --enable-gauge"" >&5
a16d3c04
KB
4205 no_cache=0
4206 # Check whether --enable-gauge or --disable-gauge was given.
4207if test "${enable_gauge+set}" = set; then
4208 enableval="$enable_gauge"
4209
4210 if test "$enableval" = yes; then
4211 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4212 else
4213 ac_cv_use_gauge='wxUSE_GAUGE=no'
4214 fi
4215
4216else
4217
4218 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4219 if test "x$LINE" != x ; then
4220 eval "DEFAULT_$LINE"
4221 else
4222 no_cache=1
4223 fi
4224
4225 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4226
4227fi
4228
4229
4230 eval "$ac_cv_use_gauge"
4231 if test "$no_cache" != 1; then
4232 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4233 fi
4234
4235 if test "$wxUSE_GAUGE" = yes; then
4236 echo "$ac_t""yes" 1>&6
4237 else
4238 echo "$ac_t""no" 1>&6
4239 fi
4240
4241
4242 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
4882bf1b 4243echo "configure:4244: checking "for --enable-grid"" >&5
a16d3c04
KB
4244 no_cache=0
4245 # Check whether --enable-grid or --disable-grid was given.
4246if test "${enable_grid+set}" = set; then
4247 enableval="$enable_grid"
4248
4249 if test "$enableval" = yes; then
4250 ac_cv_use_grid='wxUSE_GRID=yes'
4251 else
4252 ac_cv_use_grid='wxUSE_GRID=no'
4253 fi
4254
4255else
4256
4257 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4258 if test "x$LINE" != x ; then
4259 eval "DEFAULT_$LINE"
4260 else
4261 no_cache=1
4262 fi
4263
4264 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4265
4266fi
4267
4268
4269 eval "$ac_cv_use_grid"
4270 if test "$no_cache" != 1; then
4271 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4272 fi
4273
4274 if test "$wxUSE_GRID" = yes; then
4275 echo "$ac_t""yes" 1>&6
4276 else
4277 echo "$ac_t""no" 1>&6
4278 fi
4279
4280
2726c66d 4281 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
4882bf1b 4282echo "configure:4283: checking "for --enable-newgrid"" >&5
2726c66d
KB
4283 no_cache=0
4284 # Check whether --enable-newgrid or --disable-newgrid was given.
4285if test "${enable_newgrid+set}" = set; then
4286 enableval="$enable_newgrid"
4287
4288 if test "$enableval" = yes; then
4289 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4290 else
4291 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4292 fi
4293
4294else
4295
4296 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4297 if test "x$LINE" != x ; then
4298 eval "DEFAULT_$LINE"
4299 else
4300 no_cache=1
4301 fi
4302
4303 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4304
4305fi
4306
4307
4308 eval "$ac_cv_use_newgrid"
4309 if test "$no_cache" != 1; then
4310 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4311 fi
4312
4313 if test "$wxUSE_NEW_GRID" = yes; then
4314 echo "$ac_t""yes" 1>&6
4315 else
4316 echo "$ac_t""no" 1>&6
4317 fi
4318
4319
a16d3c04 4320 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
4882bf1b 4321echo "configure:4322: checking "for --enable-imaglist"" >&5
a16d3c04
KB
4322 no_cache=0
4323 # Check whether --enable-imaglist or --disable-imaglist was given.
4324if test "${enable_imaglist+set}" = set; then
4325 enableval="$enable_imaglist"
4326
4327 if test "$enableval" = yes; then
4328 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4329 else
4330 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4331 fi
4332
4333else
4334
4335 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4336 if test "x$LINE" != x ; then
4337 eval "DEFAULT_$LINE"
4338 else
4339 no_cache=1
4340 fi
4341
4342 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4343
4344fi
4345
4346
4347 eval "$ac_cv_use_imaglist"
4348 if test "$no_cache" != 1; then
4349 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4350 fi
4351
4352 if test "$wxUSE_IMAGLIST" = yes; then
4353 echo "$ac_t""yes" 1>&6
4354 else
4355 echo "$ac_t""no" 1>&6
4356 fi
4357
4358
4359 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
4882bf1b 4360echo "configure:4361: checking "for --enable-listbox"" >&5
a16d3c04
KB
4361 no_cache=0
4362 # Check whether --enable-listbox or --disable-listbox was given.
4363if test "${enable_listbox+set}" = set; then
4364 enableval="$enable_listbox"
4365
4366 if test "$enableval" = yes; then
4367 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4368 else
4369 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4370 fi
4371
4372else
4373
4374 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4375 if test "x$LINE" != x ; then
4376 eval "DEFAULT_$LINE"
4377 else
4378 no_cache=1
4379 fi
4380
4381 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4382
4383fi
4384
4385
4386 eval "$ac_cv_use_listbox"
4387 if test "$no_cache" != 1; then
4388 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4389 fi
4390
4391 if test "$wxUSE_LISTBOX" = yes; then
4392 echo "$ac_t""yes" 1>&6
4393 else
4394 echo "$ac_t""no" 1>&6
4395 fi
4396
4397
4398 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
4882bf1b 4399echo "configure:4400: checking "for --enable-listctrl"" >&5
a16d3c04
KB
4400 no_cache=0
4401 # Check whether --enable-listctrl or --disable-listctrl was given.
4402if test "${enable_listctrl+set}" = set; then
4403 enableval="$enable_listctrl"
4404
4405 if test "$enableval" = yes; then
4406 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4407 else
4408 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4409 fi
4410
4411else
4412
4413 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4414 if test "x$LINE" != x ; then
4415 eval "DEFAULT_$LINE"
4416 else
4417 no_cache=1
4418 fi
4419
4420 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4421
4422fi
4423
4424
4425 eval "$ac_cv_use_listctrl"
4426 if test "$no_cache" != 1; then
4427 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4428 fi
4429
4430 if test "$wxUSE_LISTCTRL" = yes; then
4431 echo "$ac_t""yes" 1>&6
4432 else
4433 echo "$ac_t""no" 1>&6
4434 fi
4435
4436
4437 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
4882bf1b 4438echo "configure:4439: checking "for --enable-notebook"" >&5
a16d3c04
KB
4439 no_cache=0
4440 # Check whether --enable-notebook or --disable-notebook was given.
4441if test "${enable_notebook+set}" = set; then
4442 enableval="$enable_notebook"
4443
4444 if test "$enableval" = yes; then
4445 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4446 else
4447 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4448 fi
4449
4450else
4451
4452 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4453 if test "x$LINE" != x ; then
4454 eval "DEFAULT_$LINE"
4455 else
4456 no_cache=1
4457 fi
4458
4459 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4460
4461fi
4462
4463
4464 eval "$ac_cv_use_notebook"
4465 if test "$no_cache" != 1; then
4466 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4467 fi
4468
4469 if test "$wxUSE_NOTEBOOK" = yes; then
4470 echo "$ac_t""yes" 1>&6
4471 else
4472 echo "$ac_t""no" 1>&6
4473 fi
4474
4475
4476 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
4882bf1b 4477echo "configure:4478: checking "for --enable-radiobox"" >&5
a16d3c04
KB
4478 no_cache=0
4479 # Check whether --enable-radiobox or --disable-radiobox was given.
4480if test "${enable_radiobox+set}" = set; then
4481 enableval="$enable_radiobox"
4482
4483 if test "$enableval" = yes; then
4484 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4485 else
4486 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4487 fi
4488
4489else
4490
4491 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4492 if test "x$LINE" != x ; then
4493 eval "DEFAULT_$LINE"
4494 else
4495 no_cache=1
4496 fi
4497
4498 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4499
4500fi
4501
4502
4503 eval "$ac_cv_use_radiobox"
4504 if test "$no_cache" != 1; then
4505 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4506 fi
4507
4508 if test "$wxUSE_RADIOBOX" = yes; then
4509 echo "$ac_t""yes" 1>&6
4510 else
4511 echo "$ac_t""no" 1>&6
4512 fi
4513
4514
4515 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
4882bf1b 4516echo "configure:4517: checking "for --enable-radiobtn"" >&5
a16d3c04
KB
4517 no_cache=0
4518 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4519if test "${enable_radiobtn+set}" = set; then
4520 enableval="$enable_radiobtn"
4521
4522 if test "$enableval" = yes; then
4523 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4524 else
4525 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4526 fi
4527
4528else
4529
4530 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4531 if test "x$LINE" != x ; then
4532 eval "DEFAULT_$LINE"
4533 else
4534 no_cache=1
4535 fi
4536
4537 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4538
4539fi
4540
4541
4542 eval "$ac_cv_use_radiobtn"
4543 if test "$no_cache" != 1; then
4544 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4545 fi
4546
4547 if test "$wxUSE_RADIOBTN" = yes; then
4548 echo "$ac_t""yes" 1>&6
4549 else
4550 echo "$ac_t""no" 1>&6
4551 fi
4552
4553
4554 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
4882bf1b 4555echo "configure:4556: checking "for --enable-sash"" >&5
a16d3c04
KB
4556 no_cache=0
4557 # Check whether --enable-sash or --disable-sash was given.
4558if test "${enable_sash+set}" = set; then
4559 enableval="$enable_sash"
4560
4561 if test "$enableval" = yes; then
4562 ac_cv_use_sash='wxUSE_SASH=yes'
4563 else
4564 ac_cv_use_sash='wxUSE_SASH=no'
4565 fi
4566
4567else
4568
4569 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4570 if test "x$LINE" != x ; then
4571 eval "DEFAULT_$LINE"
4572 else
4573 no_cache=1
4574 fi
4575
4576 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4577
4578fi
4579
4580
4581 eval "$ac_cv_use_sash"
4582 if test "$no_cache" != 1; then
4583 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4584 fi
4585
4586 if test "$wxUSE_SASH" = yes; then
4587 echo "$ac_t""yes" 1>&6
4588 else
4589 echo "$ac_t""no" 1>&6
4590 fi
4591
4592
4593 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
4882bf1b 4594echo "configure:4595: checking "for --enable-scrollbar"" >&5
a16d3c04
KB
4595 no_cache=0
4596 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4597if test "${enable_scrollbar+set}" = set; then
4598 enableval="$enable_scrollbar"
4599
4600 if test "$enableval" = yes; then
4601 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4602 else
4603 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4604 fi
4605
4606else
4607
4608 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4609 if test "x$LINE" != x ; then
4610 eval "DEFAULT_$LINE"
4611 else
4612 no_cache=1
4613 fi
4614
4615 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4616
4617fi
4618
4619
4620 eval "$ac_cv_use_scrollbar"
4621 if test "$no_cache" != 1; then
4622 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4623 fi
4624
4625 if test "$wxUSE_SCROLLBAR" = yes; then
4626 echo "$ac_t""yes" 1>&6
4627 else
4628 echo "$ac_t""no" 1>&6
4629 fi
4630
4631
4632 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
4882bf1b 4633echo "configure:4634: checking "for --enable-slider"" >&5
a16d3c04
KB
4634 no_cache=0
4635 # Check whether --enable-slider or --disable-slider was given.
4636if test "${enable_slider+set}" = set; then
4637 enableval="$enable_slider"
4638
4639 if test "$enableval" = yes; then
4640 ac_cv_use_slider='wxUSE_SLIDER=yes'
4641 else
4642 ac_cv_use_slider='wxUSE_SLIDER=no'
4643 fi
4644
4645else
4646
4647 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4648 if test "x$LINE" != x ; then
4649 eval "DEFAULT_$LINE"
4650 else
4651 no_cache=1
4652 fi
4653
4654 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4655
4656fi
4657
4658
4659 eval "$ac_cv_use_slider"
4660 if test "$no_cache" != 1; then
4661 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4662 fi
4663
4664 if test "$wxUSE_SLIDER" = yes; then
4665 echo "$ac_t""yes" 1>&6
4666 else
4667 echo "$ac_t""no" 1>&6
4668 fi
4669
4670
4671 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
4882bf1b 4672echo "configure:4673: checking "for --enable-spinbtn"" >&5
a16d3c04
KB
4673 no_cache=0
4674 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4675if test "${enable_spinbtn+set}" = set; then
4676 enableval="$enable_spinbtn"
4677
4678 if test "$enableval" = yes; then
4679 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4680 else
4681 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4682 fi
4683
4684else
4685
4686 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4687 if test "x$LINE" != x ; then
4688 eval "DEFAULT_$LINE"
4689 else
4690 no_cache=1
4691 fi
4692
4693 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4694
4695fi
4696
4697
4698 eval "$ac_cv_use_spinbtn"
4699 if test "$no_cache" != 1; then
4700 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4701 fi
4702
4703 if test "$wxUSE_SPINBTN" = yes; then
4704 echo "$ac_t""yes" 1>&6
4705 else
4706 echo "$ac_t""no" 1>&6
4707 fi
4708
4709
4710 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
4882bf1b 4711echo "configure:4712: checking "for --enable-splitter"" >&5
a16d3c04
KB
4712 no_cache=0
4713 # Check whether --enable-splitter or --disable-splitter was given.
4714if test "${enable_splitter+set}" = set; then
4715 enableval="$enable_splitter"
4716
4717 if test "$enableval" = yes; then
4718 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4719 else
4720 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4721 fi
4722
4723else
4724
4725 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4726 if test "x$LINE" != x ; then
4727 eval "DEFAULT_$LINE"
4728 else
4729 no_cache=1
4730 fi
4731
4732 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4733
4734fi
4735
4736
4737 eval "$ac_cv_use_splitter"
4738 if test "$no_cache" != 1; then
4739 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4740 fi
4741
4742 if test "$wxUSE_SPLITTER" = yes; then
4743 echo "$ac_t""yes" 1>&6
4744 else
4745 echo "$ac_t""no" 1>&6
4746 fi
4747
4748
4749 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
4882bf1b 4750echo "configure:4751: checking "for --enable-statbmp"" >&5
a16d3c04
KB
4751 no_cache=0
4752 # Check whether --enable-statbmp or --disable-statbmp was given.
4753if test "${enable_statbmp+set}" = set; then
4754 enableval="$enable_statbmp"
4755
4756 if test "$enableval" = yes; then
4757 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4758 else
4759 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4760 fi
4761
4762else
4763
4764 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4765 if test "x$LINE" != x ; then
4766 eval "DEFAULT_$LINE"
4767 else
4768 no_cache=1
4769 fi
4770
4771 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4772
4773fi
4774
4775
4776 eval "$ac_cv_use_statbmp"
4777 if test "$no_cache" != 1; then
4778 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4779 fi
4780
4781 if test "$wxUSE_STATBMP" = yes; then
4782 echo "$ac_t""yes" 1>&6
4783 else
4784 echo "$ac_t""no" 1>&6
4785 fi
4786
4787
4788 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
4882bf1b 4789echo "configure:4790: checking "for --enable-statbox"" >&5
a16d3c04
KB
4790 no_cache=0
4791 # Check whether --enable-statbox or --disable-statbox was given.
4792if test "${enable_statbox+set}" = set; then
4793 enableval="$enable_statbox"
4794
4795 if test "$enableval" = yes; then
4796 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4797 else
4798 ac_cv_use_statbox='wxUSE_STATBOX=no'
4799 fi
4800
4801else
4802
4803 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4804 if test "x$LINE" != x ; then
4805 eval "DEFAULT_$LINE"
4806 else
4807 no_cache=1
4808 fi
4809
4810 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4811
4812fi
4813
4814
4815 eval "$ac_cv_use_statbox"
4816 if test "$no_cache" != 1; then
4817 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4818 fi
4819
4820 if test "$wxUSE_STATBOX" = yes; then
4821 echo "$ac_t""yes" 1>&6
4822 else
4823 echo "$ac_t""no" 1>&6
4824 fi
4825
4826
4827 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
4882bf1b 4828echo "configure:4829: checking "for --enable-statline"" >&5
a16d3c04
KB
4829 no_cache=0
4830 # Check whether --enable-statline or --disable-statline was given.
4831if test "${enable_statline+set}" = set; then
4832 enableval="$enable_statline"
4833
4834 if test "$enableval" = yes; then
4835 ac_cv_use_statline='wxUSE_STATLINE=yes'
4836 else
4837 ac_cv_use_statline='wxUSE_STATLINE=no'
4838 fi
4839
4840else
4841
4842 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
4843 if test "x$LINE" != x ; then
4844 eval "DEFAULT_$LINE"
4845 else
4846 no_cache=1
4847 fi
4848
4849 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
4850
4851fi
4852
4853
4854 eval "$ac_cv_use_statline"
4855 if test "$no_cache" != 1; then
4856 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
4857 fi
4858
4859 if test "$wxUSE_STATLINE" = yes; then
4860 echo "$ac_t""yes" 1>&6
4861 else
4862 echo "$ac_t""no" 1>&6
4863 fi
4864
4865
4866 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
4882bf1b 4867echo "configure:4868: checking "for --enable-statusbar"" >&5
a16d3c04
KB
4868 no_cache=0
4869 # Check whether --enable-statusbar or --disable-statusbar was given.
4870if test "${enable_statusbar+set}" = set; then
4871 enableval="$enable_statusbar"
4872
4873 if test "$enableval" = yes; then
4874 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
4875 else
4876 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
4877 fi
4878
4879else
4880
4881 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
4882 if test "x$LINE" != x ; then
4883 eval "DEFAULT_$LINE"
4884 else
4885 no_cache=1
4886 fi
4887
4888 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
4889
4890fi
4891
4892
4893 eval "$ac_cv_use_statusbar"
4894 if test "$no_cache" != 1; then
4895 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
4896 fi
4897
4898 if test "$wxUSE_STATUSBAR" = yes; then
4899 echo "$ac_t""yes" 1>&6
4900 else
4901 echo "$ac_t""no" 1>&6
4902 fi
4903
4904
4905 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
4882bf1b 4906echo "configure:4907: checking "for --enable-tabdialog"" >&5
a16d3c04
KB
4907 no_cache=0
4908 # Check whether --enable-tabdialog or --disable-tabdialog was given.
4909if test "${enable_tabdialog+set}" = set; then
4910 enableval="$enable_tabdialog"
4911
4912 if test "$enableval" = yes; then
4913 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
4914 else
4915 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
4916 fi
4917
4918else
4919
4920 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
4921 if test "x$LINE" != x ; then
4922 eval "DEFAULT_$LINE"
4923 else
4924 no_cache=1
4925 fi
4926
4927 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
4928
4929fi
4930
4931
4932 eval "$ac_cv_use_tabdialog"
4933 if test "$no_cache" != 1; then
4934 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
4935 fi
4936
4937 if test "$wxUSE_TABDIALOG" = yes; then
4938 echo "$ac_t""yes" 1>&6
4939 else
4940 echo "$ac_t""no" 1>&6
4941 fi
4942
4943
4944 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
4882bf1b 4945echo "configure:4946: checking "for --enable-toolbar"" >&5
a16d3c04
KB
4946 no_cache=0
4947 # Check whether --enable-toolbar or --disable-toolbar was given.
4948if test "${enable_toolbar+set}" = set; then
4949 enableval="$enable_toolbar"
4950
4951 if test "$enableval" = yes; then
4952 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
4953 else
4954 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
4955 fi
4956
4957else
4958
4959 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
4960 if test "x$LINE" != x ; then
4961 eval "DEFAULT_$LINE"
4962 else
4963 no_cache=1
4964 fi
4965
4966 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
4967
4968fi
4969
4970
4971 eval "$ac_cv_use_toolbar"
4972 if test "$no_cache" != 1; then
4973 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
4974 fi
4975
4976 if test "$wxUSE_TOOLBAR" = yes; then
4977 echo "$ac_t""yes" 1>&6
4978 else
4979 echo "$ac_t""no" 1>&6
4980 fi
4981
4982
4983 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
4882bf1b 4984echo "configure:4985: checking "for --enable-treectrl"" >&5
a16d3c04
KB
4985 no_cache=0
4986 # Check whether --enable-treectrl or --disable-treectrl was given.
4987if test "${enable_treectrl+set}" = set; then
4988 enableval="$enable_treectrl"
4989
4990 if test "$enableval" = yes; then
4991 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
4992 else
4993 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
4994 fi
4995
4996else
4997
4998 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
4999 if test "x$LINE" != x ; then
5000 eval "DEFAULT_$LINE"
5001 else
5002 no_cache=1
5003 fi
5004
5005 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5006
5007fi
5008
5009
5010 eval "$ac_cv_use_treectrl"
5011 if test "$no_cache" != 1; then
5012 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5013 fi
5014
5015 if test "$wxUSE_TREECTRL" = yes; then
5016 echo "$ac_t""yes" 1>&6
5017 else
5018 echo "$ac_t""no" 1>&6
5019 fi
5020
5021
5022
5023
5024 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
4882bf1b 5025echo "configure:5026: checking "for --enable-commondlg"" >&5
a16d3c04
KB
5026 no_cache=0
5027 # Check whether --enable-commondlg or --disable-commondlg was given.
5028if test "${enable_commondlg+set}" = set; then
5029 enableval="$enable_commondlg"
5030
5031 if test "$enableval" = yes; then
5032 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5033 else
5034 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5035 fi
5036
5037else
5038
5039 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5040 if test "x$LINE" != x ; then
5041 eval "DEFAULT_$LINE"
5042 else
5043 no_cache=1
5044 fi
5045
5046 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5047
5048fi
5049
5050
5051 eval "$ac_cv_use_commondlg"
5052 if test "$no_cache" != 1; then
5053 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5054 fi
5055
5056 if test "$wxUSE_COMMONDLGS" = yes; then
5057 echo "$ac_t""yes" 1>&6
5058 else
5059 echo "$ac_t""no" 1>&6
5060 fi
5061
5062
5063 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
4882bf1b 5064echo "configure:5065: checking "for --enable-dirdlg"" >&5
a16d3c04
KB
5065 no_cache=0
5066 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5067if test "${enable_dirdlg+set}" = set; then
5068 enableval="$enable_dirdlg"
5069
5070 if test "$enableval" = yes; then
5071 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5072 else
5073 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5074 fi
5075
5076else
5077
5078 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5079 if test "x$LINE" != x ; then
5080 eval "DEFAULT_$LINE"
5081 else
5082 no_cache=1
5083 fi
5084
5085 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5086
5087fi
5088
5089
5090 eval "$ac_cv_use_dirdlg"
5091 if test "$no_cache" != 1; then
5092 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5093 fi
5094
5095 if test "$wxUSE_DIRDLG" = yes; then
5096 echo "$ac_t""yes" 1>&6
5097 else
5098 echo "$ac_t""no" 1>&6
5099 fi
5100
5101
5102 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
4882bf1b 5103echo "configure:5104: checking "for --enable-textdlg"" >&5
a16d3c04
KB
5104 no_cache=0
5105 # Check whether --enable-textdlg or --disable-textdlg was given.
5106if test "${enable_textdlg+set}" = set; then
5107 enableval="$enable_textdlg"
5108
5109 if test "$enableval" = yes; then
5110 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5111 else
5112 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5113 fi
5114
5115else
5116
5117 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5118 if test "x$LINE" != x ; then
5119 eval "DEFAULT_$LINE"
5120 else
5121 no_cache=1
5122 fi
5123
5124 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5125
5126fi
5127
5128
5129 eval "$ac_cv_use_textdlg"
5130 if test "$no_cache" != 1; then
5131 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5132 fi
5133
5134 if test "$wxUSE_TEXTDLG" = yes; then
5135 echo "$ac_t""yes" 1>&6
5136 else
5137 echo "$ac_t""no" 1>&6
5138 fi
5139
5140
5141 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
4882bf1b 5142echo "configure:5143: checking "for --enable-tipdlg"" >&5
a16d3c04
KB
5143 no_cache=0
5144 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5145if test "${enable_tipdlg+set}" = set; then
5146 enableval="$enable_tipdlg"
5147
5148 if test "$enableval" = yes; then
5149 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5150 else
5151 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5152 fi
5153
5154else
5155
5156 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5157 if test "x$LINE" != x ; then
5158 eval "DEFAULT_$LINE"
5159 else
5160 no_cache=1
5161 fi
5162
5163 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5164
5165fi
5166
5167
5168 eval "$ac_cv_use_tipdlg"
5169 if test "$no_cache" != 1; then
5170 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5171 fi
5172
5173 if test "$wxUSE_STARTUP_TIPS" = yes; then
5174 echo "$ac_t""yes" 1>&6
5175 else
5176 echo "$ac_t""no" 1>&6
5177 fi
5178
5179
5180 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
4882bf1b 5181echo "configure:5182: checking "for --enable-progressdlg"" >&5
a16d3c04
KB
5182 no_cache=0
5183 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5184if test "${enable_progressdlg+set}" = set; then
5185 enableval="$enable_progressdlg"
5186
5187 if test "$enableval" = yes; then
5188 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5189 else
5190 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5191 fi
5192
5193else
5194
5195 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5196 if test "x$LINE" != x ; then
5197 eval "DEFAULT_$LINE"
5198 else
5199 no_cache=1
5200 fi
5201
5202 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5203
5204fi
5205
5206
5207 eval "$ac_cv_use_progressdlg"
5208 if test "$no_cache" != 1; then
5209 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5210 fi
5211
5212 if test "$wxUSE_PROGRESSDLG" = yes; then
5213 echo "$ac_t""yes" 1>&6
5214 else
5215 echo "$ac_t""no" 1>&6
5216 fi
5217
5218
5219 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
4882bf1b 5220echo "configure:5221: checking "for --enable-miniframe"" >&5
a16d3c04
KB
5221 no_cache=0
5222 # Check whether --enable-miniframe or --disable-miniframe was given.
5223if test "${enable_miniframe+set}" = set; then
5224 enableval="$enable_miniframe"
5225
5226 if test "$enableval" = yes; then
5227 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5228 else
5229 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5230 fi
5231
5232else
5233
5234 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5235 if test "x$LINE" != x ; then
5236 eval "DEFAULT_$LINE"
5237 else
5238 no_cache=1
5239 fi
5240
5241 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5242
5243fi
5244
5245
5246 eval "$ac_cv_use_miniframe"
5247 if test "$no_cache" != 1; then
5248 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5249 fi
5250
5251 if test "$wxUSE_MINIFRAME" = yes; then
5252 echo "$ac_t""yes" 1>&6
5253 else
5254 echo "$ac_t""no" 1>&6
5255 fi
5256
5257
5258 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
4882bf1b 5259echo "configure:5260: checking "for --enable-html"" >&5
a16d3c04
KB
5260 no_cache=0
5261 # Check whether --enable-html or --disable-html was given.
5262if test "${enable_html+set}" = set; then
5263 enableval="$enable_html"
5264
5265 if test "$enableval" = yes; then
5266 ac_cv_use_html='wxUSE_HTML=yes'
5267 else
5268 ac_cv_use_html='wxUSE_HTML=no'
5269 fi
5270
5271else
5272
5273 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5274 if test "x$LINE" != x ; then
5275 eval "DEFAULT_$LINE"
5276 else
5277 no_cache=1
5278 fi
5279
5280 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5281
5282fi
5283
5284
5285 eval "$ac_cv_use_html"
5286 if test "$no_cache" != 1; then
5287 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5288 fi
5289
5290 if test "$wxUSE_HTML" = yes; then
5291 echo "$ac_t""yes" 1>&6
5292 else
5293 echo "$ac_t""no" 1>&6
5294 fi
5295
5296
5297 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
4882bf1b 5298echo "configure:5299: checking "for --enable-tooltips"" >&5
a16d3c04
KB
5299 no_cache=0
5300 # Check whether --enable-tooltips or --disable-tooltips was given.
5301if test "${enable_tooltips+set}" = set; then
5302 enableval="$enable_tooltips"
5303
5304 if test "$enableval" = yes; then
5305 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5306 else
5307 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5308 fi
5309
5310else
5311
5312 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5313 if test "x$LINE" != x ; then
5314 eval "DEFAULT_$LINE"
5315 else
5316 no_cache=1
5317 fi
5318
5319 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5320
5321fi
5322
5323
5324 eval "$ac_cv_use_tooltips"
5325 if test "$no_cache" != 1; then
5326 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5327 fi
5328
5329 if test "$wxUSE_TOOLTIPS" = yes; then
5330 echo "$ac_t""yes" 1>&6
5331 else
5332 echo "$ac_t""no" 1>&6
5333 fi
5334
5335
5336 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
4882bf1b 5337echo "configure:5338: checking "for --enable-splines"" >&5
a16d3c04
KB
5338 no_cache=0
5339 # Check whether --enable-splines or --disable-splines was given.
5340if test "${enable_splines+set}" = set; then
5341 enableval="$enable_splines"
5342
5343 if test "$enableval" = yes; then
5344 ac_cv_use_splines='wxUSE_SPLINES=yes'
5345 else
5346 ac_cv_use_splines='wxUSE_SPLINES=no'
5347 fi
5348
5349else
5350
5351 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5352 if test "x$LINE" != x ; then
5353 eval "DEFAULT_$LINE"
5354 else
5355 no_cache=1
5356 fi
5357
5358 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5359
5360fi
5361
5362
5363 eval "$ac_cv_use_splines"
5364 if test "$no_cache" != 1; then
5365 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5366 fi
5367
5368 if test "$wxUSE_SPLINES" = yes; then
5369 echo "$ac_t""yes" 1>&6
5370 else
5371 echo "$ac_t""no" 1>&6
5372 fi
5373
5374
5375 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
4882bf1b 5376echo "configure:5377: checking "for --enable-validators"" >&5
a16d3c04
KB
5377 no_cache=0
5378 # Check whether --enable-validators or --disable-validators was given.
5379if test "${enable_validators+set}" = set; then
5380 enableval="$enable_validators"
5381
5382 if test "$enableval" = yes; then
5383 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5384 else
5385 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5386 fi
5387
5388else
5389
5390 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5391 if test "x$LINE" != x ; then
5392 eval "DEFAULT_$LINE"
5393 else
5394 no_cache=1
5395 fi
5396
5397 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5398
5399fi
5400
5401
5402 eval "$ac_cv_use_validators"
5403 if test "$no_cache" != 1; then
5404 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5405 fi
5406
5407 if test "$wxUSE_VALIDATORS" = yes; then
5408 echo "$ac_t""yes" 1>&6
5409 else
5410 echo "$ac_t""no" 1>&6
5411 fi
5412
5413
5414 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
4882bf1b 5415echo "configure:5416: checking "for --enable-busyinfo"" >&5
a16d3c04
KB
5416 no_cache=0
5417 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5418if test "${enable_busyinfo+set}" = set; then
5419 enableval="$enable_busyinfo"
5420
5421 if test "$enableval" = yes; then
5422 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5423 else
5424 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5425 fi
5426
5427else
5428
5429 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5430 if test "x$LINE" != x ; then
5431 eval "DEFAULT_$LINE"
5432 else
5433 no_cache=1
5434 fi
5435
5436 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5437
5438fi
5439
5440
5441 eval "$ac_cv_use_busyinfo"
5442 if test "$no_cache" != 1; then
5443 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5444 fi
5445
5446 if test "$wxUSE_BUSYINFO" = yes; then
5447 echo "$ac_t""yes" 1>&6
5448 else
5449 echo "$ac_t""no" 1>&6
5450 fi
5451
5452
5453
1c8515f9
KB
5454
5455 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
4882bf1b 5456echo "configure:5457: checking "for --enable-gif"" >&5
1c8515f9
KB
5457 no_cache=0
5458 # Check whether --enable-gif or --disable-gif was given.
5459if test "${enable_gif+set}" = set; then
5460 enableval="$enable_gif"
5461
5462 if test "$enableval" = yes; then
5463 ac_cv_use_gif='wxUSE_GIF=yes'
5464 else
5465 ac_cv_use_gif='wxUSE_GIF=no'
5466 fi
5467
5468else
5469
5470 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5471 if test "x$LINE" != x ; then
5472 eval "DEFAULT_$LINE"
5473 else
5474 no_cache=1
5475 fi
5476
5477 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5478
5479fi
5480
5481
5482 eval "$ac_cv_use_gif"
5483 if test "$no_cache" != 1; then
5484 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5485 fi
5486
5487 if test "$wxUSE_GIF" = yes; then
5488 echo "$ac_t""yes" 1>&6
5489 else
5490 echo "$ac_t""no" 1>&6
5491 fi
5492
5493
5494 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
4882bf1b 5495echo "configure:5496: checking "for --enable-pcx"" >&5
1c8515f9
KB
5496 no_cache=0
5497 # Check whether --enable-pcx or --disable-pcx was given.
5498if test "${enable_pcx+set}" = set; then
5499 enableval="$enable_pcx"
5500
5501 if test "$enableval" = yes; then
5502 ac_cv_use_pcx='wxUSE_PCX=yes'
5503 else
5504 ac_cv_use_pcx='wxUSE_PCX=no'
5505 fi
5506
5507else
5508
5509 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5510 if test "x$LINE" != x ; then
5511 eval "DEFAULT_$LINE"
5512 else
5513 no_cache=1
5514 fi
5515
5516 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5517
5518fi
5519
5520
5521 eval "$ac_cv_use_pcx"
5522 if test "$no_cache" != 1; then
5523 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5524 fi
5525
5526 if test "$wxUSE_PCX" = yes; then
5527 echo "$ac_t""yes" 1>&6
5528 else
5529 echo "$ac_t""no" 1>&6
5530 fi
5531
5532
5533 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
4882bf1b 5534echo "configure:5535: checking "for --enable-pnm"" >&5
1c8515f9
KB
5535 no_cache=0
5536 # Check whether --enable-pnm or --disable-pnm was given.
5537if test "${enable_pnm+set}" = set; then
5538 enableval="$enable_pnm"
5539
5540 if test "$enableval" = yes; then
5541 ac_cv_use_pnm='wxUSE_PNM=yes'
5542 else
5543 ac_cv_use_pnm='wxUSE_PNM=no'
5544 fi
5545
5546else
5547
5548 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5549 if test "x$LINE" != x ; then
5550 eval "DEFAULT_$LINE"
5551 else
5552 no_cache=1
5553 fi
5554
5555 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5556
5557fi
5558
5559
5560 eval "$ac_cv_use_pnm"
5561 if test "$no_cache" != 1; then
5562 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5563 fi
5564
5565 if test "$wxUSE_PNM" = yes; then
5566 echo "$ac_t""yes" 1>&6
5567 else
5568 echo "$ac_t""no" 1>&6
5569 fi
5570
5571
5572
a16d3c04
KB
5573 echo "saving argument cache $wx_arg_cache_file"
5574 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5575
5576
5577
5578echo $ac_n "checking for toolkit""... $ac_c" 1>&6
4882bf1b 5579echo "configure:5580: checking for toolkit" >&5
f7a11f8c
RR
5580
5581if test "$wxUSE_GUI" = "yes"; then
a16d3c04
KB
5582
5583if test "$TOOLKIT_GIVEN" = 1; then
5584 for toolkit in `echo $ALL_TOOLKITS`; do
5585 var=wxUSE_$toolkit
5586 eval "value=\$${var}"
5587 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5588 done
5589else
5590 for toolkit in `echo $ALL_TOOLKITS`; do
5591 if test "$has_toolkit_in_cache" != 1; then
5592 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5593 else
5594 var=DEFAULT_wxUSE_$toolkit
5595 fi
5596 eval "wxUSE_$toolkit=\$${var}"
5597 done
5598fi
5599
5600NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
5601
5602case "$NUM_TOOLKITS" in
5603 1)
5604 ;;
5605 0)
5606 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5607 ;;
5608 *)
5609 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5610esac
5611
5612for toolkit in `echo $ALL_TOOLKITS`; do
5613 var=wxUSE_$toolkit
5614 eval "value=\$${var}"
5615 if test "x$value" != x; then
5616 cache_var=CACHE_$toolkit
5617 eval "cache=\$${cache_var}"
5618 if test "$cache" = 1; then
5619 echo "$var=$value" >> ${wx_arg_cache_file}
5620 fi
5621 if test "$value" = 1; then
5622 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5623 fi
5624 fi
5625done
5626
f7a11f8c
RR
5627else
5628 echo "$ac_t""base only" 1>&6
5629fi
5630
a16d3c04
KB
5631
5632cat > confcache <<\EOF
5633# This file is a shell script that caches the results of configure
5634# tests run on this system so they can be shared between configure
5635# scripts and configure runs. It is not useful on other systems.
5636# If it contains results you don't want to keep, you may remove or edit it.
5637#
5638# By default, configure uses ./config.cache as the cache file,
5639# creating it if it does not exist already. You can give configure
5640# the --cache-file=FILE option to use a different cache file; that is
5641# what configure does when it calls configure scripts in
5642# subdirectories, so they share the cache.
5643# Giving --cache-file=/dev/null disables caching, for debugging configure.
5644# config.status only pays attention to the cache file if you give it the
5645# --recheck option to rerun configure.
5646#
5647EOF
5648# The following way of writing the cache mishandles newlines in values,
5649# but we know of no workaround that is simple, portable, and efficient.
5650# So, don't put newlines in cache variables' values.
5651# Ultrix sh set writes to stderr and can't be redirected directly,
5652# and sets the high bit in the cache file unless we assign to the vars.
5653(set) 2>&1 |
0709ee62 5654 case `(ac_space=' '; set | grep ac_space) 2>&1` in
a16d3c04
KB
5655 *ac_space=\ *)
5656 # `set' does not quote correctly, so add quotes (double-quote substitution
5657 # turns \\\\ into \\, and sed turns \\ into \).
5658 sed -n \
5659 -e "s/'/'\\\\''/g" \
5660 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5661 ;;
5662 *)
5663 # `set' quotes correctly as required by POSIX, so do not add quotes.
5664 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5665 ;;
5666 esac >> confcache
5667if cmp -s $cache_file confcache; then
5668 :
5669else
5670 if test -w $cache_file; then
5671 echo "updating cache $cache_file"
5672 cat confcache > $cache_file
5673 else
5674 echo "not updating unwritable cache $cache_file"
5675 fi
5676fi
5677rm -f confcache
5678
5679
5680if eval "test $host != $build"; then
5681 if eval "test $host_alias != NONE"; then
1c8515f9
KB
5682 CC=$host_alias-gcc
5683 CXX=$host_alias-c++
a16d3c04
KB
5684 AR=$host_alias-ar
5685 RANLIB=$host_alias-ranlib
1c8515f9
KB
5686 DLLTOOL=$host_alias-dlltool
5687 LD=$host_alias-ld
a16d3c04
KB
5688 NM=$host_alias-nm
5689 STRIP=$host_alias-strip
5690 fi
5691fi
5692
5693# Extract the first word of "gcc", so it can be a program name with args.
5694set dummy gcc; ac_word=$2
5695echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4882bf1b 5696echo "configure:5697: checking for $ac_word" >&5
a16d3c04
KB
5697if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5698 echo $ac_n "(cached) $ac_c" 1>&6
5699else
5700 if test -n "$CC"; then
5701 ac_cv_prog_CC="$CC" # Let the user override the test.
5702else
0709ee62
VZ
5703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5704 ac_dummy="$PATH"
5705 for ac_dir in $ac_dummy; do
a16d3c04
KB
5706 test -z "$ac_dir" && ac_dir=.
5707 if test -f $ac_dir/$ac_word; then
5708 ac_cv_prog_CC="gcc"
5709 break
5710 fi
5711 done
5712 IFS="$ac_save_ifs"
5713fi
5714fi
5715CC="$ac_cv_prog_CC"
5716if test -n "$CC"; then
5717 echo "$ac_t""$CC" 1>&6
5718else
5719 echo "$ac_t""no" 1>&6
5720fi
5721
5722if test -z "$CC"; then
5723 # Extract the first word of "cc", so it can be a program name with args.
5724set dummy cc; ac_word=$2
5725echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4882bf1b 5726echo "configure:5727: checking for $ac_word" >&5
a16d3c04
KB
5727if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5728 echo $ac_n "(cached) $ac_c" 1>&6
5729else
5730 if test -n "$CC"; then
5731 ac_cv_prog_CC="$CC" # Let the user override the test.
5732else
0709ee62 5733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
a16d3c04 5734 ac_prog_rejected=no
0709ee62
VZ
5735 ac_dummy="$PATH"
5736 for ac_dir in $ac_dummy; do
a16d3c04
KB
5737 test -z "$ac_dir" && ac_dir=.
5738 if test -f $ac_dir/$ac_word; then
5739 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
5740 ac_prog_rejected=yes
5741 continue
5742 fi
5743 ac_cv_prog_CC="cc"
5744 break
5745 fi
5746 done
5747 IFS="$ac_save_ifs"
5748if test $ac_prog_rejected = yes; then
5749 # We found a bogon in the path, so make sure we never use it.
5750 set dummy $ac_cv_prog_CC
5751 shift
5752 if test $# -gt 0; then
5753 # We chose a different compiler from the bogus one.
5754 # However, it has the same basename, so the bogon will be chosen
5755 # first if we set CC to just the basename; use the full file name.
5756 shift
5757 set dummy "$ac_dir/$ac_word" "$@"
5758 shift
5759 ac_cv_prog_CC="$@"
5760 fi
5761fi
5762fi
5763fi
5764CC="$ac_cv_prog_CC"
5765if test -n "$CC"; then
5766 echo "$ac_t""$CC" 1>&6
5767else
5768 echo "$ac_t""no" 1>&6
5769fi
5770
0709ee62
VZ
5771 if test -z "$CC"; then
5772 case "`uname -s`" in
5773 *win32* | *WIN32*)
5774 # Extract the first word of "cl", so it can be a program name with args.
5775set dummy cl; ac_word=$2
5776echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4882bf1b 5777echo "configure:5778: checking for $ac_word" >&5
0709ee62
VZ
5778if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5779 echo $ac_n "(cached) $ac_c" 1>&6
5780else
5781 if test -n "$CC"; then
5782 ac_cv_prog_CC="$CC" # Let the user override the test.
5783else
5784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5785 ac_dummy="$PATH"
5786 for ac_dir in $ac_dummy; do
5787 test -z "$ac_dir" && ac_dir=.
5788 if test -f $ac_dir/$ac_word; then
5789 ac_cv_prog_CC="cl"
5790 break
5791 fi
5792 done
5793 IFS="$ac_save_ifs"
5794fi
5795fi
5796CC="$ac_cv_prog_CC"
5797if test -n "$CC"; then
5798 echo "$ac_t""$CC" 1>&6
5799else
5800 echo "$ac_t""no" 1>&6
5801fi
5802 ;;
5803 esac
5804 fi
a16d3c04
KB
5805 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5806fi
5807
5808echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
4882bf1b 5809echo "configure:5810: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
a16d3c04
KB
5810
5811ac_ext=c
5812# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5813ac_cpp='$CPP $CPPFLAGS'
5814ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
0709ee62 5815ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
5816cross_compiling=$ac_cv_prog_cc_cross
5817
0709ee62
VZ
5818cat > conftest.$ac_ext << EOF
5819
4882bf1b 5820#line 5821 "configure"
a16d3c04 5821#include "confdefs.h"
0709ee62 5822
a16d3c04
KB
5823main(){return(0);}
5824EOF
4882bf1b 5825if { (eval echo configure:5826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
5826 ac_cv_prog_cc_works=yes
5827 # If we can't run a trivial program, we are probably using a cross compiler.
5828 if (./conftest; exit) 2>/dev/null; then
5829 ac_cv_prog_cc_cross=no
5830 else
5831 ac_cv_prog_cc_cross=yes
5832 fi
5833else
5834 echo "configure: failed program was:" >&5
5835 cat conftest.$ac_ext >&5
5836 ac_cv_prog_cc_works=no
5837fi
5838rm -fr conftest*
0709ee62
VZ
5839ac_ext=c
5840# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5841ac_cpp='$CPP $CPPFLAGS'
5842ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5843ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5844cross_compiling=$ac_cv_prog_cc_cross
a16d3c04
KB
5845
5846echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
5847if test $ac_cv_prog_cc_works = no; then
5848 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
5849fi
5850echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
4882bf1b 5851echo "configure:5852: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
a16d3c04
KB
5852echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
5853cross_compiling=$ac_cv_prog_cc_cross
5854
5855echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
4882bf1b 5856echo "configure:5857: checking whether we are using GNU C" >&5
a16d3c04
KB
5857if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
5858 echo $ac_n "(cached) $ac_c" 1>&6
5859else
5860 cat > conftest.c <<EOF
5861#ifdef __GNUC__
5862 yes;
5863#endif
5864EOF
4882bf1b 5865if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:5866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a16d3c04
KB
5866 ac_cv_prog_gcc=yes
5867else
5868 ac_cv_prog_gcc=no
5869fi
5870fi
5871
5872echo "$ac_t""$ac_cv_prog_gcc" 1>&6
5873
5874if test $ac_cv_prog_gcc = yes; then
5875 GCC=yes
0709ee62
VZ
5876else
5877 GCC=
5878fi
5879
5880ac_test_CFLAGS="${CFLAGS+set}"
5881ac_save_CFLAGS="$CFLAGS"
5882CFLAGS=
5883echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
4882bf1b 5884echo "configure:5885: checking whether ${CC-cc} accepts -g" >&5
a16d3c04
KB
5885if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
5886 echo $ac_n "(cached) $ac_c" 1>&6
5887else
5888 echo 'void f(){}' > conftest.c
5889if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
5890 ac_cv_prog_cc_g=yes
5891else
5892 ac_cv_prog_cc_g=no
5893fi
5894rm -f conftest*
5895
5896fi
5897
5898echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
0709ee62
VZ
5899if test "$ac_test_CFLAGS" = set; then
5900 CFLAGS="$ac_save_CFLAGS"
5901elif test $ac_cv_prog_cc_g = yes; then
5902 if test "$GCC" = yes; then
a16d3c04
KB
5903 CFLAGS="-g -O2"
5904 else
0709ee62 5905 CFLAGS="-g"
fa3e4baf 5906 fi
2726c66d 5907else
0709ee62
VZ
5908 if test "$GCC" = yes; then
5909 CFLAGS="-O2"
5910 else
5911 CFLAGS=
5912 fi
a16d3c04
KB
5913fi
5914
5915
5916CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
5917
5918echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
4882bf1b 5919echo "configure:5920: checking how to run the C preprocessor" >&5
a16d3c04
KB
5920# On Suns, sometimes $CPP names a directory.
5921if test -n "$CPP" && test -d "$CPP"; then
5922 CPP=
5923fi
5924if test -z "$CPP"; then
5925if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
5926 echo $ac_n "(cached) $ac_c" 1>&6
5927else
5928 # This must be in double quotes, not single quotes, because CPP may get
5929 # substituted into the Makefile and "${CC-cc}" will confuse make.
5930 CPP="${CC-cc} -E"
5931 # On the NeXT, cc -E runs the code through the compiler's parser,
5932 # not just through cpp.
5933 cat > conftest.$ac_ext <<EOF
4882bf1b 5934#line 5935 "configure"
a16d3c04
KB
5935#include "confdefs.h"
5936#include <assert.h>
5937Syntax Error
5938EOF
5939ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4882bf1b 5940{ (eval echo configure:5941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0709ee62 5941ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
5942if test -z "$ac_err"; then
5943 :
5944else
5945 echo "$ac_err" >&5
5946 echo "configure: failed program was:" >&5
5947 cat conftest.$ac_ext >&5
5948 rm -rf conftest*
5949 CPP="${CC-cc} -E -traditional-cpp"
5950 cat > conftest.$ac_ext <<EOF
4882bf1b 5951#line 5952 "configure"
fa3e4baf
KB
5952#include "confdefs.h"
5953#include <assert.h>
5954Syntax Error
5955EOF
5956ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4882bf1b 5957{ (eval echo configure:5958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0709ee62
VZ
5958ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5959if test -z "$ac_err"; then
5960 :
5961else
5962 echo "$ac_err" >&5
5963 echo "configure: failed program was:" >&5
5964 cat conftest.$ac_ext >&5
5965 rm -rf conftest*
5966 CPP="${CC-cc} -nologo -E"
5967 cat > conftest.$ac_ext <<EOF
4882bf1b 5968#line 5969 "configure"
0709ee62
VZ
5969#include "confdefs.h"
5970#include <assert.h>
5971Syntax Error
5972EOF
5973ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4882bf1b 5974{ (eval echo configure:5975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0709ee62 5975ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
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=/lib/cpp
5984fi
5985rm -f conftest*
5986fi
0709ee62
VZ
5987rm -f conftest*
5988fi
a16d3c04
KB
5989rm -f conftest*
5990 ac_cv_prog_CPP="$CPP"
5991fi
5992 CPP="$ac_cv_prog_CPP"
5993else
5994 ac_cv_prog_CPP="$CPP"
5995fi
5996echo "$ac_t""$CPP" 1>&6
5997
5998
5999if test $ac_cv_prog_gcc = yes; then
6000 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
4882bf1b 6001echo "configure:6002: checking whether ${CC-cc} needs -traditional" >&5
a16d3c04
KB
6002if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6003 echo $ac_n "(cached) $ac_c" 1>&6
6004else
6005 ac_pattern="Autoconf.*'x'"
6006 cat > conftest.$ac_ext <<EOF
4882bf1b 6007#line 6008 "configure"
a16d3c04
KB
6008#include "confdefs.h"
6009#include <sgtty.h>
6010Autoconf TIOCGETP
6011EOF
6012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6013 egrep "$ac_pattern" >/dev/null 2>&1; then
6014 rm -rf conftest*
6015 ac_cv_prog_gcc_traditional=yes
6016else
6017 rm -rf conftest*
6018 ac_cv_prog_gcc_traditional=no
6019fi
6020rm -f conftest*
6021
6022
6023 if test $ac_cv_prog_gcc_traditional = no; then
6024 cat > conftest.$ac_ext <<EOF
4882bf1b 6025#line 6026 "configure"
a16d3c04
KB
6026#include "confdefs.h"
6027#include <termio.h>
6028Autoconf TCGETA
6029EOF
6030if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6031 egrep "$ac_pattern" >/dev/null 2>&1; then
6032 rm -rf conftest*
6033 ac_cv_prog_gcc_traditional=yes
6034fi
6035rm -f conftest*
6036
6037 fi
6038fi
6039
6040echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6041 if test $ac_cv_prog_gcc_traditional = yes; then
6042 CC="$CC -traditional"
6043 fi
6044fi
6045
6046
6047
6048ac_ext=C
6049# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6050ac_cpp='$CXXCPP $CPPFLAGS'
6051ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
0709ee62 6052ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
6053cross_compiling=$ac_cv_prog_cxx_cross
6054
6055
0709ee62 6056for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
a16d3c04
KB
6057do
6058# Extract the first word of "$ac_prog", so it can be a program name with args.
6059set dummy $ac_prog; ac_word=$2
6060echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4882bf1b 6061echo "configure:6062: checking for $ac_word" >&5
a16d3c04
KB
6062if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6063 echo $ac_n "(cached) $ac_c" 1>&6
6064else
6065 if test -n "$CXX"; then
6066 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6067else
0709ee62
VZ
6068 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6069 ac_dummy="$PATH"
6070 for ac_dir in $ac_dummy; do
a16d3c04
KB
6071 test -z "$ac_dir" && ac_dir=.
6072 if test -f $ac_dir/$ac_word; then
6073 ac_cv_prog_CXX="$ac_prog"
6074 break
6075 fi
6076 done
6077 IFS="$ac_save_ifs"
6078fi
6079fi
6080CXX="$ac_cv_prog_CXX"
6081if test -n "$CXX"; then
6082 echo "$ac_t""$CXX" 1>&6
6083else
6084 echo "$ac_t""no" 1>&6
6085fi
6086
6087test -n "$CXX" && break
6088done
6089test -n "$CXX" || CXX="gcc"
6090
6091
6092echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
4882bf1b 6093echo "configure:6094: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
a16d3c04
KB
6094
6095ac_ext=C
6096# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6097ac_cpp='$CXXCPP $CPPFLAGS'
6098ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
0709ee62 6099ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
6100cross_compiling=$ac_cv_prog_cxx_cross
6101
0709ee62
VZ
6102cat > conftest.$ac_ext << EOF
6103
4882bf1b 6104#line 6105 "configure"
a16d3c04 6105#include "confdefs.h"
0709ee62
VZ
6106
6107int main(){return(0);}
a16d3c04 6108EOF
4882bf1b 6109if { (eval echo configure:6110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
6110 ac_cv_prog_cxx_works=yes
6111 # If we can't run a trivial program, we are probably using a cross compiler.
6112 if (./conftest; exit) 2>/dev/null; then
6113 ac_cv_prog_cxx_cross=no
6114 else
6115 ac_cv_prog_cxx_cross=yes
6116 fi
6117else
6118 echo "configure: failed program was:" >&5
6119 cat conftest.$ac_ext >&5
6120 ac_cv_prog_cxx_works=no
6121fi
6122rm -fr conftest*
0709ee62
VZ
6123ac_ext=C
6124# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6125ac_cpp='$CXXCPP $CPPFLAGS'
6126ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6127ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6128cross_compiling=$ac_cv_prog_cxx_cross
a16d3c04
KB
6129
6130echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6131if test $ac_cv_prog_cxx_works = no; then
6132 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6133fi
6134echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
4882bf1b 6135echo "configure:6136: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
a16d3c04
KB
6136echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6137cross_compiling=$ac_cv_prog_cxx_cross
6138
6139echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
4882bf1b 6140echo "configure:6141: checking whether we are using GNU C++" >&5
a16d3c04
KB
6141if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6142 echo $ac_n "(cached) $ac_c" 1>&6
6143else
6144 cat > conftest.C <<EOF
6145#ifdef __GNUC__
6146 yes;
6147#endif
6148EOF
4882bf1b 6149if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a16d3c04
KB
6150 ac_cv_prog_gxx=yes
6151else
6152 ac_cv_prog_gxx=no
6153fi
6154fi
6155
6156echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6157
6158if test $ac_cv_prog_gxx = yes; then
6159 GXX=yes
0709ee62
VZ
6160else
6161 GXX=
6162fi
6163
6164ac_test_CXXFLAGS="${CXXFLAGS+set}"
6165ac_save_CXXFLAGS="$CXXFLAGS"
6166CXXFLAGS=
6167echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
4882bf1b 6168echo "configure:6169: checking whether ${CXX-g++} accepts -g" >&5
a16d3c04
KB
6169if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6170 echo $ac_n "(cached) $ac_c" 1>&6
6171else
6172 echo 'void f(){}' > conftest.cc
6173if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6174 ac_cv_prog_cxx_g=yes
6175else
6176 ac_cv_prog_cxx_g=no
6177fi
6178rm -f conftest*
6179
6180fi
6181
6182echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
0709ee62
VZ
6183if test "$ac_test_CXXFLAGS" = set; then
6184 CXXFLAGS="$ac_save_CXXFLAGS"
6185elif test $ac_cv_prog_cxx_g = yes; then
6186 if test "$GXX" = yes; then
a16d3c04
KB
6187 CXXFLAGS="-g -O2"
6188 else
0709ee62 6189 CXXFLAGS="-g"
fa3e4baf 6190 fi
2726c66d 6191else
0709ee62
VZ
6192 if test "$GXX" = yes; then
6193 CXXFLAGS="-O2"
6194 else
6195 CXXFLAGS=
6196 fi
a16d3c04
KB
6197fi
6198
6199
6200echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
4882bf1b 6201echo "configure:6202: checking how to run the C++ preprocessor" >&5
a16d3c04
KB
6202if test -z "$CXXCPP"; then
6203if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6204 echo $ac_n "(cached) $ac_c" 1>&6
6205else
6206 ac_ext=C
6207# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6208ac_cpp='$CXXCPP $CPPFLAGS'
6209ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
0709ee62 6210ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
6211cross_compiling=$ac_cv_prog_cxx_cross
6212 CXXCPP="${CXX-g++} -E"
6213 cat > conftest.$ac_ext <<EOF
4882bf1b 6214#line 6215 "configure"
a16d3c04
KB
6215#include "confdefs.h"
6216#include <stdlib.h>
6217EOF
6218ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4882bf1b 6219{ (eval echo configure:6220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0709ee62 6220ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
6221if test -z "$ac_err"; then
6222 :
6223else
6224 echo "$ac_err" >&5
6225 echo "configure: failed program was:" >&5
6226 cat conftest.$ac_ext >&5
6227 rm -rf conftest*
6228 CXXCPP=/lib/cpp
6229fi
6230rm -f conftest*
6231 ac_cv_prog_CXXCPP="$CXXCPP"
0709ee62
VZ
6232ac_ext=C
6233# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6234ac_cpp='$CXXCPP $CPPFLAGS'
6235ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6236ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6237cross_compiling=$ac_cv_prog_cxx_cross
a16d3c04
KB
6238fi
6239fi
6240CXXCPP="$ac_cv_prog_CXXCPP"
6241echo "$ac_t""$CXXCPP" 1>&6
6242
6243
6244CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6245
6246ac_ext=c
6247# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6248ac_cpp='$CPP $CPPFLAGS'
6249ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
0709ee62 6250ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
6251cross_compiling=$ac_cv_prog_cc_cross
6252
6253
6254# Extract the first word of "ranlib", so it can be a program name with args.
6255set dummy ranlib; ac_word=$2
6256echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4882bf1b 6257echo "configure:6258: checking for $ac_word" >&5
a16d3c04
KB
6258if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6259 echo $ac_n "(cached) $ac_c" 1>&6
6260else
6261 if test -n "$RANLIB"; then
6262 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6263else
0709ee62
VZ
6264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6265 ac_dummy="$PATH"
6266 for ac_dir in $ac_dummy; do
a16d3c04
KB
6267 test -z "$ac_dir" && ac_dir=.
6268 if test -f $ac_dir/$ac_word; then
6269 ac_cv_prog_RANLIB="ranlib"
6270 break
6271 fi
6272 done
6273 IFS="$ac_save_ifs"
6274 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6275fi
6276fi
6277RANLIB="$ac_cv_prog_RANLIB"
6278if test -n "$RANLIB"; then
6279 echo "$ac_t""$RANLIB" 1>&6
6280else
6281 echo "$ac_t""no" 1>&6
6282fi
6283
6284
6285# Extract the first word of "ar", so it can be a program name with args.
6286set dummy ar; ac_word=$2
6287echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4882bf1b 6288echo "configure:6289: checking for $ac_word" >&5
a16d3c04
KB
6289if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6290 echo $ac_n "(cached) $ac_c" 1>&6
6291else
6292 if test -n "$AR"; then
6293 ac_cv_prog_AR="$AR" # Let the user override the test.
6294else
0709ee62
VZ
6295 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6296 ac_dummy="$PATH"
6297 for ac_dir in $ac_dummy; do
a16d3c04
KB
6298 test -z "$ac_dir" && ac_dir=.
6299 if test -f $ac_dir/$ac_word; then
6300 ac_cv_prog_AR="ar"
6301 break
6302 fi
6303 done
6304 IFS="$ac_save_ifs"
6305 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6306fi
6307fi
6308AR="$ac_cv_prog_AR"
6309if test -n "$AR"; then
6310 echo "$ac_t""$AR" 1>&6
6311else
6312 echo "$ac_t""no" 1>&6
6313fi
6314
6315
6316# Find a good install program. We prefer a C program (faster),
6317# so one script is as good as another. But avoid the broken or
6318# incompatible versions:
6319# SysV /etc/install, /usr/sbin/install
6320# SunOS /usr/etc/install
6321# IRIX /sbin/install
6322# AIX /bin/install
0709ee62 6323# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
a16d3c04
KB
6324# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6325# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6326# ./install, which can be erroneously created by make from ./install.sh.
6327echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4882bf1b 6328echo "configure:6329: checking for a BSD compatible install" >&5
a16d3c04
KB
6329if test -z "$INSTALL"; then
6330if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6331 echo $ac_n "(cached) $ac_c" 1>&6
6332else
0709ee62 6333 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
a16d3c04
KB
6334 for ac_dir in $PATH; do
6335 # Account for people who put trailing slashes in PATH elements.
6336 case "$ac_dir/" in
6337 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6338 *)
6339 # OSF1 and SCO ODT 3.0 have their own names for install.
0709ee62
VZ
6340 # Don't use installbsd from OSF since it installs stuff as root
6341 # by default.
6342 for ac_prog in ginstall scoinst install; do
a16d3c04
KB
6343 if test -f $ac_dir/$ac_prog; then
6344 if test $ac_prog = install &&
6345 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6346 # AIX install. It has an incompatible calling convention.
6347 :
6348 else
6349 ac_cv_path_install="$ac_dir/$ac_prog -c"
6350 break 2
6351 fi
6352 fi
6353 done
6354 ;;
6355 esac
6356 done
6357 IFS="$ac_save_IFS"
6358
6359fi
6360 if test "${ac_cv_path_install+set}" = set; then
6361 INSTALL="$ac_cv_path_install"
6362 else
6363 # As a last resort, use the slow shell script. We don't cache a
6364 # path for INSTALL within a source directory, because that will
6365 # break other packages using the cache if that directory is
6366 # removed, or if the path is relative.
6367 INSTALL="$ac_install_sh"
6368 fi
6369fi
6370echo "$ac_t""$INSTALL" 1>&6
6371
6372# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6373# It thinks the first close brace ends the variable substitution.
6374test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6375
0709ee62
VZ
6376test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6377
a16d3c04
KB
6378test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6379
6380
6381# Extract the first word of "strip", so it can be a program name with args.
6382set dummy strip; ac_word=$2
6383echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4882bf1b 6384echo "configure:6385: checking for $ac_word" >&5
a16d3c04
KB
6385if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6386 echo $ac_n "(cached) $ac_c" 1>&6
6387else
6388 if test -n "$STRIP"; then
6389 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6390else
0709ee62
VZ
6391 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6392 ac_dummy="$PATH"
6393 for ac_dir in $ac_dummy; do
a16d3c04
KB
6394 test -z "$ac_dir" && ac_dir=.
6395 if test -f $ac_dir/$ac_word; then
6396 ac_cv_prog_STRIP="strip"
6397 break
6398 fi
6399 done
6400 IFS="$ac_save_ifs"
6401 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6402fi
6403fi
6404STRIP="$ac_cv_prog_STRIP"
6405if test -n "$STRIP"; then
6406 echo "$ac_t""$STRIP" 1>&6
6407else
6408 echo "$ac_t""no" 1>&6
6409fi
6410
6411
6412echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
4882bf1b 6413echo "configure:6414: checking "make for VPATH support"" >&5
a16d3c04
KB
6414cat - << EOF > confMake
6415check : file
6416 cp \$? \$@
6417 cp \$? final_file
6418EOF
6419
6420if test ! -d sub ; then
6421 mkdir sub
6422fi
6423echo dummy > sub/file
6424${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6425RESULT=$?
6426rm -f sub/file check final_file confMake
6427rmdir sub
6428if test "$RESULT" = 0; then
6429 echo "$ac_t""yes" 1>&6
6430else
6431 echo "$ac_t""no" 1>&6
6432 { echo "configure: error: You need a make-utility that is able to use the variable
6433VPATH correctly.
6434If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6435fi
6436
6437for ac_prog in 'bison -y' byacc
6438do
6439# Extract the first word of "$ac_prog", so it can be a program name with args.
6440set dummy $ac_prog; ac_word=$2
6441echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4882bf1b 6442echo "configure:6443: checking for $ac_word" >&5
a16d3c04
KB
6443if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6444 echo $ac_n "(cached) $ac_c" 1>&6
6445else
6446 if test -n "$YACC"; then
6447 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6448else
0709ee62
VZ
6449 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6450 ac_dummy="$PATH"
6451 for ac_dir in $ac_dummy; do
a16d3c04
KB
6452 test -z "$ac_dir" && ac_dir=.
6453 if test -f $ac_dir/$ac_word; then
6454 ac_cv_prog_YACC="$ac_prog"
6455 break
6456 fi
6457 done
6458 IFS="$ac_save_ifs"
6459fi
6460fi
6461YACC="$ac_cv_prog_YACC"
6462if test -n "$YACC"; then
6463 echo "$ac_t""$YACC" 1>&6
6464else
6465 echo "$ac_t""no" 1>&6
6466fi
6467
6468test -n "$YACC" && break
6469done
6470test -n "$YACC" || YACC="yacc"
6471
6472
6473# Extract the first word of "flex", so it can be a program name with args.
6474set dummy flex; ac_word=$2
6475echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4882bf1b 6476echo "configure:6477: checking for $ac_word" >&5
a16d3c04
KB
6477if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6478 echo $ac_n "(cached) $ac_c" 1>&6
6479else
6480 if test -n "$LEX"; then
6481 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6482else
0709ee62
VZ
6483 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6484 ac_dummy="$PATH"
6485 for ac_dir in $ac_dummy; do
a16d3c04
KB
6486 test -z "$ac_dir" && ac_dir=.
6487 if test -f $ac_dir/$ac_word; then
6488 ac_cv_prog_LEX="flex"
6489 break
6490 fi
6491 done
6492 IFS="$ac_save_ifs"
6493 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6494fi
6495fi
6496LEX="$ac_cv_prog_LEX"
6497if test -n "$LEX"; then
6498 echo "$ac_t""$LEX" 1>&6
6499else
6500 echo "$ac_t""no" 1>&6
6501fi
6502
6503if test -z "$LEXLIB"
6504then
6505 case "$LEX" in
6506 flex*) ac_lib=fl ;;
6507 *) ac_lib=l ;;
6508 esac
6509 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
4882bf1b 6510echo "configure:6511: checking for yywrap in -l$ac_lib" >&5
a16d3c04
KB
6511ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6512if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6513 echo $ac_n "(cached) $ac_c" 1>&6
6514else
6515 ac_save_LIBS="$LIBS"
6516LIBS="-l$ac_lib $LIBS"
6517cat > conftest.$ac_ext <<EOF
4882bf1b 6518#line 6519 "configure"
a16d3c04
KB
6519#include "confdefs.h"
6520/* Override any gcc2 internal prototype to avoid an error. */
6521/* We use char because int might match the return type of a gcc2
6522 builtin and then its argument prototype would still apply. */
6523char yywrap();
6524
6525int main() {
6526yywrap()
6527; return 0; }
6528EOF
4882bf1b 6529if { (eval echo configure:6530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
6530 rm -rf conftest*
6531 eval "ac_cv_lib_$ac_lib_var=yes"
6532else
6533 echo "configure: failed program was:" >&5
6534 cat conftest.$ac_ext >&5
6535 rm -rf conftest*
6536 eval "ac_cv_lib_$ac_lib_var=no"
6537fi
6538rm -f conftest*
6539LIBS="$ac_save_LIBS"
6540
6541fi
6542if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6543 echo "$ac_t""yes" 1>&6
6544 LEXLIB="-l$ac_lib"
6545else
6546 echo "$ac_t""no" 1>&6
6547fi
6548
6549fi
6550
6551
6552echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
4882bf1b 6553echo "configure:6554: checking whether ln -s works" >&5
a16d3c04
KB
6554if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6555 echo $ac_n "(cached) $ac_c" 1>&6
6556else
6557 rm -f conftestdata
6558if ln -s X conftestdata 2>/dev/null
6559then
6560 rm -f conftestdata
6561 ac_cv_prog_LN_S="ln -s"
6562else
6563 ac_cv_prog_LN_S=ln
6564fi
6565fi
6566LN_S="$ac_cv_prog_LN_S"
6567if test "$ac_cv_prog_LN_S" = "ln -s"; then
6568 echo "$ac_t""yes" 1>&6
6569else
6570 echo "$ac_t""no" 1>&6
6571fi
6572
6573
6574
6575SEARCH_INCLUDE="\
6576 /usr/Motif-1.2/include \
6577 /usr/Motif-2.1/include \
6578 \
6579 /usr/include/Motif1.2 \
6580 /opt/xpm/include/X11 \
6581 /opt/GBxpm/include/ \
6582 /opt/GBxpm/X11/include/ \
6583 \
6584 /usr/Motif1.2/include \
6585 /usr/dt/include \
6586 /usr/include/Xm \
6587 \
6588 /usr/X11R6/include \
6589 /usr/X11R5/include \
6590 /usr/X11R4/include \
6591 \
6592 /usr/X11R6/lib \
6593 /usr/X11R5/lib \
6594 /usr/X11R4/lib \
6595 \
6596 /usr/include/X11R6 \
6597 /usr/include/X11R5 \
6598 /usr/include/X11R4 \
6599 \
6600 /usr/local/X11R6/include \
6601 /usr/local/X11R5/include \
6602 /usr/local/X11R4/include \
6603 \
6604 /usr/local/include/X11R6 \
6605 /usr/local/include/X11R5 \
6606 /usr/local/include/X11R4 \
6607 \
6608 /usr/X11/include \
6609 /usr/include/X11 \
6610 /usr/local/X11/include \
6611 /usr/local/include/X11 \
6612 \
6613 /usr/X386/include \
6614 /usr/x386/include \
6615 /usr/XFree86/include/X11 \
6616 \
6617 /usr/include \
6618 /usr/local/include \
6619 \
6620 /usr/include/gtk \
6621 /usr/local/include/gtk \
6622 /usr/include/glib \
6623 /usr/local/include/glib \
6624 \
6625 /usr/include/qt \
6626 /usr/local/include/qt \
6627 \
6628 /usr/include/windows \
6629 /usr/include/wine \
6630 /usr/local/include/wine \
6631 \
6632 /usr/unsupported/include \
6633 /usr/athena/include \
6634 /usr/local/x11r5/include \
6635 /usr/lpp/Xamples/include \
6636 \
6637 /usr/openwin/include \
6638 /usr/openwin/share/include \
6639 "
6640
6641SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6642
6643
6644cat > confcache <<\EOF
6645# This file is a shell script that caches the results of configure
6646# tests run on this system so they can be shared between configure
6647# scripts and configure runs. It is not useful on other systems.
6648# If it contains results you don't want to keep, you may remove or edit it.
6649#
6650# By default, configure uses ./config.cache as the cache file,
6651# creating it if it does not exist already. You can give configure
6652# the --cache-file=FILE option to use a different cache file; that is
6653# what configure does when it calls configure scripts in
6654# subdirectories, so they share the cache.
6655# Giving --cache-file=/dev/null disables caching, for debugging configure.
6656# config.status only pays attention to the cache file if you give it the
6657# --recheck option to rerun configure.
6658#
6659EOF
6660# The following way of writing the cache mishandles newlines in values,
6661# but we know of no workaround that is simple, portable, and efficient.
6662# So, don't put newlines in cache variables' values.
6663# Ultrix sh set writes to stderr and can't be redirected directly,
6664# and sets the high bit in the cache file unless we assign to the vars.
6665(set) 2>&1 |
0709ee62 6666 case `(ac_space=' '; set | grep ac_space) 2>&1` in
a16d3c04
KB
6667 *ac_space=\ *)
6668 # `set' does not quote correctly, so add quotes (double-quote substitution
6669 # turns \\\\ into \\, and sed turns \\ into \).
6670 sed -n \
6671 -e "s/'/'\\\\''/g" \
6672 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6673 ;;
6674 *)
6675 # `set' quotes correctly as required by POSIX, so do not add quotes.
6676 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6677 ;;
6678 esac >> confcache
6679if cmp -s $cache_file confcache; then
6680 :
6681else
6682 if test -w $cache_file; then
6683 echo "updating cache $cache_file"
6684 cat confcache > $cache_file
6685 else
6686 echo "not updating unwritable cache $cache_file"
6687 fi
6688fi
6689rm -f confcache
6690
6691
6692
f7a11f8c
RR
6693if test "$wxUSE_GUI" = "yes"; then
6694
a16d3c04
KB
6695TOOLKIT=
6696TOOLKIT_INCLUDE=
6697
6698GUIOBJS=
6699COMMONOBJS=
6700GENERICOBJS=
6701
6702GUI_TK_LIBRARY=
6703GUI_TK_LINK=
6704
6705WXGTK12=
6706
6707WXWINE=
6708
1c8515f9 6709PROGRAM_EXT=
a16d3c04
KB
6710
6711if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
6712 if test "$cross_compiling" = "yes" ; then
f7a11f8c 6713 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
a16d3c04 6714 else
f7a11f8c 6715 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
4882bf1b 6716echo "configure:6717: checking for Windows headers" >&5
f7a11f8c 6717
a16d3c04
KB
6718ac_find_includes=
6719for ac_dir in $SEARCH_INCLUDE;
6720 do
6721 if test -f "$ac_dir/windows.h"; then
6722 ac_find_includes=$ac_dir
6723 break
6724 fi
6725 done
6726
f7a11f8c 6727 if test "$ac_find_includes" != "" ; then
a16d3c04
KB
6728 echo "$ac_t""found $ac_find_includes" 1>&6
6729 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
f7a11f8c 6730 else
a16d3c04
KB
6731 echo "$ac_t""no" 1>&6
6732 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
1c8515f9 6733 fi
a16d3c04 6734 fi
1c8515f9 6735
a16d3c04
KB
6736 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
6737 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
6738
6739 TOOLKIT=MSW
1c8515f9 6740
f7a11f8c
RR
6741 GUIOBJS="\$(MSW_GUIOBJS)"
6742 GUIHEADERS="\$(MSW_HEADERS)"
6743 COMMONOBJS="\$(MSW_COMMONOBJS)"
6744 GENERICOBJS="\$(MSW_GENERICOBJS)"
a16d3c04
KB
6745 UNIXOBJS=
6746 GUIDIST=MSW_DIST
6747 PROGRAM_EXT=.exe
6748fi
6749
6750if test "$wxUSE_GTK" = 1; then
6751
6752 if test x$gtk_config_exec_prefix != x ; then
6753 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6754 if test x${GTK_CONFIG+set} != xset ; then
6755 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6756 fi
6757 fi
6758 if test x$gtk_config_prefix != x ; then
6759 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6760 if test x${GTK_CONFIG+set} != xset ; then
6761 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6762 fi
6763 fi
6764
6765 # Extract the first word of "gtk-config", so it can be a program name with args.
6766set dummy gtk-config; ac_word=$2
6767echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4882bf1b 6768echo "configure:6769: checking for $ac_word" >&5
a16d3c04
KB
6769if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6770 echo $ac_n "(cached) $ac_c" 1>&6
6771else
6772 case "$GTK_CONFIG" in
6773 /*)
6774 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6775 ;;
0709ee62
VZ
6776 ?:/*)
6777 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
a16d3c04 6778 ;;
a16d3c04 6779 *)
0709ee62
VZ
6780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6781 ac_dummy="$PATH"
6782 for ac_dir in $ac_dummy; do
a16d3c04
KB
6783 test -z "$ac_dir" && ac_dir=.
6784 if test -f $ac_dir/$ac_word; then
6785 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6786 break
6787 fi
6788 done
6789 IFS="$ac_save_ifs"
6790 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6791 ;;
6792esac
6793fi
6794GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6795if test -n "$GTK_CONFIG"; then
6796 echo "$ac_t""$GTK_CONFIG" 1>&6
6797else
6798 echo "$ac_t""no" 1>&6
6799fi
6800
0709ee62 6801 min_gtk_version=1.2.1
a16d3c04 6802 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
4882bf1b 6803echo "configure:6804: checking for GTK - version >= $min_gtk_version" >&5
a16d3c04
KB
6804 no_gtk=""
6805 if test "$GTK_CONFIG" != "no" ; then
6806 GTK_CFLAGS=`$GTK_CONFIG --cflags`
6807 GTK_LIBS=`$GTK_CONFIG --libs`
6808 ac_save_CFLAGS="$CFLAGS"
6809 ac_save_LIBS="$LIBS"
6810 CFLAGS="$CFLAGS $GTK_CFLAGS"
6811 LIBS="$LIBS $GTK_LIBS"
6812 if test "$cross_compiling" = yes; then
6813 echo $ac_n "cross compiling; assumed OK... $ac_c"
6814else
6815 cat > conftest.$ac_ext <<EOF
4882bf1b 6816#line 6817 "configure"
a16d3c04
KB
6817#include "confdefs.h"
6818
6819#include <gtk/gtk.h>
6820#include <stdio.h>
6821
6822int
6823main ()
6824{
6825 int major, minor, micro;
6826
6827 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
6828 printf("%s, bad version string\n", "$min_gtk_version");
6829 exit(1);
6830 }
6831
6832 if (gtk_minor_version == 1) return FALSE;
6833
6834 return !((gtk_major_version > major) ||
f7a11f8c
RR
6835 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6836 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
a16d3c04
KB
6837}
6838
6839EOF
4882bf1b 6840if { (eval echo configure:6841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
6841then
6842 :
6843else
6844 echo "configure: failed program was:" >&5
6845 cat conftest.$ac_ext >&5
6846 rm -fr conftest*
6847 no_gtk=yes
6848fi
6849rm -fr conftest*
6850fi
6851
6852 CFLAGS="$ac_save_CFLAGS"
6853 LIBS="$ac_save_LIBS"
6854 else
6855 no_gtk=yes
6856 fi
6857 if test "x$no_gtk" = x ; then
6858 echo "$ac_t""yes" 1>&6
0709ee62 6859 WXGTK12=1
a16d3c04
KB
6860 else
6861 echo "$ac_t""no" 1>&6
6862 GTK_CFLAGS=""
6863 GTK_LIBS=""
0709ee62 6864 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.1 or above?" 1>&2; exit 1; }
a16d3c04
KB
6865 fi
6866
6867
6868
a16d3c04
KB
6869
6870 TOOLKIT_INCLUDE="$GTK_CFLAGS"
f7a11f8c 6871 GUI_TK_LIBRARY="$GTK_LIBS"
a16d3c04 6872 TOOLKIT=GTK
1c8515f9 6873
f7a11f8c
RR
6874 GUIOBJS="\$(GTK_GUIOBJS)"
6875 GUIHEADERS="\$(GTK_HEADERS)"
6876 COMMONOBJS="\$(GTK_COMMONOBJS)"
6877 GENERICOBJS="\$(GTK_GENERICOBJS)"
6878 GUIDEPS="\$(GTK_GUIDEPS)"
6879 COMMONDEPS="\$(GTK_COMMONDEPS)"
6880 GENERICDEPS="\$(GTK_GENERICDEPS)"
6881 UNIXOBJS="\$(UNIX_OBJS)"
a16d3c04
KB
6882 GUIDIST=GTK_DIST
6883fi
6884
6885if test "$wxUSE_WINE" = 1; then
6886 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
4882bf1b 6887echo "configure:6888: checking for WINE includes" >&5
a16d3c04
KB
6888
6889ac_find_includes=
6890for ac_dir in $SEARCH_INCLUDE;
6891 do
6892 if test -f "$ac_dir/windows.h"; then
6893 ac_find_includes=$ac_dir
6894 break
6895 fi
6896 done
6897
6898 if test "$ac_find_includes" != "" ; then
6899 echo "$ac_t""found $ac_find_includes" 1>&6
6900 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6901 else
6902 echo "$ac_t""no" 1>&6
6903 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6904 fi
6905
6906 XPM_LINK=""
6907 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
4882bf1b 6908echo "configure:6909: checking for Xpm library" >&5
a16d3c04
KB
6909
6910ac_find_libraries=
6911for ac_dir in $SEARCH_LIB;
6912 do
6913 for ac_extension in a so sl; do
6914 if test -f "$ac_dir/libXpm.$ac_extension"; then
6915 ac_find_libraries=$ac_dir
6916 break 2
6917 fi
6918 done
6919 done
6920
6921 if test "$ac_find_libraries" != "" ; then
6922 GUI_TK_LIBRARY="-L$ac_find_libraries"
6923 XPM_LINK="-lXpm"
6924 cat >> confdefs.h <<\EOF
6925#define wxHAVE_LIB_XPM 1
6926EOF
6927
6928 echo "$ac_t""found at $ac_find_libraries" 1>&6
6929 else
6930 echo "$ac_t""no" 1>&6
6931 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
6932 fi
1c8515f9 6933
a16d3c04
KB
6934 MESA_LINK=""
6935 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
4882bf1b 6936echo "configure:6937: checking for Mesa library" >&5
a16d3c04
KB
6937
6938ac_find_libraries=
6939for ac_dir in $SEARCH_LIB;
6940 do
6941 for ac_extension in a so sl; do
6942 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
6943 ac_find_libraries=$ac_dir
6944 break 2
6945 fi
6946 done
6947 done
6948
6949 if test "$ac_find_libraries" != "" ; then
6950 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
6951 MESA_LINK="-lMesaGL"
6952 echo "$ac_t""found at $ac_find_libraries" 1>&6
6953 else
6954 { echo "configure: error: no" 1>&2; exit 1; }
6955 fi
6956
f7a11f8c 6957 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
a16d3c04
KB
6958 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
6959 WXWINE=1
6960 TOOLKIT=MSW
1c8515f9 6961
f7a11f8c
RR
6962 GUIHEADERS="\$(MSW_HEADERS)"
6963 GUIOBJS="\$(MSW_GUIOBJS)"
6964 COMMONOBJS="\$(MSW_COMMONOBJS)"
6965 GENERICOBJS="\$(MSW_GENERICOBJS)"
6966 GUIDEPS="\$(MSW_GUIDEPS)"
6967 COMMONDEPS="\$(MSW_COMMONDEPS)"
6968 GENERICDEPS="\$(MSW_GENERICDEPS)"
6969 UNIXOBJS="\$(UNIX_OBJS)"
a16d3c04
KB
6970 GUIDIST=MSW_DIST
6971fi
6972
6973if test "$wxUSE_MOTIF" = 1; then
6974 # If we find X, set shell vars x_includes and x_libraries to the
6975# paths, otherwise set no_x=yes.
6976# Uses ac_ vars as temps to allow command line to override cache and checks.
6977# --without-x overrides everything else, but does not touch the cache.
6978echo $ac_n "checking for X""... $ac_c" 1>&6
4882bf1b 6979echo "configure:6980: checking for X" >&5
a16d3c04
KB
6980
6981# Check whether --with-x or --without-x was given.
6982if test "${with_x+set}" = set; then
6983 withval="$with_x"
6984 :
6985fi
6986
6987# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6988if test "x$with_x" = xno; then
6989 # The user explicitly disabled X.
6990 have_x=disabled
6991else
6992 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6993 # Both variables are already set.
6994 have_x=yes
6995 else
6996if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6997 echo $ac_n "(cached) $ac_c" 1>&6
6998else
6999 # One or both of the vars are not set, and there is no cached value.
7000ac_x_includes=NO ac_x_libraries=NO
7001rm -fr conftestdir
7002if mkdir conftestdir; then
7003 cd conftestdir
7004 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7005 cat > Imakefile <<'EOF'
7006acfindx:
7007 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7008EOF
7009 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7010 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7011 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7012 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7013 for ac_extension in a so sl; do
7014 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7015 test -f $ac_im_libdir/libX11.$ac_extension; then
7016 ac_im_usrlibdir=$ac_im_libdir; break
7017 fi
7018 done
7019 # Screen out bogus values from the imake configuration. They are
7020 # bogus both because they are the default anyway, and because
7021 # using them would break gcc on systems where it needs fixed includes.
7022 case "$ac_im_incroot" in
7023 /usr/include) ;;
7024 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7025 esac
7026 case "$ac_im_usrlibdir" in
7027 /usr/lib | /lib) ;;
7028 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7029 esac
7030 fi
7031 cd ..
7032 rm -fr conftestdir
7033fi
7034
7035if test "$ac_x_includes" = NO; then
7036 # Guess where to find include files, by looking for this one X11 .h file.
7037 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
7038
7039 # First, try using that file with no special directory specified.
7040cat > conftest.$ac_ext <<EOF
4882bf1b 7041#line 7042 "configure"
a16d3c04
KB
7042#include "confdefs.h"
7043#include <$x_direct_test_include>
7044EOF
7045ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4882bf1b 7046{ (eval echo configure:7047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0709ee62 7047ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
7048if test -z "$ac_err"; then
7049 rm -rf conftest*
7050 # We can compile using X headers with no special include directory.
7051ac_x_includes=
7052else
7053 echo "$ac_err" >&5
7054 echo "configure: failed program was:" >&5
7055 cat conftest.$ac_ext >&5
7056 rm -rf conftest*
7057 # Look for the header file in a standard set of common directories.
7058# Check X11 before X11Rn because it is often a symlink to the current release.
7059 for ac_dir in \
7060 /usr/X11/include \
7061 /usr/X11R6/include \
7062 /usr/X11R5/include \
7063 /usr/X11R4/include \
7064 \
7065 /usr/include/X11 \
7066 /usr/include/X11R6 \
7067 /usr/include/X11R5 \
7068 /usr/include/X11R4 \
7069 \
7070 /usr/local/X11/include \
7071 /usr/local/X11R6/include \
7072 /usr/local/X11R5/include \
7073 /usr/local/X11R4/include \
7074 \
7075 /usr/local/include/X11 \
7076 /usr/local/include/X11R6 \
7077 /usr/local/include/X11R5 \
7078 /usr/local/include/X11R4 \
7079 \
7080 /usr/X386/include \
7081 /usr/x386/include \
7082 /usr/XFree86/include/X11 \
7083 \
7084 /usr/include \
7085 /usr/local/include \
7086 /usr/unsupported/include \
7087 /usr/athena/include \
7088 /usr/local/x11r5/include \
7089 /usr/lpp/Xamples/include \
7090 \
7091 /usr/openwin/include \
7092 /usr/openwin/share/include \
7093 ; \
7094 do
7095 if test -r "$ac_dir/$x_direct_test_include"; then
7096 ac_x_includes=$ac_dir
7097 break
7098 fi
7099 done
7100fi
7101rm -f conftest*
7102fi # $ac_x_includes = NO
7103
7104if test "$ac_x_libraries" = NO; then
7105 # Check for the libraries.
7106
7107 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7108 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
7109
7110 # See if we find them without any special options.
7111 # Don't add to $LIBS permanently.
7112 ac_save_LIBS="$LIBS"
7113 LIBS="-l$x_direct_test_library $LIBS"
7114cat > conftest.$ac_ext <<EOF
4882bf1b 7115#line 7116 "configure"
a16d3c04
KB
7116#include "confdefs.h"
7117
7118int main() {
7119${x_direct_test_function}()
7120; return 0; }
7121EOF
4882bf1b 7122if { (eval echo configure:7123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7123 rm -rf conftest*
7124 LIBS="$ac_save_LIBS"
7125# We can link X programs with no special library path.
7126ac_x_libraries=
7127else
7128 echo "configure: failed program was:" >&5
7129 cat conftest.$ac_ext >&5
7130 rm -rf conftest*
7131 LIBS="$ac_save_LIBS"
7132# First see if replacing the include by lib works.
7133# Check X11 before X11Rn because it is often a symlink to the current release.
7134for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7135 /usr/X11/lib \
7136 /usr/X11R6/lib \
7137 /usr/X11R5/lib \
7138 /usr/X11R4/lib \
7139 \
7140 /usr/lib/X11 \
7141 /usr/lib/X11R6 \
7142 /usr/lib/X11R5 \
7143 /usr/lib/X11R4 \
7144 \
7145 /usr/local/X11/lib \
7146 /usr/local/X11R6/lib \
7147 /usr/local/X11R5/lib \
7148 /usr/local/X11R4/lib \
7149 \
7150 /usr/local/lib/X11 \
7151 /usr/local/lib/X11R6 \
7152 /usr/local/lib/X11R5 \
7153 /usr/local/lib/X11R4 \
7154 \
7155 /usr/X386/lib \
7156 /usr/x386/lib \
7157 /usr/XFree86/lib/X11 \
7158 \
7159 /usr/lib \
7160 /usr/local/lib \
7161 /usr/unsupported/lib \
7162 /usr/athena/lib \
7163 /usr/local/x11r5/lib \
7164 /usr/lpp/Xamples/lib \
7165 /lib/usr/lib/X11 \
7166 \
7167 /usr/openwin/lib \
7168 /usr/openwin/share/lib \
7169 ; \
7170do
7171 for ac_extension in a so sl; do
7172 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7173 ac_x_libraries=$ac_dir
7174 break 2
7175 fi
7176 done
7177done
7178fi
7179rm -f conftest*
7180fi # $ac_x_libraries = NO
7181
7182if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7183 # Didn't find X anywhere. Cache the known absence of X.
7184 ac_cv_have_x="have_x=no"
7185else
7186 # Record where we found X for the cache.
7187 ac_cv_have_x="have_x=yes \
7188 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7189fi
7190fi
7191 fi
7192 eval "$ac_cv_have_x"
7193fi # $with_x != no
7194
7195if test "$have_x" != yes; then
7196 echo "$ac_t""$have_x" 1>&6
7197 no_x=yes
7198else
7199 # If each of the values was on the command line, it overrides each guess.
7200 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7201 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7202 # Update the cache value to reflect the command line values.
7203 ac_cv_have_x="have_x=yes \
7204 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7205 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7206fi
7207
7208if test "$no_x" = yes; then
7209 # Not all programs may use this symbol, but it does not hurt to define it.
7210 cat >> confdefs.h <<\EOF
7211#define X_DISPLAY_MISSING 1
7212EOF
7213
7214 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7215else
7216 if test -n "$x_includes"; then
7217 X_CFLAGS="$X_CFLAGS -I$x_includes"
7218 fi
7219
7220 # It would also be nice to do this for all -L options, not just this one.
7221 if test -n "$x_libraries"; then
7222 X_LIBS="$X_LIBS -L$x_libraries"
7223 # For Solaris; some versions of Sun CC require a space after -R and
7224 # others require no space. Words are not sufficient . . . .
7225 case "`(uname -sr) 2>/dev/null`" in
7226 "SunOS 5"*)
7227 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4882bf1b 7228echo "configure:7229: checking whether -R must be followed by a space" >&5
a16d3c04
KB
7229 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7230 cat > conftest.$ac_ext <<EOF
4882bf1b 7231#line 7232 "configure"
a16d3c04
KB
7232#include "confdefs.h"
7233
7234int main() {
7235
7236; return 0; }
7237EOF
4882bf1b 7238if { (eval echo configure:7239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7239 rm -rf conftest*
7240 ac_R_nospace=yes
7241else
7242 echo "configure: failed program was:" >&5
7243 cat conftest.$ac_ext >&5
7244 rm -rf conftest*
7245 ac_R_nospace=no
7246fi
7247rm -f conftest*
7248 if test $ac_R_nospace = yes; then
7249 echo "$ac_t""no" 1>&6
7250 X_LIBS="$X_LIBS -R$x_libraries"
7251 else
7252 LIBS="$ac_xsave_LIBS -R $x_libraries"
7253 cat > conftest.$ac_ext <<EOF
4882bf1b 7254#line 7255 "configure"
a16d3c04
KB
7255#include "confdefs.h"
7256
7257int main() {
7258
7259; return 0; }
7260EOF
4882bf1b 7261if { (eval echo configure:7262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7262 rm -rf conftest*
7263 ac_R_space=yes
7264else
7265 echo "configure: failed program was:" >&5
7266 cat conftest.$ac_ext >&5
7267 rm -rf conftest*
7268 ac_R_space=no
7269fi
7270rm -f conftest*
7271 if test $ac_R_space = yes; then
7272 echo "$ac_t""yes" 1>&6
7273 X_LIBS="$X_LIBS -R $x_libraries"
7274 else
7275 echo "$ac_t""neither works" 1>&6
7276 fi
7277 fi
7278 LIBS="$ac_xsave_LIBS"
7279 esac
7280 fi
7281
7282 # Check for system-dependent libraries X programs must link with.
7283 # Do this before checking for the system-independent R6 libraries
7284 # (-lICE), since we may need -lsocket or whatever for X linking.
7285
7286 if test "$ISC" = yes; then
7287 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7288 else
7289 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7290 # libraries were built with DECnet support. And karl@cs.umb.edu says
7291 # the Alpha needs dnet_stub (dnet does not exist).
7292 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4882bf1b 7293echo "configure:7294: checking for dnet_ntoa in -ldnet" >&5
a16d3c04
KB
7294ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7295if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7296 echo $ac_n "(cached) $ac_c" 1>&6
7297else
7298 ac_save_LIBS="$LIBS"
7299LIBS="-ldnet $LIBS"
7300cat > conftest.$ac_ext <<EOF
4882bf1b 7301#line 7302 "configure"
a16d3c04
KB
7302#include "confdefs.h"
7303/* Override any gcc2 internal prototype to avoid an error. */
7304/* We use char because int might match the return type of a gcc2
7305 builtin and then its argument prototype would still apply. */
7306char dnet_ntoa();
7307
7308int main() {
7309dnet_ntoa()
7310; return 0; }
7311EOF
4882bf1b 7312if { (eval echo configure:7313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7313 rm -rf conftest*
7314 eval "ac_cv_lib_$ac_lib_var=yes"
7315else
7316 echo "configure: failed program was:" >&5
7317 cat conftest.$ac_ext >&5
7318 rm -rf conftest*
7319 eval "ac_cv_lib_$ac_lib_var=no"
7320fi
7321rm -f conftest*
7322LIBS="$ac_save_LIBS"
7323
7324fi
7325if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7326 echo "$ac_t""yes" 1>&6
7327 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7328else
7329 echo "$ac_t""no" 1>&6
7330fi
7331
7332 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7333 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4882bf1b 7334echo "configure:7335: checking for dnet_ntoa in -ldnet_stub" >&5
a16d3c04
KB
7335ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7336if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7337 echo $ac_n "(cached) $ac_c" 1>&6
7338else
7339 ac_save_LIBS="$LIBS"
7340LIBS="-ldnet_stub $LIBS"
7341cat > conftest.$ac_ext <<EOF
4882bf1b 7342#line 7343 "configure"
a16d3c04
KB
7343#include "confdefs.h"
7344/* Override any gcc2 internal prototype to avoid an error. */
7345/* We use char because int might match the return type of a gcc2
7346 builtin and then its argument prototype would still apply. */
7347char dnet_ntoa();
7348
7349int main() {
7350dnet_ntoa()
7351; return 0; }
7352EOF
4882bf1b 7353if { (eval echo configure:7354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7354 rm -rf conftest*
7355 eval "ac_cv_lib_$ac_lib_var=yes"
7356else
7357 echo "configure: failed program was:" >&5
7358 cat conftest.$ac_ext >&5
7359 rm -rf conftest*
7360 eval "ac_cv_lib_$ac_lib_var=no"
7361fi
7362rm -f conftest*
7363LIBS="$ac_save_LIBS"
7364
7365fi
7366if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7367 echo "$ac_t""yes" 1>&6
7368 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7369else
7370 echo "$ac_t""no" 1>&6
7371fi
7372
7373 fi
7374
7375 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7376 # to get the SysV transport functions.
7377 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7378 # needs -lnsl.
7379 # The nsl library prevents programs from opening the X display
7380 # on Irix 5.2, according to dickey@clark.net.
7381 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4882bf1b 7382echo "configure:7383: checking for gethostbyname" >&5
a16d3c04
KB
7383if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7384 echo $ac_n "(cached) $ac_c" 1>&6
7385else
7386 cat > conftest.$ac_ext <<EOF
4882bf1b 7387#line 7388 "configure"
a16d3c04
KB
7388#include "confdefs.h"
7389/* System header to define __stub macros and hopefully few prototypes,
7390 which can conflict with char gethostbyname(); below. */
7391#include <assert.h>
7392/* Override any gcc2 internal prototype to avoid an error. */
7393/* We use char because int might match the return type of a gcc2
7394 builtin and then its argument prototype would still apply. */
7395char gethostbyname();
7396
7397int main() {
7398
7399/* The GNU C library defines this for functions which it implements
7400 to always fail with ENOSYS. Some functions are actually named
7401 something starting with __ and the normal name is an alias. */
7402#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7403choke me
7404#else
2726c66d 7405gethostbyname();
a16d3c04
KB
7406#endif
7407
7408; return 0; }
7409EOF
4882bf1b 7410if { (eval echo configure:7411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7411 rm -rf conftest*
7412 eval "ac_cv_func_gethostbyname=yes"
7413else
7414 echo "configure: failed program was:" >&5
7415 cat conftest.$ac_ext >&5
7416 rm -rf conftest*
7417 eval "ac_cv_func_gethostbyname=no"
7418fi
7419rm -f conftest*
7420fi
7421
7422if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7423 echo "$ac_t""yes" 1>&6
7424 :
7425else
7426 echo "$ac_t""no" 1>&6
7427fi
7428
7429 if test $ac_cv_func_gethostbyname = no; then
7430 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4882bf1b 7431echo "configure:7432: checking for gethostbyname in -lnsl" >&5
a16d3c04
KB
7432ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7433if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7434 echo $ac_n "(cached) $ac_c" 1>&6
7435else
7436 ac_save_LIBS="$LIBS"
7437LIBS="-lnsl $LIBS"
7438cat > conftest.$ac_ext <<EOF
4882bf1b 7439#line 7440 "configure"
a16d3c04
KB
7440#include "confdefs.h"
7441/* Override any gcc2 internal prototype to avoid an error. */
7442/* We use char because int might match the return type of a gcc2
7443 builtin and then its argument prototype would still apply. */
7444char gethostbyname();
7445
7446int main() {
7447gethostbyname()
7448; return 0; }
7449EOF
4882bf1b 7450if { (eval echo configure:7451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7451 rm -rf conftest*
7452 eval "ac_cv_lib_$ac_lib_var=yes"
7453else
7454 echo "configure: failed program was:" >&5
7455 cat conftest.$ac_ext >&5
7456 rm -rf conftest*
7457 eval "ac_cv_lib_$ac_lib_var=no"
7458fi
7459rm -f conftest*
7460LIBS="$ac_save_LIBS"
7461
7462fi
7463if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7464 echo "$ac_t""yes" 1>&6
7465 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7466else
7467 echo "$ac_t""no" 1>&6
7468fi
7469
7470 fi
7471
7472 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7473 # socket/setsockopt and other routines are undefined under SCO ODT
7474 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7475 # on later versions), says simon@lia.di.epfl.ch: it contains
7476 # gethostby* variants that don't use the nameserver (or something).
7477 # -lsocket must be given before -lnsl if both are needed.
7478 # We assume that if connect needs -lnsl, so does gethostbyname.
7479 echo $ac_n "checking for connect""... $ac_c" 1>&6
4882bf1b 7480echo "configure:7481: checking for connect" >&5
a16d3c04
KB
7481if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7482 echo $ac_n "(cached) $ac_c" 1>&6
7483else
7484 cat > conftest.$ac_ext <<EOF
4882bf1b 7485#line 7486 "configure"
a16d3c04
KB
7486#include "confdefs.h"
7487/* System header to define __stub macros and hopefully few prototypes,
7488 which can conflict with char connect(); below. */
7489#include <assert.h>
7490/* Override any gcc2 internal prototype to avoid an error. */
7491/* We use char because int might match the return type of a gcc2
7492 builtin and then its argument prototype would still apply. */
7493char connect();
7494
7495int main() {
7496
7497/* The GNU C library defines this for functions which it implements
7498 to always fail with ENOSYS. Some functions are actually named
7499 something starting with __ and the normal name is an alias. */
7500#if defined (__stub_connect) || defined (__stub___connect)
7501choke me
7502#else
2726c66d 7503connect();
a16d3c04
KB
7504#endif
7505
7506; return 0; }
7507EOF
4882bf1b 7508if { (eval echo configure:7509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7509 rm -rf conftest*
7510 eval "ac_cv_func_connect=yes"
7511else
7512 echo "configure: failed program was:" >&5
7513 cat conftest.$ac_ext >&5
7514 rm -rf conftest*
7515 eval "ac_cv_func_connect=no"
7516fi
7517rm -f conftest*
7518fi
7519
7520if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7521 echo "$ac_t""yes" 1>&6
7522 :
7523else
7524 echo "$ac_t""no" 1>&6
7525fi
7526
7527 if test $ac_cv_func_connect = no; then
7528 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4882bf1b 7529echo "configure:7530: checking for connect in -lsocket" >&5
a16d3c04
KB
7530ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7531if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7532 echo $ac_n "(cached) $ac_c" 1>&6
7533else
7534 ac_save_LIBS="$LIBS"
7535LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7536cat > conftest.$ac_ext <<EOF
4882bf1b 7537#line 7538 "configure"
a16d3c04
KB
7538#include "confdefs.h"
7539/* Override any gcc2 internal prototype to avoid an error. */
7540/* We use char because int might match the return type of a gcc2
7541 builtin and then its argument prototype would still apply. */
7542char connect();
7543
7544int main() {
7545connect()
7546; return 0; }
7547EOF
4882bf1b 7548if { (eval echo configure:7549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7549 rm -rf conftest*
7550 eval "ac_cv_lib_$ac_lib_var=yes"
7551else
7552 echo "configure: failed program was:" >&5
7553 cat conftest.$ac_ext >&5
7554 rm -rf conftest*
7555 eval "ac_cv_lib_$ac_lib_var=no"
7556fi
7557rm -f conftest*
7558LIBS="$ac_save_LIBS"
7559
7560fi
7561if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7562 echo "$ac_t""yes" 1>&6
7563 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7564else
7565 echo "$ac_t""no" 1>&6
7566fi
7567
7568 fi
7569
7570 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7571 echo $ac_n "checking for remove""... $ac_c" 1>&6
4882bf1b 7572echo "configure:7573: checking for remove" >&5
a16d3c04
KB
7573if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7574 echo $ac_n "(cached) $ac_c" 1>&6
7575else
7576 cat > conftest.$ac_ext <<EOF
4882bf1b 7577#line 7578 "configure"
a16d3c04
KB
7578#include "confdefs.h"
7579/* System header to define __stub macros and hopefully few prototypes,
7580 which can conflict with char remove(); below. */
7581#include <assert.h>
7582/* Override any gcc2 internal prototype to avoid an error. */
7583/* We use char because int might match the return type of a gcc2
7584 builtin and then its argument prototype would still apply. */
7585char remove();
7586
7587int main() {
7588
7589/* The GNU C library defines this for functions which it implements
7590 to always fail with ENOSYS. Some functions are actually named
7591 something starting with __ and the normal name is an alias. */
7592#if defined (__stub_remove) || defined (__stub___remove)
7593choke me
7594#else
2726c66d 7595remove();
a16d3c04
KB
7596#endif
7597
7598; return 0; }
7599EOF
4882bf1b 7600if { (eval echo configure:7601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7601 rm -rf conftest*
7602 eval "ac_cv_func_remove=yes"
7603else
7604 echo "configure: failed program was:" >&5
7605 cat conftest.$ac_ext >&5
7606 rm -rf conftest*
7607 eval "ac_cv_func_remove=no"
7608fi
7609rm -f conftest*
7610fi
7611
7612if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7613 echo "$ac_t""yes" 1>&6
7614 :
7615else
7616 echo "$ac_t""no" 1>&6
7617fi
7618
7619 if test $ac_cv_func_remove = no; then
7620 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4882bf1b 7621echo "configure:7622: checking for remove in -lposix" >&5
a16d3c04
KB
7622ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7623if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7624 echo $ac_n "(cached) $ac_c" 1>&6
7625else
7626 ac_save_LIBS="$LIBS"
7627LIBS="-lposix $LIBS"
7628cat > conftest.$ac_ext <<EOF
4882bf1b 7629#line 7630 "configure"
a16d3c04
KB
7630#include "confdefs.h"
7631/* Override any gcc2 internal prototype to avoid an error. */
7632/* We use char because int might match the return type of a gcc2
7633 builtin and then its argument prototype would still apply. */
7634char remove();
7635
7636int main() {
7637remove()
7638; return 0; }
7639EOF
4882bf1b 7640if { (eval echo configure:7641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7641 rm -rf conftest*
7642 eval "ac_cv_lib_$ac_lib_var=yes"
7643else
7644 echo "configure: failed program was:" >&5
7645 cat conftest.$ac_ext >&5
7646 rm -rf conftest*
7647 eval "ac_cv_lib_$ac_lib_var=no"
7648fi
7649rm -f conftest*
7650LIBS="$ac_save_LIBS"
7651
7652fi
7653if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7654 echo "$ac_t""yes" 1>&6
7655 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7656else
7657 echo "$ac_t""no" 1>&6
7658fi
7659
7660 fi
7661
7662 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7663 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4882bf1b 7664echo "configure:7665: checking for shmat" >&5
a16d3c04
KB
7665if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7666 echo $ac_n "(cached) $ac_c" 1>&6
7667else
7668 cat > conftest.$ac_ext <<EOF
4882bf1b 7669#line 7670 "configure"
a16d3c04
KB
7670#include "confdefs.h"
7671/* System header to define __stub macros and hopefully few prototypes,
7672 which can conflict with char shmat(); below. */
7673#include <assert.h>
7674/* Override any gcc2 internal prototype to avoid an error. */
7675/* We use char because int might match the return type of a gcc2
7676 builtin and then its argument prototype would still apply. */
7677char shmat();
7678
7679int main() {
7680
7681/* The GNU C library defines this for functions which it implements
7682 to always fail with ENOSYS. Some functions are actually named
7683 something starting with __ and the normal name is an alias. */
7684#if defined (__stub_shmat) || defined (__stub___shmat)
7685choke me
7686#else
2726c66d 7687shmat();
a16d3c04
KB
7688#endif
7689
7690; return 0; }
7691EOF
4882bf1b 7692if { (eval echo configure:7693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7693 rm -rf conftest*
7694 eval "ac_cv_func_shmat=yes"
7695else
7696 echo "configure: failed program was:" >&5
7697 cat conftest.$ac_ext >&5
7698 rm -rf conftest*
7699 eval "ac_cv_func_shmat=no"
7700fi
7701rm -f conftest*
7702fi
7703
7704if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7705 echo "$ac_t""yes" 1>&6
7706 :
7707else
7708 echo "$ac_t""no" 1>&6
7709fi
7710
7711 if test $ac_cv_func_shmat = no; then
7712 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4882bf1b 7713echo "configure:7714: checking for shmat in -lipc" >&5
a16d3c04
KB
7714ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7715if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7716 echo $ac_n "(cached) $ac_c" 1>&6
7717else
7718 ac_save_LIBS="$LIBS"
7719LIBS="-lipc $LIBS"
7720cat > conftest.$ac_ext <<EOF
4882bf1b 7721#line 7722 "configure"
a16d3c04
KB
7722#include "confdefs.h"
7723/* Override any gcc2 internal prototype to avoid an error. */
7724/* We use char because int might match the return type of a gcc2
7725 builtin and then its argument prototype would still apply. */
7726char shmat();
7727
7728int main() {
7729shmat()
7730; return 0; }
7731EOF
4882bf1b 7732if { (eval echo configure:7733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7733 rm -rf conftest*
7734 eval "ac_cv_lib_$ac_lib_var=yes"
7735else
7736 echo "configure: failed program was:" >&5
7737 cat conftest.$ac_ext >&5
7738 rm -rf conftest*
7739 eval "ac_cv_lib_$ac_lib_var=no"
7740fi
7741rm -f conftest*
7742LIBS="$ac_save_LIBS"
7743
7744fi
7745if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7746 echo "$ac_t""yes" 1>&6
7747 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7748else
7749 echo "$ac_t""no" 1>&6
7750fi
7751
7752 fi
7753 fi
7754
7755 # Check for libraries that X11R6 Xt/Xaw programs need.
7756 ac_save_LDFLAGS="$LDFLAGS"
7757 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7758 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7759 # check for ICE first), but we must link in the order -lSM -lICE or
7760 # we get undefined symbols. So assume we have SM if we have ICE.
7761 # These have to be linked with before -lX11, unlike the other
7762 # libraries we check for below, so use a different variable.
7763 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7764 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4882bf1b 7765echo "configure:7766: checking for IceConnectionNumber in -lICE" >&5
a16d3c04
KB
7766ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7767if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7768 echo $ac_n "(cached) $ac_c" 1>&6
7769else
7770 ac_save_LIBS="$LIBS"
0709ee62 7771LIBS="-lICE $X_EXTRA_LIBS $LIBS"
a16d3c04 7772cat > conftest.$ac_ext <<EOF
4882bf1b 7773#line 7774 "configure"
a16d3c04
KB
7774#include "confdefs.h"
7775/* Override any gcc2 internal prototype to avoid an error. */
7776/* We use char because int might match the return type of a gcc2
7777 builtin and then its argument prototype would still apply. */
7778char IceConnectionNumber();
7779
7780int main() {
7781IceConnectionNumber()
7782; return 0; }
7783EOF
4882bf1b 7784if { (eval echo configure:7785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
7785 rm -rf conftest*
7786 eval "ac_cv_lib_$ac_lib_var=yes"
7787else
7788 echo "configure: failed program was:" >&5
7789 cat conftest.$ac_ext >&5
7790 rm -rf conftest*
7791 eval "ac_cv_lib_$ac_lib_var=no"
7792fi
7793rm -f conftest*
7794LIBS="$ac_save_LIBS"
7795
7796fi
7797if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7798 echo "$ac_t""yes" 1>&6
7799 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7800else
7801 echo "$ac_t""no" 1>&6
7802fi
7803
7804 LDFLAGS="$ac_save_LDFLAGS"
7805
7806fi
7807
7808
7809 if test "$no_x" = "yes"; then
7810 { echo "configure: error: X11 libraries not found" 1>&2; exit 1; }
7811 fi
7812
7813 TOOLKIT_INCLUDE="$X_CFLAGS"
7814 GUI_TK_LIBRARY="$X_LIBS"
7815
7816 echo $ac_n "checking for Motif/Lesstif includes""... $ac_c" 1>&6
4882bf1b 7817echo "configure:7818: checking for Motif/Lesstif includes" >&5
a16d3c04
KB
7818
7819ac_find_includes=
7820for ac_dir in $SEARCH_INCLUDE;
7821 do
7822 if test -f "$ac_dir/Xm/Xm.h"; then
7823 ac_find_includes=$ac_dir
7824 break
7825 fi
7826 done
7827
7828 if test "$ac_find_includes" != "" ; then
7829 echo "$ac_t""found $ac_find_includes" 1>&6
7830 else
7831 echo "$ac_t""no" 1>&6
7832 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
7833 fi
7834
7835 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
4882bf1b 7836echo "configure:7837: checking for Motif/Lesstif library" >&5
a16d3c04
KB
7837
7838ac_find_libraries=
7839for ac_dir in $SEARCH_LIB;
7840 do
7841 for ac_extension in a so sl; do
7842 if test -f "$ac_dir/libXm.$ac_extension"; then
7843 ac_find_libraries=$ac_dir
7844 break 2
7845 fi
7846 done
7847 done
7848
7849 if test "$ac_find_libraries" != "" ; then
7850
7851 ac_path_to_include=$ac_find_includes
7852 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
7853 result=$?
7854 if test $result = 0; then
7855 ac_path_to_include=""
7856 else
7857 ac_path_to_include="-I$ac_find_includes"
7858 fi
7859
7860
7861 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7862 result=$?
7863 if test $result = 0; then
7864 ac_path_to_link=""
7865 else
7866 ac_path_to_link="-L$ac_find_libraries"
7867 fi
7868
7869
7870 CHECK_LINK="$GUI_TK_LIBRARY $ac_path_to_link"
7871 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
7872 echo "$ac_t""found at $ac_find_libraries" 1>&6
7873 else
7874 echo "$ac_t""no" 1>&6
7875 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
7876 fi
7877
7878 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
4882bf1b 7879echo "configure:7880: checking for Xt library" >&5
a16d3c04
KB
7880
7881ac_find_libraries=
7882for ac_dir in $SEARCH_LIB;
7883 do
7884 for ac_extension in a so sl; do
7885 if test -f "$ac_dir/libXt.$ac_extension"; then
7886 ac_find_libraries=$ac_dir
7887 break 2
7888 fi
7889 done
7890 done
7891
7892 if test "$ac_find_libraries" != "" ; then
7893
7894 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7895 result=$?
7896 if test $result = 0; then
7897 ac_path_to_link=""
7898 else
7899 ac_path_to_link="-L$ac_find_libraries"
7900 fi
7901
7902 CHECK_LINK="$GUI_TK_LIBRARY $ac_path_to_link"
7903 echo "$ac_t""found at $ac_find_libraries" 1>&6
7904 else
7905 echo "$ac_t""no" 1>&6
7906 { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; }
7907 fi
7908
7909 XPM_LINK=""
7910 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
4882bf1b 7911echo "configure:7912: checking for Xpm library" >&5
a16d3c04
KB
7912
7913ac_find_libraries=
7914for ac_dir in $SEARCH_LIB;
7915 do
7916 for ac_extension in a so sl; do
7917 if test -f "$ac_dir/libXpm.$ac_extension"; then
7918 ac_find_libraries=$ac_dir
7919 break 2
7920 fi
7921 done
7922 done
7923
7924 if test "$ac_find_libraries" != "" ; then
7925
7926 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7927 result=$?
7928 if test $result = 0; then
7929 ac_path_to_link=""
7930 else
7931 ac_path_to_link="-L$ac_find_libraries"
7932 fi
7933
7934 CHECK_LINK="$GUI_TK_LIBRARY $ac_path_to_link"
7935 XPM_LINK="-lXpm "
7936 cat >> confdefs.h <<\EOF
7937#define wxHAVE_LIB_XPM 1
7938EOF
7939
7940 echo "$ac_t""found at $ac_find_libraries" 1>&6
7941 else
7942 echo "$ac_t""no" 1>&6
7943 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7944 fi
7945
f7a11f8c 7946 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXt -lX11 -lm"
a16d3c04
KB
7947 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7948 TOOLKIT=MOTIF
1c8515f9 7949
f7a11f8c
RR
7950 GUIHEADERS="\$(MOTIF_HEADERS)"
7951 GUIOBJS="\$(MOTIF_GUIOBJS)"
7952 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
7953 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
7954 GUIDEPS="\$(MOTIF_GUIDEPS)"
7955 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
7956 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
7957 UNIXOBJS="\$(UNIX_OBJS)"
a16d3c04
KB
7958 GUIDIST=MOTIF_DIST
7959fi
7960
7961TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"`
7962
7963TOOLKIT_DEF="-D__WX${TOOLKIT}__"
7964
7965WX_LIBRARY="wx_${TOOLKIT_DIR}"
7966
a0c79abb 7967 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(JPEGOBJS) \$(PNGOBJS) \$(ZLIBOBJS) \$(IODBCOBJS)"
f7a11f8c
RR
7968 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)"
7969 ALL_HEADERS="\$(GUIHEADERS) \$(HTML_HEADERS) \$(UNIX_HEADERS) \$(PROTOCOL_HEADERS) \$(GENERIC_HEADERS) \$(WX_HEADERS)"
7970else
7971
7972 ALL_OBJECTS="\$(BASE_OBJS)"
7973 ALL_DEPFILES="\${BASE_DEPS}"
7974 ALL_HEADERS="\${BASE_HEADERS}"
7975
7976 WX_LIBRARY="wxbase"
7977fi
a16d3c04 7978
f7a11f8c 7979WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
a16d3c04 7980
f7a11f8c 7981WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
a16d3c04 7982
f7a11f8c
RR
7983WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
7984
7985WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
7986WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
7987WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
a16d3c04
KB
7988
7989SHARED_LD=
7990PIC_FLAG=
2726c66d
KB
7991WX_ALL=
7992WX_ALL_INSTALLED=
a16d3c04
KB
7993
7994if test "$wxUSE_SHARED" = "yes"; then
7995 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
7996
2726c66d
KB
7997 case "${host}" in
7998 *-hp-hpux* )
7999 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
8000 SHARED_LD="${CXX} -b -o"
8001 PIC_FLAG="+Z"
8002 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8003 ;;
8004 *-*-linux* )
8005 SHARED_LD="${CC} -shared -o"
8006 PIC_FLAG="-fPIC"
8007 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8008 WX_ALL="CREATE_LINKS"
8009 ;;
8010 *-*-irix5* | *-*-irix6* )
8011 if test "$GCC" = yes ; then
8012 SHARED_LD="${CC} -shared -o"
8013 PIC_FLAG="-fPIC"
8014 else
8015 SHARED_LD="${CXX} -shared -o"
8016 fi
8017 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8018 WX_ALL="CREATE_LINKS"
8019 ;;
8020 *-*-solaris2* )
8021 if test "$GCC" = yes ; then
8022 SHARED_LD="${CC} -shared -o"
8023 PIC_FLAG="-fPIC"
8024 else
8025 SHARED_LD="${CXX} -G -o"
8026 PIC_FLAG="PIC"
8027 fi
8028 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8029 WX_ALL="CREATE_LINKS"
8030 ;;
8031 *-*-sunos4* )
8032 SHARED_LD="${CC} -shared -o"
8033 PIC_FLAG="-fPIC"
8034 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8035 WX_ALL="CREATE_LINKS"
8036 ;;
8037 *-*-freebsd* | *-*-netbsd*)
8038 SHARED_LD="${CC} -shared -o"
8039 PIC_FLAG="-fPIC"
8040 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8041 WX_ALL="CREATE_LINKS"
8042 ;;
8043 *-*-osf* )
8044 SHARED_LD="${CXX} -shared -o"
8045 PIC_FLAG="-fPIC"
8046 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8047 WX_ALL="CREATE_LINKS"
8048 ;;
8049 *-*-dgux5* )
8050 SHARED_LD="${CXX} -shared -o"
8051 PIC_FLAG="-fPIC"
8052 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8053 WX_ALL="CREATE_LINKS"
8054 ;;
8055 *-*-sysv5* )
8056 SHARED_LD="${CC} -shared -o"
8057 PIC_FLAG="-fPIC"
8058 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8059 WX_ALL="CREATE_LINKS"
8060 ;;
8061 *-*-aix* )
8062 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8063 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8064 ;;
8065 *-*-cygwin32* )
8066 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8067 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8068 ;;
8069 *-*-mingw32* )
8070 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8071 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8072 ;;
8073 *-pc-os2_emx )
8074 ;;
8075 *)
8076 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8077 esac
a16d3c04
KB
8078
8079else
8080 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
2726c66d 8081 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
a16d3c04
KB
8082fi
8083
8084
8085for ac_hdr in strings.h
8086do
8087ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8088echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4882bf1b 8089echo "configure:8090: checking for $ac_hdr" >&5
a16d3c04
KB
8090if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8091 echo $ac_n "(cached) $ac_c" 1>&6
8092else
8093 cat > conftest.$ac_ext <<EOF
4882bf1b 8094#line 8095 "configure"
a16d3c04
KB
8095#include "confdefs.h"
8096#include <$ac_hdr>
8097EOF
8098ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4882bf1b 8099{ (eval echo configure:8100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0709ee62 8100ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
8101if test -z "$ac_err"; then
8102 rm -rf conftest*
8103 eval "ac_cv_header_$ac_safe=yes"
8104else
8105 echo "$ac_err" >&5
8106 echo "configure: failed program was:" >&5
8107 cat conftest.$ac_ext >&5
8108 rm -rf conftest*
8109 eval "ac_cv_header_$ac_safe=no"
8110fi
8111rm -f conftest*
8112fi
8113if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8114 echo "$ac_t""yes" 1>&6
8115 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8116 cat >> confdefs.h <<EOF
8117#define $ac_tr_hdr 1
8118EOF
8119
8120else
8121 echo "$ac_t""no" 1>&6
8122fi
8123done
8124
8125for ac_hdr in unistd.h
8126do
8127ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8128echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4882bf1b 8129echo "configure:8130: checking for $ac_hdr" >&5
a16d3c04
KB
8130if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8131 echo $ac_n "(cached) $ac_c" 1>&6
8132else
8133 cat > conftest.$ac_ext <<EOF
4882bf1b 8134#line 8135 "configure"
a16d3c04
KB
8135#include "confdefs.h"
8136#include <$ac_hdr>
8137EOF
8138ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4882bf1b 8139{ (eval echo configure:8140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0709ee62 8140ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
8141if test -z "$ac_err"; then
8142 rm -rf conftest*
8143 eval "ac_cv_header_$ac_safe=yes"
8144else
8145 echo "$ac_err" >&5
8146 echo "configure: failed program was:" >&5
8147 cat conftest.$ac_ext >&5
8148 rm -rf conftest*
8149 eval "ac_cv_header_$ac_safe=no"
8150fi
8151rm -f conftest*
8152fi
8153if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8154 echo "$ac_t""yes" 1>&6
8155 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8156 cat >> confdefs.h <<EOF
8157#define $ac_tr_hdr 1
8158EOF
8159
8160else
8161 echo "$ac_t""no" 1>&6
8162fi
8163done
8164
8165for ac_hdr in wchar.h
8166do
8167ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8168echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4882bf1b 8169echo "configure:8170: checking for $ac_hdr" >&5
a16d3c04
KB
8170if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8171 echo $ac_n "(cached) $ac_c" 1>&6
8172else
8173 cat > conftest.$ac_ext <<EOF
4882bf1b 8174#line 8175 "configure"
a16d3c04
KB
8175#include "confdefs.h"
8176#include <$ac_hdr>
8177EOF
8178ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4882bf1b 8179{ (eval echo configure:8180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0709ee62 8180ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
8181if test -z "$ac_err"; then
8182 rm -rf conftest*
8183 eval "ac_cv_header_$ac_safe=yes"
8184else
8185 echo "$ac_err" >&5
8186 echo "configure: failed program was:" >&5
8187 cat conftest.$ac_ext >&5
8188 rm -rf conftest*
8189 eval "ac_cv_header_$ac_safe=no"
8190fi
8191rm -f conftest*
8192fi
8193if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8194 echo "$ac_t""yes" 1>&6
8195 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8196 cat >> confdefs.h <<EOF
8197#define $ac_tr_hdr 1
8198EOF
8199
8200else
8201 echo "$ac_t""no" 1>&6
8202fi
8203done
8204
8205for ac_hdr in wcstr.h
8206do
8207ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8208echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4882bf1b 8209echo "configure:8210: checking for $ac_hdr" >&5
a16d3c04
KB
8210if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8211 echo $ac_n "(cached) $ac_c" 1>&6
8212else
8213 cat > conftest.$ac_ext <<EOF
4882bf1b 8214#line 8215 "configure"
a16d3c04
KB
8215#include "confdefs.h"
8216#include <$ac_hdr>
8217EOF
8218ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4882bf1b 8219{ (eval echo configure:8220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0709ee62 8220ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
8221if test -z "$ac_err"; then
8222 rm -rf conftest*
8223 eval "ac_cv_header_$ac_safe=yes"
8224else
8225 echo "$ac_err" >&5
8226 echo "configure: failed program was:" >&5
8227 cat conftest.$ac_ext >&5
8228 rm -rf conftest*
8229 eval "ac_cv_header_$ac_safe=no"
8230fi
8231rm -f conftest*
8232fi
8233if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8234 echo "$ac_t""yes" 1>&6
8235 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8236 cat >> confdefs.h <<EOF
8237#define $ac_tr_hdr 1
8238EOF
8239
8240else
8241 echo "$ac_t""no" 1>&6
8242fi
8243done
8244
8245for ac_hdr in fnmatch.h
8246do
8247ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8248echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4882bf1b 8249echo "configure:8250: checking for $ac_hdr" >&5
a16d3c04
KB
8250if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8251 echo $ac_n "(cached) $ac_c" 1>&6
8252else
8253 cat > conftest.$ac_ext <<EOF
4882bf1b 8254#line 8255 "configure"
a16d3c04
KB
8255#include "confdefs.h"
8256#include <$ac_hdr>
8257EOF
8258ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4882bf1b 8259{ (eval echo configure:8260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0709ee62 8260ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
8261if test -z "$ac_err"; then
8262 rm -rf conftest*
8263 eval "ac_cv_header_$ac_safe=yes"
8264else
8265 echo "$ac_err" >&5
8266 echo "configure: failed program was:" >&5
8267 cat conftest.$ac_ext >&5
8268 rm -rf conftest*
8269 eval "ac_cv_header_$ac_safe=no"
8270fi
8271rm -f conftest*
8272fi
8273if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8274 echo "$ac_t""yes" 1>&6
8275 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8276 cat >> confdefs.h <<EOF
8277#define $ac_tr_hdr 1
8278EOF
8279
8280else
8281 echo "$ac_t""no" 1>&6
8282fi
8283done
8284
f7a11f8c
RR
8285
8286if test "$wxUSE_GUI" = "yes"; then
8287 for ac_hdr in X11/XKBlib.h
a16d3c04
KB
8288do
8289ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8290echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4882bf1b 8291echo "configure:8292: checking for $ac_hdr" >&5
a16d3c04
KB
8292if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8293 echo $ac_n "(cached) $ac_c" 1>&6
8294else
8295 cat > conftest.$ac_ext <<EOF
4882bf1b 8296#line 8297 "configure"
a16d3c04
KB
8297#include "confdefs.h"
8298#include <$ac_hdr>
8299EOF
8300ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4882bf1b 8301{ (eval echo configure:8302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0709ee62 8302ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
8303if test -z "$ac_err"; then
8304 rm -rf conftest*
8305 eval "ac_cv_header_$ac_safe=yes"
8306else
8307 echo "$ac_err" >&5
8308 echo "configure: failed program was:" >&5
8309 cat conftest.$ac_ext >&5
8310 rm -rf conftest*
8311 eval "ac_cv_header_$ac_safe=no"
8312fi
8313rm -f conftest*
8314fi
8315if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8316 echo "$ac_t""yes" 1>&6
8317 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8318 cat >> confdefs.h <<EOF
8319#define $ac_tr_hdr 1
8320EOF
8321
8322else
8323 echo "$ac_t""no" 1>&6
8324fi
8325done
8326
f7a11f8c 8327fi
a16d3c04
KB
8328
8329
8330echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4882bf1b 8331echo "configure:8332: checking for ANSI C header files" >&5
a16d3c04
KB
8332if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8333 echo $ac_n "(cached) $ac_c" 1>&6
8334else
8335 cat > conftest.$ac_ext <<EOF
4882bf1b 8336#line 8337 "configure"
a16d3c04
KB
8337#include "confdefs.h"
8338#include <stdlib.h>
8339#include <stdarg.h>
8340#include <string.h>
8341#include <float.h>
8342EOF
8343ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4882bf1b 8344{ (eval echo configure:8345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0709ee62 8345ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
8346if test -z "$ac_err"; then
8347 rm -rf conftest*
8348 ac_cv_header_stdc=yes
8349else
8350 echo "$ac_err" >&5
8351 echo "configure: failed program was:" >&5
8352 cat conftest.$ac_ext >&5
8353 rm -rf conftest*
8354 ac_cv_header_stdc=no
8355fi
8356rm -f conftest*
8357
8358if test $ac_cv_header_stdc = yes; then
8359 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8360cat > conftest.$ac_ext <<EOF
4882bf1b 8361#line 8362 "configure"
a16d3c04
KB
8362#include "confdefs.h"
8363#include <string.h>
8364EOF
8365if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8366 egrep "memchr" >/dev/null 2>&1; then
8367 :
8368else
8369 rm -rf conftest*
8370 ac_cv_header_stdc=no
8371fi
8372rm -f conftest*
8373
8374fi
8375
8376if test $ac_cv_header_stdc = yes; then
8377 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8378cat > conftest.$ac_ext <<EOF
4882bf1b 8379#line 8380 "configure"
a16d3c04
KB
8380#include "confdefs.h"
8381#include <stdlib.h>
8382EOF
8383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8384 egrep "free" >/dev/null 2>&1; then
8385 :
8386else
8387 rm -rf conftest*
8388 ac_cv_header_stdc=no
8389fi
8390rm -f conftest*
8391
8392fi
8393
8394if test $ac_cv_header_stdc = yes; then
8395 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8396if test "$cross_compiling" = yes; then
8397 :
8398else
8399 cat > conftest.$ac_ext <<EOF
4882bf1b 8400#line 8401 "configure"
a16d3c04
KB
8401#include "confdefs.h"
8402#include <ctype.h>
8403#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8404#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8405#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8406int main () { int i; for (i = 0; i < 256; i++)
8407if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8408exit (0); }
8409
8410EOF
4882bf1b 8411if { (eval echo configure:8412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
8412then
8413 :
8414else
8415 echo "configure: failed program was:" >&5
8416 cat conftest.$ac_ext >&5
8417 rm -fr conftest*
8418 ac_cv_header_stdc=no
8419fi
8420rm -fr conftest*
8421fi
8422
8423fi
8424fi
8425
8426echo "$ac_t""$ac_cv_header_stdc" 1>&6
8427if test $ac_cv_header_stdc = yes; then
8428 cat >> confdefs.h <<\EOF
8429#define STDC_HEADERS 1
8430EOF
8431
8432fi
8433
8434echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4882bf1b 8435echo "configure:8436: checking for mode_t" >&5
a16d3c04
KB
8436if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8437 echo $ac_n "(cached) $ac_c" 1>&6
8438else
8439 cat > conftest.$ac_ext <<EOF
4882bf1b 8440#line 8441 "configure"
a16d3c04
KB
8441#include "confdefs.h"
8442#include <sys/types.h>
8443#if STDC_HEADERS
8444#include <stdlib.h>
8445#include <stddef.h>
8446#endif
8447EOF
8448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0709ee62 8449 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a16d3c04
KB
8450 rm -rf conftest*
8451 ac_cv_type_mode_t=yes
8452else
8453 rm -rf conftest*
8454 ac_cv_type_mode_t=no
8455fi
8456rm -f conftest*
8457
8458fi
8459echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8460if test $ac_cv_type_mode_t = no; then
8461 cat >> confdefs.h <<\EOF
8462#define mode_t int
8463EOF
8464
8465fi
8466
8467echo $ac_n "checking for off_t""... $ac_c" 1>&6
4882bf1b 8468echo "configure:8469: checking for off_t" >&5
a16d3c04
KB
8469if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8470 echo $ac_n "(cached) $ac_c" 1>&6
8471else
8472 cat > conftest.$ac_ext <<EOF
4882bf1b 8473#line 8474 "configure"
a16d3c04
KB
8474#include "confdefs.h"
8475#include <sys/types.h>
8476#if STDC_HEADERS
8477#include <stdlib.h>
8478#include <stddef.h>
8479#endif
8480EOF
8481if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0709ee62 8482 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a16d3c04
KB
8483 rm -rf conftest*
8484 ac_cv_type_off_t=yes
8485else
8486 rm -rf conftest*
8487 ac_cv_type_off_t=no
8488fi
8489rm -f conftest*
8490
8491fi
8492echo "$ac_t""$ac_cv_type_off_t" 1>&6
8493if test $ac_cv_type_off_t = no; then
8494 cat >> confdefs.h <<\EOF
8495#define off_t long
8496EOF
8497
8498fi
8499
8500echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4882bf1b 8501echo "configure:8502: checking for pid_t" >&5
a16d3c04
KB
8502if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8503 echo $ac_n "(cached) $ac_c" 1>&6
8504else
8505 cat > conftest.$ac_ext <<EOF
4882bf1b 8506#line 8507 "configure"
a16d3c04
KB
8507#include "confdefs.h"
8508#include <sys/types.h>
8509#if STDC_HEADERS
8510#include <stdlib.h>
8511#include <stddef.h>
8512#endif
8513EOF
8514if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0709ee62 8515 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a16d3c04
KB
8516 rm -rf conftest*
8517 ac_cv_type_pid_t=yes
8518else
8519 rm -rf conftest*
8520 ac_cv_type_pid_t=no
8521fi
8522rm -f conftest*
8523
8524fi
8525echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8526if test $ac_cv_type_pid_t = no; then
8527 cat >> confdefs.h <<\EOF
8528#define pid_t int
8529EOF
8530
8531fi
8532
8533echo $ac_n "checking for size_t""... $ac_c" 1>&6
4882bf1b 8534echo "configure:8535: checking for size_t" >&5
a16d3c04
KB
8535if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8536 echo $ac_n "(cached) $ac_c" 1>&6
8537else
8538 cat > conftest.$ac_ext <<EOF
4882bf1b 8539#line 8540 "configure"
a16d3c04
KB
8540#include "confdefs.h"
8541#include <sys/types.h>
8542#if STDC_HEADERS
8543#include <stdlib.h>
8544#include <stddef.h>
8545#endif
8546EOF
8547if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
0709ee62 8548 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a16d3c04
KB
8549 rm -rf conftest*
8550 ac_cv_type_size_t=yes
8551else
8552 rm -rf conftest*
8553 ac_cv_type_size_t=no
8554fi
8555rm -f conftest*
8556
8557fi
8558echo "$ac_t""$ac_cv_type_size_t" 1>&6
8559if test $ac_cv_type_size_t = no; then
8560 cat >> confdefs.h <<\EOF
8561#define size_t unsigned
8562EOF
8563
8564fi
8565
8566echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4882bf1b 8567echo "configure:8568: checking for uid_t in sys/types.h" >&5
a16d3c04
KB
8568if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
8569 echo $ac_n "(cached) $ac_c" 1>&6
8570else
8571 cat > conftest.$ac_ext <<EOF
4882bf1b 8572#line 8573 "configure"
a16d3c04
KB
8573#include "confdefs.h"
8574#include <sys/types.h>
8575EOF
8576if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8577 egrep "uid_t" >/dev/null 2>&1; then
8578 rm -rf conftest*
8579 ac_cv_type_uid_t=yes
8580else
8581 rm -rf conftest*
8582 ac_cv_type_uid_t=no
8583fi
8584rm -f conftest*
8585
8586fi
8587
8588echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8589if test $ac_cv_type_uid_t = no; then
8590 cat >> confdefs.h <<\EOF
8591#define uid_t int
8592EOF
8593
8594 cat >> confdefs.h <<\EOF
8595#define gid_t int
8596EOF
8597
8598fi
8599
8600
8601
8602
8603echo $ac_n "checking for working const""... $ac_c" 1>&6
4882bf1b 8604echo "configure:8605: checking for working const" >&5
a16d3c04
KB
8605if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8606 echo $ac_n "(cached) $ac_c" 1>&6
8607else
8608 cat > conftest.$ac_ext <<EOF
4882bf1b 8609#line 8610 "configure"
a16d3c04
KB
8610#include "confdefs.h"
8611
8612int main() {
8613
8614/* Ultrix mips cc rejects this. */
8615typedef int charset[2]; const charset x;
8616/* SunOS 4.1.1 cc rejects this. */
8617char const *const *ccp;
8618char **p;
8619/* NEC SVR4.0.2 mips cc rejects this. */
8620struct point {int x, y;};
8621static struct point const zero = {0,0};
8622/* AIX XL C 1.02.0.0 rejects this.
8623 It does not let you subtract one const X* pointer from another in an arm
8624 of an if-expression whose if-part is not a constant expression */
8625const char *g = "string";
8626ccp = &g + (g ? g-g : 0);
8627/* HPUX 7.0 cc rejects these. */
8628++ccp;
8629p = (char**) ccp;
8630ccp = (char const *const *) p;
8631{ /* SCO 3.2v4 cc rejects this. */
8632 char *t;
8633 char const *s = 0 ? (char *) 0 : (char const *) 0;
8634
8635 *t++ = 0;
8636}
8637{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8638 int x[] = {25, 17};
8639 const int *foo = &x[0];
8640 ++foo;
8641}
8642{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8643 typedef const int *iptr;
8644 iptr p = 0;
8645 ++p;
8646}
8647{ /* AIX XL C 1.02.0.0 rejects this saying
8648 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8649 struct s { int j; const int *ap[3]; };
8650 struct s *b; b->j = 5;
8651}
8652{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8653 const int foo = 10;
8654}
8655
8656; return 0; }
8657EOF
4882bf1b 8658if { (eval echo configure:8659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
8659 rm -rf conftest*
8660 ac_cv_c_const=yes
8661else
8662 echo "configure: failed program was:" >&5
8663 cat conftest.$ac_ext >&5
8664 rm -rf conftest*
8665 ac_cv_c_const=no
8666fi
8667rm -f conftest*
8668fi
8669
8670echo "$ac_t""$ac_cv_c_const" 1>&6
8671if test $ac_cv_c_const = no; then
8672 cat >> confdefs.h <<\EOF
8673#define const
8674EOF
8675
8676fi
8677
8678echo $ac_n "checking for inline""... $ac_c" 1>&6
4882bf1b 8679echo "configure:8680: checking for inline" >&5
a16d3c04
KB
8680if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
8681 echo $ac_n "(cached) $ac_c" 1>&6
8682else
8683 ac_cv_c_inline=no
8684for ac_kw in inline __inline__ __inline; do
8685 cat > conftest.$ac_ext <<EOF
4882bf1b 8686#line 8687 "configure"
a16d3c04
KB
8687#include "confdefs.h"
8688
8689int main() {
8690} $ac_kw foo() {
8691; return 0; }
8692EOF
4882bf1b 8693if { (eval echo configure:8694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
8694 rm -rf conftest*
8695 ac_cv_c_inline=$ac_kw; break
8696else
8697 echo "configure: failed program was:" >&5
8698 cat conftest.$ac_ext >&5
8699fi
8700rm -f conftest*
8701done
8702
8703fi
8704
8705echo "$ac_t""$ac_cv_c_inline" 1>&6
8706case "$ac_cv_c_inline" in
8707 inline | yes) ;;
8708 no) cat >> confdefs.h <<\EOF
8709#define inline
8710EOF
8711 ;;
8712 *) cat >> confdefs.h <<EOF
8713#define inline $ac_cv_c_inline
8714EOF
8715 ;;
8716esac
8717
8718
8719echo $ac_n "checking size of char""... $ac_c" 1>&6
4882bf1b 8720echo "configure:8721: checking size of char" >&5
a16d3c04
KB
8721if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
8722 echo $ac_n "(cached) $ac_c" 1>&6
8723else
8724 if test "$cross_compiling" = yes; then
8725 ac_cv_sizeof_char=1
8726else
8727 cat > conftest.$ac_ext <<EOF
4882bf1b 8728#line 8729 "configure"
a16d3c04
KB
8729#include "confdefs.h"
8730#include <stdio.h>
8731main()
8732{
8733 FILE *f=fopen("conftestval", "w");
8734 if (!f) exit(1);
8735 fprintf(f, "%d\n", sizeof(char));
8736 exit(0);
8737}
8738EOF
4882bf1b 8739if { (eval echo configure:8740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
8740then
8741 ac_cv_sizeof_char=`cat conftestval`
8742else
8743 echo "configure: failed program was:" >&5
8744 cat conftest.$ac_ext >&5
8745 rm -fr conftest*
8746 ac_cv_sizeof_char=0
8747fi
8748rm -fr conftest*
8749fi
8750
8751fi
8752echo "$ac_t""$ac_cv_sizeof_char" 1>&6
8753cat >> confdefs.h <<EOF
8754#define SIZEOF_CHAR $ac_cv_sizeof_char
8755EOF
8756
8757
8758echo $ac_n "checking size of short""... $ac_c" 1>&6
4882bf1b 8759echo "configure:8760: checking size of short" >&5
a16d3c04
KB
8760if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
8761 echo $ac_n "(cached) $ac_c" 1>&6
8762else
8763 if test "$cross_compiling" = yes; then
8764 ac_cv_sizeof_short=2
8765else
8766 cat > conftest.$ac_ext <<EOF
4882bf1b 8767#line 8768 "configure"
a16d3c04
KB
8768#include "confdefs.h"
8769#include <stdio.h>
8770main()
8771{
8772 FILE *f=fopen("conftestval", "w");
8773 if (!f) exit(1);
8774 fprintf(f, "%d\n", sizeof(short));
8775 exit(0);
8776}
8777EOF
4882bf1b 8778if { (eval echo configure:8779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
8779then
8780 ac_cv_sizeof_short=`cat conftestval`
8781else
8782 echo "configure: failed program was:" >&5
8783 cat conftest.$ac_ext >&5
8784 rm -fr conftest*
8785 ac_cv_sizeof_short=0
8786fi
8787rm -fr conftest*
8788fi
8789
8790fi
8791echo "$ac_t""$ac_cv_sizeof_short" 1>&6
8792cat >> confdefs.h <<EOF
8793#define SIZEOF_SHORT $ac_cv_sizeof_short
8794EOF
8795
8796
8797echo $ac_n "checking size of int *""... $ac_c" 1>&6
4882bf1b 8798echo "configure:8799: checking size of int *" >&5
a16d3c04
KB
8799if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
8800 echo $ac_n "(cached) $ac_c" 1>&6
8801else
8802 if test "$cross_compiling" = yes; then
8803 ac_cv_sizeof_int_p=4
8804else
8805 cat > conftest.$ac_ext <<EOF
4882bf1b 8806#line 8807 "configure"
a16d3c04
KB
8807#include "confdefs.h"
8808#include <stdio.h>
8809main()
8810{
8811 FILE *f=fopen("conftestval", "w");
8812 if (!f) exit(1);
8813 fprintf(f, "%d\n", sizeof(int *));
8814 exit(0);
8815}
8816EOF
4882bf1b 8817if { (eval echo configure:8818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
8818then
8819 ac_cv_sizeof_int_p=`cat conftestval`
8820else
8821 echo "configure: failed program was:" >&5
8822 cat conftest.$ac_ext >&5
8823 rm -fr conftest*
8824 ac_cv_sizeof_int_p=0
8825fi
8826rm -fr conftest*
8827fi
8828
8829fi
8830echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
8831cat >> confdefs.h <<EOF
8832#define SIZEOF_INT_P $ac_cv_sizeof_int_p
8833EOF
8834
8835
8836echo $ac_n "checking size of int""... $ac_c" 1>&6
4882bf1b 8837echo "configure:8838: checking size of int" >&5
a16d3c04
KB
8838if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
8839 echo $ac_n "(cached) $ac_c" 1>&6
8840else
8841 if test "$cross_compiling" = yes; then
8842 ac_cv_sizeof_int=4
8843else
8844 cat > conftest.$ac_ext <<EOF
4882bf1b 8845#line 8846 "configure"
a16d3c04
KB
8846#include "confdefs.h"
8847#include <stdio.h>
8848main()
8849{
8850 FILE *f=fopen("conftestval", "w");
8851 if (!f) exit(1);
8852 fprintf(f, "%d\n", sizeof(int));
8853 exit(0);
8854}
8855EOF
4882bf1b 8856if { (eval echo configure:8857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
8857then
8858 ac_cv_sizeof_int=`cat conftestval`
8859else
8860 echo "configure: failed program was:" >&5
8861 cat conftest.$ac_ext >&5
8862 rm -fr conftest*
8863 ac_cv_sizeof_int=0
8864fi
8865rm -fr conftest*
8866fi
8867
8868fi
8869echo "$ac_t""$ac_cv_sizeof_int" 1>&6
8870cat >> confdefs.h <<EOF
8871#define SIZEOF_INT $ac_cv_sizeof_int
8872EOF
8873
8874
8875echo $ac_n "checking size of long""... $ac_c" 1>&6
4882bf1b 8876echo "configure:8877: checking size of long" >&5
a16d3c04
KB
8877if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
8878 echo $ac_n "(cached) $ac_c" 1>&6
8879else
8880 if test "$cross_compiling" = yes; then
8881 ac_cv_sizeof_long=4
8882else
8883 cat > conftest.$ac_ext <<EOF
4882bf1b 8884#line 8885 "configure"
a16d3c04
KB
8885#include "confdefs.h"
8886#include <stdio.h>
8887main()
8888{
8889 FILE *f=fopen("conftestval", "w");
8890 if (!f) exit(1);
8891 fprintf(f, "%d\n", sizeof(long));
8892 exit(0);
8893}
8894EOF
4882bf1b 8895if { (eval echo configure:8896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
8896then
8897 ac_cv_sizeof_long=`cat conftestval`
8898else
8899 echo "configure: failed program was:" >&5
8900 cat conftest.$ac_ext >&5
8901 rm -fr conftest*
8902 ac_cv_sizeof_long=0
8903fi
8904rm -fr conftest*
8905fi
8906
8907fi
8908echo "$ac_t""$ac_cv_sizeof_long" 1>&6
8909cat >> confdefs.h <<EOF
8910#define SIZEOF_LONG $ac_cv_sizeof_long
8911EOF
8912
8913
8914echo $ac_n "checking size of long long""... $ac_c" 1>&6
4882bf1b 8915echo "configure:8916: checking size of long long" >&5
a16d3c04
KB
8916if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
8917 echo $ac_n "(cached) $ac_c" 1>&6
8918else
8919 if test "$cross_compiling" = yes; then
8920 ac_cv_sizeof_long_long=0
8921else
8922 cat > conftest.$ac_ext <<EOF
4882bf1b 8923#line 8924 "configure"
a16d3c04
KB
8924#include "confdefs.h"
8925#include <stdio.h>
8926main()
8927{
8928 FILE *f=fopen("conftestval", "w");
8929 if (!f) exit(1);
8930 fprintf(f, "%d\n", sizeof(long long));
8931 exit(0);
8932}
8933EOF
4882bf1b 8934if { (eval echo configure:8935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
8935then
8936 ac_cv_sizeof_long_long=`cat conftestval`
8937else
8938 echo "configure: failed program was:" >&5
8939 cat conftest.$ac_ext >&5
8940 rm -fr conftest*
8941 ac_cv_sizeof_long_long=0
8942fi
8943rm -fr conftest*
8944fi
8945
8946fi
8947echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
8948cat >> confdefs.h <<EOF
8949#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8950EOF
8951
8952
8953
8954echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4882bf1b 8955echo "configure:8956: checking whether byte ordering is bigendian" >&5
a16d3c04
KB
8956if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8957 echo $ac_n "(cached) $ac_c" 1>&6
8958else
8959 ac_cv_c_bigendian=unknown
8960# See if sys/param.h defines the BYTE_ORDER macro.
8961cat > conftest.$ac_ext <<EOF
4882bf1b 8962#line 8963 "configure"
a16d3c04
KB
8963#include "confdefs.h"
8964#include <sys/types.h>
8965#include <sys/param.h>
8966int main() {
8967
8968#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8969 bogus endian macros
8970#endif
8971; return 0; }
8972EOF
4882bf1b 8973if { (eval echo configure:8974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
8974 rm -rf conftest*
8975 # It does; now see whether it defined to BIG_ENDIAN or not.
8976cat > conftest.$ac_ext <<EOF
4882bf1b 8977#line 8978 "configure"
a16d3c04
KB
8978#include "confdefs.h"
8979#include <sys/types.h>
8980#include <sys/param.h>
8981int main() {
8982
8983#if BYTE_ORDER != BIG_ENDIAN
8984 not big endian
8985#endif
8986; return 0; }
8987EOF
4882bf1b 8988if { (eval echo configure:8989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
8989 rm -rf conftest*
8990 ac_cv_c_bigendian=yes
8991else
8992 echo "configure: failed program was:" >&5
8993 cat conftest.$ac_ext >&5
8994 rm -rf conftest*
8995 ac_cv_c_bigendian=no
8996fi
8997rm -f conftest*
8998else
8999 echo "configure: failed program was:" >&5
9000 cat conftest.$ac_ext >&5
9001fi
9002rm -f conftest*
9003if test $ac_cv_c_bigendian = unknown; then
9004if test "$cross_compiling" = yes; then
9005 ac_cv_c_bigendian=unknown
9006else
9007 cat > conftest.$ac_ext <<EOF
4882bf1b 9008#line 9009 "configure"
a16d3c04
KB
9009#include "confdefs.h"
9010main () {
9011 /* Are we little or big endian? From Harbison&Steele. */
9012 union
9013 {
9014 long l;
9015 char c[sizeof (long)];
9016 } u;
9017 u.l = 1;
9018 exit (u.c[sizeof (long) - 1] == 1);
9019}
9020EOF
4882bf1b 9021if { (eval echo configure:9022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
9022then
9023 ac_cv_c_bigendian=no
9024else
9025 echo "configure: failed program was:" >&5
9026 cat conftest.$ac_ext >&5
9027 rm -fr conftest*
9028 ac_cv_c_bigendian=yes
9029fi
9030rm -fr conftest*
9031fi
9032
9033fi
9034fi
9035
9036echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9037if test $ac_cv_c_bigendian = unknown; then
9038 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
9039fi
9040if test $ac_cv_c_bigendian = yes; then
9041 cat >> confdefs.h <<\EOF
9042#define WORDS_BIGENDIAN 1
9043EOF
9044
9045fi
9046
9047
9048
9049 if test "$cross_compiling" = "yes"; then
9050 cat >> confdefs.h <<\EOF
9051#define wxUSE_IOSTREAMH 1
9052EOF
9053
9054 else
9055
9056 ac_ext=C
9057# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9058ac_cpp='$CXXCPP $CPPFLAGS'
9059ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
0709ee62 9060ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
9061cross_compiling=$ac_cv_prog_cxx_cross
9062
9063
9064 for ac_hdr in iostream
9065do
9066ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9067echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4882bf1b 9068echo "configure:9069: checking for $ac_hdr" >&5
a16d3c04
KB
9069if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9070 echo $ac_n "(cached) $ac_c" 1>&6
9071else
9072 cat > conftest.$ac_ext <<EOF
4882bf1b 9073#line 9074 "configure"
a16d3c04
KB
9074#include "confdefs.h"
9075#include <$ac_hdr>
9076EOF
9077ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4882bf1b 9078{ (eval echo configure:9079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0709ee62 9079ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
9080if test -z "$ac_err"; then
9081 rm -rf conftest*
9082 eval "ac_cv_header_$ac_safe=yes"
9083else
9084 echo "$ac_err" >&5
9085 echo "configure: failed program was:" >&5
9086 cat conftest.$ac_ext >&5
9087 rm -rf conftest*
9088 eval "ac_cv_header_$ac_safe=no"
9089fi
9090rm -f conftest*
9091fi
9092if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9093 echo "$ac_t""yes" 1>&6
9094 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9095 cat >> confdefs.h <<EOF
9096#define $ac_tr_hdr 1
9097EOF
9098
9099else
9100 echo "$ac_t""no" 1>&6
9101fi
9102done
9103
9104
9105 if test "x$HAVE_IOSTREAM" = x ; then
9106 cat >> confdefs.h <<\EOF
9107#define wxUSE_IOSTREAMH 1
9108EOF
9109
9110 else
9111 :
9112 fi
9113
9114 ac_ext=c
9115# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9116ac_cpp='$CPP $CPPFLAGS'
9117ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
0709ee62 9118ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
9119cross_compiling=$ac_cv_prog_cc_cross
9120
9121 fi
9122
9123
9124
9125 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
4882bf1b 9126echo "configure:9127: checking if C++ compiler supports bool" >&5
a16d3c04
KB
9127if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9128 echo $ac_n "(cached) $ac_c" 1>&6
9129else
9130
9131
9132 ac_ext=C
9133# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9134ac_cpp='$CXXCPP $CPPFLAGS'
9135ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
0709ee62 9136ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
9137cross_compiling=$ac_cv_prog_cxx_cross
9138
9139
9140 cat > conftest.$ac_ext <<EOF
4882bf1b 9141#line 9142 "configure"
a16d3c04
KB
9142#include "confdefs.h"
9143
9144
9145int main() {
9146
9147 bool b = true;
9148
9149 return 0;
9150
9151; return 0; }
9152EOF
4882bf1b 9153if { (eval echo configure:9154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
9154 rm -rf conftest*
9155
9156 cat >> confdefs.h <<\EOF
9157#define HAVE_BOOL 1
9158EOF
9159
9160 wx_cv_cpp_bool=yes
9161
9162else
9163 echo "configure: failed program was:" >&5
9164 cat conftest.$ac_ext >&5
9165 rm -rf conftest*
9166
9167 wx_cv_cpp_bool=no
9168
9169
9170fi
9171rm -f conftest*
9172
9173 ac_ext=c
9174# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9175ac_cpp='$CPP $CPPFLAGS'
9176ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
0709ee62 9177ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
9178cross_compiling=$ac_cv_prog_cc_cross
9179
9180
9181fi
9182
9183echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9184
9185 if test "$wx_cv_cpp_bool" = "yes"; then
9186 cat >> confdefs.h <<\EOF
9187#define HAVE_BOOL 1
9188EOF
9189
9190 fi
9191
9192
9193
9194 echo $ac_n "checking if size_t and int are different types""... $ac_c" 1>&6
4882bf1b 9195echo "configure:9196: checking if size_t and int are different types" >&5
a16d3c04
KB
9196if eval "test \"`echo '$''{'wx_cv_cpp_sizet_not_int'+set}'`\" = set"; then
9197 echo $ac_n "(cached) $ac_c" 1>&6
9198else
9199
9200
9201 ac_ext=C
9202# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9203ac_cpp='$CXXCPP $CPPFLAGS'
9204ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
0709ee62 9205ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
9206cross_compiling=$ac_cv_prog_cxx_cross
9207
9208
9209 if test "$cross_compiling" = yes; then
9210 wx_cv_cpp_sizet_not_int=no
9211
9212else
9213 cat > conftest.$ac_ext <<EOF
4882bf1b 9214#line 9215 "configure"
a16d3c04
KB
9215#include "confdefs.h"
9216#ifdef __cplusplus
9217extern "C" void exit(int);
9218#endif
9219
9220 #include <stdlib.h>
9221
9222 class S
9223 {
9224 public:
9225 S(char *s) { m_s = s; }
9226
9227 char operator[](size_t n) const { return m_s[n]; }
9228 char operator[](int n) const { return m_s[n]; }
9229
9230 private:
9231 char *m_s;
9232 };
9233
9234 int main()
9235 {
9236 S s("dummy");
9237 size_t n1 = 2;
9238 int n2 = 3;
9239
9240 return s[n1] == s[n2];
9241 }
9242
9243EOF
4882bf1b 9244if { (eval echo configure:9245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
9245then
9246 cat >> confdefs.h <<\EOF
9247#define wxUSE_SIZE_T_STRING_OPERATOR 1
9248EOF
9249 wx_cv_cpp_sizet_not_int=yes
9250else
9251 echo "configure: failed program was:" >&5
9252 cat conftest.$ac_ext >&5
9253 rm -fr conftest*
9254 wx_cv_cpp_sizet_not_int=no
9255fi
9256rm -fr conftest*
9257fi
9258
9259
9260 ac_ext=c
9261# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9262ac_cpp='$CPP $CPPFLAGS'
9263ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
0709ee62 9264ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
9265cross_compiling=$ac_cv_prog_cc_cross
9266
9267
9268fi
9269
9270echo "$ac_t""$wx_cv_cpp_sizet_not_int" 1>&6
9271
9272
9273
9274echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
4882bf1b 9275echo "configure:9276: checking if you need GNU extensions" >&5
a16d3c04
KB
9276if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9277 echo $ac_n "(cached) $ac_c" 1>&6
9278else
9279
9280 cat > conftest.$ac_ext <<EOF
4882bf1b 9281#line 9282 "configure"
a16d3c04
KB
9282#include "confdefs.h"
9283#include <features.h>
9284int main() {
9285
9286
9287#ifndef __GNU_LIBRARY__
9288 Compile error wanted
9289#endif
9290
9291
9292; return 0; }
9293EOF
4882bf1b 9294if { (eval echo configure:9295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
9295 rm -rf conftest*
9296 wx_cv_gnu_extensions=yes
9297else
9298 echo "configure: failed program was:" >&5
9299 cat conftest.$ac_ext >&5
9300 rm -rf conftest*
9301 wx_cv_gnu_extensions=no
9302fi
9303rm -f conftest*
9304
9305fi
9306
9307
9308echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9309if test "$wx_cv_gnu_extensions" = "yes"; then
9310 cat >> confdefs.h <<EOF
9311#define _GNU_SOURCE 1
9312EOF
9313
9314fi
9315
9316
9317
9318echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
4882bf1b 9319echo "configure:9320: checking for wcslen in -lc" >&5
a16d3c04
KB
9320ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9321if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9322 echo $ac_n "(cached) $ac_c" 1>&6
9323else
9324 ac_save_LIBS="$LIBS"
9325LIBS="-lc $LIBS"
9326cat > conftest.$ac_ext <<EOF
4882bf1b 9327#line 9328 "configure"
a16d3c04
KB
9328#include "confdefs.h"
9329/* Override any gcc2 internal prototype to avoid an error. */
9330/* We use char because int might match the return type of a gcc2
9331 builtin and then its argument prototype would still apply. */
9332char wcslen();
9333
9334int main() {
9335wcslen()
9336; return 0; }
9337EOF
4882bf1b 9338if { (eval echo configure:9339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9339 rm -rf conftest*
9340 eval "ac_cv_lib_$ac_lib_var=yes"
9341else
9342 echo "configure: failed program was:" >&5
9343 cat conftest.$ac_ext >&5
9344 rm -rf conftest*
9345 eval "ac_cv_lib_$ac_lib_var=no"
9346fi
9347rm -f conftest*
9348LIBS="$ac_save_LIBS"
9349
9350fi
9351if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9352 echo "$ac_t""yes" 1>&6
9353
9354 cat >> confdefs.h <<\EOF
9355#define HAVE_WCSLEN 1
9356EOF
9357
9358 WCHAR_LINK=""
9359
9360else
9361 echo "$ac_t""no" 1>&6
9362
9363 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
4882bf1b 9364echo "configure:9365: checking for wcslen in -lw" >&5
a16d3c04
KB
9365ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9366if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9367 echo $ac_n "(cached) $ac_c" 1>&6
9368else
9369 ac_save_LIBS="$LIBS"
9370LIBS="-lw $LIBS"
9371cat > conftest.$ac_ext <<EOF
4882bf1b 9372#line 9373 "configure"
a16d3c04
KB
9373#include "confdefs.h"
9374/* Override any gcc2 internal prototype to avoid an error. */
9375/* We use char because int might match the return type of a gcc2
9376 builtin and then its argument prototype would still apply. */
9377char wcslen();
9378
9379int main() {
9380wcslen()
9381; return 0; }
9382EOF
4882bf1b 9383if { (eval echo configure:9384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9384 rm -rf conftest*
9385 eval "ac_cv_lib_$ac_lib_var=yes"
9386else
9387 echo "configure: failed program was:" >&5
9388 cat conftest.$ac_ext >&5
9389 rm -rf conftest*
9390 eval "ac_cv_lib_$ac_lib_var=no"
9391fi
9392rm -f conftest*
9393LIBS="$ac_save_LIBS"
9394
9395fi
9396if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9397 echo "$ac_t""yes" 1>&6
9398
9399 cat >> confdefs.h <<\EOF
9400#define HAVE_WCSLEN 1
9401EOF
9402
9403 WCHAR_LINK="-lw"
9404
9405else
9406 echo "$ac_t""no" 1>&6
9407fi
9408
9409
9410fi
9411
9412
9413echo $ac_n "checking for vprintf""... $ac_c" 1>&6
4882bf1b 9414echo "configure:9415: checking for vprintf" >&5
a16d3c04
KB
9415if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9416 echo $ac_n "(cached) $ac_c" 1>&6
9417else
9418 cat > conftest.$ac_ext <<EOF
4882bf1b 9419#line 9420 "configure"
a16d3c04
KB
9420#include "confdefs.h"
9421/* System header to define __stub macros and hopefully few prototypes,
9422 which can conflict with char vprintf(); below. */
9423#include <assert.h>
9424/* Override any gcc2 internal prototype to avoid an error. */
9425/* We use char because int might match the return type of a gcc2
9426 builtin and then its argument prototype would still apply. */
9427char vprintf();
9428
9429int main() {
9430
9431/* The GNU C library defines this for functions which it implements
9432 to always fail with ENOSYS. Some functions are actually named
9433 something starting with __ and the normal name is an alias. */
9434#if defined (__stub_vprintf) || defined (__stub___vprintf)
9435choke me
9436#else
2726c66d 9437vprintf();
a16d3c04
KB
9438#endif
9439
9440; return 0; }
9441EOF
4882bf1b 9442if { (eval echo configure:9443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9443 rm -rf conftest*
9444 eval "ac_cv_func_vprintf=yes"
9445else
9446 echo "configure: failed program was:" >&5
9447 cat conftest.$ac_ext >&5
9448 rm -rf conftest*
9449 eval "ac_cv_func_vprintf=no"
9450fi
9451rm -f conftest*
9452fi
9453
9454if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9455 echo "$ac_t""yes" 1>&6
9456 cat >> confdefs.h <<\EOF
9457#define HAVE_VPRINTF 1
9458EOF
9459
9460else
9461 echo "$ac_t""no" 1>&6
9462fi
9463
9464if test "$ac_cv_func_vprintf" != yes; then
9465echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
4882bf1b 9466echo "configure:9467: checking for _doprnt" >&5
a16d3c04
KB
9467if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9468 echo $ac_n "(cached) $ac_c" 1>&6
9469else
9470 cat > conftest.$ac_ext <<EOF
4882bf1b 9471#line 9472 "configure"
a16d3c04
KB
9472#include "confdefs.h"
9473/* System header to define __stub macros and hopefully few prototypes,
9474 which can conflict with char _doprnt(); below. */
9475#include <assert.h>
9476/* Override any gcc2 internal prototype to avoid an error. */
9477/* We use char because int might match the return type of a gcc2
9478 builtin and then its argument prototype would still apply. */
9479char _doprnt();
9480
9481int main() {
9482
9483/* The GNU C library defines this for functions which it implements
9484 to always fail with ENOSYS. Some functions are actually named
9485 something starting with __ and the normal name is an alias. */
9486#if defined (__stub__doprnt) || defined (__stub____doprnt)
9487choke me
9488#else
2726c66d 9489_doprnt();
a16d3c04
KB
9490#endif
9491
9492; return 0; }
9493EOF
4882bf1b 9494if { (eval echo configure:9495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9495 rm -rf conftest*
9496 eval "ac_cv_func__doprnt=yes"
9497else
9498 echo "configure: failed program was:" >&5
9499 cat conftest.$ac_ext >&5
9500 rm -rf conftest*
9501 eval "ac_cv_func__doprnt=no"
9502fi
9503rm -f conftest*
9504fi
9505
9506if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9507 echo "$ac_t""yes" 1>&6
9508 cat >> confdefs.h <<\EOF
9509#define HAVE_DOPRNT 1
9510EOF
9511
9512else
9513 echo "$ac_t""no" 1>&6
9514fi
9515
9516fi
9517
9518
9519for ac_func in vsnprintf
9520do
9521echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4882bf1b 9522echo "configure:9523: checking for $ac_func" >&5
a16d3c04
KB
9523if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9524 echo $ac_n "(cached) $ac_c" 1>&6
9525else
9526 cat > conftest.$ac_ext <<EOF
4882bf1b 9527#line 9528 "configure"
a16d3c04
KB
9528#include "confdefs.h"
9529/* System header to define __stub macros and hopefully few prototypes,
9530 which can conflict with char $ac_func(); below. */
9531#include <assert.h>
9532/* Override any gcc2 internal prototype to avoid an error. */
9533/* We use char because int might match the return type of a gcc2
9534 builtin and then its argument prototype would still apply. */
9535char $ac_func();
9536
9537int main() {
9538
9539/* The GNU C library defines this for functions which it implements
9540 to always fail with ENOSYS. Some functions are actually named
9541 something starting with __ and the normal name is an alias. */
9542#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9543choke me
9544#else
2726c66d 9545$ac_func();
a16d3c04
KB
9546#endif
9547
9548; return 0; }
9549EOF
4882bf1b 9550if { (eval echo configure:9551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9551 rm -rf conftest*
9552 eval "ac_cv_func_$ac_func=yes"
9553else
9554 echo "configure: failed program was:" >&5
9555 cat conftest.$ac_ext >&5
9556 rm -rf conftest*
9557 eval "ac_cv_func_$ac_func=no"
9558fi
9559rm -f conftest*
9560fi
9561
9562if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9563 echo "$ac_t""yes" 1>&6
9564 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9565 cat >> confdefs.h <<EOF
9566#define $ac_tr_func 1
9567EOF
9568 cat >> confdefs.h <<\EOF
9569#define HAVE_VSNPRINTF 1
9570EOF
9571
9572else
9573 echo "$ac_t""no" 1>&6
9574echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9575
9576fi
9577done
9578
9579
9580
9581ac_ext=C
9582# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9583ac_cpp='$CXXCPP $CPPFLAGS'
9584ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
0709ee62 9585ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
9586cross_compiling=$ac_cv_prog_cxx_cross
9587
9588
9589echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
4882bf1b 9590echo "configure:9591: checking for vsscanf" >&5
a16d3c04
KB
9591if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
9592 echo $ac_n "(cached) $ac_c" 1>&6
9593else
9594
9595 if test "$cross_compiling" = yes; then
9596 wx_cv_func_vsscanf=no
9597
9598else
9599 cat > conftest.$ac_ext <<EOF
4882bf1b 9600#line 9601 "configure"
a16d3c04
KB
9601#include "confdefs.h"
9602#ifdef __cplusplus
9603extern "C" void exit(int);
9604#endif
9605
9606 #include <stdio.h>
9607 #include <stdarg.h>
9608
9609 int try_vsscanf(const char *format, ...)
9610 {
9611 va_list ap;
9612 va_start(ap, format);
9613
9614 vsscanf("17", format, ap);
9615
9616 va_end(ap);
9617 }
9618
9619 int main()
9620 {
9621 int i;
9622 try_vsscanf("%d", &i);
9623 return i == 17 ? 0 : 1;
9624 }
9625
9626EOF
4882bf1b 9627if { (eval echo configure:9628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a16d3c04
KB
9628then
9629
9630 cat >> confdefs.h <<\EOF
9631#define HAVE_VSSCANF 1
9632EOF
9633
9634 wx_cv_func_vsscanf=yes
9635
9636else
9637 echo "configure: failed program was:" >&5
9638 cat conftest.$ac_ext >&5
9639 rm -fr conftest*
9640 wx_cv_func_vsscanf=no
9641fi
9642rm -fr conftest*
9643fi
9644
9645
9646fi
9647
9648echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
9649
9650ac_ext=c
9651# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9652ac_cpp='$CPP $CPPFLAGS'
9653ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
0709ee62 9654ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
9655cross_compiling=$ac_cv_prog_cc_cross
9656
9657
a0c79abb
VZ
9658if test "$USE_UNIX" = 1; then
9659
a16d3c04
KB
9660for ac_func in vfork
9661do
9662echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4882bf1b 9663echo "configure:9664: checking for $ac_func" >&5
a16d3c04
KB
9664if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9665 echo $ac_n "(cached) $ac_c" 1>&6
9666else
9667 cat > conftest.$ac_ext <<EOF
4882bf1b 9668#line 9669 "configure"
a16d3c04
KB
9669#include "confdefs.h"
9670/* System header to define __stub macros and hopefully few prototypes,
9671 which can conflict with char $ac_func(); below. */
9672#include <assert.h>
9673/* Override any gcc2 internal prototype to avoid an error. */
9674/* We use char because int might match the return type of a gcc2
9675 builtin and then its argument prototype would still apply. */
9676char $ac_func();
9677
9678int main() {
9679
9680/* The GNU C library defines this for functions which it implements
9681 to always fail with ENOSYS. Some functions are actually named
9682 something starting with __ and the normal name is an alias. */
9683#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9684choke me
9685#else
2726c66d 9686$ac_func();
a16d3c04
KB
9687#endif
9688
9689; return 0; }
9690EOF
4882bf1b 9691if { (eval echo configure:9692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9692 rm -rf conftest*
9693 eval "ac_cv_func_$ac_func=yes"
9694else
9695 echo "configure: failed program was:" >&5
9696 cat conftest.$ac_ext >&5
9697 rm -rf conftest*
9698 eval "ac_cv_func_$ac_func=no"
9699fi
9700rm -f conftest*
9701fi
9702
9703if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9704 echo "$ac_t""yes" 1>&6
9705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9706 cat >> confdefs.h <<EOF
9707#define $ac_tr_func 1
9708EOF
9709
9710else
9711 echo "$ac_t""no" 1>&6
9712fi
9713done
9714
9715
9716POSIX4_LINK=
9717for ac_func in nanosleep
9718do
9719echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4882bf1b 9720echo "configure:9721: checking for $ac_func" >&5
a16d3c04
KB
9721if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9722 echo $ac_n "(cached) $ac_c" 1>&6
9723else
9724 cat > conftest.$ac_ext <<EOF
4882bf1b 9725#line 9726 "configure"
a16d3c04
KB
9726#include "confdefs.h"
9727/* System header to define __stub macros and hopefully few prototypes,
9728 which can conflict with char $ac_func(); below. */
9729#include <assert.h>
9730/* Override any gcc2 internal prototype to avoid an error. */
9731/* We use char because int might match the return type of a gcc2
9732 builtin and then its argument prototype would still apply. */
9733char $ac_func();
9734
9735int main() {
9736
9737/* The GNU C library defines this for functions which it implements
9738 to always fail with ENOSYS. Some functions are actually named
9739 something starting with __ and the normal name is an alias. */
9740#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9741choke me
9742#else
2726c66d 9743$ac_func();
a16d3c04
KB
9744#endif
9745
9746; return 0; }
9747EOF
4882bf1b 9748if { (eval echo configure:9749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9749 rm -rf conftest*
9750 eval "ac_cv_func_$ac_func=yes"
9751else
9752 echo "configure: failed program was:" >&5
9753 cat conftest.$ac_ext >&5
9754 rm -rf conftest*
9755 eval "ac_cv_func_$ac_func=no"
9756fi
9757rm -f conftest*
9758fi
9759
9760if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9761 echo "$ac_t""yes" 1>&6
9762 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9763 cat >> confdefs.h <<EOF
9764#define $ac_tr_func 1
9765EOF
9766 cat >> confdefs.h <<\EOF
9767#define HAVE_NANOSLEEP 1
9768EOF
9769
9770else
9771 echo "$ac_t""no" 1>&6
9772echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
4882bf1b 9773echo "configure:9774: checking for nanosleep in -lposix4" >&5
a16d3c04
KB
9774ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
9775if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9776 echo $ac_n "(cached) $ac_c" 1>&6
9777else
9778 ac_save_LIBS="$LIBS"
9779LIBS="-lposix4 $LIBS"
9780cat > conftest.$ac_ext <<EOF
4882bf1b 9781#line 9782 "configure"
a16d3c04
KB
9782#include "confdefs.h"
9783/* Override any gcc2 internal prototype to avoid an error. */
9784/* We use char because int might match the return type of a gcc2
9785 builtin and then its argument prototype would still apply. */
9786char nanosleep();
9787
9788int main() {
9789nanosleep()
9790; return 0; }
9791EOF
4882bf1b 9792if { (eval echo configure:9793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9793 rm -rf conftest*
9794 eval "ac_cv_lib_$ac_lib_var=yes"
9795else
9796 echo "configure: failed program was:" >&5
9797 cat conftest.$ac_ext >&5
9798 rm -rf conftest*
9799 eval "ac_cv_lib_$ac_lib_var=no"
9800fi
9801rm -f conftest*
9802LIBS="$ac_save_LIBS"
9803
9804fi
9805if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9806 echo "$ac_t""yes" 1>&6
9807
9808 cat >> confdefs.h <<\EOF
9809#define HAVE_NANOSLEEP 1
9810EOF
9811
9812 POSIX4_LINK="-lposix4"
9813
9814else
9815 echo "$ac_t""no" 1>&6
9816
9817 for ac_func in usleep
9818do
9819echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4882bf1b 9820echo "configure:9821: checking for $ac_func" >&5
a16d3c04
KB
9821if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9822 echo $ac_n "(cached) $ac_c" 1>&6
9823else
9824 cat > conftest.$ac_ext <<EOF
4882bf1b 9825#line 9826 "configure"
a16d3c04
KB
9826#include "confdefs.h"
9827/* System header to define __stub macros and hopefully few prototypes,
9828 which can conflict with char $ac_func(); below. */
9829#include <assert.h>
9830/* Override any gcc2 internal prototype to avoid an error. */
9831/* We use char because int might match the return type of a gcc2
9832 builtin and then its argument prototype would still apply. */
9833char $ac_func();
9834
9835int main() {
9836
9837/* The GNU C library defines this for functions which it implements
9838 to always fail with ENOSYS. Some functions are actually named
9839 something starting with __ and the normal name is an alias. */
9840#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9841choke me
9842#else
2726c66d 9843$ac_func();
a16d3c04
KB
9844#endif
9845
9846; return 0; }
9847EOF
4882bf1b 9848if { (eval echo configure:9849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9849 rm -rf conftest*
9850 eval "ac_cv_func_$ac_func=yes"
9851else
9852 echo "configure: failed program was:" >&5
9853 cat conftest.$ac_ext >&5
9854 rm -rf conftest*
9855 eval "ac_cv_func_$ac_func=no"
9856fi
9857rm -f conftest*
9858fi
9859
9860if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9861 echo "$ac_t""yes" 1>&6
9862 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9863 cat >> confdefs.h <<EOF
9864#define $ac_tr_func 1
9865EOF
9866 cat >> confdefs.h <<\EOF
9867#define HAVE_USLEEP 1
9868EOF
9869
9870else
9871 echo "$ac_t""no" 1>&6
9872echo "configure: warning: wxSleep() function will not work" 1>&2
9873fi
9874done
9875
9876
9877fi
9878
9879
9880fi
9881done
9882
9883
9884for ac_func in uname gethostname
9885do
9886echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4882bf1b 9887echo "configure:9888: checking for $ac_func" >&5
a16d3c04
KB
9888if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9889 echo $ac_n "(cached) $ac_c" 1>&6
9890else
9891 cat > conftest.$ac_ext <<EOF
4882bf1b 9892#line 9893 "configure"
a16d3c04
KB
9893#include "confdefs.h"
9894/* System header to define __stub macros and hopefully few prototypes,
9895 which can conflict with char $ac_func(); below. */
9896#include <assert.h>
9897/* Override any gcc2 internal prototype to avoid an error. */
9898/* We use char because int might match the return type of a gcc2
9899 builtin and then its argument prototype would still apply. */
9900char $ac_func();
9901
9902int main() {
9903
9904/* The GNU C library defines this for functions which it implements
9905 to always fail with ENOSYS. Some functions are actually named
9906 something starting with __ and the normal name is an alias. */
9907#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9908choke me
9909#else
2726c66d 9910$ac_func();
a16d3c04
KB
9911#endif
9912
9913; return 0; }
9914EOF
4882bf1b 9915if { (eval echo configure:9916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
9916 rm -rf conftest*
9917 eval "ac_cv_func_$ac_func=yes"
9918else
9919 echo "configure: failed program was:" >&5
9920 cat conftest.$ac_ext >&5
9921 rm -rf conftest*
9922 eval "ac_cv_func_$ac_func=no"
9923fi
9924rm -f conftest*
9925fi
9926
9927if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9928 echo "$ac_t""yes" 1>&6
9929 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9930 cat >> confdefs.h <<EOF
9931#define $ac_tr_func 1
9932EOF
9933 break
9934else
9935 echo "$ac_t""no" 1>&6
9936fi
9937done
9938
9939
f7a11f8c
RR
9940for ac_func in strtok_r
9941do
9942echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4882bf1b 9943echo "configure:9944: checking for $ac_func" >&5
f7a11f8c
RR
9944if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9945 echo $ac_n "(cached) $ac_c" 1>&6
9946else
9947 cat > conftest.$ac_ext <<EOF
4882bf1b 9948#line 9949 "configure"
f7a11f8c
RR
9949#include "confdefs.h"
9950/* System header to define __stub macros and hopefully few prototypes,
9951 which can conflict with char $ac_func(); below. */
9952#include <assert.h>
9953/* Override any gcc2 internal prototype to avoid an error. */
9954/* We use char because int might match the return type of a gcc2
9955 builtin and then its argument prototype would still apply. */
9956char $ac_func();
f7a11f8c
RR
9957
9958int main() {
9959
9960/* The GNU C library defines this for functions which it implements
9961 to always fail with ENOSYS. Some functions are actually named
9962 something starting with __ and the normal name is an alias. */
9963#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9964choke me
9965#else
2726c66d 9966$ac_func();
f7a11f8c
RR
9967#endif
9968
9969; return 0; }
9970EOF
4882bf1b 9971if { (eval echo configure:9972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f7a11f8c
RR
9972 rm -rf conftest*
9973 eval "ac_cv_func_$ac_func=yes"
9974else
9975 echo "configure: failed program was:" >&5
9976 cat conftest.$ac_ext >&5
9977 rm -rf conftest*
9978 eval "ac_cv_func_$ac_func=no"
9979fi
9980rm -f conftest*
9981fi
9982
9983if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9984 echo "$ac_t""yes" 1>&6
9985 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9986 cat >> confdefs.h <<EOF
9987#define $ac_tr_func 1
9988EOF
9989
9990else
9991 echo "$ac_t""no" 1>&6
9992fi
9993done
9994
9995
a16d3c04
KB
9996for ac_func in inet_addr
9997do
9998echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4882bf1b 9999echo "configure:10000: checking for $ac_func" >&5
a16d3c04
KB
10000if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10001 echo $ac_n "(cached) $ac_c" 1>&6
10002else
10003 cat > conftest.$ac_ext <<EOF
4882bf1b 10004#line 10005 "configure"
a16d3c04
KB
10005#include "confdefs.h"
10006/* System header to define __stub macros and hopefully few prototypes,
10007 which can conflict with char $ac_func(); below. */
10008#include <assert.h>
10009/* Override any gcc2 internal prototype to avoid an error. */
10010/* We use char because int might match the return type of a gcc2
10011 builtin and then its argument prototype would still apply. */
10012char $ac_func();
10013
10014int main() {
10015
10016/* The GNU C library defines this for functions which it implements
10017 to always fail with ENOSYS. Some functions are actually named
10018 something starting with __ and the normal name is an alias. */
10019#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10020choke me
10021#else
2726c66d 10022$ac_func();
a16d3c04
KB
10023#endif
10024
10025; return 0; }
10026EOF
4882bf1b 10027if { (eval echo configure:10028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10028 rm -rf conftest*
10029 eval "ac_cv_func_$ac_func=yes"
10030else
10031 echo "configure: failed program was:" >&5
10032 cat conftest.$ac_ext >&5
10033 rm -rf conftest*
10034 eval "ac_cv_func_$ac_func=no"
10035fi
10036rm -f conftest*
10037fi
10038
10039if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10040 echo "$ac_t""yes" 1>&6
10041 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10042 cat >> confdefs.h <<EOF
10043#define $ac_tr_func 1
10044EOF
10045
10046else
10047 echo "$ac_t""no" 1>&6
10048fi
10049done
10050
10051for ac_func in inet_aton
10052do
10053echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4882bf1b 10054echo "configure:10055: checking for $ac_func" >&5
a16d3c04
KB
10055if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10056 echo $ac_n "(cached) $ac_c" 1>&6
10057else
10058 cat > conftest.$ac_ext <<EOF
4882bf1b 10059#line 10060 "configure"
a16d3c04
KB
10060#include "confdefs.h"
10061/* System header to define __stub macros and hopefully few prototypes,
10062 which can conflict with char $ac_func(); below. */
10063#include <assert.h>
10064/* Override any gcc2 internal prototype to avoid an error. */
10065/* We use char because int might match the return type of a gcc2
10066 builtin and then its argument prototype would still apply. */
10067char $ac_func();
10068
10069int main() {
10070
10071/* The GNU C library defines this for functions which it implements
10072 to always fail with ENOSYS. Some functions are actually named
10073 something starting with __ and the normal name is an alias. */
10074#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10075choke me
10076#else
2726c66d 10077$ac_func();
a16d3c04
KB
10078#endif
10079
10080; return 0; }
10081EOF
4882bf1b 10082if { (eval echo configure:10083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10083 rm -rf conftest*
10084 eval "ac_cv_func_$ac_func=yes"
10085else
10086 echo "configure: failed program was:" >&5
10087 cat conftest.$ac_ext >&5
10088 rm -rf conftest*
10089 eval "ac_cv_func_$ac_func=no"
10090fi
10091rm -f conftest*
10092fi
10093
10094if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10095 echo "$ac_t""yes" 1>&6
10096 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10097 cat >> confdefs.h <<EOF
10098#define $ac_tr_func 1
10099EOF
10100
10101else
10102 echo "$ac_t""no" 1>&6
10103fi
10104done
10105
10106echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
4882bf1b 10107echo "configure:10108: checking for inet_aton in -lresolv" >&5
a16d3c04
KB
10108ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
10109if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10110 echo $ac_n "(cached) $ac_c" 1>&6
10111else
10112 ac_save_LIBS="$LIBS"
10113LIBS="-lresolv $LIBS"
10114cat > conftest.$ac_ext <<EOF
4882bf1b 10115#line 10116 "configure"
a16d3c04
KB
10116#include "confdefs.h"
10117/* Override any gcc2 internal prototype to avoid an error. */
10118/* We use char because int might match the return type of a gcc2
10119 builtin and then its argument prototype would still apply. */
10120char inet_aton();
10121
10122int main() {
10123inet_aton()
10124; return 0; }
10125EOF
4882bf1b 10126if { (eval echo configure:10127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10127 rm -rf conftest*
10128 eval "ac_cv_lib_$ac_lib_var=yes"
10129else
10130 echo "configure: failed program was:" >&5
10131 cat conftest.$ac_ext >&5
10132 rm -rf conftest*
10133 eval "ac_cv_lib_$ac_lib_var=no"
10134fi
10135rm -f conftest*
10136LIBS="$ac_save_LIBS"
10137
10138fi
10139if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10140 echo "$ac_t""yes" 1>&6
10141 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10142 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10143 cat >> confdefs.h <<EOF
10144#define $ac_tr_lib 1
10145EOF
10146
10147 LIBS="-lresolv $LIBS"
10148
10149else
10150 echo "$ac_t""no" 1>&6
10151fi
10152
10153
a0c79abb
VZ
10154fi
10155
a16d3c04
KB
10156
10157cat > confcache <<\EOF
10158# This file is a shell script that caches the results of configure
10159# tests run on this system so they can be shared between configure
10160# scripts and configure runs. It is not useful on other systems.
10161# If it contains results you don't want to keep, you may remove or edit it.
10162#
10163# By default, configure uses ./config.cache as the cache file,
10164# creating it if it does not exist already. You can give configure
10165# the --cache-file=FILE option to use a different cache file; that is
10166# what configure does when it calls configure scripts in
10167# subdirectories, so they share the cache.
10168# Giving --cache-file=/dev/null disables caching, for debugging configure.
10169# config.status only pays attention to the cache file if you give it the
10170# --recheck option to rerun configure.
10171#
10172EOF
10173# The following way of writing the cache mishandles newlines in values,
10174# but we know of no workaround that is simple, portable, and efficient.
10175# So, don't put newlines in cache variables' values.
10176# Ultrix sh set writes to stderr and can't be redirected directly,
10177# and sets the high bit in the cache file unless we assign to the vars.
10178(set) 2>&1 |
0709ee62 10179 case `(ac_space=' '; set | grep ac_space) 2>&1` in
a16d3c04
KB
10180 *ac_space=\ *)
10181 # `set' does not quote correctly, so add quotes (double-quote substitution
10182 # turns \\\\ into \\, and sed turns \\ into \).
10183 sed -n \
10184 -e "s/'/'\\\\''/g" \
10185 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10186 ;;
10187 *)
10188 # `set' quotes correctly as required by POSIX, so do not add quotes.
10189 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10190 ;;
10191 esac >> confcache
10192if cmp -s $cache_file confcache; then
10193 :
10194else
10195 if test -w $cache_file; then
10196 echo "updating cache $cache_file"
10197 cat confcache > $cache_file
10198 else
10199 echo "not updating unwritable cache $cache_file"
10200 fi
10201fi
10202rm -f confcache
10203
10204
10205
10206if test "$USE_UNIX" = 1; then
10207
10208
10209THREADS_LINK=""
10210THREADS_OBJ=""
10211
10212if test "$wxUSE_THREADS" = "yes" ; then
10213 if test "$wxUSE_WINE" = 1 ; then
10214 echo "configure: warning: Threads are not supported under WINE" 1>&2
10215 wxUSE_THREADS="no"
10216 fi
10217fi
10218
10219if test "$wxUSE_THREADS" = "yes" ; then
1c8515f9 10220
a16d3c04 10221 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
4882bf1b 10222echo "configure:10223: checking for pthread_create in -lpthread" >&5
a16d3c04
KB
10223ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10224if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10225 echo $ac_n "(cached) $ac_c" 1>&6
10226else
10227 ac_save_LIBS="$LIBS"
10228LIBS="-lpthread $LIBS"
10229cat > conftest.$ac_ext <<EOF
4882bf1b 10230#line 10231 "configure"
a16d3c04
KB
10231#include "confdefs.h"
10232/* Override any gcc2 internal prototype to avoid an error. */
10233/* We use char because int might match the return type of a gcc2
10234 builtin and then its argument prototype would still apply. */
10235char pthread_create();
10236
10237int main() {
10238pthread_create()
10239; return 0; }
10240EOF
4882bf1b 10241if { (eval echo configure:10242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10242 rm -rf conftest*
10243 eval "ac_cv_lib_$ac_lib_var=yes"
10244else
10245 echo "configure: failed program was:" >&5
10246 cat conftest.$ac_ext >&5
10247 rm -rf conftest*
10248 eval "ac_cv_lib_$ac_lib_var=no"
10249fi
10250rm -f conftest*
10251LIBS="$ac_save_LIBS"
10252
10253fi
10254if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10255 echo "$ac_t""yes" 1>&6
10256
10257 THREADS_OBJ="threadpsx.lo"
10258 THREADS_LINK="pthread"
10259
10260else
10261 echo "$ac_t""no" 1>&6
10262
10263 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
4882bf1b 10264echo "configure:10265: checking for pthread_create in -lc_r" >&5
a16d3c04
KB
10265ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10266if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10267 echo $ac_n "(cached) $ac_c" 1>&6
10268else
10269 ac_save_LIBS="$LIBS"
10270LIBS="-lc_r $LIBS"
10271cat > conftest.$ac_ext <<EOF
4882bf1b 10272#line 10273 "configure"
a16d3c04
KB
10273#include "confdefs.h"
10274/* Override any gcc2 internal prototype to avoid an error. */
10275/* We use char because int might match the return type of a gcc2
10276 builtin and then its argument prototype would still apply. */
10277char pthread_create();
10278
10279int main() {
10280pthread_create()
10281; return 0; }
10282EOF
4882bf1b 10283if { (eval echo configure:10284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10284 rm -rf conftest*
10285 eval "ac_cv_lib_$ac_lib_var=yes"
10286else
10287 echo "configure: failed program was:" >&5
10288 cat conftest.$ac_ext >&5
10289 rm -rf conftest*
10290 eval "ac_cv_lib_$ac_lib_var=no"
10291fi
10292rm -f conftest*
10293LIBS="$ac_save_LIBS"
10294
10295fi
10296if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10297 echo "$ac_t""yes" 1>&6
10298
10299 THREADS_OBJ="threadpsx.lo"
10300 THREADS_LINK="c_r"
10301
10302else
10303 echo "$ac_t""no" 1>&6
10304
10305 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10306echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
4882bf1b 10307echo "configure:10308: checking for sys/prctl.h" >&5
a16d3c04
KB
10308if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10309 echo $ac_n "(cached) $ac_c" 1>&6
10310else
10311 cat > conftest.$ac_ext <<EOF
4882bf1b 10312#line 10313 "configure"
a16d3c04
KB
10313#include "confdefs.h"
10314#include <sys/prctl.h>
10315EOF
10316ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4882bf1b 10317{ (eval echo configure:10318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0709ee62 10318ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
10319if test -z "$ac_err"; then
10320 rm -rf conftest*
10321 eval "ac_cv_header_$ac_safe=yes"
10322else
10323 echo "$ac_err" >&5
10324 echo "configure: failed program was:" >&5
10325 cat conftest.$ac_ext >&5
10326 rm -rf conftest*
10327 eval "ac_cv_header_$ac_safe=no"
10328fi
10329rm -f conftest*
10330fi
10331if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10332 echo "$ac_t""yes" 1>&6
10333
10334 THREADS_OBJ="threadsgi.lo"
10335
10336else
10337 echo "$ac_t""no" 1>&6
10338fi
10339
10340
10341fi
10342
10343
10344fi
10345
10346
10347 if test -z "$THREADS_OBJ" ; then
10348 wxUSE_THREADS=no
10349 echo "configure: warning: No thread support on this system" 1>&2
10350 fi
10351fi
10352
10353if test "$wxUSE_THREADS" = "yes" ; then
10354
10355 for ac_hdr in sched.h
10356do
10357ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10358echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4882bf1b 10359echo "configure:10360: checking for $ac_hdr" >&5
a16d3c04
KB
10360if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10361 echo $ac_n "(cached) $ac_c" 1>&6
10362else
10363 cat > conftest.$ac_ext <<EOF
4882bf1b 10364#line 10365 "configure"
a16d3c04
KB
10365#include "confdefs.h"
10366#include <$ac_hdr>
10367EOF
10368ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4882bf1b 10369{ (eval echo configure:10370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0709ee62 10370ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
10371if test -z "$ac_err"; then
10372 rm -rf conftest*
10373 eval "ac_cv_header_$ac_safe=yes"
10374else
10375 echo "$ac_err" >&5
10376 echo "configure: failed program was:" >&5
10377 cat conftest.$ac_ext >&5
10378 rm -rf conftest*
10379 eval "ac_cv_header_$ac_safe=no"
10380fi
10381rm -f conftest*
10382fi
10383if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10384 echo "$ac_t""yes" 1>&6
10385 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10386 cat >> confdefs.h <<EOF
10387#define $ac_tr_hdr 1
10388EOF
10389
10390else
10391 echo "$ac_t""no" 1>&6
10392fi
10393done
10394
10395
10396 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
4882bf1b 10397echo "configure:10398: checking for sched_yield in -l$THREADS_LINK" >&5
a16d3c04
KB
10398ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
10399if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10400 echo $ac_n "(cached) $ac_c" 1>&6
10401else
10402 ac_save_LIBS="$LIBS"
10403LIBS="-l$THREADS_LINK $LIBS"
10404cat > conftest.$ac_ext <<EOF
4882bf1b 10405#line 10406 "configure"
a16d3c04
KB
10406#include "confdefs.h"
10407/* Override any gcc2 internal prototype to avoid an error. */
10408/* We use char because int might match the return type of a gcc2
10409 builtin and then its argument prototype would still apply. */
10410char sched_yield();
10411
10412int main() {
10413sched_yield()
10414; return 0; }
10415EOF
4882bf1b 10416if { (eval echo configure:10417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10417 rm -rf conftest*
10418 eval "ac_cv_lib_$ac_lib_var=yes"
10419else
10420 echo "configure: failed program was:" >&5
10421 cat conftest.$ac_ext >&5
10422 rm -rf conftest*
10423 eval "ac_cv_lib_$ac_lib_var=no"
10424fi
10425rm -f conftest*
10426LIBS="$ac_save_LIBS"
10427
10428fi
10429if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10430 echo "$ac_t""yes" 1>&6
10431 cat >> confdefs.h <<\EOF
10432#define HAVE_SCHED_YIELD 1
10433EOF
10434
10435else
10436 echo "$ac_t""no" 1>&6
10437echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
4882bf1b 10438echo "configure:10439: checking for sched_yield in -l"posix4"" >&5
a16d3c04
KB
10439ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
10440if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10441 echo $ac_n "(cached) $ac_c" 1>&6
10442else
10443 ac_save_LIBS="$LIBS"
10444LIBS="-l"posix4" $LIBS"
10445cat > conftest.$ac_ext <<EOF
4882bf1b 10446#line 10447 "configure"
a16d3c04
KB
10447#include "confdefs.h"
10448/* Override any gcc2 internal prototype to avoid an error. */
10449/* We use char because int might match the return type of a gcc2
10450 builtin and then its argument prototype would still apply. */
10451char sched_yield();
10452
10453int main() {
10454sched_yield()
10455; return 0; }
10456EOF
4882bf1b 10457if { (eval echo configure:10458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10458 rm -rf conftest*
10459 eval "ac_cv_lib_$ac_lib_var=yes"
10460else
10461 echo "configure: failed program was:" >&5
10462 cat conftest.$ac_ext >&5
10463 rm -rf conftest*
10464 eval "ac_cv_lib_$ac_lib_var=no"
10465fi
10466rm -f conftest*
10467LIBS="$ac_save_LIBS"
10468
10469fi
10470if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10471 echo "$ac_t""yes" 1>&6
10472 cat >> confdefs.h <<\EOF
10473#define HAVE_SCHED_YIELD 1
10474EOF
10475 POSIX4_LINK="-lposix4"
10476else
10477 echo "$ac_t""no" 1>&6
10478echo "configure: warning: wxThread::Yield will not work properly" 1>&2
10479
10480fi
10481
10482
10483fi
10484
10485
10486 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
4882bf1b 10487echo "configure:10488: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
a16d3c04
KB
10488ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10489if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10490 echo $ac_n "(cached) $ac_c" 1>&6
10491else
10492 ac_save_LIBS="$LIBS"
10493LIBS="-l$THREADS_LINK $LIBS"
10494cat > conftest.$ac_ext <<EOF
4882bf1b 10495#line 10496 "configure"
a16d3c04
KB
10496#include "confdefs.h"
10497/* Override any gcc2 internal prototype to avoid an error. */
10498/* We use char because int might match the return type of a gcc2
10499 builtin and then its argument prototype would still apply. */
10500char pthread_attr_getschedpolicy();
10501
10502int main() {
10503pthread_attr_getschedpolicy()
10504; return 0; }
10505EOF
4882bf1b 10506if { (eval echo configure:10507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10507 rm -rf conftest*
10508 eval "ac_cv_lib_$ac_lib_var=yes"
10509else
10510 echo "configure: failed program was:" >&5
10511 cat conftest.$ac_ext >&5
10512 rm -rf conftest*
10513 eval "ac_cv_lib_$ac_lib_var=no"
10514fi
10515rm -f conftest*
10516LIBS="$ac_save_LIBS"
10517
10518fi
10519if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10520 echo "$ac_t""yes" 1>&6
10521 cat >> confdefs.h <<\EOF
10522#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10523EOF
10524
10525else
10526 echo "$ac_t""no" 1>&6
10527echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
4882bf1b 10528echo "configure:10529: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
a16d3c04
KB
10529ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10530if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10531 echo $ac_n "(cached) $ac_c" 1>&6
10532else
10533 ac_save_LIBS="$LIBS"
10534LIBS="-l"posix4" $LIBS"
10535cat > conftest.$ac_ext <<EOF
4882bf1b 10536#line 10537 "configure"
a16d3c04
KB
10537#include "confdefs.h"
10538/* Override any gcc2 internal prototype to avoid an error. */
10539/* We use char because int might match the return type of a gcc2
10540 builtin and then its argument prototype would still apply. */
10541char pthread_attr_getschedpolicy();
10542
10543int main() {
10544pthread_attr_getschedpolicy()
10545; return 0; }
10546EOF
4882bf1b 10547if { (eval echo configure:10548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10548 rm -rf conftest*
10549 eval "ac_cv_lib_$ac_lib_var=yes"
10550else
10551 echo "configure: failed program was:" >&5
10552 cat conftest.$ac_ext >&5
10553 rm -rf conftest*
10554 eval "ac_cv_lib_$ac_lib_var=no"
10555fi
10556rm -f conftest*
10557LIBS="$ac_save_LIBS"
10558
10559fi
10560if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10561 echo "$ac_t""yes" 1>&6
10562 cat >> confdefs.h <<\EOF
10563#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10564EOF
10565 POSIX4_LINK="-lposix4"
10566else
10567 echo "$ac_t""no" 1>&6
10568echo "configure: warning: Setting thread priority will not work" 1>&2
10569
10570fi
10571
10572
10573fi
10574
10575
10576 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
4882bf1b 10577echo "configure:10578: checking for pthread_cancel in -l$THREADS_LINK" >&5
a16d3c04
KB
10578ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
10579if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10580 echo $ac_n "(cached) $ac_c" 1>&6
10581else
10582 ac_save_LIBS="$LIBS"
10583LIBS="-l$THREADS_LINK $LIBS"
10584cat > conftest.$ac_ext <<EOF
4882bf1b 10585#line 10586 "configure"
a16d3c04
KB
10586#include "confdefs.h"
10587/* Override any gcc2 internal prototype to avoid an error. */
10588/* We use char because int might match the return type of a gcc2
10589 builtin and then its argument prototype would still apply. */
10590char pthread_cancel();
10591
10592int main() {
10593pthread_cancel()
10594; return 0; }
10595EOF
4882bf1b 10596if { (eval echo configure:10597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10597 rm -rf conftest*
10598 eval "ac_cv_lib_$ac_lib_var=yes"
10599else
10600 echo "configure: failed program was:" >&5
10601 cat conftest.$ac_ext >&5
10602 rm -rf conftest*
10603 eval "ac_cv_lib_$ac_lib_var=no"
10604fi
10605rm -f conftest*
10606LIBS="$ac_save_LIBS"
10607
10608fi
10609if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10610 echo "$ac_t""yes" 1>&6
10611 cat >> confdefs.h <<\EOF
10612#define HAVE_PTHREAD_CANCEL 1
10613EOF
10614
10615else
10616 echo "$ac_t""no" 1>&6
10617echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10618fi
10619
10620
10621 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
4882bf1b 10622echo "configure:10623: checking for pthread_cleanup_push/pop" >&5
a16d3c04
KB
10623if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
10624 echo $ac_n "(cached) $ac_c" 1>&6
10625else
10626
10627 cat > conftest.$ac_ext <<EOF
4882bf1b 10628#line 10629 "configure"
a16d3c04
KB
10629#include "confdefs.h"
10630#include <pthread.h>
10631int main() {
10632
10633 pthread_cleanup_push(NULL, NULL);
10634 pthread_cleanup_pop(0);
10635
10636; return 0; }
10637EOF
4882bf1b 10638if { (eval echo configure:10639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
10639 rm -rf conftest*
10640
10641 wx_cv_func_pthread_cleanup_push=yes
10642 cat >> confdefs.h <<\EOF
10643#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
10644EOF
10645
10646
10647else
10648 echo "configure: failed program was:" >&5
10649 cat conftest.$ac_ext >&5
10650 rm -rf conftest*
10651
10652 wx_cv_func_pthread_cleanup_push=no
10653
10654fi
10655rm -f conftest*
10656
10657fi
10658
10659echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
10660
10661 THREADS_LINK="-l$THREADS_LINK"
10662fi
10663
10664fi
10665
10666if test "$wxUSE_THREADS" = "yes"; then
10667 cat >> confdefs.h <<\EOF
10668#define wxUSE_THREADS 1
10669EOF
10670
10671
10672 CFLAGS="${CFLAGS} -D_REENTRANT"
10673 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
10674
10675 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
10676fi
10677
10678if test "$WXGTK12" = 1 ; then
10679 cat >> confdefs.h <<EOF
10680#define __WXGTK12__ $WXGTK12
10681EOF
10682
10683fi
10684
10685if test "$WXWINE" = 1 ; then
10686 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
10687fi
10688
10689if test "$wxUSE_CYGWIN" = 1 ; then
10690 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
10691fi
10692
10693WXDEBUG=
10694
10695if test "$wxUSE_DEBUG_INFO" = "yes" ; then
10696 WXDEBUG="-g"
10697 wxUSE_OPTIMISE=no
10698fi
10699
10700if test "$wxUSE_DEBUG_GDB" = "yes" ; then
10701 wxUSE_DEBUG_INFO=yes
10702 WXDEBUG="-ggdb"
10703fi
10704
10705if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
10706 cat >> confdefs.h <<\EOF
10707#define WXDEBUG 1
10708EOF
10709
10710 WXDEBUG_DEFINE="-D__WXDEBUG__"
10711else
10712 if test "$wxUSE_GTK" = 1 ; then
10713 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
10714 fi
10715fi
10716
10717if test "$wxUSE_MEM_TRACING" = "yes" ; then
10718 cat >> confdefs.h <<\EOF
10719#define wxUSE_MEMORY_TRACING 1
10720EOF
10721
10722 cat >> confdefs.h <<\EOF
10723#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
10724EOF
10725
10726 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
10727fi
10728
10729if test "$wxUSE_DMALLOC" = "yes" ; then
10730 DMALLOC_LINK="-ldmalloc"
10731fi
10732
10733PROFILE=
10734if test "$wxUSE_PROFILE" = "yes" ; then
10735 PROFILE="-pg"
10736fi
10737
10738DEP_INFO_FLAGS=
10739if test "$GCC" = yes ; then
10740 if test "$wxUSE_NO_RTTI" = "yes" ; then
f7a11f8c 10741 WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-rtti"
a16d3c04
KB
10742 fi
10743 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
f7a11f8c 10744 WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-exceptions"
a16d3c04
KB
10745 fi
10746 if test "$wxUSE_PERMISSIVE" = "yes" ; then
10747 CFLAGS="${CFLAGS} -fpermissive"
10748 CXXFLAGS="${CXXFLAGS} -fpermissive"
10749 fi
10750 if test "$wxUSE_NO_DEPS" = "no" ; then
10751 DEP_INFO_FLAGS="-MMD"
10752 fi
1c8515f9
KB
10753fi
10754
10755
a16d3c04
KB
10756CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
10757CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
10758if test "$wxUSE_OPTIMISE" = "no" ; then
10759 OPTIMISE=
10760else
10761 if test "$GCC" = yes ; then
10762 OPTIMISE="-O2"
10763 case "${host}" in
10764 i586-*-*|i686-*-* )
10765 OPTIMISE="${OPTIMISE} "
10766 ;;
10767 esac
10768 else
10769 OPTIMISE="-O"
10770 fi
10771fi
10772
10773
10774ZLIB_INCLUDE=
10775if test "$wxUSE_ZLIB" = "yes" ; then
10776 cat >> confdefs.h <<\EOF
10777#define wxUSE_ZLIB 1
10778EOF
10779
10780 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
10781fi
10782
10783PNG_INCLUDE=
10784if test "$wxUSE_LIBPNG" = "yes" ; then
10785 cat >> confdefs.h <<\EOF
10786#define wxUSE_LIBPNG 1
10787EOF
10788
10789 PNG_INCLUDE="-I\${top_srcdir}/src/png"
10790 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
10791fi
10792
a16d3c04
KB
10793JPEG_INCLUDE=
10794if test "$wxUSE_LIBJPEG" = "yes" ; then
10795 cat >> confdefs.h <<\EOF
10796#define wxUSE_LIBJPEG 1
10797EOF
10798
10799 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
10800fi
10801
10802if test "$wxUSE_OPENGL" = "yes"; then
10803 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
10804echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
4882bf1b 10805echo "configure:10806: checking for GL/gl.h" >&5
a16d3c04
KB
10806if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10807 echo $ac_n "(cached) $ac_c" 1>&6
10808else
10809 cat > conftest.$ac_ext <<EOF
4882bf1b 10810#line 10811 "configure"
a16d3c04
KB
10811#include "confdefs.h"
10812#include <GL/gl.h>
10813EOF
10814ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4882bf1b 10815{ (eval echo configure:10816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0709ee62 10816ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
10817if test -z "$ac_err"; then
10818 rm -rf conftest*
10819 eval "ac_cv_header_$ac_safe=yes"
10820else
10821 echo "$ac_err" >&5
10822 echo "configure: failed program was:" >&5
10823 cat conftest.$ac_ext >&5
10824 rm -rf conftest*
10825 eval "ac_cv_header_$ac_safe=no"
10826fi
10827rm -f conftest*
10828fi
10829if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10830 echo "$ac_t""yes" 1>&6
10831
10832 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
4882bf1b 10833echo "configure:10834: checking for glInitNames in -lGL" >&5
a16d3c04
KB
10834ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
10835if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10836 echo $ac_n "(cached) $ac_c" 1>&6
10837else
10838 ac_save_LIBS="$LIBS"
10839LIBS="-lGL wxUSE_OPENGL=0 $LIBS"
10840cat > conftest.$ac_ext <<EOF
4882bf1b 10841#line 10842 "configure"
a16d3c04
KB
10842#include "confdefs.h"
10843/* Override any gcc2 internal prototype to avoid an error. */
10844/* We use char because int might match the return type of a gcc2
10845 builtin and then its argument prototype would still apply. */
10846char glInitNames();
10847
10848int main() {
10849glInitNames()
10850; return 0; }
10851EOF
4882bf1b 10852if { (eval echo configure:10853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10853 rm -rf conftest*
10854 eval "ac_cv_lib_$ac_lib_var=yes"
10855else
10856 echo "configure: failed program was:" >&5
10857 cat conftest.$ac_ext >&5
10858 rm -rf conftest*
10859 eval "ac_cv_lib_$ac_lib_var=no"
10860fi
10861rm -f conftest*
10862LIBS="$ac_save_LIBS"
10863
10864fi
10865if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10866 echo "$ac_t""yes" 1>&6
10867
10868 OPENGL_LINK="-lGL"
10869 cat >> confdefs.h <<\EOF
10870#define wxUSE_OPENGL 1
10871EOF
10872
10873 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
10874
10875else
10876 echo "$ac_t""no" 1>&6
10877
10878 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
4882bf1b 10879echo "configure:10880: checking for glInitNames in -lMesaGL" >&5
a16d3c04
KB
10880ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
10881if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10882 echo $ac_n "(cached) $ac_c" 1>&6
10883else
10884 ac_save_LIBS="$LIBS"
10885LIBS="-lMesaGL $LIBS"
10886cat > conftest.$ac_ext <<EOF
4882bf1b 10887#line 10888 "configure"
a16d3c04
KB
10888#include "confdefs.h"
10889/* Override any gcc2 internal prototype to avoid an error. */
10890/* We use char because int might match the return type of a gcc2
10891 builtin and then its argument prototype would still apply. */
10892char glInitNames();
10893
10894int main() {
10895glInitNames()
10896; return 0; }
10897EOF
4882bf1b 10898if { (eval echo configure:10899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
10899 rm -rf conftest*
10900 eval "ac_cv_lib_$ac_lib_var=yes"
10901else
10902 echo "configure: failed program was:" >&5
10903 cat conftest.$ac_ext >&5
10904 rm -rf conftest*
10905 eval "ac_cv_lib_$ac_lib_var=no"
10906fi
10907rm -f conftest*
10908LIBS="$ac_save_LIBS"
10909
10910fi
10911if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10912 echo "$ac_t""yes" 1>&6
10913
10914 OPENGL_LINK="-lMesaGL"
10915 cat >> confdefs.h <<\EOF
10916#define wxUSE_OPENGL 1
10917EOF
10918
10919 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
10920
10921else
10922 echo "$ac_t""no" 1>&6
10923wxUSE_OPENGL=0
10924fi
10925
10926
10927fi
10928
10929
10930else
10931 echo "$ac_t""no" 1>&6
10932wxUSE_OPENGL=0
10933fi
10934
10935fi
10936
10937
10938if test "$wxUSE_GUI" = "yes"; then
10939 cat >> confdefs.h <<\EOF
10940#define wxUSE_GUI 1
10941EOF
10942
10943
10944 else
10945 cat >> confdefs.h <<\EOF
10946#define wxUSE_NOGUI 1
10947EOF
10948
10949fi
10950
10951
10952if test "$wxUSE_UNIX" = "yes"; then
10953 cat >> confdefs.h <<\EOF
10954#define wxUSE_UNIX 1
10955EOF
10956
10957fi
10958
10959
10960if test "$wxUSE_APPLE_IEEE" = "yes"; then
10961 cat >> confdefs.h <<\EOF
10962#define wxUSE_APPLE_IEEE 1
10963EOF
10964
10965fi
10966
10967if test "$wxUSE_TIMEDATE" = "yes"; then
10968 cat >> confdefs.h <<\EOF
10969#define wxUSE_TIMEDATE 1
10970EOF
10971
10972 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
10973fi
10974
10975if test "$wxUSE_WAVE" = "yes"; then
10976 cat >> confdefs.h <<\EOF
10977#define wxUSE_WAVE 1
10978EOF
10979
10980fi
10981
10982if test "$wxUSE_FILE" = "yes"; then
10983 cat >> confdefs.h <<\EOF
10984#define wxUSE_FILE 1
10985EOF
10986
10987fi
10988
10989if test "$wxUSE_FS_INET" = "yes"; then
10990 cat >> confdefs.h <<\EOF
10991#define wxUSE_FS_INET 1
10992EOF
10993
10994fi
10995
10996if test "$wxUSE_FS_ZIP" = "yes"; then
10997 cat >> confdefs.h <<\EOF
10998#define wxUSE_FS_ZIP 1
10999EOF
11000
11001fi
11002
11003if test "$wxUSE_ZIPSTREAM" = "yes"; then
11004 cat >> confdefs.h <<\EOF
11005#define wxUSE_ZIPSTREAM 1
11006EOF
11007
11008fi
11009
11010if test "$wxUSE_BUSYINFO" = "yes"; then
11011 cat >> confdefs.h <<\EOF
11012#define wxUSE_BUSYINFO 1
11013EOF
11014
11015fi
11016
11017if test "$wxUSE_STD_IOSTREAM" = "yes"; then
11018 cat >> confdefs.h <<\EOF
11019#define wxUSE_STD_IOSTREAM 1
11020EOF
11021
11022fi
11023
11024if test "$wxUSE_TEXTFILE" = "yes"; then
11025 if test "$wxUSE_FILE" != "yes"; then
11026 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
11027 else
11028 cat >> confdefs.h <<\EOF
11029#define wxUSE_TEXTFILE 1
11030EOF
11031
11032 fi
11033fi
11034
11035if test "$wxUSE_CONFIG" = "yes" ; then
11036 if test "$wxUSE_TEXTFILE" != "yes"; then
11037 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
11038 else
11039 cat >> confdefs.h <<\EOF
11040#define wxUSE_CONFIG 1
11041EOF
11042
11043 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
11044 fi
11045fi
11046
11047if test "$wxUSE_INTL" = "yes" ; then
11048 if test "$wxUSE_FILE" != "yes"; then
11049 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
11050 else
11051 cat >> confdefs.h <<\EOF
11052#define wxUSE_INTL 1
11053EOF
11054
11055 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
11056 fi
11057fi
11058
11059if test "$wxUSE_LOG" = "yes"; then
11060 cat >> confdefs.h <<\EOF
11061#define wxUSE_LOG 1
11062EOF
11063
11064fi
11065
11066if test "$wxUSE_LONGLONG" = "yes"; then
11067 cat >> confdefs.h <<\EOF
11068#define wxUSE_LONGLONG 1
11069EOF
11070
11071fi
11072
11073if test "$wxUSE_SOCKETS" = "yes" ; then
2726c66d 11074 cat >> confdefs.h <<\EOF
a16d3c04
KB
11075#define wxUSE_SOCKETS 1
11076EOF
11077
2726c66d
KB
11078 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wxsocket"
11079 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
a16d3c04
KB
11080fi
11081
1c8515f9
KB
11082if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
11083 cat >> confdefs.h <<\EOF
11084#define wxUSE_DIALUP_MANAGER 1
11085EOF
11086
11087fi
11088
a16d3c04
KB
11089if test "$wxUSE_STREAMS" = "yes" ; then
11090 cat >> confdefs.h <<\EOF
11091#define wxUSE_STREAMS 1
11092EOF
11093
11094fi
11095
11096if test "$wxUSE_SERIAL" = "yes" ; then
11097 cat >> confdefs.h <<\EOF
11098#define wxUSE_SERIAL 1
11099EOF
11100
11101fi
11102
11103
11104if test "$wxUSE_SOCKETS" = "yes"; then
11105
11106 ac_ext=C
11107# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11108ac_cpp='$CXXCPP $CPPFLAGS'
11109ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
0709ee62 11110ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
11111cross_compiling=$ac_cv_prog_cxx_cross
11112
11113 echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6
4882bf1b 11114echo "configure:11115: checking the type of the third argument of getsockname" >&5
a16d3c04 11115 cat > conftest.$ac_ext <<EOF
4882bf1b 11116#line 11117 "configure"
a16d3c04
KB
11117#include "confdefs.h"
11118#include <sys/socket.h>
11119int main() {
11120socklen_t len; getsockname(0, NULL, &len);
11121; return 0; }
11122EOF
4882bf1b 11123if { (eval echo configure:11124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
11124 rm -rf conftest*
11125 cat >> confdefs.h <<\EOF
11126#define SOCKLEN_T socklen_t
11127EOF
11128 echo "$ac_t""socklen_t" 1>&6
11129else
11130 echo "configure: failed program was:" >&5
11131 cat conftest.$ac_ext >&5
11132 rm -rf conftest*
11133 cat > conftest.$ac_ext <<EOF
4882bf1b 11134#line 11135 "configure"
a16d3c04
KB
11135#include "confdefs.h"
11136#include <sys/socket.h>
11137int main() {
11138size_t len; getsockname(0, NULL, &len);
11139; return 0; }
11140EOF
4882bf1b 11141if { (eval echo configure:11142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
11142 rm -rf conftest*
11143 cat >> confdefs.h <<\EOF
11144#define SOCKLEN_T size_t
11145EOF
11146 echo "$ac_t""size_t" 1>&6
11147else
11148 echo "configure: failed program was:" >&5
11149 cat conftest.$ac_ext >&5
11150 rm -rf conftest*
11151 cat > conftest.$ac_ext <<EOF
4882bf1b 11152#line 11153 "configure"
a16d3c04
KB
11153#include "confdefs.h"
11154#include <sys/socket.h>
11155int main() {
11156int len; getsockname(0, NULL, &len);
11157; return 0; }
11158EOF
4882bf1b 11159if { (eval echo configure:11160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a16d3c04
KB
11160 rm -rf conftest*
11161 cat >> confdefs.h <<\EOF
11162#define SOCKLEN_T int
11163EOF
11164 echo "$ac_t""int" 1>&6
11165else
11166 echo "configure: failed program was:" >&5
11167 cat conftest.$ac_ext >&5
11168 rm -rf conftest*
11169 echo "$ac_t""unknown" 1>&6
11170
11171fi
11172rm -f conftest*
11173
11174fi
11175rm -f conftest*
11176
11177fi
11178rm -f conftest*
11179 ac_ext=c
11180# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11181ac_cpp='$CPP $CPPFLAGS'
11182ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
0709ee62 11183ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a16d3c04
KB
11184cross_compiling=$ac_cv_prog_cc_cross
11185
11186fi
11187
11188
11189if test "$wxUSE_JOYSTICK" = 1; then
11190 for ac_hdr in linux/joystick.h
11191do
11192ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11193echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4882bf1b 11194echo "configure:11195: checking for $ac_hdr" >&5
a16d3c04
KB
11195if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11196 echo $ac_n "(cached) $ac_c" 1>&6
11197else
11198 cat > conftest.$ac_ext <<EOF
4882bf1b 11199#line 11200 "configure"
a16d3c04
KB
11200#include "confdefs.h"
11201#include <$ac_hdr>
11202EOF
11203ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4882bf1b 11204{ (eval echo configure:11205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0709ee62 11205ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a16d3c04
KB
11206if test -z "$ac_err"; then
11207 rm -rf conftest*
11208 eval "ac_cv_header_$ac_safe=yes"
11209else
11210 echo "$ac_err" >&5
11211 echo "configure: failed program was:" >&5
11212 cat conftest.$ac_ext >&5
11213 rm -rf conftest*
11214 eval "ac_cv_header_$ac_safe=no"
11215fi
11216rm -f conftest*
11217fi
11218if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11219 echo "$ac_t""yes" 1>&6
11220 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11221 cat >> confdefs.h <<EOF
11222#define $ac_tr_hdr 1
11223EOF
11224
11225else
11226 echo "$ac_t""no" 1>&6
11227fi
11228done
11229
11230 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
11231 cat >> confdefs.h <<\EOF
11232#define wxUSE_JOYSTICK 1
11233EOF
11234
11235 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
11236 fi
11237fi
11238
11239
11240HAVE_DL_FUNCS=0
11241HAVE_SHL_FUNCS=0
11242if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
2726c66d 11243 for ac_func in dlopen
a16d3c04
KB
11244do
11245echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4882bf1b 11246echo "configure:11247: checking for $ac_func" >&5
a16d3c04
KB
11247if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11248 echo $ac_n "(cached) $ac_c" 1>&6
11249else
11250 cat > conftest.$ac_ext <<EOF
4882bf1b 11251#line 11252 "configure"
a16d3c04
KB
11252#include "confdefs.h"
11253/* System header to define __stub macros and hopefully few prototypes,
11254 which can conflict with char $ac_func(); below. */
11255#include <assert.h>
11256/* Override any gcc2 internal prototype to avoid an error. */
11257/* We use char because int might match the return type of a gcc2
11258 builtin and then its argument prototype would still apply. */
11259char $ac_func();
11260
11261int main() {
11262
11263/* The GNU C library defines this for functions which it implements
11264 to always fail with ENOSYS. Some functions are actually named
11265 something starting with __ and the normal name is an alias. */
11266#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11267choke me
11268#else
2726c66d 11269$ac_func();
a16d3c04
KB
11270#endif
11271
11272; return 0; }
11273EOF
4882bf1b 11274if { (eval echo configure:11275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
11275 rm -rf conftest*
11276 eval "ac_cv_func_$ac_func=yes"
11277else
11278 echo "configure: failed program was:" >&5
11279 cat conftest.$ac_ext >&5
11280 rm -rf conftest*
11281 eval "ac_cv_func_$ac_func=no"
11282fi
11283rm -f conftest*
11284fi
11285
11286if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11287 echo "$ac_t""yes" 1>&6
11288 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11289 cat >> confdefs.h <<EOF
11290#define $ac_tr_func 1
11291EOF
2726c66d
KB
11292
11293 cat >> confdefs.h <<\EOF
a16d3c04
KB
11294#define HAVE_DLOPEN 1
11295EOF
2726c66d
KB
11296
11297 HAVE_DL_FUNCS=1
11298
a16d3c04
KB
11299else
11300 echo "$ac_t""no" 1>&6
11301echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4882bf1b 11302echo "configure:11303: checking for dlopen in -ldl" >&5
a16d3c04
KB
11303ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11304if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11305 echo $ac_n "(cached) $ac_c" 1>&6
11306else
11307 ac_save_LIBS="$LIBS"
11308LIBS="-ldl $LIBS"
11309cat > conftest.$ac_ext <<EOF
4882bf1b 11310#line 11311 "configure"
a16d3c04
KB
11311#include "confdefs.h"
11312/* Override any gcc2 internal prototype to avoid an error. */
11313/* We use char because int might match the return type of a gcc2
11314 builtin and then its argument prototype would still apply. */
11315char dlopen();
11316
11317int main() {
11318dlopen()
11319; return 0; }
11320EOF
4882bf1b 11321if { (eval echo configure:11322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
11322 rm -rf conftest*
11323 eval "ac_cv_lib_$ac_lib_var=yes"
11324else
11325 echo "configure: failed program was:" >&5
11326 cat conftest.$ac_ext >&5
11327 rm -rf conftest*
11328 eval "ac_cv_lib_$ac_lib_var=no"
11329fi
11330rm -f conftest*
11331LIBS="$ac_save_LIBS"
11332
11333fi
11334if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11335 echo "$ac_t""yes" 1>&6
2726c66d
KB
11336
11337 cat >> confdefs.h <<\EOF
a16d3c04
KB
11338#define HAVE_DLOPEN 1
11339EOF
2726c66d
KB
11340
11341 HAVE_DL_FUNCS=1
11342 LIBS="$LIBS -ldl"
11343
a16d3c04
KB
11344else
11345 echo "$ac_t""no" 1>&6
a16d3c04 11346
2726c66d 11347 for ac_func in shl_load
a16d3c04
KB
11348do
11349echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4882bf1b 11350echo "configure:11351: checking for $ac_func" >&5
a16d3c04
KB
11351if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11352 echo $ac_n "(cached) $ac_c" 1>&6
11353else
11354 cat > conftest.$ac_ext <<EOF
4882bf1b 11355#line 11356 "configure"
a16d3c04
KB
11356#include "confdefs.h"
11357/* System header to define __stub macros and hopefully few prototypes,
11358 which can conflict with char $ac_func(); below. */
11359#include <assert.h>
11360/* Override any gcc2 internal prototype to avoid an error. */
11361/* We use char because int might match the return type of a gcc2
11362 builtin and then its argument prototype would still apply. */
11363char $ac_func();
11364
11365int main() {
11366
11367/* The GNU C library defines this for functions which it implements
11368 to always fail with ENOSYS. Some functions are actually named
11369 something starting with __ and the normal name is an alias. */
11370#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11371choke me
11372#else
2726c66d 11373$ac_func();
a16d3c04
KB
11374#endif
11375
11376; return 0; }
11377EOF
4882bf1b 11378if { (eval echo configure:11379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a16d3c04
KB
11379 rm -rf conftest*
11380 eval "ac_cv_func_$ac_func=yes"
11381else
11382 echo "configure: failed program was:" >&5
11383 cat conftest.$ac_ext >&5
11384 rm -rf conftest*
11385 eval "ac_cv_func_$ac_func=no"
11386fi
11387rm -f conftest*
11388fi
11389
11390if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11391 echo "$ac_t""yes" 1>&6
11392 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11393 cat >> confdefs.h <<EOF
11394#define $ac_tr_func 1
11395EOF
2726c66d
KB
11396
11397 cat >> confdefs.h <<\EOF
a16d3c04
KB
11398#define HAVE_SHL_LOAD 1
11399EOF
2726c66d
KB
11400
11401 HAVE_SHL_FUNCS=1
11402
a16d3c04
KB
11403else
11404 echo "$ac_t""no" 1>&6
11405fi
11406done
11407
2726c66d
KB
11408
11409fi
11410
11411
11412fi
11413done
11414
a16d3c04
KB
11415
11416 if test "$HAVE_DL_FUNCS" = 0; then
2726c66d
KB
11417 if test "$HAVE_SHL_FUNCS" = 0; then
11418 if test "$USE_UNIX" = 1; then
11419 echo "configure: warning: "--with-dynlib and --with-odbc will be disabled due to missing shared library support"" 1>&2
11420 wxUSE_ODBC=no
11421 wxUSE_DYNLIB_CLASS=no
11422 else
11423 echo "configure: warning: "Cannot check dynlib requirements on non-Unix platforms. dynlib remains enabled."" 1>&2
11424 fi
f7a11f8c 11425 fi
a16d3c04
KB
11426 fi
11427fi
11428
11429if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
11430 cat >> confdefs.h <<\EOF
11431#define wxUSE_DYNLIB_CLASS 1
11432EOF
11433
11434fi
11435
11436
11437if test "$wxUSE_UNICODE" = "yes" ; then
11438 cat >> confdefs.h <<\EOF
11439#define wxUSE_UNICODE 1
11440EOF
11441
11442fi
11443
11444if test "$wxUSE_WCSRTOMBS" = "yes" ; then
11445 cat >> confdefs.h <<\EOF
11446#define wxUSE_WCSRTOMBS 1
11447EOF
11448
11449fi
11450
11451if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
11452 cat >> confdefs.h <<\EOF
11453#define wxUSE_EXPERIMENTAL_PRINTF 1
11454EOF
11455
11456fi
11457
11458
11459IODBC_C_SRC=""
11460if test "$wxUSE_ODBC" = "yes" ; then
a0c79abb 11461 cat >> confdefs.h <<\EOF
a16d3c04
KB
11462#define wxUSE_ODBC 1
11463EOF
11464
a0c79abb
VZ
11465 WXODBCFLAG="-D_IODBC_"
11466 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
11467 IODBCOBJS="\$(IODBC_OBJS)"
11468else
11469 IODBCOBJS=
a16d3c04
KB
11470fi
11471
11472
11473if test "$wxUSE_POSTSCRIPT" = "yes" ; then
11474 cat >> confdefs.h <<\EOF
11475#define wxUSE_POSTSCRIPT 1
11476EOF
11477
11478fi
11479
11480cat >> confdefs.h <<\EOF
11481#define wxUSE_AFM_FOR_POSTSCRIPT 1
11482EOF
11483
11484
11485cat >> confdefs.h <<\EOF
11486#define wxUSE_NORMALIZED_PS_FONTS 1
11487EOF
11488
11489
11490
11491if test "$wxUSE_CONSTRAINTS" = "yes"; then
11492 cat >> confdefs.h <<\EOF
11493#define wxUSE_CONSTRAINTS 1
11494EOF
11495
11496 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
11497fi
11498
11499if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
11500 cat >> confdefs.h <<\EOF
11501#define wxUSE_MDI_ARCHITECTURE 1
11502EOF
11503
11504 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
11505fi
11506
11507if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
11508 cat >> confdefs.h <<\EOF
11509#define wxUSE_DOC_VIEW_ARCHITECTURE 1
11510EOF
11511
11512 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
11513 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
11514 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
11515 fi
11516fi
11517
11518if test "$wxUSE_HELP" = "yes"; then
11519 cat >> confdefs.h <<\EOF
11520#define wxUSE_HELP 1
11521EOF
11522
11523 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
11524fi
11525
11526if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
11527 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11528 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
11529 else
11530 cat >> confdefs.h <<\EOF
11531#define wxUSE_PRINTING_ARCHITECTURE 1
11532EOF
11533
11534 fi
11535 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
11536fi
11537
11538if test "$wxUSE_PROLOGIO" = "yes" ; then
11539 cat >> confdefs.h <<\EOF
11540#define wxUSE_PROLOGIO 1
11541EOF
11542
11543fi
11544
11545if test "$wxUSE_RESOURCES" = "yes" ; then
11546 if test "$wxUSE_PROLOGIO" = "yes" ; then
11547 cat >> confdefs.h <<\EOF
11548#define wxUSE_RESOURCES 1
11549EOF
11550
11551 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
11552 else
11553 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
11554 fi
11555fi
11556
11557if test "$wxUSE_X_RESOURCES" = "yes"; then
11558 cat >> confdefs.h <<\EOF
11559#define wxUSE_X_RESOURCES 1
11560EOF
11561
11562fi
11563
11564
11565if test "$wxUSE_IPC" = "yes"; then
11566 cat >> confdefs.h <<\EOF
11567#define wxUSE_IPC 1
11568EOF
11569
11570fi
11571
11572if test "$wxUSE_CLIPBOARD" = "yes"; then
11573 cat >> confdefs.h <<\EOF
11574#define wxUSE_CLIPBOARD 1
11575EOF
11576
11577fi
11578
11579if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
11580 if test "$wxUSE_GTK" = 1; then
11581 if test "$WXGTK12" != 1; then
11582 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
f7a11f8c 11583 wxUSE_DRAG_AND_DROP=no
a16d3c04
KB
11584 fi
11585 fi
11586
11587 if test "$wxUSE_MOTIF" = 1; then
11588 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
f7a11f8c 11589 wxUSE_DRAG_AND_DROP=no
a16d3c04
KB
11590 fi
11591
4882bf1b
VZ
11592 if test "$USE_WIN32" = 1; then
11593 for ac_hdr in ole2.h
11594do
11595ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11596echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11597echo "configure:11598: checking for $ac_hdr" >&5
11598if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11599 echo $ac_n "(cached) $ac_c" 1>&6
11600else
11601 cat > conftest.$ac_ext <<EOF
11602#line 11603 "configure"
11603#include "confdefs.h"
11604#include <$ac_hdr>
11605EOF
11606ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11607{ (eval echo configure:11608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11608ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11609if test -z "$ac_err"; then
11610 rm -rf conftest*
11611 eval "ac_cv_header_$ac_safe=yes"
11612else
11613 echo "$ac_err" >&5
11614 echo "configure: failed program was:" >&5
11615 cat conftest.$ac_ext >&5
11616 rm -rf conftest*
11617 eval "ac_cv_header_$ac_safe=no"
11618fi
11619rm -f conftest*
11620fi
11621if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11622 echo "$ac_t""yes" 1>&6
11623 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11624 cat >> confdefs.h <<EOF
11625#define $ac_tr_hdr 1
11626EOF
11627
11628else
11629 echo "$ac_t""no" 1>&6
11630fi
11631done
11632
11633 if test "x$HAVE_OLE2_H" = x ; then
11634 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
11635 wxUSE_DRAG_AND_DROP=no
11636 fi
11637 fi
11638
a16d3c04
KB
11639 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
11640 cat >> confdefs.h <<\EOF
11641#define wxUSE_DRAG_AND_DROP 1
11642EOF
11643
11644 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
11645 fi
4882bf1b 11646
a16d3c04
KB
11647fi
11648
11649if test "$wxUSE_SPLINES" = "yes" ; then
11650 cat >> confdefs.h <<\EOF
11651#define wxUSE_SPLINES 1
11652EOF
11653
11654fi
11655
11656
11657if test "$wxUSE_ACCEL" = "yes"; then
11658 cat >> confdefs.h <<\EOF
11659#define wxUSE_ACCEL 1
11660EOF
11661
11662fi
11663
11664if test "$wxUSE_CARET" = "yes"; then
11665 cat >> confdefs.h <<\EOF
11666#define wxUSE_CARET 1
11667EOF
11668
11669 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
11670fi
11671
11672if test "$wxUSE_COMBOBOX" = "yes"; then
11673 cat >> confdefs.h <<\EOF
11674#define wxUSE_COMBOBOX 1
11675EOF
11676
11677fi
11678
11679if test "$wxUSE_CHOICE" = "yes"; then
11680 cat >> confdefs.h <<\EOF
11681#define wxUSE_CHOICE 1
11682EOF
11683
11684fi
11685
11686if test "$wxUSE_BMPBUTTON" = "yes"; then
11687 cat >> confdefs.h <<\EOF
11688#define wxUSE_BMPBUTTON 1
11689EOF
11690
11691fi
11692
11693if test "$wxUSE_CHECKBOX" = "yes"; then
11694 cat >> confdefs.h <<\EOF
11695#define wxUSE_CHECKBOX 1
11696EOF
11697
11698fi
11699
11700if test "$wxUSE_CHECKLST" = "yes"; then
11701 cat >> confdefs.h <<\EOF
11702#define wxUSE_CHECKLISTBOX 1
11703EOF
11704
11705 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
11706fi
11707
11708if test "$wxUSE_GAUGE" = "yes"; then
11709 cat >> confdefs.h <<\EOF
11710#define wxUSE_GAUGE 1
11711EOF
11712
11713fi
11714
11715if test "$wxUSE_GRID" = "yes"; then
11716 cat >> confdefs.h <<\EOF
11717#define wxUSE_GRID 1
11718EOF
11719
11720 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
11721fi
11722
2726c66d
KB
11723if test "$wxUSE_NEW_GRID" = "yes"; then
11724 cat >> confdefs.h <<\EOF
11725#define wxUSE_NEW_GRID 1
11726EOF
11727
11728 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
11729fi
11730
a16d3c04
KB
11731if test "$wxUSE_IMAGLIST" = "yes"; then
11732 cat >> confdefs.h <<\EOF
11733#define wxUSE_IMAGLIST 1
11734EOF
11735
11736fi
11737
11738if test "$wxUSE_LISTBOX" = "yes"; then
11739 cat >> confdefs.h <<\EOF
11740#define wxUSE_LISTBOX 1
11741EOF
11742
11743fi
11744
11745if test "$wxUSE_LISTCTRL" = "yes"; then
11746 if test "$wxUSE_IMAGLIST" = "yes"; then
11747 cat >> confdefs.h <<\EOF
11748#define wxUSE_LISTCTRL 1
11749EOF
11750
11751 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
11752 else
11753 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
11754 fi
11755fi
11756
11757if test "$wxUSE_NOTEBOOK" = "yes"; then
11758 cat >> confdefs.h <<\EOF
11759#define wxUSE_NOTEBOOK 1
11760EOF
11761
11762 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
11763fi
11764
11765if test "$wxUSE_RADIOBOX" = "yes"; then
11766 cat >> confdefs.h <<\EOF
11767#define wxUSE_RADIOBOX 1
11768EOF
11769
11770fi
11771
11772if test "$wxUSE_RADIOBTN" = "yes"; then
11773 cat >> confdefs.h <<\EOF
11774#define wxUSE_RADIOBTN 1
11775EOF
11776
11777fi
11778
11779if test "$wxUSE_SASH" = "yes"; then
11780 cat >> confdefs.h <<\EOF
11781#define wxUSE_SASH 1
11782EOF
11783
11784 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
11785fi
11786
11787if test "$wxUSE_SCROLLBAR" = "yes"; then
11788 cat >> confdefs.h <<\EOF
11789#define wxUSE_SCROLLBAR 1
11790EOF
11791
11792 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
11793fi
11794
11795if test "$wxUSE_SLIDER" = "yes"; then
11796 cat >> confdefs.h <<\EOF
11797#define wxUSE_SLIDER 1
11798EOF
11799
11800fi
11801
11802if test "$wxUSE_SPINBTN" = "yes"; then
11803 cat >> confdefs.h <<\EOF
11804#define wxUSE_SPINBTN 1
11805EOF
11806
11807fi
11808
11809if test "$wxUSE_SPLITTER" = "yes"; then
11810 cat >> confdefs.h <<\EOF
11811#define wxUSE_SPLITTER 1
11812EOF
11813
11814 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
11815fi
11816
11817if test "$wxUSE_STATBMP" = "yes"; then
11818 cat >> confdefs.h <<\EOF
11819#define wxUSE_STATBMP 1
11820EOF
11821
11822fi
11823
11824if test "$wxUSE_STATBOX" = "yes"; then
11825 cat >> confdefs.h <<\EOF
11826#define wxUSE_STATBOX 1
11827EOF
11828
11829fi
11830
11831if test "$wxUSE_STATLINE" = "yes"; then
11832 if test "$wxUSE_WINE" = 1 ; then
11833 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
11834 else
f7a11f8c 11835 cat >> confdefs.h <<\EOF
a16d3c04
KB
11836#define wxUSE_STATLINE 1
11837EOF
11838
11839 fi
11840fi
11841
11842if test "$wxUSE_STATUSBAR" = "yes"; then
11843 cat >> confdefs.h <<\EOF
11844#define wxUSE_STATUSBAR 1
11845EOF
11846
11847fi
11848
11849if test "$wxUSE_TABDIALOG" = "yes"; then
11850 cat >> confdefs.h <<\EOF
11851#define wxUSE_TAB_DIALOG 1
11852EOF
11853
11854 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
11855fi
11856
11857if test "$wxUSE_TOOLBAR" = "yes"; then
11858 cat >> confdefs.h <<\EOF
11859#define wxUSE_TOOLBAR 1
11860EOF
11861
11862 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
11863fi
11864
11865if test "$wxUSE_TOOLTIPS" = "yes"; then
11866 if test "$wxUSE_MOTIF" = 1; then
11867 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
11868 else
11869 if test "$wxUSE_WINE" = 1; then
11870 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
11871 else
11872 cat >> confdefs.h <<\EOF
11873#define wxUSE_TOOLTIPS 1
11874EOF
11875
11876 fi
11877 fi
11878fi
11879
11880if test "$wxUSE_TREECTRL" = "yes"; then
11881 if test "$wxUSE_IMAGLIST" = "yes"; then
11882 cat >> confdefs.h <<\EOF
11883#define wxUSE_TREECTRL 1
11884EOF
11885
11886 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
11887 else
11888 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
11889 fi
11890fi
11891
11892
11893
11894if test "$wxUSE_METAFILE" = "yes"; then
11895 cat >> confdefs.h <<\EOF
11896#define wxUSE_METAFILE 1
11897EOF
11898
11899fi
11900
11901if test "$wxUSE_DIRDLG" = "yes"; then
11902 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11903 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
11904 else
11905 if test "$wxUSE_TREECTRL" != "yes"; then
11906 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
11907 else
11908 cat >> confdefs.h <<\EOF
11909#define wxUSE_DIRDLG 1
11910EOF
11911
11912 fi
11913 fi
11914fi
11915
11916if test "$wxUSE_TEXTDLG" = "yes"; then
11917 cat >> confdefs.h <<\EOF
11918#define wxUSE_TEXTDLG 1
11919EOF
11920
11921fi
11922
11923if test "$wxUSE_STARTUP_TIPS" = "yes"; then
11924 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11925 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
11926 else
11927 cat >> confdefs.h <<\EOF
11928#define wxUSE_STARTUP_TIPS 1
11929EOF
11930
11931 fi
11932fi
11933
11934if test "$wxUSE_PROGRESSDLG" = "yes"; then
11935 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11936 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
11937 else
11938 cat >> confdefs.h <<\EOF
11939#define wxUSE_PROGRESSDLG 1
11940EOF
11941
11942 fi
11943fi
11944
11945if test "$wxUSE_MINIFRAME" = "yes"; then
11946 cat >> confdefs.h <<\EOF
11947#define wxUSE_MINIFRAME 1
11948EOF
11949
11950 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
11951fi
11952
11953if test "$wxUSE_HTML" = "yes"; then
11954 cat >> confdefs.h <<\EOF
11955#define wxUSE_HTML 1
11956EOF
11957
11958 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
11959 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
11960fi
11961
11962if test "$wxUSE_VALIDATORS" = "yes"; then
11963 cat >> confdefs.h <<\EOF
11964#define wxUSE_VALIDATORS 1
11965EOF
11966
11967 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
11968fi
11969
1c8515f9
KB
11970if test "$wxUSE_GIF" = "yes" ; then
11971 cat >> confdefs.h <<\EOF
11972#define wxUSE_GIF 1
11973EOF
11974
11975fi
11976
11977if test "$wxUSE_PCX" = "yes" ; then
11978 cat >> confdefs.h <<\EOF
11979#define wxUSE_PCX 1
11980EOF
11981
11982fi
11983
11984if test "$wxUSE_PNM" = "yes" ; then
11985 cat >> confdefs.h <<\EOF
11986#define wxUSE_PNM 1
11987EOF
11988
11989fi
11990
a16d3c04
KB
11991
11992GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
11993
2726c66d 11994EXTRA_LIBS="$LIBS $POSIX4_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
f7a11f8c
RR
11995if test "$wxUSE_GUI" = "yes"; then
11996 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS"
11997fi
a16d3c04
KB
11998
11999LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
12000
12001INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TOOLKIT_INCLUDE"
12002
12003if test "$GXX" = yes ; then
12004 CXXWARNINGS="-Wall"
12005 fi
2726c66d 12006EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
a16d3c04
KB
12007
12008CPPFLAGS="-I\${top_srcdir}/include $CPPFLAGS"
12009CFLAGS="$CFLAGS $EXTRA_CFLAGS"
12010CXXFLAGS="$CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS"
12011
12012if test "$wxUSE_GUI" = "yes"; then
12013
12014 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS bombs controls dialogs drawing dynamic \
12015 forty fractal image wxpoem"
f7a11f8c
RR
12016else
12017 SAMPLES_SUBDIRS=""
a16d3c04
KB
12018fi
12019
12020SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '`"
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
f7a11f8c
RR
12065
12066
12067
12068
a16d3c04
KB
12069
12070
12071
a0c79abb 12072
a16d3c04
KB
12073
12074
12075echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4882bf1b 12076echo "configure:12077: checking whether ${MAKE-make} sets \${MAKE}" >&5
a16d3c04
KB
12077set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
12078if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
12079 echo $ac_n "(cached) $ac_c" 1>&6
12080else
12081 cat > conftestmake <<\EOF
12082all:
12083 @echo 'ac_maketemp="${MAKE}"'
12084EOF
12085# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12086eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
12087if test -n "$ac_maketemp"; then
12088 eval ac_cv_prog_make_${ac_make}_set=yes
12089else
12090 eval ac_cv_prog_make_${ac_make}_set=no
12091fi
12092rm -f conftestmake
12093fi
12094if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
12095 echo "$ac_t""yes" 1>&6
12096 SET_MAKE=
12097else
12098 echo "$ac_t""no" 1>&6
12099 SET_MAKE="MAKE=${MAKE-make}"
12100fi
12101
12102
12103
12104
12105if test "${TOOLKIT_DIR}" = "msw" ; then
12106 GL_TOOLKIT_DIR="win"
12107else
12108 GL_TOOLKIT_DIR="${TOOLKIT_DIR}"
12109fi
12110
12111
12112trap '' 1 2 15
12113cat > confcache <<\EOF
12114# This file is a shell script that caches the results of configure
12115# tests run on this system so they can be shared between configure
12116# scripts and configure runs. It is not useful on other systems.
12117# If it contains results you don't want to keep, you may remove or edit it.
12118#
12119# By default, configure uses ./config.cache as the cache file,
12120# creating it if it does not exist already. You can give configure
12121# the --cache-file=FILE option to use a different cache file; that is
12122# what configure does when it calls configure scripts in
12123# subdirectories, so they share the cache.
12124# Giving --cache-file=/dev/null disables caching, for debugging configure.
12125# config.status only pays attention to the cache file if you give it the
12126# --recheck option to rerun configure.
12127#
12128EOF
12129# The following way of writing the cache mishandles newlines in values,
12130# but we know of no workaround that is simple, portable, and efficient.
12131# So, don't put newlines in cache variables' values.
12132# Ultrix sh set writes to stderr and can't be redirected directly,
12133# and sets the high bit in the cache file unless we assign to the vars.
12134(set) 2>&1 |
0709ee62 12135 case `(ac_space=' '; set | grep ac_space) 2>&1` in
a16d3c04
KB
12136 *ac_space=\ *)
12137 # `set' does not quote correctly, so add quotes (double-quote substitution
12138 # turns \\\\ into \\, and sed turns \\ into \).
12139 sed -n \
12140 -e "s/'/'\\\\''/g" \
12141 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12142 ;;
12143 *)
12144 # `set' quotes correctly as required by POSIX, so do not add quotes.
12145 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12146 ;;
12147 esac >> confcache
12148if cmp -s $cache_file confcache; then
12149 :
12150else
12151 if test -w $cache_file; then
12152 echo "updating cache $cache_file"
12153 cat confcache > $cache_file
12154 else
12155 echo "not updating unwritable cache $cache_file"
12156 fi
12157fi
12158rm -f confcache
12159
12160trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12161
12162test "x$prefix" = xNONE && prefix=$ac_default_prefix
12163# Let make expand exec_prefix.
12164test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12165
12166# Any assignment to VPATH causes Sun make to only execute
12167# the first set of double-colon rules, so remove it if not needed.
12168# If there is a colon in the path, we need to keep it.
12169if test "x$srcdir" = x.; then
12170 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12171fi
12172
12173trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12174
12175DEFS=-DHAVE_CONFIG_H
12176
12177# Without the "./", some shells look in PATH for config.status.
12178: ${CONFIG_STATUS=./config.status}
12179
12180echo creating $CONFIG_STATUS
12181rm -f $CONFIG_STATUS
12182cat > $CONFIG_STATUS <<EOF
12183#! /bin/sh
12184# Generated automatically by configure.
12185# Run this file to recreate the current configuration.
12186# This directory was configured as follows,
12187# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12188#
12189# $0 $ac_configure_args
12190#
12191# Compiler output produced by configure, useful for debugging
12192# configure, is in ./config.log if it exists.
12193
12194ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12195for ac_option
12196do
12197 case "\$ac_option" in
12198 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12199 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12200 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12201 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
0709ee62 12202 echo "$CONFIG_STATUS generated by autoconf version 2.13"
a16d3c04
KB
12203 exit 0 ;;
12204 -help | --help | --hel | --he | --h)
12205 echo "\$ac_cs_usage"; exit 0 ;;
12206 *) echo "\$ac_cs_usage"; exit 1 ;;
12207 esac
12208done
12209
12210ac_given_srcdir=$srcdir
12211ac_given_INSTALL="$INSTALL"
12212
12213trap 'rm -fr `echo "
12214 wx-config
f7a11f8c
RR
12215 src/make.env
12216 src/makeprog.env
12217 src/makelib.env
a16d3c04
KB
12218 Makefile
12219 samples/Makefile
12220 samples/bombs/Makefile
12221 samples/caret/Makefile
12222 samples/checklst/Makefile
12223 samples/config/Makefile
12224 samples/controls/Makefile
2726c66d 12225 samples/db/Makefile
f7a11f8c
RR
12226 samples/dialogs/Makefile
12227 samples/docview/Makefile
12228 samples/docvwmdi/Makefile
12229 samples/dnd/Makefile
12230 samples/drawing/Makefile
0709ee62
VZ
12231 samples/forty/Makefile
12232 samples/fractal/Makefile
f7a11f8c
RR
12233 samples/image/Makefile
12234 samples/internat/Makefile
12235 samples/layout/Makefile
12236 samples/listctrl/Makefile
12237 samples/mdi/Makefile
12238 samples/minifram/Makefile
2726c66d
KB
12239 samples/minimal/Makefile
12240 samples/nettest/Makefile
12241 samples/newgrid/Makefile
f7a11f8c 12242 samples/notebook/Makefile
0709ee62 12243 samples/png/Makefile
a16d3c04 12244 samples/printing/Makefile
2726c66d
KB
12245 samples/proplist/Makefile
12246 samples/richedit/Makefile
0709ee62 12247 samples/resource/Makefile
f7a11f8c
RR
12248 samples/sashtest/Makefile
12249 samples/scroll/Makefile
12250 samples/splitter/Makefile
12251 samples/text/Makefile
12252 samples/thread/Makefile
12253 samples/toolbar/Makefile
12254 samples/treectrl/Makefile
12255 samples/typetest/Makefile
12256 samples/validate/Makefile
12257 samples/wxpoem/Makefile
12258 samples/wxsocket/Makefile
12259 samples/wizard/Makefile
12260 samples/html/Makefile
12261 samples/html/about/Makefile
12262 samples/html/help/Makefile
12263 samples/html/printing/Makefile
12264 samples/html/test/Makefile
12265 samples/html/zip/Makefile
12266 samples/html/virtual/Makefile
12267 samples/html/widget/Makefile
12268 utils/Makefile
12269 utils/wxMMedia2/Makefile
12270 utils/wxMMedia2/lib/Makefile
12271 utils/wxMMedia2/sample/Makefile
12272 utils/glcanvas/Makefile
12273 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
12274 utils/ogl/Makefile
12275 utils/ogl/src/Makefile
a16d3c04
KB
12276 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12277EOF
12278cat >> $CONFIG_STATUS <<EOF
12279
12280# Protect against being on the right side of a sed subst in config.status.
12281sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12282 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12283$ac_vpsub
12284$extrasub
0709ee62 12285s%@SHELL@%$SHELL%g
a16d3c04
KB
12286s%@CFLAGS@%$CFLAGS%g
12287s%@CPPFLAGS@%$CPPFLAGS%g
12288s%@CXXFLAGS@%$CXXFLAGS%g
0709ee62 12289s%@FFLAGS@%$FFLAGS%g
a16d3c04
KB
12290s%@DEFS@%$DEFS%g
12291s%@LDFLAGS@%$LDFLAGS%g
12292s%@LIBS@%$LIBS%g
12293s%@exec_prefix@%$exec_prefix%g
12294s%@prefix@%$prefix%g
12295s%@program_transform_name@%$program_transform_name%g
12296s%@bindir@%$bindir%g
12297s%@sbindir@%$sbindir%g
12298s%@libexecdir@%$libexecdir%g
12299s%@datadir@%$datadir%g
12300s%@sysconfdir@%$sysconfdir%g
12301s%@sharedstatedir@%$sharedstatedir%g
12302s%@localstatedir@%$localstatedir%g
12303s%@libdir@%$libdir%g
12304s%@includedir@%$includedir%g
12305s%@oldincludedir@%$oldincludedir%g
12306s%@infodir@%$infodir%g
12307s%@mandir@%$mandir%g
12308s%@host@%$host%g
12309s%@host_alias@%$host_alias%g
12310s%@host_cpu@%$host_cpu%g
12311s%@host_vendor@%$host_vendor%g
12312s%@host_os@%$host_os%g
12313s%@target@%$target%g
12314s%@target_alias@%$target_alias%g
12315s%@target_cpu@%$target_cpu%g
12316s%@target_vendor@%$target_vendor%g
12317s%@target_os@%$target_os%g
12318s%@build@%$build%g
12319s%@build_alias@%$build_alias%g
12320s%@build_cpu@%$build_cpu%g
12321s%@build_vendor@%$build_vendor%g
12322s%@build_os@%$build_os%g
12323s%@CC@%$CC%g
12324s%@CPP@%$CPP%g
12325s%@CXX@%$CXX%g
12326s%@CXXCPP@%$CXXCPP%g
12327s%@RANLIB@%$RANLIB%g
12328s%@AR@%$AR%g
12329s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
0709ee62 12330s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
a16d3c04
KB
12331s%@INSTALL_DATA@%$INSTALL_DATA%g
12332s%@STRIP@%$STRIP%g
12333s%@YACC@%$YACC%g
12334s%@LEX@%$LEX%g
12335s%@LEXLIB@%$LEXLIB%g
12336s%@LN_S@%$LN_S%g
12337s%@GTK_CONFIG@%$GTK_CONFIG%g
12338s%@GTK_CFLAGS@%$GTK_CFLAGS%g
12339s%@GTK_LIBS@%$GTK_LIBS%g
12340s%@X_CFLAGS@%$X_CFLAGS%g
12341s%@X_PRE_LIBS@%$X_PRE_LIBS%g
12342s%@X_LIBS@%$X_LIBS%g
12343s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
12344s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
12345s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
12346s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
12347s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
12348s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
12349s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
12350s%@WX_LIBRARY@%$WX_LIBRARY%g
12351s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
12352s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
12353s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
12354s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
12355s%@PROGRAM_EXT@%$PROGRAM_EXT%g
2726c66d
KB
12356s%@WX_ALL@%$WX_ALL%g
12357s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
a16d3c04
KB
12358s%@SHARED_LD@%$SHARED_LD%g
12359s%@PIC_FLAG@%$PIC_FLAG%g
12360s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
12361s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
12362s%@TOOLKIT@%$TOOLKIT%g
12363s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
12364s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
12365s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
12366s%@GUIHEADERS@%$GUIHEADERS%g
12367s%@GUIOBJS@%$GUIOBJS%g
12368s%@COMMONOBJS@%$COMMONOBJS%g
12369s%@GENERICOBJS@%$GENERICOBJS%g
12370s%@GUIDEPS@%$GUIDEPS%g
12371s%@COMMONDEPS@%$COMMONDEPS%g
12372s%@GENERICDEPS@%$GENERICDEPS%g
a0c79abb 12373s%@IODBCOBJS@%$IODBCOBJS%g
a16d3c04 12374s%@UNIXOBJS@%$UNIXOBJS%g
f7a11f8c
RR
12375s%@UNIXDEPS@%$UNIXDEPS%g
12376s%@ALL_OBJECTS@%$ALL_OBJECTS%g
12377s%@ALL_DEPFILES@%$ALL_DEPFILES%g
12378s%@ALL_HEADERS@%$ALL_HEADERS%g
a16d3c04
KB
12379s%@GUIDIST@%$GUIDIST%g
12380s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
12381s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
12382s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
12383s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
12384s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
12385s%@USER_SUBDIRS@%$USER_SUBDIRS%g
12386s%@EXTRA_LIBS@%$EXTRA_LIBS%g
12387s%@LD_LIBS@%$LD_LIBS%g
12388s%@SET_MAKE@%$SET_MAKE%g
12389s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g
12390
12391CEOF
12392EOF
12393
12394cat >> $CONFIG_STATUS <<\EOF
12395
12396# Split the substitutions into bite-sized pieces for seds with
12397# small command number limits, like on Digital OSF/1 and HP-UX.
12398ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12399ac_file=1 # Number of current file.
12400ac_beg=1 # First line for current file.
12401ac_end=$ac_max_sed_cmds # Line after last line for current file.
12402ac_more_lines=:
12403ac_sed_cmds=""
12404while $ac_more_lines; do
12405 if test $ac_beg -gt 1; then
12406 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12407 else
12408 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12409 fi
12410 if test ! -s conftest.s$ac_file; then
12411 ac_more_lines=false
12412 rm -f conftest.s$ac_file
12413 else
12414 if test -z "$ac_sed_cmds"; then
12415 ac_sed_cmds="sed -f conftest.s$ac_file"
12416 else
12417 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12418 fi
12419 ac_file=`expr $ac_file + 1`
12420 ac_beg=$ac_end
12421 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12422 fi
12423done
12424if test -z "$ac_sed_cmds"; then
12425 ac_sed_cmds=cat
12426fi
12427EOF
12428
12429cat >> $CONFIG_STATUS <<EOF
12430
12431CONFIG_FILES=\${CONFIG_FILES-"wx-config
f7a11f8c
RR
12432 src/make.env
12433 src/makeprog.env
12434 src/makelib.env
a16d3c04
KB
12435 Makefile
12436 samples/Makefile
12437 samples/bombs/Makefile
12438 samples/caret/Makefile
12439 samples/checklst/Makefile
12440 samples/config/Makefile
12441 samples/controls/Makefile
2726c66d 12442 samples/db/Makefile
f7a11f8c
RR
12443 samples/dialogs/Makefile
12444 samples/docview/Makefile
12445 samples/docvwmdi/Makefile
12446 samples/dnd/Makefile
12447 samples/drawing/Makefile
0709ee62
VZ
12448 samples/forty/Makefile
12449 samples/fractal/Makefile
f7a11f8c
RR
12450 samples/image/Makefile
12451 samples/internat/Makefile
12452 samples/layout/Makefile
12453 samples/listctrl/Makefile
12454 samples/mdi/Makefile
12455 samples/minifram/Makefile
2726c66d
KB
12456 samples/minimal/Makefile
12457 samples/nettest/Makefile
12458 samples/newgrid/Makefile
f7a11f8c 12459 samples/notebook/Makefile
0709ee62 12460 samples/png/Makefile
a16d3c04 12461 samples/printing/Makefile
2726c66d
KB
12462 samples/proplist/Makefile
12463 samples/richedit/Makefile
0709ee62 12464 samples/resource/Makefile
f7a11f8c
RR
12465 samples/sashtest/Makefile
12466 samples/scroll/Makefile
12467 samples/splitter/Makefile
12468 samples/text/Makefile
12469 samples/thread/Makefile
12470 samples/toolbar/Makefile
12471 samples/treectrl/Makefile
12472 samples/typetest/Makefile
12473 samples/validate/Makefile
12474 samples/wxpoem/Makefile
12475 samples/wxsocket/Makefile
12476 samples/wizard/Makefile
12477 samples/html/Makefile
12478 samples/html/about/Makefile
12479 samples/html/help/Makefile
12480 samples/html/printing/Makefile
12481 samples/html/test/Makefile
12482 samples/html/zip/Makefile
12483 samples/html/virtual/Makefile
12484 samples/html/widget/Makefile
12485 utils/Makefile
12486 utils/wxMMedia2/Makefile
12487 utils/wxMMedia2/lib/Makefile
12488 utils/wxMMedia2/sample/Makefile
12489 utils/glcanvas/Makefile
12490 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
12491 utils/ogl/Makefile
12492 utils/ogl/src/Makefile
a16d3c04
KB
12493 "}
12494EOF
12495cat >> $CONFIG_STATUS <<\EOF
12496for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12497 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12498 case "$ac_file" in
12499 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12500 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12501 *) ac_file_in="${ac_file}.in" ;;
12502 esac
12503
12504 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12505
12506 # Remove last slash and all that follows it. Not all systems have dirname.
12507 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12508 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12509 # The file is in a subdirectory.
12510 test ! -d "$ac_dir" && mkdir "$ac_dir"
12511 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12512 # A "../" for each directory in $ac_dir_suffix.
12513 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12514 else
12515 ac_dir_suffix= ac_dots=
12516 fi
12517
12518 case "$ac_given_srcdir" in
12519 .) srcdir=.
12520 if test -z "$ac_dots"; then top_srcdir=.
12521 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12522 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12523 *) # Relative path.
12524 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12525 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12526 esac
12527
12528 case "$ac_given_INSTALL" in
12529 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12530 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12531 esac
12532
12533 echo creating "$ac_file"
12534 rm -f "$ac_file"
12535 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12536 case "$ac_file" in
12537 *Makefile*) ac_comsub="1i\\
12538# $configure_input" ;;
12539 *) ac_comsub= ;;
12540 esac
12541
12542 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12543 sed -e "$ac_comsub
12544s%@configure_input@%$configure_input%g
12545s%@srcdir@%$srcdir%g
12546s%@top_srcdir@%$top_srcdir%g
12547s%@INSTALL@%$INSTALL%g
12548" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12549fi; done
12550rm -f conftest.s*
12551
12552# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12553# NAME is the cpp macro being defined and VALUE is the value it is being given.
12554#
12555# ac_d sets the value in "#define NAME VALUE" lines.
12556ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12557ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12558ac_dC='\3'
12559ac_dD='%g'
12560# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12561ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12562ac_uB='\([ ]\)%\1#\2define\3'
12563ac_uC=' '
12564ac_uD='\4%g'
12565# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12566ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12567ac_eB='$%\1#\2define\3'
12568ac_eC=' '
12569ac_eD='%g'
12570
12571if test "${CONFIG_HEADERS+set}" != set; then
12572EOF
12573cat >> $CONFIG_STATUS <<EOF
12574 CONFIG_HEADERS="setup.h:setup.h.in"
12575EOF
12576cat >> $CONFIG_STATUS <<\EOF
12577fi
12578for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12579 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12580 case "$ac_file" in
12581 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12582 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12583 *) ac_file_in="${ac_file}.in" ;;
12584 esac
12585
12586 echo creating $ac_file
12587
12588 rm -f conftest.frag conftest.in conftest.out
12589 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12590 cat $ac_file_inputs > conftest.in
12591
12592EOF
12593
12594# Transform confdefs.h into a sed script conftest.vals that substitutes
12595# the proper values into config.h.in to produce config.h. And first:
12596# Protect against being on the right side of a sed subst in config.status.
12597# Protect against being in an unquoted here document in config.status.
12598rm -f conftest.vals
12599cat > conftest.hdr <<\EOF
12600s/[\\&%]/\\&/g
12601s%[\\$`]%\\&%g
12602s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12603s%ac_d%ac_u%gp
12604s%ac_u%ac_e%gp
12605EOF
12606sed -n -f conftest.hdr confdefs.h > conftest.vals
12607rm -f conftest.hdr
12608
12609# This sed command replaces #undef with comments. This is necessary, for
12610# example, in the case of _POSIX_SOURCE, which is predefined and required
12611# on some systems where configure will not decide to define it.
12612cat >> conftest.vals <<\EOF
12613s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12614EOF
12615
12616# Break up conftest.vals because some shells have a limit on
12617# the size of here documents, and old seds have small limits too.
12618
12619rm -f conftest.tail
12620while :
12621do
12622 ac_lines=`grep -c . conftest.vals`
12623 # grep -c gives empty output for an empty file on some AIX systems.
12624 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12625 # Write a limited-size here document to conftest.frag.
12626 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12627 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12628 echo 'CEOF
12629 sed -f conftest.frag conftest.in > conftest.out
12630 rm -f conftest.in
12631 mv conftest.out conftest.in
12632' >> $CONFIG_STATUS
12633 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12634 rm -f conftest.vals
12635 mv conftest.tail conftest.vals
12636done
12637rm -f conftest.vals
12638
12639cat >> $CONFIG_STATUS <<\EOF
12640 rm -f conftest.frag conftest.h
12641 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12642 cat conftest.in >> conftest.h
12643 rm -f conftest.in
12644 if cmp -s $ac_file conftest.h 2>/dev/null; then
12645 echo "$ac_file is unchanged"
12646 rm -f conftest.h
12647 else
12648 # Remove last slash and all that follows it. Not all systems have dirname.
12649 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12650 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12651 # The file is in a subdirectory.
12652 test ! -d "$ac_dir" && mkdir "$ac_dir"
12653 fi
12654 rm -f $ac_file
12655 mv conftest.h $ac_file
12656 fi
12657fi; done
12658
12659EOF
12660cat >> $CONFIG_STATUS <<EOF
12661
12662 LN_S="${ac_cv_prog_LN_S}"
12663 TOOLKIT_DIR="${TOOLKIT_DIR}"
12664
12665
12666EOF
12667cat >> $CONFIG_STATUS <<\EOF
12668
12669 chmod +x wx-config
f7a11f8c
RR
12670 if test ! -d include; then
12671 mkdir include
12672 fi
12673 if test ! -d include/wx; then
12674 mkdir include/wx
12675 fi
12676 if test ! -d include/wx/${TOOLKIT_DIR}; then
12677 mkdir include/wx/${TOOLKIT_DIR}
12678 fi
12679 cp -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
a16d3c04
KB
12680
12681exit 0
12682EOF
12683chmod +x $CONFIG_STATUS
12684rm -fr confdefs* $ac_clean_files
12685test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
12686
12687