]> git.saurik.com Git - wxWidgets.git/blame - configure
fixed wxBITMAP macro under wxGTK
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
3# From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
10f2d63a
VZ
36
37
38
39
40# Guess values for system-dependent variables and create Makefiles.
69ffe1d2 41# Generated automatically using autoconf version 2.14
10f2d63a
VZ
42# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
43#
44# This configure script is free software; the Free Software Foundation
45# gives unlimited permission to copy, distribute and modify it.
46
47# Defaults:
48ac_help=
49ac_default_prefix=/usr/local
50# Any additions from configure.in:
51ac_help="$ac_help
52--enable-gui use GUI classes"
53ac_help="$ac_help
54 --with-gtk use GTK+"
55ac_help="$ac_help
56 --with-motif use Motif/Lesstif"
57ac_help="$ac_help
58 --with-wine use WINE"
59ac_help="$ac_help
60 --with-cygwin use Cygwin for MS-Windows"
61ac_help="$ac_help
62 --with-mingw use GCC Minimal MS-Windows"
63ac_help="$ac_help
64 --with-gtk-prefix=PFX Prefix where GTK is installed"
65ac_help="$ac_help
66 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
67ac_help="$ac_help
68--with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
69ac_help="$ac_help
70--with-zlib use zlib for LZW compression"
71ac_help="$ac_help
72--with-libpng use libpng (PNG image format)"
73ac_help="$ac_help
74--with-libjpeg use libjpeg (JPEG file format)"
75ac_help="$ac_help
c7a2bf27
RR
76--with-libtiff use libtiff (TIFF file format)"
77ac_help="$ac_help
10f2d63a
VZ
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
56cfaa52
RR
224--enable-spinctrl use wxSpinCtrl class"
225ac_help="$ac_help
10f2d63a
VZ
226--enable-splitter use wxSplitterWindow class"
227ac_help="$ac_help
228--enable-statbmp use wxStaticBitmap class"
229ac_help="$ac_help
230--enable-statbox use wxStaticBox class"
231ac_help="$ac_help
232--enable-statline use wxStaticLine class"
233ac_help="$ac_help
234--enable-statusbar use wxStatusBar class"
235ac_help="$ac_help
236--enable-tabdialog use wxTabControl class"
237ac_help="$ac_help
238--enable-toolbar use wxToolBar class"
239ac_help="$ac_help
240--enable-treectrl use wxTreeCtrl class"
241ac_help="$ac_help
242--enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
243ac_help="$ac_help
244--enable-dirdlg use wxDirDialog"
245ac_help="$ac_help
246--enable-textdlg use wxTextDialog"
247ac_help="$ac_help
248--enable-tipdlg use startup tips"
249ac_help="$ac_help
250--enable-progressdlg use wxProgressDialog"
251ac_help="$ac_help
252--enable-miniframe use wxMiniFrame class"
253ac_help="$ac_help
254--enable-html use wxHTML sub-library"
255ac_help="$ac_help
256--enable-tooltips use wxToolTip class"
257ac_help="$ac_help
258--enable-splines use spline drawing code"
259ac_help="$ac_help
260--enable-validators use wxValidator and derived classes"
261ac_help="$ac_help
262--enable-busyinfo use wxBusyInfo"
263ac_help="$ac_help
264--enable-gif use gif images (GIF file format)"
265ac_help="$ac_help
266--enable-pcx use pcx images (PCX file format)"
267ac_help="$ac_help
268--enable-pnm use pnm images (PNM file format)"
ab9b9eab
VZ
269ac_help="$ac_help
270 --with-x use the X Window System"
10f2d63a
VZ
271
272# Initialize some variables set by options.
273# The variables have the same names as the options, with
274# dashes changed to underlines.
275build=NONE
276cache_file=./config.cache
277exec_prefix=NONE
278host=NONE
279no_create=
280nonopt=NONE
281no_recursion=
282prefix=NONE
283program_prefix=NONE
284program_suffix=NONE
285program_transform_name=s,x,x,
286silent=
287site=
288srcdir=
289target=NONE
290verbose=
291x_includes=NONE
292x_libraries=NONE
293bindir='${exec_prefix}/bin'
294sbindir='${exec_prefix}/sbin'
295libexecdir='${exec_prefix}/libexec'
296datadir='${prefix}/share'
297sysconfdir='${prefix}/etc'
298sharedstatedir='${prefix}/com'
299localstatedir='${prefix}/var'
300libdir='${exec_prefix}/lib'
301includedir='${prefix}/include'
302oldincludedir='/usr/include'
303infodir='${prefix}/info'
304mandir='${prefix}/man'
305
306# Initialize some other variables.
307subdirs=
308MFLAGS= MAKEFLAGS=
309SHELL=${CONFIG_SHELL-/bin/sh}
310# Maximum number of lines to put in a shell here document.
311ac_max_here_lines=12
312
313ac_prev=
314for ac_option
315do
316
317 # If the previous option needs an argument, assign it.
318 if test -n "$ac_prev"; then
319 eval "$ac_prev=\$ac_option"
320 ac_prev=
321 continue
322 fi
323
324 case "$ac_option" in
325 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
326 *) ac_optarg= ;;
327 esac
328
329 # Accept the important Cygnus configure options, so we can diagnose typos.
330
331 case "$ac_option" in
332
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
336 bindir="$ac_optarg" ;;
337
338 -build | --build | --buil | --bui | --bu)
339 ac_prev=build ;;
340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341 build="$ac_optarg" ;;
342
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348 cache_file="$ac_optarg" ;;
349
350 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
351 ac_prev=datadir ;;
352 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
353 | --da=*)
354 datadir="$ac_optarg" ;;
355
356 -disable-* | --disable-*)
357 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
360 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
361 fi
362 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
363 eval "enable_${ac_feature}=no" ;;
364
365 -enable-* | --enable-*)
366 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
369 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
370 fi
371 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
372 case "$ac_option" in
373 *=*) ;;
374 *) ac_optarg=yes ;;
375 esac
376 eval "enable_${ac_feature}='$ac_optarg'" ;;
377
378 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
379 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
380 | --exec | --exe | --ex)
381 ac_prev=exec_prefix ;;
382 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
383 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
384 | --exec=* | --exe=* | --ex=*)
385 exec_prefix="$ac_optarg" ;;
386
387 -gas | --gas | --ga | --g)
388 # Obsolete; use --with-gas.
389 with_gas=yes ;;
390
391 -help | --help | --hel | --he)
392 # Omit some internal or obsolete options to make the list less imposing.
393 # This message is too long to be a string in the A/UX 3.1 sh.
394 cat << EOF
395Usage: configure [options] [host]
396Options: [defaults in brackets after descriptions]
397Configuration:
398 --cache-file=FILE cache test results in FILE
399 --help print this message
400 --no-create do not create output files
401 --quiet, --silent do not print \`checking...' messages
402 --version print the version of autoconf that created configure
403Directory and file names:
404 --prefix=PREFIX install architecture-independent files in PREFIX
405 [$ac_default_prefix]
406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
407 [same as prefix]
408 --bindir=DIR user executables in DIR [EPREFIX/bin]
409 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
410 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
411 --datadir=DIR read-only architecture-independent data in DIR
412 [PREFIX/share]
413 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
414 --sharedstatedir=DIR modifiable architecture-independent data in DIR
415 [PREFIX/com]
416 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
417 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
418 --includedir=DIR C header files in DIR [PREFIX/include]
419 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
420 --infodir=DIR info documentation in DIR [PREFIX/info]
421 --mandir=DIR man documentation in DIR [PREFIX/man]
422 --srcdir=DIR find the sources in DIR [configure dir or ..]
423 --program-prefix=PREFIX prepend PREFIX to installed program names
424 --program-suffix=SUFFIX append SUFFIX to installed program names
425 --program-transform-name=PROGRAM
426 run sed PROGRAM on installed program names
427EOF
428 cat << EOF
429Host type:
430 --build=BUILD configure for building on BUILD [BUILD=HOST]
431 --host=HOST configure for HOST [guessed]
432 --target=TARGET configure for TARGET [TARGET=HOST]
433Features and packages:
434 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
435 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
436 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
437 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
438 --x-includes=DIR X include files are in DIR
439 --x-libraries=DIR X library files are in DIR
440EOF
441 if test -n "$ac_help"; then
442 echo "--enable and --with options recognized:$ac_help"
443 fi
444 exit 0 ;;
445
446 -host | --host | --hos | --ho)
447 ac_prev=host ;;
448 -host=* | --host=* | --hos=* | --ho=*)
449 host="$ac_optarg" ;;
450
451 -includedir | --includedir | --includedi | --included | --include \
452 | --includ | --inclu | --incl | --inc)
453 ac_prev=includedir ;;
454 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
455 | --includ=* | --inclu=* | --incl=* | --inc=*)
456 includedir="$ac_optarg" ;;
457
458 -infodir | --infodir | --infodi | --infod | --info | --inf)
459 ac_prev=infodir ;;
460 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
461 infodir="$ac_optarg" ;;
462
463 -libdir | --libdir | --libdi | --libd)
464 ac_prev=libdir ;;
465 -libdir=* | --libdir=* | --libdi=* | --libd=*)
466 libdir="$ac_optarg" ;;
467
468 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
469 | --libexe | --libex | --libe)
470 ac_prev=libexecdir ;;
471 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
472 | --libexe=* | --libex=* | --libe=*)
473 libexecdir="$ac_optarg" ;;
474
475 -localstatedir | --localstatedir | --localstatedi | --localstated \
476 | --localstate | --localstat | --localsta | --localst \
477 | --locals | --local | --loca | --loc | --lo)
478 ac_prev=localstatedir ;;
479 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
480 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
481 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
482 localstatedir="$ac_optarg" ;;
483
484 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
485 ac_prev=mandir ;;
486 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
487 mandir="$ac_optarg" ;;
488
489 -nfp | --nfp | --nf)
490 # Obsolete; use --without-fp.
491 with_fp=no ;;
492
493 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
494 | --no-cr | --no-c)
495 no_create=yes ;;
496
497 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
498 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
499 no_recursion=yes ;;
500
501 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
502 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
503 | --oldin | --oldi | --old | --ol | --o)
504 ac_prev=oldincludedir ;;
505 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
506 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
507 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
508 oldincludedir="$ac_optarg" ;;
509
510 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
511 ac_prev=prefix ;;
512 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
513 prefix="$ac_optarg" ;;
514
515 -program-prefix | --program-prefix | --program-prefi | --program-pref \
516 | --program-pre | --program-pr | --program-p)
517 ac_prev=program_prefix ;;
518 -program-prefix=* | --program-prefix=* | --program-prefi=* \
519 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
520 program_prefix="$ac_optarg" ;;
521
522 -program-suffix | --program-suffix | --program-suffi | --program-suff \
523 | --program-suf | --program-su | --program-s)
524 ac_prev=program_suffix ;;
525 -program-suffix=* | --program-suffix=* | --program-suffi=* \
526 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
527 program_suffix="$ac_optarg" ;;
528
529 -program-transform-name | --program-transform-name \
530 | --program-transform-nam | --program-transform-na \
531 | --program-transform-n | --program-transform- \
532 | --program-transform | --program-transfor \
533 | --program-transfo | --program-transf \
534 | --program-trans | --program-tran \
535 | --progr-tra | --program-tr | --program-t)
536 ac_prev=program_transform_name ;;
537 -program-transform-name=* | --program-transform-name=* \
538 | --program-transform-nam=* | --program-transform-na=* \
539 | --program-transform-n=* | --program-transform-=* \
540 | --program-transform=* | --program-transfor=* \
541 | --program-transfo=* | --program-transf=* \
542 | --program-trans=* | --program-tran=* \
543 | --progr-tra=* | --program-tr=* | --program-t=*)
544 program_transform_name="$ac_optarg" ;;
545
546 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
547 | -silent | --silent | --silen | --sile | --sil)
548 silent=yes ;;
549
550 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
551 ac_prev=sbindir ;;
552 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
553 | --sbi=* | --sb=*)
554 sbindir="$ac_optarg" ;;
555
556 -sharedstatedir | --sharedstatedir | --sharedstatedi \
557 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
558 | --sharedst | --shareds | --shared | --share | --shar \
559 | --sha | --sh)
560 ac_prev=sharedstatedir ;;
561 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
562 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
563 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
564 | --sha=* | --sh=*)
565 sharedstatedir="$ac_optarg" ;;
566
567 -site | --site | --sit)
568 ac_prev=site ;;
569 -site=* | --site=* | --sit=*)
570 site="$ac_optarg" ;;
571
572 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
573 ac_prev=srcdir ;;
574 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
575 srcdir="$ac_optarg" ;;
576
577 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
578 | --syscon | --sysco | --sysc | --sys | --sy)
579 ac_prev=sysconfdir ;;
580 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
581 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
582 sysconfdir="$ac_optarg" ;;
583
584 -target | --target | --targe | --targ | --tar | --ta | --t)
585 ac_prev=target ;;
586 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
587 target="$ac_optarg" ;;
588
589 -v | -verbose | --verbose | --verbos | --verbo | --verb)
590 verbose=yes ;;
591
592 -version | --version | --versio | --versi | --vers)
69ffe1d2 593 echo "configure generated by autoconf version 2.14"
10f2d63a
VZ
594 exit 0 ;;
595
596 -with-* | --with-*)
597 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
598 # Reject names that are not valid shell variable names.
599 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
600 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
601 fi
602 ac_package=`echo $ac_package| sed 's/-/_/g'`
603 case "$ac_option" in
604 *=*) ;;
605 *) ac_optarg=yes ;;
606 esac
607 eval "with_${ac_package}='$ac_optarg'" ;;
608
609 -without-* | --without-*)
610 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
611 # Reject names that are not valid shell variable names.
612 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
613 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
614 fi
615 ac_package=`echo $ac_package| sed 's/-/_/g'`
616 eval "with_${ac_package}=no" ;;
617
618 --x)
619 # Obsolete; use --with-x.
620 with_x=yes ;;
621
622 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
623 | --x-incl | --x-inc | --x-in | --x-i)
624 ac_prev=x_includes ;;
625 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
626 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
627 x_includes="$ac_optarg" ;;
628
629 -x-libraries | --x-libraries | --x-librarie | --x-librari \
630 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
631 ac_prev=x_libraries ;;
632 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
633 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
634 x_libraries="$ac_optarg" ;;
635
636 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
637 ;;
638
639 *)
640 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
641 echo "configure: warning: $ac_option: invalid host type" 1>&2
642 fi
643 if test "x$nonopt" != xNONE; then
644 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
645 fi
646 nonopt="$ac_option"
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
653 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
654fi
655
656trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
657
658# File descriptor usage:
659# 0 standard input
660# 1 file creation
661# 2 errors and warnings
662# 3 some systems may open it to /dev/tty
663# 4 used on the Kubota Titan
664# 6 checking for... messages and results
665# 5 compiler messages saved in config.log
666if test "$silent" = yes; then
667 exec 6>/dev/null
668else
669 exec 6>&1
670fi
671exec 5>./config.log
672
673echo "\
674This file contains any messages produced by compilers while
675running configure, to aid debugging if configure makes a mistake.
676" 1>&5
677
678# Strip out --no-create and --no-recursion so they do not pile up.
679# Also quote any args containing shell metacharacters.
680ac_configure_args=
681for ac_arg
682do
683 case "$ac_arg" in
684 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
685 | --no-cr | --no-c) ;;
686 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
687 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
688 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
689 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
690 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
691 esac
692done
693
694# NLS nuisances.
695# Only set these to C if already set. These must not be set unconditionally
696# because not all systems understand e.g. LANG=C (notably SCO).
697# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
698# Non-C LC_CTYPE values break the ctype check.
699if test "${LANG+set}" = set; then LANG=C; export LANG; fi
700if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
701if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
702if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
703
704# confdefs.h avoids OS command line length limits that DEFS can exceed.
705rm -rf conftest* confdefs.h
706# AIX cpp loses on an empty file, so make sure it contains at least a newline.
707echo > confdefs.h
708
709# A filename unique to this package, relative to the directory that
710# configure is in, which we can look for to find out if srcdir is correct.
711ac_unique_file=wx-config.in
712
713# Find the source files, if location was not specified.
714if test -z "$srcdir"; then
715 ac_srcdir_defaulted=yes
716 # Try the directory containing this script, then its parent.
717 ac_prog=$0
718 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
719 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
723 fi
724else
725 ac_srcdir_defaulted=no
726fi
727if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
730 else
731 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
732 fi
733fi
734srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
735
736# Prefer explicitly selected file to automatically selected ones.
737if test -z "$CONFIG_SITE"; then
738 if test "x$prefix" != xNONE; then
739 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
740 else
741 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
742 fi
743fi
744for ac_site_file in $CONFIG_SITE; do
745 if test -r "$ac_site_file"; then
746 echo "loading site script $ac_site_file"
747 . "$ac_site_file"
748 fi
749done
750
751if test -r "$cache_file"; then
752 echo "loading cache $cache_file"
753 . $cache_file
754else
755 echo "creating cache $cache_file"
756 > $cache_file
757fi
758
759ac_ext=c
760# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
761ac_cpp='$CPP $CPPFLAGS'
762ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
763ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
764cross_compiling=$ac_cv_prog_cc_cross
765
766ac_exeext=
767ac_objext=o
768if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
769 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
770 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
771 ac_n= ac_c='
772' ac_t=' '
773 else
774 ac_n=-n ac_c= ac_t=
775 fi
776else
777 ac_n= ac_c='\c' ac_t=
778fi
779
780
781
782ac_aux_dir=
783for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
784 if 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 elif test -f $ac_dir/install.sh; then
789 ac_aux_dir=$ac_dir
790 ac_install_sh="$ac_aux_dir/install.sh -c"
791 break
792 fi
793done
794if test -z "$ac_aux_dir"; then
795 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
796fi
797ac_config_guess=$ac_aux_dir/config.guess
798ac_config_sub=$ac_aux_dir/config.sub
799ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
800
801
802# Do some error checking and defaulting for the host and target type.
803# The inputs are:
804# configure --host=HOST --target=TARGET --build=BUILD NONOPT
805#
806# The rules are:
807# 1. You are not allowed to specify --host, --target, and nonopt at the
808# same time.
809# 2. Host defaults to nonopt.
810# 3. If nonopt is not specified, then host defaults to the current host,
811# as determined by config.guess.
812# 4. Target and build default to nonopt.
813# 5. If nonopt is not specified, then target and build default to host.
814
815# The aliases save the names the user supplied, while $host etc.
816# will get canonicalized.
817case $host---$target---$nonopt in
818NONE---*---* | *---NONE---* | *---*---NONE) ;;
819*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
820esac
821
822
823# Make sure we can run config.sub.
824if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
825else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
826fi
827
828echo $ac_n "checking host system type""... $ac_c" 1>&6
c7a2bf27 829echo "configure:830: checking host system type" >&5
10f2d63a
VZ
830
831host_alias=$host
832case "$host_alias" in
833NONE)
834 case $nonopt in
835 NONE)
836 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
837 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
838 fi ;;
839 *) host_alias=$nonopt ;;
840 esac ;;
841esac
842
843host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
844host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
845host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
846host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
847echo "$ac_t""$host" 1>&6
848
849echo $ac_n "checking target system type""... $ac_c" 1>&6
c7a2bf27 850echo "configure:851: checking target system type" >&5
10f2d63a
VZ
851
852target_alias=$target
853case "$target_alias" in
854NONE)
855 case $nonopt in
856 NONE) target_alias=$host_alias ;;
857 *) target_alias=$nonopt ;;
858 esac ;;
859esac
860
861target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
862target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
863target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
864target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
865echo "$ac_t""$target" 1>&6
866
867echo $ac_n "checking build system type""... $ac_c" 1>&6
c7a2bf27 868echo "configure:869: checking build system type" >&5
10f2d63a
VZ
869
870build_alias=$build
871case "$build_alias" in
872NONE)
873 case $nonopt in
874 NONE) build_alias=$host_alias ;;
875 *) build_alias=$nonopt ;;
876 esac ;;
877esac
878
879build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
880build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
881build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
882build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
883echo "$ac_t""$build" 1>&6
884
885test "$host_alias" != "$target_alias" &&
886 test "$program_prefix$program_suffix$program_transform_name" = \
887 NONENONEs,x,x, &&
888 program_prefix=${target_alias}-
889
890
891
892WX_MAJOR_VERSION_NUMBER=2
893WX_MINOR_VERSION_NUMBER=1
ba0e7d41 894WX_RELEASE_NUMBER=12
10f2d63a
VZ
895
896WX_INTERFACE_AGE=0
897WX_BINARY_AGE=0
898
899WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
900
901WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
902WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE`
903WX_REVISION=$WX_INTERFACE_AGE
904WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE`
905
906
907USE_UNIX=1
908USE_WIN32=0
909USE_LINUX=
910USE_SGI=
911USE_HPUX=
912USE_SYSV=
913USE_SVR4=
914USE_AIX=
915USE_SUN=
916USE_SOLARIS=
917USE_SUNOS=
918USE_ALPHA=
919USE_OSF=
920USE_BSD=
921USE_FREEBSD=
922USE_VMS=
923USE_ULTRIX=
924USE_CYGWIN=
925USE_MINGW=
926USE_DATA_GENERAL=
927
ab9b9eab
VZ
928NEEDS_D_REENTRANT_FOR_R_FUNCS=0
929
10f2d63a
VZ
930ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE"
931
932DEFAULT_wxUSE_GTK=0
933DEFAULT_wxUSE_MOTIF=0
934DEFAULT_wxUSE_MSW=0
935DEFAULT_wxUSE_WINE=0
936
937DEFAULT_DEFAULT_wxUSE_GTK=0
938DEFAULT_DEFAULT_wxUSE_MOTIF=0
939DEFAULT_DEFAULT_wxUSE_MSW=0
940DEFAULT_DEFAULT_wxUSE_WINE=0
941
942case "${host}" in
943 *-hp-hpux* )
944 USE_HPUX=1
945 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 946 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
947 cat >> confdefs.h <<\EOF
948#define __HPUX__ 1
949EOF
950
951 ;;
952 *-*-linux* )
953 USE_LINUX=1
954 cat >> confdefs.h <<\EOF
955#define __LINUX__ 1
956EOF
957
958 TMP=`uname -m`
959 if test "x$TMP" = "xalpha"; then
960 USE_ALPHA=1
961 cat >> confdefs.h <<\EOF
962#define __ALPHA__ 1
963EOF
964
965 fi
966 DEFAULT_DEFAULT_wxUSE_GTK=1
967 ;;
968 *-*-irix5* | *-*-irix6* )
969 USE_SGI=1
970 USE_SVR4=1
971 cat >> confdefs.h <<\EOF
972#define __SGI__ 1
973EOF
974
975 cat >> confdefs.h <<\EOF
976#define __SVR4__ 1
977EOF
978
979 DEFAULT_DEFAULT_wxUSE_MOTIF=1
980 ;;
981 *-*-solaris2* )
982 USE_SUN=1
983 USE_SOLARIS=1
984 USE_SVR4=1
985 cat >> confdefs.h <<\EOF
986#define __SUN__ 1
987EOF
988
989 cat >> confdefs.h <<\EOF
990#define __SOLARIS__ 1
991EOF
992
993 cat >> confdefs.h <<\EOF
994#define __SVR4__ 1
995EOF
996
997 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 998 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
999 ;;
1000 *-*-sunos4* )
1001 USE_SUN=1
1002 USE_SUNOS=1
1003 USE_BSD=1
1004 cat >> confdefs.h <<\EOF
1005#define __SUN__ 1
1006EOF
1007
1008 cat >> confdefs.h <<\EOF
1009#define __SUNOS__ 1
1010EOF
1011
1012 cat >> confdefs.h <<\EOF
1013#define __BSD__ 1
1014EOF
1015
1016 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1017 ;;
1018 *-*-freebsd* | *-*-netbsd*)
1019 USE_BSD=1
1020 USE_FREEBSD=1
1021 cat >> confdefs.h <<\EOF
1022#define __FREEBSD__ 1
1023EOF
1024
1025 cat >> confdefs.h <<\EOF
1026#define __BSD__ 1
1027EOF
1028
1029 DEFAULT_DEFAULT_wxUSE_GTK=1
1030 ;;
1031 *-*-osf* )
1032 USE_ALPHA=1
1033 USE_OSF=1
1034 cat >> confdefs.h <<\EOF
1035#define __ALPHA__ 1
1036EOF
1037
1038 cat >> confdefs.h <<\EOF
1039#define __OSF__ 1
1040EOF
1041
1042 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1043 ;;
1044 *-*-dgux5* )
1045 USE_ALPHA=1
1046 USE_SVR4=1
1047 cat >> confdefs.h <<\EOF
1048#define __ALPHA__ 1
1049EOF
1050
1051 cat >> confdefs.h <<\EOF
1052#define __SVR4__ 1
1053EOF
1054
1055 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1056 ;;
1057 *-*-sysv5* )
1058 USE_SYSV=1
1059 USE_SVR4=1
1060 cat >> confdefs.h <<\EOF
1061#define __SYSV__ 1
1062EOF
1063
1064 cat >> confdefs.h <<\EOF
1065#define __SVR4__ 1
1066EOF
1067
1068 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1069 ;;
1070 *-*-aix* )
1071 USE_AIX=1
1072 USE_SYSV=1
1073 USE_SVR4=1
1074 cat >> confdefs.h <<\EOF
1075#define __AIX__ 1
1076EOF
1077
1078 cat >> confdefs.h <<\EOF
1079#define __SYSV__ 1
1080EOF
1081
1082 cat >> confdefs.h <<\EOF
1083#define __SVR4__ 1
1084EOF
1085
1086 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1087 ;;
1088
7eef8db2 1089 *-*-cygwin32* | *-*-mingw32* )
10f2d63a
VZ
1090 USE_UNIX=0
1091 USE_WIN32=1
1092 cat >> confdefs.h <<\EOF
1093#define __WIN32__ 1
1094EOF
1095
1096 cat >> confdefs.h <<\EOF
1097#define __WIN95__ 1
1098EOF
1099
1100 cat >> confdefs.h <<\EOF
1101#define __WINDOWS__ 1
1102EOF
1103
1104 cat >> confdefs.h <<\EOF
1105#define __GNUWIN32__ 1
1106EOF
1107
1108 cat >> confdefs.h <<\EOF
1109#define STRICT 1
1110EOF
1111
1112 cat >> confdefs.h <<\EOF
1113#define WINVER 0x0400
1114EOF
1115
1116 DEFAULT_DEFAULT_wxUSE_MSW=1
1117 ;;
1118
1119 *-pc-os2_emx )
1120 cat >> confdefs.h <<\EOF
1121#define __EMX__ 1
1122EOF
1123
1124 ;;
1125
1126 *)
1127 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1128esac
1129
1130if test "$USE_UNIX" = 1 ; then
1131 wxUSE_UNIX=yes
1132 cat >> confdefs.h <<\EOF
1133#define __UNIX__ 1
1134EOF
1135
1136 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1137 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1138fi
1139
1140if test "$USE_LINUX" = 1; then
1141 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
c7a2bf27 1142echo "configure:1143: checking for gettext in -lc" >&5
10f2d63a
VZ
1143ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1144if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1145 echo $ac_n "(cached) $ac_c" 1>&6
1146else
1147 ac_save_LIBS="$LIBS"
1148LIBS="-lc $LIBS"
1149cat > conftest.$ac_ext <<EOF
c7a2bf27 1150#line 1151 "configure"
10f2d63a
VZ
1151#include "confdefs.h"
1152/* Override any gcc2 internal prototype to avoid an error. */
1153/* We use char because int might match the return type of a gcc2
1154 builtin and then its argument prototype would still apply. */
1155char gettext();
1156
1157int main() {
1158gettext()
1159; return 0; }
1160EOF
c7a2bf27 1161if { (eval echo configure:1162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
1162 rm -rf conftest*
1163 eval "ac_cv_lib_$ac_lib_var=yes"
1164else
1165 echo "configure: failed program was:" >&5
1166 cat conftest.$ac_ext >&5
1167 rm -rf conftest*
1168 eval "ac_cv_lib_$ac_lib_var=no"
1169fi
1170rm -f conftest*
1171LIBS="$ac_save_LIBS"
1172
1173fi
1174if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1175 echo "$ac_t""yes" 1>&6
1176 cat >> confdefs.h <<\EOF
1177#define wxHAVE_GLIBC2 1
1178EOF
1179
1180else
1181 echo "$ac_t""no" 1>&6
1182fi
1183
1184fi
1185
1186
1187
1188
1189 wx_arg_cache_file="configarg.cache"
1190 echo "loading argument cache $wx_arg_cache_file"
1191 rm -f ${wx_arg_cache_file}.tmp
1192 touch ${wx_arg_cache_file}.tmp
1193 touch ${wx_arg_cache_file}
1194
1195
1196DEBUG_CONFIGURE=0
1197if test $DEBUG_CONFIGURE = 1; then
1198 DEFAULT_wxUSE_THREADS=yes
1199
1200 DEFAULT_wxUSE_SHARED=yes
1201 DEFAULT_wxUSE_OPTIMISE=yes
1202 DEFAULT_wxUSE_PROFILE=no
1203 DEFAULT_wxUSE_NO_DEPS=no
1204 DEFAULT_wxUSE_NO_RTTI=no
1205 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1206 DEFAULT_wxUSE_PERMISSIVE=no
1207 DEFAULT_wxUSE_DEBUG_FLAG=yes
1208 DEFAULT_wxUSE_DEBUG_INFO=yes
1209 DEFAULT_wxUSE_DEBUG_GDB=yes
1210 DEFAULT_wxUSE_MEM_TRACING=no
1211 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1212 DEFAULT_wxUSE_DMALLOC=no
1213 DEFAULT_wxUSE_APPLE_IEEE=no
1214
1215 DEFAULT_wxUSE_LOG=yes
1216
1217 DEFAULT_wxUSE_GUI=yes
1218
1219 DEFAULT_wxUSE_ZLIB=no
1220 DEFAULT_wxUSE_LIBPNG=no
1221 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1222 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a
VZ
1223 DEFAULT_wxUSE_ODBC=no
1224
1225 DEFAULT_wxUSE_STD_IOSTREAM=no
1226 DEFAULT_wxUSE_FILE=no
1227 DEFAULT_wxUSE_TEXTFILE=no
1228 DEFAULT_wxUSE_TIMEDATE=no
1229 DEFAULT_wxUSE_WAVE=no
1230 DEFAULT_wxUSE_INTL=no
1231 DEFAULT_wxUSE_CONFIG=no
1232 DEFAULT_wxUSE_STREAMS=no
1233 DEFAULT_wxUSE_SOCKETS=no
1234 DEFAULT_wxUSE_DIALUP_MANAGER=no
1235 DEFAULT_wxUSE_SERIAL=no
1236 DEFAULT_wxUSE_JOYSTICK=no
1237 DEFAULT_wxUSE_DYNLIB_CLASS=no
1238 DEFAULT_wxUSE_LONGLONG=no
1239
1240 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1241 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1242 DEFAULT_wxUSE_POSTSCRIPT=no
1243
1244 DEFAULT_wxUSE_X_RESOURCES=no
1245 DEFAULT_wxUSE_CLIPBOARD=no
1246 DEFAULT_wxUSE_TOOLTIPS=no
1247 DEFAULT_wxUSE_DRAG_AND_DROP=no
1248 DEFAULT_wxUSE_SPLINES=no
1249
1250 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1251 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1252 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1253
1254 DEFAULT_wxUSE_PROLOGIO=no
1255 DEFAULT_wxUSE_RESOURCES=no
1256 DEFAULT_wxUSE_CONSTRAINTS=no
1257 DEFAULT_wxUSE_IPC=no
1258 DEFAULT_wxUSE_HELP=no
1259 DEFAULT_wxUSE_WXTREE=no
1260 DEFAULT_wxUSE_METAFILE=no
1261
1262 DEFAULT_wxUSE_COMMONDLGS=no
1263 DEFAULT_wxUSE_DIRDLG=no
1264 DEFAULT_wxUSE_TEXTDLG=no
1265 DEFAULT_wxUSE_STARTUP_TIPS=no
1266 DEFAULT_wxUSE_PROGRESSDLG=no
1267 DEFAULT_wxUSE_MINIFRAME=no
1268 DEFAULT_wxUSE_HTML=no
1269 DEFAULT_wxUSE_FS_INET=no
1270 DEFAULT_wxUSE_FS_ZIP=no
1271 DEFAULT_wxUSE_BUSYINFO=no
1272 DEFAULT_wxUSE_ZIPSTREAM=no
1273 DEFAULT_wxUSE_VALIDATORS=yes
1274
1275 DEFAULT_wxUSE_ACCEL=no
1276 DEFAULT_wxUSE_CARET=no
1277 DEFAULT_wxUSE_BMPBUTTON=no
1278 DEFAULT_wxUSE_CHECKBOX=no
1279 DEFAULT_wxUSE_CHECKLST=no
1280 DEFAULT_wxUSE_CHOICE=yes
1281 DEFAULT_wxUSE_COMBOBOX=no
1282 DEFAULT_wxUSE_GAUGE=no
1283 DEFAULT_wxUSE_GRID=no
1284 DEFAULT_wxUSE_NEW_GRID=no
1285 DEFAULT_wxUSE_IMAGLIST=no
1286 DEFAULT_wxUSE_LISTBOX=no
1287 DEFAULT_wxUSE_LISTCTRL=no
1288 DEFAULT_wxUSE_NOTEBOOK=no
1289 DEFAULT_wxUSE_RADIOBOX=no
1290 DEFAULT_wxUSE_RADIOBTN=no
1291 DEFAULT_wxUSE_SASH=no
1292 DEFAULT_wxUSE_SCROLLBAR=no
1293 DEFAULT_wxUSE_SLIDER=no
1294 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1295 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1296 DEFAULT_wxUSE_SPLITTER=no
1297 DEFAULT_wxUSE_STATBMP=no
1298 DEFAULT_wxUSE_STATBOX=no
1299 DEFAULT_wxUSE_STATLINE=no
1300 DEFAULT_wxUSE_STATUSBAR=yes
1301 DEFAULT_wxUSE_TABDIALOG=no
1302 DEFAULT_wxUSE_TOOLBAR=no
1303 DEFAULT_wxUSE_TREECTRL=no
1304
1305 DEFAULT_wxUSE_UNICODE=no
1306 DEFAULT_wxUSE_WCSRTOMBS=no
1307
1308 DEFAULT_wxUSE_GIF=no
1309 DEFAULT_wxUSE_PCX=no
1310 DEFAULT_wxUSE_PNM=no
1311else
1312 DEFAULT_wxUSE_THREADS=yes
1313
1314 DEFAULT_wxUSE_SHARED=yes
1315 DEFAULT_wxUSE_OPTIMISE=yes
1316 DEFAULT_wxUSE_PROFILE=no
1317 DEFAULT_wxUSE_NO_DEPS=no
1318 DEFAULT_wxUSE_NO_RTTI=no
1319 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1320 DEFAULT_wxUSE_PERMISSIVE=no
1321 DEFAULT_wxUSE_DEBUG_FLAG=no
1322 DEFAULT_wxUSE_DEBUG_INFO=no
1323 DEFAULT_wxUSE_DEBUG_GDB=no
1324 DEFAULT_wxUSE_MEM_TRACING=no
1325 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1326 DEFAULT_wxUSE_DMALLOC=no
1327 DEFAULT_wxUSE_APPLE_IEEE=yes
1328
1329 DEFAULT_wxUSE_LOG=yes
1330
1331 DEFAULT_wxUSE_GUI=yes
1332
1333 DEFAULT_wxUSE_ZLIB=yes
1334 DEFAULT_wxUSE_LIBPNG=yes
1335 DEFAULT_wxUSE_LIBJPEG=yes
c7a2bf27 1336 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a
VZ
1337 DEFAULT_wxUSE_ODBC=yes
1338
1339 DEFAULT_wxUSE_STD_IOSTREAM=no
1340 DEFAULT_wxUSE_FILE=yes
1341 DEFAULT_wxUSE_TEXTFILE=yes
1342 DEFAULT_wxUSE_TIMEDATE=yes
1343 DEFAULT_wxUSE_WAVE=no
1344 DEFAULT_wxUSE_INTL=yes
1345 DEFAULT_wxUSE_CONFIG=yes
1346 DEFAULT_wxUSE_STREAMS=yes
1347 DEFAULT_wxUSE_SOCKETS=yes
1348 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1349 DEFAULT_wxUSE_SERIAL=yes
1350 DEFAULT_wxUSE_JOYSTICK=yes
1351 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1352 DEFAULT_wxUSE_LONGLONG=no
1353
1354 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1355 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1356 DEFAULT_wxUSE_POSTSCRIPT=yes
1357
1358 DEFAULT_wxUSE_X_RESOURCES=no
1359 DEFAULT_wxUSE_CLIPBOARD=yes
1360 DEFAULT_wxUSE_TOOLTIPS=yes
1361 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1362 DEFAULT_wxUSE_SPLINES=yes
1363
1364 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1365 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1366 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1367
1368 DEFAULT_wxUSE_PROLOGIO=yes
1369 DEFAULT_wxUSE_RESOURCES=yes
1370 DEFAULT_wxUSE_CONSTRAINTS=yes
1371 DEFAULT_wxUSE_IPC=yes
1372 DEFAULT_wxUSE_HELP=yes
1373 DEFAULT_wxUSE_WXTREE=yes
1374 DEFAULT_wxUSE_METAFILE=yes
1375
1376 DEFAULT_wxUSE_COMMONDLGS=yes
1377 DEFAULT_wxUSE_DIRDLG=yes
1378 DEFAULT_wxUSE_TEXTDLG=yes
1379 DEFAULT_wxUSE_STARTUP_TIPS=yes
1380 DEFAULT_wxUSE_PROGRESSDLG=yes
1381 DEFAULT_wxUSE_MINIFRAME=yes
1382 DEFAULT_wxUSE_HTML=yes
1383 DEFAULT_wxUSE_FS_INET=yes
1384 DEFAULT_wxUSE_FS_ZIP=yes
1385 DEFAULT_wxUSE_BUSYINFO=yes
1386 DEFAULT_wxUSE_ZIPSTREAM=yes
1387 DEFAULT_wxUSE_VALIDATORS=yes
1388
1389 DEFAULT_wxUSE_ACCEL=yes
1390 DEFAULT_wxUSE_CARET=yes
1391 DEFAULT_wxUSE_BMPBUTTON=yes
1392 DEFAULT_wxUSE_CHECKBOX=yes
1393 DEFAULT_wxUSE_CHECKLST=yes
1394 DEFAULT_wxUSE_CHOICE=yes
1395 DEFAULT_wxUSE_COMBOBOX=yes
1396 DEFAULT_wxUSE_GAUGE=yes
1397 DEFAULT_wxUSE_GRID=yes
fc9c7c09 1398 DEFAULT_wxUSE_NEW_GRID=no
10f2d63a
VZ
1399 DEFAULT_wxUSE_IMAGLIST=yes
1400 DEFAULT_wxUSE_LISTBOX=yes
1401 DEFAULT_wxUSE_LISTCTRL=yes
1402 DEFAULT_wxUSE_NOTEBOOK=yes
1403 DEFAULT_wxUSE_RADIOBOX=yes
1404 DEFAULT_wxUSE_RADIOBTN=yes
1405 DEFAULT_wxUSE_SASH=yes
1406 DEFAULT_wxUSE_SCROLLBAR=yes
1407 DEFAULT_wxUSE_SLIDER=yes
1408 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1409 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1410 DEFAULT_wxUSE_SPLITTER=yes
1411 DEFAULT_wxUSE_STATBMP=yes
1412 DEFAULT_wxUSE_STATBOX=yes
1413 DEFAULT_wxUSE_STATLINE=yes
1414 DEFAULT_wxUSE_STATUSBAR=yes
1415 DEFAULT_wxUSE_TABDIALOG=no
1416 DEFAULT_wxUSE_TOOLBAR=yes
1417 DEFAULT_wxUSE_TREECTRL=yes
1418
1419 DEFAULT_wxUSE_UNICODE=no
1420 DEFAULT_wxUSE_WCSRTOMBS=no
1421
1422 DEFAULT_wxUSE_GIF=yes
1423 DEFAULT_wxUSE_PCX=yes
1424 DEFAULT_wxUSE_PNM=yes
1425fi
1426
1427
1428
1429for toolkit in `echo $ALL_TOOLKITS`; do
1430 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1431 if test "x$LINE" != x ; then
1432 has_toolkit_in_cache=1
1433 eval "DEFAULT_$LINE"
1434 eval "CACHE_$toolkit=1"
1435 fi
1436done
1437
1438
1439
1440 echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6
c7a2bf27 1441echo "configure:1442: checking "for --enable-gui"" >&5
10f2d63a
VZ
1442 no_cache=0
1443 # Check whether --enable-gui or --disable-gui was given.
1444if test "${enable_gui+set}" = set; then
1445 enableval="$enable_gui"
1446
1447 if test "$enableval" = yes; then
1448 ac_cv_use_gui='wxUSE_GUI=yes'
1449 else
1450 ac_cv_use_gui='wxUSE_GUI=no'
1451 fi
1452
1453else
1454
1455 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1456 if test "x$LINE" != x ; then
1457 eval "DEFAULT_$LINE"
1458 else
1459 no_cache=1
1460 fi
1461
1462 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1463
1464fi
1465
1466
1467 eval "$ac_cv_use_gui"
1468 if test "$no_cache" != 1; then
1469 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1470 fi
1471
1472 if test "$wxUSE_GUI" = yes; then
1473 echo "$ac_t""yes" 1>&6
1474 else
1475 echo "$ac_t""no" 1>&6
1476 fi
1477
1478
1479if test "$wxUSE_GUI" = "no"; then
1480 DEFAULT_wxUSE_ZLIB=no
1481 DEFAULT_wxUSE_LIBPNG=no
1482 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1483 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a
VZ
1484 DEFAULT_wxUSE_SOCKETS=no
1485 DEFAULT_wxUSE_JOYSTICK=no
1486 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1487 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1488 DEFAULT_wxUSE_POSTSCRIPT=no
1489 DEFAULT_wxUSE_X_RESOURCES=no
1490 DEFAULT_wxUSE_CLIPBOARD=no
1491 DEFAULT_wxUSE_TOOLTIPS=no
1492 DEFAULT_wxUSE_DRAG_AND_DROP=no
1493 DEFAULT_wxUSE_SPLINES=no
1494 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1495 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1496 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1497 DEFAULT_wxUSE_PROLOGIO=no
1498 DEFAULT_wxUSE_RESOURCES=no
1499 DEFAULT_wxUSE_CONSTRAINTS=no
1500 DEFAULT_wxUSE_IPC=no
1501 DEFAULT_wxUSE_HELP=no
1502 DEFAULT_wxUSE_WXTREE=no
1503 DEFAULT_wxUSE_METAFILE=no
1504 DEFAULT_wxUSE_COMMONDLGS=no
1505 DEFAULT_wxUSE_DIRDLG=no
1506 DEFAULT_wxUSE_TEXTDLG=no
1507 DEFAULT_wxUSE_STARTUP_TIPS=no
1508 DEFAULT_wxUSE_PROGRESSDLG=no
1509 DEFAULT_wxUSE_MINIFRAME=no
1510 DEFAULT_wxUSE_HTML=no
1511 DEFAULT_wxUSE_FS_INET=no
1512 DEFAULT_wxUSE_FS_ZIP=no
1513 DEFAULT_wxUSE_BUSYINFO=no
1514 DEFAULT_wxUSE_ZIPSTREAM=no
1515 DEFAULT_wxUSE_VALIDATORS=no
1516 DEFAULT_wxUSE_ACCEL=no
1517 DEFAULT_wxUSE_CARET=no
1518 DEFAULT_wxUSE_BMPBUTTON=no
1519 DEFAULT_wxUSE_CHECKBOX=no
1520 DEFAULT_wxUSE_CHECKLST=no
1521 DEFAULT_wxUSE_CHOICE=no
1522 DEFAULT_wxUSE_COMBOBOX=no
1523 DEFAULT_wxUSE_GAUGE=no
1524 DEFAULT_wxUSE_GRID=no
1525 DEFAULT_wxUSE_NEW_GRID=no
1526 DEFAULT_wxUSE_IMAGLIST=no
1527 DEFAULT_wxUSE_LISTBOX=no
1528 DEFAULT_wxUSE_LISTCTRL=no
1529 DEFAULT_wxUSE_NOTEBOOK=no
1530 DEFAULT_wxUSE_RADIOBOX=no
1531 DEFAULT_wxUSE_RADIOBTN=no
1532 DEFAULT_wxUSE_SASH=no
1533 DEFAULT_wxUSE_SCROLLBAR=no
1534 DEFAULT_wxUSE_SLIDER=no
1535 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1536 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1537 DEFAULT_wxUSE_SPLITTER=no
1538 DEFAULT_wxUSE_STATBMP=no
1539 DEFAULT_wxUSE_STATBOX=no
1540 DEFAULT_wxUSE_STATLINE=no
1541 DEFAULT_wxUSE_STATUSBAR=no
1542 DEFAULT_wxUSE_TABDIALOG=no
1543 DEFAULT_wxUSE_TOOLBAR=no
1544 DEFAULT_wxUSE_TREECTRL=no
1545 DEFAULT_wxUSE_GIF=no
1546 DEFAULT_wxUSE_PCX=no
1547 DEFAULT_wxUSE_PNM=no
1548fi
1549
1550# Check whether --with-gtk or --without-gtk was given.
1551if test "${with_gtk+set}" = set; then
1552 withval="$with_gtk"
1553 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1554fi
1555
1556# Check whether --with-motif or --without-motif was given.
1557if test "${with_motif+set}" = set; then
1558 withval="$with_motif"
1559 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1560fi
1561
1562# Check whether --with-wine or --without-wine was given.
1563if test "${with_wine+set}" = set; then
1564 withval="$with_wine"
1565 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1566fi
1567
1568# Check whether --with-cygwin or --without-cygwin was given.
1569if test "${with_cygwin+set}" = set; then
1570 withval="$with_cygwin"
1571 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1572fi
1573
1574# Check whether --with-mingw or --without-mingw was given.
1575if test "${with_mingw+set}" = set; then
1576 withval="$with_mingw"
1577 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1578fi
1579
1580
1581# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1582if test "${with_gtk_prefix+set}" = set; then
1583 withval="$with_gtk_prefix"
1584 gtk_config_prefix="$withval"
1585else
1586 gtk_config_prefix=""
1587fi
1588
1589# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1590if test "${with_gtk_exec_prefix+set}" = set; then
1591 withval="$with_gtk_exec_prefix"
1592 gtk_config_exec_prefix="$withval"
1593else
1594 gtk_config_exec_prefix=""
1595fi
1596
1597
1598
1599 echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6
c7a2bf27 1600echo "configure:1601: checking "for --with-dmalloc"" >&5
10f2d63a
VZ
1601 no_cache=0
1602 # Check whether --with-dmalloc or --without-dmalloc was given.
1603if test "${with_dmalloc+set}" = set; then
1604 withval="$with_dmalloc"
1605
1606 if test "$withval" = yes; then
1607 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
1608 else
1609 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
1610 fi
1611
1612else
1613
1614 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
1615 if test "x$LINE" != x ; then
1616 eval "DEFAULT_$LINE"
1617 else
1618 no_cache=1
1619 fi
1620
1621 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
1622
1623fi
1624
1625
1626 eval "$ac_cv_use_dmalloc"
1627 if test "$no_cache" != 1; then
1628 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
1629 fi
1630
1631 if test "$wxUSE_DMALLOC" = yes; then
1632 echo "$ac_t""yes" 1>&6
1633 else
1634 echo "$ac_t""no" 1>&6
1635 fi
1636
1637
1638 echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6
c7a2bf27 1639echo "configure:1640: checking "for --with-zlib"" >&5
10f2d63a
VZ
1640 no_cache=0
1641 # Check whether --with-zlib or --without-zlib was given.
1642if test "${with_zlib+set}" = set; then
1643 withval="$with_zlib"
1644
1645 if test "$withval" = yes; then
1646 ac_cv_use_zlib='wxUSE_ZLIB=yes'
1647 else
1648 ac_cv_use_zlib='wxUSE_ZLIB=no'
1649 fi
1650
1651else
1652
1653 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
1654 if test "x$LINE" != x ; then
1655 eval "DEFAULT_$LINE"
1656 else
1657 no_cache=1
1658 fi
1659
1660 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
1661
1662fi
1663
1664
1665 eval "$ac_cv_use_zlib"
1666 if test "$no_cache" != 1; then
1667 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
1668 fi
1669
1670 if test "$wxUSE_ZLIB" = yes; then
1671 echo "$ac_t""yes" 1>&6
1672 else
1673 echo "$ac_t""no" 1>&6
1674 fi
1675
1676
1677 echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6
c7a2bf27 1678echo "configure:1679: checking "for --with-libpng"" >&5
10f2d63a
VZ
1679 no_cache=0
1680 # Check whether --with-libpng or --without-libpng was given.
1681if test "${with_libpng+set}" = set; then
1682 withval="$with_libpng"
1683
1684 if test "$withval" = yes; then
1685 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1686 else
1687 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1688 fi
1689
1690else
1691
1692 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1693 if test "x$LINE" != x ; then
1694 eval "DEFAULT_$LINE"
1695 else
1696 no_cache=1
1697 fi
1698
1699 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1700
1701fi
1702
1703
1704 eval "$ac_cv_use_libpng"
1705 if test "$no_cache" != 1; then
1706 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1707 fi
1708
1709 if test "$wxUSE_LIBPNG" = yes; then
1710 echo "$ac_t""yes" 1>&6
1711 else
1712 echo "$ac_t""no" 1>&6
1713 fi
1714
1715
1716 echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6
c7a2bf27 1717echo "configure:1718: checking "for --with-libjpeg"" >&5
10f2d63a
VZ
1718 no_cache=0
1719 # Check whether --with-libjpeg or --without-libjpeg was given.
1720if test "${with_libjpeg+set}" = set; then
1721 withval="$with_libjpeg"
1722
1723 if test "$withval" = yes; then
1724 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1725 else
1726 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1727 fi
1728
1729else
1730
1731 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1732 if test "x$LINE" != x ; then
1733 eval "DEFAULT_$LINE"
1734 else
1735 no_cache=1
1736 fi
1737
1738 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1739
1740fi
1741
1742
1743 eval "$ac_cv_use_libjpeg"
1744 if test "$no_cache" != 1; then
1745 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1746 fi
1747
1748 if test "$wxUSE_LIBJPEG" = yes; then
1749 echo "$ac_t""yes" 1>&6
1750 else
1751 echo "$ac_t""no" 1>&6
1752 fi
1753
1754
c7a2bf27
RR
1755 echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6
1756echo "configure:1757: checking "for --with-libtiff"" >&5
1757 no_cache=0
1758 # Check whether --with-libtiff or --without-libtiff was given.
1759if test "${with_libtiff+set}" = set; then
1760 withval="$with_libtiff"
1761
1762 if test "$withval" = yes; then
1763 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1764 else
1765 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1766 fi
1767
1768else
1769
1770 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1771 if test "x$LINE" != x ; then
1772 eval "DEFAULT_$LINE"
1773 else
1774 no_cache=1
1775 fi
1776
1777 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1778
1779fi
1780
1781
1782 eval "$ac_cv_use_libtiff"
1783 if test "$no_cache" != 1; then
1784 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1785 fi
1786
1787 if test "$wxUSE_LIBTIFF" = yes; then
1788 echo "$ac_t""yes" 1>&6
1789 else
1790 echo "$ac_t""no" 1>&6
1791 fi
1792
1793
10f2d63a 1794 echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6
c7a2bf27 1795echo "configure:1796: checking "for --with-opengl"" >&5
10f2d63a
VZ
1796 no_cache=0
1797 # Check whether --with-opengl or --without-opengl was given.
1798if test "${with_opengl+set}" = set; then
1799 withval="$with_opengl"
1800
1801 if test "$withval" = yes; then
1802 ac_cv_use_opengl='wxUSE_OPENGL=yes'
1803 else
1804 ac_cv_use_opengl='wxUSE_OPENGL=no'
1805 fi
1806
1807else
1808
1809 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
1810 if test "x$LINE" != x ; then
1811 eval "DEFAULT_$LINE"
1812 else
1813 no_cache=1
1814 fi
1815
1816 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
1817
1818fi
1819
1820
1821 eval "$ac_cv_use_opengl"
1822 if test "$no_cache" != 1; then
1823 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
1824 fi
1825
1826 if test "$wxUSE_OPENGL" = yes; then
1827 echo "$ac_t""yes" 1>&6
1828 else
1829 echo "$ac_t""no" 1>&6
1830 fi
1831
1832
1833 echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6
c7a2bf27 1834echo "configure:1835: checking "for --with-odbc"" >&5
10f2d63a
VZ
1835 no_cache=0
1836 # Check whether --with-odbc or --without-odbc was given.
1837if test "${with_odbc+set}" = set; then
1838 withval="$with_odbc"
1839
1840 if test "$withval" = yes; then
1841 ac_cv_use_odbc='wxUSE_ODBC=yes'
1842 else
1843 ac_cv_use_odbc='wxUSE_ODBC=no'
1844 fi
1845
1846else
1847
1848 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
1849 if test "x$LINE" != x ; then
1850 eval "DEFAULT_$LINE"
1851 else
1852 no_cache=1
1853 fi
1854
1855 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
1856
1857fi
1858
1859
1860 eval "$ac_cv_use_odbc"
1861 if test "$no_cache" != 1; then
1862 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
1863 fi
1864
1865 if test "$wxUSE_ODBC" = yes; then
1866 echo "$ac_t""yes" 1>&6
1867 else
1868 echo "$ac_t""no" 1>&6
1869 fi
1870
1871
1872
1873
1874
1875 echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6
c7a2bf27 1876echo "configure:1877: checking "for --enable-shared"" >&5
10f2d63a
VZ
1877 no_cache=0
1878 # Check whether --enable-shared or --disable-shared was given.
1879if test "${enable_shared+set}" = set; then
1880 enableval="$enable_shared"
1881
1882 if test "$enableval" = yes; then
1883 ac_cv_use_shared='wxUSE_SHARED=yes'
1884 else
1885 ac_cv_use_shared='wxUSE_SHARED=no'
1886 fi
1887
1888else
1889
1890 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
1891 if test "x$LINE" != x ; then
1892 eval "DEFAULT_$LINE"
1893 else
1894 no_cache=1
1895 fi
1896
1897 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
1898
1899fi
1900
1901
1902 eval "$ac_cv_use_shared"
1903 if test "$no_cache" != 1; then
1904 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
1905 fi
1906
1907 if test "$wxUSE_SHARED" = yes; then
1908 echo "$ac_t""yes" 1>&6
1909 else
1910 echo "$ac_t""no" 1>&6
1911 fi
1912
1913
1914 echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6
c7a2bf27 1915echo "configure:1916: checking "for --enable-optimise"" >&5
10f2d63a
VZ
1916 no_cache=0
1917 # Check whether --enable-optimise or --disable-optimise was given.
1918if test "${enable_optimise+set}" = set; then
1919 enableval="$enable_optimise"
1920
1921 if test "$enableval" = yes; then
1922 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
1923 else
1924 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
1925 fi
1926
1927else
1928
1929 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
1930 if test "x$LINE" != x ; then
1931 eval "DEFAULT_$LINE"
1932 else
1933 no_cache=1
1934 fi
1935
1936 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
1937
1938fi
1939
1940
1941 eval "$ac_cv_use_optimise"
1942 if test "$no_cache" != 1; then
1943 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
1944 fi
1945
1946 if test "$wxUSE_OPTIMISE" = yes; then
1947 echo "$ac_t""yes" 1>&6
1948 else
1949 echo "$ac_t""no" 1>&6
1950 fi
1951
1952
1953 echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6
c7a2bf27 1954echo "configure:1955: checking "for --enable-debug"" >&5
10f2d63a
VZ
1955 no_cache=0
1956 # Check whether --enable-debug or --disable-debug was given.
1957if test "${enable_debug+set}" = set; then
1958 enableval="$enable_debug"
1959
1960 if test "$enableval" = yes; then
1961 ac_cv_use_debug='wxUSE_DEBUG=yes'
1962 else
1963 ac_cv_use_debug='wxUSE_DEBUG=no'
1964 fi
1965
1966else
1967
1968 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
1969 if test "x$LINE" != x ; then
1970 eval "DEFAULT_$LINE"
1971 else
1972 no_cache=1
1973 fi
1974
1975 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
1976
1977fi
1978
1979
1980 eval "$ac_cv_use_debug"
1981 if test "$no_cache" != 1; then
1982 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
1983 fi
1984
1985 if test "$wxUSE_DEBUG" = yes; then
1986 echo "$ac_t""yes" 1>&6
1987 else
1988 echo "$ac_t""no" 1>&6
1989 fi
1990
1991
1992if test "$wxUSE_DEBUG" = "yes"; then
1993 DEFAULT_wxUSE_DEBUG_FLAG=yes
1994 DEFAULT_wxUSE_DEBUG_INFO=yes
1995elif test "$wxUSE_DEBUG" = "no"; then
1996 DEFAULT_wxUSE_DEBUG_FLAG=no
1997 DEFAULT_wxUSE_DEBUG_INFO=no
1998fi
1999
2000
2001 echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6
c7a2bf27 2002echo "configure:2003: checking "for --enable-debug_flag"" >&5
10f2d63a
VZ
2003 no_cache=0
2004 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2005if test "${enable_debug_flag+set}" = set; then
2006 enableval="$enable_debug_flag"
2007
2008 if test "$enableval" = yes; then
2009 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2010 else
2011 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2012 fi
2013
2014else
2015
2016 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2017 if test "x$LINE" != x ; then
2018 eval "DEFAULT_$LINE"
2019 else
2020 no_cache=1
2021 fi
2022
2023 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2024
2025fi
2026
2027
2028 eval "$ac_cv_use_debug_flag"
2029 if test "$no_cache" != 1; then
2030 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2031 fi
2032
2033 if test "$wxUSE_DEBUG_FLAG" = yes; then
2034 echo "$ac_t""yes" 1>&6
2035 else
2036 echo "$ac_t""no" 1>&6
2037 fi
2038
2039
2040 echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6
c7a2bf27 2041echo "configure:2042: checking "for --enable-debug_info"" >&5
10f2d63a
VZ
2042 no_cache=0
2043 # Check whether --enable-debug_info or --disable-debug_info was given.
2044if test "${enable_debug_info+set}" = set; then
2045 enableval="$enable_debug_info"
2046
2047 if test "$enableval" = yes; then
2048 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2049 else
2050 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2051 fi
2052
2053else
2054
2055 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2056 if test "x$LINE" != x ; then
2057 eval "DEFAULT_$LINE"
2058 else
2059 no_cache=1
2060 fi
2061
2062 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2063
2064fi
2065
2066
2067 eval "$ac_cv_use_debug_info"
2068 if test "$no_cache" != 1; then
2069 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2070 fi
2071
2072 if test "$wxUSE_DEBUG_INFO" = yes; then
2073 echo "$ac_t""yes" 1>&6
2074 else
2075 echo "$ac_t""no" 1>&6
2076 fi
2077
2078
2079 echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6
c7a2bf27 2080echo "configure:2081: checking "for --enable-debug_gdb"" >&5
10f2d63a
VZ
2081 no_cache=0
2082 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2083if test "${enable_debug_gdb+set}" = set; then
2084 enableval="$enable_debug_gdb"
2085
2086 if test "$enableval" = yes; then
2087 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2088 else
2089 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2090 fi
2091
2092else
2093
2094 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2095 if test "x$LINE" != x ; then
2096 eval "DEFAULT_$LINE"
2097 else
2098 no_cache=1
2099 fi
2100
2101 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2102
2103fi
2104
2105
2106 eval "$ac_cv_use_debug_gdb"
2107 if test "$no_cache" != 1; then
2108 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2109 fi
2110
2111 if test "$wxUSE_DEBUG_GDB" = yes; then
2112 echo "$ac_t""yes" 1>&6
2113 else
2114 echo "$ac_t""no" 1>&6
2115 fi
2116
2117
2118 echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6
c7a2bf27 2119echo "configure:2120: checking "for --enable-debug_cntxt"" >&5
10f2d63a
VZ
2120 no_cache=0
2121 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2122if test "${enable_debug_cntxt+set}" = set; then
2123 enableval="$enable_debug_cntxt"
2124
2125 if test "$enableval" = yes; then
2126 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2127 else
2128 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2129 fi
2130
2131else
2132
2133 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2134 if test "x$LINE" != x ; then
2135 eval "DEFAULT_$LINE"
2136 else
2137 no_cache=1
2138 fi
2139
2140 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2141
2142fi
2143
2144
2145 eval "$ac_cv_use_debug_cntxt"
2146 if test "$no_cache" != 1; then
2147 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2148 fi
2149
2150 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2151 echo "$ac_t""yes" 1>&6
2152 else
2153 echo "$ac_t""no" 1>&6
2154 fi
2155
2156
2157 echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6
c7a2bf27 2158echo "configure:2159: checking "for --enable-mem_tracing"" >&5
10f2d63a
VZ
2159 no_cache=0
2160 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2161if test "${enable_mem_tracing+set}" = set; then
2162 enableval="$enable_mem_tracing"
2163
2164 if test "$enableval" = yes; then
2165 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2166 else
2167 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2168 fi
2169
2170else
2171
2172 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2173 if test "x$LINE" != x ; then
2174 eval "DEFAULT_$LINE"
2175 else
2176 no_cache=1
2177 fi
2178
2179 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2180
2181fi
2182
2183
2184 eval "$ac_cv_use_mem_tracing"
2185 if test "$no_cache" != 1; then
2186 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2187 fi
2188
2189 if test "$wxUSE_MEM_TRACING" = yes; then
2190 echo "$ac_t""yes" 1>&6
2191 else
2192 echo "$ac_t""no" 1>&6
2193 fi
2194
2195
2196 echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6
c7a2bf27 2197echo "configure:2198: checking "for --enable-profile"" >&5
10f2d63a
VZ
2198 no_cache=0
2199 # Check whether --enable-profile or --disable-profile was given.
2200if test "${enable_profile+set}" = set; then
2201 enableval="$enable_profile"
2202
2203 if test "$enableval" = yes; then
2204 ac_cv_use_profile='wxUSE_PROFILE=yes'
2205 else
2206 ac_cv_use_profile='wxUSE_PROFILE=no'
2207 fi
2208
2209else
2210
2211 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2212 if test "x$LINE" != x ; then
2213 eval "DEFAULT_$LINE"
2214 else
2215 no_cache=1
2216 fi
2217
2218 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2219
2220fi
2221
2222
2223 eval "$ac_cv_use_profile"
2224 if test "$no_cache" != 1; then
2225 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2226 fi
2227
2228 if test "$wxUSE_PROFILE" = yes; then
2229 echo "$ac_t""yes" 1>&6
2230 else
2231 echo "$ac_t""no" 1>&6
2232 fi
2233
2234
2235 echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6
c7a2bf27 2236echo "configure:2237: checking "for --enable-no_rtti"" >&5
10f2d63a
VZ
2237 no_cache=0
2238 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2239if test "${enable_no_rtti+set}" = set; then
2240 enableval="$enable_no_rtti"
2241
2242 if test "$enableval" = yes; then
2243 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2244 else
2245 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2246 fi
2247
2248else
2249
2250 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2251 if test "x$LINE" != x ; then
2252 eval "DEFAULT_$LINE"
2253 else
2254 no_cache=1
2255 fi
2256
2257 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2258
2259fi
2260
2261
2262 eval "$ac_cv_use_no_rtti"
2263 if test "$no_cache" != 1; then
2264 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2265 fi
2266
2267 if test "$wxUSE_NO_RTTI" = yes; then
2268 echo "$ac_t""yes" 1>&6
2269 else
2270 echo "$ac_t""no" 1>&6
2271 fi
2272
2273
2274 echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6
c7a2bf27 2275echo "configure:2276: checking "for --enable-no_exceptions"" >&5
10f2d63a
VZ
2276 no_cache=0
2277 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2278if test "${enable_no_exceptions+set}" = set; then
2279 enableval="$enable_no_exceptions"
2280
2281 if test "$enableval" = yes; then
2282 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2283 else
2284 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2285 fi
2286
2287else
2288
2289 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2290 if test "x$LINE" != x ; then
2291 eval "DEFAULT_$LINE"
2292 else
2293 no_cache=1
2294 fi
2295
2296 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2297
2298fi
2299
2300
2301 eval "$ac_cv_use_no_exceptions"
2302 if test "$no_cache" != 1; then
2303 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2304 fi
2305
2306 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2307 echo "$ac_t""yes" 1>&6
2308 else
2309 echo "$ac_t""no" 1>&6
2310 fi
2311
2312
2313 echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6
c7a2bf27 2314echo "configure:2315: checking "for --enable-permissive"" >&5
10f2d63a
VZ
2315 no_cache=0
2316 # Check whether --enable-permissive or --disable-permissive was given.
2317if test "${enable_permissive+set}" = set; then
2318 enableval="$enable_permissive"
2319
2320 if test "$enableval" = yes; then
2321 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2322 else
2323 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2324 fi
2325
2326else
2327
2328 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2329 if test "x$LINE" != x ; then
2330 eval "DEFAULT_$LINE"
2331 else
2332 no_cache=1
2333 fi
2334
2335 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2336
2337fi
2338
2339
2340 eval "$ac_cv_use_permissive"
2341 if test "$no_cache" != 1; then
2342 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2343 fi
2344
2345 if test "$wxUSE_PERMISSIVE" = yes; then
2346 echo "$ac_t""yes" 1>&6
2347 else
2348 echo "$ac_t""no" 1>&6
2349 fi
2350
2351
2352 echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6
c7a2bf27 2353echo "configure:2354: checking "for --enable-no_deps"" >&5
10f2d63a
VZ
2354 no_cache=0
2355 # Check whether --enable-no_deps or --disable-no_deps was given.
2356if test "${enable_no_deps+set}" = set; then
2357 enableval="$enable_no_deps"
2358
2359 if test "$enableval" = yes; then
2360 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2361 else
2362 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2363 fi
2364
2365else
2366
2367 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2368 if test "x$LINE" != x ; then
2369 eval "DEFAULT_$LINE"
2370 else
2371 no_cache=1
2372 fi
2373
2374 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2375
2376fi
2377
2378
2379 eval "$ac_cv_use_no_deps"
2380 if test "$no_cache" != 1; then
2381 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2382 fi
2383
2384 if test "$wxUSE_NO_DEPS" = yes; then
2385 echo "$ac_t""yes" 1>&6
2386 else
2387 echo "$ac_t""no" 1>&6
2388 fi
2389
2390
2391
2392
2393 echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6
c7a2bf27 2394echo "configure:2395: checking "for --enable-intl"" >&5
10f2d63a
VZ
2395 no_cache=0
2396 # Check whether --enable-intl or --disable-intl was given.
2397if test "${enable_intl+set}" = set; then
2398 enableval="$enable_intl"
2399
2400 if test "$enableval" = yes; then
2401 ac_cv_use_intl='wxUSE_INTL=yes'
2402 else
2403 ac_cv_use_intl='wxUSE_INTL=no'
2404 fi
2405
2406else
2407
2408 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2409 if test "x$LINE" != x ; then
2410 eval "DEFAULT_$LINE"
2411 else
2412 no_cache=1
2413 fi
2414
2415 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2416
2417fi
2418
2419
2420 eval "$ac_cv_use_intl"
2421 if test "$no_cache" != 1; then
2422 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2423 fi
2424
2425 if test "$wxUSE_INTL" = yes; then
2426 echo "$ac_t""yes" 1>&6
2427 else
2428 echo "$ac_t""no" 1>&6
2429 fi
2430
2431
2432 echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6
c7a2bf27 2433echo "configure:2434: checking "for --enable-config"" >&5
10f2d63a
VZ
2434 no_cache=0
2435 # Check whether --enable-config or --disable-config was given.
2436if test "${enable_config+set}" = set; then
2437 enableval="$enable_config"
2438
2439 if test "$enableval" = yes; then
2440 ac_cv_use_config='wxUSE_CONFIG=yes'
2441 else
2442 ac_cv_use_config='wxUSE_CONFIG=no'
2443 fi
2444
2445else
2446
2447 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2448 if test "x$LINE" != x ; then
2449 eval "DEFAULT_$LINE"
2450 else
2451 no_cache=1
2452 fi
2453
2454 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2455
2456fi
2457
2458
2459 eval "$ac_cv_use_config"
2460 if test "$no_cache" != 1; then
2461 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2462 fi
2463
2464 if test "$wxUSE_CONFIG" = yes; then
2465 echo "$ac_t""yes" 1>&6
2466 else
2467 echo "$ac_t""no" 1>&6
2468 fi
2469
2470
2471 echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6
c7a2bf27 2472echo "configure:2473: checking "for --enable-sockets"" >&5
10f2d63a
VZ
2473 no_cache=0
2474 # Check whether --enable-sockets or --disable-sockets was given.
2475if test "${enable_sockets+set}" = set; then
2476 enableval="$enable_sockets"
2477
2478 if test "$enableval" = yes; then
2479 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2480 else
2481 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2482 fi
2483
2484else
2485
2486 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2487 if test "x$LINE" != x ; then
2488 eval "DEFAULT_$LINE"
2489 else
2490 no_cache=1
2491 fi
2492
2493 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2494
2495fi
2496
2497
2498 eval "$ac_cv_use_sockets"
2499 if test "$no_cache" != 1; then
2500 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2501 fi
2502
2503 if test "$wxUSE_SOCKETS" = yes; then
2504 echo "$ac_t""yes" 1>&6
2505 else
2506 echo "$ac_t""no" 1>&6
2507 fi
2508
2509
2510 echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6
c7a2bf27 2511echo "configure:2512: checking "for --enable-dialupman"" >&5
10f2d63a
VZ
2512 no_cache=0
2513 # Check whether --enable-dialupman or --disable-dialupman was given.
2514if test "${enable_dialupman+set}" = set; then
2515 enableval="$enable_dialupman"
2516
2517 if test "$enableval" = yes; then
2518 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
2519 else
2520 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
2521 fi
2522
2523else
2524
2525 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
2526 if test "x$LINE" != x ; then
2527 eval "DEFAULT_$LINE"
2528 else
2529 no_cache=1
2530 fi
2531
2532 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
2533
2534fi
2535
2536
2537 eval "$ac_cv_use_dialupman"
2538 if test "$no_cache" != 1; then
2539 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
2540 fi
2541
2542 if test "$wxUSE_DIALUP_MANAGER" = yes; then
2543 echo "$ac_t""yes" 1>&6
2544 else
2545 echo "$ac_t""no" 1>&6
2546 fi
2547
2548
2549 echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6
c7a2bf27 2550echo "configure:2551: checking "for --enable-ipc"" >&5
10f2d63a
VZ
2551 no_cache=0
2552 # Check whether --enable-ipc or --disable-ipc was given.
2553if test "${enable_ipc+set}" = set; then
2554 enableval="$enable_ipc"
2555
2556 if test "$enableval" = yes; then
2557 ac_cv_use_ipc='wxUSE_IPC=yes'
2558 else
2559 ac_cv_use_ipc='wxUSE_IPC=no'
2560 fi
2561
2562else
2563
2564 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
2565 if test "x$LINE" != x ; then
2566 eval "DEFAULT_$LINE"
2567 else
2568 no_cache=1
2569 fi
2570
2571 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
2572
2573fi
2574
2575
2576 eval "$ac_cv_use_ipc"
2577 if test "$no_cache" != 1; then
2578 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
2579 fi
2580
2581 if test "$wxUSE_IPC" = yes; then
2582 echo "$ac_t""yes" 1>&6
2583 else
2584 echo "$ac_t""no" 1>&6
2585 fi
2586
2587
2588 echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6
c7a2bf27 2589echo "configure:2590: checking "for --enable-apple_ieee"" >&5
10f2d63a
VZ
2590 no_cache=0
2591 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
2592if test "${enable_apple_ieee+set}" = set; then
2593 enableval="$enable_apple_ieee"
2594
2595 if test "$enableval" = yes; then
2596 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
2597 else
2598 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
2599 fi
2600
2601else
2602
2603 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
2604 if test "x$LINE" != x ; then
2605 eval "DEFAULT_$LINE"
2606 else
2607 no_cache=1
2608 fi
2609
2610 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
2611
2612fi
2613
2614
2615 eval "$ac_cv_use_apple_ieee"
2616 if test "$no_cache" != 1; then
2617 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
2618 fi
2619
2620 if test "$wxUSE_APPLE_IEEE" = yes; then
2621 echo "$ac_t""yes" 1>&6
2622 else
2623 echo "$ac_t""no" 1>&6
2624 fi
2625
2626
2627 echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6
c7a2bf27 2628echo "configure:2629: checking "for --enable-timedate"" >&5
10f2d63a
VZ
2629 no_cache=0
2630 # Check whether --enable-timedate or --disable-timedate was given.
2631if test "${enable_timedate+set}" = set; then
2632 enableval="$enable_timedate"
2633
2634 if test "$enableval" = yes; then
2635 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
2636 else
2637 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
2638 fi
2639
2640else
2641
2642 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
2643 if test "x$LINE" != x ; then
2644 eval "DEFAULT_$LINE"
2645 else
2646 no_cache=1
2647 fi
2648
2649 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
2650
2651fi
2652
2653
2654 eval "$ac_cv_use_timedate"
2655 if test "$no_cache" != 1; then
2656 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
2657 fi
2658
2659 if test "$wxUSE_TIMEDATE" = yes; then
2660 echo "$ac_t""yes" 1>&6
2661 else
2662 echo "$ac_t""no" 1>&6
2663 fi
2664
2665
2666 echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6
c7a2bf27 2667echo "configure:2668: checking "for --enable-wave"" >&5
10f2d63a
VZ
2668 no_cache=0
2669 # Check whether --enable-wave or --disable-wave was given.
2670if test "${enable_wave+set}" = set; then
2671 enableval="$enable_wave"
2672
2673 if test "$enableval" = yes; then
2674 ac_cv_use_wave='wxUSE_WAVE=yes'
2675 else
2676 ac_cv_use_wave='wxUSE_WAVE=no'
2677 fi
2678
2679else
2680
2681 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
2682 if test "x$LINE" != x ; then
2683 eval "DEFAULT_$LINE"
2684 else
2685 no_cache=1
2686 fi
2687
2688 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
2689
2690fi
2691
2692
2693 eval "$ac_cv_use_wave"
2694 if test "$no_cache" != 1; then
2695 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
2696 fi
2697
2698 if test "$wxUSE_WAVE" = yes; then
2699 echo "$ac_t""yes" 1>&6
2700 else
2701 echo "$ac_t""no" 1>&6
2702 fi
2703
2704
2705 echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6
c7a2bf27 2706echo "configure:2707: checking "for --enable-fraction"" >&5
10f2d63a
VZ
2707 no_cache=0
2708 # Check whether --enable-fraction or --disable-fraction was given.
2709if test "${enable_fraction+set}" = set; then
2710 enableval="$enable_fraction"
2711
2712 if test "$enableval" = yes; then
2713 ac_cv_use_fraction='wxUSE_FRACTION=yes'
2714 else
2715 ac_cv_use_fraction='wxUSE_FRACTION=no'
2716 fi
2717
2718else
2719
2720 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
2721 if test "x$LINE" != x ; then
2722 eval "DEFAULT_$LINE"
2723 else
2724 no_cache=1
2725 fi
2726
2727 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
2728
2729fi
2730
2731
2732 eval "$ac_cv_use_fraction"
2733 if test "$no_cache" != 1; then
2734 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
2735 fi
2736
2737 if test "$wxUSE_FRACTION" = yes; then
2738 echo "$ac_t""yes" 1>&6
2739 else
2740 echo "$ac_t""no" 1>&6
2741 fi
2742
2743
2744 echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6
c7a2bf27 2745echo "configure:2746: checking "for --enable-dynlib"" >&5
10f2d63a
VZ
2746 no_cache=0
2747 # Check whether --enable-dynlib or --disable-dynlib was given.
2748if test "${enable_dynlib+set}" = set; then
2749 enableval="$enable_dynlib"
2750
2751 if test "$enableval" = yes; then
2752 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
2753 else
2754 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
2755 fi
2756
2757else
2758
2759 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
2760 if test "x$LINE" != x ; then
2761 eval "DEFAULT_$LINE"
2762 else
2763 no_cache=1
2764 fi
2765
2766 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
2767
2768fi
2769
2770
2771 eval "$ac_cv_use_dynlib"
2772 if test "$no_cache" != 1; then
2773 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
2774 fi
2775
2776 if test "$wxUSE_DYNLIB_CLASS" = yes; then
2777 echo "$ac_t""yes" 1>&6
2778 else
2779 echo "$ac_t""no" 1>&6
2780 fi
2781
2782
2783 echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6
c7a2bf27 2784echo "configure:2785: checking "for --enable-longlong"" >&5
10f2d63a
VZ
2785 no_cache=0
2786 # Check whether --enable-longlong or --disable-longlong was given.
2787if test "${enable_longlong+set}" = set; then
2788 enableval="$enable_longlong"
2789
2790 if test "$enableval" = yes; then
2791 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
2792 else
2793 ac_cv_use_longlong='wxUSE_LONGLONG=no'
2794 fi
2795
2796else
2797
2798 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
2799 if test "x$LINE" != x ; then
2800 eval "DEFAULT_$LINE"
2801 else
2802 no_cache=1
2803 fi
2804
2805 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
2806
2807fi
2808
2809
2810 eval "$ac_cv_use_longlong"
2811 if test "$no_cache" != 1; then
2812 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
2813 fi
2814
2815 if test "$wxUSE_LONGLONG" = yes; then
2816 echo "$ac_t""yes" 1>&6
2817 else
2818 echo "$ac_t""no" 1>&6
2819 fi
2820
2821
2822 echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6
c7a2bf27 2823echo "configure:2824: checking "for --enable-log"" >&5
10f2d63a
VZ
2824 no_cache=0
2825 # Check whether --enable-log or --disable-log was given.
2826if test "${enable_log+set}" = set; then
2827 enableval="$enable_log"
2828
2829 if test "$enableval" = yes; then
2830 ac_cv_use_log='wxUSE_LOG=yes'
2831 else
2832 ac_cv_use_log='wxUSE_LOG=no'
2833 fi
2834
2835else
2836
2837 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
2838 if test "x$LINE" != x ; then
2839 eval "DEFAULT_$LINE"
2840 else
2841 no_cache=1
2842 fi
2843
2844 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
2845
2846fi
2847
2848
2849 eval "$ac_cv_use_log"
2850 if test "$no_cache" != 1; then
2851 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
2852 fi
2853
2854 if test "$wxUSE_LOG" = yes; then
2855 echo "$ac_t""yes" 1>&6
2856 else
2857 echo "$ac_t""no" 1>&6
2858 fi
2859
2860
2861 echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6
c7a2bf27 2862echo "configure:2863: checking "for --enable-streams"" >&5
10f2d63a
VZ
2863 no_cache=0
2864 # Check whether --enable-streams or --disable-streams was given.
2865if test "${enable_streams+set}" = set; then
2866 enableval="$enable_streams"
2867
2868 if test "$enableval" = yes; then
2869 ac_cv_use_streams='wxUSE_STREAMS=yes'
2870 else
2871 ac_cv_use_streams='wxUSE_STREAMS=no'
2872 fi
2873
2874else
2875
2876 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
2877 if test "x$LINE" != x ; then
2878 eval "DEFAULT_$LINE"
2879 else
2880 no_cache=1
2881 fi
2882
2883 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
2884
2885fi
2886
2887
2888 eval "$ac_cv_use_streams"
2889 if test "$no_cache" != 1; then
2890 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
2891 fi
2892
2893 if test "$wxUSE_STREAMS" = yes; then
2894 echo "$ac_t""yes" 1>&6
2895 else
2896 echo "$ac_t""no" 1>&6
2897 fi
2898
2899
2900 echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6
c7a2bf27 2901echo "configure:2902: checking "for --enable-file"" >&5
10f2d63a
VZ
2902 no_cache=0
2903 # Check whether --enable-file or --disable-file was given.
2904if test "${enable_file+set}" = set; then
2905 enableval="$enable_file"
2906
2907 if test "$enableval" = yes; then
2908 ac_cv_use_file='wxUSE_FILE=yes'
2909 else
2910 ac_cv_use_file='wxUSE_FILE=no'
2911 fi
2912
2913else
2914
2915 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
2916 if test "x$LINE" != x ; then
2917 eval "DEFAULT_$LINE"
2918 else
2919 no_cache=1
2920 fi
2921
2922 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
2923
2924fi
2925
2926
2927 eval "$ac_cv_use_file"
2928 if test "$no_cache" != 1; then
2929 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
2930 fi
2931
2932 if test "$wxUSE_FILE" = yes; then
2933 echo "$ac_t""yes" 1>&6
2934 else
2935 echo "$ac_t""no" 1>&6
2936 fi
2937
2938
2939 echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6
c7a2bf27 2940echo "configure:2941: checking "for --enable-textfile"" >&5
10f2d63a
VZ
2941 no_cache=0
2942 # Check whether --enable-textfile or --disable-textfile was given.
2943if test "${enable_textfile+set}" = set; then
2944 enableval="$enable_textfile"
2945
2946 if test "$enableval" = yes; then
2947 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
2948 else
2949 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
2950 fi
2951
2952else
2953
2954 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
2955 if test "x$LINE" != x ; then
2956 eval "DEFAULT_$LINE"
2957 else
2958 no_cache=1
2959 fi
2960
2961 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
2962
2963fi
2964
2965
2966 eval "$ac_cv_use_textfile"
2967 if test "$no_cache" != 1; then
2968 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
2969 fi
2970
2971 if test "$wxUSE_TEXTFILE" = yes; then
2972 echo "$ac_t""yes" 1>&6
2973 else
2974 echo "$ac_t""no" 1>&6
2975 fi
2976
2977
2978 echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6
c7a2bf27 2979echo "configure:2980: checking "for --enable-unicode"" >&5
10f2d63a
VZ
2980 no_cache=0
2981 # Check whether --enable-unicode or --disable-unicode was given.
2982if test "${enable_unicode+set}" = set; then
2983 enableval="$enable_unicode"
2984
2985 if test "$enableval" = yes; then
2986 ac_cv_use_unicode='wxUSE_UNICODE=yes'
2987 else
2988 ac_cv_use_unicode='wxUSE_UNICODE=no'
2989 fi
2990
2991else
2992
2993 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
2994 if test "x$LINE" != x ; then
2995 eval "DEFAULT_$LINE"
2996 else
2997 no_cache=1
2998 fi
2999
3000 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3001
3002fi
3003
3004
3005 eval "$ac_cv_use_unicode"
3006 if test "$no_cache" != 1; then
3007 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3008 fi
3009
3010 if test "$wxUSE_UNICODE" = yes; then
3011 echo "$ac_t""yes" 1>&6
3012 else
3013 echo "$ac_t""no" 1>&6
3014 fi
3015
3016
3017 echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6
c7a2bf27 3018echo "configure:3019: checking "for --enable-wcsrtombs"" >&5
10f2d63a
VZ
3019 no_cache=0
3020 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3021if test "${enable_wcsrtombs+set}" = set; then
3022 enableval="$enable_wcsrtombs"
3023
3024 if test "$enableval" = yes; then
3025 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3026 else
3027 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3028 fi
3029
3030else
3031
3032 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3033 if test "x$LINE" != x ; then
3034 eval "DEFAULT_$LINE"
3035 else
3036 no_cache=1
3037 fi
3038
3039 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3040
3041fi
3042
3043
3044 eval "$ac_cv_use_wcsrtombs"
3045 if test "$no_cache" != 1; then
3046 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3047 fi
3048
3049 if test "$wxUSE_WCSRTOMBS" = yes; then
3050 echo "$ac_t""yes" 1>&6
3051 else
3052 echo "$ac_t""no" 1>&6
3053 fi
3054
3055
3056 echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6
c7a2bf27 3057echo "configure:3058: checking "for --enable-wxprintfv"" >&5
10f2d63a
VZ
3058 no_cache=0
3059 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3060if test "${enable_wxprintfv+set}" = set; then
3061 enableval="$enable_wxprintfv"
3062
3063 if test "$enableval" = yes; then
3064 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3065 else
3066 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3067 fi
3068
3069else
3070
3071 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3072 if test "x$LINE" != x ; then
3073 eval "DEFAULT_$LINE"
3074 else
3075 no_cache=1
3076 fi
3077
3078 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3079
3080fi
3081
3082
3083 eval "$ac_cv_use_wxprintfv"
3084 if test "$no_cache" != 1; then
3085 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3086 fi
3087
3088 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3089 echo "$ac_t""yes" 1>&6
3090 else
3091 echo "$ac_t""no" 1>&6
3092 fi
3093
3094
3095 echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6
c7a2bf27 3096echo "configure:3097: checking "for --enable-joystick"" >&5
10f2d63a
VZ
3097 no_cache=0
3098 # Check whether --enable-joystick or --disable-joystick was given.
3099if test "${enable_joystick+set}" = set; then
3100 enableval="$enable_joystick"
3101
3102 if test "$enableval" = yes; then
3103 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
3104 else
3105 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
3106 fi
3107
3108else
3109
3110 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
3111 if test "x$LINE" != x ; then
3112 eval "DEFAULT_$LINE"
3113 else
3114 no_cache=1
3115 fi
3116
3117 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
3118
3119fi
3120
3121
3122 eval "$ac_cv_use_joystick"
3123 if test "$no_cache" != 1; then
3124 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
3125 fi
3126
3127 if test "$wxUSE_JOYSTICK" = yes; then
3128 echo "$ac_t""yes" 1>&6
3129 else
3130 echo "$ac_t""no" 1>&6
3131 fi
3132
3133
3134 echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6
c7a2bf27 3135echo "configure:3136: checking "for --enable-std_iostreams"" >&5
10f2d63a
VZ
3136 no_cache=0
3137 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3138if test "${enable_std_iostreams+set}" = set; then
3139 enableval="$enable_std_iostreams"
3140
3141 if test "$enableval" = yes; then
3142 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3143 else
3144 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3145 fi
3146
3147else
3148
3149 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3150 if test "x$LINE" != x ; then
3151 eval "DEFAULT_$LINE"
3152 else
3153 no_cache=1
3154 fi
3155
3156 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3157
3158fi
3159
3160
3161 eval "$ac_cv_use_std_iostreams"
3162 if test "$no_cache" != 1; then
3163 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3164 fi
3165
3166 if test "$wxUSE_STD_IOSTREAM" = yes; then
3167 echo "$ac_t""yes" 1>&6
3168 else
3169 echo "$ac_t""no" 1>&6
3170 fi
3171
3172
3173 echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6
c7a2bf27 3174echo "configure:3175: checking "for --enable-fs_inet"" >&5
10f2d63a
VZ
3175 no_cache=0
3176 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3177if test "${enable_fs_inet+set}" = set; then
3178 enableval="$enable_fs_inet"
3179
3180 if test "$enableval" = yes; then
3181 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3182 else
3183 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3184 fi
3185
3186else
3187
3188 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3189 if test "x$LINE" != x ; then
3190 eval "DEFAULT_$LINE"
3191 else
3192 no_cache=1
3193 fi
3194
3195 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3196
3197fi
3198
3199
3200 eval "$ac_cv_use_fs_inet"
3201 if test "$no_cache" != 1; then
3202 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3203 fi
3204
3205 if test "$wxUSE_FS_INET" = yes; then
3206 echo "$ac_t""yes" 1>&6
3207 else
3208 echo "$ac_t""no" 1>&6
3209 fi
3210
3211
3212 echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6
c7a2bf27 3213echo "configure:3214: checking "for --enable-fs_zip"" >&5
10f2d63a
VZ
3214 no_cache=0
3215 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3216if test "${enable_fs_zip+set}" = set; then
3217 enableval="$enable_fs_zip"
3218
3219 if test "$enableval" = yes; then
3220 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3221 else
3222 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3223 fi
3224
3225else
3226
3227 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3228 if test "x$LINE" != x ; then
3229 eval "DEFAULT_$LINE"
3230 else
3231 no_cache=1
3232 fi
3233
3234 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3235
3236fi
3237
3238
3239 eval "$ac_cv_use_fs_zip"
3240 if test "$no_cache" != 1; then
3241 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3242 fi
3243
3244 if test "$wxUSE_FS_ZIP" = yes; then
3245 echo "$ac_t""yes" 1>&6
3246 else
3247 echo "$ac_t""no" 1>&6
3248 fi
3249
3250
3251 echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6
c7a2bf27 3252echo "configure:3253: checking "for --enable-zipstream"" >&5
10f2d63a
VZ
3253 no_cache=0
3254 # Check whether --enable-zipstream or --disable-zipstream was given.
3255if test "${enable_zipstream+set}" = set; then
3256 enableval="$enable_zipstream"
3257
3258 if test "$enableval" = yes; then
3259 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3260 else
3261 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3262 fi
3263
3264else
3265
3266 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3267 if test "x$LINE" != x ; then
3268 eval "DEFAULT_$LINE"
3269 else
3270 no_cache=1
3271 fi
3272
3273 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3274
3275fi
3276
3277
3278 eval "$ac_cv_use_zipstream"
3279 if test "$no_cache" != 1; then
3280 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3281 fi
3282
3283 if test "$wxUSE_ZIPSTREAM" = yes; then
3284 echo "$ac_t""yes" 1>&6
3285 else
3286 echo "$ac_t""no" 1>&6
3287 fi
3288
3289
3290
3291
3292 echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6
c7a2bf27 3293echo "configure:3294: checking "for --enable-threads"" >&5
10f2d63a
VZ
3294 no_cache=0
3295 # Check whether --enable-threads or --disable-threads was given.
3296if test "${enable_threads+set}" = set; then
3297 enableval="$enable_threads"
3298
3299 if test "$enableval" = yes; then
3300 ac_cv_use_threads='wxUSE_THREADS=yes'
3301 else
3302 ac_cv_use_threads='wxUSE_THREADS=no'
3303 fi
3304
3305else
3306
3307 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
3308 if test "x$LINE" != x ; then
3309 eval "DEFAULT_$LINE"
3310 else
3311 no_cache=1
3312 fi
3313
3314 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
3315
3316fi
3317
3318
3319 eval "$ac_cv_use_threads"
3320 if test "$no_cache" != 1; then
3321 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
3322 fi
3323
3324 if test "$wxUSE_THREADS" = yes; then
3325 echo "$ac_t""yes" 1>&6
3326 else
3327 echo "$ac_t""no" 1>&6
3328 fi
3329
3330
3331 echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6
c7a2bf27 3332echo "configure:3333: checking "for --enable-serial"" >&5
10f2d63a
VZ
3333 no_cache=0
3334 # Check whether --enable-serial or --disable-serial was given.
3335if test "${enable_serial+set}" = set; then
3336 enableval="$enable_serial"
3337
3338 if test "$enableval" = yes; then
3339 ac_cv_use_serial='wxUSE_SERIAL=yes'
3340 else
3341 ac_cv_use_serial='wxUSE_SERIAL=no'
3342 fi
3343
3344else
3345
3346 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
3347 if test "x$LINE" != x ; then
3348 eval "DEFAULT_$LINE"
3349 else
3350 no_cache=1
3351 fi
3352
3353 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
3354
3355fi
3356
3357
3358 eval "$ac_cv_use_serial"
3359 if test "$no_cache" != 1; then
3360 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
3361 fi
3362
3363 if test "$wxUSE_SERIAL" = yes; then
3364 echo "$ac_t""yes" 1>&6
3365 else
3366 echo "$ac_t""no" 1>&6
3367 fi
3368
3369
3370
3371
3372 echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6
c7a2bf27 3373echo "configure:3374: checking "for --enable-docview"" >&5
10f2d63a
VZ
3374 no_cache=0
3375 # Check whether --enable-docview or --disable-docview was given.
3376if test "${enable_docview+set}" = set; then
3377 enableval="$enable_docview"
3378
3379 if test "$enableval" = yes; then
3380 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
3381 else
3382 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
3383 fi
3384
3385else
3386
3387 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
3388 if test "x$LINE" != x ; then
3389 eval "DEFAULT_$LINE"
3390 else
3391 no_cache=1
3392 fi
3393
3394 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
3395
3396fi
3397
3398
3399 eval "$ac_cv_use_docview"
3400 if test "$no_cache" != 1; then
3401 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
3402 fi
3403
3404 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
3405 echo "$ac_t""yes" 1>&6
3406 else
3407 echo "$ac_t""no" 1>&6
3408 fi
3409
3410
3411 echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6
c7a2bf27 3412echo "configure:3413: checking "for --enable-help"" >&5
10f2d63a
VZ
3413 no_cache=0
3414 # Check whether --enable-help or --disable-help was given.
3415if test "${enable_help+set}" = set; then
3416 enableval="$enable_help"
3417
3418 if test "$enableval" = yes; then
3419 ac_cv_use_help='wxUSE_HELP=yes'
3420 else
3421 ac_cv_use_help='wxUSE_HELP=no'
3422 fi
3423
3424else
3425
3426 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
3427 if test "x$LINE" != x ; then
3428 eval "DEFAULT_$LINE"
3429 else
3430 no_cache=1
3431 fi
3432
3433 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
3434
3435fi
3436
3437
3438 eval "$ac_cv_use_help"
3439 if test "$no_cache" != 1; then
3440 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
3441 fi
3442
3443 if test "$wxUSE_HELP" = yes; then
3444 echo "$ac_t""yes" 1>&6
3445 else
3446 echo "$ac_t""no" 1>&6
3447 fi
3448
3449
3450 echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6
c7a2bf27 3451echo "configure:3452: checking "for --enable-constraints"" >&5
10f2d63a
VZ
3452 no_cache=0
3453 # Check whether --enable-constraints or --disable-constraints was given.
3454if test "${enable_constraints+set}" = set; then
3455 enableval="$enable_constraints"
3456
3457 if test "$enableval" = yes; then
3458 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
3459 else
3460 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
3461 fi
3462
3463else
3464
3465 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
3466 if test "x$LINE" != x ; then
3467 eval "DEFAULT_$LINE"
3468 else
3469 no_cache=1
3470 fi
3471
3472 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
3473
3474fi
3475
3476
3477 eval "$ac_cv_use_constraints"
3478 if test "$no_cache" != 1; then
3479 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
3480 fi
3481
3482 if test "$wxUSE_CONSTRAINTS" = yes; then
3483 echo "$ac_t""yes" 1>&6
3484 else
3485 echo "$ac_t""no" 1>&6
3486 fi
3487
3488
3489 echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6
c7a2bf27 3490echo "configure:3491: checking "for --enable-printarch"" >&5
10f2d63a
VZ
3491 no_cache=0
3492 # Check whether --enable-printarch or --disable-printarch was given.
3493if test "${enable_printarch+set}" = set; then
3494 enableval="$enable_printarch"
3495
3496 if test "$enableval" = yes; then
3497 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
3498 else
3499 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
3500 fi
3501
3502else
3503
3504 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
3505 if test "x$LINE" != x ; then
3506 eval "DEFAULT_$LINE"
3507 else
3508 no_cache=1
3509 fi
3510
3511 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
3512
3513fi
3514
3515
3516 eval "$ac_cv_use_printarch"
3517 if test "$no_cache" != 1; then
3518 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
3519 fi
3520
3521 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
3522 echo "$ac_t""yes" 1>&6
3523 else
3524 echo "$ac_t""no" 1>&6
3525 fi
3526
3527
3528 echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6
c7a2bf27 3529echo "configure:3530: checking "for --enable-mdi"" >&5
10f2d63a
VZ
3530 no_cache=0
3531 # Check whether --enable-mdi or --disable-mdi was given.
3532if test "${enable_mdi+set}" = set; then
3533 enableval="$enable_mdi"
3534
3535 if test "$enableval" = yes; then
3536 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
3537 else
3538 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
3539 fi
3540
3541else
3542
3543 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
3544 if test "x$LINE" != x ; then
3545 eval "DEFAULT_$LINE"
3546 else
3547 no_cache=1
3548 fi
3549
3550 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
3551
3552fi
3553
3554
3555 eval "$ac_cv_use_mdi"
3556 if test "$no_cache" != 1; then
3557 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
3558 fi
3559
3560 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
3561 echo "$ac_t""yes" 1>&6
3562 else
3563 echo "$ac_t""no" 1>&6
3564 fi
3565
3566
3567
3568 echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6
c7a2bf27 3569echo "configure:3570: checking "for --enable-postscript"" >&5
10f2d63a
VZ
3570 no_cache=0
3571 # Check whether --enable-postscript or --disable-postscript was given.
3572if test "${enable_postscript+set}" = set; then
3573 enableval="$enable_postscript"
3574
3575 if test "$enableval" = yes; then
3576 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
3577 else
3578 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
3579 fi
3580
3581else
3582
3583 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
3584 if test "x$LINE" != x ; then
3585 eval "DEFAULT_$LINE"
3586 else
3587 no_cache=1
3588 fi
3589
3590 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
3591
3592fi
3593
3594
3595 eval "$ac_cv_use_postscript"
3596 if test "$no_cache" != 1; then
3597 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
3598 fi
3599
3600 if test "$wxUSE_POSTSCRIPT" = yes; then
3601 echo "$ac_t""yes" 1>&6
3602 else
3603 echo "$ac_t""no" 1>&6
3604 fi
3605
3606
3607
3608
3609 echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6
c7a2bf27 3610echo "configure:3611: checking "for --enable-prologio"" >&5
10f2d63a
VZ
3611 no_cache=0
3612 # Check whether --enable-prologio or --disable-prologio was given.
3613if test "${enable_prologio+set}" = set; then
3614 enableval="$enable_prologio"
3615
3616 if test "$enableval" = yes; then
3617 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
3618 else
3619 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
3620 fi
3621
3622else
3623
3624 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
3625 if test "x$LINE" != x ; then
3626 eval "DEFAULT_$LINE"
3627 else
3628 no_cache=1
3629 fi
3630
3631 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
3632
3633fi
3634
3635
3636 eval "$ac_cv_use_prologio"
3637 if test "$no_cache" != 1; then
3638 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
3639 fi
3640
3641 if test "$wxUSE_PROLOGIO" = yes; then
3642 echo "$ac_t""yes" 1>&6
3643 else
3644 echo "$ac_t""no" 1>&6
3645 fi
3646
3647
3648 echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6
c7a2bf27 3649echo "configure:3650: checking "for --enable-resources"" >&5
10f2d63a
VZ
3650 no_cache=0
3651 # Check whether --enable-resources or --disable-resources was given.
3652if test "${enable_resources+set}" = set; then
3653 enableval="$enable_resources"
3654
3655 if test "$enableval" = yes; then
3656 ac_cv_use_resources='wxUSE_RESOURCES=yes'
3657 else
3658 ac_cv_use_resources='wxUSE_RESOURCES=no'
3659 fi
3660
3661else
3662
3663 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
3664 if test "x$LINE" != x ; then
3665 eval "DEFAULT_$LINE"
3666 else
3667 no_cache=1
3668 fi
3669
3670 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
3671
3672fi
3673
3674
3675 eval "$ac_cv_use_resources"
3676 if test "$no_cache" != 1; then
3677 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
3678 fi
3679
3680 if test "$wxUSE_RESOURCES" = yes; then
3681 echo "$ac_t""yes" 1>&6
3682 else
3683 echo "$ac_t""no" 1>&6
3684 fi
3685
3686
3687
3688 echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6
c7a2bf27 3689echo "configure:3690: checking "for --enable-xresources"" >&5
10f2d63a
VZ
3690 no_cache=0
3691 # Check whether --enable-xresources or --disable-xresources was given.
3692if test "${enable_xresources+set}" = set; then
3693 enableval="$enable_xresources"
3694
3695 if test "$enableval" = yes; then
3696 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
3697 else
3698 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
3699 fi
3700
3701else
3702
3703 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
3704 if test "x$LINE" != x ; then
3705 eval "DEFAULT_$LINE"
3706 else
3707 no_cache=1
3708 fi
3709
3710 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
3711
3712fi
3713
3714
3715 eval "$ac_cv_use_xresources"
3716 if test "$no_cache" != 1; then
3717 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
3718 fi
3719
3720 if test "$wxUSE_X_RESOURCES" = yes; then
3721 echo "$ac_t""yes" 1>&6
3722 else
3723 echo "$ac_t""no" 1>&6
3724 fi
3725
3726
3727
3728
3729 echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6
c7a2bf27 3730echo "configure:3731: checking "for --enable-clipboard"" >&5
10f2d63a
VZ
3731 no_cache=0
3732 # Check whether --enable-clipboard or --disable-clipboard was given.
3733if test "${enable_clipboard+set}" = set; then
3734 enableval="$enable_clipboard"
3735
3736 if test "$enableval" = yes; then
3737 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
3738 else
3739 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
3740 fi
3741
3742else
3743
3744 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
3745 if test "x$LINE" != x ; then
3746 eval "DEFAULT_$LINE"
3747 else
3748 no_cache=1
3749 fi
3750
3751 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
3752
3753fi
3754
3755
3756 eval "$ac_cv_use_clipboard"
3757 if test "$no_cache" != 1; then
3758 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
3759 fi
3760
3761 if test "$wxUSE_CLIPBOARD" = yes; then
3762 echo "$ac_t""yes" 1>&6
3763 else
3764 echo "$ac_t""no" 1>&6
3765 fi
3766
3767
3768 echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6
c7a2bf27 3769echo "configure:3770: checking "for --enable-dnd"" >&5
10f2d63a
VZ
3770 no_cache=0
3771 # Check whether --enable-dnd or --disable-dnd was given.
3772if test "${enable_dnd+set}" = set; then
3773 enableval="$enable_dnd"
3774
3775 if test "$enableval" = yes; then
3776 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
3777 else
3778 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
3779 fi
3780
3781else
3782
3783 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
3784 if test "x$LINE" != x ; then
3785 eval "DEFAULT_$LINE"
3786 else
3787 no_cache=1
3788 fi
3789
3790 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
3791
3792fi
3793
3794
3795 eval "$ac_cv_use_dnd"
3796 if test "$no_cache" != 1; then
3797 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
3798 fi
3799
3800 if test "$wxUSE_DRAG_AND_DROP" = yes; then
3801 echo "$ac_t""yes" 1>&6
3802 else
3803 echo "$ac_t""no" 1>&6
3804 fi
3805
3806
3807
3808 echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6
c7a2bf27 3809echo "configure:3810: checking "for --enable-wxtree"" >&5
10f2d63a
VZ
3810 no_cache=0
3811 # Check whether --enable-wxtree or --disable-wxtree was given.
3812if test "${enable_wxtree+set}" = set; then
3813 enableval="$enable_wxtree"
3814
3815 if test "$enableval" = yes; then
3816 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
3817 else
3818 ac_cv_use_wxtree='wxUSE_WXTREE=no'
3819 fi
3820
3821else
3822
3823 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
3824 if test "x$LINE" != x ; then
3825 eval "DEFAULT_$LINE"
3826 else
3827 no_cache=1
3828 fi
3829
3830 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
3831
3832fi
3833
3834
3835 eval "$ac_cv_use_wxtree"
3836 if test "$no_cache" != 1; then
3837 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
3838 fi
3839
3840 if test "$wxUSE_WXTREE" = yes; then
3841 echo "$ac_t""yes" 1>&6
3842 else
3843 echo "$ac_t""no" 1>&6
3844 fi
3845
3846
3847
3848
3849 echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6
c7a2bf27 3850echo "configure:3851: checking "for --enable-controls"" >&5
10f2d63a
VZ
3851 no_cache=0
3852 # Check whether --enable-controls or --disable-controls was given.
3853if test "${enable_controls+set}" = set; then
3854 enableval="$enable_controls"
3855
3856 if test "$enableval" = yes; then
3857 ac_cv_use_controls='wxUSE_CONTROLS=yes'
3858 else
3859 ac_cv_use_controls='wxUSE_CONTROLS=no'
3860 fi
3861
3862else
3863
3864 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
3865 if test "x$LINE" != x ; then
3866 eval "DEFAULT_$LINE"
3867 else
3868 no_cache=1
3869 fi
3870
3871 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
3872
3873fi
3874
3875
3876 eval "$ac_cv_use_controls"
3877 if test "$no_cache" != 1; then
3878 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
3879 fi
3880
3881 if test "$wxUSE_CONTROLS" = yes; then
3882 echo "$ac_t""yes" 1>&6
3883 else
3884 echo "$ac_t""no" 1>&6
3885 fi
3886
3887
3888if test "$wxUSE_CONTROLS" = "yes"; then
3889 DEFAULT_wxUSE_ACCEL=yes
3890 DEFAULT_wxUSE_CARET=yes
3891 DEFAULT_wxUSE_COMBOBOX=yes
3892 DEFAULT_wxUSE_BMPBUTTON=yes
3893 DEFAULT_wxUSE_CHECKBOX=yes
3894 DEFAULT_wxUSE_CHECKLISTBOX=yes
3895 DEFAULT_wxUSE_CHOICE=yes
3896 DEFAULT_wxUSE_GAUGE=yes
3897 DEFAULT_wxUSE_GRID=yes
fc9c7c09 3898 DEFAULT_wxUSE_NEW_GRID=no
10f2d63a
VZ
3899 DEFAULT_wxUSE_IMAGLIST=yes
3900 DEFAULT_wxUSE_LISTBOX=yes
3901 DEFAULT_wxUSE_LISTCTRL=yes
3902 DEFAULT_wxUSE_NOTEBOOK=yes
3903 DEFAULT_wxUSE_RADIOBOX=yes
3904 DEFAULT_wxUSE_RADIOBTN=yes
3905 DEFAULT_wxUSE_SASH=yes
3906 DEFAULT_wxUSE_SCROLLBAR=yes
3907 DEFAULT_wxUSE_SLIDER=yes
3908 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 3909 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
3910 DEFAULT_wxUSE_SPLITTER=yes
3911 DEFAULT_wxUSE_STATBMP=yes
3912 DEFAULT_wxUSE_STATBOX=yes
3913 DEFAULT_wxUSE_STATLINE=yes
3914 DEFAULT_wxUSE_STATUSBAR=yes
3915 DEFAULT_wxUSE_TAB_DIALOG=yes
3916 DEFAULT_wxUSE_TOOLBAR=yes
3917 DEFAULT_wxUSE_TOOLTIPS=yes
3918 DEFAULT_wxUSE_TREECTRL=yes
3919elif test "$wxUSE_CONTROLS" = "no"; then
3920 DEFAULT_wxUSE_ACCEL=no
3921 DEFAULT_wxUSE_CARET=no
3922 DEFAULT_wxUSE_COMBOBOX=no
3923 DEFAULT_wxUSE_BMPBUTTON=no
3924 DEFAULT_wxUSE_CHECKBOX=no
3925 DEFAULT_wxUSE_CHECKLISTBOX=no
3926 DEFAULT_wxUSE_CHOICE=no
3927 DEFAULT_wxUSE_GAUGE=no
3928 DEFAULT_wxUSE_GRID=no
3929 DEFAULT_wxUSE_NEW_GRID=no
3930 DEFAULT_wxUSE_IMAGLIST=no
3931 DEFAULT_wxUSE_LISTBOX=no
3932 DEFAULT_wxUSE_LISTCTRL=no
3933 DEFAULT_wxUSE_NOTEBOOK=no
3934 DEFAULT_wxUSE_RADIOBOX=no
3935 DEFAULT_wxUSE_RADIOBTN=no
3936 DEFAULT_wxUSE_SASH=no
3937 DEFAULT_wxUSE_SCROLLBAR=no
3938 DEFAULT_wxUSE_SLIDER=no
3939 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 3940 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
3941 DEFAULT_wxUSE_SPLITTER=no
3942 DEFAULT_wxUSE_STATBMP=no
3943 DEFAULT_wxUSE_STATBOX=no
3944 DEFAULT_wxUSE_STATLINE=no
3945 DEFAULT_wxUSE_STATUSBAR=no
3946 DEFAULT_wxUSE_TAB_DIALOG=no
3947 DEFAULT_wxUSE_TOOLBAR=no
3948 DEFAULT_wxUSE_TOOLTIPS=no
3949 DEFAULT_wxUSE_TREECTRL=no
3950fi
3951
3952
3953 echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6
c7a2bf27 3954echo "configure:3955: checking "for --enable-accel"" >&5
10f2d63a
VZ
3955 no_cache=0
3956 # Check whether --enable-accel or --disable-accel was given.
3957if test "${enable_accel+set}" = set; then
3958 enableval="$enable_accel"
3959
3960 if test "$enableval" = yes; then
3961 ac_cv_use_accel='wxUSE_ACCEL=yes'
3962 else
3963 ac_cv_use_accel='wxUSE_ACCEL=no'
3964 fi
3965
3966else
3967
3968 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
3969 if test "x$LINE" != x ; then
3970 eval "DEFAULT_$LINE"
3971 else
3972 no_cache=1
3973 fi
3974
3975 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
3976
3977fi
3978
3979
3980 eval "$ac_cv_use_accel"
3981 if test "$no_cache" != 1; then
3982 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
3983 fi
3984
3985 if test "$wxUSE_ACCEL" = yes; then
3986 echo "$ac_t""yes" 1>&6
3987 else
3988 echo "$ac_t""no" 1>&6
3989 fi
3990
3991
3992 echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6
c7a2bf27 3993echo "configure:3994: checking "for --enable-caret"" >&5
10f2d63a
VZ
3994 no_cache=0
3995 # Check whether --enable-caret or --disable-caret was given.
3996if test "${enable_caret+set}" = set; then
3997 enableval="$enable_caret"
3998
3999 if test "$enableval" = yes; then
4000 ac_cv_use_caret='wxUSE_CARET=yes'
4001 else
4002 ac_cv_use_caret='wxUSE_CARET=no'
4003 fi
4004
4005else
4006
4007 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
4008 if test "x$LINE" != x ; then
4009 eval "DEFAULT_$LINE"
4010 else
4011 no_cache=1
4012 fi
4013
4014 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
4015
4016fi
4017
4018
4019 eval "$ac_cv_use_caret"
4020 if test "$no_cache" != 1; then
4021 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
4022 fi
4023
4024 if test "$wxUSE_CARET" = yes; then
4025 echo "$ac_t""yes" 1>&6
4026 else
4027 echo "$ac_t""no" 1>&6
4028 fi
4029
4030
4031 echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6
c7a2bf27 4032echo "configure:4033: checking "for --enable-bmpbutton"" >&5
10f2d63a
VZ
4033 no_cache=0
4034 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4035if test "${enable_bmpbutton+set}" = set; then
4036 enableval="$enable_bmpbutton"
4037
4038 if test "$enableval" = yes; then
4039 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4040 else
4041 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4042 fi
4043
4044else
4045
4046 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4047 if test "x$LINE" != x ; then
4048 eval "DEFAULT_$LINE"
4049 else
4050 no_cache=1
4051 fi
4052
4053 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
4054
4055fi
4056
4057
4058 eval "$ac_cv_use_bmpbutton"
4059 if test "$no_cache" != 1; then
4060 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4061 fi
4062
4063 if test "$wxUSE_BMPBUTTON" = yes; then
4064 echo "$ac_t""yes" 1>&6
4065 else
4066 echo "$ac_t""no" 1>&6
4067 fi
4068
4069
4070 echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6
c7a2bf27 4071echo "configure:4072: checking "for --enable-checkbox"" >&5
10f2d63a
VZ
4072 no_cache=0
4073 # Check whether --enable-checkbox or --disable-checkbox was given.
4074if test "${enable_checkbox+set}" = set; then
4075 enableval="$enable_checkbox"
4076
4077 if test "$enableval" = yes; then
4078 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
4079 else
4080 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
4081 fi
4082
4083else
4084
4085 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
4086 if test "x$LINE" != x ; then
4087 eval "DEFAULT_$LINE"
4088 else
4089 no_cache=1
4090 fi
4091
4092 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
4093
4094fi
4095
4096
4097 eval "$ac_cv_use_checkbox"
4098 if test "$no_cache" != 1; then
4099 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
4100 fi
4101
4102 if test "$wxUSE_CHECKBOX" = yes; then
4103 echo "$ac_t""yes" 1>&6
4104 else
4105 echo "$ac_t""no" 1>&6
4106 fi
4107
4108
4109 echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6
c7a2bf27 4110echo "configure:4111: checking "for --enable-checklst"" >&5
10f2d63a
VZ
4111 no_cache=0
4112 # Check whether --enable-checklst or --disable-checklst was given.
4113if test "${enable_checklst+set}" = set; then
4114 enableval="$enable_checklst"
4115
4116 if test "$enableval" = yes; then
4117 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
4118 else
4119 ac_cv_use_checklst='wxUSE_CHECKLST=no'
4120 fi
4121
4122else
4123
4124 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
4125 if test "x$LINE" != x ; then
4126 eval "DEFAULT_$LINE"
4127 else
4128 no_cache=1
4129 fi
4130
4131 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
4132
4133fi
4134
4135
4136 eval "$ac_cv_use_checklst"
4137 if test "$no_cache" != 1; then
4138 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
4139 fi
4140
4141 if test "$wxUSE_CHECKLST" = yes; then
4142 echo "$ac_t""yes" 1>&6
4143 else
4144 echo "$ac_t""no" 1>&6
4145 fi
4146
4147
4148 echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6
c7a2bf27 4149echo "configure:4150: checking "for --enable-choice"" >&5
10f2d63a
VZ
4150 no_cache=0
4151 # Check whether --enable-choice or --disable-choice was given.
4152if test "${enable_choice+set}" = set; then
4153 enableval="$enable_choice"
4154
4155 if test "$enableval" = yes; then
4156 ac_cv_use_choice='wxUSE_CHOICE=yes'
4157 else
4158 ac_cv_use_choice='wxUSE_CHOICE=no'
4159 fi
4160
4161else
4162
4163 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
4164 if test "x$LINE" != x ; then
4165 eval "DEFAULT_$LINE"
4166 else
4167 no_cache=1
4168 fi
4169
4170 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
4171
4172fi
4173
4174
4175 eval "$ac_cv_use_choice"
4176 if test "$no_cache" != 1; then
4177 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
4178 fi
4179
4180 if test "$wxUSE_CHOICE" = yes; then
4181 echo "$ac_t""yes" 1>&6
4182 else
4183 echo "$ac_t""no" 1>&6
4184 fi
4185
4186
4187 echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6
c7a2bf27 4188echo "configure:4189: checking "for --enable-combobox"" >&5
10f2d63a
VZ
4189 no_cache=0
4190 # Check whether --enable-combobox or --disable-combobox was given.
4191if test "${enable_combobox+set}" = set; then
4192 enableval="$enable_combobox"
4193
4194 if test "$enableval" = yes; then
4195 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
4196 else
4197 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
4198 fi
4199
4200else
4201
4202 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
4203 if test "x$LINE" != x ; then
4204 eval "DEFAULT_$LINE"
4205 else
4206 no_cache=1
4207 fi
4208
4209 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
4210
4211fi
4212
4213
4214 eval "$ac_cv_use_combobox"
4215 if test "$no_cache" != 1; then
4216 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
4217 fi
4218
4219 if test "$wxUSE_COMBOBOX" = yes; then
4220 echo "$ac_t""yes" 1>&6
4221 else
4222 echo "$ac_t""no" 1>&6
4223 fi
4224
4225
4226 echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6
c7a2bf27 4227echo "configure:4228: checking "for --enable-gauge"" >&5
10f2d63a
VZ
4228 no_cache=0
4229 # Check whether --enable-gauge or --disable-gauge was given.
4230if test "${enable_gauge+set}" = set; then
4231 enableval="$enable_gauge"
4232
4233 if test "$enableval" = yes; then
4234 ac_cv_use_gauge='wxUSE_GAUGE=yes'
4235 else
4236 ac_cv_use_gauge='wxUSE_GAUGE=no'
4237 fi
4238
4239else
4240
4241 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
4242 if test "x$LINE" != x ; then
4243 eval "DEFAULT_$LINE"
4244 else
4245 no_cache=1
4246 fi
4247
4248 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
4249
4250fi
4251
4252
4253 eval "$ac_cv_use_gauge"
4254 if test "$no_cache" != 1; then
4255 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
4256 fi
4257
4258 if test "$wxUSE_GAUGE" = yes; then
4259 echo "$ac_t""yes" 1>&6
4260 else
4261 echo "$ac_t""no" 1>&6
4262 fi
4263
4264
4265 echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6
c7a2bf27 4266echo "configure:4267: checking "for --enable-grid"" >&5
10f2d63a
VZ
4267 no_cache=0
4268 # Check whether --enable-grid or --disable-grid was given.
4269if test "${enable_grid+set}" = set; then
4270 enableval="$enable_grid"
4271
4272 if test "$enableval" = yes; then
4273 ac_cv_use_grid='wxUSE_GRID=yes'
4274 else
4275 ac_cv_use_grid='wxUSE_GRID=no'
4276 fi
4277
4278else
4279
4280 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
4281 if test "x$LINE" != x ; then
4282 eval "DEFAULT_$LINE"
4283 else
4284 no_cache=1
4285 fi
4286
4287 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
4288
4289fi
4290
4291
4292 eval "$ac_cv_use_grid"
4293 if test "$no_cache" != 1; then
4294 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
4295 fi
4296
4297 if test "$wxUSE_GRID" = yes; then
4298 echo "$ac_t""yes" 1>&6
4299 else
4300 echo "$ac_t""no" 1>&6
4301 fi
4302
4303
4304 echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6
c7a2bf27 4305echo "configure:4306: checking "for --enable-newgrid"" >&5
10f2d63a
VZ
4306 no_cache=0
4307 # Check whether --enable-newgrid or --disable-newgrid was given.
4308if test "${enable_newgrid+set}" = set; then
4309 enableval="$enable_newgrid"
4310
4311 if test "$enableval" = yes; then
4312 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
4313 else
4314 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
4315 fi
4316
4317else
4318
4319 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
4320 if test "x$LINE" != x ; then
4321 eval "DEFAULT_$LINE"
4322 else
4323 no_cache=1
4324 fi
4325
4326 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
4327
4328fi
4329
4330
4331 eval "$ac_cv_use_newgrid"
4332 if test "$no_cache" != 1; then
4333 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
4334 fi
4335
4336 if test "$wxUSE_NEW_GRID" = yes; then
4337 echo "$ac_t""yes" 1>&6
4338 else
4339 echo "$ac_t""no" 1>&6
4340 fi
4341
4342
4343 echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6
c7a2bf27 4344echo "configure:4345: checking "for --enable-imaglist"" >&5
10f2d63a
VZ
4345 no_cache=0
4346 # Check whether --enable-imaglist or --disable-imaglist was given.
4347if test "${enable_imaglist+set}" = set; then
4348 enableval="$enable_imaglist"
4349
4350 if test "$enableval" = yes; then
4351 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
4352 else
4353 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
4354 fi
4355
4356else
4357
4358 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
4359 if test "x$LINE" != x ; then
4360 eval "DEFAULT_$LINE"
4361 else
4362 no_cache=1
4363 fi
4364
4365 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
4366
4367fi
4368
4369
4370 eval "$ac_cv_use_imaglist"
4371 if test "$no_cache" != 1; then
4372 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
4373 fi
4374
4375 if test "$wxUSE_IMAGLIST" = yes; then
4376 echo "$ac_t""yes" 1>&6
4377 else
4378 echo "$ac_t""no" 1>&6
4379 fi
4380
4381
4382 echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6
c7a2bf27 4383echo "configure:4384: checking "for --enable-listbox"" >&5
10f2d63a
VZ
4384 no_cache=0
4385 # Check whether --enable-listbox or --disable-listbox was given.
4386if test "${enable_listbox+set}" = set; then
4387 enableval="$enable_listbox"
4388
4389 if test "$enableval" = yes; then
4390 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
4391 else
4392 ac_cv_use_listbox='wxUSE_LISTBOX=no'
4393 fi
4394
4395else
4396
4397 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
4398 if test "x$LINE" != x ; then
4399 eval "DEFAULT_$LINE"
4400 else
4401 no_cache=1
4402 fi
4403
4404 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
4405
4406fi
4407
4408
4409 eval "$ac_cv_use_listbox"
4410 if test "$no_cache" != 1; then
4411 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
4412 fi
4413
4414 if test "$wxUSE_LISTBOX" = yes; then
4415 echo "$ac_t""yes" 1>&6
4416 else
4417 echo "$ac_t""no" 1>&6
4418 fi
4419
4420
4421 echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6
c7a2bf27 4422echo "configure:4423: checking "for --enable-listctrl"" >&5
10f2d63a
VZ
4423 no_cache=0
4424 # Check whether --enable-listctrl or --disable-listctrl was given.
4425if test "${enable_listctrl+set}" = set; then
4426 enableval="$enable_listctrl"
4427
4428 if test "$enableval" = yes; then
4429 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
4430 else
4431 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
4432 fi
4433
4434else
4435
4436 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
4437 if test "x$LINE" != x ; then
4438 eval "DEFAULT_$LINE"
4439 else
4440 no_cache=1
4441 fi
4442
4443 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
4444
4445fi
4446
4447
4448 eval "$ac_cv_use_listctrl"
4449 if test "$no_cache" != 1; then
4450 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
4451 fi
4452
4453 if test "$wxUSE_LISTCTRL" = yes; then
4454 echo "$ac_t""yes" 1>&6
4455 else
4456 echo "$ac_t""no" 1>&6
4457 fi
4458
4459
4460 echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6
c7a2bf27 4461echo "configure:4462: checking "for --enable-notebook"" >&5
10f2d63a
VZ
4462 no_cache=0
4463 # Check whether --enable-notebook or --disable-notebook was given.
4464if test "${enable_notebook+set}" = set; then
4465 enableval="$enable_notebook"
4466
4467 if test "$enableval" = yes; then
4468 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
4469 else
4470 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
4471 fi
4472
4473else
4474
4475 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
4476 if test "x$LINE" != x ; then
4477 eval "DEFAULT_$LINE"
4478 else
4479 no_cache=1
4480 fi
4481
4482 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
4483
4484fi
4485
4486
4487 eval "$ac_cv_use_notebook"
4488 if test "$no_cache" != 1; then
4489 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
4490 fi
4491
4492 if test "$wxUSE_NOTEBOOK" = yes; then
4493 echo "$ac_t""yes" 1>&6
4494 else
4495 echo "$ac_t""no" 1>&6
4496 fi
4497
4498
4499 echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6
c7a2bf27 4500echo "configure:4501: checking "for --enable-radiobox"" >&5
10f2d63a
VZ
4501 no_cache=0
4502 # Check whether --enable-radiobox or --disable-radiobox was given.
4503if test "${enable_radiobox+set}" = set; then
4504 enableval="$enable_radiobox"
4505
4506 if test "$enableval" = yes; then
4507 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
4508 else
4509 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
4510 fi
4511
4512else
4513
4514 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
4515 if test "x$LINE" != x ; then
4516 eval "DEFAULT_$LINE"
4517 else
4518 no_cache=1
4519 fi
4520
4521 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
4522
4523fi
4524
4525
4526 eval "$ac_cv_use_radiobox"
4527 if test "$no_cache" != 1; then
4528 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
4529 fi
4530
4531 if test "$wxUSE_RADIOBOX" = yes; then
4532 echo "$ac_t""yes" 1>&6
4533 else
4534 echo "$ac_t""no" 1>&6
4535 fi
4536
4537
4538 echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6
c7a2bf27 4539echo "configure:4540: checking "for --enable-radiobtn"" >&5
10f2d63a
VZ
4540 no_cache=0
4541 # Check whether --enable-radiobtn or --disable-radiobtn was given.
4542if test "${enable_radiobtn+set}" = set; then
4543 enableval="$enable_radiobtn"
4544
4545 if test "$enableval" = yes; then
4546 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
4547 else
4548 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
4549 fi
4550
4551else
4552
4553 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
4554 if test "x$LINE" != x ; then
4555 eval "DEFAULT_$LINE"
4556 else
4557 no_cache=1
4558 fi
4559
4560 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
4561
4562fi
4563
4564
4565 eval "$ac_cv_use_radiobtn"
4566 if test "$no_cache" != 1; then
4567 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
4568 fi
4569
4570 if test "$wxUSE_RADIOBTN" = yes; then
4571 echo "$ac_t""yes" 1>&6
4572 else
4573 echo "$ac_t""no" 1>&6
4574 fi
4575
4576
4577 echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6
c7a2bf27 4578echo "configure:4579: checking "for --enable-sash"" >&5
10f2d63a
VZ
4579 no_cache=0
4580 # Check whether --enable-sash or --disable-sash was given.
4581if test "${enable_sash+set}" = set; then
4582 enableval="$enable_sash"
4583
4584 if test "$enableval" = yes; then
4585 ac_cv_use_sash='wxUSE_SASH=yes'
4586 else
4587 ac_cv_use_sash='wxUSE_SASH=no'
4588 fi
4589
4590else
4591
4592 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
4593 if test "x$LINE" != x ; then
4594 eval "DEFAULT_$LINE"
4595 else
4596 no_cache=1
4597 fi
4598
4599 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
4600
4601fi
4602
4603
4604 eval "$ac_cv_use_sash"
4605 if test "$no_cache" != 1; then
4606 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
4607 fi
4608
4609 if test "$wxUSE_SASH" = yes; then
4610 echo "$ac_t""yes" 1>&6
4611 else
4612 echo "$ac_t""no" 1>&6
4613 fi
4614
4615
4616 echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6
c7a2bf27 4617echo "configure:4618: checking "for --enable-scrollbar"" >&5
10f2d63a
VZ
4618 no_cache=0
4619 # Check whether --enable-scrollbar or --disable-scrollbar was given.
4620if test "${enable_scrollbar+set}" = set; then
4621 enableval="$enable_scrollbar"
4622
4623 if test "$enableval" = yes; then
4624 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
4625 else
4626 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
4627 fi
4628
4629else
4630
4631 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
4632 if test "x$LINE" != x ; then
4633 eval "DEFAULT_$LINE"
4634 else
4635 no_cache=1
4636 fi
4637
4638 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
4639
4640fi
4641
4642
4643 eval "$ac_cv_use_scrollbar"
4644 if test "$no_cache" != 1; then
4645 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
4646 fi
4647
4648 if test "$wxUSE_SCROLLBAR" = yes; then
4649 echo "$ac_t""yes" 1>&6
4650 else
4651 echo "$ac_t""no" 1>&6
4652 fi
4653
4654
4655 echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6
c7a2bf27 4656echo "configure:4657: checking "for --enable-slider"" >&5
10f2d63a
VZ
4657 no_cache=0
4658 # Check whether --enable-slider or --disable-slider was given.
4659if test "${enable_slider+set}" = set; then
4660 enableval="$enable_slider"
4661
4662 if test "$enableval" = yes; then
4663 ac_cv_use_slider='wxUSE_SLIDER=yes'
4664 else
4665 ac_cv_use_slider='wxUSE_SLIDER=no'
4666 fi
4667
4668else
4669
4670 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
4671 if test "x$LINE" != x ; then
4672 eval "DEFAULT_$LINE"
4673 else
4674 no_cache=1
4675 fi
4676
4677 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
4678
4679fi
4680
4681
4682 eval "$ac_cv_use_slider"
4683 if test "$no_cache" != 1; then
4684 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
4685 fi
4686
4687 if test "$wxUSE_SLIDER" = yes; then
4688 echo "$ac_t""yes" 1>&6
4689 else
4690 echo "$ac_t""no" 1>&6
4691 fi
4692
4693
4694 echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6
c7a2bf27 4695echo "configure:4696: checking "for --enable-spinbtn"" >&5
10f2d63a
VZ
4696 no_cache=0
4697 # Check whether --enable-spinbtn or --disable-spinbtn was given.
4698if test "${enable_spinbtn+set}" = set; then
4699 enableval="$enable_spinbtn"
4700
4701 if test "$enableval" = yes; then
4702 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
4703 else
4704 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
4705 fi
4706
4707else
4708
4709 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
4710 if test "x$LINE" != x ; then
4711 eval "DEFAULT_$LINE"
4712 else
4713 no_cache=1
4714 fi
4715
4716 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
4717
4718fi
4719
4720
4721 eval "$ac_cv_use_spinbtn"
4722 if test "$no_cache" != 1; then
4723 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
4724 fi
4725
4726 if test "$wxUSE_SPINBTN" = yes; then
4727 echo "$ac_t""yes" 1>&6
4728 else
4729 echo "$ac_t""no" 1>&6
4730 fi
4731
4732
56cfaa52 4733 echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6
c7a2bf27 4734echo "configure:4735: checking "for --enable-spinctrl"" >&5
56cfaa52
RR
4735 no_cache=0
4736 # Check whether --enable-spinctrl or --disable-spinctrl was given.
4737if test "${enable_spinctrl+set}" = set; then
4738 enableval="$enable_spinctrl"
4739
4740 if test "$enableval" = yes; then
4741 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
4742 else
4743 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
4744 fi
4745
4746else
4747
4748 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
4749 if test "x$LINE" != x ; then
4750 eval "DEFAULT_$LINE"
4751 else
4752 no_cache=1
4753 fi
4754
4755 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
4756
4757fi
4758
4759
4760 eval "$ac_cv_use_spinctrl"
4761 if test "$no_cache" != 1; then
4762 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
4763 fi
4764
4765 if test "$wxUSE_SPINCTRL" = yes; then
4766 echo "$ac_t""yes" 1>&6
4767 else
4768 echo "$ac_t""no" 1>&6
4769 fi
4770
4771
10f2d63a 4772 echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6
c7a2bf27 4773echo "configure:4774: checking "for --enable-splitter"" >&5
10f2d63a
VZ
4774 no_cache=0
4775 # Check whether --enable-splitter or --disable-splitter was given.
4776if test "${enable_splitter+set}" = set; then
4777 enableval="$enable_splitter"
4778
4779 if test "$enableval" = yes; then
4780 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
4781 else
4782 ac_cv_use_splitter='wxUSE_SPLITTER=no'
4783 fi
4784
4785else
4786
4787 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
4788 if test "x$LINE" != x ; then
4789 eval "DEFAULT_$LINE"
4790 else
4791 no_cache=1
4792 fi
4793
4794 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
4795
4796fi
4797
4798
4799 eval "$ac_cv_use_splitter"
4800 if test "$no_cache" != 1; then
4801 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
4802 fi
4803
4804 if test "$wxUSE_SPLITTER" = yes; then
4805 echo "$ac_t""yes" 1>&6
4806 else
4807 echo "$ac_t""no" 1>&6
4808 fi
4809
4810
4811 echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6
c7a2bf27 4812echo "configure:4813: checking "for --enable-statbmp"" >&5
10f2d63a
VZ
4813 no_cache=0
4814 # Check whether --enable-statbmp or --disable-statbmp was given.
4815if test "${enable_statbmp+set}" = set; then
4816 enableval="$enable_statbmp"
4817
4818 if test "$enableval" = yes; then
4819 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
4820 else
4821 ac_cv_use_statbmp='wxUSE_STATBMP=no'
4822 fi
4823
4824else
4825
4826 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
4827 if test "x$LINE" != x ; then
4828 eval "DEFAULT_$LINE"
4829 else
4830 no_cache=1
4831 fi
4832
4833 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
4834
4835fi
4836
4837
4838 eval "$ac_cv_use_statbmp"
4839 if test "$no_cache" != 1; then
4840 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
4841 fi
4842
4843 if test "$wxUSE_STATBMP" = yes; then
4844 echo "$ac_t""yes" 1>&6
4845 else
4846 echo "$ac_t""no" 1>&6
4847 fi
4848
4849
4850 echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6
c7a2bf27 4851echo "configure:4852: checking "for --enable-statbox"" >&5
10f2d63a
VZ
4852 no_cache=0
4853 # Check whether --enable-statbox or --disable-statbox was given.
4854if test "${enable_statbox+set}" = set; then
4855 enableval="$enable_statbox"
4856
4857 if test "$enableval" = yes; then
4858 ac_cv_use_statbox='wxUSE_STATBOX=yes'
4859 else
4860 ac_cv_use_statbox='wxUSE_STATBOX=no'
4861 fi
4862
4863else
4864
4865 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
4866 if test "x$LINE" != x ; then
4867 eval "DEFAULT_$LINE"
4868 else
4869 no_cache=1
4870 fi
4871
4872 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
4873
4874fi
4875
4876
4877 eval "$ac_cv_use_statbox"
4878 if test "$no_cache" != 1; then
4879 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
4880 fi
4881
4882 if test "$wxUSE_STATBOX" = yes; then
4883 echo "$ac_t""yes" 1>&6
4884 else
4885 echo "$ac_t""no" 1>&6
4886 fi
4887
4888
4889 echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6
c7a2bf27 4890echo "configure:4891: checking "for --enable-statline"" >&5
10f2d63a
VZ
4891 no_cache=0
4892 # Check whether --enable-statline or --disable-statline was given.
4893if test "${enable_statline+set}" = set; then
4894 enableval="$enable_statline"
4895
4896 if test "$enableval" = yes; then
4897 ac_cv_use_statline='wxUSE_STATLINE=yes'
4898 else
4899 ac_cv_use_statline='wxUSE_STATLINE=no'
4900 fi
4901
4902else
4903
4904 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
4905 if test "x$LINE" != x ; then
4906 eval "DEFAULT_$LINE"
4907 else
4908 no_cache=1
4909 fi
4910
4911 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
4912
4913fi
4914
4915
4916 eval "$ac_cv_use_statline"
4917 if test "$no_cache" != 1; then
4918 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
4919 fi
4920
4921 if test "$wxUSE_STATLINE" = yes; then
4922 echo "$ac_t""yes" 1>&6
4923 else
4924 echo "$ac_t""no" 1>&6
4925 fi
4926
4927
4928 echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6
c7a2bf27 4929echo "configure:4930: checking "for --enable-statusbar"" >&5
10f2d63a
VZ
4930 no_cache=0
4931 # Check whether --enable-statusbar or --disable-statusbar was given.
4932if test "${enable_statusbar+set}" = set; then
4933 enableval="$enable_statusbar"
4934
4935 if test "$enableval" = yes; then
4936 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
4937 else
4938 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
4939 fi
4940
4941else
4942
4943 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
4944 if test "x$LINE" != x ; then
4945 eval "DEFAULT_$LINE"
4946 else
4947 no_cache=1
4948 fi
4949
4950 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
4951
4952fi
4953
4954
4955 eval "$ac_cv_use_statusbar"
4956 if test "$no_cache" != 1; then
4957 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
4958 fi
4959
4960 if test "$wxUSE_STATUSBAR" = yes; then
4961 echo "$ac_t""yes" 1>&6
4962 else
4963 echo "$ac_t""no" 1>&6
4964 fi
4965
4966
4967 echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6
c7a2bf27 4968echo "configure:4969: checking "for --enable-tabdialog"" >&5
10f2d63a
VZ
4969 no_cache=0
4970 # Check whether --enable-tabdialog or --disable-tabdialog was given.
4971if test "${enable_tabdialog+set}" = set; then
4972 enableval="$enable_tabdialog"
4973
4974 if test "$enableval" = yes; then
4975 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
4976 else
4977 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
4978 fi
4979
4980else
4981
4982 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
4983 if test "x$LINE" != x ; then
4984 eval "DEFAULT_$LINE"
4985 else
4986 no_cache=1
4987 fi
4988
4989 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
4990
4991fi
4992
4993
4994 eval "$ac_cv_use_tabdialog"
4995 if test "$no_cache" != 1; then
4996 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
4997 fi
4998
4999 if test "$wxUSE_TABDIALOG" = yes; then
5000 echo "$ac_t""yes" 1>&6
5001 else
5002 echo "$ac_t""no" 1>&6
5003 fi
5004
5005
5006 echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6
c7a2bf27 5007echo "configure:5008: checking "for --enable-toolbar"" >&5
10f2d63a
VZ
5008 no_cache=0
5009 # Check whether --enable-toolbar or --disable-toolbar was given.
5010if test "${enable_toolbar+set}" = set; then
5011 enableval="$enable_toolbar"
5012
5013 if test "$enableval" = yes; then
5014 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
5015 else
5016 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
5017 fi
5018
5019else
5020
5021 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
5022 if test "x$LINE" != x ; then
5023 eval "DEFAULT_$LINE"
5024 else
5025 no_cache=1
5026 fi
5027
5028 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
5029
5030fi
5031
5032
5033 eval "$ac_cv_use_toolbar"
5034 if test "$no_cache" != 1; then
5035 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
5036 fi
5037
5038 if test "$wxUSE_TOOLBAR" = yes; then
5039 echo "$ac_t""yes" 1>&6
5040 else
5041 echo "$ac_t""no" 1>&6
5042 fi
5043
5044
5045 echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6
c7a2bf27 5046echo "configure:5047: checking "for --enable-treectrl"" >&5
10f2d63a
VZ
5047 no_cache=0
5048 # Check whether --enable-treectrl or --disable-treectrl was given.
5049if test "${enable_treectrl+set}" = set; then
5050 enableval="$enable_treectrl"
5051
5052 if test "$enableval" = yes; then
5053 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
5054 else
5055 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
5056 fi
5057
5058else
5059
5060 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
5061 if test "x$LINE" != x ; then
5062 eval "DEFAULT_$LINE"
5063 else
5064 no_cache=1
5065 fi
5066
5067 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
5068
5069fi
5070
5071
5072 eval "$ac_cv_use_treectrl"
5073 if test "$no_cache" != 1; then
5074 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
5075 fi
5076
5077 if test "$wxUSE_TREECTRL" = yes; then
5078 echo "$ac_t""yes" 1>&6
5079 else
5080 echo "$ac_t""no" 1>&6
5081 fi
5082
5083
5084
5085
5086 echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6
c7a2bf27 5087echo "configure:5088: checking "for --enable-commondlg"" >&5
10f2d63a
VZ
5088 no_cache=0
5089 # Check whether --enable-commondlg or --disable-commondlg was given.
5090if test "${enable_commondlg+set}" = set; then
5091 enableval="$enable_commondlg"
5092
5093 if test "$enableval" = yes; then
5094 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
5095 else
5096 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
5097 fi
5098
5099else
5100
5101 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
5102 if test "x$LINE" != x ; then
5103 eval "DEFAULT_$LINE"
5104 else
5105 no_cache=1
5106 fi
5107
5108 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
5109
5110fi
5111
5112
5113 eval "$ac_cv_use_commondlg"
5114 if test "$no_cache" != 1; then
5115 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
5116 fi
5117
5118 if test "$wxUSE_COMMONDLGS" = yes; then
5119 echo "$ac_t""yes" 1>&6
5120 else
5121 echo "$ac_t""no" 1>&6
5122 fi
5123
5124
5125 echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6
c7a2bf27 5126echo "configure:5127: checking "for --enable-dirdlg"" >&5
10f2d63a
VZ
5127 no_cache=0
5128 # Check whether --enable-dirdlg or --disable-dirdlg was given.
5129if test "${enable_dirdlg+set}" = set; then
5130 enableval="$enable_dirdlg"
5131
5132 if test "$enableval" = yes; then
5133 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
5134 else
5135 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
5136 fi
5137
5138else
5139
5140 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
5141 if test "x$LINE" != x ; then
5142 eval "DEFAULT_$LINE"
5143 else
5144 no_cache=1
5145 fi
5146
5147 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
5148
5149fi
5150
5151
5152 eval "$ac_cv_use_dirdlg"
5153 if test "$no_cache" != 1; then
5154 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
5155 fi
5156
5157 if test "$wxUSE_DIRDLG" = yes; then
5158 echo "$ac_t""yes" 1>&6
5159 else
5160 echo "$ac_t""no" 1>&6
5161 fi
5162
5163
5164 echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6
c7a2bf27 5165echo "configure:5166: checking "for --enable-textdlg"" >&5
10f2d63a
VZ
5166 no_cache=0
5167 # Check whether --enable-textdlg or --disable-textdlg was given.
5168if test "${enable_textdlg+set}" = set; then
5169 enableval="$enable_textdlg"
5170
5171 if test "$enableval" = yes; then
5172 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
5173 else
5174 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
5175 fi
5176
5177else
5178
5179 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
5180 if test "x$LINE" != x ; then
5181 eval "DEFAULT_$LINE"
5182 else
5183 no_cache=1
5184 fi
5185
5186 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
5187
5188fi
5189
5190
5191 eval "$ac_cv_use_textdlg"
5192 if test "$no_cache" != 1; then
5193 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
5194 fi
5195
5196 if test "$wxUSE_TEXTDLG" = yes; then
5197 echo "$ac_t""yes" 1>&6
5198 else
5199 echo "$ac_t""no" 1>&6
5200 fi
5201
5202
5203 echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6
c7a2bf27 5204echo "configure:5205: checking "for --enable-tipdlg"" >&5
10f2d63a
VZ
5205 no_cache=0
5206 # Check whether --enable-tipdlg or --disable-tipdlg was given.
5207if test "${enable_tipdlg+set}" = set; then
5208 enableval="$enable_tipdlg"
5209
5210 if test "$enableval" = yes; then
5211 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
5212 else
5213 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
5214 fi
5215
5216else
5217
5218 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
5219 if test "x$LINE" != x ; then
5220 eval "DEFAULT_$LINE"
5221 else
5222 no_cache=1
5223 fi
5224
5225 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
5226
5227fi
5228
5229
5230 eval "$ac_cv_use_tipdlg"
5231 if test "$no_cache" != 1; then
5232 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
5233 fi
5234
5235 if test "$wxUSE_STARTUP_TIPS" = yes; then
5236 echo "$ac_t""yes" 1>&6
5237 else
5238 echo "$ac_t""no" 1>&6
5239 fi
5240
5241
5242 echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6
c7a2bf27 5243echo "configure:5244: checking "for --enable-progressdlg"" >&5
10f2d63a
VZ
5244 no_cache=0
5245 # Check whether --enable-progressdlg or --disable-progressdlg was given.
5246if test "${enable_progressdlg+set}" = set; then
5247 enableval="$enable_progressdlg"
5248
5249 if test "$enableval" = yes; then
5250 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
5251 else
5252 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
5253 fi
5254
5255else
5256
5257 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
5258 if test "x$LINE" != x ; then
5259 eval "DEFAULT_$LINE"
5260 else
5261 no_cache=1
5262 fi
5263
5264 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
5265
5266fi
5267
5268
5269 eval "$ac_cv_use_progressdlg"
5270 if test "$no_cache" != 1; then
5271 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
5272 fi
5273
5274 if test "$wxUSE_PROGRESSDLG" = yes; then
5275 echo "$ac_t""yes" 1>&6
5276 else
5277 echo "$ac_t""no" 1>&6
5278 fi
5279
5280
5281 echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6
c7a2bf27 5282echo "configure:5283: checking "for --enable-miniframe"" >&5
10f2d63a
VZ
5283 no_cache=0
5284 # Check whether --enable-miniframe or --disable-miniframe was given.
5285if test "${enable_miniframe+set}" = set; then
5286 enableval="$enable_miniframe"
5287
5288 if test "$enableval" = yes; then
5289 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
5290 else
5291 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
5292 fi
5293
5294else
5295
5296 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
5297 if test "x$LINE" != x ; then
5298 eval "DEFAULT_$LINE"
5299 else
5300 no_cache=1
5301 fi
5302
5303 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
5304
5305fi
5306
5307
5308 eval "$ac_cv_use_miniframe"
5309 if test "$no_cache" != 1; then
5310 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
5311 fi
5312
5313 if test "$wxUSE_MINIFRAME" = yes; then
5314 echo "$ac_t""yes" 1>&6
5315 else
5316 echo "$ac_t""no" 1>&6
5317 fi
5318
5319
5320 echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6
c7a2bf27 5321echo "configure:5322: checking "for --enable-html"" >&5
10f2d63a
VZ
5322 no_cache=0
5323 # Check whether --enable-html or --disable-html was given.
5324if test "${enable_html+set}" = set; then
5325 enableval="$enable_html"
5326
5327 if test "$enableval" = yes; then
5328 ac_cv_use_html='wxUSE_HTML=yes'
5329 else
5330 ac_cv_use_html='wxUSE_HTML=no'
5331 fi
5332
5333else
5334
5335 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5336 if test "x$LINE" != x ; then
5337 eval "DEFAULT_$LINE"
5338 else
5339 no_cache=1
5340 fi
5341
5342 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5343
5344fi
5345
5346
5347 eval "$ac_cv_use_html"
5348 if test "$no_cache" != 1; then
5349 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5350 fi
5351
5352 if test "$wxUSE_HTML" = yes; then
5353 echo "$ac_t""yes" 1>&6
5354 else
5355 echo "$ac_t""no" 1>&6
5356 fi
5357
5358
5359 echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6
c7a2bf27 5360echo "configure:5361: checking "for --enable-tooltips"" >&5
10f2d63a
VZ
5361 no_cache=0
5362 # Check whether --enable-tooltips or --disable-tooltips was given.
5363if test "${enable_tooltips+set}" = set; then
5364 enableval="$enable_tooltips"
5365
5366 if test "$enableval" = yes; then
5367 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
5368 else
5369 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
5370 fi
5371
5372else
5373
5374 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
5375 if test "x$LINE" != x ; then
5376 eval "DEFAULT_$LINE"
5377 else
5378 no_cache=1
5379 fi
5380
5381 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5382
5383fi
5384
5385
5386 eval "$ac_cv_use_tooltips"
5387 if test "$no_cache" != 1; then
5388 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
5389 fi
5390
5391 if test "$wxUSE_TOOLTIPS" = yes; then
5392 echo "$ac_t""yes" 1>&6
5393 else
5394 echo "$ac_t""no" 1>&6
5395 fi
5396
5397
5398 echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6
c7a2bf27 5399echo "configure:5400: checking "for --enable-splines"" >&5
10f2d63a
VZ
5400 no_cache=0
5401 # Check whether --enable-splines or --disable-splines was given.
5402if test "${enable_splines+set}" = set; then
5403 enableval="$enable_splines"
5404
5405 if test "$enableval" = yes; then
5406 ac_cv_use_splines='wxUSE_SPLINES=yes'
5407 else
5408 ac_cv_use_splines='wxUSE_SPLINES=no'
5409 fi
5410
5411else
5412
5413 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
5414 if test "x$LINE" != x ; then
5415 eval "DEFAULT_$LINE"
5416 else
5417 no_cache=1
5418 fi
5419
5420 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
5421
5422fi
5423
5424
5425 eval "$ac_cv_use_splines"
5426 if test "$no_cache" != 1; then
5427 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
5428 fi
5429
5430 if test "$wxUSE_SPLINES" = yes; then
5431 echo "$ac_t""yes" 1>&6
5432 else
5433 echo "$ac_t""no" 1>&6
5434 fi
5435
5436
5437 echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6
c7a2bf27 5438echo "configure:5439: checking "for --enable-validators"" >&5
10f2d63a
VZ
5439 no_cache=0
5440 # Check whether --enable-validators or --disable-validators was given.
5441if test "${enable_validators+set}" = set; then
5442 enableval="$enable_validators"
5443
5444 if test "$enableval" = yes; then
5445 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
5446 else
5447 ac_cv_use_validators='wxUSE_VALIDATORS=no'
5448 fi
5449
5450else
5451
5452 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
5453 if test "x$LINE" != x ; then
5454 eval "DEFAULT_$LINE"
5455 else
5456 no_cache=1
5457 fi
5458
5459 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
5460
5461fi
5462
5463
5464 eval "$ac_cv_use_validators"
5465 if test "$no_cache" != 1; then
5466 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
5467 fi
5468
5469 if test "$wxUSE_VALIDATORS" = yes; then
5470 echo "$ac_t""yes" 1>&6
5471 else
5472 echo "$ac_t""no" 1>&6
5473 fi
5474
5475
5476 echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6
c7a2bf27 5477echo "configure:5478: checking "for --enable-busyinfo"" >&5
10f2d63a
VZ
5478 no_cache=0
5479 # Check whether --enable-busyinfo or --disable-busyinfo was given.
5480if test "${enable_busyinfo+set}" = set; then
5481 enableval="$enable_busyinfo"
5482
5483 if test "$enableval" = yes; then
5484 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
5485 else
5486 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
5487 fi
5488
5489else
5490
5491 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
5492 if test "x$LINE" != x ; then
5493 eval "DEFAULT_$LINE"
5494 else
5495 no_cache=1
5496 fi
5497
5498 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
5499
5500fi
5501
5502
5503 eval "$ac_cv_use_busyinfo"
5504 if test "$no_cache" != 1; then
5505 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
5506 fi
5507
5508 if test "$wxUSE_BUSYINFO" = yes; then
5509 echo "$ac_t""yes" 1>&6
5510 else
5511 echo "$ac_t""no" 1>&6
5512 fi
5513
5514
5515
5516
5517 echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6
c7a2bf27 5518echo "configure:5519: checking "for --enable-gif"" >&5
10f2d63a
VZ
5519 no_cache=0
5520 # Check whether --enable-gif or --disable-gif was given.
5521if test "${enable_gif+set}" = set; then
5522 enableval="$enable_gif"
5523
5524 if test "$enableval" = yes; then
5525 ac_cv_use_gif='wxUSE_GIF=yes'
5526 else
5527 ac_cv_use_gif='wxUSE_GIF=no'
5528 fi
5529
5530else
5531
5532 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
5533 if test "x$LINE" != x ; then
5534 eval "DEFAULT_$LINE"
5535 else
5536 no_cache=1
5537 fi
5538
5539 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
5540
5541fi
5542
5543
5544 eval "$ac_cv_use_gif"
5545 if test "$no_cache" != 1; then
5546 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
5547 fi
5548
5549 if test "$wxUSE_GIF" = yes; then
5550 echo "$ac_t""yes" 1>&6
5551 else
5552 echo "$ac_t""no" 1>&6
5553 fi
5554
5555
5556 echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6
c7a2bf27 5557echo "configure:5558: checking "for --enable-pcx"" >&5
10f2d63a
VZ
5558 no_cache=0
5559 # Check whether --enable-pcx or --disable-pcx was given.
5560if test "${enable_pcx+set}" = set; then
5561 enableval="$enable_pcx"
5562
5563 if test "$enableval" = yes; then
5564 ac_cv_use_pcx='wxUSE_PCX=yes'
5565 else
5566 ac_cv_use_pcx='wxUSE_PCX=no'
5567 fi
5568
5569else
5570
5571 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
5572 if test "x$LINE" != x ; then
5573 eval "DEFAULT_$LINE"
5574 else
5575 no_cache=1
5576 fi
5577
5578 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
5579
5580fi
5581
5582
5583 eval "$ac_cv_use_pcx"
5584 if test "$no_cache" != 1; then
5585 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
5586 fi
5587
5588 if test "$wxUSE_PCX" = yes; then
5589 echo "$ac_t""yes" 1>&6
5590 else
5591 echo "$ac_t""no" 1>&6
5592 fi
5593
5594
5595 echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6
c7a2bf27 5596echo "configure:5597: checking "for --enable-pnm"" >&5
10f2d63a
VZ
5597 no_cache=0
5598 # Check whether --enable-pnm or --disable-pnm was given.
5599if test "${enable_pnm+set}" = set; then
5600 enableval="$enable_pnm"
5601
5602 if test "$enableval" = yes; then
5603 ac_cv_use_pnm='wxUSE_PNM=yes'
5604 else
5605 ac_cv_use_pnm='wxUSE_PNM=no'
5606 fi
5607
5608else
5609
5610 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
5611 if test "x$LINE" != x ; then
5612 eval "DEFAULT_$LINE"
5613 else
5614 no_cache=1
5615 fi
5616
5617 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
5618
5619fi
5620
5621
5622 eval "$ac_cv_use_pnm"
5623 if test "$no_cache" != 1; then
5624 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
5625 fi
5626
5627 if test "$wxUSE_PNM" = yes; then
5628 echo "$ac_t""yes" 1>&6
5629 else
5630 echo "$ac_t""no" 1>&6
5631 fi
5632
5633
5634
5635 echo "saving argument cache $wx_arg_cache_file"
5636 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
5637
5638
5639
5640echo $ac_n "checking for toolkit""... $ac_c" 1>&6
c7a2bf27 5641echo "configure:5642: checking for toolkit" >&5
10f2d63a
VZ
5642
5643if test "$wxUSE_GUI" = "yes"; then
5644
5645if test "$TOOLKIT_GIVEN" = 1; then
5646 for toolkit in `echo $ALL_TOOLKITS`; do
5647 var=wxUSE_$toolkit
5648 eval "value=\$${var}"
5649 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
5650 done
5651else
5652 for toolkit in `echo $ALL_TOOLKITS`; do
5653 if test "$has_toolkit_in_cache" != 1; then
5654 var=DEFAULT_DEFAULT_wxUSE_$toolkit
5655 else
5656 var=DEFAULT_wxUSE_$toolkit
5657 fi
5658 eval "wxUSE_$toolkit=\$${var}"
5659 done
5660fi
5661
5662NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}`
5663
5664case "$NUM_TOOLKITS" in
5665 1)
5666 ;;
5667 0)
5668 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
5669 ;;
5670 *)
5671 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
5672esac
5673
5674for toolkit in `echo $ALL_TOOLKITS`; do
5675 var=wxUSE_$toolkit
5676 eval "value=\$${var}"
5677 if test "x$value" != x; then
5678 cache_var=CACHE_$toolkit
5679 eval "cache=\$${cache_var}"
5680 if test "$cache" = 1; then
5681 echo "$var=$value" >> ${wx_arg_cache_file}
5682 fi
5683 if test "$value" = 1; then
5684 echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6
5685 fi
5686 fi
5687done
5688
5689else
5690 echo "$ac_t""base only" 1>&6
5691fi
5692
5693
5694cat > confcache <<\EOF
5695# This file is a shell script that caches the results of configure
5696# tests run on this system so they can be shared between configure
5697# scripts and configure runs. It is not useful on other systems.
5698# If it contains results you don't want to keep, you may remove or edit it.
5699#
5700# By default, configure uses ./config.cache as the cache file,
5701# creating it if it does not exist already. You can give configure
5702# the --cache-file=FILE option to use a different cache file; that is
5703# what configure does when it calls configure scripts in
5704# subdirectories, so they share the cache.
5705# Giving --cache-file=/dev/null disables caching, for debugging configure.
5706# config.status only pays attention to the cache file if you give it the
5707# --recheck option to rerun configure.
5708#
5709EOF
5710# The following way of writing the cache mishandles newlines in values,
5711# but we know of no workaround that is simple, portable, and efficient.
5712# So, don't put newlines in cache variables' values.
5713# Ultrix sh set writes to stderr and can't be redirected directly,
5714# and sets the high bit in the cache file unless we assign to the vars.
5715(set) 2>&1 |
5716 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5717 *ac_space=\ *)
5718 # `set' does not quote correctly, so add quotes (double-quote substitution
5719 # turns \\\\ into \\, and sed turns \\ into \).
5720 sed -n \
5721 -e "s/'/'\\\\''/g" \
5722 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5723 ;;
5724 *)
5725 # `set' quotes correctly as required by POSIX, so do not add quotes.
5726 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5727 ;;
5728 esac >> confcache
5729if cmp -s $cache_file confcache; then
5730 :
5731else
5732 if test -w $cache_file; then
5733 echo "updating cache $cache_file"
5734 cat confcache > $cache_file
5735 else
5736 echo "not updating unwritable cache $cache_file"
5737 fi
5738fi
5739rm -f confcache
5740
5741
5742if eval "test $host != $build"; then
5743 if eval "test $host_alias != NONE"; then
5744 CC=$host_alias-gcc
5745 CXX=$host_alias-c++
5746 AR=$host_alias-ar
5747 RANLIB=$host_alias-ranlib
5748 DLLTOOL=$host_alias-dlltool
5749 LD=$host_alias-ld
5750 NM=$host_alias-nm
5751 STRIP=$host_alias-strip
5752 fi
5753fi
5754
5755# Extract the first word of "gcc", so it can be a program name with args.
5756set dummy gcc; ac_word=$2
5757echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c7a2bf27 5758echo "configure:5759: checking for $ac_word" >&5
10f2d63a
VZ
5759if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5760 echo $ac_n "(cached) $ac_c" 1>&6
5761else
5762 if test -n "$CC"; then
5763 ac_cv_prog_CC="$CC" # Let the user override the test.
5764else
5765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5766 ac_dummy="$PATH"
5767 for ac_dir in $ac_dummy; do
5768 test -z "$ac_dir" && ac_dir=.
5769 if test -f $ac_dir/$ac_word; then
5770 ac_cv_prog_CC="gcc"
5771 break
5772 fi
5773 done
5774 IFS="$ac_save_ifs"
5775fi
5776fi
5777CC="$ac_cv_prog_CC"
5778if test -n "$CC"; then
5779 echo "$ac_t""$CC" 1>&6
5780else
5781 echo "$ac_t""no" 1>&6
5782fi
5783
5784if test -z "$CC"; then
5785 # Extract the first word of "cc", so it can be a program name with args.
5786set dummy cc; ac_word=$2
5787echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c7a2bf27 5788echo "configure:5789: checking for $ac_word" >&5
10f2d63a
VZ
5789if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5790 echo $ac_n "(cached) $ac_c" 1>&6
5791else
5792 if test -n "$CC"; then
5793 ac_cv_prog_CC="$CC" # Let the user override the test.
5794else
5795 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5796 ac_prog_rejected=no
5797 ac_dummy="$PATH"
5798 for ac_dir in $ac_dummy; do
5799 test -z "$ac_dir" && ac_dir=.
5800 if test -f $ac_dir/$ac_word; then
5801 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
5802 ac_prog_rejected=yes
5803 continue
5804 fi
5805 ac_cv_prog_CC="cc"
5806 break
5807 fi
5808 done
5809 IFS="$ac_save_ifs"
5810if test $ac_prog_rejected = yes; then
5811 # We found a bogon in the path, so make sure we never use it.
5812 set dummy $ac_cv_prog_CC
5813 shift
5814 if test $# -gt 0; then
5815 # We chose a different compiler from the bogus one.
5816 # However, it has the same basename, so the bogon will be chosen
5817 # first if we set CC to just the basename; use the full file name.
5818 shift
5819 set dummy "$ac_dir/$ac_word" "$@"
5820 shift
5821 ac_cv_prog_CC="$@"
5822 fi
5823fi
5824fi
5825fi
5826CC="$ac_cv_prog_CC"
5827if test -n "$CC"; then
5828 echo "$ac_t""$CC" 1>&6
5829else
5830 echo "$ac_t""no" 1>&6
5831fi
5832
5833 if test -z "$CC"; then
5834 case "`uname -s`" in
5835 *win32* | *WIN32*)
5836 # Extract the first word of "cl", so it can be a program name with args.
5837set dummy cl; ac_word=$2
5838echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c7a2bf27 5839echo "configure:5840: checking for $ac_word" >&5
10f2d63a
VZ
5840if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5841 echo $ac_n "(cached) $ac_c" 1>&6
5842else
5843 if test -n "$CC"; then
5844 ac_cv_prog_CC="$CC" # Let the user override the test.
5845else
5846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5847 ac_dummy="$PATH"
5848 for ac_dir in $ac_dummy; do
5849 test -z "$ac_dir" && ac_dir=.
5850 if test -f $ac_dir/$ac_word; then
5851 ac_cv_prog_CC="cl"
5852 break
5853 fi
5854 done
5855 IFS="$ac_save_ifs"
5856fi
5857fi
5858CC="$ac_cv_prog_CC"
5859if test -n "$CC"; then
5860 echo "$ac_t""$CC" 1>&6
5861else
5862 echo "$ac_t""no" 1>&6
5863fi
5864 ;;
5865 esac
5866 fi
5867 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5868fi
5869
5870echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
c7a2bf27 5871echo "configure:5872: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
5872
5873ac_ext=c
5874# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5875ac_cpp='$CPP $CPPFLAGS'
5876ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5877ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5878cross_compiling=$ac_cv_prog_cc_cross
5879
5880cat > conftest.$ac_ext << EOF
5881
c7a2bf27 5882#line 5883 "configure"
10f2d63a
VZ
5883#include "confdefs.h"
5884
5885main(){return(0);}
5886EOF
c7a2bf27 5887if { (eval echo configure:5888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
5888 ac_cv_prog_cc_works=yes
5889 # If we can't run a trivial program, we are probably using a cross compiler.
5890 if (./conftest; exit) 2>/dev/null; then
5891 ac_cv_prog_cc_cross=no
5892 else
5893 ac_cv_prog_cc_cross=yes
5894 fi
5895else
5896 echo "configure: failed program was:" >&5
5897 cat conftest.$ac_ext >&5
5898 ac_cv_prog_cc_works=no
5899fi
5900rm -fr conftest*
5901ac_ext=c
5902# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5903ac_cpp='$CPP $CPPFLAGS'
5904ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5905ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5906cross_compiling=$ac_cv_prog_cc_cross
5907
5908echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
5909if test $ac_cv_prog_cc_works = no; then
5910 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
5911fi
5912echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
c7a2bf27 5913echo "configure:5914: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
5914echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
5915cross_compiling=$ac_cv_prog_cc_cross
5916
5917echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
c7a2bf27 5918echo "configure:5919: checking whether we are using GNU C" >&5
10f2d63a
VZ
5919if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
5920 echo $ac_n "(cached) $ac_c" 1>&6
5921else
5922 cat > conftest.c <<EOF
5923#ifdef __GNUC__
5924 yes;
5925#endif
5926EOF
c7a2bf27 5927if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:5928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
5928 ac_cv_prog_gcc=yes
5929else
5930 ac_cv_prog_gcc=no
5931fi
5932fi
5933
5934echo "$ac_t""$ac_cv_prog_gcc" 1>&6
5935
5936if test $ac_cv_prog_gcc = yes; then
5937 GCC=yes
5938else
5939 GCC=
5940fi
5941
5942ac_test_CFLAGS="${CFLAGS+set}"
5943ac_save_CFLAGS="$CFLAGS"
5944CFLAGS=
5945echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
c7a2bf27 5946echo "configure:5947: checking whether ${CC-cc} accepts -g" >&5
10f2d63a
VZ
5947if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
5948 echo $ac_n "(cached) $ac_c" 1>&6
5949else
5950 echo 'void f(){}' > conftest.c
5951if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
5952 ac_cv_prog_cc_g=yes
5953else
5954 ac_cv_prog_cc_g=no
5955fi
5956rm -f conftest*
5957
5958fi
5959
5960echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
5961if test "$ac_test_CFLAGS" = set; then
5962 CFLAGS="$ac_save_CFLAGS"
5963elif test $ac_cv_prog_cc_g = yes; then
5964 if test "$GCC" = yes; then
5965 CFLAGS="-g -O2"
5966 else
5967 CFLAGS="-g"
5968 fi
5969else
5970 if test "$GCC" = yes; then
5971 CFLAGS="-O2"
5972 else
5973 CFLAGS=
5974 fi
5975fi
5976
5977
5978CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
5979
5980echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
c7a2bf27 5981echo "configure:5982: checking how to run the C preprocessor" >&5
10f2d63a
VZ
5982# On Suns, sometimes $CPP names a directory.
5983if test -n "$CPP" && test -d "$CPP"; then
5984 CPP=
5985fi
5986if test -z "$CPP"; then
5987if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
5988 echo $ac_n "(cached) $ac_c" 1>&6
5989else
5990 # This must be in double quotes, not single quotes, because CPP may get
5991 # substituted into the Makefile and "${CC-cc}" will confuse make.
5992 CPP="${CC-cc} -E"
5993 # On the NeXT, cc -E runs the code through the compiler's parser,
5994 # not just through cpp.
5995 cat > conftest.$ac_ext <<EOF
c7a2bf27 5996#line 5997 "configure"
10f2d63a
VZ
5997#include "confdefs.h"
5998#include <assert.h>
5999Syntax Error
6000EOF
6001ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c7a2bf27 6002{ (eval echo configure:6003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6003ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6004if test -z "$ac_err"; then
6005 :
6006else
6007 echo "$ac_err" >&5
6008 echo "configure: failed program was:" >&5
6009 cat conftest.$ac_ext >&5
6010 rm -rf conftest*
6011 CPP="${CC-cc} -E -traditional-cpp"
6012 cat > conftest.$ac_ext <<EOF
c7a2bf27 6013#line 6014 "configure"
10f2d63a
VZ
6014#include "confdefs.h"
6015#include <assert.h>
6016Syntax Error
6017EOF
6018ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c7a2bf27 6019{ (eval echo configure:6020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6020ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6021if test -z "$ac_err"; then
6022 :
6023else
6024 echo "$ac_err" >&5
6025 echo "configure: failed program was:" >&5
6026 cat conftest.$ac_ext >&5
6027 rm -rf conftest*
6028 CPP="${CC-cc} -nologo -E"
6029 cat > conftest.$ac_ext <<EOF
c7a2bf27 6030#line 6031 "configure"
10f2d63a
VZ
6031#include "confdefs.h"
6032#include <assert.h>
6033Syntax Error
6034EOF
6035ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c7a2bf27 6036{ (eval echo configure:6037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6037ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6038if test -z "$ac_err"; then
6039 :
6040else
6041 echo "$ac_err" >&5
6042 echo "configure: failed program was:" >&5
6043 cat conftest.$ac_ext >&5
6044 rm -rf conftest*
6045 CPP=/lib/cpp
6046fi
6047rm -f conftest*
6048fi
6049rm -f conftest*
6050fi
6051rm -f conftest*
6052 ac_cv_prog_CPP="$CPP"
6053fi
6054 CPP="$ac_cv_prog_CPP"
6055else
6056 ac_cv_prog_CPP="$CPP"
6057fi
6058echo "$ac_t""$CPP" 1>&6
6059
6060
6061if test $ac_cv_prog_gcc = yes; then
6062 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
c7a2bf27 6063echo "configure:6064: checking whether ${CC-cc} needs -traditional" >&5
10f2d63a
VZ
6064if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
6065 echo $ac_n "(cached) $ac_c" 1>&6
6066else
6067 ac_pattern="Autoconf.*'x'"
6068 cat > conftest.$ac_ext <<EOF
c7a2bf27 6069#line 6070 "configure"
10f2d63a
VZ
6070#include "confdefs.h"
6071#include <sgtty.h>
6072Autoconf TIOCGETP
6073EOF
6074if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6075 egrep "$ac_pattern" >/dev/null 2>&1; then
6076 rm -rf conftest*
6077 ac_cv_prog_gcc_traditional=yes
6078else
6079 rm -rf conftest*
6080 ac_cv_prog_gcc_traditional=no
6081fi
6082rm -f conftest*
6083
6084
6085 if test $ac_cv_prog_gcc_traditional = no; then
6086 cat > conftest.$ac_ext <<EOF
c7a2bf27 6087#line 6088 "configure"
10f2d63a
VZ
6088#include "confdefs.h"
6089#include <termio.h>
6090Autoconf TCGETA
6091EOF
6092if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6093 egrep "$ac_pattern" >/dev/null 2>&1; then
6094 rm -rf conftest*
6095 ac_cv_prog_gcc_traditional=yes
6096fi
6097rm -f conftest*
6098
6099 fi
6100fi
6101
6102echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
6103 if test $ac_cv_prog_gcc_traditional = yes; then
6104 CC="$CC -traditional"
6105 fi
6106fi
6107
6108
6109
6110ac_ext=C
6111# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6112ac_cpp='$CXXCPP $CPPFLAGS'
6113ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6114ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6115cross_compiling=$ac_cv_prog_cxx_cross
6116
6117
6118for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
6119do
6120# Extract the first word of "$ac_prog", so it can be a program name with args.
6121set dummy $ac_prog; ac_word=$2
6122echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c7a2bf27 6123echo "configure:6124: checking for $ac_word" >&5
10f2d63a
VZ
6124if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
6125 echo $ac_n "(cached) $ac_c" 1>&6
6126else
6127 if test -n "$CXX"; then
6128 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6129else
6130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6131 ac_dummy="$PATH"
6132 for ac_dir in $ac_dummy; do
6133 test -z "$ac_dir" && ac_dir=.
6134 if test -f $ac_dir/$ac_word; then
6135 ac_cv_prog_CXX="$ac_prog"
6136 break
6137 fi
6138 done
6139 IFS="$ac_save_ifs"
6140fi
6141fi
6142CXX="$ac_cv_prog_CXX"
6143if test -n "$CXX"; then
6144 echo "$ac_t""$CXX" 1>&6
6145else
6146 echo "$ac_t""no" 1>&6
6147fi
6148
6149test -n "$CXX" && break
6150done
6151test -n "$CXX" || CXX="gcc"
6152
6153
6154echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
c7a2bf27 6155echo "configure:6156: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a
VZ
6156
6157ac_ext=C
6158# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6159ac_cpp='$CXXCPP $CPPFLAGS'
6160ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6161ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6162cross_compiling=$ac_cv_prog_cxx_cross
6163
6164cat > conftest.$ac_ext << EOF
6165
c7a2bf27 6166#line 6167 "configure"
10f2d63a
VZ
6167#include "confdefs.h"
6168
6169int main(){return(0);}
6170EOF
c7a2bf27 6171if { (eval echo configure:6172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6172 ac_cv_prog_cxx_works=yes
6173 # If we can't run a trivial program, we are probably using a cross compiler.
6174 if (./conftest; exit) 2>/dev/null; then
6175 ac_cv_prog_cxx_cross=no
6176 else
6177 ac_cv_prog_cxx_cross=yes
6178 fi
6179else
6180 echo "configure: failed program was:" >&5
6181 cat conftest.$ac_ext >&5
6182 ac_cv_prog_cxx_works=no
6183fi
6184rm -fr conftest*
6185ac_ext=C
6186# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6187ac_cpp='$CXXCPP $CPPFLAGS'
6188ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6189ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6190cross_compiling=$ac_cv_prog_cxx_cross
6191
6192echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
6193if test $ac_cv_prog_cxx_works = no; then
6194 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
6195fi
6196echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
c7a2bf27 6197echo "configure:6198: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
10f2d63a
VZ
6198echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
6199cross_compiling=$ac_cv_prog_cxx_cross
6200
6201echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
c7a2bf27 6202echo "configure:6203: checking whether we are using GNU C++" >&5
10f2d63a
VZ
6203if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
6204 echo $ac_n "(cached) $ac_c" 1>&6
6205else
6206 cat > conftest.C <<EOF
6207#ifdef __GNUC__
6208 yes;
6209#endif
6210EOF
c7a2bf27 6211if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
10f2d63a
VZ
6212 ac_cv_prog_gxx=yes
6213else
6214 ac_cv_prog_gxx=no
6215fi
6216fi
6217
6218echo "$ac_t""$ac_cv_prog_gxx" 1>&6
6219
6220if test $ac_cv_prog_gxx = yes; then
6221 GXX=yes
6222else
6223 GXX=
6224fi
6225
6226ac_test_CXXFLAGS="${CXXFLAGS+set}"
6227ac_save_CXXFLAGS="$CXXFLAGS"
6228CXXFLAGS=
6229echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
c7a2bf27 6230echo "configure:6231: checking whether ${CXX-g++} accepts -g" >&5
10f2d63a
VZ
6231if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
6232 echo $ac_n "(cached) $ac_c" 1>&6
6233else
6234 echo 'void f(){}' > conftest.cc
6235if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
6236 ac_cv_prog_cxx_g=yes
6237else
6238 ac_cv_prog_cxx_g=no
6239fi
6240rm -f conftest*
6241
6242fi
6243
6244echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
6245if test "$ac_test_CXXFLAGS" = set; then
6246 CXXFLAGS="$ac_save_CXXFLAGS"
6247elif test $ac_cv_prog_cxx_g = yes; then
6248 if test "$GXX" = yes; then
6249 CXXFLAGS="-g -O2"
6250 else
6251 CXXFLAGS="-g"
6252 fi
6253else
6254 if test "$GXX" = yes; then
6255 CXXFLAGS="-O2"
6256 else
6257 CXXFLAGS=
6258 fi
6259fi
6260
6261
6262echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
c7a2bf27 6263echo "configure:6264: checking how to run the C++ preprocessor" >&5
10f2d63a
VZ
6264if test -z "$CXXCPP"; then
6265if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
6266 echo $ac_n "(cached) $ac_c" 1>&6
6267else
6268 ac_ext=C
6269# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6270ac_cpp='$CXXCPP $CPPFLAGS'
6271ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6272ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6273cross_compiling=$ac_cv_prog_cxx_cross
6274 CXXCPP="${CXX-g++} -E"
6275 cat > conftest.$ac_ext <<EOF
c7a2bf27 6276#line 6277 "configure"
10f2d63a
VZ
6277#include "confdefs.h"
6278#include <stdlib.h>
6279EOF
6280ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c7a2bf27 6281{ (eval echo configure:6282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
6282ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6283if test -z "$ac_err"; then
6284 :
6285else
6286 echo "$ac_err" >&5
6287 echo "configure: failed program was:" >&5
6288 cat conftest.$ac_ext >&5
6289 rm -rf conftest*
6290 CXXCPP=/lib/cpp
6291fi
6292rm -f conftest*
6293 ac_cv_prog_CXXCPP="$CXXCPP"
6294ac_ext=C
6295# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6296ac_cpp='$CXXCPP $CPPFLAGS'
6297ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6298ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6299cross_compiling=$ac_cv_prog_cxx_cross
6300fi
6301fi
6302CXXCPP="$ac_cv_prog_CXXCPP"
6303echo "$ac_t""$CXXCPP" 1>&6
6304
6305
6306CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
6307
6308ac_ext=c
6309# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6310ac_cpp='$CPP $CPPFLAGS'
6311ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
6312ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6313cross_compiling=$ac_cv_prog_cc_cross
6314
6315
6316# Extract the first word of "ranlib", so it can be a program name with args.
6317set dummy ranlib; ac_word=$2
6318echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c7a2bf27 6319echo "configure:6320: checking for $ac_word" >&5
10f2d63a
VZ
6320if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
6321 echo $ac_n "(cached) $ac_c" 1>&6
6322else
6323 if test -n "$RANLIB"; then
6324 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6325else
6326 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6327 ac_dummy="$PATH"
6328 for ac_dir in $ac_dummy; do
6329 test -z "$ac_dir" && ac_dir=.
6330 if test -f $ac_dir/$ac_word; then
6331 ac_cv_prog_RANLIB="ranlib"
6332 break
6333 fi
6334 done
6335 IFS="$ac_save_ifs"
6336 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
6337fi
6338fi
6339RANLIB="$ac_cv_prog_RANLIB"
6340if test -n "$RANLIB"; then
6341 echo "$ac_t""$RANLIB" 1>&6
6342else
6343 echo "$ac_t""no" 1>&6
6344fi
6345
6346
6347# Extract the first word of "ar", so it can be a program name with args.
6348set dummy ar; ac_word=$2
6349echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c7a2bf27 6350echo "configure:6351: checking for $ac_word" >&5
10f2d63a
VZ
6351if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
6352 echo $ac_n "(cached) $ac_c" 1>&6
6353else
6354 if test -n "$AR"; then
6355 ac_cv_prog_AR="$AR" # Let the user override the test.
6356else
6357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6358 ac_dummy="$PATH"
6359 for ac_dir in $ac_dummy; do
6360 test -z "$ac_dir" && ac_dir=.
6361 if test -f $ac_dir/$ac_word; then
6362 ac_cv_prog_AR="ar"
6363 break
6364 fi
6365 done
6366 IFS="$ac_save_ifs"
6367 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
6368fi
6369fi
6370AR="$ac_cv_prog_AR"
6371if test -n "$AR"; then
6372 echo "$ac_t""$AR" 1>&6
6373else
6374 echo "$ac_t""no" 1>&6
6375fi
6376
6377
6378# Find a good install program. We prefer a C program (faster),
6379# so one script is as good as another. But avoid the broken or
6380# incompatible versions:
6381# SysV /etc/install, /usr/sbin/install
6382# SunOS /usr/etc/install
6383# IRIX /sbin/install
6384# AIX /bin/install
6385# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6386# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6387# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6388# ./install, which can be erroneously created by make from ./install.sh.
6389echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
c7a2bf27 6390echo "configure:6391: checking for a BSD compatible install" >&5
10f2d63a
VZ
6391if test -z "$INSTALL"; then
6392if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6393 echo $ac_n "(cached) $ac_c" 1>&6
6394else
6395 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
6396 for ac_dir in $PATH; do
6397 # Account for people who put trailing slashes in PATH elements.
6398 case "$ac_dir/" in
6399 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6400 *)
6401 # OSF1 and SCO ODT 3.0 have their own names for install.
6402 # Don't use installbsd from OSF since it installs stuff as root
6403 # by default.
6404 for ac_prog in ginstall scoinst install; do
6405 if test -f $ac_dir/$ac_prog; then
6406 if test $ac_prog = install &&
6407 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6408 # AIX install. It has an incompatible calling convention.
6409 :
6410 else
6411 ac_cv_path_install="$ac_dir/$ac_prog -c"
6412 break 2
6413 fi
6414 fi
6415 done
6416 ;;
6417 esac
6418 done
6419 IFS="$ac_save_IFS"
6420
6421fi
6422 if test "${ac_cv_path_install+set}" = set; then
6423 INSTALL="$ac_cv_path_install"
6424 else
6425 # As a last resort, use the slow shell script. We don't cache a
6426 # path for INSTALL within a source directory, because that will
6427 # break other packages using the cache if that directory is
6428 # removed, or if the path is relative.
6429 INSTALL="$ac_install_sh"
6430 fi
6431fi
6432echo "$ac_t""$INSTALL" 1>&6
6433
6434# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6435# It thinks the first close brace ends the variable substitution.
6436test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6437
6438test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
6439
6440test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6441
6442
6443# Extract the first word of "strip", so it can be a program name with args.
6444set dummy strip; ac_word=$2
6445echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c7a2bf27 6446echo "configure:6447: checking for $ac_word" >&5
10f2d63a
VZ
6447if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
6448 echo $ac_n "(cached) $ac_c" 1>&6
6449else
6450 if test -n "$STRIP"; then
6451 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6452else
6453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6454 ac_dummy="$PATH"
6455 for ac_dir in $ac_dummy; do
6456 test -z "$ac_dir" && ac_dir=.
6457 if test -f $ac_dir/$ac_word; then
6458 ac_cv_prog_STRIP="strip"
6459 break
6460 fi
6461 done
6462 IFS="$ac_save_ifs"
6463 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
6464fi
6465fi
6466STRIP="$ac_cv_prog_STRIP"
6467if test -n "$STRIP"; then
6468 echo "$ac_t""$STRIP" 1>&6
6469else
6470 echo "$ac_t""no" 1>&6
6471fi
6472
6473
6474echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6
c7a2bf27 6475echo "configure:6476: checking "make for VPATH support"" >&5
10f2d63a
VZ
6476cat - << EOF > confMake
6477check : file
6478 cp \$? \$@
6479 cp \$? final_file
6480EOF
6481
6482if test ! -d sub ; then
6483 mkdir sub
6484fi
6485echo dummy > sub/file
6486${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null
6487RESULT=$?
6488rm -f sub/file check final_file confMake
6489rmdir sub
6490if test "$RESULT" = 0; then
6491 echo "$ac_t""yes" 1>&6
6492else
6493 echo "$ac_t""no" 1>&6
6494 { echo "configure: error: You need a make-utility that is able to use the variable
6495VPATH correctly.
6496If your version of make does not support VPATH correctly" 1>&2; exit 1; }
6497fi
6498
6499for ac_prog in 'bison -y' byacc
6500do
6501# Extract the first word of "$ac_prog", so it can be a program name with args.
6502set dummy $ac_prog; ac_word=$2
6503echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c7a2bf27 6504echo "configure:6505: checking for $ac_word" >&5
10f2d63a
VZ
6505if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
6506 echo $ac_n "(cached) $ac_c" 1>&6
6507else
6508 if test -n "$YACC"; then
6509 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6510else
6511 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6512 ac_dummy="$PATH"
6513 for ac_dir in $ac_dummy; do
6514 test -z "$ac_dir" && ac_dir=.
6515 if test -f $ac_dir/$ac_word; then
6516 ac_cv_prog_YACC="$ac_prog"
6517 break
6518 fi
6519 done
6520 IFS="$ac_save_ifs"
6521fi
6522fi
6523YACC="$ac_cv_prog_YACC"
6524if test -n "$YACC"; then
6525 echo "$ac_t""$YACC" 1>&6
6526else
6527 echo "$ac_t""no" 1>&6
6528fi
6529
6530test -n "$YACC" && break
6531done
6532test -n "$YACC" || YACC="yacc"
6533
6534
6535# Extract the first word of "flex", so it can be a program name with args.
6536set dummy flex; ac_word=$2
6537echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c7a2bf27 6538echo "configure:6539: checking for $ac_word" >&5
10f2d63a
VZ
6539if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
6540 echo $ac_n "(cached) $ac_c" 1>&6
6541else
6542 if test -n "$LEX"; then
6543 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6544else
6545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6546 ac_dummy="$PATH"
6547 for ac_dir in $ac_dummy; do
6548 test -z "$ac_dir" && ac_dir=.
6549 if test -f $ac_dir/$ac_word; then
6550 ac_cv_prog_LEX="flex"
6551 break
6552 fi
6553 done
6554 IFS="$ac_save_ifs"
6555 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
6556fi
6557fi
6558LEX="$ac_cv_prog_LEX"
6559if test -n "$LEX"; then
6560 echo "$ac_t""$LEX" 1>&6
6561else
6562 echo "$ac_t""no" 1>&6
6563fi
6564
6565if test -z "$LEXLIB"
6566then
6567 case "$LEX" in
6568 flex*) ac_lib=fl ;;
6569 *) ac_lib=l ;;
6570 esac
6571 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
c7a2bf27 6572echo "configure:6573: checking for yywrap in -l$ac_lib" >&5
10f2d63a
VZ
6573ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
6574if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6575 echo $ac_n "(cached) $ac_c" 1>&6
6576else
6577 ac_save_LIBS="$LIBS"
6578LIBS="-l$ac_lib $LIBS"
6579cat > conftest.$ac_ext <<EOF
c7a2bf27 6580#line 6581 "configure"
10f2d63a
VZ
6581#include "confdefs.h"
6582/* Override any gcc2 internal prototype to avoid an error. */
6583/* We use char because int might match the return type of a gcc2
6584 builtin and then its argument prototype would still apply. */
6585char yywrap();
6586
6587int main() {
6588yywrap()
6589; return 0; }
6590EOF
c7a2bf27 6591if { (eval echo configure:6592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
6592 rm -rf conftest*
6593 eval "ac_cv_lib_$ac_lib_var=yes"
6594else
6595 echo "configure: failed program was:" >&5
6596 cat conftest.$ac_ext >&5
6597 rm -rf conftest*
6598 eval "ac_cv_lib_$ac_lib_var=no"
6599fi
6600rm -f conftest*
6601LIBS="$ac_save_LIBS"
6602
6603fi
6604if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6605 echo "$ac_t""yes" 1>&6
6606 LEXLIB="-l$ac_lib"
6607else
6608 echo "$ac_t""no" 1>&6
6609fi
6610
6611fi
6612
6613
6614echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
c7a2bf27 6615echo "configure:6616: checking whether ln -s works" >&5
10f2d63a
VZ
6616if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6617 echo $ac_n "(cached) $ac_c" 1>&6
6618else
6619 rm -f conftestdata
6620if ln -s X conftestdata 2>/dev/null
6621then
6622 rm -f conftestdata
6623 ac_cv_prog_LN_S="ln -s"
6624else
6625 ac_cv_prog_LN_S=ln
6626fi
6627fi
6628LN_S="$ac_cv_prog_LN_S"
6629if test "$ac_cv_prog_LN_S" = "ln -s"; then
6630 echo "$ac_t""yes" 1>&6
6631else
6632 echo "$ac_t""no" 1>&6
6633fi
6634
6635
6636
6637SEARCH_INCLUDE="\
6638 /usr/local/include \
6639 \
6640 /usr/Motif-1.2/include \
6641 /usr/Motif-2.1/include \
6642 \
6643 /usr/include/Motif1.2 \
6644 /opt/xpm/include/X11 \
6645 /opt/GBxpm/include/ \
6646 /opt/GBxpm/X11/include/ \
6647 \
6648 /usr/Motif1.2/include \
6649 /usr/dt/include \
afc31813
VZ
6650 /usr/openwin/include \
6651 \
10f2d63a
VZ
6652 /usr/include/Xm \
6653 \
6654 /usr/X11R6/include \
afc31813 6655 /usr/X11R6.4/include \
10f2d63a
VZ
6656 /usr/X11R5/include \
6657 /usr/X11R4/include \
6658 \
10f2d63a
VZ
6659 /usr/include/X11R6 \
6660 /usr/include/X11R5 \
6661 /usr/include/X11R4 \
6662 \
6663 /usr/local/X11R6/include \
6664 /usr/local/X11R5/include \
6665 /usr/local/X11R4/include \
6666 \
6667 /usr/local/include/X11R6 \
6668 /usr/local/include/X11R5 \
6669 /usr/local/include/X11R4 \
6670 \
6671 /usr/X11/include \
6672 /usr/include/X11 \
6673 /usr/local/X11/include \
6674 /usr/local/include/X11 \
6675 \
6676 /usr/X386/include \
6677 /usr/x386/include \
6678 /usr/XFree86/include/X11 \
6679 \
6680 /usr/include/gtk \
6681 /usr/local/include/gtk \
6682 /usr/include/glib \
6683 /usr/local/include/glib \
6684 \
6685 /usr/include/qt \
6686 /usr/local/include/qt \
6687 \
6688 /usr/include/windows \
6689 /usr/include/wine \
6690 /usr/local/include/wine \
6691 \
6692 /usr/unsupported/include \
6693 /usr/athena/include \
6694 /usr/local/x11r5/include \
6695 /usr/lpp/Xamples/include \
6696 \
10f2d63a 6697 /usr/openwin/share/include \
928b5c08
VZ
6698 \
6699 /usr/include"
10f2d63a
VZ
6700
6701SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
6702
6703
6704cat > confcache <<\EOF
6705# This file is a shell script that caches the results of configure
6706# tests run on this system so they can be shared between configure
6707# scripts and configure runs. It is not useful on other systems.
6708# If it contains results you don't want to keep, you may remove or edit it.
6709#
6710# By default, configure uses ./config.cache as the cache file,
6711# creating it if it does not exist already. You can give configure
6712# the --cache-file=FILE option to use a different cache file; that is
6713# what configure does when it calls configure scripts in
6714# subdirectories, so they share the cache.
6715# Giving --cache-file=/dev/null disables caching, for debugging configure.
6716# config.status only pays attention to the cache file if you give it the
6717# --recheck option to rerun configure.
6718#
6719EOF
6720# The following way of writing the cache mishandles newlines in values,
6721# but we know of no workaround that is simple, portable, and efficient.
6722# So, don't put newlines in cache variables' values.
6723# Ultrix sh set writes to stderr and can't be redirected directly,
6724# and sets the high bit in the cache file unless we assign to the vars.
6725(set) 2>&1 |
6726 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6727 *ac_space=\ *)
6728 # `set' does not quote correctly, so add quotes (double-quote substitution
6729 # turns \\\\ into \\, and sed turns \\ into \).
6730 sed -n \
6731 -e "s/'/'\\\\''/g" \
6732 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6733 ;;
6734 *)
6735 # `set' quotes correctly as required by POSIX, so do not add quotes.
6736 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6737 ;;
6738 esac >> confcache
6739if cmp -s $cache_file confcache; then
6740 :
6741else
6742 if test -w $cache_file; then
6743 echo "updating cache $cache_file"
6744 cat confcache > $cache_file
6745 else
6746 echo "not updating unwritable cache $cache_file"
6747 fi
6748fi
6749rm -f confcache
6750
6751
6752
6753if test "$wxUSE_GUI" = "yes"; then
6754
6755TOOLKIT=
6756TOOLKIT_INCLUDE=
6757
6758GUIOBJS=
6759COMMONOBJS=
6760GENERICOBJS=
6761
6762GUI_TK_LIBRARY=
6763GUI_TK_LINK=
6764
6765WXGTK12=
6766
6767WXWINE=
6768
6769PROGRAM_EXT=
6770
6771if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
6772 if test "$cross_compiling" = "yes" ; then
6773 echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2
6774 else
6775 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
c7a2bf27 6776echo "configure:6777: checking for Windows headers" >&5
10f2d63a
VZ
6777
6778ac_find_includes=
6779for ac_dir in $SEARCH_INCLUDE;
6780 do
6781 if test -f "$ac_dir/windows.h"; then
6782 ac_find_includes=$ac_dir
6783 break
6784 fi
6785 done
6786
6787 if test "$ac_find_includes" != "" ; then
6788 echo "$ac_t""found $ac_find_includes" 1>&6
6789 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6790 else
6791 echo "$ac_t""no" 1>&6
6792 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6793 fi
6794 fi
6795
6796 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
6797 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
6798
6799 if test "$wxUSE_MINGW" = 1; then
6800 LDFLAGS="$LDFLAGS -mwindows"
6801 fi
6802
6803 TOOLKIT=MSW
6804
6805 GUIOBJS="\$(MSW_GUIOBJS)"
6806 GUIHEADERS="\$(MSW_HEADERS)"
6807 COMMONOBJS="\$(MSW_COMMONOBJS)"
6808 GENERICOBJS="\$(MSW_GENERICOBJS)"
6809 UNIXOBJS=
6810 GUIDIST=MSW_DIST
6811 PROGRAM_EXT=.exe
6812fi
6813
6814if test "$wxUSE_GTK" = 1; then
6815
6816 if test x$gtk_config_exec_prefix != x ; then
6817 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6818 if test x${GTK_CONFIG+set} != xset ; then
6819 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
6820 fi
6821 fi
6822 if test x$gtk_config_prefix != x ; then
6823 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
6824 if test x${GTK_CONFIG+set} != xset ; then
6825 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
6826 fi
6827 fi
6828
6829 # Extract the first word of "gtk-config", so it can be a program name with args.
6830set dummy gtk-config; ac_word=$2
6831echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
c7a2bf27 6832echo "configure:6833: checking for $ac_word" >&5
10f2d63a
VZ
6833if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6834 echo $ac_n "(cached) $ac_c" 1>&6
6835else
6836 case "$GTK_CONFIG" in
6837 /*)
6838 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
6839 ;;
6840 ?:/*)
6841 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
6842 ;;
6843 *)
6844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6845 ac_dummy="$PATH"
6846 for ac_dir in $ac_dummy; do
6847 test -z "$ac_dir" && ac_dir=.
6848 if test -f $ac_dir/$ac_word; then
6849 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
6850 break
6851 fi
6852 done
6853 IFS="$ac_save_ifs"
6854 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
6855 ;;
6856esac
6857fi
6858GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
6859if test -n "$GTK_CONFIG"; then
6860 echo "$ac_t""$GTK_CONFIG" 1>&6
6861else
6862 echo "$ac_t""no" 1>&6
6863fi
6864
6865 min_gtk_version=1.2.1
6866 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
c7a2bf27 6867echo "configure:6868: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
6868 no_gtk=""
6869 if test "$GTK_CONFIG" != "no" ; then
6870 GTK_CFLAGS=`$GTK_CONFIG --cflags`
6871 GTK_LIBS=`$GTK_CONFIG --libs`
6872 ac_save_CFLAGS="$CFLAGS"
6873 ac_save_LIBS="$LIBS"
6874 CFLAGS="$CFLAGS $GTK_CFLAGS"
6875 LIBS="$LIBS $GTK_LIBS"
6876 if test "$cross_compiling" = yes; then
6877 echo $ac_n "cross compiling; assumed OK... $ac_c"
6878else
6879 cat > conftest.$ac_ext <<EOF
c7a2bf27 6880#line 6881 "configure"
10f2d63a
VZ
6881#include "confdefs.h"
6882
6883#include <gtk/gtk.h>
f49f2b0c 6884#include <gtk/gtkfeatures.h>
10f2d63a
VZ
6885#include <stdio.h>
6886
6887int
6888main ()
6889{
6890 int major, minor, micro;
6891
6892 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
6893 printf("%s, bad version string\n", "$min_gtk_version");
6894 exit(1);
6895 }
6896
f49f2b0c
RR
6897 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
6898 (GTK_MINOR_VERSION != gtk_minor_version) ||
6899 (GTK_MICRO_VERSION != gtk_micro_version)) {
6900 printf("Headers vs. library version mismatch!\n");
6901 exit(1);
6902 }
6903
10f2d63a
VZ
6904 if (gtk_minor_version == 1) return FALSE;
6905
6906 return !((gtk_major_version > major) ||
6907 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6908 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
6909}
6910
6911EOF
c7a2bf27 6912if { (eval echo configure:6913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
6913then
6914 :
6915else
6916 echo "configure: failed program was:" >&5
6917 cat conftest.$ac_ext >&5
6918 rm -fr conftest*
6919 no_gtk=yes
6920fi
6921rm -fr conftest*
6922fi
6923
6924 CFLAGS="$ac_save_CFLAGS"
6925 LIBS="$ac_save_LIBS"
6926 else
6927 no_gtk=yes
6928 fi
6929 if test "x$no_gtk" = x ; then
6930 echo "$ac_t""yes" 1>&6
6931 WXGTK12=1
6932 else
6933 echo "$ac_t""no" 1>&6
6934 GTK_CFLAGS=""
6935 GTK_LIBS=""
6936 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.1 or above?" 1>&2; exit 1; }
6937 fi
6938
6939
6940
6941
6942 TOOLKIT_INCLUDE="$GTK_CFLAGS"
6943 GUI_TK_LIBRARY="$GTK_LIBS"
6944 TOOLKIT=GTK
6945
6946 GUIOBJS="\$(GTK_GUIOBJS)"
6947 GUIHEADERS="\$(GTK_HEADERS)"
6948 COMMONOBJS="\$(GTK_COMMONOBJS)"
6949 GENERICOBJS="\$(GTK_GENERICOBJS)"
6950 GUIDEPS="\$(GTK_GUIDEPS)"
6951 COMMONDEPS="\$(GTK_COMMONDEPS)"
6952 GENERICDEPS="\$(GTK_GENERICDEPS)"
6953 UNIXOBJS="\$(UNIX_OBJS)"
6954 GUIDIST=GTK_DIST
6955fi
6956
6957if test "$wxUSE_WINE" = 1; then
6958 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
c7a2bf27 6959echo "configure:6960: checking for WINE includes" >&5
10f2d63a
VZ
6960
6961ac_find_includes=
6962for ac_dir in $SEARCH_INCLUDE;
6963 do
6964 if test -f "$ac_dir/windows.h"; then
6965 ac_find_includes=$ac_dir
6966 break
6967 fi
6968 done
6969
6970 if test "$ac_find_includes" != "" ; then
6971 echo "$ac_t""found $ac_find_includes" 1>&6
6972 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
6973 else
6974 echo "$ac_t""no" 1>&6
6975 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
6976 fi
6977
6978 XPM_LINK=""
6979 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
c7a2bf27 6980echo "configure:6981: checking for Xpm library" >&5
10f2d63a
VZ
6981
6982ac_find_libraries=
6983for ac_dir in $SEARCH_LIB;
6984 do
6985 for ac_extension in a so sl; do
6986 if test -f "$ac_dir/libXpm.$ac_extension"; then
6987 ac_find_libraries=$ac_dir
6988 break 2
6989 fi
6990 done
6991 done
6992
6993 if test "$ac_find_libraries" != "" ; then
6994 GUI_TK_LIBRARY="-L$ac_find_libraries"
6995 XPM_LINK="-lXpm"
6996 cat >> confdefs.h <<\EOF
6997#define wxHAVE_LIB_XPM 1
6998EOF
6999
7000 echo "$ac_t""found at $ac_find_libraries" 1>&6
7001 else
7002 echo "$ac_t""no" 1>&6
7003 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7004 fi
7005
7006 MESA_LINK=""
7007 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
c7a2bf27 7008echo "configure:7009: checking for Mesa library" >&5
10f2d63a
VZ
7009
7010ac_find_libraries=
7011for ac_dir in $SEARCH_LIB;
7012 do
7013 for ac_extension in a so sl; do
7014 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
7015 ac_find_libraries=$ac_dir
7016 break 2
7017 fi
7018 done
7019 done
7020
7021 if test "$ac_find_libraries" != "" ; then
7022 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
7023 MESA_LINK="-lMesaGL"
7024 echo "$ac_t""found at $ac_find_libraries" 1>&6
7025 else
7026 { echo "configure: error: no" 1>&2; exit 1; }
7027 fi
7028
7029 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm"
7030 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
7031 WXWINE=1
7032 TOOLKIT=MSW
7033
7034 GUIHEADERS="\$(MSW_HEADERS)"
7035 GUIOBJS="\$(MSW_GUIOBJS)"
7036 COMMONOBJS="\$(MSW_COMMONOBJS)"
7037 GENERICOBJS="\$(MSW_GENERICOBJS)"
7038 GUIDEPS="\$(MSW_GUIDEPS)"
7039 COMMONDEPS="\$(MSW_COMMONDEPS)"
7040 GENERICDEPS="\$(MSW_GENERICDEPS)"
7041 UNIXOBJS="\$(UNIX_OBJS)"
7042 GUIDIST=MSW_DIST
7043fi
7044
7045if test "$wxUSE_MOTIF" = 1; then
ab9b9eab
VZ
7046 # If we find X, set shell vars x_includes and x_libraries to the
7047# paths, otherwise set no_x=yes.
7048# Uses ac_ vars as temps to allow command line to override cache and checks.
7049# --without-x overrides everything else, but does not touch the cache.
7050echo $ac_n "checking for X""... $ac_c" 1>&6
c7a2bf27 7051echo "configure:7052: checking for X" >&5
ab9b9eab
VZ
7052
7053# Check whether --with-x or --without-x was given.
7054if test "${with_x+set}" = set; then
7055 withval="$with_x"
7056 :
7057fi
ba337fe7 7058
ab9b9eab
VZ
7059# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7060if test "x$with_x" = xno; then
7061 # The user explicitly disabled X.
7062 have_x=disabled
7063else
7064 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7065 # Both variables are already set.
7066 have_x=yes
7067 else
7068if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
7069 echo $ac_n "(cached) $ac_c" 1>&6
7070else
7071 # One or both of the vars are not set, and there is no cached value.
7072ac_x_includes=NO ac_x_libraries=NO
7073rm -fr conftestdir
7074if mkdir conftestdir; then
7075 cd conftestdir
7076 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7077 cat > Imakefile <<'EOF'
7078acfindx:
7079 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7080EOF
7081 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7082 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7083 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7084 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 7085 for ac_extension in a so sl; do
ab9b9eab
VZ
7086 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7087 test -f $ac_im_libdir/libX11.$ac_extension; then
7088 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
7089 fi
7090 done
ab9b9eab
VZ
7091 # Screen out bogus values from the imake configuration. They are
7092 # bogus both because they are the default anyway, and because
7093 # using them would break gcc on systems where it needs fixed includes.
7094 case "$ac_im_incroot" in
7095 /usr/include) ;;
7096 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
7097 esac
7098 case "$ac_im_usrlibdir" in
7099 /usr/lib | /lib) ;;
7100 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
7101 esac
ba337fe7 7102 fi
ab9b9eab
VZ
7103 cd ..
7104 rm -fr conftestdir
7105fi
10f2d63a 7106
ab9b9eab
VZ
7107if test "$ac_x_includes" = NO; then
7108 # Guess where to find include files, by looking for this one X11 .h file.
7109 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
ba337fe7 7110
ab9b9eab
VZ
7111 # First, try using that file with no special directory specified.
7112cat > conftest.$ac_ext <<EOF
c7a2bf27 7113#line 7114 "configure"
ab9b9eab
VZ
7114#include "confdefs.h"
7115#include <$x_direct_test_include>
7116EOF
7117ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c7a2bf27 7118{ (eval echo configure:7119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ab9b9eab
VZ
7119ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7120if test -z "$ac_err"; then
7121 rm -rf conftest*
7122 # We can compile using X headers with no special include directory.
7123ac_x_includes=
7124else
7125 echo "$ac_err" >&5
7126 echo "configure: failed program was:" >&5
7127 cat conftest.$ac_ext >&5
7128 rm -rf conftest*
7129 # Look for the header file in a standard set of common directories.
7130# Check X11 before X11Rn because it is often a symlink to the current release.
7131 for ac_dir in \
7132 /usr/X11/include \
7133 /usr/X11R6/include \
7134 /usr/X11R5/include \
7135 /usr/X11R4/include \
7136 \
7137 /usr/include/X11 \
7138 /usr/include/X11R6 \
7139 /usr/include/X11R5 \
7140 /usr/include/X11R4 \
7141 \
7142 /usr/local/X11/include \
7143 /usr/local/X11R6/include \
7144 /usr/local/X11R5/include \
7145 /usr/local/X11R4/include \
7146 \
7147 /usr/local/include/X11 \
7148 /usr/local/include/X11R6 \
7149 /usr/local/include/X11R5 \
7150 /usr/local/include/X11R4 \
7151 \
7152 /usr/X386/include \
7153 /usr/x386/include \
7154 /usr/XFree86/include/X11 \
7155 \
7156 /usr/include \
7157 /usr/local/include \
7158 /usr/unsupported/include \
7159 /usr/athena/include \
7160 /usr/local/x11r5/include \
7161 /usr/lpp/Xamples/include \
7162 \
7163 /usr/openwin/include \
7164 /usr/openwin/share/include \
7165 ; \
10f2d63a 7166 do
ab9b9eab
VZ
7167 if test -r "$ac_dir/$x_direct_test_include"; then
7168 ac_x_includes=$ac_dir
10f2d63a
VZ
7169 break
7170 fi
7171 done
ab9b9eab
VZ
7172fi
7173rm -f conftest*
7174fi # $ac_x_includes = NO
10f2d63a 7175
ab9b9eab
VZ
7176if test "$ac_x_libraries" = NO; then
7177 # Check for the libraries.
10f2d63a 7178
ab9b9eab
VZ
7179 test -z "$x_direct_test_library" && x_direct_test_library=Xt
7180 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10f2d63a 7181
ab9b9eab
VZ
7182 # See if we find them without any special options.
7183 # Don't add to $LIBS permanently.
7184 ac_save_LIBS="$LIBS"
7185 LIBS="-l$x_direct_test_library $LIBS"
7186cat > conftest.$ac_ext <<EOF
c7a2bf27 7187#line 7188 "configure"
ab9b9eab 7188#include "confdefs.h"
10f2d63a 7189
ab9b9eab
VZ
7190int main() {
7191${x_direct_test_function}()
7192; return 0; }
7193EOF
c7a2bf27 7194if { (eval echo configure:7195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7195 rm -rf conftest*
7196 LIBS="$ac_save_LIBS"
7197# We can link X programs with no special library path.
7198ac_x_libraries=
7199else
7200 echo "configure: failed program was:" >&5
7201 cat conftest.$ac_ext >&5
7202 rm -rf conftest*
7203 LIBS="$ac_save_LIBS"
7204# First see if replacing the include by lib works.
7205# Check X11 before X11Rn because it is often a symlink to the current release.
7206for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
7207 /usr/X11/lib \
7208 /usr/X11R6/lib \
7209 /usr/X11R5/lib \
7210 /usr/X11R4/lib \
7211 \
7212 /usr/lib/X11 \
7213 /usr/lib/X11R6 \
7214 /usr/lib/X11R5 \
7215 /usr/lib/X11R4 \
7216 \
7217 /usr/local/X11/lib \
7218 /usr/local/X11R6/lib \
7219 /usr/local/X11R5/lib \
7220 /usr/local/X11R4/lib \
7221 \
7222 /usr/local/lib/X11 \
7223 /usr/local/lib/X11R6 \
7224 /usr/local/lib/X11R5 \
7225 /usr/local/lib/X11R4 \
7226 \
7227 /usr/X386/lib \
7228 /usr/x386/lib \
7229 /usr/XFree86/lib/X11 \
7230 \
7231 /usr/lib \
7232 /usr/local/lib \
7233 /usr/unsupported/lib \
7234 /usr/athena/lib \
7235 /usr/local/x11r5/lib \
7236 /usr/lpp/Xamples/lib \
7237 /lib/usr/lib/X11 \
7238 \
7239 /usr/openwin/lib \
7240 /usr/openwin/share/lib \
7241 ; \
7242do
7243 for ac_extension in a so sl; do
7244 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
7245 ac_x_libraries=$ac_dir
7246 break 2
10f2d63a 7247 fi
10f2d63a 7248 done
ab9b9eab
VZ
7249done
7250fi
7251rm -f conftest*
7252fi # $ac_x_libraries = NO
10f2d63a 7253
ab9b9eab
VZ
7254if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
7255 # Didn't find X anywhere. Cache the known absence of X.
7256 ac_cv_have_x="have_x=no"
7257else
7258 # Record where we found X for the cache.
7259 ac_cv_have_x="have_x=yes \
7260 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7261fi
7262fi
10f2d63a 7263 fi
ab9b9eab
VZ
7264 eval "$ac_cv_have_x"
7265fi # $with_x != no
10f2d63a 7266
ab9b9eab
VZ
7267if test "$have_x" != yes; then
7268 echo "$ac_t""$have_x" 1>&6
7269 no_x=yes
7270else
7271 # If each of the values was on the command line, it overrides each guess.
7272 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7273 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7274 # Update the cache value to reflect the command line values.
7275 ac_cv_have_x="have_x=yes \
7276 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7277 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
7278fi
10f2d63a 7279
ab9b9eab
VZ
7280if test "$no_x" = yes; then
7281 # Not all programs may use this symbol, but it does not hurt to define it.
7282 cat >> confdefs.h <<\EOF
7283#define X_DISPLAY_MISSING 1
7284EOF
10f2d63a 7285
ab9b9eab
VZ
7286 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7287else
7288 if test -n "$x_includes"; then
7289 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
7290 fi
7291
ab9b9eab
VZ
7292 # It would also be nice to do this for all -L options, not just this one.
7293 if test -n "$x_libraries"; then
7294 X_LIBS="$X_LIBS -L$x_libraries"
7295 # For Solaris; some versions of Sun CC require a space after -R and
7296 # others require no space. Words are not sufficient . . . .
7297 case "`(uname -sr) 2>/dev/null`" in
7298 "SunOS 5"*)
7299 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
c7a2bf27 7300echo "configure:7301: checking whether -R must be followed by a space" >&5
ab9b9eab
VZ
7301 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
7302 cat > conftest.$ac_ext <<EOF
c7a2bf27 7303#line 7304 "configure"
ab9b9eab 7304#include "confdefs.h"
10f2d63a 7305
ab9b9eab 7306int main() {
788deba1 7307
ab9b9eab
VZ
7308; return 0; }
7309EOF
c7a2bf27 7310if { (eval echo configure:7311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7311 rm -rf conftest*
7312 ac_R_nospace=yes
7313else
7314 echo "configure: failed program was:" >&5
7315 cat conftest.$ac_ext >&5
7316 rm -rf conftest*
7317 ac_R_nospace=no
7318fi
7319rm -f conftest*
7320 if test $ac_R_nospace = yes; then
7321 echo "$ac_t""no" 1>&6
7322 X_LIBS="$X_LIBS -R$x_libraries"
7323 else
7324 LIBS="$ac_xsave_LIBS -R $x_libraries"
7325 cat > conftest.$ac_ext <<EOF
c7a2bf27 7326#line 7327 "configure"
ab9b9eab 7327#include "confdefs.h"
788deba1 7328
ab9b9eab
VZ
7329int main() {
7330
7331; return 0; }
7332EOF
c7a2bf27 7333if { (eval echo configure:7334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7334 rm -rf conftest*
7335 ac_R_space=yes
7336else
7337 echo "configure: failed program was:" >&5
7338 cat conftest.$ac_ext >&5
7339 rm -rf conftest*
7340 ac_R_space=no
7341fi
7342rm -f conftest*
7343 if test $ac_R_space = yes; then
7344 echo "$ac_t""yes" 1>&6
7345 X_LIBS="$X_LIBS -R $x_libraries"
7346 else
7347 echo "$ac_t""neither works" 1>&6
7348 fi
7349 fi
7350 LIBS="$ac_xsave_LIBS"
7351 esac
7352 fi
7353
7354 # Check for system-dependent libraries X programs must link with.
7355 # Do this before checking for the system-independent R6 libraries
7356 # (-lICE), since we may need -lsocket or whatever for X linking.
7357
7358 if test "$ISC" = yes; then
7359 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7360 else
7361 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
7362 # libraries were built with DECnet support. And karl@cs.umb.edu says
7363 # the Alpha needs dnet_stub (dnet does not exist).
7364 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
c7a2bf27 7365echo "configure:7366: checking for dnet_ntoa in -ldnet" >&5
ab9b9eab
VZ
7366ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7367if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7368 echo $ac_n "(cached) $ac_c" 1>&6
7369else
7370 ac_save_LIBS="$LIBS"
7371LIBS="-ldnet $LIBS"
7372cat > conftest.$ac_ext <<EOF
c7a2bf27 7373#line 7374 "configure"
ab9b9eab
VZ
7374#include "confdefs.h"
7375/* Override any gcc2 internal prototype to avoid an error. */
7376/* We use char because int might match the return type of a gcc2
7377 builtin and then its argument prototype would still apply. */
7378char dnet_ntoa();
7379
7380int main() {
7381dnet_ntoa()
7382; return 0; }
7383EOF
c7a2bf27 7384if { (eval echo configure:7385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7385 rm -rf conftest*
7386 eval "ac_cv_lib_$ac_lib_var=yes"
7387else
7388 echo "configure: failed program was:" >&5
7389 cat conftest.$ac_ext >&5
7390 rm -rf conftest*
7391 eval "ac_cv_lib_$ac_lib_var=no"
7392fi
7393rm -f conftest*
7394LIBS="$ac_save_LIBS"
7395
7396fi
7397if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7398 echo "$ac_t""yes" 1>&6
7399 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7400else
7401 echo "$ac_t""no" 1>&6
7402fi
7403
7404 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7405 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
c7a2bf27 7406echo "configure:7407: checking for dnet_ntoa in -ldnet_stub" >&5
ab9b9eab
VZ
7407ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
7408if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7409 echo $ac_n "(cached) $ac_c" 1>&6
7410else
7411 ac_save_LIBS="$LIBS"
7412LIBS="-ldnet_stub $LIBS"
7413cat > conftest.$ac_ext <<EOF
c7a2bf27 7414#line 7415 "configure"
ab9b9eab
VZ
7415#include "confdefs.h"
7416/* Override any gcc2 internal prototype to avoid an error. */
7417/* We use char because int might match the return type of a gcc2
7418 builtin and then its argument prototype would still apply. */
7419char dnet_ntoa();
7420
7421int main() {
7422dnet_ntoa()
7423; return 0; }
7424EOF
c7a2bf27 7425if { (eval echo configure:7426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7426 rm -rf conftest*
7427 eval "ac_cv_lib_$ac_lib_var=yes"
7428else
7429 echo "configure: failed program was:" >&5
7430 cat conftest.$ac_ext >&5
7431 rm -rf conftest*
7432 eval "ac_cv_lib_$ac_lib_var=no"
7433fi
7434rm -f conftest*
7435LIBS="$ac_save_LIBS"
7436
7437fi
7438if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7439 echo "$ac_t""yes" 1>&6
7440 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7441else
7442 echo "$ac_t""no" 1>&6
7443fi
7444
7445 fi
7446
7447 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7448 # to get the SysV transport functions.
7449 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7450 # needs -lnsl.
7451 # The nsl library prevents programs from opening the X display
7452 # on Irix 5.2, according to dickey@clark.net.
7453 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
c7a2bf27 7454echo "configure:7455: checking for gethostbyname" >&5
ab9b9eab
VZ
7455if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7456 echo $ac_n "(cached) $ac_c" 1>&6
7457else
7458 cat > conftest.$ac_ext <<EOF
c7a2bf27 7459#line 7460 "configure"
ab9b9eab
VZ
7460#include "confdefs.h"
7461/* System header to define __stub macros and hopefully few prototypes,
7462 which can conflict with char gethostbyname(); below. */
7463#include <assert.h>
7464/* Override any gcc2 internal prototype to avoid an error. */
7465/* We use char because int might match the return type of a gcc2
7466 builtin and then its argument prototype would still apply. */
7467char gethostbyname();
69ffe1d2 7468char (*f)();
ab9b9eab
VZ
7469
7470int main() {
7471
7472/* The GNU C library defines this for functions which it implements
7473 to always fail with ENOSYS. Some functions are actually named
7474 something starting with __ and the normal name is an alias. */
7475#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7476choke me
7477#else
69ffe1d2 7478f = gethostbyname;
ab9b9eab
VZ
7479#endif
7480
7481; return 0; }
7482EOF
c7a2bf27 7483if { (eval echo configure:7484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7484 rm -rf conftest*
7485 eval "ac_cv_func_gethostbyname=yes"
7486else
7487 echo "configure: failed program was:" >&5
7488 cat conftest.$ac_ext >&5
7489 rm -rf conftest*
7490 eval "ac_cv_func_gethostbyname=no"
7491fi
7492rm -f conftest*
7493fi
7494
7495if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7496 echo "$ac_t""yes" 1>&6
7497 :
7498else
7499 echo "$ac_t""no" 1>&6
7500fi
7501
7502 if test $ac_cv_func_gethostbyname = no; then
7503 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
c7a2bf27 7504echo "configure:7505: checking for gethostbyname in -lnsl" >&5
ab9b9eab
VZ
7505ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7506if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7507 echo $ac_n "(cached) $ac_c" 1>&6
7508else
7509 ac_save_LIBS="$LIBS"
7510LIBS="-lnsl $LIBS"
7511cat > conftest.$ac_ext <<EOF
c7a2bf27 7512#line 7513 "configure"
ab9b9eab
VZ
7513#include "confdefs.h"
7514/* Override any gcc2 internal prototype to avoid an error. */
7515/* We use char because int might match the return type of a gcc2
7516 builtin and then its argument prototype would still apply. */
7517char gethostbyname();
7518
7519int main() {
7520gethostbyname()
7521; return 0; }
7522EOF
c7a2bf27 7523if { (eval echo configure:7524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7524 rm -rf conftest*
7525 eval "ac_cv_lib_$ac_lib_var=yes"
7526else
7527 echo "configure: failed program was:" >&5
7528 cat conftest.$ac_ext >&5
7529 rm -rf conftest*
7530 eval "ac_cv_lib_$ac_lib_var=no"
7531fi
7532rm -f conftest*
7533LIBS="$ac_save_LIBS"
7534
7535fi
7536if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7537 echo "$ac_t""yes" 1>&6
7538 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7539else
7540 echo "$ac_t""no" 1>&6
7541fi
7542
7543 fi
7544
7545 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7546 # socket/setsockopt and other routines are undefined under SCO ODT
7547 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7548 # on later versions), says simon@lia.di.epfl.ch: it contains
7549 # gethostby* variants that don't use the nameserver (or something).
7550 # -lsocket must be given before -lnsl if both are needed.
7551 # We assume that if connect needs -lnsl, so does gethostbyname.
7552 echo $ac_n "checking for connect""... $ac_c" 1>&6
c7a2bf27 7553echo "configure:7554: checking for connect" >&5
ab9b9eab
VZ
7554if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7555 echo $ac_n "(cached) $ac_c" 1>&6
7556else
7557 cat > conftest.$ac_ext <<EOF
c7a2bf27 7558#line 7559 "configure"
ab9b9eab
VZ
7559#include "confdefs.h"
7560/* System header to define __stub macros and hopefully few prototypes,
7561 which can conflict with char connect(); below. */
7562#include <assert.h>
7563/* Override any gcc2 internal prototype to avoid an error. */
7564/* We use char because int might match the return type of a gcc2
7565 builtin and then its argument prototype would still apply. */
7566char connect();
69ffe1d2 7567char (*f)();
ab9b9eab
VZ
7568
7569int main() {
7570
7571/* The GNU C library defines this for functions which it implements
7572 to always fail with ENOSYS. Some functions are actually named
7573 something starting with __ and the normal name is an alias. */
7574#if defined (__stub_connect) || defined (__stub___connect)
7575choke me
7576#else
69ffe1d2 7577f = connect;
ab9b9eab
VZ
7578#endif
7579
7580; return 0; }
7581EOF
c7a2bf27 7582if { (eval echo configure:7583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7583 rm -rf conftest*
7584 eval "ac_cv_func_connect=yes"
7585else
7586 echo "configure: failed program was:" >&5
7587 cat conftest.$ac_ext >&5
7588 rm -rf conftest*
7589 eval "ac_cv_func_connect=no"
7590fi
7591rm -f conftest*
7592fi
7593
7594if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7595 echo "$ac_t""yes" 1>&6
7596 :
7597else
7598 echo "$ac_t""no" 1>&6
7599fi
7600
7601 if test $ac_cv_func_connect = no; then
7602 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
c7a2bf27 7603echo "configure:7604: checking for connect in -lsocket" >&5
ab9b9eab
VZ
7604ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7605if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7606 echo $ac_n "(cached) $ac_c" 1>&6
7607else
7608 ac_save_LIBS="$LIBS"
7609LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7610cat > conftest.$ac_ext <<EOF
c7a2bf27 7611#line 7612 "configure"
ab9b9eab
VZ
7612#include "confdefs.h"
7613/* Override any gcc2 internal prototype to avoid an error. */
7614/* We use char because int might match the return type of a gcc2
7615 builtin and then its argument prototype would still apply. */
7616char connect();
7617
7618int main() {
7619connect()
7620; return 0; }
7621EOF
c7a2bf27 7622if { (eval echo configure:7623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7623 rm -rf conftest*
7624 eval "ac_cv_lib_$ac_lib_var=yes"
7625else
7626 echo "configure: failed program was:" >&5
7627 cat conftest.$ac_ext >&5
7628 rm -rf conftest*
7629 eval "ac_cv_lib_$ac_lib_var=no"
7630fi
7631rm -f conftest*
7632LIBS="$ac_save_LIBS"
7633
7634fi
7635if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7636 echo "$ac_t""yes" 1>&6
7637 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7638else
7639 echo "$ac_t""no" 1>&6
7640fi
7641
7642 fi
7643
7644 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7645 echo $ac_n "checking for remove""... $ac_c" 1>&6
c7a2bf27 7646echo "configure:7647: checking for remove" >&5
ab9b9eab
VZ
7647if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7648 echo $ac_n "(cached) $ac_c" 1>&6
7649else
7650 cat > conftest.$ac_ext <<EOF
c7a2bf27 7651#line 7652 "configure"
ab9b9eab
VZ
7652#include "confdefs.h"
7653/* System header to define __stub macros and hopefully few prototypes,
7654 which can conflict with char remove(); below. */
7655#include <assert.h>
7656/* Override any gcc2 internal prototype to avoid an error. */
7657/* We use char because int might match the return type of a gcc2
7658 builtin and then its argument prototype would still apply. */
7659char remove();
69ffe1d2 7660char (*f)();
ab9b9eab
VZ
7661
7662int main() {
7663
7664/* The GNU C library defines this for functions which it implements
7665 to always fail with ENOSYS. Some functions are actually named
7666 something starting with __ and the normal name is an alias. */
7667#if defined (__stub_remove) || defined (__stub___remove)
7668choke me
7669#else
69ffe1d2 7670f = remove;
ab9b9eab
VZ
7671#endif
7672
7673; return 0; }
7674EOF
c7a2bf27 7675if { (eval echo configure:7676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7676 rm -rf conftest*
7677 eval "ac_cv_func_remove=yes"
7678else
7679 echo "configure: failed program was:" >&5
7680 cat conftest.$ac_ext >&5
7681 rm -rf conftest*
7682 eval "ac_cv_func_remove=no"
7683fi
7684rm -f conftest*
7685fi
7686
7687if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7688 echo "$ac_t""yes" 1>&6
7689 :
7690else
7691 echo "$ac_t""no" 1>&6
7692fi
7693
7694 if test $ac_cv_func_remove = no; then
7695 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
c7a2bf27 7696echo "configure:7697: checking for remove in -lposix" >&5
ab9b9eab
VZ
7697ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7698if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7699 echo $ac_n "(cached) $ac_c" 1>&6
7700else
7701 ac_save_LIBS="$LIBS"
7702LIBS="-lposix $LIBS"
7703cat > conftest.$ac_ext <<EOF
c7a2bf27 7704#line 7705 "configure"
ab9b9eab
VZ
7705#include "confdefs.h"
7706/* Override any gcc2 internal prototype to avoid an error. */
7707/* We use char because int might match the return type of a gcc2
7708 builtin and then its argument prototype would still apply. */
7709char remove();
7710
7711int main() {
7712remove()
7713; return 0; }
7714EOF
c7a2bf27 7715if { (eval echo configure:7716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7716 rm -rf conftest*
7717 eval "ac_cv_lib_$ac_lib_var=yes"
7718else
7719 echo "configure: failed program was:" >&5
7720 cat conftest.$ac_ext >&5
7721 rm -rf conftest*
7722 eval "ac_cv_lib_$ac_lib_var=no"
7723fi
7724rm -f conftest*
7725LIBS="$ac_save_LIBS"
7726
7727fi
7728if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7729 echo "$ac_t""yes" 1>&6
7730 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7731else
7732 echo "$ac_t""no" 1>&6
7733fi
7734
7735 fi
7736
7737 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7738 echo $ac_n "checking for shmat""... $ac_c" 1>&6
c7a2bf27 7739echo "configure:7740: checking for shmat" >&5
ab9b9eab
VZ
7740if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7741 echo $ac_n "(cached) $ac_c" 1>&6
7742else
7743 cat > conftest.$ac_ext <<EOF
c7a2bf27 7744#line 7745 "configure"
ab9b9eab
VZ
7745#include "confdefs.h"
7746/* System header to define __stub macros and hopefully few prototypes,
7747 which can conflict with char shmat(); below. */
7748#include <assert.h>
7749/* Override any gcc2 internal prototype to avoid an error. */
7750/* We use char because int might match the return type of a gcc2
7751 builtin and then its argument prototype would still apply. */
7752char shmat();
69ffe1d2 7753char (*f)();
ab9b9eab
VZ
7754
7755int main() {
7756
7757/* The GNU C library defines this for functions which it implements
7758 to always fail with ENOSYS. Some functions are actually named
7759 something starting with __ and the normal name is an alias. */
7760#if defined (__stub_shmat) || defined (__stub___shmat)
7761choke me
7762#else
69ffe1d2 7763f = shmat;
ab9b9eab
VZ
7764#endif
7765
7766; return 0; }
7767EOF
c7a2bf27 7768if { (eval echo configure:7769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7769 rm -rf conftest*
7770 eval "ac_cv_func_shmat=yes"
7771else
7772 echo "configure: failed program was:" >&5
7773 cat conftest.$ac_ext >&5
7774 rm -rf conftest*
7775 eval "ac_cv_func_shmat=no"
7776fi
7777rm -f conftest*
7778fi
7779
7780if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7781 echo "$ac_t""yes" 1>&6
7782 :
7783else
7784 echo "$ac_t""no" 1>&6
7785fi
7786
7787 if test $ac_cv_func_shmat = no; then
7788 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
c7a2bf27 7789echo "configure:7790: checking for shmat in -lipc" >&5
ab9b9eab
VZ
7790ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7791if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7792 echo $ac_n "(cached) $ac_c" 1>&6
7793else
7794 ac_save_LIBS="$LIBS"
7795LIBS="-lipc $LIBS"
7796cat > conftest.$ac_ext <<EOF
c7a2bf27 7797#line 7798 "configure"
ab9b9eab
VZ
7798#include "confdefs.h"
7799/* Override any gcc2 internal prototype to avoid an error. */
7800/* We use char because int might match the return type of a gcc2
7801 builtin and then its argument prototype would still apply. */
7802char shmat();
7803
7804int main() {
7805shmat()
7806; return 0; }
7807EOF
c7a2bf27 7808if { (eval echo configure:7809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7809 rm -rf conftest*
7810 eval "ac_cv_lib_$ac_lib_var=yes"
7811else
7812 echo "configure: failed program was:" >&5
7813 cat conftest.$ac_ext >&5
7814 rm -rf conftest*
7815 eval "ac_cv_lib_$ac_lib_var=no"
7816fi
7817rm -f conftest*
7818LIBS="$ac_save_LIBS"
7819
7820fi
7821if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7822 echo "$ac_t""yes" 1>&6
7823 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7824else
7825 echo "$ac_t""no" 1>&6
7826fi
7827
7828 fi
7829 fi
7830
7831 # Check for libraries that X11R6 Xt/Xaw programs need.
7832 ac_save_LDFLAGS="$LDFLAGS"
7833 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7834 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7835 # check for ICE first), but we must link in the order -lSM -lICE or
7836 # we get undefined symbols. So assume we have SM if we have ICE.
7837 # These have to be linked with before -lX11, unlike the other
7838 # libraries we check for below, so use a different variable.
7839 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7840 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
c7a2bf27 7841echo "configure:7842: checking for IceConnectionNumber in -lICE" >&5
ab9b9eab
VZ
7842ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7843if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7844 echo $ac_n "(cached) $ac_c" 1>&6
7845else
7846 ac_save_LIBS="$LIBS"
7847LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7848cat > conftest.$ac_ext <<EOF
c7a2bf27 7849#line 7850 "configure"
ab9b9eab
VZ
7850#include "confdefs.h"
7851/* Override any gcc2 internal prototype to avoid an error. */
7852/* We use char because int might match the return type of a gcc2
7853 builtin and then its argument prototype would still apply. */
7854char IceConnectionNumber();
7855
7856int main() {
7857IceConnectionNumber()
7858; return 0; }
7859EOF
c7a2bf27 7860if { (eval echo configure:7861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ab9b9eab
VZ
7861 rm -rf conftest*
7862 eval "ac_cv_lib_$ac_lib_var=yes"
7863else
7864 echo "configure: failed program was:" >&5
7865 cat conftest.$ac_ext >&5
7866 rm -rf conftest*
7867 eval "ac_cv_lib_$ac_lib_var=no"
7868fi
7869rm -f conftest*
7870LIBS="$ac_save_LIBS"
7871
7872fi
7873if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7874 echo "$ac_t""yes" 1>&6
7875 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7876else
7877 echo "$ac_t""no" 1>&6
7878fi
7879
7880 LDFLAGS="$ac_save_LDFLAGS"
7881
7882fi
7883
7884
7885 if test "$no_x" = "yes"; then
7886 { echo "configure: error: X11 not found" 1>&2; exit 1; }
7887 fi
7888
7889 GUI_TK_LIBRARY="$X_LIBS"
7890 TOOLKIT_INCLUDE="$X_CFLAGS"
7891
7892
7893 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
c7a2bf27 7894echo "configure:7895: checking for Motif/Lesstif headers" >&5
ab9b9eab
VZ
7895
7896ac_find_includes=
7897for ac_dir in $SEARCH_INCLUDE;
7898 do
7899 if test -f "$ac_dir/Xm/Xm.h"; then
7900 ac_find_includes=$ac_dir
7901 break
7902 fi
7903 done
7904
7905 if test "$ac_find_includes" != "" ; then
7906 echo "$ac_t""found $ac_find_includes" 1>&6
7907 else
7908 echo "$ac_t""no" 1>&6
7909 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
7910 fi
7911
7912 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
c7a2bf27 7913echo "configure:7914: checking for Motif/Lesstif library" >&5
ab9b9eab
VZ
7914
7915ac_find_libraries=
7916for ac_dir in $SEARCH_LIB;
7917 do
7918 for ac_extension in a so sl; do
7919 if test -f "$ac_dir/libXm.$ac_extension"; then
7920 ac_find_libraries=$ac_dir
7921 break 2
7922 fi
7923 done
7924 done
7925
7926 if test "$ac_find_libraries" != "" ; then
7927
7928 ac_path_to_include=$ac_find_includes
7929 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
7930 result=$?
7931 if test $result = 0; then
7932 ac_path_to_include=""
7933 else
7934 ac_path_to_include="-I$ac_find_includes"
7935 fi
7936
7937
7938 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7939 result=$?
7940 if test $result = 0; then
7941 ac_path_to_link=""
7942 else
7943 ac_path_to_link="-L$ac_find_libraries"
7944 fi
7945
7946
7947 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
7948 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
7949 echo "$ac_t""found at $ac_find_libraries" 1>&6
7950 else
7951 echo "$ac_t""no" 1>&6
7952 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
7953 fi
7954
7955 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
c7a2bf27 7956echo "configure:7957: checking for Xt library" >&5
ab9b9eab
VZ
7957
7958ac_find_libraries=
7959for ac_dir in $SEARCH_LIB;
7960 do
7961 for ac_extension in a so sl; do
7962 if test -f "$ac_dir/libXt.$ac_extension"; then
7963 ac_find_libraries=$ac_dir
7964 break 2
7965 fi
7966 done
7967 done
7968
7969 if test "$ac_find_libraries" != "" ; then
7970
7971 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
7972 result=$?
7973 if test $result = 0; then
7974 ac_path_to_link=""
7975 else
7976 ac_path_to_link="-L$ac_find_libraries"
7977 fi
7978
7979 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
7980 echo "$ac_t""found at $ac_find_libraries" 1>&6
7981 else
7982 echo "$ac_t""no" 1>&6
7983 { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; }
7984 fi
7985
7986 XPM_LINK=""
7987 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
c7a2bf27 7988echo "configure:7989: checking for Xpm library" >&5
ab9b9eab
VZ
7989
7990ac_find_libraries=
7991for ac_dir in $SEARCH_LIB;
7992 do
7993 for ac_extension in a so sl; do
7994 if test -f "$ac_dir/libXpm.$ac_extension"; then
7995 ac_find_libraries=$ac_dir
7996 break 2
7997 fi
7998 done
7999 done
8000
8001 if test "$ac_find_libraries" != "" ; then
8002
8003 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
8004 result=$?
8005 if test $result = 0; then
8006 ac_path_to_link=""
8007 else
8008 ac_path_to_link="-L$ac_find_libraries"
8009 fi
8010
8011 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
8012 XPM_LINK="-lXpm "
8013 cat >> confdefs.h <<\EOF
8014#define wxHAVE_LIB_XPM 1
8015EOF
8016
8017 echo "$ac_t""found at $ac_find_libraries" 1>&6
8018 else
8019 echo "$ac_t""no" 1>&6
8020 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
8021 fi
8022
8023 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm"
8024 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
8025 TOOLKIT=MOTIF
8026
8027 GUIHEADERS="\$(MOTIF_HEADERS)"
8028 GUIOBJS="\$(MOTIF_GUIOBJS)"
8029 COMMONOBJS="\$(MOTIF_COMMONOBJS)"
788deba1
VZ
8030 GENERICOBJS="\$(MOTIF_GENERICOBJS)"
8031 GUIDEPS="\$(MOTIF_GUIDEPS)"
8032 COMMONDEPS="\$(MOTIF_COMMONDEPS)"
10f2d63a
VZ
8033 GENERICDEPS="\$(MOTIF_GENERICDEPS)"
8034 UNIXOBJS="\$(UNIX_OBJS)"
8035 GUIDIST=MOTIF_DIST
8036fi
8037
8038TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"`
8039
8040TOOLKIT_DEF="-D__WX${TOOLKIT}__"
8041
8042WX_LIBRARY="wx_${TOOLKIT_DIR}"
8043
8044 ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(JPEGOBJS) \$(PNGOBJS) \$(ZLIBOBJS) \$(IODBCOBJS)"
8045 ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)"
8046 ALL_HEADERS="\$(GUIHEADERS) \$(HTML_HEADERS) \$(UNIX_HEADERS) \$(PROTOCOL_HEADERS) \$(GENERIC_HEADERS) \$(WX_HEADERS)"
8047else
8048
8049 ALL_OBJECTS="\$(BASE_OBJS)"
8050 ALL_DEPFILES="\${BASE_DEPS}"
8051 ALL_HEADERS="\${BASE_HEADERS}"
8052
8053 WX_LIBRARY="wxbase"
8054fi
8055
8056WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
8057
8058WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
8059
8060WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
8061
8062WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
8063WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
8064WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
8065
8066SHARED_LD=
8067PIC_FLAG=
8068WX_ALL=
8069WX_ALL_INSTALLED=
8070
8071if test "$wxUSE_SHARED" = "yes"; then
8072 case "${host}" in
8073 *-hp-hpux* )
8074 if test "$GCC" = yes ; then
69ffe1d2 8075 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
8076 PIC_FLAG="-fPIC"
8077 else
8078 SHARED_LD="${CXX} -b -o"
8079 PIC_FLAG="+Z"
8080 fi
8081 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
8082 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8083 ;;
8084 *-*-linux* )
8085 SHARED_LD="${CC} -shared -o"
8086 PIC_FLAG="-fPIC"
8087 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8088 WX_ALL="CREATE_LINKS"
8089 ;;
8090 *-*-irix5* | *-*-irix6* )
8091 if test "$GCC" = yes ; then
8092 SHARED_LD="${CC} -shared -o"
8093 PIC_FLAG="-fPIC"
8094 else
8095 SHARED_LD="${CXX} -shared -o"
8096 fi
8097 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8098 WX_ALL="CREATE_LINKS"
8099 ;;
8100 *-*-solaris2* )
8101 if test "$GCC" = yes ; then
8102 SHARED_LD="${CC} -shared -o"
8103 PIC_FLAG="-fPIC"
8104 else
8105 SHARED_LD="${CXX} -G -o"
8106 PIC_FLAG="-KPIC"
8107 fi
8108 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8109 WX_ALL="CREATE_LINKS"
8110 ;;
8111 *-*-sunos4* )
8112 SHARED_LD="${CC} -shared -o"
8113 PIC_FLAG="-fPIC"
8114 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8115 WX_ALL="CREATE_LINKS"
8116 ;;
8117 *-*-freebsd* | *-*-netbsd*)
8118 SHARED_LD="${CC} -shared -o"
8119 PIC_FLAG="-fPIC"
8120 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8121 WX_ALL="CREATE_LINKS"
8122 ;;
8123 *-*-osf* )
8124 SHARED_LD="${CXX} -shared -o"
8125 PIC_FLAG="-fPIC"
8126 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8127 WX_ALL="CREATE_LINKS"
8128 ;;
8129 *-*-dgux5* )
8130 SHARED_LD="${CXX} -shared -o"
8131 PIC_FLAG="-fPIC"
8132 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8133 WX_ALL="CREATE_LINKS"
8134 ;;
8135 *-*-sysv5* )
8136 SHARED_LD="${CC} -shared -o"
8137 PIC_FLAG="-fPIC"
8138 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
8139 WX_ALL="CREATE_LINKS"
8140 ;;
8141 *-*-aix* )
8142 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
8143 WX_ALL=${WX_LIBRARY_NAME_SHARED}
8144 ;;
8145 *-*-cygwin32* )
8146 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8147 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8148 ;;
8149 *-*-mingw32* )
8150 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8151 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8152 ;;
8153 *-pc-os2_emx )
8154 ;;
8155 *)
8156 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
8157 esac
8158
8159 if test "x$WX_TARGET_LIBRARY" = "x"; then
8160 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
8161 fi
8162else
8163 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
8164 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
8165fi
8166
8167
8168for ac_hdr in strings.h
8169do
8170ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8171echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c7a2bf27 8172echo "configure:8173: checking for $ac_hdr" >&5
10f2d63a
VZ
8173if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8174 echo $ac_n "(cached) $ac_c" 1>&6
8175else
8176 cat > conftest.$ac_ext <<EOF
c7a2bf27 8177#line 8178 "configure"
10f2d63a
VZ
8178#include "confdefs.h"
8179#include <$ac_hdr>
8180EOF
8181ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c7a2bf27 8182{ (eval echo configure:8183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8183ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8184if test -z "$ac_err"; then
8185 rm -rf conftest*
8186 eval "ac_cv_header_$ac_safe=yes"
8187else
8188 echo "$ac_err" >&5
8189 echo "configure: failed program was:" >&5
8190 cat conftest.$ac_ext >&5
8191 rm -rf conftest*
8192 eval "ac_cv_header_$ac_safe=no"
8193fi
8194rm -f conftest*
8195fi
8196if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8197 echo "$ac_t""yes" 1>&6
8198 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8199 cat >> confdefs.h <<EOF
8200#define $ac_tr_hdr 1
8201EOF
8202
8203else
8204 echo "$ac_t""no" 1>&6
8205fi
8206done
8207
8208for ac_hdr in unistd.h
8209do
8210ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8211echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c7a2bf27 8212echo "configure:8213: checking for $ac_hdr" >&5
10f2d63a
VZ
8213if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8214 echo $ac_n "(cached) $ac_c" 1>&6
8215else
8216 cat > conftest.$ac_ext <<EOF
c7a2bf27 8217#line 8218 "configure"
10f2d63a
VZ
8218#include "confdefs.h"
8219#include <$ac_hdr>
8220EOF
8221ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c7a2bf27 8222{ (eval echo configure:8223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8223ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8224if test -z "$ac_err"; then
8225 rm -rf conftest*
8226 eval "ac_cv_header_$ac_safe=yes"
8227else
8228 echo "$ac_err" >&5
8229 echo "configure: failed program was:" >&5
8230 cat conftest.$ac_ext >&5
8231 rm -rf conftest*
8232 eval "ac_cv_header_$ac_safe=no"
8233fi
8234rm -f conftest*
8235fi
8236if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8237 echo "$ac_t""yes" 1>&6
8238 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8239 cat >> confdefs.h <<EOF
8240#define $ac_tr_hdr 1
8241EOF
8242
8243else
8244 echo "$ac_t""no" 1>&6
8245fi
8246done
8247
8248for ac_hdr in wchar.h
8249do
8250ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8251echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c7a2bf27 8252echo "configure:8253: checking for $ac_hdr" >&5
10f2d63a
VZ
8253if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8254 echo $ac_n "(cached) $ac_c" 1>&6
8255else
8256 cat > conftest.$ac_ext <<EOF
c7a2bf27 8257#line 8258 "configure"
10f2d63a
VZ
8258#include "confdefs.h"
8259#include <$ac_hdr>
8260EOF
8261ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c7a2bf27 8262{ (eval echo configure:8263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8263ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8264if test -z "$ac_err"; then
8265 rm -rf conftest*
8266 eval "ac_cv_header_$ac_safe=yes"
8267else
8268 echo "$ac_err" >&5
8269 echo "configure: failed program was:" >&5
8270 cat conftest.$ac_ext >&5
8271 rm -rf conftest*
8272 eval "ac_cv_header_$ac_safe=no"
8273fi
8274rm -f conftest*
8275fi
8276if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8277 echo "$ac_t""yes" 1>&6
8278 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8279 cat >> confdefs.h <<EOF
8280#define $ac_tr_hdr 1
8281EOF
8282
8283else
8284 echo "$ac_t""no" 1>&6
8285fi
8286done
8287
8288for ac_hdr in wcstr.h
8289do
8290ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8291echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c7a2bf27 8292echo "configure:8293: checking for $ac_hdr" >&5
10f2d63a
VZ
8293if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8294 echo $ac_n "(cached) $ac_c" 1>&6
8295else
8296 cat > conftest.$ac_ext <<EOF
c7a2bf27 8297#line 8298 "configure"
10f2d63a
VZ
8298#include "confdefs.h"
8299#include <$ac_hdr>
8300EOF
8301ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c7a2bf27 8302{ (eval echo configure:8303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8303ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8304if test -z "$ac_err"; then
8305 rm -rf conftest*
8306 eval "ac_cv_header_$ac_safe=yes"
8307else
8308 echo "$ac_err" >&5
8309 echo "configure: failed program was:" >&5
8310 cat conftest.$ac_ext >&5
8311 rm -rf conftest*
8312 eval "ac_cv_header_$ac_safe=no"
8313fi
8314rm -f conftest*
8315fi
8316if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8317 echo "$ac_t""yes" 1>&6
8318 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8319 cat >> confdefs.h <<EOF
8320#define $ac_tr_hdr 1
8321EOF
8322
8323else
8324 echo "$ac_t""no" 1>&6
8325fi
8326done
8327
8328for ac_hdr in fnmatch.h
8329do
8330ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8331echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c7a2bf27 8332echo "configure:8333: checking for $ac_hdr" >&5
10f2d63a
VZ
8333if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8334 echo $ac_n "(cached) $ac_c" 1>&6
8335else
8336 cat > conftest.$ac_ext <<EOF
c7a2bf27 8337#line 8338 "configure"
10f2d63a
VZ
8338#include "confdefs.h"
8339#include <$ac_hdr>
8340EOF
8341ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c7a2bf27 8342{ (eval echo configure:8343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8343ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8344if test -z "$ac_err"; then
8345 rm -rf conftest*
8346 eval "ac_cv_header_$ac_safe=yes"
8347else
8348 echo "$ac_err" >&5
8349 echo "configure: failed program was:" >&5
8350 cat conftest.$ac_ext >&5
8351 rm -rf conftest*
8352 eval "ac_cv_header_$ac_safe=no"
8353fi
8354rm -f conftest*
8355fi
8356if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8357 echo "$ac_t""yes" 1>&6
8358 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8359 cat >> confdefs.h <<EOF
8360#define $ac_tr_hdr 1
8361EOF
8362
8363else
8364 echo "$ac_t""no" 1>&6
8365fi
8366done
8367
8368
8369if test "$wxUSE_GUI" = "yes"; then
8370 for ac_hdr in X11/XKBlib.h
8371do
8372ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8373echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c7a2bf27 8374echo "configure:8375: checking for $ac_hdr" >&5
10f2d63a
VZ
8375if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8376 echo $ac_n "(cached) $ac_c" 1>&6
8377else
8378 cat > conftest.$ac_ext <<EOF
c7a2bf27 8379#line 8380 "configure"
10f2d63a
VZ
8380#include "confdefs.h"
8381#include <$ac_hdr>
8382EOF
8383ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c7a2bf27 8384{ (eval echo configure:8385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8385ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8386if test -z "$ac_err"; then
8387 rm -rf conftest*
8388 eval "ac_cv_header_$ac_safe=yes"
8389else
8390 echo "$ac_err" >&5
8391 echo "configure: failed program was:" >&5
8392 cat conftest.$ac_ext >&5
8393 rm -rf conftest*
8394 eval "ac_cv_header_$ac_safe=no"
8395fi
8396rm -f conftest*
8397fi
8398if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8399 echo "$ac_t""yes" 1>&6
8400 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8401 cat >> confdefs.h <<EOF
8402#define $ac_tr_hdr 1
8403EOF
8404
8405else
8406 echo "$ac_t""no" 1>&6
8407fi
8408done
8409
8410fi
8411
8412
8413echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
c7a2bf27 8414echo "configure:8415: checking for ANSI C header files" >&5
10f2d63a
VZ
8415if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8416 echo $ac_n "(cached) $ac_c" 1>&6
8417else
8418 cat > conftest.$ac_ext <<EOF
c7a2bf27 8419#line 8420 "configure"
10f2d63a
VZ
8420#include "confdefs.h"
8421#include <stdlib.h>
8422#include <stdarg.h>
8423#include <string.h>
8424#include <float.h>
8425EOF
8426ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c7a2bf27 8427{ (eval echo configure:8428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
8428ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8429if test -z "$ac_err"; then
8430 rm -rf conftest*
8431 ac_cv_header_stdc=yes
8432else
8433 echo "$ac_err" >&5
8434 echo "configure: failed program was:" >&5
8435 cat conftest.$ac_ext >&5
8436 rm -rf conftest*
8437 ac_cv_header_stdc=no
8438fi
8439rm -f conftest*
8440
8441if test $ac_cv_header_stdc = yes; then
8442 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8443cat > conftest.$ac_ext <<EOF
c7a2bf27 8444#line 8445 "configure"
10f2d63a
VZ
8445#include "confdefs.h"
8446#include <string.h>
8447EOF
8448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8449 egrep "memchr" >/dev/null 2>&1; then
8450 :
8451else
8452 rm -rf conftest*
8453 ac_cv_header_stdc=no
8454fi
8455rm -f conftest*
8456
8457fi
8458
8459if test $ac_cv_header_stdc = yes; then
8460 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8461cat > conftest.$ac_ext <<EOF
c7a2bf27 8462#line 8463 "configure"
10f2d63a
VZ
8463#include "confdefs.h"
8464#include <stdlib.h>
8465EOF
8466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8467 egrep "free" >/dev/null 2>&1; then
8468 :
8469else
8470 rm -rf conftest*
8471 ac_cv_header_stdc=no
8472fi
8473rm -f conftest*
8474
8475fi
8476
8477if test $ac_cv_header_stdc = yes; then
8478 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8479if test "$cross_compiling" = yes; then
8480 :
8481else
8482 cat > conftest.$ac_ext <<EOF
c7a2bf27 8483#line 8484 "configure"
10f2d63a
VZ
8484#include "confdefs.h"
8485#include <ctype.h>
8486#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8487#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8488#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8489int main () { int i; for (i = 0; i < 256; i++)
8490if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8491exit (0); }
8492
8493EOF
c7a2bf27 8494if { (eval echo configure:8495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8495then
8496 :
8497else
8498 echo "configure: failed program was:" >&5
8499 cat conftest.$ac_ext >&5
8500 rm -fr conftest*
8501 ac_cv_header_stdc=no
8502fi
8503rm -fr conftest*
8504fi
8505
8506fi
8507fi
8508
8509echo "$ac_t""$ac_cv_header_stdc" 1>&6
8510if test $ac_cv_header_stdc = yes; then
8511 cat >> confdefs.h <<\EOF
8512#define STDC_HEADERS 1
8513EOF
8514
8515fi
8516
8517echo $ac_n "checking for mode_t""... $ac_c" 1>&6
c7a2bf27 8518echo "configure:8519: checking for mode_t" >&5
10f2d63a
VZ
8519if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8520 echo $ac_n "(cached) $ac_c" 1>&6
8521else
8522 cat > conftest.$ac_ext <<EOF
c7a2bf27 8523#line 8524 "configure"
10f2d63a
VZ
8524#include "confdefs.h"
8525#include <sys/types.h>
8526#if STDC_HEADERS
8527#include <stdlib.h>
8528#include <stddef.h>
8529#endif
8530EOF
8531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8532 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8533 rm -rf conftest*
8534 ac_cv_type_mode_t=yes
8535else
8536 rm -rf conftest*
8537 ac_cv_type_mode_t=no
8538fi
8539rm -f conftest*
8540
8541fi
8542echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8543if test $ac_cv_type_mode_t = no; then
8544 cat >> confdefs.h <<\EOF
8545#define mode_t int
8546EOF
8547
8548fi
8549
8550echo $ac_n "checking for off_t""... $ac_c" 1>&6
c7a2bf27 8551echo "configure:8552: checking for off_t" >&5
10f2d63a
VZ
8552if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8553 echo $ac_n "(cached) $ac_c" 1>&6
8554else
8555 cat > conftest.$ac_ext <<EOF
c7a2bf27 8556#line 8557 "configure"
10f2d63a
VZ
8557#include "confdefs.h"
8558#include <sys/types.h>
8559#if STDC_HEADERS
8560#include <stdlib.h>
8561#include <stddef.h>
8562#endif
8563EOF
8564if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8565 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8566 rm -rf conftest*
8567 ac_cv_type_off_t=yes
8568else
8569 rm -rf conftest*
8570 ac_cv_type_off_t=no
8571fi
8572rm -f conftest*
8573
8574fi
8575echo "$ac_t""$ac_cv_type_off_t" 1>&6
8576if test $ac_cv_type_off_t = no; then
8577 cat >> confdefs.h <<\EOF
8578#define off_t long
8579EOF
8580
8581fi
8582
8583echo $ac_n "checking for pid_t""... $ac_c" 1>&6
c7a2bf27 8584echo "configure:8585: checking for pid_t" >&5
10f2d63a
VZ
8585if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8586 echo $ac_n "(cached) $ac_c" 1>&6
8587else
8588 cat > conftest.$ac_ext <<EOF
c7a2bf27 8589#line 8590 "configure"
10f2d63a
VZ
8590#include "confdefs.h"
8591#include <sys/types.h>
8592#if STDC_HEADERS
8593#include <stdlib.h>
8594#include <stddef.h>
8595#endif
8596EOF
8597if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8598 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8599 rm -rf conftest*
8600 ac_cv_type_pid_t=yes
8601else
8602 rm -rf conftest*
8603 ac_cv_type_pid_t=no
8604fi
8605rm -f conftest*
8606
8607fi
8608echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8609if test $ac_cv_type_pid_t = no; then
8610 cat >> confdefs.h <<\EOF
8611#define pid_t int
8612EOF
8613
8614fi
8615
8616echo $ac_n "checking for size_t""... $ac_c" 1>&6
c7a2bf27 8617echo "configure:8618: checking for size_t" >&5
10f2d63a
VZ
8618if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8619 echo $ac_n "(cached) $ac_c" 1>&6
8620else
8621 cat > conftest.$ac_ext <<EOF
c7a2bf27 8622#line 8623 "configure"
10f2d63a
VZ
8623#include "confdefs.h"
8624#include <sys/types.h>
8625#if STDC_HEADERS
8626#include <stdlib.h>
8627#include <stddef.h>
8628#endif
8629EOF
8630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8631 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8632 rm -rf conftest*
8633 ac_cv_type_size_t=yes
8634else
8635 rm -rf conftest*
8636 ac_cv_type_size_t=no
8637fi
8638rm -f conftest*
8639
8640fi
8641echo "$ac_t""$ac_cv_type_size_t" 1>&6
8642if test $ac_cv_type_size_t = no; then
8643 cat >> confdefs.h <<\EOF
8644#define size_t unsigned
8645EOF
8646
8647fi
8648
8649echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
c7a2bf27 8650echo "configure:8651: checking for uid_t in sys/types.h" >&5
10f2d63a
VZ
8651if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
8652 echo $ac_n "(cached) $ac_c" 1>&6
8653else
8654 cat > conftest.$ac_ext <<EOF
c7a2bf27 8655#line 8656 "configure"
10f2d63a
VZ
8656#include "confdefs.h"
8657#include <sys/types.h>
8658EOF
8659if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8660 egrep "uid_t" >/dev/null 2>&1; then
8661 rm -rf conftest*
8662 ac_cv_type_uid_t=yes
8663else
8664 rm -rf conftest*
8665 ac_cv_type_uid_t=no
8666fi
8667rm -f conftest*
8668
8669fi
8670
8671echo "$ac_t""$ac_cv_type_uid_t" 1>&6
8672if test $ac_cv_type_uid_t = no; then
8673 cat >> confdefs.h <<\EOF
8674#define uid_t int
8675EOF
8676
8677 cat >> confdefs.h <<\EOF
8678#define gid_t int
8679EOF
8680
8681fi
8682
8683
8684
8685
8686echo $ac_n "checking for working const""... $ac_c" 1>&6
c7a2bf27 8687echo "configure:8688: checking for working const" >&5
10f2d63a
VZ
8688if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8689 echo $ac_n "(cached) $ac_c" 1>&6
8690else
8691 cat > conftest.$ac_ext <<EOF
c7a2bf27 8692#line 8693 "configure"
10f2d63a
VZ
8693#include "confdefs.h"
8694
8695int main() {
8696
8697/* Ultrix mips cc rejects this. */
8698typedef int charset[2]; const charset x;
8699/* SunOS 4.1.1 cc rejects this. */
8700char const *const *ccp;
8701char **p;
8702/* NEC SVR4.0.2 mips cc rejects this. */
8703struct point {int x, y;};
8704static struct point const zero = {0,0};
8705/* AIX XL C 1.02.0.0 rejects this.
8706 It does not let you subtract one const X* pointer from another in an arm
8707 of an if-expression whose if-part is not a constant expression */
8708const char *g = "string";
8709ccp = &g + (g ? g-g : 0);
8710/* HPUX 7.0 cc rejects these. */
8711++ccp;
8712p = (char**) ccp;
8713ccp = (char const *const *) p;
8714{ /* SCO 3.2v4 cc rejects this. */
8715 char *t;
8716 char const *s = 0 ? (char *) 0 : (char const *) 0;
8717
8718 *t++ = 0;
8719}
8720{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8721 int x[] = {25, 17};
8722 const int *foo = &x[0];
8723 ++foo;
8724}
8725{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8726 typedef const int *iptr;
8727 iptr p = 0;
8728 ++p;
8729}
8730{ /* AIX XL C 1.02.0.0 rejects this saying
8731 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8732 struct s { int j; const int *ap[3]; };
8733 struct s *b; b->j = 5;
8734}
8735{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8736 const int foo = 10;
8737}
8738
8739; return 0; }
8740EOF
c7a2bf27 8741if { (eval echo configure:8742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
8742 rm -rf conftest*
8743 ac_cv_c_const=yes
8744else
8745 echo "configure: failed program was:" >&5
8746 cat conftest.$ac_ext >&5
8747 rm -rf conftest*
8748 ac_cv_c_const=no
8749fi
8750rm -f conftest*
8751fi
8752
8753echo "$ac_t""$ac_cv_c_const" 1>&6
8754if test $ac_cv_c_const = no; then
8755 cat >> confdefs.h <<\EOF
8756#define const
8757EOF
8758
8759fi
8760
8761echo $ac_n "checking for inline""... $ac_c" 1>&6
c7a2bf27 8762echo "configure:8763: checking for inline" >&5
10f2d63a
VZ
8763if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
8764 echo $ac_n "(cached) $ac_c" 1>&6
8765else
8766 ac_cv_c_inline=no
8767for ac_kw in inline __inline__ __inline; do
8768 cat > conftest.$ac_ext <<EOF
c7a2bf27 8769#line 8770 "configure"
10f2d63a
VZ
8770#include "confdefs.h"
8771
8772int main() {
8773} $ac_kw foo() {
8774; return 0; }
8775EOF
c7a2bf27 8776if { (eval echo configure:8777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
8777 rm -rf conftest*
8778 ac_cv_c_inline=$ac_kw; break
8779else
8780 echo "configure: failed program was:" >&5
8781 cat conftest.$ac_ext >&5
8782fi
8783rm -f conftest*
8784done
8785
8786fi
8787
8788echo "$ac_t""$ac_cv_c_inline" 1>&6
8789case "$ac_cv_c_inline" in
8790 inline | yes) ;;
8791 no) cat >> confdefs.h <<\EOF
8792#define inline
8793EOF
8794 ;;
8795 *) cat >> confdefs.h <<EOF
8796#define inline $ac_cv_c_inline
8797EOF
8798 ;;
8799esac
8800
8801
8802echo $ac_n "checking size of char""... $ac_c" 1>&6
c7a2bf27 8803echo "configure:8804: checking size of char" >&5
10f2d63a
VZ
8804if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
8805 echo $ac_n "(cached) $ac_c" 1>&6
8806else
8807 if test "$cross_compiling" = yes; then
8808 ac_cv_sizeof_char=1
8809else
8810 cat > conftest.$ac_ext <<EOF
c7a2bf27 8811#line 8812 "configure"
10f2d63a
VZ
8812#include "confdefs.h"
8813#include <stdio.h>
8814main()
8815{
8816 FILE *f=fopen("conftestval", "w");
8817 if (!f) exit(1);
8818 fprintf(f, "%d\n", sizeof(char));
8819 exit(0);
8820}
8821EOF
c7a2bf27 8822if { (eval echo configure:8823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8823then
8824 ac_cv_sizeof_char=`cat conftestval`
8825else
8826 echo "configure: failed program was:" >&5
8827 cat conftest.$ac_ext >&5
8828 rm -fr conftest*
8829 ac_cv_sizeof_char=0
8830fi
8831rm -fr conftest*
8832fi
8833
8834fi
8835echo "$ac_t""$ac_cv_sizeof_char" 1>&6
8836cat >> confdefs.h <<EOF
8837#define SIZEOF_CHAR $ac_cv_sizeof_char
8838EOF
8839
8840
8841echo $ac_n "checking size of short""... $ac_c" 1>&6
c7a2bf27 8842echo "configure:8843: checking size of short" >&5
10f2d63a
VZ
8843if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
8844 echo $ac_n "(cached) $ac_c" 1>&6
8845else
8846 if test "$cross_compiling" = yes; then
8847 ac_cv_sizeof_short=2
8848else
8849 cat > conftest.$ac_ext <<EOF
c7a2bf27 8850#line 8851 "configure"
10f2d63a
VZ
8851#include "confdefs.h"
8852#include <stdio.h>
8853main()
8854{
8855 FILE *f=fopen("conftestval", "w");
8856 if (!f) exit(1);
8857 fprintf(f, "%d\n", sizeof(short));
8858 exit(0);
8859}
8860EOF
c7a2bf27 8861if { (eval echo configure:8862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8862then
8863 ac_cv_sizeof_short=`cat conftestval`
8864else
8865 echo "configure: failed program was:" >&5
8866 cat conftest.$ac_ext >&5
8867 rm -fr conftest*
8868 ac_cv_sizeof_short=0
8869fi
8870rm -fr conftest*
8871fi
8872
8873fi
8874echo "$ac_t""$ac_cv_sizeof_short" 1>&6
8875cat >> confdefs.h <<EOF
8876#define SIZEOF_SHORT $ac_cv_sizeof_short
8877EOF
8878
8879
8880echo $ac_n "checking size of int *""... $ac_c" 1>&6
c7a2bf27 8881echo "configure:8882: checking size of int *" >&5
10f2d63a
VZ
8882if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
8883 echo $ac_n "(cached) $ac_c" 1>&6
8884else
8885 if test "$cross_compiling" = yes; then
8886 ac_cv_sizeof_int_p=4
8887else
8888 cat > conftest.$ac_ext <<EOF
c7a2bf27 8889#line 8890 "configure"
10f2d63a
VZ
8890#include "confdefs.h"
8891#include <stdio.h>
8892main()
8893{
8894 FILE *f=fopen("conftestval", "w");
8895 if (!f) exit(1);
8896 fprintf(f, "%d\n", sizeof(int *));
8897 exit(0);
8898}
8899EOF
c7a2bf27 8900if { (eval echo configure:8901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8901then
8902 ac_cv_sizeof_int_p=`cat conftestval`
8903else
8904 echo "configure: failed program was:" >&5
8905 cat conftest.$ac_ext >&5
8906 rm -fr conftest*
8907 ac_cv_sizeof_int_p=0
8908fi
8909rm -fr conftest*
8910fi
8911
8912fi
8913echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
8914cat >> confdefs.h <<EOF
8915#define SIZEOF_INT_P $ac_cv_sizeof_int_p
8916EOF
8917
8918
8919echo $ac_n "checking size of int""... $ac_c" 1>&6
c7a2bf27 8920echo "configure:8921: checking size of int" >&5
10f2d63a
VZ
8921if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
8922 echo $ac_n "(cached) $ac_c" 1>&6
8923else
8924 if test "$cross_compiling" = yes; then
8925 ac_cv_sizeof_int=4
8926else
8927 cat > conftest.$ac_ext <<EOF
c7a2bf27 8928#line 8929 "configure"
10f2d63a
VZ
8929#include "confdefs.h"
8930#include <stdio.h>
8931main()
8932{
8933 FILE *f=fopen("conftestval", "w");
8934 if (!f) exit(1);
8935 fprintf(f, "%d\n", sizeof(int));
8936 exit(0);
8937}
8938EOF
c7a2bf27 8939if { (eval echo configure:8940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8940then
8941 ac_cv_sizeof_int=`cat conftestval`
8942else
8943 echo "configure: failed program was:" >&5
8944 cat conftest.$ac_ext >&5
8945 rm -fr conftest*
8946 ac_cv_sizeof_int=0
8947fi
8948rm -fr conftest*
8949fi
8950
8951fi
8952echo "$ac_t""$ac_cv_sizeof_int" 1>&6
8953cat >> confdefs.h <<EOF
8954#define SIZEOF_INT $ac_cv_sizeof_int
8955EOF
8956
8957
8958echo $ac_n "checking size of long""... $ac_c" 1>&6
c7a2bf27 8959echo "configure:8960: checking size of long" >&5
10f2d63a
VZ
8960if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
8961 echo $ac_n "(cached) $ac_c" 1>&6
8962else
8963 if test "$cross_compiling" = yes; then
8964 ac_cv_sizeof_long=4
8965else
8966 cat > conftest.$ac_ext <<EOF
c7a2bf27 8967#line 8968 "configure"
10f2d63a
VZ
8968#include "confdefs.h"
8969#include <stdio.h>
8970main()
8971{
8972 FILE *f=fopen("conftestval", "w");
8973 if (!f) exit(1);
8974 fprintf(f, "%d\n", sizeof(long));
8975 exit(0);
8976}
8977EOF
c7a2bf27 8978if { (eval echo configure:8979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
8979then
8980 ac_cv_sizeof_long=`cat conftestval`
8981else
8982 echo "configure: failed program was:" >&5
8983 cat conftest.$ac_ext >&5
8984 rm -fr conftest*
8985 ac_cv_sizeof_long=0
8986fi
8987rm -fr conftest*
8988fi
8989
8990fi
8991echo "$ac_t""$ac_cv_sizeof_long" 1>&6
8992cat >> confdefs.h <<EOF
8993#define SIZEOF_LONG $ac_cv_sizeof_long
8994EOF
8995
8996
8997echo $ac_n "checking size of long long""... $ac_c" 1>&6
c7a2bf27 8998echo "configure:8999: checking size of long long" >&5
10f2d63a
VZ
8999if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
9000 echo $ac_n "(cached) $ac_c" 1>&6
9001else
9002 if test "$cross_compiling" = yes; then
9003 ac_cv_sizeof_long_long=0
9004else
9005 cat > conftest.$ac_ext <<EOF
c7a2bf27 9006#line 9007 "configure"
10f2d63a
VZ
9007#include "confdefs.h"
9008#include <stdio.h>
9009main()
9010{
9011 FILE *f=fopen("conftestval", "w");
9012 if (!f) exit(1);
9013 fprintf(f, "%d\n", sizeof(long long));
9014 exit(0);
9015}
9016EOF
c7a2bf27 9017if { (eval echo configure:9018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9018then
9019 ac_cv_sizeof_long_long=`cat conftestval`
9020else
9021 echo "configure: failed program was:" >&5
9022 cat conftest.$ac_ext >&5
9023 rm -fr conftest*
9024 ac_cv_sizeof_long_long=0
9025fi
9026rm -fr conftest*
9027fi
9028
9029fi
9030echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
9031cat >> confdefs.h <<EOF
9032#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9033EOF
9034
9035
9036
9037echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
c7a2bf27 9038echo "configure:9039: checking whether byte ordering is bigendian" >&5
10f2d63a
VZ
9039if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
9040 echo $ac_n "(cached) $ac_c" 1>&6
9041else
9042 ac_cv_c_bigendian=unknown
9043# See if sys/param.h defines the BYTE_ORDER macro.
9044cat > conftest.$ac_ext <<EOF
c7a2bf27 9045#line 9046 "configure"
10f2d63a
VZ
9046#include "confdefs.h"
9047#include <sys/types.h>
9048#include <sys/param.h>
9049int main() {
9050
9051#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9052 bogus endian macros
9053#endif
9054; return 0; }
9055EOF
c7a2bf27 9056if { (eval echo configure:9057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9057 rm -rf conftest*
9058 # It does; now see whether it defined to BIG_ENDIAN or not.
9059cat > conftest.$ac_ext <<EOF
c7a2bf27 9060#line 9061 "configure"
10f2d63a
VZ
9061#include "confdefs.h"
9062#include <sys/types.h>
9063#include <sys/param.h>
9064int main() {
9065
9066#if BYTE_ORDER != BIG_ENDIAN
9067 not big endian
9068#endif
9069; return 0; }
9070EOF
c7a2bf27 9071if { (eval echo configure:9072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9072 rm -rf conftest*
9073 ac_cv_c_bigendian=yes
9074else
9075 echo "configure: failed program was:" >&5
9076 cat conftest.$ac_ext >&5
9077 rm -rf conftest*
9078 ac_cv_c_bigendian=no
9079fi
9080rm -f conftest*
9081else
9082 echo "configure: failed program was:" >&5
9083 cat conftest.$ac_ext >&5
9084fi
9085rm -f conftest*
9086if test $ac_cv_c_bigendian = unknown; then
9087if test "$cross_compiling" = yes; then
9088 ac_cv_c_bigendian=unknown
9089else
9090 cat > conftest.$ac_ext <<EOF
c7a2bf27 9091#line 9092 "configure"
10f2d63a
VZ
9092#include "confdefs.h"
9093main () {
9094 /* Are we little or big endian? From Harbison&Steele. */
9095 union
9096 {
9097 long l;
9098 char c[sizeof (long)];
9099 } u;
9100 u.l = 1;
9101 exit (u.c[sizeof (long) - 1] == 1);
9102}
9103EOF
c7a2bf27 9104if { (eval echo configure:9105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9105then
9106 ac_cv_c_bigendian=no
9107else
9108 echo "configure: failed program was:" >&5
9109 cat conftest.$ac_ext >&5
9110 rm -fr conftest*
9111 ac_cv_c_bigendian=yes
9112fi
9113rm -fr conftest*
9114fi
9115
9116fi
9117fi
9118
9119echo "$ac_t""$ac_cv_c_bigendian" 1>&6
9120if test $ac_cv_c_bigendian = unknown; then
9121 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
9122fi
9123if test $ac_cv_c_bigendian = yes; then
9124 cat >> confdefs.h <<\EOF
9125#define WORDS_BIGENDIAN 1
9126EOF
9127
9128fi
9129
9130
9131
9132 if test "$cross_compiling" = "yes"; then
9133 cat >> confdefs.h <<\EOF
9134#define wxUSE_IOSTREAMH 1
9135EOF
9136
9137 else
9138
9139 ac_ext=C
9140# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9141ac_cpp='$CXXCPP $CPPFLAGS'
9142ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9143ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9144cross_compiling=$ac_cv_prog_cxx_cross
9145
9146
9147 for ac_hdr in iostream
9148do
9149ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9150echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c7a2bf27 9151echo "configure:9152: checking for $ac_hdr" >&5
10f2d63a
VZ
9152if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9153 echo $ac_n "(cached) $ac_c" 1>&6
9154else
9155 cat > conftest.$ac_ext <<EOF
c7a2bf27 9156#line 9157 "configure"
10f2d63a
VZ
9157#include "confdefs.h"
9158#include <$ac_hdr>
9159EOF
9160ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c7a2bf27 9161{ (eval echo configure:9162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
9162ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9163if test -z "$ac_err"; then
9164 rm -rf conftest*
9165 eval "ac_cv_header_$ac_safe=yes"
9166else
9167 echo "$ac_err" >&5
9168 echo "configure: failed program was:" >&5
9169 cat conftest.$ac_ext >&5
9170 rm -rf conftest*
9171 eval "ac_cv_header_$ac_safe=no"
9172fi
9173rm -f conftest*
9174fi
9175if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9176 echo "$ac_t""yes" 1>&6
9177 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9178 cat >> confdefs.h <<EOF
9179#define $ac_tr_hdr 1
9180EOF
9181
9182else
9183 echo "$ac_t""no" 1>&6
9184fi
9185done
9186
9187
9188 if test "x$HAVE_IOSTREAM" = x ; then
9189 cat >> confdefs.h <<\EOF
9190#define wxUSE_IOSTREAMH 1
9191EOF
9192
9193 else
9194 :
9195 fi
9196
9197 ac_ext=c
9198# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9199ac_cpp='$CPP $CPPFLAGS'
9200ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9201ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9202cross_compiling=$ac_cv_prog_cc_cross
9203
9204 fi
9205
9206
9207
9208 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
c7a2bf27 9209echo "configure:9210: checking if C++ compiler supports bool" >&5
10f2d63a
VZ
9210if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
9211 echo $ac_n "(cached) $ac_c" 1>&6
9212else
9213
9214
9215 ac_ext=C
9216# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9217ac_cpp='$CXXCPP $CPPFLAGS'
9218ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9219ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9220cross_compiling=$ac_cv_prog_cxx_cross
9221
9222
9223 cat > conftest.$ac_ext <<EOF
c7a2bf27 9224#line 9225 "configure"
10f2d63a
VZ
9225#include "confdefs.h"
9226
9227
9228int main() {
9229
9230 bool b = true;
9231
9232 return 0;
9233
9234; return 0; }
9235EOF
c7a2bf27 9236if { (eval echo configure:9237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9237 rm -rf conftest*
9238
9239 cat >> confdefs.h <<\EOF
9240#define HAVE_BOOL 1
9241EOF
9242
9243 wx_cv_cpp_bool=yes
9244
9245else
9246 echo "configure: failed program was:" >&5
9247 cat conftest.$ac_ext >&5
9248 rm -rf conftest*
9249
9250 wx_cv_cpp_bool=no
9251
9252
9253fi
9254rm -f conftest*
9255
9256 ac_ext=c
9257# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9258ac_cpp='$CPP $CPPFLAGS'
9259ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9260ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9261cross_compiling=$ac_cv_prog_cc_cross
9262
9263
9264fi
9265
9266echo "$ac_t""$wx_cv_cpp_bool" 1>&6
9267
9268 if test "$wx_cv_cpp_bool" = "yes"; then
9269 cat >> confdefs.h <<\EOF
9270#define HAVE_BOOL 1
9271EOF
9272
9273 fi
9274
9275
9276
10f2d63a 9277echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6
c7a2bf27 9278echo "configure:9279: checking if you need GNU extensions" >&5
10f2d63a
VZ
9279if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then
9280 echo $ac_n "(cached) $ac_c" 1>&6
9281else
9282
9283 cat > conftest.$ac_ext <<EOF
c7a2bf27 9284#line 9285 "configure"
10f2d63a
VZ
9285#include "confdefs.h"
9286#include <features.h>
9287int main() {
9288
9289
9290#ifndef __GNU_LIBRARY__
9291 Compile error wanted
9292#endif
9293
9294
9295; return 0; }
9296EOF
c7a2bf27 9297if { (eval echo configure:9298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
9298 rm -rf conftest*
9299 wx_cv_gnu_extensions=yes
9300else
9301 echo "configure: failed program was:" >&5
9302 cat conftest.$ac_ext >&5
9303 rm -rf conftest*
9304 wx_cv_gnu_extensions=no
9305fi
9306rm -f conftest*
9307
9308fi
9309
9310
9311echo "$ac_t""$wx_cv_gnu_extensions" 1>&6
9312if test "$wx_cv_gnu_extensions" = "yes"; then
9313 cat >> confdefs.h <<EOF
9314#define _GNU_SOURCE 1
9315EOF
9316
9317fi
9318
9319
9320
9321echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
c7a2bf27 9322echo "configure:9323: checking for wcslen in -lc" >&5
10f2d63a
VZ
9323ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
9324if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9325 echo $ac_n "(cached) $ac_c" 1>&6
9326else
9327 ac_save_LIBS="$LIBS"
9328LIBS="-lc $LIBS"
9329cat > conftest.$ac_ext <<EOF
c7a2bf27 9330#line 9331 "configure"
10f2d63a
VZ
9331#include "confdefs.h"
9332/* Override any gcc2 internal prototype to avoid an error. */
9333/* We use char because int might match the return type of a gcc2
9334 builtin and then its argument prototype would still apply. */
9335char wcslen();
9336
9337int main() {
9338wcslen()
9339; return 0; }
9340EOF
c7a2bf27 9341if { (eval echo configure:9342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9342 rm -rf conftest*
9343 eval "ac_cv_lib_$ac_lib_var=yes"
9344else
9345 echo "configure: failed program was:" >&5
9346 cat conftest.$ac_ext >&5
9347 rm -rf conftest*
9348 eval "ac_cv_lib_$ac_lib_var=no"
9349fi
9350rm -f conftest*
9351LIBS="$ac_save_LIBS"
9352
9353fi
9354if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9355 echo "$ac_t""yes" 1>&6
9356
9357 cat >> confdefs.h <<\EOF
9358#define HAVE_WCSLEN 1
9359EOF
9360
9361 WCHAR_LINK=""
9362
9363else
9364 echo "$ac_t""no" 1>&6
9365
9366 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
c7a2bf27 9367echo "configure:9368: checking for wcslen in -lw" >&5
10f2d63a
VZ
9368ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
9369if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9370 echo $ac_n "(cached) $ac_c" 1>&6
9371else
9372 ac_save_LIBS="$LIBS"
9373LIBS="-lw $LIBS"
9374cat > conftest.$ac_ext <<EOF
c7a2bf27 9375#line 9376 "configure"
10f2d63a
VZ
9376#include "confdefs.h"
9377/* Override any gcc2 internal prototype to avoid an error. */
9378/* We use char because int might match the return type of a gcc2
9379 builtin and then its argument prototype would still apply. */
9380char wcslen();
9381
9382int main() {
9383wcslen()
9384; return 0; }
9385EOF
c7a2bf27 9386if { (eval echo configure:9387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9387 rm -rf conftest*
9388 eval "ac_cv_lib_$ac_lib_var=yes"
9389else
9390 echo "configure: failed program was:" >&5
9391 cat conftest.$ac_ext >&5
9392 rm -rf conftest*
9393 eval "ac_cv_lib_$ac_lib_var=no"
9394fi
9395rm -f conftest*
9396LIBS="$ac_save_LIBS"
9397
9398fi
9399if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9400 echo "$ac_t""yes" 1>&6
9401
9402 cat >> confdefs.h <<\EOF
9403#define HAVE_WCSLEN 1
9404EOF
9405
9406 WCHAR_LINK="-lw"
9407
9408else
9409 echo "$ac_t""no" 1>&6
9410fi
9411
9412
9413fi
9414
9415
9416echo $ac_n "checking for vprintf""... $ac_c" 1>&6
c7a2bf27 9417echo "configure:9418: checking for vprintf" >&5
10f2d63a
VZ
9418if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
9419 echo $ac_n "(cached) $ac_c" 1>&6
9420else
9421 cat > conftest.$ac_ext <<EOF
c7a2bf27 9422#line 9423 "configure"
10f2d63a
VZ
9423#include "confdefs.h"
9424/* System header to define __stub macros and hopefully few prototypes,
9425 which can conflict with char vprintf(); below. */
9426#include <assert.h>
9427/* Override any gcc2 internal prototype to avoid an error. */
9428/* We use char because int might match the return type of a gcc2
9429 builtin and then its argument prototype would still apply. */
9430char vprintf();
69ffe1d2 9431char (*f)();
10f2d63a
VZ
9432
9433int main() {
9434
9435/* The GNU C library defines this for functions which it implements
9436 to always fail with ENOSYS. Some functions are actually named
9437 something starting with __ and the normal name is an alias. */
9438#if defined (__stub_vprintf) || defined (__stub___vprintf)
9439choke me
9440#else
69ffe1d2 9441f = vprintf;
10f2d63a
VZ
9442#endif
9443
9444; return 0; }
9445EOF
c7a2bf27 9446if { (eval echo configure:9447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9447 rm -rf conftest*
9448 eval "ac_cv_func_vprintf=yes"
9449else
9450 echo "configure: failed program was:" >&5
9451 cat conftest.$ac_ext >&5
9452 rm -rf conftest*
9453 eval "ac_cv_func_vprintf=no"
9454fi
9455rm -f conftest*
9456fi
9457
9458if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
9459 echo "$ac_t""yes" 1>&6
9460 cat >> confdefs.h <<\EOF
9461#define HAVE_VPRINTF 1
9462EOF
9463
9464else
9465 echo "$ac_t""no" 1>&6
9466fi
9467
9468if test "$ac_cv_func_vprintf" != yes; then
9469echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
c7a2bf27 9470echo "configure:9471: checking for _doprnt" >&5
10f2d63a
VZ
9471if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
9472 echo $ac_n "(cached) $ac_c" 1>&6
9473else
9474 cat > conftest.$ac_ext <<EOF
c7a2bf27 9475#line 9476 "configure"
10f2d63a
VZ
9476#include "confdefs.h"
9477/* System header to define __stub macros and hopefully few prototypes,
9478 which can conflict with char _doprnt(); below. */
9479#include <assert.h>
9480/* Override any gcc2 internal prototype to avoid an error. */
9481/* We use char because int might match the return type of a gcc2
9482 builtin and then its argument prototype would still apply. */
9483char _doprnt();
69ffe1d2 9484char (*f)();
10f2d63a
VZ
9485
9486int main() {
9487
9488/* The GNU C library defines this for functions which it implements
9489 to always fail with ENOSYS. Some functions are actually named
9490 something starting with __ and the normal name is an alias. */
9491#if defined (__stub__doprnt) || defined (__stub____doprnt)
9492choke me
9493#else
69ffe1d2 9494f = _doprnt;
10f2d63a
VZ
9495#endif
9496
9497; return 0; }
9498EOF
c7a2bf27 9499if { (eval echo configure:9500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9500 rm -rf conftest*
9501 eval "ac_cv_func__doprnt=yes"
9502else
9503 echo "configure: failed program was:" >&5
9504 cat conftest.$ac_ext >&5
9505 rm -rf conftest*
9506 eval "ac_cv_func__doprnt=no"
9507fi
9508rm -f conftest*
9509fi
9510
9511if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
9512 echo "$ac_t""yes" 1>&6
9513 cat >> confdefs.h <<\EOF
9514#define HAVE_DOPRNT 1
9515EOF
9516
9517else
9518 echo "$ac_t""no" 1>&6
9519fi
9520
9521fi
9522
9523
9524for ac_func in vsnprintf
9525do
9526echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c7a2bf27 9527echo "configure:9528: checking for $ac_func" >&5
10f2d63a
VZ
9528if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9529 echo $ac_n "(cached) $ac_c" 1>&6
9530else
9531 cat > conftest.$ac_ext <<EOF
c7a2bf27 9532#line 9533 "configure"
10f2d63a
VZ
9533#include "confdefs.h"
9534/* System header to define __stub macros and hopefully few prototypes,
9535 which can conflict with char $ac_func(); below. */
9536#include <assert.h>
9537/* Override any gcc2 internal prototype to avoid an error. */
9538/* We use char because int might match the return type of a gcc2
9539 builtin and then its argument prototype would still apply. */
9540char $ac_func();
69ffe1d2 9541char (*f)();
10f2d63a
VZ
9542
9543int main() {
9544
9545/* The GNU C library defines this for functions which it implements
9546 to always fail with ENOSYS. Some functions are actually named
9547 something starting with __ and the normal name is an alias. */
9548#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9549choke me
9550#else
69ffe1d2 9551f = $ac_func;
10f2d63a
VZ
9552#endif
9553
9554; return 0; }
9555EOF
c7a2bf27 9556if { (eval echo configure:9557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9557 rm -rf conftest*
9558 eval "ac_cv_func_$ac_func=yes"
9559else
9560 echo "configure: failed program was:" >&5
9561 cat conftest.$ac_ext >&5
9562 rm -rf conftest*
9563 eval "ac_cv_func_$ac_func=no"
9564fi
9565rm -f conftest*
9566fi
9567
9568if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9569 echo "$ac_t""yes" 1>&6
9570 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9571 cat >> confdefs.h <<EOF
9572#define $ac_tr_func 1
9573EOF
9574 cat >> confdefs.h <<\EOF
9575#define HAVE_VSNPRINTF 1
9576EOF
9577
9578else
9579 echo "$ac_t""no" 1>&6
9580echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9581
9582fi
9583done
9584
9585
9586
9587ac_ext=C
9588# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9589ac_cpp='$CXXCPP $CPPFLAGS'
9590ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9591ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9592cross_compiling=$ac_cv_prog_cxx_cross
9593
9594
9595echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
c7a2bf27 9596echo "configure:9597: checking for vsscanf" >&5
10f2d63a
VZ
9597if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
9598 echo $ac_n "(cached) $ac_c" 1>&6
9599else
9600
9601 if test "$cross_compiling" = yes; then
9602 wx_cv_func_vsscanf=no
9603
9604else
9605 cat > conftest.$ac_ext <<EOF
c7a2bf27 9606#line 9607 "configure"
10f2d63a
VZ
9607#include "confdefs.h"
9608#ifdef __cplusplus
9609extern "C" void exit(int);
9610#endif
9611
9612 #include <stdio.h>
9613 #include <stdarg.h>
9614
9615 int try_vsscanf(const char *format, ...)
9616 {
9617 va_list ap;
9618 va_start(ap, format);
9619
9620 vsscanf("17", format, ap);
9621
9622 va_end(ap);
9623 }
9624
9625 int main()
9626 {
9627 int i;
9628 try_vsscanf("%d", &i);
9629 return i == 17 ? 0 : 1;
9630 }
9631
9632EOF
c7a2bf27 9633if { (eval echo configure:9634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10f2d63a
VZ
9634then
9635
9636 cat >> confdefs.h <<\EOF
9637#define HAVE_VSSCANF 1
9638EOF
9639
9640 wx_cv_func_vsscanf=yes
9641
9642else
9643 echo "configure: failed program was:" >&5
9644 cat conftest.$ac_ext >&5
9645 rm -fr conftest*
9646 wx_cv_func_vsscanf=no
9647fi
9648rm -fr conftest*
9649fi
9650
9651
9652fi
9653
9654echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
9655
9656ac_ext=c
9657# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9658ac_cpp='$CPP $CPPFLAGS'
9659ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9660ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9661cross_compiling=$ac_cv_prog_cc_cross
9662
9663
9664if test "$USE_UNIX" = 1; then
9665
9666for ac_func in vfork
9667do
9668echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c7a2bf27 9669echo "configure:9670: checking for $ac_func" >&5
10f2d63a
VZ
9670if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9671 echo $ac_n "(cached) $ac_c" 1>&6
9672else
9673 cat > conftest.$ac_ext <<EOF
c7a2bf27 9674#line 9675 "configure"
10f2d63a
VZ
9675#include "confdefs.h"
9676/* System header to define __stub macros and hopefully few prototypes,
9677 which can conflict with char $ac_func(); below. */
9678#include <assert.h>
9679/* Override any gcc2 internal prototype to avoid an error. */
9680/* We use char because int might match the return type of a gcc2
9681 builtin and then its argument prototype would still apply. */
9682char $ac_func();
69ffe1d2 9683char (*f)();
10f2d63a
VZ
9684
9685int main() {
9686
9687/* The GNU C library defines this for functions which it implements
9688 to always fail with ENOSYS. Some functions are actually named
9689 something starting with __ and the normal name is an alias. */
9690#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9691choke me
9692#else
69ffe1d2 9693f = $ac_func;
10f2d63a
VZ
9694#endif
9695
9696; return 0; }
9697EOF
c7a2bf27 9698if { (eval echo configure:9699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9699 rm -rf conftest*
9700 eval "ac_cv_func_$ac_func=yes"
9701else
9702 echo "configure: failed program was:" >&5
9703 cat conftest.$ac_ext >&5
9704 rm -rf conftest*
9705 eval "ac_cv_func_$ac_func=no"
9706fi
9707rm -f conftest*
9708fi
9709
9710if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9711 echo "$ac_t""yes" 1>&6
9712 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9713 cat >> confdefs.h <<EOF
9714#define $ac_tr_func 1
9715EOF
9716
9717else
9718 echo "$ac_t""no" 1>&6
9719fi
9720done
9721
9722
9723POSIX4_LINK=
9724for ac_func in nanosleep
9725do
9726echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c7a2bf27 9727echo "configure:9728: checking for $ac_func" >&5
10f2d63a
VZ
9728if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9729 echo $ac_n "(cached) $ac_c" 1>&6
9730else
9731 cat > conftest.$ac_ext <<EOF
c7a2bf27 9732#line 9733 "configure"
10f2d63a
VZ
9733#include "confdefs.h"
9734/* System header to define __stub macros and hopefully few prototypes,
9735 which can conflict with char $ac_func(); below. */
9736#include <assert.h>
9737/* Override any gcc2 internal prototype to avoid an error. */
9738/* We use char because int might match the return type of a gcc2
9739 builtin and then its argument prototype would still apply. */
9740char $ac_func();
69ffe1d2 9741char (*f)();
10f2d63a
VZ
9742
9743int main() {
9744
9745/* The GNU C library defines this for functions which it implements
9746 to always fail with ENOSYS. Some functions are actually named
9747 something starting with __ and the normal name is an alias. */
9748#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9749choke me
9750#else
69ffe1d2 9751f = $ac_func;
10f2d63a
VZ
9752#endif
9753
9754; return 0; }
9755EOF
c7a2bf27 9756if { (eval echo configure:9757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9757 rm -rf conftest*
9758 eval "ac_cv_func_$ac_func=yes"
9759else
9760 echo "configure: failed program was:" >&5
9761 cat conftest.$ac_ext >&5
9762 rm -rf conftest*
9763 eval "ac_cv_func_$ac_func=no"
9764fi
9765rm -f conftest*
9766fi
9767
9768if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9769 echo "$ac_t""yes" 1>&6
9770 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9771 cat >> confdefs.h <<EOF
9772#define $ac_tr_func 1
9773EOF
9774 cat >> confdefs.h <<\EOF
9775#define HAVE_NANOSLEEP 1
9776EOF
9777
9778else
9779 echo "$ac_t""no" 1>&6
9780echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
c7a2bf27 9781echo "configure:9782: checking for nanosleep in -lposix4" >&5
10f2d63a
VZ
9782ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
9783if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9784 echo $ac_n "(cached) $ac_c" 1>&6
9785else
9786 ac_save_LIBS="$LIBS"
9787LIBS="-lposix4 $LIBS"
9788cat > conftest.$ac_ext <<EOF
c7a2bf27 9789#line 9790 "configure"
10f2d63a
VZ
9790#include "confdefs.h"
9791/* Override any gcc2 internal prototype to avoid an error. */
9792/* We use char because int might match the return type of a gcc2
9793 builtin and then its argument prototype would still apply. */
9794char nanosleep();
9795
9796int main() {
9797nanosleep()
9798; return 0; }
9799EOF
c7a2bf27 9800if { (eval echo configure:9801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9801 rm -rf conftest*
9802 eval "ac_cv_lib_$ac_lib_var=yes"
9803else
9804 echo "configure: failed program was:" >&5
9805 cat conftest.$ac_ext >&5
9806 rm -rf conftest*
9807 eval "ac_cv_lib_$ac_lib_var=no"
9808fi
9809rm -f conftest*
9810LIBS="$ac_save_LIBS"
9811
9812fi
9813if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9814 echo "$ac_t""yes" 1>&6
9815
9816 cat >> confdefs.h <<\EOF
9817#define HAVE_NANOSLEEP 1
9818EOF
9819
9820 POSIX4_LINK="-lposix4"
9821
9822else
9823 echo "$ac_t""no" 1>&6
9824
9825 for ac_func in usleep
9826do
9827echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c7a2bf27 9828echo "configure:9829: checking for $ac_func" >&5
10f2d63a
VZ
9829if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9830 echo $ac_n "(cached) $ac_c" 1>&6
9831else
9832 cat > conftest.$ac_ext <<EOF
c7a2bf27 9833#line 9834 "configure"
10f2d63a
VZ
9834#include "confdefs.h"
9835/* System header to define __stub macros and hopefully few prototypes,
9836 which can conflict with char $ac_func(); below. */
9837#include <assert.h>
9838/* Override any gcc2 internal prototype to avoid an error. */
9839/* We use char because int might match the return type of a gcc2
9840 builtin and then its argument prototype would still apply. */
9841char $ac_func();
69ffe1d2 9842char (*f)();
10f2d63a
VZ
9843
9844int main() {
9845
9846/* The GNU C library defines this for functions which it implements
9847 to always fail with ENOSYS. Some functions are actually named
9848 something starting with __ and the normal name is an alias. */
9849#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9850choke me
9851#else
69ffe1d2 9852f = $ac_func;
10f2d63a
VZ
9853#endif
9854
9855; return 0; }
9856EOF
c7a2bf27 9857if { (eval echo configure:9858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9858 rm -rf conftest*
9859 eval "ac_cv_func_$ac_func=yes"
9860else
9861 echo "configure: failed program was:" >&5
9862 cat conftest.$ac_ext >&5
9863 rm -rf conftest*
9864 eval "ac_cv_func_$ac_func=no"
9865fi
9866rm -f conftest*
9867fi
9868
9869if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9870 echo "$ac_t""yes" 1>&6
9871 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9872 cat >> confdefs.h <<EOF
9873#define $ac_tr_func 1
9874EOF
9875 cat >> confdefs.h <<\EOF
9876#define HAVE_USLEEP 1
9877EOF
9878
9879else
9880 echo "$ac_t""no" 1>&6
9881echo "configure: warning: wxSleep() function will not work" 1>&2
9882fi
9883done
9884
9885
9886fi
9887
9888
9889fi
9890done
9891
9892
9893for ac_func in uname gethostname
9894do
9895echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c7a2bf27 9896echo "configure:9897: checking for $ac_func" >&5
10f2d63a
VZ
9897if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9898 echo $ac_n "(cached) $ac_c" 1>&6
9899else
9900 cat > conftest.$ac_ext <<EOF
c7a2bf27 9901#line 9902 "configure"
10f2d63a
VZ
9902#include "confdefs.h"
9903/* System header to define __stub macros and hopefully few prototypes,
9904 which can conflict with char $ac_func(); below. */
9905#include <assert.h>
9906/* Override any gcc2 internal prototype to avoid an error. */
9907/* We use char because int might match the return type of a gcc2
9908 builtin and then its argument prototype would still apply. */
9909char $ac_func();
69ffe1d2 9910char (*f)();
10f2d63a
VZ
9911
9912int main() {
9913
9914/* The GNU C library defines this for functions which it implements
9915 to always fail with ENOSYS. Some functions are actually named
9916 something starting with __ and the normal name is an alias. */
9917#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9918choke me
9919#else
69ffe1d2 9920f = $ac_func;
10f2d63a
VZ
9921#endif
9922
9923; return 0; }
9924EOF
c7a2bf27 9925if { (eval echo configure:9926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9926 rm -rf conftest*
9927 eval "ac_cv_func_$ac_func=yes"
9928else
9929 echo "configure: failed program was:" >&5
9930 cat conftest.$ac_ext >&5
9931 rm -rf conftest*
9932 eval "ac_cv_func_$ac_func=no"
9933fi
9934rm -f conftest*
9935fi
9936
9937if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9938 echo "$ac_t""yes" 1>&6
9939 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9940 cat >> confdefs.h <<EOF
9941#define $ac_tr_func 1
9942EOF
9943 break
9944else
9945 echo "$ac_t""no" 1>&6
9946fi
9947done
9948
9949
9950for ac_func in strtok_r
9951do
9952echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c7a2bf27 9953echo "configure:9954: checking for $ac_func" >&5
10f2d63a
VZ
9954if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9955 echo $ac_n "(cached) $ac_c" 1>&6
9956else
9957 cat > conftest.$ac_ext <<EOF
c7a2bf27 9958#line 9959 "configure"
10f2d63a
VZ
9959#include "confdefs.h"
9960/* System header to define __stub macros and hopefully few prototypes,
9961 which can conflict with char $ac_func(); below. */
9962#include <assert.h>
9963/* Override any gcc2 internal prototype to avoid an error. */
9964/* We use char because int might match the return type of a gcc2
9965 builtin and then its argument prototype would still apply. */
9966char $ac_func();
69ffe1d2 9967char (*f)();
10f2d63a
VZ
9968
9969int main() {
9970
9971/* The GNU C library defines this for functions which it implements
9972 to always fail with ENOSYS. Some functions are actually named
9973 something starting with __ and the normal name is an alias. */
9974#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9975choke me
9976#else
69ffe1d2 9977f = $ac_func;
10f2d63a
VZ
9978#endif
9979
9980; return 0; }
9981EOF
c7a2bf27 9982if { (eval echo configure:9983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
9983 rm -rf conftest*
9984 eval "ac_cv_func_$ac_func=yes"
9985else
9986 echo "configure: failed program was:" >&5
9987 cat conftest.$ac_ext >&5
9988 rm -rf conftest*
9989 eval "ac_cv_func_$ac_func=no"
9990fi
9991rm -f conftest*
9992fi
9993
9994if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9995 echo "$ac_t""yes" 1>&6
9996 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9997 cat >> confdefs.h <<EOF
9998#define $ac_tr_func 1
9999EOF
10000
10001else
10002 echo "$ac_t""no" 1>&6
10003fi
10004done
10005
10006
c63c7106 10007INET_LINK=
10f2d63a
VZ
10008for ac_func in inet_addr
10009do
10010echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c7a2bf27 10011echo "configure:10012: checking for $ac_func" >&5
10f2d63a
VZ
10012if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10013 echo $ac_n "(cached) $ac_c" 1>&6
10014else
10015 cat > conftest.$ac_ext <<EOF
c7a2bf27 10016#line 10017 "configure"
10f2d63a
VZ
10017#include "confdefs.h"
10018/* System header to define __stub macros and hopefully few prototypes,
10019 which can conflict with char $ac_func(); below. */
10020#include <assert.h>
10021/* Override any gcc2 internal prototype to avoid an error. */
10022/* We use char because int might match the return type of a gcc2
10023 builtin and then its argument prototype would still apply. */
10024char $ac_func();
69ffe1d2 10025char (*f)();
10f2d63a
VZ
10026
10027int main() {
10028
10029/* The GNU C library defines this for functions which it implements
10030 to always fail with ENOSYS. Some functions are actually named
10031 something starting with __ and the normal name is an alias. */
10032#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10033choke me
10034#else
69ffe1d2 10035f = $ac_func;
10f2d63a
VZ
10036#endif
10037
10038; return 0; }
10039EOF
c7a2bf27 10040if { (eval echo configure:10041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10041 rm -rf conftest*
10042 eval "ac_cv_func_$ac_func=yes"
10043else
10044 echo "configure: failed program was:" >&5
10045 cat conftest.$ac_ext >&5
10046 rm -rf conftest*
10047 eval "ac_cv_func_$ac_func=no"
10048fi
10049rm -f conftest*
10050fi
10051
10052if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10053 echo "$ac_t""yes" 1>&6
10054 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10055 cat >> confdefs.h <<EOF
10056#define $ac_tr_func 1
10057EOF
c63c7106
VZ
10058 cat >> confdefs.h <<\EOF
10059#define HAVE_INET_ADDR 1
10060EOF
10061
10f2d63a
VZ
10062else
10063 echo "$ac_t""no" 1>&6
c63c7106 10064echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
c7a2bf27 10065echo "configure:10066: checking for inet_addr in -lnsl" >&5
c63c7106
VZ
10066ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
10067if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10068 echo $ac_n "(cached) $ac_c" 1>&6
10069else
10070 ac_save_LIBS="$LIBS"
10071LIBS="-lnsl $LIBS"
10072cat > conftest.$ac_ext <<EOF
c7a2bf27 10073#line 10074 "configure"
c63c7106
VZ
10074#include "confdefs.h"
10075/* Override any gcc2 internal prototype to avoid an error. */
10076/* We use char because int might match the return type of a gcc2
10077 builtin and then its argument prototype would still apply. */
10078char inet_addr();
10079
10080int main() {
10081inet_addr()
10082; return 0; }
10083EOF
c7a2bf27 10084if { (eval echo configure:10085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10085 rm -rf conftest*
10086 eval "ac_cv_lib_$ac_lib_var=yes"
10087else
10088 echo "configure: failed program was:" >&5
10089 cat conftest.$ac_ext >&5
10090 rm -rf conftest*
10091 eval "ac_cv_lib_$ac_lib_var=no"
10092fi
10093rm -f conftest*
10094LIBS="$ac_save_LIBS"
10095
10096fi
10097if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10098 echo "$ac_t""yes" 1>&6
10099 INET_LINK="nsl"
10100else
10101 echo "$ac_t""no" 1>&6
10102echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
c7a2bf27 10103echo "configure:10104: checking for inet_addr in -lresolv" >&5
c63c7106
VZ
10104ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
10105if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10106 echo $ac_n "(cached) $ac_c" 1>&6
10107else
10108 ac_save_LIBS="$LIBS"
10109LIBS="-lresolv $LIBS"
10110cat > conftest.$ac_ext <<EOF
c7a2bf27 10111#line 10112 "configure"
c63c7106
VZ
10112#include "confdefs.h"
10113/* Override any gcc2 internal prototype to avoid an error. */
10114/* We use char because int might match the return type of a gcc2
10115 builtin and then its argument prototype would still apply. */
10116char inet_addr();
10117
10118int main() {
10119inet_addr()
10120; return 0; }
10121EOF
c7a2bf27 10122if { (eval echo configure:10123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
10123 rm -rf conftest*
10124 eval "ac_cv_lib_$ac_lib_var=yes"
10125else
10126 echo "configure: failed program was:" >&5
10127 cat conftest.$ac_ext >&5
10128 rm -rf conftest*
10129 eval "ac_cv_lib_$ac_lib_var=no"
10130fi
10131rm -f conftest*
10132LIBS="$ac_save_LIBS"
10133
10134fi
10135if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10136 echo "$ac_t""yes" 1>&6
10137 INET_LINK="resolv"
10138
10139else
10140 echo "$ac_t""no" 1>&6
10141fi
10142
10143
10144fi
10145
10146
10147
10f2d63a
VZ
10148fi
10149done
10150
c63c7106 10151
10f2d63a
VZ
10152for ac_func in inet_aton
10153do
10154echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c7a2bf27 10155echo "configure:10156: checking for $ac_func" >&5
10f2d63a
VZ
10156if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10157 echo $ac_n "(cached) $ac_c" 1>&6
10158else
10159 cat > conftest.$ac_ext <<EOF
c7a2bf27 10160#line 10161 "configure"
10f2d63a
VZ
10161#include "confdefs.h"
10162/* System header to define __stub macros and hopefully few prototypes,
10163 which can conflict with char $ac_func(); below. */
10164#include <assert.h>
10165/* Override any gcc2 internal prototype to avoid an error. */
10166/* We use char because int might match the return type of a gcc2
10167 builtin and then its argument prototype would still apply. */
10168char $ac_func();
69ffe1d2 10169char (*f)();
10f2d63a
VZ
10170
10171int main() {
10172
10173/* The GNU C library defines this for functions which it implements
10174 to always fail with ENOSYS. Some functions are actually named
10175 something starting with __ and the normal name is an alias. */
10176#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10177choke me
10178#else
69ffe1d2 10179f = $ac_func;
10f2d63a
VZ
10180#endif
10181
10182; return 0; }
10183EOF
c7a2bf27 10184if { (eval echo configure:10185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10185 rm -rf conftest*
10186 eval "ac_cv_func_$ac_func=yes"
10187else
10188 echo "configure: failed program was:" >&5
10189 cat conftest.$ac_ext >&5
10190 rm -rf conftest*
10191 eval "ac_cv_func_$ac_func=no"
10192fi
10193rm -f conftest*
10194fi
10195
10196if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10197 echo "$ac_t""yes" 1>&6
10198 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10199 cat >> confdefs.h <<EOF
10200#define $ac_tr_func 1
10201EOF
c63c7106
VZ
10202 cat >> confdefs.h <<\EOF
10203#define HAVE_INET_ATON 1
10204EOF
10205
10f2d63a
VZ
10206else
10207 echo "$ac_t""no" 1>&6
c63c7106 10208 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
c7a2bf27 10209echo "configure:10210: checking for inet_aton in -l$INET_LINK" >&5
c63c7106 10210ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
10f2d63a
VZ
10211if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10212 echo $ac_n "(cached) $ac_c" 1>&6
10213else
10214 ac_save_LIBS="$LIBS"
c63c7106 10215LIBS="-l$INET_LINK $LIBS"
10f2d63a 10216cat > conftest.$ac_ext <<EOF
c7a2bf27 10217#line 10218 "configure"
10f2d63a
VZ
10218#include "confdefs.h"
10219/* Override any gcc2 internal prototype to avoid an error. */
10220/* We use char because int might match the return type of a gcc2
10221 builtin and then its argument prototype would still apply. */
10222char inet_aton();
10223
10224int main() {
10225inet_aton()
10226; return 0; }
10227EOF
c7a2bf27 10228if { (eval echo configure:10229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10229 rm -rf conftest*
10230 eval "ac_cv_lib_$ac_lib_var=yes"
10231else
10232 echo "configure: failed program was:" >&5
10233 cat conftest.$ac_ext >&5
10234 rm -rf conftest*
10235 eval "ac_cv_lib_$ac_lib_var=no"
10236fi
10237rm -f conftest*
10238LIBS="$ac_save_LIBS"
10239
10240fi
10241if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10242 echo "$ac_t""yes" 1>&6
c63c7106
VZ
10243 cat >> confdefs.h <<\EOF
10244#define HAVE_INET_ATON 1
10f2d63a
VZ
10245EOF
10246
10f2d63a
VZ
10247else
10248 echo "$ac_t""no" 1>&6
10249fi
10250
c63c7106
VZ
10251
10252fi
10253done
10254
10255
10256if test "x$INET_LINK" != "x"; then
10257 cat >> confdefs.h <<\EOF
10258#define HAVE_INET_ADDR 1
10259EOF
10260
10261 INET_LINK="-l$INET_LINK"
10262fi
10f2d63a
VZ
10263
10264fi
10265
10266
10267cat > confcache <<\EOF
10268# This file is a shell script that caches the results of configure
10269# tests run on this system so they can be shared between configure
10270# scripts and configure runs. It is not useful on other systems.
10271# If it contains results you don't want to keep, you may remove or edit it.
10272#
10273# By default, configure uses ./config.cache as the cache file,
10274# creating it if it does not exist already. You can give configure
10275# the --cache-file=FILE option to use a different cache file; that is
10276# what configure does when it calls configure scripts in
10277# subdirectories, so they share the cache.
10278# Giving --cache-file=/dev/null disables caching, for debugging configure.
10279# config.status only pays attention to the cache file if you give it the
10280# --recheck option to rerun configure.
10281#
10282EOF
10283# The following way of writing the cache mishandles newlines in values,
10284# but we know of no workaround that is simple, portable, and efficient.
10285# So, don't put newlines in cache variables' values.
10286# Ultrix sh set writes to stderr and can't be redirected directly,
10287# and sets the high bit in the cache file unless we assign to the vars.
10288(set) 2>&1 |
10289 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10290 *ac_space=\ *)
10291 # `set' does not quote correctly, so add quotes (double-quote substitution
10292 # turns \\\\ into \\, and sed turns \\ into \).
10293 sed -n \
10294 -e "s/'/'\\\\''/g" \
10295 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10296 ;;
10297 *)
10298 # `set' quotes correctly as required by POSIX, so do not add quotes.
10299 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10300 ;;
10301 esac >> confcache
10302if cmp -s $cache_file confcache; then
10303 :
10304else
10305 if test -w $cache_file; then
10306 echo "updating cache $cache_file"
10307 cat confcache > $cache_file
10308 else
10309 echo "not updating unwritable cache $cache_file"
10310 fi
10311fi
10312rm -f confcache
10313
10314
10315
10316if test "$USE_UNIX" = 1; then
10317
10318
10319THREADS_LINK=""
10320THREADS_OBJ=""
10321
10322if test "$wxUSE_THREADS" = "yes" ; then
10323 if test "$wxUSE_WINE" = 1 ; then
10324 echo "configure: warning: Threads are not supported under WINE" 1>&2
10325 wxUSE_THREADS="no"
10326 fi
10327fi
10328
10329if test "$wxUSE_THREADS" = "yes" ; then
10330
10331 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
c7a2bf27 10332echo "configure:10333: checking for pthread_create in -lpthread" >&5
10f2d63a
VZ
10333ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
10334if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10335 echo $ac_n "(cached) $ac_c" 1>&6
10336else
10337 ac_save_LIBS="$LIBS"
10338LIBS="-lpthread $LIBS"
10339cat > conftest.$ac_ext <<EOF
c7a2bf27 10340#line 10341 "configure"
10f2d63a
VZ
10341#include "confdefs.h"
10342/* Override any gcc2 internal prototype to avoid an error. */
10343/* We use char because int might match the return type of a gcc2
10344 builtin and then its argument prototype would still apply. */
10345char pthread_create();
10346
10347int main() {
10348pthread_create()
10349; return 0; }
10350EOF
c7a2bf27 10351if { (eval echo configure:10352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10352 rm -rf conftest*
10353 eval "ac_cv_lib_$ac_lib_var=yes"
10354else
10355 echo "configure: failed program was:" >&5
10356 cat conftest.$ac_ext >&5
10357 rm -rf conftest*
10358 eval "ac_cv_lib_$ac_lib_var=no"
10359fi
10360rm -f conftest*
10361LIBS="$ac_save_LIBS"
10362
10363fi
10364if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10365 echo "$ac_t""yes" 1>&6
10366
10367 THREADS_OBJ="threadpsx.lo"
10368 THREADS_LINK="pthread"
10369
10370else
10371 echo "$ac_t""no" 1>&6
10372
10373 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
c7a2bf27 10374echo "configure:10375: checking for pthread_create in -lc_r" >&5
10f2d63a
VZ
10375ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
10376if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10377 echo $ac_n "(cached) $ac_c" 1>&6
10378else
10379 ac_save_LIBS="$LIBS"
10380LIBS="-lc_r $LIBS"
10381cat > conftest.$ac_ext <<EOF
c7a2bf27 10382#line 10383 "configure"
10f2d63a
VZ
10383#include "confdefs.h"
10384/* Override any gcc2 internal prototype to avoid an error. */
10385/* We use char because int might match the return type of a gcc2
10386 builtin and then its argument prototype would still apply. */
10387char pthread_create();
10388
10389int main() {
10390pthread_create()
10391; return 0; }
10392EOF
c7a2bf27 10393if { (eval echo configure:10394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10394 rm -rf conftest*
10395 eval "ac_cv_lib_$ac_lib_var=yes"
10396else
10397 echo "configure: failed program was:" >&5
10398 cat conftest.$ac_ext >&5
10399 rm -rf conftest*
10400 eval "ac_cv_lib_$ac_lib_var=no"
10401fi
10402rm -f conftest*
10403LIBS="$ac_save_LIBS"
10404
10405fi
10406if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10407 echo "$ac_t""yes" 1>&6
10408
10409 THREADS_OBJ="threadpsx.lo"
10410 THREADS_LINK="c_r"
10411
10412else
10413 echo "$ac_t""no" 1>&6
10414
10415 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
10416echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
c7a2bf27 10417echo "configure:10418: checking for sys/prctl.h" >&5
10f2d63a
VZ
10418if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10419 echo $ac_n "(cached) $ac_c" 1>&6
10420else
10421 cat > conftest.$ac_ext <<EOF
c7a2bf27 10422#line 10423 "configure"
10f2d63a
VZ
10423#include "confdefs.h"
10424#include <sys/prctl.h>
10425EOF
10426ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c7a2bf27 10427{ (eval echo configure:10428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10428ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10429if test -z "$ac_err"; then
10430 rm -rf conftest*
10431 eval "ac_cv_header_$ac_safe=yes"
10432else
10433 echo "$ac_err" >&5
10434 echo "configure: failed program was:" >&5
10435 cat conftest.$ac_ext >&5
10436 rm -rf conftest*
10437 eval "ac_cv_header_$ac_safe=no"
10438fi
10439rm -f conftest*
10440fi
10441if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10442 echo "$ac_t""yes" 1>&6
10443
10444 THREADS_OBJ="threadsgi.lo"
10445
10446else
10447 echo "$ac_t""no" 1>&6
10448fi
10449
10450
10451fi
10452
10453
10454fi
10455
10456
10457 if test -z "$THREADS_OBJ" ; then
10458 wxUSE_THREADS=no
10459 echo "configure: warning: No thread support on this system" 1>&2
10460 fi
10461fi
10462
10463if test "$wxUSE_THREADS" = "yes" ; then
10464
10465 for ac_hdr in sched.h
10466do
10467ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10468echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c7a2bf27 10469echo "configure:10470: checking for $ac_hdr" >&5
10f2d63a
VZ
10470if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10471 echo $ac_n "(cached) $ac_c" 1>&6
10472else
10473 cat > conftest.$ac_ext <<EOF
c7a2bf27 10474#line 10475 "configure"
10f2d63a
VZ
10475#include "confdefs.h"
10476#include <$ac_hdr>
10477EOF
10478ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c7a2bf27 10479{ (eval echo configure:10480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10480ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10481if test -z "$ac_err"; then
10482 rm -rf conftest*
10483 eval "ac_cv_header_$ac_safe=yes"
10484else
10485 echo "$ac_err" >&5
10486 echo "configure: failed program was:" >&5
10487 cat conftest.$ac_ext >&5
10488 rm -rf conftest*
10489 eval "ac_cv_header_$ac_safe=no"
10490fi
10491rm -f conftest*
10492fi
10493if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10494 echo "$ac_t""yes" 1>&6
10495 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10496 cat >> confdefs.h <<EOF
10497#define $ac_tr_hdr 1
10498EOF
10499
10500else
10501 echo "$ac_t""no" 1>&6
10502fi
10503done
10504
10505
10506 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
c7a2bf27 10507echo "configure:10508: checking for sched_yield in -l$THREADS_LINK" >&5
10f2d63a
VZ
10508ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
10509if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10510 echo $ac_n "(cached) $ac_c" 1>&6
10511else
10512 ac_save_LIBS="$LIBS"
10513LIBS="-l$THREADS_LINK $LIBS"
10514cat > conftest.$ac_ext <<EOF
c7a2bf27 10515#line 10516 "configure"
10f2d63a
VZ
10516#include "confdefs.h"
10517/* Override any gcc2 internal prototype to avoid an error. */
10518/* We use char because int might match the return type of a gcc2
10519 builtin and then its argument prototype would still apply. */
10520char sched_yield();
10521
10522int main() {
10523sched_yield()
10524; return 0; }
10525EOF
c7a2bf27 10526if { (eval echo configure:10527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10527 rm -rf conftest*
10528 eval "ac_cv_lib_$ac_lib_var=yes"
10529else
10530 echo "configure: failed program was:" >&5
10531 cat conftest.$ac_ext >&5
10532 rm -rf conftest*
10533 eval "ac_cv_lib_$ac_lib_var=no"
10534fi
10535rm -f conftest*
10536LIBS="$ac_save_LIBS"
10537
10538fi
10539if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10540 echo "$ac_t""yes" 1>&6
10541 cat >> confdefs.h <<\EOF
10542#define HAVE_SCHED_YIELD 1
10543EOF
10544
10545else
10546 echo "$ac_t""no" 1>&6
10547echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6
c7a2bf27 10548echo "configure:10549: checking for sched_yield in -l"posix4"" >&5
10f2d63a
VZ
10549ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
10550if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10551 echo $ac_n "(cached) $ac_c" 1>&6
10552else
10553 ac_save_LIBS="$LIBS"
10554LIBS="-l"posix4" $LIBS"
10555cat > conftest.$ac_ext <<EOF
c7a2bf27 10556#line 10557 "configure"
10f2d63a
VZ
10557#include "confdefs.h"
10558/* Override any gcc2 internal prototype to avoid an error. */
10559/* We use char because int might match the return type of a gcc2
10560 builtin and then its argument prototype would still apply. */
10561char sched_yield();
10562
10563int main() {
10564sched_yield()
10565; return 0; }
10566EOF
c7a2bf27 10567if { (eval echo configure:10568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10568 rm -rf conftest*
10569 eval "ac_cv_lib_$ac_lib_var=yes"
10570else
10571 echo "configure: failed program was:" >&5
10572 cat conftest.$ac_ext >&5
10573 rm -rf conftest*
10574 eval "ac_cv_lib_$ac_lib_var=no"
10575fi
10576rm -f conftest*
10577LIBS="$ac_save_LIBS"
10578
10579fi
10580if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10581 echo "$ac_t""yes" 1>&6
10582 cat >> confdefs.h <<\EOF
10583#define HAVE_SCHED_YIELD 1
10584EOF
10585 POSIX4_LINK="-lposix4"
10586else
10587 echo "$ac_t""no" 1>&6
10588echo "configure: warning: wxThread::Yield will not work properly" 1>&2
10589
10590fi
10591
10592
10593fi
10594
10595
10596 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
c7a2bf27 10597echo "configure:10598: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
10f2d63a
VZ
10598ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10599if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10600 echo $ac_n "(cached) $ac_c" 1>&6
10601else
10602 ac_save_LIBS="$LIBS"
10603LIBS="-l$THREADS_LINK $LIBS"
10604cat > conftest.$ac_ext <<EOF
c7a2bf27 10605#line 10606 "configure"
10f2d63a
VZ
10606#include "confdefs.h"
10607/* Override any gcc2 internal prototype to avoid an error. */
10608/* We use char because int might match the return type of a gcc2
10609 builtin and then its argument prototype would still apply. */
10610char pthread_attr_getschedpolicy();
10611
10612int main() {
10613pthread_attr_getschedpolicy()
10614; return 0; }
10615EOF
c7a2bf27 10616if { (eval echo configure:10617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10617 rm -rf conftest*
10618 eval "ac_cv_lib_$ac_lib_var=yes"
10619else
10620 echo "configure: failed program was:" >&5
10621 cat conftest.$ac_ext >&5
10622 rm -rf conftest*
10623 eval "ac_cv_lib_$ac_lib_var=no"
10624fi
10625rm -f conftest*
10626LIBS="$ac_save_LIBS"
10627
10628fi
10629if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10630 echo "$ac_t""yes" 1>&6
10631 cat >> confdefs.h <<\EOF
10632#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10633EOF
10634
10635else
10636 echo "$ac_t""no" 1>&6
10637echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6
c7a2bf27 10638echo "configure:10639: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5
10f2d63a
VZ
10639ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
10640if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10641 echo $ac_n "(cached) $ac_c" 1>&6
10642else
10643 ac_save_LIBS="$LIBS"
10644LIBS="-l"posix4" $LIBS"
10645cat > conftest.$ac_ext <<EOF
c7a2bf27 10646#line 10647 "configure"
10f2d63a
VZ
10647#include "confdefs.h"
10648/* Override any gcc2 internal prototype to avoid an error. */
10649/* We use char because int might match the return type of a gcc2
10650 builtin and then its argument prototype would still apply. */
10651char pthread_attr_getschedpolicy();
10652
10653int main() {
10654pthread_attr_getschedpolicy()
10655; return 0; }
10656EOF
c7a2bf27 10657if { (eval echo configure:10658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10658 rm -rf conftest*
10659 eval "ac_cv_lib_$ac_lib_var=yes"
10660else
10661 echo "configure: failed program was:" >&5
10662 cat conftest.$ac_ext >&5
10663 rm -rf conftest*
10664 eval "ac_cv_lib_$ac_lib_var=no"
10665fi
10666rm -f conftest*
10667LIBS="$ac_save_LIBS"
10668
10669fi
10670if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10671 echo "$ac_t""yes" 1>&6
10672 cat >> confdefs.h <<\EOF
10673#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
10674EOF
10675 POSIX4_LINK="-lposix4"
10676else
10677 echo "$ac_t""no" 1>&6
10678echo "configure: warning: Setting thread priority will not work" 1>&2
10679
10680fi
10681
10682
10683fi
10684
10685
10686 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
c7a2bf27 10687echo "configure:10688: checking for pthread_cancel in -l$THREADS_LINK" >&5
10f2d63a
VZ
10688ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
10689if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10690 echo $ac_n "(cached) $ac_c" 1>&6
10691else
10692 ac_save_LIBS="$LIBS"
10693LIBS="-l$THREADS_LINK $LIBS"
10694cat > conftest.$ac_ext <<EOF
c7a2bf27 10695#line 10696 "configure"
10f2d63a
VZ
10696#include "confdefs.h"
10697/* Override any gcc2 internal prototype to avoid an error. */
10698/* We use char because int might match the return type of a gcc2
10699 builtin and then its argument prototype would still apply. */
10700char pthread_cancel();
10701
10702int main() {
10703pthread_cancel()
10704; return 0; }
10705EOF
c7a2bf27 10706if { (eval echo configure:10707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10707 rm -rf conftest*
10708 eval "ac_cv_lib_$ac_lib_var=yes"
10709else
10710 echo "configure: failed program was:" >&5
10711 cat conftest.$ac_ext >&5
10712 rm -rf conftest*
10713 eval "ac_cv_lib_$ac_lib_var=no"
10714fi
10715rm -f conftest*
10716LIBS="$ac_save_LIBS"
10717
10718fi
10719if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10720 echo "$ac_t""yes" 1>&6
10721 cat >> confdefs.h <<\EOF
10722#define HAVE_PTHREAD_CANCEL 1
10723EOF
10724
10725else
10726 echo "$ac_t""no" 1>&6
10727echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10728fi
10729
10730
10731 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
c7a2bf27 10732echo "configure:10733: checking for pthread_cleanup_push/pop" >&5
10f2d63a
VZ
10733if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
10734 echo $ac_n "(cached) $ac_c" 1>&6
10735else
10736
10737 cat > conftest.$ac_ext <<EOF
c7a2bf27 10738#line 10739 "configure"
10f2d63a
VZ
10739#include "confdefs.h"
10740#include <pthread.h>
10741int main() {
10742
10743 pthread_cleanup_push(NULL, NULL);
10744 pthread_cleanup_pop(0);
10745
10746; return 0; }
10747EOF
c7a2bf27 10748if { (eval echo configure:10749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a
VZ
10749 rm -rf conftest*
10750
10751 wx_cv_func_pthread_cleanup_push=yes
10752 cat >> confdefs.h <<\EOF
10753#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
10754EOF
10755
10756
10757else
10758 echo "configure: failed program was:" >&5
10759 cat conftest.$ac_ext >&5
10760 rm -rf conftest*
10761
10762 wx_cv_func_pthread_cleanup_push=no
10763
10764fi
10765rm -f conftest*
10766
10767fi
10768
10769echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
10770
10771 THREADS_LINK="-l$THREADS_LINK"
10772fi
10773
10774fi
10775
10776if test "$wxUSE_THREADS" = "yes"; then
10777 cat >> confdefs.h <<\EOF
10778#define wxUSE_THREADS 1
10779EOF
10780
10781
10782 CFLAGS="${CFLAGS} -D_REENTRANT"
10783 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
10784
10785 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
10786else
10787 if test "$ac_cv_func_strtok_r" = "yes"; then
ab9b9eab 10788 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
c7a2bf27 10789echo "configure:10790: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
10790 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
10791 CFLAGS="${CFLAGS} -D_REENTRANT"
10792 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
10793 echo "$ac_t""yes" 1>&6
10794 else
10795 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10796 fi
10797 fi
10798fi
10799
10800if test "$WXGTK12" = 1 ; then
10801 cat >> confdefs.h <<EOF
10802#define __WXGTK12__ $WXGTK12
10803EOF
10804
10805fi
10806
10807if test "$WXWINE" = 1 ; then
10808 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
10809fi
10810
10811if test "$wxUSE_CYGWIN" = 1 ; then
10812 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
10813fi
10814
10815WXDEBUG=
10816
10817if test "$wxUSE_DEBUG_INFO" = "yes" ; then
10818 WXDEBUG="-g"
10819 wxUSE_OPTIMISE=no
10820fi
10821
10822if test "$wxUSE_DEBUG_GDB" = "yes" ; then
10823 wxUSE_DEBUG_INFO=yes
10824 WXDEBUG="-ggdb"
10825fi
10826
10827if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
10828 cat >> confdefs.h <<\EOF
10829#define WXDEBUG 1
10830EOF
10831
10832 WXDEBUG_DEFINE="-D__WXDEBUG__"
10833else
10834 if test "$wxUSE_GTK" = 1 ; then
10835 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
10836 fi
10837fi
10838
10839if test "$wxUSE_MEM_TRACING" = "yes" ; then
10840 cat >> confdefs.h <<\EOF
10841#define wxUSE_MEMORY_TRACING 1
10842EOF
10843
10844 cat >> confdefs.h <<\EOF
10845#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
10846EOF
10847
10848 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
10849fi
10850
10851if test "$wxUSE_DMALLOC" = "yes" ; then
10852 DMALLOC_LINK="-ldmalloc"
10853fi
10854
10855PROFILE=
10856if test "$wxUSE_PROFILE" = "yes" ; then
10857 PROFILE="-pg"
10858fi
10859
10860DEP_INFO_FLAGS=
10861if test "$GCC" = yes ; then
10862 if test "$wxUSE_NO_RTTI" = "yes" ; then
10863 WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-rtti"
10864 fi
10865 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
10866 WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-exceptions"
10867 fi
10868 if test "$wxUSE_PERMISSIVE" = "yes" ; then
10869 CFLAGS="${CFLAGS} -fpermissive"
10870 CXXFLAGS="${CXXFLAGS} -fpermissive"
10871 fi
10872 if test "$wxUSE_NO_DEPS" = "no" ; then
10873 DEP_INFO_FLAGS="-MMD"
10874 fi
10875fi
10876
10877
10878CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
10879CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
10880if test "$wxUSE_OPTIMISE" = "no" ; then
10881 OPTIMISE=
10882else
10883 if test "$GCC" = yes ; then
10884 OPTIMISE="-O2"
10885 case "${host}" in
10886 i586-*-*|i686-*-* )
10887 OPTIMISE="${OPTIMISE} "
10888 ;;
10889 esac
10890 else
10891 OPTIMISE="-O"
10892 fi
10893fi
10894
10895
10896ZLIB_INCLUDE=
10897if test "$wxUSE_ZLIB" = "yes" ; then
10898 cat >> confdefs.h <<\EOF
10899#define wxUSE_ZLIB 1
10900EOF
10901
10902 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
10903fi
10904
10905PNG_INCLUDE=
10906if test "$wxUSE_LIBPNG" = "yes" ; then
10907 cat >> confdefs.h <<\EOF
10908#define wxUSE_LIBPNG 1
10909EOF
10910
10911 PNG_INCLUDE="-I\${top_srcdir}/src/png"
10912 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
10913fi
10914
10915JPEG_INCLUDE=
10916if test "$wxUSE_LIBJPEG" = "yes" ; then
10917 cat >> confdefs.h <<\EOF
10918#define wxUSE_LIBJPEG 1
10919EOF
10920
10921 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
10922fi
10923
c7a2bf27
RR
10924TIFF_INCLUDE=
10925if test "$wxUSE_LIBTIFF" = "yes" ; then
10926 cat >> confdefs.h <<\EOF
10927#define wxUSE_LIBTIFF 1
10928EOF
10929
10930 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
10931fi
10932
10f2d63a
VZ
10933if test "$wxUSE_OPENGL" = "yes"; then
10934 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
10935echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
c7a2bf27 10936echo "configure:10937: checking for GL/gl.h" >&5
10f2d63a
VZ
10937if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10938 echo $ac_n "(cached) $ac_c" 1>&6
10939else
10940 cat > conftest.$ac_ext <<EOF
c7a2bf27 10941#line 10942 "configure"
10f2d63a
VZ
10942#include "confdefs.h"
10943#include <GL/gl.h>
10944EOF
10945ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c7a2bf27 10946{ (eval echo configure:10947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
10947ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10948if test -z "$ac_err"; then
10949 rm -rf conftest*
10950 eval "ac_cv_header_$ac_safe=yes"
10951else
10952 echo "$ac_err" >&5
10953 echo "configure: failed program was:" >&5
10954 cat conftest.$ac_ext >&5
10955 rm -rf conftest*
10956 eval "ac_cv_header_$ac_safe=no"
10957fi
10958rm -f conftest*
10959fi
10960if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10961 echo "$ac_t""yes" 1>&6
10962
10963 echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6
c7a2bf27 10964echo "configure:10965: checking for glInitNames in -lGL" >&5
10f2d63a
VZ
10965ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'`
10966if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10967 echo $ac_n "(cached) $ac_c" 1>&6
10968else
10969 ac_save_LIBS="$LIBS"
10970LIBS="-lGL wxUSE_OPENGL=0 $LIBS"
10971cat > conftest.$ac_ext <<EOF
c7a2bf27 10972#line 10973 "configure"
10f2d63a
VZ
10973#include "confdefs.h"
10974/* Override any gcc2 internal prototype to avoid an error. */
10975/* We use char because int might match the return type of a gcc2
10976 builtin and then its argument prototype would still apply. */
10977char glInitNames();
10978
10979int main() {
10980glInitNames()
10981; return 0; }
10982EOF
c7a2bf27 10983if { (eval echo configure:10984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
10984 rm -rf conftest*
10985 eval "ac_cv_lib_$ac_lib_var=yes"
10986else
10987 echo "configure: failed program was:" >&5
10988 cat conftest.$ac_ext >&5
10989 rm -rf conftest*
10990 eval "ac_cv_lib_$ac_lib_var=no"
10991fi
10992rm -f conftest*
10993LIBS="$ac_save_LIBS"
10994
10995fi
10996if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10997 echo "$ac_t""yes" 1>&6
10998
10999 OPENGL_LINK="-lGL"
11000 cat >> confdefs.h <<\EOF
11001#define wxUSE_OPENGL 1
11002EOF
11003
11004 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11005
11006else
11007 echo "$ac_t""no" 1>&6
11008
11009 echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6
c7a2bf27 11010echo "configure:11011: checking for glInitNames in -lMesaGL" >&5
10f2d63a
VZ
11011ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'`
11012if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11013 echo $ac_n "(cached) $ac_c" 1>&6
11014else
11015 ac_save_LIBS="$LIBS"
11016LIBS="-lMesaGL $LIBS"
11017cat > conftest.$ac_ext <<EOF
c7a2bf27 11018#line 11019 "configure"
10f2d63a
VZ
11019#include "confdefs.h"
11020/* Override any gcc2 internal prototype to avoid an error. */
11021/* We use char because int might match the return type of a gcc2
11022 builtin and then its argument prototype would still apply. */
11023char glInitNames();
11024
11025int main() {
11026glInitNames()
11027; return 0; }
11028EOF
c7a2bf27 11029if { (eval echo configure:11030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11030 rm -rf conftest*
11031 eval "ac_cv_lib_$ac_lib_var=yes"
11032else
11033 echo "configure: failed program was:" >&5
11034 cat conftest.$ac_ext >&5
11035 rm -rf conftest*
11036 eval "ac_cv_lib_$ac_lib_var=no"
11037fi
11038rm -f conftest*
11039LIBS="$ac_save_LIBS"
11040
11041fi
11042if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11043 echo "$ac_t""yes" 1>&6
11044
11045 OPENGL_LINK="-lMesaGL"
11046 cat >> confdefs.h <<\EOF
11047#define wxUSE_OPENGL 1
11048EOF
11049
11050 UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src"
11051
11052else
11053 echo "$ac_t""no" 1>&6
11054wxUSE_OPENGL=0
11055fi
11056
11057
11058fi
11059
11060
11061else
11062 echo "$ac_t""no" 1>&6
11063wxUSE_OPENGL=0
11064fi
11065
11066fi
11067
11068
11069if test "$wxUSE_GUI" = "yes"; then
11070 cat >> confdefs.h <<\EOF
11071#define wxUSE_GUI 1
11072EOF
11073
11074
11075 else
11076 cat >> confdefs.h <<\EOF
11077#define wxUSE_NOGUI 1
11078EOF
11079
11080fi
11081
11082
11083if test "$wxUSE_UNIX" = "yes"; then
11084 cat >> confdefs.h <<\EOF
11085#define wxUSE_UNIX 1
11086EOF
11087
11088fi
11089
11090
11091if test "$wxUSE_APPLE_IEEE" = "yes"; then
11092 cat >> confdefs.h <<\EOF
11093#define wxUSE_APPLE_IEEE 1
11094EOF
11095
11096fi
11097
10f2d63a
VZ
11098if test "$wxUSE_WAVE" = "yes"; then
11099 cat >> confdefs.h <<\EOF
11100#define wxUSE_WAVE 1
11101EOF
11102
11103fi
11104
11105if test "$wxUSE_FILE" = "yes"; then
11106 cat >> confdefs.h <<\EOF
11107#define wxUSE_FILE 1
11108EOF
11109
11110fi
11111
11112if test "$wxUSE_FS_INET" = "yes"; then
11113 cat >> confdefs.h <<\EOF
11114#define wxUSE_FS_INET 1
11115EOF
11116
11117fi
11118
11119if test "$wxUSE_FS_ZIP" = "yes"; then
11120 cat >> confdefs.h <<\EOF
11121#define wxUSE_FS_ZIP 1
11122EOF
11123
11124fi
11125
11126if test "$wxUSE_ZIPSTREAM" = "yes"; then
11127 cat >> confdefs.h <<\EOF
11128#define wxUSE_ZIPSTREAM 1
11129EOF
11130
11131fi
11132
11133if test "$wxUSE_BUSYINFO" = "yes"; then
11134 cat >> confdefs.h <<\EOF
11135#define wxUSE_BUSYINFO 1
11136EOF
11137
11138fi
11139
11140if test "$wxUSE_STD_IOSTREAM" = "yes"; then
11141 cat >> confdefs.h <<\EOF
11142#define wxUSE_STD_IOSTREAM 1
11143EOF
11144
11145fi
11146
11147if test "$wxUSE_TEXTFILE" = "yes"; then
11148 if test "$wxUSE_FILE" != "yes"; then
11149 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
11150 else
11151 cat >> confdefs.h <<\EOF
11152#define wxUSE_TEXTFILE 1
11153EOF
11154
11155 fi
11156fi
11157
11158if test "$wxUSE_CONFIG" = "yes" ; then
11159 if test "$wxUSE_TEXTFILE" != "yes"; then
11160 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
11161 else
11162 cat >> confdefs.h <<\EOF
11163#define wxUSE_CONFIG 1
11164EOF
11165
11166 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
11167 fi
11168fi
11169
11170if test "$wxUSE_INTL" = "yes" ; then
11171 if test "$wxUSE_FILE" != "yes"; then
11172 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
11173 else
11174 cat >> confdefs.h <<\EOF
11175#define wxUSE_INTL 1
11176EOF
11177
11178 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
11179 fi
11180fi
11181
11182if test "$wxUSE_LOG" = "yes"; then
11183 cat >> confdefs.h <<\EOF
11184#define wxUSE_LOG 1
11185EOF
11186
11187fi
11188
11189if test "$wxUSE_LONGLONG" = "yes"; then
11190 cat >> confdefs.h <<\EOF
11191#define wxUSE_LONGLONG 1
11192EOF
11193
11194fi
11195
10f2d63a
VZ
11196if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
11197 cat >> confdefs.h <<\EOF
11198#define wxUSE_DIALUP_MANAGER 1
11199EOF
11200
678b92a9 11201 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS nettest"
10f2d63a
VZ
11202fi
11203
11204if test "$wxUSE_STREAMS" = "yes" ; then
11205 cat >> confdefs.h <<\EOF
11206#define wxUSE_STREAMS 1
11207EOF
11208
11209fi
11210
11211if test "$wxUSE_SERIAL" = "yes" ; then
11212 cat >> confdefs.h <<\EOF
11213#define wxUSE_SERIAL 1
11214EOF
11215
11216fi
11217
11218
afc31813 11219if test "$wxUSE_TIMEDATE" = "yes"; then
0470b1e6 11220 for ac_func in localtime gettimeofday ftime
afc31813
VZ
11221do
11222echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c7a2bf27 11223echo "configure:11224: checking for $ac_func" >&5
afc31813
VZ
11224if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11225 echo $ac_n "(cached) $ac_c" 1>&6
11226else
11227 cat > conftest.$ac_ext <<EOF
c7a2bf27 11228#line 11229 "configure"
10f2d63a 11229#include "confdefs.h"
afc31813
VZ
11230/* System header to define __stub macros and hopefully few prototypes,
11231 which can conflict with char $ac_func(); below. */
11232#include <assert.h>
11233/* Override any gcc2 internal prototype to avoid an error. */
11234/* We use char because int might match the return type of a gcc2
11235 builtin and then its argument prototype would still apply. */
11236char $ac_func();
69ffe1d2 11237char (*f)();
afc31813 11238
10f2d63a 11239int main() {
afc31813
VZ
11240
11241/* The GNU C library defines this for functions which it implements
11242 to always fail with ENOSYS. Some functions are actually named
11243 something starting with __ and the normal name is an alias. */
11244#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11245choke me
11246#else
69ffe1d2 11247f = $ac_func;
afc31813
VZ
11248#endif
11249
10f2d63a
VZ
11250; return 0; }
11251EOF
c7a2bf27 11252if { (eval echo configure:11253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a 11253 rm -rf conftest*
afc31813 11254 eval "ac_cv_func_$ac_func=yes"
10f2d63a
VZ
11255else
11256 echo "configure: failed program was:" >&5
11257 cat conftest.$ac_ext >&5
11258 rm -rf conftest*
afc31813
VZ
11259 eval "ac_cv_func_$ac_func=no"
11260fi
11261rm -f conftest*
11262fi
11263
11264if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11265 echo "$ac_t""yes" 1>&6
11266 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11267 cat >> confdefs.h <<EOF
11268#define $ac_tr_func 1
11269EOF
0470b1e6 11270 break
afc31813
VZ
11271else
11272 echo "$ac_t""no" 1>&6
11273fi
11274done
11275
11276
0470b1e6
VZ
11277 if test "$ac_cv_func_localtime" = "yes"; then
11278 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
c7a2bf27 11279echo "configure:11280: checking for tm_gmtoff in struct tm" >&5
0470b1e6
VZ
11280if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
11281 echo $ac_n "(cached) $ac_c" 1>&6
11282else
11283
11284 cat > conftest.$ac_ext <<EOF
c7a2bf27 11285#line 11286 "configure"
0470b1e6
VZ
11286#include "confdefs.h"
11287
11288 #include <time.h>
11289
11290int main() {
11291
11292 struct tm tm;
11293 tm.tm_gmtoff++;
11294
11295; return 0; }
11296EOF
c7a2bf27 11297if { (eval echo configure:11298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0470b1e6
VZ
11298 rm -rf conftest*
11299
f03a98d8 11300 wx_cv_struct_tm_has_gmtoff=yes
0470b1e6
VZ
11301 cat >> confdefs.h <<\EOF
11302#define WX_GMTOFF_IN_TM 1
11303EOF
11304
11305
11306else
11307 echo "configure: failed program was:" >&5
11308 cat conftest.$ac_ext >&5
11309 rm -rf conftest*
11310 wx_cv_struct_tm_has_gmtoff=no
11311
11312fi
11313rm -f conftest*
11314
11315fi
11316
11317echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
11318 elif test "$ac_cv_func_gettimeofday" = "yes"; then
afc31813 11319 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
c7a2bf27 11320echo "configure:11321: checking whether gettimeofday takes two arguments" >&5
afc31813
VZ
11321if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
11322 echo $ac_n "(cached) $ac_c" 1>&6
11323else
11324
11325
11326 ac_ext=C
11327# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11328ac_cpp='$CXXCPP $CPPFLAGS'
11329ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11330ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11331cross_compiling=$ac_cv_prog_cxx_cross
11332
11333
11334 cat > conftest.$ac_ext <<EOF
c7a2bf27 11335#line 11336 "configure"
10f2d63a 11336#include "confdefs.h"
afc31813
VZ
11337
11338 #include <sys/time.h>
11339 #include <unistd.h>
11340
10f2d63a 11341int main() {
afc31813
VZ
11342
11343 struct timeval tv;
11344 struct timezone tz;
11345 gettimeofday(&tv, &tz);
11346
10f2d63a
VZ
11347; return 0; }
11348EOF
c7a2bf27 11349if { (eval echo configure:11350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 11350 rm -rf conftest*
afc31813 11351 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a
VZ
11352else
11353 echo "configure: failed program was:" >&5
11354 cat conftest.$ac_ext >&5
11355 rm -rf conftest*
11356 cat > conftest.$ac_ext <<EOF
c7a2bf27 11357#line 11358 "configure"
10f2d63a 11358#include "confdefs.h"
afc31813
VZ
11359
11360 #include <sys/time.h>
11361 #include <unistd.h>
11362
10f2d63a 11363int main() {
afc31813
VZ
11364
11365 struct timeval tv;
11366 gettimeofday(&tv);
11367
10f2d63a
VZ
11368; return 0; }
11369EOF
c7a2bf27 11370if { (eval echo configure:11371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10f2d63a 11371 rm -rf conftest*
afc31813 11372 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a
VZ
11373else
11374 echo "configure: failed program was:" >&5
11375 cat conftest.$ac_ext >&5
11376 rm -rf conftest*
afc31813
VZ
11377 wx_cv_func_gettimeofday_has_2_args=unknown
11378
10f2d63a
VZ
11379fi
11380rm -f conftest*
afc31813 11381
10f2d63a
VZ
11382fi
11383rm -f conftest*
afc31813 11384 ac_ext=c
10f2d63a
VZ
11385# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11386ac_cpp='$CPP $CPPFLAGS'
11387ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11388ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11389cross_compiling=$ac_cv_prog_cc_cross
11390
afc31813
VZ
11391
11392fi
11393
11394echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 11395
afc31813
VZ
11396 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
11397 cat >> confdefs.h <<\EOF
11398#define WX_GETTIMEOFDAY_NO_TZ 1
11399EOF
11400
11401 fi
11402 fi
11403
11404 cat >> confdefs.h <<\EOF
11405#define wxUSE_TIMEDATE 1
11406EOF
11407
11408 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
11409fi
11410
11411
11412if test "$wxUSE_SOCKETS" = "yes"; then
c63c7106 11413 echo $ac_n "checking for socket""... $ac_c" 1>&6
c7a2bf27 11414echo "configure:11415: checking for socket" >&5
c63c7106
VZ
11415if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
11416 echo $ac_n "(cached) $ac_c" 1>&6
11417else
11418 cat > conftest.$ac_ext <<EOF
c7a2bf27 11419#line 11420 "configure"
c63c7106
VZ
11420#include "confdefs.h"
11421/* System header to define __stub macros and hopefully few prototypes,
11422 which can conflict with char socket(); below. */
11423#include <assert.h>
11424/* Override any gcc2 internal prototype to avoid an error. */
11425/* We use char because int might match the return type of a gcc2
11426 builtin and then its argument prototype would still apply. */
11427char socket();
69ffe1d2 11428char (*f)();
c63c7106
VZ
11429
11430int main() {
11431
11432/* The GNU C library defines this for functions which it implements
11433 to always fail with ENOSYS. Some functions are actually named
11434 something starting with __ and the normal name is an alias. */
11435#if defined (__stub_socket) || defined (__stub___socket)
11436choke me
11437#else
69ffe1d2 11438f = socket;
c63c7106
VZ
11439#endif
11440
11441; return 0; }
11442EOF
c7a2bf27 11443if { (eval echo configure:11444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11444 rm -rf conftest*
11445 eval "ac_cv_func_socket=yes"
11446else
11447 echo "configure: failed program was:" >&5
11448 cat conftest.$ac_ext >&5
11449 rm -rf conftest*
11450 eval "ac_cv_func_socket=no"
11451fi
11452rm -f conftest*
11453fi
11454
11455if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
11456 echo "$ac_t""yes" 1>&6
11457 :
11458else
11459 echo "$ac_t""no" 1>&6
11460echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
c7a2bf27 11461echo "configure:11462: checking for socket in -lsocket" >&5
c63c7106
VZ
11462ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
11463if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11464 echo $ac_n "(cached) $ac_c" 1>&6
11465else
11466 ac_save_LIBS="$LIBS"
11467LIBS="-lsocket $LIBS"
11468cat > conftest.$ac_ext <<EOF
c7a2bf27 11469#line 11470 "configure"
c63c7106
VZ
11470#include "confdefs.h"
11471/* Override any gcc2 internal prototype to avoid an error. */
11472/* We use char because int might match the return type of a gcc2
11473 builtin and then its argument prototype would still apply. */
11474char socket();
11475
11476int main() {
11477socket()
11478; return 0; }
11479EOF
c7a2bf27 11480if { (eval echo configure:11481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
c63c7106
VZ
11481 rm -rf conftest*
11482 eval "ac_cv_lib_$ac_lib_var=yes"
11483else
11484 echo "configure: failed program was:" >&5
11485 cat conftest.$ac_ext >&5
11486 rm -rf conftest*
11487 eval "ac_cv_lib_$ac_lib_var=no"
11488fi
11489rm -f conftest*
11490LIBS="$ac_save_LIBS"
11491
11492fi
11493if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11494 echo "$ac_t""yes" 1>&6
11495 INET_LINK="$INET_LINK -lsocket"
c63c7106
VZ
11496else
11497 echo "$ac_t""no" 1>&6
afc31813
VZ
11498
11499 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
11500 wxUSE_SOCKETS=no
11501
11502
c63c7106
VZ
11503fi
11504
11505
11506fi
11507
10f2d63a
VZ
11508fi
11509
afc31813
VZ
11510if test "$wxUSE_SOCKETS" = "yes" ; then
11511
11512 ac_ext=C
11513# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11514ac_cpp='$CXXCPP $CPPFLAGS'
11515ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11516ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11517cross_compiling=$ac_cv_prog_cxx_cross
11518
11519 echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6
c7a2bf27 11520echo "configure:11521: checking the type of the third argument of getsockname" >&5
afc31813 11521 cat > conftest.$ac_ext <<EOF
c7a2bf27 11522#line 11523 "configure"
afc31813
VZ
11523#include "confdefs.h"
11524#include <sys/socket.h>
11525int main() {
11526socklen_t len; getsockname(0, 0, &len);
11527; return 0; }
11528EOF
c7a2bf27 11529if { (eval echo configure:11530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813
VZ
11530 rm -rf conftest*
11531 cat >> confdefs.h <<\EOF
11532#define SOCKLEN_T socklen_t
11533EOF
11534 echo "$ac_t""socklen_t" 1>&6
11535else
11536 echo "configure: failed program was:" >&5
11537 cat conftest.$ac_ext >&5
11538 rm -rf conftest*
11539 cat > conftest.$ac_ext <<EOF
c7a2bf27 11540#line 11541 "configure"
afc31813
VZ
11541#include "confdefs.h"
11542#include <sys/socket.h>
11543int main() {
11544size_t len; getsockname(0, 0, &len);
11545; return 0; }
11546EOF
c7a2bf27 11547if { (eval echo configure:11548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813
VZ
11548 rm -rf conftest*
11549 cat >> confdefs.h <<\EOF
11550#define SOCKLEN_T size_t
11551EOF
11552 echo "$ac_t""size_t" 1>&6
11553else
11554 echo "configure: failed program was:" >&5
11555 cat conftest.$ac_ext >&5
11556 rm -rf conftest*
11557 cat > conftest.$ac_ext <<EOF
c7a2bf27 11558#line 11559 "configure"
afc31813
VZ
11559#include "confdefs.h"
11560#include <sys/socket.h>
11561int main() {
11562int len; getsockname(0, 0, &len);
11563; return 0; }
11564EOF
c7a2bf27 11565if { (eval echo configure:11566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
afc31813
VZ
11566 rm -rf conftest*
11567 cat >> confdefs.h <<\EOF
11568#define SOCKLEN_T int
11569EOF
11570 echo "$ac_t""int" 1>&6
11571else
11572 echo "configure: failed program was:" >&5
11573 cat conftest.$ac_ext >&5
11574 rm -rf conftest*
11575 echo "$ac_t""unknown" 1>&6
11576
11577fi
11578rm -f conftest*
11579
11580fi
11581rm -f conftest*
11582
11583fi
11584rm -f conftest*
11585 ac_ext=c
11586# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11587ac_cpp='$CPP $CPPFLAGS'
11588ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11589ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11590cross_compiling=$ac_cv_prog_cc_cross
11591
11592
11593 cat >> confdefs.h <<\EOF
11594#define wxUSE_SOCKETS 1
11595EOF
11596
11597 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wxsocket"
11598 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
11599fi
11600
10f2d63a
VZ
11601
11602if test "$wxUSE_JOYSTICK" = 1; then
11603 for ac_hdr in linux/joystick.h
11604do
11605ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11606echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c7a2bf27 11607echo "configure:11608: checking for $ac_hdr" >&5
10f2d63a
VZ
11608if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11609 echo $ac_n "(cached) $ac_c" 1>&6
11610else
11611 cat > conftest.$ac_ext <<EOF
c7a2bf27 11612#line 11613 "configure"
10f2d63a
VZ
11613#include "confdefs.h"
11614#include <$ac_hdr>
11615EOF
11616ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c7a2bf27 11617{ (eval echo configure:11618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
11618ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11619if test -z "$ac_err"; then
11620 rm -rf conftest*
11621 eval "ac_cv_header_$ac_safe=yes"
11622else
11623 echo "$ac_err" >&5
11624 echo "configure: failed program was:" >&5
11625 cat conftest.$ac_ext >&5
11626 rm -rf conftest*
11627 eval "ac_cv_header_$ac_safe=no"
11628fi
11629rm -f conftest*
11630fi
11631if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11632 echo "$ac_t""yes" 1>&6
11633 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11634 cat >> confdefs.h <<EOF
11635#define $ac_tr_hdr 1
11636EOF
11637
11638else
11639 echo "$ac_t""no" 1>&6
11640fi
11641done
11642
11643 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
11644 cat >> confdefs.h <<\EOF
11645#define wxUSE_JOYSTICK 1
11646EOF
11647
11648 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
11649 fi
11650fi
11651
11652
11653HAVE_DL_FUNCS=0
11654HAVE_SHL_FUNCS=0
11655if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
11656 for ac_func in dlopen
11657do
11658echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c7a2bf27 11659echo "configure:11660: checking for $ac_func" >&5
10f2d63a
VZ
11660if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11661 echo $ac_n "(cached) $ac_c" 1>&6
11662else
11663 cat > conftest.$ac_ext <<EOF
c7a2bf27 11664#line 11665 "configure"
10f2d63a
VZ
11665#include "confdefs.h"
11666/* System header to define __stub macros and hopefully few prototypes,
11667 which can conflict with char $ac_func(); below. */
11668#include <assert.h>
11669/* Override any gcc2 internal prototype to avoid an error. */
11670/* We use char because int might match the return type of a gcc2
11671 builtin and then its argument prototype would still apply. */
11672char $ac_func();
69ffe1d2 11673char (*f)();
10f2d63a
VZ
11674
11675int main() {
11676
11677/* The GNU C library defines this for functions which it implements
11678 to always fail with ENOSYS. Some functions are actually named
11679 something starting with __ and the normal name is an alias. */
11680#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11681choke me
11682#else
69ffe1d2 11683f = $ac_func;
10f2d63a
VZ
11684#endif
11685
11686; return 0; }
11687EOF
c7a2bf27 11688if { (eval echo configure:11689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11689 rm -rf conftest*
11690 eval "ac_cv_func_$ac_func=yes"
11691else
11692 echo "configure: failed program was:" >&5
11693 cat conftest.$ac_ext >&5
11694 rm -rf conftest*
11695 eval "ac_cv_func_$ac_func=no"
11696fi
11697rm -f conftest*
11698fi
11699
11700if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11701 echo "$ac_t""yes" 1>&6
11702 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11703 cat >> confdefs.h <<EOF
11704#define $ac_tr_func 1
11705EOF
11706
11707 cat >> confdefs.h <<\EOF
11708#define HAVE_DLOPEN 1
11709EOF
11710
11711 HAVE_DL_FUNCS=1
11712
11713else
11714 echo "$ac_t""no" 1>&6
11715echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
c7a2bf27 11716echo "configure:11717: checking for dlopen in -ldl" >&5
10f2d63a
VZ
11717ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11718if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11719 echo $ac_n "(cached) $ac_c" 1>&6
11720else
11721 ac_save_LIBS="$LIBS"
11722LIBS="-ldl $LIBS"
11723cat > conftest.$ac_ext <<EOF
c7a2bf27 11724#line 11725 "configure"
10f2d63a
VZ
11725#include "confdefs.h"
11726/* Override any gcc2 internal prototype to avoid an error. */
11727/* We use char because int might match the return type of a gcc2
11728 builtin and then its argument prototype would still apply. */
11729char dlopen();
11730
11731int main() {
11732dlopen()
11733; return 0; }
11734EOF
c7a2bf27 11735if { (eval echo configure:11736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11736 rm -rf conftest*
11737 eval "ac_cv_lib_$ac_lib_var=yes"
11738else
11739 echo "configure: failed program was:" >&5
11740 cat conftest.$ac_ext >&5
11741 rm -rf conftest*
11742 eval "ac_cv_lib_$ac_lib_var=no"
11743fi
11744rm -f conftest*
11745LIBS="$ac_save_LIBS"
11746
11747fi
11748if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11749 echo "$ac_t""yes" 1>&6
11750
11751 cat >> confdefs.h <<\EOF
11752#define HAVE_DLOPEN 1
11753EOF
11754
11755 HAVE_DL_FUNCS=1
11756 LIBS="$LIBS -ldl"
11757
11758else
11759 echo "$ac_t""no" 1>&6
11760
11761 for ac_func in shl_load
11762do
11763echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
c7a2bf27 11764echo "configure:11765: checking for $ac_func" >&5
10f2d63a
VZ
11765if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11766 echo $ac_n "(cached) $ac_c" 1>&6
11767else
11768 cat > conftest.$ac_ext <<EOF
c7a2bf27 11769#line 11770 "configure"
10f2d63a
VZ
11770#include "confdefs.h"
11771/* System header to define __stub macros and hopefully few prototypes,
11772 which can conflict with char $ac_func(); below. */
11773#include <assert.h>
11774/* Override any gcc2 internal prototype to avoid an error. */
11775/* We use char because int might match the return type of a gcc2
11776 builtin and then its argument prototype would still apply. */
11777char $ac_func();
69ffe1d2 11778char (*f)();
10f2d63a
VZ
11779
11780int main() {
11781
11782/* The GNU C library defines this for functions which it implements
11783 to always fail with ENOSYS. Some functions are actually named
11784 something starting with __ and the normal name is an alias. */
11785#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11786choke me
11787#else
69ffe1d2 11788f = $ac_func;
10f2d63a
VZ
11789#endif
11790
11791; return 0; }
11792EOF
c7a2bf27 11793if { (eval echo configure:11794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10f2d63a
VZ
11794 rm -rf conftest*
11795 eval "ac_cv_func_$ac_func=yes"
11796else
11797 echo "configure: failed program was:" >&5
11798 cat conftest.$ac_ext >&5
11799 rm -rf conftest*
11800 eval "ac_cv_func_$ac_func=no"
11801fi
11802rm -f conftest*
11803fi
11804
11805if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11806 echo "$ac_t""yes" 1>&6
11807 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11808 cat >> confdefs.h <<EOF
11809#define $ac_tr_func 1
11810EOF
11811
11812 cat >> confdefs.h <<\EOF
11813#define HAVE_SHL_LOAD 1
11814EOF
11815
11816 HAVE_SHL_FUNCS=1
11817
11818else
11819 echo "$ac_t""no" 1>&6
11820fi
11821done
11822
11823
11824fi
11825
11826
11827fi
11828done
11829
11830
11831 if test "$HAVE_DL_FUNCS" = 0; then
11832 if test "$HAVE_SHL_FUNCS" = 0; then
11833 if test "$USE_UNIX" = 1; then
11834 echo "configure: warning: "--with-dynlib and --with-odbc will be disabled due to missing shared library support"" 1>&2
11835 wxUSE_ODBC=no
11836 wxUSE_DYNLIB_CLASS=no
11837 else
11838 echo "configure: warning: "Cannot check dynlib requirements on non-Unix platforms. dynlib remains enabled."" 1>&2
11839 fi
11840 fi
11841 fi
11842fi
11843
11844if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
11845 cat >> confdefs.h <<\EOF
11846#define wxUSE_DYNLIB_CLASS 1
11847EOF
11848
11849fi
11850
11851
11852if test "$wxUSE_UNICODE" = "yes" ; then
11853 cat >> confdefs.h <<\EOF
11854#define wxUSE_UNICODE 1
11855EOF
11856
11857fi
11858
11859if test "$wxUSE_WCSRTOMBS" = "yes" ; then
11860 cat >> confdefs.h <<\EOF
11861#define wxUSE_WCSRTOMBS 1
11862EOF
11863
11864fi
11865
11866if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
11867 cat >> confdefs.h <<\EOF
11868#define wxUSE_EXPERIMENTAL_PRINTF 1
11869EOF
11870
11871fi
11872
11873
11874IODBC_C_SRC=""
11875if test "$wxUSE_ODBC" = "yes" ; then
11876 cat >> confdefs.h <<\EOF
11877#define wxUSE_ODBC 1
11878EOF
11879
11880 WXODBCFLAG="-D_IODBC_"
11881 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
11882 IODBCOBJS="\$(IODBC_OBJS)"
11883else
11884 IODBCOBJS=
11885fi
11886
11887
11888if test "$wxUSE_POSTSCRIPT" = "yes" ; then
11889 cat >> confdefs.h <<\EOF
11890#define wxUSE_POSTSCRIPT 1
11891EOF
11892
11893fi
11894
11895cat >> confdefs.h <<\EOF
11896#define wxUSE_AFM_FOR_POSTSCRIPT 1
11897EOF
11898
11899
11900cat >> confdefs.h <<\EOF
11901#define wxUSE_NORMALIZED_PS_FONTS 1
11902EOF
11903
11904
11905
11906if test "$wxUSE_CONSTRAINTS" = "yes"; then
11907 cat >> confdefs.h <<\EOF
11908#define wxUSE_CONSTRAINTS 1
11909EOF
11910
11911 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
11912fi
11913
11914if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
11915 cat >> confdefs.h <<\EOF
11916#define wxUSE_MDI_ARCHITECTURE 1
11917EOF
11918
11919 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
11920fi
11921
11922if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
11923 cat >> confdefs.h <<\EOF
11924#define wxUSE_DOC_VIEW_ARCHITECTURE 1
11925EOF
11926
11927 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
11928 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
11929 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
11930 fi
11931fi
11932
11933if test "$wxUSE_HELP" = "yes"; then
11934 cat >> confdefs.h <<\EOF
11935#define wxUSE_HELP 1
11936EOF
11937
11938 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
11939fi
11940
11941if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
11942 if test "$wxUSE_CONSTRAINTS" != "yes"; then
11943 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
11944 else
11945 cat >> confdefs.h <<\EOF
11946#define wxUSE_PRINTING_ARCHITECTURE 1
11947EOF
11948
11949 fi
11950 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
11951fi
11952
11953if test "$wxUSE_PROLOGIO" = "yes" ; then
11954 cat >> confdefs.h <<\EOF
11955#define wxUSE_PROLOGIO 1
11956EOF
11957
11958fi
11959
11960if test "$wxUSE_RESOURCES" = "yes" ; then
11961 if test "$wxUSE_PROLOGIO" = "yes" ; then
11962 cat >> confdefs.h <<\EOF
11963#define wxUSE_RESOURCES 1
11964EOF
11965
11966 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
11967 else
11968 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
11969 fi
11970fi
11971
11972if test "$wxUSE_X_RESOURCES" = "yes"; then
11973 cat >> confdefs.h <<\EOF
11974#define wxUSE_X_RESOURCES 1
11975EOF
11976
11977fi
11978
11979
11980if test "$wxUSE_IPC" = "yes"; then
11981 cat >> confdefs.h <<\EOF
11982#define wxUSE_IPC 1
11983EOF
11984
11985fi
11986
11987if test "$wxUSE_CLIPBOARD" = "yes"; then
11988 cat >> confdefs.h <<\EOF
11989#define wxUSE_CLIPBOARD 1
11990EOF
11991
11992fi
11993
11994if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
11995 if test "$wxUSE_GTK" = 1; then
11996 if test "$WXGTK12" != 1; then
11997 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
11998 wxUSE_DRAG_AND_DROP=no
11999 fi
12000 fi
12001
12002 if test "$wxUSE_MOTIF" = 1; then
12003 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
12004 wxUSE_DRAG_AND_DROP=no
12005 fi
12006
12007 if test "$USE_WIN32" = 1; then
12008 for ac_hdr in ole2.h
12009do
12010ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12011echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
c7a2bf27 12012echo "configure:12013: checking for $ac_hdr" >&5
10f2d63a
VZ
12013if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12014 echo $ac_n "(cached) $ac_c" 1>&6
12015else
12016 cat > conftest.$ac_ext <<EOF
c7a2bf27 12017#line 12018 "configure"
10f2d63a
VZ
12018#include "confdefs.h"
12019#include <$ac_hdr>
12020EOF
12021ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
c7a2bf27 12022{ (eval echo configure:12023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10f2d63a
VZ
12023ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12024if test -z "$ac_err"; then
12025 rm -rf conftest*
12026 eval "ac_cv_header_$ac_safe=yes"
12027else
12028 echo "$ac_err" >&5
12029 echo "configure: failed program was:" >&5
12030 cat conftest.$ac_ext >&5
12031 rm -rf conftest*
12032 eval "ac_cv_header_$ac_safe=no"
12033fi
12034rm -f conftest*
12035fi
12036if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12037 echo "$ac_t""yes" 1>&6
12038 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12039 cat >> confdefs.h <<EOF
12040#define $ac_tr_hdr 1
12041EOF
12042
12043else
12044 echo "$ac_t""no" 1>&6
12045fi
12046done
12047
12048 if test "x$HAVE_OLE2_H" = x ; then
12049 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
12050 wxUSE_DRAG_AND_DROP=no
12051 fi
12052 fi
12053
12054 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
12055 cat >> confdefs.h <<\EOF
12056#define wxUSE_DRAG_AND_DROP 1
12057EOF
12058
12059 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
12060 fi
12061
12062fi
12063
12064if test "$wxUSE_SPLINES" = "yes" ; then
12065 cat >> confdefs.h <<\EOF
12066#define wxUSE_SPLINES 1
12067EOF
12068
12069fi
12070
12071
12072if test "$wxUSE_ACCEL" = "yes"; then
12073 cat >> confdefs.h <<\EOF
12074#define wxUSE_ACCEL 1
12075EOF
12076
12077fi
12078
12079if test "$wxUSE_CARET" = "yes"; then
12080 cat >> confdefs.h <<\EOF
12081#define wxUSE_CARET 1
12082EOF
12083
12084 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
12085fi
12086
12087if test "$wxUSE_COMBOBOX" = "yes"; then
12088 cat >> confdefs.h <<\EOF
12089#define wxUSE_COMBOBOX 1
12090EOF
12091
12092fi
12093
12094if test "$wxUSE_CHOICE" = "yes"; then
12095 cat >> confdefs.h <<\EOF
12096#define wxUSE_CHOICE 1
12097EOF
12098
12099fi
12100
12101if test "$wxUSE_BMPBUTTON" = "yes"; then
12102 cat >> confdefs.h <<\EOF
12103#define wxUSE_BMPBUTTON 1
12104EOF
12105
12106fi
12107
12108if test "$wxUSE_CHECKBOX" = "yes"; then
12109 cat >> confdefs.h <<\EOF
12110#define wxUSE_CHECKBOX 1
12111EOF
12112
12113fi
12114
12115if test "$wxUSE_CHECKLST" = "yes"; then
12116 cat >> confdefs.h <<\EOF
12117#define wxUSE_CHECKLISTBOX 1
12118EOF
12119
12120 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
12121fi
12122
12123if test "$wxUSE_GAUGE" = "yes"; then
12124 cat >> confdefs.h <<\EOF
12125#define wxUSE_GAUGE 1
12126EOF
12127
12128fi
12129
12130if test "$wxUSE_GRID" = "yes"; then
12131 cat >> confdefs.h <<\EOF
12132#define wxUSE_GRID 1
12133EOF
12134
12135 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
12136fi
12137
12138if test "$wxUSE_NEW_GRID" = "yes"; then
12139 cat >> confdefs.h <<\EOF
12140#define wxUSE_NEW_GRID 1
12141EOF
12142
12143 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
12144fi
12145
12146if test "$wxUSE_IMAGLIST" = "yes"; then
12147 cat >> confdefs.h <<\EOF
12148#define wxUSE_IMAGLIST 1
12149EOF
12150
12151fi
12152
12153if test "$wxUSE_LISTBOX" = "yes"; then
12154 cat >> confdefs.h <<\EOF
12155#define wxUSE_LISTBOX 1
12156EOF
12157
12158fi
12159
12160if test "$wxUSE_LISTCTRL" = "yes"; then
12161 if test "$wxUSE_IMAGLIST" = "yes"; then
12162 cat >> confdefs.h <<\EOF
12163#define wxUSE_LISTCTRL 1
12164EOF
12165
12166 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
12167 else
12168 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
12169 fi
12170fi
12171
12172if test "$wxUSE_NOTEBOOK" = "yes"; then
12173 cat >> confdefs.h <<\EOF
12174#define wxUSE_NOTEBOOK 1
12175EOF
12176
12177 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
12178fi
12179
12180if test "$wxUSE_RADIOBOX" = "yes"; then
12181 cat >> confdefs.h <<\EOF
12182#define wxUSE_RADIOBOX 1
12183EOF
12184
12185fi
12186
12187if test "$wxUSE_RADIOBTN" = "yes"; then
12188 cat >> confdefs.h <<\EOF
12189#define wxUSE_RADIOBTN 1
12190EOF
12191
12192fi
12193
12194if test "$wxUSE_SASH" = "yes"; then
12195 cat >> confdefs.h <<\EOF
12196#define wxUSE_SASH 1
12197EOF
12198
12199 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
12200fi
12201
12202if test "$wxUSE_SCROLLBAR" = "yes"; then
12203 cat >> confdefs.h <<\EOF
12204#define wxUSE_SCROLLBAR 1
12205EOF
12206
741a9306 12207 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
12208fi
12209
12210if test "$wxUSE_SLIDER" = "yes"; then
12211 cat >> confdefs.h <<\EOF
12212#define wxUSE_SLIDER 1
12213EOF
12214
12215fi
12216
12217if test "$wxUSE_SPINBTN" = "yes"; then
12218 cat >> confdefs.h <<\EOF
12219#define wxUSE_SPINBTN 1
12220EOF
12221
12222fi
12223
56cfaa52
RR
12224if test "$wxUSE_SPINCTRL" = "yes"; then
12225 cat >> confdefs.h <<\EOF
12226#define wxUSE_SPINCTRL 1
12227EOF
12228
12229fi
12230
10f2d63a
VZ
12231if test "$wxUSE_SPLITTER" = "yes"; then
12232 cat >> confdefs.h <<\EOF
12233#define wxUSE_SPLITTER 1
12234EOF
12235
12236 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
12237fi
12238
12239if test "$wxUSE_STATBMP" = "yes"; then
12240 cat >> confdefs.h <<\EOF
12241#define wxUSE_STATBMP 1
12242EOF
12243
12244fi
12245
12246if test "$wxUSE_STATBOX" = "yes"; then
12247 cat >> confdefs.h <<\EOF
12248#define wxUSE_STATBOX 1
12249EOF
12250
12251fi
12252
12253if test "$wxUSE_STATLINE" = "yes"; then
12254 if test "$wxUSE_WINE" = 1 ; then
12255 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
12256 else
12257 cat >> confdefs.h <<\EOF
12258#define wxUSE_STATLINE 1
12259EOF
12260
12261 fi
12262fi
12263
12264if test "$wxUSE_STATUSBAR" = "yes"; then
12265 cat >> confdefs.h <<\EOF
12266#define wxUSE_STATUSBAR 1
12267EOF
12268
12269fi
12270
12271if test "$wxUSE_TABDIALOG" = "yes"; then
12272 cat >> confdefs.h <<\EOF
12273#define wxUSE_TAB_DIALOG 1
12274EOF
12275
12276 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
12277fi
12278
12279if test "$wxUSE_TOOLBAR" = "yes"; then
12280 cat >> confdefs.h <<\EOF
12281#define wxUSE_TOOLBAR 1
12282EOF
12283
12284 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
12285fi
12286
12287if test "$wxUSE_TOOLTIPS" = "yes"; then
12288 if test "$wxUSE_MOTIF" = 1; then
12289 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
12290 else
12291 if test "$wxUSE_WINE" = 1; then
12292 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
12293 else
12294 cat >> confdefs.h <<\EOF
12295#define wxUSE_TOOLTIPS 1
12296EOF
12297
12298 fi
12299 fi
12300fi
12301
12302if test "$wxUSE_TREECTRL" = "yes"; then
12303 if test "$wxUSE_IMAGLIST" = "yes"; then
12304 cat >> confdefs.h <<\EOF
12305#define wxUSE_TREECTRL 1
12306EOF
12307
12308 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
12309 else
12310 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
12311 fi
12312fi
12313
12314
12315
12316if test "$wxUSE_METAFILE" = "yes"; then
12317 cat >> confdefs.h <<\EOF
12318#define wxUSE_METAFILE 1
12319EOF
12320
12321fi
12322
12323if test "$wxUSE_DIRDLG" = "yes"; then
12324 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12325 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
12326 else
12327 if test "$wxUSE_TREECTRL" != "yes"; then
12328 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
12329 else
12330 cat >> confdefs.h <<\EOF
12331#define wxUSE_DIRDLG 1
12332EOF
12333
12334 fi
12335 fi
12336fi
12337
12338if test "$wxUSE_TEXTDLG" = "yes"; then
12339 cat >> confdefs.h <<\EOF
12340#define wxUSE_TEXTDLG 1
12341EOF
12342
12343fi
12344
12345if test "$wxUSE_STARTUP_TIPS" = "yes"; then
12346 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12347 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
12348 else
12349 cat >> confdefs.h <<\EOF
12350#define wxUSE_STARTUP_TIPS 1
12351EOF
12352
12353 fi
12354fi
12355
12356if test "$wxUSE_PROGRESSDLG" = "yes"; then
12357 if test "$wxUSE_CONSTRAINTS" != "yes"; then
12358 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
12359 else
12360 cat >> confdefs.h <<\EOF
12361#define wxUSE_PROGRESSDLG 1
12362EOF
12363
12364 fi
12365fi
12366
12367if test "$wxUSE_MINIFRAME" = "yes"; then
12368 cat >> confdefs.h <<\EOF
12369#define wxUSE_MINIFRAME 1
12370EOF
12371
12372 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
12373fi
12374
12375if test "$wxUSE_HTML" = "yes"; then
12376 cat >> confdefs.h <<\EOF
12377#define wxUSE_HTML 1
12378EOF
12379
12380 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
12381 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
12382fi
12383
12384if test "$wxUSE_VALIDATORS" = "yes"; then
12385 cat >> confdefs.h <<\EOF
12386#define wxUSE_VALIDATORS 1
12387EOF
12388
12389 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
12390fi
12391
12392if test "$wxUSE_GIF" = "yes" ; then
12393 cat >> confdefs.h <<\EOF
12394#define wxUSE_GIF 1
12395EOF
12396
12397fi
12398
12399if test "$wxUSE_PCX" = "yes" ; then
12400 cat >> confdefs.h <<\EOF
12401#define wxUSE_PCX 1
12402EOF
12403
12404fi
12405
12406if test "$wxUSE_PNM" = "yes" ; then
12407 cat >> confdefs.h <<\EOF
12408#define wxUSE_PNM 1
12409EOF
12410
12411fi
12412
12413
12414GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
12415
c63c7106 12416EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
10f2d63a
VZ
12417if test "$wxUSE_GUI" = "yes"; then
12418 EXTRA_LIBS="$EXTRA_LIBS $GUILIBS"
12419fi
12420
12421LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
12422
c7a2bf27 12423INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
10f2d63a
VZ
12424
12425if test "$GXX" = yes ; then
12426 CXXWARNINGS="-Wall"
12427 fi
12428EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
12429
12430CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'`
12431CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
12432
12433if test "$wxUSE_GUI" = "yes"; then
12434
12435 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS bombs controls dialogs drawing dynamic \
741a9306 12436 font forty fractal image minimal richedit wxpoem"
10f2d63a
VZ
12437else
12438 SAMPLES_SUBDIRS=""
12439fi
12440
12441SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '`"
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
c7a2bf27 12497echo "configure:12498: checking whether ${MAKE-make} sets \${MAKE}" >&5
10f2d63a
VZ
12498set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
12499if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
12500 echo $ac_n "(cached) $ac_c" 1>&6
12501else
12502 cat > conftestmake <<\EOF
12503all:
12504 @echo 'ac_maketemp="${MAKE}"'
12505EOF
12506# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12507eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
12508if test -n "$ac_maketemp"; then
12509 eval ac_cv_prog_make_${ac_make}_set=yes
12510else
12511 eval ac_cv_prog_make_${ac_make}_set=no
12512fi
12513rm -f conftestmake
12514fi
12515if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
12516 echo "$ac_t""yes" 1>&6
12517 SET_MAKE=
12518else
12519 echo "$ac_t""no" 1>&6
12520 SET_MAKE="MAKE=${MAKE-make}"
12521fi
12522
12523
12524
12525
12526if test "${TOOLKIT_DIR}" = "msw" ; then
12527 GL_TOOLKIT_DIR="win"
12528else
12529 GL_TOOLKIT_DIR="${TOOLKIT_DIR}"
12530fi
12531
12532
12533trap '' 1 2 15
12534cat > confcache <<\EOF
12535# This file is a shell script that caches the results of configure
12536# tests run on this system so they can be shared between configure
12537# scripts and configure runs. It is not useful on other systems.
12538# If it contains results you don't want to keep, you may remove or edit it.
12539#
12540# By default, configure uses ./config.cache as the cache file,
12541# creating it if it does not exist already. You can give configure
12542# the --cache-file=FILE option to use a different cache file; that is
12543# what configure does when it calls configure scripts in
12544# subdirectories, so they share the cache.
12545# Giving --cache-file=/dev/null disables caching, for debugging configure.
12546# config.status only pays attention to the cache file if you give it the
12547# --recheck option to rerun configure.
12548#
12549EOF
12550# The following way of writing the cache mishandles newlines in values,
12551# but we know of no workaround that is simple, portable, and efficient.
12552# So, don't put newlines in cache variables' values.
12553# Ultrix sh set writes to stderr and can't be redirected directly,
12554# and sets the high bit in the cache file unless we assign to the vars.
12555(set) 2>&1 |
12556 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12557 *ac_space=\ *)
12558 # `set' does not quote correctly, so add quotes (double-quote substitution
12559 # turns \\\\ into \\, and sed turns \\ into \).
12560 sed -n \
12561 -e "s/'/'\\\\''/g" \
12562 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12563 ;;
12564 *)
12565 # `set' quotes correctly as required by POSIX, so do not add quotes.
12566 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12567 ;;
12568 esac >> confcache
12569if cmp -s $cache_file confcache; then
12570 :
12571else
12572 if test -w $cache_file; then
12573 echo "updating cache $cache_file"
12574 cat confcache > $cache_file
12575 else
12576 echo "not updating unwritable cache $cache_file"
12577 fi
12578fi
12579rm -f confcache
12580
12581trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12582
12583test "x$prefix" = xNONE && prefix=$ac_default_prefix
12584# Let make expand exec_prefix.
12585test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12586
12587# Any assignment to VPATH causes Sun make to only execute
12588# the first set of double-colon rules, so remove it if not needed.
12589# If there is a colon in the path, we need to keep it.
12590if test "x$srcdir" = x.; then
12591 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12592fi
12593
12594trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12595
12596DEFS=-DHAVE_CONFIG_H
12597
12598# Without the "./", some shells look in PATH for config.status.
12599: ${CONFIG_STATUS=./config.status}
12600
12601echo creating $CONFIG_STATUS
12602rm -f $CONFIG_STATUS
12603cat > $CONFIG_STATUS <<EOF
12604#! /bin/sh
12605# Generated automatically by configure.
12606# Run this file to recreate the current configuration.
12607# This directory was configured as follows,
12608# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12609#
12610# $0 $ac_configure_args
12611#
12612# Compiler output produced by configure, useful for debugging
12613# configure, is in ./config.log if it exists.
12614
12615ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12616for ac_option
12617do
12618 case "\$ac_option" in
12619 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12620 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12621 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12622 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
69ffe1d2 12623 echo "$CONFIG_STATUS generated by autoconf version 2.14"
10f2d63a
VZ
12624 exit 0 ;;
12625 -help | --help | --hel | --he | --h)
12626 echo "\$ac_cs_usage"; exit 0 ;;
12627 *) echo "\$ac_cs_usage"; exit 1 ;;
12628 esac
12629done
12630
12631ac_given_srcdir=$srcdir
12632ac_given_INSTALL="$INSTALL"
12633
12634trap 'rm -fr `echo "
12635 wx-config
12636 src/make.env
12637 src/makeprog.env
12638 src/makelib.env
12639 Makefile
12640 samples/Makefile
12641 samples/bombs/Makefile
12642 samples/caret/Makefile
12643 samples/checklst/Makefile
12644 samples/config/Makefile
12645 samples/controls/Makefile
12646 samples/db/Makefile
12647 samples/dialogs/Makefile
12648 samples/docview/Makefile
12649 samples/docvwmdi/Makefile
12650 samples/dnd/Makefile
12651 samples/drawing/Makefile
12652 samples/forty/Makefile
678b92a9 12653 samples/font/Makefile
10f2d63a
VZ
12654 samples/fractal/Makefile
12655 samples/image/Makefile
12656 samples/internat/Makefile
12657 samples/layout/Makefile
12658 samples/listctrl/Makefile
12659 samples/mdi/Makefile
12660 samples/minifram/Makefile
12661 samples/minimal/Makefile
12662 samples/nettest/Makefile
12663 samples/newgrid/Makefile
12664 samples/notebook/Makefile
12665 samples/png/Makefile
12666 samples/printing/Makefile
12667 samples/proplist/Makefile
12668 samples/richedit/Makefile
12669 samples/resource/Makefile
12670 samples/sashtest/Makefile
12671 samples/scroll/Makefile
12672 samples/scrollsub/Makefile
12673 samples/splitter/Makefile
12674 samples/text/Makefile
12675 samples/thread/Makefile
12676 samples/toolbar/Makefile
12677 samples/treectrl/Makefile
12678 samples/typetest/Makefile
12679 samples/validate/Makefile
12680 samples/wxpoem/Makefile
12681 samples/wxsocket/Makefile
12682 samples/wizard/Makefile
12683 samples/html/Makefile
12684 samples/html/about/Makefile
12685 samples/html/help/Makefile
12686 samples/html/printing/Makefile
fc9c7c09 12687 samples/html/helpview/Makefile
10f2d63a
VZ
12688 samples/html/test/Makefile
12689 samples/html/zip/Makefile
12690 samples/html/virtual/Makefile
12691 samples/html/widget/Makefile
12692 utils/Makefile
12693 utils/wxMMedia2/Makefile
12694 utils/wxMMedia2/lib/Makefile
12695 utils/wxMMedia2/sample/Makefile
12696 utils/glcanvas/Makefile
12697 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
12698 utils/ogl/Makefile
12699 utils/ogl/src/Makefile
12700 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12701EOF
12702cat >> $CONFIG_STATUS <<EOF
12703
12704# Protect against being on the right side of a sed subst in config.status.
12705sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12706 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12707$ac_vpsub
12708$extrasub
12709s%@SHELL@%$SHELL%g
12710s%@CFLAGS@%$CFLAGS%g
12711s%@CPPFLAGS@%$CPPFLAGS%g
12712s%@CXXFLAGS@%$CXXFLAGS%g
12713s%@FFLAGS@%$FFLAGS%g
12714s%@DEFS@%$DEFS%g
12715s%@LDFLAGS@%$LDFLAGS%g
12716s%@LIBS@%$LIBS%g
12717s%@exec_prefix@%$exec_prefix%g
12718s%@prefix@%$prefix%g
12719s%@program_transform_name@%$program_transform_name%g
12720s%@bindir@%$bindir%g
12721s%@sbindir@%$sbindir%g
12722s%@libexecdir@%$libexecdir%g
12723s%@datadir@%$datadir%g
12724s%@sysconfdir@%$sysconfdir%g
12725s%@sharedstatedir@%$sharedstatedir%g
12726s%@localstatedir@%$localstatedir%g
12727s%@libdir@%$libdir%g
12728s%@includedir@%$includedir%g
12729s%@oldincludedir@%$oldincludedir%g
12730s%@infodir@%$infodir%g
12731s%@mandir@%$mandir%g
12732s%@host@%$host%g
12733s%@host_alias@%$host_alias%g
12734s%@host_cpu@%$host_cpu%g
12735s%@host_vendor@%$host_vendor%g
12736s%@host_os@%$host_os%g
12737s%@target@%$target%g
12738s%@target_alias@%$target_alias%g
12739s%@target_cpu@%$target_cpu%g
12740s%@target_vendor@%$target_vendor%g
12741s%@target_os@%$target_os%g
12742s%@build@%$build%g
12743s%@build_alias@%$build_alias%g
12744s%@build_cpu@%$build_cpu%g
12745s%@build_vendor@%$build_vendor%g
12746s%@build_os@%$build_os%g
12747s%@CC@%$CC%g
12748s%@CPP@%$CPP%g
12749s%@CXX@%$CXX%g
12750s%@CXXCPP@%$CXXCPP%g
12751s%@RANLIB@%$RANLIB%g
12752s%@AR@%$AR%g
12753s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12754s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12755s%@INSTALL_DATA@%$INSTALL_DATA%g
12756s%@STRIP@%$STRIP%g
12757s%@YACC@%$YACC%g
12758s%@LEX@%$LEX%g
12759s%@LEXLIB@%$LEXLIB%g
12760s%@LN_S@%$LN_S%g
12761s%@GTK_CONFIG@%$GTK_CONFIG%g
12762s%@GTK_CFLAGS@%$GTK_CFLAGS%g
12763s%@GTK_LIBS@%$GTK_LIBS%g
ab9b9eab
VZ
12764s%@X_CFLAGS@%$X_CFLAGS%g
12765s%@X_PRE_LIBS@%$X_PRE_LIBS%g
12766s%@X_LIBS@%$X_LIBS%g
12767s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
10f2d63a
VZ
12768s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
12769s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
12770s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
12771s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
12772s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
12773s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
12774s%@WX_LIBRARY@%$WX_LIBRARY%g
12775s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
12776s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
12777s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
12778s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
12779s%@PROGRAM_EXT@%$PROGRAM_EXT%g
12780s%@WX_ALL@%$WX_ALL%g
12781s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
12782s%@SHARED_LD@%$SHARED_LD%g
12783s%@PIC_FLAG@%$PIC_FLAG%g
12784s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
12785s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
12786s%@TOOLKIT@%$TOOLKIT%g
12787s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
12788s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
12789s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
12790s%@GUIHEADERS@%$GUIHEADERS%g
12791s%@GUIOBJS@%$GUIOBJS%g
12792s%@COMMONOBJS@%$COMMONOBJS%g
12793s%@GENERICOBJS@%$GENERICOBJS%g
12794s%@GUIDEPS@%$GUIDEPS%g
12795s%@COMMONDEPS@%$COMMONDEPS%g
12796s%@GENERICDEPS@%$GENERICDEPS%g
12797s%@IODBCOBJS@%$IODBCOBJS%g
12798s%@UNIXOBJS@%$UNIXOBJS%g
12799s%@UNIXDEPS@%$UNIXDEPS%g
12800s%@ALL_OBJECTS@%$ALL_OBJECTS%g
12801s%@ALL_DEPFILES@%$ALL_DEPFILES%g
12802s%@ALL_HEADERS@%$ALL_HEADERS%g
12803s%@GUIDIST@%$GUIDIST%g
12804s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
12805s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
12806s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
12807s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
12808s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
12809s%@USER_SUBDIRS@%$USER_SUBDIRS%g
12810s%@EXTRA_LIBS@%$EXTRA_LIBS%g
12811s%@LD_LIBS@%$LD_LIBS%g
12812s%@SET_MAKE@%$SET_MAKE%g
12813s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g
12814
12815CEOF
12816EOF
12817
12818cat >> $CONFIG_STATUS <<\EOF
12819
12820# Split the substitutions into bite-sized pieces for seds with
12821# small command number limits, like on Digital OSF/1 and HP-UX.
12822ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12823ac_file=1 # Number of current file.
12824ac_beg=1 # First line for current file.
12825ac_end=$ac_max_sed_cmds # Line after last line for current file.
12826ac_more_lines=:
12827ac_sed_cmds=""
12828while $ac_more_lines; do
12829 if test $ac_beg -gt 1; then
12830 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12831 else
12832 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12833 fi
12834 if test ! -s conftest.s$ac_file; then
12835 ac_more_lines=false
12836 rm -f conftest.s$ac_file
12837 else
12838 if test -z "$ac_sed_cmds"; then
12839 ac_sed_cmds="sed -f conftest.s$ac_file"
12840 else
12841 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12842 fi
12843 ac_file=`expr $ac_file + 1`
12844 ac_beg=$ac_end
12845 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12846 fi
12847done
12848if test -z "$ac_sed_cmds"; then
12849 ac_sed_cmds=cat
12850fi
12851EOF
12852
12853cat >> $CONFIG_STATUS <<EOF
12854
12855CONFIG_FILES=\${CONFIG_FILES-"wx-config
12856 src/make.env
12857 src/makeprog.env
12858 src/makelib.env
12859 Makefile
12860 samples/Makefile
12861 samples/bombs/Makefile
12862 samples/caret/Makefile
12863 samples/checklst/Makefile
12864 samples/config/Makefile
12865 samples/controls/Makefile
12866 samples/db/Makefile
12867 samples/dialogs/Makefile
12868 samples/docview/Makefile
12869 samples/docvwmdi/Makefile
12870 samples/dnd/Makefile
12871 samples/drawing/Makefile
12872 samples/forty/Makefile
678b92a9 12873 samples/font/Makefile
10f2d63a
VZ
12874 samples/fractal/Makefile
12875 samples/image/Makefile
12876 samples/internat/Makefile
12877 samples/layout/Makefile
12878 samples/listctrl/Makefile
12879 samples/mdi/Makefile
12880 samples/minifram/Makefile
12881 samples/minimal/Makefile
12882 samples/nettest/Makefile
12883 samples/newgrid/Makefile
12884 samples/notebook/Makefile
12885 samples/png/Makefile
12886 samples/printing/Makefile
12887 samples/proplist/Makefile
12888 samples/richedit/Makefile
12889 samples/resource/Makefile
12890 samples/sashtest/Makefile
12891 samples/scroll/Makefile
12892 samples/scrollsub/Makefile
12893 samples/splitter/Makefile
12894 samples/text/Makefile
12895 samples/thread/Makefile
12896 samples/toolbar/Makefile
12897 samples/treectrl/Makefile
12898 samples/typetest/Makefile
12899 samples/validate/Makefile
12900 samples/wxpoem/Makefile
12901 samples/wxsocket/Makefile
12902 samples/wizard/Makefile
12903 samples/html/Makefile
12904 samples/html/about/Makefile
12905 samples/html/help/Makefile
12906 samples/html/printing/Makefile
fc9c7c09 12907 samples/html/helpview/Makefile
10f2d63a
VZ
12908 samples/html/test/Makefile
12909 samples/html/zip/Makefile
12910 samples/html/virtual/Makefile
12911 samples/html/widget/Makefile
12912 utils/Makefile
12913 utils/wxMMedia2/Makefile
12914 utils/wxMMedia2/lib/Makefile
12915 utils/wxMMedia2/sample/Makefile
12916 utils/glcanvas/Makefile
12917 utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile
12918 utils/ogl/Makefile
12919 utils/ogl/src/Makefile
12920 "}
12921EOF
12922cat >> $CONFIG_STATUS <<\EOF
12923for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12924 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12925 case "$ac_file" in
12926 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12927 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12928 *) ac_file_in="${ac_file}.in" ;;
12929 esac
12930
12931 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12932
12933 # Remove last slash and all that follows it. Not all systems have dirname.
12934 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12935 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12936 # The file is in a subdirectory.
12937 test ! -d "$ac_dir" && mkdir "$ac_dir"
12938 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12939 # A "../" for each directory in $ac_dir_suffix.
12940 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12941 else
12942 ac_dir_suffix= ac_dots=
12943 fi
12944
12945 case "$ac_given_srcdir" in
12946 .) srcdir=.
12947 if test -z "$ac_dots"; then top_srcdir=.
12948 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12949 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12950 *) # Relative path.
12951 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12952 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12953 esac
12954
12955 case "$ac_given_INSTALL" in
12956 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12957 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12958 esac
12959
12960 echo creating "$ac_file"
12961 rm -f "$ac_file"
12962 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12963 case "$ac_file" in
12964 *Makefile*) ac_comsub="1i\\
12965# $configure_input" ;;
12966 *) ac_comsub= ;;
12967 esac
12968
12969 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12970 sed -e "$ac_comsub
12971s%@configure_input@%$configure_input%g
12972s%@srcdir@%$srcdir%g
12973s%@top_srcdir@%$top_srcdir%g
12974s%@INSTALL@%$INSTALL%g
12975" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12976fi; done
12977rm -f conftest.s*
12978
12979# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12980# NAME is the cpp macro being defined and VALUE is the value it is being given.
12981#
12982# ac_d sets the value in "#define NAME VALUE" lines.
12983ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12984ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12985ac_dC='\3'
12986ac_dD='%g'
12987# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12988ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12989ac_uB='\([ ]\)%\1#\2define\3'
12990ac_uC=' '
12991ac_uD='\4%g'
12992# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12993ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12994ac_eB='$%\1#\2define\3'
12995ac_eC=' '
12996ac_eD='%g'
12997
12998if test "${CONFIG_HEADERS+set}" != set; then
12999EOF
13000cat >> $CONFIG_STATUS <<EOF
13001 CONFIG_HEADERS="setup.h:setup.h.in"
13002EOF
13003cat >> $CONFIG_STATUS <<\EOF
13004fi
13005for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13006 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13007 case "$ac_file" in
13008 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13009 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13010 *) ac_file_in="${ac_file}.in" ;;
13011 esac
13012
13013 echo creating $ac_file
13014
13015 rm -f conftest.frag conftest.in conftest.out
13016 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13017 cat $ac_file_inputs > conftest.in
13018
13019EOF
13020
13021# Transform confdefs.h into a sed script conftest.vals that substitutes
13022# the proper values into config.h.in to produce config.h. And first:
13023# Protect against being on the right side of a sed subst in config.status.
13024# Protect against being in an unquoted here document in config.status.
13025rm -f conftest.vals
13026cat > conftest.hdr <<\EOF
13027s/[\\&%]/\\&/g
13028s%[\\$`]%\\&%g
13029s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13030s%ac_d%ac_u%gp
13031s%ac_u%ac_e%gp
13032EOF
13033sed -n -f conftest.hdr confdefs.h > conftest.vals
13034rm -f conftest.hdr
13035
13036# This sed command replaces #undef with comments. This is necessary, for
13037# example, in the case of _POSIX_SOURCE, which is predefined and required
13038# on some systems where configure will not decide to define it.
13039cat >> conftest.vals <<\EOF
13040s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13041EOF
13042
13043# Break up conftest.vals because some shells have a limit on
13044# the size of here documents, and old seds have small limits too.
13045
13046rm -f conftest.tail
13047while :
13048do
13049 ac_lines=`grep -c . conftest.vals`
13050 # grep -c gives empty output for an empty file on some AIX systems.
13051 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13052 # Write a limited-size here document to conftest.frag.
13053 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13054 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13055 echo 'CEOF
13056 sed -f conftest.frag conftest.in > conftest.out
13057 rm -f conftest.in
13058 mv conftest.out conftest.in
13059' >> $CONFIG_STATUS
13060 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13061 rm -f conftest.vals
13062 mv conftest.tail conftest.vals
13063done
13064rm -f conftest.vals
13065
13066cat >> $CONFIG_STATUS <<\EOF
13067 rm -f conftest.frag conftest.h
13068 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13069 cat conftest.in >> conftest.h
13070 rm -f conftest.in
13071 if cmp -s $ac_file conftest.h 2>/dev/null; then
13072 echo "$ac_file is unchanged"
13073 rm -f conftest.h
13074 else
13075 # Remove last slash and all that follows it. Not all systems have dirname.
13076 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13077 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13078 # The file is in a subdirectory.
13079 test ! -d "$ac_dir" && mkdir "$ac_dir"
13080 fi
13081 rm -f $ac_file
13082 mv conftest.h $ac_file
13083 fi
13084fi; done
13085
13086EOF
13087cat >> $CONFIG_STATUS <<EOF
13088
13089 TOOLKIT_DIR="${TOOLKIT_DIR}"
13090
13091
13092EOF
13093cat >> $CONFIG_STATUS <<\EOF
13094
13095 chmod +x wx-config
13096 if test ! -d include; then
13097 mkdir include
13098 fi
13099 if test ! -d include/wx; then
13100 mkdir include/wx
13101 fi
13102 if test ! -d include/wx/${TOOLKIT_DIR}; then
13103 mkdir include/wx/${TOOLKIT_DIR}
13104 fi
afc31813
VZ
13105 if test -f setup.h; then
13106 mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h
13107 fi
10f2d63a
VZ
13108
13109exit 0
13110EOF
13111chmod +x $CONFIG_STATUS
13112rm -fr confdefs* $ac_clean_files
13113test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
13114
13115