]> git.saurik.com Git - wxWidgets.git/blame - configure
and the compilation fix for the warning fixes
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
d76e994a
KB
3
4
10f2d63a
VZ
5# From configure.in Id: configure.in
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
10f2d63a
VZ
38
39
40
41
42# Guess values for system-dependent variables and create Makefiles.
788deba1 43# Generated automatically using autoconf version 2.13
10f2d63a
VZ
44# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
45#
46# This configure script is free software; the Free Software Foundation
47# gives unlimited permission to copy, distribute and modify it.
48
49# Defaults:
50ac_help=
51ac_default_prefix=/usr/local
52# Any additions from configure.in:
53ac_help="$ac_help
54--enable-gui use GUI classes"
55ac_help="$ac_help
56 --with-gtk use GTK+"
57ac_help="$ac_help
58 --with-motif use Motif/Lesstif"
59ac_help="$ac_help
60 --with-wine use WINE"
61ac_help="$ac_help
62 --with-cygwin use Cygwin for MS-Windows"
63ac_help="$ac_help
64 --with-mingw use GCC Minimal MS-Windows"
65ac_help="$ac_help
66 --with-gtk-prefix=PFX Prefix where GTK is installed"
67ac_help="$ac_help
68 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
69ac_help="$ac_help
70--with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
71ac_help="$ac_help
72--with-zlib use zlib for LZW compression"
73ac_help="$ac_help
74--with-libpng use libpng (PNG image format)"
75ac_help="$ac_help
76--with-libjpeg use libjpeg (JPEG file format)"
77ac_help="$ac_help
78--with-opengl use OpenGL (or Mesa)"
79ac_help="$ac_help
80--with-odbc use the IODBC and wxODBC classes"
81ac_help="$ac_help
82--enable-shared create shared library code"
83ac_help="$ac_help
84--enable-optimise create optimised code"
85ac_help="$ac_help
86--enable-debug same as debug_flag and debug_info"
87ac_help="$ac_help
88--enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
89ac_help="$ac_help
90--enable-debug_info create code with debugging information"
91ac_help="$ac_help
92--enable-debug_gdb create code with extra GDB debugging information"
93ac_help="$ac_help
94--enable-debug_cntxt use wxDebugContext"
95ac_help="$ac_help
96--enable-mem_tracing create code with memory tracing"
97ac_help="$ac_help
98--enable-profile create code with profiling information"
99ac_help="$ac_help
100--enable-no_rtti create code without RTTI information"
101ac_help="$ac_help
102--enable-no_exceptions create code without exceptions information"
103ac_help="$ac_help
104--enable-permissive compile code disregarding strict ANSI"
105ac_help="$ac_help
106--enable-no_deps create code without dependency information"
107ac_help="$ac_help
108--enable-intl use internationalization system"
109ac_help="$ac_help
110--enable-config use wxConfig (and derived) classes"
111ac_help="$ac_help
112--enable-sockets use socket/network classes"
113ac_help="$ac_help
114--enable-dialupman use dialup network classes"
115ac_help="$ac_help
116--enable-ipc use interprocess communication (wxSocket etc.)"
117ac_help="$ac_help
118--enable-apple_ieee use the Apple IEEE codec"
119ac_help="$ac_help
120--enable-timedate use date/time classes"
121ac_help="$ac_help
122--enable-wave use wxWave class"
123ac_help="$ac_help
124--enable-fraction use wxFraction class"
125ac_help="$ac_help
126--enable-dynlib use wxLibrary class for DLL loading"
127ac_help="$ac_help
128--enable-longlong use wxLongLong class"
129ac_help="$ac_help
130--enable-log use logging system"
131ac_help="$ac_help
132--enable-streams use wxStream etc classes"
133ac_help="$ac_help
134--enable-file use wxFile classes"
135ac_help="$ac_help
136--enable-textfile use wxTextFile classes"
137ac_help="$ac_help
138--enable-unicode compile wxString with Unicode support"
139ac_help="$ac_help
140--enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
141ac_help="$ac_help
142--enable-wxprintfv use wxWindows implementation of vprintf()"
143ac_help="$ac_help
144--enable-joystick compile in joystick support (Linux only)"
145ac_help="$ac_help
146--enable-std_iostreams use standard C++ stream classes"
147ac_help="$ac_help
148--enable-fs_inet use virtual HTTP/FTP filesystems"
149ac_help="$ac_help
150--enable-fs_zip use virtual ZIP filesystems"
151ac_help="$ac_help
152--enable-zipstream use wxZipInputStream"
153ac_help="$ac_help
154--enable-threads use threads"
155ac_help="$ac_help
156--enable-serial use class serialization"
157ac_help="$ac_help
158--enable-docview use document view architecture"
159ac_help="$ac_help
160--enable-help use help (using external browser at present)"
161ac_help="$ac_help
162--enable-constraints use layout-constraints system"
163ac_help="$ac_help
164--enable-printarch use printing architecture"
165ac_help="$ac_help
166--enable-mdi use multiple document interface architecture"
167ac_help="$ac_help
168--enable-postscript use wxPostscriptDC device context (default for gtk+)"
169ac_help="$ac_help
170--enable-prologio use Prolog IO library"
171ac_help="$ac_help
172--enable-resources use wxWindows resources"
173ac_help="$ac_help
174--enable-xresources use X resources for save (default for gtk+)"
175ac_help="$ac_help
176--enable-clipboard use wxClipboard classes"
177ac_help="$ac_help
178--enable-dnd use Drag'n'Drop classes"
179ac_help="$ac_help
180--enable-wxtree make wxTree library"
181ac_help="$ac_help
182--enable-controls use all usual controls"
183ac_help="$ac_help
184--enable-accel use accelerators"
185ac_help="$ac_help
186--enable-caret use wxCaret class"
187ac_help="$ac_help
188--enable-bmpbutton use wxBitmapButton class"
189ac_help="$ac_help
190--enable-checkbox use wxCheckBox class"
191ac_help="$ac_help
192--enable-checklst use wxCheckListBox (listbox with checkboxes) class"
193ac_help="$ac_help
194--enable-choice use wxChoice class"
195ac_help="$ac_help
196--enable-combobox use wxComboBox classes"
197ac_help="$ac_help
198--enable-gauge use wxGauge class"
199ac_help="$ac_help
200--enable-grid use wxGrid class"
201ac_help="$ac_help
202--enable-newgrid use new wxGrid class"
203ac_help="$ac_help
204--enable-imaglist use wxImageList class"
205ac_help="$ac_help
206--enable-listbox use wxListBox class"
207ac_help="$ac_help
208--enable-listctrl use wxListCtrl class"
209ac_help="$ac_help
210--enable-notebook use wxNotebook class"
211ac_help="$ac_help
212--enable-radiobox use wxRadioBox class"
213ac_help="$ac_help
214--enable-radiobtn use wxRadioButton class"
215ac_help="$ac_help
216--enable-sash use wxSashWindow class"
217ac_help="$ac_help
218--enable-scrollbar use wxScrollBar class and scrollable windows"
219ac_help="$ac_help
220--enable-slider use wxSlider class"
221ac_help="$ac_help
222--enable-spinbtn use wxSpinButton class"
223ac_help="$ac_help
224--enable-splitter use wxSplitterWindow class"
225ac_help="$ac_help
226--enable-statbmp use wxStaticBitmap class"
227ac_help="$ac_help
228--enable-statbox use wxStaticBox class"
229ac_help="$ac_help
230--enable-statline use wxStaticLine class"
231ac_help="$ac_help
232--enable-statusbar use wxStatusBar class"
233ac_help="$ac_help
234--enable-tabdialog use wxTabControl class"
235ac_help="$ac_help
236--enable-toolbar use wxToolBar class"
237ac_help="$ac_help
238--enable-treectrl use wxTreeCtrl class"
239ac_help="$ac_help
240--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
241ac_help="$ac_help
242--enable-dirdlg use wxDirDialog"
243ac_help="$ac_help
244--enable-textdlg use wxTextDialog"
245ac_help="$ac_help
246--enable-tipdlg use startup tips"
247ac_help="$ac_help
248--enable-progressdlg use wxProgressDialog"
249ac_help="$ac_help
250--enable-miniframe use wxMiniFrame class"
251ac_help="$ac_help
252--enable-html use wxHTML sub-library"
253ac_help="$ac_help
254--enable-tooltips use wxToolTip class"
255ac_help="$ac_help
256--enable-splines use spline drawing code"
257ac_help="$ac_help
258--enable-validators use wxValidator and derived classes"
259ac_help="$ac_help
260--enable-busyinfo use wxBusyInfo"
261ac_help="$ac_help
262--enable-gif use gif images (GIF file format)"
263ac_help="$ac_help
264--enable-pcx use pcx images (PCX file format)"
265ac_help="$ac_help
266--enable-pnm use pnm images (PNM file format)"
267
268# Initialize some variables set by options.
269# The variables have the same names as the options, with
270# dashes changed to underlines.
271build=NONE
272cache_file=./config.cache
273exec_prefix=NONE
274host=NONE
275no_create=
276nonopt=NONE
277no_recursion=
278prefix=NONE
279program_prefix=NONE
280program_suffix=NONE
281program_transform_name=s,x,x,
282silent=
283site=
284srcdir=
285target=NONE
286verbose=
287x_includes=NONE
288x_libraries=NONE
289bindir='${exec_prefix}/bin'
290sbindir='${exec_prefix}/sbin'
291libexecdir='${exec_prefix}/libexec'
292datadir='${prefix}/share'
293sysconfdir='${prefix}/etc'
294sharedstatedir='${prefix}/com'
295localstatedir='${prefix}/var'
296libdir='${exec_prefix}/lib'
297includedir='${prefix}/include'
298oldincludedir='/usr/include'
299infodir='${prefix}/info'
300mandir='${prefix}/man'
301
302# Initialize some other variables.
303subdirs=
304MFLAGS= MAKEFLAGS=
305SHELL=${CONFIG_SHELL-/bin/sh}
306# Maximum number of lines to put in a shell here document.
307ac_max_here_lines=12
308
309ac_prev=
310for ac_option
311do
312
313 # If the previous option needs an argument, assign it.
314 if test -n "$ac_prev"; then
315 eval "$ac_prev=\$ac_option"
316 ac_prev=
317 continue
318 fi
319
320 case "$ac_option" in
321 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
322 *) ac_optarg= ;;
323 esac
324
325 # Accept the important Cygnus configure options, so we can diagnose typos.
326
327 case "$ac_option" in
328
329 -bindir | --bindir | --bindi | --bind | --bin | --bi)
330 ac_prev=bindir ;;
331 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
332 bindir="$ac_optarg" ;;
333
334 -build | --build | --buil | --bui | --bu)
335 ac_prev=build ;;
336 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
337 build="$ac_optarg" ;;
338
339 -cache-file | --cache-file | --cache-fil | --cache-fi \
340 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
341 ac_prev=cache_file ;;
342 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
343 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
344 cache_file="$ac_optarg" ;;
345
346 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
347 ac_prev=datadir ;;
348 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
349 | --da=*)
350 datadir="$ac_optarg" ;;
351
352 -disable-* | --disable-*)
353 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
356 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
357 fi
358 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
359 eval "enable_${ac_feature}=no" ;;
360
361 -enable-* | --enable-*)
362 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
363 # Reject names that are not valid shell variable names.
364 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
365 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
366 fi
367 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
368 case "$ac_option" in
369 *=*) ;;
370 *) ac_optarg=yes ;;
371 esac
372 eval "enable_${ac_feature}='$ac_optarg'" ;;
373
374 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
375 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
376 | --exec | --exe | --ex)
377 ac_prev=exec_prefix ;;
378 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
379 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
380 | --exec=* | --exe=* | --ex=*)
381 exec_prefix="$ac_optarg" ;;
382
383 -gas | --gas | --ga | --g)
384 # Obsolete; use --with-gas.
385 with_gas=yes ;;
386
387 -help | --help | --hel | --he)
388 # Omit some internal or obsolete options to make the list less imposing.
389 # This message is too long to be a string in the A/UX 3.1 sh.
390 cat << EOF
391Usage: configure [options] [host]
392Options: [defaults in brackets after descriptions]
393Configuration:
394 --cache-file=FILE cache test results in FILE
395 --help print this message
396 --no-create do not create output files
397 --quiet, --silent do not print \`checking...' messages
398 --version print the version of autoconf that created configure
399Directory and file names:
400 --prefix=PREFIX install architecture-independent files in PREFIX
401 [$ac_default_prefix]
402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
403 [same as prefix]
404 --bindir=DIR user executables in DIR [EPREFIX/bin]
405 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
406 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
407 --datadir=DIR read-only architecture-independent data in DIR
408 [PREFIX/share]
409 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
410 --sharedstatedir=DIR modifiable architecture-independent data in DIR
411 [PREFIX/com]
412 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
413 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
414 --includedir=DIR C header files in DIR [PREFIX/include]
415 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
416 --infodir=DIR info documentation in DIR [PREFIX/info]
417 --mandir=DIR man documentation in DIR [PREFIX/man]
418 --srcdir=DIR find the sources in DIR [configure dir or ..]
419 --program-prefix=PREFIX prepend PREFIX to installed program names
420 --program-suffix=SUFFIX append SUFFIX to installed program names
421 --program-transform-name=PROGRAM
422 run sed PROGRAM on installed program names
423EOF
424 cat << EOF
425Host type:
426 --build=BUILD configure for building on BUILD [BUILD=HOST]
427 --host=HOST configure for HOST [guessed]
428 --target=TARGET configure for TARGET [TARGET=HOST]
429Features and packages:
430 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
431 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
432 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
433 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
434 --x-includes=DIR X include files are in DIR
435 --x-libraries=DIR X library files are in DIR
436EOF
437 if test -n "$ac_help"; then
438 echo "--enable and --with options recognized:$ac_help"
439 fi
440 exit 0 ;;
441
442 -host | --host | --hos | --ho)
443 ac_prev=host ;;
444 -host=* | --host=* | --hos=* | --ho=*)
445 host="$ac_optarg" ;;
446
447 -includedir | --includedir | --includedi | --included | --include \
448 | --includ | --inclu | --incl | --inc)
449 ac_prev=includedir ;;
450 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451 | --includ=* | --inclu=* | --incl=* | --inc=*)
452 includedir="$ac_optarg" ;;
453
454 -infodir | --infodir | --infodi | --infod | --info | --inf)
455 ac_prev=infodir ;;
456 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457 infodir="$ac_optarg" ;;
458
459 -libdir | --libdir | --libdi | --libd)
460 ac_prev=libdir ;;
461 -libdir=* | --libdir=* | --libdi=* | --libd=*)
462 libdir="$ac_optarg" ;;
463
464 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465 | --libexe | --libex | --libe)
466 ac_prev=libexecdir ;;
467 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468 | --libexe=* | --libex=* | --libe=*)
469 libexecdir="$ac_optarg" ;;
470
471 -localstatedir | --localstatedir | --localstatedi | --localstated \
472 | --localstate | --localstat | --localsta | --localst \
473 | --locals | --local | --loca | --loc | --lo)
474 ac_prev=localstatedir ;;
475 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
478 localstatedir="$ac_optarg" ;;
479
480 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481 ac_prev=mandir ;;
482 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 mandir="$ac_optarg" ;;
484
485 -nfp | --nfp | --nf)
486 # Obsolete; use --without-fp.
487 with_fp=no ;;
488
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c)
491 no_create=yes ;;
492
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495 no_recursion=yes ;;
496
497 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499 | --oldin | --oldi | --old | --ol | --o)
500 ac_prev=oldincludedir ;;
501 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
504 oldincludedir="$ac_optarg" ;;
505
506 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507 ac_prev=prefix ;;
508 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509 prefix="$ac_optarg" ;;
510
511 -program-prefix | --program-prefix | --program-prefi | --program-pref \
512 | --program-pre | --program-pr | --program-p)
513 ac_prev=program_prefix ;;
514 -program-prefix=* | --program-prefix=* | --program-prefi=* \
515 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
516 program_prefix="$ac_optarg" ;;
517
518 -program-suffix | --program-suffix | --program-suffi | --program-suff \
519 | --program-suf | --program-su | --program-s)
520 ac_prev=program_suffix ;;
521 -program-suffix=* | --program-suffix=* | --program-suffi=* \
522 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
523 program_suffix="$ac_optarg" ;;
524
525 -program-transform-name | --program-transform-name \
526 | --program-transform-nam | --program-transform-na \
527 | --program-transform-n | --program-transform- \
528 | --program-transform | --program-transfor \
529 | --program-transfo | --program-transf \
530 | --program-trans | --program-tran \
531 | --progr-tra | --program-tr | --program-t)
532 ac_prev=program_transform_name ;;
533 -program-transform-name=* | --program-transform-name=* \
534 | --program-transform-nam=* | --program-transform-na=* \
535 | --program-transform-n=* | --program-transform-=* \
536 | --program-transform=* | --program-transfor=* \
537 | --program-transfo=* | --program-transf=* \
538 | --program-trans=* | --program-tran=* \
539 | --progr-tra=* | --program-tr=* | --program-t=*)
540 program_transform_name="$ac_optarg" ;;
541
542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543 | -silent | --silent | --silen | --sile | --sil)
544 silent=yes ;;
545
546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547 ac_prev=sbindir ;;
548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549 | --sbi=* | --sb=*)
550 sbindir="$ac_optarg" ;;
551
552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554 | --sharedst | --shareds | --shared | --share | --shar \
555 | --sha | --sh)
556 ac_prev=sharedstatedir ;;
557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560 | --sha=* | --sh=*)
561 sharedstatedir="$ac_optarg" ;;
562
563 -site | --site | --sit)
564 ac_prev=site ;;
565 -site=* | --site=* | --sit=*)
566 site="$ac_optarg" ;;
567
568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569 ac_prev=srcdir ;;
570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571 srcdir="$ac_optarg" ;;
572
573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574 | --syscon | --sysco | --sysc | --sys | --sy)
575 ac_prev=sysconfdir ;;
576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
578 sysconfdir="$ac_optarg" ;;
579
580 -target | --target | --targe | --targ | --tar | --ta | --t)
581 ac_prev=target ;;
582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
583 target="$ac_optarg" ;;
584
585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
586 verbose=yes ;;
587
588 -version | --version | --versio | --versi | --vers)
788deba1 589 echo "configure generated by autoconf version 2.13"
10f2d63a
VZ
590 exit 0 ;;
591
592 -with-* | --with-*)
593 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
594 # Reject names that are not valid shell variable names.
595 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
596 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
597 fi
598 ac_package=`echo $ac_package| sed 's/-/_/g'`
599 case "$ac_option" in
600 *=*) ;;
601 *) ac_optarg=yes ;;
602 esac
603 eval "with_${ac_package}='$ac_optarg'" ;;
604
605 -without-* | --without-*)
606 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
607 # Reject names that are not valid shell variable names.
608 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
609 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
610 fi
611 ac_package=`echo $ac_package| sed 's/-/_/g'`
612 eval "with_${ac_package}=no" ;;
613
614 --x)
615 # Obsolete; use --with-x.
616 with_x=yes ;;
617
618 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
619 | --x-incl | --x-inc | --x-in | --x-i)
620 ac_prev=x_includes ;;
621 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
622 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
623 x_includes="$ac_optarg" ;;
624
625 -x-libraries | --x-libraries | --x-librarie | --x-librari \
626 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
627 ac_prev=x_libraries ;;
628 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
629 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
630 x_libraries="$ac_optarg" ;;
631
632 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
633 ;;
634
635 *)
636 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
637 echo "configure: warning: $ac_option: invalid host type" 1>&2
638 fi
639 if test "x$nonopt" != xNONE; then
640 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
641 fi
642 nonopt="$ac_option"
643 ;;
644
645 esac
646done
647
648if test -n "$ac_prev"; then
649 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
650fi
651
652trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
653
654# File descriptor usage:
655# 0 standard input
656# 1 file creation
657# 2 errors and warnings
658# 3 some systems may open it to /dev/tty
659# 4 used on the Kubota Titan
660# 6 checking for... messages and results
661# 5 compiler messages saved in config.log
662if test "$silent" = yes; then
663 exec 6>/dev/null
664else
665 exec 6>&1
666fi
667exec 5>./config.log
668
669echo "\
670This file contains any messages produced by compilers while
671running configure, to aid debugging if configure makes a mistake.
672" 1>&5
673
674# Strip out --no-create and --no-recursion so they do not pile up.
675# Also quote any args containing shell metacharacters.
676ac_configure_args=
677for ac_arg
678do
679 case "$ac_arg" in
680 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
681 | --no-cr | --no-c) ;;
682 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
683 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
684 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
685 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
686 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
687 esac
688done
689
690# NLS nuisances.
691# Only set these to C if already set. These must not be set unconditionally
692# because not all systems understand e.g. LANG=C (notably SCO).
693# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
694# Non-C LC_CTYPE values break the ctype check.
695if test "${LANG+set}" = set; then LANG=C; export LANG; fi
696if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
697if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
698if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
699
700# confdefs.h avoids OS command line length limits that DEFS can exceed.
701rm -rf conftest* confdefs.h
702# AIX cpp loses on an empty file, so make sure it contains at least a newline.
703echo > confdefs.h
704
705# A filename unique to this package, relative to the directory that
706# configure is in, which we can look for to find out if srcdir is correct.
707ac_unique_file=wx-config.in
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_prog=$0
714 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
715 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
716 srcdir=$ac_confdir
717 if test ! -r $srcdir/$ac_unique_file; then
718 srcdir=..
719 fi
720else
721 ac_srcdir_defaulted=no
722fi
723if test ! -r $srcdir/$ac_unique_file; then
724 if test "$ac_srcdir_defaulted" = yes; then
725 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
726 else
727 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
728 fi
729fi
730srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
731
732# Prefer explicitly selected file to automatically selected ones.
733if test -z "$CONFIG_SITE"; then
734 if test "x$prefix" != xNONE; then
735 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
736 else
737 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
738 fi
739fi
740for ac_site_file in $CONFIG_SITE; do
741 if test -r "$ac_site_file"; then
742 echo "loading site script $ac_site_file"
743 . "$ac_site_file"
744 fi
745done
746
747if test -r "$cache_file"; then
748 echo "loading cache $cache_file"
749 . $cache_file
750else
751 echo "creating cache $cache_file"
752 > $cache_file
753fi
754
755ac_ext=c
756# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
757ac_cpp='$CPP $CPPFLAGS'
758ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
759ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
760cross_compiling=$ac_cv_prog_cc_cross
761
762ac_exeext=
763ac_objext=o
764if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
765 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
766 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
767 ac_n= ac_c='
768' ac_t=' '
769 else
770 ac_n=-n ac_c= ac_t=
771 fi
772else
773 ac_n= ac_c='\c' ac_t=
774fi
775
776
777
778ac_aux_dir=
779for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
780 if test -f $ac_dir/install-sh; then
781 ac_aux_dir=$ac_dir
782 ac_install_sh="$ac_aux_dir/install-sh -c"
783 break
784 elif test -f $ac_dir/install.sh; then
785 ac_aux_dir=$ac_dir
786 ac_install_sh="$ac_aux_dir/install.sh -c"
787 break
788 fi
789done
790if test -z "$ac_aux_dir"; then
791 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
792fi
793ac_config_guess=$ac_aux_dir/config.guess
794ac_config_sub=$ac_aux_dir/config.sub
795ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
796
797
798# Do some error checking and defaulting for the host and target type.
799# The inputs are:
800# configure --host=HOST --target=TARGET --build=BUILD NONOPT
801#
802# The rules are:
803# 1. You are not allowed to specify --host, --target, and nonopt at the
804# same time.
805# 2. Host defaults to nonopt.
806# 3. If nonopt is not specified, then host defaults to the current host,
807# as determined by config.guess.
808# 4. Target and build default to nonopt.
809# 5. If nonopt is not specified, then target and build default to host.
810
811# The aliases save the names the user supplied, while $host etc.
812# will get canonicalized.
813case $host---$target---$nonopt in
814NONE---*---* | *---NONE---* | *---*---NONE) ;;
815*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
816esac
817
818
819# Make sure we can run config.sub.
820if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
821else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
822fi
823
824echo $ac_n "checking host system type""... $ac_c" 1>&6
ba337fe7 825echo "configure:824: checking host system type" >&5
10f2d63a
VZ
826
827host_alias=$host
828case "$host_alias" in
829NONE)
830 case $nonopt in
831 NONE)
832 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
833 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
834 fi ;;
835 *) host_alias=$nonopt ;;
836 esac ;;
837esac
838
839host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
840host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
841host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
842host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
843echo "$ac_t""$host" 1>&6
844
845echo $ac_n "checking target system type""... $ac_c" 1>&6
ba337fe7 846echo "configure:845: checking target system type" >&5
10f2d63a
VZ
847
848target_alias=$target
849case "$target_alias" in
850NONE)
851 case $nonopt in
852 NONE) target_alias=$host_alias ;;
853 *) target_alias=$nonopt ;;
854 esac ;;
855esac
856
857target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
858target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
859target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
860target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
861echo "$ac_t""$target" 1>&6
862
863echo $ac_n "checking build system type""... $ac_c" 1>&6
ba337fe7 864echo "configure:863: checking build system type" >&5
10f2d63a
VZ
865
866build_alias=$build
867case "$build_alias" in
868NONE)
869 case $nonopt in
870 NONE) build_alias=$host_alias ;;
871 *) build_alias=$nonopt ;;
872 esac ;;
873esac
874
875build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
876build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
877build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
878build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
879echo "$ac_t""$build" 1>&6
880
881test "$host_alias" != "$target_alias" &&
882 test "$program_prefix$program_suffix$program_transform_name" = \
883 NONENONEs,x,x, &&
884 program_prefix=${target_alias}-
885
886
887
888WX_MAJOR_VERSION_NUMBER=2
889WX_MINOR_VERSION_NUMBER=1
59fe1666 890WX_RELEASE_NUMBER=11
10f2d63a
VZ
891
892WX_INTERFACE_AGE=0
893WX_BINARY_AGE=0
894
895WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
896
897WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
898WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
899WX_REVISION=$WX_INTERFACE_AGE
900WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
901
902
903USE_UNIX=1
904USE_WIN32=0
905USE_LINUX=
906USE_SGI=
907USE_HPUX=
908USE_SYSV=
909USE_SVR4=
910USE_AIX=
911USE_SUN=
912USE_SOLARIS=
913USE_SUNOS=
914USE_ALPHA=
915USE_OSF=
916USE_BSD=
917USE_FREEBSD=
918USE_VMS=
919USE_ULTRIX=
920USE_CYGWIN=
921USE_MINGW=
922USE_DATA_GENERAL=
923
924ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE"
925
926DEFAULT_wxUSE_GTK=0
927DEFAULT_wxUSE_MOTIF=0
928DEFAULT_wxUSE_MSW=0
929DEFAULT_wxUSE_WINE=0
930
931DEFAULT_DEFAULT_wxUSE_GTK=0
932DEFAULT_DEFAULT_wxUSE_MOTIF=0
933DEFAULT_DEFAULT_wxUSE_MSW=0
934DEFAULT_DEFAULT_wxUSE_WINE=0
935
936case "${host}" in
937 *-hp-hpux* )
938 USE_HPUX=1
939 DEFAULT_DEFAULT_wxUSE_MOTIF=1
940 cat >> confdefs.h <<\EOF
941#define __HPUX__ 1
942EOF
943
944 ;;
945 *-*-linux* )
946 USE_LINUX=1
947 cat >> confdefs.h <<\EOF
948#define __LINUX__ 1
949EOF
950
951 TMP=`uname -m`
952 if test "x$TMP" = "xalpha"; then
953 USE_ALPHA=1
954 cat >> confdefs.h <<\EOF
955#define __ALPHA__ 1
956EOF
957
958 fi
959 DEFAULT_DEFAULT_wxUSE_GTK=1
960 ;;
961 *-*-irix5* | *-*-irix6* )
962 USE_SGI=1
963 USE_SVR4=1
964 cat >> confdefs.h <<\EOF
965#define __SGI__ 1
966EOF
967
968 cat >> confdefs.h <<\EOF
969#define __SVR4__ 1
970EOF
971
972 DEFAULT_DEFAULT_wxUSE_MOTIF=1
973 ;;
974 *-*-solaris2* )
975 USE_SUN=1
976 USE_SOLARIS=1
977 USE_SVR4=1
978 cat >> confdefs.h <<\EOF
979#define __SUN__ 1
980EOF
981
982 cat >> confdefs.h <<\EOF
983#define __SOLARIS__ 1
984EOF
985
986 cat >> confdefs.h <<\EOF
987#define __SVR4__ 1
988EOF
989
990 DEFAULT_DEFAULT_wxUSE_MOTIF=1
991 ;;
992 *-*-sunos4* )
993 USE_SUN=1
994 USE_SUNOS=1
995 USE_BSD=1
996 cat >> confdefs.h <<\EOF
997#define __SUN__ 1
998EOF
999
1000 cat >> confdefs.h <<\EOF
1001#define __SUNOS__ 1
1002EOF
1003
1004 cat >> confdefs.h <<\EOF
1005#define __BSD__ 1
1006EOF
1007
1008 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1009 ;;
1010 *-*-freebsd* | *-*-netbsd*)
1011 USE_BSD=1
1012 USE_FREEBSD=1
1013 cat >> confdefs.h <<\EOF
1014#define __FREEBSD__ 1
1015EOF
1016
1017 cat >> confdefs.h <<\EOF
1018#define __BSD__ 1
1019EOF
1020
1021 DEFAULT_DEFAULT_wxUSE_GTK=1
1022 ;;
1023 *-*-osf* )
1024 USE_ALPHA=1
1025 USE_OSF=1
1026 cat >> confdefs.h <<\EOF
1027#define __ALPHA__ 1
1028EOF
1029
1030 cat >> confdefs.h <<\EOF
1031#define __OSF__ 1
1032EOF
1033
1034 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1035 ;;
1036 *-*-dgux5* )
1037 USE_ALPHA=1
1038 USE_SVR4=1
1039 cat >> confdefs.h <<\EOF
1040#define __ALPHA__ 1
1041EOF
1042
1043 cat >> confdefs.h <<\EOF
1044#define __SVR4__ 1
1045EOF
1046
1047 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1048 ;;
1049 *-*-sysv5* )
1050 USE_SYSV=1
1051 USE_SVR4=1
1052 cat >> confdefs.h <<\EOF
1053#define __SYSV__ 1
1054EOF
1055
1056 cat >> confdefs.h <<\EOF
1057#define __SVR4__ 1
1058EOF
1059
1060 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1061 ;;
1062 *-*-aix* )
1063 USE_AIX=1
1064 USE_SYSV=1
1065 USE_SVR4=1
1066 cat >> confdefs.h <<\EOF
1067#define __AIX__ 1
1068EOF
1069
1070 cat >> confdefs.h <<\EOF
1071#define __SYSV__ 1
1072EOF
1073
1074 cat >> confdefs.h <<\EOF
1075#define __SVR4__ 1
1076EOF
1077
1078 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1079 ;;
1080
1081 *-*-cygwin32* )
1082 USE_UNIX=0
1083 USE_WIN32=1
1084 cat >> confdefs.h <<\EOF
1085#define __WIN32__ 1
1086EOF
1087
1088 cat >> confdefs.h <<\EOF
1089#define __WIN95__ 1
1090EOF
1091
1092 cat >> confdefs.h <<\EOF
1093#define __WINDOWS__ 1
1094EOF
1095
1096 cat >> confdefs.h <<\EOF
1097#define __GNUWIN32__ 1
1098EOF
1099
1100 cat >> confdefs.h <<\EOF
1101#define STRICT 1
1102EOF
1103
1104 cat >> confdefs.h <<\EOF
1105#define WINVER 0x0400
1106EOF
1107
1108 DEFAULT_DEFAULT_wxUSE_MSW=1
1109 ;;
1110 *-*-mingw32* )
1111 USE_UNIX=0
1112 USE_WIN32=1
1113 cat >> confdefs.h <<\EOF
1114#define __WIN32__ 1
1115EOF
1116
1117 cat >> confdefs.h <<\EOF
1118#define __WIN95__ 1
1119EOF
1120
1121 cat >> confdefs.h <<\EOF
1122#define __WINDOWS__ 1
1123EOF
1124
1125 cat >> confdefs.h <<\EOF
1126#define __GNUWIN32__ 1
1127EOF
1128
1129 cat >> confdefs.h <<\EOF
1130#define STRICT 1
1131EOF
1132
1133 cat >> confdefs.h <<\EOF
1134#define WINVER 0x0400
1135EOF
1136
1137 DEFAULT_DEFAULT_wxUSE_MSW=1
1138 ;;
1139
1140 *-pc-os2_emx )
1141 cat >> confdefs.h <<\EOF
1142#define __EMX__ 1
1143EOF
1144
1145 ;;
1146
1147 *)
1148 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1149esac
1150
1151if test "$USE_UNIX" = 1 ; then
1152 wxUSE_UNIX=yes
1153 cat >> confdefs.h <<\EOF
1154#define __UNIX__ 1
1155EOF
1156
1157 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1158 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1159fi
1160
1161if test "$USE_LINUX" = 1; then
1162 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
ba337fe7 1163echo "configure:1162: checking for gettext in -lc" >&5
10f2d63a
VZ
1164ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1165if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1167else
1168 ac_save_LIBS="$LIBS"
1169LIBS="-lc $LIBS"
1170cat > conftest.$ac_ext <<EOF
ba337fe7 1171#line 1170 "configure"
10f2d63a
VZ
1172#include "confdefs.h"
1173/* Override any gcc2 internal prototype to avoid an error. */
1174/* We use char because int might match the return type of a gcc2
1175 builtin and then its argument prototype would still apply. */
1176char gettext();
1177
1178int main() {
1179gettext()
1180; return 0; }
1181EOF
ba337fe7 1182if { (eval echo configure:1181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1183 rm -rf conftest*
1184 eval "ac_cv_lib_$ac_lib_var=yes"
1185else
1186 echo "configure: failed program was:" >&5
1187 cat conftest.$ac_ext >&5
1188 rm -rf conftest*
1189 eval "ac_cv_lib_$ac_lib_var=no"
1190fi
1191rm -f conftest*
1192LIBS="$ac_save_LIBS"
1193
1194fi
1195if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1196 echo "$ac_t""yes" 1>&6
1197 cat >> confdefs.h <<\EOF
1198#define wxHAVE_GLIBC2 1
1199EOF
1200
1201else
1202 echo "$ac_t""no" 1>&6
1203fi
1204
1205fi
1206
1207
1208
1209
1210 wx_arg_cache_file="configarg.cache"
1211 echo "loading argument cache $wx_arg_cache_file"
1212 rm -f ${wx_arg_cache_file}.tmp
1213 touch ${wx_arg_cache_file}.tmp
1214 touch ${wx_arg_cache_file}
1215
1216
1217DEBUG_CONFIGURE=0
1218if test $DEBUG_CONFIGURE = 1; then
1219 DEFAULT_wxUSE_THREADS=yes
1220
1221 DEFAULT_wxUSE_SHARED=yes
1222 DEFAULT_wxUSE_OPTIMISE=yes
1223 DEFAULT_wxUSE_PROFILE=no
1224 DEFAULT_wxUSE_NO_DEPS=no
1225 DEFAULT_wxUSE_NO_RTTI=no
1226 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1227 DEFAULT_wxUSE_PERMISSIVE=no
1228 DEFAULT_wxUSE_DEBUG_FLAG=yes
1229 DEFAULT_wxUSE_DEBUG_INFO=yes
1230 DEFAULT_wxUSE_DEBUG_GDB=yes
1231 DEFAULT_wxUSE_MEM_TRACING=no
1232 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1233 DEFAULT_wxUSE_DMALLOC=no
1234 DEFAULT_wxUSE_APPLE_IEEE=no
1235
1236 DEFAULT_wxUSE_LOG=yes
1237
1238 DEFAULT_wxUSE_GUI=yes
1239
1240 DEFAULT_wxUSE_ZLIB=no
1241 DEFAULT_wxUSE_LIBPNG=no
1242 DEFAULT_wxUSE_LIBJPEG=no
1243 DEFAULT_wxUSE_ODBC=no
1244
1245 DEFAULT_wxUSE_STD_IOSTREAM=no
1246 DEFAULT_wxUSE_FILE=no
1247 DEFAULT_wxUSE_TEXTFILE=no
1248 DEFAULT_wxUSE_TIMEDATE=no
1249 DEFAULT_wxUSE_WAVE=no
1250 DEFAULT_wxUSE_INTL=no
1251 DEFAULT_wxUSE_CONFIG=no
1252 DEFAULT_wxUSE_STREAMS=no
1253 DEFAULT_wxUSE_SOCKETS=no
1254 DEFAULT_wxUSE_DIALUP_MANAGER=no
1255 DEFAULT_wxUSE_SERIAL=no
1256 DEFAULT_wxUSE_JOYSTICK=no
1257 DEFAULT_wxUSE_DYNLIB_CLASS=no
1258 DEFAULT_wxUSE_LONGLONG=no
1259
1260 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1261 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1262 DEFAULT_wxUSE_POSTSCRIPT=no
1263
1264 DEFAULT_wxUSE_X_RESOURCES=no
1265 DEFAULT_wxUSE_CLIPBOARD=no
1266 DEFAULT_wxUSE_TOOLTIPS=no
1267 DEFAULT_wxUSE_DRAG_AND_DROP=no
1268 DEFAULT_wxUSE_SPLINES=no
1269
1270 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1271 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1272 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1273
1274 DEFAULT_wxUSE_PROLOGIO=no
1275 DEFAULT_wxUSE_RESOURCES=no
1276 DEFAULT_wxUSE_CONSTRAINTS=no
1277 DEFAULT_wxUSE_IPC=no
1278 DEFAULT_wxUSE_HELP=no
1279 DEFAULT_wxUSE_WXTREE=no
1280 DEFAULT_wxUSE_METAFILE=no
1281
1282 DEFAULT_wxUSE_COMMONDLGS=no
1283 DEFAULT_wxUSE_DIRDLG=no
1284 DEFAULT_wxUSE_TEXTDLG=no
1285 DEFAULT_wxUSE_STARTUP_TIPS=no
1286 DEFAULT_wxUSE_PROGRESSDLG=no
1287 DEFAULT_wxUSE_MINIFRAME=no
1288 DEFAULT_wxUSE_HTML=no
1289 DEFAULT_wxUSE_FS_INET=no
1290 DEFAULT_wxUSE_FS_ZIP=no
1291 DEFAULT_wxUSE_BUSYINFO=no
1292 DEFAULT_wxUSE_ZIPSTREAM=no
1293 DEFAULT_wxUSE_VALIDATORS=yes
1294
1295 DEFAULT_wxUSE_ACCEL=no
1296 DEFAULT_wxUSE_CARET=no
1297 DEFAULT_wxUSE_BMPBUTTON=no
1298 DEFAULT_wxUSE_CHECKBOX=no
1299 DEFAULT_wxUSE_CHECKLST=no
1300 DEFAULT_wxUSE_CHOICE=yes
1301 DEFAULT_wxUSE_COMBOBOX=no
1302 DEFAULT_wxUSE_GAUGE=no
1303 DEFAULT_wxUSE_GRID=no
1304 DEFAULT_wxUSE_NEW_GRID=no
1305 DEFAULT_wxUSE_IMAGLIST=no
1306 DEFAULT_wxUSE_LISTBOX=no
1307 DEFAULT_wxUSE_LISTCTRL=no
1308 DEFAULT_wxUSE_NOTEBOOK=no
1309 DEFAULT_wxUSE_RADIOBOX=no
1310 DEFAULT_wxUSE_RADIOBTN=no
1311 DEFAULT_wxUSE_SASH=no
1312 DEFAULT_wxUSE_SCROLLBAR=no
1313 DEFAULT_wxUSE_SLIDER=no
1314 DEFAULT_wxUSE_SPINBTN=no
1315 DEFAULT_wxUSE_SPLITTER=no
1316 DEFAULT_wxUSE_STATBMP=no
1317 DEFAULT_wxUSE_STATBOX=no
1318 DEFAULT_wxUSE_STATLINE=no
1319 DEFAULT_wxUSE_STATUSBAR=yes
1320 DEFAULT_wxUSE_TABDIALOG=no
1321 DEFAULT_wxUSE_TOOLBAR=no
1322 DEFAULT_wxUSE_TREECTRL=no
1323
1324 DEFAULT_wxUSE_UNICODE=no
1325 DEFAULT_wxUSE_WCSRTOMBS=no
1326
1327 DEFAULT_wxUSE_GIF=no
1328 DEFAULT_wxUSE_PCX=no
1329 DEFAULT_wxUSE_PNM=no
1330else
1331 DEFAULT_wxUSE_THREADS=yes
1332
1333 DEFAULT_wxUSE_SHARED=yes
1334 DEFAULT_wxUSE_OPTIMISE=yes
1335 DEFAULT_wxUSE_PROFILE=no
1336 DEFAULT_wxUSE_NO_DEPS=no
1337 DEFAULT_wxUSE_NO_RTTI=no
1338 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1339 DEFAULT_wxUSE_PERMISSIVE=no
1340 DEFAULT_wxUSE_DEBUG_FLAG=no
1341 DEFAULT_wxUSE_DEBUG_INFO=no
1342 DEFAULT_wxUSE_DEBUG_GDB=no
1343 DEFAULT_wxUSE_MEM_TRACING=no
1344 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1345 DEFAULT_wxUSE_DMALLOC=no
1346 DEFAULT_wxUSE_APPLE_IEEE=yes
1347
1348 DEFAULT_wxUSE_LOG=yes
1349
1350 DEFAULT_wxUSE_GUI=yes
1351
1352 DEFAULT_wxUSE_ZLIB=yes
1353 DEFAULT_wxUSE_LIBPNG=yes
1354 DEFAULT_wxUSE_LIBJPEG=yes
1355 DEFAULT_wxUSE_ODBC=yes
1356
1357 DEFAULT_wxUSE_STD_IOSTREAM=no
1358 DEFAULT_wxUSE_FILE=yes
1359 DEFAULT_wxUSE_TEXTFILE=yes
1360 DEFAULT_wxUSE_TIMEDATE=yes
1361 DEFAULT_wxUSE_WAVE=no
1362 DEFAULT_wxUSE_INTL=yes
1363 DEFAULT_wxUSE_CONFIG=yes
1364 DEFAULT_wxUSE_STREAMS=yes
1365 DEFAULT_wxUSE_SOCKETS=yes
1366 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1367 DEFAULT_wxUSE_SERIAL=yes
1368 DEFAULT_wxUSE_JOYSTICK=yes
1369 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1370 DEFAULT_wxUSE_LONGLONG=no
1371
1372 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1373 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1374 DEFAULT_wxUSE_POSTSCRIPT=yes
1375
1376 DEFAULT_wxUSE_X_RESOURCES=no
1377 DEFAULT_wxUSE_CLIPBOARD=yes
1378 DEFAULT_wxUSE_TOOLTIPS=yes
1379 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1380 DEFAULT_wxUSE_SPLINES=yes
1381
1382 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1383 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1384 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1385
1386 DEFAULT_wxUSE_PROLOGIO=yes
1387 DEFAULT_wxUSE_RESOURCES=yes
1388 DEFAULT_wxUSE_CONSTRAINTS=yes
1389 DEFAULT_wxUSE_IPC=yes
1390 DEFAULT_wxUSE_HELP=yes
1391 DEFAULT_wxUSE_WXTREE=yes
1392 DEFAULT_wxUSE_METAFILE=yes
1393
1394 DEFAULT_wxUSE_COMMONDLGS=yes
1395 DEFAULT_wxUSE_DIRDLG=yes
1396 DEFAULT_wxUSE_TEXTDLG=yes
1397 DEFAULT_wxUSE_STARTUP_TIPS=yes
1398 DEFAULT_wxUSE_PROGRESSDLG=yes
1399 DEFAULT_wxUSE_MINIFRAME=yes
1400 DEFAULT_wxUSE_HTML=yes
1401 DEFAULT_wxUSE_FS_INET=yes
1402 DEFAULT_wxUSE_FS_ZIP=yes
1403 DEFAULT_wxUSE_BUSYINFO=yes
1404 DEFAULT_wxUSE_ZIPSTREAM=yes
1405 DEFAULT_wxUSE_VALIDATORS=yes
1406
1407 DEFAULT_wxUSE_ACCEL=yes
1408 DEFAULT_wxUSE_CARET=yes
1409 DEFAULT_wxUSE_BMPBUTTON=yes
1410 DEFAULT_wxUSE_CHECKBOX=yes
1411 DEFAULT_wxUSE_CHECKLST=yes
1412 DEFAULT_wxUSE_CHOICE=yes
1413 DEFAULT_wxUSE_COMBOBOX=yes
1414 DEFAULT_wxUSE_GAUGE=yes
1415 DEFAULT_wxUSE_GRID=yes
fc9c7c09 1416 DEFAULT_wxUSE_NEW_GRID=no
10f2d63a
VZ
1417 DEFAULT_wxUSE_IMAGLIST=yes
1418 DEFAULT_wxUSE_LISTBOX=yes
1419 DEFAULT_wxUSE_LISTCTRL=yes
1420 DEFAULT_wxUSE_NOTEBOOK=yes
1421 DEFAULT_wxUSE_RADIOBOX=yes
1422 DEFAULT_wxUSE_RADIOBTN=yes
1423 DEFAULT_wxUSE_SASH=yes
1424 DEFAULT_wxUSE_SCROLLBAR=yes
1425 DEFAULT_wxUSE_SLIDER=yes
1426 DEFAULT_wxUSE_SPINBTN=yes
1427 DEFAULT_wxUSE_SPLITTER=yes
1428 DEFAULT_wxUSE_STATBMP=yes
1429 DEFAULT_wxUSE_STATBOX=yes
1430 DEFAULT_wxUSE_STATLINE=yes
1431 DEFAULT_wxUSE_STATUSBAR=yes
1432 DEFAULT_wxUSE_TABDIALOG=no
1433 DEFAULT_wxUSE_TOOLBAR=yes
1434 DEFAULT_wxUSE_TREECTRL=yes
1435
1436 DEFAULT_wxUSE_UNICODE=no
1437 DEFAULT_wxUSE_WCSRTOMBS=no
1438
1439 DEFAULT_wxUSE_GIF=yes
1440 DEFAULT_wxUSE_PCX=yes
1441 DEFAULT_wxUSE_PNM=yes
1442fi
1443
1444
1445
1446for toolkit in `echo $ALL_TOOLKITS`; do
1447 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1448 if test "x$LINE" != x ; then
1449 has_toolkit_in_cache=1
1450 eval "DEFAULT_$LINE"
1451 eval "CACHE_$toolkit=1"
1452 fi
1453done
1454
1455
1456
1457 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
ba337fe7 1458echo "configure:1457: checking "for --enable-gui"" >&5
10f2d63a
VZ
1459 no_cache=0
1460 # Check whether --enable-gui or --disable-gui was given.
1461if test "${enable_gui+set}" = set; then
1462 enableval="$enable_gui"
1463
1464 if test "$enableval" = yes; then
1465 ac_cv_use_gui='wxUSE_GUI=yes'
1466 else
1467 ac_cv_use_gui='wxUSE_GUI=no'
1468 fi
1469
1470else
1471
1472 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1473 if test "x$LINE" != x ; then
1474 eval "DEFAULT_$LINE"
1475 else
1476 no_cache=1
1477 fi
1478
1479 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1480
1481fi
1482
1483
1484 eval "$ac_cv_use_gui"
1485 if test "$no_cache" != 1; then
1486 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1487 fi
1488
1489 if test "$wxUSE_GUI" = yes; then
1490 echo "$ac_t""yes" 1>&6
1491 else
1492 echo "$ac_t""no" 1>&6
1493 fi
1494
1495
1496if test "$wxUSE_GUI" = "no"; then
1497 DEFAULT_wxUSE_ZLIB=no
1498 DEFAULT_wxUSE_LIBPNG=no
1499 DEFAULT_wxUSE_LIBJPEG=no
1500 DEFAULT_wxUSE_SOCKETS=no
1501 DEFAULT_wxUSE_JOYSTICK=no
1502 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1503 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1504 DEFAULT_wxUSE_POSTSCRIPT=no
1505 DEFAULT_wxUSE_X_RESOURCES=no
1506 DEFAULT_wxUSE_CLIPBOARD=no
1507 DEFAULT_wxUSE_TOOLTIPS=no
1508 DEFAULT_wxUSE_DRAG_AND_DROP=no
1509 DEFAULT_wxUSE_SPLINES=no
1510 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1511 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1512 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1513 DEFAULT_wxUSE_PROLOGIO=no
1514 DEFAULT_wxUSE_RESOURCES=no
1515 DEFAULT_wxUSE_CONSTRAINTS=no
1516 DEFAULT_wxUSE_IPC=no
1517 DEFAULT_wxUSE_HELP=no
1518 DEFAULT_wxUSE_WXTREE=no
1519 DEFAULT_wxUSE_METAFILE=no
1520 DEFAULT_wxUSE_COMMONDLGS=no
1521 DEFAULT_wxUSE_DIRDLG=no
1522 DEFAULT_wxUSE_TEXTDLG=no
1523 DEFAULT_wxUSE_STARTUP_TIPS=no
1524 DEFAULT_wxUSE_PROGRESSDLG=no
1525 DEFAULT_wxUSE_MINIFRAME=no
1526 DEFAULT_wxUSE_HTML=no
1527 DEFAULT_wxUSE_FS_INET=no
1528 DEFAULT_wxUSE_FS_ZIP=no
1529 DEFAULT_wxUSE_BUSYINFO=no
1530 DEFAULT_wxUSE_ZIPSTREAM=no
1531 DEFAULT_wxUSE_VALIDATORS=no
1532 DEFAULT_wxUSE_ACCEL=no
1533 DEFAULT_wxUSE_CARET=no
1534 DEFAULT_wxUSE_BMPBUTTON=no
1535 DEFAULT_wxUSE_CHECKBOX=no
1536 DEFAULT_wxUSE_CHECKLST=no
1537 DEFAULT_wxUSE_CHOICE=no
1538 DEFAULT_wxUSE_COMBOBOX=no
1539 DEFAULT_wxUSE_GAUGE=no
1540 DEFAULT_wxUSE_GRID=no
1541 DEFAULT_wxUSE_NEW_GRID=no
1542 DEFAULT_wxUSE_IMAGLIST=no
1543 DEFAULT_wxUSE_LISTBOX=no
1544 DEFAULT_wxUSE_LISTCTRL=no
1545 DEFAULT_wxUSE_NOTEBOOK=no
1546 DEFAULT_wxUSE_RADIOBOX=no
1547 DEFAULT_wxUSE_RADIOBTN=no
1548 DEFAULT_wxUSE_SASH=no
1549 DEFAULT_wxUSE_SCROLLBAR=no
1550 DEFAULT_wxUSE_SLIDER=no
1551 DEFAULT_wxUSE_SPINBTN=no
1552 DEFAULT_wxUSE_SPLITTER=no
1553 DEFAULT_wxUSE_STATBMP=no
1554 DEFAULT_wxUSE_STATBOX=no
1555 DEFAULT_wxUSE_STATLINE=no
1556 DEFAULT_wxUSE_STATUSBAR=no
1557 DEFAULT_wxUSE_TABDIALOG=no
1558 DEFAULT_wxUSE_TOOLBAR=no
1559 DEFAULT_wxUSE_TREECTRL=no
1560 DEFAULT_wxUSE_GIF=no
1561 DEFAULT_wxUSE_PCX=no
1562 DEFAULT_wxUSE_PNM=no
1563fi
1564
1565# Check whether --with-gtk or --without-gtk was given.
1566if test "${with_gtk+set}" = set; then
1567 withval="$with_gtk"
1568 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1569fi
1570
1571# Check whether --with-motif or --without-motif was given.
1572if test "${with_motif+set}" = set; then
1573 withval="$with_motif"
1574 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1575fi
1576
1577# Check whether --with-wine or --without-wine was given.
1578if test "${with_wine+set}" = set; then
1579 withval="$with_wine"
1580 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1581fi
1582
1583# Check whether --with-cygwin or --without-cygwin was given.
1584if test "${with_cygwin+set}" = set; then
1585 withval="$with_cygwin"
1586 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1587fi
1588
1589# Check whether --with-mingw or --without-mingw was given.
1590if test "${with_mingw+set}" = set; then
1591 withval="$with_mingw"
1592 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1593fi
1594
1595
1596# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1597if test "${with_gtk_prefix+set}" = set; then
1598 withval="$with_gtk_prefix"
1599 gtk_config_prefix="$withval"
1600else
1601 gtk_config_prefix=""
1602fi
1603
1604# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1605if test "${with_gtk_exec_prefix+set}" = set; then
1606 withval="$with_gtk_exec_prefix"
1607 gtk_config_exec_prefix="$withval"
1608else
1609 gtk_config_exec_prefix=""
1610fi
1611
1612
1613
1614 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
ba337fe7 1615echo "configure:1614: checking "for --with-dmalloc"" >&5
10f2d63a
VZ
1616 no_cache=0
1617 # Check whether --with-dmalloc or --without-dmalloc was given.
1618if test "${with_dmalloc+set}" = set; then
1619 withval="$with_dmalloc"
1620
1621 if test "$withval" = yes; then
1622 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
1623 else
1624 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
1625 fi
1626
1627else
1628
1629 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
1630 if test "x$LINE" != x ; then
1631 eval "DEFAULT_$LINE"
1632 else
1633 no_cache=1
1634 fi
1635
1636 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
1637
1638fi
1639
1640
1641 eval "$ac_cv_use_dmalloc"
1642 if test "$no_cache" != 1; then
1643 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
1644 fi
1645
1646 if test "$wxUSE_DMALLOC" = yes; then
1647 echo "$ac_t""yes" 1>&6
1648 else
1649 echo "$ac_t""no" 1>&6
1650 fi
1651
1652
1653 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
ba337fe7 1654echo "configure:1653: checking "for --with-zlib"" >&5
10f2d63a
VZ
1655 no_cache=0
1656 # Check whether --with-zlib or --without-zlib was given.
1657if test "${with_zlib+set}" = set; then
1658 withval="$with_zlib"
1659
1660 if test "$withval" = yes; then
1661 ac_cv_use_zlib='wxUSE_ZLIB=yes'
1662 else
1663 ac_cv_use_zlib='wxUSE_ZLIB=no'
1664 fi
1665
1666else
1667
1668 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
1669 if test "x$LINE" != x ; then
1670 eval "DEFAULT_$LINE"
1671 else
1672 no_cache=1
1673 fi
1674
1675 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
1676
1677fi
1678
1679
1680 eval "$ac_cv_use_zlib"
1681 if test "$no_cache" != 1; then
1682 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
1683 fi
1684
1685 if test "$wxUSE_ZLIB" = yes; then
1686 echo "$ac_t""yes" 1>&6
1687 else
1688 echo "$ac_t""no" 1>&6
1689 fi
1690
1691
1692 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
ba337fe7 1693echo "configure:1692: checking "for --with-libpng"" >&5
10f2d63a
VZ
1694 no_cache=0
1695 # Check whether --with-libpng or --without-libpng was given.
1696if test "${with_libpng+set}" = set; then
1697 withval="$with_libpng"
1698
1699 if test "$withval" = yes; then
1700 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1701 else
1702 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1703 fi
1704
1705else
1706
1707 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1708 if test "x$LINE" != x ; then
1709 eval "DEFAULT_$LINE"
1710 else
1711 no_cache=1
1712 fi
1713
1714 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1715
1716fi
1717
1718
1719 eval "$ac_cv_use_libpng"
1720 if test "$no_cache" != 1; then
1721 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1722 fi
1723
1724 if test "$wxUSE_LIBPNG" = yes; then
1725 echo "$ac_t""yes" 1>&6
1726 else
1727 echo "$ac_t""no" 1>&6
1728 fi
1729
1730
1731 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
ba337fe7 1732echo "configure:1731: checking "for --with-libjpeg"" >&5
10f2d63a
VZ
1733 no_cache=0
1734 # Check whether --with-libjpeg or --without-libjpeg was given.
1735if test "${with_libjpeg+set}" = set; then
1736 withval="$with_libjpeg"
1737
1738 if test "$withval" = yes; then
1739 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1740 else
1741 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1742 fi
1743
1744else
1745
1746 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1747 if test "x$LINE" != x ; then
1748 eval "DEFAULT_$LINE"
1749 else
1750 no_cache=1
1751 fi
1752
1753 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1754
1755fi
1756
1757
1758 eval "$ac_cv_use_libjpeg"
1759 if test "$no_cache" != 1; then
1760 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1761 fi
1762
1763 if test "$wxUSE_LIBJPEG" = yes; then
1764 echo "$ac_t""yes" 1>&6
1765 else
1766 echo "$ac_t""no" 1>&6
1767 fi
1768
1769
1770 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
ba337fe7 1771echo "configure:1770: checking "for --with-opengl"" >&5
10f2d63a
VZ
1772 no_cache=0
1773 # Check whether --with-opengl or --without-opengl was given.
1774if test "${with_opengl+set}" = set; then
1775 withval="$with_opengl"
1776
1777 if test "$withval" = yes; then
1778 ac_cv_use_opengl='wxUSE_OPENGL=yes'
1779 else
1780 ac_cv_use_opengl='wxUSE_OPENGL=no'
1781 fi
1782
1783else
1784
1785 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
1786 if test "x$LINE" != x ; then
1787 eval "DEFAULT_$LINE"
1788 else
1789 no_cache=1
1790 fi
1791
1792 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
1793
1794fi
1795
1796
1797 eval "$ac_cv_use_opengl"
1798 if test "$no_cache" != 1; then
1799 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
1800 fi
1801
1802 if test "$wxUSE_OPENGL" = yes; then
1803 echo "$ac_t""yes" 1>&6
1804 else
1805 echo "$ac_t""no" 1>&6
1806 fi
1807
1808
1809 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
ba337fe7 1810echo "configure:1809: checking "for --with-odbc"" >&5
10f2d63a
VZ
1811 no_cache=0
1812 # Check whether --with-odbc or --without-odbc was given.
1813if test "${with_odbc+set}" = set; then
1814 withval="$with_odbc"
1815
1816 if test "$withval" = yes; then
1817 ac_cv_use_odbc='wxUSE_ODBC=yes'
1818 else
1819 ac_cv_use_odbc='wxUSE_ODBC=no'
1820 fi
1821
1822else
1823
1824 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1825 if test "x$LINE" != x ; then
1826 eval "DEFAULT_$LINE"
1827 else
1828 no_cache=1
1829 fi
1830
1831 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1832
1833fi
1834
1835
1836 eval "$ac_cv_use_odbc"
1837 if test "$no_cache" != 1; then
1838 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1839 fi
1840
1841 if test "$wxUSE_ODBC" = yes; then
1842 echo "$ac_t""yes" 1>&6
1843 else
1844 echo "$ac_t""no" 1>&6
1845 fi
1846
1847
1848
1849
1850
1851 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
ba337fe7 1852echo "configure:1851: checking "for --enable-shared"" >&5
10f2d63a
VZ
1853 no_cache=0
1854 # Check whether --enable-shared or --disable-shared was given.
1855if test "${enable_shared+set}" = set; then
1856 enableval="$enable_shared"
1857
1858 if test "$enableval" = yes; then
1859 ac_cv_use_shared='wxUSE_SHARED=yes'
1860 else
1861 ac_cv_use_shared='wxUSE_SHARED=no'
1862 fi
1863
1864else
1865
1866 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1867 if test "x$LINE" != x ; then
1868 eval "DEFAULT_$LINE"
1869 else
1870 no_cache=1
1871 fi
1872
1873 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1874
1875fi
1876
1877
1878 eval "$ac_cv_use_shared"
1879 if test "$no_cache" != 1; then
1880 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1881 fi
1882
1883 if test "$wxUSE_SHARED" = yes; then
1884 echo "$ac_t""yes" 1>&6
1885 else
1886 echo "$ac_t""no" 1>&6
1887 fi
1888
1889
1890 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
ba337fe7 1891echo "configure:1890: checking "for --enable-optimise"" >&5
10f2d63a
VZ
1892 no_cache=0
1893 # Check whether --enable-optimise or --disable-optimise was given.
1894if test "${enable_optimise+set}" = set; then
1895 enableval="$enable_optimise"
1896
1897 if test "$enableval" = yes; then
1898 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1899 else
1900 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1901 fi
1902
1903else
1904
1905 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1906 if test "x$LINE" != x ; then
1907 eval "DEFAULT_$LINE"
1908 else
1909 no_cache=1
1910 fi
1911
1912 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1913
1914fi
1915
1916
1917 eval "$ac_cv_use_optimise"
1918 if test "$no_cache" != 1; then
1919 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1920 fi
1921
1922 if test "$wxUSE_OPTIMISE" = yes; then
1923 echo "$ac_t""yes" 1>&6
1924 else
1925 echo "$ac_t""no" 1>&6
1926 fi
1927
1928
1929 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
ba337fe7 1930echo "configure:1929: checking "for --enable-debug"" >&5
10f2d63a
VZ
1931 no_cache=0
1932 # Check whether --enable-debug or --disable-debug was given.
1933if test "${enable_debug+set}" = set; then
1934 enableval="$enable_debug"
1935
1936 if test "$enableval" = yes; then
1937 ac_cv_use_debug='wxUSE_DEBUG=yes'
1938 else
1939 ac_cv_use_debug='wxUSE_DEBUG=no'
1940 fi
1941
1942else
1943
1944 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
1945 if test "x$LINE" != x ; then
1946 eval "DEFAULT_$LINE"
1947 else
1948 no_cache=1
1949 fi
1950
1951 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
1952
1953fi
1954
1955
1956 eval "$ac_cv_use_debug"
1957 if test "$no_cache" != 1; then
1958 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
1959 fi
1960
1961 if test "$wxUSE_DEBUG" = yes; then
1962 echo "$ac_t""yes" 1>&6
1963 else
1964 echo "$ac_t""no" 1>&6
1965 fi
1966
1967
1968if test "$wxUSE_DEBUG" = "yes"; then
1969 DEFAULT_wxUSE_DEBUG_FLAG=yes
1970 DEFAULT_wxUSE_DEBUG_INFO=yes
1971elif test "$wxUSE_DEBUG" = "no"; then
1972 DEFAULT_wxUSE_DEBUG_FLAG=no
1973 DEFAULT_wxUSE_DEBUG_INFO=no
1974fi
1975
1976
1977 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
ba337fe7 1978echo "configure:1977: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
1979 no_cache=0
1980 # Check whether --enable-debug_flag or --disable-debug_flag was given.
1981if test "${enable_debug_flag+set}" = set; then
1982 enableval="$enable_debug_flag"
1983
1984 if test "$enableval" = yes; then
1985 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
1986 else
1987 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
1988 fi
1989
1990else
1991
1992 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
1993 if test "x$LINE" != x ; then
1994 eval "DEFAULT_$LINE"
1995 else
1996 no_cache=1
1997 fi
1998
1999 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2000
2001fi
2002
2003
2004 eval "$ac_cv_use_debug_flag"
2005 if test "$no_cache" != 1; then
2006 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2007 fi
2008
2009 if test "$wxUSE_DEBUG_FLAG" = yes; then
2010 echo "$ac_t""yes" 1>&6
2011 else
2012 echo "$ac_t""no" 1>&6
2013 fi
2014
2015
2016 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
ba337fe7 2017echo "configure:2016: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
2018 no_cache=0
2019 # Check whether --enable-debug_info or --disable-debug_info was given.
2020if test "${enable_debug_info+set}" = set; then
2021 enableval="$enable_debug_info"
2022
2023 if test "$enableval" = yes; then
2024 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2025 else
2026 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2027 fi
2028
2029else
2030
2031 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2032 if test "x$LINE" != x ; then
2033 eval "DEFAULT_$LINE"
2034 else
2035 no_cache=1
2036 fi
2037
2038 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2039
2040fi
2041
2042
2043 eval "$ac_cv_use_debug_info"
2044 if test "$no_cache" != 1; then
2045 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2046 fi
2047
2048 if test "$wxUSE_DEBUG_INFO" = yes; then
2049 echo "$ac_t""yes" 1>&6
2050 else
2051 echo "$ac_t""no" 1>&6
2052 fi
2053
2054
2055 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
ba337fe7 2056echo "configure:2055: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2057 no_cache=0
2058 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2059if test "${enable_debug_gdb+set}" = set; then
2060 enableval="$enable_debug_gdb"
2061
2062 if test "$enableval" = yes; then
2063 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2064 else
2065 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2066 fi
2067
2068else
2069
2070 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2071 if test "x$LINE" != x ; then
2072 eval "DEFAULT_$LINE"
2073 else
2074 no_cache=1
2075 fi
2076
2077 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2078
2079fi
2080
2081
2082 eval "$ac_cv_use_debug_gdb"
2083 if test "$no_cache" != 1; then
2084 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2085 fi
2086
2087 if test "$wxUSE_DEBUG_GDB" = yes; then
2088 echo "$ac_t""yes" 1>&6
2089 else
2090 echo "$ac_t""no" 1>&6
2091 fi
2092
2093
2094 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
ba337fe7 2095echo "configure:2094: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2096 no_cache=0
2097 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2098if test "${enable_debug_cntxt+set}" = set; then
2099 enableval="$enable_debug_cntxt"
2100
2101 if test "$enableval" = yes; then
2102 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2103 else
2104 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2105 fi
2106
2107else
2108
2109 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2110 if test "x$LINE" != x ; then
2111 eval "DEFAULT_$LINE"
2112 else
2113 no_cache=1
2114 fi
2115
2116 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2117
2118fi
2119
2120
2121 eval "$ac_cv_use_debug_cntxt"
2122 if test "$no_cache" != 1; then
2123 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2124 fi
2125
2126 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2127 echo "$ac_t""yes" 1>&6
2128 else
2129 echo "$ac_t""no" 1>&6
2130 fi
2131
2132
2133 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
ba337fe7 2134echo "configure:2133: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2135 no_cache=0
2136 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2137if test "${enable_mem_tracing+set}" = set; then
2138 enableval="$enable_mem_tracing"
2139
2140 if test "$enableval" = yes; then
2141 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2142 else
2143 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2144 fi
2145
2146else
2147
2148 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2149 if test "x$LINE" != x ; then
2150 eval "DEFAULT_$LINE"
2151 else
2152 no_cache=1
2153 fi
2154
2155 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2156
2157fi
2158
2159
2160 eval "$ac_cv_use_mem_tracing"
2161 if test "$no_cache" != 1; then
2162 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2163 fi
2164
2165 if test "$wxUSE_MEM_TRACING" = yes; then
2166 echo "$ac_t""yes" 1>&6
2167 else
2168 echo "$ac_t""no" 1>&6
2169 fi
2170
2171
2172 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
ba337fe7 2173echo "configure:2172: checking "for --enable-profile"" >&5
10f2d63a
VZ
2174 no_cache=0
2175 # Check whether --enable-profile or --disable-profile was given.
2176if test "${enable_profile+set}" = set; then
2177 enableval="$enable_profile"
2178
2179 if test "$enableval" = yes; then
2180 ac_cv_use_profile='wxUSE_PROFILE=yes'
2181 else
2182 ac_cv_use_profile='wxUSE_PROFILE=no'
2183 fi
2184
2185else
2186
2187 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2188 if test "x$LINE" != x ; then
2189 eval "DEFAULT_$LINE"
2190 else
2191 no_cache=1
2192 fi
2193
2194 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2195
2196fi
2197
2198
2199 eval "$ac_cv_use_profile"
2200 if test "$no_cache" != 1; then
2201 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2202 fi
2203
2204 if test "$wxUSE_PROFILE" = yes; then
2205 echo "$ac_t""yes" 1>&6
2206 else
2207 echo "$ac_t""no" 1>&6
2208 fi
2209
2210
2211 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
ba337fe7 2212echo "configure:2211: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2213 no_cache=0
2214 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2215if test "${enable_no_rtti+set}" = set; then
2216 enableval="$enable_no_rtti"
2217
2218 if test "$enableval" = yes; then
2219 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2220 else
2221 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2222 fi
2223
2224else
2225
2226 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2227 if test "x$LINE" != x ; then
2228 eval "DEFAULT_$LINE"
2229 else
2230 no_cache=1
2231 fi
2232
2233 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2234
2235fi
2236
2237
2238 eval "$ac_cv_use_no_rtti"
2239 if test "$no_cache" != 1; then
2240 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2241 fi
2242
2243 if test "$wxUSE_NO_RTTI" = yes; then
2244 echo "$ac_t""yes" 1>&6
2245 else
2246 echo "$ac_t""no" 1>&6
2247 fi
2248
2249
2250 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
ba337fe7 2251echo "configure:2250: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2252 no_cache=0
2253 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2254if test "${enable_no_exceptions+set}" = set; then
2255 enableval="$enable_no_exceptions"
2256
2257 if test "$enableval" = yes; then
2258 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2259 else
2260 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2261 fi
2262
2263else
2264
2265 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2266 if test "x$LINE" != x ; then
2267 eval "DEFAULT_$LINE"
2268 else
2269 no_cache=1
2270 fi
2271
2272 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2273
2274fi
2275
2276
2277 eval "$ac_cv_use_no_exceptions"
2278 if test "$no_cache" != 1; then
2279 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2280 fi
2281
2282 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2283 echo "$ac_t""yes" 1>&6
2284 else
2285 echo "$ac_t""no" 1>&6
2286 fi
2287
2288
2289 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
ba337fe7 2290echo "configure:2289: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2291 no_cache=0
2292 # Check whether --enable-permissive or --disable-permissive was given.
2293if test "${enable_permissive+set}" = set; then
2294 enableval="$enable_permissive"
2295
2296 if test "$enableval" = yes; then
2297 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2298 else
2299 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2300 fi
2301
2302else
2303
2304 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2305 if test "x$LINE" != x ; then
2306 eval "DEFAULT_$LINE"
2307 else
2308 no_cache=1
2309 fi
2310
2311 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2312
2313fi
2314
2315
2316 eval "$ac_cv_use_permissive"
2317 if test "$no_cache" != 1; then
2318 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2319 fi
2320
2321 if test "$wxUSE_PERMISSIVE" = yes; then
2322 echo "$ac_t""yes" 1>&6
2323 else
2324 echo "$ac_t""no" 1>&6
2325 fi
2326
2327
2328 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
ba337fe7 2329echo "configure:2328: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2330 no_cache=0
2331 # Check whether --enable-no_deps or --disable-no_deps was given.
2332if test "${enable_no_deps+set}" = set; then
2333 enableval="$enable_no_deps"
2334
2335 if test "$enableval" = yes; then
2336 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2337 else
2338 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2339 fi
2340
2341else
2342
2343 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2344 if test "x$LINE" != x ; then
2345 eval "DEFAULT_$LINE"
2346 else
2347 no_cache=1
2348 fi
2349
2350 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2351
2352fi
2353
2354
2355 eval "$ac_cv_use_no_deps"
2356 if test "$no_cache" != 1; then
2357 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2358 fi
2359
2360 if test "$wxUSE_NO_DEPS" = yes; then
2361 echo "$ac_t""yes" 1>&6
2362 else
2363 echo "$ac_t""no" 1>&6
2364 fi
2365
2366
2367
2368
2369 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
ba337fe7 2370echo "configure:2369: checking "for --enable-intl"" >&5
10f2d63a
VZ
2371 no_cache=0
2372 # Check whether --enable-intl or --disable-intl was given.
2373if test "${enable_intl+set}" = set; then
2374 enableval="$enable_intl"
2375
2376 if test "$enableval" = yes; then
2377 ac_cv_use_intl='wxUSE_INTL=yes'
2378 else
2379 ac_cv_use_intl='wxUSE_INTL=no'
2380 fi
2381
2382else
2383
2384 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2385 if test "x$LINE" != x ; then
2386 eval "DEFAULT_$LINE"
2387 else
2388 no_cache=1
2389 fi
2390
2391 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2392
2393fi
2394
2395
2396 eval "$ac_cv_use_intl"
2397 if test "$no_cache" != 1; then
2398 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2399 fi
2400
2401 if test "$wxUSE_INTL" = yes; then
2402 echo "$ac_t""yes" 1>&6
2403 else
2404 echo "$ac_t""no" 1>&6
2405 fi
2406
2407
2408 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
ba337fe7 2409echo "configure:2408: checking "for --enable-config"" >&5
10f2d63a
VZ
2410 no_cache=0
2411 # Check whether --enable-config or --disable-config was given.
2412if test "${enable_config+set}" = set; then
2413 enableval="$enable_config"
2414
2415 if test "$enableval" = yes; then
2416 ac_cv_use_config='wxUSE_CONFIG=yes'
2417 else
2418 ac_cv_use_config='wxUSE_CONFIG=no'
2419 fi
2420
2421else
2422
2423 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2424 if test "x$LINE" != x ; then
2425 eval "DEFAULT_$LINE"
2426 else
2427 no_cache=1
2428 fi
2429
2430 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2431
2432fi
2433
2434
2435 eval "$ac_cv_use_config"
2436 if test "$no_cache" != 1; then
2437 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2438 fi
2439
2440 if test "$wxUSE_CONFIG" = yes; then
2441 echo "$ac_t""yes" 1>&6
2442 else
2443 echo "$ac_t""no" 1>&6
2444 fi
2445
2446
2447 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
ba337fe7 2448echo "configure:2447: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2449 no_cache=0
2450 # Check whether --enable-sockets or --disable-sockets was given.
2451if test "${enable_sockets+set}" = set; then
2452 enableval="$enable_sockets"
2453
2454 if test "$enableval" = yes; then
2455 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2456 else
2457 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2458 fi
2459
2460else
2461
2462 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2463 if test "x$LINE" != x ; then
2464 eval "DEFAULT_$LINE"
2465 else
2466 no_cache=1
2467 fi
2468
2469 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2470
2471fi
2472
2473
2474 eval "$ac_cv_use_sockets"
2475 if test "$no_cache" != 1; then
2476 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2477 fi
2478
2479 if test "$wxUSE_SOCKETS" = yes; then
2480 echo "$ac_t""yes" 1>&6
2481 else
2482 echo "$ac_t""no" 1>&6
2483 fi
2484
2485
2486 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
ba337fe7 2487echo "configure:2486: checking "for --enable-dialupman"" >&5
10f2d63a
VZ
2488 no_cache=0
2489 # Check whether --enable-dialupman or --disable-dialupman was given.
2490if test "${enable_dialupman+set}" = set; then
2491 enableval="$enable_dialupman"
2492
2493 if test "$enableval" = yes; then
2494 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2495 else
2496 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2497 fi
2498
2499else
2500
2501 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2502 if test "x$LINE" != x ; then
2503 eval "DEFAULT_$LINE"
2504 else
2505 no_cache=1
2506 fi
2507
2508 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2509
2510fi
2511
2512
2513 eval "$ac_cv_use_dialupman"
2514 if test "$no_cache" != 1; then
2515 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2516 fi
2517
2518 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2519 echo "$ac_t""yes" 1>&6
2520 else
2521 echo "$ac_t""no" 1>&6
2522 fi
2523
2524
2525 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
ba337fe7 2526echo "configure:2525: checking "for --enable-ipc"" >&5
10f2d63a
VZ
2527 no_cache=0
2528 # Check whether --enable-ipc or --disable-ipc was given.
2529if test "${enable_ipc+set}" = set; then
2530 enableval="$enable_ipc"
2531
2532 if test "$enableval" = yes; then
2533 ac_cv_use_ipc='wxUSE_IPC=yes'
2534 else
2535 ac_cv_use_ipc='wxUSE_IPC=no'
2536 fi
2537
2538else
2539
2540 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2541 if test "x$LINE" != x ; then
2542 eval "DEFAULT_$LINE"
2543 else
2544 no_cache=1
2545 fi
2546
2547 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2548
2549fi
2550
2551
2552 eval "$ac_cv_use_ipc"
2553 if test "$no_cache" != 1; then
2554 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2555 fi
2556
2557 if test "$wxUSE_IPC" = yes; then
2558 echo "$ac_t""yes" 1>&6
2559 else
2560 echo "$ac_t""no" 1>&6
2561 fi
2562
2563
2564 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
ba337fe7 2565echo "configure:2564: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2566 no_cache=0
2567 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2568if test "${enable_apple_ieee+set}" = set; then
2569 enableval="$enable_apple_ieee"
2570
2571 if test "$enableval" = yes; then
2572 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2573 else
2574 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2575 fi
2576
2577else
2578
2579 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2580 if test "x$LINE" != x ; then
2581 eval "DEFAULT_$LINE"
2582 else
2583 no_cache=1
2584 fi
2585
2586 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2587
2588fi
2589
2590
2591 eval "$ac_cv_use_apple_ieee"
2592 if test "$no_cache" != 1; then
2593 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2594 fi
2595
2596 if test "$wxUSE_APPLE_IEEE" = yes; then
2597 echo "$ac_t""yes" 1>&6
2598 else
2599 echo "$ac_t""no" 1>&6
2600 fi
2601
2602
2603 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
ba337fe7 2604echo "configure:2603: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2605 no_cache=0
2606 # Check whether --enable-timedate or --disable-timedate was given.
2607if test "${enable_timedate+set}" = set; then
2608 enableval="$enable_timedate"
2609
2610 if test "$enableval" = yes; then
2611 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2612 else
2613 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2614 fi
2615
2616else
2617
2618 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2619 if test "x$LINE" != x ; then
2620 eval "DEFAULT_$LINE"
2621 else
2622 no_cache=1
2623 fi
2624
2625 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2626
2627fi
2628
2629
2630 eval "$ac_cv_use_timedate"
2631 if test "$no_cache" != 1; then
2632 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2633 fi
2634
2635 if test "$wxUSE_TIMEDATE" = yes; then
2636 echo "$ac_t""yes" 1>&6
2637 else
2638 echo "$ac_t""no" 1>&6
2639 fi
2640
2641
2642 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
ba337fe7 2643echo "configure:2642: checking "for --enable-wave"" >&5
10f2d63a
VZ
2644 no_cache=0
2645 # Check whether --enable-wave or --disable-wave was given.
2646if test "${enable_wave+set}" = set; then
2647 enableval="$enable_wave"
2648
2649 if test "$enableval" = yes; then
2650 ac_cv_use_wave='wxUSE_WAVE=yes'
2651 else
2652 ac_cv_use_wave='wxUSE_WAVE=no'
2653 fi
2654
2655else
2656
2657 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2658 if test "x$LINE" != x ; then
2659 eval "DEFAULT_$LINE"
2660 else
2661 no_cache=1
2662 fi
2663
2664 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2665
2666fi
2667
2668
2669 eval "$ac_cv_use_wave"
2670 if test "$no_cache" != 1; then
2671 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2672 fi
2673
2674 if test "$wxUSE_WAVE" = yes; then
2675 echo "$ac_t""yes" 1>&6
2676 else
2677 echo "$ac_t""no" 1>&6
2678 fi
2679
2680
2681 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
ba337fe7 2682echo "configure:2681: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2683 no_cache=0
2684 # Check whether --enable-fraction or --disable-fraction was given.
2685if test "${enable_fraction+set}" = set; then
2686 enableval="$enable_fraction"
2687
2688 if test "$enableval" = yes; then
2689 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2690 else
2691 ac_cv_use_fraction='wxUSE_FRACTION=no'
2692 fi
2693
2694else
2695
2696 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2697 if test "x$LINE" != x ; then
2698 eval "DEFAULT_$LINE"
2699 else
2700 no_cache=1
2701 fi
2702
2703 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2704
2705fi
2706
2707
2708 eval "$ac_cv_use_fraction"
2709 if test "$no_cache" != 1; then
2710 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2711 fi
2712
2713 if test "$wxUSE_FRACTION" = yes; then
2714 echo "$ac_t""yes" 1>&6
2715 else
2716 echo "$ac_t""no" 1>&6
2717 fi
2718
2719
2720 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
ba337fe7 2721echo "configure:2720: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2722 no_cache=0
2723 # Check whether --enable-dynlib or --disable-dynlib was given.
2724if test "${enable_dynlib+set}" = set; then
2725 enableval="$enable_dynlib"
2726
2727 if test "$enableval" = yes; then
2728 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2729 else
2730 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2731 fi
2732
2733else
2734
2735 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2736 if test "x$LINE" != x ; then
2737 eval "DEFAULT_$LINE"
2738 else
2739 no_cache=1
2740 fi
2741
2742 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2743
2744fi
2745
2746
2747 eval "$ac_cv_use_dynlib"
2748 if test "$no_cache" != 1; then
2749 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2750 fi
2751
2752 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2753 echo "$ac_t""yes" 1>&6
2754 else
2755 echo "$ac_t""no" 1>&6
2756 fi
2757
2758
2759 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
ba337fe7 2760echo "configure:2759: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2761 no_cache=0
2762 # Check whether --enable-longlong or --disable-longlong was given.
2763if test "${enable_longlong+set}" = set; then
2764 enableval="$enable_longlong"
2765
2766 if test "$enableval" = yes; then
2767 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2768 else
2769 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2770 fi
2771
2772else
2773
2774 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2775 if test "x$LINE" != x ; then
2776 eval "DEFAULT_$LINE"
2777 else
2778 no_cache=1
2779 fi
2780
2781 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2782
2783fi
2784
2785
2786 eval "$ac_cv_use_longlong"
2787 if test "$no_cache" != 1; then
2788 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2789 fi
2790
2791 if test "$wxUSE_LONGLONG" = yes; then
2792 echo "$ac_t""yes" 1>&6
2793 else
2794 echo "$ac_t""no" 1>&6
2795 fi
2796
2797
2798 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
ba337fe7 2799echo "configure:2798: checking "for --enable-log"" >&5
10f2d63a
VZ
2800 no_cache=0
2801 # Check whether --enable-log or --disable-log was given.
2802if test "${enable_log+set}" = set; then
2803 enableval="$enable_log"
2804
2805 if test "$enableval" = yes; then
2806 ac_cv_use_log='wxUSE_LOG=yes'
2807 else
2808 ac_cv_use_log='wxUSE_LOG=no'
2809 fi
2810
2811else
2812
2813 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2814 if test "x$LINE" != x ; then
2815 eval "DEFAULT_$LINE"
2816 else
2817 no_cache=1
2818 fi
2819
2820 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2821
2822fi
2823
2824
2825 eval "$ac_cv_use_log"
2826 if test "$no_cache" != 1; then
2827 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2828 fi
2829
2830 if test "$wxUSE_LOG" = yes; then
2831 echo "$ac_t""yes" 1>&6
2832 else
2833 echo "$ac_t""no" 1>&6
2834 fi
2835
2836
2837 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
ba337fe7 2838echo "configure:2837: checking "for --enable-streams"" >&5
10f2d63a
VZ
2839 no_cache=0
2840 # Check whether --enable-streams or --disable-streams was given.
2841if test "${enable_streams+set}" = set; then
2842 enableval="$enable_streams"
2843
2844 if test "$enableval" = yes; then
2845 ac_cv_use_streams='wxUSE_STREAMS=yes'
2846 else
2847 ac_cv_use_streams='wxUSE_STREAMS=no'
2848 fi
2849
2850else
2851
2852 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2853 if test "x$LINE" != x ; then
2854 eval "DEFAULT_$LINE"
2855 else
2856 no_cache=1
2857 fi
2858
2859 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2860
2861fi
2862
2863
2864 eval "$ac_cv_use_streams"
2865 if test "$no_cache" != 1; then
2866 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2867 fi
2868
2869 if test "$wxUSE_STREAMS" = yes; then
2870 echo "$ac_t""yes" 1>&6
2871 else
2872 echo "$ac_t""no" 1>&6
2873 fi
2874
2875
2876 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
ba337fe7 2877echo "configure:2876: checking "for --enable-file"" >&5
10f2d63a
VZ
2878 no_cache=0
2879 # Check whether --enable-file or --disable-file was given.
2880if test "${enable_file+set}" = set; then
2881 enableval="$enable_file"
2882
2883 if test "$enableval" = yes; then
2884 ac_cv_use_file='wxUSE_FILE=yes'
2885 else
2886 ac_cv_use_file='wxUSE_FILE=no'
2887 fi
2888
2889else
2890
2891 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2892 if test "x$LINE" != x ; then
2893 eval "DEFAULT_$LINE"
2894 else
2895 no_cache=1
2896 fi
2897
2898 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2899
2900fi
2901
2902
2903 eval "$ac_cv_use_file"
2904 if test "$no_cache" != 1; then
2905 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2906 fi
2907
2908 if test "$wxUSE_FILE" = yes; then
2909 echo "$ac_t""yes" 1>&6
2910 else
2911 echo "$ac_t""no" 1>&6
2912 fi
2913
2914
2915 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
ba337fe7 2916echo "configure:2915: checking "for --enable-textfile"" >&5
10f2d63a
VZ
2917 no_cache=0
2918 # Check whether --enable-textfile or --disable-textfile was given.
2919if test "${enable_textfile+set}" = set; then
2920 enableval="$enable_textfile"
2921
2922 if test "$enableval" = yes; then
2923 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
2924 else
2925 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
2926 fi
2927
2928else
2929
2930 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
2931 if test "x$LINE" != x ; then
2932 eval "DEFAULT_$LINE"
2933 else
2934 no_cache=1
2935 fi
2936
2937 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
2938
2939fi
2940
2941
2942 eval "$ac_cv_use_textfile"
2943 if test "$no_cache" != 1; then
2944 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
2945 fi
2946
2947 if test "$wxUSE_TEXTFILE" = yes; then
2948 echo "$ac_t""yes" 1>&6
2949 else
2950 echo "$ac_t""no" 1>&6
2951 fi
2952
2953
2954 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
ba337fe7 2955echo "configure:2954: checking "for --enable-unicode"" >&5
10f2d63a
VZ
2956 no_cache=0
2957 # Check whether --enable-unicode or --disable-unicode was given.
2958if test "${enable_unicode+set}" = set; then
2959 enableval="$enable_unicode"
2960
2961 if test "$enableval" = yes; then
2962 ac_cv_use_unicode='wxUSE_UNICODE=yes'
2963 else
2964 ac_cv_use_unicode='wxUSE_UNICODE=no'
2965 fi
2966
2967else
2968
2969 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
2970 if test "x$LINE" != x ; then
2971 eval "DEFAULT_$LINE"
2972 else
2973 no_cache=1
2974 fi
2975
2976 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
2977
2978fi
2979
2980
2981 eval "$ac_cv_use_unicode"
2982 if test "$no_cache" != 1; then
2983 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
2984 fi
2985
2986 if test "$wxUSE_UNICODE" = yes; then
2987 echo "$ac_t""yes" 1>&6
2988 else
2989 echo "$ac_t""no" 1>&6
2990 fi
2991
2992
2993 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
ba337fe7 2994echo "configure:2993: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
2995 no_cache=0
2996 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
2997if test "${enable_wcsrtombs+set}" = set; then
2998 enableval="$enable_wcsrtombs"
2999
3000 if test "$enableval" = yes; then
3001 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3002 else
3003 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3004 fi
3005
3006else
3007
3008 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3009 if test "x$LINE" != x ; then
3010 eval "DEFAULT_$LINE"
3011 else
3012 no_cache=1
3013 fi
3014
3015 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3016
3017fi
3018
3019
3020 eval "$ac_cv_use_wcsrtombs"
3021 if test "$no_cache" != 1; then
3022 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3023 fi
3024
3025 if test "$wxUSE_WCSRTOMBS" = yes; then
3026 echo "$ac_t""yes" 1>&6
3027 else
3028 echo "$ac_t""no" 1>&6
3029 fi
3030
3031
3032 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
ba337fe7 3033echo "configure:3032: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3034 no_cache=0
3035 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3036if test "${enable_wxprintfv+set}" = set; then
3037 enableval="$enable_wxprintfv"
3038
3039 if test "$enableval" = yes; then
3040 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3041 else
3042 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3043 fi
3044
3045else
3046
3047 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3048 if test "x$LINE" != x ; then
3049 eval "DEFAULT_$LINE"
3050 else
3051 no_cache=1
3052 fi
3053
3054 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3055
3056fi
3057
3058
3059 eval "$ac_cv_use_wxprintfv"
3060 if test "$no_cache" != 1; then
3061 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3062 fi
3063
3064 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3065 echo "$ac_t""yes" 1>&6
3066 else
3067 echo "$ac_t""no" 1>&6
3068 fi
3069
3070
3071 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
ba337fe7 3072echo "configure:3071: checking "for --enable-joystick"" >&5
10f2d63a
VZ
3073 no_cache=0
3074 # Check whether --enable-joystick or --disable-joystick was given.
3075if test "${enable_joystick+set}" = set; then
3076 enableval="$enable_joystick"
3077
3078 if test "$enableval" = yes; then
3079 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3080 else
3081 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3082 fi
3083
3084else
3085
3086 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3087 if test "x$LINE" != x ; then
3088 eval "DEFAULT_$LINE"
3089 else
3090 no_cache=1
3091 fi
3092
3093 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3094
3095fi
3096
3097
3098 eval "$ac_cv_use_joystick"
3099 if test "$no_cache" != 1; then
3100 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3101 fi
3102
3103 if test "$wxUSE_JOYSTICK" = yes; then
3104 echo "$ac_t""yes" 1>&6
3105 else
3106 echo "$ac_t""no" 1>&6
3107 fi
3108
3109
3110 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
ba337fe7 3111echo "configure:3110: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3112 no_cache=0
3113 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3114if test "${enable_std_iostreams+set}" = set; then
3115 enableval="$enable_std_iostreams"
3116
3117 if test "$enableval" = yes; then
3118 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3119 else
3120 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3121 fi
3122
3123else
3124
3125 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3126 if test "x$LINE" != x ; then
3127 eval "DEFAULT_$LINE"
3128 else
3129 no_cache=1
3130 fi
3131
3132 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3133
3134fi
3135
3136
3137 eval "$ac_cv_use_std_iostreams"
3138 if test "$no_cache" != 1; then
3139 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3140 fi
3141
3142 if test "$wxUSE_STD_IOSTREAM" = yes; then
3143 echo "$ac_t""yes" 1>&6
3144 else
3145 echo "$ac_t""no" 1>&6
3146 fi
3147
3148
3149 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
ba337fe7 3150echo "configure:3149: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3151 no_cache=0
3152 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3153if test "${enable_fs_inet+set}" = set; then
3154 enableval="$enable_fs_inet"
3155
3156 if test "$enableval" = yes; then
3157 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3158 else
3159 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3160 fi
3161
3162else
3163
3164 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3165 if test "x$LINE" != x ; then
3166 eval "DEFAULT_$LINE"
3167 else
3168 no_cache=1
3169 fi
3170
3171 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3172
3173fi
3174
3175
3176 eval "$ac_cv_use_fs_inet"
3177 if test "$no_cache" != 1; then
3178 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3179 fi
3180
3181 if test "$wxUSE_FS_INET" = yes; then
3182 echo "$ac_t""yes" 1>&6
3183 else
3184 echo "$ac_t""no" 1>&6
3185 fi
3186
3187
3188 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
ba337fe7 3189echo "configure:3188: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3190 no_cache=0
3191 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3192if test "${enable_fs_zip+set}" = set; then
3193 enableval="$enable_fs_zip"
3194
3195 if test "$enableval" = yes; then
3196 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3197 else
3198 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3199 fi
3200
3201else
3202
3203 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3204 if test "x$LINE" != x ; then
3205 eval "DEFAULT_$LINE"
3206 else
3207 no_cache=1
3208 fi
3209
3210 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3211
3212fi
3213
3214
3215 eval "$ac_cv_use_fs_zip"
3216 if test "$no_cache" != 1; then
3217 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3218 fi
3219
3220 if test "$wxUSE_FS_ZIP" = yes; then
3221 echo "$ac_t""yes" 1>&6
3222 else
3223 echo "$ac_t""no" 1>&6
3224 fi
3225
3226
3227 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
ba337fe7 3228echo "configure:3227: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3229 no_cache=0
3230 # Check whether --enable-zipstream or --disable-zipstream was given.
3231if test "${enable_zipstream+set}" = set; then
3232 enableval="$enable_zipstream"
3233
3234 if test "$enableval" = yes; then
3235 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3236 else
3237 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3238 fi
3239
3240else
3241
3242 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3243 if test "x$LINE" != x ; then
3244 eval "DEFAULT_$LINE"
3245 else
3246 no_cache=1
3247 fi
3248
3249 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3250
3251fi
3252
3253
3254 eval "$ac_cv_use_zipstream"
3255 if test "$no_cache" != 1; then
3256 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3257 fi
3258
3259 if test "$wxUSE_ZIPSTREAM" = yes; then
3260 echo "$ac_t""yes" 1>&6
3261 else
3262 echo "$ac_t""no" 1>&6
3263 fi
3264
3265
3266
3267
3268 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
ba337fe7 3269echo "configure:3268: checking "for --enable-threads"" >&5
10f2d63a
VZ
3270 no_cache=0
3271 # Check whether --enable-threads or --disable-threads was given.
3272if test "${enable_threads+set}" = set; then
3273 enableval="$enable_threads"
3274
3275 if test "$enableval" = yes; then
3276 ac_cv_use_threads='wxUSE_THREADS=yes'
3277 else
3278 ac_cv_use_threads='wxUSE_THREADS=no'
3279 fi
3280
3281else
3282
3283 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3284 if test "x$LINE" != x ; then
3285 eval "DEFAULT_$LINE"
3286 else
3287 no_cache=1
3288 fi
3289
3290 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3291
3292fi
3293
3294
3295 eval "$ac_cv_use_threads"
3296 if test "$no_cache" != 1; then
3297 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3298 fi
3299
3300 if test "$wxUSE_THREADS" = yes; then
3301 echo "$ac_t""yes" 1>&6
3302 else
3303 echo "$ac_t""no" 1>&6
3304 fi
3305
3306
3307 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
ba337fe7 3308echo "configure:3307: checking "for --enable-serial"" >&5
10f2d63a
VZ
3309 no_cache=0
3310 # Check whether --enable-serial or --disable-serial was given.
3311if test "${enable_serial+set}" = set; then
3312 enableval="$enable_serial"
3313
3314 if test "$enableval" = yes; then
3315 ac_cv_use_serial='wxUSE_SERIAL=yes'
3316 else
3317 ac_cv_use_serial='wxUSE_SERIAL=no'
3318 fi
3319
3320else
3321
3322 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3323 if test "x$LINE" != x ; then
3324 eval "DEFAULT_$LINE"
3325 else
3326 no_cache=1
3327 fi
3328
3329 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3330
3331fi
3332
3333
3334 eval "$ac_cv_use_serial"
3335 if test "$no_cache" != 1; then
3336 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3337 fi
3338
3339 if test "$wxUSE_SERIAL" = yes; then
3340 echo "$ac_t""yes" 1>&6
3341 else
3342 echo "$ac_t""no" 1>&6
3343 fi
3344
3345
3346
3347
3348 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
ba337fe7 3349echo "configure:3348: checking "for --enable-docview"" >&5
10f2d63a
VZ
3350 no_cache=0
3351 # Check whether --enable-docview or --disable-docview was given.
3352if test "${enable_docview+set}" = set; then
3353 enableval="$enable_docview"
3354
3355 if test "$enableval" = yes; then
3356 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3357 else
3358 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3359 fi
3360
3361else
3362
3363 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3364 if test "x$LINE" != x ; then
3365 eval "DEFAULT_$LINE"
3366 else
3367 no_cache=1
3368 fi
3369
3370 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3371
3372fi
3373
3374
3375 eval "$ac_cv_use_docview"
3376 if test "$no_cache" != 1; then
3377 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3378 fi
3379
3380 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3381 echo "$ac_t""yes" 1>&6
3382 else
3383 echo "$ac_t""no" 1>&6
3384 fi
3385
3386
3387 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
ba337fe7 3388echo "configure:3387: checking "for --enable-help"" >&5
10f2d63a
VZ
3389 no_cache=0
3390 # Check whether --enable-help or --disable-help was given.
3391if test "${enable_help+set}" = set; then
3392 enableval="$enable_help"
3393
3394 if test "$enableval" = yes; then
3395 ac_cv_use_help='wxUSE_HELP=yes'
3396 else
3397 ac_cv_use_help='wxUSE_HELP=no'
3398 fi
3399
3400else
3401
3402 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3403 if test "x$LINE" != x ; then
3404 eval "DEFAULT_$LINE"
3405 else
3406 no_cache=1
3407 fi
3408
3409 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3410
3411fi
3412
3413
3414 eval "$ac_cv_use_help"
3415 if test "$no_cache" != 1; then
3416 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3417 fi
3418
3419 if test "$wxUSE_HELP" = yes; then
3420 echo "$ac_t""yes" 1>&6
3421 else
3422 echo "$ac_t""no" 1>&6
3423 fi
3424
3425
3426 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
ba337fe7 3427echo "configure:3426: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3428 no_cache=0
3429 # Check whether --enable-constraints or --disable-constraints was given.
3430if test "${enable_constraints+set}" = set; then
3431 enableval="$enable_constraints"
3432
3433 if test "$enableval" = yes; then
3434 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3435 else
3436 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3437 fi
3438
3439else
3440
3441 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3442 if test "x$LINE" != x ; then
3443 eval "DEFAULT_$LINE"
3444 else
3445 no_cache=1
3446 fi
3447
3448 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3449
3450fi
3451
3452
3453 eval "$ac_cv_use_constraints"
3454 if test "$no_cache" != 1; then
3455 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3456 fi
3457
3458 if test "$wxUSE_CONSTRAINTS" = yes; then
3459 echo "$ac_t""yes" 1>&6
3460 else
3461 echo "$ac_t""no" 1>&6
3462 fi
3463
3464
3465 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
ba337fe7 3466echo "configure:3465: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3467 no_cache=0
3468 # Check whether --enable-printarch or --disable-printarch was given.
3469if test "${enable_printarch+set}" = set; then
3470 enableval="$enable_printarch"
3471
3472 if test "$enableval" = yes; then
3473 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3474 else
3475 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3476 fi
3477
3478else
3479
3480 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3481 if test "x$LINE" != x ; then
3482 eval "DEFAULT_$LINE"
3483 else
3484 no_cache=1
3485 fi
3486
3487 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3488
3489fi
3490
3491
3492 eval "$ac_cv_use_printarch"
3493 if test "$no_cache" != 1; then
3494 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3495 fi
3496
3497 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3498 echo "$ac_t""yes" 1>&6
3499 else
3500 echo "$ac_t""no" 1>&6
3501 fi
3502
3503
3504 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
ba337fe7 3505echo "configure:3504: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3506 no_cache=0
3507 # Check whether --enable-mdi or --disable-mdi was given.
3508if test "${enable_mdi+set}" = set; then
3509 enableval="$enable_mdi"
3510
3511 if test "$enableval" = yes; then
3512 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3513 else
3514 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3515 fi
3516
3517else
3518
3519 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3520 if test "x$LINE" != x ; then
3521 eval "DEFAULT_$LINE"
3522 else
3523 no_cache=1
3524 fi
3525
3526 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3527
3528fi
3529
3530
3531 eval "$ac_cv_use_mdi"
3532 if test "$no_cache" != 1; then
3533 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3534 fi
3535
3536 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3537 echo "$ac_t""yes" 1>&6
3538 else
3539 echo "$ac_t""no" 1>&6
3540 fi
3541
3542
3543
3544 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
ba337fe7 3545echo "configure:3544: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3546 no_cache=0
3547 # Check whether --enable-postscript or --disable-postscript was given.
3548if test "${enable_postscript+set}" = set; then
3549 enableval="$enable_postscript"
3550
3551 if test "$enableval" = yes; then
3552 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3553 else
3554 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3555 fi
3556
3557else
3558
3559 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3560 if test "x$LINE" != x ; then
3561 eval "DEFAULT_$LINE"
3562 else
3563 no_cache=1
3564 fi
3565
3566 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3567
3568fi
3569
3570
3571 eval "$ac_cv_use_postscript"
3572 if test "$no_cache" != 1; then
3573 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3574 fi
3575
3576 if test "$wxUSE_POSTSCRIPT" = yes; then
3577 echo "$ac_t""yes" 1>&6
3578 else
3579 echo "$ac_t""no" 1>&6
3580 fi
3581
3582
3583
3584
3585 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
ba337fe7 3586echo "configure:3585: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3587 no_cache=0
3588 # Check whether --enable-prologio or --disable-prologio was given.
3589if test "${enable_prologio+set}" = set; then
3590 enableval="$enable_prologio"
3591
3592 if test "$enableval" = yes; then
3593 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3594 else
3595 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3596 fi
3597
3598else
3599
3600 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3601 if test "x$LINE" != x ; then
3602 eval "DEFAULT_$LINE"
3603 else
3604 no_cache=1
3605 fi
3606
3607 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3608
3609fi
3610
3611
3612 eval "$ac_cv_use_prologio"
3613 if test "$no_cache" != 1; then
3614 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3615 fi
3616
3617 if test "$wxUSE_PROLOGIO" = yes; then
3618 echo "$ac_t""yes" 1>&6
3619 else
3620 echo "$ac_t""no" 1>&6
3621 fi
3622
3623
3624 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
ba337fe7 3625echo "configure:3624: checking "for --enable-resources"" >&5
10f2d63a
VZ
3626 no_cache=0
3627 # Check whether --enable-resources or --disable-resources was given.
3628if test "${enable_resources+set}" = set; then
3629 enableval="$enable_resources"
3630
3631 if test "$enableval" = yes; then
3632 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3633 else
3634 ac_cv_use_resources='wxUSE_RESOURCES=no'
3635 fi
3636
3637else
3638
3639 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3640 if test "x$LINE" != x ; then
3641 eval "DEFAULT_$LINE"
3642 else
3643 no_cache=1
3644 fi
3645
3646 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3647
3648fi
3649
3650
3651 eval "$ac_cv_use_resources"
3652 if test "$no_cache" != 1; then
3653 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3654 fi
3655
3656 if test "$wxUSE_RESOURCES" = yes; then
3657 echo "$ac_t""yes" 1>&6
3658 else
3659 echo "$ac_t""no" 1>&6
3660 fi
3661
3662
3663
3664 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
ba337fe7 3665echo "configure:3664: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3666 no_cache=0
3667 # Check whether --enable-xresources or --disable-xresources was given.
3668if test "${enable_xresources+set}" = set; then
3669 enableval="$enable_xresources"
3670
3671 if test "$enableval" = yes; then
3672 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3673 else
3674 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3675 fi
3676
3677else
3678
3679 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3680 if test "x$LINE" != x ; then
3681 eval "DEFAULT_$LINE"
3682 else
3683 no_cache=1
3684 fi
3685
3686 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3687
3688fi
3689
3690
3691 eval "$ac_cv_use_xresources"
3692 if test "$no_cache" != 1; then
3693 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3694 fi
3695
3696 if test "$wxUSE_X_RESOURCES" = yes; then
3697 echo "$ac_t""yes" 1>&6
3698 else
3699 echo "$ac_t""no" 1>&6
3700 fi
3701
3702
3703
3704
3705 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
ba337fe7 3706echo "configure:3705: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
3707 no_cache=0
3708 # Check whether --enable-clipboard or --disable-clipboard was given.
3709if test "${enable_clipboard+set}" = set; then
3710 enableval="$enable_clipboard"
3711
3712 if test "$enableval" = yes; then
3713 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3714 else
3715 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3716 fi
3717
3718else
3719
3720 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3721 if test "x$LINE" != x ; then
3722 eval "DEFAULT_$LINE"
3723 else
3724 no_cache=1
3725 fi
3726
3727 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3728
3729fi
3730
3731
3732 eval "$ac_cv_use_clipboard"
3733 if test "$no_cache" != 1; then
3734 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3735 fi
3736
3737 if test "$wxUSE_CLIPBOARD" = yes; then
3738 echo "$ac_t""yes" 1>&6
3739 else
3740 echo "$ac_t""no" 1>&6
3741 fi
3742
3743
3744 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
ba337fe7 3745echo "configure:3744: checking "for --enable-dnd"" >&5
10f2d63a
VZ
3746 no_cache=0
3747 # Check whether --enable-dnd or --disable-dnd was given.
3748if test "${enable_dnd+set}" = set; then
3749 enableval="$enable_dnd"
3750
3751 if test "$enableval" = yes; then
3752 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3753 else
3754 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3755 fi
3756
3757else
3758
3759 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3760 if test "x$LINE" != x ; then
3761 eval "DEFAULT_$LINE"
3762 else
3763 no_cache=1
3764 fi
3765
3766 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3767
3768fi
3769
3770
3771 eval "$ac_cv_use_dnd"
3772 if test "$no_cache" != 1; then
3773 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3774 fi
3775
3776 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3777 echo "$ac_t""yes" 1>&6
3778 else
3779 echo "$ac_t""no" 1>&6
3780 fi
3781
3782
3783
3784 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
ba337fe7 3785echo "configure:3784: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
3786 no_cache=0
3787 # Check whether --enable-wxtree or --disable-wxtree was given.
3788if test "${enable_wxtree+set}" = set; then
3789 enableval="$enable_wxtree"
3790
3791 if test "$enableval" = yes; then
3792 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3793 else
3794 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3795 fi
3796
3797else
3798
3799 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3800 if test "x$LINE" != x ; then
3801 eval "DEFAULT_$LINE"
3802 else
3803 no_cache=1
3804 fi
3805
3806 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3807
3808fi
3809
3810
3811 eval "$ac_cv_use_wxtree"
3812 if test "$no_cache" != 1; then
3813 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3814 fi
3815
3816 if test "$wxUSE_WXTREE" = yes; then
3817 echo "$ac_t""yes" 1>&6
3818 else
3819 echo "$ac_t""no" 1>&6
3820 fi
3821
3822
3823
3824
3825 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
ba337fe7 3826echo "configure:3825: checking "for --enable-controls"" >&5
10f2d63a
VZ
3827 no_cache=0
3828 # Check whether --enable-controls or --disable-controls was given.
3829if test "${enable_controls+set}" = set; then
3830 enableval="$enable_controls"
3831
3832 if test "$enableval" = yes; then
3833 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3834 else
3835 ac_cv_use_controls='wxUSE_CONTROLS=no'
3836 fi
3837
3838else
3839
3840 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3841 if test "x$LINE" != x ; then
3842 eval "DEFAULT_$LINE"
3843 else
3844 no_cache=1
3845 fi
3846
3847 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3848
3849fi
3850
3851
3852 eval "$ac_cv_use_controls"
3853 if test "$no_cache" != 1; then
3854 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3855 fi
3856
3857 if test "$wxUSE_CONTROLS" = yes; then
3858 echo "$ac_t""yes" 1>&6
3859 else
3860 echo "$ac_t""no" 1>&6
3861 fi
3862
3863
3864if test "$wxUSE_CONTROLS" = "yes"; then
3865 DEFAULT_wxUSE_ACCEL=yes
3866 DEFAULT_wxUSE_CARET=yes
3867 DEFAULT_wxUSE_COMBOBOX=yes
3868 DEFAULT_wxUSE_BMPBUTTON=yes
3869 DEFAULT_wxUSE_CHECKBOX=yes
3870 DEFAULT_wxUSE_CHECKLISTBOX=yes
3871 DEFAULT_wxUSE_CHOICE=yes
3872 DEFAULT_wxUSE_GAUGE=yes
3873 DEFAULT_wxUSE_GRID=yes
fc9c7c09 3874 DEFAULT_wxUSE_NEW_GRID=no
10f2d63a
VZ
3875 DEFAULT_wxUSE_IMAGLIST=yes
3876 DEFAULT_wxUSE_LISTBOX=yes
3877 DEFAULT_wxUSE_LISTCTRL=yes
3878 DEFAULT_wxUSE_NOTEBOOK=yes
3879 DEFAULT_wxUSE_RADIOBOX=yes
3880 DEFAULT_wxUSE_RADIOBTN=yes
3881 DEFAULT_wxUSE_SASH=yes
3882 DEFAULT_wxUSE_SCROLLBAR=yes
3883 DEFAULT_wxUSE_SLIDER=yes
3884 DEFAULT_wxUSE_SPINBTN=yes
3885 DEFAULT_wxUSE_SPLITTER=yes
3886 DEFAULT_wxUSE_STATBMP=yes
3887 DEFAULT_wxUSE_STATBOX=yes
3888 DEFAULT_wxUSE_STATLINE=yes
3889 DEFAULT_wxUSE_STATUSBAR=yes
3890 DEFAULT_wxUSE_TAB_DIALOG=yes
3891 DEFAULT_wxUSE_TOOLBAR=yes
3892 DEFAULT_wxUSE_TOOLTIPS=yes
3893 DEFAULT_wxUSE_TREECTRL=yes
3894elif test "$wxUSE_CONTROLS" = "no"; then
3895 DEFAULT_wxUSE_ACCEL=no
3896 DEFAULT_wxUSE_CARET=no
3897 DEFAULT_wxUSE_COMBOBOX=no
3898 DEFAULT_wxUSE_BMPBUTTON=no
3899 DEFAULT_wxUSE_CHECKBOX=no
3900 DEFAULT_wxUSE_CHECKLISTBOX=no
3901 DEFAULT_wxUSE_CHOICE=no
3902 DEFAULT_wxUSE_GAUGE=no
3903 DEFAULT_wxUSE_GRID=no
3904 DEFAULT_wxUSE_NEW_GRID=no
3905 DEFAULT_wxUSE_IMAGLIST=no
3906 DEFAULT_wxUSE_LISTBOX=no
3907 DEFAULT_wxUSE_LISTCTRL=no
3908 DEFAULT_wxUSE_NOTEBOOK=no
3909 DEFAULT_wxUSE_RADIOBOX=no
3910 DEFAULT_wxUSE_RADIOBTN=no
3911 DEFAULT_wxUSE_SASH=no
3912 DEFAULT_wxUSE_SCROLLBAR=no
3913 DEFAULT_wxUSE_SLIDER=no
3914 DEFAULT_wxUSE_SPINBTN=no
3915 DEFAULT_wxUSE_SPLITTER=no
3916 DEFAULT_wxUSE_STATBMP=no
3917 DEFAULT_wxUSE_STATBOX=no
3918 DEFAULT_wxUSE_STATLINE=no
3919 DEFAULT_wxUSE_STATUSBAR=no
3920 DEFAULT_wxUSE_TAB_DIALOG=no
3921 DEFAULT_wxUSE_TOOLBAR=no
3922 DEFAULT_wxUSE_TOOLTIPS=no
3923 DEFAULT_wxUSE_TREECTRL=no
3924fi
3925
3926
3927 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
ba337fe7 3928echo "configure:3927: checking "for --enable-accel"" >&5
10f2d63a
VZ
3929 no_cache=0
3930 # Check whether --enable-accel or --disable-accel was given.
3931if test "${enable_accel+set}" = set; then
3932 enableval="$enable_accel"
3933
3934 if test "$enableval" = yes; then
3935 ac_cv_use_accel='wxUSE_ACCEL=yes'
3936 else
3937 ac_cv_use_accel='wxUSE_ACCEL=no'
3938 fi
3939
3940else
3941
3942 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
3943 if test "x$LINE" != x ; then
3944 eval "DEFAULT_$LINE"
3945 else
3946 no_cache=1
3947 fi
3948
3949 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
3950
3951fi
3952
3953
3954 eval "$ac_cv_use_accel"
3955 if test "$no_cache" != 1; then
3956 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
3957 fi
3958
3959 if test "$wxUSE_ACCEL" = yes; then
3960 echo "$ac_t""yes" 1>&6
3961 else
3962 echo "$ac_t""no" 1>&6
3963 fi
3964
3965
3966 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
ba337fe7 3967echo "configure:3966: checking "for --enable-caret"" >&5
10f2d63a
VZ
3968 no_cache=0
3969 # Check whether --enable-caret or --disable-caret was given.
3970if test "${enable_caret+set}" = set; then
3971 enableval="$enable_caret"
3972
3973 if test "$enableval" = yes; then
3974 ac_cv_use_caret='wxUSE_CARET=yes'
3975 else
3976 ac_cv_use_caret='wxUSE_CARET=no'
3977 fi
3978
3979else
3980
3981 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
3982 if test "x$LINE" != x ; then
3983 eval "DEFAULT_$LINE"
3984 else
3985 no_cache=1
3986 fi
3987
3988 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
3989
3990fi
3991
3992
3993 eval "$ac_cv_use_caret"
3994 if test "$no_cache" != 1; then
3995 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
3996 fi
3997
3998 if test "$wxUSE_CARET" = yes; then
3999 echo "$ac_t""yes" 1>&6
4000 else
4001 echo "$ac_t""no" 1>&6
4002 fi
4003
4004
4005 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
ba337fe7 4006echo "configure:4005: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
4007 no_cache=0
4008 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4009if test "${enable_bmpbutton+set}" = set; then
4010 enableval="$enable_bmpbutton"
4011
4012 if test "$enableval" = yes; then
4013 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4014 else
4015 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4016 fi
4017
4018else
4019
4020 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4021 if test "x$LINE" != x ; then
4022 eval "DEFAULT_$LINE"
4023 else
4024 no_cache=1
4025 fi
4026
4027 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4028
4029fi
4030
4031
4032 eval "$ac_cv_use_bmpbutton"
4033 if test "$no_cache" != 1; then
4034 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4035 fi
4036
4037 if test "$wxUSE_BMPBUTTON" = yes; then
4038 echo "$ac_t""yes" 1>&6
4039 else
4040 echo "$ac_t""no" 1>&6
4041 fi
4042
4043
4044 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
ba337fe7 4045echo "configure:4044: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4046 no_cache=0
4047 # Check whether --enable-checkbox or --disable-checkbox was given.
4048if test "${enable_checkbox+set}" = set; then
4049 enableval="$enable_checkbox"
4050
4051 if test "$enableval" = yes; then
4052 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4053 else
4054 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4055 fi
4056
4057else
4058
4059 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4060 if test "x$LINE" != x ; then
4061 eval "DEFAULT_$LINE"
4062 else
4063 no_cache=1
4064 fi
4065
4066 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4067
4068fi
4069
4070
4071 eval "$ac_cv_use_checkbox"
4072 if test "$no_cache" != 1; then
4073 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4074 fi
4075
4076 if test "$wxUSE_CHECKBOX" = yes; then
4077 echo "$ac_t""yes" 1>&6
4078 else
4079 echo "$ac_t""no" 1>&6
4080 fi
4081
4082
4083 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
ba337fe7 4084echo "configure:4083: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4085 no_cache=0
4086 # Check whether --enable-checklst or --disable-checklst was given.
4087if test "${enable_checklst+set}" = set; then
4088 enableval="$enable_checklst"
4089
4090 if test "$enableval" = yes; then
4091 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4092 else
4093 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4094 fi
4095
4096else
4097
4098 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4099 if test "x$LINE" != x ; then
4100 eval "DEFAULT_$LINE"
4101 else
4102 no_cache=1
4103 fi
4104
4105 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4106
4107fi
4108
4109
4110 eval "$ac_cv_use_checklst"
4111 if test "$no_cache" != 1; then
4112 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4113 fi
4114
4115 if test "$wxUSE_CHECKLST" = yes; then
4116 echo "$ac_t""yes" 1>&6
4117 else
4118 echo "$ac_t""no" 1>&6
4119 fi
4120
4121
4122 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
ba337fe7 4123echo "configure:4122: checking "for --enable-choice"" >&5
10f2d63a
VZ
4124 no_cache=0
4125 # Check whether --enable-choice or --disable-choice was given.
4126if test "${enable_choice+set}" = set; then
4127 enableval="$enable_choice"
4128
4129 if test "$enableval" = yes; then
4130 ac_cv_use_choice='wxUSE_CHOICE=yes'
4131 else
4132 ac_cv_use_choice='wxUSE_CHOICE=no'
4133 fi
4134
4135else
4136
4137 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4138 if test "x$LINE" != x ; then
4139 eval "DEFAULT_$LINE"
4140 else
4141 no_cache=1
4142 fi
4143
4144 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4145
4146fi
4147
4148
4149 eval "$ac_cv_use_choice"
4150 if test "$no_cache" != 1; then
4151 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4152 fi
4153
4154 if test "$wxUSE_CHOICE" = yes; then
4155 echo "$ac_t""yes" 1>&6
4156 else
4157 echo "$ac_t""no" 1>&6
4158 fi
4159
4160
4161 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
ba337fe7 4162echo "configure:4161: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4163 no_cache=0
4164 # Check whether --enable-combobox or --disable-combobox was given.
4165if test "${enable_combobox+set}" = set; then
4166 enableval="$enable_combobox"
4167
4168 if test "$enableval" = yes; then
4169 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4170 else
4171 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4172 fi
4173
4174else
4175
4176 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4177 if test "x$LINE" != x ; then
4178 eval "DEFAULT_$LINE"
4179 else
4180 no_cache=1
4181 fi
4182
4183 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4184
4185fi
4186
4187
4188 eval "$ac_cv_use_combobox"
4189 if test "$no_cache" != 1; then
4190 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4191 fi
4192
4193 if test "$wxUSE_COMBOBOX" = yes; then
4194 echo "$ac_t""yes" 1>&6
4195 else
4196 echo "$ac_t""no" 1>&6
4197 fi
4198
4199
4200 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
ba337fe7 4201echo "configure:4200: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4202 no_cache=0
4203 # Check whether --enable-gauge or --disable-gauge was given.
4204if test "${enable_gauge+set}" = set; then
4205 enableval="$enable_gauge"
4206
4207 if test "$enableval" = yes; then
4208 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4209 else
4210 ac_cv_use_gauge='wxUSE_GAUGE=no'
4211 fi
4212
4213else
4214
4215 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4216 if test "x$LINE" != x ; then
4217 eval "DEFAULT_$LINE"
4218 else
4219 no_cache=1
4220 fi
4221
4222 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4223
4224fi
4225
4226
4227 eval "$ac_cv_use_gauge"
4228 if test "$no_cache" != 1; then
4229 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4230 fi
4231
4232 if test "$wxUSE_GAUGE" = yes; then
4233 echo "$ac_t""yes" 1>&6
4234 else
4235 echo "$ac_t""no" 1>&6
4236 fi
4237
4238
4239 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
ba337fe7 4240echo "configure:4239: checking "for --enable-grid"" >&5
10f2d63a
VZ
4241 no_cache=0
4242 # Check whether --enable-grid or --disable-grid was given.
4243if test "${enable_grid+set}" = set; then
4244 enableval="$enable_grid"
4245
4246 if test "$enableval" = yes; then
4247 ac_cv_use_grid='wxUSE_GRID=yes'
4248 else
4249 ac_cv_use_grid='wxUSE_GRID=no'
4250 fi
4251
4252else
4253
4254 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4255 if test "x$LINE" != x ; then
4256 eval "DEFAULT_$LINE"
4257 else
4258 no_cache=1
4259 fi
4260
4261 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4262
4263fi
4264
4265
4266 eval "$ac_cv_use_grid"
4267 if test "$no_cache" != 1; then
4268 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4269 fi
4270
4271 if test "$wxUSE_GRID" = yes; then
4272 echo "$ac_t""yes" 1>&6
4273 else
4274 echo "$ac_t""no" 1>&6
4275 fi
4276
4277
4278 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
ba337fe7 4279echo "configure:4278: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4280 no_cache=0
4281 # Check whether --enable-newgrid or --disable-newgrid was given.
4282if test "${enable_newgrid+set}" = set; then
4283 enableval="$enable_newgrid"
4284
4285 if test "$enableval" = yes; then
4286 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4287 else
4288 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4289 fi
4290
4291else
4292
4293 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4294 if test "x$LINE" != x ; then
4295 eval "DEFAULT_$LINE"
4296 else
4297 no_cache=1
4298 fi
4299
4300 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4301
4302fi
4303
4304
4305 eval "$ac_cv_use_newgrid"
4306 if test "$no_cache" != 1; then
4307 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4308 fi
4309
4310 if test "$wxUSE_NEW_GRID" = yes; then
4311 echo "$ac_t""yes" 1>&6
4312 else
4313 echo "$ac_t""no" 1>&6
4314 fi
4315
4316
4317 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
ba337fe7 4318echo "configure:4317: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4319 no_cache=0
4320 # Check whether --enable-imaglist or --disable-imaglist was given.
4321if test "${enable_imaglist+set}" = set; then
4322 enableval="$enable_imaglist"
4323
4324 if test "$enableval" = yes; then
4325 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4326 else
4327 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4328 fi
4329
4330else
4331
4332 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4333 if test "x$LINE" != x ; then
4334 eval "DEFAULT_$LINE"
4335 else
4336 no_cache=1
4337 fi
4338
4339 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4340
4341fi
4342
4343
4344 eval "$ac_cv_use_imaglist"
4345 if test "$no_cache" != 1; then
4346 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4347 fi
4348
4349 if test "$wxUSE_IMAGLIST" = yes; then
4350 echo "$ac_t""yes" 1>&6
4351 else
4352 echo "$ac_t""no" 1>&6
4353 fi
4354
4355
4356 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
ba337fe7 4357echo "configure:4356: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4358 no_cache=0
4359 # Check whether --enable-listbox or --disable-listbox was given.
4360if test "${enable_listbox+set}" = set; then
4361 enableval="$enable_listbox"
4362
4363 if test "$enableval" = yes; then
4364 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4365 else
4366 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4367 fi
4368
4369else
4370
4371 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4372 if test "x$LINE" != x ; then
4373 eval "DEFAULT_$LINE"
4374 else
4375 no_cache=1
4376 fi
4377
4378 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4379
4380fi
4381
4382
4383 eval "$ac_cv_use_listbox"
4384 if test "$no_cache" != 1; then
4385 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4386 fi
4387
4388 if test "$wxUSE_LISTBOX" = yes; then
4389 echo "$ac_t""yes" 1>&6
4390 else
4391 echo "$ac_t""no" 1>&6
4392 fi
4393
4394
4395 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
ba337fe7 4396echo "configure:4395: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4397 no_cache=0
4398 # Check whether --enable-listctrl or --disable-listctrl was given.
4399if test "${enable_listctrl+set}" = set; then
4400 enableval="$enable_listctrl"
4401
4402 if test "$enableval" = yes; then
4403 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4404 else
4405 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4406 fi
4407
4408else
4409
4410 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4411 if test "x$LINE" != x ; then
4412 eval "DEFAULT_$LINE"
4413 else
4414 no_cache=1
4415 fi
4416
4417 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4418
4419fi
4420
4421
4422 eval "$ac_cv_use_listctrl"
4423 if test "$no_cache" != 1; then
4424 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4425 fi
4426
4427 if test "$wxUSE_LISTCTRL" = yes; then
4428 echo "$ac_t""yes" 1>&6
4429 else
4430 echo "$ac_t""no" 1>&6
4431 fi
4432
4433
4434 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
ba337fe7 4435echo "configure:4434: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4436 no_cache=0
4437 # Check whether --enable-notebook or --disable-notebook was given.
4438if test "${enable_notebook+set}" = set; then
4439 enableval="$enable_notebook"
4440
4441 if test "$enableval" = yes; then
4442 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4443 else
4444 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4445 fi
4446
4447else
4448
4449 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4450 if test "x$LINE" != x ; then
4451 eval "DEFAULT_$LINE"
4452 else
4453 no_cache=1
4454 fi
4455
4456 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4457
4458fi
4459
4460
4461 eval "$ac_cv_use_notebook"
4462 if test "$no_cache" != 1; then
4463 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4464 fi
4465
4466 if test "$wxUSE_NOTEBOOK" = yes; then
4467 echo "$ac_t""yes" 1>&6
4468 else
4469 echo "$ac_t""no" 1>&6
4470 fi
4471
4472
4473 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
ba337fe7 4474echo "configure:4473: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4475 no_cache=0
4476 # Check whether --enable-radiobox or --disable-radiobox was given.
4477if test "${enable_radiobox+set}" = set; then
4478 enableval="$enable_radiobox"
4479
4480 if test "$enableval" = yes; then
4481 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4482 else
4483 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4484 fi
4485
4486else
4487
4488 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4489 if test "x$LINE" != x ; then
4490 eval "DEFAULT_$LINE"
4491 else
4492 no_cache=1
4493 fi
4494
4495 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4496
4497fi
4498
4499
4500 eval "$ac_cv_use_radiobox"
4501 if test "$no_cache" != 1; then
4502 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4503 fi
4504
4505 if test "$wxUSE_RADIOBOX" = yes; then
4506 echo "$ac_t""yes" 1>&6
4507 else
4508 echo "$ac_t""no" 1>&6
4509 fi
4510
4511
4512 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
ba337fe7 4513echo "configure:4512: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4514 no_cache=0
4515 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4516if test "${enable_radiobtn+set}" = set; then
4517 enableval="$enable_radiobtn"
4518
4519 if test "$enableval" = yes; then
4520 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4521 else
4522 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4523 fi
4524
4525else
4526
4527 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4528 if test "x$LINE" != x ; then
4529 eval "DEFAULT_$LINE"
4530 else
4531 no_cache=1
4532 fi
4533
4534 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4535
4536fi
4537
4538
4539 eval "$ac_cv_use_radiobtn"
4540 if test "$no_cache" != 1; then
4541 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4542 fi
4543
4544 if test "$wxUSE_RADIOBTN" = yes; then
4545 echo "$ac_t""yes" 1>&6
4546 else
4547 echo "$ac_t""no" 1>&6
4548 fi
4549
4550
4551 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
ba337fe7 4552echo "configure:4551: checking "for --enable-sash"" >&5
10f2d63a
VZ
4553 no_cache=0
4554 # Check whether --enable-sash or --disable-sash was given.
4555if test "${enable_sash+set}" = set; then
4556 enableval="$enable_sash"
4557
4558 if test "$enableval" = yes; then
4559 ac_cv_use_sash='wxUSE_SASH=yes'
4560 else
4561 ac_cv_use_sash='wxUSE_SASH=no'
4562 fi
4563
4564else
4565
4566 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4567 if test "x$LINE" != x ; then
4568 eval "DEFAULT_$LINE"
4569 else
4570 no_cache=1
4571 fi
4572
4573 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4574
4575fi
4576
4577
4578 eval "$ac_cv_use_sash"
4579 if test "$no_cache" != 1; then
4580 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4581 fi
4582
4583 if test "$wxUSE_SASH" = yes; then
4584 echo "$ac_t""yes" 1>&6
4585 else
4586 echo "$ac_t""no" 1>&6
4587 fi
4588
4589
4590 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
ba337fe7 4591echo "configure:4590: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4592 no_cache=0
4593 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4594if test "${enable_scrollbar+set}" = set; then
4595 enableval="$enable_scrollbar"
4596
4597 if test "$enableval" = yes; then
4598 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4599 else
4600 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4601 fi
4602
4603else
4604
4605 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4606 if test "x$LINE" != x ; then
4607 eval "DEFAULT_$LINE"
4608 else
4609 no_cache=1
4610 fi
4611
4612 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4613
4614fi
4615
4616
4617 eval "$ac_cv_use_scrollbar"
4618 if test "$no_cache" != 1; then
4619 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4620 fi
4621
4622 if test "$wxUSE_SCROLLBAR" = yes; then
4623 echo "$ac_t""yes" 1>&6
4624 else
4625 echo "$ac_t""no" 1>&6
4626 fi
4627
4628
4629 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
ba337fe7 4630echo "configure:4629: checking "for --enable-slider"" >&5
10f2d63a
VZ
4631 no_cache=0
4632 # Check whether --enable-slider or --disable-slider was given.
4633if test "${enable_slider+set}" = set; then
4634 enableval="$enable_slider"
4635
4636 if test "$enableval" = yes; then
4637 ac_cv_use_slider='wxUSE_SLIDER=yes'
4638 else
4639 ac_cv_use_slider='wxUSE_SLIDER=no'
4640 fi
4641
4642else
4643
4644 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4645 if test "x$LINE" != x ; then
4646 eval "DEFAULT_$LINE"
4647 else
4648 no_cache=1
4649 fi
4650
4651 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4652
4653fi
4654
4655
4656 eval "$ac_cv_use_slider"
4657 if test "$no_cache" != 1; then
4658 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4659 fi
4660
4661 if test "$wxUSE_SLIDER" = yes; then
4662 echo "$ac_t""yes" 1>&6
4663 else
4664 echo "$ac_t""no" 1>&6
4665 fi
4666
4667
4668 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
ba337fe7 4669echo "configure:4668: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
4670 no_cache=0
4671 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4672if test "${enable_spinbtn+set}" = set; then
4673 enableval="$enable_spinbtn"
4674
4675 if test "$enableval" = yes; then
4676 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4677 else
4678 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4679 fi
4680
4681else
4682
4683 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4684 if test "x$LINE" != x ; then
4685 eval "DEFAULT_$LINE"
4686 else
4687 no_cache=1
4688 fi
4689
4690 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4691
4692fi
4693
4694
4695 eval "$ac_cv_use_spinbtn"
4696 if test "$no_cache" != 1; then
4697 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4698 fi
4699
4700 if test "$wxUSE_SPINBTN" = yes; then
4701 echo "$ac_t""yes" 1>&6
4702 else
4703 echo "$ac_t""no" 1>&6
4704 fi
4705
4706
4707 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
ba337fe7 4708echo "configure:4707: checking "for --enable-splitter"" >&5
10f2d63a
VZ
4709 no_cache=0
4710 # Check whether --enable-splitter or --disable-splitter was given.
4711if test "${enable_splitter+set}" = set; then
4712 enableval="$enable_splitter"
4713
4714 if test "$enableval" = yes; then
4715 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4716 else
4717 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4718 fi
4719
4720else
4721
4722 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4723 if test "x$LINE" != x ; then
4724 eval "DEFAULT_$LINE"
4725 else
4726 no_cache=1
4727 fi
4728
4729 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4730
4731fi
4732
4733
4734 eval "$ac_cv_use_splitter"
4735 if test "$no_cache" != 1; then
4736 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4737 fi
4738
4739 if test "$wxUSE_SPLITTER" = yes; then
4740 echo "$ac_t""yes" 1>&6
4741 else
4742 echo "$ac_t""no" 1>&6
4743 fi
4744
4745
4746 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
ba337fe7 4747echo "configure:4746: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
4748 no_cache=0
4749 # Check whether --enable-statbmp or --disable-statbmp was given.
4750if test "${enable_statbmp+set}" = set; then
4751 enableval="$enable_statbmp"
4752
4753 if test "$enableval" = yes; then
4754 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4755 else
4756 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4757 fi
4758
4759else
4760
4761 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4762 if test "x$LINE" != x ; then
4763 eval "DEFAULT_$LINE"
4764 else
4765 no_cache=1
4766 fi
4767
4768 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4769
4770fi
4771
4772
4773 eval "$ac_cv_use_statbmp"
4774 if test "$no_cache" != 1; then
4775 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4776 fi
4777
4778 if test "$wxUSE_STATBMP" = yes; then
4779 echo "$ac_t""yes" 1>&6
4780 else
4781 echo "$ac_t""no" 1>&6
4782 fi
4783
4784
4785 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
ba337fe7 4786echo "configure:4785: checking "for --enable-statbox"" >&5
10f2d63a
VZ
4787 no_cache=0
4788 # Check whether --enable-statbox or --disable-statbox was given.
4789if test "${enable_statbox+set}" = set; then
4790 enableval="$enable_statbox"
4791
4792 if test "$enableval" = yes; then
4793 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4794 else
4795 ac_cv_use_statbox='wxUSE_STATBOX=no'
4796 fi
4797
4798else
4799
4800 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4801 if test "x$LINE" != x ; then
4802 eval "DEFAULT_$LINE"
4803 else
4804 no_cache=1
4805 fi
4806
4807 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4808
4809fi
4810
4811
4812 eval "$ac_cv_use_statbox"
4813 if test "$no_cache" != 1; then
4814 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4815 fi
4816
4817 if test "$wxUSE_STATBOX" = yes; then
4818 echo "$ac_t""yes" 1>&6
4819 else
4820 echo "$ac_t""no" 1>&6
4821 fi
4822
4823
4824 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
ba337fe7 4825echo "configure:4824: checking "for --enable-statline"" >&5
10f2d63a
VZ
4826 no_cache=0
4827 # Check whether --enable-statline or --disable-statline was given.
4828if test "${enable_statline+set}" = set; then
4829 enableval="$enable_statline"
4830
4831 if test "$enableval" = yes; then
4832 ac_cv_use_statline='wxUSE_STATLINE=yes'
4833 else
4834 ac_cv_use_statline='wxUSE_STATLINE=no'
4835 fi
4836
4837else
4838
4839 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
4840 if test "x$LINE" != x ; then
4841 eval "DEFAULT_$LINE"
4842 else
4843 no_cache=1
4844 fi
4845
4846 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
4847
4848fi
4849
4850
4851 eval "$ac_cv_use_statline"
4852 if test "$no_cache" != 1; then
4853 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
4854 fi
4855
4856 if test "$wxUSE_STATLINE" = yes; then
4857 echo "$ac_t""yes" 1>&6
4858 else
4859 echo "$ac_t""no" 1>&6
4860 fi
4861
4862
4863 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
ba337fe7 4864echo "configure:4863: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
4865 no_cache=0
4866 # Check whether --enable-statusbar or --disable-statusbar was given.
4867if test "${enable_statusbar+set}" = set; then
4868 enableval="$enable_statusbar"
4869
4870 if test "$enableval" = yes; then
4871 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
4872 else
4873 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
4874 fi
4875
4876else
4877
4878 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
4879 if test "x$LINE" != x ; then
4880 eval "DEFAULT_$LINE"
4881 else
4882 no_cache=1
4883 fi
4884
4885 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
4886
4887fi
4888
4889
4890 eval "$ac_cv_use_statusbar"
4891 if test "$no_cache" != 1; then
4892 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
4893 fi
4894
4895 if test "$wxUSE_STATUSBAR" = yes; then
4896 echo "$ac_t""yes" 1>&6
4897 else
4898 echo "$ac_t""no" 1>&6
4899 fi
4900
4901
4902 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
ba337fe7 4903echo "configure:4902: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
4904 no_cache=0
4905 # Check whether --enable-tabdialog or --disable-tabdialog was given.
4906if test "${enable_tabdialog+set}" = set; then
4907 enableval="$enable_tabdialog"
4908
4909 if test "$enableval" = yes; then
4910 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
4911 else
4912 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
4913 fi
4914
4915else
4916
4917 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
4918 if test "x$LINE" != x ; then
4919 eval "DEFAULT_$LINE"
4920 else
4921 no_cache=1
4922 fi
4923
4924 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
4925
4926fi
4927
4928
4929 eval "$ac_cv_use_tabdialog"
4930 if test "$no_cache" != 1; then
4931 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
4932 fi
4933
4934 if test "$wxUSE_TABDIALOG" = yes; then
4935 echo "$ac_t""yes" 1>&6
4936 else
4937 echo "$ac_t""no" 1>&6
4938 fi
4939
4940
4941 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
ba337fe7 4942echo "configure:4941: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
4943 no_cache=0
4944 # Check whether --enable-toolbar or --disable-toolbar was given.
4945if test "${enable_toolbar+set}" = set; then
4946 enableval="$enable_toolbar"
4947
4948 if test "$enableval" = yes; then
4949 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
4950 else
4951 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
4952 fi
4953
4954else
4955
4956 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
4957 if test "x$LINE" != x ; then
4958 eval "DEFAULT_$LINE"
4959 else
4960 no_cache=1
4961 fi
4962
4963 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
4964
4965fi
4966
4967
4968 eval "$ac_cv_use_toolbar"
4969 if test "$no_cache" != 1; then
4970 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
4971 fi
4972
4973 if test "$wxUSE_TOOLBAR" = yes; then
4974 echo "$ac_t""yes" 1>&6
4975 else
4976 echo "$ac_t""no" 1>&6
4977 fi
4978
4979
4980 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
ba337fe7 4981echo "configure:4980: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
4982 no_cache=0
4983 # Check whether --enable-treectrl or --disable-treectrl was given.
4984if test "${enable_treectrl+set}" = set; then
4985 enableval="$enable_treectrl"
4986
4987 if test "$enableval" = yes; then
4988 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
4989 else
4990 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
4991 fi
4992
4993else
4994
4995 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
4996 if test "x$LINE" != x ; then
4997 eval "DEFAULT_$LINE"
4998 else
4999 no_cache=1
5000 fi
5001
5002 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5003
5004fi
5005
5006
5007 eval "$ac_cv_use_treectrl"
5008 if test "$no_cache" != 1; then
5009 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5010 fi
5011
5012 if test "$wxUSE_TREECTRL" = yes; then
5013 echo "$ac_t""yes" 1>&6
5014 else
5015 echo "$ac_t""no" 1>&6
5016 fi
5017
5018
5019
5020
5021 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
ba337fe7 5022echo "configure:5021: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5023 no_cache=0
5024 # Check whether --enable-commondlg or --disable-commondlg was given.
5025if test "${enable_commondlg+set}" = set; then
5026 enableval="$enable_commondlg"
5027
5028 if test "$enableval" = yes; then
5029 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5030 else
5031 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5032 fi
5033
5034else
5035
5036 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5037 if test "x$LINE" != x ; then
5038 eval "DEFAULT_$LINE"
5039 else
5040 no_cache=1
5041 fi
5042
5043 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5044
5045fi
5046
5047
5048 eval "$ac_cv_use_commondlg"
5049 if test "$no_cache" != 1; then
5050 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5051 fi
5052
5053 if test "$wxUSE_COMMONDLGS" = yes; then
5054 echo "$ac_t""yes" 1>&6
5055 else
5056 echo "$ac_t""no" 1>&6
5057 fi
5058
5059
5060 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
ba337fe7 5061echo "configure:5060: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5062 no_cache=0
5063 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5064if test "${enable_dirdlg+set}" = set; then
5065 enableval="$enable_dirdlg"
5066
5067 if test "$enableval" = yes; then
5068 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5069 else
5070 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5071 fi
5072
5073else
5074
5075 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5076 if test "x$LINE" != x ; then
5077 eval "DEFAULT_$LINE"
5078 else
5079 no_cache=1
5080 fi
5081
5082 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5083
5084fi
5085
5086
5087 eval "$ac_cv_use_dirdlg"
5088 if test "$no_cache" != 1; then
5089 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5090 fi
5091
5092 if test "$wxUSE_DIRDLG" = yes; then
5093 echo "$ac_t""yes" 1>&6
5094 else
5095 echo "$ac_t""no" 1>&6
5096 fi
5097
5098
5099 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
ba337fe7 5100echo "configure:5099: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5101 no_cache=0
5102 # Check whether --enable-textdlg or --disable-textdlg was given.
5103if test "${enable_textdlg+set}" = set; then
5104 enableval="$enable_textdlg"
5105
5106 if test "$enableval" = yes; then
5107 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5108 else
5109 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5110 fi
5111
5112else
5113
5114 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5115 if test "x$LINE" != x ; then
5116 eval "DEFAULT_$LINE"
5117 else
5118 no_cache=1
5119 fi
5120
5121 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5122
5123fi
5124
5125
5126 eval "$ac_cv_use_textdlg"
5127 if test "$no_cache" != 1; then
5128 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5129 fi
5130
5131 if test "$wxUSE_TEXTDLG" = yes; then
5132 echo "$ac_t""yes" 1>&6
5133 else
5134 echo "$ac_t""no" 1>&6
5135 fi
5136
5137
5138 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
ba337fe7 5139echo "configure:5138: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5140 no_cache=0
5141 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5142if test "${enable_tipdlg+set}" = set; then
5143 enableval="$enable_tipdlg"
5144
5145 if test "$enableval" = yes; then
5146 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5147 else
5148 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5149 fi
5150
5151else
5152
5153 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5154 if test "x$LINE" != x ; then
5155 eval "DEFAULT_$LINE"
5156 else
5157 no_cache=1
5158 fi
5159
5160 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5161
5162fi
5163
5164
5165 eval "$ac_cv_use_tipdlg"
5166 if test "$no_cache" != 1; then
5167 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5168 fi
5169
5170 if test "$wxUSE_STARTUP_TIPS" = yes; then
5171 echo "$ac_t""yes" 1>&6
5172 else
5173 echo "$ac_t""no" 1>&6
5174 fi
5175
5176
5177 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
ba337fe7 5178echo "configure:5177: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5179 no_cache=0
5180 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5181if test "${enable_progressdlg+set}" = set; then
5182 enableval="$enable_progressdlg"
5183
5184 if test "$enableval" = yes; then
5185 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5186 else
5187 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5188 fi
5189
5190else
5191
5192 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5193 if test "x$LINE" != x ; then
5194 eval "DEFAULT_$LINE"
5195 else
5196 no_cache=1
5197 fi
5198
5199 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5200
5201fi
5202
5203
5204 eval "$ac_cv_use_progressdlg"
5205 if test "$no_cache" != 1; then
5206 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5207 fi
5208
5209 if test "$wxUSE_PROGRESSDLG" = yes; then
5210 echo "$ac_t""yes" 1>&6
5211 else
5212 echo "$ac_t""no" 1>&6
5213 fi
5214
5215
5216 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
ba337fe7 5217echo "configure:5216: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5218 no_cache=0
5219 # Check whether --enable-miniframe or --disable-miniframe was given.
5220if test "${enable_miniframe+set}" = set; then
5221 enableval="$enable_miniframe"
5222
5223 if test "$enableval" = yes; then
5224 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5225 else
5226 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5227 fi
5228
5229else
5230
5231 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5232 if test "x$LINE" != x ; then
5233 eval "DEFAULT_$LINE"
5234 else
5235 no_cache=1
5236 fi
5237
5238 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5239
5240fi
5241
5242
5243 eval "$ac_cv_use_miniframe"
5244 if test "$no_cache" != 1; then
5245 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5246 fi
5247
5248 if test "$wxUSE_MINIFRAME" = yes; then
5249 echo "$ac_t""yes" 1>&6
5250 else
5251 echo "$ac_t""no" 1>&6
5252 fi
5253
5254
5255 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
ba337fe7 5256echo "configure:5255: checking "for --enable-html"" >&5
10f2d63a
VZ
5257 no_cache=0
5258 # Check whether --enable-html or --disable-html was given.
5259if test "${enable_html+set}" = set; then
5260 enableval="$enable_html"
5261
5262 if test "$enableval" = yes; then
5263 ac_cv_use_html='wxUSE_HTML=yes'
5264 else
5265 ac_cv_use_html='wxUSE_HTML=no'
5266 fi
5267
5268else
5269
5270 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5271 if test "x$LINE" != x ; then
5272 eval "DEFAULT_$LINE"
5273 else
5274 no_cache=1
5275 fi
5276
5277 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5278
5279fi
5280
5281
5282 eval "$ac_cv_use_html"
5283 if test "$no_cache" != 1; then
5284 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5285 fi
5286
5287 if test "$wxUSE_HTML" = yes; then
5288 echo "$ac_t""yes" 1>&6
5289 else
5290 echo "$ac_t""no" 1>&6
5291 fi
5292
5293
5294 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
ba337fe7 5295echo "configure:5294: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5296 no_cache=0
5297 # Check whether --enable-tooltips or --disable-tooltips was given.
5298if test "${enable_tooltips+set}" = set; then
5299 enableval="$enable_tooltips"
5300
5301 if test "$enableval" = yes; then
5302 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5303 else
5304 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5305 fi
5306
5307else
5308
5309 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5310 if test "x$LINE" != x ; then
5311 eval "DEFAULT_$LINE"
5312 else
5313 no_cache=1
5314 fi
5315
5316 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5317
5318fi
5319
5320
5321 eval "$ac_cv_use_tooltips"
5322 if test "$no_cache" != 1; then
5323 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5324 fi
5325
5326 if test "$wxUSE_TOOLTIPS" = yes; then
5327 echo "$ac_t""yes" 1>&6
5328 else
5329 echo "$ac_t""no" 1>&6
5330 fi
5331
5332
5333 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
ba337fe7 5334echo "configure:5333: checking "for --enable-splines"" >&5
10f2d63a
VZ
5335 no_cache=0
5336 # Check whether --enable-splines or --disable-splines was given.
5337if test "${enable_splines+set}" = set; then
5338 enableval="$enable_splines"
5339
5340 if test "$enableval" = yes; then
5341 ac_cv_use_splines='wxUSE_SPLINES=yes'
5342 else
5343 ac_cv_use_splines='wxUSE_SPLINES=no'
5344 fi
5345
5346else
5347
5348 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5349 if test "x$LINE" != x ; then
5350 eval "DEFAULT_$LINE"
5351 else
5352 no_cache=1
5353 fi
5354
5355 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5356
5357fi
5358
5359
5360 eval "$ac_cv_use_splines"
5361 if test "$no_cache" != 1; then
5362 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5363 fi
5364
5365 if test "$wxUSE_SPLINES" = yes; then
5366 echo "$ac_t""yes" 1>&6
5367 else
5368 echo "$ac_t""no" 1>&6
5369 fi
5370
5371
5372 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
ba337fe7 5373echo "configure:5372: checking "for --enable-validators"" >&5
10f2d63a
VZ
5374 no_cache=0
5375 # Check whether --enable-validators or --disable-validators was given.
5376if test "${enable_validators+set}" = set; then
5377 enableval="$enable_validators"
5378
5379 if test "$enableval" = yes; then
5380 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5381 else
5382 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5383 fi
5384
5385else
5386
5387 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5388 if test "x$LINE" != x ; then
5389 eval "DEFAULT_$LINE"
5390 else
5391 no_cache=1
5392 fi
5393
5394 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5395
5396fi
5397
5398
5399 eval "$ac_cv_use_validators"
5400 if test "$no_cache" != 1; then
5401 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5402 fi
5403
5404 if test "$wxUSE_VALIDATORS" = yes; then
5405 echo "$ac_t""yes" 1>&6
5406 else
5407 echo "$ac_t""no" 1>&6
5408 fi
5409
5410
5411 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
ba337fe7 5412echo "configure:5411: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5413 no_cache=0
5414 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5415if test "${enable_busyinfo+set}" = set; then
5416 enableval="$enable_busyinfo"
5417
5418 if test "$enableval" = yes; then
5419 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5420 else
5421 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5422 fi
5423
5424else
5425
5426 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5427 if test "x$LINE" != x ; then
5428 eval "DEFAULT_$LINE"
5429 else
5430 no_cache=1
5431 fi
5432
5433 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5434
5435fi
5436
5437
5438 eval "$ac_cv_use_busyinfo"
5439 if test "$no_cache" != 1; then
5440 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5441 fi
5442
5443 if test "$wxUSE_BUSYINFO" = yes; then
5444 echo "$ac_t""yes" 1>&6
5445 else
5446 echo "$ac_t""no" 1>&6
5447 fi
5448
5449
5450
5451
5452 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
ba337fe7 5453echo "configure:5452: checking "for --enable-gif"" >&5
10f2d63a
VZ
5454 no_cache=0
5455 # Check whether --enable-gif or --disable-gif was given.
5456if test "${enable_gif+set}" = set; then
5457 enableval="$enable_gif"
5458
5459 if test "$enableval" = yes; then
5460 ac_cv_use_gif='wxUSE_GIF=yes'
5461 else
5462 ac_cv_use_gif='wxUSE_GIF=no'
5463 fi
5464
5465else
5466
5467 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5468 if test "x$LINE" != x ; then
5469 eval "DEFAULT_$LINE"
5470 else
5471 no_cache=1
5472 fi
5473
5474 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5475
5476fi
5477
5478
5479 eval "$ac_cv_use_gif"
5480 if test "$no_cache" != 1; then
5481 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5482 fi
5483
5484 if test "$wxUSE_GIF" = yes; then
5485 echo "$ac_t""yes" 1>&6
5486 else
5487 echo "$ac_t""no" 1>&6
5488 fi
5489
5490
5491 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
ba337fe7 5492echo "configure:5491: checking "for --enable-pcx"" >&5
10f2d63a
VZ
5493 no_cache=0
5494 # Check whether --enable-pcx or --disable-pcx was given.
5495if test "${enable_pcx+set}" = set; then
5496 enableval="$enable_pcx"
5497
5498 if test "$enableval" = yes; then
5499 ac_cv_use_pcx='wxUSE_PCX=yes'
5500 else
5501 ac_cv_use_pcx='wxUSE_PCX=no'
5502 fi
5503
5504else
5505
5506 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5507 if test "x$LINE" != x ; then
5508 eval "DEFAULT_$LINE"
5509 else
5510 no_cache=1
5511 fi
5512
5513 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5514
5515fi
5516
5517
5518 eval "$ac_cv_use_pcx"
5519 if test "$no_cache" != 1; then
5520 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5521 fi
5522
5523 if test "$wxUSE_PCX" = yes; then
5524 echo "$ac_t""yes" 1>&6
5525 else
5526 echo "$ac_t""no" 1>&6
5527 fi
5528
5529
5530 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
ba337fe7 5531echo "configure:5530: checking "for --enable-pnm"" >&5
10f2d63a
VZ
5532 no_cache=0
5533 # Check whether --enable-pnm or --disable-pnm was given.
5534if test "${enable_pnm+set}" = set; then
5535 enableval="$enable_pnm"
5536
5537 if test "$enableval" = yes; then
5538 ac_cv_use_pnm='wxUSE_PNM=yes'
5539 else
5540 ac_cv_use_pnm='wxUSE_PNM=no'
5541 fi
5542
5543else
5544
5545 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5546 if test "x$LINE" != x ; then
5547 eval "DEFAULT_$LINE"
5548 else
5549 no_cache=1
5550 fi
5551
5552 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5553
5554fi
5555
5556
5557 eval "$ac_cv_use_pnm"
5558 if test "$no_cache" != 1; then
5559 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5560 fi
5561
5562 if test "$wxUSE_PNM" = yes; then
5563 echo "$ac_t""yes" 1>&6
5564 else
5565 echo "$ac_t""no" 1>&6
5566 fi
5567
5568
5569
5570 echo "saving argument cache $wx_arg_cache_file"
5571 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5572
5573
5574
5575echo $ac_n "checking for toolkit""... $ac_c" 1>&6
ba337fe7 5576echo "configure:5575: checking for toolkit" >&5
10f2d63a
VZ
5577
5578if test "$wxUSE_GUI" = "yes"; then
5579
5580if test "$TOOLKIT_GIVEN" = 1; then
5581 for toolkit in `echo $ALL_TOOLKITS`; do
5582 var=wxUSE_$toolkit
5583 eval "value=\$${var}"
5584 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5585 done
5586else
5587 for toolkit in `echo $ALL_TOOLKITS`; do
5588 if test "$has_toolkit_in_cache" != 1; then
5589 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5590 else
5591 var=DEFAULT_wxUSE_$toolkit
5592 fi
5593 eval "wxUSE_$toolkit=\$${var}"
5594 done
5595fi
5596
5597NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
5598
5599case "$NUM_TOOLKITS" in
5600 1)
5601 ;;
5602 0)
5603 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5604 ;;
5605 *)
5606 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5607esac
5608
5609for toolkit in `echo $ALL_TOOLKITS`; do
5610 var=wxUSE_$toolkit
5611 eval "value=\$${var}"
5612 if test "x$value" != x; then
5613 cache_var=CACHE_$toolkit
5614 eval "cache=\$${cache_var}"
5615 if test "$cache" = 1; then
5616 echo "$var=$value" >> ${wx_arg_cache_file}
5617 fi
5618 if test "$value" = 1; then
5619 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5620 fi
5621 fi
5622done
5623
5624else
5625 echo "$ac_t""base only" 1>&6
5626fi
5627
5628
5629cat > confcache <<\EOF
5630# This file is a shell script that caches the results of configure
5631# tests run on this system so they can be shared between configure
5632# scripts and configure runs. It is not useful on other systems.
5633# If it contains results you don't want to keep, you may remove or edit it.
5634#
5635# By default, configure uses ./config.cache as the cache file,
5636# creating it if it does not exist already. You can give configure
5637# the --cache-file=FILE option to use a different cache file; that is
5638# what configure does when it calls configure scripts in
5639# subdirectories, so they share the cache.
5640# Giving --cache-file=/dev/null disables caching, for debugging configure.
5641# config.status only pays attention to the cache file if you give it the
5642# --recheck option to rerun configure.
5643#
5644EOF
5645# The following way of writing the cache mishandles newlines in values,
5646# but we know of no workaround that is simple, portable, and efficient.
5647# So, don't put newlines in cache variables' values.
5648# Ultrix sh set writes to stderr and can't be redirected directly,
5649# and sets the high bit in the cache file unless we assign to the vars.
5650(set) 2>&1 |
5651 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5652 *ac_space=\ *)
5653 # `set' does not quote correctly, so add quotes (double-quote substitution
5654 # turns \\\\ into \\, and sed turns \\ into \).
5655 sed -n \
5656 -e "s/'/'\\\\''/g" \
5657 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5658 ;;
5659 *)
5660 # `set' quotes correctly as required by POSIX, so do not add quotes.
5661 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5662 ;;
5663 esac >> confcache
5664if cmp -s $cache_file confcache; then
5665 :
5666else
5667 if test -w $cache_file; then
5668 echo "updating cache $cache_file"
5669 cat confcache > $cache_file
5670 else
5671 echo "not updating unwritable cache $cache_file"
5672 fi
5673fi
5674rm -f confcache
5675
5676
5677if eval "test $host != $build"; then
5678 if eval "test $host_alias != NONE"; then
5679 CC=$host_alias-gcc
5680 CXX=$host_alias-c++
5681 AR=$host_alias-ar
5682 RANLIB=$host_alias-ranlib
5683 DLLTOOL=$host_alias-dlltool
5684 LD=$host_alias-ld
5685 NM=$host_alias-nm
5686 STRIP=$host_alias-strip
5687 fi
5688fi
5689
5690# Extract the first word of "gcc", so it can be a program name with args.
5691set dummy gcc; ac_word=$2
5692echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ba337fe7 5693echo "configure:5692: checking for $ac_word" >&5
10f2d63a
VZ
5694if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5695 echo $ac_n "(cached) $ac_c" 1>&6
5696else
5697 if test -n "$CC"; then
5698 ac_cv_prog_CC="$CC" # Let the user override the test.
5699else
5700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5701 ac_dummy="$PATH"
5702 for ac_dir in $ac_dummy; do
5703 test -z "$ac_dir" && ac_dir=.
5704 if test -f $ac_dir/$ac_word; then
5705 ac_cv_prog_CC="gcc"
5706 break
5707 fi
5708 done
5709 IFS="$ac_save_ifs"
5710fi
5711fi
5712CC="$ac_cv_prog_CC"
5713if test -n "$CC"; then
5714 echo "$ac_t""$CC" 1>&6
5715else
5716 echo "$ac_t""no" 1>&6
5717fi
5718
5719if test -z "$CC"; then
5720 # Extract the first word of "cc", so it can be a program name with args.
5721set dummy cc; ac_word=$2
5722echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ba337fe7 5723echo "configure:5722: checking for $ac_word" >&5
10f2d63a
VZ
5724if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5725 echo $ac_n "(cached) $ac_c" 1>&6
5726else
5727 if test -n "$CC"; then
5728 ac_cv_prog_CC="$CC" # Let the user override the test.
5729else
5730 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5731 ac_prog_rejected=no
5732 ac_dummy="$PATH"
5733 for ac_dir in $ac_dummy; do
5734 test -z "$ac_dir" && ac_dir=.
5735 if test -f $ac_dir/$ac_word; then
5736 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
5737 ac_prog_rejected=yes
5738 continue
5739 fi
5740 ac_cv_prog_CC="cc"
5741 break
5742 fi
5743 done
5744 IFS="$ac_save_ifs"
5745if test $ac_prog_rejected = yes; then
5746 # We found a bogon in the path, so make sure we never use it.
5747 set dummy $ac_cv_prog_CC
5748 shift
5749 if test $# -gt 0; then
5750 # We chose a different compiler from the bogus one.
5751 # However, it has the same basename, so the bogon will be chosen
5752 # first if we set CC to just the basename; use the full file name.
5753 shift
5754 set dummy "$ac_dir/$ac_word" "$@"
5755 shift
5756 ac_cv_prog_CC="$@"
5757 fi
5758fi
5759fi
5760fi
5761CC="$ac_cv_prog_CC"
5762if test -n "$CC"; then
5763 echo "$ac_t""$CC" 1>&6
5764else
5765 echo "$ac_t""no" 1>&6
5766fi
5767
5768 if test -z "$CC"; then
5769 case "`uname -s`" in
5770 *win32* | *WIN32*)
5771 # Extract the first word of "cl", so it can be a program name with args.
5772set dummy cl; ac_word=$2
5773echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ba337fe7 5774echo "configure:5773: checking for $ac_word" >&5
10f2d63a
VZ
5775if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5776 echo $ac_n "(cached) $ac_c" 1>&6
5777else
5778 if test -n "$CC"; then
5779 ac_cv_prog_CC="$CC" # Let the user override the test.
5780else
5781 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5782 ac_dummy="$PATH"
5783 for ac_dir in $ac_dummy; do
5784 test -z "$ac_dir" && ac_dir=.
5785 if test -f $ac_dir/$ac_word; then
5786 ac_cv_prog_CC="cl"
5787 break
5788 fi
5789 done
5790 IFS="$ac_save_ifs"
5791fi
5792fi
5793CC="$ac_cv_prog_CC"
5794if test -n "$CC"; then
5795 echo "$ac_t""$CC" 1>&6
5796else
5797 echo "$ac_t""no" 1>&6
5798fi
5799 ;;
5800 esac
5801 fi
5802 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5803fi
5804
5805echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
ba337fe7 5806echo "configure:5805: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
5807
5808ac_ext=c
5809# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5810ac_cpp='$CPP $CPPFLAGS'
5811ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5812ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5813cross_compiling=$ac_cv_prog_cc_cross
5814
5815cat > conftest.$ac_ext << EOF
5816
ba337fe7 5817#line 5816 "configure"
10f2d63a
VZ
5818#include "confdefs.h"
5819
5820main(){return(0);}
5821EOF
ba337fe7 5822if { (eval echo configure:5821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
5823 ac_cv_prog_cc_works=yes
5824 # If we can't run a trivial program, we are probably using a cross compiler.
5825 if (./conftest; exit) 2>/dev/null; then
5826 ac_cv_prog_cc_cross=no
5827 else
5828 ac_cv_prog_cc_cross=yes
5829 fi
5830else
5831 echo "configure: failed program was:" >&5
5832 cat conftest.$ac_ext >&5
5833 ac_cv_prog_cc_works=no
5834fi
5835rm -fr conftest*
5836ac_ext=c
5837# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5838ac_cpp='$CPP $CPPFLAGS'
5839ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5840ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5841cross_compiling=$ac_cv_prog_cc_cross
5842
5843echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
5844if test $ac_cv_prog_cc_works = no; then
5845 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
5846fi
5847echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
ba337fe7 5848echo "configure:5847: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
5849echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
5850cross_compiling=$ac_cv_prog_cc_cross
5851
5852echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
ba337fe7 5853echo "configure:5852: checking whether we are using GNU C" >&5
10f2d63a
VZ
5854if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
5855 echo $ac_n "(cached) $ac_c" 1>&6
5856else
5857 cat > conftest.c <<EOF
5858#ifdef __GNUC__
5859 yes;
5860#endif
5861EOF
ba337fe7 5862if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:5861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
5863 ac_cv_prog_gcc=yes
5864else
5865 ac_cv_prog_gcc=no
5866fi
5867fi
5868
5869echo "$ac_t""$ac_cv_prog_gcc" 1>&6
5870
5871if test $ac_cv_prog_gcc = yes; then
5872 GCC=yes
5873else
5874 GCC=
5875fi
5876
5877ac_test_CFLAGS="${CFLAGS+set}"
5878ac_save_CFLAGS="$CFLAGS"
5879CFLAGS=
5880echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
ba337fe7 5881echo "configure:5880: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
5882if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
5883 echo $ac_n "(cached) $ac_c" 1>&6
5884else
5885 echo 'void f(){}' > conftest.c
5886if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
5887 ac_cv_prog_cc_g=yes
5888else
5889 ac_cv_prog_cc_g=no
5890fi
5891rm -f conftest*
5892
5893fi
5894
5895echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
5896if test "$ac_test_CFLAGS" = set; then
5897 CFLAGS="$ac_save_CFLAGS"
5898elif test $ac_cv_prog_cc_g = yes; then
5899 if test "$GCC" = yes; then
5900 CFLAGS="-g -O2"
5901 else
5902 CFLAGS="-g"
5903 fi
5904else
5905 if test "$GCC" = yes; then
5906 CFLAGS="-O2"
5907 else
5908 CFLAGS=
5909 fi
5910fi
5911
5912
5913CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
5914
5915echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
ba337fe7 5916echo "configure:5915: checking how to run the C preprocessor" >&5
10f2d63a
VZ
5917# On Suns, sometimes $CPP names a directory.
5918if test -n "$CPP" && test -d "$CPP"; then
5919 CPP=
5920fi
5921if test -z "$CPP"; then
5922if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
5923 echo $ac_n "(cached) $ac_c" 1>&6
5924else
5925 # This must be in double quotes, not single quotes, because CPP may get
5926 # substituted into the Makefile and "${CC-cc}" will confuse make.
5927 CPP="${CC-cc} -E"
5928 # On the NeXT, cc -E runs the code through the compiler's parser,
5929 # not just through cpp.
5930 cat > conftest.$ac_ext <<EOF
ba337fe7 5931#line 5930 "configure"
10f2d63a
VZ
5932#include "confdefs.h"
5933#include <assert.h>
5934Syntax Error
5935EOF
5936ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ba337fe7 5937{ (eval echo configure:5936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
5938ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5939if test -z "$ac_err"; then
5940 :
5941else
5942 echo "$ac_err" >&5
5943 echo "configure: failed program was:" >&5
5944 cat conftest.$ac_ext >&5
5945 rm -rf conftest*
5946 CPP="${CC-cc} -E -traditional-cpp"
5947 cat > conftest.$ac_ext <<EOF
ba337fe7 5948#line 5947 "configure"
10f2d63a
VZ
5949#include "confdefs.h"
5950#include <assert.h>
5951Syntax Error
5952EOF
5953ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ba337fe7 5954{ (eval echo configure:5953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
5955ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5956if test -z "$ac_err"; then
5957 :
5958else
5959 echo "$ac_err" >&5
5960 echo "configure: failed program was:" >&5
5961 cat conftest.$ac_ext >&5
5962 rm -rf conftest*
5963 CPP="${CC-cc} -nologo -E"
5964 cat > conftest.$ac_ext <<EOF
ba337fe7 5965#line 5964 "configure"
10f2d63a
VZ
5966#include "confdefs.h"
5967#include <assert.h>
5968Syntax Error
5969EOF
5970ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ba337fe7 5971{ (eval echo configure:5970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
5972ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5973if test -z "$ac_err"; then
5974 :
5975else
5976 echo "$ac_err" >&5
5977 echo "configure: failed program was:" >&5
5978 cat conftest.$ac_ext >&5
5979 rm -rf conftest*
5980 CPP=/lib/cpp
5981fi
5982rm -f conftest*
5983fi
5984rm -f conftest*
5985fi
5986rm -f conftest*
5987 ac_cv_prog_CPP="$CPP"
5988fi
5989 CPP="$ac_cv_prog_CPP"
5990else
5991 ac_cv_prog_CPP="$CPP"
5992fi
5993echo "$ac_t""$CPP" 1>&6
5994
5995
5996if test $ac_cv_prog_gcc = yes; then
5997 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
ba337fe7 5998echo "configure:5997: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
5999if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6000 echo $ac_n "(cached) $ac_c" 1>&6
6001else
6002 ac_pattern="Autoconf.*'x'"
6003 cat > conftest.$ac_ext <<EOF
ba337fe7 6004#line 6003 "configure"
10f2d63a
VZ
6005#include "confdefs.h"
6006#include <sgtty.h>
6007Autoconf TIOCGETP
6008EOF
6009if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6010 egrep "$ac_pattern" >/dev/null 2>&1; then
6011 rm -rf conftest*
6012 ac_cv_prog_gcc_traditional=yes
6013else
6014 rm -rf conftest*
6015 ac_cv_prog_gcc_traditional=no
6016fi
6017rm -f conftest*
6018
6019
6020 if test $ac_cv_prog_gcc_traditional = no; then
6021 cat > conftest.$ac_ext <<EOF
ba337fe7 6022#line 6021 "configure"
10f2d63a
VZ
6023#include "confdefs.h"
6024#include <termio.h>
6025Autoconf TCGETA
6026EOF
6027if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6028 egrep "$ac_pattern" >/dev/null 2>&1; then
6029 rm -rf conftest*
6030 ac_cv_prog_gcc_traditional=yes
6031fi
6032rm -f conftest*
6033
6034 fi
6035fi
6036
6037echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6038 if test $ac_cv_prog_gcc_traditional = yes; then
6039 CC="$CC -traditional"
6040 fi
6041fi
6042
6043
6044
6045ac_ext=C
6046# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6047ac_cpp='$CXXCPP $CPPFLAGS'
6048ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6049ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6050cross_compiling=$ac_cv_prog_cxx_cross
6051
6052
6053for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6054do
6055# Extract the first word of "$ac_prog", so it can be a program name with args.
6056set dummy $ac_prog; ac_word=$2
6057echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ba337fe7 6058echo "configure:6057: checking for $ac_word" >&5
10f2d63a
VZ
6059if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6060 echo $ac_n "(cached) $ac_c" 1>&6
6061else
6062 if test -n "$CXX"; then
6063 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6064else
6065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6066 ac_dummy="$PATH"
6067 for ac_dir in $ac_dummy; do
6068 test -z "$ac_dir" && ac_dir=.
6069 if test -f $ac_dir/$ac_word; then
6070 ac_cv_prog_CXX="$ac_prog"
6071 break
6072 fi
6073 done
6074 IFS="$ac_save_ifs"
6075fi
6076fi
6077CXX="$ac_cv_prog_CXX"
6078if test -n "$CXX"; then
6079 echo "$ac_t""$CXX" 1>&6
6080else
6081 echo "$ac_t""no" 1>&6
6082fi
6083
6084test -n "$CXX" && break
6085done
6086test -n "$CXX" || CXX="gcc"
6087
6088
6089echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
ba337fe7 6090echo "configure:6089: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6091
6092ac_ext=C
6093# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6094ac_cpp='$CXXCPP $CPPFLAGS'
6095ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6096ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6097cross_compiling=$ac_cv_prog_cxx_cross
6098
6099cat > conftest.$ac_ext << EOF
6100
ba337fe7 6101#line 6100 "configure"
10f2d63a
VZ
6102#include "confdefs.h"
6103
6104int main(){return(0);}
6105EOF
ba337fe7 6106if { (eval echo configure:6105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6107 ac_cv_prog_cxx_works=yes
6108 # If we can't run a trivial program, we are probably using a cross compiler.
6109 if (./conftest; exit) 2>/dev/null; then
6110 ac_cv_prog_cxx_cross=no
6111 else
6112 ac_cv_prog_cxx_cross=yes
6113 fi
6114else
6115 echo "configure: failed program was:" >&5
6116 cat conftest.$ac_ext >&5
6117 ac_cv_prog_cxx_works=no
6118fi
6119rm -fr conftest*
6120ac_ext=C
6121# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6122ac_cpp='$CXXCPP $CPPFLAGS'
6123ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6124ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6125cross_compiling=$ac_cv_prog_cxx_cross
6126
6127echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6128if test $ac_cv_prog_cxx_works = no; then
6129 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6130fi
6131echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
ba337fe7 6132echo "configure:6131: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6133echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6134cross_compiling=$ac_cv_prog_cxx_cross
6135
6136echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
ba337fe7 6137echo "configure:6136: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6138if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6139 echo $ac_n "(cached) $ac_c" 1>&6
6140else
6141 cat > conftest.C <<EOF
6142#ifdef __GNUC__
6143 yes;
6144#endif
6145EOF
ba337fe7 6146if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6147 ac_cv_prog_gxx=yes
6148else
6149 ac_cv_prog_gxx=no
6150fi
6151fi
6152
6153echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6154
6155if test $ac_cv_prog_gxx = yes; then
6156 GXX=yes
6157else
6158 GXX=
6159fi
6160
6161ac_test_CXXFLAGS="${CXXFLAGS+set}"
6162ac_save_CXXFLAGS="$CXXFLAGS"
6163CXXFLAGS=
6164echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
ba337fe7 6165echo "configure:6164: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6166if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6167 echo $ac_n "(cached) $ac_c" 1>&6
6168else
6169 echo 'void f(){}' > conftest.cc
6170if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6171 ac_cv_prog_cxx_g=yes
6172else
6173 ac_cv_prog_cxx_g=no
6174fi
6175rm -f conftest*
6176
6177fi
6178
6179echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6180if test "$ac_test_CXXFLAGS" = set; then
6181 CXXFLAGS="$ac_save_CXXFLAGS"
6182elif test $ac_cv_prog_cxx_g = yes; then
6183 if test "$GXX" = yes; then
6184 CXXFLAGS="-g -O2"
6185 else
6186 CXXFLAGS="-g"
6187 fi
6188else
6189 if test "$GXX" = yes; then
6190 CXXFLAGS="-O2"
6191 else
6192 CXXFLAGS=
6193 fi
6194fi
6195
6196
6197echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
ba337fe7 6198echo "configure:6197: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6199if test -z "$CXXCPP"; then
6200if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6201 echo $ac_n "(cached) $ac_c" 1>&6
6202else
6203 ac_ext=C
6204# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6205ac_cpp='$CXXCPP $CPPFLAGS'
6206ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6207ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6208cross_compiling=$ac_cv_prog_cxx_cross
6209 CXXCPP="${CXX-g++} -E"
6210 cat > conftest.$ac_ext <<EOF
ba337fe7 6211#line 6210 "configure"
10f2d63a
VZ
6212#include "confdefs.h"
6213#include <stdlib.h>
6214EOF
6215ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ba337fe7 6216{ (eval echo configure:6215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6217ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6218if test -z "$ac_err"; then
6219 :
6220else
6221 echo "$ac_err" >&5
6222 echo "configure: failed program was:" >&5
6223 cat conftest.$ac_ext >&5
6224 rm -rf conftest*
6225 CXXCPP=/lib/cpp
6226fi
6227rm -f conftest*
6228 ac_cv_prog_CXXCPP="$CXXCPP"
6229ac_ext=C
6230# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6231ac_cpp='$CXXCPP $CPPFLAGS'
6232ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6233ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6234cross_compiling=$ac_cv_prog_cxx_cross
6235fi
6236fi
6237CXXCPP="$ac_cv_prog_CXXCPP"
6238echo "$ac_t""$CXXCPP" 1>&6
6239
6240
6241CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6242
6243ac_ext=c
6244# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6245ac_cpp='$CPP $CPPFLAGS'
6246ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6247ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6248cross_compiling=$ac_cv_prog_cc_cross
6249
6250
6251# Extract the first word of "ranlib", so it can be a program name with args.
6252set dummy ranlib; ac_word=$2
6253echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ba337fe7 6254echo "configure:6253: checking for $ac_word" >&5
10f2d63a
VZ
6255if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6256 echo $ac_n "(cached) $ac_c" 1>&6
6257else
6258 if test -n "$RANLIB"; then
6259 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6260else
6261 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6262 ac_dummy="$PATH"
6263 for ac_dir in $ac_dummy; do
6264 test -z "$ac_dir" && ac_dir=.
6265 if test -f $ac_dir/$ac_word; then
6266 ac_cv_prog_RANLIB="ranlib"
6267 break
6268 fi
6269 done
6270 IFS="$ac_save_ifs"
6271 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6272fi
6273fi
6274RANLIB="$ac_cv_prog_RANLIB"
6275if test -n "$RANLIB"; then
6276 echo "$ac_t""$RANLIB" 1>&6
6277else
6278 echo "$ac_t""no" 1>&6
6279fi
6280
6281
6282# Extract the first word of "ar", so it can be a program name with args.
6283set dummy ar; ac_word=$2
6284echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ba337fe7 6285echo "configure:6284: checking for $ac_word" >&5
10f2d63a
VZ
6286if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6287 echo $ac_n "(cached) $ac_c" 1>&6
6288else
6289 if test -n "$AR"; then
6290 ac_cv_prog_AR="$AR" # Let the user override the test.
6291else
6292 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6293 ac_dummy="$PATH"
6294 for ac_dir in $ac_dummy; do
6295 test -z "$ac_dir" && ac_dir=.
6296 if test -f $ac_dir/$ac_word; then
6297 ac_cv_prog_AR="ar"
6298 break
6299 fi
6300 done
6301 IFS="$ac_save_ifs"
6302 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6303fi
6304fi
6305AR="$ac_cv_prog_AR"
6306if test -n "$AR"; then
6307 echo "$ac_t""$AR" 1>&6
6308else
6309 echo "$ac_t""no" 1>&6
6310fi
6311
6312
6313# Find a good install program. We prefer a C program (faster),
6314# so one script is as good as another. But avoid the broken or
6315# incompatible versions:
6316# SysV /etc/install, /usr/sbin/install
6317# SunOS /usr/etc/install
6318# IRIX /sbin/install
6319# AIX /bin/install
6320# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6321# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6322# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6323# ./install, which can be erroneously created by make from ./install.sh.
6324echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
ba337fe7 6325echo "configure:6324: checking for a BSD compatible install" >&5
10f2d63a
VZ
6326if test -z "$INSTALL"; then
6327if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6328 echo $ac_n "(cached) $ac_c" 1>&6
6329else
6330 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6331 for ac_dir in $PATH; do
6332 # Account for people who put trailing slashes in PATH elements.
6333 case "$ac_dir/" in
6334 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6335 *)
6336 # OSF1 and SCO ODT 3.0 have their own names for install.
6337 # Don't use installbsd from OSF since it installs stuff as root
6338 # by default.
6339 for ac_prog in ginstall scoinst install; do
6340 if test -f $ac_dir/$ac_prog; then
6341 if test $ac_prog = install &&
6342 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6343 # AIX install. It has an incompatible calling convention.
6344 :
6345 else
6346 ac_cv_path_install="$ac_dir/$ac_prog -c"
6347 break 2
6348 fi
6349 fi
6350 done
6351 ;;
6352 esac
6353 done
6354 IFS="$ac_save_IFS"
6355
6356fi
6357 if test "${ac_cv_path_install+set}" = set; then
6358 INSTALL="$ac_cv_path_install"
6359 else
6360 # As a last resort, use the slow shell script. We don't cache a
6361 # path for INSTALL within a source directory, because that will
6362 # break other packages using the cache if that directory is
6363 # removed, or if the path is relative.
6364 INSTALL="$ac_install_sh"
6365 fi
6366fi
6367echo "$ac_t""$INSTALL" 1>&6
6368
6369# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6370# It thinks the first close brace ends the variable substitution.
6371test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6372
6373test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6374
6375test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6376
6377
6378# Extract the first word of "strip", so it can be a program name with args.
6379set dummy strip; ac_word=$2
6380echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ba337fe7 6381echo "configure:6380: checking for $ac_word" >&5
10f2d63a
VZ
6382if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6383 echo $ac_n "(cached) $ac_c" 1>&6
6384else
6385 if test -n "$STRIP"; then
6386 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6387else
6388 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6389 ac_dummy="$PATH"
6390 for ac_dir in $ac_dummy; do
6391 test -z "$ac_dir" && ac_dir=.
6392 if test -f $ac_dir/$ac_word; then
6393 ac_cv_prog_STRIP="strip"
6394 break
6395 fi
6396 done
6397 IFS="$ac_save_ifs"
6398 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6399fi
6400fi
6401STRIP="$ac_cv_prog_STRIP"
6402if test -n "$STRIP"; then
6403 echo "$ac_t""$STRIP" 1>&6
6404else
6405 echo "$ac_t""no" 1>&6
6406fi
6407
6408
6409echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
ba337fe7 6410echo "configure:6409: checking "make for VPATH support"" >&5
10f2d63a
VZ
6411cat - << EOF > confMake
6412check : file
6413 cp \$? \$@
6414 cp \$? final_file
6415EOF
6416
6417if test ! -d sub ; then
6418 mkdir sub
6419fi
6420echo dummy > sub/file
6421${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6422RESULT=$?
6423rm -f sub/file check final_file confMake
6424rmdir sub
6425if test "$RESULT" = 0; then
6426 echo "$ac_t""yes" 1>&6
6427else
6428 echo "$ac_t""no" 1>&6
6429 { echo "configure: error: You need a make-utility that is able to use the variable
6430VPATH correctly.
6431If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6432fi
6433
6434for ac_prog in 'bison -y' byacc
6435do
6436# Extract the first word of "$ac_prog", so it can be a program name with args.
6437set dummy $ac_prog; ac_word=$2
6438echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ba337fe7 6439echo "configure:6438: checking for $ac_word" >&5
10f2d63a
VZ
6440if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6441 echo $ac_n "(cached) $ac_c" 1>&6
6442else
6443 if test -n "$YACC"; then
6444 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6445else
6446 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6447 ac_dummy="$PATH"
6448 for ac_dir in $ac_dummy; do
6449 test -z "$ac_dir" && ac_dir=.
6450 if test -f $ac_dir/$ac_word; then
6451 ac_cv_prog_YACC="$ac_prog"
6452 break
6453 fi
6454 done
6455 IFS="$ac_save_ifs"
6456fi
6457fi
6458YACC="$ac_cv_prog_YACC"
6459if test -n "$YACC"; then
6460 echo "$ac_t""$YACC" 1>&6
6461else
6462 echo "$ac_t""no" 1>&6
6463fi
6464
6465test -n "$YACC" && break
6466done
6467test -n "$YACC" || YACC="yacc"
6468
6469
6470# Extract the first word of "flex", so it can be a program name with args.
6471set dummy flex; ac_word=$2
6472echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ba337fe7 6473echo "configure:6472: checking for $ac_word" >&5
10f2d63a
VZ
6474if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6475 echo $ac_n "(cached) $ac_c" 1>&6
6476else
6477 if test -n "$LEX"; then
6478 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6479else
6480 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6481 ac_dummy="$PATH"
6482 for ac_dir in $ac_dummy; do
6483 test -z "$ac_dir" && ac_dir=.
6484 if test -f $ac_dir/$ac_word; then
6485 ac_cv_prog_LEX="flex"
6486 break
6487 fi
6488 done
6489 IFS="$ac_save_ifs"
6490 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6491fi
6492fi
6493LEX="$ac_cv_prog_LEX"
6494if test -n "$LEX"; then
6495 echo "$ac_t""$LEX" 1>&6
6496else
6497 echo "$ac_t""no" 1>&6
6498fi
6499
6500if test -z "$LEXLIB"
6501then
6502 case "$LEX" in
6503 flex*) ac_lib=fl ;;
6504 *) ac_lib=l ;;
6505 esac
6506 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
ba337fe7 6507echo "configure:6506: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
6508ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6509if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6510 echo $ac_n "(cached) $ac_c" 1>&6
6511else
6512 ac_save_LIBS="$LIBS"
6513LIBS="-l$ac_lib $LIBS"
6514cat > conftest.$ac_ext <<EOF
ba337fe7 6515#line 6514 "configure"
10f2d63a
VZ
6516#include "confdefs.h"
6517/* Override any gcc2 internal prototype to avoid an error. */
6518/* We use char because int might match the return type of a gcc2
6519 builtin and then its argument prototype would still apply. */
6520char yywrap();
6521
6522int main() {
6523yywrap()
6524; return 0; }
6525EOF
ba337fe7 6526if { (eval echo configure:6525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6527 rm -rf conftest*
6528 eval "ac_cv_lib_$ac_lib_var=yes"
6529else
6530 echo "configure: failed program was:" >&5
6531 cat conftest.$ac_ext >&5
6532 rm -rf conftest*
6533 eval "ac_cv_lib_$ac_lib_var=no"
6534fi
6535rm -f conftest*
6536LIBS="$ac_save_LIBS"
6537
6538fi
6539if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6540 echo "$ac_t""yes" 1>&6
6541 LEXLIB="-l$ac_lib"
6542else
6543 echo "$ac_t""no" 1>&6
6544fi
6545
6546fi
6547
6548
6549echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
ba337fe7 6550echo "configure:6549: checking whether ln -s works" >&5
10f2d63a
VZ
6551if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6552 echo $ac_n "(cached) $ac_c" 1>&6
6553else
6554 rm -f conftestdata
6555if ln -s X conftestdata 2>/dev/null
6556then
6557 rm -f conftestdata
6558 ac_cv_prog_LN_S="ln -s"
6559else
6560 ac_cv_prog_LN_S=ln
6561fi
6562fi
6563LN_S="$ac_cv_prog_LN_S"
6564if test "$ac_cv_prog_LN_S" = "ln -s"; then
6565 echo "$ac_t""yes" 1>&6
6566else
6567 echo "$ac_t""no" 1>&6
6568fi
6569
6570
6571
6572SEARCH_INCLUDE="\
6573 /usr/local/include \
6574 \
6575 /usr/Motif-1.2/include \
6576 /usr/Motif-2.1/include \
6577 \
6578 /usr/include/Motif1.2 \
6579 /opt/xpm/include/X11 \
6580 /opt/GBxpm/include/ \
6581 /opt/GBxpm/X11/include/ \
6582 \
6583 /usr/Motif1.2/include \
6584 /usr/dt/include \
afc31813
VZ
6585 /usr/openwin/include \
6586 \
10f2d63a
VZ
6587 /usr/include/Xm \
6588 \
6589 /usr/X11R6/include \
afc31813 6590 /usr/X11R6.4/include \
10f2d63a
VZ
6591 /usr/X11R5/include \
6592 /usr/X11R4/include \
6593 \
10f2d63a
VZ
6594 /usr/include/X11R6 \
6595 /usr/include/X11R5 \
6596 /usr/include/X11R4 \
6597 \
6598 /usr/local/X11R6/include \
6599 /usr/local/X11R5/include \
6600 /usr/local/X11R4/include \
6601 \
6602 /usr/local/include/X11R6 \
6603 /usr/local/include/X11R5 \
6604 /usr/local/include/X11R4 \
6605 \
6606 /usr/X11/include \
6607 /usr/include/X11 \
6608 /usr/local/X11/include \
6609 /usr/local/include/X11 \
6610 \
6611 /usr/X386/include \
6612 /usr/x386/include \
6613 /usr/XFree86/include/X11 \
6614 \
6615 /usr/include/gtk \
6616 /usr/local/include/gtk \
6617 /usr/include/glib \
6618 /usr/local/include/glib \
6619 \
6620 /usr/include/qt \
6621 /usr/local/include/qt \
6622 \
6623 /usr/include/windows \
6624 /usr/include/wine \
6625 /usr/local/include/wine \
6626 \
6627 /usr/unsupported/include \
6628 /usr/athena/include \
6629 /usr/local/x11r5/include \
6630 /usr/lpp/Xamples/include \
6631 \
10f2d63a 6632 /usr/openwin/share/include \
928b5c08
VZ
6633 \
6634 /usr/include"
10f2d63a
VZ
6635
6636SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6637
6638
6639cat > confcache <<\EOF
6640# This file is a shell script that caches the results of configure
6641# tests run on this system so they can be shared between configure
6642# scripts and configure runs. It is not useful on other systems.
6643# If it contains results you don't want to keep, you may remove or edit it.
6644#
6645# By default, configure uses ./config.cache as the cache file,
6646# creating it if it does not exist already. You can give configure
6647# the --cache-file=FILE option to use a different cache file; that is
6648# what configure does when it calls configure scripts in
6649# subdirectories, so they share the cache.
6650# Giving --cache-file=/dev/null disables caching, for debugging configure.
6651# config.status only pays attention to the cache file if you give it the
6652# --recheck option to rerun configure.
6653#
6654EOF
6655# The following way of writing the cache mishandles newlines in values,
6656# but we know of no workaround that is simple, portable, and efficient.
6657# So, don't put newlines in cache variables' values.
6658# Ultrix sh set writes to stderr and can't be redirected directly,
6659# and sets the high bit in the cache file unless we assign to the vars.
6660(set) 2>&1 |
6661 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6662 *ac_space=\ *)
6663 # `set' does not quote correctly, so add quotes (double-quote substitution
6664 # turns \\\\ into \\, and sed turns \\ into \).
6665 sed -n \
6666 -e "s/'/'\\\\''/g" \
6667 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6668 ;;
6669 *)
6670 # `set' quotes correctly as required by POSIX, so do not add quotes.
6671 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6672 ;;
6673 esac >> confcache
6674if cmp -s $cache_file confcache; then
6675 :
6676else
6677 if test -w $cache_file; then
6678 echo "updating cache $cache_file"
6679 cat confcache > $cache_file
6680 else
6681 echo "not updating unwritable cache $cache_file"
6682 fi
6683fi
6684rm -f confcache
6685
6686
6687
6688if test "$wxUSE_GUI" = "yes"; then
6689
6690TOOLKIT=
6691TOOLKIT_INCLUDE=
6692
6693GUIOBJS=
6694COMMONOBJS=
6695GENERICOBJS=
6696
6697GUI_TK_LIBRARY=
6698GUI_TK_LINK=
6699
6700WXGTK12=
6701
6702WXWINE=
6703
6704PROGRAM_EXT=
6705
6706if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
6707 if test "$cross_compiling" = "yes" ; then
6708 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
6709 else
6710 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
ba337fe7 6711echo "configure:6710: checking for Windows headers" >&5
10f2d63a
VZ
6712
6713ac_find_includes=
6714for ac_dir in $SEARCH_INCLUDE;
6715 do
6716 if test -f "$ac_dir/windows.h"; then
6717 ac_find_includes=$ac_dir
6718 break
6719 fi
6720 done
6721
6722 if test "$ac_find_includes" != "" ; then
6723 echo "$ac_t""found $ac_find_includes" 1>&6
6724 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6725 else
6726 echo "$ac_t""no" 1>&6
6727 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6728 fi
6729 fi
6730
6731 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
6732 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
6733
6734 if test "$wxUSE_MINGW" = 1; then
6735 LDFLAGS="$LDFLAGS -mwindows"
6736 fi
6737
6738 TOOLKIT=MSW
6739
6740 GUIOBJS="\$(MSW_GUIOBJS)"
6741 GUIHEADERS="\$(MSW_HEADERS)"
6742 COMMONOBJS="\$(MSW_COMMONOBJS)"
6743 GENERICOBJS="\$(MSW_GENERICOBJS)"
6744 UNIXOBJS=
6745 GUIDIST=MSW_DIST
6746 PROGRAM_EXT=.exe
6747fi
6748
6749if test "$wxUSE_GTK" = 1; then
6750
6751 if test x$gtk_config_exec_prefix != x ; then
6752 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6753 if test x${GTK_CONFIG+set} != xset ; then
6754 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6755 fi
6756 fi
6757 if test x$gtk_config_prefix != x ; then
6758 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6759 if test x${GTK_CONFIG+set} != xset ; then
6760 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6761 fi
6762 fi
6763
6764 # Extract the first word of "gtk-config", so it can be a program name with args.
6765set dummy gtk-config; ac_word=$2
6766echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ba337fe7 6767echo "configure:6766: checking for $ac_word" >&5
10f2d63a
VZ
6768if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6769 echo $ac_n "(cached) $ac_c" 1>&6
6770else
6771 case "$GTK_CONFIG" in
6772 /*)
6773 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6774 ;;
6775 ?:/*)
6776 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
6777 ;;
6778 *)
6779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6780 ac_dummy="$PATH"
6781 for ac_dir in $ac_dummy; do
6782 test -z "$ac_dir" && ac_dir=.
6783 if test -f $ac_dir/$ac_word; then
6784 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6785 break
6786 fi
6787 done
6788 IFS="$ac_save_ifs"
6789 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6790 ;;
6791esac
6792fi
6793GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6794if test -n "$GTK_CONFIG"; then
6795 echo "$ac_t""$GTK_CONFIG" 1>&6
6796else
6797 echo "$ac_t""no" 1>&6
6798fi
6799
6800 min_gtk_version=1.2.1
6801 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
ba337fe7 6802echo "configure:6801: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
6803 no_gtk=""
6804 if test "$GTK_CONFIG" != "no" ; then
6805 GTK_CFLAGS=`$GTK_CONFIG --cflags`
6806 GTK_LIBS=`$GTK_CONFIG --libs`
6807 ac_save_CFLAGS="$CFLAGS"
6808 ac_save_LIBS="$LIBS"
6809 CFLAGS="$CFLAGS $GTK_CFLAGS"
6810 LIBS="$LIBS $GTK_LIBS"
6811 if test "$cross_compiling" = yes; then
6812 echo $ac_n "cross compiling; assumed OK... $ac_c"
6813else
6814 cat > conftest.$ac_ext <<EOF
ba337fe7 6815#line 6814 "configure"
10f2d63a
VZ
6816#include "confdefs.h"
6817
6818#include <gtk/gtk.h>
6819#include <stdio.h>
6820
6821int
6822main ()
6823{
6824 int major, minor, micro;
6825
6826 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
6827 printf("%s, bad version string\n", "$min_gtk_version");
6828 exit(1);
6829 }
6830
6831 if (gtk_minor_version == 1) return FALSE;
6832
6833 return !((gtk_major_version > major) ||
6834 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6835 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
6836}
6837
6838EOF
ba337fe7 6839if { (eval echo configure:6838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
6840then
6841 :
6842else
6843 echo "configure: failed program was:" >&5
6844 cat conftest.$ac_ext >&5
6845 rm -fr conftest*
6846 no_gtk=yes
6847fi
6848rm -fr conftest*
6849fi
6850
6851 CFLAGS="$ac_save_CFLAGS"
6852 LIBS="$ac_save_LIBS"
6853 else
6854 no_gtk=yes
6855 fi
6856 if test "x$no_gtk" = x ; then
6857 echo "$ac_t""yes" 1>&6
6858 WXGTK12=1
6859 else
6860 echo "$ac_t""no" 1>&6
6861 GTK_CFLAGS=""
6862 GTK_LIBS=""
6863 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.1 or above?" 1>&2; exit 1; }
6864 fi
6865
6866
6867
6868
6869 TOOLKIT_INCLUDE="$GTK_CFLAGS"
6870 GUI_TK_LIBRARY="$GTK_LIBS"
6871 TOOLKIT=GTK
6872
6873 GUIOBJS="\$(GTK_GUIOBJS)"
6874 GUIHEADERS="\$(GTK_HEADERS)"
6875 COMMONOBJS="\$(GTK_COMMONOBJS)"
6876 GENERICOBJS="\$(GTK_GENERICOBJS)"
6877 GUIDEPS="\$(GTK_GUIDEPS)"
6878 COMMONDEPS="\$(GTK_COMMONDEPS)"
6879 GENERICDEPS="\$(GTK_GENERICDEPS)"
6880 UNIXOBJS="\$(UNIX_OBJS)"
6881 GUIDIST=GTK_DIST
6882fi
6883
6884if test "$wxUSE_WINE" = 1; then
6885 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
ba337fe7 6886echo "configure:6885: checking for WINE includes" >&5
10f2d63a
VZ
6887
6888ac_find_includes=
6889for ac_dir in $SEARCH_INCLUDE;
6890 do
6891 if test -f "$ac_dir/windows.h"; then
6892 ac_find_includes=$ac_dir
6893 break
6894 fi
6895 done
6896
6897 if test "$ac_find_includes" != "" ; then
6898 echo "$ac_t""found $ac_find_includes" 1>&6
6899 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6900 else
6901 echo "$ac_t""no" 1>&6
6902 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6903 fi
6904
6905 XPM_LINK=""
6906 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
ba337fe7 6907echo "configure:6906: checking for Xpm library" >&5
10f2d63a
VZ
6908
6909ac_find_libraries=
6910for ac_dir in $SEARCH_LIB;
6911 do
6912 for ac_extension in a so sl; do
6913 if test -f "$ac_dir/libXpm.$ac_extension"; then
6914 ac_find_libraries=$ac_dir
6915 break 2
6916 fi
6917 done
6918 done
6919
6920 if test "$ac_find_libraries" != "" ; then
6921 GUI_TK_LIBRARY="-L$ac_find_libraries"
6922 XPM_LINK="-lXpm"
6923 cat >> confdefs.h <<\EOF
6924#define wxHAVE_LIB_XPM 1
6925EOF
6926
6927 echo "$ac_t""found at $ac_find_libraries" 1>&6
6928 else
6929 echo "$ac_t""no" 1>&6
6930 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
6931 fi
6932
6933 MESA_LINK=""
6934 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
ba337fe7 6935echo "configure:6934: checking for Mesa library" >&5
10f2d63a
VZ
6936
6937ac_find_libraries=
6938for ac_dir in $SEARCH_LIB;
6939 do
6940 for ac_extension in a so sl; do
6941 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
6942 ac_find_libraries=$ac_dir
6943 break 2
6944 fi
6945 done
6946 done
6947
6948 if test "$ac_find_libraries" != "" ; then
6949 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
6950 MESA_LINK="-lMesaGL"
6951 echo "$ac_t""found at $ac_find_libraries" 1>&6
6952 else
6953 { echo "configure: error: no" 1>&2; exit 1; }
6954 fi
6955
6956 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
6957 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
6958 WXWINE=1
6959 TOOLKIT=MSW
6960
6961 GUIHEADERS="\$(MSW_HEADERS)"
6962 GUIOBJS="\$(MSW_GUIOBJS)"
6963 COMMONOBJS="\$(MSW_COMMONOBJS)"
6964 GENERICOBJS="\$(MSW_GENERICOBJS)"
6965 GUIDEPS="\$(MSW_GUIDEPS)"
6966 COMMONDEPS="\$(MSW_COMMONDEPS)"
6967 GENERICDEPS="\$(MSW_GENERICDEPS)"
6968 UNIXOBJS="\$(UNIX_OBJS)"
6969 GUIDIST=MSW_DIST
6970fi
6971
6972if test "$wxUSE_MOTIF" = 1; then
ba337fe7
KB
6973 echo $ac_n "checking for X11 headers""... $ac_c" 1>&6
6974echo "configure:6973: checking for X11 headers" >&5
6975
6976ac_find_includes=
6977for ac_dir in $SEARCH_INCLUDE;
6978 do
6979 if test -f "$ac_dir/X11/Intrinsic.h"; then
6980 ac_find_includes=$ac_dir
6981 break
6982 fi
6983 done
10f2d63a 6984
ba337fe7
KB
6985 if test "$ac_find_includes" != "" ; then
6986 echo "$ac_t""found $ac_find_includes" 1>&6
6987 else
6988 echo "$ac_t""no" 1>&6
6989 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
6990 fi
6991
6992 echo $ac_n "checking for X11 libraries""... $ac_c" 1>&6
6993echo "configure:6992: checking for X11 libraries" >&5
6994
6995ac_find_libraries=
6996for ac_dir in $SEARCH_LIB;
6997 do
10f2d63a 6998 for ac_extension in a so sl; do
ba337fe7
KB
6999 if test -f "$ac_dir/libX11.$ac_extension"; then
7000 ac_find_libraries=$ac_dir
7001 break 2
10f2d63a
VZ
7002 fi
7003 done
ba337fe7
KB
7004 done
7005
7006 if test "$ac_find_libraries" != "" ; then
7007
7008 ac_path_to_include=$ac_find_includes
7009 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
7010 result=$?
7011 if test $result = 0; then
7012 ac_path_to_include=""
7013 else
7014 ac_path_to_include="-I$ac_find_includes"
10f2d63a
VZ
7015 fi
7016
ba337fe7
KB
7017
7018 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7019 result=$?
7020 if test $result = 0; then
7021 ac_path_to_link=""
7022 else
7023 ac_path_to_link="-L$ac_find_libraries"
7024 fi
10f2d63a 7025
ba337fe7
KB
7026
7027 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
7028 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
7029 echo "$ac_t""found at $ac_find_libraries" 1>&6
7030 else
7031 echo "$ac_t""no" 1>&6
7032 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
7033 fi
7034
7035 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
7036echo "configure:7035: checking for Motif/Lesstif headers" >&5
7037
7038ac_find_includes=
7039for ac_dir in $SEARCH_INCLUDE;
10f2d63a 7040 do
ba337fe7
KB
7041 if test -f "$ac_dir/Xm/Xm.h"; then
7042 ac_find_includes=$ac_dir
10f2d63a
VZ
7043 break
7044 fi
7045 done
7046
ba337fe7
KB
7047 if test "$ac_find_includes" != "" ; then
7048 echo "$ac_t""found $ac_find_includes" 1>&6
7049 else
7050 echo "$ac_t""no" 1>&6
7051 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
7052 fi
7053
7054 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
7055echo "configure:7054: checking for Motif/Lesstif library" >&5
7056
7057ac_find_libraries=
7058for ac_dir in $SEARCH_LIB;
7059 do
7060 for ac_extension in a so sl; do
7061 if test -f "$ac_dir/libXm.$ac_extension"; then
7062 ac_find_libraries=$ac_dir
7063 break 2
7064 fi
7065 done
7066 done
7067
7068 if test "$ac_find_libraries" != "" ; then
7069
7070 ac_path_to_include=$ac_find_includes
7071 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
7072 result=$?
7073 if test $result = 0; then
7074 ac_path_to_include=""
7075 else
7076 ac_path_to_include="-I$ac_find_includes"
7077 fi
10f2d63a 7078
ba337fe7
KB
7079
7080 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7081 result=$?
7082 if test $result = 0; then
7083 ac_path_to_link=""
7084 else
7085 ac_path_to_link="-L$ac_find_libraries"
7086 fi
10f2d63a
VZ
7087
7088
ba337fe7
KB
7089 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
7090 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
7091 echo "$ac_t""found at $ac_find_libraries" 1>&6
7092 else
7093 echo "$ac_t""no" 1>&6
7094 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10f2d63a 7095 fi
ba337fe7
KB
7096
7097 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
7098echo "configure:7097: checking for Xt library" >&5
7099
7100ac_find_libraries=
7101for ac_dir in $SEARCH_LIB;
7102 do
7103 for ac_extension in a so sl; do
7104 if test -f "$ac_dir/libXt.$ac_extension"; then
7105 ac_find_libraries=$ac_dir
7106 break 2
7107 fi
7108 done
10f2d63a
VZ
7109 done
7110
ba337fe7
KB
7111 if test "$ac_find_libraries" != "" ; then
7112
7113 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7114 result=$?
7115 if test $result = 0; then
7116 ac_path_to_link=""
7117 else
7118 ac_path_to_link="-L$ac_find_libraries"
10f2d63a
VZ
7119 fi
7120
ba337fe7
KB
7121 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
7122 echo "$ac_t""found at $ac_find_libraries" 1>&6
7123 else
7124 echo "$ac_t""no" 1>&6
7125 { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; }
7126 fi
10f2d63a 7127
ba337fe7
KB
7128 XPM_LINK=""
7129 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
7130echo "configure:7129: checking for Xpm library" >&5
7131
7132ac_find_libraries=
7133for ac_dir in $SEARCH_LIB;
7134 do
7135 for ac_extension in a so sl; do
7136 if test -f "$ac_dir/libXpm.$ac_extension"; then
7137 ac_find_libraries=$ac_dir
7138 break 2
7139 fi
7140 done
7141 done
10f2d63a 7142
ba337fe7
KB
7143 if test "$ac_find_libraries" != "" ; then
7144
7145 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7146 result=$?
7147 if test $result = 0; then
7148 ac_path_to_link=""
7149 else
7150 ac_path_to_link="-L$ac_find_libraries"
10f2d63a
VZ
7151 fi
7152
ba337fe7
KB
7153 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
7154 XPM_LINK="-lXpm "
7155 cat >> confdefs.h <<\EOF
7156#define wxHAVE_LIB_XPM 1
788deba1 7157EOF
10f2d63a 7158
ba337fe7
KB
7159 echo "$ac_t""found at $ac_find_libraries" 1>&6
7160 else
7161 echo "$ac_t""no" 1>&6
7162 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7163 fi
788deba1
VZ
7164
7165 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm"
7166 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7167 TOOLKIT=MOTIF
7168
7169 GUIHEADERS="\$(MOTIF_HEADERS)"
7170 GUIOBJS="\$(MOTIF_GUIOBJS)"
7171 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
7172 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
7173 GUIDEPS="\$(MOTIF_GUIDEPS)"
7174 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
10f2d63a
VZ
7175 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
7176 UNIXOBJS="\$(UNIX_OBJS)"
7177 GUIDIST=MOTIF_DIST
7178fi
7179
7180TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"`
7181
7182TOOLKIT_DEF="-D__WX${TOOLKIT}__"
7183
7184WX_LIBRARY="wx_${TOOLKIT_DIR}"
7185
7186 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(JPEGOBJS) \$(PNGOBJS) \$(ZLIBOBJS) \$(IODBCOBJS)"
7187 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)"
7188 ALL_HEADERS="\$(GUIHEADERS) \$(HTML_HEADERS) \$(UNIX_HEADERS) \$(PROTOCOL_HEADERS) \$(GENERIC_HEADERS) \$(WX_HEADERS)"
7189else
7190
7191 ALL_OBJECTS="\$(BASE_OBJS)"
7192 ALL_DEPFILES="\${BASE_DEPS}"
7193 ALL_HEADERS="\${BASE_HEADERS}"
7194
7195 WX_LIBRARY="wxbase"
7196fi
7197
7198WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
7199
7200WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
7201
7202WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
7203
7204WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
7205WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
7206WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
7207
7208SHARED_LD=
7209PIC_FLAG=
7210WX_ALL=
7211WX_ALL_INSTALLED=
7212
7213if test "$wxUSE_SHARED" = "yes"; then
7214 case "${host}" in
7215 *-hp-hpux* )
7216 if test "$GCC" = yes ; then
7217 SHARED_LD="${CC} -shared -o"
7218 PIC_FLAG="-fPIC"
7219 else
7220 SHARED_LD="${CXX} -b -o"
7221 PIC_FLAG="+Z"
7222 fi
7223 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
7224 WX_ALL=${WX_LIBRARY_NAME_SHARED}
7225 ;;
7226 *-*-linux* )
7227 SHARED_LD="${CC} -shared -o"
7228 PIC_FLAG="-fPIC"
7229 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
7230 WX_ALL="CREATE_LINKS"
7231 ;;
7232 *-*-irix5* | *-*-irix6* )
7233 if test "$GCC" = yes ; then
7234 SHARED_LD="${CC} -shared -o"
7235 PIC_FLAG="-fPIC"
7236 else
7237 SHARED_LD="${CXX} -shared -o"
7238 fi
7239 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
7240 WX_ALL="CREATE_LINKS"
7241 ;;
7242 *-*-solaris2* )
7243 if test "$GCC" = yes ; then
7244 SHARED_LD="${CC} -shared -o"
7245 PIC_FLAG="-fPIC"
7246 else
7247 SHARED_LD="${CXX} -G -o"
7248 PIC_FLAG="-KPIC"
7249 fi
7250 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
7251 WX_ALL="CREATE_LINKS"
7252 ;;
7253 *-*-sunos4* )
7254 SHARED_LD="${CC} -shared -o"
7255 PIC_FLAG="-fPIC"
7256 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
7257 WX_ALL="CREATE_LINKS"
7258 ;;
7259 *-*-freebsd* | *-*-netbsd*)
7260 SHARED_LD="${CC} -shared -o"
7261 PIC_FLAG="-fPIC"
7262 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
7263 WX_ALL="CREATE_LINKS"
7264 ;;
7265 *-*-osf* )
7266 SHARED_LD="${CXX} -shared -o"
7267 PIC_FLAG="-fPIC"
7268 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
7269 WX_ALL="CREATE_LINKS"
7270 ;;
7271 *-*-dgux5* )
7272 SHARED_LD="${CXX} -shared -o"
7273 PIC_FLAG="-fPIC"
7274 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
7275 WX_ALL="CREATE_LINKS"
7276 ;;
7277 *-*-sysv5* )
7278 SHARED_LD="${CC} -shared -o"
7279 PIC_FLAG="-fPIC"
7280 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
7281 WX_ALL="CREATE_LINKS"
7282 ;;
7283 *-*-aix* )
7284 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
7285 WX_ALL=${WX_LIBRARY_NAME_SHARED}
7286 ;;
7287 *-*-cygwin32* )
7288 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
7289 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
7290 ;;
7291 *-*-mingw32* )
7292 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
7293 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
7294 ;;
7295 *-pc-os2_emx )
7296 ;;
7297 *)
7298 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
7299 esac
7300
7301 if test "x$WX_TARGET_LIBRARY" = "x"; then
7302 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
7303 fi
7304else
7305 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
7306 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
7307fi
7308
7309
7310for ac_hdr in strings.h
7311do
7312ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7313echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ba337fe7 7314echo "configure:7313: checking for $ac_hdr" >&5
10f2d63a
VZ
7315if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7316 echo $ac_n "(cached) $ac_c" 1>&6
7317else
7318 cat > conftest.$ac_ext <<EOF
ba337fe7 7319#line 7318 "configure"
10f2d63a
VZ
7320#include "confdefs.h"
7321#include <$ac_hdr>
7322EOF
7323ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ba337fe7 7324{ (eval echo configure:7323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
7325ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7326if test -z "$ac_err"; then
7327 rm -rf conftest*
7328 eval "ac_cv_header_$ac_safe=yes"
7329else
7330 echo "$ac_err" >&5
7331 echo "configure: failed program was:" >&5
7332 cat conftest.$ac_ext >&5
7333 rm -rf conftest*
7334 eval "ac_cv_header_$ac_safe=no"
7335fi
7336rm -f conftest*
7337fi
7338if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7339 echo "$ac_t""yes" 1>&6
7340 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7341 cat >> confdefs.h <<EOF
7342#define $ac_tr_hdr 1
7343EOF
7344
7345else
7346 echo "$ac_t""no" 1>&6
7347fi
7348done
7349
7350for ac_hdr in unistd.h
7351do
7352ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7353echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ba337fe7 7354echo "configure:7353: checking for $ac_hdr" >&5
10f2d63a
VZ
7355if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7356 echo $ac_n "(cached) $ac_c" 1>&6
7357else
7358 cat > conftest.$ac_ext <<EOF
ba337fe7 7359#line 7358 "configure"
10f2d63a
VZ
7360#include "confdefs.h"
7361#include <$ac_hdr>
7362EOF
7363ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ba337fe7 7364{ (eval echo configure:7363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
7365ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7366if test -z "$ac_err"; then
7367 rm -rf conftest*
7368 eval "ac_cv_header_$ac_safe=yes"
7369else
7370 echo "$ac_err" >&5
7371 echo "configure: failed program was:" >&5
7372 cat conftest.$ac_ext >&5
7373 rm -rf conftest*
7374 eval "ac_cv_header_$ac_safe=no"
7375fi
7376rm -f conftest*
7377fi
7378if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7379 echo "$ac_t""yes" 1>&6
7380 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7381 cat >> confdefs.h <<EOF
7382#define $ac_tr_hdr 1
7383EOF
7384
7385else
7386 echo "$ac_t""no" 1>&6
7387fi
7388done
7389
7390for ac_hdr in wchar.h
7391do
7392ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7393echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ba337fe7 7394echo "configure:7393: checking for $ac_hdr" >&5
10f2d63a
VZ
7395if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7396 echo $ac_n "(cached) $ac_c" 1>&6
7397else
7398 cat > conftest.$ac_ext <<EOF
ba337fe7 7399#line 7398 "configure"
10f2d63a
VZ
7400#include "confdefs.h"
7401#include <$ac_hdr>
7402EOF
7403ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ba337fe7 7404{ (eval echo configure:7403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
7405ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7406if test -z "$ac_err"; then
7407 rm -rf conftest*
7408 eval "ac_cv_header_$ac_safe=yes"
7409else
7410 echo "$ac_err" >&5
7411 echo "configure: failed program was:" >&5
7412 cat conftest.$ac_ext >&5
7413 rm -rf conftest*
7414 eval "ac_cv_header_$ac_safe=no"
7415fi
7416rm -f conftest*
7417fi
7418if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7419 echo "$ac_t""yes" 1>&6
7420 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7421 cat >> confdefs.h <<EOF
7422#define $ac_tr_hdr 1
7423EOF
7424
7425else
7426 echo "$ac_t""no" 1>&6
7427fi
7428done
7429
7430for ac_hdr in wcstr.h
7431do
7432ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7433echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ba337fe7 7434echo "configure:7433: checking for $ac_hdr" >&5
10f2d63a
VZ
7435if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7436 echo $ac_n "(cached) $ac_c" 1>&6
7437else
7438 cat > conftest.$ac_ext <<EOF
ba337fe7 7439#line 7438 "configure"
10f2d63a
VZ
7440#include "confdefs.h"
7441#include <$ac_hdr>
7442EOF
7443ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ba337fe7 7444{ (eval echo configure:7443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
7445ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7446if test -z "$ac_err"; then
7447 rm -rf conftest*
7448 eval "ac_cv_header_$ac_safe=yes"
7449else
7450 echo "$ac_err" >&5
7451 echo "configure: failed program was:" >&5
7452 cat conftest.$ac_ext >&5
7453 rm -rf conftest*
7454 eval "ac_cv_header_$ac_safe=no"
7455fi
7456rm -f conftest*
7457fi
7458if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7459 echo "$ac_t""yes" 1>&6
7460 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7461 cat >> confdefs.h <<EOF
7462#define $ac_tr_hdr 1
7463EOF
7464
7465else
7466 echo "$ac_t""no" 1>&6
7467fi
7468done
7469
7470for ac_hdr in fnmatch.h
7471do
7472ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7473echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ba337fe7 7474echo "configure:7473: checking for $ac_hdr" >&5
10f2d63a
VZ
7475if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7476 echo $ac_n "(cached) $ac_c" 1>&6
7477else
7478 cat > conftest.$ac_ext <<EOF
ba337fe7 7479#line 7478 "configure"
10f2d63a
VZ
7480#include "confdefs.h"
7481#include <$ac_hdr>
7482EOF
7483ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ba337fe7 7484{ (eval echo configure:7483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
7485ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7486if test -z "$ac_err"; then
7487 rm -rf conftest*
7488 eval "ac_cv_header_$ac_safe=yes"
7489else
7490 echo "$ac_err" >&5
7491 echo "configure: failed program was:" >&5
7492 cat conftest.$ac_ext >&5
7493 rm -rf conftest*
7494 eval "ac_cv_header_$ac_safe=no"
7495fi
7496rm -f conftest*
7497fi
7498if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7499 echo "$ac_t""yes" 1>&6
7500 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7501 cat >> confdefs.h <<EOF
7502#define $ac_tr_hdr 1
7503EOF
7504
7505else
7506 echo "$ac_t""no" 1>&6
7507fi
7508done
7509
7510
7511if test "$wxUSE_GUI" = "yes"; then
7512 for ac_hdr in X11/XKBlib.h
7513do
7514ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7515echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ba337fe7 7516echo "configure:7515: checking for $ac_hdr" >&5
10f2d63a
VZ
7517if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7518 echo $ac_n "(cached) $ac_c" 1>&6
7519else
7520 cat > conftest.$ac_ext <<EOF
ba337fe7 7521#line 7520 "configure"
10f2d63a
VZ
7522#include "confdefs.h"
7523#include <$ac_hdr>
7524EOF
7525ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ba337fe7 7526{ (eval echo configure:7525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
7527ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7528if test -z "$ac_err"; then
7529 rm -rf conftest*
7530 eval "ac_cv_header_$ac_safe=yes"
7531else
7532 echo "$ac_err" >&5
7533 echo "configure: failed program was:" >&5
7534 cat conftest.$ac_ext >&5
7535 rm -rf conftest*
7536 eval "ac_cv_header_$ac_safe=no"
7537fi
7538rm -f conftest*
7539fi
7540if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7541 echo "$ac_t""yes" 1>&6
7542 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7543 cat >> confdefs.h <<EOF
7544#define $ac_tr_hdr 1
7545EOF
7546
7547else
7548 echo "$ac_t""no" 1>&6
7549fi
7550done
7551
7552fi
7553
7554
7555echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
ba337fe7 7556echo "configure:7555: checking for ANSI C header files" >&5
10f2d63a
VZ
7557if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7558 echo $ac_n "(cached) $ac_c" 1>&6
7559else
7560 cat > conftest.$ac_ext <<EOF
ba337fe7 7561#line 7560 "configure"
10f2d63a
VZ
7562#include "confdefs.h"
7563#include <stdlib.h>
7564#include <stdarg.h>
7565#include <string.h>
7566#include <float.h>
7567EOF
7568ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ba337fe7 7569{ (eval echo configure:7568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
7570ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7571if test -z "$ac_err"; then
7572 rm -rf conftest*
7573 ac_cv_header_stdc=yes
7574else
7575 echo "$ac_err" >&5
7576 echo "configure: failed program was:" >&5
7577 cat conftest.$ac_ext >&5
7578 rm -rf conftest*
7579 ac_cv_header_stdc=no
7580fi
7581rm -f conftest*
7582
7583if test $ac_cv_header_stdc = yes; then
7584 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7585cat > conftest.$ac_ext <<EOF
ba337fe7 7586#line 7585 "configure"
10f2d63a
VZ
7587#include "confdefs.h"
7588#include <string.h>
7589EOF
7590if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7591 egrep "memchr" >/dev/null 2>&1; then
7592 :
7593else
7594 rm -rf conftest*
7595 ac_cv_header_stdc=no
7596fi
7597rm -f conftest*
7598
7599fi
7600
7601if test $ac_cv_header_stdc = yes; then
7602 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7603cat > conftest.$ac_ext <<EOF
ba337fe7 7604#line 7603 "configure"
10f2d63a
VZ
7605#include "confdefs.h"
7606#include <stdlib.h>
7607EOF
7608if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7609 egrep "free" >/dev/null 2>&1; then
7610 :
7611else
7612 rm -rf conftest*
7613 ac_cv_header_stdc=no
7614fi
7615rm -f conftest*
7616
7617fi
7618
7619if test $ac_cv_header_stdc = yes; then
7620 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7621if test "$cross_compiling" = yes; then
7622 :
7623else
7624 cat > conftest.$ac_ext <<EOF
ba337fe7 7625#line 7624 "configure"
10f2d63a
VZ
7626#include "confdefs.h"
7627#include <ctype.h>
7628#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7629#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7630#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7631int main () { int i; for (i = 0; i < 256; i++)
7632if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
7633exit (0); }
7634
7635EOF
ba337fe7 7636if { (eval echo configure:7635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
7637then
7638 :
7639else
7640 echo "configure: failed program was:" >&5
7641 cat conftest.$ac_ext >&5
7642 rm -fr conftest*
7643 ac_cv_header_stdc=no
7644fi
7645rm -fr conftest*
7646fi
7647
7648fi
7649fi
7650
7651echo "$ac_t""$ac_cv_header_stdc" 1>&6
7652if test $ac_cv_header_stdc = yes; then
7653 cat >> confdefs.h <<\EOF
7654#define STDC_HEADERS 1
7655EOF
7656
7657fi
7658
7659echo $ac_n "checking for mode_t""... $ac_c" 1>&6
ba337fe7 7660echo "configure:7659: checking for mode_t" >&5
10f2d63a
VZ
7661if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
7662 echo $ac_n "(cached) $ac_c" 1>&6
7663else
7664 cat > conftest.$ac_ext <<EOF
ba337fe7 7665#line 7664 "configure"
10f2d63a
VZ
7666#include "confdefs.h"
7667#include <sys/types.h>
7668#if STDC_HEADERS
7669#include <stdlib.h>
7670#include <stddef.h>
7671#endif
7672EOF
7673if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7674 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7675 rm -rf conftest*
7676 ac_cv_type_mode_t=yes
7677else
7678 rm -rf conftest*
7679 ac_cv_type_mode_t=no
7680fi
7681rm -f conftest*
7682
7683fi
7684echo "$ac_t""$ac_cv_type_mode_t" 1>&6
7685if test $ac_cv_type_mode_t = no; then
7686 cat >> confdefs.h <<\EOF
7687#define mode_t int
7688EOF
7689
7690fi
7691
7692echo $ac_n "checking for off_t""... $ac_c" 1>&6
ba337fe7 7693echo "configure:7692: checking for off_t" >&5
10f2d63a
VZ
7694if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
7695 echo $ac_n "(cached) $ac_c" 1>&6
7696else
7697 cat > conftest.$ac_ext <<EOF
ba337fe7 7698#line 7697 "configure"
10f2d63a
VZ
7699#include "confdefs.h"
7700#include <sys/types.h>
7701#if STDC_HEADERS
7702#include <stdlib.h>
7703#include <stddef.h>
7704#endif
7705EOF
7706if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7707 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7708 rm -rf conftest*
7709 ac_cv_type_off_t=yes
7710else
7711 rm -rf conftest*
7712 ac_cv_type_off_t=no
7713fi
7714rm -f conftest*
7715
7716fi
7717echo "$ac_t""$ac_cv_type_off_t" 1>&6
7718if test $ac_cv_type_off_t = no; then
7719 cat >> confdefs.h <<\EOF
7720#define off_t long
7721EOF
7722
7723fi
7724
7725echo $ac_n "checking for pid_t""... $ac_c" 1>&6
ba337fe7 7726echo "configure:7725: checking for pid_t" >&5
10f2d63a
VZ
7727if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
7728 echo $ac_n "(cached) $ac_c" 1>&6
7729else
7730 cat > conftest.$ac_ext <<EOF
ba337fe7 7731#line 7730 "configure"
10f2d63a
VZ
7732#include "confdefs.h"
7733#include <sys/types.h>
7734#if STDC_HEADERS
7735#include <stdlib.h>
7736#include <stddef.h>
7737#endif
7738EOF
7739if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7740 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7741 rm -rf conftest*
7742 ac_cv_type_pid_t=yes
7743else
7744 rm -rf conftest*
7745 ac_cv_type_pid_t=no
7746fi
7747rm -f conftest*
7748
7749fi
7750echo "$ac_t""$ac_cv_type_pid_t" 1>&6
7751if test $ac_cv_type_pid_t = no; then
7752 cat >> confdefs.h <<\EOF
7753#define pid_t int
7754EOF
7755
7756fi
7757
7758echo $ac_n "checking for size_t""... $ac_c" 1>&6
ba337fe7 7759echo "configure:7758: checking for size_t" >&5
10f2d63a
VZ
7760if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
7761 echo $ac_n "(cached) $ac_c" 1>&6
7762else
7763 cat > conftest.$ac_ext <<EOF
ba337fe7 7764#line 7763 "configure"
10f2d63a
VZ
7765#include "confdefs.h"
7766#include <sys/types.h>
7767#if STDC_HEADERS
7768#include <stdlib.h>
7769#include <stddef.h>
7770#endif
7771EOF
7772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7773 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7774 rm -rf conftest*
7775 ac_cv_type_size_t=yes
7776else
7777 rm -rf conftest*
7778 ac_cv_type_size_t=no
7779fi
7780rm -f conftest*
7781
7782fi
7783echo "$ac_t""$ac_cv_type_size_t" 1>&6
7784if test $ac_cv_type_size_t = no; then
7785 cat >> confdefs.h <<\EOF
7786#define size_t unsigned
7787EOF
7788
7789fi
7790
7791echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
ba337fe7 7792echo "configure:7791: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
7793if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
7794 echo $ac_n "(cached) $ac_c" 1>&6
7795else
7796 cat > conftest.$ac_ext <<EOF
ba337fe7 7797#line 7796 "configure"
10f2d63a
VZ
7798#include "confdefs.h"
7799#include <sys/types.h>
7800EOF
7801if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7802 egrep "uid_t" >/dev/null 2>&1; then
7803 rm -rf conftest*
7804 ac_cv_type_uid_t=yes
7805else
7806 rm -rf conftest*
7807 ac_cv_type_uid_t=no
7808fi
7809rm -f conftest*
7810
7811fi
7812
7813echo "$ac_t""$ac_cv_type_uid_t" 1>&6
7814if test $ac_cv_type_uid_t = no; then
7815 cat >> confdefs.h <<\EOF
7816#define uid_t int
7817EOF
7818
7819 cat >> confdefs.h <<\EOF
7820#define gid_t int
7821EOF
7822
7823fi
7824
7825
7826
7827
7828echo $ac_n "checking for working const""... $ac_c" 1>&6
ba337fe7 7829echo "configure:7828: checking for working const" >&5
10f2d63a
VZ
7830if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7831 echo $ac_n "(cached) $ac_c" 1>&6
7832else
7833 cat > conftest.$ac_ext <<EOF
ba337fe7 7834#line 7833 "configure"
10f2d63a
VZ
7835#include "confdefs.h"
7836
7837int main() {
7838
7839/* Ultrix mips cc rejects this. */
7840typedef int charset[2]; const charset x;
7841/* SunOS 4.1.1 cc rejects this. */
7842char const *const *ccp;
7843char **p;
7844/* NEC SVR4.0.2 mips cc rejects this. */
7845struct point {int x, y;};
7846static struct point const zero = {0,0};
7847/* AIX XL C 1.02.0.0 rejects this.
7848 It does not let you subtract one const X* pointer from another in an arm
7849 of an if-expression whose if-part is not a constant expression */
7850const char *g = "string";
7851ccp = &g + (g ? g-g : 0);
7852/* HPUX 7.0 cc rejects these. */
7853++ccp;
7854p = (char**) ccp;
7855ccp = (char const *const *) p;
7856{ /* SCO 3.2v4 cc rejects this. */
7857 char *t;
7858 char const *s = 0 ? (char *) 0 : (char const *) 0;
7859
7860 *t++ = 0;
7861}
7862{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7863 int x[] = {25, 17};
7864 const int *foo = &x[0];
7865 ++foo;
7866}
7867{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7868 typedef const int *iptr;
7869 iptr p = 0;
7870 ++p;
7871}
7872{ /* AIX XL C 1.02.0.0 rejects this saying
7873 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7874 struct s { int j; const int *ap[3]; };
7875 struct s *b; b->j = 5;
7876}
7877{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7878 const int foo = 10;
7879}
7880
7881; return 0; }
7882EOF
ba337fe7 7883if { (eval echo configure:7882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
7884 rm -rf conftest*
7885 ac_cv_c_const=yes
7886else
7887 echo "configure: failed program was:" >&5
7888 cat conftest.$ac_ext >&5
7889 rm -rf conftest*
7890 ac_cv_c_const=no
7891fi
7892rm -f conftest*
7893fi
7894
7895echo "$ac_t""$ac_cv_c_const" 1>&6
7896if test $ac_cv_c_const = no; then
7897 cat >> confdefs.h <<\EOF
7898#define const
7899EOF
7900
7901fi
7902
7903echo $ac_n "checking for inline""... $ac_c" 1>&6
ba337fe7 7904echo "configure:7903: checking for inline" >&5
10f2d63a
VZ
7905if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
7906 echo $ac_n "(cached) $ac_c" 1>&6
7907else
7908 ac_cv_c_inline=no
7909for ac_kw in inline __inline__ __inline; do
7910 cat > conftest.$ac_ext <<EOF
ba337fe7 7911#line 7910 "configure"
10f2d63a
VZ
7912#include "confdefs.h"
7913
7914int main() {
7915} $ac_kw foo() {
7916; return 0; }
7917EOF
ba337fe7 7918if { (eval echo configure:7917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
7919 rm -rf conftest*
7920 ac_cv_c_inline=$ac_kw; break
7921else
7922 echo "configure: failed program was:" >&5
7923 cat conftest.$ac_ext >&5
7924fi
7925rm -f conftest*
7926done
7927
7928fi
7929
7930echo "$ac_t""$ac_cv_c_inline" 1>&6
7931case "$ac_cv_c_inline" in
7932 inline | yes) ;;
7933 no) cat >> confdefs.h <<\EOF
7934#define inline
7935EOF
7936 ;;
7937 *) cat >> confdefs.h <<EOF
7938#define inline $ac_cv_c_inline
7939EOF
7940 ;;
7941esac
7942
7943
7944echo $ac_n "checking size of char""... $ac_c" 1>&6
ba337fe7 7945echo "configure:7944: checking size of char" >&5
10f2d63a
VZ
7946if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
7947 echo $ac_n "(cached) $ac_c" 1>&6
7948else
7949 if test "$cross_compiling" = yes; then
7950 ac_cv_sizeof_char=1
7951else
7952 cat > conftest.$ac_ext <<EOF
ba337fe7 7953#line 7952 "configure"
10f2d63a
VZ
7954#include "confdefs.h"
7955#include <stdio.h>
7956main()
7957{
7958 FILE *f=fopen("conftestval", "w");
7959 if (!f) exit(1);
7960 fprintf(f, "%d\n", sizeof(char));
7961 exit(0);
7962}
7963EOF
ba337fe7 7964if { (eval echo configure:7963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
7965then
7966 ac_cv_sizeof_char=`cat conftestval`
7967else
7968 echo "configure: failed program was:" >&5
7969 cat conftest.$ac_ext >&5
7970 rm -fr conftest*
7971 ac_cv_sizeof_char=0
7972fi
7973rm -fr conftest*
7974fi
7975
7976fi
7977echo "$ac_t""$ac_cv_sizeof_char" 1>&6
7978cat >> confdefs.h <<EOF
7979#define SIZEOF_CHAR $ac_cv_sizeof_char
7980EOF
7981
7982
7983echo $ac_n "checking size of short""... $ac_c" 1>&6
ba337fe7 7984echo "configure:7983: checking size of short" >&5
10f2d63a
VZ
7985if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
7986 echo $ac_n "(cached) $ac_c" 1>&6
7987else
7988 if test "$cross_compiling" = yes; then
7989 ac_cv_sizeof_short=2
7990else
7991 cat > conftest.$ac_ext <<EOF
ba337fe7 7992#line 7991 "configure"
10f2d63a
VZ
7993#include "confdefs.h"
7994#include <stdio.h>
7995main()
7996{
7997 FILE *f=fopen("conftestval", "w");
7998 if (!f) exit(1);
7999 fprintf(f, "%d\n", sizeof(short));
8000 exit(0);
8001}
8002EOF
ba337fe7 8003if { (eval echo configure:8002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8004then
8005 ac_cv_sizeof_short=`cat conftestval`
8006else
8007 echo "configure: failed program was:" >&5
8008 cat conftest.$ac_ext >&5
8009 rm -fr conftest*
8010 ac_cv_sizeof_short=0
8011fi
8012rm -fr conftest*
8013fi
8014
8015fi
8016echo "$ac_t""$ac_cv_sizeof_short" 1>&6
8017cat >> confdefs.h <<EOF
8018#define SIZEOF_SHORT $ac_cv_sizeof_short
8019EOF
8020
8021
8022echo $ac_n "checking size of int *""... $ac_c" 1>&6
ba337fe7 8023echo "configure:8022: checking size of int *" >&5
10f2d63a
VZ
8024if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
8025 echo $ac_n "(cached) $ac_c" 1>&6
8026else
8027 if test "$cross_compiling" = yes; then
8028 ac_cv_sizeof_int_p=4
8029else
8030 cat > conftest.$ac_ext <<EOF
ba337fe7 8031#line 8030 "configure"
10f2d63a
VZ
8032#include "confdefs.h"
8033#include <stdio.h>
8034main()
8035{
8036 FILE *f=fopen("conftestval", "w");
8037 if (!f) exit(1);
8038 fprintf(f, "%d\n", sizeof(int *));
8039 exit(0);
8040}
8041EOF
ba337fe7 8042if { (eval echo configure:8041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8043then
8044 ac_cv_sizeof_int_p=`cat conftestval`
8045else
8046 echo "configure: failed program was:" >&5
8047 cat conftest.$ac_ext >&5
8048 rm -fr conftest*
8049 ac_cv_sizeof_int_p=0
8050fi
8051rm -fr conftest*
8052fi
8053
8054fi
8055echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
8056cat >> confdefs.h <<EOF
8057#define SIZEOF_INT_P $ac_cv_sizeof_int_p
8058EOF
8059
8060
8061echo $ac_n "checking size of int""... $ac_c" 1>&6
ba337fe7 8062echo "configure:8061: checking size of int" >&5
10f2d63a
VZ
8063if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
8064 echo $ac_n "(cached) $ac_c" 1>&6
8065else
8066 if test "$cross_compiling" = yes; then
8067 ac_cv_sizeof_int=4
8068else
8069 cat > conftest.$ac_ext <<EOF
ba337fe7 8070#line 8069 "configure"
10f2d63a
VZ
8071#include "confdefs.h"
8072#include <stdio.h>
8073main()
8074{
8075 FILE *f=fopen("conftestval", "w");
8076 if (!f) exit(1);
8077 fprintf(f, "%d\n", sizeof(int));
8078 exit(0);
8079}
8080EOF
ba337fe7 8081if { (eval echo configure:8080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8082then
8083 ac_cv_sizeof_int=`cat conftestval`
8084else
8085 echo "configure: failed program was:" >&5
8086 cat conftest.$ac_ext >&5
8087 rm -fr conftest*
8088 ac_cv_sizeof_int=0
8089fi
8090rm -fr conftest*
8091fi
8092
8093fi
8094echo "$ac_t""$ac_cv_sizeof_int" 1>&6
8095cat >> confdefs.h <<EOF
8096#define SIZEOF_INT $ac_cv_sizeof_int
8097EOF
8098
8099
8100echo $ac_n "checking size of long""... $ac_c" 1>&6
ba337fe7 8101echo "configure:8100: checking size of long" >&5
10f2d63a
VZ
8102if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
8103 echo $ac_n "(cached) $ac_c" 1>&6
8104else
8105 if test "$cross_compiling" = yes; then
8106 ac_cv_sizeof_long=4
8107else
8108 cat > conftest.$ac_ext <<EOF
ba337fe7 8109#line 8108 "configure"
10f2d63a
VZ
8110#include "confdefs.h"
8111#include <stdio.h>
8112main()
8113{
8114 FILE *f=fopen("conftestval", "w");
8115 if (!f) exit(1);
8116 fprintf(f, "%d\n", sizeof(long));
8117 exit(0);
8118}
8119EOF
ba337fe7 8120if { (eval echo configure:8119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8121then
8122 ac_cv_sizeof_long=`cat conftestval`
8123else
8124 echo "configure: failed program was:" >&5
8125 cat conftest.$ac_ext >&5
8126 rm -fr conftest*
8127 ac_cv_sizeof_long=0
8128fi
8129rm -fr conftest*
8130fi
8131
8132fi
8133echo "$ac_t""$ac_cv_sizeof_long" 1>&6
8134cat >> confdefs.h <<EOF
8135#define SIZEOF_LONG $ac_cv_sizeof_long
8136EOF
8137
8138
8139echo $ac_n "checking size of long long""... $ac_c" 1>&6
ba337fe7 8140echo "configure:8139: checking size of long long" >&5
10f2d63a
VZ
8141if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
8142 echo $ac_n "(cached) $ac_c" 1>&6
8143else
8144 if test "$cross_compiling" = yes; then
8145 ac_cv_sizeof_long_long=0
8146else
8147 cat > conftest.$ac_ext <<EOF
ba337fe7 8148#line 8147 "configure"
10f2d63a
VZ
8149#include "confdefs.h"
8150#include <stdio.h>
8151main()
8152{
8153 FILE *f=fopen("conftestval", "w");
8154 if (!f) exit(1);
8155 fprintf(f, "%d\n", sizeof(long long));
8156 exit(0);
8157}
8158EOF
ba337fe7 8159if { (eval echo configure:8158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8160then
8161 ac_cv_sizeof_long_long=`cat conftestval`
8162else
8163 echo "configure: failed program was:" >&5
8164 cat conftest.$ac_ext >&5
8165 rm -fr conftest*
8166 ac_cv_sizeof_long_long=0
8167fi
8168rm -fr conftest*
8169fi
8170
8171fi
8172echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
8173cat >> confdefs.h <<EOF
8174#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8175EOF
8176
8177
8178
8179echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
ba337fe7 8180echo "configure:8179: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
8181if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
8182 echo $ac_n "(cached) $ac_c" 1>&6
8183else
8184 ac_cv_c_bigendian=unknown
8185# See if sys/param.h defines the BYTE_ORDER macro.
8186cat > conftest.$ac_ext <<EOF
ba337fe7 8187#line 8186 "configure"
10f2d63a
VZ
8188#include "confdefs.h"
8189#include <sys/types.h>
8190#include <sys/param.h>
8191int main() {
8192
8193#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8194 bogus endian macros
8195#endif
8196; return 0; }
8197EOF
ba337fe7 8198if { (eval echo configure:8197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
8199 rm -rf conftest*
8200 # It does; now see whether it defined to BIG_ENDIAN or not.
8201cat > conftest.$ac_ext <<EOF
ba337fe7 8202#line 8201 "configure"
10f2d63a
VZ
8203#include "confdefs.h"
8204#include <sys/types.h>
8205#include <sys/param.h>
8206int main() {
8207
8208#if BYTE_ORDER != BIG_ENDIAN
8209 not big endian
8210#endif
8211; return 0; }
8212EOF
ba337fe7 8213if { (eval echo configure:8212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
8214 rm -rf conftest*
8215 ac_cv_c_bigendian=yes
8216else
8217 echo "configure: failed program was:" >&5
8218 cat conftest.$ac_ext >&5
8219 rm -rf conftest*
8220 ac_cv_c_bigendian=no
8221fi
8222rm -f conftest*
8223else
8224 echo "configure: failed program was:" >&5
8225 cat conftest.$ac_ext >&5
8226fi
8227rm -f conftest*
8228if test $ac_cv_c_bigendian = unknown; then
8229if test "$cross_compiling" = yes; then
8230 ac_cv_c_bigendian=unknown
8231else
8232 cat > conftest.$ac_ext <<EOF
ba337fe7 8233#line 8232 "configure"
10f2d63a
VZ
8234#include "confdefs.h"
8235main () {
8236 /* Are we little or big endian? From Harbison&Steele. */
8237 union
8238 {
8239 long l;
8240 char c[sizeof (long)];
8241 } u;
8242 u.l = 1;
8243 exit (u.c[sizeof (long) - 1] == 1);
8244}
8245EOF
ba337fe7 8246if { (eval echo configure:8245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8247then
8248 ac_cv_c_bigendian=no
8249else
8250 echo "configure: failed program was:" >&5
8251 cat conftest.$ac_ext >&5
8252 rm -fr conftest*
8253 ac_cv_c_bigendian=yes
8254fi
8255rm -fr conftest*
8256fi
8257
8258fi
8259fi
8260
8261echo "$ac_t""$ac_cv_c_bigendian" 1>&6
8262if test $ac_cv_c_bigendian = unknown; then
8263 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
8264fi
8265if test $ac_cv_c_bigendian = yes; then
8266 cat >> confdefs.h <<\EOF
8267#define WORDS_BIGENDIAN 1
8268EOF
8269
8270fi
8271
8272
8273
8274 if test "$cross_compiling" = "yes"; then
8275 cat >> confdefs.h <<\EOF
8276#define wxUSE_IOSTREAMH 1
8277EOF
8278
8279 else
8280
8281 ac_ext=C
8282# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8283ac_cpp='$CXXCPP $CPPFLAGS'
8284ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8285ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8286cross_compiling=$ac_cv_prog_cxx_cross
8287
8288
8289 for ac_hdr in iostream
8290do
8291ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8292echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ba337fe7 8293echo "configure:8292: checking for $ac_hdr" >&5
10f2d63a
VZ
8294if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8295 echo $ac_n "(cached) $ac_c" 1>&6
8296else
8297 cat > conftest.$ac_ext <<EOF
ba337fe7 8298#line 8297 "configure"
10f2d63a
VZ
8299#include "confdefs.h"
8300#include <$ac_hdr>
8301EOF
8302ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ba337fe7 8303{ (eval echo configure:8302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8304ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8305if test -z "$ac_err"; then
8306 rm -rf conftest*
8307 eval "ac_cv_header_$ac_safe=yes"
8308else
8309 echo "$ac_err" >&5
8310 echo "configure: failed program was:" >&5
8311 cat conftest.$ac_ext >&5
8312 rm -rf conftest*
8313 eval "ac_cv_header_$ac_safe=no"
8314fi
8315rm -f conftest*
8316fi
8317if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8318 echo "$ac_t""yes" 1>&6
8319 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8320 cat >> confdefs.h <<EOF
8321#define $ac_tr_hdr 1
8322EOF
8323
8324else
8325 echo "$ac_t""no" 1>&6
8326fi
8327done
8328
8329
8330 if test "x$HAVE_IOSTREAM" = x ; then
8331 cat >> confdefs.h <<\EOF
8332#define wxUSE_IOSTREAMH 1
8333EOF
8334
8335 else
8336 :
8337 fi
8338
8339 ac_ext=c
8340# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8341ac_cpp='$CPP $CPPFLAGS'
8342ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8343ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8344cross_compiling=$ac_cv_prog_cc_cross
8345
8346 fi
8347
8348
8349
8350 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
ba337fe7 8351echo "configure:8350: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
8352if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
8353 echo $ac_n "(cached) $ac_c" 1>&6
8354else
8355
8356
8357 ac_ext=C
8358# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8359ac_cpp='$CXXCPP $CPPFLAGS'
8360ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8361ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8362cross_compiling=$ac_cv_prog_cxx_cross
8363
8364
8365 cat > conftest.$ac_ext <<EOF
ba337fe7 8366#line 8365 "configure"
10f2d63a
VZ
8367#include "confdefs.h"
8368
8369
8370int main() {
8371
8372 bool b = true;
8373
8374 return 0;
8375
8376; return 0; }
8377EOF
ba337fe7 8378if { (eval echo configure:8377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
8379 rm -rf conftest*
8380
8381 cat >> confdefs.h <<\EOF
8382#define HAVE_BOOL 1
8383EOF
8384
8385 wx_cv_cpp_bool=yes
8386
8387else
8388 echo "configure: failed program was:" >&5
8389 cat conftest.$ac_ext >&5
8390 rm -rf conftest*
8391
8392 wx_cv_cpp_bool=no
8393
8394
8395fi
8396rm -f conftest*
8397
8398 ac_ext=c
8399# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8400ac_cpp='$CPP $CPPFLAGS'
8401ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8402ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8403cross_compiling=$ac_cv_prog_cc_cross
8404
8405
8406fi
8407
8408echo "$ac_t""$wx_cv_cpp_bool" 1>&6
8409
8410 if test "$wx_cv_cpp_bool" = "yes"; then
8411 cat >> confdefs.h <<\EOF
8412#define HAVE_BOOL 1
8413EOF
8414
8415 fi
8416
8417
8418
10f2d63a 8419echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
ba337fe7 8420echo "configure:8419: checking if you need GNU extensions" >&5
10f2d63a
VZ
8421if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
8422 echo $ac_n "(cached) $ac_c" 1>&6
8423else
8424
8425 cat > conftest.$ac_ext <<EOF
ba337fe7 8426#line 8425 "configure"
10f2d63a
VZ
8427#include "confdefs.h"
8428#include <features.h>
8429int main() {
8430
8431
8432#ifndef __GNU_LIBRARY__
8433 Compile error wanted
8434#endif
8435
8436
8437; return 0; }
8438EOF
ba337fe7 8439if { (eval echo configure:8438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
8440 rm -rf conftest*
8441 wx_cv_gnu_extensions=yes
8442else
8443 echo "configure: failed program was:" >&5
8444 cat conftest.$ac_ext >&5
8445 rm -rf conftest*
8446 wx_cv_gnu_extensions=no
8447fi
8448rm -f conftest*
8449
8450fi
8451
8452
8453echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
8454if test "$wx_cv_gnu_extensions" = "yes"; then
8455 cat >> confdefs.h <<EOF
8456#define _GNU_SOURCE 1
8457EOF
8458
8459fi
8460
8461
8462
8463echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
ba337fe7 8464echo "configure:8463: checking for wcslen in -lc" >&5
10f2d63a
VZ
8465ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
8466if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8467 echo $ac_n "(cached) $ac_c" 1>&6
8468else
8469 ac_save_LIBS="$LIBS"
8470LIBS="-lc $LIBS"
8471cat > conftest.$ac_ext <<EOF
ba337fe7 8472#line 8471 "configure"
10f2d63a
VZ
8473#include "confdefs.h"
8474/* Override any gcc2 internal prototype to avoid an error. */
8475/* We use char because int might match the return type of a gcc2
8476 builtin and then its argument prototype would still apply. */
8477char wcslen();
8478
8479int main() {
8480wcslen()
8481; return 0; }
8482EOF
ba337fe7 8483if { (eval echo configure:8482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
8484 rm -rf conftest*
8485 eval "ac_cv_lib_$ac_lib_var=yes"
8486else
8487 echo "configure: failed program was:" >&5
8488 cat conftest.$ac_ext >&5
8489 rm -rf conftest*
8490 eval "ac_cv_lib_$ac_lib_var=no"
8491fi
8492rm -f conftest*
8493LIBS="$ac_save_LIBS"
8494
8495fi
8496if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8497 echo "$ac_t""yes" 1>&6
8498
8499 cat >> confdefs.h <<\EOF
8500#define HAVE_WCSLEN 1
8501EOF
8502
8503 WCHAR_LINK=""
8504
8505else
8506 echo "$ac_t""no" 1>&6
8507
8508 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
ba337fe7 8509echo "configure:8508: checking for wcslen in -lw" >&5
10f2d63a
VZ
8510ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
8511if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8512 echo $ac_n "(cached) $ac_c" 1>&6
8513else
8514 ac_save_LIBS="$LIBS"
8515LIBS="-lw $LIBS"
8516cat > conftest.$ac_ext <<EOF
ba337fe7 8517#line 8516 "configure"
10f2d63a
VZ
8518#include "confdefs.h"
8519/* Override any gcc2 internal prototype to avoid an error. */
8520/* We use char because int might match the return type of a gcc2
8521 builtin and then its argument prototype would still apply. */
8522char wcslen();
8523
8524int main() {
8525wcslen()
8526; return 0; }
8527EOF
ba337fe7 8528if { (eval echo configure:8527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
8529 rm -rf conftest*
8530 eval "ac_cv_lib_$ac_lib_var=yes"
8531else
8532 echo "configure: failed program was:" >&5
8533 cat conftest.$ac_ext >&5
8534 rm -rf conftest*
8535 eval "ac_cv_lib_$ac_lib_var=no"
8536fi
8537rm -f conftest*
8538LIBS="$ac_save_LIBS"
8539
8540fi
8541if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8542 echo "$ac_t""yes" 1>&6
8543
8544 cat >> confdefs.h <<\EOF
8545#define HAVE_WCSLEN 1
8546EOF
8547
8548 WCHAR_LINK="-lw"
8549
8550else
8551 echo "$ac_t""no" 1>&6
8552fi
8553
8554
8555fi
8556
8557
8558echo $ac_n "checking for vprintf""... $ac_c" 1>&6
ba337fe7 8559echo "configure:8558: checking for vprintf" >&5
10f2d63a
VZ
8560if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
8561 echo $ac_n "(cached) $ac_c" 1>&6
8562else
8563 cat > conftest.$ac_ext <<EOF
ba337fe7 8564#line 8563 "configure"
10f2d63a
VZ
8565#include "confdefs.h"
8566/* System header to define __stub macros and hopefully few prototypes,
8567 which can conflict with char vprintf(); below. */
8568#include <assert.h>
8569/* Override any gcc2 internal prototype to avoid an error. */
8570/* We use char because int might match the return type of a gcc2
8571 builtin and then its argument prototype would still apply. */
8572char vprintf();
8573
8574int main() {
8575
8576/* The GNU C library defines this for functions which it implements
8577 to always fail with ENOSYS. Some functions are actually named
8578 something starting with __ and the normal name is an alias. */
8579#if defined (__stub_vprintf) || defined (__stub___vprintf)
8580choke me
8581#else
788deba1 8582vprintf();
10f2d63a
VZ
8583#endif
8584
8585; return 0; }
8586EOF
ba337fe7 8587if { (eval echo configure:8586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
8588 rm -rf conftest*
8589 eval "ac_cv_func_vprintf=yes"
8590else
8591 echo "configure: failed program was:" >&5
8592 cat conftest.$ac_ext >&5
8593 rm -rf conftest*
8594 eval "ac_cv_func_vprintf=no"
8595fi
8596rm -f conftest*
8597fi
8598
8599if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
8600 echo "$ac_t""yes" 1>&6
8601 cat >> confdefs.h <<\EOF
8602#define HAVE_VPRINTF 1
8603EOF
8604
8605else
8606 echo "$ac_t""no" 1>&6
8607fi
8608
8609if test "$ac_cv_func_vprintf" != yes; then
8610echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
ba337fe7 8611echo "configure:8610: checking for _doprnt" >&5
10f2d63a
VZ
8612if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
8613 echo $ac_n "(cached) $ac_c" 1>&6
8614else
8615 cat > conftest.$ac_ext <<EOF
ba337fe7 8616#line 8615 "configure"
10f2d63a
VZ
8617#include "confdefs.h"
8618/* System header to define __stub macros and hopefully few prototypes,
8619 which can conflict with char _doprnt(); below. */
8620#include <assert.h>
8621/* Override any gcc2 internal prototype to avoid an error. */
8622/* We use char because int might match the return type of a gcc2
8623 builtin and then its argument prototype would still apply. */
8624char _doprnt();
8625
8626int main() {
8627
8628/* The GNU C library defines this for functions which it implements
8629 to always fail with ENOSYS. Some functions are actually named
8630 something starting with __ and the normal name is an alias. */
8631#if defined (__stub__doprnt) || defined (__stub____doprnt)
8632choke me
8633#else
788deba1 8634_doprnt();
10f2d63a
VZ
8635#endif
8636
8637; return 0; }
8638EOF
ba337fe7 8639if { (eval echo configure:8638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
8640 rm -rf conftest*
8641 eval "ac_cv_func__doprnt=yes"
8642else
8643 echo "configure: failed program was:" >&5
8644 cat conftest.$ac_ext >&5
8645 rm -rf conftest*
8646 eval "ac_cv_func__doprnt=no"
8647fi
8648rm -f conftest*
8649fi
8650
8651if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
8652 echo "$ac_t""yes" 1>&6
8653 cat >> confdefs.h <<\EOF
8654#define HAVE_DOPRNT 1
8655EOF
8656
8657else
8658 echo "$ac_t""no" 1>&6
8659fi
8660
8661fi
8662
8663
8664for ac_func in vsnprintf
8665do
8666echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ba337fe7 8667echo "configure:8666: checking for $ac_func" >&5
10f2d63a
VZ
8668if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8669 echo $ac_n "(cached) $ac_c" 1>&6
8670else
8671 cat > conftest.$ac_ext <<EOF
ba337fe7 8672#line 8671 "configure"
10f2d63a
VZ
8673#include "confdefs.h"
8674/* System header to define __stub macros and hopefully few prototypes,
8675 which can conflict with char $ac_func(); below. */
8676#include <assert.h>
8677/* Override any gcc2 internal prototype to avoid an error. */
8678/* We use char because int might match the return type of a gcc2
8679 builtin and then its argument prototype would still apply. */
8680char $ac_func();
8681
8682int main() {
8683
8684/* The GNU C library defines this for functions which it implements
8685 to always fail with ENOSYS. Some functions are actually named
8686 something starting with __ and the normal name is an alias. */
8687#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8688choke me
8689#else
788deba1 8690$ac_func();
10f2d63a
VZ
8691#endif
8692
8693; return 0; }
8694EOF
ba337fe7 8695if { (eval echo configure:8694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
8696 rm -rf conftest*
8697 eval "ac_cv_func_$ac_func=yes"
8698else
8699 echo "configure: failed program was:" >&5
8700 cat conftest.$ac_ext >&5
8701 rm -rf conftest*
8702 eval "ac_cv_func_$ac_func=no"
8703fi
8704rm -f conftest*
8705fi
8706
8707if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8708 echo "$ac_t""yes" 1>&6
8709 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8710 cat >> confdefs.h <<EOF
8711#define $ac_tr_func 1
8712EOF
8713 cat >> confdefs.h <<\EOF
8714#define HAVE_VSNPRINTF 1
8715EOF
8716
8717else
8718 echo "$ac_t""no" 1>&6
8719echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
8720
8721fi
8722done
8723
8724
8725
8726ac_ext=C
8727# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8728ac_cpp='$CXXCPP $CPPFLAGS'
8729ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8730ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8731cross_compiling=$ac_cv_prog_cxx_cross
8732
8733
8734echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
ba337fe7 8735echo "configure:8734: checking for vsscanf" >&5
10f2d63a
VZ
8736if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
8737 echo $ac_n "(cached) $ac_c" 1>&6
8738else
8739
8740 if test "$cross_compiling" = yes; then
8741 wx_cv_func_vsscanf=no
8742
8743else
8744 cat > conftest.$ac_ext <<EOF
ba337fe7 8745#line 8744 "configure"
10f2d63a
VZ
8746#include "confdefs.h"
8747#ifdef __cplusplus
8748extern "C" void exit(int);
8749#endif
8750
8751 #include <stdio.h>
8752 #include <stdarg.h>
8753
8754 int try_vsscanf(const char *format, ...)
8755 {
8756 va_list ap;
8757 va_start(ap, format);
8758
8759 vsscanf("17", format, ap);
8760
8761 va_end(ap);
8762 }
8763
8764 int main()
8765 {
8766 int i;
8767 try_vsscanf("%d", &i);
8768 return i == 17 ? 0 : 1;
8769 }
8770
8771EOF
ba337fe7 8772if { (eval echo configure:8771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8773then
8774
8775 cat >> confdefs.h <<\EOF
8776#define HAVE_VSSCANF 1
8777EOF
8778
8779 wx_cv_func_vsscanf=yes
8780
8781else
8782 echo "configure: failed program was:" >&5
8783 cat conftest.$ac_ext >&5
8784 rm -fr conftest*
8785 wx_cv_func_vsscanf=no
8786fi
8787rm -fr conftest*
8788fi
8789
8790
8791fi
8792
8793echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
8794
8795ac_ext=c
8796# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8797ac_cpp='$CPP $CPPFLAGS'
8798ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8799ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8800cross_compiling=$ac_cv_prog_cc_cross
8801
8802
8803if test "$USE_UNIX" = 1; then
8804
8805for ac_func in vfork
8806do
8807echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ba337fe7 8808echo "configure:8807: checking for $ac_func" >&5
10f2d63a
VZ
8809if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8810 echo $ac_n "(cached) $ac_c" 1>&6
8811else
8812 cat > conftest.$ac_ext <<EOF
ba337fe7 8813#line 8812 "configure"
10f2d63a
VZ
8814#include "confdefs.h"
8815/* System header to define __stub macros and hopefully few prototypes,
8816 which can conflict with char $ac_func(); below. */
8817#include <assert.h>
8818/* Override any gcc2 internal prototype to avoid an error. */
8819/* We use char because int might match the return type of a gcc2
8820 builtin and then its argument prototype would still apply. */
8821char $ac_func();
8822
8823int main() {
8824
8825/* The GNU C library defines this for functions which it implements
8826 to always fail with ENOSYS. Some functions are actually named
8827 something starting with __ and the normal name is an alias. */
8828#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8829choke me
8830#else
788deba1 8831$ac_func();
10f2d63a
VZ
8832#endif
8833
8834; return 0; }
8835EOF
ba337fe7 8836if { (eval echo configure:8835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
8837 rm -rf conftest*
8838 eval "ac_cv_func_$ac_func=yes"
8839else
8840 echo "configure: failed program was:" >&5
8841 cat conftest.$ac_ext >&5
8842 rm -rf conftest*
8843 eval "ac_cv_func_$ac_func=no"
8844fi
8845rm -f conftest*
8846fi
8847
8848if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8849 echo "$ac_t""yes" 1>&6
8850 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8851 cat >> confdefs.h <<EOF
8852#define $ac_tr_func 1
8853EOF
8854
8855else
8856 echo "$ac_t""no" 1>&6
8857fi
8858done
8859
8860
8861POSIX4_LINK=
8862for ac_func in nanosleep
8863do
8864echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ba337fe7 8865echo "configure:8864: checking for $ac_func" >&5
10f2d63a
VZ
8866if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8867 echo $ac_n "(cached) $ac_c" 1>&6
8868else
8869 cat > conftest.$ac_ext <<EOF
ba337fe7 8870#line 8869 "configure"
10f2d63a
VZ
8871#include "confdefs.h"
8872/* System header to define __stub macros and hopefully few prototypes,
8873 which can conflict with char $ac_func(); below. */
8874#include <assert.h>
8875/* Override any gcc2 internal prototype to avoid an error. */
8876/* We use char because int might match the return type of a gcc2
8877 builtin and then its argument prototype would still apply. */
8878char $ac_func();
8879
8880int main() {
8881
8882/* The GNU C library defines this for functions which it implements
8883 to always fail with ENOSYS. Some functions are actually named
8884 something starting with __ and the normal name is an alias. */
8885#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8886choke me
8887#else
788deba1 8888$ac_func();
10f2d63a
VZ
8889#endif
8890
8891; return 0; }
8892EOF
ba337fe7 8893if { (eval echo configure:8892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
8894 rm -rf conftest*
8895 eval "ac_cv_func_$ac_func=yes"
8896else
8897 echo "configure: failed program was:" >&5
8898 cat conftest.$ac_ext >&5
8899 rm -rf conftest*
8900 eval "ac_cv_func_$ac_func=no"
8901fi
8902rm -f conftest*
8903fi
8904
8905if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8906 echo "$ac_t""yes" 1>&6
8907 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8908 cat >> confdefs.h <<EOF
8909#define $ac_tr_func 1
8910EOF
8911 cat >> confdefs.h <<\EOF
8912#define HAVE_NANOSLEEP 1
8913EOF
8914
8915else
8916 echo "$ac_t""no" 1>&6
8917echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
ba337fe7 8918echo "configure:8917: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
8919ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
8920if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8921 echo $ac_n "(cached) $ac_c" 1>&6
8922else
8923 ac_save_LIBS="$LIBS"
8924LIBS="-lposix4 $LIBS"
8925cat > conftest.$ac_ext <<EOF
ba337fe7 8926#line 8925 "configure"
10f2d63a
VZ
8927#include "confdefs.h"
8928/* Override any gcc2 internal prototype to avoid an error. */
8929/* We use char because int might match the return type of a gcc2
8930 builtin and then its argument prototype would still apply. */
8931char nanosleep();
8932
8933int main() {
8934nanosleep()
8935; return 0; }
8936EOF
ba337fe7 8937if { (eval echo configure:8936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
8938 rm -rf conftest*
8939 eval "ac_cv_lib_$ac_lib_var=yes"
8940else
8941 echo "configure: failed program was:" >&5
8942 cat conftest.$ac_ext >&5
8943 rm -rf conftest*
8944 eval "ac_cv_lib_$ac_lib_var=no"
8945fi
8946rm -f conftest*
8947LIBS="$ac_save_LIBS"
8948
8949fi
8950if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8951 echo "$ac_t""yes" 1>&6
8952
8953 cat >> confdefs.h <<\EOF
8954#define HAVE_NANOSLEEP 1
8955EOF
8956
8957 POSIX4_LINK="-lposix4"
8958
8959else
8960 echo "$ac_t""no" 1>&6
8961
8962 for ac_func in usleep
8963do
8964echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ba337fe7 8965echo "configure:8964: checking for $ac_func" >&5
10f2d63a
VZ
8966if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8967 echo $ac_n "(cached) $ac_c" 1>&6
8968else
8969 cat > conftest.$ac_ext <<EOF
ba337fe7 8970#line 8969 "configure"
10f2d63a
VZ
8971#include "confdefs.h"
8972/* System header to define __stub macros and hopefully few prototypes,
8973 which can conflict with char $ac_func(); below. */
8974#include <assert.h>
8975/* Override any gcc2 internal prototype to avoid an error. */
8976/* We use char because int might match the return type of a gcc2
8977 builtin and then its argument prototype would still apply. */
8978char $ac_func();
8979
8980int main() {
8981
8982/* The GNU C library defines this for functions which it implements
8983 to always fail with ENOSYS. Some functions are actually named
8984 something starting with __ and the normal name is an alias. */
8985#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8986choke me
8987#else
788deba1 8988$ac_func();
10f2d63a
VZ
8989#endif
8990
8991; return 0; }
8992EOF
ba337fe7 8993if { (eval echo configure:8992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
8994 rm -rf conftest*
8995 eval "ac_cv_func_$ac_func=yes"
8996else
8997 echo "configure: failed program was:" >&5
8998 cat conftest.$ac_ext >&5
8999 rm -rf conftest*
9000 eval "ac_cv_func_$ac_func=no"
9001fi
9002rm -f conftest*
9003fi
9004
9005if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9006 echo "$ac_t""yes" 1>&6
9007 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9008 cat >> confdefs.h <<EOF
9009#define $ac_tr_func 1
9010EOF
9011 cat >> confdefs.h <<\EOF
9012#define HAVE_USLEEP 1
9013EOF
9014
9015else
9016 echo "$ac_t""no" 1>&6
9017echo "configure: warning: wxSleep() function will not work" 1>&2
9018fi
9019done
9020
9021
9022fi
9023
9024
9025fi
9026done
9027
9028
9029for ac_func in uname gethostname
9030do
9031echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ba337fe7 9032echo "configure:9031: checking for $ac_func" >&5
10f2d63a
VZ
9033if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9034 echo $ac_n "(cached) $ac_c" 1>&6
9035else
9036 cat > conftest.$ac_ext <<EOF
ba337fe7 9037#line 9036 "configure"
10f2d63a
VZ
9038#include "confdefs.h"
9039/* System header to define __stub macros and hopefully few prototypes,
9040 which can conflict with char $ac_func(); below. */
9041#include <assert.h>
9042/* Override any gcc2 internal prototype to avoid an error. */
9043/* We use char because int might match the return type of a gcc2
9044 builtin and then its argument prototype would still apply. */
9045char $ac_func();
9046
9047int main() {
9048
9049/* The GNU C library defines this for functions which it implements
9050 to always fail with ENOSYS. Some functions are actually named
9051 something starting with __ and the normal name is an alias. */
9052#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9053choke me
9054#else
788deba1 9055$ac_func();
10f2d63a
VZ
9056#endif
9057
9058; return 0; }
9059EOF
ba337fe7 9060if { (eval echo configure:9059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9061 rm -rf conftest*
9062 eval "ac_cv_func_$ac_func=yes"
9063else
9064 echo "configure: failed program was:" >&5
9065 cat conftest.$ac_ext >&5
9066 rm -rf conftest*
9067 eval "ac_cv_func_$ac_func=no"
9068fi
9069rm -f conftest*
9070fi
9071
9072if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9073 echo "$ac_t""yes" 1>&6
9074 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9075 cat >> confdefs.h <<EOF
9076#define $ac_tr_func 1
9077EOF
9078 break
9079else
9080 echo "$ac_t""no" 1>&6
9081fi
9082done
9083
9084
9085for ac_func in strtok_r
9086do
9087echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ba337fe7 9088echo "configure:9087: checking for $ac_func" >&5
10f2d63a
VZ
9089if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9090 echo $ac_n "(cached) $ac_c" 1>&6
9091else
9092 cat > conftest.$ac_ext <<EOF
ba337fe7 9093#line 9092 "configure"
10f2d63a
VZ
9094#include "confdefs.h"
9095/* System header to define __stub macros and hopefully few prototypes,
9096 which can conflict with char $ac_func(); below. */
9097#include <assert.h>
9098/* Override any gcc2 internal prototype to avoid an error. */
9099/* We use char because int might match the return type of a gcc2
9100 builtin and then its argument prototype would still apply. */
9101char $ac_func();
9102
9103int main() {
9104
9105/* The GNU C library defines this for functions which it implements
9106 to always fail with ENOSYS. Some functions are actually named
9107 something starting with __ and the normal name is an alias. */
9108#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9109choke me
9110#else
788deba1 9111$ac_func();
10f2d63a
VZ
9112#endif
9113
9114; return 0; }
9115EOF
ba337fe7 9116if { (eval echo configure:9115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9117 rm -rf conftest*
9118 eval "ac_cv_func_$ac_func=yes"
9119else
9120 echo "configure: failed program was:" >&5
9121 cat conftest.$ac_ext >&5
9122 rm -rf conftest*
9123 eval "ac_cv_func_$ac_func=no"
9124fi
9125rm -f conftest*
9126fi
9127
9128if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9129 echo "$ac_t""yes" 1>&6
9130 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9131 cat >> confdefs.h <<EOF
9132#define $ac_tr_func 1
9133EOF
9134
9135else
9136 echo "$ac_t""no" 1>&6
9137fi
9138done
9139
9140
c63c7106 9141INET_LINK=
10f2d63a
VZ
9142for ac_func in inet_addr
9143do
9144echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ba337fe7 9145echo "configure:9144: checking for $ac_func" >&5
10f2d63a
VZ
9146if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9147 echo $ac_n "(cached) $ac_c" 1>&6
9148else
9149 cat > conftest.$ac_ext <<EOF
ba337fe7 9150#line 9149 "configure"
10f2d63a
VZ
9151#include "confdefs.h"
9152/* System header to define __stub macros and hopefully few prototypes,
9153 which can conflict with char $ac_func(); below. */
9154#include <assert.h>
9155/* Override any gcc2 internal prototype to avoid an error. */
9156/* We use char because int might match the return type of a gcc2
9157 builtin and then its argument prototype would still apply. */
9158char $ac_func();
9159
9160int main() {
9161
9162/* The GNU C library defines this for functions which it implements
9163 to always fail with ENOSYS. Some functions are actually named
9164 something starting with __ and the normal name is an alias. */
9165#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9166choke me
9167#else
788deba1 9168$ac_func();
10f2d63a
VZ
9169#endif
9170
9171; return 0; }
9172EOF
ba337fe7 9173if { (eval echo configure:9172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9174 rm -rf conftest*
9175 eval "ac_cv_func_$ac_func=yes"
9176else
9177 echo "configure: failed program was:" >&5
9178 cat conftest.$ac_ext >&5
9179 rm -rf conftest*
9180 eval "ac_cv_func_$ac_func=no"
9181fi
9182rm -f conftest*
9183fi
9184
9185if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9186 echo "$ac_t""yes" 1>&6
9187 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9188 cat >> confdefs.h <<EOF
9189#define $ac_tr_func 1
9190EOF
c63c7106
VZ
9191 cat >> confdefs.h <<\EOF
9192#define HAVE_INET_ADDR 1
9193EOF
9194
10f2d63a
VZ
9195else
9196 echo "$ac_t""no" 1>&6
c63c7106 9197echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
ba337fe7 9198echo "configure:9197: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
9199ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
9200if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9201 echo $ac_n "(cached) $ac_c" 1>&6
9202else
9203 ac_save_LIBS="$LIBS"
9204LIBS="-lnsl $LIBS"
9205cat > conftest.$ac_ext <<EOF
ba337fe7 9206#line 9205 "configure"
c63c7106
VZ
9207#include "confdefs.h"
9208/* Override any gcc2 internal prototype to avoid an error. */
9209/* We use char because int might match the return type of a gcc2
9210 builtin and then its argument prototype would still apply. */
9211char inet_addr();
9212
9213int main() {
9214inet_addr()
9215; return 0; }
9216EOF
ba337fe7 9217if { (eval echo configure:9216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
9218 rm -rf conftest*
9219 eval "ac_cv_lib_$ac_lib_var=yes"
9220else
9221 echo "configure: failed program was:" >&5
9222 cat conftest.$ac_ext >&5
9223 rm -rf conftest*
9224 eval "ac_cv_lib_$ac_lib_var=no"
9225fi
9226rm -f conftest*
9227LIBS="$ac_save_LIBS"
9228
9229fi
9230if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9231 echo "$ac_t""yes" 1>&6
9232 INET_LINK="nsl"
9233else
9234 echo "$ac_t""no" 1>&6
9235echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
ba337fe7 9236echo "configure:9235: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
9237ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
9238if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9239 echo $ac_n "(cached) $ac_c" 1>&6
9240else
9241 ac_save_LIBS="$LIBS"
9242LIBS="-lresolv $LIBS"
9243cat > conftest.$ac_ext <<EOF
ba337fe7 9244#line 9243 "configure"
c63c7106
VZ
9245#include "confdefs.h"
9246/* Override any gcc2 internal prototype to avoid an error. */
9247/* We use char because int might match the return type of a gcc2
9248 builtin and then its argument prototype would still apply. */
9249char inet_addr();
9250
9251int main() {
9252inet_addr()
9253; return 0; }
9254EOF
ba337fe7 9255if { (eval echo configure:9254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
9256 rm -rf conftest*
9257 eval "ac_cv_lib_$ac_lib_var=yes"
9258else
9259 echo "configure: failed program was:" >&5
9260 cat conftest.$ac_ext >&5
9261 rm -rf conftest*
9262 eval "ac_cv_lib_$ac_lib_var=no"
9263fi
9264rm -f conftest*
9265LIBS="$ac_save_LIBS"
9266
9267fi
9268if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9269 echo "$ac_t""yes" 1>&6
9270 INET_LINK="resolv"
9271
9272else
9273 echo "$ac_t""no" 1>&6
9274fi
9275
9276
9277fi
9278
9279
9280
10f2d63a
VZ
9281fi
9282done
9283
c63c7106 9284
10f2d63a
VZ
9285for ac_func in inet_aton
9286do
9287echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ba337fe7 9288echo "configure:9287: checking for $ac_func" >&5
10f2d63a
VZ
9289if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9290 echo $ac_n "(cached) $ac_c" 1>&6
9291else
9292 cat > conftest.$ac_ext <<EOF
ba337fe7 9293#line 9292 "configure"
10f2d63a
VZ
9294#include "confdefs.h"
9295/* System header to define __stub macros and hopefully few prototypes,
9296 which can conflict with char $ac_func(); below. */
9297#include <assert.h>
9298/* Override any gcc2 internal prototype to avoid an error. */
9299/* We use char because int might match the return type of a gcc2
9300 builtin and then its argument prototype would still apply. */
9301char $ac_func();
9302
9303int main() {
9304
9305/* The GNU C library defines this for functions which it implements
9306 to always fail with ENOSYS. Some functions are actually named
9307 something starting with __ and the normal name is an alias. */
9308#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9309choke me
9310#else
788deba1 9311$ac_func();
10f2d63a
VZ
9312#endif
9313
9314; return 0; }
9315EOF
ba337fe7 9316if { (eval echo configure:9315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9317 rm -rf conftest*
9318 eval "ac_cv_func_$ac_func=yes"
9319else
9320 echo "configure: failed program was:" >&5
9321 cat conftest.$ac_ext >&5
9322 rm -rf conftest*
9323 eval "ac_cv_func_$ac_func=no"
9324fi
9325rm -f conftest*
9326fi
9327
9328if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9329 echo "$ac_t""yes" 1>&6
9330 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9331 cat >> confdefs.h <<EOF
9332#define $ac_tr_func 1
9333EOF
c63c7106
VZ
9334 cat >> confdefs.h <<\EOF
9335#define HAVE_INET_ATON 1
9336EOF
9337
10f2d63a
VZ
9338else
9339 echo "$ac_t""no" 1>&6
c63c7106 9340 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
ba337fe7 9341echo "configure:9340: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 9342ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
9343if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9344 echo $ac_n "(cached) $ac_c" 1>&6
9345else
9346 ac_save_LIBS="$LIBS"
c63c7106 9347LIBS="-l$INET_LINK $LIBS"
10f2d63a 9348cat > conftest.$ac_ext <<EOF
ba337fe7 9349#line 9348 "configure"
10f2d63a
VZ
9350#include "confdefs.h"
9351/* Override any gcc2 internal prototype to avoid an error. */
9352/* We use char because int might match the return type of a gcc2
9353 builtin and then its argument prototype would still apply. */
9354char inet_aton();
9355
9356int main() {
9357inet_aton()
9358; return 0; }
9359EOF
ba337fe7 9360if { (eval echo configure:9359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9361 rm -rf conftest*
9362 eval "ac_cv_lib_$ac_lib_var=yes"
9363else
9364 echo "configure: failed program was:" >&5
9365 cat conftest.$ac_ext >&5
9366 rm -rf conftest*
9367 eval "ac_cv_lib_$ac_lib_var=no"
9368fi
9369rm -f conftest*
9370LIBS="$ac_save_LIBS"
9371
9372fi
9373if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9374 echo "$ac_t""yes" 1>&6
c63c7106
VZ
9375 cat >> confdefs.h <<\EOF
9376#define HAVE_INET_ATON 1
10f2d63a
VZ
9377EOF
9378
10f2d63a
VZ
9379else
9380 echo "$ac_t""no" 1>&6
9381fi
9382
c63c7106
VZ
9383
9384fi
9385done
9386
9387
9388if test "x$INET_LINK" != "x"; then
9389 cat >> confdefs.h <<\EOF
9390#define HAVE_INET_ADDR 1
9391EOF
9392
9393 INET_LINK="-l$INET_LINK"
9394fi
10f2d63a
VZ
9395
9396fi
9397
9398
9399cat > confcache <<\EOF
9400# This file is a shell script that caches the results of configure
9401# tests run on this system so they can be shared between configure
9402# scripts and configure runs. It is not useful on other systems.
9403# If it contains results you don't want to keep, you may remove or edit it.
9404#
9405# By default, configure uses ./config.cache as the cache file,
9406# creating it if it does not exist already. You can give configure
9407# the --cache-file=FILE option to use a different cache file; that is
9408# what configure does when it calls configure scripts in
9409# subdirectories, so they share the cache.
9410# Giving --cache-file=/dev/null disables caching, for debugging configure.
9411# config.status only pays attention to the cache file if you give it the
9412# --recheck option to rerun configure.
9413#
9414EOF
9415# The following way of writing the cache mishandles newlines in values,
9416# but we know of no workaround that is simple, portable, and efficient.
9417# So, don't put newlines in cache variables' values.
9418# Ultrix sh set writes to stderr and can't be redirected directly,
9419# and sets the high bit in the cache file unless we assign to the vars.
9420(set) 2>&1 |
9421 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9422 *ac_space=\ *)
9423 # `set' does not quote correctly, so add quotes (double-quote substitution
9424 # turns \\\\ into \\, and sed turns \\ into \).
9425 sed -n \
9426 -e "s/'/'\\\\''/g" \
9427 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9428 ;;
9429 *)
9430 # `set' quotes correctly as required by POSIX, so do not add quotes.
9431 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9432 ;;
9433 esac >> confcache
9434if cmp -s $cache_file confcache; then
9435 :
9436else
9437 if test -w $cache_file; then
9438 echo "updating cache $cache_file"
9439 cat confcache > $cache_file
9440 else
9441 echo "not updating unwritable cache $cache_file"
9442 fi
9443fi
9444rm -f confcache
9445
9446
9447
9448if test "$USE_UNIX" = 1; then
9449
9450
9451THREADS_LINK=""
9452THREADS_OBJ=""
9453
9454if test "$wxUSE_THREADS" = "yes" ; then
9455 if test "$wxUSE_WINE" = 1 ; then
9456 echo "configure: warning: Threads are not supported under WINE" 1>&2
9457 wxUSE_THREADS="no"
9458 fi
9459fi
9460
9461if test "$wxUSE_THREADS" = "yes" ; then
9462
9463 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
ba337fe7 9464echo "configure:9463: checking for pthread_create in -lpthread" >&5
10f2d63a
VZ
9465ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
9466if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9467 echo $ac_n "(cached) $ac_c" 1>&6
9468else
9469 ac_save_LIBS="$LIBS"
9470LIBS="-lpthread $LIBS"
9471cat > conftest.$ac_ext <<EOF
ba337fe7 9472#line 9471 "configure"
10f2d63a
VZ
9473#include "confdefs.h"
9474/* Override any gcc2 internal prototype to avoid an error. */
9475/* We use char because int might match the return type of a gcc2
9476 builtin and then its argument prototype would still apply. */
9477char pthread_create();
9478
9479int main() {
9480pthread_create()
9481; return 0; }
9482EOF
ba337fe7 9483if { (eval echo configure:9482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9484 rm -rf conftest*
9485 eval "ac_cv_lib_$ac_lib_var=yes"
9486else
9487 echo "configure: failed program was:" >&5
9488 cat conftest.$ac_ext >&5
9489 rm -rf conftest*
9490 eval "ac_cv_lib_$ac_lib_var=no"
9491fi
9492rm -f conftest*
9493LIBS="$ac_save_LIBS"
9494
9495fi
9496if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9497 echo "$ac_t""yes" 1>&6
9498
9499 THREADS_OBJ="threadpsx.lo"
9500 THREADS_LINK="pthread"
9501
9502else
9503 echo "$ac_t""no" 1>&6
9504
9505 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
ba337fe7 9506echo "configure:9505: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
9507ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
9508if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9509 echo $ac_n "(cached) $ac_c" 1>&6
9510else
9511 ac_save_LIBS="$LIBS"
9512LIBS="-lc_r $LIBS"
9513cat > conftest.$ac_ext <<EOF
ba337fe7 9514#line 9513 "configure"
10f2d63a
VZ
9515#include "confdefs.h"
9516/* Override any gcc2 internal prototype to avoid an error. */
9517/* We use char because int might match the return type of a gcc2
9518 builtin and then its argument prototype would still apply. */
9519char pthread_create();
9520
9521int main() {
9522pthread_create()
9523; return 0; }
9524EOF
ba337fe7 9525if { (eval echo configure:9524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9526 rm -rf conftest*
9527 eval "ac_cv_lib_$ac_lib_var=yes"
9528else
9529 echo "configure: failed program was:" >&5
9530 cat conftest.$ac_ext >&5
9531 rm -rf conftest*
9532 eval "ac_cv_lib_$ac_lib_var=no"
9533fi
9534rm -f conftest*
9535LIBS="$ac_save_LIBS"
9536
9537fi
9538if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9539 echo "$ac_t""yes" 1>&6
9540
9541 THREADS_OBJ="threadpsx.lo"
9542 THREADS_LINK="c_r"
9543
9544else
9545 echo "$ac_t""no" 1>&6
9546
9547 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
9548echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
ba337fe7 9549echo "configure:9548: checking for sys/prctl.h" >&5
10f2d63a
VZ
9550if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9551 echo $ac_n "(cached) $ac_c" 1>&6
9552else
9553 cat > conftest.$ac_ext <<EOF
ba337fe7 9554#line 9553 "configure"
10f2d63a
VZ
9555#include "confdefs.h"
9556#include <sys/prctl.h>
9557EOF
9558ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ba337fe7 9559{ (eval echo configure:9558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9560ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9561if test -z "$ac_err"; then
9562 rm -rf conftest*
9563 eval "ac_cv_header_$ac_safe=yes"
9564else
9565 echo "$ac_err" >&5
9566 echo "configure: failed program was:" >&5
9567 cat conftest.$ac_ext >&5
9568 rm -rf conftest*
9569 eval "ac_cv_header_$ac_safe=no"
9570fi
9571rm -f conftest*
9572fi
9573if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9574 echo "$ac_t""yes" 1>&6
9575
9576 THREADS_OBJ="threadsgi.lo"
9577
9578else
9579 echo "$ac_t""no" 1>&6
9580fi
9581
9582
9583fi
9584
9585
9586fi
9587
9588
9589 if test -z "$THREADS_OBJ" ; then
9590 wxUSE_THREADS=no
9591 echo "configure: warning: No thread support on this system" 1>&2
9592 fi
9593fi
9594
9595if test "$wxUSE_THREADS" = "yes" ; then
9596
9597 for ac_hdr in sched.h
9598do
9599ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9600echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ba337fe7 9601echo "configure:9600: checking for $ac_hdr" >&5
10f2d63a
VZ
9602if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9603 echo $ac_n "(cached) $ac_c" 1>&6
9604else
9605 cat > conftest.$ac_ext <<EOF
ba337fe7 9606#line 9605 "configure"
10f2d63a
VZ
9607#include "confdefs.h"
9608#include <$ac_hdr>
9609EOF
9610ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ba337fe7 9611{ (eval echo configure:9610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9612ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9613if test -z "$ac_err"; then
9614 rm -rf conftest*
9615 eval "ac_cv_header_$ac_safe=yes"
9616else
9617 echo "$ac_err" >&5
9618 echo "configure: failed program was:" >&5
9619 cat conftest.$ac_ext >&5
9620 rm -rf conftest*
9621 eval "ac_cv_header_$ac_safe=no"
9622fi
9623rm -f conftest*
9624fi
9625if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9626 echo "$ac_t""yes" 1>&6
9627 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9628 cat >> confdefs.h <<EOF
9629#define $ac_tr_hdr 1
9630EOF
9631
9632else
9633 echo "$ac_t""no" 1>&6
9634fi
9635done
9636
9637
9638 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
ba337fe7 9639echo "configure:9638: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
9640ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
9641if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9642 echo $ac_n "(cached) $ac_c" 1>&6
9643else
9644 ac_save_LIBS="$LIBS"
9645LIBS="-l$THREADS_LINK $LIBS"
9646cat > conftest.$ac_ext <<EOF
ba337fe7 9647#line 9646 "configure"
10f2d63a
VZ
9648#include "confdefs.h"
9649/* Override any gcc2 internal prototype to avoid an error. */
9650/* We use char because int might match the return type of a gcc2
9651 builtin and then its argument prototype would still apply. */
9652char sched_yield();
9653
9654int main() {
9655sched_yield()
9656; return 0; }
9657EOF
ba337fe7 9658if { (eval echo configure:9657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9659 rm -rf conftest*
9660 eval "ac_cv_lib_$ac_lib_var=yes"
9661else
9662 echo "configure: failed program was:" >&5
9663 cat conftest.$ac_ext >&5
9664 rm -rf conftest*
9665 eval "ac_cv_lib_$ac_lib_var=no"
9666fi
9667rm -f conftest*
9668LIBS="$ac_save_LIBS"
9669
9670fi
9671if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9672 echo "$ac_t""yes" 1>&6
9673 cat >> confdefs.h <<\EOF
9674#define HAVE_SCHED_YIELD 1
9675EOF
9676
9677else
9678 echo "$ac_t""no" 1>&6
9679echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
ba337fe7 9680echo "configure:9679: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
9681ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
9682if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9683 echo $ac_n "(cached) $ac_c" 1>&6
9684else
9685 ac_save_LIBS="$LIBS"
9686LIBS="-l"posix4" $LIBS"
9687cat > conftest.$ac_ext <<EOF
ba337fe7 9688#line 9687 "configure"
10f2d63a
VZ
9689#include "confdefs.h"
9690/* Override any gcc2 internal prototype to avoid an error. */
9691/* We use char because int might match the return type of a gcc2
9692 builtin and then its argument prototype would still apply. */
9693char sched_yield();
9694
9695int main() {
9696sched_yield()
9697; return 0; }
9698EOF
ba337fe7 9699if { (eval echo configure:9698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9700 rm -rf conftest*
9701 eval "ac_cv_lib_$ac_lib_var=yes"
9702else
9703 echo "configure: failed program was:" >&5
9704 cat conftest.$ac_ext >&5
9705 rm -rf conftest*
9706 eval "ac_cv_lib_$ac_lib_var=no"
9707fi
9708rm -f conftest*
9709LIBS="$ac_save_LIBS"
9710
9711fi
9712if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9713 echo "$ac_t""yes" 1>&6
9714 cat >> confdefs.h <<\EOF
9715#define HAVE_SCHED_YIELD 1
9716EOF
9717 POSIX4_LINK="-lposix4"
9718else
9719 echo "$ac_t""no" 1>&6
9720echo "configure: warning: wxThread::Yield will not work properly" 1>&2
9721
9722fi
9723
9724
9725fi
9726
9727
9728 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
ba337fe7 9729echo "configure:9728: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
9730ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
9731if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9732 echo $ac_n "(cached) $ac_c" 1>&6
9733else
9734 ac_save_LIBS="$LIBS"
9735LIBS="-l$THREADS_LINK $LIBS"
9736cat > conftest.$ac_ext <<EOF
ba337fe7 9737#line 9736 "configure"
10f2d63a
VZ
9738#include "confdefs.h"
9739/* Override any gcc2 internal prototype to avoid an error. */
9740/* We use char because int might match the return type of a gcc2
9741 builtin and then its argument prototype would still apply. */
9742char pthread_attr_getschedpolicy();
9743
9744int main() {
9745pthread_attr_getschedpolicy()
9746; return 0; }
9747EOF
ba337fe7 9748if { (eval echo configure:9747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9749 rm -rf conftest*
9750 eval "ac_cv_lib_$ac_lib_var=yes"
9751else
9752 echo "configure: failed program was:" >&5
9753 cat conftest.$ac_ext >&5
9754 rm -rf conftest*
9755 eval "ac_cv_lib_$ac_lib_var=no"
9756fi
9757rm -f conftest*
9758LIBS="$ac_save_LIBS"
9759
9760fi
9761if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9762 echo "$ac_t""yes" 1>&6
9763 cat >> confdefs.h <<\EOF
9764#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
9765EOF
9766
9767else
9768 echo "$ac_t""no" 1>&6
9769echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
ba337fe7 9770echo "configure:9769: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
10f2d63a
VZ
9771ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
9772if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9773 echo $ac_n "(cached) $ac_c" 1>&6
9774else
9775 ac_save_LIBS="$LIBS"
9776LIBS="-l"posix4" $LIBS"
9777cat > conftest.$ac_ext <<EOF
ba337fe7 9778#line 9777 "configure"
10f2d63a
VZ
9779#include "confdefs.h"
9780/* Override any gcc2 internal prototype to avoid an error. */
9781/* We use char because int might match the return type of a gcc2
9782 builtin and then its argument prototype would still apply. */
9783char pthread_attr_getschedpolicy();
9784
9785int main() {
9786pthread_attr_getschedpolicy()
9787; return 0; }
9788EOF
ba337fe7 9789if { (eval echo configure:9788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9790 rm -rf conftest*
9791 eval "ac_cv_lib_$ac_lib_var=yes"
9792else
9793 echo "configure: failed program was:" >&5
9794 cat conftest.$ac_ext >&5
9795 rm -rf conftest*
9796 eval "ac_cv_lib_$ac_lib_var=no"
9797fi
9798rm -f conftest*
9799LIBS="$ac_save_LIBS"
9800
9801fi
9802if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9803 echo "$ac_t""yes" 1>&6
9804 cat >> confdefs.h <<\EOF
9805#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
9806EOF
9807 POSIX4_LINK="-lposix4"
9808else
9809 echo "$ac_t""no" 1>&6
9810echo "configure: warning: Setting thread priority will not work" 1>&2
9811
9812fi
9813
9814
9815fi
9816
9817
9818 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
ba337fe7 9819echo "configure:9818: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
9820ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
9821if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9822 echo $ac_n "(cached) $ac_c" 1>&6
9823else
9824 ac_save_LIBS="$LIBS"
9825LIBS="-l$THREADS_LINK $LIBS"
9826cat > conftest.$ac_ext <<EOF
ba337fe7 9827#line 9826 "configure"
10f2d63a
VZ
9828#include "confdefs.h"
9829/* Override any gcc2 internal prototype to avoid an error. */
9830/* We use char because int might match the return type of a gcc2
9831 builtin and then its argument prototype would still apply. */
9832char pthread_cancel();
9833
9834int main() {
9835pthread_cancel()
9836; return 0; }
9837EOF
ba337fe7 9838if { (eval echo configure:9837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9839 rm -rf conftest*
9840 eval "ac_cv_lib_$ac_lib_var=yes"
9841else
9842 echo "configure: failed program was:" >&5
9843 cat conftest.$ac_ext >&5
9844 rm -rf conftest*
9845 eval "ac_cv_lib_$ac_lib_var=no"
9846fi
9847rm -f conftest*
9848LIBS="$ac_save_LIBS"
9849
9850fi
9851if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9852 echo "$ac_t""yes" 1>&6
9853 cat >> confdefs.h <<\EOF
9854#define HAVE_PTHREAD_CANCEL 1
9855EOF
9856
9857else
9858 echo "$ac_t""no" 1>&6
9859echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
9860fi
9861
9862
9863 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
ba337fe7 9864echo "configure:9863: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
9865if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
9866 echo $ac_n "(cached) $ac_c" 1>&6
9867else
9868
9869 cat > conftest.$ac_ext <<EOF
ba337fe7 9870#line 9869 "configure"
10f2d63a
VZ
9871#include "confdefs.h"
9872#include <pthread.h>
9873int main() {
9874
9875 pthread_cleanup_push(NULL, NULL);
9876 pthread_cleanup_pop(0);
9877
9878; return 0; }
9879EOF
ba337fe7 9880if { (eval echo configure:9879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9881 rm -rf conftest*
9882
9883 wx_cv_func_pthread_cleanup_push=yes
9884 cat >> confdefs.h <<\EOF
9885#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
9886EOF
9887
9888
9889else
9890 echo "configure: failed program was:" >&5
9891 cat conftest.$ac_ext >&5
9892 rm -rf conftest*
9893
9894 wx_cv_func_pthread_cleanup_push=no
9895
9896fi
9897rm -f conftest*
9898
9899fi
9900
9901echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
9902
9903 THREADS_LINK="-l$THREADS_LINK"
9904fi
9905
9906fi
9907
9908if test "$wxUSE_THREADS" = "yes"; then
9909 cat >> confdefs.h <<\EOF
9910#define wxUSE_THREADS 1
9911EOF
9912
9913
9914 CFLAGS="${CFLAGS} -D_REENTRANT"
9915 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
9916
9917 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
9918else
9919 if test "$ac_cv_func_strtok_r" = "yes"; then
9920 unset ac_cv_func_strtok_r
9921
9922 ac_ext=C
9923# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9924ac_cpp='$CXXCPP $CPPFLAGS'
9925ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9926ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9927cross_compiling=$ac_cv_prog_cxx_cross
9928
9929 for ac_func in strtok_r
9930do
9931echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ba337fe7 9932echo "configure:9931: checking for $ac_func" >&5
10f2d63a
VZ
9933if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9934 echo $ac_n "(cached) $ac_c" 1>&6
9935else
9936 cat > conftest.$ac_ext <<EOF
ba337fe7 9937#line 9936 "configure"
10f2d63a
VZ
9938#include "confdefs.h"
9939/* System header to define __stub macros and hopefully few prototypes,
9940 which can conflict with char $ac_func(); below. */
9941#include <assert.h>
9942/* Override any gcc2 internal prototype to avoid an error. */
9943#ifdef __cplusplus
9944extern "C"
9945#endif
9946/* We use char because int might match the return type of a gcc2
9947 builtin and then its argument prototype would still apply. */
9948char $ac_func();
9949
9950int main() {
9951
9952/* The GNU C library defines this for functions which it implements
9953 to always fail with ENOSYS. Some functions are actually named
9954 something starting with __ and the normal name is an alias. */
9955#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9956choke me
9957#else
788deba1 9958$ac_func();
10f2d63a
VZ
9959#endif
9960
9961; return 0; }
9962EOF
ba337fe7 9963if { (eval echo configure:9962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9964 rm -rf conftest*
9965 eval "ac_cv_func_$ac_func=yes"
9966else
9967 echo "configure: failed program was:" >&5
9968 cat conftest.$ac_ext >&5
9969 rm -rf conftest*
9970 eval "ac_cv_func_$ac_func=no"
9971fi
9972rm -f conftest*
9973fi
9974
9975if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9976 echo "$ac_t""yes" 1>&6
9977 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9978 cat >> confdefs.h <<EOF
9979#define $ac_tr_func 1
9980EOF
9981
9982else
9983 echo "$ac_t""no" 1>&6
9984fi
9985done
9986
9987 ac_ext=c
9988# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9989ac_cpp='$CPP $CPPFLAGS'
9990ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9991ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9992cross_compiling=$ac_cv_prog_cc_cross
9993
9994
9995 if test "$ac_cv_func_strtok_r" != "yes"; then
9996 ac_cv_func_strtok_r=yes
9997 CFLAGS="${CFLAGS} -D_REENTRANT"
9998 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
9999 fi
10000 fi
10001fi
10002
10003if test "$WXGTK12" = 1 ; then
10004 cat >> confdefs.h <<EOF
10005#define __WXGTK12__ $WXGTK12
10006EOF
10007
10008fi
10009
10010if test "$WXWINE" = 1 ; then
10011 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
10012fi
10013
10014if test "$wxUSE_CYGWIN" = 1 ; then
10015 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
10016fi
10017
10018WXDEBUG=
10019
10020if test "$wxUSE_DEBUG_INFO" = "yes" ; then
10021 WXDEBUG="-g"
10022 wxUSE_OPTIMISE=no
10023fi
10024
10025if test "$wxUSE_DEBUG_GDB" = "yes" ; then
10026 wxUSE_DEBUG_INFO=yes
10027 WXDEBUG="-ggdb"
10028fi
10029
10030if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
10031 cat >> confdefs.h <<\EOF
10032#define WXDEBUG 1
10033EOF
10034
10035 WXDEBUG_DEFINE="-D__WXDEBUG__"
10036else
10037 if test "$wxUSE_GTK" = 1 ; then
10038 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
10039 fi
10040fi
10041
10042if test "$wxUSE_MEM_TRACING" = "yes" ; then
10043 cat >> confdefs.h <<\EOF
10044#define wxUSE_MEMORY_TRACING 1
10045EOF
10046
10047 cat >> confdefs.h <<\EOF
10048#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
10049EOF
10050
10051 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
10052fi
10053
10054if test "$wxUSE_DMALLOC" = "yes" ; then
10055 DMALLOC_LINK="-ldmalloc"
10056fi
10057
10058PROFILE=
10059if test "$wxUSE_PROFILE" = "yes" ; then
10060 PROFILE="-pg"
10061fi
10062
10063DEP_INFO_FLAGS=
10064if test "$GCC" = yes ; then
10065 if test "$wxUSE_NO_RTTI" = "yes" ; then
10066 WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-rtti"
10067 fi
10068 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
10069 WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-exceptions"
10070 fi
10071 if test "$wxUSE_PERMISSIVE" = "yes" ; then
10072 CFLAGS="${CFLAGS} -fpermissive"
10073 CXXFLAGS="${CXXFLAGS} -fpermissive"
10074 fi
10075 if test "$wxUSE_NO_DEPS" = "no" ; then
10076 DEP_INFO_FLAGS="-MMD"
10077 fi
10078fi
10079
10080
10081CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
10082CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
10083if test "$wxUSE_OPTIMISE" = "no" ; then
10084 OPTIMISE=
10085else
10086 if test "$GCC" = yes ; then
10087 OPTIMISE="-O2"
10088 case "${host}" in
10089 i586-*-*|i686-*-* )
10090 OPTIMISE="${OPTIMISE} "
10091 ;;
10092 esac
10093 else
10094 OPTIMISE="-O"
10095 fi
10096fi
10097
10098
10099ZLIB_INCLUDE=
10100if test "$wxUSE_ZLIB" = "yes" ; then
10101 cat >> confdefs.h <<\EOF
10102#define wxUSE_ZLIB 1
10103EOF
10104
10105 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
10106fi
10107
10108PNG_INCLUDE=
10109if test "$wxUSE_LIBPNG" = "yes" ; then
10110 cat >> confdefs.h <<\EOF
10111#define wxUSE_LIBPNG 1
10112EOF
10113
10114 PNG_INCLUDE="-I\${top_srcdir}/src/png"
10115 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
10116fi
10117
10118JPEG_INCLUDE=
10119if test "$wxUSE_LIBJPEG" = "yes" ; then
10120 cat >> confdefs.h <<\EOF
10121#define wxUSE_LIBJPEG 1
10122EOF
10123
10124 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
10125fi
10126
10127if test "$wxUSE_OPENGL" = "yes"; then
10128 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
10129echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
ba337fe7 10130echo "configure:10129: checking for GL/gl.h" >&5
10f2d63a
VZ
10131if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10132 echo $ac_n "(cached) $ac_c" 1>&6
10133else
10134 cat > conftest.$ac_ext <<EOF
ba337fe7 10135#line 10134 "configure"
10f2d63a
VZ
10136#include "confdefs.h"
10137#include <GL/gl.h>
10138EOF
10139ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ba337fe7 10140{ (eval echo configure:10139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10141ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10142if test -z "$ac_err"; then
10143 rm -rf conftest*
10144 eval "ac_cv_header_$ac_safe=yes"
10145else
10146 echo "$ac_err" >&5
10147 echo "configure: failed program was:" >&5
10148 cat conftest.$ac_ext >&5
10149 rm -rf conftest*
10150 eval "ac_cv_header_$ac_safe=no"
10151fi
10152rm -f conftest*
10153fi
10154if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10155 echo "$ac_t""yes" 1>&6
10156
10157 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
ba337fe7 10158echo "configure:10157: checking for glInitNames in -lGL" >&5
10f2d63a
VZ
10159ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
10160if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10161 echo $ac_n "(cached) $ac_c" 1>&6
10162else
10163 ac_save_LIBS="$LIBS"
10164LIBS="-lGL wxUSE_OPENGL=0 $LIBS"
10165cat > conftest.$ac_ext <<EOF
ba337fe7 10166#line 10165 "configure"
10f2d63a
VZ
10167#include "confdefs.h"
10168/* Override any gcc2 internal prototype to avoid an error. */
10169/* We use char because int might match the return type of a gcc2
10170 builtin and then its argument prototype would still apply. */
10171char glInitNames();
10172
10173int main() {
10174glInitNames()
10175; return 0; }
10176EOF
ba337fe7 10177if { (eval echo configure:10176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10178 rm -rf conftest*
10179 eval "ac_cv_lib_$ac_lib_var=yes"
10180else
10181 echo "configure: failed program was:" >&5
10182 cat conftest.$ac_ext >&5
10183 rm -rf conftest*
10184 eval "ac_cv_lib_$ac_lib_var=no"
10185fi
10186rm -f conftest*
10187LIBS="$ac_save_LIBS"
10188
10189fi
10190if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10191 echo "$ac_t""yes" 1>&6
10192
10193 OPENGL_LINK="-lGL"
10194 cat >> confdefs.h <<\EOF
10195#define wxUSE_OPENGL 1
10196EOF
10197
10198 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
10199
10200else
10201 echo "$ac_t""no" 1>&6
10202
10203 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
ba337fe7 10204echo "configure:10203: checking for glInitNames in -lMesaGL" >&5
10f2d63a
VZ
10205ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
10206if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10207 echo $ac_n "(cached) $ac_c" 1>&6
10208else
10209 ac_save_LIBS="$LIBS"
10210LIBS="-lMesaGL $LIBS"
10211cat > conftest.$ac_ext <<EOF
ba337fe7 10212#line 10211 "configure"
10f2d63a
VZ
10213#include "confdefs.h"
10214/* Override any gcc2 internal prototype to avoid an error. */
10215/* We use char because int might match the return type of a gcc2
10216 builtin and then its argument prototype would still apply. */
10217char glInitNames();
10218
10219int main() {
10220glInitNames()
10221; return 0; }
10222EOF
ba337fe7 10223if { (eval echo configure:10222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10224 rm -rf conftest*
10225 eval "ac_cv_lib_$ac_lib_var=yes"
10226else
10227 echo "configure: failed program was:" >&5
10228 cat conftest.$ac_ext >&5
10229 rm -rf conftest*
10230 eval "ac_cv_lib_$ac_lib_var=no"
10231fi
10232rm -f conftest*
10233LIBS="$ac_save_LIBS"
10234
10235fi
10236if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10237 echo "$ac_t""yes" 1>&6
10238
10239 OPENGL_LINK="-lMesaGL"
10240 cat >> confdefs.h <<\EOF
10241#define wxUSE_OPENGL 1
10242EOF
10243
10244 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
10245
10246else
10247 echo "$ac_t""no" 1>&6
10248wxUSE_OPENGL=0
10249fi
10250
10251
10252fi
10253
10254
10255else
10256 echo "$ac_t""no" 1>&6
10257wxUSE_OPENGL=0
10258fi
10259
10260fi
10261
10262
10263if test "$wxUSE_GUI" = "yes"; then
10264 cat >> confdefs.h <<\EOF
10265#define wxUSE_GUI 1
10266EOF
10267
10268
10269 else
10270 cat >> confdefs.h <<\EOF
10271#define wxUSE_NOGUI 1
10272EOF
10273
10274fi
10275
10276
10277if test "$wxUSE_UNIX" = "yes"; then
10278 cat >> confdefs.h <<\EOF
10279#define wxUSE_UNIX 1
10280EOF
10281
10282fi
10283
10284
10285if test "$wxUSE_APPLE_IEEE" = "yes"; then
10286 cat >> confdefs.h <<\EOF
10287#define wxUSE_APPLE_IEEE 1
10288EOF
10289
10290fi
10291
10f2d63a
VZ
10292if test "$wxUSE_WAVE" = "yes"; then
10293 cat >> confdefs.h <<\EOF
10294#define wxUSE_WAVE 1
10295EOF
10296
10297fi
10298
10299if test "$wxUSE_FILE" = "yes"; then
10300 cat >> confdefs.h <<\EOF
10301#define wxUSE_FILE 1
10302EOF
10303
10304fi
10305
10306if test "$wxUSE_FS_INET" = "yes"; then
10307 cat >> confdefs.h <<\EOF
10308#define wxUSE_FS_INET 1
10309EOF
10310
10311fi
10312
10313if test "$wxUSE_FS_ZIP" = "yes"; then
10314 cat >> confdefs.h <<\EOF
10315#define wxUSE_FS_ZIP 1
10316EOF
10317
10318fi
10319
10320if test "$wxUSE_ZIPSTREAM" = "yes"; then
10321 cat >> confdefs.h <<\EOF
10322#define wxUSE_ZIPSTREAM 1
10323EOF
10324
10325fi
10326
10327if test "$wxUSE_BUSYINFO" = "yes"; then
10328 cat >> confdefs.h <<\EOF
10329#define wxUSE_BUSYINFO 1
10330EOF
10331
10332fi
10333
10334if test "$wxUSE_STD_IOSTREAM" = "yes"; then
10335 cat >> confdefs.h <<\EOF
10336#define wxUSE_STD_IOSTREAM 1
10337EOF
10338
10339fi
10340
10341if test "$wxUSE_TEXTFILE" = "yes"; then
10342 if test "$wxUSE_FILE" != "yes"; then
10343 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
10344 else
10345 cat >> confdefs.h <<\EOF
10346#define wxUSE_TEXTFILE 1
10347EOF
10348
10349 fi
10350fi
10351
10352if test "$wxUSE_CONFIG" = "yes" ; then
10353 if test "$wxUSE_TEXTFILE" != "yes"; then
10354 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
10355 else
10356 cat >> confdefs.h <<\EOF
10357#define wxUSE_CONFIG 1
10358EOF
10359
10360 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
10361 fi
10362fi
10363
10364if test "$wxUSE_INTL" = "yes" ; then
10365 if test "$wxUSE_FILE" != "yes"; then
10366 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
10367 else
10368 cat >> confdefs.h <<\EOF
10369#define wxUSE_INTL 1
10370EOF
10371
10372 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
10373 fi
10374fi
10375
10376if test "$wxUSE_LOG" = "yes"; then
10377 cat >> confdefs.h <<\EOF
10378#define wxUSE_LOG 1
10379EOF
10380
10381fi
10382
10383if test "$wxUSE_LONGLONG" = "yes"; then
10384 cat >> confdefs.h <<\EOF
10385#define wxUSE_LONGLONG 1
10386EOF
10387
10388fi
10389
10f2d63a
VZ
10390if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
10391 cat >> confdefs.h <<\EOF
10392#define wxUSE_DIALUP_MANAGER 1
10393EOF
10394
10395fi
10396
10397if test "$wxUSE_STREAMS" = "yes" ; then
10398 cat >> confdefs.h <<\EOF
10399#define wxUSE_STREAMS 1
10400EOF
10401
10402fi
10403
10404if test "$wxUSE_SERIAL" = "yes" ; then
10405 cat >> confdefs.h <<\EOF
10406#define wxUSE_SERIAL 1
10407EOF
10408
10409fi
10410
10411
afc31813
VZ
10412if test "$wxUSE_TIMEDATE" = "yes"; then
10413 for ac_func in gettimeofday localtime ftime
10414do
10415echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ba337fe7 10416echo "configure:10415: checking for $ac_func" >&5
afc31813
VZ
10417if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10418 echo $ac_n "(cached) $ac_c" 1>&6
10419else
10420 cat > conftest.$ac_ext <<EOF
ba337fe7 10421#line 10420 "configure"
10f2d63a 10422#include "confdefs.h"
afc31813
VZ
10423/* System header to define __stub macros and hopefully few prototypes,
10424 which can conflict with char $ac_func(); below. */
10425#include <assert.h>
10426/* Override any gcc2 internal prototype to avoid an error. */
10427/* We use char because int might match the return type of a gcc2
10428 builtin and then its argument prototype would still apply. */
10429char $ac_func();
10430
10f2d63a 10431int main() {
afc31813
VZ
10432
10433/* The GNU C library defines this for functions which it implements
10434 to always fail with ENOSYS. Some functions are actually named
10435 something starting with __ and the normal name is an alias. */
10436#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10437choke me
10438#else
788deba1 10439$ac_func();
afc31813
VZ
10440#endif
10441
10f2d63a
VZ
10442; return 0; }
10443EOF
ba337fe7 10444if { (eval echo configure:10443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 10445 rm -rf conftest*
afc31813 10446 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
10447else
10448 echo "configure: failed program was:" >&5
10449 cat conftest.$ac_ext >&5
10450 rm -rf conftest*
afc31813
VZ
10451 eval "ac_cv_func_$ac_func=no"
10452fi
10453rm -f conftest*
10454fi
10455
10456if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10457 echo "$ac_t""yes" 1>&6
10458 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10459 cat >> confdefs.h <<EOF
10460#define $ac_tr_func 1
10461EOF
10462
10463else
10464 echo "$ac_t""no" 1>&6
10465fi
10466done
10467
10468
10469 if test "$ac_cv_func_gettimeofday" = "yes"; then
10470 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
ba337fe7 10471echo "configure:10470: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
10472if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
10473 echo $ac_n "(cached) $ac_c" 1>&6
10474else
10475
10476
10477 ac_ext=C
10478# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10479ac_cpp='$CXXCPP $CPPFLAGS'
10480ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10481ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10482cross_compiling=$ac_cv_prog_cxx_cross
10483
10484
10485 cat > conftest.$ac_ext <<EOF
ba337fe7 10486#line 10485 "configure"
10f2d63a 10487#include "confdefs.h"
afc31813
VZ
10488
10489 #include <sys/time.h>
10490 #include <unistd.h>
10491
10f2d63a 10492int main() {
afc31813
VZ
10493
10494 struct timeval tv;
10495 struct timezone tz;
10496 gettimeofday(&tv, &tz);
10497
10f2d63a
VZ
10498; return 0; }
10499EOF
ba337fe7 10500if { (eval echo configure:10499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 10501 rm -rf conftest*
afc31813 10502 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
10503else
10504 echo "configure: failed program was:" >&5
10505 cat conftest.$ac_ext >&5
10506 rm -rf conftest*
10507 cat > conftest.$ac_ext <<EOF
ba337fe7 10508#line 10507 "configure"
10f2d63a 10509#include "confdefs.h"
afc31813
VZ
10510
10511 #include <sys/time.h>
10512 #include <unistd.h>
10513
10f2d63a 10514int main() {
afc31813
VZ
10515
10516 struct timeval tv;
10517 gettimeofday(&tv);
10518
10f2d63a
VZ
10519; return 0; }
10520EOF
ba337fe7 10521if { (eval echo configure:10520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 10522 rm -rf conftest*
afc31813 10523 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
10524else
10525 echo "configure: failed program was:" >&5
10526 cat conftest.$ac_ext >&5
10527 rm -rf conftest*
afc31813
VZ
10528 wx_cv_func_gettimeofday_has_2_args=unknown
10529
10f2d63a
VZ
10530fi
10531rm -f conftest*
afc31813 10532
10f2d63a
VZ
10533fi
10534rm -f conftest*
afc31813 10535 ac_ext=c
10f2d63a
VZ
10536# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10537ac_cpp='$CPP $CPPFLAGS'
10538ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10539ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10540cross_compiling=$ac_cv_prog_cc_cross
10541
afc31813
VZ
10542
10543fi
10544
10545echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 10546
afc31813
VZ
10547 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
10548 cat >> confdefs.h <<\EOF
10549#define WX_GETTIMEOFDAY_NO_TZ 1
10550EOF
10551
10552 fi
10553 fi
10554
10555 cat >> confdefs.h <<\EOF
10556#define wxUSE_TIMEDATE 1
10557EOF
10558
10559 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
10560fi
10561
10562
10563if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 10564 echo $ac_n "checking for socket""... $ac_c" 1>&6
ba337fe7 10565echo "configure:10564: checking for socket" >&5
c63c7106
VZ
10566if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
10567 echo $ac_n "(cached) $ac_c" 1>&6
10568else
10569 cat > conftest.$ac_ext <<EOF
ba337fe7 10570#line 10569 "configure"
c63c7106
VZ
10571#include "confdefs.h"
10572/* System header to define __stub macros and hopefully few prototypes,
10573 which can conflict with char socket(); below. */
10574#include <assert.h>
10575/* Override any gcc2 internal prototype to avoid an error. */
10576/* We use char because int might match the return type of a gcc2
10577 builtin and then its argument prototype would still apply. */
10578char socket();
10579
10580int main() {
10581
10582/* The GNU C library defines this for functions which it implements
10583 to always fail with ENOSYS. Some functions are actually named
10584 something starting with __ and the normal name is an alias. */
10585#if defined (__stub_socket) || defined (__stub___socket)
10586choke me
10587#else
788deba1 10588socket();
c63c7106
VZ
10589#endif
10590
10591; return 0; }
10592EOF
ba337fe7 10593if { (eval echo configure:10592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10594 rm -rf conftest*
10595 eval "ac_cv_func_socket=yes"
10596else
10597 echo "configure: failed program was:" >&5
10598 cat conftest.$ac_ext >&5
10599 rm -rf conftest*
10600 eval "ac_cv_func_socket=no"
10601fi
10602rm -f conftest*
10603fi
10604
10605if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
10606 echo "$ac_t""yes" 1>&6
10607 :
10608else
10609 echo "$ac_t""no" 1>&6
10610echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
ba337fe7 10611echo "configure:10610: checking for socket in -lsocket" >&5
c63c7106
VZ
10612ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
10613if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10614 echo $ac_n "(cached) $ac_c" 1>&6
10615else
10616 ac_save_LIBS="$LIBS"
10617LIBS="-lsocket $LIBS"
10618cat > conftest.$ac_ext <<EOF
ba337fe7 10619#line 10618 "configure"
c63c7106
VZ
10620#include "confdefs.h"
10621/* Override any gcc2 internal prototype to avoid an error. */
10622/* We use char because int might match the return type of a gcc2
10623 builtin and then its argument prototype would still apply. */
10624char socket();
10625
10626int main() {
10627socket()
10628; return 0; }
10629EOF
ba337fe7 10630if { (eval echo configure:10629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10631 rm -rf conftest*
10632 eval "ac_cv_lib_$ac_lib_var=yes"
10633else
10634 echo "configure: failed program was:" >&5
10635 cat conftest.$ac_ext >&5
10636 rm -rf conftest*
10637 eval "ac_cv_lib_$ac_lib_var=no"
10638fi
10639rm -f conftest*
10640LIBS="$ac_save_LIBS"
10641
10642fi
10643if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10644 echo "$ac_t""yes" 1>&6
10645 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
10646else
10647 echo "$ac_t""no" 1>&6
afc31813
VZ
10648
10649 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
10650 wxUSE_SOCKETS=no
10651
10652
c63c7106
VZ
10653fi
10654
10655
10656fi
10657
10f2d63a
VZ
10658fi
10659
afc31813
VZ
10660if test "$wxUSE_SOCKETS" = "yes" ; then
10661
10662 ac_ext=C
10663# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10664ac_cpp='$CXXCPP $CPPFLAGS'
10665ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10666ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10667cross_compiling=$ac_cv_prog_cxx_cross
10668
10669 echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6
ba337fe7 10670echo "configure:10669: checking the type of the third argument of getsockname" >&5
afc31813 10671 cat > conftest.$ac_ext <<EOF
ba337fe7 10672#line 10671 "configure"
afc31813
VZ
10673#include "confdefs.h"
10674#include <sys/socket.h>
10675int main() {
10676socklen_t len; getsockname(0, 0, &len);
10677; return 0; }
10678EOF
ba337fe7 10679if { (eval echo configure:10678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813
VZ
10680 rm -rf conftest*
10681 cat >> confdefs.h <<\EOF
10682#define SOCKLEN_T socklen_t
10683EOF
10684 echo "$ac_t""socklen_t" 1>&6
10685else
10686 echo "configure: failed program was:" >&5
10687 cat conftest.$ac_ext >&5
10688 rm -rf conftest*
10689 cat > conftest.$ac_ext <<EOF
ba337fe7 10690#line 10689 "configure"
afc31813
VZ
10691#include "confdefs.h"
10692#include <sys/socket.h>
10693int main() {
10694size_t len; getsockname(0, 0, &len);
10695; return 0; }
10696EOF
ba337fe7 10697if { (eval echo configure:10696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813
VZ
10698 rm -rf conftest*
10699 cat >> confdefs.h <<\EOF
10700#define SOCKLEN_T size_t
10701EOF
10702 echo "$ac_t""size_t" 1>&6
10703else
10704 echo "configure: failed program was:" >&5
10705 cat conftest.$ac_ext >&5
10706 rm -rf conftest*
10707 cat > conftest.$ac_ext <<EOF
ba337fe7 10708#line 10707 "configure"
afc31813
VZ
10709#include "confdefs.h"
10710#include <sys/socket.h>
10711int main() {
10712int len; getsockname(0, 0, &len);
10713; return 0; }
10714EOF
ba337fe7 10715if { (eval echo configure:10714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813
VZ
10716 rm -rf conftest*
10717 cat >> confdefs.h <<\EOF
10718#define SOCKLEN_T int
10719EOF
10720 echo "$ac_t""int" 1>&6
10721else
10722 echo "configure: failed program was:" >&5
10723 cat conftest.$ac_ext >&5
10724 rm -rf conftest*
10725 echo "$ac_t""unknown" 1>&6
10726
10727fi
10728rm -f conftest*
10729
10730fi
10731rm -f conftest*
10732
10733fi
10734rm -f conftest*
10735 ac_ext=c
10736# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10737ac_cpp='$CPP $CPPFLAGS'
10738ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10739ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10740cross_compiling=$ac_cv_prog_cc_cross
10741
10742
10743 cat >> confdefs.h <<\EOF
10744#define wxUSE_SOCKETS 1
10745EOF
10746
10747 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wxsocket"
10748 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
10749fi
10750
10f2d63a
VZ
10751
10752if test "$wxUSE_JOYSTICK" = 1; then
10753 for ac_hdr in linux/joystick.h
10754do
10755ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10756echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ba337fe7 10757echo "configure:10756: checking for $ac_hdr" >&5
10f2d63a
VZ
10758if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10759 echo $ac_n "(cached) $ac_c" 1>&6
10760else
10761 cat > conftest.$ac_ext <<EOF
ba337fe7 10762#line 10761 "configure"
10f2d63a
VZ
10763#include "confdefs.h"
10764#include <$ac_hdr>
10765EOF
10766ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ba337fe7 10767{ (eval echo configure:10766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10768ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10769if test -z "$ac_err"; then
10770 rm -rf conftest*
10771 eval "ac_cv_header_$ac_safe=yes"
10772else
10773 echo "$ac_err" >&5
10774 echo "configure: failed program was:" >&5
10775 cat conftest.$ac_ext >&5
10776 rm -rf conftest*
10777 eval "ac_cv_header_$ac_safe=no"
10778fi
10779rm -f conftest*
10780fi
10781if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10782 echo "$ac_t""yes" 1>&6
10783 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10784 cat >> confdefs.h <<EOF
10785#define $ac_tr_hdr 1
10786EOF
10787
10788else
10789 echo "$ac_t""no" 1>&6
10790fi
10791done
10792
10793 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
10794 cat >> confdefs.h <<\EOF
10795#define wxUSE_JOYSTICK 1
10796EOF
10797
10798 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10799 fi
10800fi
10801
10802
10803HAVE_DL_FUNCS=0
10804HAVE_SHL_FUNCS=0
10805if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
10806 for ac_func in dlopen
10807do
10808echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ba337fe7 10809echo "configure:10808: checking for $ac_func" >&5
10f2d63a
VZ
10810if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10811 echo $ac_n "(cached) $ac_c" 1>&6
10812else
10813 cat > conftest.$ac_ext <<EOF
ba337fe7 10814#line 10813 "configure"
10f2d63a
VZ
10815#include "confdefs.h"
10816/* System header to define __stub macros and hopefully few prototypes,
10817 which can conflict with char $ac_func(); below. */
10818#include <assert.h>
10819/* Override any gcc2 internal prototype to avoid an error. */
10820/* We use char because int might match the return type of a gcc2
10821 builtin and then its argument prototype would still apply. */
10822char $ac_func();
10823
10824int main() {
10825
10826/* The GNU C library defines this for functions which it implements
10827 to always fail with ENOSYS. Some functions are actually named
10828 something starting with __ and the normal name is an alias. */
10829#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10830choke me
10831#else
788deba1 10832$ac_func();
10f2d63a
VZ
10833#endif
10834
10835; return 0; }
10836EOF
ba337fe7 10837if { (eval echo configure:10836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10838 rm -rf conftest*
10839 eval "ac_cv_func_$ac_func=yes"
10840else
10841 echo "configure: failed program was:" >&5
10842 cat conftest.$ac_ext >&5
10843 rm -rf conftest*
10844 eval "ac_cv_func_$ac_func=no"
10845fi
10846rm -f conftest*
10847fi
10848
10849if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10850 echo "$ac_t""yes" 1>&6
10851 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10852 cat >> confdefs.h <<EOF
10853#define $ac_tr_func 1
10854EOF
10855
10856 cat >> confdefs.h <<\EOF
10857#define HAVE_DLOPEN 1
10858EOF
10859
10860 HAVE_DL_FUNCS=1
10861
10862else
10863 echo "$ac_t""no" 1>&6
10864echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
ba337fe7 10865echo "configure:10864: checking for dlopen in -ldl" >&5
10f2d63a
VZ
10866ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
10867if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10868 echo $ac_n "(cached) $ac_c" 1>&6
10869else
10870 ac_save_LIBS="$LIBS"
10871LIBS="-ldl $LIBS"
10872cat > conftest.$ac_ext <<EOF
ba337fe7 10873#line 10872 "configure"
10f2d63a
VZ
10874#include "confdefs.h"
10875/* Override any gcc2 internal prototype to avoid an error. */
10876/* We use char because int might match the return type of a gcc2
10877 builtin and then its argument prototype would still apply. */
10878char dlopen();
10879
10880int main() {
10881dlopen()
10882; return 0; }
10883EOF
ba337fe7 10884if { (eval echo configure:10883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10885 rm -rf conftest*
10886 eval "ac_cv_lib_$ac_lib_var=yes"
10887else
10888 echo "configure: failed program was:" >&5
10889 cat conftest.$ac_ext >&5
10890 rm -rf conftest*
10891 eval "ac_cv_lib_$ac_lib_var=no"
10892fi
10893rm -f conftest*
10894LIBS="$ac_save_LIBS"
10895
10896fi
10897if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10898 echo "$ac_t""yes" 1>&6
10899
10900 cat >> confdefs.h <<\EOF
10901#define HAVE_DLOPEN 1
10902EOF
10903
10904 HAVE_DL_FUNCS=1
10905 LIBS="$LIBS -ldl"
10906
10907else
10908 echo "$ac_t""no" 1>&6
10909
10910 for ac_func in shl_load
10911do
10912echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
ba337fe7 10913echo "configure:10912: checking for $ac_func" >&5
10f2d63a
VZ
10914if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10915 echo $ac_n "(cached) $ac_c" 1>&6
10916else
10917 cat > conftest.$ac_ext <<EOF
ba337fe7 10918#line 10917 "configure"
10f2d63a
VZ
10919#include "confdefs.h"
10920/* System header to define __stub macros and hopefully few prototypes,
10921 which can conflict with char $ac_func(); below. */
10922#include <assert.h>
10923/* Override any gcc2 internal prototype to avoid an error. */
10924/* We use char because int might match the return type of a gcc2
10925 builtin and then its argument prototype would still apply. */
10926char $ac_func();
10927
10928int main() {
10929
10930/* The GNU C library defines this for functions which it implements
10931 to always fail with ENOSYS. Some functions are actually named
10932 something starting with __ and the normal name is an alias. */
10933#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10934choke me
10935#else
788deba1 10936$ac_func();
10f2d63a
VZ
10937#endif
10938
10939; return 0; }
10940EOF
ba337fe7 10941if { (eval echo configure:10940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10942 rm -rf conftest*
10943 eval "ac_cv_func_$ac_func=yes"
10944else
10945 echo "configure: failed program was:" >&5
10946 cat conftest.$ac_ext >&5
10947 rm -rf conftest*
10948 eval "ac_cv_func_$ac_func=no"
10949fi
10950rm -f conftest*
10951fi
10952
10953if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10954 echo "$ac_t""yes" 1>&6
10955 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10956 cat >> confdefs.h <<EOF
10957#define $ac_tr_func 1
10958EOF
10959
10960 cat >> confdefs.h <<\EOF
10961#define HAVE_SHL_LOAD 1
10962EOF
10963
10964 HAVE_SHL_FUNCS=1
10965
10966else
10967 echo "$ac_t""no" 1>&6
10968fi
10969done
10970
10971
10972fi
10973
10974
10975fi
10976done
10977
10978
10979 if test "$HAVE_DL_FUNCS" = 0; then
10980 if test "$HAVE_SHL_FUNCS" = 0; then
10981 if test "$USE_UNIX" = 1; then
10982 echo "configure: warning: "--with-dynlib and --with-odbc will be disabled due to missing shared library support"" 1>&2
10983 wxUSE_ODBC=no
10984 wxUSE_DYNLIB_CLASS=no
10985 else
10986 echo "configure: warning: "Cannot check dynlib requirements on non-Unix platforms. dynlib remains enabled."" 1>&2
10987 fi
10988 fi
10989 fi
10990fi
10991
10992if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
10993 cat >> confdefs.h <<\EOF
10994#define wxUSE_DYNLIB_CLASS 1
10995EOF
10996
10997fi
10998
10999
11000if test "$wxUSE_UNICODE" = "yes" ; then
11001 cat >> confdefs.h <<\EOF
11002#define wxUSE_UNICODE 1
11003EOF
11004
11005fi
11006
11007if test "$wxUSE_WCSRTOMBS" = "yes" ; then
11008 cat >> confdefs.h <<\EOF
11009#define wxUSE_WCSRTOMBS 1
11010EOF
11011
11012fi
11013
11014if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
11015 cat >> confdefs.h <<\EOF
11016#define wxUSE_EXPERIMENTAL_PRINTF 1
11017EOF
11018
11019fi
11020
11021
11022IODBC_C_SRC=""
11023if test "$wxUSE_ODBC" = "yes" ; then
11024 cat >> confdefs.h <<\EOF
11025#define wxUSE_ODBC 1
11026EOF
11027
11028 WXODBCFLAG="-D_IODBC_"
11029 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
11030 IODBCOBJS="\$(IODBC_OBJS)"
11031else
11032 IODBCOBJS=
11033fi
11034
11035
11036if test "$wxUSE_POSTSCRIPT" = "yes" ; then
11037 cat >> confdefs.h <<\EOF
11038#define wxUSE_POSTSCRIPT 1
11039EOF
11040
11041fi
11042
11043cat >> confdefs.h <<\EOF
11044#define wxUSE_AFM_FOR_POSTSCRIPT 1
11045EOF
11046
11047
11048cat >> confdefs.h <<\EOF
11049#define wxUSE_NORMALIZED_PS_FONTS 1
11050EOF
11051
11052
11053
11054if test "$wxUSE_CONSTRAINTS" = "yes"; then
11055 cat >> confdefs.h <<\EOF
11056#define wxUSE_CONSTRAINTS 1
11057EOF
11058
11059 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
11060fi
11061
11062if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
11063 cat >> confdefs.h <<\EOF
11064#define wxUSE_MDI_ARCHITECTURE 1
11065EOF
11066
11067 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
11068fi
11069
11070if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
11071 cat >> confdefs.h <<\EOF
11072#define wxUSE_DOC_VIEW_ARCHITECTURE 1
11073EOF
11074
11075 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
11076 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
11077 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
11078 fi
11079fi
11080
11081if test "$wxUSE_HELP" = "yes"; then
11082 cat >> confdefs.h <<\EOF
11083#define wxUSE_HELP 1
11084EOF
11085
11086 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
11087fi
11088
11089if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
11090 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11091 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
11092 else
11093 cat >> confdefs.h <<\EOF
11094#define wxUSE_PRINTING_ARCHITECTURE 1
11095EOF
11096
11097 fi
11098 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
11099fi
11100
11101if test "$wxUSE_PROLOGIO" = "yes" ; then
11102 cat >> confdefs.h <<\EOF
11103#define wxUSE_PROLOGIO 1
11104EOF
11105
11106fi
11107
11108if test "$wxUSE_RESOURCES" = "yes" ; then
11109 if test "$wxUSE_PROLOGIO" = "yes" ; then
11110 cat >> confdefs.h <<\EOF
11111#define wxUSE_RESOURCES 1
11112EOF
11113
11114 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
11115 else
11116 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
11117 fi
11118fi
11119
11120if test "$wxUSE_X_RESOURCES" = "yes"; then
11121 cat >> confdefs.h <<\EOF
11122#define wxUSE_X_RESOURCES 1
11123EOF
11124
11125fi
11126
11127
11128if test "$wxUSE_IPC" = "yes"; then
11129 cat >> confdefs.h <<\EOF
11130#define wxUSE_IPC 1
11131EOF
11132
11133fi
11134
11135if test "$wxUSE_CLIPBOARD" = "yes"; then
11136 cat >> confdefs.h <<\EOF
11137#define wxUSE_CLIPBOARD 1
11138EOF
11139
11140fi
11141
11142if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
11143 if test "$wxUSE_GTK" = 1; then
11144 if test "$WXGTK12" != 1; then
11145 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
11146 wxUSE_DRAG_AND_DROP=no
11147 fi
11148 fi
11149
11150 if test "$wxUSE_MOTIF" = 1; then
11151 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
11152 wxUSE_DRAG_AND_DROP=no
11153 fi
11154
11155 if test "$USE_WIN32" = 1; then
11156 for ac_hdr in ole2.h
11157do
11158ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11159echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ba337fe7 11160echo "configure:11159: checking for $ac_hdr" >&5
10f2d63a
VZ
11161if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11162 echo $ac_n "(cached) $ac_c" 1>&6
11163else
11164 cat > conftest.$ac_ext <<EOF
ba337fe7 11165#line 11164 "configure"
10f2d63a
VZ
11166#include "confdefs.h"
11167#include <$ac_hdr>
11168EOF
11169ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ba337fe7 11170{ (eval echo configure:11169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11171ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11172if test -z "$ac_err"; then
11173 rm -rf conftest*
11174 eval "ac_cv_header_$ac_safe=yes"
11175else
11176 echo "$ac_err" >&5
11177 echo "configure: failed program was:" >&5
11178 cat conftest.$ac_ext >&5
11179 rm -rf conftest*
11180 eval "ac_cv_header_$ac_safe=no"
11181fi
11182rm -f conftest*
11183fi
11184if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11185 echo "$ac_t""yes" 1>&6
11186 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11187 cat >> confdefs.h <<EOF
11188#define $ac_tr_hdr 1
11189EOF
11190
11191else
11192 echo "$ac_t""no" 1>&6
11193fi
11194done
11195
11196 if test "x$HAVE_OLE2_H" = x ; then
11197 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
11198 wxUSE_DRAG_AND_DROP=no
11199 fi
11200 fi
11201
11202 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
11203 cat >> confdefs.h <<\EOF
11204#define wxUSE_DRAG_AND_DROP 1
11205EOF
11206
11207 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
11208 fi
11209
11210fi
11211
11212if test "$wxUSE_SPLINES" = "yes" ; then
11213 cat >> confdefs.h <<\EOF
11214#define wxUSE_SPLINES 1
11215EOF
11216
11217fi
11218
11219
11220if test "$wxUSE_ACCEL" = "yes"; then
11221 cat >> confdefs.h <<\EOF
11222#define wxUSE_ACCEL 1
11223EOF
11224
11225fi
11226
11227if test "$wxUSE_CARET" = "yes"; then
11228 cat >> confdefs.h <<\EOF
11229#define wxUSE_CARET 1
11230EOF
11231
11232 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
11233fi
11234
11235if test "$wxUSE_COMBOBOX" = "yes"; then
11236 cat >> confdefs.h <<\EOF
11237#define wxUSE_COMBOBOX 1
11238EOF
11239
11240fi
11241
11242if test "$wxUSE_CHOICE" = "yes"; then
11243 cat >> confdefs.h <<\EOF
11244#define wxUSE_CHOICE 1
11245EOF
11246
11247fi
11248
11249if test "$wxUSE_BMPBUTTON" = "yes"; then
11250 cat >> confdefs.h <<\EOF
11251#define wxUSE_BMPBUTTON 1
11252EOF
11253
11254fi
11255
11256if test "$wxUSE_CHECKBOX" = "yes"; then
11257 cat >> confdefs.h <<\EOF
11258#define wxUSE_CHECKBOX 1
11259EOF
11260
11261fi
11262
11263if test "$wxUSE_CHECKLST" = "yes"; then
11264 cat >> confdefs.h <<\EOF
11265#define wxUSE_CHECKLISTBOX 1
11266EOF
11267
11268 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
11269fi
11270
11271if test "$wxUSE_GAUGE" = "yes"; then
11272 cat >> confdefs.h <<\EOF
11273#define wxUSE_GAUGE 1
11274EOF
11275
11276fi
11277
11278if test "$wxUSE_GRID" = "yes"; then
11279 cat >> confdefs.h <<\EOF
11280#define wxUSE_GRID 1
11281EOF
11282
11283 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
11284fi
11285
11286if test "$wxUSE_NEW_GRID" = "yes"; then
11287 cat >> confdefs.h <<\EOF
11288#define wxUSE_NEW_GRID 1
11289EOF
11290
11291 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
11292fi
11293
11294if test "$wxUSE_IMAGLIST" = "yes"; then
11295 cat >> confdefs.h <<\EOF
11296#define wxUSE_IMAGLIST 1
11297EOF
11298
11299fi
11300
11301if test "$wxUSE_LISTBOX" = "yes"; then
11302 cat >> confdefs.h <<\EOF
11303#define wxUSE_LISTBOX 1
11304EOF
11305
11306fi
11307
11308if test "$wxUSE_LISTCTRL" = "yes"; then
11309 if test "$wxUSE_IMAGLIST" = "yes"; then
11310 cat >> confdefs.h <<\EOF
11311#define wxUSE_LISTCTRL 1
11312EOF
11313
11314 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
11315 else
11316 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
11317 fi
11318fi
11319
11320if test "$wxUSE_NOTEBOOK" = "yes"; then
11321 cat >> confdefs.h <<\EOF
11322#define wxUSE_NOTEBOOK 1
11323EOF
11324
11325 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
11326fi
11327
11328if test "$wxUSE_RADIOBOX" = "yes"; then
11329 cat >> confdefs.h <<\EOF
11330#define wxUSE_RADIOBOX 1
11331EOF
11332
11333fi
11334
11335if test "$wxUSE_RADIOBTN" = "yes"; then
11336 cat >> confdefs.h <<\EOF
11337#define wxUSE_RADIOBTN 1
11338EOF
11339
11340fi
11341
11342if test "$wxUSE_SASH" = "yes"; then
11343 cat >> confdefs.h <<\EOF
11344#define wxUSE_SASH 1
11345EOF
11346
11347 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
11348fi
11349
11350if test "$wxUSE_SCROLLBAR" = "yes"; then
11351 cat >> confdefs.h <<\EOF
11352#define wxUSE_SCROLLBAR 1
11353EOF
11354
11355 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll"
11356fi
11357
11358if test "$wxUSE_SLIDER" = "yes"; then
11359 cat >> confdefs.h <<\EOF
11360#define wxUSE_SLIDER 1
11361EOF
11362
11363fi
11364
11365if test "$wxUSE_SPINBTN" = "yes"; then
11366 cat >> confdefs.h <<\EOF
11367#define wxUSE_SPINBTN 1
11368EOF
11369
11370fi
11371
11372if test "$wxUSE_SPLITTER" = "yes"; then
11373 cat >> confdefs.h <<\EOF
11374#define wxUSE_SPLITTER 1
11375EOF
11376
11377 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
11378fi
11379
11380if test "$wxUSE_STATBMP" = "yes"; then
11381 cat >> confdefs.h <<\EOF
11382#define wxUSE_STATBMP 1
11383EOF
11384
11385fi
11386
11387if test "$wxUSE_STATBOX" = "yes"; then
11388 cat >> confdefs.h <<\EOF
11389#define wxUSE_STATBOX 1
11390EOF
11391
11392fi
11393
11394if test "$wxUSE_STATLINE" = "yes"; then
11395 if test "$wxUSE_WINE" = 1 ; then
11396 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
11397 else
11398 cat >> confdefs.h <<\EOF
11399#define wxUSE_STATLINE 1
11400EOF
11401
11402 fi
11403fi
11404
11405if test "$wxUSE_STATUSBAR" = "yes"; then
11406 cat >> confdefs.h <<\EOF
11407#define wxUSE_STATUSBAR 1
11408EOF
11409
11410fi
11411
11412if test "$wxUSE_TABDIALOG" = "yes"; then
11413 cat >> confdefs.h <<\EOF
11414#define wxUSE_TAB_DIALOG 1
11415EOF
11416
11417 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
11418fi
11419
11420if test "$wxUSE_TOOLBAR" = "yes"; then
11421 cat >> confdefs.h <<\EOF
11422#define wxUSE_TOOLBAR 1
11423EOF
11424
11425 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
11426fi
11427
11428if test "$wxUSE_TOOLTIPS" = "yes"; then
11429 if test "$wxUSE_MOTIF" = 1; then
11430 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
11431 else
11432 if test "$wxUSE_WINE" = 1; then
11433 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
11434 else
11435 cat >> confdefs.h <<\EOF
11436#define wxUSE_TOOLTIPS 1
11437EOF
11438
11439 fi
11440 fi
11441fi
11442
11443if test "$wxUSE_TREECTRL" = "yes"; then
11444 if test "$wxUSE_IMAGLIST" = "yes"; then
11445 cat >> confdefs.h <<\EOF
11446#define wxUSE_TREECTRL 1
11447EOF
11448
11449 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
11450 else
11451 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
11452 fi
11453fi
11454
11455
11456
11457if test "$wxUSE_METAFILE" = "yes"; then
11458 cat >> confdefs.h <<\EOF
11459#define wxUSE_METAFILE 1
11460EOF
11461
11462fi
11463
11464if test "$wxUSE_DIRDLG" = "yes"; then
11465 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11466 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
11467 else
11468 if test "$wxUSE_TREECTRL" != "yes"; then
11469 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
11470 else
11471 cat >> confdefs.h <<\EOF
11472#define wxUSE_DIRDLG 1
11473EOF
11474
11475 fi
11476 fi
11477fi
11478
11479if test "$wxUSE_TEXTDLG" = "yes"; then
11480 cat >> confdefs.h <<\EOF
11481#define wxUSE_TEXTDLG 1
11482EOF
11483
11484fi
11485
11486if test "$wxUSE_STARTUP_TIPS" = "yes"; then
11487 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11488 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
11489 else
11490 cat >> confdefs.h <<\EOF
11491#define wxUSE_STARTUP_TIPS 1
11492EOF
11493
11494 fi
11495fi
11496
11497if test "$wxUSE_PROGRESSDLG" = "yes"; then
11498 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11499 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
11500 else
11501 cat >> confdefs.h <<\EOF
11502#define wxUSE_PROGRESSDLG 1
11503EOF
11504
11505 fi
11506fi
11507
11508if test "$wxUSE_MINIFRAME" = "yes"; then
11509 cat >> confdefs.h <<\EOF
11510#define wxUSE_MINIFRAME 1
11511EOF
11512
11513 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
11514fi
11515
11516if test "$wxUSE_HTML" = "yes"; then
11517 cat >> confdefs.h <<\EOF
11518#define wxUSE_HTML 1
11519EOF
11520
11521 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
11522 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
11523fi
11524
11525if test "$wxUSE_VALIDATORS" = "yes"; then
11526 cat >> confdefs.h <<\EOF
11527#define wxUSE_VALIDATORS 1
11528EOF
11529
11530 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
11531fi
11532
11533if test "$wxUSE_GIF" = "yes" ; then
11534 cat >> confdefs.h <<\EOF
11535#define wxUSE_GIF 1
11536EOF
11537
11538fi
11539
11540if test "$wxUSE_PCX" = "yes" ; then
11541 cat >> confdefs.h <<\EOF
11542#define wxUSE_PCX 1
11543EOF
11544
11545fi
11546
11547if test "$wxUSE_PNM" = "yes" ; then
11548 cat >> confdefs.h <<\EOF
11549#define wxUSE_PNM 1
11550EOF
11551
11552fi
11553
11554
11555GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
11556
c63c7106 11557EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
10f2d63a
VZ
11558if test "$wxUSE_GUI" = "yes"; then
11559 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS"
11560fi
11561
11562LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
11563
11564INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TOOLKIT_INCLUDE"
11565
11566if test "$GXX" = yes ; then
11567 CXXWARNINGS="-Wall"
11568 fi
11569EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
11570
11571CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'`
11572CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
11573
11574if test "$wxUSE_GUI" = "yes"; then
11575
11576 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS bombs controls dialogs drawing dynamic \
11577 forty fractal image wxpoem"
11578else
11579 SAMPLES_SUBDIRS=""
11580fi
11581
11582SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '`"
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
ba337fe7 11638echo "configure:11637: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
11639set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
11640if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
11641 echo $ac_n "(cached) $ac_c" 1>&6
11642else
11643 cat > conftestmake <<\EOF
11644all:
11645 @echo 'ac_maketemp="${MAKE}"'
11646EOF
11647# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11648eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
11649if test -n "$ac_maketemp"; then
11650 eval ac_cv_prog_make_${ac_make}_set=yes
11651else
11652 eval ac_cv_prog_make_${ac_make}_set=no
11653fi
11654rm -f conftestmake
11655fi
11656if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
11657 echo "$ac_t""yes" 1>&6
11658 SET_MAKE=
11659else
11660 echo "$ac_t""no" 1>&6
11661 SET_MAKE="MAKE=${MAKE-make}"
11662fi
11663
11664
11665
11666
11667if test "${TOOLKIT_DIR}" = "msw" ; then
11668 GL_TOOLKIT_DIR="win"
11669else
11670 GL_TOOLKIT_DIR="${TOOLKIT_DIR}"
11671fi
11672
11673
11674trap '' 1 2 15
11675cat > confcache <<\EOF
11676# This file is a shell script that caches the results of configure
11677# tests run on this system so they can be shared between configure
11678# scripts and configure runs. It is not useful on other systems.
11679# If it contains results you don't want to keep, you may remove or edit it.
11680#
11681# By default, configure uses ./config.cache as the cache file,
11682# creating it if it does not exist already. You can give configure
11683# the --cache-file=FILE option to use a different cache file; that is
11684# what configure does when it calls configure scripts in
11685# subdirectories, so they share the cache.
11686# Giving --cache-file=/dev/null disables caching, for debugging configure.
11687# config.status only pays attention to the cache file if you give it the
11688# --recheck option to rerun configure.
11689#
11690EOF
11691# The following way of writing the cache mishandles newlines in values,
11692# but we know of no workaround that is simple, portable, and efficient.
11693# So, don't put newlines in cache variables' values.
11694# Ultrix sh set writes to stderr and can't be redirected directly,
11695# and sets the high bit in the cache file unless we assign to the vars.
11696(set) 2>&1 |
11697 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11698 *ac_space=\ *)
11699 # `set' does not quote correctly, so add quotes (double-quote substitution
11700 # turns \\\\ into \\, and sed turns \\ into \).
11701 sed -n \
11702 -e "s/'/'\\\\''/g" \
11703 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
11704 ;;
11705 *)
11706 # `set' quotes correctly as required by POSIX, so do not add quotes.
11707 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
11708 ;;
11709 esac >> confcache
11710if cmp -s $cache_file confcache; then
11711 :
11712else
11713 if test -w $cache_file; then
11714 echo "updating cache $cache_file"
11715 cat confcache > $cache_file
11716 else
11717 echo "not updating unwritable cache $cache_file"
11718 fi
11719fi
11720rm -f confcache
11721
11722trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
11723
11724test "x$prefix" = xNONE && prefix=$ac_default_prefix
11725# Let make expand exec_prefix.
11726test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11727
11728# Any assignment to VPATH causes Sun make to only execute
11729# the first set of double-colon rules, so remove it if not needed.
11730# If there is a colon in the path, we need to keep it.
11731if test "x$srcdir" = x.; then
11732 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
11733fi
11734
11735trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
11736
11737DEFS=-DHAVE_CONFIG_H
11738
11739# Without the "./", some shells look in PATH for config.status.
11740: ${CONFIG_STATUS=./config.status}
11741
11742echo creating $CONFIG_STATUS
11743rm -f $CONFIG_STATUS
11744cat > $CONFIG_STATUS <<EOF
11745#! /bin/sh
11746# Generated automatically by configure.
11747# Run this file to recreate the current configuration.
11748# This directory was configured as follows,
11749# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11750#
11751# $0 $ac_configure_args
11752#
11753# Compiler output produced by configure, useful for debugging
11754# configure, is in ./config.log if it exists.
11755
11756ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
11757for ac_option
11758do
11759 case "\$ac_option" in
11760 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11761 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
11762 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
11763 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
788deba1 11764 echo "$CONFIG_STATUS generated by autoconf version 2.13"
10f2d63a
VZ
11765 exit 0 ;;
11766 -help | --help | --hel | --he | --h)
11767 echo "\$ac_cs_usage"; exit 0 ;;
11768 *) echo "\$ac_cs_usage"; exit 1 ;;
11769 esac
11770done
11771
11772ac_given_srcdir=$srcdir
11773ac_given_INSTALL="$INSTALL"
11774
11775trap 'rm -fr `echo "
11776 wx-config
11777 src/make.env
11778 src/makeprog.env
11779 src/makelib.env
11780 Makefile
11781 samples/Makefile
11782 samples/bombs/Makefile
11783 samples/caret/Makefile
11784 samples/checklst/Makefile
11785 samples/config/Makefile
11786 samples/controls/Makefile
11787 samples/db/Makefile
11788 samples/dialogs/Makefile
11789 samples/docview/Makefile
11790 samples/docvwmdi/Makefile
11791 samples/dnd/Makefile
11792 samples/drawing/Makefile
11793 samples/forty/Makefile
11794 samples/fractal/Makefile
11795 samples/image/Makefile
11796 samples/internat/Makefile
11797 samples/layout/Makefile
11798 samples/listctrl/Makefile
11799 samples/mdi/Makefile
11800 samples/minifram/Makefile
11801 samples/minimal/Makefile
11802 samples/nettest/Makefile
11803 samples/newgrid/Makefile
11804 samples/notebook/Makefile
11805 samples/png/Makefile
11806 samples/printing/Makefile
11807 samples/proplist/Makefile
11808 samples/richedit/Makefile
11809 samples/resource/Makefile
11810 samples/sashtest/Makefile
11811 samples/scroll/Makefile
11812 samples/scrollsub/Makefile
11813 samples/splitter/Makefile
11814 samples/text/Makefile
11815 samples/thread/Makefile
11816 samples/toolbar/Makefile
11817 samples/treectrl/Makefile
11818 samples/typetest/Makefile
11819 samples/validate/Makefile
11820 samples/wxpoem/Makefile
11821 samples/wxsocket/Makefile
11822 samples/wizard/Makefile
11823 samples/html/Makefile
11824 samples/html/about/Makefile
11825 samples/html/help/Makefile
11826 samples/html/printing/Makefile
fc9c7c09 11827 samples/html/helpview/Makefile
10f2d63a
VZ
11828 samples/html/test/Makefile
11829 samples/html/zip/Makefile
11830 samples/html/virtual/Makefile
11831 samples/html/widget/Makefile
11832 utils/Makefile
11833 utils/wxMMedia2/Makefile
11834 utils/wxMMedia2/lib/Makefile
11835 utils/wxMMedia2/sample/Makefile
11836 utils/glcanvas/Makefile
11837 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
11838 utils/ogl/Makefile
11839 utils/ogl/src/Makefile
11840 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
11841EOF
11842cat >> $CONFIG_STATUS <<EOF
11843
11844# Protect against being on the right side of a sed subst in config.status.
11845sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
11846 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
11847$ac_vpsub
11848$extrasub
11849s%@SHELL@%$SHELL%g
11850s%@CFLAGS@%$CFLAGS%g
11851s%@CPPFLAGS@%$CPPFLAGS%g
11852s%@CXXFLAGS@%$CXXFLAGS%g
11853s%@FFLAGS@%$FFLAGS%g
11854s%@DEFS@%$DEFS%g
11855s%@LDFLAGS@%$LDFLAGS%g
11856s%@LIBS@%$LIBS%g
11857s%@exec_prefix@%$exec_prefix%g
11858s%@prefix@%$prefix%g
11859s%@program_transform_name@%$program_transform_name%g
11860s%@bindir@%$bindir%g
11861s%@sbindir@%$sbindir%g
11862s%@libexecdir@%$libexecdir%g
11863s%@datadir@%$datadir%g
11864s%@sysconfdir@%$sysconfdir%g
11865s%@sharedstatedir@%$sharedstatedir%g
11866s%@localstatedir@%$localstatedir%g
11867s%@libdir@%$libdir%g
11868s%@includedir@%$includedir%g
11869s%@oldincludedir@%$oldincludedir%g
11870s%@infodir@%$infodir%g
11871s%@mandir@%$mandir%g
11872s%@host@%$host%g
11873s%@host_alias@%$host_alias%g
11874s%@host_cpu@%$host_cpu%g
11875s%@host_vendor@%$host_vendor%g
11876s%@host_os@%$host_os%g
11877s%@target@%$target%g
11878s%@target_alias@%$target_alias%g
11879s%@target_cpu@%$target_cpu%g
11880s%@target_vendor@%$target_vendor%g
11881s%@target_os@%$target_os%g
11882s%@build@%$build%g
11883s%@build_alias@%$build_alias%g
11884s%@build_cpu@%$build_cpu%g
11885s%@build_vendor@%$build_vendor%g
11886s%@build_os@%$build_os%g
11887s%@CC@%$CC%g
11888s%@CPP@%$CPP%g
11889s%@CXX@%$CXX%g
11890s%@CXXCPP@%$CXXCPP%g
11891s%@RANLIB@%$RANLIB%g
11892s%@AR@%$AR%g
11893s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
11894s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
11895s%@INSTALL_DATA@%$INSTALL_DATA%g
11896s%@STRIP@%$STRIP%g
11897s%@YACC@%$YACC%g
11898s%@LEX@%$LEX%g
11899s%@LEXLIB@%$LEXLIB%g
11900s%@LN_S@%$LN_S%g
11901s%@GTK_CONFIG@%$GTK_CONFIG%g
11902s%@GTK_CFLAGS@%$GTK_CFLAGS%g
11903s%@GTK_LIBS@%$GTK_LIBS%g
11904s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
11905s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
11906s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
11907s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
11908s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
11909s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
11910s%@WX_LIBRARY@%$WX_LIBRARY%g
11911s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
11912s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
11913s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
11914s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
11915s%@PROGRAM_EXT@%$PROGRAM_EXT%g
11916s%@WX_ALL@%$WX_ALL%g
11917s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
11918s%@SHARED_LD@%$SHARED_LD%g
11919s%@PIC_FLAG@%$PIC_FLAG%g
11920s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
11921s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
11922s%@TOOLKIT@%$TOOLKIT%g
11923s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
11924s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
11925s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
11926s%@GUIHEADERS@%$GUIHEADERS%g
11927s%@GUIOBJS@%$GUIOBJS%g
11928s%@COMMONOBJS@%$COMMONOBJS%g
11929s%@GENERICOBJS@%$GENERICOBJS%g
11930s%@GUIDEPS@%$GUIDEPS%g
11931s%@COMMONDEPS@%$COMMONDEPS%g
11932s%@GENERICDEPS@%$GENERICDEPS%g
11933s%@IODBCOBJS@%$IODBCOBJS%g
11934s%@UNIXOBJS@%$UNIXOBJS%g
11935s%@UNIXDEPS@%$UNIXDEPS%g
11936s%@ALL_OBJECTS@%$ALL_OBJECTS%g
11937s%@ALL_DEPFILES@%$ALL_DEPFILES%g
11938s%@ALL_HEADERS@%$ALL_HEADERS%g
11939s%@GUIDIST@%$GUIDIST%g
11940s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
11941s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
11942s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
11943s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
11944s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
11945s%@USER_SUBDIRS@%$USER_SUBDIRS%g
11946s%@EXTRA_LIBS@%$EXTRA_LIBS%g
11947s%@LD_LIBS@%$LD_LIBS%g
11948s%@SET_MAKE@%$SET_MAKE%g
11949s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g
11950
11951CEOF
11952EOF
11953
11954cat >> $CONFIG_STATUS <<\EOF
11955
11956# Split the substitutions into bite-sized pieces for seds with
11957# small command number limits, like on Digital OSF/1 and HP-UX.
11958ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
11959ac_file=1 # Number of current file.
11960ac_beg=1 # First line for current file.
11961ac_end=$ac_max_sed_cmds # Line after last line for current file.
11962ac_more_lines=:
11963ac_sed_cmds=""
11964while $ac_more_lines; do
11965 if test $ac_beg -gt 1; then
11966 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
11967 else
11968 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
11969 fi
11970 if test ! -s conftest.s$ac_file; then
11971 ac_more_lines=false
11972 rm -f conftest.s$ac_file
11973 else
11974 if test -z "$ac_sed_cmds"; then
11975 ac_sed_cmds="sed -f conftest.s$ac_file"
11976 else
11977 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
11978 fi
11979 ac_file=`expr $ac_file + 1`
11980 ac_beg=$ac_end
11981 ac_end=`expr $ac_end + $ac_max_sed_cmds`
11982 fi
11983done
11984if test -z "$ac_sed_cmds"; then
11985 ac_sed_cmds=cat
11986fi
11987EOF
11988
11989cat >> $CONFIG_STATUS <<EOF
11990
11991CONFIG_FILES=\${CONFIG_FILES-"wx-config
11992 src/make.env
11993 src/makeprog.env
11994 src/makelib.env
11995 Makefile
11996 samples/Makefile
11997 samples/bombs/Makefile
11998 samples/caret/Makefile
11999 samples/checklst/Makefile
12000 samples/config/Makefile
12001 samples/controls/Makefile
12002 samples/db/Makefile
12003 samples/dialogs/Makefile
12004 samples/docview/Makefile
12005 samples/docvwmdi/Makefile
12006 samples/dnd/Makefile
12007 samples/drawing/Makefile
12008 samples/forty/Makefile
12009 samples/fractal/Makefile
12010 samples/image/Makefile
12011 samples/internat/Makefile
12012 samples/layout/Makefile
12013 samples/listctrl/Makefile
12014 samples/mdi/Makefile
12015 samples/minifram/Makefile
12016 samples/minimal/Makefile
12017 samples/nettest/Makefile
12018 samples/newgrid/Makefile
12019 samples/notebook/Makefile
12020 samples/png/Makefile
12021 samples/printing/Makefile
12022 samples/proplist/Makefile
12023 samples/richedit/Makefile
12024 samples/resource/Makefile
12025 samples/sashtest/Makefile
12026 samples/scroll/Makefile
12027 samples/scrollsub/Makefile
12028 samples/splitter/Makefile
12029 samples/text/Makefile
12030 samples/thread/Makefile
12031 samples/toolbar/Makefile
12032 samples/treectrl/Makefile
12033 samples/typetest/Makefile
12034 samples/validate/Makefile
12035 samples/wxpoem/Makefile
12036 samples/wxsocket/Makefile
12037 samples/wizard/Makefile
12038 samples/html/Makefile
12039 samples/html/about/Makefile
12040 samples/html/help/Makefile
12041 samples/html/printing/Makefile
fc9c7c09 12042 samples/html/helpview/Makefile
10f2d63a
VZ
12043 samples/html/test/Makefile
12044 samples/html/zip/Makefile
12045 samples/html/virtual/Makefile
12046 samples/html/widget/Makefile
12047 utils/Makefile
12048 utils/wxMMedia2/Makefile
12049 utils/wxMMedia2/lib/Makefile
12050 utils/wxMMedia2/sample/Makefile
12051 utils/glcanvas/Makefile
12052 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
12053 utils/ogl/Makefile
12054 utils/ogl/src/Makefile
12055 "}
12056EOF
12057cat >> $CONFIG_STATUS <<\EOF
12058for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12059 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12060 case "$ac_file" in
12061 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12062 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12063 *) ac_file_in="${ac_file}.in" ;;
12064 esac
12065
12066 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12067
12068 # Remove last slash and all that follows it. Not all systems have dirname.
12069 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12070 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12071 # The file is in a subdirectory.
12072 test ! -d "$ac_dir" && mkdir "$ac_dir"
12073 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12074 # A "../" for each directory in $ac_dir_suffix.
12075 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12076 else
12077 ac_dir_suffix= ac_dots=
12078 fi
12079
12080 case "$ac_given_srcdir" in
12081 .) srcdir=.
12082 if test -z "$ac_dots"; then top_srcdir=.
12083 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12084 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12085 *) # Relative path.
12086 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12087 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12088 esac
12089
12090 case "$ac_given_INSTALL" in
12091 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12092 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12093 esac
12094
12095 echo creating "$ac_file"
12096 rm -f "$ac_file"
12097 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12098 case "$ac_file" in
12099 *Makefile*) ac_comsub="1i\\
12100# $configure_input" ;;
12101 *) ac_comsub= ;;
12102 esac
12103
12104 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12105 sed -e "$ac_comsub
12106s%@configure_input@%$configure_input%g
12107s%@srcdir@%$srcdir%g
12108s%@top_srcdir@%$top_srcdir%g
12109s%@INSTALL@%$INSTALL%g
12110" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12111fi; done
12112rm -f conftest.s*
12113
12114# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12115# NAME is the cpp macro being defined and VALUE is the value it is being given.
12116#
12117# ac_d sets the value in "#define NAME VALUE" lines.
12118ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12119ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12120ac_dC='\3'
12121ac_dD='%g'
12122# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12123ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12124ac_uB='\([ ]\)%\1#\2define\3'
12125ac_uC=' '
12126ac_uD='\4%g'
12127# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12128ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12129ac_eB='$%\1#\2define\3'
12130ac_eC=' '
12131ac_eD='%g'
12132
12133if test "${CONFIG_HEADERS+set}" != set; then
12134EOF
12135cat >> $CONFIG_STATUS <<EOF
12136 CONFIG_HEADERS="setup.h:setup.h.in"
12137EOF
12138cat >> $CONFIG_STATUS <<\EOF
12139fi
12140for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12141 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12142 case "$ac_file" in
12143 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12144 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12145 *) ac_file_in="${ac_file}.in" ;;
12146 esac
12147
12148 echo creating $ac_file
12149
12150 rm -f conftest.frag conftest.in conftest.out
12151 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12152 cat $ac_file_inputs > conftest.in
12153
12154EOF
12155
12156# Transform confdefs.h into a sed script conftest.vals that substitutes
12157# the proper values into config.h.in to produce config.h. And first:
12158# Protect against being on the right side of a sed subst in config.status.
12159# Protect against being in an unquoted here document in config.status.
12160rm -f conftest.vals
12161cat > conftest.hdr <<\EOF
12162s/[\\&%]/\\&/g
12163s%[\\$`]%\\&%g
12164s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12165s%ac_d%ac_u%gp
12166s%ac_u%ac_e%gp
12167EOF
12168sed -n -f conftest.hdr confdefs.h > conftest.vals
12169rm -f conftest.hdr
12170
12171# This sed command replaces #undef with comments. This is necessary, for
12172# example, in the case of _POSIX_SOURCE, which is predefined and required
12173# on some systems where configure will not decide to define it.
12174cat >> conftest.vals <<\EOF
12175s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12176EOF
12177
12178# Break up conftest.vals because some shells have a limit on
12179# the size of here documents, and old seds have small limits too.
12180
12181rm -f conftest.tail
12182while :
12183do
12184 ac_lines=`grep -c . conftest.vals`
12185 # grep -c gives empty output for an empty file on some AIX systems.
12186 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12187 # Write a limited-size here document to conftest.frag.
12188 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12189 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12190 echo 'CEOF
12191 sed -f conftest.frag conftest.in > conftest.out
12192 rm -f conftest.in
12193 mv conftest.out conftest.in
12194' >> $CONFIG_STATUS
12195 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12196 rm -f conftest.vals
12197 mv conftest.tail conftest.vals
12198done
12199rm -f conftest.vals
12200
12201cat >> $CONFIG_STATUS <<\EOF
12202 rm -f conftest.frag conftest.h
12203 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12204 cat conftest.in >> conftest.h
12205 rm -f conftest.in
12206 if cmp -s $ac_file conftest.h 2>/dev/null; then
12207 echo "$ac_file is unchanged"
12208 rm -f conftest.h
12209 else
12210 # Remove last slash and all that follows it. Not all systems have dirname.
12211 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12212 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12213 # The file is in a subdirectory.
12214 test ! -d "$ac_dir" && mkdir "$ac_dir"
12215 fi
12216 rm -f $ac_file
12217 mv conftest.h $ac_file
12218 fi
12219fi; done
12220
12221EOF
12222cat >> $CONFIG_STATUS <<EOF
12223
12224 TOOLKIT_DIR="${TOOLKIT_DIR}"
12225
12226
12227EOF
12228cat >> $CONFIG_STATUS <<\EOF
12229
12230 chmod +x wx-config
12231 if test ! -d include; then
12232 mkdir include
12233 fi
12234 if test ! -d include/wx; then
12235 mkdir include/wx
12236 fi
12237 if test ! -d include/wx/${TOOLKIT_DIR}; then
12238 mkdir include/wx/${TOOLKIT_DIR}
12239 fi
afc31813
VZ
12240 if test -f setup.h; then
12241 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
12242 fi
10f2d63a
VZ
12243
12244exit 0
12245EOF
12246chmod +x $CONFIG_STATUS
12247rm -fr confdefs* $ac_clean_files
12248test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
12249
12250